From 92c8f43939d6bd26abb059dafed0459a8443f27d Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Mon, 17 Aug 2020 15:32:36 -0700 Subject: [PATCH] Codegen for openapi 3d3c794 --- types/2020-03-02/Customers.d.ts | 2 +- types/2020-03-02/Issuing/Authorizations.d.ts | 38 ++++++++++++++++++++ types/2020-03-02/Issuing/Transactions.d.ts | 12 +++++++ 3 files changed, 51 insertions(+), 1 deletion(-) diff --git a/types/2020-03-02/Customers.d.ts b/types/2020-03-02/Customers.d.ts index 8ecdcafc86..440c6d6694 100644 --- a/types/2020-03-02/Customers.d.ts +++ b/types/2020-03-02/Customers.d.ts @@ -109,7 +109,7 @@ declare module 'stripe' { /** * The customer's payment sources, if any. */ - sources: ApiList; + sources: ApiList | null; /** * The customer's current subscriptions, if any. diff --git a/types/2020-03-02/Issuing/Authorizations.d.ts b/types/2020-03-02/Issuing/Authorizations.d.ts index 343a11edf4..dd24e6aea3 100644 --- a/types/2020-03-02/Issuing/Authorizations.d.ts +++ b/types/2020-03-02/Issuing/Authorizations.d.ts @@ -21,6 +21,11 @@ declare module 'stripe' { */ amount: number; + /** + * Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). + */ + amount_details: Authorization.AmountDetails | null; + /** * Whether the authorization has been approved. */ @@ -107,6 +112,13 @@ declare module 'stripe' { } namespace Authorization { + interface AmountDetails { + /** + * The fee charged by the ATM for the cash withdrawal. + */ + atm_fee: number | null; + } + type AuthorizationMethod = | 'chip' | 'contactless' @@ -157,6 +169,11 @@ declare module 'stripe' { */ amount: number; + /** + * Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). + */ + amount_details: PendingRequest.AmountDetails | null; + /** * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). */ @@ -178,12 +195,26 @@ declare module 'stripe' { merchant_currency: string; } + namespace PendingRequest { + interface AmountDetails { + /** + * The fee charged by the ATM for the cash withdrawal. + */ + atm_fee: number | null; + } + } + interface RequestHistory { /** * The authorization amount in your card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Stripe held this amount from your account to fund the authorization if the request was approved. */ amount: number; + /** + * Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). + */ + amount_details: RequestHistory.AmountDetails | null; + /** * Whether this request was approved. */ @@ -216,6 +247,13 @@ declare module 'stripe' { } namespace RequestHistory { + interface AmountDetails { + /** + * The fee charged by the ATM for the cash withdrawal. + */ + atm_fee: number | null; + } + type Reason = | 'account_disabled' | 'card_active' diff --git a/types/2020-03-02/Issuing/Transactions.d.ts b/types/2020-03-02/Issuing/Transactions.d.ts index 0520c339b3..12717dd919 100644 --- a/types/2020-03-02/Issuing/Transactions.d.ts +++ b/types/2020-03-02/Issuing/Transactions.d.ts @@ -21,6 +21,11 @@ declare module 'stripe' { */ amount: number; + /** + * Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). + */ + amount_details: Transaction.AmountDetails | null; + /** * The `Authorization` object that led to this transaction. */ @@ -85,6 +90,13 @@ declare module 'stripe' { } namespace Transaction { + interface AmountDetails { + /** + * The fee charged by the ATM for the cash withdrawal. + */ + atm_fee: number | null; + } + interface MerchantData { /** * A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values.