stripe 17.1.0 → 17.2.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/CHANGELOG.md +874 -112
  2. package/README.md +6 -7
  3. package/VERSION +1 -1
  4. package/cjs/resources/AccountNotices.js +21 -0
  5. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  6. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  7. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  8. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  9. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  10. package/cjs/resources/GiftCards/Cards.js +23 -0
  11. package/cjs/resources/GiftCards/Transactions.js +33 -0
  12. package/cjs/resources/Invoices.js +17 -0
  13. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  14. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  15. package/cjs/resources/Margins.js +22 -0
  16. package/cjs/resources/Orders.js +24 -0
  17. package/cjs/resources/PaymentIntents.js +4 -0
  18. package/cjs/resources/Quotes.js +32 -0
  19. package/cjs/resources/SubscriptionSchedules.js +4 -0
  20. package/cjs/resources/Tax/Associations.js +9 -0
  21. package/cjs/resources/Tax/Forms.js +20 -0
  22. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  23. package/cjs/resources/Terminal/Readers.js +12 -0
  24. package/cjs/resources.js +42 -10
  25. package/cjs/stripe.core.js +1 -1
  26. package/esm/resources/AccountNotices.js +18 -0
  27. package/esm/resources/Capital/FinancingOffers.js +18 -0
  28. package/esm/resources/Capital/FinancingSummary.js +9 -0
  29. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  30. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  31. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  32. package/esm/resources/GiftCards/Cards.js +20 -0
  33. package/esm/resources/GiftCards/Transactions.js +30 -0
  34. package/esm/resources/Invoices.js +17 -0
  35. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  36. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  37. package/esm/resources/Margins.js +19 -0
  38. package/esm/resources/Orders.js +21 -0
  39. package/esm/resources/PaymentIntents.js +4 -0
  40. package/esm/resources/Quotes.js +32 -0
  41. package/esm/resources/SubscriptionSchedules.js +4 -0
  42. package/esm/resources/Tax/Associations.js +6 -0
  43. package/esm/resources/Tax/Forms.js +17 -0
  44. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  45. package/esm/resources/Terminal/Readers.js +12 -0
  46. package/esm/resources.js +29 -0
  47. package/esm/stripe.core.js +1 -1
  48. package/package.json +1 -1
  49. package/types/AccountLinksResource.d.ts +5 -1
  50. package/types/AccountNotices.d.ts +113 -0
  51. package/types/AccountNoticesResource.d.ts +98 -0
  52. package/types/AccountSessions.d.ts +45 -0
  53. package/types/AccountSessionsResource.d.ts +309 -0
  54. package/types/Accounts.d.ts +113 -1
  55. package/types/AccountsResource.d.ts +270 -0
  56. package/types/Billing/MeterErrorReports.d.ts +106 -0
  57. package/types/Capital/FinancingOffers.d.ts +188 -0
  58. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  59. package/types/Capital/FinancingSummary.d.ts +106 -0
  60. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  61. package/types/Capital/FinancingTransactions.d.ts +135 -0
  62. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  63. package/types/Charges.d.ts +71 -0
  64. package/types/ChargesResource.d.ts +1294 -0
  65. package/types/Checkout/Sessions.d.ts +296 -4
  66. package/types/Checkout/SessionsResource.d.ts +351 -5
  67. package/types/ConfirmationTokens.d.ts +67 -0
  68. package/types/Coupons.d.ts +1 -1
  69. package/types/CouponsResource.d.ts +1 -1
  70. package/types/CreditNotes.d.ts +21 -0
  71. package/types/CreditNotesResource.d.ts +51 -0
  72. package/types/CustomersResource.d.ts +3 -0
  73. package/types/Disputes.d.ts +152 -0
  74. package/types/DisputesResource.d.ts +120 -0
  75. package/types/EventTypes.d.ts +545 -0
  76. package/types/Events.d.ts +90 -0
  77. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  78. package/types/FinancialConnections/Accounts.d.ts +29 -1
  79. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  80. package/types/FinancialConnections/Institutions.d.ts +93 -0
  81. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  82. package/types/FinancialConnections/Sessions.d.ts +49 -1
  83. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  84. package/types/GiftCards/Cards.d.ts +118 -0
  85. package/types/GiftCards/CardsResource.d.ts +159 -0
  86. package/types/GiftCards/Transactions.d.ts +129 -0
  87. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  88. package/types/InvoiceItems.d.ts +5 -0
  89. package/types/InvoiceItemsResource.d.ts +98 -0
  90. package/types/InvoiceLineItems.d.ts +28 -1
  91. package/types/InvoicePayments.d.ts +138 -0
  92. package/types/Invoices.d.ts +123 -2
  93. package/types/InvoicesResource.d.ts +5454 -1796
  94. package/types/Issuing/CardholdersResource.d.ts +2 -1
  95. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  96. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  97. package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
  98. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  99. package/types/Issuing/Settlements.d.ts +103 -0
  100. package/types/Issuing/Transactions.d.ts +2 -0
  101. package/types/Issuing/TransactionsResource.d.ts +5 -0
  102. package/types/LineItems.d.ts +7 -0
  103. package/types/Mandates.d.ts +77 -0
  104. package/types/Margins.d.ts +56 -0
  105. package/types/MarginsResource.d.ts +114 -0
  106. package/types/Orders.d.ts +1084 -0
  107. package/types/OrdersResource.d.ts +2765 -0
  108. package/types/PaymentIntents.d.ts +503 -1
  109. package/types/PaymentIntentsResource.d.ts +7000 -3400
  110. package/types/PaymentLinks.d.ts +3 -0
  111. package/types/PaymentLinksResource.d.ts +6 -0
  112. package/types/PaymentMethodConfigurations.d.ts +36 -0
  113. package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
  114. package/types/PaymentMethods.d.ts +67 -0
  115. package/types/PaymentMethodsResource.d.ts +88 -0
  116. package/types/Prices.d.ts +22 -0
  117. package/types/PricesResource.d.ts +22 -0
  118. package/types/Products.d.ts +39 -0
  119. package/types/ProductsResource.d.ts +36 -0
  120. package/types/QuoteLines.d.ts +634 -0
  121. package/types/QuotePreviewInvoices.d.ts +1586 -0
  122. package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
  123. package/types/Quotes.d.ts +591 -1
  124. package/types/QuotesResource.d.ts +2526 -194
  125. package/types/SetupAttempts.d.ts +10 -0
  126. package/types/SetupIntents.d.ts +111 -1
  127. package/types/SetupIntentsResource.d.ts +522 -3
  128. package/types/Sources.d.ts +23 -0
  129. package/types/SubscriptionItems.d.ts +21 -0
  130. package/types/SubscriptionItemsResource.d.ts +109 -0
  131. package/types/SubscriptionSchedules.d.ts +200 -0
  132. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  133. package/types/Subscriptions.d.ts +82 -1
  134. package/types/SubscriptionsResource.d.ts +347 -2
  135. package/types/Tax/Associations.d.ts +126 -0
  136. package/types/Tax/AssociationsResource.d.ts +29 -0
  137. package/types/Tax/Forms.d.ts +133 -0
  138. package/types/Tax/FormsResource.d.ts +90 -0
  139. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  140. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  141. package/types/Terminal/Readers.d.ts +278 -0
  142. package/types/Terminal/ReadersResource.d.ts +215 -0
  143. package/types/TestHelpers/ConfirmationTokensResource.d.ts +63 -0
  144. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  145. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  146. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  147. package/types/Treasury/FinancialAccountsResource.d.ts +10 -0
  148. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  149. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  150. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  151. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  152. package/types/WebhookEndpointsResource.d.ts +64 -0
  153. package/types/index.d.ts +53 -0
