stripe 16.9.0-beta.1 → 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 (174) hide show
  1. package/CHANGELOG.md +132 -809
  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 +4 -33
  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 +2 -30
  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 -106
  37. package/types/AccountsResource.d.ts +0 -246
  38. package/types/Charges.d.ts +3 -68
  39. package/types/ChargesResource.d.ts +6 -1296
  40. package/types/Checkout/Sessions.d.ts +6 -186
  41. package/types/Checkout/SessionsResource.d.ts +9 -351
  42. package/types/ConfirmationTokens.d.ts +0 -62
  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/CustomerSessions.d.ts +4 -0
  48. package/types/CustomersResource.d.ts +4 -4
  49. package/types/Disputes.d.ts +0 -158
  50. package/types/DisputesResource.d.ts +0 -120
  51. package/types/EventTypes.d.ts +0 -460
  52. package/types/Events.d.ts +0 -85
  53. package/types/FileLinksResource.d.ts +1 -1
  54. package/types/Files.d.ts +1 -0
  55. package/types/FilesResource.d.ts +3 -1
  56. package/types/FinancialConnections/Accounts.d.ts +1 -29
  57. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  58. package/types/FinancialConnections/Sessions.d.ts +1 -49
  59. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  60. package/types/InvoiceItems.d.ts +0 -5
  61. package/types/InvoiceItemsResource.d.ts +0 -98
  62. package/types/InvoiceLineItems.d.ts +3 -23
  63. package/types/Invoices.d.ts +3 -117
  64. package/types/InvoicesResource.d.ts +1759 -5414
  65. package/types/Issuing/CardholdersResource.d.ts +1 -2
  66. package/types/Issuing/Cards.d.ts +1 -1
  67. package/types/LineItems.d.ts +1 -8
  68. package/types/Mandates.d.ts +0 -77
  69. package/types/PaymentIntents.d.ts +4 -488
  70. package/types/PaymentIntentsResource.d.ts +3460 -6970
  71. package/types/PaymentLinks.d.ts +0 -1
  72. package/types/PaymentLinksResource.d.ts +8 -6
  73. package/types/PaymentMethodConfigurations.d.ts +0 -36
  74. package/types/PaymentMethodConfigurationsResource.d.ts +0 -50
  75. package/types/PaymentMethods.d.ts +0 -62
  76. package/types/PaymentMethodsResource.d.ts +0 -110
  77. package/types/Prices.d.ts +0 -22
  78. package/types/PricesResource.d.ts +0 -22
  79. package/types/Products.d.ts +0 -39
  80. package/types/ProductsResource.d.ts +0 -36
  81. package/types/Quotes.d.ts +1 -596
  82. package/types/QuotesResource.d.ts +266 -3175
  83. package/types/SetupAttempts.d.ts +0 -9
  84. package/types/SetupIntents.d.ts +1 -110
  85. package/types/SetupIntentsResource.d.ts +3 -498
  86. package/types/Sources.d.ts +0 -23
  87. package/types/SubscriptionItems.d.ts +0 -21
  88. package/types/SubscriptionItemsResource.d.ts +0 -109
  89. package/types/SubscriptionSchedules.d.ts +0 -200
  90. package/types/SubscriptionSchedulesResource.d.ts +15 -1233
  91. package/types/Subscriptions.d.ts +1 -82
  92. package/types/SubscriptionsResource.d.ts +4 -349
  93. package/types/Tax/Calculations.d.ts +2 -1
  94. package/types/Tax/CalculationsResource.d.ts +3 -2
  95. package/types/Tax/Transactions.d.ts +2 -1
  96. package/types/TaxIds.d.ts +2 -1
  97. package/types/TaxIdsResource.d.ts +2 -1
  98. package/types/Terminal/Readers.d.ts +0 -278
  99. package/types/Terminal/ReadersResource.d.ts +0 -208
  100. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -55
  101. package/types/TestHelpers/TestClocks.d.ts +15 -0
  102. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  103. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  104. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  105. package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
  106. package/types/Treasury/InboundTransfers.d.ts +3 -1
  107. package/types/Treasury/OutboundPayments.d.ts +3 -1
  108. package/types/Treasury/OutboundTransfers.d.ts +3 -27
  109. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  110. package/types/Treasury/ReceivedCredits.d.ts +3 -27
  111. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  112. package/types/Treasury/TransactionEntries.d.ts +9 -3
  113. package/types/Treasury/Transactions.d.ts +9 -3
  114. package/types/WebhookEndpointsResource.d.ts +0 -54
  115. package/types/Webhooks.d.ts +37 -28
  116. package/types/index.d.ts +0 -67
  117. package/types/lib.d.ts +0 -12
  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/FinancialConnections/Institutions.js +0 -17
  123. package/cjs/resources/GiftCards/Cards.js +0 -23
  124. package/cjs/resources/GiftCards/Transactions.js +0 -33
  125. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  126. package/cjs/resources/Margins.js +0 -22
  127. package/cjs/resources/Orders.js +0 -24
  128. package/cjs/resources/QuotePhases.js +0 -22
  129. package/cjs/resources/Tax/Associations.js +0 -9
  130. package/cjs/resources/Tax/Forms.js +0 -20
  131. package/esm/resources/AccountNotices.js +0 -18
  132. package/esm/resources/Capital/FinancingOffers.js +0 -18
  133. package/esm/resources/Capital/FinancingSummary.js +0 -9
  134. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  135. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  136. package/esm/resources/GiftCards/Cards.js +0 -20
  137. package/esm/resources/GiftCards/Transactions.js +0 -30
  138. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  139. package/esm/resources/Margins.js +0 -19
  140. package/esm/resources/Orders.js +0 -21
  141. package/esm/resources/QuotePhases.js +0 -19
  142. package/esm/resources/Tax/Associations.js +0 -6
  143. package/esm/resources/Tax/Forms.js +0 -17
  144. package/types/AccountNotices.d.ts +0 -113
  145. package/types/AccountNoticesResource.d.ts +0 -98
  146. package/types/Capital/FinancingOffers.d.ts +0 -188
  147. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  148. package/types/Capital/FinancingSummary.d.ts +0 -106
  149. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  150. package/types/Capital/FinancingTransactions.d.ts +0 -135
  151. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  152. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  153. package/types/FinancialConnections/Institutions.d.ts +0 -93
  154. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  155. package/types/GiftCards/Cards.d.ts +0 -118
  156. package/types/GiftCards/CardsResource.d.ts +0 -159
  157. package/types/GiftCards/Transactions.d.ts +0 -129
  158. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  159. package/types/InvoicePayments.d.ts +0 -138
  160. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -446
  161. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1017
  162. package/types/Margins.d.ts +0 -56
  163. package/types/MarginsResource.d.ts +0 -114
  164. package/types/Orders.d.ts +0 -1083
  165. package/types/OrdersResource.d.ts +0 -2763
  166. package/types/QuoteLines.d.ts +0 -634
  167. package/types/QuotePhases.d.ts +0 -198
  168. package/types/QuotePhasesResource.d.ts +0 -67
  169. package/types/QuotePreviewInvoices.d.ts +0 -1530
  170. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  171. package/types/Tax/Associations.d.ts +0 -126
  172. package/types/Tax/AssociationsResource.d.ts +0 -29
  173. package/types/Tax/Forms.d.ts +0 -133
  174. 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'
