stripe 16.9.0-beta.1 → 16.9.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -1
- package/VERSION +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/stripe.core.js +1 -1
- package/cjs/utils.js +1 -3
- package/esm/apiVersion.js +1 -1
- package/esm/stripe.core.js +1 -1
- package/esm/utils.js +1 -3
- package/package.json +1 -1
- package/types/Accounts.d.ts +7 -0
- package/types/AccountsResource.d.ts +24 -0
- package/types/Charges.d.ts +7 -1
- package/types/ChargesResource.d.ts +6 -2
- package/types/Checkout/Sessions.d.ts +2 -1
- package/types/Checkout/SessionsResource.d.ts +4 -2
- package/types/ConfirmationTokens.d.ts +5 -0
- package/types/CustomerSessions.d.ts +4 -0
- package/types/CustomersResource.d.ts +5 -2
- package/types/Disputes.d.ts +1 -7
- package/types/Invoices.d.ts +2 -1
- package/types/InvoicesResource.d.ts +9 -6
- package/types/Orders.d.ts +2 -1
- package/types/OrdersResource.d.ts +4 -2
- package/types/PaymentIntents.d.ts +18 -1
- package/types/PaymentIntentsResource.d.ts +94 -4
- package/types/PaymentLinksResource.d.ts +8 -4
- package/types/PaymentMethods.d.ts +5 -0
- package/types/PaymentMethodsResource.d.ts +9 -0
- package/types/QuotePreviewInvoices.d.ts +2 -1
- package/types/QuotesResource.d.ts +0 -577
- package/types/SetupIntentsResource.d.ts +24 -0
- package/types/SubscriptionSchedulesResource.d.ts +2 -2
- package/types/SubscriptionsResource.d.ts +2 -2
- package/types/Tax/Calculations.d.ts +2 -1
- package/types/Tax/CalculationsResource.d.ts +2 -1
- package/types/Tax/Transactions.d.ts +2 -1
- package/types/TaxIds.d.ts +2 -1
- package/types/TaxIdsResource.d.ts +2 -1
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +8 -0
- package/types/Treasury/InboundTransfers.d.ts +3 -1
- package/types/Treasury/OutboundPayments.d.ts +3 -1
- package/types/Treasury/OutboundTransfers.d.ts +3 -1
- package/types/Treasury/ReceivedCredits.d.ts +3 -1
- package/types/Treasury/TransactionEntries.d.ts +9 -3
- package/types/Treasury/Transactions.d.ts +9 -3
- package/types/Webhooks.d.ts +37 -28
|
@@ -442,7 +442,7 @@ declare module 'stripe' {
|
|
|
442
442
|
tax_behavior?: PriceData.TaxBehavior;
|
|
443
443
|
|
|
444
444
|
/**
|
|
445
|
-
* A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
|
|
445
|
+
* A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge or a negative integer representing the amount to credit to the customer.
|
|
446
446
|
*/
|
|
447
447
|
unit_amount?: number;
|
|
448
448
|
|
|
@@ -1294,7 +1294,7 @@ declare module 'stripe' {
|
|
|
1294
1294
|
tax_behavior?: PriceData.TaxBehavior;
|
|
1295
1295
|
|
|
1296
1296
|
/**
|
|
1297
|
-
* A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
|
|
1297
|
+
* A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge or a negative integer representing the amount to credit to the customer.
|
|
1298
1298
|
*/
|
|
1299
1299
|
unit_amount?: number;
|
|
1300
1300
|
|
|
@@ -305,7 +305,7 @@ declare module 'stripe' {
|
|
|
305
305
|
tax_behavior?: PriceData.TaxBehavior;
|
|
306
306
|
|
|
307
307
|
/**
|
|
308
|
-
* A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
|
|
308
|
+
* A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge or a negative integer representing the amount to credit to the customer.
|
|
309
309
|
*/
|
|
310
310
|
unit_amount?: number;
|
|
311
311
|
|
|
@@ -1332,7 +1332,7 @@ declare module 'stripe' {
|
|
|
1332
1332
|
tax_behavior?: PriceData.TaxBehavior;
|
|
1333
1333
|
|
|
1334
1334
|
/**
|
|
1335
|
-
* A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
|
|
1335
|
+
* A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge or a negative integer representing the amount to credit to the customer.
|
|
1336
1336
|
*/
|
|
1337
1337
|
unit_amount?: number;
|
|
1338
1338
|
|
|
@@ -120,7 +120,7 @@ declare module 'stripe' {
|
|
|
120
120
|
|
|
121
121
|
interface TaxId {
|
|
122
122
|
/**
|
|
123
|
-
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown`
|
|
123
|
+
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown`
|
|
124
124
|
*/
|
|
125
125
|
type: TaxId.Type;
|
|
126
126
|
|
|
@@ -164,6 +164,7 @@ declare module 'stripe' {
|
|
|
164
164
|
| 'gb_vat'
|
|
165
165
|
| 'ge_vat'
|
|
166
166
|
| 'hk_br'
|
|
167
|
+
| 'hr_oib'
|
|
167
168
|
| 'hu_tin'
|
|
168
169
|
| 'id_npwp'
|
|
169
170
|
| 'il_vat'
|
|
@@ -115,7 +115,7 @@ declare module 'stripe' {
|
|
|
115
115
|
|
|
116
116
|
interface TaxId {
|
|
117
117
|
/**
|
|
118
|
-
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `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`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
|
|
118
|
+
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
|
|
119
119
|
*/
|
|
120
120
|
type: TaxId.Type;
|
|
121
121
|
|
|
@@ -159,6 +159,7 @@ declare module 'stripe' {
|
|
|
159
159
|
| 'gb_vat'
|
|
160
160
|
| 'ge_vat'
|
|
161
161
|
| 'hk_br'
|
|
162
|
+
| 'hr_oib'
|
|
162
163
|
| 'hu_tin'
|
|
163
164
|
| 'id_npwp'
|
|
164
165
|
| 'il_vat'
|
|
@@ -125,7 +125,7 @@ declare module 'stripe' {
|
|
|
125
125
|
|
|
126
126
|
interface TaxId {
|
|
127
127
|
/**
|
|
128
|
-
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown`
|
|
128
|
+
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown`
|
|
129
129
|
*/
|
|
130
130
|
type: TaxId.Type;
|
|
131
131
|
|
|
@@ -169,6 +169,7 @@ declare module 'stripe' {
|
|
|
169
169
|
| 'gb_vat'
|
|
170
170
|
| 'ge_vat'
|
|
171
171
|
| 'hk_br'
|
|
172
|
+
| 'hr_oib'
|
|
172
173
|
| 'hu_tin'
|
|
173
174
|
| 'id_npwp'
|
|
174
175
|
| 'il_vat'
|
package/types/TaxIds.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ declare module 'stripe' {
|
|
|
70
70
|
owner: TaxId.Owner | null;
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
|
-
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `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`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown`
|
|
73
|
+
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown`
|
|
74
74
|
*/
|
|
75
75
|
type: TaxId.Type;
|
|
76
76
|
|
|
@@ -145,6 +145,7 @@ declare module 'stripe' {
|
|
|
145
145
|
| 'gb_vat'
|
|
146
146
|
| 'ge_vat'
|
|
147
147
|
| 'hk_br'
|
|
148
|
+
| 'hr_oib'
|
|
148
149
|
| 'hu_tin'
|
|
149
150
|
| 'id_npwp'
|
|
150
151
|
| 'il_vat'
|
|
@@ -4,7 +4,7 @@ declare module 'stripe' {
|
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
interface TaxIdCreateParams {
|
|
6
6
|
/**
|
|
7
|
-
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `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`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
|
|
7
|
+
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
|
|
8
8
|
*/
|
|
9
9
|
type: TaxIdCreateParams.Type;
|
|
10
10
|
|
|
@@ -79,6 +79,7 @@ declare module 'stripe' {
|
|
|
79
79
|
| 'gb_vat'
|
|
80
80
|
| 'ge_vat'
|
|
81
81
|
| 'hk_br'
|
|
82
|
+
| 'hr_oib'
|
|
82
83
|
| 'hu_tin'
|
|
83
84
|
| 'id_npwp'
|
|
84
85
|
| 'il_vat'
|
|
@@ -154,6 +154,11 @@ declare module 'stripe' {
|
|
|
154
154
|
*/
|
|
155
155
|
link?: PaymentMethodData.Link;
|
|
156
156
|
|
|
157
|
+
/**
|
|
158
|
+
* If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
159
|
+
*/
|
|
160
|
+
mb_way?: PaymentMethodData.MbWay;
|
|
161
|
+
|
|
157
162
|
/**
|
|
158
163
|
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
159
164
|
*/
|
|
@@ -491,6 +496,8 @@ declare module 'stripe' {
|
|
|
491
496
|
|
|
492
497
|
interface Link {}
|
|
493
498
|
|
|
499
|
+
interface MbWay {}
|
|
500
|
+
|
|
494
501
|
interface Mobilepay {}
|
|
495
502
|
|
|
496
503
|
interface Multibanco {}
|
|
@@ -637,6 +644,7 @@ declare module 'stripe' {
|
|
|
637
644
|
| 'klarna'
|
|
638
645
|
| 'konbini'
|
|
639
646
|
| 'link'
|
|
647
|
+
| 'mb_way'
|
|
640
648
|
| 'mobilepay'
|
|
641
649
|
| 'multibanco'
|
|
642
650
|
| 'oxxo'
|
|
@@ -4,7 +4,9 @@ declare module 'stripe' {
|
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
namespace Treasury {
|
|
6
6
|
/**
|
|
7
|
-
* Use [InboundTransfers](https://stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
|
|
7
|
+
* Use [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
|
|
8
|
+
*
|
|
9
|
+
* Related guide: [Moving money with Treasury using InboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers)
|
|
8
10
|
*/
|
|
9
11
|
interface InboundTransfer {
|
|
10
12
|
/**
|
|
@@ -4,9 +4,11 @@ declare module 'stripe' {
|
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
namespace Treasury {
|
|
6
6
|
/**
|
|
7
|
-
* Use OutboundPayments to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers).
|
|
7
|
+
* Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers).
|
|
8
8
|
*
|
|
9
9
|
* Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects.
|
|
10
|
+
*
|
|
11
|
+
* Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments)
|
|
10
12
|
*/
|
|
11
13
|
interface OutboundPayment {
|
|
12
14
|
/**
|
|
@@ -4,9 +4,11 @@ declare module 'stripe' {
|
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
namespace Treasury {
|
|
6
6
|
/**
|
|
7
|
-
* Use OutboundTransfers to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account.
|
|
7
|
+
* Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account.
|
|
8
8
|
*
|
|
9
9
|
* Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects.
|
|
10
|
+
*
|
|
11
|
+
* Related guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers)
|
|
10
12
|
*/
|
|
11
13
|
interface OutboundTransfer {
|
|
12
14
|
/**
|
|
@@ -205,9 +205,11 @@ declare module 'stripe' {
|
|
|
205
205
|
credit_reversal?: Stripe.Treasury.CreditReversal;
|
|
206
206
|
|
|
207
207
|
/**
|
|
208
|
-
* Use OutboundPayments to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers).
|
|
208
|
+
* Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers).
|
|
209
209
|
*
|
|
210
210
|
* Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects.
|
|
211
|
+
*
|
|
212
|
+
* Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments)
|
|
211
213
|
*/
|
|
212
214
|
outbound_payment?: Stripe.Treasury.OutboundPayment;
|
|
213
215
|
|
|
@@ -103,7 +103,9 @@ declare module 'stripe' {
|
|
|
103
103
|
debit_reversal?: Stripe.Treasury.DebitReversal;
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
* Use [InboundTransfers](https://stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
|
|
106
|
+
* Use [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
|
|
107
|
+
*
|
|
108
|
+
* Related guide: [Moving money with Treasury using InboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers)
|
|
107
109
|
*/
|
|
108
110
|
inbound_transfer?: Stripe.Treasury.InboundTransfer;
|
|
109
111
|
|
|
@@ -117,16 +119,20 @@ declare module 'stripe' {
|
|
|
117
119
|
issuing_authorization?: Stripe.Issuing.Authorization;
|
|
118
120
|
|
|
119
121
|
/**
|
|
120
|
-
* Use OutboundPayments to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers).
|
|
122
|
+
* Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers).
|
|
121
123
|
*
|
|
122
124
|
* Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects.
|
|
125
|
+
*
|
|
126
|
+
* Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments)
|
|
123
127
|
*/
|
|
124
128
|
outbound_payment?: Stripe.Treasury.OutboundPayment;
|
|
125
129
|
|
|
126
130
|
/**
|
|
127
|
-
* Use OutboundTransfers to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account.
|
|
131
|
+
* Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account.
|
|
128
132
|
*
|
|
129
133
|
* Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects.
|
|
134
|
+
*
|
|
135
|
+
* Related guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers)
|
|
130
136
|
*/
|
|
131
137
|
outbound_transfer?: Stripe.Treasury.OutboundTransfer;
|
|
132
138
|
|
|
@@ -110,7 +110,9 @@ declare module 'stripe' {
|
|
|
110
110
|
debit_reversal?: Stripe.Treasury.DebitReversal;
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
|
-
* Use [InboundTransfers](https://stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
|
|
113
|
+
* Use [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
|
|
114
|
+
*
|
|
115
|
+
* Related guide: [Moving money with Treasury using InboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers)
|
|
114
116
|
*/
|
|
115
117
|
inbound_transfer?: Stripe.Treasury.InboundTransfer;
|
|
116
118
|
|
|
@@ -124,16 +126,20 @@ declare module 'stripe' {
|
|
|
124
126
|
issuing_authorization?: Stripe.Issuing.Authorization;
|
|
125
127
|
|
|
126
128
|
/**
|
|
127
|
-
* Use OutboundPayments to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers).
|
|
129
|
+
* Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers).
|
|
128
130
|
*
|
|
129
131
|
* Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects.
|
|
132
|
+
*
|
|
133
|
+
* Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments)
|
|
130
134
|
*/
|
|
131
135
|
outbound_payment?: Stripe.Treasury.OutboundPayment;
|
|
132
136
|
|
|
133
137
|
/**
|
|
134
|
-
* Use OutboundTransfers to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account.
|
|
138
|
+
* Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account.
|
|
135
139
|
*
|
|
136
140
|
* Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects.
|
|
141
|
+
*
|
|
142
|
+
* Related guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers)
|
|
137
143
|
*/
|
|
138
144
|
outbound_transfer?: Stripe.Treasury.OutboundTransfer;
|
|
139
145
|
|
package/types/Webhooks.d.ts
CHANGED
|
@@ -89,40 +89,49 @@ declare module 'stripe' {
|
|
|
89
89
|
/**
|
|
90
90
|
* Generates a header to be used for webhook mocking
|
|
91
91
|
*/
|
|
92
|
-
generateTestHeaderString(opts:
|
|
93
|
-
/**
|
|
94
|
-
* JSON stringified payload object, containing the 'id' and 'object' parameters.
|
|
95
|
-
*/
|
|
96
|
-
payload: string;
|
|
92
|
+
generateTestHeaderString(opts: WebhookTestHeaderOptions): string;
|
|
97
93
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
94
|
+
/**
|
|
95
|
+
* Generates a header to be used for webhook mocking
|
|
96
|
+
*/
|
|
97
|
+
generateTestHeaderStringAsync(
|
|
98
|
+
opts: WebhookTestHeaderOptions
|
|
99
|
+
): Promise<string>;
|
|
102
100
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
*/
|
|
106
|
-
secret: string;
|
|
101
|
+
signature: Signature;
|
|
102
|
+
}
|
|
107
103
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
104
|
+
export interface WebhookTestHeaderOptions {
|
|
105
|
+
/**
|
|
106
|
+
* JSON stringified payload object, containing the 'id' and 'object' parameters.
|
|
107
|
+
*/
|
|
108
|
+
payload: string;
|
|
112
109
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
110
|
+
/**
|
|
111
|
+
* Timestamp of the header. Defaults to Date.now().
|
|
112
|
+
*/
|
|
113
|
+
timestamp?: number;
|
|
117
114
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
cryptoProvider?: CryptoProvider;
|
|
123
|
-
}): string;
|
|
115
|
+
/**
|
|
116
|
+
* Stripe webhook secret, e.g., 'whsec_...'.
|
|
117
|
+
*/
|
|
118
|
+
secret: string;
|
|
124
119
|
|
|
125
|
-
|
|
120
|
+
/**
|
|
121
|
+
* Version of API to hit. Defaults to 'v1'.
|
|
122
|
+
*/
|
|
123
|
+
scheme?: string;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Computed webhook signature.
|
|
127
|
+
*/
|
|
128
|
+
signature?: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Optional CryptoProvider to use for computing HMAC signatures, if no
|
|
132
|
+
* signature is given.
|
|
133
|
+
*/
|
|
134
|
+
cryptoProvider?: CryptoProvider;
|
|
126
135
|
}
|
|
127
136
|
|
|
128
137
|
export class Signature {
|