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 for beta #2017

Merged
merged 17 commits into from
Feb 16, 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
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
# Changelog

## 14.17.0 - 2024-02-15
* [#2018](https://github.com/stripe/stripe-node/pull/2018) Update generated code
* Add support for `networks` on `Card`, `PaymentMethodCreateParams.card`, `PaymentMethodUpdateParams.card`, and `TokenCreateParams.card`
* Add support for new value `no_voec` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type`
* Add support for new value `no_voec` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
* Add support for new value `financial_connections.account.refreshed_ownership` on enum `Event.type`
* Add support for `display_brand` on `PaymentMethod.card`
* Add support for new value `financial_connections.account.refreshed_ownership` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`

## 14.17.0-beta.1 - 2024-02-08
* [#2014](https://github.com/stripe/stripe-node/pull/2014) Update generated code for beta
* Add support for `payment_method_options` on `ConfirmationToken`
* Add support for new value `velobank` on enum `ConfirmationToken.payment_method_preview.p24.bank`

## 14.16.0 - 2024-02-08
* [#2012](https://github.com/stripe/stripe-node/pull/2012) Update generated code
* Add support for `invoices` on `Account.settings` and `AccountUpdateParams.settings`
* Add support for new value `velobank` on enums `Charge.payment_method_details.p24.bank`, `PaymentIntentConfirmParams.payment_method_data.p24.bank`, `PaymentIntentCreateParams.payment_method_data.p24.bank`, `PaymentIntentUpdateParams.payment_method_data.p24.bank`, `PaymentMethod.p24.bank`, `PaymentMethodCreateParams.p24.bank`, `SetupIntentConfirmParams.payment_method_data.p24.bank`, `SetupIntentCreateParams.payment_method_data.p24.bank`, and `SetupIntentUpdateParams.payment_method_data.p24.bank`
* Add support for `setup_future_usage` on `PaymentIntent.payment_method_options.blik`, `PaymentIntentConfirmParams.payment_method_options.blik`, `PaymentIntentCreateParams.payment_method_options.blik`, and `PaymentIntentUpdateParams.payment_method_options.blik`
* Add support for `require_cvc_recollection` on `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, and `PaymentIntentUpdateParams.payment_method_options.card`
* Add support for `account_tax_ids` on `SubscriptionCreateParams.invoice_settings`, `SubscriptionSchedule.default_settings.invoice_settings`, `SubscriptionSchedule.phases[].invoice_settings`, `SubscriptionScheduleCreateParams.default_settings.invoice_settings`, `SubscriptionScheduleCreateParams.phases[].invoice_settings`, `SubscriptionScheduleUpdateParams.default_settings.invoice_settings`, `SubscriptionScheduleUpdateParams.phases[].invoice_settings`, and `SubscriptionUpdateParams.invoice_settings`

## 14.15.0 - 2024-02-05
* [#2001](https://github.com/stripe/stripe-node/pull/2001) Update generated code
* Add support for `swish` payment method throughout the API
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v814
v831
4 changes: 4 additions & 0 deletions src/resources/PaymentIntents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ export const PaymentIntents = StripeResource.extend({
method: 'POST',
fullPath: '/v1/payment_intents/{intent}/confirm',
}),
decrementAuthorization: stripeMethod({
method: 'POST',
fullPath: '/v1/payment_intents/{intent}/decrement_authorization',
}),
incrementAuthorization: stripeMethod({
method: 'POST',
fullPath: '/v1/payment_intents/{intent}/increment_authorization',
Expand Down
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 @@ -348,6 +348,11 @@ declare module 'stripe' {
*/
paypal_payments?: Capabilities.PaypalPayments;

/**
* The status of the PayTo capability of the account, or whether the account can directly process PayTo charges.
*/
payto_payments?: Capabilities.PaytoPayments;

/**
* The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges.
*/
Expand Down Expand Up @@ -393,6 +398,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 @@ -461,6 +471,8 @@ declare module 'stripe' {

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

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

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

type RevolutPayPayments = 'active' | 'inactive' | 'pending';
Expand All @@ -479,6 +491,8 @@ declare module 'stripe' {

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

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

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

type ZipPayments = '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 @@ -327,6 +327,11 @@ declare module 'stripe' {
*/
paypal_payments?: Capabilities.PaypalPayments;

/**
* The payto_payments capability.
*/
payto_payments?: Capabilities.PaytoPayments;

/**
* The promptpay_payments capability.
*/
Expand Down Expand Up @@ -372,6 +377,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 @@ -580,6 +590,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface PaytoPayments {
/**
* 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 PromptpayPayments {
/**
* 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 @@ -643,6 +660,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 @@ -1814,6 +1838,11 @@ declare module 'stripe' {
*/
paypal_payments?: Capabilities.PaypalPayments;

/**
* The payto_payments capability.
*/
payto_payments?: Capabilities.PaytoPayments;

/**
* The promptpay_payments capability.
*/
Expand Down Expand Up @@ -1859,6 +1888,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 @@ -2067,6 +2101,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface PaytoPayments {
/**
* 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 PromptpayPayments {
/**
* 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 @@ -2130,6 +2171,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
9 changes: 9 additions & 0 deletions types/Cards.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ declare module 'stripe' {
*/
name: string | null;

networks?: Card.Networks;

/**
* For external accounts that are cards, possible values are `new` and `errored`. If a payout fails, the status is set to `errored` and [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) are stopped until account details are updated.
*/
Expand All @@ -175,6 +177,13 @@ declare module 'stripe' {

namespace Card {
type AvailablePayoutMethod = 'instant' | 'standard';

interface Networks {
/**
* 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
41 changes: 41 additions & 0 deletions types/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,8 @@ declare module 'stripe' {

paypal?: PaymentMethodDetails.Paypal;

payto?: PaymentMethodDetails.Payto;

pix?: PaymentMethodDetails.Pix;

promptpay?: PaymentMethodDetails.Promptpay;
Expand All @@ -440,6 +442,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 @@ -705,6 +709,8 @@ declare module 'stripe' {
*/
country: string | null;

decremental_authorization?: Card.DecrementalAuthorization;

/**
* A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
*/
Expand Down Expand Up @@ -811,6 +817,17 @@ declare module 'stripe' {
cvc_check: string | null;
}

interface DecrementalAuthorization {
/**
* Indicates whether or not the decremental authorization feature is supported.
*/
status: DecrementalAuthorization.Status;
}

namespace DecrementalAuthorization {
type Status = 'available' | 'unavailable';
}

interface ExtendedAuthorization {
/**
* Indicates whether or not the capture window is extended beyond the standard authorization.
Expand Down Expand Up @@ -1785,6 +1802,28 @@ declare module 'stripe' {
}
}

interface Payto {
/**
* Bank-State-Branch number of the bank account.
*/
bsb_number: string | null;

/**
* Last four digits of the bank account number.
*/
last4: string | null;

/**
* ID of the mandate used to make this payment.
*/
mandate?: string;

/**
* The PayID alias for the bank account.
*/
pay_id: string | null;
}

interface Pix {
/**
* Unique transaction id generated by BCB
Expand Down Expand Up @@ -1929,6 +1968,8 @@ declare module 'stripe' {
verified_phone_last4: string | null;
}

interface Twint {}

interface UsBankAccount {
/**
* Account holder type: individual or company.
Expand Down
3 changes: 2 additions & 1 deletion types/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,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`, `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`, 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`, or `unknown`
*/
type: TaxId.Type;

Expand Down Expand Up @@ -542,6 +542,7 @@ declare module 'stripe' {
| 'my_itn'
| 'my_sst'
| 'no_vat'
| 'no_voec'
| 'nz_gst'
| 'pe_ruc'
| 'ph_tin'
Expand Down
1 change: 1 addition & 0 deletions types/Checkout/SessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1758,6 +1758,7 @@ declare module 'stripe' {
| 'sepa_debit'
| 'sofort'
| 'swish'
| 'twint'
| 'us_bank_account'
| 'wechat_pay'
| 'zip';
Expand Down
30 changes: 30 additions & 0 deletions types/ConfirmationTokens.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ declare module 'stripe' {

paypal?: PaymentMethodPreview.Paypal;

payto?: PaymentMethodPreview.Payto;

pix?: PaymentMethodPreview.Pix;

promptpay?: PaymentMethodPreview.Promptpay;
Expand All @@ -202,6 +204,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 @@ -336,6 +340,11 @@ declare module 'stripe' {
*/
description?: string | null;

/**
* The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards. Can be `american_express`, `cartes_bancaires`, `diners_club`, `discover`, `eftpos_australia`, `interac`, `jcb`, `mastercard`, `union_pay`, `visa`, or `other` and may contain more values in the future.
*/
display_brand: string | null;

/**
* Two-digit number representing the card's expiration month.
*/
Expand Down Expand Up @@ -956,6 +965,23 @@ declare module 'stripe' {
verified_email?: string | null;
}

interface Payto {
/**
* Bank-State-Branch number of the bank account.
*/
bsb_number: string | null;

/**
* Last four digits of the bank account number.
*/
last4: string | null;

/**
* The PayID alias for the bank account.
*/
pay_id: string | null;
}

interface Pix {}

interface Promptpay {}
Expand Down Expand Up @@ -1017,6 +1043,8 @@ declare module 'stripe' {

interface Swish {}

interface Twint {}

type Type =
| 'acss_debit'
| 'affirm'
Expand Down Expand Up @@ -1044,12 +1072,14 @@ declare module 'stripe' {
| 'p24'
| 'paynow'
| 'paypal'
| 'payto'
| 'pix'
| 'promptpay'
| 'revolut_pay'
| 'sepa_debit'
| 'sofort'
| 'swish'
| 'twint'
| 'us_bank_account'
| 'wechat_pay'
| 'zip';
Expand Down
Loading
Loading