Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code #2012

Merged
merged 7 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v807
v814
2 changes: 1 addition & 1 deletion test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions types/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1067,6 +1067,8 @@ declare module 'stripe' {

dashboard: Settings.Dashboard;

invoices?: Settings.Invoices;

payments: Settings.Payments;

payouts?: Settings.Payouts;
Expand Down Expand Up @@ -1179,6 +1181,13 @@ declare module 'stripe' {
timezone: string | null;
}

interface Invoices {
/**
* The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
*/
default_account_tax_ids: Array<string | Stripe.TaxId> | null;
}

interface Payments {
/**
* The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge.
Expand Down
12 changes: 12 additions & 0 deletions types/AccountsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2579,6 +2579,11 @@ declare module 'stripe' {
*/
card_payments?: Settings.CardPayments;

/**
* Settings specific to the account's use of Invoices.
*/
invoices?: Settings.Invoices;

/**
* Settings that apply across payment methods for charging on the account.
*/
Expand Down Expand Up @@ -2687,6 +2692,13 @@ declare module 'stripe' {
}
}

interface Invoices {
/**
* The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
*/
default_account_tax_ids?: Stripe.Emptyable<Array<string>>;
}

interface Payments {
/**
* The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge.
Expand Down
3 changes: 2 additions & 1 deletion types/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,7 @@ declare module 'stripe' {

interface P24 {
/**
* The customer's bank. Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`.
* The customer's bank. Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `velobank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`.
*/
bank: P24.Bank | null;

Expand Down Expand Up @@ -1699,6 +1699,7 @@ declare module 'stripe' {
| 'santander_przelew24'
| 'tmobile_usbugi_bankowe'
| 'toyota_bank'
| 'velobank'
| 'volkswagen_bank';
}

Expand Down
2 changes: 1 addition & 1 deletion types/Identity/VerificationReports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ declare module 'stripe' {
first_name: string | null;

/**
* ID number.
* ID number. When `id_number_type` is `us_ssn`, only the last 4 digits are present.
*/
id_number: string | null;

Expand Down
16 changes: 15 additions & 1 deletion types/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,16 @@ declare module 'stripe' {
type SetupFutureUsage = 'none' | 'off_session';
}

interface Blik {}
interface Blik {
/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
*
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
*/
setup_future_usage?: 'none';
}

interface Boleto {
/**
Expand Down Expand Up @@ -1545,6 +1554,11 @@ declare module 'stripe' {
*/
request_three_d_secure: Card.RequestThreeDSecure | null;

/**
* When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
*/
require_cvc_recollection?: boolean;

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
Expand Down
51 changes: 51 additions & 0 deletions types/PaymentIntentsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,7 @@ declare module 'stripe' {
| 'santander_przelew24'
| 'tmobile_usbugi_bankowe'
| 'toyota_bank'
| 'velobank'
| 'volkswagen_bank';
}

Expand Down Expand Up @@ -1183,6 +1184,17 @@ declare module 'stripe' {
* The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
*/
code?: string;

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
*
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
*
* If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
*/
setup_future_usage?: Stripe.Emptyable<'none'>;
}

interface Boleto {
Expand Down Expand Up @@ -1271,6 +1283,11 @@ declare module 'stripe' {
*/
request_three_d_secure?: Card.RequestThreeDSecure;

/**
* When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
*/
require_cvc_recollection?: boolean;

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
Expand Down Expand Up @@ -2841,6 +2858,7 @@ declare module 'stripe' {
| 'santander_przelew24'
| 'tmobile_usbugi_bankowe'
| 'toyota_bank'
| 'velobank'
| 'volkswagen_bank';
}

Expand Down Expand Up @@ -3329,6 +3347,17 @@ declare module 'stripe' {
* The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
*/
code?: string;

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
*
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
*
* If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
*/
setup_future_usage?: Stripe.Emptyable<'none'>;
}

interface Boleto {
Expand Down Expand Up @@ -3417,6 +3446,11 @@ declare module 'stripe' {
*/
request_three_d_secure?: Card.RequestThreeDSecure;

/**
* When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
*/
require_cvc_recollection?: boolean;

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
Expand Down Expand Up @@ -5125,6 +5159,7 @@ declare module 'stripe' {
| 'santander_przelew24'
| 'tmobile_usbugi_bankowe'
| 'toyota_bank'
| 'velobank'
| 'volkswagen_bank';
}

Expand Down Expand Up @@ -5613,6 +5648,17 @@ declare module 'stripe' {
* The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
*/
code?: string;

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
* Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
*
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
*
* If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
*/
setup_future_usage?: Stripe.Emptyable<'none'>;
}

interface Boleto {
Expand Down Expand Up @@ -5701,6 +5747,11 @@ declare module 'stripe' {
*/
request_three_d_secure?: Card.RequestThreeDSecure;

/**
* When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
*/
require_cvc_recollection?: boolean;

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
Expand Down
3 changes: 2 additions & 1 deletion types/PaymentMethods.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ declare module 'stripe' {
available: Array<string>;

/**
* The preferred network for the card. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.
* The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.
*/
preferred: string | null;
}
Expand Down Expand Up @@ -835,6 +835,7 @@ declare module 'stripe' {
| 'santander_przelew24'
| 'tmobile_usbugi_bankowe'
| 'toyota_bank'
| 'velobank'
| 'volkswagen_bank';
}

Expand Down
1 change: 1 addition & 0 deletions types/PaymentMethodsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ declare module 'stripe' {
| 'santander_przelew24'
| 'tmobile_usbugi_bankowe'
| 'toyota_bank'
| 'velobank'
| 'volkswagen_bank';
}

Expand Down
3 changes: 3 additions & 0 deletions types/SetupIntentsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ declare module 'stripe' {
| 'santander_przelew24'
| 'tmobile_usbugi_bankowe'
| 'toyota_bank'
| 'velobank'
| 'volkswagen_bank';
}

Expand Down Expand Up @@ -1664,6 +1665,7 @@ declare module 'stripe' {
| 'santander_przelew24'
| 'tmobile_usbugi_bankowe'
| 'toyota_bank'
| 'velobank'
| 'volkswagen_bank';
}

Expand Down Expand Up @@ -2783,6 +2785,7 @@ declare module 'stripe' {
| 'santander_przelew24'
| 'tmobile_usbugi_bankowe'
| 'toyota_bank'
| 'velobank'
| 'volkswagen_bank';
}

Expand Down
14 changes: 14 additions & 0 deletions types/SubscriptionSchedules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,13 @@ declare module 'stripe' {
type CollectionMethod = 'charge_automatically' | 'send_invoice';

interface InvoiceSettings {
/**
* The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
*/
account_tax_ids?: Array<
string | Stripe.TaxId | Stripe.DeletedTaxId
> | null;

/**
* Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
*/
Expand Down Expand Up @@ -412,6 +419,13 @@ declare module 'stripe' {
type CollectionMethod = 'charge_automatically' | 'send_invoice';

interface InvoiceSettings {
/**
* The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
*/
account_tax_ids?: Array<
string | Stripe.TaxId | Stripe.DeletedTaxId
> | null;

/**
* Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
*/
Expand Down
20 changes: 20 additions & 0 deletions types/SubscriptionSchedulesResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ declare module 'stripe' {
type CollectionMethod = 'charge_automatically' | 'send_invoice';

interface InvoiceSettings {
/**
* The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
*/
account_tax_ids?: Stripe.Emptyable<Array<string>>;

/**
* Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `collection_method=charge_automatically`.
*/
Expand Down Expand Up @@ -401,6 +406,11 @@ declare module 'stripe' {
type CollectionMethod = 'charge_automatically' | 'send_invoice';

interface InvoiceSettings {
/**
* The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
*/
account_tax_ids?: Stripe.Emptyable<Array<string>>;

/**
* Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
*/
Expand Down Expand Up @@ -689,6 +699,11 @@ declare module 'stripe' {
type CollectionMethod = 'charge_automatically' | 'send_invoice';

interface InvoiceSettings {
/**
* The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
*/
account_tax_ids?: Stripe.Emptyable<Array<string>>;

/**
* Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `collection_method=charge_automatically`.
*/
Expand Down Expand Up @@ -948,6 +963,11 @@ declare module 'stripe' {
type CollectionMethod = 'charge_automatically' | 'send_invoice';

interface InvoiceSettings {
/**
* The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
*/
account_tax_ids?: Stripe.Emptyable<Array<string>>;

/**
* Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
*/
Expand Down
10 changes: 10 additions & 0 deletions types/SubscriptionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,11 @@ declare module 'stripe' {
type CollectionMethod = 'charge_automatically' | 'send_invoice';

interface InvoiceSettings {
/**
* The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
*/
account_tax_ids?: Stripe.Emptyable<Array<string>>;

/**
* The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
*/
Expand Down Expand Up @@ -1060,6 +1065,11 @@ declare module 'stripe' {
type CollectionMethod = 'charge_automatically' | 'send_invoice';

interface InvoiceSettings {
/**
* The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
*/
account_tax_ids?: Stripe.Emptyable<Array<string>>;

/**
* The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
*/
Expand Down
Loading
Loading