diff --git a/types/2019-12-03/Accounts.d.ts b/types/2019-12-03/Accounts.d.ts index 9530f6c0e7..8841b1cba2 100644 --- a/types/2019-12-03/Accounts.d.ts +++ b/types/2019-12-03/Accounts.d.ts @@ -15,7 +15,7 @@ declare module 'stripe' { object: 'account'; /** - * Optional information related to the business. + * Business information about the account. */ business_profile: Account.BusinessProfile | null; @@ -95,7 +95,7 @@ declare module 'stripe' { namespace Account { interface BusinessProfile { /** - * The merchant category code for the account. MCCs are used to classify businesses based on the goods or services they provide. + * [The merchant category code for the account](https://stripe.com/docs/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide. */ mcc: string | null; @@ -542,7 +542,7 @@ declare module 'stripe' { account_token?: string; /** - * Non-essential business information about the account + * Business information about the account. */ business_profile?: AccountCreateParams.BusinessProfile; @@ -617,7 +617,7 @@ declare module 'stripe' { namespace AccountCreateParams { interface BusinessProfile { /** - * The merchant category code for the account. MCCs are used to classify businesses based on the goods or services they provide. + * [The merchant category code for the account](https://stripe.com/docs/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide. */ mcc?: string; @@ -1147,7 +1147,7 @@ declare module 'stripe' { account_token?: string; /** - * Non-essential business information about the account + * Business information about the account. */ business_profile?: AccountUpdateParams.BusinessProfile; @@ -1212,7 +1212,7 @@ declare module 'stripe' { namespace AccountUpdateParams { interface BusinessProfile { /** - * The merchant category code for the account. MCCs are used to classify businesses based on the goods or services they provide. + * [The merchant category code for the account](https://stripe.com/docs/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide. */ mcc?: string; diff --git a/types/2019-12-03/Charges.d.ts b/types/2019-12-03/Charges.d.ts index dc4aeda7f1..d4f5f6333c 100644 --- a/types/2019-12-03/Charges.d.ts +++ b/types/2019-12-03/Charges.d.ts @@ -390,6 +390,8 @@ declare module 'stripe' { eps?: PaymentMethodDetails.Eps; + fpx?: PaymentMethodDetails.Fpx; + giropay?: PaymentMethodDetails.Giropay; ideal?: PaymentMethodDetails.Ideal; @@ -922,6 +924,50 @@ declare module 'stripe' { verified_name: string | null; } + interface Fpx { + /** + * Account holder type, if provided. Can be one of `individual` or `company`. + */ + account_holder_type: Fpx.AccountHolderType | null; + + /** + * The customer's bank. Can be one of `affin_bank`, `alliance_bank`, `ambank`, `cimb`, `bank_islam`, `bank_rakyat`, `bank_muamalat`, `bsn`, `deutsche_bank`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `maybank2e`, `ocbc`, `public_bank`, `pb_enterprise`, `rhb`, `standard_chartered`, `uob`, or `uob_regional`. + */ + bank: Fpx.Bank; + + /** + * Unique transaction id generated by FPX for every request from the merchant + */ + transaction_id: string | null; + } + + namespace Fpx { + type AccountHolderType = 'company' | 'individual'; + + type Bank = + | 'affin_bank' + | 'alliance_bank' + | 'ambank' + | 'bank_islam' + | 'bank_muamalat' + | 'bank_rakyat' + | 'bsn' + | 'cimb' + | 'deutsche_bank' + | 'hong_leong_bank' + | 'hsbc' + | 'kfh' + | 'maybank2e' + | 'maybank2u' + | 'ocbc' + | 'pb_enterprise' + | 'public_bank' + | 'rhb' + | 'standard_chartered' + | 'uob' + | 'uob_regional'; + } + interface Giropay { /** * Bank code of bank associated with the bank account. diff --git a/types/2019-12-03/PaymentMethods.d.ts b/types/2019-12-03/PaymentMethods.d.ts index 24dfae4f1d..743751b2da 100644 --- a/types/2019-12-03/PaymentMethods.d.ts +++ b/types/2019-12-03/PaymentMethods.d.ts @@ -32,6 +32,8 @@ declare module 'stripe' { */ customer: string | Stripe.Customer | null; + fpx?: PaymentMethod.Fpx; + ideal?: PaymentMethod.Ideal; /** @@ -264,6 +266,45 @@ declare module 'stripe' { interface CardPresent {} + interface Fpx { + /** + * Account holder type, if provided. Can be one of `individual` or `company`. + */ + account_holder_type: Fpx.AccountHolderType | null; + + /** + * The customer's bank, if provided. Can be one of `affin_bank`, `alliance_bank`, `ambank`, `cimb`, `bank_islam`, `bank_rakyat`, `bank_muamalat`, `bsn`, `deutsche_bank`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `maybank2e`, `ocbc`, `public_bank`, `pb_enterprise`, `rhb`, `standard_chartered`, `uob`, or `uob_regional`. + */ + bank: Fpx.Bank; + } + + namespace Fpx { + type AccountHolderType = 'company' | 'individual'; + + type Bank = + | 'affin_bank' + | 'alliance_bank' + | 'ambank' + | 'bank_islam' + | 'bank_muamalat' + | 'bank_rakyat' + | 'bsn' + | 'cimb' + | 'deutsche_bank' + | 'hong_leong_bank' + | 'hsbc' + | 'kfh' + | 'maybank2e' + | 'maybank2u' + | 'ocbc' + | 'pb_enterprise' + | 'public_bank' + | 'rhb' + | 'standard_chartered' + | 'uob' + | 'uob_regional'; + } + interface Ideal { /** * The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `rabobank`, `regiobank`, `sns_bank`, `triodos_bank`, or `van_lanschot`. @@ -337,6 +378,7 @@ declare module 'stripe' { | 'au_becs_debit' | 'card' | 'card_present' + | 'fpx' | 'ideal' | 'sepa_debit'; } @@ -367,6 +409,11 @@ declare module 'stripe' { */ expand?: Array; + /** + * If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method. + */ + fpx?: PaymentMethodCreateParams.Fpx; + /** * If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method. */ @@ -481,6 +528,45 @@ declare module 'stripe' { token: string; } + interface Fpx { + /** + * Account holder type for FPX transaction + */ + account_holder_type?: Fpx.AccountHolderType; + + /** + * The customer's bank. + */ + bank: Fpx.Bank; + } + + namespace Fpx { + type AccountHolderType = 'company' | 'individual'; + + type Bank = + | 'affin_bank' + | 'alliance_bank' + | 'ambank' + | 'bank_islam' + | 'bank_muamalat' + | 'bank_rakyat' + | 'bsn' + | 'cimb' + | 'deutsche_bank' + | 'hong_leong_bank' + | 'hsbc' + | 'kfh' + | 'maybank2e' + | 'maybank2u' + | 'ocbc' + | 'pb_enterprise' + | 'public_bank' + | 'rhb' + | 'standard_chartered' + | 'uob' + | 'uob_regional'; + } + interface Ideal { /** * The customer's bank. @@ -515,6 +601,7 @@ declare module 'stripe' { | 'au_becs_debit' | 'card' | 'card_present' + | 'fpx' | 'ideal' | 'sepa_debit'; }