From ab72f09cfbb735a78add5106a1c0b0caec73b21e Mon Sep 17 00:00:00 2001 From: pakrym-stripe <99349468+pakrym-stripe@users.noreply.github.com> Date: Mon, 7 Nov 2022 15:29:34 -0800 Subject: [PATCH 1/2] API Updates (#1610) Codegen for openapi v206 --- OPENAPI_VERSION | 2 +- types/2022-08-01/Checkout/Sessions.d.ts | 5 ++++- types/2022-08-01/Customers.d.ts | 5 ++++- types/2022-08-01/Invoices.d.ts | 15 ++++++++++++--- types/2022-08-01/Issuing/Authorizations.d.ts | 6 ++++++ types/2022-08-01/Orders.d.ts | 15 ++++++++++++--- types/2022-08-01/TaxIds.d.ts | 10 ++++++++-- 7 files changed, 47 insertions(+), 11 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index fe802d3a45..993f410bcd 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v204 \ No newline at end of file +v206 \ No newline at end of file diff --git a/types/2022-08-01/Checkout/Sessions.d.ts b/types/2022-08-01/Checkout/Sessions.d.ts index 74b43703cc..d8afe8a197 100644 --- a/types/2022-08-01/Checkout/Sessions.d.ts +++ b/types/2022-08-01/Checkout/Sessions.d.ts @@ -379,7 +379,7 @@ declare module 'stripe' { interface TaxId { /** - * The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `eu_oss_vat`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `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`, `jp_trn`, `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`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, or `unknown` + * The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `eu_oss_vat`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `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`, `jp_trn`, `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`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` */ type: TaxId.Type; @@ -405,6 +405,7 @@ declare module 'stripe' { | 'ca_qst' | 'ch_vat' | 'cl_tin' + | 'eg_tin' | 'es_cif' | 'eu_oss_vat' | 'eu_vat' @@ -428,6 +429,7 @@ declare module 'stripe' { | 'my_sst' | 'no_vat' | 'nz_gst' + | 'ph_tin' | 'ru_inn' | 'ru_kpp' | 'sa_vat' @@ -435,6 +437,7 @@ declare module 'stripe' { | 'sg_uen' | 'si_tin' | 'th_vat' + | 'tr_tin' | 'tw_vat' | 'ua_vat' | 'unknown' diff --git a/types/2022-08-01/Customers.d.ts b/types/2022-08-01/Customers.d.ts index eef4074b44..8af9d27b91 100644 --- a/types/2022-08-01/Customers.d.ts +++ b/types/2022-08-01/Customers.d.ts @@ -496,7 +496,7 @@ declare module 'stripe' { interface TaxIdDatum { /** - * Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `bg_uic`, `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_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `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`, `si_tin`, `th_vat`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat` + * Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `bg_uic`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ph_tin`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat` */ type: TaxIdDatum.Type; @@ -522,6 +522,7 @@ declare module 'stripe' { | 'ca_qst' | 'ch_vat' | 'cl_tin' + | 'eg_tin' | 'es_cif' | 'eu_oss_vat' | 'eu_vat' @@ -545,6 +546,7 @@ declare module 'stripe' { | 'my_sst' | 'no_vat' | 'nz_gst' + | 'ph_tin' | 'ru_inn' | 'ru_kpp' | 'sa_vat' @@ -552,6 +554,7 @@ declare module 'stripe' { | 'sg_uen' | 'si_tin' | 'th_vat' + | 'tr_tin' | 'tw_vat' | 'ua_vat' | 'us_ein' diff --git a/types/2022-08-01/Invoices.d.ts b/types/2022-08-01/Invoices.d.ts index 07bc5b551d..90cb2573a5 100644 --- a/types/2022-08-01/Invoices.d.ts +++ b/types/2022-08-01/Invoices.d.ts @@ -474,7 +474,7 @@ declare module 'stripe' { interface CustomerTaxId { /** - * The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `eu_oss_vat`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `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`, `jp_trn`, `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`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, or `unknown` + * The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `eu_oss_vat`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `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`, `jp_trn`, `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`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` */ type: CustomerTaxId.Type; @@ -500,6 +500,7 @@ declare module 'stripe' { | 'ca_qst' | 'ch_vat' | 'cl_tin' + | 'eg_tin' | 'es_cif' | 'eu_oss_vat' | 'eu_vat' @@ -523,6 +524,7 @@ declare module 'stripe' { | 'my_sst' | 'no_vat' | 'nz_gst' + | 'ph_tin' | 'ru_inn' | 'ru_kpp' | 'sa_vat' @@ -530,6 +532,7 @@ declare module 'stripe' { | 'sg_uen' | 'si_tin' | 'th_vat' + | 'tr_tin' | 'tw_vat' | 'ua_vat' | 'unknown' @@ -2079,7 +2082,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `bg_uic`, `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_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `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`, `si_tin`, `th_vat`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat` + * Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `bg_uic`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ph_tin`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat` */ type: TaxId.Type; @@ -2105,6 +2108,7 @@ declare module 'stripe' { | 'ca_qst' | 'ch_vat' | 'cl_tin' + | 'eg_tin' | 'es_cif' | 'eu_oss_vat' | 'eu_vat' @@ -2128,6 +2132,7 @@ declare module 'stripe' { | 'my_sst' | 'no_vat' | 'nz_gst' + | 'ph_tin' | 'ru_inn' | 'ru_kpp' | 'sa_vat' @@ -2135,6 +2140,7 @@ declare module 'stripe' { | 'sg_uen' | 'si_tin' | 'th_vat' + | 'tr_tin' | 'tw_vat' | 'ua_vat' | 'us_ein' @@ -2641,7 +2647,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `bg_uic`, `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_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `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`, `si_tin`, `th_vat`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat` + * Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `bg_uic`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ph_tin`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat` */ type: TaxId.Type; @@ -2667,6 +2673,7 @@ declare module 'stripe' { | 'ca_qst' | 'ch_vat' | 'cl_tin' + | 'eg_tin' | 'es_cif' | 'eu_oss_vat' | 'eu_vat' @@ -2690,6 +2697,7 @@ declare module 'stripe' { | 'my_sst' | 'no_vat' | 'nz_gst' + | 'ph_tin' | 'ru_inn' | 'ru_kpp' | 'sa_vat' @@ -2697,6 +2705,7 @@ declare module 'stripe' { | 'sg_uen' | 'si_tin' | 'th_vat' + | 'tr_tin' | 'tw_vat' | 'ua_vat' | 'us_ein' diff --git a/types/2022-08-01/Issuing/Authorizations.d.ts b/types/2022-08-01/Issuing/Authorizations.d.ts index 3d7ef05adc..3fda975cec 100644 --- a/types/2022-08-01/Issuing/Authorizations.d.ts +++ b/types/2022-08-01/Issuing/Authorizations.d.ts @@ -271,6 +271,11 @@ declare module 'stripe' { * The reason for the approval or decline. */ reason: RequestHistory.Reason; + + /** + * If approve/decline decision is directly responsed to the webhook with json payload and if the response is invalid (e.g., parsing errors), we surface the detailed message via this field. + */ + reason_message: string | null; } namespace RequestHistory { @@ -294,6 +299,7 @@ declare module 'stripe' { | 'verification_failed' | 'webhook_approved' | 'webhook_declined' + | 'webhook_error' | 'webhook_timeout'; } diff --git a/types/2022-08-01/Orders.d.ts b/types/2022-08-01/Orders.d.ts index 3aa58543c5..06dd2e9034 100644 --- a/types/2022-08-01/Orders.d.ts +++ b/types/2022-08-01/Orders.d.ts @@ -769,7 +769,7 @@ declare module 'stripe' { interface TaxId { /** - * The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `eu_oss_vat`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `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`, `jp_trn`, `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`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, or `unknown` + * The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `eu_oss_vat`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `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`, `jp_trn`, `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`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` */ type: TaxId.Type; @@ -795,6 +795,7 @@ declare module 'stripe' { | 'ca_qst' | 'ch_vat' | 'cl_tin' + | 'eg_tin' | 'es_cif' | 'eu_oss_vat' | 'eu_vat' @@ -818,6 +819,7 @@ declare module 'stripe' { | 'my_sst' | 'no_vat' | 'nz_gst' + | 'ph_tin' | 'ru_inn' | 'ru_kpp' | 'sa_vat' @@ -825,6 +827,7 @@ declare module 'stripe' { | 'sg_uen' | 'si_tin' | 'th_vat' + | 'tr_tin' | 'tw_vat' | 'ua_vat' | 'unknown' @@ -1982,7 +1985,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `bg_uic`, `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_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `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`, `si_tin`, `th_vat`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat` + * Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `bg_uic`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ph_tin`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat` */ type: TaxId.Type; @@ -2008,6 +2011,7 @@ declare module 'stripe' { | 'ca_qst' | 'ch_vat' | 'cl_tin' + | 'eg_tin' | 'es_cif' | 'eu_oss_vat' | 'eu_vat' @@ -2031,6 +2035,7 @@ declare module 'stripe' { | 'my_sst' | 'no_vat' | 'nz_gst' + | 'ph_tin' | 'ru_inn' | 'ru_kpp' | 'sa_vat' @@ -2038,6 +2043,7 @@ declare module 'stripe' { | 'sg_uen' | 'si_tin' | 'th_vat' + | 'tr_tin' | 'tw_vat' | 'ua_vat' | 'us_ein' @@ -3146,7 +3152,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `bg_uic`, `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_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `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`, `si_tin`, `th_vat`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat` + * Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `bg_uic`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ph_tin`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat` */ type: TaxId.Type; @@ -3172,6 +3178,7 @@ declare module 'stripe' { | 'ca_qst' | 'ch_vat' | 'cl_tin' + | 'eg_tin' | 'es_cif' | 'eu_oss_vat' | 'eu_vat' @@ -3195,6 +3202,7 @@ declare module 'stripe' { | 'my_sst' | 'no_vat' | 'nz_gst' + | 'ph_tin' | 'ru_inn' | 'ru_kpp' | 'sa_vat' @@ -3202,6 +3210,7 @@ declare module 'stripe' { | 'sg_uen' | 'si_tin' | 'th_vat' + | 'tr_tin' | 'tw_vat' | 'ua_vat' | 'us_ein' diff --git a/types/2022-08-01/TaxIds.d.ts b/types/2022-08-01/TaxIds.d.ts index 9632015906..dbaae1a0e2 100644 --- a/types/2022-08-01/TaxIds.d.ts +++ b/types/2022-08-01/TaxIds.d.ts @@ -42,7 +42,7 @@ declare module 'stripe' { livemode: boolean; /** - * Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `bg_uic`, `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_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `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`, `si_tin`, `th_vat`, `tw_vat`, `ua_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`, `au_arn`, `bg_uic`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ph_tin`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat`. Note that some legacy tax IDs have type `unknown` */ type: TaxId.Type; @@ -73,6 +73,7 @@ declare module 'stripe' { | 'ca_qst' | 'ch_vat' | 'cl_tin' + | 'eg_tin' | 'es_cif' | 'eu_oss_vat' | 'eu_vat' @@ -96,6 +97,7 @@ declare module 'stripe' { | 'my_sst' | 'no_vat' | 'nz_gst' + | 'ph_tin' | 'ru_inn' | 'ru_kpp' | 'sa_vat' @@ -103,6 +105,7 @@ declare module 'stripe' { | 'sg_uen' | 'si_tin' | 'th_vat' + | 'tr_tin' | 'tw_vat' | 'ua_vat' | 'unknown' @@ -153,7 +156,7 @@ declare module 'stripe' { interface TaxIdCreateParams { /** - * Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `bg_uic`, `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_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `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`, `si_tin`, `th_vat`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat` + * Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `bg_uic`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ph_tin`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat` */ type: TaxIdCreateParams.Type; @@ -184,6 +187,7 @@ declare module 'stripe' { | 'ca_qst' | 'ch_vat' | 'cl_tin' + | 'eg_tin' | 'es_cif' | 'eu_oss_vat' | 'eu_vat' @@ -207,6 +211,7 @@ declare module 'stripe' { | 'my_sst' | 'no_vat' | 'nz_gst' + | 'ph_tin' | 'ru_inn' | 'ru_kpp' | 'sa_vat' @@ -214,6 +219,7 @@ declare module 'stripe' { | 'sg_uen' | 'si_tin' | 'th_vat' + | 'tr_tin' | 'tw_vat' | 'ua_vat' | 'us_ein' From 82fb3afd8e6c39868ca054cae99b0bd6ec1be846 Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Tue, 8 Nov 2022 12:25:31 -0800 Subject: [PATCH 2/2] Bump version to 10.17.0 --- CHANGELOG.md | 7 +++++++ VERSION | 2 +- package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c5eb586b1f..cd888d4bbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 10.17.0 - 2022-11-08 +* [#1610](https://github.com/stripe/stripe-node/pull/1610) API Updates + * Add support for new values `eg_tin`, `ph_tin`, and `tr_tin` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Order.tax_details.tax_ids[].type`, and `TaxId.type` + * Add support for new values `eg_tin`, `ph_tin`, and `tr_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `OrderCreateParams.tax_details.tax_ids[].type`, `OrderUpdateParams.tax_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for `reason_message` on `Issuing.Authorization.request_history[]` + * Add support for new value `webhook_error` on enum `Issuing.Authorization.request_history[].reason` + ## 10.16.0 - 2022-11-03 * [#1596](https://github.com/stripe/stripe-node/pull/1596) API Updates * Add support for `on_behalf_of` on `CheckoutSessionCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionSchedule.default_settings`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.default_settings`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.default_settings`, `SubscriptionScheduleUpdateParams.phases[]`, `SubscriptionUpdateParams`, and `Subscription` diff --git a/VERSION b/VERSION index 5007551bf8..73bffb0393 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -10.16.0 +10.17.0 diff --git a/package.json b/package.json index 079300ad6e..ec9d30a6a0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stripe", - "version": "10.16.0", + "version": "10.17.0", "description": "Stripe API wrapper", "keywords": [ "stripe",