stripe 15.12.0-beta.1 → 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/CHANGELOG.md +155 -746
  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 +2 -3
  7. package/cjs/multipart.js +1 -1
  8. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  9. package/cjs/resources/Invoices.js +0 -25
  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/TestHelpers/Issuing/Authorizations.js +4 -0
  16. package/cjs/resources.js +10 -36
  17. package/cjs/stripe.core.js +3 -6
  18. package/cjs/utils.js +3 -30
  19. package/esm/RequestSender.js +6 -67
  20. package/esm/StripeResource.js +2 -2
  21. package/esm/apiVersion.js +1 -2
  22. package/esm/multipart.js +2 -2
  23. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  24. package/esm/resources/Invoices.js +0 -25
  25. package/esm/resources/OAuth.js +2 -2
  26. package/esm/resources/PaymentIntents.js +0 -4
  27. package/esm/resources/Quotes.js +0 -32
  28. package/esm/resources/SubscriptionSchedules.js +0 -4
  29. package/esm/resources/Terminal/Readers.js +0 -12
  30. package/esm/resources/TestHelpers/Issuing/Authorizations.js +4 -0
  31. package/esm/resources.js +0 -22
  32. package/esm/stripe.core.js +3 -6
  33. package/esm/utils.js +1 -27
  34. package/package.json +5 -1
  35. package/types/AccountLinksResource.d.ts +1 -5
  36. package/types/AccountSessions.d.ts +0 -15
  37. package/types/AccountSessionsResource.d.ts +0 -205
  38. package/types/Accounts.d.ts +1 -88
  39. package/types/AccountsResource.d.ts +1 -205
  40. package/types/BalanceTransactionSources.d.ts +0 -1
  41. package/types/Capabilities.d.ts +27 -7
  42. package/types/Charges.d.ts +0 -67
  43. package/types/ChargesResource.d.ts +0 -1294
  44. package/types/Checkout/Sessions.d.ts +3 -24
  45. package/types/Checkout/SessionsResource.d.ts +3 -17
  46. package/types/ConfirmationTokens.d.ts +0 -83
  47. package/types/Coupons.d.ts +1 -1
  48. package/types/CouponsResource.d.ts +1 -1
  49. package/types/CreditNotes.d.ts +0 -21
  50. package/types/CreditNotesResource.d.ts +0 -51
  51. package/types/CustomerSessions.d.ts +0 -55
  52. package/types/CustomerSessionsResource.d.ts +0 -55
  53. package/types/CustomersResource.d.ts +4 -4
  54. package/types/Disputes.d.ts +0 -167
  55. package/types/DisputesResource.d.ts +0 -120
  56. package/types/EventTypes.d.ts +0 -426
  57. package/types/Events.d.ts +0 -83
  58. package/types/FinancialConnections/Accounts.d.ts +1 -29
  59. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  60. package/types/FinancialConnections/Sessions.d.ts +1 -44
  61. package/types/FinancialConnections/SessionsResource.d.ts +1 -33
  62. package/types/InvoiceItems.d.ts +0 -5
  63. package/types/InvoiceItemsResource.d.ts +0 -98
  64. package/types/InvoiceLineItems.d.ts +0 -22
  65. package/types/Invoices.d.ts +3 -111
  66. package/types/InvoicesResource.d.ts +2171 -6311
  67. package/types/Issuing/Authorizations.d.ts +173 -0
  68. package/types/Issuing/CardholdersResource.d.ts +1 -2
  69. package/types/Issuing/Cards.d.ts +0 -34
  70. package/types/Issuing/CardsResource.d.ts +0 -125
  71. package/types/Issuing/Transactions.d.ts +112 -6
  72. package/types/LineItems.d.ts +0 -7
  73. package/types/Mandates.d.ts +0 -77
  74. package/types/PaymentIntents.d.ts +1 -463
  75. package/types/PaymentIntentsResource.d.ts +3360 -6731
  76. package/types/PaymentLinks.d.ts +1 -0
  77. package/types/PaymentLinksResource.d.ts +15 -1
  78. package/types/PaymentMethods.d.ts +0 -62
  79. package/types/PaymentMethodsResource.d.ts +12 -124
  80. package/types/Prices.d.ts +0 -22
  81. package/types/PricesResource.d.ts +0 -22
  82. package/types/Products.d.ts +0 -39
  83. package/types/ProductsResource.d.ts +0 -36
  84. package/types/Quotes.d.ts +1 -578
  85. package/types/QuotesResource.d.ts +266 -3175
  86. package/types/SetupAttempts.d.ts +0 -8
  87. package/types/SetupIntents.d.ts +1 -104
  88. package/types/SetupIntentsResource.d.ts +9 -527
  89. package/types/Sources.d.ts +0 -23
  90. package/types/SubscriptionItems.d.ts +0 -21
  91. package/types/SubscriptionItemsResource.d.ts +0 -109
  92. package/types/SubscriptionSchedules.d.ts +0 -164
  93. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  94. package/types/Subscriptions.d.ts +1 -41
  95. package/types/SubscriptionsResource.d.ts +2 -337
  96. package/types/Tax/Calculations.d.ts +2 -1
  97. package/types/Tax/CalculationsResource.d.ts +4 -3
  98. package/types/Tax/Transactions.d.ts +2 -1
  99. package/types/TaxIds.d.ts +2 -1
  100. package/types/TaxIdsResource.d.ts +2 -1
  101. package/types/Terminal/ConnectionTokens.d.ts +1 -1
  102. package/types/Terminal/ConnectionTokensResource.d.ts +1 -1
  103. package/types/Terminal/Readers.d.ts +0 -278
  104. package/types/Terminal/ReadersResource.d.ts +0 -208
  105. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -55
  106. package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +480 -7
  107. package/types/TestHelpers/Issuing/TransactionsResource.d.ts +262 -14
  108. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  109. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  110. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  111. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  112. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  113. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  114. package/types/WebhookEndpointsResource.d.ts +2 -51
  115. package/types/index.d.ts +0 -62
  116. package/types/lib.d.ts +1 -13
  117. package/types/test/typescriptTest.ts +3 -3
  118. package/cjs/resources/AccountNotices.js +0 -21
  119. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  120. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  121. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  122. package/cjs/resources/GiftCards/Cards.js +0 -23
  123. package/cjs/resources/GiftCards/Transactions.js +0 -33
  124. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  125. package/cjs/resources/Margins.js +0 -22
  126. package/cjs/resources/Orders.js +0 -24
  127. package/cjs/resources/QuotePhases.js +0 -22
  128. package/cjs/resources/Tax/Forms.js +0 -20
  129. package/esm/resources/AccountNotices.js +0 -18
  130. package/esm/resources/Capital/FinancingOffers.js +0 -18
  131. package/esm/resources/Capital/FinancingSummary.js +0 -9
  132. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  133. package/esm/resources/GiftCards/Cards.js +0 -20
  134. package/esm/resources/GiftCards/Transactions.js +0 -30
  135. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  136. package/esm/resources/Margins.js +0 -19
  137. package/esm/resources/Orders.js +0 -21
  138. package/esm/resources/QuotePhases.js +0 -19
  139. package/esm/resources/Tax/Forms.js +0 -17
  140. package/types/AccountNotices.d.ts +0 -110
  141. package/types/AccountNoticesResource.d.ts +0 -98
  142. package/types/Capital/FinancingOffers.d.ts +0 -188
  143. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  144. package/types/Capital/FinancingSummary.d.ts +0 -106
  145. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  146. package/types/Capital/FinancingTransactions.d.ts +0 -135
  147. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  148. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  149. package/types/GiftCards/Cards.d.ts +0 -118
  150. package/types/GiftCards/CardsResource.d.ts +0 -159
  151. package/types/GiftCards/Transactions.d.ts +0 -129
  152. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  153. package/types/InvoicePayments.d.ts +0 -91
  154. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -446
  155. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1017
  156. package/types/Margins.d.ts +0 -56
  157. package/types/MarginsResource.d.ts +0 -114
  158. package/types/Orders.d.ts +0 -1056
  159. package/types/OrdersResource.d.ts +0 -2709
  160. package/types/PlatformTaxFees.d.ts +0 -35
  161. package/types/QuoteLines.d.ts +0 -634
  162. package/types/QuotePhases.d.ts +0 -198
  163. package/types/QuotePhasesResource.d.ts +0 -67
  164. package/types/QuotePreviewInvoices.d.ts +0 -1514
  165. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -778
  166. package/types/Tax/Forms.d.ts +0 -133
  167. package/types/Tax/FormsResource.d.ts +0 -90