@@ -557,14 +557,17 @@ declare module 'stripe' {
557
557
  | 'klarna'
558
558
  | 'konbini'
559
559
  | 'link'
560
+ | 'mb_way'
560
561
  | 'mobilepay'
561
562
  | 'multibanco'
562
563
  | 'oxxo'
563
564
  | 'p24'
564
565
  | 'paynow'
565
566
  | 'paypal'
567
+ | 'payto'
566
568
  | 'pix'
567
569
  | 'promptpay'
570
+ | 'rechnung'
568
571
  | 'sepa_debit'
569
572
  | 'sofort'
570
573
  | 'swish'
@@ -616,14 +616,17 @@ declare module 'stripe' {
616
616
  | 'klarna'
617
617
  | 'konbini'
618
618
  | 'link'
619
+ | 'mb_way'
619
620
  | 'mobilepay'
620
621
  | 'multibanco'
621
622
  | 'oxxo'
622
623
  | 'p24'
623
624
  | 'paynow'
624
625
  | 'paypal'
626
+ | 'payto'
625
627
  | 'pix'
626
628
  | 'promptpay'
629
+ | 'rechnung'
627
630
  | 'sepa_debit'
628
631
  | 'sofort'
629
632
  | 'swish'
@@ -1540,14 +1543,17 @@ declare module 'stripe' {
1540
1543
  | 'klarna'
1541
1544
  | 'konbini'
1542
1545
  | 'link'
1546
+ | 'mb_way'
1543
1547
  | 'mobilepay'
1544
1548
  | 'multibanco'
1545
1549
  | 'oxxo'
1546
1550
  | 'p24'
1547
1551
  | 'paynow'
1548
1552
  | 'paypal'
1553
+ | 'payto'
1549
1554
  | 'pix'
1550
1555
  | 'promptpay'
1556
+ | 'rechnung'
1551
1557
  | 'sepa_debit'
1552
1558
  | 'sofort'
1553
1559
  | 'swish'
@@ -121,6 +121,8 @@ declare module 'stripe' {
121
121
 
122
122
  paypal?: PaymentMethodConfiguration.Paypal;
123
123
 
124
+ payto?: PaymentMethodConfiguration.Payto;
125
+
124
126
  promptpay?: PaymentMethodConfiguration.Promptpay;
125
127
 
126
128
  revolut_pay?: PaymentMethodConfiguration.RevolutPay;
@@ -1195,6 +1197,40 @@ declare module 'stripe' {
1195
1197
  }
1196
1198
  }
1197
1199
 
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
+
1198
1234
  interface Promptpay {
1199
1235
  /**
1200
1236
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -178,6 +178,11 @@ 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
+
181
186
  /**
182
187
  * 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.
183
188
  */
@@ -865,6 +870,26 @@ declare module 'stripe' {
865
870
  }
866
871
  }
867
872
 
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
+
868
893
  interface Promptpay {
869
894
  /**
870
895
  * Whether or not the payment method should be displayed.
@@ -1229,6 +1254,11 @@ declare module 'stripe' {
1229
1254
  */
1230
1255
  paypal?: PaymentMethodConfigurationUpdateParams.Paypal;
1231
1256
 
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
+
1232
1262
  /**
1233
1263
  * 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.
1234
1264
  */
@@ -1916,6 +1946,26 @@ declare module 'stripe' {
1916
1946
  }
1917
1947
  }
1918
1948
 
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
+
1919
1969
  interface Promptpay {
1920
1970
  /**
1921
1971
  * Whether or not the payment method should be displayed.
@@ -88,6 +88,8 @@ declare module 'stripe' {
88
88
  */
89
89
  livemode: boolean;
90
90
 
91
+ mb_way?: PaymentMethod.MbWay;
92
+
91
93
  /**
92
94
  * 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.
93
95
  */
@@ -105,6 +107,8 @@ declare module 'stripe' {
105
107
 
106
108
  paypal?: PaymentMethod.Paypal;
107
109
 
110
+ payto?: PaymentMethod.Payto;
111
+
108
112
  pix?: PaymentMethod.Pix;
109
113
 
110
114
  promptpay?: PaymentMethod.Promptpay;
@@ -114,6 +118,8 @@ declare module 'stripe' {
114
118
  */
115
119
  radar_options?: PaymentMethod.RadarOptions;
116
120
 
121
+ rechnung?: PaymentMethod.Rechnung;
122
+
117
123
  revolut_pay?: PaymentMethod.RevolutPay;
118
124
 
119
125
  sepa_debit?: PaymentMethod.SepaDebit;
@@ -1115,6 +1121,8 @@ declare module 'stripe' {
1115
1121
  persistent_token?: string;
1116
1122
  }
1117
1123
 
1124
+ interface MbWay {}
1125
+
1118
1126
  interface Mobilepay {}
1119
1127
 
1120
1128
  interface Multibanco {}
@@ -1161,6 +1169,11 @@ declare module 'stripe' {
1161
1169
  interface Paynow {}
1162
1170
 
1163
1171
  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
+
1164
1177
  /**
1165
1178
  * Owner's email. Values are provided by PayPal directly
1166
1179
  * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
@@ -1171,6 +1184,29 @@ declare module 'stripe' {
1171
1184
  * PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
1172
1185
  */
1173
1186
  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;
1174
1210
  }
1175
1211
 
1176
1212
  interface Pix {}
@@ -1184,6 +1220,29 @@ declare module 'stripe' {
1184
1220
  session?: string;
1185
1221
  }
1186
1222
 
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
+
1187
1246
  interface RevolutPay {}
1188
1247
 
1189
1248
  interface SepaDebit {
@@ -1267,14 +1326,17 @@ declare module 'stripe' {
1267
1326
  | 'klarna'
1268
1327
  | 'konbini'
1269
1328
  | 'link'
1329
+ | 'mb_way'
1270
1330
  | 'mobilepay'
1271
1331
  | 'multibanco'
1272
1332
  | 'oxxo'
1273
1333
  | 'p24'
1274
1334
  | 'paynow'
1275
1335
  | 'paypal'
1336
+ | 'payto'
1276
1337
  | 'pix'
1277
1338
  | 'promptpay'
1339
+ | 'rechnung'
1278
1340
  | 'revolut_pay'
1279
1341
  | 'sepa_debit'
1280
1342
  | 'sofort'
@@ -1290,6 +1352,11 @@ declare module 'stripe' {
1290
1352
  */
1291
1353
  account_holder_type: UsBankAccount.AccountHolderType | null;
1292
1354
 
1355
+ /**
1356
+ * Account number of the bank account.
1357
+ */
1358
+ account_number?: string | null;
1359
+
1293
1360
  /**
1294
1361
  * Account type: checkings or savings. Defaults to checking if omitted.
1295
1362
  */
@@ -133,6 +133,11 @@ 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
+
136
141
  /**
137
142
  * 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`.
138
143
  */
@@ -173,6 +178,11 @@ declare module 'stripe' {
173
178
  */
174
179
  paypal?: PaymentMethodCreateParams.Paypal;
175
180
 
181
+ /**
182
+ * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
183
+ */
184
+ payto?: PaymentMethodCreateParams.Payto;
185
+
176
186
  /**
177
187
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
178
188
  */
@@ -188,6 +198,11 @@ declare module 'stripe' {
188
198
  */
189
199
  radar_options?: PaymentMethodCreateParams.RadarOptions;
190
200
 
201
+ /**
202
+ * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
203
+ */
204
+ rechnung?: PaymentMethodCreateParams.Rechnung;
205
+
191
206
  /**
192
207
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
193
208
  */
@@ -510,6 +525,8 @@ declare module 'stripe' {
510
525
 
511
526
  interface Link {}
512
527
 
528
+ interface MbWay {}
529
+
513
530
  interface Mobilepay {}
514
531
 
515
532
  interface Multibanco {}
@@ -557,6 +574,23 @@ declare module 'stripe' {
557
574
 
558
575
  interface Paypal {}
559
576
 
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
+
560
594
  interface Pix {}
561
595
 
562
596
  interface Promptpay {}
@@ -568,6 +602,32 @@ declare module 'stripe' {
568
602
  session?: string;
569
603
  }
570
604
 
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
+
571
631
  interface RevolutPay {}
572
632
 
573
633
  interface SepaDebit {
@@ -614,14 +674,17 @@ declare module 'stripe' {
614
674
  | 'klarna'
615
675
  | 'konbini'
616
676
  | 'link'
677
+ | 'mb_way'
617
678
  | 'mobilepay'
618
679
  | 'multibanco'
619
680
  | 'oxxo'
620
681
  | 'p24'
621
682
  | 'paynow'
622
683
  | 'paypal'
684
+ | 'payto'
623
685
  | 'pix'
624
686
  | 'promptpay'
687
+ | 'rechnung'
625
688
  | 'revolut_pay'
626
689
  | 'sepa_debit'
627
690
  | 'sofort'
@@ -707,6 +770,11 @@ declare module 'stripe' {
707
770
  */
708
771
  metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
709
772
 
773
+ /**
774
+ * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
775
+ */
776
+ payto?: PaymentMethodUpdateParams.Payto;
777
+
710
778
  /**
711
779
  * If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
712
780
  */
@@ -770,6 +838,23 @@ declare module 'stripe' {
770
838
 
771
839
  interface Link {}
772
840
 
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
+
773
858
  interface UsBankAccount {
774
859
  /**
775
860
  * Bank account holder type.
@@ -829,14 +914,17 @@ declare module 'stripe' {
829
914
  | 'klarna'
830
915
  | 'konbini'
831
916
  | 'link'
917
+ | 'mb_way'
832
918
  | 'mobilepay'
833
919
  | 'multibanco'
834
920
  | 'oxxo'
835
921
  | 'p24'
836
922
  | 'paynow'
837
923
  | 'paypal'
924
+ | 'payto'
838
925
  | 'pix'
839
926
  | 'promptpay'
927
+ | 'rechnung'
840
928
  | 'revolut_pay'
841
929
  | 'sepa_debit'
842
930
  | 'sofort'
package/types/Prices.d.ts CHANGED
@@ -93,6 +93,11 @@ 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
+
96
101
  /**
97
102
  * A brief description of the price, hidden from customers.
98
103
  */
@@ -239,6 +244,23 @@ declare module 'stripe' {
239
244
  preset: number | null;
240
245
  }
241
246
 
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
+
242
264
  interface Recurring {
243
265
  /**
244
266
  * Specifies a usage aggregation strategy for prices of `usage_type=metered`. Defaults to `sum`.
@@ -372,6 +372,11 @@ 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
+
375
380
  /**
376
381
  * A brief description of the price, hidden from customers.
377
382
  */
@@ -469,6 +474,23 @@ declare module 'stripe' {
469
474
  }
470
475
  }
471
476
 
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
+
472
494
  type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
473
495
  }
474
496
 
@@ -98,6 +98,11 @@ 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
+
101
106
  /**
102
107
  * Whether this product is shipped (i.e., physical goods).
103
108
  */
@@ -164,6 +169,40 @@ declare module 'stripe' {
164
169
  width: number;
165
170
  }
166
171
 
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
+
167
206
  type Type = 'good' | 'service';
168
207
  }
169
208
  }
@@ -53,6 +53,11 @@ 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
+
56
61
  /**
57
62
  * Whether this product is shipped (i.e., physical goods).
58
63
  */
@@ -278,6 +283,37 @@ declare module 'stripe' {
278
283
  width: number;
279
284
  }
280
285
 
286
+ interface Provisioning {
287
+ gift_card?: Provisioning.GiftCard;
288
+
289
+ /**
290
+ * The type of provisioning, only `gift_card` currently supported.
291
+ */
292
+ type: 'gift_card';
293
+ }
294
+
295
+ namespace Provisioning {
296
+ interface GiftCard {
297
+ fixed_amount?: GiftCard.FixedAmount;
298
+
299
+ /**
300
+ * The specific type of gift_card provisioning, only `fixed_amount` currently supported.
301
+ */
302
+ type: 'fixed_amount';
303
+ }
304
+
305
+ namespace GiftCard {
306
+ interface FixedAmount {
307
+ /**
308
+ * The initial amount with which the provisioned gift card will be created.
309
+ */
310
+ amount: number;
311
+
312
+ currency: string;
313
+ }
314
+ }
315
+ }
316
+
281
317
  type Type = 'good' | 'service';
282
318
  }
283
319