From 4014c99f7547b2bdd4f0edd23a7fa2130617defa Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Fri, 24 Jul 2020 15:33:33 -0700 Subject: [PATCH] Codegen for openapi 7b4a14e --- types/2020-03-02/Accounts.d.ts | 33 +++++++++++++++++++++++++++++++ types/2020-03-02/CreditNotes.d.ts | 6 +++--- types/2020-03-02/Discounts.d.ts | 22 +++++++++++++++++++++ types/2020-03-02/Invoices.d.ts | 2 +- 4 files changed, 59 insertions(+), 4 deletions(-) diff --git a/types/2020-03-02/Accounts.d.ts b/types/2020-03-02/Accounts.d.ts index 232a622f99..59c0ed1747 100644 --- a/types/2020-03-02/Accounts.d.ts +++ b/types/2020-03-02/Accounts.d.ts @@ -172,6 +172,11 @@ declare module 'stripe' { */ cartes_bancaires_payments?: Capabilities.CartesBancairesPayments; + /** + * The status of the FPX payments capability of the account, or whether the account can directly process FPX charges. + */ + fpx_payments?: Capabilities.FpxPayments; + /** * The status of the JCB payments capability of the account, or whether the account (Japan only) can directly process JCB credit card charges in JPY currency. */ @@ -209,6 +214,8 @@ declare module 'stripe' { type CartesBancairesPayments = 'active' | 'inactive' | 'pending'; + type FpxPayments = 'active' | 'inactive' | 'pending'; + type JcbPayments = 'active' | 'inactive' | 'pending'; type LegacyPayments = 'active' | 'inactive' | 'pending'; @@ -890,6 +897,11 @@ declare module 'stripe' { */ cartes_bancaires_payments?: Capabilities.CartesBancairesPayments; + /** + * The fpx_payments capability. + */ + fpx_payments?: Capabilities.FpxPayments; + /** * The jcb_payments capability. */ @@ -952,6 +964,13 @@ declare module 'stripe' { requested?: boolean; } + interface FpxPayments { + /** + * 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 JcbPayments { /** * 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. @@ -1331,6 +1350,7 @@ declare module 'stripe' { | 'card_issuing' | 'card_payments' | 'cartes_bancaires_payments' + | 'fpx_payments' | 'jcb_payments' | 'legacy_payments' | 'tax_reporting_us_1099_k' @@ -1697,6 +1717,11 @@ declare module 'stripe' { */ cartes_bancaires_payments?: Capabilities.CartesBancairesPayments; + /** + * The fpx_payments capability. + */ + fpx_payments?: Capabilities.FpxPayments; + /** * The jcb_payments capability. */ @@ -1759,6 +1784,13 @@ declare module 'stripe' { requested?: boolean; } + interface FpxPayments { + /** + * 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 JcbPayments { /** * 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. @@ -2138,6 +2170,7 @@ declare module 'stripe' { | 'card_issuing' | 'card_payments' | 'cartes_bancaires_payments' + | 'fpx_payments' | 'jcb_payments' | 'legacy_payments' | 'tax_reporting_us_1099_k' diff --git a/types/2020-03-02/CreditNotes.d.ts b/types/2020-03-02/CreditNotes.d.ts index be40fa70d9..0a3923d1d0 100644 --- a/types/2020-03-02/CreditNotes.d.ts +++ b/types/2020-03-02/CreditNotes.d.ts @@ -43,7 +43,7 @@ declare module 'stripe' { | null; /** - * The integer amount in **%s** representing the amount of the discount that was credited. + * The integer amount in **%s** representing the total amount of discount that was credited. */ discount_amount: number; @@ -103,7 +103,7 @@ declare module 'stripe' { status: CreditNote.Status; /** - * The integer amount in **%s** representing the amount of the credit note, excluding tax and discount. + * The integer amount in **%s** representing the amount of the credit note, excluding tax and invoice level discounts. */ subtotal: number; @@ -113,7 +113,7 @@ declare module 'stripe' { tax_amounts: Array; /** - * The integer amount in **%s** representing the total amount of the credit note, including tax and discount. + * The integer amount in **%s** representing the total amount of the credit note, including tax and all discount. */ total: number; diff --git a/types/2020-03-02/Discounts.d.ts b/types/2020-03-02/Discounts.d.ts index c7b867e47d..860cc52e6f 100644 --- a/types/2020-03-02/Discounts.d.ts +++ b/types/2020-03-02/Discounts.d.ts @@ -48,10 +48,32 @@ declare module 'stripe' { */ object: 'discount'; + /** + * A coupon contains information about a percent-off or amount-off discount you + * might want to apply to a customer. Coupons may be applied to [invoices](https://stripe.com/docs/api#invoices) or + * [orders](https://stripe.com/docs/api#create_order-coupon). Coupons do not work with conventional one-off [charges](https://stripe.com/docs/api#create_charge). + */ + coupon: Stripe.Coupon; + + /** + * The ID of the customer associated with this discount. + */ + customer: string | Stripe.Customer | Stripe.DeletedCustomer | null; + /** * Always true for a deleted object */ deleted: true; + + /** + * Date that the coupon was applied. + */ + start: number; + + /** + * The subscription that this coupon is applied to, if it is applied to a particular subscription. + */ + subscription: string | null; } } } diff --git a/types/2020-03-02/Invoices.d.ts b/types/2020-03-02/Invoices.d.ts index da77a7fd77..77319079ed 100644 --- a/types/2020-03-02/Invoices.d.ts +++ b/types/2020-03-02/Invoices.d.ts @@ -269,7 +269,7 @@ declare module 'stripe' { subscription_proration_date?: number; /** - * Total of all subscriptions, invoice items, and prorations on the invoice before any discount or tax is applied. + * Total of all subscriptions, invoice items, and prorations on the invoice before any invoice level discount or tax is applied. Item discounts are already incorporated */ subtotal: number;