From 0af81a81ed8602682f4dda49fc8c5c007037b9b1 Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Mon, 23 Nov 2020 20:14:26 -0800 Subject: [PATCH] Codegen for openapi 35ca85b --- types/2020-08-27/Customers.d.ts | 4 +- types/2020-08-27/Invoices.d.ts | 15 +++++++ types/2020-08-27/PaymentIntents.d.ts | 58 ++++++++++++++++++++++++++++ types/2020-08-27/SetupIntents.d.ts | 6 +-- 4 files changed, 79 insertions(+), 4 deletions(-) diff --git a/types/2020-08-27/Customers.d.ts b/types/2020-08-27/Customers.d.ts index 2eb1e9cebf..76596a1826 100644 --- a/types/2020-08-27/Customers.d.ts +++ b/types/2020-08-27/Customers.d.ts @@ -45,7 +45,9 @@ declare module 'stripe' { deleted?: void; /** - * When the customer's latest invoice is billed by charging automatically, delinquent is true if the invoice's latest charge is failed. When the customer's latest invoice is billed by sending an invoice, delinquent is true if the invoice is not paid by its due date. + * When the customer's latest invoice is billed by charging automatically, `delinquent` is `true` if the invoice's latest charge failed. When the customer's latest invoice is billed by sending an invoice, `delinquent` is `true` if the invoice isn't paid by its due date. + * + * If an invoice is marked uncollectible by [dunning](https://stripe.com/docs/billing/automatic-collection), `delinquent` doesn't get reset to `false`. */ delinquent: boolean | null; diff --git a/types/2020-08-27/Invoices.d.ts b/types/2020-08-27/Invoices.d.ts index ac9a284e9e..b6cf3d2c9e 100644 --- a/types/2020-08-27/Invoices.d.ts +++ b/types/2020-08-27/Invoices.d.ts @@ -25,6 +25,11 @@ declare module 'stripe' { */ account_name: string | null; + /** + * The account tax IDs associated with the invoice. Only editable when the invoice is a draft. + */ + account_tax_ids?: Array | null; + /** * Final amount due at this time for this invoice. If the invoice's total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the `amount_due` may be 0. If there is a positive `starting_balance` for the invoice (the customer owes money), the `amount_due` will also take that into account. The charge that gets generated for the invoice will be for the amount specified in `amount_due`. */ @@ -646,6 +651,11 @@ declare module 'stripe' { */ customer: string; + /** + * The account tax IDs associated with the invoice. Only editable when the invoice is a draft. + */ + account_tax_ids?: Stripe.Emptyable>; + /** * A fee in %s that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#invoices). */ @@ -780,6 +790,11 @@ declare module 'stripe' { } interface InvoiceUpdateParams { + /** + * The account tax IDs associated with the invoice. Only editable when the invoice is a draft. + */ + account_tax_ids?: Stripe.Emptyable>; + /** * A fee in %s that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#invoices). */ diff --git a/types/2020-08-27/PaymentIntents.d.ts b/types/2020-08-27/PaymentIntents.d.ts index 86bb1cd7cd..c0bf17bf2d 100644 --- a/types/2020-08-27/PaymentIntents.d.ts +++ b/types/2020-08-27/PaymentIntents.d.ts @@ -405,6 +405,8 @@ declare module 'stripe' { p24?: PaymentMethodOptions.P24; + sepa_debit?: PaymentMethodOptions.SepaDebit; + sofort?: PaymentMethodOptions.Sofort; } @@ -521,6 +523,14 @@ declare module 'stripe' { interface P24 {} + interface SepaDebit { + mandate_options?: SepaDebit.MandateOptions; + } + + namespace SepaDebit { + interface MandateOptions {} + } + interface Sofort { /** * Preferred language of the SOFORT authorization page that the customer is redirected to. @@ -1137,6 +1147,11 @@ declare module 'stripe' { */ p24?: Stripe.Emptyable; + /** + * If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. + */ + sepa_debit?: Stripe.Emptyable; + /** * If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. */ @@ -1248,6 +1263,17 @@ declare module 'stripe' { interface P24 {} + interface SepaDebit { + /** + * Additional fields for Mandate creation + */ + mandate_options?: SepaDebit.MandateOptions; + } + + namespace SepaDebit { + interface MandateOptions {} + } + interface Sofort { /** * Language shown to the payer on redirect. @@ -1776,6 +1802,11 @@ declare module 'stripe' { */ p24?: Stripe.Emptyable; + /** + * If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. + */ + sepa_debit?: Stripe.Emptyable; + /** * If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. */ @@ -1887,6 +1918,17 @@ declare module 'stripe' { interface P24 {} + interface SepaDebit { + /** + * Additional fields for Mandate creation + */ + mandate_options?: SepaDebit.MandateOptions; + } + + namespace SepaDebit { + interface MandateOptions {} + } + interface Sofort { /** * Language shown to the payer on redirect. @@ -2529,6 +2571,11 @@ declare module 'stripe' { */ p24?: Stripe.Emptyable; + /** + * If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. + */ + sepa_debit?: Stripe.Emptyable; + /** * If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. */ @@ -2640,6 +2687,17 @@ declare module 'stripe' { interface P24 {} + interface SepaDebit { + /** + * Additional fields for Mandate creation + */ + mandate_options?: SepaDebit.MandateOptions; + } + + namespace SepaDebit { + interface MandateOptions {} + } + interface Sofort { /** * Language shown to the payer on redirect. diff --git a/types/2020-08-27/SetupIntents.d.ts b/types/2020-08-27/SetupIntents.d.ts index 20658c98c1..57f971afc3 100644 --- a/types/2020-08-27/SetupIntents.d.ts +++ b/types/2020-08-27/SetupIntents.d.ts @@ -420,7 +420,7 @@ declare module 'stripe' { card?: PaymentMethodOptions.Card; /** - * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the Sepa Debit payment method options. + * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options. */ sepa_debit?: PaymentMethodOptions.SepaDebit; } @@ -530,7 +530,7 @@ declare module 'stripe' { card?: PaymentMethodOptions.Card; /** - * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the Sepa Debit payment method options. + * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options. */ sepa_debit?: PaymentMethodOptions.SepaDebit; } @@ -731,7 +731,7 @@ declare module 'stripe' { card?: PaymentMethodOptions.Card; /** - * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the Sepa Debit payment method options. + * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options. */ sepa_debit?: PaymentMethodOptions.SepaDebit; }