@@ -572,12 +572,14 @@ declare module 'stripe' {
572
572
  setup_future_usage?: PaymentIntentData.SetupFutureUsage;
573
573
 
574
574
  /**
575
- * Text that appears on the customer's statement as the [statement descriptor](https://docs.stripe.com/get-started/account/statement-descriptors) for a non-card charge. This value overrides the account's default statement descriptor. Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
575
+ * Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
576
+ *
577
+ * Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
576
578
  */
577
579
  statement_descriptor?: string;
578
580
 
579
581
  /**
580
- * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
582
+ * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
581
583
  */
582
584
  statement_descriptor_suffix?: string;
583
585
 
@@ -620,7 +622,6 @@ declare module 'stripe' {
620
622
  | 'p24'
621
623
  | 'paynow'
622
624
  | 'paypal'
623
- | 'payto'
624
625
  | 'pix'
625
626
  | 'promptpay'
626
627
  | 'sepa_debit'
@@ -1492,12 +1493,14 @@ declare module 'stripe' {
1492
1493
  metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
1493
1494
 
1494
1495
  /**
1495
- * Text that appears on the customer's statement as the [statement descriptor](https://docs.stripe.com/get-started/account/statement-descriptors) for a non-card charge. This value overrides the account's default statement descriptor. Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
1496
+ * Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
1497
+ *
1498
+ * Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
1496
1499
  */
1497
1500
  statement_descriptor?: Stripe.Emptyable<string>;
1498
1501
 
1499
1502
  /**
1500
- * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
1503
+ * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
1501
1504
  */
1502
1505
  statement_descriptor_suffix?: Stripe.Emptyable<string>;
1503
1506
 
@@ -1534,7 +1537,6 @@ declare module 'stripe' {
1534
1537
  | 'p24'
1535
1538
  | 'paynow'
1536
1539
  | 'paypal'
1537
- | 'payto'
1538
1540
  | 'pix'
1539
1541
  | 'promptpay'
1540
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.
@@ -105,8 +105,6 @@ declare module 'stripe' {
105
105
 
106
106
  paypal?: PaymentMethod.Paypal;
107
107
 
108
- payto?: PaymentMethod.Payto;
109
-
110
108
  pix?: PaymentMethod.Pix;
111
109
 
112
110
  promptpay?: PaymentMethod.Promptpay;
@@ -116,8 +114,6 @@ declare module 'stripe' {
116
114
  */
117
115
  radar_options?: PaymentMethod.RadarOptions;
118
116
 
119
- rechnung?: PaymentMethod.Rechnung;
120
-
121
117
  revolut_pay?: PaymentMethod.RevolutPay;
122
118
 
123
119
  sepa_debit?: PaymentMethod.SepaDebit;
@@ -1165,11 +1161,6 @@ declare module 'stripe' {
1165
1161
  interface Paynow {}
1166
1162
 
1167
1163
  interface Paypal {
1168
- /**
1169
- * Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
1170
- */
1171
- fingerprint?: string | null;
1172
-
1173
1164
  /**
1174
1165
  * Owner's email. Values are provided by PayPal directly
1175
1166
  * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
@@ -1180,29 +1171,6 @@ declare module 'stripe' {
1180
1171
  * PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
1181
1172
  */
1182
1173
  payer_id: string | null;
1183
-
1184
- /**
1185
- * Owner's verified email. Values are verified or provided by PayPal directly
1186
- * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1187
- */
1188
- verified_email?: string | null;
1189
- }
1190
-
1191
- interface Payto {
1192
- /**
1193
- * Bank-State-Branch number of the bank account.
1194
- */
1195
- bsb_number: string | null;
1196
-
1197
- /**
1198
- * Last four digits of the bank account number.
1199
- */
1200
- last4: string | null;
1201
-
1202
- /**
1203
- * The PayID alias for the bank account.
1204
- */
1205
- pay_id: string | null;
1206
1174
  }
1207
1175
 
1208
1176
  interface Pix {}
@@ -1216,29 +1184,6 @@ declare module 'stripe' {
1216
1184
  session?: string;
1217
1185
  }
1218
1186
 
1219
- interface Rechnung {
1220
- dob?: Rechnung.Dob;
1221
- }
1222
-
1223
- namespace Rechnung {
1224
- interface Dob {
1225
- /**
1226
- * The day of birth, between 1 and 31.
1227
- */
1228
- day: number;
1229
-
1230
- /**
1231
- * The month of birth, between 1 and 12.
1232
- */
1233
- month: number;
1234
-
1235
- /**
1236
- * The four-digit year of birth.
1237
- */
1238
- year: number;
1239
- }
1240
- }
1241
-
1242
1187
  interface RevolutPay {}
1243
1188
 
1244
1189
  interface SepaDebit {
@@ -1328,10 +1273,8 @@ declare module 'stripe' {
1328
1273
  | 'p24'
1329
1274
  | 'paynow'
1330
1275
  | 'paypal'
1331
- | 'payto'
1332
1276
  | 'pix'
1333
1277
  | 'promptpay'
1334
- | 'rechnung'
1335
1278
  | 'revolut_pay'
1336
1279
  | 'sepa_debit'
1337
1280
  | 'sofort'
@@ -1347,11 +1290,6 @@ declare module 'stripe' {
1347
1290
  */
1348
1291
  account_holder_type: UsBankAccount.AccountHolderType | null;
1349
1292
 
1350
- /**
1351
- * Account number of the bank account.
1352
- */
1353
- account_number?: string | null;
1354
-
1355
1293
  /**
1356
1294
  * Account type: checkings or savings. Defaults to checking if omitted.
1357
1295
  */
@@ -173,11 +173,6 @@ declare module 'stripe' {
173
173
  */
174
174
  paypal?: PaymentMethodCreateParams.Paypal;
175
175
 
176
- /**
177
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
178
- */
179
- payto?: PaymentMethodCreateParams.Payto;
180
-
181
176
  /**
182
177
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
183
178
  */
@@ -193,11 +188,6 @@ declare module 'stripe' {
193
188
  */
194
189
  radar_options?: PaymentMethodCreateParams.RadarOptions;
195
190
 
196
- /**
197
- * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
198
- */
199
- rechnung?: PaymentMethodCreateParams.Rechnung;
200
-
201
191
  /**
202
192
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
203
193
  */
@@ -567,23 +557,6 @@ declare module 'stripe' {
567
557
 
568
558
  interface Paypal {}
569
559
 
570
- interface Payto {
571
- /**
572
- * The account number for the bank account.
573
- */
574
- account_number?: string;
575
-
576
- /**
577
- * Bank-State-Branch number of the bank account.
578
- */
579
- bsb_number?: string;
580
-
581
- /**
582
- * The PayID alias for the bank account.
583
- */
584
- pay_id?: string;
585
- }
586
-
587
560
  interface Pix {}
588
561
 
589
562
  interface Promptpay {}
@@ -595,32 +568,6 @@ declare module 'stripe' {
595
568
  session?: string;
596
569
  }
597
570
 
598
- interface Rechnung {
599
- /**
600
- * Customer's date of birth
601
- */
602
- dob: Rechnung.Dob;
603
- }
604
-
605
- namespace Rechnung {
606
- interface Dob {
607
- /**
608
- * The day of birth, between 1 and 31.
609
- */
610
- day: number;
611
-
612
- /**
613
- * The month of birth, between 1 and 12.
614
- */
615
- month: number;
616
-
617
- /**
618
- * The four-digit year of birth.
619
- */
620
- year: number;
621
- }
622
- }
623
-
624
571
  interface RevolutPay {}
625
572
 
626
573
  interface SepaDebit {
@@ -673,10 +620,8 @@ declare module 'stripe' {
673
620
  | 'p24'
674
621
  | 'paynow'
675
622
  | 'paypal'
676
- | 'payto'
677
623
  | 'pix'
678
624
  | 'promptpay'
679
- | 'rechnung'
680
625
  | 'revolut_pay'
681
626
  | 'sepa_debit'
682
627
  | 'sofort'
@@ -762,16 +707,6 @@ declare module 'stripe' {
762
707
  */
763
708
  metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
764
709
 
765
- /**
766
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
767
- */
768
- payto?: PaymentMethodUpdateParams.Payto;
769
-
770
- /**
771
- * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
772
- */
773
- rechnung?: PaymentMethodUpdateParams.Rechnung;
774
-
775
710
  /**
776
711
  * If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
777
712
  */
@@ -835,49 +770,6 @@ declare module 'stripe' {
835
770
 
836
771
  interface Link {}
837
772
 
838
- interface Payto {
839
- /**
840
- * The account number for the bank account.
841
- */
842
- account_number?: string;
843
-
844
- /**
845
- * Bank-State-Branch number of the bank account.
846
- */
847
- bsb_number?: string;
848
-
849
- /**
850
- * The PayID alias for the bank account.
851
- */
852
- pay_id?: string;
853
- }
854
-
855
- interface Rechnung {
856
- /**
857
- * Customer's date of birth
858
- */
859
- dob: Rechnung.Dob;
860
- }
861
-
862
- namespace Rechnung {
863
- interface Dob {
864
- /**
865
- * The day of birth, between 1 and 31.
866
- */
867
- day: number;
868
-
869
- /**
870
- * The month of birth, between 1 and 12.
871
- */
872
- month: number;
873
-
874
- /**
875
- * The four-digit year of birth.
876
- */
877
- year: number;
878
- }
879
- }
880
-
881
773
  interface UsBankAccount {
882
774
  /**
883
775
  * Bank account holder type.
@@ -943,10 +835,8 @@ declare module 'stripe' {
943
835
  | 'p24'
944
836
  | 'paynow'
945
837
  | 'paypal'
946
- | 'payto'
947
838
  | 'pix'
948
839
  | 'promptpay'
949
- | 'rechnung'
950
840
  | 'revolut_pay'
951
841
  | 'sepa_debit'
952
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