From bb0a275c84d5b5e809bce890517169495e1d1cce Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Wed, 3 Jun 2020 12:19:22 -0700 Subject: [PATCH] Codegen for openapi 5a7b6ad --- types/2020-03-02/Accounts.d.ts | 9 +++++++++ types/2020-03-02/BillingPortal/Sessions.d.ts | 4 ++-- types/2020-03-02/Checkout/Sessions.d.ts | 2 +- types/2020-03-02/Mandates.d.ts | 9 +++++++++ types/2020-03-02/PaymentMethods.d.ts | 1 + types/2020-03-02/WebhookEndpoints.d.ts | 4 ++++ 6 files changed, 26 insertions(+), 3 deletions(-) diff --git a/types/2020-03-02/Accounts.d.ts b/types/2020-03-02/Accounts.d.ts index 3f849aa4a1..c143f531b4 100644 --- a/types/2020-03-02/Accounts.d.ts +++ b/types/2020-03-02/Accounts.d.ts @@ -152,6 +152,11 @@ declare module 'stripe' { */ au_becs_debit_payments?: Capabilities.AuBecsDebitPayments; + /** + * The status of the Bacs Direct Debits payments capability of the account, or whether the account can directly process Bacs Direct Debits charges. + */ + bacs_debit_payments?: Capabilities.BacsDebitPayments; + /** * The status of the card issuing capability of the account, or whether you can use Issuing to distribute funds on cards */ @@ -191,6 +196,8 @@ declare module 'stripe' { namespace Capabilities { type AuBecsDebitPayments = 'active' | 'inactive' | 'pending'; + type BacsDebitPayments = 'active' | 'inactive' | 'pending'; + type CardIssuing = 'active' | 'inactive' | 'pending'; type CardPayments = 'active' | 'inactive' | 'pending'; @@ -1177,6 +1184,7 @@ declare module 'stripe' { type RequestedCapability = | 'au_becs_debit_payments' + | 'bacs_debit_payments' | 'card_issuing' | 'card_payments' | 'jcb_payments' @@ -1846,6 +1854,7 @@ declare module 'stripe' { type RequestedCapability = | 'au_becs_debit_payments' + | 'bacs_debit_payments' | 'card_issuing' | 'card_payments' | 'jcb_payments' diff --git a/types/2020-03-02/BillingPortal/Sessions.d.ts b/types/2020-03-02/BillingPortal/Sessions.d.ts index fd82646936..c455d5f94e 100644 --- a/types/2020-03-02/BillingPortal/Sessions.d.ts +++ b/types/2020-03-02/BillingPortal/Sessions.d.ts @@ -36,7 +36,7 @@ declare module 'stripe' { return_url: string; /** - * The short-lived URL of the session giving customers access to the self-serve portal. + * The short-lived URL of the session giving customers access to the customer portal. */ url: string; } @@ -60,7 +60,7 @@ declare module 'stripe' { class SessionsResource { /** - * Creates a session of the self-serve portal. + * Creates a session of the customer portal. */ create( params: SessionCreateParams, diff --git a/types/2020-03-02/Checkout/Sessions.d.ts b/types/2020-03-02/Checkout/Sessions.d.ts index 1145ee2a82..02f39b3ace 100644 --- a/types/2020-03-02/Checkout/Sessions.d.ts +++ b/types/2020-03-02/Checkout/Sessions.d.ts @@ -901,7 +901,7 @@ declare module 'stripe' { } } - type PaymentMethodType = 'card' | 'fpx' | 'ideal'; + type PaymentMethodType = 'bacs_debit' | 'card' | 'fpx' | 'ideal'; interface SetupIntentData { /** diff --git a/types/2020-03-02/Mandates.d.ts b/types/2020-03-02/Mandates.d.ts index e9d04b9ffc..23449842d2 100644 --- a/types/2020-03-02/Mandates.d.ts +++ b/types/2020-03-02/Mandates.d.ts @@ -104,10 +104,19 @@ declare module 'stripe' { } interface BacsDebit { + /** + * The status of the mandate on the Bacs network. Can be one of `pending`, `revoked`, `refused`, or `accepted`. + */ network_status: BacsDebit.NetworkStatus; + /** + * The unique reference identifying the mandate on the Bacs network. + */ reference: string; + /** + * The URL that will contain the mandate that the customer has signed. + */ url: string; } diff --git a/types/2020-03-02/PaymentMethods.d.ts b/types/2020-03-02/PaymentMethods.d.ts index 7dff8cce1a..7b58c1e0d5 100644 --- a/types/2020-03-02/PaymentMethods.d.ts +++ b/types/2020-03-02/PaymentMethods.d.ts @@ -854,6 +854,7 @@ declare module 'stripe' { namespace PaymentMethodListParams { type Type = | 'au_becs_debit' + | 'bacs_debit' | 'bancontact' | 'card' | 'card_present' diff --git a/types/2020-03-02/WebhookEndpoints.d.ts b/types/2020-03-02/WebhookEndpoints.d.ts index 8cffc47466..4e9c004f30 100644 --- a/types/2020-03-02/WebhookEndpoints.d.ts +++ b/types/2020-03-02/WebhookEndpoints.d.ts @@ -248,6 +248,8 @@ declare module 'stripe' { | 'charge.refunded' | 'charge.succeeded' | 'charge.updated' + | 'checkout.session.async_payment_failed' + | 'checkout.session.async_payment_succeeded' | 'checkout.session.completed' | 'coupon.created' | 'coupon.deleted' @@ -443,6 +445,8 @@ declare module 'stripe' { | 'charge.refunded' | 'charge.succeeded' | 'charge.updated' + | 'checkout.session.async_payment_failed' + | 'checkout.session.async_payment_succeeded' | 'checkout.session.completed' | 'coupon.created' | 'coupon.deleted'