stripe 14.16.0 → 14.17.0
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 +9 -0
- package/VERSION +1 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/Cards.d.ts +9 -0
- package/types/Checkout/Sessions.d.ts +2 -1
- package/types/CustomersResource.d.ts +4 -2
- package/types/EventTypes.d.ts +18 -0
- package/types/Events.d.ts +1 -0
- package/types/InvoiceLineItems.d.ts +5 -0
- package/types/Invoices.d.ts +3 -2
- package/types/InvoicesResource.d.ts +6 -4
- package/types/PaymentIntents.d.ts +2 -2
- package/types/PaymentIntentsResource.d.ts +4 -5
- package/types/PaymentMethods.d.ts +5 -0
- package/types/PaymentMethodsResource.d.ts +36 -0
- package/types/SetupIntents.d.ts +1 -1
- package/types/SetupIntentsResource.d.ts +3 -3
- package/types/Subscriptions.d.ts +1 -1
- package/types/SubscriptionsResource.d.ts +7 -7
- 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/TokensResource.d.ts +18 -0
- package/types/WebhookEndpointsResource.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 14.17.0 - 2024-02-15
|
|
4
|
+
* [#2018](https://github.com/stripe/stripe-node/pull/2018) Update generated code
|
|
5
|
+
* Add support for `networks` on `Card`, `PaymentMethodCreateParams.card`, `PaymentMethodUpdateParams.card`, and `TokenCreateParams.card`
|
|
6
|
+
* Add support for new value `no_voec` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type`
|
|
7
|
+
* Add support for new value `no_voec` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
|
|
8
|
+
* Add support for new value `financial_connections.account.refreshed_ownership` on enum `Event.type`
|
|
9
|
+
* Add support for `display_brand` on `PaymentMethod.card`
|
|
10
|
+
* Add support for new value `financial_connections.account.refreshed_ownership` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
|
|
11
|
+
|
|
3
12
|
## 14.16.0 - 2024-02-08
|
|
4
13
|
* [#2012](https://github.com/stripe/stripe-node/pull/2012) Update generated code
|
|
5
14
|
* Add support for `invoices` on `Account.settings` and `AccountUpdateParams.settings`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
14.
|
|
1
|
+
14.17.0
|
package/cjs/stripe.core.js
CHANGED
|
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
34
34
|
];
|
|
35
35
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
36
36
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
37
|
-
Stripe.PACKAGE_VERSION = '14.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '14.17.0';
|
|
38
38
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
39
39
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
40
40
|
Stripe.resources = resources;
|
package/esm/stripe.core.js
CHANGED
|
@@ -31,7 +31,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
31
31
|
];
|
|
32
32
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
33
33
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
34
|
-
Stripe.PACKAGE_VERSION = '14.
|
|
34
|
+
Stripe.PACKAGE_VERSION = '14.17.0';
|
|
35
35
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
36
36
|
Stripe.StripeResource = StripeResource;
|
|
37
37
|
Stripe.resources = resources;
|
package/package.json
CHANGED
package/types/Cards.d.ts
CHANGED
|
@@ -162,6 +162,8 @@ declare module 'stripe' {
|
|
|
162
162
|
*/
|
|
163
163
|
name: string | null;
|
|
164
164
|
|
|
165
|
+
networks?: Card.Networks;
|
|
166
|
+
|
|
165
167
|
/**
|
|
166
168
|
* For external accounts that are cards, possible values are `new` and `errored`. If a payout fails, the status is set to `errored` and [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) are stopped until account details are updated.
|
|
167
169
|
*/
|
|
@@ -175,6 +177,13 @@ declare module 'stripe' {
|
|
|
175
177
|
|
|
176
178
|
namespace Card {
|
|
177
179
|
type AvailablePayoutMethod = 'instant' | 'standard';
|
|
180
|
+
|
|
181
|
+
interface Networks {
|
|
182
|
+
/**
|
|
183
|
+
* The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.
|
|
184
|
+
*/
|
|
185
|
+
preferred: string | null;
|
|
186
|
+
}
|
|
178
187
|
}
|
|
179
188
|
|
|
180
189
|
/**
|
|
@@ -485,7 +485,7 @@ declare module 'stripe' {
|
|
|
485
485
|
|
|
486
486
|
interface TaxId {
|
|
487
487
|
/**
|
|
488
|
-
* 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`, `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`
|
|
488
|
+
* 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`, or `unknown`
|
|
489
489
|
*/
|
|
490
490
|
type: TaxId.Type;
|
|
491
491
|
|
|
@@ -542,6 +542,7 @@ declare module 'stripe' {
|
|
|
542
542
|
| 'my_itn'
|
|
543
543
|
| 'my_sst'
|
|
544
544
|
| 'no_vat'
|
|
545
|
+
| 'no_voec'
|
|
545
546
|
| 'nz_gst'
|
|
546
547
|
| 'pe_ruc'
|
|
547
548
|
| 'ph_tin'
|
|
@@ -215,7 +215,7 @@ declare module 'stripe' {
|
|
|
215
215
|
|
|
216
216
|
interface TaxIdDatum {
|
|
217
217
|
/**
|
|
218
|
-
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `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`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `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`
|
|
218
|
+
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `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`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `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`
|
|
219
219
|
*/
|
|
220
220
|
type: TaxIdDatum.Type;
|
|
221
221
|
|
|
@@ -272,6 +272,7 @@ declare module 'stripe' {
|
|
|
272
272
|
| 'my_itn'
|
|
273
273
|
| 'my_sst'
|
|
274
274
|
| 'no_vat'
|
|
275
|
+
| 'no_voec'
|
|
275
276
|
| 'nz_gst'
|
|
276
277
|
| 'pe_ruc'
|
|
277
278
|
| 'ph_tin'
|
|
@@ -642,7 +643,7 @@ declare module 'stripe' {
|
|
|
642
643
|
|
|
643
644
|
interface TaxIdCreateParams {
|
|
644
645
|
/**
|
|
645
|
-
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `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`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `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`
|
|
646
|
+
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `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`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `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`
|
|
646
647
|
*/
|
|
647
648
|
type: TaxIdCreateParams.Type;
|
|
648
649
|
|
|
@@ -704,6 +705,7 @@ declare module 'stripe' {
|
|
|
704
705
|
| 'my_itn'
|
|
705
706
|
| 'my_sst'
|
|
706
707
|
| 'no_vat'
|
|
708
|
+
| 'no_voec'
|
|
707
709
|
| 'nz_gst'
|
|
708
710
|
| 'pe_ruc'
|
|
709
711
|
| 'ph_tin'
|
package/types/EventTypes.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ declare module 'stripe' {
|
|
|
76
76
|
| FinancialConnectionsAccountDisconnectedEvent
|
|
77
77
|
| FinancialConnectionsAccountReactivatedEvent
|
|
78
78
|
| FinancialConnectionsAccountRefreshedBalanceEvent
|
|
79
|
+
| FinancialConnectionsAccountRefreshedOwnershipEvent
|
|
79
80
|
| FinancialConnectionsAccountRefreshedTransactionsEvent
|
|
80
81
|
| IdentityVerificationSessionCanceledEvent
|
|
81
82
|
| IdentityVerificationSessionCreatedEvent
|
|
@@ -1406,6 +1407,23 @@ declare module 'stripe' {
|
|
|
1406
1407
|
}
|
|
1407
1408
|
}
|
|
1408
1409
|
|
|
1410
|
+
/**
|
|
1411
|
+
* Occurs when an Account’s `ownership_refresh` status transitions from `pending` to either `succeeded` or `failed`.
|
|
1412
|
+
*/
|
|
1413
|
+
interface FinancialConnectionsAccountRefreshedOwnershipEvent
|
|
1414
|
+
extends EventBase {
|
|
1415
|
+
type: 'financial_connections.account.refreshed_ownership';
|
|
1416
|
+
data: FinancialConnectionsAccountRefreshedOwnershipEvent.Data;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
namespace FinancialConnectionsAccountRefreshedOwnershipEvent {
|
|
1420
|
+
interface Data extends Stripe.Event.Data {
|
|
1421
|
+
object: Stripe.FinancialConnections.Account;
|
|
1422
|
+
|
|
1423
|
+
previous_attributes?: Partial<Stripe.FinancialConnections.Account>;
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1409
1427
|
/**
|
|
1410
1428
|
* Occurs when an Account’s `transaction_refresh` status transitions from `pending` to either `succeeded` or `failed`.
|
|
1411
1429
|
*/
|
package/types/Events.d.ts
CHANGED
|
@@ -107,6 +107,7 @@ declare module 'stripe' {
|
|
|
107
107
|
| 'financial_connections.account.disconnected'
|
|
108
108
|
| 'financial_connections.account.reactivated'
|
|
109
109
|
| 'financial_connections.account.refreshed_balance'
|
|
110
|
+
| 'financial_connections.account.refreshed_ownership'
|
|
110
111
|
| 'financial_connections.account.refreshed_transactions'
|
|
111
112
|
| 'identity.verification_session.canceled'
|
|
112
113
|
| 'identity.verification_session.created'
|
|
@@ -51,6 +51,11 @@ declare module 'stripe' {
|
|
|
51
51
|
*/
|
|
52
52
|
discounts: Array<string | Stripe.Discount> | null;
|
|
53
53
|
|
|
54
|
+
/**
|
|
55
|
+
* The ID of the invoice that contains this line item.
|
|
56
|
+
*/
|
|
57
|
+
invoice: string | null;
|
|
58
|
+
|
|
54
59
|
/**
|
|
55
60
|
* The ID of the [invoice item](https://stripe.com/docs/api/invoiceitems) associated with this line item if any.
|
|
56
61
|
*/
|
package/types/Invoices.d.ts
CHANGED
|
@@ -558,7 +558,7 @@ declare module 'stripe' {
|
|
|
558
558
|
|
|
559
559
|
interface CustomerTaxId {
|
|
560
560
|
/**
|
|
561
|
-
* 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`, `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`
|
|
561
|
+
* 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`, or `unknown`
|
|
562
562
|
*/
|
|
563
563
|
type: CustomerTaxId.Type;
|
|
564
564
|
|
|
@@ -615,6 +615,7 @@ declare module 'stripe' {
|
|
|
615
615
|
| 'my_itn'
|
|
616
616
|
| 'my_sst'
|
|
617
617
|
| 'no_vat'
|
|
618
|
+
| 'no_voec'
|
|
618
619
|
| 'nz_gst'
|
|
619
620
|
| 'pe_ruc'
|
|
620
621
|
| 'ph_tin'
|
|
@@ -1040,7 +1041,7 @@ declare module 'stripe' {
|
|
|
1040
1041
|
installments?: Card.Installments;
|
|
1041
1042
|
|
|
1042
1043
|
/**
|
|
1043
|
-
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1044
|
+
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1044
1045
|
*/
|
|
1045
1046
|
request_three_d_secure: Card.RequestThreeDSecure | null;
|
|
1046
1047
|
}
|
|
@@ -350,7 +350,7 @@ declare module 'stripe' {
|
|
|
350
350
|
installments?: Card.Installments;
|
|
351
351
|
|
|
352
352
|
/**
|
|
353
|
-
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
353
|
+
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
354
354
|
*/
|
|
355
355
|
request_three_d_secure?: Card.RequestThreeDSecure;
|
|
356
356
|
}
|
|
@@ -1030,7 +1030,7 @@ declare module 'stripe' {
|
|
|
1030
1030
|
installments?: Card.Installments;
|
|
1031
1031
|
|
|
1032
1032
|
/**
|
|
1033
|
-
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1033
|
+
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1034
1034
|
*/
|
|
1035
1035
|
request_three_d_secure?: Card.RequestThreeDSecure;
|
|
1036
1036
|
}
|
|
@@ -1660,7 +1660,7 @@ declare module 'stripe' {
|
|
|
1660
1660
|
|
|
1661
1661
|
interface TaxId {
|
|
1662
1662
|
/**
|
|
1663
|
-
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `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`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `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`
|
|
1663
|
+
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `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`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `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`
|
|
1664
1664
|
*/
|
|
1665
1665
|
type: TaxId.Type;
|
|
1666
1666
|
|
|
@@ -1717,6 +1717,7 @@ declare module 'stripe' {
|
|
|
1717
1717
|
| 'my_itn'
|
|
1718
1718
|
| 'my_sst'
|
|
1719
1719
|
| 'no_vat'
|
|
1720
|
+
| 'no_voec'
|
|
1720
1721
|
| 'nz_gst'
|
|
1721
1722
|
| 'pe_ruc'
|
|
1722
1723
|
| 'ph_tin'
|
|
@@ -2304,7 +2305,7 @@ declare module 'stripe' {
|
|
|
2304
2305
|
|
|
2305
2306
|
interface TaxId {
|
|
2306
2307
|
/**
|
|
2307
|
-
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `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`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `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`
|
|
2308
|
+
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `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`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `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`
|
|
2308
2309
|
*/
|
|
2309
2310
|
type: TaxId.Type;
|
|
2310
2311
|
|
|
@@ -2361,6 +2362,7 @@ declare module 'stripe' {
|
|
|
2361
2362
|
| 'my_itn'
|
|
2362
2363
|
| 'my_sst'
|
|
2363
2364
|
| 'no_vat'
|
|
2365
|
+
| 'no_voec'
|
|
2364
2366
|
| 'nz_gst'
|
|
2365
2367
|
| 'pe_ruc'
|
|
2366
2368
|
| 'ph_tin'
|
|
@@ -1107,7 +1107,7 @@ declare module 'stripe' {
|
|
|
1107
1107
|
hosted_instructions_url?: string;
|
|
1108
1108
|
|
|
1109
1109
|
/**
|
|
1110
|
-
* The url for mobile redirect based auth
|
|
1110
|
+
* The url for mobile redirect based auth (for internal use only and not typically available in standard API requests).
|
|
1111
1111
|
*/
|
|
1112
1112
|
mobile_auth_url?: string;
|
|
1113
1113
|
|
|
@@ -1550,7 +1550,7 @@ declare module 'stripe' {
|
|
|
1550
1550
|
request_overcapture?: Card.RequestOvercapture;
|
|
1551
1551
|
|
|
1552
1552
|
/**
|
|
1553
|
-
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1553
|
+
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1554
1554
|
*/
|
|
1555
1555
|
request_three_d_secure: Card.RequestThreeDSecure | null;
|
|
1556
1556
|
|
|
@@ -1279,7 +1279,7 @@ declare module 'stripe' {
|
|
|
1279
1279
|
request_overcapture?: Card.RequestOvercapture;
|
|
1280
1280
|
|
|
1281
1281
|
/**
|
|
1282
|
-
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1282
|
+
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1283
1283
|
*/
|
|
1284
1284
|
request_three_d_secure?: Card.RequestThreeDSecure;
|
|
1285
1285
|
|
|
@@ -3442,7 +3442,7 @@ declare module 'stripe' {
|
|
|
3442
3442
|
request_overcapture?: Card.RequestOvercapture;
|
|
3443
3443
|
|
|
3444
3444
|
/**
|
|
3445
|
-
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
3445
|
+
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
3446
3446
|
*/
|
|
3447
3447
|
request_three_d_secure?: Card.RequestThreeDSecure;
|
|
3448
3448
|
|
|
@@ -5743,7 +5743,7 @@ declare module 'stripe' {
|
|
|
5743
5743
|
request_overcapture?: Card.RequestOvercapture;
|
|
5744
5744
|
|
|
5745
5745
|
/**
|
|
5746
|
-
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
5746
|
+
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
5747
5747
|
*/
|
|
5748
5748
|
request_three_d_secure?: Card.RequestThreeDSecure;
|
|
5749
5749
|
|
|
@@ -6935,8 +6935,7 @@ declare module 'stripe' {
|
|
|
6935
6935
|
* return to the requires_confirmation state
|
|
6936
6936
|
* after those actions are completed. Your server needs to then
|
|
6937
6937
|
* explicitly re-confirm the PaymentIntent to initiate the next payment
|
|
6938
|
-
* attempt.
|
|
6939
|
-
* to learn more about manual confirmation.
|
|
6938
|
+
* attempt.
|
|
6940
6939
|
*/
|
|
6941
6940
|
confirm(
|
|
6942
6941
|
id: string,
|
|
@@ -245,6 +245,11 @@ declare module 'stripe' {
|
|
|
245
245
|
*/
|
|
246
246
|
description?: string | null;
|
|
247
247
|
|
|
248
|
+
/**
|
|
249
|
+
* The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards. Can be `american_express`, `cartes_bancaires`, `diners_club`, `discover`, `eftpos_australia`, `interac`, `jcb`, `mastercard`, `union_pay`, `visa`, or `other` and may contain more values in the future.
|
|
250
|
+
*/
|
|
251
|
+
display_brand: string | null;
|
|
252
|
+
|
|
248
253
|
/**
|
|
249
254
|
* Two-digit number representing the card's expiration month.
|
|
250
255
|
*/
|
|
@@ -306,12 +306,30 @@ declare module 'stripe' {
|
|
|
306
306
|
*/
|
|
307
307
|
exp_year: number;
|
|
308
308
|
|
|
309
|
+
/**
|
|
310
|
+
* Contains information about card networks used to process the payment.
|
|
311
|
+
*/
|
|
312
|
+
networks?: Card1.Networks;
|
|
313
|
+
|
|
309
314
|
/**
|
|
310
315
|
* The card number, as a string without any separators.
|
|
311
316
|
*/
|
|
312
317
|
number: string;
|
|
313
318
|
}
|
|
314
319
|
|
|
320
|
+
namespace Card1 {
|
|
321
|
+
interface Networks {
|
|
322
|
+
/**
|
|
323
|
+
* The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card.
|
|
324
|
+
*/
|
|
325
|
+
preferred?: Networks.Preferred;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
namespace Networks {
|
|
329
|
+
type Preferred = 'cartes_bancaires' | 'mastercard' | 'visa';
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
315
333
|
interface Card2 {
|
|
316
334
|
/**
|
|
317
335
|
* For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with format card: {token: "tok_visa"}.
|
|
@@ -686,6 +704,24 @@ declare module 'stripe' {
|
|
|
686
704
|
* Four-digit number representing the card's expiration year.
|
|
687
705
|
*/
|
|
688
706
|
exp_year?: number;
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* Contains information about card networks used to process the payment.
|
|
710
|
+
*/
|
|
711
|
+
networks?: Card.Networks;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
namespace Card {
|
|
715
|
+
interface Networks {
|
|
716
|
+
/**
|
|
717
|
+
* The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card.
|
|
718
|
+
*/
|
|
719
|
+
preferred?: Stripe.Emptyable<Networks.Preferred>;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
namespace Networks {
|
|
723
|
+
type Preferred = 'cartes_bancaires' | 'mastercard' | 'visa';
|
|
724
|
+
}
|
|
689
725
|
}
|
|
690
726
|
|
|
691
727
|
interface Link {}
|
package/types/SetupIntents.d.ts
CHANGED
|
@@ -641,7 +641,7 @@ declare module 'stripe' {
|
|
|
641
641
|
network: Card.Network | null;
|
|
642
642
|
|
|
643
643
|
/**
|
|
644
|
-
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
644
|
+
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
645
645
|
*/
|
|
646
646
|
request_three_d_secure: Card.RequestThreeDSecure | null;
|
|
647
647
|
}
|
|
@@ -850,7 +850,7 @@ declare module 'stripe' {
|
|
|
850
850
|
network?: Card.Network;
|
|
851
851
|
|
|
852
852
|
/**
|
|
853
|
-
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
853
|
+
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
854
854
|
*/
|
|
855
855
|
request_three_d_secure?: Card.RequestThreeDSecure;
|
|
856
856
|
|
|
@@ -1890,7 +1890,7 @@ declare module 'stripe' {
|
|
|
1890
1890
|
network?: Card.Network;
|
|
1891
1891
|
|
|
1892
1892
|
/**
|
|
1893
|
-
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1893
|
+
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1894
1894
|
*/
|
|
1895
1895
|
request_three_d_secure?: Card.RequestThreeDSecure;
|
|
1896
1896
|
|
|
@@ -3010,7 +3010,7 @@ declare module 'stripe' {
|
|
|
3010
3010
|
network?: Card.Network;
|
|
3011
3011
|
|
|
3012
3012
|
/**
|
|
3013
|
-
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
3013
|
+
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
3014
3014
|
*/
|
|
3015
3015
|
request_three_d_secure?: Card.RequestThreeDSecure;
|
|
3016
3016
|
|
package/types/Subscriptions.d.ts
CHANGED
|
@@ -455,7 +455,7 @@ declare module 'stripe' {
|
|
|
455
455
|
network: Card.Network | null;
|
|
456
456
|
|
|
457
457
|
/**
|
|
458
|
-
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
458
|
+
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
459
459
|
*/
|
|
460
460
|
request_three_d_secure: Card.RequestThreeDSecure | null;
|
|
461
461
|
}
|
|
@@ -128,15 +128,15 @@ declare module 'stripe' {
|
|
|
128
128
|
/**
|
|
129
129
|
* Only applies to subscriptions with `collection_method=charge_automatically`.
|
|
130
130
|
*
|
|
131
|
-
* Use `allow_incomplete` to create
|
|
131
|
+
* Use `allow_incomplete` to create Subscriptions with `status=incomplete` if the first invoice can't be paid. Creating Subscriptions with this status allows you to manage scenarios where additional customer actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://stripe.com/docs/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior.
|
|
132
132
|
*
|
|
133
|
-
* Use `default_incomplete` to create Subscriptions with `status=incomplete` when the first invoice requires payment, otherwise start as active. Subscriptions transition to `status=active` when successfully confirming the
|
|
133
|
+
* Use `default_incomplete` to create Subscriptions with `status=incomplete` when the first invoice requires payment, otherwise start as active. Subscriptions transition to `status=active` when successfully confirming the PaymentIntent on the first invoice. This allows simpler management of scenarios where additional customer actions are needed to pay a subscription's invoice, such as failed payments, [SCA regulation](https://stripe.com/docs/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. If the PaymentIntent is not confirmed within 23 hours Subscriptions transition to `status=incomplete_expired`, which is a terminal state.
|
|
134
134
|
*
|
|
135
|
-
* Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's first invoice
|
|
135
|
+
* Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's first invoice can't be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further customer action is needed, this parameter doesn't create a Subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more.
|
|
136
136
|
*
|
|
137
|
-
* `pending_if_incomplete` is only used with updates and cannot be passed when creating a
|
|
137
|
+
* `pending_if_incomplete` is only used with updates and cannot be passed when creating a Subscription.
|
|
138
138
|
*
|
|
139
|
-
* Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first
|
|
139
|
+
* Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first Invoice status.
|
|
140
140
|
*/
|
|
141
141
|
payment_behavior?: SubscriptionCreateParams.PaymentBehavior;
|
|
142
142
|
|
|
@@ -556,7 +556,7 @@ declare module 'stripe' {
|
|
|
556
556
|
network?: Card.Network;
|
|
557
557
|
|
|
558
558
|
/**
|
|
559
|
-
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
559
|
+
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
560
560
|
*/
|
|
561
561
|
request_three_d_secure?: Card.RequestThreeDSecure;
|
|
562
562
|
}
|
|
@@ -1336,7 +1336,7 @@ declare module 'stripe' {
|
|
|
1336
1336
|
network?: Card.Network;
|
|
1337
1337
|
|
|
1338
1338
|
/**
|
|
1339
|
-
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1339
|
+
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1340
1340
|
*/
|
|
1341
1341
|
request_three_d_secure?: Card.RequestThreeDSecure;
|
|
1342
1342
|
}
|
|
@@ -115,7 +115,7 @@ declare module 'stripe' {
|
|
|
115
115
|
|
|
116
116
|
interface TaxId {
|
|
117
117
|
/**
|
|
118
|
-
* 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`, `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`
|
|
118
|
+
* 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`, or `unknown`
|
|
119
119
|
*/
|
|
120
120
|
type: TaxId.Type;
|
|
121
121
|
|
|
@@ -172,6 +172,7 @@ declare module 'stripe' {
|
|
|
172
172
|
| 'my_itn'
|
|
173
173
|
| 'my_sst'
|
|
174
174
|
| 'no_vat'
|
|
175
|
+
| 'no_voec'
|
|
175
176
|
| 'nz_gst'
|
|
176
177
|
| 'pe_ruc'
|
|
177
178
|
| 'ph_tin'
|
|
@@ -110,7 +110,7 @@ declare module 'stripe' {
|
|
|
110
110
|
|
|
111
111
|
interface TaxId {
|
|
112
112
|
/**
|
|
113
|
-
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `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`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `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`
|
|
113
|
+
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `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`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `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`
|
|
114
114
|
*/
|
|
115
115
|
type: TaxId.Type;
|
|
116
116
|
|
|
@@ -167,6 +167,7 @@ declare module 'stripe' {
|
|
|
167
167
|
| 'my_itn'
|
|
168
168
|
| 'my_sst'
|
|
169
169
|
| 'no_vat'
|
|
170
|
+
| 'no_voec'
|
|
170
171
|
| 'nz_gst'
|
|
171
172
|
| 'pe_ruc'
|
|
172
173
|
| 'ph_tin'
|
|
@@ -115,7 +115,7 @@ declare module 'stripe' {
|
|
|
115
115
|
|
|
116
116
|
interface TaxId {
|
|
117
117
|
/**
|
|
118
|
-
* 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`, `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`
|
|
118
|
+
* 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`, or `unknown`
|
|
119
119
|
*/
|
|
120
120
|
type: TaxId.Type;
|
|
121
121
|
|
|
@@ -172,6 +172,7 @@ declare module 'stripe' {
|
|
|
172
172
|
| 'my_itn'
|
|
173
173
|
| 'my_sst'
|
|
174
174
|
| 'no_vat'
|
|
175
|
+
| 'no_voec'
|
|
175
176
|
| 'nz_gst'
|
|
176
177
|
| 'pe_ruc'
|
|
177
178
|
| 'ph_tin'
|
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`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `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`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `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`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `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`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `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
|
|
|
@@ -158,6 +158,7 @@ declare module 'stripe' {
|
|
|
158
158
|
| 'my_itn'
|
|
159
159
|
| 'my_sst'
|
|
160
160
|
| 'no_vat'
|
|
161
|
+
| 'no_voec'
|
|
161
162
|
| 'nz_gst'
|
|
162
163
|
| 'pe_ruc'
|
|
163
164
|
| 'ph_tin'
|
|
@@ -544,12 +544,30 @@ declare module 'stripe' {
|
|
|
544
544
|
*/
|
|
545
545
|
name?: string;
|
|
546
546
|
|
|
547
|
+
/**
|
|
548
|
+
* Contains information about card networks used to process the payment.
|
|
549
|
+
*/
|
|
550
|
+
networks?: Card.Networks;
|
|
551
|
+
|
|
547
552
|
/**
|
|
548
553
|
* The card number, as a string without any separators.
|
|
549
554
|
*/
|
|
550
555
|
number: string;
|
|
551
556
|
}
|
|
552
557
|
|
|
558
|
+
namespace Card {
|
|
559
|
+
interface Networks {
|
|
560
|
+
/**
|
|
561
|
+
* The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card.
|
|
562
|
+
*/
|
|
563
|
+
preferred?: Networks.Preferred;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
namespace Networks {
|
|
567
|
+
type Preferred = 'cartes_bancaires' | 'mastercard' | 'visa';
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
|
|
553
571
|
interface CvcUpdate {
|
|
554
572
|
/**
|
|
555
573
|
* The CVC value, in string form.
|
|
@@ -217,6 +217,7 @@ declare module 'stripe' {
|
|
|
217
217
|
| 'financial_connections.account.disconnected'
|
|
218
218
|
| 'financial_connections.account.reactivated'
|
|
219
219
|
| 'financial_connections.account.refreshed_balance'
|
|
220
|
+
| 'financial_connections.account.refreshed_ownership'
|
|
220
221
|
| 'financial_connections.account.refreshed_transactions'
|
|
221
222
|
| 'identity.verification_session.canceled'
|
|
222
223
|
| 'identity.verification_session.created'
|
|
@@ -494,6 +495,7 @@ declare module 'stripe' {
|
|
|
494
495
|
| 'financial_connections.account.disconnected'
|
|
495
496
|
| 'financial_connections.account.reactivated'
|
|
496
497
|
| 'financial_connections.account.refreshed_balance'
|
|
498
|
+
| 'financial_connections.account.refreshed_ownership'
|
|
497
499
|
| 'financial_connections.account.refreshed_transactions'
|
|
498
500
|
| 'identity.verification_session.canceled'
|
|
499
501
|
| 'identity.verification_session.created'
|