Skip to content

Commit

Permalink
API Updates (#1115)
Browse files Browse the repository at this point in the history
* Codegen for openapi 4d877a7
  • Loading branch information
richardm-stripe authored Feb 3, 2021
1 parent b263e57 commit 1fb40a4
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 9 deletions.
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 @@ -185,7 +185,7 @@ declare module 'stripe' {

interface TaxId {
/**
* The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `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`, `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`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, or `unknown`
*/
type: TaxId.Type;

Expand All @@ -207,6 +207,7 @@ declare module 'stripe' {
| 'cl_tin'
| 'es_cif'
| 'eu_vat'
| 'gb_vat'
| 'hk_br'
| 'id_npwp'
| 'in_gst'
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 @@ -350,7 +350,7 @@ declare module 'stripe' {

interface TaxIdDatum {
/**
* Type of the tax ID, one of `ae_trn`, `au_abn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_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_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: TaxIdDatum.Type;

Expand All @@ -372,6 +372,7 @@ declare module 'stripe' {
| 'cl_tin'
| 'es_cif'
| 'eu_vat'
| 'gb_vat'
| 'hk_br'
| 'id_npwp'
| 'in_gst'
Expand Down
3 changes: 2 additions & 1 deletion types/2020-08-27/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ declare module 'stripe' {

interface CustomerTaxId {
/**
* The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `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`, `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`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, or `unknown`
*/
type: CustomerTaxId.Type;

Expand All @@ -390,6 +390,7 @@ declare module 'stripe' {
| 'cl_tin'
| 'es_cif'
| 'eu_vat'
| 'gb_vat'
| 'hk_br'
| 'id_npwp'
| 'in_gst'
Expand Down
4 changes: 2 additions & 2 deletions types/2020-08-27/Issuing/Disputes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ declare module 'stripe' {
object: 'issuing.dispute';

/**
* Disputed amount. Usually the amount of the `disputed_transaction`, but can differ (usually because of currency fluctuation).
* Disputed amount. Usually the amount of the `transaction`, but can differ (usually because of currency fluctuation).
*/
amount: number;

Expand All @@ -33,7 +33,7 @@ declare module 'stripe' {
created: number;

/**
* The currency the `disputed_transaction` was made in.
* The currency the `transaction` was made in.
*/
currency: string;

Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ declare module 'stripe' {
redirect_to_url?: NextAction.RedirectToUrl;

/**
* Type of the next action to perform, one of `redirect_to_url` or `use_stripe_sdk`.
* Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, or `oxxo_display_details`.
*/
type: string;

Expand Down
15 changes: 15 additions & 0 deletions types/2020-08-27/Persons.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ declare module 'stripe' {
*/
metadata?: Stripe.Metadata;

/**
* The country where the person is a national.
*/
nationality?: string | null;

/**
* The person's phone number.
*/
Expand Down Expand Up @@ -512,6 +517,11 @@ declare module 'stripe' {
*/
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;

/**
* The country where the person is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)), or "XX" if unavailable.
*/
nationality?: string;

/**
* A [person token](https://stripe.com/docs/connect/account-tokens), used to securely provide details to the person.
*/
Expand Down Expand Up @@ -752,6 +762,11 @@ declare module 'stripe' {
*/
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;

/**
* The country where the person is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)), or "XX" if unavailable.
*/
nationality?: string;

/**
* A [person token](https://stripe.com/docs/connect/account-tokens), used to securely provide details to the person.
*/
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/SetupIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ declare module 'stripe' {
redirect_to_url?: NextAction.RedirectToUrl;

/**
* Type of the next action to perform, one of `redirect_to_url` or `use_stripe_sdk`.
* Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, or `oxxo_display_details`.
*/
type: string;

Expand Down
6 changes: 4 additions & 2 deletions types/2020-08-27/TaxIds.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ declare module 'stripe' {
livemode: boolean;

/**
* Type of the tax ID, one of `ae_trn`, `au_abn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_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`. Note that some legacy tax IDs have type `unknown`
* Type of the tax ID, one of `ae_trn`, `au_abn`, `br_cnpj`, `br_cpf`, `ca_bn`, `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`. Note that some legacy tax IDs have type `unknown`
*/
type: TaxId.Type;

Expand All @@ -66,6 +66,7 @@ declare module 'stripe' {
| 'cl_tin'
| 'es_cif'
| 'eu_vat'
| 'gb_vat'
| 'hk_br'
| 'id_npwp'
| 'in_gst'
Expand Down Expand Up @@ -134,7 +135,7 @@ declare module 'stripe' {

interface TaxIdCreateParams {
/**
* Type of the tax ID, one of `ae_trn`, `au_abn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_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_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: TaxIdCreateParams.Type;

Expand All @@ -161,6 +162,7 @@ declare module 'stripe' {
| 'cl_tin'
| 'es_cif'
| 'eu_vat'
| 'gb_vat'
| 'hk_br'
| 'id_npwp'
| 'in_gst'
Expand Down
5 changes: 5 additions & 0 deletions types/2020-08-27/Tokens.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,11 @@ declare module 'stripe' {
*/
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;

/**
* The country where the person is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)), or "XX" if unavailable.
*/
nationality?: string;

/**
* The person's phone number.
*/
Expand Down

0 comments on commit 1fb40a4

Please sign in to comment.