stripe 15.12.0 → 16.0.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 CHANGED
@@ -1,12 +1,50 @@
1
1
  # Changelog
2
2
 
3
+ ## 16.0.0 - 2024-06-24
4
+ * [#2113](https://github.com/stripe/stripe-node/pull/2113)
5
+
6
+ This release changes the pinned API version to 2024-06-20. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-06-20) and carefully review the API changes before upgrading.
7
+
8
+ ### ⚠️ Breaking changes
9
+
10
+ * Remove the unused resource `PlatformTaxFee`
11
+ * Rename `volume_decimal` to `quantity_decimal` on
12
+ * `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel`,
13
+ * `Issuing.Transaction.purchase_details.fuel`,
14
+ * `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel`, and
15
+ * `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel`
16
+ * `Capabilities.Requirements.disabled_reason` and `Capabilities.Requirements.disabled_reason` are now enums with the below values
17
+ * `other`
18
+ * `paused.inactivity`
19
+ * `pending.onboarding`
20
+ * `pending.review`
21
+ * `platform_disabled`
22
+ * `platform_paused`
23
+ * `rejected.inactivity`
24
+ * `rejected.other`
25
+ * `rejected.unsupported_business`
26
+ * `requirements.fields_needed`
27
+
28
+ ### Additions
29
+
30
+ * Add support for new values `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, and `pound` on enums `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel.unit`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel.unit`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel.unit`
31
+ * Add support for new values `card_canceled`, `card_expired`, `cardholder_blocked`, `insecure_authorization_method`, and `pin_blocked` on enum `Issuing.Authorization.request_history[].reason`
32
+ * Add support for `finalize_amount` test helper method on resource `Issuing.Authorization`
33
+ * Add support for new value `ch_uid` 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`
34
+ * Add support for new value `ch_uid` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
35
+ * Add support for `fleet` on `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details`, `Issuing.AuthorizationCreateParams.testHelpers`, `Issuing.Authorization`, `Issuing.Transaction.purchase_details`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details`
36
+ * Add support for `fuel` on `Issuing.AuthorizationCreateParams.testHelpers` and `Issuing.Authorization`
37
+ * Add support for `industry_product_code` and `quantity_decimal` on `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel`, `Issuing.Transaction.purchase_details.fuel`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel`
38
+ * Add support for new value `2024-06-20` on enum `WebhookEndpointCreateParams.api_version`
39
+ * [#2118](https://github.com/stripe/stripe-node/pull/2118) Use worker module in Bun
40
+
3
41
  ## 15.12.0 - 2024-06-17
4
42
  * [#2109](https://github.com/stripe/stripe-node/pull/2109) Update generated code
5
43
  * Add support for new value `mobilepay` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]`
6
44
  * Add support for `tax_id_collection` on `PaymentLinkUpdateParams`
7
45
  * [#2111](https://github.com/stripe/stripe-node/pull/2111) Where params are union of types, merge the types instead of having numbered suffixes in type names
8
- * Change type of `PaymentIntentConfirmParams.mandate_data` from `Stripe.Emptyable<PaymentIntentConfirmParams.MandateData1 | PaymentIntentConfirmParams.MandateData2>` to `Stripe.Emptyable<PaymentIntentConfirmParams.MandateData>` where the new MandateData is a union of all the properties of MandateData1 and MandateData2
9
- * Change type of `PaymentMethodCreateParams.card` from `PaymentMethodCreateParams.Card1 | PaymentMethodCreateParams.Card2` to `PaymentMethodCreateParams.Card` where the new Card is a union of all the properties of Card1 and Card2
46
+ * Change type of `PaymentIntentConfirmParams.mandate_data` from `Stripe.Emptyable<PaymentIntentConfirmParams.MandateData1 | PaymentIntentConfirmParams.MandateData2>` to `Stripe.Emptyable<PaymentIntentConfirmParams.MandateData>` where the new MandateData is a union of all the properties of MandateData1 and MandateData2
47
+ * Change type of `PaymentMethodCreateParams.card` from `PaymentMethodCreateParams.Card1 | PaymentMethodCreateParams.Card2` to `PaymentMethodCreateParams.Card` where the new Card is a union of all the properties of Card1 and Card2
10
48
  * Change type of `SetupIntentConfirmParams.mandate_data` from `Stripe.Emptyable<SetupIntentConfirmParams.MandateData1 | SetupIntentConfirmParams.MandateData2>` to `Stripe.Emptyable<SetupIntentConfirmParams.MandateData>` where the new MandateData is a union of all the properties of MandateData1 and MandateData2
11
49
 
12
50
  ## 15.11.0 - 2024-06-13
package/VERSION CHANGED
@@ -1 +1 @@
1
- 15.12.0
1
+ 16.0.0
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-04-10';
5
+ exports.ApiVersion = '2024-06-20';
@@ -17,6 +17,10 @@ exports.Authorizations = StripeResource_js_1.StripeResource.extend({
17
17
  method: 'POST',
18
18
  fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/expire',
19
19
  }),
20
+ finalizeAmount: stripeMethod({
21
+ method: 'POST',
22
+ fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/finalize_amount',
23
+ }),
20
24
  increment: stripeMethod({
21
25
  method: 'POST',
22
26
  fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/increment',
@@ -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 = '15.12.0';
37
+ Stripe.PACKAGE_VERSION = '16.0.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/apiVersion.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // File generated from our OpenAPI spec
2
- export const ApiVersion = '2024-04-10';
2
+ export const ApiVersion = '2024-06-20';
@@ -14,6 +14,10 @@ export const Authorizations = StripeResource.extend({
14
14
  method: 'POST',
15
15
  fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/expire',
16
16
  }),
17
+ finalizeAmount: stripeMethod({
18
+ method: 'POST',
19
+ fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/finalize_amount',
20
+ }),
17
21
  increment: stripeMethod({
18
22
  method: 'POST',
19
23
  fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/increment',
@@ -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 = '15.12.0';
34
+ Stripe.PACKAGE_VERSION = '16.0.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "15.12.0",
3
+ "version": "16.0.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -80,6 +80,10 @@
80
80
  "import": "./esm/stripe.esm.worker.js",
81
81
  "require": "./cjs/stripe.cjs.worker.js"
82
82
  },
83
+ "bun": {
84
+ "import": "./esm/stripe.esm.worker.js",
85
+ "require": "./cjs/stripe.cjs.worker.js"
86
+ },
83
87
  "deno": {
84
88
  "import": "./esm/stripe.esm.worker.js",
85
89
  "require": "./cjs/stripe.cjs.worker.js"
@@ -13,7 +13,6 @@ declare module 'stripe' {
13
13
  | Issuing.Dispute
14
14
  | Issuing.Transaction
15
15
  | Payout
16
- | PlatformTaxFee
17
16
  | Refund
18
17
  | ReserveTransaction
19
18
  | TaxDeductedAtSource
@@ -63,7 +63,7 @@ declare module 'stripe' {
63
63
  /**
64
64
  * This is typed as a string for consistency with `requirements.disabled_reason`, but it safe to assume `future_requirements.disabled_reason` is empty because fields in `future_requirements` will never disable the account.
65
65
  */
66
- disabled_reason: string | null;
66
+ disabled_reason: FutureRequirements.DisabledReason | null;
67
67
 
68
68
  /**
69
69
  * Fields that are `currently_due` and need to be collected again because validation or verification failed.
@@ -99,6 +99,18 @@ declare module 'stripe' {
99
99
  original_fields_due: Array<string>;
100
100
  }
101
101
 
102
+ type DisabledReason =
103
+ | 'other'
104
+ | 'paused.inactivity'
105
+ | 'pending.onboarding'
106
+ | 'pending.review'
107
+ | 'platform_disabled'
108
+ | 'platform_paused'
109
+ | 'rejected.inactivity'
110
+ | 'rejected.other'
111
+ | 'rejected.unsupported_business'
112
+ | 'requirements.fields_needed';
113
+
102
114
  interface Error {
103
115
  /**
104
116
  * The code for the type of error.
@@ -227,13 +239,9 @@ declare module 'stripe' {
227
239
  currently_due: Array<string>;
228
240
 
229
241
  /**
230
- * If the capability is disabled, this string describes why. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification). Can be `requirements.fields_needed`, `pending.onboarding`, `pending.review`, `rejected.other`, `platform_paused`, `rejected.inactivty`, or `rejected.unsupported_business`.
231
- *
232
- * `rejected.unsupported_business` means that the account's business is not supported by the capability. For example, payment methods may restrict the businesses they support in their terms of service, such as in [Afterpay Clearpay's terms of service](https://stripe.com/afterpay-clearpay/legal#restricted-businesses).
233
- *
234
- * `rejected.inactivity` means that the capability has been paused for inactivity. This disabled reason currently only applies to the Issuing capability. See [Issuing: Managing Inactive Connects](https://support.stripe.com/questions/issuing-managing-inactive-connect-accounts) for more details.
242
+ * Description of why the capability is disabled. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification).
235
243
  */
236
- disabled_reason: string | null;
244
+ disabled_reason: Requirements.DisabledReason | null;
237
245
 
238
246
  /**
239
247
  * Fields that are `currently_due` and need to be collected again because validation or verification failed.
@@ -269,6 +277,18 @@ declare module 'stripe' {
269
277
  original_fields_due: Array<string>;
270
278
  }
271
279
 
280
+ type DisabledReason =
281
+ | 'other'
282
+ | 'paused.inactivity'
283
+ | 'pending.onboarding'
284
+ | 'pending.review'
285
+ | 'platform_disabled'
286
+ | 'platform_paused'
287
+ | 'rejected.inactivity'
288
+ | 'rejected.other'
289
+ | 'rejected.unsupported_business'
290
+ | 'requirements.fields_needed';
291
+
272
292
  interface Error {
273
293
  /**
274
294
  * The code for the type of error.
@@ -490,7 +490,7 @@ declare module 'stripe' {
490
490
 
491
491
  interface TaxId {
492
492
  /**
493
- * 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`, or `unknown`
493
+ * 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`
494
494
  */
495
495
  type: TaxId.Type;
496
496
 
@@ -518,6 +518,7 @@ declare module 'stripe' {
518
518
  | 'ca_pst_mb'
519
519
  | 'ca_pst_sk'
520
520
  | 'ca_qst'
521
+ | 'ch_uid'
521
522
  | 'ch_vat'
522
523
  | 'cl_tin'
523
524
  | 'cn_tin'
@@ -249,7 +249,7 @@ declare module 'stripe' {
249
249
  success_url?: string;
250
250
 
251
251
  /**
252
- * Controls tax ID collection settings for the session.
252
+ * Controls tax ID collection during checkout.
253
253
  */
254
254
  tax_id_collection?: SessionCreateParams.TaxIdCollection;
255
255
 
@@ -2414,7 +2414,7 @@ declare module 'stripe' {
2414
2414
 
2415
2415
  interface TaxIdCollection {
2416
2416
  /**
2417
- * Set to true to enable Tax ID collection.
2417
+ * Enable tax ID collection during checkout. Defaults to `false`.
2418
2418
  */
2419
2419
  enabled: boolean;
2420
2420
  }
@@ -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`, `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_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`
218
+ * 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`
219
219
  */
220
220
  type: TaxIdDatum.Type;
221
221
 
@@ -243,6 +243,7 @@ declare module 'stripe' {
243
243
  | 'ca_pst_mb'
244
244
  | 'ca_pst_sk'
245
245
  | 'ca_qst'
246
+ | 'ch_uid'
246
247
  | 'ch_vat'
247
248
  | 'cl_tin'
248
249
  | 'cn_tin'
@@ -651,7 +652,7 @@ declare module 'stripe' {
651
652
 
652
653
  interface CustomerCreateTaxIdParams {
653
654
  /**
654
- * 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_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`
655
+ * 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`
655
656
  */
656
657
  type: CustomerCreateTaxIdParams.Type;
657
658
 
@@ -684,6 +685,7 @@ declare module 'stripe' {
684
685
  | 'ca_pst_mb'
685
686
  | 'ca_pst_sk'
686
687
  | 'ca_qst'
688
+ | 'ch_uid'
687
689
  | 'ch_vat'
688
690
  | 'cl_tin'
689
691
  | 'cn_tin'
@@ -551,7 +551,7 @@ declare module 'stripe' {
551
551
 
552
552
  interface CustomerTaxId {
553
553
  /**
554
- * 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`, or `unknown`
554
+ * 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`
555
555
  */
556
556
  type: CustomerTaxId.Type;
557
557
 
@@ -579,6 +579,7 @@ declare module 'stripe' {
579
579
  | 'ca_pst_mb'
580
580
  | 'ca_pst_sk'
581
581
  | 'ca_qst'
582
+ | 'ch_uid'
582
583
  | 'ch_vat'
583
584
  | 'cl_tin'
584
585
  | 'cn_tin'
@@ -1590,7 +1590,7 @@ declare module 'stripe' {
1590
1590
 
1591
1591
  interface TaxId {
1592
1592
  /**
1593
- * 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_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`
1593
+ * 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`
1594
1594
  */
1595
1595
  type: TaxId.Type;
1596
1596
 
@@ -1618,6 +1618,7 @@ declare module 'stripe' {
1618
1618
  | 'ca_pst_mb'
1619
1619
  | 'ca_pst_sk'
1620
1620
  | 'ca_qst'
1621
+ | 'ch_uid'
1621
1622
  | 'ch_vat'
1622
1623
  | 'cl_tin'
1623
1624
  | 'cn_tin'
@@ -2766,7 +2767,7 @@ declare module 'stripe' {
2766
2767
 
2767
2768
  interface TaxId {
2768
2769
  /**
2769
- * 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_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`
2770
+ * 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`
2770
2771
  */
2771
2772
  type: TaxId.Type;
2772
2773
 
@@ -2794,6 +2795,7 @@ declare module 'stripe' {
2794
2795
  | 'ca_pst_mb'
2795
2796
  | 'ca_pst_sk'
2796
2797
  | 'ca_qst'
2798
+ | 'ch_uid'
2797
2799
  | 'ch_vat'
2798
2800
  | 'cl_tin'
2799
2801
  | 'cn_tin'
@@ -4113,7 +4115,7 @@ declare module 'stripe' {
4113
4115
 
4114
4116
  interface TaxId {
4115
4117
  /**
4116
- * 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_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`
4118
+ * 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`
4117
4119
  */
4118
4120
  type: TaxId.Type;
4119
4121
 
@@ -4141,6 +4143,7 @@ declare module 'stripe' {
4141
4143
  | 'ca_pst_mb'
4142
4144
  | 'ca_pst_sk'
4143
4145
  | 'ca_qst'
4146
+ | 'ch_uid'
4144
4147
  | 'ch_vat'
4145
4148
  | 'cl_tin'
4146
4149
  | 'cn_tin'
@@ -66,6 +66,16 @@ declare module 'stripe' {
66
66
  */
67
67
  currency: string;
68
68
 
69
+ /**
70
+ * Fleet-specific information for authorizations using Fleet cards.
71
+ */
72
+ fleet: Authorization.Fleet | null;
73
+
74
+ /**
75
+ * Information about fuel that was purchased with this transaction. Typically this information is received from the merchant after the authorization has been approved and the fuel dispensed.
76
+ */
77
+ fuel: Authorization.Fuel | null;
78
+
69
79
  /**
70
80
  * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
71
81
  */
@@ -151,6 +161,164 @@ declare module 'stripe' {
151
161
  | 'online'
152
162
  | 'swipe';
153
163
 
164
+ interface Fleet {
165
+ /**
166
+ * Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
167
+ */
168
+ cardholder_prompt_data: Fleet.CardholderPromptData | null;
169
+
170
+ /**
171
+ * The type of purchase.
172
+ */
173
+ purchase_type: Fleet.PurchaseType | null;
174
+
175
+ /**
176
+ * More information about the total amount. Typically this information is received from the merchant after the authorization has been approved and the fuel dispensed. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
177
+ */
178
+ reported_breakdown: Fleet.ReportedBreakdown | null;
179
+
180
+ /**
181
+ * The type of fuel service.
182
+ */
183
+ service_type: Fleet.ServiceType | null;
184
+ }
185
+
186
+ namespace Fleet {
187
+ interface CardholderPromptData {
188
+ /**
189
+ * [Deprecated] An alphanumeric ID, though typical point of sales only support numeric entry. The card program can be configured to prompt for a vehicle ID, driver ID, or generic ID.
190
+ * @deprecated
191
+ */
192
+ alphanumeric_id: string | null;
193
+
194
+ /**
195
+ * Driver ID.
196
+ */
197
+ driver_id: string | null;
198
+
199
+ /**
200
+ * Odometer reading.
201
+ */
202
+ odometer: number | null;
203
+
204
+ /**
205
+ * An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type.
206
+ */
207
+ unspecified_id: string | null;
208
+
209
+ /**
210
+ * User ID.
211
+ */
212
+ user_id: string | null;
213
+
214
+ /**
215
+ * Vehicle number.
216
+ */
217
+ vehicle_number: string | null;
218
+ }
219
+
220
+ type PurchaseType =
221
+ | 'fuel_and_non_fuel_purchase'
222
+ | 'fuel_purchase'
223
+ | 'non_fuel_purchase';
224
+
225
+ interface ReportedBreakdown {
226
+ /**
227
+ * Breakdown of fuel portion of the purchase.
228
+ */
229
+ fuel: ReportedBreakdown.Fuel | null;
230
+
231
+ /**
232
+ * Breakdown of non-fuel portion of the purchase.
233
+ */
234
+ non_fuel: ReportedBreakdown.NonFuel | null;
235
+
236
+ /**
237
+ * Information about tax included in this transaction.
238
+ */
239
+ tax: ReportedBreakdown.Tax | null;
240
+ }
241
+
242
+ namespace ReportedBreakdown {
243
+ interface Fuel {
244
+ /**
245
+ * Gross fuel amount that should equal Fuel Quantity multiplied by Fuel Unit Cost, inclusive of taxes.
246
+ */
247
+ gross_amount_decimal: string | null;
248
+ }
249
+
250
+ interface NonFuel {
251
+ /**
252
+ * Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
253
+ */
254
+ gross_amount_decimal: string | null;
255
+ }
256
+
257
+ interface Tax {
258
+ /**
259
+ * Amount of state or provincial Sales Tax included in the transaction amount. `null` if not reported by merchant or not subject to tax.
260
+ */
261
+ local_amount_decimal: string | null;
262
+
263
+ /**
264
+ * Amount of national Sales Tax or VAT included in the transaction amount. `null` if not reported by merchant or not subject to tax.
265
+ */
266
+ national_amount_decimal: string | null;
267
+ }
268
+ }
269
+
270
+ type ServiceType =
271
+ | 'full_service'
272
+ | 'non_fuel_transaction'
273
+ | 'self_service';
274
+ }
275
+
276
+ interface Fuel {
277
+ /**
278
+ * [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
279
+ */
280
+ industry_product_code: string | null;
281
+
282
+ /**
283
+ * The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
284
+ */
285
+ quantity_decimal: string | null;
286
+
287
+ /**
288
+ * The type of fuel that was purchased.
289
+ */
290
+ type: Fuel.Type | null;
291
+
292
+ /**
293
+ * The units for `quantity_decimal`.
294
+ */
295
+ unit: Fuel.Unit | null;
296
+
297
+ /**
298
+ * The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
299
+ */
300
+ unit_cost_decimal: string | null;
301
+ }
302
+
303
+ namespace Fuel {
304
+ type Type =
305
+ | 'diesel'
306
+ | 'other'
307
+ | 'unleaded_plus'
308
+ | 'unleaded_regular'
309
+ | 'unleaded_super';
310
+
311
+ type Unit =
312
+ | 'charging_minute'
313
+ | 'imperial_gallon'
314
+ | 'kilogram'
315
+ | 'kilowatt_hour'
316
+ | 'liter'
317
+ | 'other'
318
+ | 'pound'
319
+ | 'us_gallon';
320
+ }
321
+
154
322
  interface MerchantData {
155
323
  /**
156
324
  * A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values.
@@ -349,11 +517,16 @@ declare module 'stripe' {
349
517
  type Reason =
350
518
  | 'account_disabled'
351
519
  | 'card_active'
520
+ | 'card_canceled'
521
+ | 'card_expired'
352
522
  | 'card_inactive'
523
+ | 'cardholder_blocked'
353
524
  | 'cardholder_inactive'
354
525
  | 'cardholder_verification_required'
526
+ | 'insecure_authorization_method'
355
527
  | 'insufficient_funds'
356
528
  | 'not_allowed'
529
+ | 'pin_blocked'
357
530
  | 'spending_controls'
358
531
  | 'suspected_fraud'
359
532
  | 'verification_failed'