stripe 18.1.0-beta.2 → 18.1.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 (53) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/resources/FxQuotes.js +15 -0
  5. package/cjs/resources/Invoices.js +0 -13
  6. package/cjs/resources/PaymentIntents.js +5 -0
  7. package/cjs/resources.js +4 -2
  8. package/cjs/stripe.core.js +1 -1
  9. package/esm/resources/FxQuotes.js +12 -0
  10. package/esm/resources/Invoices.js +0 -13
  11. package/esm/resources/PaymentIntents.js +5 -0
  12. package/esm/resources.js +1 -0
  13. package/esm/stripe.core.js +1 -1
  14. package/package.json +1 -1
  15. package/types/Accounts.d.ts +19 -0
  16. package/types/AccountsResource.d.ts +212 -0
  17. package/types/BalanceSettings.d.ts +5 -1
  18. package/types/Capital/FinancingOffers.d.ts +4 -4
  19. package/types/Capital/FinancingSummary.d.ts +6 -6
  20. package/types/Charges.d.ts +5 -0
  21. package/types/ChargesResource.d.ts +20 -0
  22. package/types/Checkout/SessionsResource.d.ts +93 -4
  23. package/types/ConfirmationTokens.d.ts +5 -0
  24. package/types/Coupons.d.ts +33 -0
  25. package/types/CouponsResource.d.ts +21 -0
  26. package/types/EventTypes.d.ts +17 -0
  27. package/types/Events.d.ts +1 -0
  28. package/types/FxQuotes.d.ts +153 -0
  29. package/types/FxQuotesResource.d.ts +130 -0
  30. package/types/Invoices.d.ts +1 -0
  31. package/types/InvoicesResource.d.ts +2 -76
  32. package/types/PaymentIntentAmountDetailsLineItems.d.ts +110 -0
  33. package/types/PaymentIntents.d.ts +53 -0
  34. package/types/PaymentIntentsResource.d.ts +91 -0
  35. package/types/PaymentMethodConfigurations.d.ts +36 -0
  36. package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
  37. package/types/PaymentMethods.d.ts +5 -0
  38. package/types/PaymentMethodsResource.d.ts +10 -0
  39. package/types/Persons.d.ts +88 -1
  40. package/types/QuotePreviewInvoices.d.ts +1 -0
  41. package/types/Refunds.d.ts +10 -0
  42. package/types/SetupIntentsResource.d.ts +15 -0
  43. package/types/Subscriptions.d.ts +1 -0
  44. package/types/SubscriptionsResource.d.ts +2 -0
  45. package/types/Tax/Registrations.d.ts +72 -0
  46. package/types/Tax/RegistrationsResource.d.ts +96 -0
  47. package/types/TestHelpers/ConfirmationTokensResource.d.ts +5 -0
  48. package/types/TokensResource.d.ts +106 -0
  49. package/types/Transfers.d.ts +5 -0
  50. package/types/TransfersResource.d.ts +5 -0
  51. package/types/Treasury/OutboundPaymentsResource.d.ts +5 -0
  52. package/types/WebhookEndpointsResource.d.ts +2 -0
  53. package/types/index.d.ts +4 -0
