diff --git a/types/2020-08-27/Accounts.d.ts b/types/2020-08-27/Accounts.d.ts index 5db89eea0d..0348aeb10e 100644 --- a/types/2020-08-27/Accounts.d.ts +++ b/types/2020-08-27/Accounts.d.ts @@ -236,6 +236,11 @@ declare module 'stripe' { */ klarna_payments?: Capabilities.KlarnaPayments; + /** + * The status of the konbini payments capability of the account, or whether the account can directly process konbini charges. + */ + konbini_payments?: Capabilities.KonbiniPayments; + /** * The status of the legacy payments capability of the account. */ @@ -310,6 +315,8 @@ declare module 'stripe' { type KlarnaPayments = 'active' | 'inactive' | 'pending'; + type KonbiniPayments = 'active' | 'inactive' | 'pending'; + type LegacyPayments = 'active' | 'inactive' | 'pending'; type OxxoPayments = 'active' | 'inactive' | 'pending'; @@ -1243,6 +1250,11 @@ declare module 'stripe' { */ klarna_payments?: Capabilities.KlarnaPayments; + /** + * The konbini_payments capability. + */ + konbini_payments?: Capabilities.KonbiniPayments; + /** * The legacy_payments capability. */ @@ -1397,6 +1409,13 @@ declare module 'stripe' { requested?: boolean; } + interface KonbiniPayments { + /** + * 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 LegacyPayments { /** * 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. @@ -2313,6 +2332,11 @@ declare module 'stripe' { */ klarna_payments?: Capabilities.KlarnaPayments; + /** + * The konbini_payments capability. + */ + konbini_payments?: Capabilities.KonbiniPayments; + /** * The legacy_payments capability. */ @@ -2467,6 +2491,13 @@ declare module 'stripe' { requested?: boolean; } + interface KonbiniPayments { + /** + * 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 LegacyPayments { /** * 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. diff --git a/types/2020-08-27/BillingPortal/Configurations.d.ts b/types/2020-08-27/BillingPortal/Configurations.d.ts index 348db450d1..0ec96e494d 100644 --- a/types/2020-08-27/BillingPortal/Configurations.d.ts +++ b/types/2020-08-27/BillingPortal/Configurations.d.ts @@ -72,12 +72,12 @@ declare module 'stripe' { /** * A link to the business's publicly available privacy policy. */ - privacy_policy_url: string; + privacy_policy_url: string | null; /** * A link to the business's publicly available terms of service. */ - terms_of_service_url: string; + terms_of_service_url: string | null; } interface Features { @@ -273,12 +273,12 @@ declare module 'stripe' { /** * A link to the business's publicly available privacy policy. */ - privacy_policy_url: string; + privacy_policy_url?: string; /** * A link to the business's publicly available terms of service. */ - terms_of_service_url: string; + terms_of_service_url?: string; } interface Features { @@ -509,12 +509,12 @@ declare module 'stripe' { /** * A link to the business's publicly available privacy policy. */ - privacy_policy_url?: string; + privacy_policy_url?: Stripe.Emptyable; /** * A link to the business's publicly available terms of service. */ - terms_of_service_url?: string; + terms_of_service_url?: Stripe.Emptyable; } interface Features { diff --git a/types/2020-08-27/Charges.d.ts b/types/2020-08-27/Charges.d.ts index bb2fa18d45..325e58f834 100644 --- a/types/2020-08-27/Charges.d.ts +++ b/types/2020-08-27/Charges.d.ts @@ -418,6 +418,8 @@ declare module 'stripe' { klarna?: PaymentMethodDetails.Klarna; + konbini?: PaymentMethodDetails.Konbini; + multibanco?: PaymentMethodDetails.Multibanco; oxxo?: PaymentMethodDetails.Oxxo; @@ -1424,6 +1426,26 @@ declare module 'stripe' { preferred_locale: string | null; } + interface Konbini { + /** + * If the payment succeeded, this contains the details of the convenience store where the payment was completed. + */ + store: Konbini.Store | null; + } + + namespace Konbini { + interface Store { + /** + * The name of the convenience store chain where the payment was completed. + */ + chain: Store.Chain | null; + } + + namespace Store { + type Chain = 'familymart' | 'lawson' | 'ministop' | 'seicomart'; + } + } + interface Multibanco { /** * Entity number associated with this Multibanco payment. diff --git a/types/2020-08-27/Checkout/Sessions.d.ts b/types/2020-08-27/Checkout/Sessions.d.ts index 3bc12d8024..675a955836 100644 --- a/types/2020-08-27/Checkout/Sessions.d.ts +++ b/types/2020-08-27/Checkout/Sessions.d.ts @@ -437,6 +437,8 @@ declare module 'stripe' { boleto?: PaymentMethodOptions.Boleto; + konbini?: PaymentMethodOptions.Konbini; + oxxo?: PaymentMethodOptions.Oxxo; } @@ -498,6 +500,13 @@ declare module 'stripe' { expires_after_days: number; } + interface Konbini { + /** + * The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. + */ + expires_after_days: number | null; + } + 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. @@ -1506,6 +1515,11 @@ declare module 'stripe' { */ boleto?: PaymentMethodOptions.Boleto; + /** + * contains details about the Konbini payment method options. + */ + konbini?: PaymentMethodOptions.Konbini; + /** * contains details about the OXXO payment method options. */ @@ -1585,6 +1599,13 @@ declare module 'stripe' { expires_after_days?: number; } + interface Konbini { + /** + * The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days. + */ + expires_after_days?: Stripe.Emptyable; + } + 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. @@ -1624,6 +1645,7 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'klarna' + | 'konbini' | 'oxxo' | 'p24' | 'sepa_debit' diff --git a/types/2020-08-27/Customers.d.ts b/types/2020-08-27/Customers.d.ts index b794c1a51e..cef1b44a74 100644 --- a/types/2020-08-27/Customers.d.ts +++ b/types/2020-08-27/Customers.d.ts @@ -696,6 +696,7 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'klarna' + | 'konbini' | 'oxxo' | 'p24' | 'sepa_debit' diff --git a/types/2020-08-27/Invoices.d.ts b/types/2020-08-27/Invoices.d.ts index d076fb073d..8630f32ccf 100644 --- a/types/2020-08-27/Invoices.d.ts +++ b/types/2020-08-27/Invoices.d.ts @@ -603,6 +603,11 @@ declare module 'stripe' { * If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent. */ card: PaymentMethodOptions.Card | null; + + /** + * If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent. + */ + konbini: PaymentMethodOptions.Konbini | null; } namespace PaymentMethodOptions { @@ -651,6 +656,8 @@ declare module 'stripe' { namespace Card { type RequestThreeDSecure = 'any' | 'automatic'; } + + interface Konbini {} } type PaymentMethodType = @@ -666,6 +673,7 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'konbini' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' @@ -966,6 +974,11 @@ declare module 'stripe' { * If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent. */ card?: Stripe.Emptyable; + + /** + * If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent. + */ + konbini?: Stripe.Emptyable; } namespace PaymentMethodOptions { @@ -1017,6 +1030,8 @@ declare module 'stripe' { namespace Card { type RequestThreeDSecure = 'any' | 'automatic'; } + + interface Konbini {} } type PaymentMethodType = @@ -1032,6 +1047,7 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'konbini' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' @@ -1224,6 +1240,11 @@ declare module 'stripe' { * If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent. */ card?: Stripe.Emptyable; + + /** + * If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent. + */ + konbini?: Stripe.Emptyable; } namespace PaymentMethodOptions { @@ -1275,6 +1296,8 @@ declare module 'stripe' { namespace Card { type RequestThreeDSecure = 'any' | 'automatic'; } + + interface Konbini {} } type PaymentMethodType = @@ -1290,6 +1313,7 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'konbini' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' diff --git a/types/2020-08-27/PaymentIntents.d.ts b/types/2020-08-27/PaymentIntents.d.ts index 9be458c38d..2dbdac2a63 100644 --- a/types/2020-08-27/PaymentIntents.d.ts +++ b/types/2020-08-27/PaymentIntents.d.ts @@ -341,6 +341,8 @@ declare module 'stripe' { boleto_display_details?: NextAction.BoletoDisplayDetails; + konbini_display_details?: NextAction.KonbiniDisplayDetails; + oxxo_display_details?: NextAction.OxxoDisplayDetails; redirect_to_url?: NextAction.RedirectToUrl; @@ -409,6 +411,94 @@ declare module 'stripe' { pdf: string | null; } + interface KonbiniDisplayDetails { + /** + * The timestamp at which the pending Konbini payment expires. + */ + expires_at: number; + + /** + * The URL for the Konbini payment instructions page, which allows customers to view and print a Konbini voucher. + */ + hosted_voucher_url: string | null; + + stores: KonbiniDisplayDetails.Stores; + } + + namespace KonbiniDisplayDetails { + interface Stores { + /** + * FamilyMart instruction details. + */ + familymart: Stores.Familymart | null; + + /** + * Lawson instruction details. + */ + lawson: Stores.Lawson | null; + + /** + * Ministop instruction details. + */ + ministop: Stores.Ministop | null; + + /** + * Seicomart instruction details. + */ + seicomart: Stores.Seicomart | null; + } + + namespace Stores { + interface Familymart { + /** + * The confirmation number. + */ + confirmation_number?: string; + + /** + * The payment code. + */ + payment_code: string; + } + + interface Lawson { + /** + * The confirmation number. + */ + confirmation_number?: string; + + /** + * The payment code. + */ + payment_code: string; + } + + interface Ministop { + /** + * The confirmation number. + */ + confirmation_number?: string; + + /** + * The payment code. + */ + payment_code: string; + } + + interface Seicomart { + /** + * The confirmation number. + */ + confirmation_number?: string; + + /** + * The payment code. + */ + payment_code: string; + } + } + } + interface OxxoDisplayDetails { /** * The timestamp after which the OXXO voucher expires. @@ -552,6 +642,8 @@ declare module 'stripe' { klarna?: PaymentMethodOptions.Klarna; + konbini?: PaymentMethodOptions.Konbini; + oxxo?: PaymentMethodOptions.Oxxo; p24?: PaymentMethodOptions.P24; @@ -900,6 +992,37 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface Konbini { + /** + * An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. + */ + confirmation_number: string | null; + + /** + * The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. + */ + expires_after_days: number | null; + + /** + * The timestamp at which the Konbini payment instructions will expire. Only one of `expires_after_days` or `expires_at` may be set. + */ + expires_at: number | null; + + /** + * A product descriptor of up to 22 characters, which will appear to customers at the convenience store. + */ + product_description: 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?: 'none'; + } + interface Oxxo { /** * The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -1360,6 +1483,11 @@ declare module 'stripe' { */ klarna?: PaymentMethodData.Klarna; + /** + * If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method. + */ + konbini?: PaymentMethodData.Konbini; + /** * 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`. */ @@ -1612,6 +1740,8 @@ declare module 'stripe' { } } + interface Konbini {} + interface Oxxo {} interface P24 { @@ -1682,6 +1812,7 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'klarna' + | 'konbini' | 'oxxo' | 'p24' | 'sepa_debit' @@ -1774,6 +1905,11 @@ declare module 'stripe' { */ klarna?: Stripe.Emptyable; + /** + * If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options. + */ + konbini?: Stripe.Emptyable; + /** * If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. */ @@ -2194,6 +2330,39 @@ declare module 'stripe' { | 'sv-SE'; } + interface Konbini { + /** + * An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number. + */ + confirmation_number?: string; + + /** + * The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days. + */ + expires_after_days?: Stripe.Emptyable; + + /** + * The timestamp at which the Konbini payment instructions will expire. Only one of `expires_after_days` or `expires_at` may be set. + */ + expires_at?: Stripe.Emptyable; + + /** + * A product descriptor of up to 22 characters, which will appear to customers at the convenience store. + */ + product_description?: 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?: 'none'; + } + interface Oxxo { /** * The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -2565,6 +2734,11 @@ declare module 'stripe' { */ klarna?: PaymentMethodData.Klarna; + /** + * If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method. + */ + konbini?: PaymentMethodData.Konbini; + /** * 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`. */ @@ -2817,6 +2991,8 @@ declare module 'stripe' { } } + interface Konbini {} + interface Oxxo {} interface P24 { @@ -2887,6 +3063,7 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'klarna' + | 'konbini' | 'oxxo' | 'p24' | 'sepa_debit' @@ -2979,6 +3156,11 @@ declare module 'stripe' { */ klarna?: Stripe.Emptyable; + /** + * If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options. + */ + konbini?: Stripe.Emptyable; + /** * If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. */ @@ -3399,6 +3581,39 @@ declare module 'stripe' { | 'sv-SE'; } + interface Konbini { + /** + * An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number. + */ + confirmation_number?: string; + + /** + * The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days. + */ + expires_after_days?: Stripe.Emptyable; + + /** + * The timestamp at which the Konbini payment instructions will expire. Only one of `expires_after_days` or `expires_at` may be set. + */ + expires_at?: Stripe.Emptyable; + + /** + * A product descriptor of up to 22 characters, which will appear to customers at the convenience store. + */ + product_description?: 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?: 'none'; + } + interface Oxxo { /** * The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -3884,6 +4099,11 @@ declare module 'stripe' { */ klarna?: PaymentMethodData.Klarna; + /** + * If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method. + */ + konbini?: PaymentMethodData.Konbini; + /** * 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`. */ @@ -4136,6 +4356,8 @@ declare module 'stripe' { } } + interface Konbini {} + interface Oxxo {} interface P24 { @@ -4206,6 +4428,7 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'klarna' + | 'konbini' | 'oxxo' | 'p24' | 'sepa_debit' @@ -4298,6 +4521,11 @@ declare module 'stripe' { */ klarna?: Stripe.Emptyable; + /** + * If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options. + */ + konbini?: Stripe.Emptyable; + /** * If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. */ @@ -4718,6 +4946,39 @@ declare module 'stripe' { | 'sv-SE'; } + interface Konbini { + /** + * An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number. + */ + confirmation_number?: string; + + /** + * The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days. + */ + expires_after_days?: Stripe.Emptyable; + + /** + * The timestamp at which the Konbini payment instructions will expire. Only one of `expires_after_days` or `expires_at` may be set. + */ + expires_at?: Stripe.Emptyable; + + /** + * A product descriptor of up to 22 characters, which will appear to customers at the convenience store. + */ + product_description?: 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?: 'none'; + } + interface Oxxo { /** * The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. diff --git a/types/2020-08-27/PaymentMethods.d.ts b/types/2020-08-27/PaymentMethods.d.ts index b02bd0e831..f9c36e52cb 100644 --- a/types/2020-08-27/PaymentMethods.d.ts +++ b/types/2020-08-27/PaymentMethods.d.ts @@ -60,6 +60,8 @@ declare module 'stripe' { klarna?: PaymentMethod.Klarna; + konbini?: PaymentMethod.Konbini; + /** * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. */ @@ -536,6 +538,8 @@ declare module 'stripe' { } } + interface Konbini {} + interface Oxxo {} interface P24 { @@ -644,6 +648,7 @@ declare module 'stripe' { | 'ideal' | 'interac_present' | 'klarna' + | 'konbini' | 'oxxo' | 'p24' | 'sepa_debit' @@ -744,6 +749,11 @@ declare module 'stripe' { */ klarna?: PaymentMethodCreateParams.Klarna; + /** + * If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method. + */ + konbini?: PaymentMethodCreateParams.Konbini; + /** * 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`. */ @@ -1027,6 +1037,8 @@ declare module 'stripe' { } } + interface Konbini {} + interface Oxxo {} interface P24 { @@ -1098,6 +1110,7 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'klarna' + | 'konbini' | 'oxxo' | 'p24' | 'sepa_debit' @@ -1240,6 +1253,7 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'klarna' + | 'konbini' | 'oxxo' | 'p24' | 'sepa_debit' diff --git a/types/2020-08-27/Subscriptions.d.ts b/types/2020-08-27/Subscriptions.d.ts index 862a2e9679..71af485446 100644 --- a/types/2020-08-27/Subscriptions.d.ts +++ b/types/2020-08-27/Subscriptions.d.ts @@ -258,6 +258,11 @@ declare module 'stripe' { * This sub-hash contains details about the Card payment method options to pass to invoices created by the subscription. */ card: PaymentMethodOptions.Card | null; + + /** + * This sub-hash contains details about the Konbini payment method options to pass to invoices created by the subscription. + */ + konbini: PaymentMethodOptions.Konbini | null; } namespace PaymentMethodOptions { @@ -329,6 +334,8 @@ declare module 'stripe' { type RequestThreeDSecure = 'any' | 'automatic'; } + + interface Konbini {} } type PaymentMethodType = @@ -344,6 +351,7 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'konbini' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' @@ -780,6 +788,11 @@ declare module 'stripe' { * This sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent. */ card?: Stripe.Emptyable; + + /** + * This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent. + */ + konbini?: Stripe.Emptyable; } namespace PaymentMethodOptions { @@ -857,6 +870,8 @@ declare module 'stripe' { type RequestThreeDSecure = 'any' | 'automatic'; } + + interface Konbini {} } type PaymentMethodType = @@ -872,6 +887,7 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'konbini' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' @@ -1313,6 +1329,11 @@ declare module 'stripe' { * This sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent. */ card?: Stripe.Emptyable; + + /** + * This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent. + */ + konbini?: Stripe.Emptyable; } namespace PaymentMethodOptions { @@ -1390,6 +1411,8 @@ declare module 'stripe' { type RequestThreeDSecure = 'any' | 'automatic'; } + + interface Konbini {} } type PaymentMethodType = @@ -1405,6 +1428,7 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'konbini' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort'