stripe 17.5.0-beta.2 → 17.5.0-beta.3

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/VERSION +1 -1
  3. package/cjs/apiVersion.js +1 -1
  4. package/cjs/stripe.core.js +1 -1
  5. package/esm/apiVersion.js +1 -1
  6. package/esm/stripe.core.js +1 -1
  7. package/package.json +1 -1
  8. package/types/AccountSessions.d.ts +5 -5
  9. package/types/AccountSessionsResource.d.ts +6 -6
  10. package/types/Accounts.d.ts +4 -4
  11. package/types/Billing/CreditBalanceTransactions.d.ts +20 -1
  12. package/types/Capabilities.d.ts +2 -2
  13. package/types/Cards.d.ts +14 -0
  14. package/types/Charges.d.ts +12 -0
  15. package/types/Checkout/Sessions.d.ts +40 -4
  16. package/types/ConfirmationTokens.d.ts +7 -0
  17. package/types/CustomersResource.d.ts +40 -4
  18. package/types/Disputes.d.ts +22 -0
  19. package/types/DisputesResource.d.ts +12 -0
  20. package/types/Forwarding/Requests.d.ts +2 -1
  21. package/types/Forwarding/RequestsResource.d.ts +2 -1
  22. package/types/Invoices.d.ts +20 -2
  23. package/types/InvoicesResource.d.ts +60 -6
  24. package/types/Issuing/Authorizations.d.ts +6 -0
  25. package/types/Issuing/Transactions.d.ts +5 -0
  26. package/types/Orders.d.ts +20 -2
  27. package/types/OrdersResource.d.ts +40 -4
  28. package/types/PaymentMethods.d.ts +7 -0
  29. package/types/PaymentRecords.d.ts +0 -17
  30. package/types/Payouts.d.ts +1 -1
  31. package/types/Persons.d.ts +2 -2
  32. package/types/QuotePreviewInvoices.d.ts +20 -2
  33. package/types/Sources.d.ts +7 -0
  34. package/types/Tax/Calculations.d.ts +20 -2
  35. package/types/Tax/CalculationsResource.d.ts +20 -2
  36. package/types/Tax/Transactions.d.ts +20 -2
  37. package/types/TaxIds.d.ts +20 -2
  38. package/types/TaxIdsResource.d.ts +20 -2
  39. package/types/Terminal/Readers.d.ts +32 -0
  40. package/types/WebhookEndpointsResource.d.ts +2 -1
  41. package/types/lib.d.ts +1 -1
  42. package/types/test/typescriptTest.ts +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 17.5.0-beta.3 - 2024-12-12
4
+ * [#2235](https://github.com/stripe/stripe-node/pull/2235) Update generated code for beta
5
+ * Change `Account.business_profile.annual_revenue` and `Account.business_profile.estimated_worker_count` to be optional
6
+ * Add support for `allow_redisplay` on `Card` and `Source`
7
+ * Add support for new values `am_tin`, `ao_tin`, `ba_tin`, `bb_tin`, `bs_tin`, `cd_nif`, `gn_nif`, `kh_tin`, `me_pib`, `mk_vat`, `mr_nif`, `np_pan`, `sn_ninea`, `sr_fin`, `tj_tin`, `ug_tin`, `zm_tin`, and `zw_tin` on enums `Checkout.Session.collected_information.tax_ids[].type` and `Order.tax_details.tax_ids[].type`
8
+ * Add support for new value `network_fallback` on enum `Issuing.Authorization.request_history[].reason`
9
+ * Add support for new values `am_tin`, `ao_tin`, `ba_tin`, `bb_tin`, `bs_tin`, `cd_nif`, `gn_nif`, `kh_tin`, `me_pib`, `mk_vat`, `mr_nif`, `np_pan`, `sn_ninea`, `sr_fin`, `tj_tin`, `ug_tin`, `zm_tin`, and `zw_tin` on enums `OrderCreateParams.tax_details.tax_ids[].type` and `OrderUpdateParams.tax_details.tax_ids[].type`
10
+ * Remove support for `amount_refunded` on `PaymentRecord`
11
+ * Add support for `account` on `Terminal.Reader.action.collect_payment_method`, `Terminal.Reader.action.confirm_payment_intent`, `Terminal.Reader.action.process_payment_intent`, and `Terminal.Reader.action.refund_payment`
12
+
3
13
  ## 17.5.0-beta.2 - 2024-12-05
4
14
  * [#2232](https://github.com/stripe/stripe-node/pull/2232) Update generated code for beta
5
15
  * Add support for `automatic_indirect_tax` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
package/VERSION CHANGED
@@ -1 +1 @@
1
- 17.5.0-beta.2
1
+ 17.5.0-beta.3
package/cjs/apiVersion.js CHANGED
@@ -2,4 +2,4 @@
2
2
  // File generated from our OpenAPI spec
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ApiVersion = void 0;
5
- exports.ApiVersion = '2024-11-20.acacia';
5
+ exports.ApiVersion = '2024-12-18.acacia';
@@ -36,7 +36,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
36
36
  ];
37
37
  const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
38
38
  function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
39
- Stripe.PACKAGE_VERSION = '17.5.0-beta.2';
39
+ Stripe.PACKAGE_VERSION = '17.5.0-beta.3';
40
40
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
41
41
  Stripe.StripeResource = StripeResource_js_1.StripeResource;
42
42
  Stripe.resources = resources;
package/esm/apiVersion.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // File generated from our OpenAPI spec
2
- export const ApiVersion = '2024-11-20.acacia';
2
+ export const ApiVersion = '2024-12-18.acacia';
@@ -33,7 +33,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
33
33
  ];
