stripe 16.2.0-beta.1 → 16.2.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 (153) hide show
  1. package/CHANGELOG.md +114 -752
  2. package/README.md +0 -33
  3. package/VERSION +1 -1
  4. package/cjs/RequestSender.js +5 -66
  5. package/cjs/StripeResource.js +1 -1
  6. package/cjs/apiVersion.js +1 -2
  7. package/cjs/multipart.js +1 -1
  8. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  9. package/cjs/resources/Invoices.js +0 -13
  10. package/cjs/resources/OAuth.js +1 -1
  11. package/cjs/resources/PaymentIntents.js +0 -4
  12. package/cjs/resources/Quotes.js +0 -32
  13. package/cjs/resources/SubscriptionSchedules.js +0 -4
  14. package/cjs/resources/Terminal/Readers.js +0 -12
  15. package/cjs/resources.js +10 -36
  16. package/cjs/stripe.core.js +3 -6
  17. package/cjs/utils.js +3 -30
  18. package/esm/RequestSender.js +6 -67
  19. package/esm/StripeResource.js +2 -2
  20. package/esm/apiVersion.js +0 -1
  21. package/esm/multipart.js +2 -2
  22. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  23. package/esm/resources/Invoices.js +0 -13
  24. package/esm/resources/OAuth.js +2 -2
  25. package/esm/resources/PaymentIntents.js +0 -4
  26. package/esm/resources/Quotes.js +0 -32
  27. package/esm/resources/SubscriptionSchedules.js +0 -4
  28. package/esm/resources/Terminal/Readers.js +0 -12
  29. package/esm/resources.js +0 -22
  30. package/esm/stripe.core.js +3 -6
  31. package/esm/utils.js +1 -27
  32. package/package.json +1 -1
  33. package/types/AccountLinksResource.d.ts +1 -5
  34. package/types/AccountSessions.d.ts +0 -15
  35. package/types/AccountSessionsResource.d.ts +0 -205
  36. package/types/Accounts.d.ts +1 -88
  37. package/types/AccountsResource.d.ts +0 -204
  38. package/types/Billing/MeterEventSummaries.d.ts +2 -2
  39. package/types/Billing/MetersResource.d.ts +2 -2
  40. package/types/Charges.d.ts +0 -67
  41. package/types/ChargesResource.d.ts +0 -1294
  42. package/types/Checkout/Sessions.d.ts +1 -23
  43. package/types/Checkout/SessionsResource.d.ts +1 -15
  44. package/types/ConfirmationTokens.d.ts +0 -83
  45. package/types/Coupons.d.ts +1 -1
  46. package/types/CouponsResource.d.ts +1 -1
  47. package/types/CreditNotes.d.ts +0 -21
  48. package/types/CreditNotesResource.d.ts +0 -51
  49. package/types/CustomerSessions.d.ts +6 -54
  50. package/types/CustomerSessionsResource.d.ts +2 -50
  51. package/types/Customers.d.ts +1 -1
  52. package/types/CustomersResource.d.ts +0 -2
  53. package/types/Disputes.d.ts +0 -167
  54. package/types/DisputesResource.d.ts +0 -120
  55. package/types/EventTypes.d.ts +1 -427
  56. package/types/Events.d.ts +0 -83
  57. package/types/FinancialConnections/Accounts.d.ts +1 -29
  58. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  59. package/types/FinancialConnections/Sessions.d.ts +1 -44
  60. package/types/FinancialConnections/SessionsResource.d.ts +1 -33
  61. package/types/InvoiceItems.d.ts +0 -5
  62. package/types/InvoiceItemsResource.d.ts +0 -98
  63. package/types/InvoiceLineItems.d.ts +0 -22
  64. package/types/Invoices.d.ts +2 -110
  65. package/types/InvoicesResource.d.ts +1844 -5411
  66. package/types/Issuing/CardholdersResource.d.ts +1 -2
  67. package/types/Issuing/Cards.d.ts +0 -34
  68. package/types/Issuing/CardsResource.d.ts +0 -125
  69. package/types/LineItems.d.ts +0 -7
  70. package/types/Mandates.d.ts +0 -77
  71. package/types/PaymentIntents.d.ts +2 -463
  72. package/types/PaymentIntentsResource.d.ts +3377 -6710
  73. package/types/PaymentMethods.d.ts +0 -62
  74. package/types/PaymentMethodsResource.d.ts +0 -110
  75. package/types/Prices.d.ts +0 -22
  76. package/types/PricesResource.d.ts +0 -22
  77. package/types/Products.d.ts +0 -39
  78. package/types/ProductsResource.d.ts +0 -36
  79. package/types/Quotes.d.ts +1 -578
  80. package/types/QuotesResource.d.ts +266 -3175
  81. package/types/SetupAttempts.d.ts +1 -8
  82. package/types/SetupIntents.d.ts +2 -104
  83. package/types/SetupIntentsResource.d.ts +3 -483
  84. package/types/Sources.d.ts +0 -23
  85. package/types/SubscriptionItems.d.ts +0 -21
  86. package/types/SubscriptionItemsResource.d.ts +0 -109
  87. package/types/SubscriptionSchedules.d.ts +0 -164
  88. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  89. package/types/Subscriptions.d.ts +1 -41
  90. package/types/SubscriptionsResource.d.ts +2 -337
  91. package/types/Tax/Transactions.d.ts +5 -0
  92. package/types/Tax/TransactionsResource.d.ts +5 -0
  93. package/types/Terminal/Readers.d.ts +0 -278
  94. package/types/Terminal/ReadersResource.d.ts +0 -208
  95. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -55
  96. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  97. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  98. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  99. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  100. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  101. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  102. package/types/WebhookEndpointsResource.d.ts +0 -50
  103. package/types/index.d.ts +0 -61
  104. package/types/lib.d.ts +0 -12
  105. package/cjs/resources/AccountNotices.js +0 -21
  106. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  107. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  108. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  109. package/cjs/resources/GiftCards/Cards.js +0 -23
  110. package/cjs/resources/GiftCards/Transactions.js +0 -33
  111. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  112. package/cjs/resources/Margins.js +0 -22
  113. package/cjs/resources/Orders.js +0 -24
  114. package/cjs/resources/QuotePhases.js +0 -22
  115. package/cjs/resources/Tax/Forms.js +0 -20
  116. package/esm/resources/AccountNotices.js +0 -18
  117. package/esm/resources/Capital/FinancingOffers.js +0 -18
  118. package/esm/resources/Capital/FinancingSummary.js +0 -9
  119. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  120. package/esm/resources/GiftCards/Cards.js +0 -20
  121. package/esm/resources/GiftCards/Transactions.js +0 -30
  122. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  123. package/esm/resources/Margins.js +0 -19
  124. package/esm/resources/Orders.js +0 -21
  125. package/esm/resources/QuotePhases.js +0 -19
  126. package/esm/resources/Tax/Forms.js +0 -17
  127. package/types/AccountNotices.d.ts +0 -110
  128. package/types/AccountNoticesResource.d.ts +0 -98
  129. package/types/Capital/FinancingOffers.d.ts +0 -188
  130. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  131. package/types/Capital/FinancingSummary.d.ts +0 -106
  132. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  133. package/types/Capital/FinancingTransactions.d.ts +0 -135
  134. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  135. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  136. package/types/GiftCards/Cards.d.ts +0 -118
  137. package/types/GiftCards/CardsResource.d.ts +0 -159
  138. package/types/GiftCards/Transactions.d.ts +0 -129
  139. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  140. package/types/InvoicePayments.d.ts +0 -91
  141. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -446
  142. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1017
  143. package/types/Margins.d.ts +0 -56
  144. package/types/MarginsResource.d.ts +0 -114
  145. package/types/Orders.d.ts +0 -1057
  146. package/types/OrdersResource.d.ts +0 -2711
  147. package/types/QuoteLines.d.ts +0 -634
  148. package/types/QuotePhases.d.ts +0 -198
  149. package/types/QuotePhasesResource.d.ts +0 -67
  150. package/types/QuotePreviewInvoices.d.ts +0 -1528
  151. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -778
  152. package/types/Tax/Forms.d.ts +0 -133
  153. package/types/Tax/FormsResource.d.ts +0 -90
