Skip to content

Commit

Permalink
Codegen for openapi d12f3f1 (#1177)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe authored Jun 25, 2021
1 parent 12ebce4 commit 37ad716
Show file tree
Hide file tree
Showing 8 changed files with 155 additions and 7 deletions.
9 changes: 9 additions & 0 deletions types/2020-08-27/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,8 @@ declare module 'stripe' {

bancontact?: PaymentMethodDetails.Bancontact;

boleto?: PaymentMethodDetails.Boleto;

card?: PaymentMethodDetails.Card;

card_present?: PaymentMethodDetails.CardPresent;
Expand Down Expand Up @@ -642,6 +644,13 @@ declare module 'stripe' {
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
}

interface Boleto {
/**
* Uniquely identifies this customer tax_id (CNPJ or CPF)
*/
tax_id: string;
}

interface Card {
/**
* Card brand. Can be `amex`, `diners`, `discover`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
Expand Down
3 changes: 2 additions & 1 deletion types/2020-08-27/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ declare module 'stripe' {

interface TaxId {
/**
* The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `gb_vat`, `nz_gst`, `au_abn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, or `unknown`
* The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `gb_vat`, `nz_gst`, `au_abn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, or `unknown`
*/
type: TaxId.Type;

Expand Down Expand Up @@ -244,6 +244,7 @@ declare module 'stripe' {
| 'gb_vat'
| 'hk_br'
| 'id_npwp'
| 'il_vat'
| 'in_gst'
| 'jp_cn'
| 'jp_rn'
Expand Down
3 changes: 2 additions & 1 deletion types/2020-08-27/Customers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ declare module 'stripe' {

interface TaxIdDatum {
/**
* Type of the tax ID, one of `ae_trn`, `au_abn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `hk_br`, `id_npwp`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `us_ein`, or `za_vat`
* Type of the tax ID, one of `ae_trn`, `au_abn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `hk_br`, `id_npwp`, `il_vat`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `us_ein`, or `za_vat`
*/
type: TaxIdDatum.Type;

Expand Down Expand Up @@ -443,6 +443,7 @@ declare module 'stripe' {
| 'gb_vat'
| 'hk_br'
| 'id_npwp'
| 'il_vat'
| 'in_gst'
| 'jp_cn'
| 'jp_rn'
Expand Down
3 changes: 2 additions & 1 deletion types/2020-08-27/InvoiceLineItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ declare module 'stripe' {

interface TaxId {
/**
* Type of the tax ID, one of `ae_trn`, `au_abn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `hk_br`, `id_npwp`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `us_ein`, or `za_vat`
* Type of the tax ID, one of `ae_trn`, `au_abn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `hk_br`, `id_npwp`, `il_vat`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `us_ein`, or `za_vat`
*/
type: TaxId.Type;

Expand Down Expand Up @@ -398,6 +398,7 @@ declare module 'stripe' {
| 'gb_vat'
| 'hk_br'
| 'id_npwp'
| 'il_vat'
| 'in_gst'
| 'jp_cn'
| 'jp_rn'
Expand Down
6 changes: 4 additions & 2 deletions types/2020-08-27/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ declare module 'stripe' {

interface CustomerTaxId {
/**
* The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `gb_vat`, `nz_gst`, `au_abn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, or `unknown`
* The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `gb_vat`, `nz_gst`, `au_abn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, or `unknown`
*/
type: CustomerTaxId.Type;

Expand Down Expand Up @@ -422,6 +422,7 @@ declare module 'stripe' {
| 'gb_vat'
| 'hk_br'
| 'id_npwp'
| 'il_vat'
| 'in_gst'
| 'jp_cn'
| 'jp_rn'
Expand Down Expand Up @@ -1491,7 +1492,7 @@ declare module 'stripe' {

interface TaxId {
/**
* Type of the tax ID, one of `ae_trn`, `au_abn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `hk_br`, `id_npwp`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `us_ein`, or `za_vat`
* Type of the tax ID, one of `ae_trn`, `au_abn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `hk_br`, `id_npwp`, `il_vat`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `us_ein`, or `za_vat`
*/
type: TaxId.Type;

Expand Down Expand Up @@ -1520,6 +1521,7 @@ declare module 'stripe' {
| 'gb_vat'
| 'hk_br'
| 'id_npwp'
| 'il_vat'
| 'in_gst'
| 'jp_cn'
| 'jp_rn'
Expand Down
108 changes: 108 additions & 0 deletions types/2020-08-27/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ declare module 'stripe' {
interface NextAction {
alipay_handle_redirect?: NextAction.AlipayHandleRedirect;

boleto_display_details?: NextAction.BoletoDisplayDetails;

oxxo_display_details?: NextAction.OxxoDisplayDetails;

redirect_to_url?: NextAction.RedirectToUrl;
Expand Down Expand Up @@ -365,6 +367,28 @@ declare module 'stripe' {
url: string | null;
}

interface BoletoDisplayDetails {
/**
* The timestamp after which the boleto expires.
*/
expires_at: number | null;

/**
* The URL to the hosted boleto voucher page, which allows customers to view the boleto voucher.
*/
hosted_voucher_url: string | null;

/**
* The boleto number.
*/
number: string | null;

/**
* The URL to the downloadable boleto voucher PDF.
*/
pdf: string | null;
}

interface OxxoDisplayDetails {
/**
* The timestamp after which the OXXO voucher expires.
Expand Down Expand Up @@ -418,6 +442,8 @@ declare module 'stripe' {

bancontact?: PaymentMethodOptions.Bancontact;

boleto?: PaymentMethodOptions.Boleto;

card?: PaymentMethodOptions.Card;

card_present?: PaymentMethodOptions.CardPresent;
Expand Down Expand Up @@ -494,6 +520,13 @@ declare module 'stripe' {
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
}

interface Boleto {
/**
* The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto voucher will expire on Wednesday at 23:59 America/Sao_Paulo time.
*/
expires_after_days: number;
}

interface Card {
/**
* Installment details for this payment (Mexico only).
Expand Down Expand Up @@ -916,6 +949,11 @@ declare module 'stripe' {
*/
billing_details?: PaymentMethodData.BillingDetails;

/**
* If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
*/
boleto?: PaymentMethodData.Boleto;

/**
* If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
*/
Expand Down Expand Up @@ -1081,6 +1119,13 @@ declare module 'stripe' {
}
}

interface Boleto {
/**
* Uniquely identifies this customer tax_id (CNPJ or CPF)
*/
tax_id: string;
}

interface Eps {
/**
* The customer's bank.
Expand Down Expand Up @@ -1250,6 +1295,7 @@ declare module 'stripe' {
| 'au_becs_debit'
| 'bacs_debit'
| 'bancontact'
| 'boleto'
| 'eps'
| 'fpx'
| 'giropay'
Expand Down Expand Up @@ -1284,6 +1330,11 @@ declare module 'stripe' {
*/
bancontact?: Stripe.Emptyable<PaymentMethodOptions.Bancontact>;

/**
* If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
*/
boleto?: Stripe.Emptyable<PaymentMethodOptions.Boleto>;

/**
* Configuration for any card payments attempted on this PaymentIntent.
*/
Expand Down Expand Up @@ -1383,6 +1434,13 @@ declare module 'stripe' {
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
}

interface Boleto {
/**
* The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.
*/
expires_after_days?: number;
}

interface Card {
/**
* A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
Expand Down Expand Up @@ -1717,6 +1775,11 @@ declare module 'stripe' {
*/
billing_details?: PaymentMethodData.BillingDetails;

/**
* If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
*/
boleto?: PaymentMethodData.Boleto;

/**
* If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
*/
Expand Down Expand Up @@ -1882,6 +1945,13 @@ declare module 'stripe' {
}
}

interface Boleto {
/**
* Uniquely identifies this customer tax_id (CNPJ or CPF)
*/
tax_id: string;
}

interface Eps {
/**
* The customer's bank.
Expand Down Expand Up @@ -2051,6 +2121,7 @@ declare module 'stripe' {
| 'au_becs_debit'
| 'bacs_debit'
| 'bancontact'
| 'boleto'
| 'eps'
| 'fpx'
| 'giropay'
Expand Down Expand Up @@ -2085,6 +2156,11 @@ declare module 'stripe' {
*/
bancontact?: Stripe.Emptyable<PaymentMethodOptions.Bancontact>;

/**
* If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
*/
boleto?: Stripe.Emptyable<PaymentMethodOptions.Boleto>;

/**
* Configuration for any card payments attempted on this PaymentIntent.
*/
Expand Down Expand Up @@ -2184,6 +2260,13 @@ declare module 'stripe' {
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
}

interface Boleto {
/**
* The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.
*/
expires_after_days?: number;
}

interface Card {
/**
* A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
Expand Down Expand Up @@ -2632,6 +2715,11 @@ declare module 'stripe' {
*/
billing_details?: PaymentMethodData.BillingDetails;

/**
* If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
*/
boleto?: PaymentMethodData.Boleto;

/**
* If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
*/
Expand Down Expand Up @@ -2797,6 +2885,13 @@ declare module 'stripe' {
}
}

interface Boleto {
/**
* Uniquely identifies this customer tax_id (CNPJ or CPF)
*/
tax_id: string;
}

interface Eps {
/**
* The customer's bank.
Expand Down Expand Up @@ -2966,6 +3061,7 @@ declare module 'stripe' {
| 'au_becs_debit'
| 'bacs_debit'
| 'bancontact'
| 'boleto'
| 'eps'
| 'fpx'
| 'giropay'
Expand Down Expand Up @@ -3000,6 +3096,11 @@ declare module 'stripe' {
*/
bancontact?: Stripe.Emptyable<PaymentMethodOptions.Bancontact>;

/**
* If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
*/
boleto?: Stripe.Emptyable<PaymentMethodOptions.Boleto>;

/**
* Configuration for any card payments attempted on this PaymentIntent.
*/
Expand Down Expand Up @@ -3099,6 +3200,13 @@ declare module 'stripe' {
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
}

interface Boleto {
/**
* The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.
*/
expires_after_days?: number;
}

interface Card {
/**
* A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
Expand Down
Loading

0 comments on commit 37ad716

Please sign in to comment.