34
34
  const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
35
35
  export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
36
- Stripe.PACKAGE_VERSION = '17.5.0-beta.2';
36
+ Stripe.PACKAGE_VERSION = '17.5.0-beta.3';
37
37
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
38
38
  Stripe.StripeResource = StripeResource;
39
39
  Stripe.resources = resources;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "17.5.0-beta.2",
3
+ "version": "17.5.0-beta.3",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -88,7 +88,7 @@ declare module 'stripe' {
88
88
  namespace AccountManagement {
89
89
  interface Features {
90
90
  /**
91
- * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
91
+ * Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
92
92
  */
93
93
  disable_stripe_user_authentication: boolean;
94
94
 
@@ -111,7 +111,7 @@ declare module 'stripe' {
111
111
  namespace AccountOnboarding {
112
112
  interface Features {
113
113
  /**
114
- * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
114
+ * Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
115
115
  */
116
116
  disable_stripe_user_authentication: boolean;
117
117
 
@@ -134,7 +134,7 @@ declare module 'stripe' {
134
134
  namespace Balances {
135
135
  interface Features {
136
136
  /**
137
- * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
137
+ * Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
138
138
  */
139
139
  disable_stripe_user_authentication: boolean;
140
140
 
@@ -224,7 +224,7 @@ declare module 'stripe' {
224
224
  namespace NotificationBanner {
225
225
  interface Features {
226
226
  /**
227
- * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
227
+ * Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
228
228
  */
229
229
  disable_stripe_user_authentication: boolean;
230
230
 
@@ -313,7 +313,7 @@ declare module 'stripe' {
313
313
  namespace Payouts {
314
314
  interface Features {
315
315
  /**
316
- * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
316
+ * Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
317
317
  */
318
318
  disable_stripe_user_authentication: boolean;
319
319
 
@@ -158,7 +158,7 @@ declare module 'stripe' {
158
158
  namespace AccountManagement {
159
159
  interface Features {
160
160
  /**
161
- * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
161
+ * Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
162
162
  */
163
163
  disable_stripe_user_authentication?: boolean;
164
164
 
@@ -184,7 +184,7 @@ declare module 'stripe' {
184
184
  namespace AccountOnboarding {
185
185
  interface Features {
186
186
  /**
187
- * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
187
+ * Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
188
188
  */
189
189
  disable_stripe_user_authentication?: boolean;
190
190
 
@@ -252,7 +252,7 @@ declare module 'stripe' {
252
252
  namespace Balances {
253
253
  interface Features {
254
254
  /**
255
- * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
255
+ * Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
256
256
  */
257
257
  disable_stripe_user_authentication?: boolean;
258
258
 
@@ -373,7 +373,7 @@ declare module 'stripe' {
373
373
  namespace FinancialAccount {
374
374
  interface Features {
375
375
  /**
376
- * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
376
+ * Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
377
377
  */
378
378
  disable_stripe_user_authentication?: boolean;
379
379
 
@@ -507,7 +507,7 @@ declare module 'stripe' {
507
507
  namespace NotificationBanner {
508
508
  interface Features {
509
509
  /**
510
- * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
510
+ * Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
511
511
  */
512
512
  disable_stripe_user_authentication?: boolean;
513
513
 
@@ -621,7 +621,7 @@ declare module 'stripe' {
621
621
  namespace Payouts {
622
622
  interface Features {
623
623
  /**
624
- * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
624
+ * Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
625
625
  */
626
626
  disable_stripe_user_authentication?: boolean;
627
627
 
@@ -131,12 +131,12 @@ declare module 'stripe' {
131
131
  /**
132
132
  * The applicant's gross annual revenue for its preceding fiscal year.
133
133
  */
134
- annual_revenue: BusinessProfile.AnnualRevenue | null;
134
+ annual_revenue?: BusinessProfile.AnnualRevenue | null;
135
135
 
136
136
  /**
137
137
  * An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
138
138
  */
139
- estimated_worker_count: number | null;
139
+ estimated_worker_count?: number | null;
140
140
 
141
141
  /**
142
142
  * [The merchant category code for the account](https://stripe.com/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
@@ -1045,7 +1045,7 @@ declare module 'stripe' {
1045
1045
  errors: Array<FutureRequirements.Error> | null;
1046
1046
 
1047
1047
  /**
1048
- * Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well.
1048
+ * Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well.
1049
1049
  */
1050
1050
  eventually_due: Array<string> | null;
1051
1051
 
@@ -1236,7 +1236,7 @@ declare module 'stripe' {
1236
1236
  errors: Array<Requirements.Error> | null;
1237
1237
 
1238
1238
  /**
1239
- * Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
1239
+ * Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
1240
1240
  */
1241
1241
  eventually_due: Array<string> | null;
1242
1242
 
@@ -62,10 +62,15 @@ declare module 'stripe' {
62
62
  interface Credit {
63
63
  amount: Credit.Amount;
64
64
 
65
+ /**
66
+ * Details of the invoice to which the reinstated credits were originally applied. Only present if `type` is `credits_application_invoice_voided`.
67
+ */
68
+ credits_application_invoice_voided?: Credit.CreditsApplicationInvoiceVoided | null;
69
+
65
70
  /**
66
71
  * The type of credit transaction.
67
72
  */
68
- type: 'credits_granted';
73
+ type: Credit.Type;
69
74
  }
70
75
 
71
76
  namespace Credit {
@@ -94,6 +99,20 @@ declare module 'stripe' {
94
99
  value: number;
95
100
  }
96
101
  }
102
+
103
+ interface CreditsApplicationInvoiceVoided {
104
+ /**
105
+ * The invoice to which the reinstated billing credits were originally applied.
106
+ */
107
+ invoice: string | Stripe.Invoice;
108
+
109
+ /**
110
+ * The invoice line item to which the reinstated billing credits were originally applied.
111
+ */
112
+ invoice_line_item: string;
113
+ }
114
+
115
+ type Type = 'credits_application_invoice_voided' | 'credits_granted';
97
116
  }
98
117
 
99
118
  interface Debit {
@@ -71,7 +71,7 @@ declare module 'stripe' {
71
71
  errors: Array<FutureRequirements.Error>;
72
72
 
73
73
  /**
74
- * Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well.
74
+ * Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well.
75
75
  */
76
76
  eventually_due: Array<string>;
77
77
 
@@ -250,7 +250,7 @@ declare module 'stripe' {
250
250
  errors: Array<Requirements.Error>;
251
251
 
252
252
  /**
253
- * Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
253
+ * Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
254
254
  */
255
255
  eventually_due: Array<string>;
256
256
 
package/types/Cards.d.ts CHANGED
@@ -65,6 +65,11 @@ declare module 'stripe' {
65
65
  */
66
66
  address_zip_check: string | null;
67
67
 
68
+ /**
69
+ * This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”.
70
+ */
71
+ allow_redisplay?: Card.AllowRedisplay | null;
72
+
68
73
  /**
69
74
  * A set of available payout methods for this card. Only values from this set should be passed as the `method` when creating a payout.
70
75
  */
@@ -164,6 +169,11 @@ declare module 'stripe' {
164
169
 
165
170
  networks?: Card.Networks;
166
171
 
172
+ /**
173
+ * Status of a card based on the card issuer.
174
+ */
175
+ regulated_status?: Card.RegulatedStatus | null;
176
+
167
177
  /**
168
178
  * 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.
169
179
  */
@@ -176,6 +186,8 @@ declare module 'stripe' {
176
186
  }
177
187
 
178
188
  namespace Card {
189
+ type AllowRedisplay = 'always' | 'limited' | 'unspecified';
190
+
179
191
  type AvailablePayoutMethod = 'instant' | 'standard';
180
192
 
181
193
  interface Networks {
@@ -184,6 +196,8 @@ declare module 'stripe' {
184
196
  */
185
197
  preferred: string | null;
186
198
  }
199
+
200
+ type RegulatedStatus = 'regulated' | 'unregulated';
187
201
  }
188
202
 
189
203
  /**
@@ -897,10 +897,20 @@ declare module 'stripe' {
897
897
  */
898
898
  network_token?: Card.NetworkToken | null;
899
899
 
900
+ /**
901
+ * This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
902
+ */
903
+ network_transaction_id?: string | null;
904
+
900
905
  overcapture?: Card.Overcapture;
901
906
 
902
907
  partial_authorization?: Card.PartialAuthorization;
903
908
 
909
+ /**
910
+ * Status of a card based on the card issuer.
911
+ */
912
+ regulated_status?: Card.RegulatedStatus | null;
913
+
904
914
  /**
905
915
  * Populated if this transaction used 3D Secure authentication.
906
916
  */
@@ -1039,6 +1049,8 @@ declare module 'stripe' {
1039
1049
  | 'partially_authorized';
1040
1050
  }
1041
1051
 
1052
+ type RegulatedStatus = 'regulated' | 'unregulated';
1053
+
1042
1054
  interface ThreeDSecure {
1043
1055
  /**
1044
1056
  * For authenticated transactions: how the customer was authenticated by
@@ -451,7 +451,7 @@ declare module 'stripe' {
451
451
 
452
452
  interface TaxId {
453
453
  /**
454
- * 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`, `li_vat`, `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`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown`
454
+ * 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`, `li_vat`, `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`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
455
455
  */
456
456
  type: TaxId.Type;
457
457
 
@@ -465,14 +465,19 @@ declare module 'stripe' {
465
465
  type Type =
466
466
  | 'ad_nrt'
467
467
  | 'ae_trn'
468
+ | 'am_tin'
469
+ | 'ao_tin'
468
470
  | 'ar_cuit'
469
471
  | 'au_abn'
470
472
  | 'au_arn'
473
+ | 'ba_tin'
474
+ | 'bb_tin'
471
475
  | 'bg_uic'
472
476
  | 'bh_vat'
473
477
  | 'bo_tin'
474
478
  | 'br_cnpj'
475
479
  | 'br_cpf'
480
+ | 'bs_tin'
476
481
  | 'by_tin'
477
482
  | 'ca_bn'
478
483
  | 'ca_gst_hst'
@@ -480,6 +485,7 @@ declare module 'stripe' {
480
485
  | 'ca_pst_mb'
481
486
  | 'ca_pst_sk'
482
487
  | 'ca_qst'
488
+ | 'cd_nif'
483
489
  | 'ch_uid'
484
490
  | 'ch_vat'
485
491
  | 'cl_tin'
@@ -495,6 +501,7 @@ declare module 'stripe' {
495
501
  | 'eu_vat'
496
502
  | 'gb_vat'
497
503
  | 'ge_vat'
504
+ | 'gn_nif'
498
505
  | 'hk_br'
499
506
  | 'hr_oib'
500
507
  | 'hu_tin'
@@ -506,12 +513,16 @@ declare module 'stripe' {
506
513
  | 'jp_rn'
507
514
  | 'jp_trn'
508
515
  | 'ke_pin'
516
+ | 'kh_tin'
509
517
  | 'kr_brn'
510
518
  | 'kz_bin'
511
519
  | 'li_uid'
512
520
  | 'li_vat'
513
521
  | 'ma_vat'
514
522
  | 'md_vat'
523
+ | 'me_pib'
524
+ | 'mk_vat'
525
+ | 'mr_nif'
515
526
  | 'mx_rfc'
516
527
  | 'my_frp'
517
528
  | 'my_itn'
@@ -519,6 +530,7 @@ declare module 'stripe' {
519
530
  | 'ng_tin'
520
531
  | 'no_vat'
521
532
  | 'no_voec'
533
+ | 'np_pan'
522
534
  | 'nz_gst'
523
535
  | 'om_vat'
524
536
  | 'pe_ruc'
@@ -531,12 +543,16 @@ declare module 'stripe' {
531
543
  | 'sg_gst'
532
544
  | 'sg_uen'
533
545
  | 'si_tin'
546
+ | 'sn_ninea'
547
+ | 'sr_fin'
534
548
  | 'sv_nit'
535
549
  | 'th_vat'
550
+ | 'tj_tin'
536
551
  | 'tr_tin'
537
552
  | 'tw_vat'
538
553
  | 'tz_vat'
539
554
  | 'ua_vat'
555
+ | 'ug_tin'
540
556
  | 'unknown'
541
557
  | 'us_ein'
542
558
  | 'uy_ruc'
@@ -544,7 +560,9 @@ declare module 'stripe' {
544
560
  | 'uz_vat'
545
561
  | 've_rif'
546
562
  | 'vn_tin'
547
- | 'za_vat';
563
+ | 'za_vat'
564
+ | 'zm_tin'
565
+ | 'zw_tin';
548
566
  }
549
567
  }
550
568
 
@@ -665,7 +683,7 @@ declare module 'stripe' {
665
683
 
666
684
  interface TaxId {
667
685
  /**
668
- * 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`, `li_vat`, `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`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown`
686
+ * 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`, `li_vat`, `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`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
669
687
  */
670
688
  type: TaxId.Type;
671
689
 
@@ -679,14 +697,19 @@ declare module 'stripe' {
679
697
  type Type =
680
698
  | 'ad_nrt'
681
699
  | 'ae_trn'
700
+ | 'am_tin'
701
+ | 'ao_tin'
682
702
  | 'ar_cuit'
683
703
  | 'au_abn'
684
704
  | 'au_arn'
705
+ | 'ba_tin'
706
+ | 'bb_tin'
685
707
  | 'bg_uic'
686
708
  | 'bh_vat'
687
709
  | 'bo_tin'
688
710
  | 'br_cnpj'
689
711
  | 'br_cpf'
712
+ | 'bs_tin'
690
713
  | 'by_tin'
691
714
  | 'ca_bn'
692
715
  | 'ca_gst_hst'
@@ -694,6 +717,7 @@ declare module 'stripe' {
694
717
  | 'ca_pst_mb'
695
718
  | 'ca_pst_sk'
696
719
  | 'ca_qst'
720
+ | 'cd_nif'
697
721
  | 'ch_uid'
698
722
  | 'ch_vat'
699
723
  | 'cl_tin'
@@ -709,6 +733,7 @@ declare module 'stripe' {
709
733
  | 'eu_vat'
710
734
  | 'gb_vat'
711
735
  | 'ge_vat'
736
+ | 'gn_nif'
712
737
  | 'hk_br'
713
738
  | 'hr_oib'
714
739
  | 'hu_tin'
@@ -720,12 +745,16 @@ declare module 'stripe' {
720
745
  | 'jp_rn'
721
746
  | 'jp_trn'
722
747
  | 'ke_pin'
748
+ | 'kh_tin'
723
749
  | 'kr_brn'
724
750
  | 'kz_bin'
725
751
  | 'li_uid'
726
752
  | 'li_vat'
727
753
  | 'ma_vat'
728
754
  | 'md_vat'
755
+ | 'me_pib'
756
+ | 'mk_vat'
757
+ | 'mr_nif'
729
758
  | 'mx_rfc'
730
759
  | 'my_frp'
731
760
  | 'my_itn'
@@ -733,6 +762,7 @@ declare module 'stripe' {
733
762
  | 'ng_tin'
734
763
  | 'no_vat'
735
764
  | 'no_voec'
765
+ | 'np_pan'
736
766
  | 'nz_gst'
737
767
  | 'om_vat'
738
768
  | 'pe_ruc'
@@ -745,12 +775,16 @@ declare module 'stripe' {
745
775
  | 'sg_gst'
746
776
  | 'sg_uen'
747
777
  | 'si_tin'
778
+ | 'sn_ninea'
779
+ | 'sr_fin'
748
780
  | 'sv_nit'
749
781
  | 'th_vat'
782
+ | 'tj_tin'
750
783
  | 'tr_tin'
751
784
  | 'tw_vat'
752
785
  | 'tz_vat'
753
786
  | 'ua_vat'
787
+ | 'ug_tin'
754
788
  | 'unknown'
755
789
  | 'us_ein'
756
790
  | 'uy_ruc'
@@ -758,7 +792,9 @@ declare module 'stripe' {
758
792
  | 'uz_vat'
759
793
  | 've_rif'
760
794
  | 'vn_tin'
761
- | 'za_vat';
795
+ | 'za_vat'
796
+ | 'zm_tin'
797
+ | 'zw_tin';
762
798
  }
763
799
  }
764
800
 
@@ -440,6 +440,11 @@ declare module 'stripe' {
440
440
  */
441
441
  networks: Card.Networks | null;
442
442
 
443
+ /**
444
+ * Status of a card based on the card issuer.
445
+ */
446
+ regulated_status?: Card.RegulatedStatus | null;
447
+
443
448
  /**
444
449
  * Contains details on how this Card may be used for 3D Secure authentication.
445
450
  */
@@ -728,6 +733,8 @@ declare module 'stripe' {
728
733
  preferred: string | null;
729
734
  }
730
735
 
736
+ type RegulatedStatus = 'regulated' | 'unregulated';
737
+
731
738
  interface ThreeDSecureUsage {
732
739
  /**
733
740
  * Whether 3D Secure is supported on this card.