stripe 16.13.0-beta.1 → 17.1.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 (221) hide show
  1. package/CHANGELOG.md +139 -849
  2. package/README.md +4 -3
  3. package/VERSION +1 -1
  4. package/cjs/Error.js +31 -4
  5. package/cjs/RequestSender.js +114 -74
  6. package/cjs/StripeResource.js +8 -3
  7. package/cjs/apiVersion.js +2 -3
  8. package/cjs/autoPagination.js +51 -7
  9. package/cjs/crypto/CryptoProvider.js +6 -0
  10. package/cjs/crypto/NodeCryptoProvider.js +7 -0
  11. package/cjs/crypto/SubtleCryptoProvider.js +4 -0
  12. package/cjs/resources/{Capital/FinancingSummary.js → Billing/CreditBalanceSummary.js} +3 -3
  13. package/cjs/resources/{FinancialConnections/Institutions.js → Billing/CreditBalanceTransactions.js} +4 -4
  14. package/cjs/resources/Billing/CreditGrants.js +30 -0
  15. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  16. package/cjs/resources/Invoices.js +0 -17
  17. package/cjs/resources/PaymentIntents.js +0 -4
  18. package/cjs/resources/Quotes.js +0 -32
  19. package/cjs/resources/SubscriptionSchedules.js +0 -4
  20. package/cjs/resources/Terminal/Readers.js +0 -12
  21. package/cjs/resources/V2/Billing/MeterEventAdjustments.js +12 -0
  22. package/cjs/resources/V2/Billing/MeterEventSession.js +12 -0
  23. package/cjs/resources/V2/Billing/MeterEventStream.js +13 -0
  24. package/cjs/resources/V2/Billing/MeterEvents.js +9 -0
  25. package/cjs/resources/V2/Billing.js +18 -0
  26. package/cjs/resources/V2/Core/Events.js +14 -0
  27. package/cjs/resources/V2/Core.js +12 -0
  28. package/cjs/resources/V2.js +14 -0
  29. package/cjs/resources.js +18 -42
  30. package/cjs/stripe.core.js +20 -8
  31. package/cjs/utils.js +41 -10
  32. package/esm/Error.js +27 -2
  33. package/esm/RequestSender.js +115 -75
  34. package/esm/StripeResource.js +9 -4
  35. package/esm/apiVersion.js +1 -2
  36. package/esm/autoPagination.js +52 -8
  37. package/esm/crypto/CryptoProvider.js +6 -0
  38. package/esm/crypto/NodeCryptoProvider.js +7 -0
  39. package/esm/crypto/SubtleCryptoProvider.js +4 -0
  40. package/esm/resources/{Capital/FinancingSummary.js → Billing/CreditBalanceSummary.js} +2 -2
  41. package/esm/resources/{FinancialConnections/Institutions.js → Billing/CreditBalanceTransactions.js} +3 -3
  42. package/esm/resources/Billing/CreditGrants.js +27 -0
  43. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  44. package/esm/resources/Invoices.js +0 -17
  45. package/esm/resources/PaymentIntents.js +0 -4
  46. package/esm/resources/Quotes.js +0 -32
  47. package/esm/resources/SubscriptionSchedules.js +0 -4
  48. package/esm/resources/Terminal/Readers.js +0 -12
  49. package/esm/resources/V2/Billing/MeterEventAdjustments.js +9 -0
  50. package/esm/resources/V2/Billing/MeterEventSession.js +9 -0
  51. package/esm/resources/V2/Billing/MeterEventStream.js +10 -0
  52. package/esm/resources/V2/Billing/MeterEvents.js +6 -0
  53. package/esm/resources/V2/Billing.js +15 -0
  54. package/esm/resources/V2/Core/Events.js +11 -0
  55. package/esm/resources/V2/Core.js +9 -0
  56. package/esm/resources/V2.js +11 -0
  57. package/esm/resources.js +7 -29
  58. package/esm/stripe.core.js +21 -9
  59. package/esm/utils.js +38 -9
  60. package/package.json +1 -1
  61. package/types/AccountLinksResource.d.ts +1 -5
  62. package/types/AccountSessions.d.ts +0 -45
  63. package/types/AccountSessionsResource.d.ts +0 -288
  64. package/types/Accounts.d.ts +1 -113
  65. package/types/AccountsResource.d.ts +0 -270
  66. package/types/Billing/Alerts.d.ts +17 -13
  67. package/types/Billing/AlertsResource.d.ts +18 -21
  68. package/types/Billing/CreditBalanceSummary.d.ts +94 -0
  69. package/types/Billing/CreditBalanceSummaryResource.d.ts +64 -0
  70. package/types/Billing/CreditBalanceTransactions.d.ts +159 -0
  71. package/types/Billing/CreditBalanceTransactionsResource.d.ts +54 -0
  72. package/types/Billing/CreditGrants.d.ts +124 -0
  73. package/types/Billing/CreditGrantsResource.d.ts +219 -0
  74. package/types/BillingPortal/ConfigurationsResource.d.ts +2 -2
  75. package/types/Capabilities.d.ts +1 -1
  76. package/types/Charges.d.ts +0 -71
  77. package/types/ChargesResource.d.ts +0 -1294
  78. package/types/Checkout/Sessions.d.ts +4 -296
  79. package/types/Checkout/SessionsResource.d.ts +6 -352
  80. package/types/ConfirmationTokens.d.ts +0 -67
  81. package/types/Coupons.d.ts +1 -1
  82. package/types/CouponsResource.d.ts +1 -1
  83. package/types/CreditNoteLineItems.d.ts +30 -0
  84. package/types/CreditNotes.d.ts +27 -18
  85. package/types/CreditNotesResource.d.ts +0 -51
  86. package/types/Customers.d.ts +2 -3
  87. package/types/CustomersResource.d.ts +0 -3
  88. package/types/Disputes.d.ts +0 -152
  89. package/types/DisputesResource.d.ts +0 -120
  90. package/types/Errors.d.ts +32 -2
  91. package/types/EventTypes.d.ts +2 -545
  92. package/types/Events.d.ts +0 -90
  93. package/types/FinancialConnections/Accounts.d.ts +1 -29
  94. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  95. package/types/FinancialConnections/Sessions.d.ts +1 -49
  96. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  97. package/types/InvoiceItems.d.ts +0 -5
  98. package/types/InvoiceItemsResource.d.ts +0 -98
  99. package/types/InvoiceLineItems.d.ts +29 -20
  100. package/types/Invoices.d.ts +25 -108
  101. package/types/InvoicesResource.d.ts +1835 -5493
  102. package/types/Issuing/CardholdersResource.d.ts +1 -2
  103. package/types/Issuing/Transactions.d.ts +0 -2
  104. package/types/Issuing/TransactionsResource.d.ts +0 -5
  105. package/types/LineItems.d.ts +0 -7
  106. package/types/Mandates.d.ts +0 -77
  107. package/types/PaymentIntents.d.ts +1 -503
  108. package/types/PaymentIntentsResource.d.ts +3464 -7064
  109. package/types/PaymentLinks.d.ts +0 -3
  110. package/types/PaymentLinksResource.d.ts +0 -6
  111. package/types/PaymentMethodConfigurations.d.ts +0 -36
  112. package/types/PaymentMethodConfigurationsResource.d.ts +0 -50
  113. package/types/PaymentMethods.d.ts +0 -67
  114. package/types/PaymentMethodsResource.d.ts +0 -88
  115. package/types/Prices.d.ts +0 -22
  116. package/types/PricesResource.d.ts +0 -22
  117. package/types/Products.d.ts +0 -39
  118. package/types/ProductsResource.d.ts +28 -37
  119. package/types/PromotionCodes.d.ts +1 -1
  120. package/types/PromotionCodesResource.d.ts +3 -1
  121. package/types/Quotes.d.ts +1 -596
  122. package/types/QuotesResource.d.ts +199 -2531
  123. package/types/SetupAttempts.d.ts +0 -10
  124. package/types/SetupIntents.d.ts +1 -111
  125. package/types/SetupIntentsResource.d.ts +3 -522
  126. package/types/Sources.d.ts +0 -23
  127. package/types/SubscriptionItems.d.ts +0 -21
  128. package/types/SubscriptionItemsResource.d.ts +0 -109
  129. package/types/SubscriptionSchedules.d.ts +0 -200
  130. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  131. package/types/Subscriptions.d.ts +1 -82
  132. package/types/SubscriptionsResource.d.ts +5 -350
  133. package/types/Tax/Settings.d.ts +1 -1
  134. package/types/Terminal/Readers.d.ts +0 -278
  135. package/types/Terminal/ReadersResource.d.ts +13 -212
  136. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -63
  137. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  138. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  139. package/types/ThinEvent.d.ts +36 -0
  140. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  141. package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
  142. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  143. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  144. package/types/Treasury/ReceivedCredits.d.ts +5 -27
  145. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  146. package/types/V2/Billing/MeterEventAdjustments.d.ts +65 -0
  147. package/types/V2/Billing/MeterEventAdjustmentsResource.d.ts +47 -0
  148. package/types/V2/Billing/MeterEventSessionResource.d.ts +26 -0
  149. package/types/V2/Billing/MeterEventSessions.d.ts +45 -0
  150. package/types/V2/Billing/MeterEventStreamResource.d.ts +62 -0
  151. package/types/V2/Billing/MeterEvents.d.ts +54 -0
  152. package/types/V2/Billing/MeterEventsResource.d.ts +52 -0
  153. package/types/V2/BillingResource.d.ts +14 -0
  154. package/types/V2/Core/EventsResource.d.ts +57 -0
  155. package/types/V2/CoreResource.d.ts +11 -0
  156. package/types/V2/EventTypes.d.ts +214 -0
  157. package/types/V2/Events.d.ts +75 -0
  158. package/types/V2Resource.d.ts +10 -0
  159. package/types/WebhookEndpointsResource.d.ts +2 -65
  160. package/types/index.d.ts +67 -53
  161. package/types/lib.d.ts +1 -6
  162. package/types/test/typescriptTest.ts +3 -3
  163. package/cjs/resources/AccountNotices.js +0 -21
  164. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  165. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  166. package/cjs/resources/GiftCards/Cards.js +0 -23
  167. package/cjs/resources/GiftCards/Transactions.js +0 -33
  168. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  169. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  170. package/cjs/resources/Margins.js +0 -22
  171. package/cjs/resources/Orders.js +0 -24
  172. package/cjs/resources/Tax/Associations.js +0 -9
  173. package/cjs/resources/Tax/Forms.js +0 -20
  174. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  175. package/esm/resources/AccountNotices.js +0 -18
  176. package/esm/resources/Capital/FinancingOffers.js +0 -18
  177. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  178. package/esm/resources/GiftCards/Cards.js +0 -20
  179. package/esm/resources/GiftCards/Transactions.js +0 -30
  180. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  181. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  182. package/esm/resources/Margins.js +0 -19
  183. package/esm/resources/Orders.js +0 -21
  184. package/esm/resources/Tax/Associations.js +0 -6
  185. package/esm/resources/Tax/Forms.js +0 -17
  186. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  187. package/types/AccountNotices.d.ts +0 -113
  188. package/types/AccountNoticesResource.d.ts +0 -98
  189. package/types/Billing/MeterErrorReports.d.ts +0 -106
  190. package/types/Capital/FinancingOffers.d.ts +0 -188
  191. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  192. package/types/Capital/FinancingSummary.d.ts +0 -106
  193. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  194. package/types/Capital/FinancingTransactions.d.ts +0 -135
  195. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  196. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  197. package/types/FinancialConnections/Institutions.d.ts +0 -93
  198. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  199. package/types/GiftCards/Cards.d.ts +0 -118
  200. package/types/GiftCards/CardsResource.d.ts +0 -159
  201. package/types/GiftCards/Transactions.d.ts +0 -129
  202. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  203. package/types/InvoicePayments.d.ts +0 -138
  204. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  205. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  206. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  207. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  208. package/types/Issuing/Settlements.d.ts +0 -103
  209. package/types/Margins.d.ts +0 -56
  210. package/types/MarginsResource.d.ts +0 -114
  211. package/types/Orders.d.ts +0 -1084
  212. package/types/OrdersResource.d.ts +0 -2765
  213. package/types/QuoteLines.d.ts +0 -634
  214. package/types/QuotePreviewInvoices.d.ts +0 -1548
  215. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  216. package/types/Tax/Associations.d.ts +0 -126
  217. package/types/Tax/AssociationsResource.d.ts +0 -29
  218. package/types/Tax/Forms.d.ts +0 -133
  219. package/types/Tax/FormsResource.d.ts +0 -90
  220. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  221. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
@@ -557,17 +557,14 @@ declare module 'stripe' {
557
557
  | 'klarna'
558
558
  | 'konbini'
559
559
  | 'link'
560
- | 'mb_way'
561
560
  | 'mobilepay'
562
561
  | 'multibanco'
563
562
  | 'oxxo'
564
563
  | 'p24'
565
564
  | 'paynow'
566
565
  | 'paypal'
567
- | 'payto'
568
566
  | 'pix'
569
567
  | 'promptpay'
570
- | 'rechnung'
571
568
  | 'sepa_debit'
572
569
  | 'sofort'
573
570
  | 'swish'
@@ -616,17 +616,14 @@ declare module 'stripe' {
616
616
  | 'klarna'
617
617
  | 'konbini'
618
618
  | 'link'
619
- | 'mb_way'
620
619
  | 'mobilepay'
621
620
  | 'multibanco'
622
621
  | 'oxxo'
623
622
  | 'p24'
624
623
  | 'paynow'
625
624
  | 'paypal'
626
- | 'payto'
627
625
  | 'pix'
628
626
  | 'promptpay'
629
- | 'rechnung'
630
627
  | 'sepa_debit'
631
628
  | 'sofort'
632
629
  | 'swish'
@@ -1543,17 +1540,14 @@ declare module 'stripe' {
1543
1540
  | 'klarna'
1544
1541
  | 'konbini'
1545
1542
  | 'link'
1546
- | 'mb_way'
1547
1543
  | 'mobilepay'
1548
1544
  | 'multibanco'
1549
1545
  | 'oxxo'
1550
1546
  | 'p24'
1551
1547
  | 'paynow'
1552
1548
  | 'paypal'
1553
- | 'payto'
1554
1549
  | 'pix'
1555
1550
  | 'promptpay'
1556
- | 'rechnung'
1557
1551
  | 'sepa_debit'
1558
1552
  | 'sofort'
1559
1553
  | 'swish'
@@ -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,11 +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
710
  /**
779
711
  * If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
780
712
  */
@@ -838,23 +770,6 @@ declare module 'stripe' {
838
770
 
839
771
  interface Link {}
840
772
 
841
- interface Payto {
842
- /**
843
- * The account number for the bank account.
844
- */
845
- account_number?: string;
846
-
847
- /**
848
- * Bank-State-Branch number of the bank account.
849
- */
850
- bsb_number?: string;
851
-
852
- /**
853
- * The PayID alias for the bank account.
854
- */
855
- pay_id?: string;
856
- }
857
-
858
773
  interface UsBankAccount {
859
774
  /**
860
775
  * Bank account holder type.
@@ -914,17 +829,14 @@ declare module 'stripe' {
914
829
  | 'klarna'
915
830
  | 'konbini'
916
831
  | 'link'
917
- | 'mb_way'
918
832
  | 'mobilepay'
919
833
  | 'multibanco'
920
834
  | 'oxxo'
921
835
  | 'p24'
922
836
  | 'paynow'
923
837
  | 'paypal'
924
- | 'payto'
925
838
  | 'pix'
926
839
  | 'promptpay'
927
- | 'rechnung'
928
840
  | 'revolut_pay'
929
841
  | 'sepa_debit'
930
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
  }