Skip to content

Commit

Permalink
Update generated code for v1077
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Jun 13, 2024
1 parent eb1f429 commit bc2f548
Show file tree
Hide file tree
Showing 36 changed files with 575 additions and 64 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1065
v1077
2 changes: 1 addition & 1 deletion test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions types/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,11 @@ declare module 'stripe' {
*/
mobilepay_payments?: Capabilities.MobilepayPayments;

/**
* The status of the Multibanco payments capability of the account, or whether the account can directly process Multibanco charges.
*/
multibanco_payments?: Capabilities.MultibancoPayments;

/**
* The status of the Mexican customer_balance payments (MXN currency) capability of the account, or whether the account can directly process Mexican customer_balance charges.
*/
Expand Down Expand Up @@ -422,6 +427,11 @@ declare module 'stripe' {
*/
treasury?: Capabilities.Treasury;

/**
* The status of the TWINT capability of the account, or whether the account can directly process TWINT charges.
*/
twint_payments?: Capabilities.TwintPayments;

/**
* The status of the US bank account ACH payments capability of the account, or whether the account can directly process US bank account charges.
*/
Expand Down Expand Up @@ -495,6 +505,8 @@ declare module 'stripe' {

type MobilepayPayments = 'active' | 'inactive' | 'pending';

type MultibancoPayments = 'active' | 'inactive' | 'pending';

type MxBankTransferPayments = 'active' | 'inactive' | 'pending';

type OxxoPayments = 'active' | 'inactive' | 'pending';
Expand Down Expand Up @@ -523,6 +535,8 @@ declare module 'stripe' {

type Treasury = 'active' | 'inactive' | 'pending';

type TwintPayments = 'active' | 'inactive' | 'pending';

type UsBankAccountAchPayments = 'active' | 'inactive' | 'pending';

type UsBankTransferPayments = 'active' | 'inactive' | 'pending';
Expand Down
48 changes: 48 additions & 0 deletions types/AccountsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,11 @@ declare module 'stripe' {
*/
mobilepay_payments?: Capabilities.MobilepayPayments;

/**
* The multibanco_payments capability.
*/
multibanco_payments?: Capabilities.MultibancoPayments;

/**
* The mx_bank_transfer_payments capability.
*/
Expand Down Expand Up @@ -404,6 +409,11 @@ declare module 'stripe' {
*/
treasury?: Capabilities.Treasury;

/**
* The twint_payments capability.
*/
twint_payments?: Capabilities.TwintPayments;

/**
* The us_bank_account_ach_payments capability.
*/
Expand Down Expand Up @@ -617,6 +627,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface MultibancoPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
*/
requested?: boolean;
}

interface MxBankTransferPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Expand Down Expand Up @@ -715,6 +732,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface TwintPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
*/
requested?: boolean;
}

interface UsBankAccountAchPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Expand Down Expand Up @@ -1905,6 +1929,11 @@ declare module 'stripe' {
*/
mobilepay_payments?: Capabilities.MobilepayPayments;

/**
* The multibanco_payments capability.
*/
multibanco_payments?: Capabilities.MultibancoPayments;

/**
* The mx_bank_transfer_payments capability.
*/
Expand Down Expand Up @@ -1975,6 +2004,11 @@ declare module 'stripe' {
*/
treasury?: Capabilities.Treasury;

/**
* The twint_payments capability.
*/
twint_payments?: Capabilities.TwintPayments;

/**
* The us_bank_account_ach_payments capability.
*/
Expand Down Expand Up @@ -2188,6 +2222,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface MultibancoPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
*/
requested?: boolean;
}

interface MxBankTransferPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Expand Down Expand Up @@ -2286,6 +2327,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface TwintPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
*/
requested?: boolean;
}

interface UsBankAccountAchPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Expand Down
1 change: 0 additions & 1 deletion types/BalanceTransactionSources.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ declare module 'stripe' {
| Issuing.Dispute
| Issuing.Transaction
| Payout
| PlatformTaxFee
| Refund
| ReserveTransaction
| TaxDeductedAtSource
Expand Down
3 changes: 1 addition & 2 deletions types/BankAccounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ declare module 'stripe' {
* These bank accounts are payment methods on `Customer` objects.
*
* On the other hand [External Accounts](https://stripe.com/api#external_accounts) are transfer
* destinations on `Account` objects for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
* is `application`, which includes [Custom accounts](https://stripe.com/connect/custom-accounts).
* destinations on `Account` objects for connected accounts.
* They can be bank accounts or debit cards as well, and are documented in the links above.
*
* Related guide: [Bank debits and transfers](https://stripe.com/payments/bank-debits-transfers)
Expand Down
4 changes: 4 additions & 0 deletions types/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,8 @@ declare module 'stripe' {

swish?: PaymentMethodDetails.Swish;

twint?: PaymentMethodDetails.Twint;

/**
* The type of transaction-specific details of the payment method used in the payment, one of `ach_credit_transfer`, `ach_debit`, `acss_debit`, `alipay`, `au_becs_debit`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `klarna`, `multibanco`, `p24`, `sepa_debit`, `sofort`, `stripe_account`, or `wechat`.
* An additional hash is included on `payment_method_details` with a name matching this value.
Expand Down Expand Up @@ -1950,6 +1952,8 @@ declare module 'stripe' {
verified_phone_last4: string | null;
}

interface Twint {}

interface UsBankAccount {
/**
* Account holder type: individual or company.
Expand Down
16 changes: 15 additions & 1 deletion types/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ declare module 'stripe' {

interface TaxId {
/**
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, or `unknown`
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, or `unknown`
*/
type: TaxId.Type;

Expand Down Expand Up @@ -523,6 +523,7 @@ declare module 'stripe' {
| 'cn_tin'
| 'co_nit'
| 'cr_tin'
| 'de_stn'
| 'do_rcn'
| 'ec_ruc'
| 'eg_tin'
Expand Down Expand Up @@ -934,6 +935,8 @@ declare module 'stripe' {

mobilepay?: PaymentMethodOptions.Mobilepay;

multibanco?: PaymentMethodOptions.Multibanco;

oxxo?: PaymentMethodOptions.Oxxo;

p24?: PaymentMethodOptions.P24;
Expand Down Expand Up @@ -1358,6 +1361,17 @@ declare module 'stripe' {
setup_future_usage?: 'none';
}

interface Multibanco {
/**
* 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 Oxxo {
/**
* The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
Expand Down
20 changes: 19 additions & 1 deletion types/Checkout/SessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,11 @@ declare module 'stripe' {
*/
mobilepay?: PaymentMethodOptions.Mobilepay;

/**
* contains details about the Multibanco payment method options.
*/
multibanco?: PaymentMethodOptions.Multibanco;

/**
* contains details about the OXXO payment method options.
*/
Expand Down Expand Up @@ -1559,6 +1564,17 @@ declare module 'stripe' {
setup_future_usage?: 'none';
}

interface Multibanco {
/**
* 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 Oxxo {
/**
* The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
Expand Down Expand Up @@ -1815,6 +1831,7 @@ declare module 'stripe' {
| 'konbini'
| 'link'
| 'mobilepay'
| 'multibanco'
| 'oxxo'
| 'p24'
| 'paynow'
Expand All @@ -1825,6 +1842,7 @@ declare module 'stripe' {
| 'sepa_debit'
| 'sofort'
| 'swish'
| 'twint'
| 'us_bank_account'
| 'wechat_pay'
| 'zip';
Expand Down Expand Up @@ -2169,7 +2187,7 @@ declare module 'stripe' {
tax_code?: string;

/**
* The type of calculation to use on the shipping rate. Can only be `fixed_amount` for now.
* The type of calculation to use on the shipping rate.
*/
type?: 'fixed_amount';
}
Expand Down
10 changes: 10 additions & 0 deletions types/ConfirmationTokens.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ declare module 'stripe' {

mobilepay?: PaymentMethodPreview.Mobilepay;

multibanco?: PaymentMethodPreview.Multibanco;

oxxo?: PaymentMethodPreview.Oxxo;

p24?: PaymentMethodPreview.P24;
Expand All @@ -192,6 +194,8 @@ declare module 'stripe' {

swish?: PaymentMethodPreview.Swish;

twint?: PaymentMethodPreview.Twint;

/**
* The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
*/
Expand Down Expand Up @@ -1118,6 +1122,8 @@ declare module 'stripe' {

interface Mobilepay {}

interface Multibanco {}

interface Oxxo {}

interface P24 {
Expand Down Expand Up @@ -1233,6 +1239,8 @@ declare module 'stripe' {

interface Swish {}

interface Twint {}

type Type =
| 'acss_debit'
| 'affirm'
Expand All @@ -1258,6 +1266,7 @@ declare module 'stripe' {
| 'konbini'
| 'link'
| 'mobilepay'
| 'multibanco'
| 'oxxo'
| 'p24'
| 'paynow'
Expand All @@ -1268,6 +1277,7 @@ declare module 'stripe' {
| 'sepa_debit'
| 'sofort'
| 'swish'
| 'twint'
| 'us_bank_account'
| 'wechat_pay'
| 'zip';
Expand Down
8 changes: 6 additions & 2 deletions types/CustomersResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ declare module 'stripe' {

interface TaxIdDatum {
/**
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
*/
type: TaxIdDatum.Type;

Expand Down Expand Up @@ -248,6 +248,7 @@ declare module 'stripe' {
| 'cn_tin'
| 'co_nit'
| 'cr_tin'
| 'de_stn'
| 'do_rcn'
| 'ec_ruc'
| 'eg_tin'
Expand Down Expand Up @@ -650,7 +651,7 @@ declare module 'stripe' {

interface CustomerCreateTaxIdParams {
/**
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
*/
type: CustomerCreateTaxIdParams.Type;

Expand Down Expand Up @@ -688,6 +689,7 @@ declare module 'stripe' {
| 'cn_tin'
| 'co_nit'
| 'cr_tin'
| 'de_stn'
| 'do_rcn'
| 'ec_ruc'
| 'eg_tin'
Expand Down Expand Up @@ -809,6 +811,7 @@ declare module 'stripe' {
| 'konbini'
| 'link'
| 'mobilepay'
| 'multibanco'
| 'oxxo'
| 'p24'
| 'paynow'
Expand All @@ -819,6 +822,7 @@ declare module 'stripe' {
| 'sepa_debit'
| 'sofort'
| 'swish'
| 'twint'
| 'us_bank_account'
| 'wechat_pay'
| 'zip';
Expand Down
Loading

0 comments on commit bc2f548

Please sign in to comment.