stripe 16.9.0-beta.1 → 16.9.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/CHANGELOG.md +23 -1
  2. package/VERSION +1 -1
  3. package/cjs/apiVersion.js +1 -1
  4. package/cjs/stripe.core.js +1 -1
  5. package/cjs/utils.js +1 -3
  6. package/esm/apiVersion.js +1 -1
  7. package/esm/stripe.core.js +1 -1
  8. package/esm/utils.js +1 -3
  9. package/package.json +1 -1
  10. package/types/Accounts.d.ts +7 -0
  11. package/types/AccountsResource.d.ts +24 -0
  12. package/types/Charges.d.ts +7 -1
  13. package/types/ChargesResource.d.ts +6 -2
  14. package/types/Checkout/Sessions.d.ts +2 -1
  15. package/types/Checkout/SessionsResource.d.ts +4 -2
  16. package/types/ConfirmationTokens.d.ts +5 -0
  17. package/types/CustomerSessions.d.ts +4 -0
  18. package/types/CustomersResource.d.ts +5 -2
  19. package/types/Disputes.d.ts +1 -7
  20. package/types/Invoices.d.ts +2 -1
  21. package/types/InvoicesResource.d.ts +9 -6
  22. package/types/Orders.d.ts +2 -1
  23. package/types/OrdersResource.d.ts +4 -2
  24. package/types/PaymentIntents.d.ts +18 -1
  25. package/types/PaymentIntentsResource.d.ts +94 -4
  26. package/types/PaymentLinksResource.d.ts +8 -4
  27. package/types/PaymentMethods.d.ts +5 -0
  28. package/types/PaymentMethodsResource.d.ts +9 -0
  29. package/types/QuotePreviewInvoices.d.ts +2 -1
  30. package/types/QuotesResource.d.ts +0 -577
  31. package/types/SetupIntentsResource.d.ts +24 -0
  32. package/types/SubscriptionSchedulesResource.d.ts +2 -2
  33. package/types/SubscriptionsResource.d.ts +2 -2
  34. package/types/Tax/Calculations.d.ts +2 -1
  35. package/types/Tax/CalculationsResource.d.ts +2 -1
  36. package/types/Tax/Transactions.d.ts +2 -1
  37. package/types/TaxIds.d.ts +2 -1
  38. package/types/TaxIdsResource.d.ts +2 -1
  39. package/types/TestHelpers/ConfirmationTokensResource.d.ts +8 -0
  40. package/types/Treasury/InboundTransfers.d.ts +3 -1
  41. package/types/Treasury/OutboundPayments.d.ts +3 -1
  42. package/types/Treasury/OutboundTransfers.d.ts +3 -1
  43. package/types/Treasury/ReceivedCredits.d.ts +3 -1
  44. package/types/Treasury/TransactionEntries.d.ts +9 -3
  45. package/types/Treasury/Transactions.d.ts +9 -3
  46. package/types/Webhooks.d.ts +37 -28
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 16.9.0-beta.2 - 2024-08-22
4
+ * [#2159](https://github.com/stripe/stripe-node/pull/2159) Update generated code for beta
5
+ * Add support for `mb_way_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
6
+ * Add support for `mb_way` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
7
+ * Add support for new value `mb_way` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type`
8
+ * Add support for new value `mb_way` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
9
+ * Add support for new value `mb_way` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
10
+ * Remove support for values `accepted`, `partner_rejected`, and `submitted` from enum `Dispute.evidence_details.enhanced_eligibility.visa_compelling_evidence_3.status`
11
+ * Add support for new value `hr_oib` on enums `OrderCreateParams.tax_details.tax_ids[].type` and `OrderUpdateParams.tax_details.tax_ids[].type`
12
+ * Add support for new value `hr_oib` on enum `Order.tax_details.tax_ids[].type`
13
+ * Remove support for `phases` on `QuoteCreateParams` and `QuoteUpdateParams`
14
+ * Remove support for `from_schedule` on `QuoteCreateParams.subscription_data`
15
+
3
16
  ## 16.9.0-beta.1 - 2024-08-15
4
17
  * [#2157](https://github.com/stripe/stripe-node/pull/2157) Update generated code for beta
5
18
  * Add support for `capital_financing_application` and `capital_financing` on `AccountSessionCreateParams.components`
@@ -7,6 +20,15 @@
7
20
  * Add support for `collected_information` on `Checkout.SessionUpdateParams` and `Checkout.Session`
8
21
  * Add support for `shipping_options` on `Checkout.SessionUpdateParams`
9
22
 
23
+ ## 16.8.0 - 2024-08-15
24
+ * [#2155](https://github.com/stripe/stripe-node/pull/2155) Update generated code
25
+ * Add support for `authorization_code` on `Charge.payment_method_details.card`
26
+ * Add support for `wallet` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card_present`
27
+ * Add support for `mandate_options` on `PaymentIntent.payment_method_options.bacs_debit`, `PaymentIntentConfirmParams.payment_method_options.bacs_debit`, `PaymentIntentCreateParams.payment_method_options.bacs_debit`, and `PaymentIntentUpdateParams.payment_method_options.bacs_debit`
28
+ * Add support for `bacs_debit` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options`
29
+ * Add support for `chips` on `Treasury.OutboundPayment.tracking_details.us_domestic_wire`, `Treasury.OutboundPaymentUpdateParams.testHelpers.tracking_details.us_domestic_wire`, `Treasury.OutboundTransfer.tracking_details.us_domestic_wire`, and `Treasury.OutboundTransferUpdateParams.testHelpers.tracking_details.us_domestic_wire`
30
+ * Change type of `Treasury.OutboundPayment.tracking_details.us_domestic_wire.imad` and `Treasury.OutboundTransfer.tracking_details.us_domestic_wire.imad` from `string` to `string | null`
31
+
10
32
  ## 16.8.0-beta.1 - 2024-08-12
11
33
  * [#2148](https://github.com/stripe/stripe-node/pull/2148) Update generated code for beta
12
34
  * Add support for `capital_financing_application` and `capital_financing` on `AccountSession.components`
@@ -15,7 +37,7 @@
15
37
  * Add support for new value `custom` on enums `Checkout.Session.ui_mode` and `Checkout.SessionCreateParams.ui_mode`
16
38
  * ⚠️ Remove support for `risk_correlation_id` on `PaymentIntent.payment_method_options.rechnung`, `PaymentIntentConfirmParams.payment_method_options.rechnung`, `PaymentIntentCreateParams.payment_method_options.rechnung`, and `PaymentIntentUpdateParams.payment_method_options.rechnung`
17
39
  * Add support for new value `payto` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]`
18
- * Change `QuoteLine.cancel_subscription_schedule` to be required
40
+ * Change `QuoteLine.cancel_subscription_schedule` to be required
19
41
 
20
42
  ## 16.7.0 - 2024-08-08
21
43
  * [#2147](https://github.com/stripe/stripe-node/pull/2147) Update generated code
package/VERSION CHANGED
@@ -1 +1 @@
1
- 16.9.0-beta.1
1
+ 16.9.0-beta.2
package/cjs/apiVersion.js CHANGED
@@ -3,4 +3,4 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.PreviewVersion = exports.ApiVersion = void 0;
5
5
  exports.ApiVersion = '2024-06-20';
6
- exports.PreviewVersion = '2024-07-16.preview-v2';
6
+ exports.PreviewVersion = '2024-08-21.preview-v2';
@@ -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 = '16.9.0-beta.1';
37
+ Stripe.PACKAGE_VERSION = '16.9.0-beta.2';
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/cjs/utils.js CHANGED
@@ -256,9 +256,7 @@ exports.isObject = isObject;
256
256
  function flattenAndStringify(data) {
257
257
  const result = {};
258
258
  const step = (obj, prevKey) => {
259
- Object.keys(obj).forEach((key) => {
260
- // @ts-ignore
261
- const value = obj[key];
259
+ Object.entries(obj).forEach(([key, value]) => {
262
260
  const newKey = prevKey ? `${prevKey}[${key}]` : key;
263
261
  if (isObject(value)) {
264
262
  if (!(value instanceof Uint8Array) &&
package/esm/apiVersion.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // File generated from our OpenAPI spec
2
2
  export const ApiVersion = '2024-06-20';
3
- export const PreviewVersion = '2024-07-16.preview-v2';
3
+ export const PreviewVersion = '2024-08-21.preview-v2';
@@ -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 = '16.9.0-beta.1';
34
+ Stripe.PACKAGE_VERSION = '16.9.0-beta.2';
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/esm/utils.js CHANGED
@@ -240,9 +240,7 @@ export function isObject(obj) {
240
240
  export function flattenAndStringify(data) {
241
241
  const result = {};
242
242
  const step = (obj, prevKey) => {
243
- Object.keys(obj).forEach((key) => {
244
- // @ts-ignore
245
- const value = obj[key];
243
+ Object.entries(obj).forEach(([key, value]) => {
246
244
  const newKey = prevKey ? `${prevKey}[${key}]` : key;
247
245
  if (isObject(value)) {
248
246
  if (!(value instanceof Uint8Array) &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "16.9.0-beta.1",
3
+ "version": "16.9.0-beta.2",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -349,6 +349,11 @@ declare module 'stripe' {
349
349
  */
350
350
  link_payments?: Capabilities.LinkPayments;
351
351
 
352
+ /**
353
+ * The status of the MB WAY payments capability of the account, or whether the account can directly process MB WAY charges.
354
+ */
355
+ mb_way_payments?: Capabilities.MbWayPayments;
356
+
352
357
  /**
353
358
  * The status of the MobilePay capability of the account, or whether the account can directly process MobilePay charges.
354
359
  */
@@ -520,6 +525,8 @@ declare module 'stripe' {
520
525
 
521
526
  type LinkPayments = 'active' | 'inactive' | 'pending';
522
527
 
528
+ type MbWayPayments = 'active' | 'inactive' | 'pending';
529
+
523
530
  type MobilepayPayments = 'active' | 'inactive' | 'pending';
524
531
 
525
532
  type MultibancoPayments = 'active' | 'inactive' | 'pending';
@@ -334,6 +334,11 @@ declare module 'stripe' {
334
334
  */
335
335
  link_payments?: Capabilities.LinkPayments;
336
336
 
337
+ /**
338
+ * The mb_way_payments capability.
339
+ */
340
+ mb_way_payments?: Capabilities.MbWayPayments;
341
+
337
342
  /**
338
343
  * The mobilepay_payments capability.
339
344
  */
@@ -640,6 +645,13 @@ declare module 'stripe' {
640
645
  requested?: boolean;
641
646
  }
642
647
 
648
+ interface MbWayPayments {
649
+ /**
650
+ * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
651
+ */
652
+ requested?: boolean;
653
+ }
654
+
643
655
  interface MobilepayPayments {
644
656
  /**
645
657
  * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -2071,6 +2083,11 @@ declare module 'stripe' {
2071
2083
  */
2072
2084
  link_payments?: Capabilities.LinkPayments;
2073
2085
 
2086
+ /**
2087
+ * The mb_way_payments capability.
2088
+ */
2089
+ mb_way_payments?: Capabilities.MbWayPayments;
2090
+
2074
2091
  /**
2075
2092
  * The mobilepay_payments capability.
2076
2093
  */
@@ -2377,6 +2394,13 @@ declare module 'stripe' {
2377
2394
  requested?: boolean;
2378
2395
  }
2379
2396
 
2397
+ interface MbWayPayments {
2398
+ /**
2399
+ * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2400
+ */
2401
+ requested?: boolean;
2402
+ }
2403
+
2380
2404
  interface MobilepayPayments {
2381
2405
  /**
2382
2406
  * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -214,7 +214,9 @@ declare module 'stripe' {
214
214
  source_transfer: string | Stripe.Transfer | null;
215
215
 
216
216
  /**
217
- * For a non-card charge, text that appears on the customer's statement as the [statement descriptor](https://docs.stripe.com/get-started/account/statement-descriptors). This value overrides the account's default statement descriptor. For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
217
+ * For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
218
+ *
219
+ * For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
218
220
  */
219
221
  statement_descriptor: string | null;
220
222
 
@@ -416,6 +418,8 @@ declare module 'stripe' {
416
418
 
417
419
  link?: PaymentMethodDetails.Link;
418
420
 
421
+ mb_way?: PaymentMethodDetails.MbWay;
422
+
419
423
  mobilepay?: PaymentMethodDetails.Mobilepay;
420
424
 
421
425
  multibanco?: PaymentMethodDetails.Multibanco;
@@ -1713,6 +1717,8 @@ declare module 'stripe' {
1713
1717
  country: string | null;
1714
1718
  }
1715
1719
 
1720
+ interface MbWay {}
1721
+
1716
1722
  interface Mobilepay {
1717
1723
  /**
1718
1724
  * Internal card details
@@ -73,7 +73,9 @@ declare module 'stripe' {
73
73
  source?: string;
74
74
 
75
75
  /**
76
- * For a non-card charge, text that appears on the customer's statement as the [statement descriptor](https://docs.stripe.com/get-started/account/statement-descriptors). This value overrides the account's default statement descriptor. For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
76
+ * For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
77
+ *
78
+ * For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
77
79
  */
78
80
  statement_descriptor?: string;
79
81
 
@@ -948,7 +950,9 @@ declare module 'stripe' {
948
950
  receipt_email?: string;
949
951
 
950
952
  /**
951
- * For a non-card charge, text that appears on the customer's statement as the [statement descriptor](https://docs.stripe.com/get-started/account/statement-descriptors). This value overrides the account's default statement descriptor. For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
953
+ * For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
954
+ *
955
+ * For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
952
956
  */
953
957
  statement_descriptor?: string;
954
958
 
@@ -535,7 +535,7 @@ declare module 'stripe' {
535
535
 
536
536
  interface TaxId {
537
537
  /**
538
- * 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`
538
+ * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown`
539
539
  */
540
540
  type: TaxId.Type;
541
541
 
@@ -579,6 +579,7 @@ declare module 'stripe' {
579
579
  | 'gb_vat'
580
580
  | 'ge_vat'
581
581
  | 'hk_br'
582
+ | 'hr_oib'
582
583
  | 'hu_tin'
583
584
  | 'id_npwp'
584
585
  | 'il_vat'
@@ -905,12 +905,14 @@ declare module 'stripe' {
905
905
  shipping?: PaymentIntentData.Shipping;
906
906
 
907
907
  /**
908
- * Text that appears on the customer's statement as the [statement descriptor](https://docs.stripe.com/get-started/account/statement-descriptors) for a non-card charge. This value overrides the account's default statement descriptor. Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
908
+ * Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
909
+ *
910
+ * Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
909
911
  */
910
912
  statement_descriptor?: string;
911
913
 
912
914
  /**
913
- * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
915
+ * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
914
916
  */
915
917
  statement_descriptor_suffix?: string;
916
918
 
@@ -196,6 +196,8 @@ declare module 'stripe' {
196
196
 
197
197
  link?: PaymentMethodPreview.Link;
198
198
 
199
+ mb_way?: PaymentMethodPreview.MbWay;
200
+
199
201
  mobilepay?: PaymentMethodPreview.Mobilepay;
200
202
 
201
203
  multibanco?: PaymentMethodPreview.Multibanco;
@@ -1217,6 +1219,8 @@ declare module 'stripe' {
1217
1219
  persistent_token?: string;
1218
1220
  }
1219
1221
 
1222
+ interface MbWay {}
1223
+
1220
1224
  interface Mobilepay {}
1221
1225
 
1222
1226
  interface Multibanco {}
@@ -1413,6 +1417,7 @@ declare module 'stripe' {
1413
1417
  | 'klarna'
1414
1418
  | 'konbini'
1415
1419
  | 'link'
1420
+ | 'mb_way'
1416
1421
  | 'mobilepay'
1417
1422
  | 'multibanco'
1418
1423
  | 'oxxo'
@@ -5,6 +5,10 @@ declare module 'stripe' {
5
5
  /**
6
6
  * A Customer Session allows you to grant Stripe's frontend SDKs (like Stripe.js) client-side access
7
7
  * control over a Customer.
8
+ *
9
+ * Related guides: [Customer Session with the Payment Element](https://stripe.com/payments/accept-a-payment-deferred?platform=web&type=payment#save-payment-methods),
10
+ * [Customer Session with the Pricing Table](https://stripe.com/payments/checkout/pricing-table#customer-session),
11
+ * [Customer Session with the Buy Button](https://stripe.com/payment-links/buy-button#pass-an-existing-customer).
8
12
  */
9
13
  interface CustomerSession {
10
14
  /**
@@ -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_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`
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`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
219
219
  */
220
220
  type: TaxIdDatum.Type;
221
221
 
@@ -259,6 +259,7 @@ declare module 'stripe' {
259
259
  | 'gb_vat'
260
260
  | 'ge_vat'
261
261
  | 'hk_br'
262
+ | 'hr_oib'
262
263
  | 'hu_tin'
263
264
  | 'id_npwp'
264
265
  | 'il_vat'
@@ -652,7 +653,7 @@ declare module 'stripe' {
652
653
 
653
654
  interface CustomerCreateTaxIdParams {
654
655
  /**
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`
656
+ * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
656
657
  */
657
658
  type: CustomerCreateTaxIdParams.Type;
658
659
 
@@ -701,6 +702,7 @@ declare module 'stripe' {
701
702
  | 'gb_vat'
702
703
  | 'ge_vat'
703
704
  | 'hk_br'
705
+ | 'hr_oib'
704
706
  | 'hu_tin'
705
707
  | 'id_npwp'
706
708
  | 'il_vat'
@@ -812,6 +814,7 @@ declare module 'stripe' {
812
814
  | 'klarna'
813
815
  | 'konbini'
814
816
  | 'link'
817
+ | 'mb_way'
815
818
  | 'mobilepay'
816
819
  | 'multibanco'
817
820
  | 'oxxo'
@@ -394,13 +394,7 @@ declare module 'stripe' {
394
394
  | 'missing_prior_undisputed_transaction_description'
395
395
  | 'missing_prior_undisputed_transactions';
396
396
 
397
- type Status =
398
- | 'accepted'
399
- | 'not_qualified'
400
- | 'partner_rejected'
401
- | 'qualified'
402
- | 'requires_action'
403
- | 'submitted';
397
+ type Status = 'not_qualified' | 'qualified' | 'requires_action';
404
398
  }
405
399
  }
406
400
  }
@@ -617,7 +617,7 @@ declare module 'stripe' {
617
617
 
618
618
  interface CustomerTaxId {
619
619
  /**
620
- * 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`
620
+ * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown`
621
621
  */
622
622
  type: CustomerTaxId.Type;
623
623
 
@@ -661,6 +661,7 @@ declare module 'stripe' {
661
661
  | 'gb_vat'
662
662
  | 'ge_vat'
663
663
  | 'hk_br'
664
+ | 'hr_oib'
664
665
  | 'hu_tin'
665
666
  | 'id_npwp'
666
667
  | 'il_vat'
@@ -2172,7 +2172,7 @@ declare module 'stripe' {
2172
2172
 
2173
2173
  interface TaxId {
2174
2174
  /**
2175
- * 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`
2175
+ * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
2176
2176
  */
2177
2177
  type: TaxId.Type;
2178
2178
 
@@ -2216,6 +2216,7 @@ declare module 'stripe' {
2216
2216
  | 'gb_vat'
2217
2217
  | 'ge_vat'
2218
2218
  | 'hk_br'
2219
+ | 'hr_oib'
2219
2220
  | 'hu_tin'
2220
2221
  | 'id_npwp'
2221
2222
  | 'il_vat'
@@ -3400,7 +3401,7 @@ declare module 'stripe' {
3400
3401
  tax_behavior?: PriceData.TaxBehavior;
3401
3402
 
3402
3403
  /**
3403
- * A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
3404
+ * A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge or a negative integer representing the amount to credit to the customer.
3404
3405
  */
3405
3406
  unit_amount?: number;
3406
3407
 
@@ -4385,7 +4386,7 @@ declare module 'stripe' {
4385
4386
 
4386
4387
  interface TaxId {
4387
4388
  /**
4388
- * 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`
4389
+ * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
4389
4390
  */
4390
4391
  type: TaxId.Type;
4391
4392
 
@@ -4429,6 +4430,7 @@ declare module 'stripe' {
4429
4430
  | 'gb_vat'
4430
4431
  | 'ge_vat'
4431
4432
  | 'hk_br'
4433
+ | 'hr_oib'
4432
4434
  | 'hu_tin'
4433
4435
  | 'id_npwp'
4434
4436
  | 'il_vat'
@@ -5613,7 +5615,7 @@ declare module 'stripe' {
5613
5615
  tax_behavior?: PriceData.TaxBehavior;
5614
5616
 
5615
5617
  /**
5616
- * A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
5618
+ * A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge or a negative integer representing the amount to credit to the customer.
5617
5619
  */
5618
5620
  unit_amount?: number;
5619
5621
 
@@ -6857,7 +6859,7 @@ declare module 'stripe' {
6857
6859
 
6858
6860
  interface TaxId {
6859
6861
  /**
6860
- * 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`
6862
+ * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
6861
6863
  */
6862
6864
  type: TaxId.Type;
6863
6865
 
@@ -6901,6 +6903,7 @@ declare module 'stripe' {
6901
6903
  | 'gb_vat'
6902
6904
  | 'ge_vat'
6903
6905
  | 'hk_br'
6906
+ | 'hr_oib'
6904
6907
  | 'hu_tin'
6905
6908
  | 'id_npwp'
6906
6909
  | 'il_vat'
@@ -8085,7 +8088,7 @@ declare module 'stripe' {
8085
8088
  tax_behavior?: PriceData.TaxBehavior;
8086
8089
 
8087
8090
  /**
8088
- * A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
8091
+ * A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge or a negative integer representing the amount to credit to the customer.
8089
8092
  */
8090
8093
  unit_amount?: number;
8091
8094
 
package/types/Orders.d.ts CHANGED
@@ -895,7 +895,7 @@ declare module 'stripe' {
895
895
 
896
896
  interface TaxId {
897
897
  /**
898
- * 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`
898
+ * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown`
899
899
  */
900
900
  type: TaxId.Type;
901
901
 
@@ -939,6 +939,7 @@ declare module 'stripe' {
939
939
  | 'gb_vat'
940
940
  | 'ge_vat'
941
941
  | 'hk_br'
942
+ | 'hr_oib'
942
943
  | 'hu_tin'
943
944
  | 'id_npwp'
944
945
  | 'il_vat'
@@ -1217,7 +1217,7 @@ declare module 'stripe' {
1217
1217
 
1218
1218
  interface TaxId {
1219
1219
  /**
1220
- * 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`
1220
+ * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
1221
1221
  */
1222
1222
  type: TaxId.Type;
1223
1223
 
@@ -1261,6 +1261,7 @@ declare module 'stripe' {
1261
1261
  | 'gb_vat'
1262
1262
  | 'ge_vat'
1263
1263
  | 'hk_br'
1264
+ | 'hr_oib'
1264
1265
  | 'hu_tin'
1265
1266
  | 'id_npwp'
1266
1267
  | 'il_vat'
@@ -2537,7 +2538,7 @@ declare module 'stripe' {
2537
2538
 
2538
2539
  interface TaxId {
2539
2540
  /**
2540
- * 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`
2541
+ * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
2541
2542
  */
2542
2543
  type: TaxId.Type;
2543
2544
 
@@ -2581,6 +2582,7 @@ declare module 'stripe' {
2581
2582
  | 'gb_vat'
2582
2583
  | 'ge_vat'
2583
2584
  | 'hk_br'
2585
+ | 'hr_oib'
2584
2586
  | 'hu_tin'
2585
2587
  | 'id_npwp'
2586
2588
  | 'il_vat'
@@ -216,7 +216,9 @@ declare module 'stripe' {
216
216
  | null;
217
217
 
218
218
  /**
219
- * Text that appears on the customer's statement as the [statement descriptor](https://docs.stripe.com/get-started/account/statement-descriptors) for a non-card charge. This value overrides the account's default statement descriptor. Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
219
+ * Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
220
+ *
221
+ * Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
220
222
  */
221
223
  statement_descriptor: string | null;
222
224
 
@@ -1637,6 +1639,8 @@ declare module 'stripe' {
1637
1639
 
1638
1640
  link?: PaymentMethodOptions.Link;
1639
1641
 
1642
+ mb_way?: PaymentMethodOptions.MbWay;
1643
+
1640
1644
  mobilepay?: PaymentMethodOptions.Mobilepay;
1641
1645
 
1642
1646
  multibanco?: PaymentMethodOptions.Multibanco;
@@ -2446,6 +2450,19 @@ declare module 'stripe' {
2446
2450
  type SetupFutureUsage = 'none' | 'off_session';
2447
2451
  }
2448
2452
 
2453
+ interface MbWay {
2454
+ /**
2455
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2456
+ *
2457
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2458
+ *
2459
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2460
+ *
2461
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
2462
+ */
2463
+ setup_future_usage?: 'none';
2464
+ }
2465
+
2449
2466
  interface Mobilepay {
2450
2467
  /**
2451
2468
  * Controls when the funds will be captured from the customer's account.