stripe 16.9.0-beta.2 → 16.9.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 (164) hide show
  1. package/CHANGELOG.md +123 -822
  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 -17
  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 -40
  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 -17
  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 -26
  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 +2 -6
  34. package/types/AccountSessions.d.ts +0 -45
  35. package/types/AccountSessionsResource.d.ts +0 -260
  36. package/types/Accounts.d.ts +1 -113
  37. package/types/AccountsResource.d.ts +0 -270
  38. package/types/Charges.d.ts +0 -71
  39. package/types/ChargesResource.d.ts +0 -1294
  40. package/types/Checkout/Sessions.d.ts +4 -185
  41. package/types/Checkout/SessionsResource.d.ts +5 -349
  42. package/types/ConfirmationTokens.d.ts +0 -67
  43. package/types/Coupons.d.ts +1 -1
  44. package/types/CouponsResource.d.ts +1 -1
  45. package/types/CreditNotes.d.ts +0 -21
  46. package/types/CreditNotesResource.d.ts +0 -51
  47. package/types/CustomersResource.d.ts +0 -3
  48. package/types/Disputes.d.ts +0 -152
  49. package/types/DisputesResource.d.ts +0 -120
  50. package/types/EventTypes.d.ts +0 -460
  51. package/types/Events.d.ts +0 -85
  52. package/types/FileLinksResource.d.ts +1 -1
  53. package/types/Files.d.ts +1 -0
  54. package/types/FilesResource.d.ts +3 -1
  55. package/types/FinancialConnections/Accounts.d.ts +1 -29
  56. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  57. package/types/FinancialConnections/Sessions.d.ts +1 -49
  58. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  59. package/types/InvoiceItems.d.ts +0 -5
  60. package/types/InvoiceItemsResource.d.ts +0 -98
  61. package/types/InvoiceLineItems.d.ts +3 -23
  62. package/types/Invoices.d.ts +1 -116
  63. package/types/InvoicesResource.d.ts +1835 -5493
  64. package/types/Issuing/CardholdersResource.d.ts +1 -2
  65. package/types/Issuing/Cards.d.ts +1 -1
  66. package/types/LineItems.d.ts +1 -8
  67. package/types/Mandates.d.ts +0 -77
  68. package/types/PaymentIntents.d.ts +1 -502
  69. package/types/PaymentIntentsResource.d.ts +3464 -7064
  70. package/types/PaymentLinks.d.ts +0 -1
  71. package/types/PaymentLinksResource.d.ts +0 -2
  72. package/types/PaymentMethodConfigurations.d.ts +0 -36
  73. package/types/PaymentMethodConfigurationsResource.d.ts +0 -50
  74. package/types/PaymentMethods.d.ts +0 -67
  75. package/types/PaymentMethodsResource.d.ts +0 -119
  76. package/types/Prices.d.ts +0 -22
  77. package/types/PricesResource.d.ts +0 -22
  78. package/types/Products.d.ts +0 -39
  79. package/types/ProductsResource.d.ts +0 -36
  80. package/types/Quotes.d.ts +1 -596
  81. package/types/QuotesResource.d.ts +199 -2531
  82. package/types/SetupAttempts.d.ts +0 -9
  83. package/types/SetupIntents.d.ts +1 -110
  84. package/types/SetupIntentsResource.d.ts +3 -522
  85. package/types/Sources.d.ts +0 -23
  86. package/types/SubscriptionItems.d.ts +0 -21
  87. package/types/SubscriptionItemsResource.d.ts +0 -109
  88. package/types/SubscriptionSchedules.d.ts +0 -200
  89. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  90. package/types/Subscriptions.d.ts +1 -82
  91. package/types/SubscriptionsResource.d.ts +2 -347
  92. package/types/Tax/CalculationsResource.d.ts +1 -1
  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 -63
  96. package/types/TestHelpers/TestClocks.d.ts +15 -0
  97. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  98. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  99. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  100. package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
  101. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  102. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  103. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  104. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  105. package/types/WebhookEndpointsResource.d.ts +0 -54
  106. package/types/index.d.ts +0 -67
  107. package/types/lib.d.ts +0 -12
  108. package/cjs/resources/AccountNotices.js +0 -21
  109. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  110. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  111. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  112. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  113. package/cjs/resources/GiftCards/Cards.js +0 -23
  114. package/cjs/resources/GiftCards/Transactions.js +0 -33
  115. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  116. package/cjs/resources/Margins.js +0 -22
  117. package/cjs/resources/Orders.js +0 -24
  118. package/cjs/resources/QuotePhases.js +0 -22
  119. package/cjs/resources/Tax/Associations.js +0 -9
  120. package/cjs/resources/Tax/Forms.js +0 -20
  121. package/esm/resources/AccountNotices.js +0 -18
  122. package/esm/resources/Capital/FinancingOffers.js +0 -18
  123. package/esm/resources/Capital/FinancingSummary.js +0 -9
  124. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  125. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  126. package/esm/resources/GiftCards/Cards.js +0 -20
  127. package/esm/resources/GiftCards/Transactions.js +0 -30
  128. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  129. package/esm/resources/Margins.js +0 -19
  130. package/esm/resources/Orders.js +0 -21
  131. package/esm/resources/QuotePhases.js +0 -19
  132. package/esm/resources/Tax/Associations.js +0 -6
  133. package/esm/resources/Tax/Forms.js +0 -17
  134. package/types/AccountNotices.d.ts +0 -113
  135. package/types/AccountNoticesResource.d.ts +0 -98
  136. package/types/Capital/FinancingOffers.d.ts +0 -188
  137. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  138. package/types/Capital/FinancingSummary.d.ts +0 -106
  139. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  140. package/types/Capital/FinancingTransactions.d.ts +0 -135
  141. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  142. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  143. package/types/FinancialConnections/Institutions.d.ts +0 -93
  144. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  145. package/types/GiftCards/Cards.d.ts +0 -118
  146. package/types/GiftCards/CardsResource.d.ts +0 -159
  147. package/types/GiftCards/Transactions.d.ts +0 -129
  148. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  149. package/types/InvoicePayments.d.ts +0 -138
  150. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -446
  151. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1017
  152. package/types/Margins.d.ts +0 -56
  153. package/types/MarginsResource.d.ts +0 -114
  154. package/types/Orders.d.ts +0 -1084
  155. package/types/OrdersResource.d.ts +0 -2765
  156. package/types/QuoteLines.d.ts +0 -634
  157. package/types/QuotePhases.d.ts +0 -198
  158. package/types/QuotePhasesResource.d.ts +0 -67
  159. package/types/QuotePreviewInvoices.d.ts +0 -1531
  160. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  161. package/types/Tax/Associations.d.ts +0 -126
  162. package/types/Tax/AssociationsResource.d.ts +0 -29
  163. package/types/Tax/Forms.d.ts +0 -133
  164. package/types/Tax/FormsResource.d.ts +0 -90
@@ -563,7 +563,6 @@ declare module 'stripe' {
563
563
  | 'p24'
564
564
  | 'paynow'
565
565
  | 'paypal'
566
- | 'payto'
567
566
  | 'pix'
568
567
  | 'promptpay'
569
568
  | 'sepa_debit'
@@ -622,7 +622,6 @@ declare module 'stripe' {
622
622
  | 'p24'
623
623
  | 'paynow'
624
624
  | 'paypal'
625
- | 'payto'
626
625
  | 'pix'
627
626
  | 'promptpay'
628
627
  | 'sepa_debit'
@@ -1538,7 +1537,6 @@ declare module 'stripe' {
1538
1537
  | 'p24'
1539
1538
  | 'paynow'
1540
1539
  | 'paypal'
1541
- | 'payto'
1542
1540
  | 'pix'
1543
1541
  | 'promptpay'
1544
1542
  | 'sepa_debit'
@@ -121,8 +121,6 @@ declare module 'stripe' {
121
121
 
122
122
  paypal?: PaymentMethodConfiguration.Paypal;
123
123
 
124
- payto?: PaymentMethodConfiguration.Payto;
125
-
126
124
  promptpay?: PaymentMethodConfiguration.Promptpay;
127
125
 
128
126
  revolut_pay?: PaymentMethodConfiguration.RevolutPay;
@@ -1197,40 +1195,6 @@ declare module 'stripe' {
1197
1195
  }
1198
1196
  }
1199
1197
 
1200
- interface Payto {
1201
- /**
1202
- * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
1203
- */
1204
- available: boolean;
1205
-
1206
- display_preference: Payto.DisplayPreference;
1207
- }
1208
-
1209
- namespace Payto {
1210
- interface DisplayPreference {
1211
- /**
1212
- * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1213
- */
1214
- overridable: boolean | null;
1215
-
1216
- /**
1217
- * The account's display preference.
1218
- */
1219
- preference: DisplayPreference.Preference;
1220
-
1221
- /**
1222
- * The effective display preference value.
1223
- */
1224
- value: DisplayPreference.Value;
1225
- }
1226
-
1227
- namespace DisplayPreference {
1228
- type Preference = 'none' | 'off' | 'on';
1229
-
1230
- type Value = 'off' | 'on';
1231
- }
1232
- }
1233
-
1234
1198
  interface Promptpay {
1235
1199
  /**
1236
1200
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -178,11 +178,6 @@ declare module 'stripe' {
178
178
  */
179
179
  paypal?: PaymentMethodConfigurationCreateParams.Paypal;
180
180
 
181
- /**
182
- * PayTo is a [real-time](https://docs.stripe.com/payments/real-time) payment method that enables customers in Australia to pay by providing their bank account details. Customers must accept a mandate authorizing you to debit their account. Check this [page](https://docs.stripe.com/payments/payto) for more details.
183
- */
184
- payto?: PaymentMethodConfigurationCreateParams.Payto;
185
-
186
181
  /**
187
182
  * 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.
188
183
  */
@@ -870,26 +865,6 @@ declare module 'stripe' {
870
865
  }
871
866
  }
872
867
 
873
- interface Payto {
874
- /**
875
- * Whether or not the payment method should be displayed.
876
- */
877
- display_preference?: Payto.DisplayPreference;
878
- }
879
-
880
- namespace Payto {
881
- interface DisplayPreference {
882
- /**
883
- * The account's preference for whether or not to display this payment method.
884
- */
885
- preference?: DisplayPreference.Preference;
886
- }
887
-
888
- namespace DisplayPreference {
889
- type Preference = 'none' | 'off' | 'on';
890
- }
891
- }
892
-
893
868
  interface Promptpay {
894
869
  /**
895
870
  * Whether or not the payment method should be displayed.
@@ -1254,11 +1229,6 @@ declare module 'stripe' {
1254
1229
  */
1255
1230
  paypal?: PaymentMethodConfigurationUpdateParams.Paypal;
1256
1231
 
1257
- /**
1258
- * PayTo is a [real-time](https://docs.stripe.com/payments/real-time) payment method that enables customers in Australia to pay by providing their bank account details. Customers must accept a mandate authorizing you to debit their account. Check this [page](https://docs.stripe.com/payments/payto) for more details.
1259
- */
1260
- payto?: PaymentMethodConfigurationUpdateParams.Payto;
1261
-
1262
1232
  /**
1263
1233
  * 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.
1264
1234
  */
@@ -1946,26 +1916,6 @@ declare module 'stripe' {
1946
1916
  }
1947
1917
  }
1948
1918
 
1949
- interface Payto {
1950
- /**
1951
- * Whether or not the payment method should be displayed.
1952
- */
1953
- display_preference?: Payto.DisplayPreference;
1954
- }
1955
-
1956
- namespace Payto {
1957
- interface DisplayPreference {
1958
- /**
1959
- * The account's preference for whether or not to display this payment method.
1960
- */
1961
- preference?: DisplayPreference.Preference;
1962
- }
1963
-
1964
- namespace DisplayPreference {
1965
- type Preference = 'none' | 'off' | 'on';
1966
- }
1967
- }
1968
-
1969
1919
  interface Promptpay {
1970
1920
  /**
1971
1921
  * Whether or not the payment method should be displayed.
@@ -88,8 +88,6 @@ declare module 'stripe' {
88
88
  */
89
89
  livemode: boolean;
90
90
 
91
- mb_way?: PaymentMethod.MbWay;
92
-
93
91
  /**
94
92
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
95
93
  */
@@ -107,8 +105,6 @@ declare module 'stripe' {
107
105
 
108
106
  paypal?: PaymentMethod.Paypal;
109
107
 
110
- payto?: PaymentMethod.Payto;
111
-
112
108
  pix?: PaymentMethod.Pix;
113
109
 
114
110
  promptpay?: PaymentMethod.Promptpay;
@@ -118,8 +114,6 @@ declare module 'stripe' {
118
114
  */
119
115
  radar_options?: PaymentMethod.RadarOptions;
120
116
 
121
- rechnung?: PaymentMethod.Rechnung;
122
-
123
117
  revolut_pay?: PaymentMethod.RevolutPay;
124
118
 
125
119
  sepa_debit?: PaymentMethod.SepaDebit;
@@ -1121,8 +1115,6 @@ declare module 'stripe' {
1121
1115
  persistent_token?: string;
1122
1116
  }
1123
1117
 
1124
- interface MbWay {}
1125
-
1126
1118
  interface Mobilepay {}
1127
1119
 
1128
1120
  interface Multibanco {}
@@ -1169,11 +1161,6 @@ declare module 'stripe' {
1169
1161
  interface Paynow {}
1170
1162
 
1171
1163
  interface Paypal {
1172
- /**
1173
- * Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
1174
- */
1175
- fingerprint?: string | null;
1176
-
1177
1164
  /**
1178
1165
  * Owner's email. Values are provided by PayPal directly
1179
1166
  * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
@@ -1184,29 +1171,6 @@ declare module 'stripe' {
1184
1171
  * PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
1185
1172
  */
1186
1173
  payer_id: string | null;
1187
-
1188
- /**
1189
- * Owner's verified email. Values are verified or provided by PayPal directly
1190
- * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1191
- */
1192
- verified_email?: string | null;
1193
- }
1194
-
1195
- interface Payto {
1196
- /**
1197
- * Bank-State-Branch number of the bank account.
1198
- */
1199
- bsb_number: string | null;
1200
-
1201
- /**
1202
- * Last four digits of the bank account number.
1203
- */
1204
- last4: string | null;
1205
-
1206
- /**
1207
- * The PayID alias for the bank account.
1208
- */
1209
- pay_id: string | null;
1210
1174
  }
1211
1175
 
1212
1176
  interface Pix {}
@@ -1220,29 +1184,6 @@ declare module 'stripe' {
1220
1184
  session?: string;
1221
1185
  }
1222
1186
 
1223
- interface Rechnung {
1224
- dob?: Rechnung.Dob;
1225
- }
1226
-
1227
- namespace Rechnung {
1228
- interface Dob {
1229
- /**
1230
- * The day of birth, between 1 and 31.
1231
- */
1232
- day: number;
1233
-
1234
- /**
1235
- * The month of birth, between 1 and 12.
1236
- */
1237
- month: number;
1238
-
1239
- /**
1240
- * The four-digit year of birth.
1241
- */
1242
- year: number;
1243
- }
1244
- }
1245
-
1246
1187
  interface RevolutPay {}
1247
1188
 
1248
1189
  interface SepaDebit {
@@ -1326,17 +1267,14 @@ declare module 'stripe' {
1326
1267
  | 'klarna'
1327
1268
  | 'konbini'
1328
1269
  | 'link'
1329
- | 'mb_way'
1330
1270
  | 'mobilepay'
1331
1271
  | 'multibanco'
1332
1272
  | 'oxxo'
1333
1273
  | 'p24'
1334
1274
  | 'paynow'
1335
1275
  | 'paypal'
1336
- | 'payto'
1337
1276
  | 'pix'
1338
1277
  | 'promptpay'
1339
- | 'rechnung'
1340
1278
  | 'revolut_pay'
1341
1279
  | 'sepa_debit'
1342
1280
  | 'sofort'
@@ -1352,11 +1290,6 @@ declare module 'stripe' {
1352
1290
  */
1353
1291
  account_holder_type: UsBankAccount.AccountHolderType | null;
1354
1292
 
1355
- /**
1356
- * Account number of the bank account.
1357
- */
1358
- account_number?: string | null;
1359
-
1360
1293
  /**
1361
1294
  * Account type: checkings or savings. Defaults to checking if omitted.
1362
1295
  */
@@ -133,11 +133,6 @@ declare module 'stripe' {
133
133
  */
134
134
  link?: PaymentMethodCreateParams.Link;
135
135
 
136
- /**
137
- * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
138
- */
139
- mb_way?: PaymentMethodCreateParams.MbWay;
140
-
141
136
  /**
142
137
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
143
138
  */
@@ -178,11 +173,6 @@ declare module 'stripe' {
178
173
  */
179
174
  paypal?: PaymentMethodCreateParams.Paypal;
180
175
 
181
- /**
182
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
183
- */
184
- payto?: PaymentMethodCreateParams.Payto;
185
-
186
176
  /**
187
177
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
188
178
  */
@@ -198,11 +188,6 @@ declare module 'stripe' {
198
188
  */
199
189
  radar_options?: PaymentMethodCreateParams.RadarOptions;
200
190
 
201
- /**
202
- * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
203
- */
204
- rechnung?: PaymentMethodCreateParams.Rechnung;
205
-
206
191
  /**
207
192
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
208
193
  */
@@ -525,8 +510,6 @@ declare module 'stripe' {
525
510
 
526
511
  interface Link {}
527
512
 
528
- interface MbWay {}
529
-
530
513
  interface Mobilepay {}
531
514
 
532
515
  interface Multibanco {}
@@ -574,23 +557,6 @@ declare module 'stripe' {
574
557
 
575
558
  interface Paypal {}
576
559
 
577
- interface Payto {
578
- /**
579
- * The account number for the bank account.
580
- */
581
- account_number?: string;
582
-
583
- /**
584
- * Bank-State-Branch number of the bank account.
585
- */
586
- bsb_number?: string;
587
-
588
- /**
589
- * The PayID alias for the bank account.
590
- */
591
- pay_id?: string;
592
- }
593
-
594
560
  interface Pix {}
595
561
 
596
562
  interface Promptpay {}
@@ -602,32 +568,6 @@ declare module 'stripe' {
602
568
  session?: string;
603
569
  }
604
570
 
605
- interface Rechnung {
606
- /**
607
- * Customer's date of birth
608
- */
609
- dob: Rechnung.Dob;
610
- }
611
-
612
- namespace Rechnung {
613
- interface Dob {
614
- /**
615
- * The day of birth, between 1 and 31.
616
- */
617
- day: number;
618
-
619
- /**
620
- * The month of birth, between 1 and 12.
621
- */
622
- month: number;
623
-
624
- /**
625
- * The four-digit year of birth.
626
- */
627
- year: number;
628
- }
629
- }
630
-
631
571
  interface RevolutPay {}
632
572
 
633
573
  interface SepaDebit {
@@ -674,17 +614,14 @@ declare module 'stripe' {
674
614
  | 'klarna'
675
615
  | 'konbini'
676
616
  | 'link'
677
- | 'mb_way'
678
617
  | 'mobilepay'
679
618
  | 'multibanco'
680
619
  | 'oxxo'
681
620
  | 'p24'
682
621
  | 'paynow'
683
622
  | 'paypal'
684
- | 'payto'
685
623
  | 'pix'
686
624
  | 'promptpay'
687
- | 'rechnung'
688
625
  | 'revolut_pay'
689
626
  | 'sepa_debit'
690
627
  | 'sofort'
@@ -770,16 +707,6 @@ declare module 'stripe' {
770
707
  */
771
708
  metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
772
709
 
773
- /**
774
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
775
- */
776
- payto?: PaymentMethodUpdateParams.Payto;
777
-
778
- /**
779
- * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
780
- */
781
- rechnung?: PaymentMethodUpdateParams.Rechnung;
782
-
783
710
  /**
784
711
  * If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
785
712
  */
@@ -843,49 +770,6 @@ declare module 'stripe' {
843
770
 
844
771
  interface Link {}
845
772
 
846
- interface Payto {
847
- /**
848
- * The account number for the bank account.
849
- */
850
- account_number?: string;
851
-
852
- /**
853
- * Bank-State-Branch number of the bank account.
854
- */
855
- bsb_number?: string;
856
-
857
- /**
858
- * The PayID alias for the bank account.
859
- */
860
- pay_id?: string;
861
- }
862
-
863
- interface Rechnung {
864
- /**
865
- * Customer's date of birth
866
- */
867
- dob: Rechnung.Dob;
868
- }
869
-
870
- namespace Rechnung {
871
- interface Dob {
872
- /**
873
- * The day of birth, between 1 and 31.
874
- */
875
- day: number;
876
-
877
- /**
878
- * The month of birth, between 1 and 12.
879
- */
880
- month: number;
881
-
882
- /**
883
- * The four-digit year of birth.
884
- */
885
- year: number;
886
- }
887
- }
888
-
889
773
  interface UsBankAccount {
890
774
  /**
891
775
  * Bank account holder type.
@@ -945,17 +829,14 @@ declare module 'stripe' {
945
829
  | 'klarna'
946
830
  | 'konbini'
947
831
  | 'link'
948
- | 'mb_way'
949
832
  | 'mobilepay'
950
833
  | 'multibanco'
951
834
  | 'oxxo'
952
835
  | 'p24'
953
836
  | 'paynow'
954
837
  | 'paypal'
955
- | 'payto'
956
838
  | 'pix'
957
839
  | 'promptpay'
958
- | 'rechnung'
959
840
  | 'revolut_pay'
960
841
  | 'sepa_debit'
961
842
  | 'sofort'
package/types/Prices.d.ts CHANGED
@@ -93,11 +93,6 @@ declare module 'stripe' {
93
93
  */
94
94
  metadata: Stripe.Metadata;
95
95
 
96
- /**
97
- * Subscriptions using this price will be migrated to use the new referenced price.
98
- */
99
- migrate_to?: Price.MigrateTo | null;
100
-
101
96
  /**
102
97
  * A brief description of the price, hidden from customers.
103
98
  */
@@ -244,23 +239,6 @@ declare module 'stripe' {
244
239
  preset: number | null;
245
240
  }
246
241
 
247
- interface MigrateTo {
248
- /**
249
- * The behavior controlling at what point in the subscription lifecycle to migrate the price
250
- */
251
- behavior: 'at_cycle_end';
252
-
253
- /**
254
- * The unix timestamp after at which subscriptions will start to migrate to the new price.
255
- */
256
- effective_after: number;
257
-
258
- /**
259
- * The id of the price being migrated to
260
- */
261
- price: string;
262
- }
263
-
264
242
  interface Recurring {
265
243
  /**
266
244
  * Specifies a usage aggregation strategy for prices of `usage_type=metered`. Defaults to `sum`.
@@ -372,11 +372,6 @@ declare module 'stripe' {
372
372
  */
373
373
  metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
374
374
 
375
- /**
376
- * If specified, subscriptions using this price will be updated to use the new referenced price.
377
- */
378
- migrate_to?: Stripe.Emptyable<PriceUpdateParams.MigrateTo>;
379
-
380
375
  /**
381
376
  * A brief description of the price, hidden from customers.
382
377
  */
@@ -474,23 +469,6 @@ declare module 'stripe' {
474
469
  }
475
470
  }
476
471
 
477
- interface MigrateTo {
478
- /**
479
- * The behavior controlling the point in the subscription lifecycle after which to migrate the price. Currently must be `at_cycle_end`.
480
- */
481
- behavior: 'at_cycle_end';
482
-
483
- /**
484
- * The time after which subscriptions should start using the new price.
485
- */
486
- effective_after?: number;
487
-
488
- /**
489
- * The ID of the price object.
490
- */
491
- price: string;
492
- }
493
-
494
472
  type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
495
473
  }
496
474
 
@@ -98,11 +98,6 @@ declare module 'stripe' {
98
98
  */
99
99
  package_dimensions: Product.PackageDimensions | null;
100
100
 
101
- /**
102
- * Provisioning configuration for this product.
103
- */
104
- provisioning?: Product.Provisioning | null;
105
-
106
101
  /**
107
102
  * Whether this product is shipped (i.e., physical goods).
108
103
  */
@@ -169,40 +164,6 @@ declare module 'stripe' {
169
164
  width: number;
170
165
  }
171
166
 
172
- interface Provisioning {
173
- gift_card: Provisioning.GiftCard | null;
174
-
175
- /**
176
- * The type of provisioning, only `gift_card` currently supported.
177
- */
178
- type: 'gift_card';
179
- }
180
-
181
- namespace Provisioning {
182
- interface GiftCard {
183
- fixed_amount: GiftCard.FixedAmount | null;
184
-
185
- /**
186
- * The specific type of gift_card provisioning, only `fixed_amount` currently supported.
187
- */
188
- type: 'fixed_amount';
189
- }
190
-
191
- namespace GiftCard {
192
- interface FixedAmount {
193
- /**
194
- * The initial amount with which the provisioned gift card will be created.
195
- */
196
- amount: number;
197
-
198
- /**
199
- * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
200
- */
201
- currency: string;
202
- }
203
- }
204
- }
205
-
206
167
  type Type = 'good' | 'service';
207
168
  }
208
169
  }
@@ -53,11 +53,6 @@ declare module 'stripe' {
53
53
  */
54
54
  package_dimensions?: ProductCreateParams.PackageDimensions;
55
55
 
56
- /**
57
- * Provisioning configuration for this product.
58
- */
59
- provisioning?: ProductCreateParams.Provisioning;
60
-
61
56
  /**
62
57
  * Whether this product is shipped (i.e., physical goods).
63
58
  */
@@ -256,37 +251,6 @@ declare module 'stripe' {
256
251
  width: number;
257
252
  }
258
253
 
259
- interface Provisioning {
260
- gift_card?: Provisioning.GiftCard;
261
-
262
- /**
263
- * The type of provisioning, only `gift_card` currently supported.
264
- */
265
- type: 'gift_card';
266
- }
267
-
268
- namespace Provisioning {
269
- interface GiftCard {
270
- fixed_amount?: GiftCard.FixedAmount;
271
-
272
- /**
273
- * The specific type of gift_card provisioning, only `fixed_amount` currently supported.
274
- */
275
- type: 'fixed_amount';
276
- }
277
-
278
- namespace GiftCard {
279
- interface FixedAmount {
280
- /**
281
- * The initial amount with which the provisioned gift card will be created.
282
- */
283
- amount: number;
284
-
285
- currency: string;
286
- }
287
- }
288
- }
289
-
290
254
  type Type = 'good' | 'service';
291
255
  }
292
256