Skip to content

Commit

Permalink
Update generated code for v636
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Nov 1, 2023
1 parent a806ef3 commit 6cdd84f
Show file tree
Hide file tree
Showing 13 changed files with 189 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v633
v636
2 changes: 1 addition & 1 deletion test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

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

/**
* The status of the RevolutPay capability of the account, or whether the account can directly process RevolutPay payments.
*/
revolut_pay_payments?: Capabilities.RevolutPayPayments;

/**
* 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 @@ -420,6 +425,8 @@ declare module 'stripe' {

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

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

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

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

/**
* The revolut_pay_payments capability.
*/
revolut_pay_payments?: Capabilities.RevolutPayPayments;

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

interface RevolutPayPayments {
/**
* 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 @@ -1577,6 +1589,11 @@ declare module 'stripe' {
*/
promptpay_payments?: Capabilities.PromptpayPayments;

/**
* The revolut_pay_payments capability.
*/
revolut_pay_payments?: Capabilities.RevolutPayPayments;

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

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

promptpay?: PaymentMethodDetails.Promptpay;

revolut_pay?: PaymentMethodDetails.RevolutPay;

sepa_credit_transfer?: PaymentMethodDetails.SepaCreditTransfer;

sepa_debit?: PaymentMethodDetails.SepaDebit;
Expand Down Expand Up @@ -1722,6 +1724,8 @@ declare module 'stripe' {
reference: string | null;
}

interface RevolutPay {}

interface SepaCreditTransfer {
/**
* Name of the bank associated with the bank account.
Expand Down
4 changes: 4 additions & 0 deletions types/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,8 @@ declare module 'stripe' {

pix?: PaymentMethodOptions.Pix;

revolut_pay?: PaymentMethodOptions.RevolutPay;

sepa_debit?: PaymentMethodOptions.SepaDebit;

sofort?: PaymentMethodOptions.Sofort;
Expand Down Expand Up @@ -1264,6 +1266,8 @@ declare module 'stripe' {
expires_after_seconds: number | null;
}

interface RevolutPay {}

interface SepaDebit {
/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
Expand Down
21 changes: 21 additions & 0 deletions types/Checkout/SessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,11 @@ declare module 'stripe' {
*/
pix?: PaymentMethodOptions.Pix;

/**
* contains details about the RevolutPay payment method options.
*/
revolut_pay?: PaymentMethodOptions.RevolutPay;

/**
* contains details about the Sepa Debit payment method options.
*/
Expand Down Expand Up @@ -1507,6 +1512,21 @@ declare module 'stripe' {
expires_after_seconds?: number;
}

interface RevolutPay {
/**
* 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?: RevolutPay.SetupFutureUsage;
}

namespace RevolutPay {
type SetupFutureUsage = 'none' | 'off_session';
}

interface SepaDebit {
/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
Expand Down Expand Up @@ -1633,6 +1653,7 @@ declare module 'stripe' {
| 'paypal'
| 'pix'
| 'promptpay'
| 'revolut_pay'
| 'sepa_debit'
| 'sofort'
| 'us_bank_account'
Expand Down
1 change: 1 addition & 0 deletions types/CustomersResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,7 @@ declare module 'stripe' {
| 'paypal'
| 'pix'
| 'promptpay'
| 'revolut_pay'
| 'sepa_debit'
| 'sofort'
| 'us_bank_account'
Expand Down
4 changes: 4 additions & 0 deletions types/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1254,6 +1254,8 @@ declare module 'stripe' {

promptpay?: PaymentMethodOptions.Promptpay;

revolut_pay?: PaymentMethodOptions.RevolutPay;

sepa_debit?: PaymentMethodOptions.SepaDebit;

sofort?: PaymentMethodOptions.Sofort;
Expand Down Expand Up @@ -1988,6 +1990,8 @@ declare module 'stripe' {
setup_future_usage?: 'none';
}

interface RevolutPay {}

interface SepaDebit {
mandate_options?: SepaDebit.MandateOptions;

Expand Down
84 changes: 84 additions & 0 deletions types/PaymentIntentsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,11 @@ declare module 'stripe' {
*/
radar_options?: PaymentMethodData.RadarOptions;

/**
* If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
*/
revolut_pay?: PaymentMethodData.RevolutPay;

/**
* If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
*/
Expand Down Expand Up @@ -699,6 +704,8 @@ declare module 'stripe' {
session?: string;
}

interface RevolutPay {}

interface SepaDebit {
/**
* IBAN of the bank account.
Expand Down Expand Up @@ -743,6 +750,7 @@ declare module 'stripe' {
| 'paypal'
| 'pix'
| 'promptpay'
| 'revolut_pay'
| 'sepa_debit'
| 'sofort'
| 'us_bank_account'
Expand Down Expand Up @@ -932,6 +940,11 @@ declare module 'stripe' {
*/
promptpay?: Stripe.Emptyable<PaymentMethodOptions.Promptpay>;

/**
* If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Demo Pay payment method options.
*/
revolut_pay?: Stripe.Emptyable<PaymentMethodOptions.RevolutPay>;

/**
* If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
*/
Expand Down Expand Up @@ -1849,6 +1862,21 @@ declare module 'stripe' {
setup_future_usage?: 'none';
}

interface RevolutPay {
/**
* 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?: Stripe.Emptyable<RevolutPay.SetupFutureUsage>;
}

namespace RevolutPay {
type SetupFutureUsage = 'none' | 'off_session';
}

interface SepaDebit {
/**
* Additional fields for Mandate creation
Expand Down Expand Up @@ -2359,6 +2387,11 @@ declare module 'stripe' {
*/
radar_options?: PaymentMethodData.RadarOptions;

/**
* If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
*/
revolut_pay?: PaymentMethodData.RevolutPay;

/**
* If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
*/
Expand Down Expand Up @@ -2669,6 +2702,8 @@ declare module 'stripe' {
session?: string;
}

interface RevolutPay {}

interface SepaDebit {
/**
* IBAN of the bank account.
Expand Down Expand Up @@ -2713,6 +2748,7 @@ declare module 'stripe' {
| 'paypal'
| 'pix'
| 'promptpay'
| 'revolut_pay'
| 'sepa_debit'
| 'sofort'
| 'us_bank_account'
Expand Down Expand Up @@ -2902,6 +2938,11 @@ declare module 'stripe' {
*/
promptpay?: Stripe.Emptyable<PaymentMethodOptions.Promptpay>;

/**
* If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Demo Pay payment method options.
*/
revolut_pay?: Stripe.Emptyable<PaymentMethodOptions.RevolutPay>;

/**
* If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
*/
Expand Down Expand Up @@ -3819,6 +3860,21 @@ declare module 'stripe' {
setup_future_usage?: 'none';
}

interface RevolutPay {
/**
* 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?: Stripe.Emptyable<RevolutPay.SetupFutureUsage>;
}

namespace RevolutPay {
type SetupFutureUsage = 'none' | 'off_session';
}

interface SepaDebit {
/**
* Additional fields for Mandate creation
Expand Down Expand Up @@ -4467,6 +4523,11 @@ declare module 'stripe' {
*/
radar_options?: PaymentMethodData.RadarOptions;

/**
* If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
*/
revolut_pay?: PaymentMethodData.RevolutPay;

/**
* If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
*/
Expand Down Expand Up @@ -4777,6 +4838,8 @@ declare module 'stripe' {
session?: string;
}

interface RevolutPay {}

interface SepaDebit {
/**
* IBAN of the bank account.
Expand Down Expand Up @@ -4821,6 +4884,7 @@ declare module 'stripe' {
| 'paypal'
| 'pix'
| 'promptpay'
| 'revolut_pay'
| 'sepa_debit'
| 'sofort'
| 'us_bank_account'
Expand Down Expand Up @@ -5010,6 +5074,11 @@ declare module 'stripe' {
*/
promptpay?: Stripe.Emptyable<PaymentMethodOptions.Promptpay>;

/**
* If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Demo Pay payment method options.
*/
revolut_pay?: Stripe.Emptyable<PaymentMethodOptions.RevolutPay>;

/**
* If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
*/
Expand Down Expand Up @@ -5927,6 +5996,21 @@ declare module 'stripe' {
setup_future_usage?: 'none';
}

interface RevolutPay {
/**
* 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?: Stripe.Emptyable<RevolutPay.SetupFutureUsage>;
}

namespace RevolutPay {
type SetupFutureUsage = 'none' | 'off_session';
}

interface SepaDebit {
/**
* Additional fields for Mandate creation
Expand Down
5 changes: 5 additions & 0 deletions types/PaymentMethods.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ declare module 'stripe' {
*/
radar_options?: PaymentMethod.RadarOptions;

revolut_pay?: PaymentMethod.RevolutPay;

sepa_debit?: PaymentMethod.SepaDebit;

sofort?: PaymentMethod.Sofort;
Expand Down Expand Up @@ -858,6 +860,8 @@ declare module 'stripe' {
session?: string;
}

interface RevolutPay {}

interface SepaDebit {
/**
* Bank code of bank associated with the bank account.
Expand Down Expand Up @@ -940,6 +944,7 @@ declare module 'stripe' {
| 'paypal'
| 'pix'
| 'promptpay'
| 'revolut_pay'
| 'sepa_debit'
| 'sofort'
| 'us_bank_account'
Expand Down
Loading

0 comments on commit 6cdd84f

Please sign in to comment.