diff --git a/types/2020-08-27/Cards.d.ts b/types/2020-08-27/Cards.d.ts index 23c6ec937b..09f79e663f 100644 --- a/types/2020-08-27/Cards.d.ts +++ b/types/2020-08-27/Cards.d.ts @@ -98,7 +98,7 @@ declare module 'stripe' { deleted?: void; /** - * Card description. (Only for internal use only and not typically available in standard API requests.) + * Card description. (For internal use only and not typically available in standard API requests.) */ description?: string; @@ -128,12 +128,12 @@ declare module 'stripe' { funding: string; /** - * Issuer identification number of the card. (Only for internal use only and not typically available in standard API requests.) + * Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) */ iin?: string; /** - * Issuer bank name of the card. (Only for internal use only and not typically available in standard API requests.) + * Issuer bank name of the card. (For internal use only and not typically available in standard API requests.) */ issuer?: string; diff --git a/types/2020-08-27/Charges.d.ts b/types/2020-08-27/Charges.d.ts index 098b162950..79828a97f3 100644 --- a/types/2020-08-27/Charges.d.ts +++ b/types/2020-08-27/Charges.d.ts @@ -598,6 +598,16 @@ declare module 'stripe' { */ bic: string | null; + /** + * The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. + */ + generated_sepa_debit: string | Stripe.PaymentMethod | null; + + /** + * The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. + */ + generated_sepa_debit_mandate: string | Stripe.Mandate | null; + /** * Last four characters of the IBAN. */ @@ -637,7 +647,7 @@ declare module 'stripe' { country: string | null; /** - * Card description. (Only for internal use only and not typically available in standard API requests.) + * Card description. (For internal use only and not typically available in standard API requests.) */ description?: string | null; @@ -662,7 +672,7 @@ declare module 'stripe' { funding: string | null; /** - * Issuer identification number of the card. (Only for internal use only and not typically available in standard API requests.) + * Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) */ iin?: string | null; @@ -674,7 +684,7 @@ declare module 'stripe' { installments: Card.Installments | null; /** - * Issuer bank name of the card. (Only for internal use only and not typically available in standard API requests.) + * Issuer bank name of the card. (For internal use only and not typically available in standard API requests.) */ issuer?: string | null; @@ -1096,6 +1106,16 @@ declare module 'stripe' { */ bic: Ideal.Bic | null; + /** + * The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. + */ + generated_sepa_debit: string | Stripe.PaymentMethod | null; + + /** + * The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. + */ + generated_sepa_debit_mandate: string | Stripe.Mandate | null; + /** * Last four characters of the IBAN. */ @@ -1370,6 +1390,16 @@ declare module 'stripe' { */ country: string | null; + /** + * The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. + */ + generated_sepa_debit: string | Stripe.PaymentMethod | null; + + /** + * The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. + */ + generated_sepa_debit_mandate: string | Stripe.Mandate | null; + /** * Last four characters of the IBAN. */ diff --git a/types/2020-08-27/PaymentMethods.d.ts b/types/2020-08-27/PaymentMethods.d.ts index e31114ec29..47c83ce7a5 100644 --- a/types/2020-08-27/PaymentMethods.d.ts +++ b/types/2020-08-27/PaymentMethods.d.ts @@ -151,7 +151,7 @@ declare module 'stripe' { country: string | null; /** - * Card description. (Only for internal use only and not typically available in standard API requests.) + * Card description. (For internal use only and not typically available in standard API requests.) */ description?: string | null; @@ -176,12 +176,12 @@ declare module 'stripe' { funding: string; /** - * Issuer identification number of the card. (Only for internal use only and not typically available in standard API requests.) + * Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) */ iin?: string | null; /** - * Issuer bank name of the card. (Only for internal use only and not typically available in standard API requests.) + * Issuer bank name of the card. (For internal use only and not typically available in standard API requests.) */ issuer?: string | null; @@ -443,12 +443,31 @@ declare module 'stripe' { */ fingerprint: string | null; + /** + * Information about the object that generated this PaymentMethod. + */ + generated_from: SepaDebit.GeneratedFrom | null; + /** * Last four characters of the IBAN. */ last4: string | null; } + namespace SepaDebit { + interface GeneratedFrom { + /** + * The ID of the Charge that generated this PaymentMethod, if any. + */ + charge: string | Stripe.Charge | null; + + /** + * The ID of the SetupAttempt that generated this PaymentMethod, if any. + */ + setup_attempt: string | Stripe.SetupAttempt | null; + } + } + interface Sofort { /** * Two-letter ISO code representing the country the bank account is located in. diff --git a/types/2020-08-27/SetupAttempts.d.ts b/types/2020-08-27/SetupAttempts.d.ts index c3c0928bb9..b7def5d734 100644 --- a/types/2020-08-27/SetupAttempts.d.ts +++ b/types/2020-08-27/SetupAttempts.d.ts @@ -70,8 +70,14 @@ declare module 'stripe' { namespace SetupAttempt { interface PaymentMethodDetails { + bancontact?: PaymentMethodDetails.Bancontact; + card?: PaymentMethodDetails.Card; + ideal?: PaymentMethodDetails.Ideal; + + sofort?: PaymentMethodDetails.Sofort; + /** * The type of the payment method used in the SetupIntent (e.g., `card`). An additional hash is included on `payment_method_details` with a name matching this value. It contains confirmation-specific information for the payment method. */ @@ -79,6 +85,54 @@ declare module 'stripe' { } namespace PaymentMethodDetails { + interface Bancontact { + /** + * Bank code of bank associated with the bank account. + */ + bank_code: string | null; + + /** + * Name of the bank associated with the bank account. + */ + bank_name: string | null; + + /** + * Bank Identifier Code of the bank associated with the bank account. + */ + bic: string | null; + + /** + * The ID of the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt. + */ + generated_sepa_debit: string | Stripe.PaymentMethod | null; + + /** + * The mandate for the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt. + */ + generated_sepa_debit_mandate: string | Stripe.Mandate | null; + + /** + * Last four characters of the IBAN. + */ + iban_last4: string | null; + + /** + * Preferred language of the Bancontact authorization page that the customer is redirected to. + * Can be one of `en`, `de`, `fr`, or `nl` + */ + preferred_language: Bancontact.PreferredLanguage | null; + + /** + * Owner's verified full name. Values are verified or provided by Bancontact directly + * (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ + verified_name: string | null; + } + + namespace Bancontact { + type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl'; + } + interface Card { /** * Populated if this authorization used 3D Secure authentication. @@ -133,6 +187,117 @@ declare module 'stripe' { type Version = '1.0.2' | '2.1.0' | '2.2.0'; } } + + interface Ideal { + /** + * The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `rabobank`, `regiobank`, `sns_bank`, `triodos_bank`, or `van_lanschot`. + */ + bank: Ideal.Bank | null; + + /** + * The Bank Identifier Code of the customer's bank. + */ + bic: Ideal.Bic | null; + + /** + * The ID of the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt. + */ + generated_sepa_debit: string | Stripe.PaymentMethod | null; + + /** + * The mandate for the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt. + */ + generated_sepa_debit_mandate: string | Stripe.Mandate | null; + + /** + * Last four characters of the IBAN. + */ + iban_last4: string | null; + + /** + * Owner's verified full name. Values are verified or provided by iDEAL directly + * (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ + verified_name: string | null; + } + + namespace Ideal { + type Bank = + | 'abn_amro' + | 'asn_bank' + | 'bunq' + | 'handelsbanken' + | 'ing' + | 'knab' + | 'moneyou' + | 'rabobank' + | 'regiobank' + | 'sns_bank' + | 'triodos_bank' + | 'van_lanschot'; + + type Bic = + | 'ABNANL2A' + | 'ASNBNL21' + | 'BUNQNL2A' + | 'FVLBNL22' + | 'HANDNL2A' + | 'INGBNL2A' + | 'KNABNL2H' + | 'MOYONL21' + | 'RABONL2U' + | 'RBRBNL21' + | 'SNSBNL2A' + | 'TRIONL2U'; + } + + interface Sofort { + /** + * Bank code of bank associated with the bank account. + */ + bank_code: string | null; + + /** + * Name of the bank associated with the bank account. + */ + bank_name: string | null; + + /** + * Bank Identifier Code of the bank associated with the bank account. + */ + bic: string | null; + + /** + * The ID of the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt. + */ + generated_sepa_debit: string | Stripe.PaymentMethod | null; + + /** + * The mandate for the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt. + */ + generated_sepa_debit_mandate: string | Stripe.Mandate | null; + + /** + * Last four characters of the IBAN. + */ + iban_last4: string | null; + + /** + * Preferred language of the Sofort authorization page that the customer is redirected to. + * Can be one of `en`, `de`, `fr`, or `nl` + */ + preferred_language: Sofort.PreferredLanguage | null; + + /** + * Owner's verified full name. Values are verified or provided by Sofort directly + * (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ + verified_name: string | null; + } + + namespace Sofort { + type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl'; + } } interface SetupError {