stripe 17.7.0 → 18.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.
Files changed (99) hide show
  1. package/CHANGELOG.md +139 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/apiVersion.js +1 -1
  5. package/cjs/resources/InvoicePayments.js +17 -0
  6. package/cjs/resources/Invoices.js +0 -9
  7. package/cjs/resources/SubscriptionItems.js +0 -9
  8. package/cjs/resources.js +4 -2
  9. package/cjs/stripe.core.js +3 -14
  10. package/esm/apiVersion.js +1 -1
  11. package/esm/resources/InvoicePayments.js +14 -0
  12. package/esm/resources/Invoices.js +0 -9
  13. package/esm/resources/SubscriptionItems.js +0 -9
  14. package/esm/resources.js +1 -0
  15. package/esm/stripe.core.js +3 -14
  16. package/package.json +1 -1
  17. package/types/Accounts.d.ts +47 -6
  18. package/types/AccountsResource.d.ts +110 -3
  19. package/types/ApplicationFees.d.ts +1 -1
  20. package/types/BalanceTransactions.d.ts +3 -1
  21. package/types/BalanceTransactionsResource.d.ts +1 -1
  22. package/types/BankAccounts.d.ts +9 -1
  23. package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
  24. package/types/Billing/CreditGrants.d.ts +2 -2
  25. package/types/Billing/CreditGrantsResource.d.ts +2 -2
  26. package/types/Billing/Meters.d.ts +1 -1
  27. package/types/Billing/MetersResource.d.ts +2 -2
  28. package/types/Capabilities.d.ts +8 -0
  29. package/types/Cards.d.ts +1 -4
  30. package/types/Charges.d.ts +56 -5
  31. package/types/ChargesResource.d.ts +1 -1
  32. package/types/Checkout/Sessions.d.ts +77 -53
  33. package/types/Checkout/SessionsResource.d.ts +232 -15
  34. package/types/ConfirmationTokens.d.ts +50 -0
  35. package/types/CreditNoteLineItems.d.ts +24 -22
  36. package/types/CreditNotes.d.ts +39 -15
  37. package/types/CreditNotesResource.d.ts +48 -12
  38. package/types/CustomerBalanceTransactions.d.ts +8 -1
  39. package/types/Customers.d.ts +3 -3
  40. package/types/CustomersResource.d.ts +3 -14
  41. package/types/EventTypes.d.ts +138 -2
  42. package/types/Events.d.ts +9 -1
  43. package/types/Identity/VerificationSessions.d.ts +1 -1
  44. package/types/Identity/VerificationSessionsResource.d.ts +1 -1
  45. package/types/InvoiceItems.d.ts +60 -26
  46. package/types/InvoiceItemsResource.d.ts +26 -22
  47. package/types/InvoiceLineItems.d.ts +160 -70
  48. package/types/InvoicePayments.d.ts +99 -0
  49. package/types/InvoicePaymentsResource.d.ts +74 -0
  50. package/types/Invoices.d.ts +97 -83
  51. package/types/InvoicesResource.d.ts +239 -2846
  52. package/types/Issuing/Authorizations.d.ts +2 -1
  53. package/types/Issuing/AuthorizationsResource.d.ts +1 -1
  54. package/types/Mandates.d.ts +8 -0
  55. package/types/PaymentIntents.d.ts +59 -8
  56. package/types/PaymentIntentsResource.d.ts +293 -8
  57. package/types/PaymentLinks.d.ts +49 -0
  58. package/types/PaymentLinksResource.d.ts +77 -0
  59. package/types/PaymentMethodConfigurations.d.ts +108 -0
  60. package/types/PaymentMethodConfigurationsResource.d.ts +150 -0
  61. package/types/PaymentMethodDomainsResource.d.ts +6 -6
  62. package/types/PaymentMethods.d.ts +50 -0
  63. package/types/PaymentMethodsResource.d.ts +54 -16
  64. package/types/Persons.d.ts +17 -9
  65. package/types/Plans.d.ts +0 -7
  66. package/types/PlansResource.d.ts +0 -7
  67. package/types/Prices.d.ts +0 -11
  68. package/types/PricesResource.d.ts +2 -13
  69. package/types/QuotesResource.d.ts +2 -2
  70. package/types/Refunds.d.ts +18 -0
  71. package/types/Reviews.d.ts +3 -2
  72. package/types/SetupAttempts.d.ts +15 -0
  73. package/types/SetupIntents.d.ts +2 -0
  74. package/types/SetupIntentsResource.d.ts +155 -0
  75. package/types/SubscriptionItems.d.ts +9 -13
  76. package/types/SubscriptionItemsResource.d.ts +2 -94
  77. package/types/SubscriptionSchedules.d.ts +0 -51
  78. package/types/SubscriptionSchedulesResource.d.ts +4 -110
  79. package/types/Subscriptions.d.ts +3 -33
  80. package/types/SubscriptionsResource.d.ts +8 -86
  81. package/types/Tax/Calculations.d.ts +1 -1
  82. package/types/Tax/RegistrationsResource.d.ts +1 -1
  83. package/types/TaxRates.d.ts +1 -1
  84. package/types/Terminal/Configurations.d.ts +86 -3
  85. package/types/Terminal/ConfigurationsResource.d.ts +192 -2
  86. package/types/TestHelpers/ConfirmationTokensResource.d.ts +51 -0
  87. package/types/TokensResource.d.ts +6 -1
  88. package/types/Treasury/FinancialAccountsResource.d.ts +1 -1
  89. package/types/V2/Core/EventDestinationsResource.d.ts +0 -5
  90. package/types/V2/Core/EventsResource.d.ts +0 -5
  91. package/types/V2/EventDestinations.d.ts +1 -1
  92. package/types/V2/Events.d.ts +1 -1
  93. package/types/WebhookEndpointsResource.d.ts +21 -3
  94. package/types/index.d.ts +3 -3
  95. package/types/lib.d.ts +1 -1
  96. package/types/test/typescriptTest.ts +3 -6
  97. package/types/Deprecations.d.ts +0 -215
  98. package/types/UsageRecordSummaries.d.ts +0 -56
  99. package/types/UsageRecords.d.ts +0 -45
