From c31c07ed61dfd7135e89401aecdb5346f06fd2b4 Mon Sep 17 00:00:00 2001 From: Annie Li Date: Mon, 7 Nov 2022 10:41:21 -0800 Subject: [PATCH 1/5] Update LatestApiVersion and types reference --- types/lib.d.ts | 2 +- types/test/typescriptTest.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/types/lib.d.ts b/types/lib.d.ts index cf4b19e211..0cc5e43bfd 100644 --- a/types/lib.d.ts +++ b/types/lib.d.ts @@ -52,7 +52,7 @@ declare module 'stripe' { }; static MAX_BUFFERED_REQUEST_METRICS: number; } - export type LatestApiVersion = '2022-08-01'; + export type LatestApiVersion = '2022-11-09'; export type HttpAgent = Agent; export type HttpProtocol = 'http' | 'https'; diff --git a/types/test/typescriptTest.ts b/types/test/typescriptTest.ts index 42d0fec726..63a08d306b 100644 --- a/types/test/typescriptTest.ts +++ b/types/test/typescriptTest.ts @@ -5,11 +5,11 @@ * and to perform a basic sanity check that types are exported as intended. */ -/// +/// import Stripe from 'stripe'; let stripe = new Stripe('sk_test_123', { - apiVersion: '2022-08-01', + apiVersion: '2022-11-09', }); // @ts-ignore lazily ignore apiVersion requirement. @@ -27,7 +27,7 @@ stripe = new Stripe('sk_test_123', { // Check config object. stripe = new Stripe('sk_test_123', { - apiVersion: '2022-08-01', + apiVersion: '2022-11-09', typescript: true, maxNetworkRetries: 1, timeout: 1000, 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 2/5] 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 c26c02b050c8a98bd79442a071b228230ba3fbfd Mon Sep 17 00:00:00 2001 From: Annie Li Date: Tue, 8 Nov 2022 11:54:12 -0800 Subject: [PATCH 3/5] Update all references to latest API version --- API_VERSION | 2 +- README.md | 2 +- examples/webhook-signing/typescript-node-express/express-ts.ts | 2 +- lib/apiVersion.js | 2 +- package.json | 2 +- src/apiVersion.js | 2 +- types/test/typescriptTest.ts | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/API_VERSION b/API_VERSION index 0366ceb901..439033dac5 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -2022-08-01 +2022-11-09 diff --git a/README.md b/README.md index cfaeab81ab..e335a74a93 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ and instantiate it as `new Stripe()` with the latest API version. ```ts import Stripe from 'stripe'; const stripe = new Stripe('sk_test_...', { - apiVersion: '2022-08-01', + apiVersion: '2022-11-09', }); const createCustomer = async () => { diff --git a/examples/webhook-signing/typescript-node-express/express-ts.ts b/examples/webhook-signing/typescript-node-express/express-ts.ts index c0a4c1d4b7..f3d901e75b 100644 --- a/examples/webhook-signing/typescript-node-express/express-ts.ts +++ b/examples/webhook-signing/typescript-node-express/express-ts.ts @@ -5,7 +5,7 @@ import env from 'dotenv'; env.config(); const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, { - apiVersion: '2022-08-01', + apiVersion: '2022-11-09', }); const webhookSecret: string = process.env.STRIPE_WEBHOOK_SECRET; diff --git a/lib/apiVersion.js b/lib/apiVersion.js index 518f4476ab..eab32ae80a 100644 --- a/lib/apiVersion.js +++ b/lib/apiVersion.js @@ -1,3 +1,3 @@ 'use strict'; // File generated from our OpenAPI spec -module.exports = {ApiVersion: '2022-08-01'}; +module.exports = {ApiVersion: '2022-11-09'}; diff --git a/package.json b/package.json index 8d72bfb3a8..6864ef8527 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "node": ">=12.*" }, "main": "lib/stripe.js", - "types": "types/2022-08-01/index.d.ts", + "types": "types/2022-11-09/index.d.ts", "devDependencies": { "@typescript-eslint/eslint-plugin": "^4.33.0", "@typescript-eslint/parser": "^4.33.0", diff --git a/src/apiVersion.js b/src/apiVersion.js index 704a3619eb..8c1d730e34 100644 --- a/src/apiVersion.js +++ b/src/apiVersion.js @@ -1,3 +1,3 @@ // File generated from our OpenAPI spec -module.exports = {ApiVersion: '2022-08-01'}; +module.exports = {ApiVersion: '2022-11-09'}; diff --git a/types/test/typescriptTest.ts b/types/test/typescriptTest.ts index 63a08d306b..10d483e74a 100644 --- a/types/test/typescriptTest.ts +++ b/types/test/typescriptTest.ts @@ -45,7 +45,7 @@ stripe = new Stripe('sk_test_123', { description: 'test', }; const opts: Stripe.RequestOptions = { - apiVersion: '2022-08-01', + apiVersion: '2022-11-09', }; const customer: Stripe.Customer = await stripe.customers.create(params, opts); From 82fb3afd8e6c39868ca054cae99b0bd6ec1be846 Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Tue, 8 Nov 2022 12:25:31 -0800 Subject: [PATCH 4/5] 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", From 009b592b7dcd27b72ecab718f96f4637317fe4be Mon Sep 17 00:00:00 2001 From: Annie Li Date: Wed, 9 Nov 2022 13:07:17 -0800 Subject: [PATCH 5/5] Regenerate --- lib/apiVersion.js | 2 +- src/apiVersion.js | 2 +- types/{2022-08-01 => 2022-11-09}/AccountLinks.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Accounts.d.ts | 0 types/{2022-08-01 => 2022-11-09}/ApplePayDomains.d.ts | 0 types/{2022-08-01 => 2022-11-09}/ApplicationFees.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Applications.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Apps/Secrets.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Balance.d.ts | 0 .../BalanceTransactions.d.ts | 0 types/{2022-08-01 => 2022-11-09}/BankAccounts.d.ts | 0 .../BillingPortal/Configurations.d.ts | 0 .../BillingPortal/Sessions.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Capabilities.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Cards.d.ts | 0 types/{2022-08-01 => 2022-11-09}/CashBalances.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Charges.d.ts | 2 +- .../{2022-08-01 => 2022-11-09}/Checkout/Sessions.d.ts | 10 ---------- .../ConnectCollectionTransfers.d.ts | 0 types/{2022-08-01 => 2022-11-09}/CountrySpecs.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Coupons.d.ts | 0 .../CreditNoteLineItems.d.ts | 0 types/{2022-08-01 => 2022-11-09}/CreditNotes.d.ts | 0 .../CustomerBalanceTransactions.d.ts | 0 .../CustomerCashBalanceTransactions.d.ts | 0 types/{2022-08-01 => 2022-11-09}/CustomerSources.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Customers.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Discounts.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Disputes.d.ts | 0 types/{2022-08-01 => 2022-11-09}/EphemeralKeys.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Events.d.ts | 0 types/{2022-08-01 => 2022-11-09}/ExchangeRates.d.ts | 0 types/{2022-08-01 => 2022-11-09}/ExternalAccounts.d.ts | 0 types/{2022-08-01 => 2022-11-09}/FeeRefunds.d.ts | 0 types/{2022-08-01 => 2022-11-09}/FileLinks.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Files.d.ts | 0 .../FinancialConnections/AccountOwners.d.ts | 0 .../FinancialConnections/AccountOwnerships.d.ts | 0 .../FinancialConnections/Accounts.d.ts | 0 .../FinancialConnections/Sessions.d.ts | 0 .../FundingInstructions.d.ts | 0 .../Identity/VerificationReports.d.ts | 0 .../Identity/VerificationSessions.d.ts | 0 types/{2022-08-01 => 2022-11-09}/InvoiceItems.d.ts | 0 types/{2022-08-01 => 2022-11-09}/InvoiceLineItems.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Invoices.d.ts | 0 .../Issuing/Authorizations.d.ts | 0 .../Issuing/Cardholders.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Issuing/Cards.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Issuing/Disputes.d.ts | 0 .../Issuing/Transactions.d.ts | 0 types/{2022-08-01 => 2022-11-09}/LineItems.d.ts | 0 types/{2022-08-01 => 2022-11-09}/LoginLinks.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Mandates.d.ts | 0 types/{2022-08-01 => 2022-11-09}/PaymentIntents.d.ts | 10 +++++----- types/{2022-08-01 => 2022-11-09}/PaymentLinks.d.ts | 0 types/{2022-08-01 => 2022-11-09}/PaymentMethods.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Payouts.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Persons.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Plans.d.ts | 0 types/{2022-08-01 => 2022-11-09}/PlatformTaxFees.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Prices.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Products.d.ts | 0 types/{2022-08-01 => 2022-11-09}/PromotionCodes.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Quotes.d.ts | 0 .../Radar/EarlyFraudWarnings.d.ts | 0 .../Radar/ValueListItems.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Radar/ValueLists.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Refunds.d.ts | 0 .../Reporting/ReportRuns.d.ts | 0 .../Reporting/ReportTypes.d.ts | 0 .../ReserveTransactions.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Reviews.d.ts | 0 types/{2022-08-01 => 2022-11-09}/SetupAttempts.d.ts | 0 types/{2022-08-01 => 2022-11-09}/SetupIntents.d.ts | 0 types/{2022-08-01 => 2022-11-09}/ShippingRates.d.ts | 0 .../Sigma/ScheduledQueryRuns.d.ts | 0 .../SourceMandateNotifications.d.ts | 0 .../{2022-08-01 => 2022-11-09}/SourceTransactions.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Sources.d.ts | 0 .../{2022-08-01 => 2022-11-09}/SubscriptionItems.d.ts | 0 .../SubscriptionSchedules.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Subscriptions.d.ts | 0 types/{2022-08-01 => 2022-11-09}/TaxCodes.d.ts | 0 .../TaxDeductedAtSources.d.ts | 0 types/{2022-08-01 => 2022-11-09}/TaxIds.d.ts | 0 types/{2022-08-01 => 2022-11-09}/TaxRates.d.ts | 0 .../Terminal/Configurations.d.ts | 0 .../Terminal/ConnectionTokens.d.ts | 0 .../{2022-08-01 => 2022-11-09}/Terminal/Locations.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Terminal/Readers.d.ts | 0 .../TestHelpers/Customers.d.ts | 0 .../TestHelpers/Issuing/Cards.d.ts | 0 .../TestHelpers/Refunds.d.ts | 0 .../TestHelpers/Terminal/Readers.d.ts | 0 .../TestHelpers/TestClocks.d.ts | 0 .../TestHelpers/Treasury/InboundTransfers.d.ts | 0 .../TestHelpers/Treasury/OutboundPayments.d.ts | 0 .../TestHelpers/Treasury/OutboundTransfers.d.ts | 0 .../TestHelpers/Treasury/ReceivedCredits.d.ts | 0 .../TestHelpers/Treasury/ReceivedDebits.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Tokens.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Topups.d.ts | 0 .../{2022-08-01 => 2022-11-09}/TransferReversals.d.ts | 0 types/{2022-08-01 => 2022-11-09}/Transfers.d.ts | 0 .../Treasury/CreditReversals.d.ts | 0 .../Treasury/DebitReversals.d.ts | 0 .../Treasury/FinancialAccountFeatures.d.ts | 0 .../Treasury/FinancialAccounts.d.ts | 0 .../Treasury/InboundTransfers.d.ts | 0 .../Treasury/OutboundPayments.d.ts | 0 .../Treasury/OutboundTransfers.d.ts | 0 .../Treasury/ReceivedCredits.d.ts | 0 .../Treasury/ReceivedDebits.d.ts | 0 .../Treasury/TransactionEntries.d.ts | 0 .../Treasury/Transactions.d.ts | 0 .../UsageRecordSummaries.d.ts | 0 types/{2022-08-01 => 2022-11-09}/UsageRecords.d.ts | 0 types/{2022-08-01 => 2022-11-09}/WebhookEndpoints.d.ts | 3 ++- types/{2022-08-01 => 2022-11-09}/index.d.ts | 0 120 files changed, 10 insertions(+), 19 deletions(-) rename types/{2022-08-01 => 2022-11-09}/AccountLinks.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Accounts.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/ApplePayDomains.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/ApplicationFees.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Applications.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Apps/Secrets.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Balance.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/BalanceTransactions.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/BankAccounts.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/BillingPortal/Configurations.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/BillingPortal/Sessions.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Capabilities.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Cards.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/CashBalances.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Charges.d.ts (99%) rename types/{2022-08-01 => 2022-11-09}/Checkout/Sessions.d.ts (99%) rename types/{2022-08-01 => 2022-11-09}/ConnectCollectionTransfers.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/CountrySpecs.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Coupons.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/CreditNoteLineItems.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/CreditNotes.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/CustomerBalanceTransactions.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/CustomerCashBalanceTransactions.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/CustomerSources.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Customers.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Discounts.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Disputes.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/EphemeralKeys.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Events.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/ExchangeRates.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/ExternalAccounts.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/FeeRefunds.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/FileLinks.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Files.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/FinancialConnections/AccountOwners.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/FinancialConnections/AccountOwnerships.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/FinancialConnections/Accounts.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/FinancialConnections/Sessions.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/FundingInstructions.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Identity/VerificationReports.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Identity/VerificationSessions.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/InvoiceItems.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/InvoiceLineItems.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Invoices.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Issuing/Authorizations.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Issuing/Cardholders.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Issuing/Cards.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Issuing/Disputes.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Issuing/Transactions.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/LineItems.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/LoginLinks.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Mandates.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/PaymentIntents.d.ts (99%) rename types/{2022-08-01 => 2022-11-09}/PaymentLinks.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/PaymentMethods.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Payouts.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Persons.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Plans.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/PlatformTaxFees.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Prices.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Products.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/PromotionCodes.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Quotes.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Radar/EarlyFraudWarnings.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Radar/ValueListItems.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Radar/ValueLists.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Refunds.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Reporting/ReportRuns.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Reporting/ReportTypes.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/ReserveTransactions.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Reviews.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/SetupAttempts.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/SetupIntents.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/ShippingRates.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Sigma/ScheduledQueryRuns.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/SourceMandateNotifications.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/SourceTransactions.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Sources.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/SubscriptionItems.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/SubscriptionSchedules.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Subscriptions.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/TaxCodes.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/TaxDeductedAtSources.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/TaxIds.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/TaxRates.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Terminal/Configurations.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Terminal/ConnectionTokens.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Terminal/Locations.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Terminal/Readers.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/TestHelpers/Customers.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/TestHelpers/Issuing/Cards.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/TestHelpers/Refunds.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/TestHelpers/Terminal/Readers.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/TestHelpers/TestClocks.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/TestHelpers/Treasury/InboundTransfers.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/TestHelpers/Treasury/OutboundPayments.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/TestHelpers/Treasury/OutboundTransfers.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/TestHelpers/Treasury/ReceivedCredits.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/TestHelpers/Treasury/ReceivedDebits.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Tokens.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Topups.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/TransferReversals.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Transfers.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Treasury/CreditReversals.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Treasury/DebitReversals.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Treasury/FinancialAccountFeatures.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Treasury/FinancialAccounts.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Treasury/InboundTransfers.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Treasury/OutboundPayments.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Treasury/OutboundTransfers.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Treasury/ReceivedCredits.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Treasury/ReceivedDebits.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Treasury/TransactionEntries.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/Treasury/Transactions.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/UsageRecordSummaries.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/UsageRecords.d.ts (100%) rename types/{2022-08-01 => 2022-11-09}/WebhookEndpoints.d.ts (99%) rename types/{2022-08-01 => 2022-11-09}/index.d.ts (100%) diff --git a/lib/apiVersion.js b/lib/apiVersion.js index 518f4476ab..eab32ae80a 100644 --- a/lib/apiVersion.js +++ b/lib/apiVersion.js @@ -1,3 +1,3 @@ 'use strict'; // File generated from our OpenAPI spec -module.exports = {ApiVersion: '2022-08-01'}; +module.exports = {ApiVersion: '2022-11-09'}; diff --git a/src/apiVersion.js b/src/apiVersion.js index 704a3619eb..8c1d730e34 100644 --- a/src/apiVersion.js +++ b/src/apiVersion.js @@ -1,3 +1,3 @@ // File generated from our OpenAPI spec -module.exports = {ApiVersion: '2022-08-01'}; +module.exports = {ApiVersion: '2022-11-09'}; diff --git a/types/2022-08-01/AccountLinks.d.ts b/types/2022-11-09/AccountLinks.d.ts similarity index 100% rename from types/2022-08-01/AccountLinks.d.ts rename to types/2022-11-09/AccountLinks.d.ts diff --git a/types/2022-08-01/Accounts.d.ts b/types/2022-11-09/Accounts.d.ts similarity index 100% rename from types/2022-08-01/Accounts.d.ts rename to types/2022-11-09/Accounts.d.ts diff --git a/types/2022-08-01/ApplePayDomains.d.ts b/types/2022-11-09/ApplePayDomains.d.ts similarity index 100% rename from types/2022-08-01/ApplePayDomains.d.ts rename to types/2022-11-09/ApplePayDomains.d.ts diff --git a/types/2022-08-01/ApplicationFees.d.ts b/types/2022-11-09/ApplicationFees.d.ts similarity index 100% rename from types/2022-08-01/ApplicationFees.d.ts rename to types/2022-11-09/ApplicationFees.d.ts diff --git a/types/2022-08-01/Applications.d.ts b/types/2022-11-09/Applications.d.ts similarity index 100% rename from types/2022-08-01/Applications.d.ts rename to types/2022-11-09/Applications.d.ts diff --git a/types/2022-08-01/Apps/Secrets.d.ts b/types/2022-11-09/Apps/Secrets.d.ts similarity index 100% rename from types/2022-08-01/Apps/Secrets.d.ts rename to types/2022-11-09/Apps/Secrets.d.ts diff --git a/types/2022-08-01/Balance.d.ts b/types/2022-11-09/Balance.d.ts similarity index 100% rename from types/2022-08-01/Balance.d.ts rename to types/2022-11-09/Balance.d.ts diff --git a/types/2022-08-01/BalanceTransactions.d.ts b/types/2022-11-09/BalanceTransactions.d.ts similarity index 100% rename from types/2022-08-01/BalanceTransactions.d.ts rename to types/2022-11-09/BalanceTransactions.d.ts diff --git a/types/2022-08-01/BankAccounts.d.ts b/types/2022-11-09/BankAccounts.d.ts similarity index 100% rename from types/2022-08-01/BankAccounts.d.ts rename to types/2022-11-09/BankAccounts.d.ts diff --git a/types/2022-08-01/BillingPortal/Configurations.d.ts b/types/2022-11-09/BillingPortal/Configurations.d.ts similarity index 100% rename from types/2022-08-01/BillingPortal/Configurations.d.ts rename to types/2022-11-09/BillingPortal/Configurations.d.ts diff --git a/types/2022-08-01/BillingPortal/Sessions.d.ts b/types/2022-11-09/BillingPortal/Sessions.d.ts similarity index 100% rename from types/2022-08-01/BillingPortal/Sessions.d.ts rename to types/2022-11-09/BillingPortal/Sessions.d.ts diff --git a/types/2022-08-01/Capabilities.d.ts b/types/2022-11-09/Capabilities.d.ts similarity index 100% rename from types/2022-08-01/Capabilities.d.ts rename to types/2022-11-09/Capabilities.d.ts diff --git a/types/2022-08-01/Cards.d.ts b/types/2022-11-09/Cards.d.ts similarity index 100% rename from types/2022-08-01/Cards.d.ts rename to types/2022-11-09/Cards.d.ts diff --git a/types/2022-08-01/CashBalances.d.ts b/types/2022-11-09/CashBalances.d.ts similarity index 100% rename from types/2022-08-01/CashBalances.d.ts rename to types/2022-11-09/CashBalances.d.ts diff --git a/types/2022-08-01/Charges.d.ts b/types/2022-11-09/Charges.d.ts similarity index 99% rename from types/2022-08-01/Charges.d.ts rename to types/2022-11-09/Charges.d.ts index 752f3b41ca..177f810fa7 100644 --- a/types/2022-08-01/Charges.d.ts +++ b/types/2022-11-09/Charges.d.ts @@ -204,7 +204,7 @@ declare module 'stripe' { /** * A list of refunds that have been applied to the charge. */ - refunds?: ApiList; + refunds: ApiList | null; /** * ID of the review associated with this charge if one exists. diff --git a/types/2022-08-01/Checkout/Sessions.d.ts b/types/2022-11-09/Checkout/Sessions.d.ts similarity index 99% rename from types/2022-08-01/Checkout/Sessions.d.ts rename to types/2022-11-09/Checkout/Sessions.d.ts index 2889b800a6..dc63b7c02a 100644 --- a/types/2022-08-01/Checkout/Sessions.d.ts +++ b/types/2022-11-09/Checkout/Sessions.d.ts @@ -1728,11 +1728,6 @@ declare module 'stripe' { */ adjustable_quantity?: LineItem.AdjustableQuantity; - /** - * [Deprecated] The amount to be collected per unit of the line item. If specified, must also pass `currency` and `name`. - */ - amount?: number; - /** * The [tax rates](https://stripe.com/docs/api/tax_rates) that will be applied to this line item depending on the customer's billing/shipping address. We currently support the following countries: US, GB, AU, and all countries in the EU. */ @@ -2560,11 +2555,6 @@ declare module 'stripe' { * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). */ setup_future_usage?: 'none'; - - /** - * Confirm that the payer has accepted the P24 terms and conditions. - */ - tos_shown_and_accepted?: boolean; } interface Pix { diff --git a/types/2022-08-01/ConnectCollectionTransfers.d.ts b/types/2022-11-09/ConnectCollectionTransfers.d.ts similarity index 100% rename from types/2022-08-01/ConnectCollectionTransfers.d.ts rename to types/2022-11-09/ConnectCollectionTransfers.d.ts diff --git a/types/2022-08-01/CountrySpecs.d.ts b/types/2022-11-09/CountrySpecs.d.ts similarity index 100% rename from types/2022-08-01/CountrySpecs.d.ts rename to types/2022-11-09/CountrySpecs.d.ts diff --git a/types/2022-08-01/Coupons.d.ts b/types/2022-11-09/Coupons.d.ts similarity index 100% rename from types/2022-08-01/Coupons.d.ts rename to types/2022-11-09/Coupons.d.ts diff --git a/types/2022-08-01/CreditNoteLineItems.d.ts b/types/2022-11-09/CreditNoteLineItems.d.ts similarity index 100% rename from types/2022-08-01/CreditNoteLineItems.d.ts rename to types/2022-11-09/CreditNoteLineItems.d.ts diff --git a/types/2022-08-01/CreditNotes.d.ts b/types/2022-11-09/CreditNotes.d.ts similarity index 100% rename from types/2022-08-01/CreditNotes.d.ts rename to types/2022-11-09/CreditNotes.d.ts diff --git a/types/2022-08-01/CustomerBalanceTransactions.d.ts b/types/2022-11-09/CustomerBalanceTransactions.d.ts similarity index 100% rename from types/2022-08-01/CustomerBalanceTransactions.d.ts rename to types/2022-11-09/CustomerBalanceTransactions.d.ts diff --git a/types/2022-08-01/CustomerCashBalanceTransactions.d.ts b/types/2022-11-09/CustomerCashBalanceTransactions.d.ts similarity index 100% rename from types/2022-08-01/CustomerCashBalanceTransactions.d.ts rename to types/2022-11-09/CustomerCashBalanceTransactions.d.ts diff --git a/types/2022-08-01/CustomerSources.d.ts b/types/2022-11-09/CustomerSources.d.ts similarity index 100% rename from types/2022-08-01/CustomerSources.d.ts rename to types/2022-11-09/CustomerSources.d.ts diff --git a/types/2022-08-01/Customers.d.ts b/types/2022-11-09/Customers.d.ts similarity index 100% rename from types/2022-08-01/Customers.d.ts rename to types/2022-11-09/Customers.d.ts diff --git a/types/2022-08-01/Discounts.d.ts b/types/2022-11-09/Discounts.d.ts similarity index 100% rename from types/2022-08-01/Discounts.d.ts rename to types/2022-11-09/Discounts.d.ts diff --git a/types/2022-08-01/Disputes.d.ts b/types/2022-11-09/Disputes.d.ts similarity index 100% rename from types/2022-08-01/Disputes.d.ts rename to types/2022-11-09/Disputes.d.ts diff --git a/types/2022-08-01/EphemeralKeys.d.ts b/types/2022-11-09/EphemeralKeys.d.ts similarity index 100% rename from types/2022-08-01/EphemeralKeys.d.ts rename to types/2022-11-09/EphemeralKeys.d.ts diff --git a/types/2022-08-01/Events.d.ts b/types/2022-11-09/Events.d.ts similarity index 100% rename from types/2022-08-01/Events.d.ts rename to types/2022-11-09/Events.d.ts diff --git a/types/2022-08-01/ExchangeRates.d.ts b/types/2022-11-09/ExchangeRates.d.ts similarity index 100% rename from types/2022-08-01/ExchangeRates.d.ts rename to types/2022-11-09/ExchangeRates.d.ts diff --git a/types/2022-08-01/ExternalAccounts.d.ts b/types/2022-11-09/ExternalAccounts.d.ts similarity index 100% rename from types/2022-08-01/ExternalAccounts.d.ts rename to types/2022-11-09/ExternalAccounts.d.ts diff --git a/types/2022-08-01/FeeRefunds.d.ts b/types/2022-11-09/FeeRefunds.d.ts similarity index 100% rename from types/2022-08-01/FeeRefunds.d.ts rename to types/2022-11-09/FeeRefunds.d.ts diff --git a/types/2022-08-01/FileLinks.d.ts b/types/2022-11-09/FileLinks.d.ts similarity index 100% rename from types/2022-08-01/FileLinks.d.ts rename to types/2022-11-09/FileLinks.d.ts diff --git a/types/2022-08-01/Files.d.ts b/types/2022-11-09/Files.d.ts similarity index 100% rename from types/2022-08-01/Files.d.ts rename to types/2022-11-09/Files.d.ts diff --git a/types/2022-08-01/FinancialConnections/AccountOwners.d.ts b/types/2022-11-09/FinancialConnections/AccountOwners.d.ts similarity index 100% rename from types/2022-08-01/FinancialConnections/AccountOwners.d.ts rename to types/2022-11-09/FinancialConnections/AccountOwners.d.ts diff --git a/types/2022-08-01/FinancialConnections/AccountOwnerships.d.ts b/types/2022-11-09/FinancialConnections/AccountOwnerships.d.ts similarity index 100% rename from types/2022-08-01/FinancialConnections/AccountOwnerships.d.ts rename to types/2022-11-09/FinancialConnections/AccountOwnerships.d.ts diff --git a/types/2022-08-01/FinancialConnections/Accounts.d.ts b/types/2022-11-09/FinancialConnections/Accounts.d.ts similarity index 100% rename from types/2022-08-01/FinancialConnections/Accounts.d.ts rename to types/2022-11-09/FinancialConnections/Accounts.d.ts diff --git a/types/2022-08-01/FinancialConnections/Sessions.d.ts b/types/2022-11-09/FinancialConnections/Sessions.d.ts similarity index 100% rename from types/2022-08-01/FinancialConnections/Sessions.d.ts rename to types/2022-11-09/FinancialConnections/Sessions.d.ts diff --git a/types/2022-08-01/FundingInstructions.d.ts b/types/2022-11-09/FundingInstructions.d.ts similarity index 100% rename from types/2022-08-01/FundingInstructions.d.ts rename to types/2022-11-09/FundingInstructions.d.ts diff --git a/types/2022-08-01/Identity/VerificationReports.d.ts b/types/2022-11-09/Identity/VerificationReports.d.ts similarity index 100% rename from types/2022-08-01/Identity/VerificationReports.d.ts rename to types/2022-11-09/Identity/VerificationReports.d.ts diff --git a/types/2022-08-01/Identity/VerificationSessions.d.ts b/types/2022-11-09/Identity/VerificationSessions.d.ts similarity index 100% rename from types/2022-08-01/Identity/VerificationSessions.d.ts rename to types/2022-11-09/Identity/VerificationSessions.d.ts diff --git a/types/2022-08-01/InvoiceItems.d.ts b/types/2022-11-09/InvoiceItems.d.ts similarity index 100% rename from types/2022-08-01/InvoiceItems.d.ts rename to types/2022-11-09/InvoiceItems.d.ts diff --git a/types/2022-08-01/InvoiceLineItems.d.ts b/types/2022-11-09/InvoiceLineItems.d.ts similarity index 100% rename from types/2022-08-01/InvoiceLineItems.d.ts rename to types/2022-11-09/InvoiceLineItems.d.ts diff --git a/types/2022-08-01/Invoices.d.ts b/types/2022-11-09/Invoices.d.ts similarity index 100% rename from types/2022-08-01/Invoices.d.ts rename to types/2022-11-09/Invoices.d.ts diff --git a/types/2022-08-01/Issuing/Authorizations.d.ts b/types/2022-11-09/Issuing/Authorizations.d.ts similarity index 100% rename from types/2022-08-01/Issuing/Authorizations.d.ts rename to types/2022-11-09/Issuing/Authorizations.d.ts diff --git a/types/2022-08-01/Issuing/Cardholders.d.ts b/types/2022-11-09/Issuing/Cardholders.d.ts similarity index 100% rename from types/2022-08-01/Issuing/Cardholders.d.ts rename to types/2022-11-09/Issuing/Cardholders.d.ts diff --git a/types/2022-08-01/Issuing/Cards.d.ts b/types/2022-11-09/Issuing/Cards.d.ts similarity index 100% rename from types/2022-08-01/Issuing/Cards.d.ts rename to types/2022-11-09/Issuing/Cards.d.ts diff --git a/types/2022-08-01/Issuing/Disputes.d.ts b/types/2022-11-09/Issuing/Disputes.d.ts similarity index 100% rename from types/2022-08-01/Issuing/Disputes.d.ts rename to types/2022-11-09/Issuing/Disputes.d.ts diff --git a/types/2022-08-01/Issuing/Transactions.d.ts b/types/2022-11-09/Issuing/Transactions.d.ts similarity index 100% rename from types/2022-08-01/Issuing/Transactions.d.ts rename to types/2022-11-09/Issuing/Transactions.d.ts diff --git a/types/2022-08-01/LineItems.d.ts b/types/2022-11-09/LineItems.d.ts similarity index 100% rename from types/2022-08-01/LineItems.d.ts rename to types/2022-11-09/LineItems.d.ts diff --git a/types/2022-08-01/LoginLinks.d.ts b/types/2022-11-09/LoginLinks.d.ts similarity index 100% rename from types/2022-08-01/LoginLinks.d.ts rename to types/2022-11-09/LoginLinks.d.ts diff --git a/types/2022-08-01/Mandates.d.ts b/types/2022-11-09/Mandates.d.ts similarity index 100% rename from types/2022-08-01/Mandates.d.ts rename to types/2022-11-09/Mandates.d.ts diff --git a/types/2022-08-01/PaymentIntents.d.ts b/types/2022-11-09/PaymentIntents.d.ts similarity index 99% rename from types/2022-08-01/PaymentIntents.d.ts rename to types/2022-11-09/PaymentIntents.d.ts index 83b8bd9406..d9af3bb497 100644 --- a/types/2022-08-01/PaymentIntents.d.ts +++ b/types/2022-11-09/PaymentIntents.d.ts @@ -73,11 +73,6 @@ declare module 'stripe' { */ capture_method: PaymentIntent.CaptureMethod; - /** - * Charges that were created by this PaymentIntent, if any. - */ - charges?: ApiList; - /** * The client secret of this PaymentIntent. Used for client-side retrieval using a publishable key. * @@ -123,6 +118,11 @@ declare module 'stripe' { */ last_payment_error: PaymentIntent.LastPaymentError | null; + /** + * The latest charge created by this payment intent. + */ + latest_charge?: string | Stripe.Charge | null; + /** * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. */ diff --git a/types/2022-08-01/PaymentLinks.d.ts b/types/2022-11-09/PaymentLinks.d.ts similarity index 100% rename from types/2022-08-01/PaymentLinks.d.ts rename to types/2022-11-09/PaymentLinks.d.ts diff --git a/types/2022-08-01/PaymentMethods.d.ts b/types/2022-11-09/PaymentMethods.d.ts similarity index 100% rename from types/2022-08-01/PaymentMethods.d.ts rename to types/2022-11-09/PaymentMethods.d.ts diff --git a/types/2022-08-01/Payouts.d.ts b/types/2022-11-09/Payouts.d.ts similarity index 100% rename from types/2022-08-01/Payouts.d.ts rename to types/2022-11-09/Payouts.d.ts diff --git a/types/2022-08-01/Persons.d.ts b/types/2022-11-09/Persons.d.ts similarity index 100% rename from types/2022-08-01/Persons.d.ts rename to types/2022-11-09/Persons.d.ts diff --git a/types/2022-08-01/Plans.d.ts b/types/2022-11-09/Plans.d.ts similarity index 100% rename from types/2022-08-01/Plans.d.ts rename to types/2022-11-09/Plans.d.ts diff --git a/types/2022-08-01/PlatformTaxFees.d.ts b/types/2022-11-09/PlatformTaxFees.d.ts similarity index 100% rename from types/2022-08-01/PlatformTaxFees.d.ts rename to types/2022-11-09/PlatformTaxFees.d.ts diff --git a/types/2022-08-01/Prices.d.ts b/types/2022-11-09/Prices.d.ts similarity index 100% rename from types/2022-08-01/Prices.d.ts rename to types/2022-11-09/Prices.d.ts diff --git a/types/2022-08-01/Products.d.ts b/types/2022-11-09/Products.d.ts similarity index 100% rename from types/2022-08-01/Products.d.ts rename to types/2022-11-09/Products.d.ts diff --git a/types/2022-08-01/PromotionCodes.d.ts b/types/2022-11-09/PromotionCodes.d.ts similarity index 100% rename from types/2022-08-01/PromotionCodes.d.ts rename to types/2022-11-09/PromotionCodes.d.ts diff --git a/types/2022-08-01/Quotes.d.ts b/types/2022-11-09/Quotes.d.ts similarity index 100% rename from types/2022-08-01/Quotes.d.ts rename to types/2022-11-09/Quotes.d.ts diff --git a/types/2022-08-01/Radar/EarlyFraudWarnings.d.ts b/types/2022-11-09/Radar/EarlyFraudWarnings.d.ts similarity index 100% rename from types/2022-08-01/Radar/EarlyFraudWarnings.d.ts rename to types/2022-11-09/Radar/EarlyFraudWarnings.d.ts diff --git a/types/2022-08-01/Radar/ValueListItems.d.ts b/types/2022-11-09/Radar/ValueListItems.d.ts similarity index 100% rename from types/2022-08-01/Radar/ValueListItems.d.ts rename to types/2022-11-09/Radar/ValueListItems.d.ts diff --git a/types/2022-08-01/Radar/ValueLists.d.ts b/types/2022-11-09/Radar/ValueLists.d.ts similarity index 100% rename from types/2022-08-01/Radar/ValueLists.d.ts rename to types/2022-11-09/Radar/ValueLists.d.ts diff --git a/types/2022-08-01/Refunds.d.ts b/types/2022-11-09/Refunds.d.ts similarity index 100% rename from types/2022-08-01/Refunds.d.ts rename to types/2022-11-09/Refunds.d.ts diff --git a/types/2022-08-01/Reporting/ReportRuns.d.ts b/types/2022-11-09/Reporting/ReportRuns.d.ts similarity index 100% rename from types/2022-08-01/Reporting/ReportRuns.d.ts rename to types/2022-11-09/Reporting/ReportRuns.d.ts diff --git a/types/2022-08-01/Reporting/ReportTypes.d.ts b/types/2022-11-09/Reporting/ReportTypes.d.ts similarity index 100% rename from types/2022-08-01/Reporting/ReportTypes.d.ts rename to types/2022-11-09/Reporting/ReportTypes.d.ts diff --git a/types/2022-08-01/ReserveTransactions.d.ts b/types/2022-11-09/ReserveTransactions.d.ts similarity index 100% rename from types/2022-08-01/ReserveTransactions.d.ts rename to types/2022-11-09/ReserveTransactions.d.ts diff --git a/types/2022-08-01/Reviews.d.ts b/types/2022-11-09/Reviews.d.ts similarity index 100% rename from types/2022-08-01/Reviews.d.ts rename to types/2022-11-09/Reviews.d.ts diff --git a/types/2022-08-01/SetupAttempts.d.ts b/types/2022-11-09/SetupAttempts.d.ts similarity index 100% rename from types/2022-08-01/SetupAttempts.d.ts rename to types/2022-11-09/SetupAttempts.d.ts diff --git a/types/2022-08-01/SetupIntents.d.ts b/types/2022-11-09/SetupIntents.d.ts similarity index 100% rename from types/2022-08-01/SetupIntents.d.ts rename to types/2022-11-09/SetupIntents.d.ts diff --git a/types/2022-08-01/ShippingRates.d.ts b/types/2022-11-09/ShippingRates.d.ts similarity index 100% rename from types/2022-08-01/ShippingRates.d.ts rename to types/2022-11-09/ShippingRates.d.ts diff --git a/types/2022-08-01/Sigma/ScheduledQueryRuns.d.ts b/types/2022-11-09/Sigma/ScheduledQueryRuns.d.ts similarity index 100% rename from types/2022-08-01/Sigma/ScheduledQueryRuns.d.ts rename to types/2022-11-09/Sigma/ScheduledQueryRuns.d.ts diff --git a/types/2022-08-01/SourceMandateNotifications.d.ts b/types/2022-11-09/SourceMandateNotifications.d.ts similarity index 100% rename from types/2022-08-01/SourceMandateNotifications.d.ts rename to types/2022-11-09/SourceMandateNotifications.d.ts diff --git a/types/2022-08-01/SourceTransactions.d.ts b/types/2022-11-09/SourceTransactions.d.ts similarity index 100% rename from types/2022-08-01/SourceTransactions.d.ts rename to types/2022-11-09/SourceTransactions.d.ts diff --git a/types/2022-08-01/Sources.d.ts b/types/2022-11-09/Sources.d.ts similarity index 100% rename from types/2022-08-01/Sources.d.ts rename to types/2022-11-09/Sources.d.ts diff --git a/types/2022-08-01/SubscriptionItems.d.ts b/types/2022-11-09/SubscriptionItems.d.ts similarity index 100% rename from types/2022-08-01/SubscriptionItems.d.ts rename to types/2022-11-09/SubscriptionItems.d.ts diff --git a/types/2022-08-01/SubscriptionSchedules.d.ts b/types/2022-11-09/SubscriptionSchedules.d.ts similarity index 100% rename from types/2022-08-01/SubscriptionSchedules.d.ts rename to types/2022-11-09/SubscriptionSchedules.d.ts diff --git a/types/2022-08-01/Subscriptions.d.ts b/types/2022-11-09/Subscriptions.d.ts similarity index 100% rename from types/2022-08-01/Subscriptions.d.ts rename to types/2022-11-09/Subscriptions.d.ts diff --git a/types/2022-08-01/TaxCodes.d.ts b/types/2022-11-09/TaxCodes.d.ts similarity index 100% rename from types/2022-08-01/TaxCodes.d.ts rename to types/2022-11-09/TaxCodes.d.ts diff --git a/types/2022-08-01/TaxDeductedAtSources.d.ts b/types/2022-11-09/TaxDeductedAtSources.d.ts similarity index 100% rename from types/2022-08-01/TaxDeductedAtSources.d.ts rename to types/2022-11-09/TaxDeductedAtSources.d.ts diff --git a/types/2022-08-01/TaxIds.d.ts b/types/2022-11-09/TaxIds.d.ts similarity index 100% rename from types/2022-08-01/TaxIds.d.ts rename to types/2022-11-09/TaxIds.d.ts diff --git a/types/2022-08-01/TaxRates.d.ts b/types/2022-11-09/TaxRates.d.ts similarity index 100% rename from types/2022-08-01/TaxRates.d.ts rename to types/2022-11-09/TaxRates.d.ts diff --git a/types/2022-08-01/Terminal/Configurations.d.ts b/types/2022-11-09/Terminal/Configurations.d.ts similarity index 100% rename from types/2022-08-01/Terminal/Configurations.d.ts rename to types/2022-11-09/Terminal/Configurations.d.ts diff --git a/types/2022-08-01/Terminal/ConnectionTokens.d.ts b/types/2022-11-09/Terminal/ConnectionTokens.d.ts similarity index 100% rename from types/2022-08-01/Terminal/ConnectionTokens.d.ts rename to types/2022-11-09/Terminal/ConnectionTokens.d.ts diff --git a/types/2022-08-01/Terminal/Locations.d.ts b/types/2022-11-09/Terminal/Locations.d.ts similarity index 100% rename from types/2022-08-01/Terminal/Locations.d.ts rename to types/2022-11-09/Terminal/Locations.d.ts diff --git a/types/2022-08-01/Terminal/Readers.d.ts b/types/2022-11-09/Terminal/Readers.d.ts similarity index 100% rename from types/2022-08-01/Terminal/Readers.d.ts rename to types/2022-11-09/Terminal/Readers.d.ts diff --git a/types/2022-08-01/TestHelpers/Customers.d.ts b/types/2022-11-09/TestHelpers/Customers.d.ts similarity index 100% rename from types/2022-08-01/TestHelpers/Customers.d.ts rename to types/2022-11-09/TestHelpers/Customers.d.ts diff --git a/types/2022-08-01/TestHelpers/Issuing/Cards.d.ts b/types/2022-11-09/TestHelpers/Issuing/Cards.d.ts similarity index 100% rename from types/2022-08-01/TestHelpers/Issuing/Cards.d.ts rename to types/2022-11-09/TestHelpers/Issuing/Cards.d.ts diff --git a/types/2022-08-01/TestHelpers/Refunds.d.ts b/types/2022-11-09/TestHelpers/Refunds.d.ts similarity index 100% rename from types/2022-08-01/TestHelpers/Refunds.d.ts rename to types/2022-11-09/TestHelpers/Refunds.d.ts diff --git a/types/2022-08-01/TestHelpers/Terminal/Readers.d.ts b/types/2022-11-09/TestHelpers/Terminal/Readers.d.ts similarity index 100% rename from types/2022-08-01/TestHelpers/Terminal/Readers.d.ts rename to types/2022-11-09/TestHelpers/Terminal/Readers.d.ts diff --git a/types/2022-08-01/TestHelpers/TestClocks.d.ts b/types/2022-11-09/TestHelpers/TestClocks.d.ts similarity index 100% rename from types/2022-08-01/TestHelpers/TestClocks.d.ts rename to types/2022-11-09/TestHelpers/TestClocks.d.ts diff --git a/types/2022-08-01/TestHelpers/Treasury/InboundTransfers.d.ts b/types/2022-11-09/TestHelpers/Treasury/InboundTransfers.d.ts similarity index 100% rename from types/2022-08-01/TestHelpers/Treasury/InboundTransfers.d.ts rename to types/2022-11-09/TestHelpers/Treasury/InboundTransfers.d.ts diff --git a/types/2022-08-01/TestHelpers/Treasury/OutboundPayments.d.ts b/types/2022-11-09/TestHelpers/Treasury/OutboundPayments.d.ts similarity index 100% rename from types/2022-08-01/TestHelpers/Treasury/OutboundPayments.d.ts rename to types/2022-11-09/TestHelpers/Treasury/OutboundPayments.d.ts diff --git a/types/2022-08-01/TestHelpers/Treasury/OutboundTransfers.d.ts b/types/2022-11-09/TestHelpers/Treasury/OutboundTransfers.d.ts similarity index 100% rename from types/2022-08-01/TestHelpers/Treasury/OutboundTransfers.d.ts rename to types/2022-11-09/TestHelpers/Treasury/OutboundTransfers.d.ts diff --git a/types/2022-08-01/TestHelpers/Treasury/ReceivedCredits.d.ts b/types/2022-11-09/TestHelpers/Treasury/ReceivedCredits.d.ts similarity index 100% rename from types/2022-08-01/TestHelpers/Treasury/ReceivedCredits.d.ts rename to types/2022-11-09/TestHelpers/Treasury/ReceivedCredits.d.ts diff --git a/types/2022-08-01/TestHelpers/Treasury/ReceivedDebits.d.ts b/types/2022-11-09/TestHelpers/Treasury/ReceivedDebits.d.ts similarity index 100% rename from types/2022-08-01/TestHelpers/Treasury/ReceivedDebits.d.ts rename to types/2022-11-09/TestHelpers/Treasury/ReceivedDebits.d.ts diff --git a/types/2022-08-01/Tokens.d.ts b/types/2022-11-09/Tokens.d.ts similarity index 100% rename from types/2022-08-01/Tokens.d.ts rename to types/2022-11-09/Tokens.d.ts diff --git a/types/2022-08-01/Topups.d.ts b/types/2022-11-09/Topups.d.ts similarity index 100% rename from types/2022-08-01/Topups.d.ts rename to types/2022-11-09/Topups.d.ts diff --git a/types/2022-08-01/TransferReversals.d.ts b/types/2022-11-09/TransferReversals.d.ts similarity index 100% rename from types/2022-08-01/TransferReversals.d.ts rename to types/2022-11-09/TransferReversals.d.ts diff --git a/types/2022-08-01/Transfers.d.ts b/types/2022-11-09/Transfers.d.ts similarity index 100% rename from types/2022-08-01/Transfers.d.ts rename to types/2022-11-09/Transfers.d.ts diff --git a/types/2022-08-01/Treasury/CreditReversals.d.ts b/types/2022-11-09/Treasury/CreditReversals.d.ts similarity index 100% rename from types/2022-08-01/Treasury/CreditReversals.d.ts rename to types/2022-11-09/Treasury/CreditReversals.d.ts diff --git a/types/2022-08-01/Treasury/DebitReversals.d.ts b/types/2022-11-09/Treasury/DebitReversals.d.ts similarity index 100% rename from types/2022-08-01/Treasury/DebitReversals.d.ts rename to types/2022-11-09/Treasury/DebitReversals.d.ts diff --git a/types/2022-08-01/Treasury/FinancialAccountFeatures.d.ts b/types/2022-11-09/Treasury/FinancialAccountFeatures.d.ts similarity index 100% rename from types/2022-08-01/Treasury/FinancialAccountFeatures.d.ts rename to types/2022-11-09/Treasury/FinancialAccountFeatures.d.ts diff --git a/types/2022-08-01/Treasury/FinancialAccounts.d.ts b/types/2022-11-09/Treasury/FinancialAccounts.d.ts similarity index 100% rename from types/2022-08-01/Treasury/FinancialAccounts.d.ts rename to types/2022-11-09/Treasury/FinancialAccounts.d.ts diff --git a/types/2022-08-01/Treasury/InboundTransfers.d.ts b/types/2022-11-09/Treasury/InboundTransfers.d.ts similarity index 100% rename from types/2022-08-01/Treasury/InboundTransfers.d.ts rename to types/2022-11-09/Treasury/InboundTransfers.d.ts diff --git a/types/2022-08-01/Treasury/OutboundPayments.d.ts b/types/2022-11-09/Treasury/OutboundPayments.d.ts similarity index 100% rename from types/2022-08-01/Treasury/OutboundPayments.d.ts rename to types/2022-11-09/Treasury/OutboundPayments.d.ts diff --git a/types/2022-08-01/Treasury/OutboundTransfers.d.ts b/types/2022-11-09/Treasury/OutboundTransfers.d.ts similarity index 100% rename from types/2022-08-01/Treasury/OutboundTransfers.d.ts rename to types/2022-11-09/Treasury/OutboundTransfers.d.ts diff --git a/types/2022-08-01/Treasury/ReceivedCredits.d.ts b/types/2022-11-09/Treasury/ReceivedCredits.d.ts similarity index 100% rename from types/2022-08-01/Treasury/ReceivedCredits.d.ts rename to types/2022-11-09/Treasury/ReceivedCredits.d.ts diff --git a/types/2022-08-01/Treasury/ReceivedDebits.d.ts b/types/2022-11-09/Treasury/ReceivedDebits.d.ts similarity index 100% rename from types/2022-08-01/Treasury/ReceivedDebits.d.ts rename to types/2022-11-09/Treasury/ReceivedDebits.d.ts diff --git a/types/2022-08-01/Treasury/TransactionEntries.d.ts b/types/2022-11-09/Treasury/TransactionEntries.d.ts similarity index 100% rename from types/2022-08-01/Treasury/TransactionEntries.d.ts rename to types/2022-11-09/Treasury/TransactionEntries.d.ts diff --git a/types/2022-08-01/Treasury/Transactions.d.ts b/types/2022-11-09/Treasury/Transactions.d.ts similarity index 100% rename from types/2022-08-01/Treasury/Transactions.d.ts rename to types/2022-11-09/Treasury/Transactions.d.ts diff --git a/types/2022-08-01/UsageRecordSummaries.d.ts b/types/2022-11-09/UsageRecordSummaries.d.ts similarity index 100% rename from types/2022-08-01/UsageRecordSummaries.d.ts rename to types/2022-11-09/UsageRecordSummaries.d.ts diff --git a/types/2022-08-01/UsageRecords.d.ts b/types/2022-11-09/UsageRecords.d.ts similarity index 100% rename from types/2022-08-01/UsageRecords.d.ts rename to types/2022-11-09/UsageRecords.d.ts diff --git a/types/2022-08-01/WebhookEndpoints.d.ts b/types/2022-11-09/WebhookEndpoints.d.ts similarity index 99% rename from types/2022-08-01/WebhookEndpoints.d.ts rename to types/2022-11-09/WebhookEndpoints.d.ts index 17d2b739e1..1d5cfdc5f7 100644 --- a/types/2022-08-01/WebhookEndpoints.d.ts +++ b/types/2022-11-09/WebhookEndpoints.d.ts @@ -230,7 +230,8 @@ declare module 'stripe' { | '2019-12-03' | '2020-03-02' | '2020-08-27' - | '2022-08-01'; + | '2022-08-01' + | '2022-11-09'; type EnabledEvent = | '*' diff --git a/types/2022-08-01/index.d.ts b/types/2022-11-09/index.d.ts similarity index 100% rename from types/2022-08-01/index.d.ts rename to types/2022-11-09/index.d.ts