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 #2098

Merged
merged 12 commits into from
Jun 6, 2024
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
* [#2094](https://github.com/stripe/stripe-node/pull/2094) Update generated code for beta
* Add support for new values `en-RO` and `ro-RO` on enums `OrderCreateParams.payment.settings.payment_method_options.klarna.preferred_locale` and `OrderUpdateParams.payment.settings.payment_method_options.klarna.preferred_locale`

## 15.9.0 - 2024-05-30
* [#2095](https://github.com/stripe/stripe-node/pull/2095) Update generated code
* Add support for new value `verification_requires_additional_proof_of_registration` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code`
* Add support for `default_value` on `Checkout.Session.custom_fields[].dropdown`, `Checkout.Session.custom_fields[].numeric`, `Checkout.Session.custom_fields[].text`, `Checkout.SessionCreateParams.custom_fields[].dropdown`, `Checkout.SessionCreateParams.custom_fields[].numeric`, and `Checkout.SessionCreateParams.custom_fields[].text`
* Add support for `generated_from` on `ConfirmationToken.payment_method_preview.card` and `PaymentMethod.card`
* Add support for new values `issuing_personalization_design.activated`, `issuing_personalization_design.deactivated`, `issuing_personalization_design.rejected`, and `issuing_personalization_design.updated` on enum `Event.type`
* Change `Issuing.Card.personalization_design` and `Issuing.PhysicalBundle.features` to be required
* Add support for new values `en-RO` and `ro-RO` on enums `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`
* Add support for new values `issuing_personalization_design.activated`, `issuing_personalization_design.deactivated`, `issuing_personalization_design.rejected`, and `issuing_personalization_design.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`

## 15.9.0-beta.1 - 2024-05-23
* [#2093](https://github.com/stripe/stripe-node/pull/2093) Update generated code for beta
* Change `CreditNoteCreateParams.refunds[].refund`, `CreditNotePreviewLinesParams.refunds[].refund`, and `CreditNotePreviewParams.refunds[].refund` to be optional
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1058
v1065
2 changes: 1 addition & 1 deletion src/apiVersion.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// File generated from our OpenAPI spec

export const ApiVersion = '2024-04-10';
export const PreviewVersion = '2024-04-11.preview-v2';
export const PreviewVersion = '2024-05-23.preview-v2';
2 changes: 1 addition & 1 deletion test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

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

/**
* The status of the GB customer_balance payments (GBP currency) capability of the account, or whether the account can directly process GB customer_balance charges.
*/
gb_bank_transfer_payments?: Capabilities.GbBankTransferPayments;

/**
* The status of the giropay payments capability of the account, or whether the account can directly process giropay charges.
*/
Expand All @@ -319,6 +324,11 @@ declare module 'stripe' {
*/
jcb_payments?: Capabilities.JcbPayments;

/**
* The status of the Japanese customer_balance payments (JPY currency) capability of the account, or whether the account can directly process Japanese customer_balance charges.
*/
jp_bank_transfer_payments?: Capabilities.JpBankTransferPayments;

/**
* The status of the Klarna payments capability of the account, or whether the account can directly process Klarna charges.
*/
Expand All @@ -344,6 +354,11 @@ declare module 'stripe' {
*/
mobilepay_payments?: Capabilities.MobilepayPayments;

/**
* 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.
*/
mx_bank_transfer_payments?: Capabilities.MxBankTransferPayments;

/**
* The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges.
*/
Expand Down Expand Up @@ -384,6 +399,11 @@ declare module 'stripe' {
*/
revolut_pay_payments?: Capabilities.RevolutPayPayments;

/**
* The status of the SEPA customer_balance payments (EUR currency) capability of the account, or whether the account can directly process SEPA customer_balance charges.
*/
sepa_bank_transfer_payments?: Capabilities.SepaBankTransferPayments;

/**
* The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.
*/
Expand Down Expand Up @@ -429,6 +449,11 @@ declare module 'stripe' {
*/
us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;

/**
* The status of the US customer_balance payments (USD currency) capability of the account, or whether the account can directly process US customer_balance charges.
*/
us_bank_transfer_payments?: Capabilities.UsBankTransferPayments;

/**
* The status of the Zip capability of the account, or whether the account can directly process Zip charges.
*/
Expand Down Expand Up @@ -468,6 +493,8 @@ declare module 'stripe' {

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

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

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

type GrabpayPayments = 'active' | 'inactive' | 'pending';
Expand All @@ -478,6 +505,8 @@ declare module 'stripe' {

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

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

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

type KonbiniPayments = 'active' | 'inactive' | 'pending';
Expand All @@ -488,6 +517,8 @@ declare module 'stripe' {

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

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

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

type P24Payments = 'active' | 'inactive' | 'pending';
Expand All @@ -504,6 +535,8 @@ declare module 'stripe' {

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

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

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

type SofortPayments = 'active' | 'inactive' | 'pending';
Expand All @@ -522,6 +555,8 @@ declare module 'stripe' {

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

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

type ZipPayments = 'active' | 'inactive' | 'pending';
}

Expand Down
120 changes: 120 additions & 0 deletions types/AccountsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@ declare module 'stripe' {
*/
fpx_payments?: Capabilities.FpxPayments;

/**
* The gb_bank_transfer_payments capability.
*/
gb_bank_transfer_payments?: Capabilities.GbBankTransferPayments;

/**
* The giropay_payments capability.
*/
Expand All @@ -304,6 +309,11 @@ declare module 'stripe' {
*/
jcb_payments?: Capabilities.JcbPayments;

/**
* The jp_bank_transfer_payments capability.
*/
jp_bank_transfer_payments?: Capabilities.JpBankTransferPayments;

/**
* The klarna_payments capability.
*/
Expand All @@ -329,6 +339,11 @@ declare module 'stripe' {
*/
mobilepay_payments?: Capabilities.MobilepayPayments;

/**
* The mx_bank_transfer_payments capability.
*/
mx_bank_transfer_payments?: Capabilities.MxBankTransferPayments;

/**
* The oxxo_payments capability.
*/
Expand Down Expand Up @@ -369,6 +384,11 @@ declare module 'stripe' {
*/
revolut_pay_payments?: Capabilities.RevolutPayPayments;

/**
* The sepa_bank_transfer_payments capability.
*/
sepa_bank_transfer_payments?: Capabilities.SepaBankTransferPayments;

/**
* The sepa_debit_payments capability.
*/
Expand Down Expand Up @@ -414,6 +434,11 @@ declare module 'stripe' {
*/
us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;

/**
* The us_bank_transfer_payments capability.
*/
us_bank_transfer_payments?: Capabilities.UsBankTransferPayments;

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

interface GbBankTransferPayments {
/**
* 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 GiropayPayments {
/**
* 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 @@ -568,6 +600,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface JpBankTransferPayments {
/**
* 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 KlarnaPayments {
/**
* 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 @@ -603,6 +642,13 @@ declare module 'stripe' {
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.
*/
requested?: boolean;
}

interface OxxoPayments {
/**
* 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 @@ -659,6 +705,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface SepaBankTransferPayments {
/**
* 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 SepaDebitPayments {
/**
* 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 @@ -722,6 +775,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface UsBankTransferPayments {
/**
* 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 ZipPayments {
/**
* 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 @@ -1923,6 +1983,11 @@ declare module 'stripe' {
*/
fpx_payments?: Capabilities.FpxPayments;

/**
* The gb_bank_transfer_payments capability.
*/
gb_bank_transfer_payments?: Capabilities.GbBankTransferPayments;

/**
* The giropay_payments capability.
*/
Expand All @@ -1948,6 +2013,11 @@ declare module 'stripe' {
*/
jcb_payments?: Capabilities.JcbPayments;

/**
* The jp_bank_transfer_payments capability.
*/
jp_bank_transfer_payments?: Capabilities.JpBankTransferPayments;

/**
* The klarna_payments capability.
*/
Expand All @@ -1973,6 +2043,11 @@ declare module 'stripe' {
*/
mobilepay_payments?: Capabilities.MobilepayPayments;

/**
* The mx_bank_transfer_payments capability.
*/
mx_bank_transfer_payments?: Capabilities.MxBankTransferPayments;

/**
* The oxxo_payments capability.
*/
Expand Down Expand Up @@ -2013,6 +2088,11 @@ declare module 'stripe' {
*/
revolut_pay_payments?: Capabilities.RevolutPayPayments;

/**
* The sepa_bank_transfer_payments capability.
*/
sepa_bank_transfer_payments?: Capabilities.SepaBankTransferPayments;

/**
* The sepa_debit_payments capability.
*/
Expand Down Expand Up @@ -2058,6 +2138,11 @@ declare module 'stripe' {
*/
us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;

/**
* The us_bank_transfer_payments capability.
*/
us_bank_transfer_payments?: Capabilities.UsBankTransferPayments;

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

interface GbBankTransferPayments {
/**
* 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 GiropayPayments {
/**
* 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 @@ -2212,6 +2304,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface JpBankTransferPayments {
/**
* 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 KlarnaPayments {
/**
* 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 @@ -2247,6 +2346,13 @@ declare module 'stripe' {
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.
*/
requested?: boolean;
}

interface OxxoPayments {
/**
* 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 @@ -2303,6 +2409,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface SepaBankTransferPayments {
/**
* 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 SepaDebitPayments {
/**
* 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 @@ -2366,6 +2479,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface UsBankTransferPayments {
/**
* 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 ZipPayments {
/**
* 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
Loading
Loading