@@ -1435,11 +1435,6 @@ declare module 'stripe' {
1435
1435
  * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
1436
1436
  */
1437
1437
  setup_future_usage?: Paypal.SetupFutureUsage;
1438
-
1439
- /**
1440
- * The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
1441
- */
1442
- subsellers?: Array<string>;
1443
1438
  }
1444
1439
 
1445
1440
  namespace Paypal {
@@ -1523,8 +1518,6 @@ declare module 'stripe' {
1523
1518
  interface FinancialConnections {
1524
1519
  filters?: FinancialConnections.Filters;
1525
1520
 
1526
- manual_entry?: FinancialConnections.ManualEntry;
1527
-
1528
1521
  /**
1529
1522
  * The list of permissions to request. The `payment_method` permission must be included.
1530
1523
  */
@@ -1553,28 +1546,13 @@ declare module 'stripe' {
1553
1546
  type AccountSubcategory = 'checking' | 'savings';
1554
1547
  }
1555
1548
 
1556
- interface ManualEntry {
1557
- /**
1558
- * Settings for configuring manual entry of account details.
1559
- */
1560
- mode?: ManualEntry.Mode;
1561
- }
1562
-
1563
- namespace ManualEntry {
1564
- type Mode = 'automatic' | 'custom';
1565
- }
1566
-
1567
1549
  type Permission =
1568
1550
  | 'balances'
1569
1551
  | 'ownership'
1570
1552
  | 'payment_method'
1571
1553
  | 'transactions';
1572
1554
 
1573
- type Prefetch =
1574
- | 'balances'
1575
- | 'inferred_balances'
1576
- | 'ownership'
1577
- | 'transactions';
1555
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
1578
1556
  }
1579
1557
 
1580
1558
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -1634,11 +1634,6 @@ declare module 'stripe' {
1634
1634
  */
1635
1635
  reference?: string;
1636
1636
 
1637
- /**
1638
- * A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
1639
- */
1640
- reference_id?: string;
1641
-
1642
1637
  /**
1643
1638
  * The risk correlation ID for an on-session payment using a saved PayPal payment method.
1644
1639
  */
@@ -1654,11 +1649,6 @@ declare module 'stripe' {
1654
1649
  * If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
1655
1650
  */
1656
1651
  setup_future_usage?: Stripe.Emptyable<Paypal.SetupFutureUsage>;
1657
-
1658
- /**
1659
- * The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
1660
- */
1661
- subsellers?: Array<string>;
1662
1652
  }
1663
1653
 
1664
1654
  namespace Paypal {
@@ -1784,11 +1774,7 @@ declare module 'stripe' {
1784
1774
  | 'payment_method'
1785
1775
  | 'transactions';
1786
1776
 
1787
- type Prefetch =
1788
- | 'balances'
1789
- | 'inferred_balances'
1790
- | 'ownership'
1791
- | 'transactions';
1777
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
1792
1778
  }
1793
1779
 
1794
1780
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -47,11 +47,6 @@ declare module 'stripe' {
47
47
  */
48
48
  payment_intent: string | null;
49
49
 
50
- /**
51
- * Payment-method-specific configuration for this ConfirmationToken.
52
- */
53
- payment_method_options?: ConfirmationToken.PaymentMethodOptions | null;
54
-
55
50
  /**
56
51
  * Payment details collected by the Payment Element, used to create a PaymentMethod when a PaymentIntent or SetupIntent is confirmed with this ConfirmationToken.
57
52
  */
@@ -121,22 +116,6 @@ declare module 'stripe' {
121
116
  }
122
117
  }
123
118
 
124
- interface PaymentMethodOptions {
125
- /**
126
- * This hash contains the card payment method options.
127
- */
128
- card: PaymentMethodOptions.Card | null;
129
- }
130
-
131
- namespace PaymentMethodOptions {
132
- interface Card {
133
- /**
134
- * The `cvc_update` Token collected from the Payment Element.
135
- */
136
- cvc_token: string | null;
137
- }
138
- }
139
-
140
119
  interface PaymentMethodPreview {
141
120
  acss_debit?: PaymentMethodPreview.AcssDebit;
142
121
 
@@ -203,14 +182,10 @@ declare module 'stripe' {
203
182
 
204
183
  paypal?: PaymentMethodPreview.Paypal;
205
184
 
206
- payto?: PaymentMethodPreview.Payto;
207
-
208
185
  pix?: PaymentMethodPreview.Pix;
209
186
 
210
187
  promptpay?: PaymentMethodPreview.Promptpay;
211
188
 
212
- rechnung?: PaymentMethodPreview.Rechnung;
213
-
214
189
  revolut_pay?: PaymentMethodPreview.RevolutPay;
215
190
 
216
191
  sepa_debit?: PaymentMethodPreview.SepaDebit;
@@ -1191,11 +1166,6 @@ declare module 'stripe' {
1191
1166
  interface Paynow {}
1192
1167
 
1193
1168
  interface Paypal {
1194
- /**
1195
- * Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
1196
- */
1197
- fingerprint?: string | null;
1198
-
1199
1169
  /**
1200
1170
  * Owner's email. Values are provided by PayPal directly
1201
1171
  * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
@@ -1206,58 +1176,12 @@ declare module 'stripe' {
1206
1176
  * PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
1207
1177
  */
1208
1178
  payer_id: string | null;
1209
-
1210
- /**
1211
- * Owner's verified email. Values are verified or provided by PayPal directly
1212
- * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1213
- */
1214
- verified_email?: string | null;
1215
- }
1216
-
1217
- interface Payto {
1218
- /**
1219
- * Bank-State-Branch number of the bank account.
1220
- */
1221
- bsb_number: string | null;
1222
-
1223
- /**
1224
- * Last four digits of the bank account number.
1225
- */
1226
- last4: string | null;
1227
-
1228
- /**
1229
- * The PayID alias for the bank account.
1230
- */
1231
- pay_id: string | null;
1232
1179
  }
1233
1180
 
1234
1181
  interface Pix {}
1235
1182
 
1236
1183
  interface Promptpay {}
1237
1184
 
1238
- interface Rechnung {
1239
- dob?: Rechnung.Dob;
1240
- }
1241
-
1242
- namespace Rechnung {
1243
- interface Dob {
1244
- /**
1245
- * The day of birth, between 1 and 31.
1246
- */
1247
- day: number;
1248
-
1249
- /**
1250
- * The month of birth, between 1 and 12.
1251
- */
1252
- month: number;
1253
-
1254
- /**
1255
- * The four-digit year of birth.
1256
- */
1257
- year: number;
1258
- }
1259
- }
1260
-
1261
1185
  interface RevolutPay {}
1262
1186
 
1263
1187
  interface SepaDebit {
@@ -1347,10 +1271,8 @@ declare module 'stripe' {
1347
1271
  | 'p24'
1348
1272
  | 'paynow'
1349
1273
  | 'paypal'
1350
- | 'payto'
1351
1274
  | 'pix'
1352
1275
  | 'promptpay'
1353
- | 'rechnung'
1354
1276
  | 'revolut_pay'
1355
1277
  | 'sepa_debit'
1356
1278
  | 'sofort'
@@ -1366,11 +1288,6 @@ declare module 'stripe' {
1366
1288
  */
1367
1289
  account_holder_type: UsBankAccount.AccountHolderType | null;
1368
1290
 
1369
- /**
1370
- * Account number of the bank account.
1371
- */
1372
- account_number?: string | null;
1373
-
1374
1291
  /**
1375
1292
  * Account type: checkings or savings. Defaults to checking if omitted.
1376
1293
  */
@@ -113,7 +113,7 @@ declare module 'stripe' {
113
113
  amount_off: number;
114
114
  }
115
115
 
116
- type Duration = 'forever' | 'once' | 'repeating' | 'variable';
116
+ type Duration = 'forever' | 'once' | 'repeating';
117
117
  }
118
118
 
119
119
  /**
@@ -86,7 +86,7 @@ declare module 'stripe' {
86
86
  amount_off: number;
87
87
  }
88
88
 
89
- type Duration = 'forever' | 'once' | 'repeating' | 'variable';
89
+ type Duration = 'forever' | 'once' | 'repeating';
90
90
  }
91
91
 
92
92
  interface CouponRetrieveParams {
@@ -106,10 +106,6 @@ declare module 'stripe' {
106
106
  */
107
107
  pdf: string;
108
108
 
109
- post_payment_amount?: number;
110
-
111
- pre_payment_amount?: number;
112
-
113
109
  /**
114
110
  * Reason for issuing this credit note, one of `duplicate`, `fraudulent`, `order_change`, or `product_unsatisfactory`
115
111
  */
@@ -120,11 +116,6 @@ declare module 'stripe' {
120
116
  */
121
117
  refund: string | Stripe.Refund | null;
122
118
 
123
- /**
124
- * Refunds related to this credit note.
125
- */
126
- refunds?: Array<CreditNote.Refund>;
127
-
128
119
  /**
129
120
  * The details of the cost of shipping, including the ShippingRate applied to the invoice.
130
121
  */
@@ -190,18 +181,6 @@ declare module 'stripe' {
190
181
  | 'order_change'
191
182
  | 'product_unsatisfactory';
192
183
 
193
- interface Refund {
194
- /**
195
- * Amount of the refund that applies to this credit note, in cents (or local equivalent).
196
- */
197
- amount_refunded: number;
198
-
199
- /**
200
- * ID of the refund.
201
- */
202
- refund: string | Stripe.Refund;
203
- }
204
-
205
184
  interface ShippingCost {
206
185
  /**
207
186
  * Total shipping cost before any taxes are applied.
@@ -68,11 +68,6 @@ declare module 'stripe' {
68
68
  */
69
69
  refund_amount?: number;
70
70
 
71
- /**
72
- * Refunds to link to this credit note.
73
- */
74
- refunds?: Array<CreditNoteCreateParams.Refund>;
75
-
76
71
  /**
77
72
  * When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
78
73
  */
@@ -156,18 +151,6 @@ declare module 'stripe' {
156
151
  | 'order_change'
157
152
  | 'product_unsatisfactory';
158
153
 
159
- interface Refund {
160
- /**
161
- * Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
162
- */
163
- amount_refunded?: number;
164
-
165
- /**
166
- * ID of an existing refund to link this credit note to.
167
- */
168
- refund?: string;
169
- }
170
-
171
154
  interface ShippingCost {
172
155
  /**
173
156
  * The ID of the shipping rate to use for this order.
@@ -295,11 +278,6 @@ declare module 'stripe' {
295
278
  */
296
279
  refund_amount?: number;
297
280
 
298
- /**
299
- * Refunds to link to this credit note.
300
- */
301
- refunds?: Array<CreditNoteListPreviewLineItemsParams.Refund>;
302
-
303
281
  /**
304
282
  * When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
305
283
  */
@@ -383,18 +361,6 @@ declare module 'stripe' {
383
361
  | 'order_change'
384
362
  | 'product_unsatisfactory';
385
363
 
386
- interface Refund {
387
- /**
388
- * Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
389
- */
390
- amount_refunded?: number;
391
-
392
- /**
393
- * ID of an existing refund to link this credit note to.
394
- */
395
- refund?: string;
396
- }
397
-
398
364
  interface ShippingCost {
399
365
  /**
400
366
  * The ID of the shipping rate to use for this order.
@@ -469,11 +435,6 @@ declare module 'stripe' {
469
435
  */
470
436
  refund_amount?: number;
471
437
 
472
- /**
473
- * Refunds to link to this credit note.
474
- */
475
- refunds?: Array<CreditNotePreviewParams.Refund>;
476
-
477
438
  /**
478
439
  * When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
479
440
  */
@@ -557,18 +518,6 @@ declare module 'stripe' {
557
518
  | 'order_change'
558
519
  | 'product_unsatisfactory';
559
520
 
560
- interface Refund {
561
- /**
562
- * Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
563
- */
564
- amount_refunded?: number;
565
-
566
- /**
567
- * ID of an existing refund to link this credit note to.
568
- */
569
- refund?: string;
570
- }
571
-
572
521
  interface ShippingCost {
573
522
  /**
574
523
  * The ID of the shipping rate to use for this order.
@@ -3,8 +3,8 @@
3
3
  declare module 'stripe' {
4
4
  namespace Stripe {
5
5
  /**
6
- * A customer session allows you to grant client access to Stripe's frontend SDKs (like StripeJs)
7
- * control over a customer.
6
+ * A Customer Session allows you to grant Stripe's frontend SDKs (like Stripe.js) client-side access
7
+ * control over a Customer.
8
8
  */
9
9
  interface CustomerSession {
10
10
  /**
@@ -13,14 +13,14 @@ declare module 'stripe' {
13
13
  object: 'customer_session';
14
14
 
15
15
  /**
16
- * The client secret of this customer session. Used on the client to set up secure access to the given `customer`.
16
+ * The client secret of this Customer Session. Used on the client to set up secure access to the given `customer`.
17
17
  *
18
18
  * The client secret can be used to provide access to `customer` from your frontend. It should not be stored, logged, or exposed to anyone other than the relevant customer. Make sure that you have TLS enabled on any page that includes the client secret.
19
19
  */
20
20
  client_secret: string;
21
21
 
22
22
  /**
23
- * Configuration for the components supported by this customer session.
23
+ * Configuration for the components supported by this Customer Session.
24
24
  */
25
25
  components?: CustomerSession.Components;
26
26
 
@@ -30,12 +30,12 @@ declare module 'stripe' {
30
30
  created: number;
31
31
 
32
32
  /**
33
- * The customer the customer session was created for.
33
+ * The Customer the Customer Session was created for.
34
34
  */
35
35
  customer: string | Stripe.Customer;
36
36
 
37
37
  /**
38
- * The timestamp at which this customer session will expire.
38
+ * The timestamp at which this Customer Session will expire.
39
39
  */
40
40
  expires_at: number;
41
41
 
@@ -52,11 +52,6 @@ declare module 'stripe' {
52
52
  */
53
53
  buy_button: Components.BuyButton;
54
54
 
55
- /**
56
- * This hash contains whether the payment element is enabled and the features it supports.
57
- */
58
- payment_element?: Components.PaymentElement;
59
-
60
55
  /**
61
56
  * This hash contains whether the pricing table is enabled.
62
57
  */
@@ -71,49 +66,6 @@ declare module 'stripe' {
71
66
  enabled: boolean;
72
67
  }
73
68
 
74
- interface PaymentElement {
75
- /**
76
- * Whether the payment element is enabled.
77
- */
78
- enabled: boolean;
79
-
80
- /**
81
- * This hash defines whether the payment element supports certain features.
82
- */
83
- features: PaymentElement.Features | null;
84
- }
85
-
86
- namespace PaymentElement {
87
- interface Features {
88
- /**
89
- * Controls whether the Payment Element displays the option to remove a saved payment method."
90
- *
91
- * Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
92
- */
93
- payment_method_remove: Features.PaymentMethodRemove;
94
-
95
- /**
96
- * Controls whether the Payment Element displays a checkbox offering to save a new payment method.
97
- *
98
- * If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.
99
- */
100
- payment_method_save: Features.PaymentMethodSave;
101
-
102
- /**
103
- * Controls whether the Payment Element displays the option to update a saved payment method.
104
- */
105
- payment_method_update: Features.PaymentMethodUpdate;
106
- }
107
-
108
- namespace Features {
109
- type PaymentMethodRemove = 'disabled' | 'enabled';
110
-
111
- type PaymentMethodSave = 'disabled' | 'enabled';
112
-
113
- type PaymentMethodUpdate = 'disabled' | 'enabled';
114
- }
115
- }
116
-
117
69
  interface PricingTable {
118
70
  /**
119
71
  * Whether the pricing table is enabled.
@@ -9,7 +9,7 @@ declare module 'stripe' {
9
9
  components: CustomerSessionCreateParams.Components;
10
10
 
11
11
  /**
12
- * The ID of an existing customer for which to create the customer session.
12
+ * The ID of an existing customer for which to create the Customer Session.
13
13
  */
14
14
  customer: string;
15
15
 
@@ -26,11 +26,6 @@ declare module 'stripe' {
26
26
  */
27
27
  buy_button?: Components.BuyButton;
28
28
 
29
- /**
30
- * Configuration for the payment element.
31
- */
32
- payment_element?: Components.PaymentElement;
33
-
34
29
  /**
35
30
  * Configuration for the pricing table.
36
31
  */
@@ -45,49 +40,6 @@ declare module 'stripe' {
45
40
  enabled: boolean;
46
41
  }
47
42
 
48
- interface PaymentElement {
49
- /**
50
- * Whether the payment element is enabled.
51
- */
52
- enabled: boolean;
53
-
54
- /**
55
- * This hash defines whether the payment element supports certain features.
56
- */
57
- features?: PaymentElement.Features;
58
- }
59
-
60
- namespace PaymentElement {
61
- interface Features {
62
- /**
63
- * Controls whether the Payment Element displays the option to remove a saved payment method."
64
- *
65
- * Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
66
- */
67
- payment_method_remove?: Features.PaymentMethodRemove;
68
-
69
- /**
70
- * Controls whether the Payment Element displays a checkbox offering to save a new payment method.
71
- *
72
- * If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.
73
- */
74
- payment_method_save?: Features.PaymentMethodSave;
75
-
76
- /**
77
- * Controls whether the Payment Element displays the option to update a saved payment method.
78
- */
79
- payment_method_update?: Features.PaymentMethodUpdate;
80
- }
81
-
82
- namespace Features {
83
- type PaymentMethodRemove = 'disabled' | 'enabled';
84
-
85
- type PaymentMethodSave = 'disabled' | 'enabled';
86
-
87
- type PaymentMethodUpdate = 'disabled' | 'enabled';
88
- }
89
- }
90
-
91
43
  interface PricingTable {
92
44
  /**
93
45
  * Whether the pricing table is enabled.
@@ -99,7 +51,7 @@ declare module 'stripe' {
99
51
 
100
52
  class CustomerSessionsResource {
101
53
  /**
102
- * Creates a customer session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
54
+ * Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
103
55
  */
104
56
  create(
105
57
  params: CustomerSessionCreateParams,
@@ -109,7 +109,7 @@ declare module 'stripe' {
109
109
  name?: string | null;
110
110
 
111
111
  /**
112
- * The suffix of the customer's next invoice number (for example, 0001).
112
+ * The suffix of the customer's next invoice number (for example, 0001). When the account uses account level sequencing, this parameter is ignored in API requests and the field omitted in API responses.
113
113
  */
114
114
  next_invoice_sequence?: number;
115
115
 
@@ -818,10 +818,8 @@ declare module 'stripe' {
818
818
  | 'p24'
819
819
  | 'paynow'
820
820
  | 'paypal'
821
- | 'payto'
822
821
  | 'pix'
823
822
  | 'promptpay'
824
- | 'rechnung'
825
823
  | 'revolut_pay'
826
824
  | 'sepa_debit'
827
825
  | 'sofort'