@@ -490,7 +490,7 @@ declare module 'stripe' {
490
490
 
491
491
  interface TaxId {
492
492
  /**
493
- * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, or `unknown`
493
+ * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown`
494
494
  */
495
495
  type: TaxId.Type;
496
496
 
@@ -518,6 +518,7 @@ declare module 'stripe' {
518
518
  | 'ca_pst_mb'
519
519
  | 'ca_pst_sk'
520
520
  | 'ca_qst'
521
+ | 'ch_uid'
521
522
  | 'ch_vat'
522
523
  | 'cl_tin'
523
524
  | 'cn_tin'
@@ -1434,11 +1435,6 @@ declare module 'stripe' {
1434
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).
1435
1436
  */
1436
1437
  setup_future_usage?: Paypal.SetupFutureUsage;
1437
-
1438
- /**
1439
- * 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.
1440
- */
1441
- subsellers?: Array<string>;
1442
1438
  }
1443
1439
 
1444
1440
  namespace Paypal {
@@ -1520,8 +1516,6 @@ declare module 'stripe' {
1520
1516
 
1521
1517
  namespace UsBankAccount {
1522
1518
  interface FinancialConnections {
1523
- manual_entry?: FinancialConnections.ManualEntry;
1524
-
1525
1519
  /**
1526
1520
  * The list of permissions to request. The `payment_method` permission must be included.
1527
1521
  */
@@ -1539,28 +1533,13 @@ declare module 'stripe' {
1539
1533
  }
1540
1534
 
1541
1535
  namespace FinancialConnections {
1542
- interface ManualEntry {
1543
- /**
1544
- * Settings for configuring manual entry of account details.
1545
- */
1546
- mode?: ManualEntry.Mode;
1547
- }
1548
-
1549
- namespace ManualEntry {
1550
- type Mode = 'automatic' | 'custom';
1551
- }
1552
-
1553
1536
  type Permission =
1554
1537
  | 'balances'
1555
1538
  | 'ownership'
1556
1539
  | 'payment_method'
1557
1540
  | 'transactions';
1558
1541
 
1559
- type Prefetch =
1560
- | 'balances'
1561
- | 'inferred_balances'
1562
- | 'ownership'
1563
- | 'transactions';
1542
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
1564
1543
  }
1565
1544
 
1566
1545
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -249,7 +249,7 @@ declare module 'stripe' {
249
249
  success_url?: string;
250
250
 
251
251
  /**
252
- * Controls tax ID collection settings for the session.
252
+ * Controls tax ID collection during checkout.
253
253
  */
254
254
  tax_id_collection?: SessionCreateParams.TaxIdCollection;
255
255
 
@@ -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';
@@ -2428,7 +2414,7 @@ declare module 'stripe' {
2428
2414
 
2429
2415
  interface TaxIdCollection {
2430
2416
  /**
2431
- * Set to true to enable Tax ID collection.
2417
+ * Enable tax ID collection during checkout. Defaults to `false`.
2432
2418
  */
2433
2419
  enabled: boolean;
2434
2420
  }
@@ -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.
@@ -63,11 +63,6 @@ declare module 'stripe' {
63
63
  */
64
64
  refund_amount?: number;
65
65
 
66
- /**
67
- * Refunds to link to this credit note.
68
- */
69
- refunds?: Array<CreditNoteCreateParams.Refund>;
70
-
71
66
  /**
72
67
  * When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
73
68
  */
@@ -149,18 +144,6 @@ declare module 'stripe' {
149
144
  | 'order_change'
150
145
  | 'product_unsatisfactory';
151
146
 
152
- interface Refund {
153
- /**
154
- * Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
155
- */
156
- amount_refunded?: number;
157
-
158
- /**
159
- * ID of an existing refund to link this credit note to.
160
- */
161
- refund?: string;
162
- }
163
-
164
147
  interface ShippingCost {
165
148
  /**
166
149
  * The ID of the shipping rate to use for this order.
@@ -283,11 +266,6 @@ declare module 'stripe' {
283
266
  */
284
267
  refund_amount?: number;
285
268
 
286
- /**
287
- * Refunds to link to this credit note.
288
- */
289
- refunds?: Array<CreditNoteListPreviewLineItemsParams.Refund>;
290
-
291
269
  /**
292
270
  * When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
293
271
  */
@@ -369,18 +347,6 @@ declare module 'stripe' {
369
347
  | 'order_change'
370
348
  | 'product_unsatisfactory';
371
349
 
372
- interface Refund {
373
- /**
374
- * Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
375
- */
376
- amount_refunded?: number;
377
-
378
- /**
379
- * ID of an existing refund to link this credit note to.
380
- */
381
- refund?: string;
382
- }
383
-
384
350
  interface ShippingCost {
385
351
  /**
386
352
  * The ID of the shipping rate to use for this order.
@@ -450,11 +416,6 @@ declare module 'stripe' {
450
416
  */
451
417
  refund_amount?: number;
452
418
 
453
- /**
454
- * Refunds to link to this credit note.
455
- */
456
- refunds?: Array<CreditNotePreviewParams.Refund>;
457
-
458
419
  /**
459
420
  * When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
460
421
  */
@@ -536,18 +497,6 @@ declare module 'stripe' {
536
497
  | 'order_change'
537
498
  | 'product_unsatisfactory';
538
499
 
539
- interface Refund {
540
- /**
541
- * Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
542
- */
543
- amount_refunded?: number;
544
-
545
- /**
546
- * ID of an existing refund to link this credit note to.
547
- */
548
- refund?: string;
549
- }
550
-
551
500
  interface ShippingCost {
552
501
  /**
553
502
  * The ID of the shipping rate to use for this order.
@@ -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,56 +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 a checkbox offering to set a saved payment method as the default.
104
- */
105
- payment_method_set_as_default: Features.PaymentMethodSetAsDefault;
106
-
107
- /**
108
- * Controls whether the Payment Element displays the option to update a saved payment method.
109
- */
110
- payment_method_update: Features.PaymentMethodUpdate;
111
- }
112
-
113
- namespace Features {
114
- type PaymentMethodRemove = 'disabled' | 'enabled';
115
-
116
- type PaymentMethodSave = 'disabled' | 'enabled';
117
-
118
- type PaymentMethodSetAsDefault = 'disabled' | 'enabled';
119
-
120
- type PaymentMethodUpdate = 'disabled' | 'enabled';
121
- }
122
- }
123
-
124
69
  interface PricingTable {
125
70
  /**
126
71
  * Whether the pricing table is enabled.
@@ -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,56 +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 a checkbox offering to set a saved payment method as the default.
78
- */
79
- payment_method_set_as_default?: Features.PaymentMethodSetAsDefault;
80
-
81
- /**
82
- * Controls whether the Payment Element displays the option to update a saved payment method.
83
- */
84
- payment_method_update?: Features.PaymentMethodUpdate;
85
- }
86
-
87
- namespace Features {
88
- type PaymentMethodRemove = 'disabled' | 'enabled';
89
-
90
- type PaymentMethodSave = 'disabled' | 'enabled';
91
-
92
- type PaymentMethodSetAsDefault = 'disabled' | 'enabled';
93
-
94
- type PaymentMethodUpdate = 'disabled' | 'enabled';
95
- }
96
- }
97
-
98
43
  interface PricingTable {
99
44
  /**
100
45
  * Whether the pricing table is enabled.
@@ -215,7 +215,7 @@ declare module 'stripe' {
215
215
 
216
216
  interface TaxIdDatum {
217
217
  /**
218
- * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
218
+ * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
219
219
  */
220
220
  type: TaxIdDatum.Type;
221
221
 
@@ -243,6 +243,7 @@ declare module 'stripe' {
243
243
  | 'ca_pst_mb'
244
244
  | 'ca_pst_sk'
245
245
  | 'ca_qst'
246
+ | 'ch_uid'
246
247
  | 'ch_vat'
247
248
  | 'cl_tin'
248
249
  | 'cn_tin'
@@ -651,7 +652,7 @@ declare module 'stripe' {
651
652
 
652
653
  interface CustomerCreateTaxIdParams {
653
654
  /**
654
- * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
655
+ * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
655
656
  */
656
657
  type: CustomerCreateTaxIdParams.Type;
657
658
 
@@ -684,6 +685,7 @@ declare module 'stripe' {
684
685
  | 'ca_pst_mb'
685
686
  | 'ca_pst_sk'
686
687
  | 'ca_qst'
688
+ | 'ch_uid'
687
689
  | 'ch_vat'
688
690
  | 'cl_tin'
689
691
  | 'cn_tin'
@@ -816,10 +818,8 @@ declare module 'stripe' {
816
818
  | 'p24'
817
819
  | 'paynow'
818
820
  | 'paypal'
819
- | 'payto'
820
821
  | 'pix'
821
822
  | 'promptpay'
822
- | 'rechnung'
823
823
  | 'revolut_pay'
824
824
  | 'sepa_debit'
825
825
  | 'sofort'