From 6d2b851f33d1a7a723633e3f62e11091f3457add Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Mon, 23 May 2022 10:44:11 -0700 Subject: [PATCH] Codegen for openapi v146 --- OPENAPI_VERSION | 1 + lib/resources.js | 3 + lib/resources/Apps/Secrets.js | 31 ++ .../resources/generated_examples_test.spec.js | 27 ++ types/2020-08-27/Apps/Secrets.d.ts | 241 +++++++++++++++ types/2020-08-27/Charges.d.ts | 8 + types/2020-08-27/Customers.d.ts | 2 + types/2020-08-27/Invoices.d.ts | 3 + types/2020-08-27/Mandates.d.ts | 4 + types/2020-08-27/Orders.d.ts | 72 +++++ types/2020-08-27/PaymentIntents.d.ts | 282 ++++++++++++++++++ types/2020-08-27/PaymentMethods.d.ts | 52 ++++ types/2020-08-27/SetupAttempts.d.ts | 4 + types/2020-08-27/SetupIntents.d.ts | 93 ++++++ types/2020-08-27/Subscriptions.d.ts | 3 + types/2020-08-27/index.d.ts | 4 + 16 files changed, 830 insertions(+) create mode 100644 OPENAPI_VERSION create mode 100644 lib/resources/Apps/Secrets.js create mode 100644 types/2020-08-27/Apps/Secrets.d.ts diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION new file mode 100644 index 0000000000..19a48dddde --- /dev/null +++ b/OPENAPI_VERSION @@ -0,0 +1 @@ +v146 \ No newline at end of file diff --git a/lib/resources.js b/lib/resources.js index ed98980bd5..16dae7b232 100644 --- a/lib/resources.js +++ b/lib/resources.js @@ -55,6 +55,9 @@ module.exports = { Topups: require('./resources/Topups'), Transfers: require('./resources/Transfers'), WebhookEndpoints: require('./resources/WebhookEndpoints'), + Apps: resourceNamespace('apps', { + Secrets: require('./resources/Apps/Secrets'), + }), BillingPortal: resourceNamespace('billingPortal', { Configurations: require('./resources/BillingPortal/Configurations'), Sessions: require('./resources/BillingPortal/Sessions'), diff --git a/lib/resources/Apps/Secrets.js b/lib/resources/Apps/Secrets.js new file mode 100644 index 0000000000..238037508f --- /dev/null +++ b/lib/resources/Apps/Secrets.js @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec + +'use strict'; + +const StripeResource = require('../../StripeResource'); +const stripeMethod = StripeResource.method; + +module.exports = StripeResource.extend({ + path: 'apps/secrets', + + create: stripeMethod({ + method: 'POST', + path: '', + }), + + list: stripeMethod({ + method: 'GET', + path: '', + methodType: 'list', + }), + + deleteWhere: stripeMethod({ + method: 'POST', + path: '/delete', + }), + + find: stripeMethod({ + method: 'GET', + path: '/find', + }), +}); diff --git a/test/resources/generated_examples_test.spec.js b/test/resources/generated_examples_test.spec.js index 3e05a0d5b5..3e6f355919 100644 --- a/test/resources/generated_examples_test.spec.js +++ b/test/resources/generated_examples_test.spec.js @@ -850,6 +850,33 @@ describe('Treasury.ReceivedDebit', function() { }); }); +describe('Apps.Secret', function() { + it('create method', async function() { + const secret = await stripe.apps.secrets.create({ + name: 'sec_123', + payload: 'very secret string', + scope: {type: 'account'}, + }); + expect(secret).not.to.be.null; + }); + + it('find method', async function() { + const secret = await stripe.apps.secrets.find({ + name: 'sec_123', + scope: {type: 'account'}, + }); + expect(secret).not.to.be.null; + }); + + it('deleteWhere method', async function() { + const secret = await stripe.apps.secrets.deleteWhere({ + name: 'sec_123', + scope: {type: 'account'}, + }); + expect(secret).not.to.be.null; + }); +}); + describe('Charge', function() { it('create method', async function() { const charge = await stripe.charges.create({ diff --git a/types/2020-08-27/Apps/Secrets.d.ts b/types/2020-08-27/Apps/Secrets.d.ts new file mode 100644 index 0000000000..d274df3c9e --- /dev/null +++ b/types/2020-08-27/Apps/Secrets.d.ts @@ -0,0 +1,241 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace Apps { + /** + * The Secret object. + */ + interface Secret { + /** + * Unique identifier for the object. + */ + id: string; + + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: 'apps.secret'; + + /** + * Time at which the object was created. Measured in seconds since the Unix epoch. + */ + created: number; + + /** + * If true, indicates that this secret has been deleted + */ + deleted?: boolean; + + /** + * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + */ + livemode: boolean; + + /** + * A name for the secret that's unique within the scope. + */ + name: string; + + /** + * The plaintext secret value to be stored. + */ + payload: string | null; + + scope: Secret.Scope; + } + + namespace Secret { + interface Scope { + /** + * The secret scope type. + */ + type: Scope.Type; + + /** + * The user ID, if type is set to "user" + */ + user?: string; + } + + namespace Scope { + type Type = 'account' | 'user'; + } + } + + interface SecretCreateParams { + /** + * A name for the secret that's unique within the scope. + */ + name: string; + + /** + * The plaintext secret value to be stored. + */ + payload: string; + + /** + * Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user. + */ + scope: SecretCreateParams.Scope; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + namespace SecretCreateParams { + interface Scope { + /** + * The secret scope type. + */ + type: Scope.Type; + + /** + * The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`. + */ + user?: string; + } + + namespace Scope { + type Type = 'account' | 'user'; + } + } + + interface SecretListParams extends PaginationParams { + /** + * Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user. + */ + scope: SecretListParams.Scope; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + namespace SecretListParams { + interface Scope { + /** + * The secret scope type. + */ + type: Scope.Type; + + /** + * The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`. + */ + user?: string; + } + + namespace Scope { + type Type = 'account' | 'user'; + } + } + + interface SecretDeleteWhereParams { + /** + * A name for the secret that's unique within the scope. + */ + name: string; + + /** + * Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user. + */ + scope: SecretDeleteWhereParams.Scope; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + namespace SecretDeleteWhereParams { + interface Scope { + /** + * The secret scope type. + */ + type: Scope.Type; + + /** + * The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`. + */ + user?: string; + } + + namespace Scope { + type Type = 'account' | 'user'; + } + } + + interface SecretFindParams { + /** + * A name for the secret that's unique within the scope. + */ + name: string; + + /** + * Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user. + */ + scope: SecretFindParams.Scope; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + namespace SecretFindParams { + interface Scope { + /** + * The secret scope type. + */ + type: Scope.Type; + + /** + * The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`. + */ + user?: string; + } + + namespace Scope { + type Type = 'account' | 'user'; + } + } + + class SecretsResource { + /** + * Create or replace a secret in the secret store. + */ + create( + params: SecretCreateParams, + options?: RequestOptions + ): Promise>; + + /** + * List all secrets stored on the given scope. + */ + list( + params: SecretListParams, + options?: RequestOptions + ): ApiListPromise; + + /** + * Deletes a secret from the secret store by name and scope. + */ + deleteWhere( + params: SecretDeleteWhereParams, + options?: RequestOptions + ): Promise>; + + /** + * Finds a secret in the secret store by name and scope. + */ + find( + params: SecretFindParams, + options?: RequestOptions + ): Promise>; + } + } + } +} diff --git a/types/2020-08-27/Charges.d.ts b/types/2020-08-27/Charges.d.ts index bca649c06c..5223d7e409 100644 --- a/types/2020-08-27/Charges.d.ts +++ b/types/2020-08-27/Charges.d.ts @@ -388,6 +388,8 @@ declare module 'stripe' { acss_debit?: PaymentMethodDetails.AcssDebit; + affirm?: PaymentMethodDetails.Affirm; + afterpay_clearpay?: PaymentMethodDetails.AfterpayClearpay; alipay?: PaymentMethodDetails.Alipay; @@ -422,6 +424,8 @@ declare module 'stripe' { konbini?: PaymentMethodDetails.Konbini; + link?: PaymentMethodDetails.Link; + multibanco?: PaymentMethodDetails.Multibanco; oxxo?: PaymentMethodDetails.Oxxo; @@ -543,6 +547,8 @@ declare module 'stripe' { transit_number: string | null; } + interface Affirm {} + interface AfterpayClearpay { /** * Order identifier shown to the merchant in Afterpay's online portal. @@ -1469,6 +1475,8 @@ declare module 'stripe' { } } + interface Link {} + interface Multibanco { /** * Entity number associated with this Multibanco payment. diff --git a/types/2020-08-27/Customers.d.ts b/types/2020-08-27/Customers.d.ts index 76eb3d16ed..02e56eade7 100644 --- a/types/2020-08-27/Customers.d.ts +++ b/types/2020-08-27/Customers.d.ts @@ -810,6 +810,7 @@ declare module 'stripe' { namespace CustomerListPaymentMethodsParams { type Type = | 'acss_debit' + | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'au_becs_debit' @@ -826,6 +827,7 @@ declare module 'stripe' { | 'ideal' | 'klarna' | 'konbini' + | 'link' | 'oxxo' | 'p24' | 'paynow' diff --git a/types/2020-08-27/Invoices.d.ts b/types/2020-08-27/Invoices.d.ts index 5ac7c9c39d..03d7766fc6 100644 --- a/types/2020-08-27/Invoices.d.ts +++ b/types/2020-08-27/Invoices.d.ts @@ -745,6 +745,7 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'konbini' + | 'link' | 'paynow' | 'sepa_credit_transfer' | 'sepa_debit' @@ -1193,6 +1194,7 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'konbini' + | 'link' | 'paynow' | 'sepa_credit_transfer' | 'sepa_debit' @@ -1533,6 +1535,7 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'konbini' + | 'link' | 'paynow' | 'sepa_credit_transfer' | 'sepa_debit' diff --git a/types/2020-08-27/Mandates.d.ts b/types/2020-08-27/Mandates.d.ts index e9a9d5055b..a6ad83a9d2 100644 --- a/types/2020-08-27/Mandates.d.ts +++ b/types/2020-08-27/Mandates.d.ts @@ -91,6 +91,8 @@ declare module 'stripe' { card?: PaymentMethodDetails.Card; + link?: PaymentMethodDetails.Link; + sepa_debit?: PaymentMethodDetails.SepaDebit; /** @@ -162,6 +164,8 @@ declare module 'stripe' { interface Card {} + interface Link {} + interface SepaDebit { /** * The unique reference of the mandate. diff --git a/types/2020-08-27/Orders.d.ts b/types/2020-08-27/Orders.d.ts index 57321e49ef..53d5318033 100644 --- a/types/2020-08-27/Orders.d.ts +++ b/types/2020-08-27/Orders.d.ts @@ -1161,6 +1161,11 @@ declare module 'stripe' { */ klarna?: PaymentMethodOptions.Klarna; + /** + * If paying by `link`, this sub-hash contains details about the Link payment method options to pass to the order's PaymentIntent. + */ + link?: PaymentMethodOptions.Link; + /** * If paying by `oxxo`, this sub-hash contains details about the OXXO payment method options to pass to the order's PaymentIntent. */ @@ -1464,6 +1469,37 @@ declare module 'stripe' { | 'sv-SE'; } + interface Link { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top-level `capture_method` when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + + /** + * Token used for persistent Link logins. + */ + persistent_token?: 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; + } + + namespace Link { + type SetupFutureUsage = 'none' | 'off_session'; + } + 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. @@ -2145,6 +2181,11 @@ declare module 'stripe' { */ klarna?: Stripe.Emptyable; + /** + * If paying by `link`, this sub-hash contains details about the Link payment method options to pass to the order's PaymentIntent. + */ + link?: Stripe.Emptyable; + /** * If paying by `oxxo`, this sub-hash contains details about the OXXO payment method options to pass to the order's PaymentIntent. */ @@ -2448,6 +2489,37 @@ declare module 'stripe' { | 'sv-SE'; } + interface Link { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top-level `capture_method` when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + + /** + * Token used for persistent Link logins. + */ + persistent_token?: 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; + } + + namespace Link { + type SetupFutureUsage = 'none' | 'off_session'; + } + 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. diff --git a/types/2020-08-27/PaymentIntents.d.ts b/types/2020-08-27/PaymentIntents.d.ts index 3bb43c7853..bd1bd66593 100644 --- a/types/2020-08-27/PaymentIntents.d.ts +++ b/types/2020-08-27/PaymentIntents.d.ts @@ -727,6 +727,8 @@ declare module 'stripe' { interface PaymentMethodOptions { acss_debit?: PaymentMethodOptions.AcssDebit; + affirm?: PaymentMethodOptions.Affirm; + afterpay_clearpay?: PaymentMethodOptions.AfterpayClearpay; alipay?: PaymentMethodOptions.Alipay; @@ -761,6 +763,8 @@ declare module 'stripe' { konbini?: PaymentMethodOptions.Konbini; + link?: PaymentMethodOptions.Link; + oxxo?: PaymentMethodOptions.Oxxo; p24?: PaymentMethodOptions.P24; @@ -829,6 +833,22 @@ declare module 'stripe' { type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; } + interface Affirm { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + + /** + * 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 AfterpayClearpay { /** * Controls when the funds will be captured from the customer's account. @@ -1277,6 +1297,31 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface Link { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + + /** + * Token used for persistent Link logins. + */ + persistent_token: string | null; + + /** + * 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?: Link.SetupFutureUsage; + } + + namespace Link { + type SetupFutureUsage = 'none' | 'off_session'; + } + 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. @@ -1738,6 +1783,11 @@ declare module 'stripe' { */ acss_debit?: PaymentMethodData.AcssDebit; + /** + * If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. + */ + affirm?: PaymentMethodData.Affirm; + /** * If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method. */ @@ -1818,6 +1868,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodData.Konbini; + /** + * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + */ + link?: PaymentMethodData.Link; + /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. */ @@ -1882,6 +1937,8 @@ declare module 'stripe' { transit_number: string; } + interface Affirm {} + interface AfterpayClearpay {} interface Alipay {} @@ -2084,6 +2141,8 @@ declare module 'stripe' { interface Konbini {} + interface Link {} + interface Oxxo {} interface P24 { @@ -2144,6 +2203,7 @@ declare module 'stripe' { type Type = | 'acss_debit' + | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'au_becs_debit' @@ -2158,6 +2218,7 @@ declare module 'stripe' { | 'ideal' | 'klarna' | 'konbini' + | 'link' | 'oxxo' | 'p24' | 'paynow' @@ -2208,6 +2269,11 @@ declare module 'stripe' { */ acss_debit?: Stripe.Emptyable; + /** + * If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options. + */ + affirm?: Stripe.Emptyable; + /** * If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options. */ @@ -2297,6 +2363,11 @@ declare module 'stripe' { */ konbini?: Stripe.Emptyable; + /** + * If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + */ + link?: Stripe.Emptyable; + /** * If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. */ @@ -2393,6 +2464,28 @@ declare module 'stripe' { type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; } + interface Affirm { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top-level `capture_method` when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + + /** + * 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?: 'none'; + } + interface AfterpayClearpay { /** * Controls when the funds will be captured from the customer's account. @@ -2894,6 +2987,37 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface Link { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top-level `capture_method` when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + + /** + * Token used for persistent Link logins. + */ + persistent_token?: 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; + } + + namespace Link { + type SetupFutureUsage = 'none' | 'off_session'; + } + 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. @@ -3273,6 +3397,11 @@ declare module 'stripe' { */ acss_debit?: PaymentMethodData.AcssDebit; + /** + * If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. + */ + affirm?: PaymentMethodData.Affirm; + /** * If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method. */ @@ -3353,6 +3482,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodData.Konbini; + /** + * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + */ + link?: PaymentMethodData.Link; + /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. */ @@ -3417,6 +3551,8 @@ declare module 'stripe' { transit_number: string; } + interface Affirm {} + interface AfterpayClearpay {} interface Alipay {} @@ -3619,6 +3755,8 @@ declare module 'stripe' { interface Konbini {} + interface Link {} + interface Oxxo {} interface P24 { @@ -3679,6 +3817,7 @@ declare module 'stripe' { type Type = | 'acss_debit' + | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'au_becs_debit' @@ -3693,6 +3832,7 @@ declare module 'stripe' { | 'ideal' | 'klarna' | 'konbini' + | 'link' | 'oxxo' | 'p24' | 'paynow' @@ -3743,6 +3883,11 @@ declare module 'stripe' { */ acss_debit?: Stripe.Emptyable; + /** + * If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options. + */ + affirm?: Stripe.Emptyable; + /** * If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options. */ @@ -3832,6 +3977,11 @@ declare module 'stripe' { */ konbini?: Stripe.Emptyable; + /** + * If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + */ + link?: Stripe.Emptyable; + /** * If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. */ @@ -3928,6 +4078,28 @@ declare module 'stripe' { type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; } + interface Affirm { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top-level `capture_method` when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + + /** + * 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?: 'none'; + } + interface AfterpayClearpay { /** * Controls when the funds will be captured from the customer's account. @@ -4429,6 +4601,37 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface Link { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top-level `capture_method` when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + + /** + * Token used for persistent Link logins. + */ + persistent_token?: 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; + } + + namespace Link { + type SetupFutureUsage = 'none' | 'off_session'; + } + 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. @@ -4945,6 +5148,11 @@ declare module 'stripe' { */ acss_debit?: PaymentMethodData.AcssDebit; + /** + * If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. + */ + affirm?: PaymentMethodData.Affirm; + /** * If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method. */ @@ -5025,6 +5233,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodData.Konbini; + /** + * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + */ + link?: PaymentMethodData.Link; + /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. */ @@ -5089,6 +5302,8 @@ declare module 'stripe' { transit_number: string; } + interface Affirm {} + interface AfterpayClearpay {} interface Alipay {} @@ -5291,6 +5506,8 @@ declare module 'stripe' { interface Konbini {} + interface Link {} + interface Oxxo {} interface P24 { @@ -5351,6 +5568,7 @@ declare module 'stripe' { type Type = | 'acss_debit' + | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'au_becs_debit' @@ -5365,6 +5583,7 @@ declare module 'stripe' { | 'ideal' | 'klarna' | 'konbini' + | 'link' | 'oxxo' | 'p24' | 'paynow' @@ -5415,6 +5634,11 @@ declare module 'stripe' { */ acss_debit?: Stripe.Emptyable; + /** + * If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options. + */ + affirm?: Stripe.Emptyable; + /** * If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options. */ @@ -5504,6 +5728,11 @@ declare module 'stripe' { */ konbini?: Stripe.Emptyable; + /** + * If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + */ + link?: Stripe.Emptyable; + /** * If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. */ @@ -5600,6 +5829,28 @@ declare module 'stripe' { type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; } + interface Affirm { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top-level `capture_method` when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + + /** + * 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?: 'none'; + } + interface AfterpayClearpay { /** * Controls when the funds will be captured from the customer's account. @@ -6101,6 +6352,37 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface Link { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top-level `capture_method` when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + + /** + * Token used for persistent Link logins. + */ + persistent_token?: 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; + } + + namespace Link { + type SetupFutureUsage = 'none' | 'off_session'; + } + 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. diff --git a/types/2020-08-27/PaymentMethods.d.ts b/types/2020-08-27/PaymentMethods.d.ts index 5c0f61c085..069274436f 100644 --- a/types/2020-08-27/PaymentMethods.d.ts +++ b/types/2020-08-27/PaymentMethods.d.ts @@ -18,6 +18,8 @@ declare module 'stripe' { acss_debit?: PaymentMethod.AcssDebit; + affirm?: PaymentMethod.Affirm; + afterpay_clearpay?: PaymentMethod.AfterpayClearpay; alipay?: PaymentMethod.Alipay; @@ -64,6 +66,8 @@ declare module 'stripe' { konbini?: PaymentMethod.Konbini; + link?: PaymentMethod.Link; + /** * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. */ @@ -122,6 +126,8 @@ declare module 'stripe' { transit_number: string | null; } + interface Affirm {} + interface AfterpayClearpay {} interface Alipay {} @@ -548,6 +554,18 @@ declare module 'stripe' { interface Konbini {} + interface Link { + /** + * Account owner's email address. + */ + email: string | null; + + /** + * Token used for persistent Link logins. + */ + persistent_token?: string; + } + interface Oxxo {} interface P24 { @@ -643,6 +661,7 @@ declare module 'stripe' { type Type = | 'acss_debit' + | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'au_becs_debit' @@ -660,6 +679,7 @@ declare module 'stripe' { | 'interac_present' | 'klarna' | 'konbini' + | 'link' | 'oxxo' | 'p24' | 'paynow' @@ -741,6 +761,11 @@ declare module 'stripe' { */ acss_debit?: PaymentMethodCreateParams.AcssDebit; + /** + * If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. + */ + affirm?: PaymentMethodCreateParams.Affirm; + /** * If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method. */ @@ -836,6 +861,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodCreateParams.Konbini; + /** + * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + */ + link?: PaymentMethodCreateParams.Link; + /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. */ @@ -905,6 +935,8 @@ declare module 'stripe' { transit_number: string; } + interface Affirm {} + interface AfterpayClearpay {} interface Alipay {} @@ -1133,6 +1165,8 @@ declare module 'stripe' { interface Konbini {} + interface Link {} + interface Oxxo {} interface P24 { @@ -1193,6 +1227,7 @@ declare module 'stripe' { type Type = | 'acss_debit' + | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'au_becs_debit' @@ -1208,6 +1243,7 @@ declare module 'stripe' { | 'ideal' | 'klarna' | 'konbini' + | 'link' | 'oxxo' | 'p24' | 'paynow' @@ -1265,6 +1301,11 @@ declare module 'stripe' { */ acss_debit?: PaymentMethodUpdateParams.AcssDebit; + /** + * This is a legacy parameter that will be removed in the future. It is a hash that does not accept any keys. + */ + affirm?: PaymentMethodUpdateParams.Affirm; + /** * This is a legacy parameter that will be removed in the future. It is a hash that does not accept any keys. */ @@ -1290,6 +1331,11 @@ declare module 'stripe' { */ expand?: Array; + /** + * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + */ + link?: PaymentMethodUpdateParams.Link; + /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. */ @@ -1309,6 +1355,8 @@ declare module 'stripe' { namespace PaymentMethodUpdateParams { interface AcssDebit {} + interface Affirm {} + interface AuBecsDebit {} interface BacsDebit {} @@ -1353,6 +1401,8 @@ declare module 'stripe' { exp_year?: number; } + interface Link {} + interface SepaDebit {} interface UsBankAccount { @@ -1387,6 +1437,7 @@ declare module 'stripe' { namespace PaymentMethodListParams { type Type = | 'acss_debit' + | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'au_becs_debit' @@ -1403,6 +1454,7 @@ declare module 'stripe' { | 'ideal' | 'klarna' | 'konbini' + | 'link' | 'oxxo' | 'p24' | 'paynow' diff --git a/types/2020-08-27/SetupAttempts.d.ts b/types/2020-08-27/SetupAttempts.d.ts index 9989074730..65145527ad 100644 --- a/types/2020-08-27/SetupAttempts.d.ts +++ b/types/2020-08-27/SetupAttempts.d.ts @@ -87,6 +87,8 @@ declare module 'stripe' { ideal?: PaymentMethodDetails.Ideal; + link?: PaymentMethodDetails.Link; + sepa_debit?: PaymentMethodDetails.SepaDebit; sofort?: PaymentMethodDetails.Sofort; @@ -283,6 +285,8 @@ declare module 'stripe' { | 'TRIONL2U'; } + interface Link {} + interface SepaDebit {} interface Sofort { diff --git a/types/2020-08-27/SetupIntents.d.ts b/types/2020-08-27/SetupIntents.d.ts index 26a7496ef5..d4d3651ace 100644 --- a/types/2020-08-27/SetupIntents.d.ts +++ b/types/2020-08-27/SetupIntents.d.ts @@ -300,6 +300,8 @@ declare module 'stripe' { card?: PaymentMethodOptions.Card; + link?: PaymentMethodOptions.Link; + sepa_debit?: PaymentMethodOptions.SepaDebit; us_bank_account?: PaymentMethodOptions.UsBankAccount; @@ -435,6 +437,13 @@ declare module 'stripe' { type RequestThreeDSecure = 'any' | 'automatic' | 'challenge_only'; } + interface Link { + /** + * Token used for persistent Link logins. + */ + persistent_token: string | null; + } + interface SepaDebit { mandate_options?: SepaDebit.MandateOptions; } @@ -617,6 +626,11 @@ declare module 'stripe' { */ acss_debit?: PaymentMethodData.AcssDebit; + /** + * If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. + */ + affirm?: PaymentMethodData.Affirm; + /** * If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method. */ @@ -697,6 +711,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodData.Konbini; + /** + * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + */ + link?: PaymentMethodData.Link; + /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. */ @@ -761,6 +780,8 @@ declare module 'stripe' { transit_number: string; } + interface Affirm {} + interface AfterpayClearpay {} interface Alipay {} @@ -963,6 +984,8 @@ declare module 'stripe' { interface Konbini {} + interface Link {} + interface Oxxo {} interface P24 { @@ -1023,6 +1046,7 @@ declare module 'stripe' { type Type = | 'acss_debit' + | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'au_becs_debit' @@ -1037,6 +1061,7 @@ declare module 'stripe' { | 'ideal' | 'klarna' | 'konbini' + | 'link' | 'oxxo' | 'p24' | 'paynow' @@ -1092,6 +1117,11 @@ declare module 'stripe' { */ card?: PaymentMethodOptions.Card; + /** + * If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + */ + link?: PaymentMethodOptions.Link; + /** * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options. */ @@ -1245,6 +1275,13 @@ declare module 'stripe' { type RequestThreeDSecure = 'any' | 'automatic'; } + interface Link { + /** + * Token used for persistent Link logins. + */ + persistent_token?: string; + } + interface SepaDebit { /** * Additional fields for Mandate creation @@ -1388,6 +1425,11 @@ declare module 'stripe' { */ acss_debit?: PaymentMethodData.AcssDebit; + /** + * If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. + */ + affirm?: PaymentMethodData.Affirm; + /** * If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method. */ @@ -1468,6 +1510,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodData.Konbini; + /** + * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + */ + link?: PaymentMethodData.Link; + /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. */ @@ -1532,6 +1579,8 @@ declare module 'stripe' { transit_number: string; } + interface Affirm {} + interface AfterpayClearpay {} interface Alipay {} @@ -1734,6 +1783,8 @@ declare module 'stripe' { interface Konbini {} + interface Link {} + interface Oxxo {} interface P24 { @@ -1794,6 +1845,7 @@ declare module 'stripe' { type Type = | 'acss_debit' + | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'au_becs_debit' @@ -1808,6 +1860,7 @@ declare module 'stripe' { | 'ideal' | 'klarna' | 'konbini' + | 'link' | 'oxxo' | 'p24' | 'paynow' @@ -1863,6 +1916,11 @@ declare module 'stripe' { */ card?: PaymentMethodOptions.Card; + /** + * If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + */ + link?: PaymentMethodOptions.Link; + /** * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options. */ @@ -2016,6 +2074,13 @@ declare module 'stripe' { type RequestThreeDSecure = 'any' | 'automatic'; } + interface Link { + /** + * Token used for persistent Link logins. + */ + persistent_token?: string; + } + interface SepaDebit { /** * Additional fields for Mandate creation @@ -2250,6 +2315,11 @@ declare module 'stripe' { */ acss_debit?: PaymentMethodData.AcssDebit; + /** + * If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. + */ + affirm?: PaymentMethodData.Affirm; + /** * If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method. */ @@ -2330,6 +2400,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodData.Konbini; + /** + * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + */ + link?: PaymentMethodData.Link; + /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. */ @@ -2394,6 +2469,8 @@ declare module 'stripe' { transit_number: string; } + interface Affirm {} + interface AfterpayClearpay {} interface Alipay {} @@ -2596,6 +2673,8 @@ declare module 'stripe' { interface Konbini {} + interface Link {} + interface Oxxo {} interface P24 { @@ -2656,6 +2735,7 @@ declare module 'stripe' { type Type = | 'acss_debit' + | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'au_becs_debit' @@ -2670,6 +2750,7 @@ declare module 'stripe' { | 'ideal' | 'klarna' | 'konbini' + | 'link' | 'oxxo' | 'p24' | 'paynow' @@ -2725,6 +2806,11 @@ declare module 'stripe' { */ card?: PaymentMethodOptions.Card; + /** + * If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + */ + link?: PaymentMethodOptions.Link; + /** * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options. */ @@ -2878,6 +2964,13 @@ declare module 'stripe' { type RequestThreeDSecure = 'any' | 'automatic'; } + interface Link { + /** + * Token used for persistent Link logins. + */ + persistent_token?: string; + } + interface SepaDebit { /** * Additional fields for Mandate creation diff --git a/types/2020-08-27/Subscriptions.d.ts b/types/2020-08-27/Subscriptions.d.ts index 2a7e26ef64..e53404cec5 100644 --- a/types/2020-08-27/Subscriptions.d.ts +++ b/types/2020-08-27/Subscriptions.d.ts @@ -429,6 +429,7 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'konbini' + | 'link' | 'paynow' | 'sepa_credit_transfer' | 'sepa_debit' @@ -1046,6 +1047,7 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'konbini' + | 'link' | 'paynow' | 'sepa_credit_transfer' | 'sepa_debit' @@ -1668,6 +1670,7 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'konbini' + | 'link' | 'paynow' | 'sepa_credit_transfer' | 'sepa_debit' diff --git a/types/2020-08-27/index.d.ts b/types/2020-08-27/index.d.ts index 6604db30ec..0cea652d02 100644 --- a/types/2020-08-27/index.d.ts +++ b/types/2020-08-27/index.d.ts @@ -13,6 +13,7 @@ /// /// /// +/// /// /// /// @@ -198,6 +199,9 @@ declare module 'stripe' { /** * Namespaced Resources */ + apps: { + secrets: Stripe.Apps.SecretsResource; + }; billingPortal: { configurations: Stripe.BillingPortal.ConfigurationsResource; sessions: Stripe.BillingPortal.SessionsResource;