@@ -602,6 +602,7 @@ declare module 'stripe' {
602
602
  | 'ach_credit_transfer'
603
603
  | 'ach_debit'
604
604
  | 'acss_debit'
605
+ | 'affirm'
605
606
  | 'amazon_pay'
606
607
  | 'au_becs_debit'
607
608
  | 'bacs_debit'
@@ -1415,6 +1416,7 @@ declare module 'stripe' {
1415
1416
  | 'ach_credit_transfer'
1416
1417
  | 'ach_debit'
1417
1418
  | 'acss_debit'
1419
+ | 'affirm'
1418
1420
  | 'amazon_pay'
1419
1421
  | 'au_becs_debit'
1420
1422
  | 'bacs_debit'
@@ -2118,23 +2120,6 @@ declare module 'stripe' {
2118
2120
  }
2119
2121
  }
2120
2122
 
2121
- interface InvoiceAttachPaymentIntentParams {
2122
- /**
2123
- * The ID of the PaymentIntent to attach to the invoice.
2124
- */
2125
- payment_intent: string;
2126
-
2127
- /**
2128
- * The portion of the PaymentIntent's `amount` that should be applied to thisinvoice. Defaults to the entire amount.
2129
- */
2130
- amount_requested?: number;
2131
-
2132
- /**
2133
- * Specifies which fields in the response should be expanded.
2134
- */
2135
- expand?: Array<string>;
2136
- }
2137
-
2138
2123
  interface InvoiceCreatePreviewParams {
2139
2124
  /**
2140
2125
  * Settings for automatic tax lookup for this invoice preview.
@@ -4251,13 +4236,6 @@ declare module 'stripe' {
4251
4236
  expand?: Array<string>;
4252
4237
  }
4253
4238
 
4254
- interface InvoiceListPaymentsParams extends PaginationParams {
4255
- /**
4256
- * Specifies which fields in the response should be expanded.
4257
- */
4258
- expand?: Array<string>;
4259
- }
4260
-
4261
4239
  interface InvoiceMarkUncollectibleParams {
4262
4240
  /**
4263
4241
  * Specifies which fields in the response should be expanded.
@@ -4341,13 +4319,6 @@ declare module 'stripe' {
4341
4319
  }
4342
4320
  }
4343
4321
 
4344
- interface InvoiceRetrievePaymentParams {
4345
- /**
4346
- * Specifies which fields in the response should be expanded.
4347
- */
4348
- expand?: Array<string>;
4349
- }
4350
-
4351
4322
  interface InvoiceSearchParams {
4352
4323
  /**
4353
4324
  * The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for invoices](https://stripe.com/docs/search#query-fields-for-invoices).
@@ -5158,23 +5129,6 @@ declare module 'stripe' {
5158
5129
  options?: RequestOptions
5159
5130
  ): Promise<Stripe.Response<Stripe.Invoice>>;
5160
5131
 
5161
- /**
5162
- * Attaches a PaymentIntent to the invoice, adding it to the list of payments.
5163
- * When the PaymentIntent's status changes to succeeded, the payment is credited
5164
- * to the invoice, increasing its amount_paid. When the invoice is fully paid, the
5165
- * invoice's status becomes paid.
5166
- *
5167
- * If the PaymentIntent's status is already succeeded when it is attached, it is
5168
- * credited to the invoice immediately.
5169
- *
5170
- * Related guide: [Create an invoice payment](https://stripe.com/docs/invoicing/payments/create)
5171
- */
5172
- attachPaymentIntent(
5173
- id: string,
5174
- params: InvoiceAttachPaymentIntentParams,
5175
- options?: RequestOptions
5176
- ): Promise<Stripe.Response<Stripe.Invoice>>;
5177
-
5178
5132
  /**
5179
5133
  * At any time, you can preview the upcoming invoice for a subscription or subscription schedule. This will show you all the charges that are pending, including subscription renewal charges, invoice item charges, etc. It will also show you any discounts that are applicable to the invoice.
5180
5134
  *
@@ -5218,19 +5172,6 @@ declare module 'stripe' {
5218
5172
  options?: RequestOptions
5219
5173
  ): ApiListPromise<Stripe.InvoiceLineItem>;
5220
5174
 
5221
- /**
5222
- * When retrieving an invoice, there is an includable payments property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of payments.
5223
- */
5224
- listPayments(
5225
- id: string,
5226
- params?: InvoiceListPaymentsParams,
5227
- options?: RequestOptions
5228
- ): ApiListPromise<Stripe.InvoicePayment>;
5229
- listPayments(
5230
- id: string,
5231
- options?: RequestOptions
5232
- ): ApiListPromise<Stripe.InvoicePayment>;
5233
-
5234
5175
  /**
5235
5176
  * Marking an invoice as uncollectible is useful for keeping track of bad debts that can be written off for accounting purposes.
5236
5177
  */
@@ -5266,21 +5207,6 @@ declare module 'stripe' {
5266
5207
  options?: RequestOptions
5267
5208
  ): Promise<Stripe.Response<Stripe.Invoice>>;
5268
5209
 
5269
- /**
5270
- * Retrieves the invoice payment with the given ID.
5271
- */
5272
- retrievePayment(
5273
- invoiceId: string,
5274
- id: string,
5275
- params?: InvoiceRetrievePaymentParams,
5276
- options?: RequestOptions
5277
- ): Promise<Stripe.Response<Stripe.InvoicePayment>>;
5278
- retrievePayment(
5279
- invoiceId: string,
5280
- id: string,
5281
- options?: RequestOptions
5282
- ): Promise<Stripe.Response<Stripe.InvoicePayment>>;
5283
-
5284
5210
  /**
5285
5211
  * Search for invoices you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
5286
5212
  * Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
@@ -0,0 +1,110 @@
1
+ // File generated from our OpenAPI spec
2
+
3
+ declare module 'stripe' {
4
+ namespace Stripe {
5
+ /**
6
+ * The PaymentIntentAmountDetailsLineItem object.
7
+ */
8
+ interface PaymentIntentAmountDetailsLineItem {
9
+ /**
10
+ * Unique identifier for the object.
11
+ */
12
+ id: string;
13
+
14
+ /**
15
+ * String representing the object's type. Objects of the same type share the same value.
16
+ */
17
+ object: 'payment_intent_amount_details_line_item';
18
+
19
+ /**
20
+ * The amount an item was discounted for. Positive integer.
21
+ */
22
+ discount_amount: number | null;
23
+
24
+ /**
25
+ * Payment method-specific information for line items.
26
+ */
27
+ payment_method_options: PaymentIntentAmountDetailsLineItem.PaymentMethodOptions | null;
28
+
29
+ /**
30
+ * Unique identifier of the product. At most 12 characters long.
31
+ */
32
+ product_code: string | null;
33
+
34
+ /**
35
+ * Name of the product. At most 100 characters long.
36
+ */
37
+ product_name: string;
38
+
39
+ /**
40
+ * Number of items of the product. Positive integer.
41
+ */
42
+ quantity: number;
43
+
44
+ /**
45
+ * Contains information about the tax on the item.
46
+ */
47
+ tax: PaymentIntentAmountDetailsLineItem.Tax | null;
48
+
49
+ /**
50
+ * Cost of the product. Non-negative integer.
51
+ */
52
+ unit_cost: number;
53
+
54
+ /**
55
+ * A unit of measure for the line item, such as gallons, feet, meters, etc.
56
+ */
57
+ unit_of_measure: string | null;
58
+ }
59
+
60
+ namespace PaymentIntentAmountDetailsLineItem {
61
+ interface PaymentMethodOptions {
62
+ card?: PaymentMethodOptions.Card;
63
+
64
+ klarna?: PaymentMethodOptions.Klarna;
65
+
66
+ paypal?: PaymentMethodOptions.Paypal;
67
+ }
68
+
69
+ namespace PaymentMethodOptions {
70
+ interface Card {
71
+ commodity_code: string | null;
72
+ }
73
+
74
+ interface Klarna {
75
+ image_url: string | null;
76
+
77
+ product_url: string | null;
78
+ }
79
+
80
+ interface Paypal {
81
+ /**
82
+ * Type of the line item.
83
+ */
84
+ category?: Paypal.Category;
85
+
86
+ /**
87
+ * Description of the line item.
88
+ */
89
+ description?: string;
90
+
91
+ /**
92
+ * The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers).
93
+ */
94
+ sold_by?: string;
95
+ }
96
+
97
+ namespace Paypal {
98
+ type Category = 'digital_goods' | 'donation' | 'physical_goods';
99
+ }
100
+ }
101
+
102
+ interface Tax {
103
+ /**
104
+ * Total portion of the amount that is for tax.
105
+ */
106
+ total_tax_amount: number;
107
+ }
108
+ }
109
+ }
110
+ }
@@ -122,6 +122,11 @@ declare module 'stripe' {
122
122
  */
123
123
  description: string | null;
124
124
 
125
+ /**
126
+ * The FX Quote used for the PaymentIntent.
127
+ */
128
+ fx_quote?: string | null;
129
+
125
130
  /**
126
131
  * The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
127
132
  */
@@ -251,10 +256,48 @@ declare module 'stripe' {
251
256
 
252
257
  namespace PaymentIntent {
253
258
  interface AmountDetails {
259
+ /**
260
+ * The amount an item was discounted for.
261
+ */
262
+ discount_amount?: number;
263
+
264
+ /**
265
+ * A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
266
+ */
267
+ line_items?: ApiList<Stripe.PaymentIntentAmountDetailsLineItem>;
268
+
269
+ shipping?: AmountDetails.Shipping;
270
+
271
+ tax?: AmountDetails.Tax;
272
+
254
273
  tip?: AmountDetails.Tip;
255
274
  }
256
275
 
257
276
  namespace AmountDetails {
277
+ interface Shipping {
278
+ /**
279
+ * Portion of the amount that is for shipping.
280
+ */
281
+ amount: number | null;
282
+
283
+ /**
284
+ * The postal code that represents the shipping source.
285
+ */
286
+ from_postal_code: string | null;
287
+
288
+ /**
289
+ * The postal code that represents the shipping destination.
290
+ */
291
+ to_postal_code: string | null;
292
+ }
293
+
294
+ interface Tax {
295
+ /**
296
+ * Total portion of the amount that is for tax.
297
+ */
298
+ total_tax_amount: number | null;
299
+ }
300
+
258
301
  interface Tip {
259
302
  /**
260
303
  * Portion of the amount that corresponds to a tip.
@@ -1378,8 +1421,18 @@ declare module 'stripe' {
1378
1421
  interface PaymentDetails {
1379
1422
  car_rental?: PaymentDetails.CarRental;
1380
1423
 
1424
+ /**
1425
+ * Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
1426
+ */
1427
+ customer_reference?: string | null;
1428
+
1381
1429
  event_details?: PaymentDetails.EventDetails;
1382
1430
 
1431
+ /**
1432
+ * A unique value assigned by the business to identify the transaction.
1433
+ */
1434
+ order_reference?: string | null;
1435
+
1383
1436
  subscription?: PaymentDetails.Subscription;
1384
1437
  }
1385
1438
 
@@ -83,6 +83,11 @@ declare module 'stripe' {
83
83
  */
84
84
  expand?: Array<string>;
85
85
 
86
+ /**
87
+ * The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
88
+ */
89
+ fx_quote?: string;
90
+
86
91
  /**
87
92
  * ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
88
93
  */
@@ -312,6 +317,11 @@ declare module 'stripe' {
312
317
  */
313
318
  car_rental?: PaymentDetails.CarRental;
314
319
 
320
+ /**
321
+ * Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
322
+ */
323
+ customer_reference?: Stripe.Emptyable<string>;
324
+
315
325
  /**
316
326
  * Event details for this PaymentIntent
317
327
  */
@@ -327,6 +337,11 @@ declare module 'stripe' {
327
337
  */
328
338
  lodging?: PaymentDetails.Lodging;
329
339
 
340
+ /**
341
+ * A unique value assigned by the business to identify the transaction.
342
+ */
343
+ order_reference?: Stripe.Emptyable<string>;
344
+
330
345
  /**
331
346
  * Subscription details for this PaymentIntent
332
347
  */
@@ -1328,6 +1343,11 @@ declare module 'stripe' {
1328
1343
  * Billing phone number (including extension).
1329
1344
  */
1330
1345
  phone?: Stripe.Emptyable<string>;
1346
+
1347
+ /**
1348
+ * Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
1349
+ */
1350
+ tax_id?: string;
1331
1351
  }
1332
1352
 
1333
1353
  interface Blik {}
@@ -4133,6 +4153,11 @@ declare module 'stripe' {
4133
4153
  */
4134
4154
  expand?: Array<string>;
4135
4155
 
4156
+ /**
4157
+ * The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
4158
+ */
4159
+ fx_quote?: string;
4160
+
4136
4161
  /**
4137
4162
  * This hash contains details about the Mandate to create.
4138
4163
  */
@@ -4291,6 +4316,11 @@ declare module 'stripe' {
4291
4316
  */
4292
4317
  car_rental?: PaymentDetails.CarRental;
4293
4318
 
4319
+ /**
4320
+ * Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
4321
+ */
4322
+ customer_reference?: Stripe.Emptyable<string>;
4323
+
4294
4324
  /**
4295
4325
  * Event details for this PaymentIntent
4296
4326
  */
@@ -4306,6 +4336,11 @@ declare module 'stripe' {
4306
4336
  */
4307
4337
  lodging?: PaymentDetails.Lodging;
4308
4338
 
4339
+ /**
4340
+ * A unique value assigned by the business to identify the transaction.
4341
+ */
4342
+ order_reference?: Stripe.Emptyable<string>;
4343
+
4309
4344
  /**
4310
4345
  * Subscription details for this PaymentIntent
4311
4346
  */
@@ -5307,6 +5342,11 @@ declare module 'stripe' {
5307
5342
  * Billing phone number (including extension).
5308
5343
  */
5309
5344
  phone?: Stripe.Emptyable<string>;
5345
+
5346
+ /**
5347
+ * Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
5348
+ */
5349
+ tax_id?: string;
5310
5350
  }
5311
5351
 
5312
5352
  interface Blik {}
@@ -8175,6 +8215,11 @@ declare module 'stripe' {
8175
8215
  */
8176
8216
  car_rental?: PaymentDetails.CarRental;
8177
8217
 
8218
+ /**
8219
+ * Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
8220
+ */
8221
+ customer_reference?: Stripe.Emptyable<string>;
8222
+
8178
8223
  /**
8179
8224
  * Event details for this PaymentIntent
8180
8225
  */
@@ -8190,6 +8235,11 @@ declare module 'stripe' {
8190
8235
  */
8191
8236
  lodging?: PaymentDetails.Lodging;
8192
8237
 
8238
+ /**
8239
+ * A unique value assigned by the business to identify the transaction.
8240
+ */
8241
+ order_reference?: Stripe.Emptyable<string>;
8242
+
8193
8243
  /**
8194
8244
  * Subscription details for this PaymentIntent
8195
8245
  */
@@ -8852,6 +8902,11 @@ declare module 'stripe' {
8852
8902
  */
8853
8903
  expand?: Array<string>;
8854
8904
 
8905
+ /**
8906
+ * The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
8907
+ */
8908
+ fx_quote?: string;
8909
+
8855
8910
  /**
8856
8911
  * ID of the mandate that's used for this payment.
8857
8912
  */
@@ -9021,6 +9076,11 @@ declare module 'stripe' {
9021
9076
  */
9022
9077
  car_rental?: PaymentDetails.CarRental;
9023
9078
 
9079
+ /**
9080
+ * Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
9081
+ */
9082
+ customer_reference?: Stripe.Emptyable<string>;
9083
+
9024
9084
  /**
9025
9085
  * Event details for this PaymentIntent
9026
9086
  */
@@ -9036,6 +9096,11 @@ declare module 'stripe' {
9036
9096
  */
9037
9097
  lodging?: PaymentDetails.Lodging;
9038
9098
 
9099
+ /**
9100
+ * A unique value assigned by the business to identify the transaction.
9101
+ */
9102
+ order_reference?: Stripe.Emptyable<string>;
9103
+
9039
9104
  /**
9040
9105
  * Subscription details for this PaymentIntent
9041
9106
  */
@@ -10037,6 +10102,11 @@ declare module 'stripe' {
10037
10102
  * Billing phone number (including extension).
10038
10103
  */
10039
10104
  phone?: Stripe.Emptyable<string>;
10105
+
10106
+ /**
10107
+ * Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
10108
+ */
10109
+ tax_id?: string;
10040
10110
  }
10041
10111
 
10042
10112
  interface Blik {}
@@ -12927,6 +12997,14 @@ declare module 'stripe' {
12927
12997
  }
12928
12998
  }
12929
12999
 
13000
+ interface PaymentIntentListAmountDetailsLineItemsParams
13001
+ extends PaginationParams {
13002
+ /**
13003
+ * Specifies which fields in the response should be expanded.
13004
+ */
13005
+ expand?: Array<string>;
13006
+ }
13007
+
12930
13008
  interface PaymentIntentSearchParams {
12931
13009
  /**
12932
13010
  * The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for payment intents](https://stripe.com/docs/search#query-fields-for-payment-intents).
@@ -13197,6 +13275,19 @@ declare module 'stripe' {
13197
13275
  options?: RequestOptions
13198
13276
  ): Promise<Stripe.Response<Stripe.PaymentIntent>>;
13199
13277
 
13278
+ /**
13279
+ * Lists all LineItems of a given PaymentIntent.
13280
+ */
13281
+ listAmountDetailsLineItems(
13282
+ id: string,
13283
+ params?: PaymentIntentListAmountDetailsLineItemsParams,
13284
+ options?: RequestOptions
13285
+ ): ApiListPromise<Stripe.PaymentIntentAmountDetailsLineItem>;
13286
+ listAmountDetailsLineItems(
13287
+ id: string,
13288
+ options?: RequestOptions
13289
+ ): ApiListPromise<Stripe.PaymentIntentAmountDetailsLineItem>;
13290
+
13200
13291
  /**
13201
13292
  * Search for PaymentIntents you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
13202
13293
  * Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
@@ -135,6 +135,8 @@ declare module 'stripe' {
135
135
 
136
136
  payto?: PaymentMethodConfiguration.Payto;
137
137
 
138
+ pix?: PaymentMethodConfiguration.Pix;
139
+
138
140
  promptpay?: PaymentMethodConfiguration.Promptpay;
139
141
 
140
142
  qris?: PaymentMethodConfiguration.Qris;
@@ -1453,6 +1455,40 @@ declare module 'stripe' {
1453
1455
  }
1454
1456
  }
1455
1457
 
1458
+ interface Pix {
1459
+ /**
1460
+ * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
1461
+ */
1462
+ available: boolean;
1463
+
1464
+ display_preference: Pix.DisplayPreference;
1465
+ }
1466
+
1467
+ namespace Pix {
1468
+ interface DisplayPreference {
1469
+ /**
1470
+ * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1471
+ */
1472
+ overridable: boolean | null;
1473
+
1474
+ /**
1475
+ * The account's display preference.
1476
+ */
1477
+ preference: DisplayPreference.Preference;
1478
+
1479
+ /**
1480
+ * The effective display preference value.
1481
+ */
1482
+ value: DisplayPreference.Value;
1483
+ }
1484
+
1485
+ namespace DisplayPreference {
1486
+ type Preference = 'none' | 'off' | 'on';
1487
+
1488
+ type Value = 'off' | 'on';
1489
+ }
1490
+ }
1491
+
1456
1492
  interface Promptpay {
1457
1493
  /**
1458
1494
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -213,6 +213,11 @@ declare module 'stripe' {
213
213
  */
214
214
  payto?: PaymentMethodConfigurationCreateParams.Payto;
215
215
 
216
+ /**
217
+ * Pix is a payment method popular in Brazil. When paying with Pix, customers authenticate and approve payments by scanning a QR code in their preferred banking app. Check this [page](https://docs.stripe.com/payments/pix) for more details.
218
+ */
219
+ pix?: PaymentMethodConfigurationCreateParams.Pix;
220
+
216
221
  /**
217
222
  * PromptPay is a Thailand-based payment method that allows customers to make a payment using their preferred app from participating banks. Check this [page](https://stripe.com/docs/payments/promptpay) for more details.
218
223
  */
@@ -1055,6 +1060,26 @@ declare module 'stripe' {
1055
1060
  }
1056
1061
  }
1057
1062
 
1063
+ interface Pix {
1064
+ /**
1065
+ * Whether or not the payment method should be displayed.
1066
+ */
1067
+ display_preference?: Pix.DisplayPreference;
1068
+ }
1069
+
1070
+ namespace Pix {
1071
+ interface DisplayPreference {
1072
+ /**
1073
+ * The account's preference for whether or not to display this payment method.
1074
+ */
1075
+ preference?: DisplayPreference.Preference;
1076
+ }
1077
+
1078
+ namespace DisplayPreference {
1079
+ type Preference = 'none' | 'off' | 'on';
1080
+ }
1081
+ }
1082
+
1058
1083
  interface Promptpay {
1059
1084
  /**
1060
1085
  * Whether or not the payment method should be displayed.
@@ -1514,6 +1539,11 @@ declare module 'stripe' {
1514
1539
  */
1515
1540
  payto?: PaymentMethodConfigurationUpdateParams.Payto;
1516
1541
 
1542
+ /**
1543
+ * Pix is a payment method popular in Brazil. When paying with Pix, customers authenticate and approve payments by scanning a QR code in their preferred banking app. Check this [page](https://docs.stripe.com/payments/pix) for more details.
1544
+ */
1545
+ pix?: PaymentMethodConfigurationUpdateParams.Pix;
1546
+
1517
1547
  /**
1518
1548
  * PromptPay is a Thailand-based payment method that allows customers to make a payment using their preferred app from participating banks. Check this [page](https://stripe.com/docs/payments/promptpay) for more details.
1519
1549
  */
@@ -2356,6 +2386,26 @@ declare module 'stripe' {
2356
2386
  }
2357
2387
  }
2358
2388
 
2389
+ interface Pix {
2390
+ /**
2391
+ * Whether or not the payment method should be displayed.
2392
+ */
2393
+ display_preference?: Pix.DisplayPreference;
2394
+ }
2395
+
2396
+ namespace Pix {
2397
+ interface DisplayPreference {
2398
+ /**
2399
+ * The account's preference for whether or not to display this payment method.
2400
+ */
2401
+ preference?: DisplayPreference.Preference;
2402
+ }
2403
+
2404
+ namespace DisplayPreference {
2405
+ type Preference = 'none' | 'off' | 'on';
2406
+ }
2407
+ }
2408
+
2359
2409
  interface Promptpay {
2360
2410
  /**
2361
2411
  * Whether or not the payment method should be displayed.
@@ -272,6 +272,11 @@ declare module 'stripe' {
272
272
  * Billing phone number (including extension).
273
273
  */
274
274
  phone: string | null;
275
+
276
+ /**
277
+ * Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
278
+ */
279
+ tax_id: string | null;
275
280
  }
276
281
 
277
282
  interface Blik {}
@@ -402,6 +402,11 @@ declare module 'stripe' {
402
402
  * Billing phone number (including extension).
403
403
  */
404
404
  phone?: Stripe.Emptyable<string>;
405
+
406
+ /**
407
+ * Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
408
+ */
409
+ tax_id?: string;
405
410
  }
406
411
 
407
412
  interface Blik {}
@@ -988,6 +993,11 @@ declare module 'stripe' {
988
993
  * Billing phone number (including extension).
989
994
  */
990
995
  phone?: Stripe.Emptyable<string>;
996
+
997
+ /**
998
+ * Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
999
+ */
1000
+ tax_id?: string;
991
1001
  }
992
1002
 
993
1003
  interface Card {