Skip to content

Commit

Permalink
Codegen for openapi a0ffdbc
Browse files Browse the repository at this point in the history
  • Loading branch information
yejia-stripe committed Mar 25, 2022
1 parent 08b34ec commit 2756525
Show file tree
Hide file tree
Showing 12 changed files with 858 additions and 1 deletion.
31 changes: 31 additions & 0 deletions types/2020-08-27/Accounts.d.ts
Expand Up @@ -256,6 +256,11 @@ declare module 'stripe' {
*/
p24_payments?: Capabilities.P24Payments;

/**
* The status of the paynow payments capability of the account, or whether the account can directly process paynow charges.
*/
paynow_payments?: Capabilities.PaynowPayments;

/**
* The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.
*/
Expand Down Expand Up @@ -323,6 +328,8 @@ declare module 'stripe' {

type P24Payments = 'active' | 'inactive' | 'pending';

type PaynowPayments = 'active' | 'inactive' | 'pending';

type SepaDebitPayments = 'active' | 'inactive' | 'pending';

type SofortPayments = 'active' | 'inactive' | 'pending';
Expand Down Expand Up @@ -1270,6 +1277,11 @@ declare module 'stripe' {
*/
p24_payments?: Capabilities.P24Payments;

/**
* The paynow_payments capability.
*/
paynow_payments?: Capabilities.PaynowPayments;

/**
* The sepa_debit_payments capability.
*/
Expand Down Expand Up @@ -1437,6 +1449,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface PaynowPayments {
/**
* 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 SepaDebitPayments {
/**
* 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.
Expand Down Expand Up @@ -2352,6 +2371,11 @@ declare module 'stripe' {
*/
p24_payments?: Capabilities.P24Payments;

/**
* The paynow_payments capability.
*/
paynow_payments?: Capabilities.PaynowPayments;

/**
* The sepa_debit_payments capability.
*/
Expand Down Expand Up @@ -2519,6 +2543,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface PaynowPayments {
/**
* 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 SepaDebitPayments {
/**
* 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.
Expand Down
54 changes: 54 additions & 0 deletions types/2020-08-27/Charges.d.ts
Expand Up @@ -105,6 +105,11 @@ declare module 'stripe' {
*/
disputed: boolean;

/**
* ID of the balance transaction that describes the reversal of the balance on your account due to payment failure.
*/
failure_balance_transaction?: string | Stripe.BalanceTransaction | null;

/**
* Error code explaining reason for charge failure if available (see [the errors section](https://stripe.com/docs/api#errors) for a list of codes).
*/
Expand Down Expand Up @@ -426,6 +431,8 @@ declare module 'stripe' {

p24?: PaymentMethodDetails.P24;

paynow?: PaymentMethodDetails.Paynow;

sepa_credit_transfer?: PaymentMethodDetails.SepaCreditTransfer;

sepa_debit?: PaymentMethodDetails.SepaDebit;
Expand All @@ -441,6 +448,8 @@ declare module 'stripe' {
*/
type: string;

us_bank_account?: PaymentMethodDetails.UsBankAccount;

wechat?: PaymentMethodDetails.Wechat;

wechat_pay?: PaymentMethodDetails.WechatPay;
Expand Down Expand Up @@ -1518,6 +1527,13 @@ declare module 'stripe' {
| 'volkswagen_bank';
}

interface Paynow {
/**
* Reference number associated with this PayNow payment
*/
reference: string | null;
}

interface SepaCreditTransfer {
/**
* Name of the bank associated with the bank account.
Expand Down Expand Up @@ -1629,6 +1645,44 @@ declare module 'stripe' {

interface StripeAccount {}

interface UsBankAccount {
/**
* Account holder type: individual or company.
*/
account_holder_type: UsBankAccount.AccountHolderType | null;

/**
* Account type: checkings or savings. Defaults to checking if omitted.
*/
account_type: UsBankAccount.AccountType | null;

/**
* Name of the bank associated with the bank account.
*/
bank_name: string | null;

/**
* Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
*/
fingerprint: string | null;

/**
* Last four digits of the bank account number.
*/
last4: string | null;

/**
* Routing number of the bank account.
*/
routing_number: string | null;
}

namespace UsBankAccount {
type AccountHolderType = 'company' | 'individual';

type AccountType = 'checking' | 'savings';
}

interface Wechat {}

interface WechatPay {
Expand Down
31 changes: 31 additions & 0 deletions types/2020-08-27/Checkout/Sessions.d.ts
Expand Up @@ -443,6 +443,8 @@ declare module 'stripe' {
konbini?: PaymentMethodOptions.Konbini;

oxxo?: PaymentMethodOptions.Oxxo;

us_bank_account?: PaymentMethodOptions.UsBankAccount;
}

namespace PaymentMethodOptions {
Expand Down Expand Up @@ -516,6 +518,17 @@ declare module 'stripe' {
*/
expires_after_days: number;
}

interface UsBankAccount {
/**
* Bank account verification method.
*/
verification_method?: UsBankAccount.VerificationMethod;
}

namespace UsBankAccount {
type VerificationMethod = 'automatic' | 'instant';
}
}

type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid';
Expand Down Expand Up @@ -1528,6 +1541,11 @@ declare module 'stripe' {
*/
oxxo?: PaymentMethodOptions.Oxxo;

/**
* contains details about the Us Bank Account payment method options.
*/
us_bank_account?: PaymentMethodOptions.UsBankAccount;

/**
* contains details about the WeChat Pay payment method options.
*/
Expand Down Expand Up @@ -1616,6 +1634,17 @@ declare module 'stripe' {
expires_after_days?: number;
}

interface UsBankAccount {
/**
* Verification method for the intent
*/
verification_method?: UsBankAccount.VerificationMethod;
}

namespace UsBankAccount {
type VerificationMethod = 'automatic' | 'instant';
}

interface WechatPay {
/**
* The app ID registered with WeChat Pay. Only required when client is ios or android.
Expand Down Expand Up @@ -1651,8 +1680,10 @@ declare module 'stripe' {
| 'konbini'
| 'oxxo'
| 'p24'
| 'paynow'
| 'sepa_debit'
| 'sofort'
| 'us_bank_account'
| 'wechat_pay';

interface PhoneNumberCollection {
Expand Down
2 changes: 2 additions & 0 deletions types/2020-08-27/Customers.d.ts
Expand Up @@ -717,8 +717,10 @@ declare module 'stripe' {
| 'konbini'
| 'oxxo'
| 'p24'
| 'paynow'
| 'sepa_debit'
| 'sofort'
| 'us_bank_account'
| 'wechat_pay';
}

Expand Down
58 changes: 58 additions & 0 deletions types/2020-08-27/Invoices.d.ts
Expand Up @@ -616,6 +616,11 @@ declare module 'stripe' {
* If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
*/
konbini: PaymentMethodOptions.Konbini | null;

/**
* If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent.
*/
us_bank_account?: PaymentMethodOptions.UsBankAccount | null;
}

namespace PaymentMethodOptions {
Expand Down Expand Up @@ -666,6 +671,17 @@ declare module 'stripe' {
}

interface Konbini {}

interface UsBankAccount {
/**
* Bank account verification method.
*/
verification_method?: UsBankAccount.VerificationMethod;
}

namespace UsBankAccount {
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
}
}

type PaymentMethodType =
Expand All @@ -682,9 +698,11 @@ declare module 'stripe' {
| 'grabpay'
| 'ideal'
| 'konbini'
| 'paynow'
| 'sepa_credit_transfer'
| 'sepa_debit'
| 'sofort'
| 'us_bank_account'
| 'wechat_pay';
}

Expand Down Expand Up @@ -992,6 +1010,13 @@ declare module 'stripe' {
* If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
*/
konbini?: Stripe.Emptyable<PaymentMethodOptions.Konbini>;

/**
* If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent.
*/
us_bank_account?: Stripe.Emptyable<
PaymentMethodOptions.UsBankAccount
>;
}

namespace PaymentMethodOptions {
Expand Down Expand Up @@ -1045,6 +1070,17 @@ declare module 'stripe' {
}

interface Konbini {}

interface UsBankAccount {
/**
* Verification method for the intent
*/
verification_method?: UsBankAccount.VerificationMethod;
}

namespace UsBankAccount {
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
}
}

type PaymentMethodType =
Expand All @@ -1061,9 +1097,11 @@ declare module 'stripe' {
| 'grabpay'
| 'ideal'
| 'konbini'
| 'paynow'
| 'sepa_credit_transfer'
| 'sepa_debit'
| 'sofort'
| 'us_bank_account'
| 'wechat_pay';
}

Expand Down Expand Up @@ -1263,6 +1301,13 @@ declare module 'stripe' {
* If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
*/
konbini?: Stripe.Emptyable<PaymentMethodOptions.Konbini>;

/**
* If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent.
*/
us_bank_account?: Stripe.Emptyable<
PaymentMethodOptions.UsBankAccount
>;
}

namespace PaymentMethodOptions {
Expand Down Expand Up @@ -1316,6 +1361,17 @@ declare module 'stripe' {
}

interface Konbini {}

interface UsBankAccount {
/**
* Verification method for the intent
*/
verification_method?: UsBankAccount.VerificationMethod;
}

namespace UsBankAccount {
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
}
}

type PaymentMethodType =
Expand All @@ -1332,9 +1388,11 @@ declare module 'stripe' {
| 'grabpay'
| 'ideal'
| 'konbini'
| 'paynow'
| 'sepa_credit_transfer'
| 'sepa_debit'
| 'sofort'
| 'us_bank_account'
| 'wechat_pay';
}

Expand Down
4 changes: 4 additions & 0 deletions types/2020-08-27/Mandates.d.ts
Expand Up @@ -97,6 +97,8 @@ declare module 'stripe' {
* The type of the payment method associated with this mandate. An additional hash is included on `payment_method_details` with a name matching this value. It contains mandate information specific to the payment method.
*/
type: string;

us_bank_account?: PaymentMethodDetails.UsBankAccount;
}

namespace PaymentMethodDetails {
Expand Down Expand Up @@ -171,6 +173,8 @@ declare module 'stripe' {
*/
url: string;
}

interface UsBankAccount {}
}

interface SingleUse {
Expand Down

0 comments on commit 2756525

Please sign in to comment.