@@ -161,6 +161,8 @@ declare module 'stripe' {
161
161
 
162
162
  bancontact?: PaymentMethodPreview.Bancontact;
163
163
 
164
+ billie?: PaymentMethodPreview.Billie;
165
+
164
166
  billing_details: PaymentMethodPreview.BillingDetails;
165
167
 
166
168
  blik?: PaymentMethodPreview.Blik;
@@ -208,6 +210,8 @@ declare module 'stripe' {
208
210
 
209
211
  naver_pay?: PaymentMethodPreview.NaverPay;
210
212
 
213
+ nz_bank_account?: PaymentMethodPreview.NzBankAccount;
214
+
211
215
  oxxo?: PaymentMethodPreview.Oxxo;
212
216
 
213
217
  p24?: PaymentMethodPreview.P24;
@@ -228,6 +232,8 @@ declare module 'stripe' {
228
232
 
229
233
  samsung_pay?: PaymentMethodPreview.SamsungPay;
230
234
 
235
+ satispay?: PaymentMethodPreview.Satispay;
236
+
231
237
  sepa_debit?: PaymentMethodPreview.SepaDebit;
232
238
 
233
239
  sofort?: PaymentMethodPreview.Sofort;
@@ -324,6 +330,8 @@ declare module 'stripe' {
324
330
 
325
331
  interface Bancontact {}
326
332
 
333
+ interface Billie {}
334
+
327
335
  interface BillingDetails {
328
336
  /**
329
337
  * Billing address.
@@ -1281,6 +1289,11 @@ declare module 'stripe' {
1281
1289
  interface Multibanco {}
1282
1290
 
1283
1291
  interface NaverPay {
1292
+ /**
1293
+ * Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same.
1294
+ */
1295
+ buyer_id?: string | null;
1296
+
1284
1297
  /**
1285
1298
  * Whether to fund this transaction with Naver Pay points or a card.
1286
1299
  */
@@ -1291,6 +1304,38 @@ declare module 'stripe' {
1291
1304
  type Funding = 'card' | 'points';
1292
1305
  }
1293
1306
 
1307
+ interface NzBankAccount {
1308
+ /**
1309
+ * The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details.
1310
+ */
1311
+ account_holder_name: string | null;
1312
+
1313
+ /**
1314
+ * The numeric code for the bank account's bank.
1315
+ */
1316
+ bank_code: string;
1317
+
1318
+ /**
1319
+ * The name of the bank.
1320
+ */
1321
+ bank_name: string;
1322
+
1323
+ /**
1324
+ * The numeric code for the bank account's bank branch.
1325
+ */
1326
+ branch_code: string;
1327
+
1328
+ /**
1329
+ * Last four digits of the bank account number.
1330
+ */
1331
+ last4: string;
1332
+
1333
+ /**
1334
+ * The suffix of the bank account number.
1335
+ */
1336
+ suffix: string | null;
1337
+ }
1338
+
1294
1339
  interface Oxxo {}
1295
1340
 
1296
1341
  interface P24 {
@@ -1362,6 +1407,8 @@ declare module 'stripe' {
1362
1407
 
1363
1408
  interface SamsungPay {}
1364
1409
 
1410
+ interface Satispay {}
1411
+
1365
1412
  interface SepaDebit {
1366
1413
  /**
1367
1414
  * Bank code of bank associated with the bank account.
@@ -1429,6 +1476,7 @@ declare module 'stripe' {
1429
1476
  | 'au_becs_debit'
1430
1477
  | 'bacs_debit'
1431
1478
  | 'bancontact'
1479
+ | 'billie'
1432
1480
  | 'blik'
1433
1481
  | 'boleto'
1434
1482
  | 'card'
@@ -1449,6 +1497,7 @@ declare module 'stripe' {
1449
1497
  | 'mobilepay'
1450
1498
  | 'multibanco'
1451
1499
  | 'naver_pay'
1500
+ | 'nz_bank_account'
1452
1501
  | 'oxxo'
1453
1502
  | 'p24'
1454
1503
  | 'pay_by_bank'
@@ -1459,6 +1508,7 @@ declare module 'stripe' {
1459
1508
  | 'promptpay'
1460
1509
  | 'revolut_pay'
1461
1510
  | 'samsung_pay'
1511
+ | 'satispay'
1462
1512
  | 'sepa_debit'
1463
1513
  | 'sofort'
1464
1514
  | 'swish'
@@ -21,11 +21,6 @@ declare module 'stripe' {
21
21
  */
22
22
  amount: number;
23
23
 
24
- /**
25
- * The integer amount in cents (or local equivalent) representing the amount being credited for this line item, excluding all tax and discounts.
26
- */
27
- amount_excluding_tax: number | null;
28
-
29
24
  /**
30
25
  * Description of the item being credited.
31
26
  */
@@ -62,14 +57,14 @@ declare module 'stripe' {
62
57
  quantity: number | null;
63
58
 
64
59
  /**
65
- * The amount of tax calculated per tax rate for this line item
60
+ * The tax rates which apply to the line item.
66
61
  */
67
- tax_amounts: Array<CreditNoteLineItem.TaxAmount>;
62
+ tax_rates: Array<Stripe.TaxRate>;
68
63
 
69
64
  /**
70
- * The tax rates which apply to the line item.
65
+ * The tax information of the line item.
71
66
  */
72
- tax_rates: Array<Stripe.TaxRate>;
67
+ taxes: Array<CreditNoteLineItem.Tax> | null;
73
68
 
74
69
  /**
75
70
  * The type of the credit note line item, one of `invoice_line_item` or `custom_line_item`. When the type is `invoice_line_item` there is an additional `invoice_line_item` property on the resource the value of which is the id of the credited line item on the invoice.
@@ -85,11 +80,6 @@ declare module 'stripe' {
85
80
  * Same as `unit_amount`, but contains a decimal value with at most 12 decimal places.
86
81
  */
87
82
  unit_amount_decimal: string | null;
88
-
89
- /**
90
- * The amount in cents (or local equivalent) representing the unit amount being credited for this line item, excluding all tax and discounts.
91
- */
92
- unit_amount_excluding_tax: string | null;
93
83
  }
94
84
 
95
85
  namespace CreditNoteLineItem {
@@ -133,36 +123,42 @@ declare module 'stripe' {
133
123
  type Type = 'credit_balance_transaction' | 'discount';
134
124
  }
135
125
 
136
- interface TaxAmount {
126
+ interface Tax {
137
127
  /**
138
- * The amount, in cents (or local equivalent), of the tax.
128
+ * The amount of the tax, in cents (or local equivalent).
139
129
  */
140
130
  amount: number;
141
131
 
142
132
  /**
143
- * Whether this tax amount is inclusive or exclusive.
133
+ * Whether this tax is inclusive or exclusive.
144
134
  */
145
- inclusive: boolean;
135
+ tax_behavior: Tax.TaxBehavior;
146
136
 
147
137
  /**
148
- * The tax rate that was applied to get this tax amount.
138
+ * Additional details about the tax rate. Only present when `type` is `tax_rate_details`.
149
139
  */
150
- tax_rate: string | Stripe.TaxRate;
140
+ tax_rate_details: Tax.TaxRateDetails | null;
151
141
 
152
142
  /**
153
143
  * The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
154
144
  */
155
- taxability_reason: TaxAmount.TaxabilityReason | null;
145
+ taxability_reason: Tax.TaxabilityReason;
156
146
 
157
147
  /**
158
148
  * The amount on which tax is calculated, in cents (or local equivalent).
159
149
  */
160
150
  taxable_amount: number | null;
151
+
152
+ /**
153
+ * The type of tax information.
154
+ */
155
+ type: 'tax_rate_details';
161
156
  }
162
157
 
163
- namespace TaxAmount {
158
+ namespace Tax {
164
159
  type TaxabilityReason =
165
160
  | 'customer_exempt'
161
+ | 'not_available'
166
162
  | 'not_collecting'
167
163
  | 'not_subject_to_tax'
168
164
  | 'not_supported'
@@ -177,6 +173,12 @@ declare module 'stripe' {
177
173
  | 'standard_rated'
178
174
  | 'taxable_basis_reduced'
179
175
  | 'zero_rated';
176
+
177
+ type TaxBehavior = 'exclusive' | 'inclusive';
178
+
179
+ interface TaxRateDetails {
180
+ tax_rate: string;
181
+ }
180
182
  }
181
183
 
182
184
  type Type = 'custom_line_item' | 'invoice_line_item';
@@ -117,9 +117,9 @@ declare module 'stripe' {
117
117
  reason: CreditNote.Reason | null;
118
118
 
119
119
  /**
120
- * Refund related to this credit note.
120
+ * Refunds related to this credit note.
121
121
  */
122
- refund: string | Stripe.Refund | null;
122
+ refunds: Array<CreditNote.Refund>;
123
123
 
124
124
  /**
125
125
  * The details of the cost of shipping, including the ShippingRate applied to the invoice.
@@ -141,11 +141,6 @@ declare module 'stripe' {
141
141
  */
142
142
  subtotal_excluding_tax: number | null;
143
143
 
144
- /**
145
- * The aggregate amounts calculated per tax rate for all line items.
146
- */
147
- tax_amounts: Array<CreditNote.TaxAmount>;
148
-
149
144
  /**
150
145
  * The integer amount in cents (or local equivalent) representing the total amount of the credit note, including tax and all discount.
151
146
  */
@@ -156,6 +151,11 @@ declare module 'stripe' {
156
151
  */
157
152
  total_excluding_tax: number | null;
158
153
 
154
+ /**
155
+ * The aggregate tax information for all line items.
156
+ */
157
+ total_taxes: Array<CreditNote.TotalTax> | null;
158
+
159
159
  /**
160
160
  * Type of this credit note, one of `pre_payment` or `post_payment`. A `pre_payment` credit note means it was issued when the invoice was open. A `post_payment` credit note means it was issued when the invoice was paid.
161
161
  */
@@ -214,6 +214,18 @@ declare module 'stripe' {
214
214
  | 'order_change'
215
215
  | 'product_unsatisfactory';
216
216
 
217
+ interface Refund {
218
+ /**
219
+ * Amount of the refund that applies to this credit note, in cents (or local equivalent).
220
+ */
221
+ amount_refunded: number;
222
+
223
+ /**
224
+ * ID of the refund.
225
+ */
226
+ refund: string | Stripe.Refund;
227
+ }
228
+
217
229
  interface ShippingCost {
218
230
  /**
219
231
  * Total shipping cost before any taxes are applied.
@@ -288,36 +300,42 @@ declare module 'stripe' {
288
300
 
289
301
  type Status = 'issued' | 'void';
290
302
 
291
- interface TaxAmount {
303
+ interface TotalTax {
292
304
  /**
293
- * The amount, in cents (or local equivalent), of the tax.
305
+ * The amount of the tax, in cents (or local equivalent).
294
306
  */
295
307
  amount: number;
296
308
 
297
309
  /**
298
- * Whether this tax amount is inclusive or exclusive.
310
+ * Whether this tax is inclusive or exclusive.
299
311
  */
300
- inclusive: boolean;
312
+ tax_behavior: TotalTax.TaxBehavior;
301
313
 
302
314
  /**
303
- * The tax rate that was applied to get this tax amount.
315
+ * Additional details about the tax rate. Only present when `type` is `tax_rate_details`.
304
316
  */
305
- tax_rate: string | Stripe.TaxRate;
317
+ tax_rate_details: TotalTax.TaxRateDetails | null;
306
318
 
307
319
  /**
308
320
  * The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
309
321
  */
310
- taxability_reason: TaxAmount.TaxabilityReason | null;
322
+ taxability_reason: TotalTax.TaxabilityReason;
311
323
 
312
324
  /**
313
325
  * The amount on which tax is calculated, in cents (or local equivalent).
314
326
  */
315
327
  taxable_amount: number | null;
328
+
329
+ /**
330
+ * The type of tax information.
331
+ */
332
+ type: 'tax_rate_details';
316
333
  }
317
334
 
318
- namespace TaxAmount {
335
+ namespace TotalTax {
319
336
  type TaxabilityReason =
320
337
  | 'customer_exempt'
338
+ | 'not_available'
321
339
  | 'not_collecting'
322
340
  | 'not_subject_to_tax'
323
341
  | 'not_supported'
@@ -332,6 +350,12 @@ declare module 'stripe' {
332
350
  | 'standard_rated'
333
351
  | 'taxable_basis_reduced'
334
352
  | 'zero_rated';
353
+
354
+ type TaxBehavior = 'exclusive' | 'inclusive';
355
+
356
+ interface TaxRateDetails {
357
+ tax_rate: string;
358
+ }
335
359
  }
336
360
 
337
361
  type Type = 'post_payment' | 'pre_payment';
@@ -59,14 +59,14 @@ declare module 'stripe' {
59
59
  reason?: CreditNoteCreateParams.Reason;
60
60
 
61
61
  /**
62
- * ID of an existing refund to link this credit note to.
62
+ * The integer amount in cents (or local equivalent) representing the amount to refund. If set, a refund will be created for the charge associated with the invoice.
63
63
  */
64
- refund?: string;
64
+ refund_amount?: number;
65
65
 
66
66
  /**
67
- * The integer amount in cents (or local equivalent) representing the amount to refund. If set, a refund will be created for the charge associated with the invoice.
67
+ * Refunds to link to this credit note.
68
68
  */
69
- refund_amount?: number;
69
+ refunds?: Array<CreditNoteCreateParams.Refund>;
70
70
 
71
71
  /**
72
72
  * When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
@@ -151,6 +151,18 @@ declare module 'stripe' {
151
151
  | 'order_change'
152
152
  | 'product_unsatisfactory';
153
153
 
154
+ interface Refund {
155
+ /**
156
+ * Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
157
+ */
158
+ amount_refunded?: number;
159
+
160
+ /**
161
+ * ID of an existing refund to link this credit note to.
162
+ */
163
+ refund?: string;
164
+ }
165
+
154
166
  interface ShippingCost {
155
167
  /**
156
168
  * The ID of the shipping rate to use for this order.
@@ -269,14 +281,14 @@ declare module 'stripe' {
269
281
  reason?: CreditNoteListPreviewLineItemsParams.Reason;
270
282
 
271
283
  /**
272
- * ID of an existing refund to link this credit note to.
284
+ * The integer amount in cents (or local equivalent) representing the amount to refund. If set, a refund will be created for the charge associated with the invoice.
273
285
  */
274
- refund?: string;
286
+ refund_amount?: number;
275
287
 
276
288
  /**
277
- * The integer amount in cents (or local equivalent) representing the amount to refund. If set, a refund will be created for the charge associated with the invoice.
289
+ * Refunds to link to this credit note.
278
290
  */
279
- refund_amount?: number;
291
+ refunds?: Array<CreditNoteListPreviewLineItemsParams.Refund>;
280
292
 
281
293
  /**
282
294
  * When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
@@ -361,6 +373,18 @@ declare module 'stripe' {
361
373
  | 'order_change'
362
374
  | 'product_unsatisfactory';
363
375
 
376
+ interface Refund {
377
+ /**
378
+ * Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
379
+ */
380
+ amount_refunded?: number;
381
+
382
+ /**
383
+ * ID of an existing refund to link this credit note to.
384
+ */
385
+ refund?: string;
386
+ }
387
+
364
388
  interface ShippingCost {
365
389
  /**
366
390
  * The ID of the shipping rate to use for this order.
@@ -426,14 +450,14 @@ declare module 'stripe' {
426
450
  reason?: CreditNotePreviewParams.Reason;
427
451
 
428
452
  /**
429
- * ID of an existing refund to link this credit note to.
453
+ * The integer amount in cents (or local equivalent) representing the amount to refund. If set, a refund will be created for the charge associated with the invoice.
430
454
  */
431
- refund?: string;
455
+ refund_amount?: number;
432
456
 
433
457
  /**
434
- * The integer amount in cents (or local equivalent) representing the amount to refund. If set, a refund will be created for the charge associated with the invoice.
458
+ * Refunds to link to this credit note.
435
459
  */
436
- refund_amount?: number;
460
+ refunds?: Array<CreditNotePreviewParams.Refund>;
437
461
 
438
462
  /**
439
463
  * When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
@@ -518,6 +542,18 @@ declare module 'stripe' {
518
542
  | 'order_change'
519
543
  | 'product_unsatisfactory';
520
544
 
545
+ interface Refund {
546
+ /**
547
+ * Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
548
+ */
549
+ amount_refunded?: number;
550
+
551
+ /**
552
+ * ID of an existing refund to link this credit note to.
553
+ */
554
+ refund?: string;
555
+ }
556
+
521
557
  interface ShippingCost {
522
558
  /**
523
559
  * The ID of the shipping rate to use for this order.
@@ -26,6 +26,11 @@ declare module 'stripe' {
26
26
  */
27
27
  amount: number;
28
28
 
29
+ /**
30
+ * The ID of the checkout session (if any) that created the transaction.
31
+ */
32
+ checkout_session: string | Stripe.Checkout.Session | null;
33
+
29
34
  /**
30
35
  * Time at which the object was created. Measured in seconds since the Unix epoch.
31
36
  */
@@ -72,7 +77,7 @@ declare module 'stripe' {
72
77
  metadata: Stripe.Metadata | null;
73
78
 
74
79
  /**
75
- * Transaction type: `adjustment`, `applied_to_invoice`, `credit_note`, `initial`, `invoice_overpaid`, `invoice_too_large`, `invoice_too_small`, `unspent_receiver_credit`, or `unapplied_from_invoice`. See the [Customer Balance page](https://stripe.com/docs/billing/customer/balance#types) to learn more about transaction types.
80
+ * Transaction type: `adjustment`, `applied_to_invoice`, `credit_note`, `initial`, `invoice_overpaid`, `invoice_too_large`, `invoice_too_small`, `unspent_receiver_credit`, `unapplied_from_invoice`, `checkout_session_subscription_payment`, or `checkout_session_subscription_payment_canceled`. See the [Customer Balance page](https://stripe.com/docs/billing/customer/balance#types) to learn more about transaction types.
76
81
  */
77
82
  type: CustomerBalanceTransaction.Type;
78
83
  }
@@ -81,6 +86,8 @@ declare module 'stripe' {
81
86
  type Type =
82
87
  | 'adjustment'
83
88
  | 'applied_to_invoice'
89
+ | 'checkout_session_subscription_payment'
90
+ | 'checkout_session_subscription_payment_canceled'
84
91
  | 'credit_note'
85
92
  | 'initial'
86
93
  | 'invoice_overpaid'
@@ -240,7 +240,7 @@ declare module 'stripe' {
240
240
  ip_address: string | null;
241
241
 
242
242
  /**
243
- * The customer's location as identified by Stripe Tax.
243
+ * The identified tax location of the customer.
244
244
  */
245
245
  location: Tax.Location | null;
246
246
  }
@@ -254,7 +254,7 @@ declare module 'stripe' {
254
254
 
255
255
  interface Location {
256
256
  /**
257
- * The customer's country as identified by Stripe Tax.
257
+ * The identified tax country of the customer.
258
258
  */
259
259
  country: string;
260
260
 
@@ -264,7 +264,7 @@ declare module 'stripe' {
264
264
  source: Location.Source;
265
265
 
266
266
  /**
267
- * The customer's state, county, province, or region as identified by Stripe Tax.
267
+ * The identified tax state, county, province, or region of the customer.
268
268
  */
269
269
  state: string | null;
270
270
  }
@@ -18,8 +18,6 @@ declare module 'stripe' {
18
18
  */
19
19
  cash_balance?: CustomerCreateParams.CashBalance;
20
20
 
21
- coupon?: string;
22
-
23
21
  /**
24
22
  * An arbitrary string that you can attach to a customer object. It is displayed alongside the customer in the dashboard.
25
23
  */
@@ -72,11 +70,6 @@ declare module 'stripe' {
72
70
  */
73
71
  preferred_locales?: Array<string>;
74
72
 
75
- /**
76
- * The ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount.
77
- */
78
- promotion_code?: string;
79
-
80
73
  /**
81
74
  * The customer's shipping information. Appears on invoices emailed to this customer.
82
75
  */
@@ -358,8 +351,6 @@ declare module 'stripe' {
358
351
  */
359
352
  cash_balance?: CustomerUpdateParams.CashBalance;
360
353
 
361
- coupon?: string;
362
-
363
354
  /**
364
355
  * If you are using payment methods created via the PaymentMethods API, see the [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method) parameter.
365
356
  *
@@ -419,11 +410,6 @@ declare module 'stripe' {
419
410
  */
420
411
  preferred_locales?: Array<string>;
421
412
 
422
- /**
423
- * The ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount.
424
- */
425
- promotion_code?: string;
426
-
427
413
  /**
428
414
  * The customer's shipping information. Appears on invoices emailed to this customer.
429
415
  */
@@ -864,6 +850,7 @@ declare module 'stripe' {
864
850
  | 'au_becs_debit'
865
851
  | 'bacs_debit'
866
852
  | 'bancontact'
853
+ | 'billie'
867
854
  | 'blik'
868
855
  | 'boleto'
869
856
  | 'card'
@@ -882,6 +869,7 @@ declare module 'stripe' {
882
869
  | 'mobilepay'
883
870
  | 'multibanco'
884
871
  | 'naver_pay'
872
+ | 'nz_bank_account'
885
873
  | 'oxxo'
886
874
  | 'p24'
887
875
  | 'pay_by_bank'
@@ -892,6 +880,7 @@ declare module 'stripe' {
892
880
  | 'promptpay'
893
881
  | 'revolut_pay'
894
882
  | 'samsung_pay'
883
+ | 'satispay'
895
884
  | 'sepa_debit'
896
885
  | 'sofort'
897
886
  | 'swish'