stripe 17.3.1 → 17.4.0-beta.2

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 (195) hide show
  1. package/CHANGELOG.md +967 -109
  2. package/README.md +4 -4
  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/Issuing/FraudLiabilityDebits.js +17 -0
  16. package/cjs/resources/Margins.js +22 -0
  17. package/cjs/resources/Orders.js +24 -0
  18. package/cjs/resources/PaymentAttemptRecords.js +17 -0
  19. package/cjs/resources/PaymentIntents.js +8 -0
  20. package/cjs/resources/PaymentRecords.js +29 -0
  21. package/cjs/resources/Quotes.js +32 -0
  22. package/cjs/resources/SubscriptionSchedules.js +4 -0
  23. package/cjs/resources/Tax/Associations.js +9 -0
  24. package/cjs/resources/Tax/Forms.js +20 -0
  25. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  26. package/cjs/resources/Terminal/Readers.js +12 -0
  27. package/cjs/resources.js +68 -14
  28. package/cjs/stripe.core.js +1 -1
  29. package/esm/resources/AccountNotices.js +18 -0
  30. package/esm/resources/Capital/FinancingOffers.js +18 -0
  31. package/esm/resources/Capital/FinancingSummary.js +9 -0
  32. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  33. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  34. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  35. package/esm/resources/GiftCards/Cards.js +20 -0
  36. package/esm/resources/GiftCards/Transactions.js +30 -0
  37. package/esm/resources/Invoices.js +17 -0
  38. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  39. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  40. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  41. package/esm/resources/Margins.js +19 -0
  42. package/esm/resources/Orders.js +21 -0
  43. package/esm/resources/PaymentAttemptRecords.js +14 -0
  44. package/esm/resources/PaymentIntents.js +8 -0
  45. package/esm/resources/PaymentRecords.js +26 -0
  46. package/esm/resources/Quotes.js +32 -0
  47. package/esm/resources/SubscriptionSchedules.js +4 -0
  48. package/esm/resources/Tax/Associations.js +6 -0
  49. package/esm/resources/Tax/Forms.js +17 -0
  50. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  51. package/esm/resources/Terminal/Readers.js +12 -0
  52. package/esm/resources.js +51 -1
  53. package/esm/stripe.core.js +1 -1
  54. package/package.json +1 -1
  55. package/types/AccountLinksResource.d.ts +5 -1
  56. package/types/AccountNotices.d.ts +113 -0
  57. package/types/AccountNoticesResource.d.ts +98 -0
  58. package/types/AccountSessions.d.ts +50 -5
  59. package/types/AccountSessionsResource.d.ts +355 -0
  60. package/types/Accounts.d.ts +221 -5
  61. package/types/AccountsResource.d.ts +496 -0
  62. package/types/Billing/CreditBalanceSummaryResource.d.ts +1 -1
  63. package/types/Billing/CreditGrants.d.ts +5 -6
  64. package/types/Billing/CreditGrantsResource.d.ts +11 -11
  65. package/types/Billing/MeterErrorReports.d.ts +106 -0
  66. package/types/Billing/MeterEventsResource.d.ts +1 -1
  67. package/types/Capital/FinancingOffers.d.ts +188 -0
  68. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  69. package/types/Capital/FinancingSummary.d.ts +106 -0
  70. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  71. package/types/Capital/FinancingTransactions.d.ts +135 -0
  72. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  73. package/types/Charges.d.ts +121 -5
  74. package/types/ChargesResource.d.ts +1294 -0
  75. package/types/Checkout/Sessions.d.ts +360 -5
  76. package/types/Checkout/SessionsResource.d.ts +444 -9
  77. package/types/ConfirmationTokens.d.ts +103 -4
  78. package/types/Coupons.d.ts +1 -1
  79. package/types/CouponsResource.d.ts +1 -1
  80. package/types/CreditNotes.d.ts +21 -0
  81. package/types/CreditNotesResource.d.ts +51 -0
  82. package/types/CustomersResource.d.ts +11 -2
  83. package/types/Disputes.d.ts +1 -1
  84. package/types/EventTypes.d.ts +579 -0
  85. package/types/Events.d.ts +92 -0
  86. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  87. package/types/FinancialConnections/Accounts.d.ts +29 -1
  88. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  89. package/types/FinancialConnections/Institutions.d.ts +93 -0
  90. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  91. package/types/FinancialConnections/Sessions.d.ts +49 -1
  92. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  93. package/types/FundingInstructions.d.ts +28 -0
  94. package/types/GiftCards/Cards.d.ts +118 -0
  95. package/types/GiftCards/CardsResource.d.ts +159 -0
  96. package/types/GiftCards/Transactions.d.ts +129 -0
  97. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  98. package/types/Identity/VerificationReports.d.ts +1 -1
  99. package/types/Identity/VerificationSessions.d.ts +1 -1
  100. package/types/Identity/VerificationSessionsResource.d.ts +1 -1
  101. package/types/InvoiceItems.d.ts +5 -0
  102. package/types/InvoiceItemsResource.d.ts +98 -0
  103. package/types/InvoiceLineItems.d.ts +28 -1
  104. package/types/InvoicePayments.d.ts +113 -0
  105. package/types/Invoices.d.ts +139 -3
  106. package/types/InvoicesResource.d.ts +5536 -1845
  107. package/types/Issuing/Authorizations.d.ts +1 -1
  108. package/types/Issuing/CardholdersResource.d.ts +2 -1
  109. package/types/Issuing/Cards.d.ts +1 -1
  110. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  111. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  112. package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
  113. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  114. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  115. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  116. package/types/Issuing/Settlements.d.ts +103 -0
  117. package/types/Issuing/Transactions.d.ts +2 -0
  118. package/types/Issuing/TransactionsResource.d.ts +5 -0
  119. package/types/LineItems.d.ts +7 -0
  120. package/types/Mandates.d.ts +77 -0
  121. package/types/Margins.d.ts +56 -0
  122. package/types/MarginsResource.d.ts +114 -0
  123. package/types/Orders.d.ts +1155 -0
  124. package/types/OrdersResource.d.ts +2913 -0
  125. package/types/PaymentAttemptRecords.d.ts +242 -0
  126. package/types/PaymentAttemptRecordsResource.d.ts +47 -0
  127. package/types/PaymentIntents.d.ts +667 -2
  128. package/types/PaymentIntentsResource.d.ts +7948 -3704
  129. package/types/PaymentLinks.d.ts +6 -0
  130. package/types/PaymentLinksResource.d.ts +21 -2
  131. package/types/PaymentMethodConfigurations.d.ts +180 -0
  132. package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
  133. package/types/PaymentMethods.d.ts +103 -4
  134. package/types/PaymentMethodsResource.d.ts +133 -0
  135. package/types/PaymentRecords.d.ts +259 -0
  136. package/types/PaymentRecordsResource.d.ts +455 -0
  137. package/types/Prices.d.ts +22 -0
  138. package/types/PricesResource.d.ts +22 -0
  139. package/types/Products.d.ts +39 -0
  140. package/types/ProductsResource.d.ts +36 -0
  141. package/types/QuoteLines.d.ts +634 -0
  142. package/types/QuotePreviewInvoices.d.ts +1615 -0
  143. package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
  144. package/types/Quotes.d.ts +591 -1
  145. package/types/QuotesResource.d.ts +2526 -194
  146. package/types/Refunds.d.ts +14 -0
  147. package/types/SetupAttempts.d.ts +40 -2
  148. package/types/SetupIntents.d.ts +113 -2
  149. package/types/SetupIntentsResource.d.ts +652 -7
  150. package/types/Sources.d.ts +23 -0
  151. package/types/SubscriptionItems.d.ts +21 -0
  152. package/types/SubscriptionItemsResource.d.ts +109 -0
  153. package/types/SubscriptionSchedules.d.ts +200 -0
  154. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  155. package/types/Subscriptions.d.ts +92 -1
  156. package/types/SubscriptionsResource.d.ts +371 -2
  157. package/types/Tax/Associations.d.ts +126 -0
  158. package/types/Tax/AssociationsResource.d.ts +29 -0
  159. package/types/Tax/CalculationLineItems.d.ts +1 -0
  160. package/types/Tax/Calculations.d.ts +4 -1
  161. package/types/Tax/CalculationsResource.d.ts +2 -1
  162. package/types/Tax/Forms.d.ts +220 -0
  163. package/types/Tax/FormsResource.d.ts +107 -0
  164. package/types/Tax/Transactions.d.ts +3 -1
  165. package/types/TaxIds.d.ts +2 -1
  166. package/types/TaxIdsResource.d.ts +2 -1
  167. package/types/TaxRates.d.ts +1 -0
  168. package/types/TaxRatesResource.d.ts +2 -0
  169. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  170. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  171. package/types/Terminal/Readers.d.ts +278 -0
  172. package/types/Terminal/ReadersResource.d.ts +215 -0
  173. package/types/TestHelpers/ConfirmationTokensResource.d.ts +104 -0
  174. package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +14 -4
  175. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  176. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  177. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  178. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  179. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  180. package/types/Treasury/InboundTransfers.d.ts +1 -1
  181. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  182. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  183. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  184. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  185. package/types/WebhookEndpointsResource.d.ts +68 -0
  186. package/types/index.d.ts +74 -4
  187. package/cjs/resources/V2/Billing.js +0 -18
  188. package/cjs/resources/V2/Core.js +0 -14
  189. package/cjs/resources/V2.js +0 -14
  190. package/esm/resources/V2/Billing.js +0 -15
  191. package/esm/resources/V2/Core.js +0 -11
  192. package/esm/resources/V2.js +0 -11
  193. package/types/V2/BillingResource.d.ts +0 -14
  194. package/types/V2/CoreResource.d.ts +0 -12
  195. package/types/V2Resource.d.ts +0 -10
@@ -113,11 +113,21 @@ declare module 'stripe' {
113
113
  */
114
114
  google_pay?: PaymentMethodConfigurationCreateParams.GooglePay;
115
115
 
116
+ /**
117
+ * GoPay is a [single use](https://stripe.com/docs/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Gojek app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Gojek app to confirm payment.
118
+ */
119
+ gopay?: PaymentMethodConfigurationCreateParams.Gopay;
120
+
116
121
  /**
117
122
  * GrabPay is a payment method developed by [Grab](https://www.grab.com/sg/consumer/finance/pay/). GrabPay is a digital wallet - customers maintain a balance in their wallets that they pay out with. Check this [page](https://stripe.com/docs/payments/grabpay) for more details.
118
123
  */
119
124
  grabpay?: PaymentMethodConfigurationCreateParams.Grabpay;
120
125
 
126
+ /**
127
+ * Stripe users in Indonesia can receive bank transfers from customers in Indonesia. Bank transfers are a popular B2C and B2B payment method in Indonesia.
128
+ */
129
+ id_bank_transfer?: PaymentMethodConfigurationCreateParams.IdBankTransfer;
130
+
121
131
  /**
122
132
  * iDEAL is a Netherlands-based payment method that allows customers to complete transactions online using their bank credentials. All major Dutch banks are members of Currence, the scheme that operates iDEAL, making it the most popular online payment method in the Netherlands with a share of online transactions close to 55%. Check this [page](https://stripe.com/docs/payments/ideal) for more details.
123
133
  */
@@ -183,11 +193,21 @@ declare module 'stripe' {
183
193
  */
184
194
  paypal?: PaymentMethodConfigurationCreateParams.Paypal;
185
195
 
196
+ /**
197
+ * 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.
198
+ */
199
+ payto?: PaymentMethodConfigurationCreateParams.Payto;
200
+
186
201
  /**
187
202
  * 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
203
  */
189
204
  promptpay?: PaymentMethodConfigurationCreateParams.Promptpay;
190
205
 
206
+ /**
207
+ * QRIS is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Indonesia. When paying with QRIS, customers authenticate and approve payments by scanning a QR code in their preferred digital wallet app.
208
+ */
209
+ qris?: PaymentMethodConfigurationCreateParams.Qris;
210
+
191
211
  /**
192
212
  * Revolut Pay, developed by Revolut, a global finance app, is a digital wallet payment method. Revolut Pay uses the customer's stored balance or cards to fund the payment, and offers the option for non-Revolut customers to save their details after their first purchase.
193
213
  */
@@ -198,6 +218,11 @@ declare module 'stripe' {
198
218
  */
199
219
  sepa_debit?: PaymentMethodConfigurationCreateParams.SepaDebit;
200
220
 
221
+ /**
222
+ * ShopeePay is a [single use](https://stripe.com/docs/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Shopee app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Shopee app to confirm payment.
223
+ */
224
+ shopeepay?: PaymentMethodConfigurationCreateParams.Shopeepay;
225
+
201
226
  /**
202
227
  * Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. Check this [page](https://stripe.com/docs/payments/sofort) for more details.
203
228
  */
@@ -650,6 +675,26 @@ declare module 'stripe' {
650
675
  }
651
676
  }
652
677
 
678
+ interface Gopay {
679
+ /**
680
+ * Whether or not the payment method should be displayed.
681
+ */
682
+ display_preference?: Gopay.DisplayPreference;
683
+ }
684
+
685
+ namespace Gopay {
686
+ interface DisplayPreference {
687
+ /**
688
+ * The account's preference for whether or not to display this payment method.
689
+ */
690
+ preference?: DisplayPreference.Preference;
691
+ }
692
+
693
+ namespace DisplayPreference {
694
+ type Preference = 'none' | 'off' | 'on';
695
+ }
696
+ }
697
+
653
698
  interface Grabpay {
654
699
  /**
655
700
  * Whether or not the payment method should be displayed.
@@ -670,6 +715,26 @@ declare module 'stripe' {
670
715
  }
671
716
  }
672
717
 
718
+ interface IdBankTransfer {
719
+ /**
720
+ * Whether or not the payment method should be displayed.
721
+ */
722
+ display_preference?: IdBankTransfer.DisplayPreference;
723
+ }
724
+
725
+ namespace IdBankTransfer {
726
+ interface DisplayPreference {
727
+ /**
728
+ * The account's preference for whether or not to display this payment method.
729
+ */
730
+ preference?: DisplayPreference.Preference;
731
+ }
732
+
733
+ namespace DisplayPreference {
734
+ type Preference = 'none' | 'off' | 'on';
735
+ }
736
+ }
737
+
673
738
  interface Ideal {
674
739
  /**
675
740
  * Whether or not the payment method should be displayed.
@@ -890,6 +955,26 @@ declare module 'stripe' {
890
955
  }
891
956
  }
892
957
 
958
+ interface Payto {
959
+ /**
960
+ * Whether or not the payment method should be displayed.
961
+ */
962
+ display_preference?: Payto.DisplayPreference;
963
+ }
964
+
965
+ namespace Payto {
966
+ interface DisplayPreference {
967
+ /**
968
+ * The account's preference for whether or not to display this payment method.
969
+ */
970
+ preference?: DisplayPreference.Preference;
971
+ }
972
+
973
+ namespace DisplayPreference {
974
+ type Preference = 'none' | 'off' | 'on';
975
+ }
976
+ }
977
+
893
978
  interface Promptpay {
894
979
  /**
895
980
  * Whether or not the payment method should be displayed.
@@ -910,6 +995,26 @@ declare module 'stripe' {
910
995
  }
911
996
  }
912
997
 
998
+ interface Qris {
999
+ /**
1000
+ * Whether or not the payment method should be displayed.
1001
+ */
1002
+ display_preference?: Qris.DisplayPreference;
1003
+ }
1004
+
1005
+ namespace Qris {
1006
+ interface DisplayPreference {
1007
+ /**
1008
+ * The account's preference for whether or not to display this payment method.
1009
+ */
1010
+ preference?: DisplayPreference.Preference;
1011
+ }
1012
+
1013
+ namespace DisplayPreference {
1014
+ type Preference = 'none' | 'off' | 'on';
1015
+ }
1016
+ }
1017
+
913
1018
  interface RevolutPay {
914
1019
  /**
915
1020
  * Whether or not the payment method should be displayed.
@@ -950,6 +1055,26 @@ declare module 'stripe' {
950
1055
  }
951
1056
  }
952
1057
 
1058
+ interface Shopeepay {
1059
+ /**
1060
+ * Whether or not the payment method should be displayed.
1061
+ */
1062
+ display_preference?: Shopeepay.DisplayPreference;
1063
+ }
1064
+
1065
+ namespace Shopeepay {
1066
+ interface DisplayPreference {
1067
+ /**
1068
+ * The account's preference for whether or not to display this payment method.
1069
+ */
1070
+ preference?: DisplayPreference.Preference;
1071
+ }
1072
+
1073
+ namespace DisplayPreference {
1074
+ type Preference = 'none' | 'off' | 'on';
1075
+ }
1076
+ }
1077
+
953
1078
  interface Sofort {
954
1079
  /**
955
1080
  * Whether or not the payment method should be displayed.
@@ -1194,11 +1319,21 @@ declare module 'stripe' {
1194
1319
  */
1195
1320
  google_pay?: PaymentMethodConfigurationUpdateParams.GooglePay;
1196
1321
 
1322
+ /**
1323
+ * GoPay is a [single use](https://stripe.com/docs/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Gojek app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Gojek app to confirm payment.
1324
+ */
1325
+ gopay?: PaymentMethodConfigurationUpdateParams.Gopay;
1326
+
1197
1327
  /**
1198
1328
  * GrabPay is a payment method developed by [Grab](https://www.grab.com/sg/consumer/finance/pay/). GrabPay is a digital wallet - customers maintain a balance in their wallets that they pay out with. Check this [page](https://stripe.com/docs/payments/grabpay) for more details.
1199
1329
  */
1200
1330
  grabpay?: PaymentMethodConfigurationUpdateParams.Grabpay;
1201
1331
 
1332
+ /**
1333
+ * Stripe users in Indonesia can receive bank transfers from customers in Indonesia. Bank transfers are a popular B2C and B2B payment method in Indonesia.
1334
+ */
1335
+ id_bank_transfer?: PaymentMethodConfigurationUpdateParams.IdBankTransfer;
1336
+
1202
1337
  /**
1203
1338
  * iDEAL is a Netherlands-based payment method that allows customers to complete transactions online using their bank credentials. All major Dutch banks are members of Currence, the scheme that operates iDEAL, making it the most popular online payment method in the Netherlands with a share of online transactions close to 55%. Check this [page](https://stripe.com/docs/payments/ideal) for more details.
1204
1339
  */
@@ -1259,11 +1394,21 @@ declare module 'stripe' {
1259
1394
  */
1260
1395
  paypal?: PaymentMethodConfigurationUpdateParams.Paypal;
1261
1396
 
1397
+ /**
1398
+ * 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.
1399
+ */
1400
+ payto?: PaymentMethodConfigurationUpdateParams.Payto;
1401
+
1262
1402
  /**
1263
1403
  * 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
1404
  */
1265
1405
  promptpay?: PaymentMethodConfigurationUpdateParams.Promptpay;
1266
1406
 
1407
+ /**
1408
+ * QRIS is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Indonesia. When paying with QRIS, customers authenticate and approve payments by scanning a QR code in their preferred digital wallet app.
1409
+ */
1410
+ qris?: PaymentMethodConfigurationUpdateParams.Qris;
1411
+
1267
1412
  /**
1268
1413
  * Revolut Pay, developed by Revolut, a global finance app, is a digital wallet payment method. Revolut Pay uses the customer's stored balance or cards to fund the payment, and offers the option for non-Revolut customers to save their details after their first purchase.
1269
1414
  */
@@ -1274,6 +1419,11 @@ declare module 'stripe' {
1274
1419
  */
1275
1420
  sepa_debit?: PaymentMethodConfigurationUpdateParams.SepaDebit;
1276
1421
 
1422
+ /**
1423
+ * ShopeePay is a [single use](https://stripe.com/docs/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Shopee app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Shopee app to confirm payment.
1424
+ */
1425
+ shopeepay?: PaymentMethodConfigurationUpdateParams.Shopeepay;
1426
+
1277
1427
  /**
1278
1428
  * Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. Check this [page](https://stripe.com/docs/payments/sofort) for more details.
1279
1429
  */
@@ -1726,6 +1876,26 @@ declare module 'stripe' {
1726
1876
  }
1727
1877
  }
1728
1878
 
1879
+ interface Gopay {
1880
+ /**
1881
+ * Whether or not the payment method should be displayed.
1882
+ */
1883
+ display_preference?: Gopay.DisplayPreference;
1884
+ }
1885
+
1886
+ namespace Gopay {
1887
+ interface DisplayPreference {
1888
+ /**
1889
+ * The account's preference for whether or not to display this payment method.
1890
+ */
1891
+ preference?: DisplayPreference.Preference;
1892
+ }
1893
+
1894
+ namespace DisplayPreference {
1895
+ type Preference = 'none' | 'off' | 'on';
1896
+ }
1897
+ }
1898
+
1729
1899
  interface Grabpay {
1730
1900
  /**
1731
1901
  * Whether or not the payment method should be displayed.
@@ -1746,6 +1916,26 @@ declare module 'stripe' {
1746
1916
  }
1747
1917
  }
1748
1918
 
1919
+ interface IdBankTransfer {
1920
+ /**
1921
+ * Whether or not the payment method should be displayed.
1922
+ */
1923
+ display_preference?: IdBankTransfer.DisplayPreference;
1924
+ }
1925
+
1926
+ namespace IdBankTransfer {
1927
+ interface DisplayPreference {
1928
+ /**
1929
+ * The account's preference for whether or not to display this payment method.
1930
+ */
1931
+ preference?: DisplayPreference.Preference;
1932
+ }
1933
+
1934
+ namespace DisplayPreference {
1935
+ type Preference = 'none' | 'off' | 'on';
1936
+ }
1937
+ }
1938
+
1749
1939
  interface Ideal {
1750
1940
  /**
1751
1941
  * Whether or not the payment method should be displayed.
@@ -1966,6 +2156,26 @@ declare module 'stripe' {
1966
2156
  }
1967
2157
  }
1968
2158
 
2159
+ interface Payto {
2160
+ /**
2161
+ * Whether or not the payment method should be displayed.
2162
+ */
2163
+ display_preference?: Payto.DisplayPreference;
2164
+ }
2165
+
2166
+ namespace Payto {
2167
+ interface DisplayPreference {
2168
+ /**
2169
+ * The account's preference for whether or not to display this payment method.
2170
+ */
2171
+ preference?: DisplayPreference.Preference;
2172
+ }
2173
+
2174
+ namespace DisplayPreference {
2175
+ type Preference = 'none' | 'off' | 'on';
2176
+ }
2177
+ }
2178
+
1969
2179
  interface Promptpay {
1970
2180
  /**
1971
2181
  * Whether or not the payment method should be displayed.
@@ -1986,6 +2196,26 @@ declare module 'stripe' {
1986
2196
  }
1987
2197
  }
1988
2198
 
2199
+ interface Qris {
2200
+ /**
2201
+ * Whether or not the payment method should be displayed.
2202
+ */
2203
+ display_preference?: Qris.DisplayPreference;
2204
+ }
2205
+
2206
+ namespace Qris {
2207
+ interface DisplayPreference {
2208
+ /**
2209
+ * The account's preference for whether or not to display this payment method.
2210
+ */
2211
+ preference?: DisplayPreference.Preference;
2212
+ }
2213
+
2214
+ namespace DisplayPreference {
2215
+ type Preference = 'none' | 'off' | 'on';
2216
+ }
2217
+ }
2218
+
1989
2219
  interface RevolutPay {
1990
2220
  /**
1991
2221
  * Whether or not the payment method should be displayed.
@@ -2026,6 +2256,26 @@ declare module 'stripe' {
2026
2256
  }
2027
2257
  }
2028
2258
 
2259
+ interface Shopeepay {
2260
+ /**
2261
+ * Whether or not the payment method should be displayed.
2262
+ */
2263
+ display_preference?: Shopeepay.DisplayPreference;
2264
+ }
2265
+
2266
+ namespace Shopeepay {
2267
+ interface DisplayPreference {
2268
+ /**
2269
+ * The account's preference for whether or not to display this payment method.
2270
+ */
2271
+ preference?: DisplayPreference.Preference;
2272
+ }
2273
+
2274
+ namespace DisplayPreference {
2275
+ type Preference = 'none' | 'off' | 'on';
2276
+ }
2277
+ }
2278
+
2029
2279
  interface Sofort {
2030
2280
  /**
2031
2281
  * Whether or not the payment method should be displayed.
@@ -73,8 +73,12 @@ declare module 'stripe' {
73
73
 
74
74
  giropay?: PaymentMethod.Giropay;
75
75
 
76
+ gopay?: PaymentMethod.Gopay;
77
+
76
78
  grabpay?: PaymentMethod.Grabpay;
77
79
 
80
+ id_bank_transfer?: PaymentMethod.IdBankTransfer;
81
+
78
82
  ideal?: PaymentMethod.Ideal;
79
83
 
80
84
  interac_present?: PaymentMethod.InteracPresent;
@@ -94,6 +98,8 @@ declare module 'stripe' {
94
98
  */
95
99
  livemode: boolean;
96
100
 
101
+ mb_way?: PaymentMethod.MbWay;
102
+
97
103
  /**
98
104
  * 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.
99
105
  */
@@ -115,21 +121,29 @@ declare module 'stripe' {
115
121
 
116
122
  paypal?: PaymentMethod.Paypal;
117
123
 
124
+ payto?: PaymentMethod.Payto;
125
+
118
126
  pix?: PaymentMethod.Pix;
119
127
 
120
128
  promptpay?: PaymentMethod.Promptpay;
121
129
 
130
+ qris?: PaymentMethod.Qris;
131
+
122
132
  /**
123
133
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
124
134
  */
125
135
  radar_options?: PaymentMethod.RadarOptions;
126
136
 
137
+ rechnung?: PaymentMethod.Rechnung;
138
+
127
139
  revolut_pay?: PaymentMethod.RevolutPay;
128
140
 
129
141
  samsung_pay?: PaymentMethod.SamsungPay;
130
142
 
131
143
  sepa_debit?: PaymentMethod.SepaDebit;
132
144
 
145
+ shopeepay?: PaymentMethod.Shopeepay;
146
+
133
147
  sofort?: PaymentMethod.Sofort;
134
148
 
135
149
  swish?: PaymentMethod.Swish;
@@ -257,7 +271,7 @@ declare module 'stripe' {
257
271
 
258
272
  interface Card {
259
273
  /**
260
- * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
274
+ * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
261
275
  */
262
276
  brand: string;
263
277
 
@@ -392,7 +406,7 @@ declare module 'stripe' {
392
406
  amount_authorized: number | null;
393
407
 
394
408
  /**
395
- * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
409
+ * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
396
410
  */
397
411
  brand: string | null;
398
412
 
@@ -474,7 +488,7 @@ declare module 'stripe' {
474
488
  last4: string | null;
475
489
 
476
490
  /**
477
- * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
491
+ * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
478
492
  */
479
493
  network: string | null;
480
494
 
@@ -717,7 +731,7 @@ declare module 'stripe' {
717
731
 
718
732
  interface CardPresent {
719
733
  /**
720
- * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
734
+ * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
721
735
  */
722
736
  brand: string | null;
723
737
 
@@ -940,8 +954,24 @@ declare module 'stripe' {
940
954
 
941
955
  interface Giropay {}
942
956
 
957
+ interface Gopay {}
958
+
943
959
  interface Grabpay {}
944
960
 
961
+ interface IdBankTransfer {
962
+ bank: IdBankTransfer.Bank | null;
963
+
964
+ bank_code: string | null;
965
+
966
+ bank_name: string | null;
967
+
968
+ display_name: string | null;
969
+ }
970
+
971
+ namespace IdBankTransfer {
972
+ type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
973
+ }
974
+
945
975
  interface Ideal {
946
976
  /**
947
977
  * The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
@@ -1169,6 +1199,8 @@ declare module 'stripe' {
1169
1199
  persistent_token?: string;
1170
1200
  }
1171
1201
 
1202
+ interface MbWay {}
1203
+
1172
1204
  interface Mobilepay {}
1173
1205
 
1174
1206
  interface Multibanco {}
@@ -1228,6 +1260,11 @@ declare module 'stripe' {
1228
1260
  interface Paynow {}
1229
1261
 
1230
1262
  interface Paypal {
1263
+ /**
1264
+ * Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
1265
+ */
1266
+ fingerprint?: string | null;
1267
+
1231
1268
  /**
1232
1269
  * Owner's email. Values are provided by PayPal directly
1233
1270
  * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
@@ -1238,12 +1275,37 @@ declare module 'stripe' {
1238
1275
  * PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
1239
1276
  */
1240
1277
  payer_id: string | null;
1278
+
1279
+ /**
1280
+ * Owner's verified email. Values are verified or provided by PayPal directly
1281
+ * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1282
+ */
1283
+ verified_email?: string | null;
1284
+ }
1285
+
1286
+ interface Payto {
1287
+ /**
1288
+ * Bank-State-Branch number of the bank account.
1289
+ */
1290
+ bsb_number: string | null;
1291
+
1292
+ /**
1293
+ * Last four digits of the bank account number.
1294
+ */
1295
+ last4: string | null;
1296
+
1297
+ /**
1298
+ * The PayID alias for the bank account.
1299
+ */
1300
+ pay_id: string | null;
1241
1301
  }
1242
1302
 
1243
1303
  interface Pix {}
1244
1304
 
1245
1305
  interface Promptpay {}
1246
1306
 
1307
+ interface Qris {}
1308
+
1247
1309
  interface RadarOptions {
1248
1310
  /**
1249
1311
  * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -1251,6 +1313,29 @@ declare module 'stripe' {
1251
1313
  session?: string;
1252
1314
  }
1253
1315
 
1316
+ interface Rechnung {
1317
+ dob?: Rechnung.Dob;
1318
+ }
1319
+
1320
+ namespace Rechnung {
1321
+ interface Dob {
1322
+ /**
1323
+ * The day of birth, between 1 and 31.
1324
+ */
1325
+ day: number;
1326
+
1327
+ /**
1328
+ * The month of birth, between 1 and 12.
1329
+ */
1330
+ month: number;
1331
+
1332
+ /**
1333
+ * The four-digit year of birth.
1334
+ */
1335
+ year: number;
1336
+ }
1337
+ }
1338
+
1254
1339
  interface RevolutPay {}
1255
1340
 
1256
1341
  interface SamsungPay {}
@@ -1301,6 +1386,8 @@ declare module 'stripe' {
1301
1386
  }
1302
1387
  }
1303
1388
 
1389
+ interface Shopeepay {}
1390
+
1304
1391
  interface Sofort {
1305
1392
  /**
1306
1393
  * Two-letter ISO code representing the country the bank account is located in.
@@ -1331,7 +1418,9 @@ declare module 'stripe' {
1331
1418
  | 'eps'
1332
1419
  | 'fpx'
1333
1420
  | 'giropay'
1421
+ | 'gopay'
1334
1422
  | 'grabpay'
1423
+ | 'id_bank_transfer'
1335
1424
  | 'ideal'
1336
1425
  | 'interac_present'
1337
1426
  | 'kakao_pay'
@@ -1339,6 +1428,7 @@ declare module 'stripe' {
1339
1428
  | 'konbini'
1340
1429
  | 'kr_card'
1341
1430
  | 'link'
1431
+ | 'mb_way'
1342
1432
  | 'mobilepay'
1343
1433
  | 'multibanco'
1344
1434
  | 'naver_pay'
@@ -1347,11 +1437,15 @@ declare module 'stripe' {
1347
1437
  | 'payco'
1348
1438
  | 'paynow'
1349
1439
  | 'paypal'
1440
+ | 'payto'
1350
1441
  | 'pix'
1351
1442
  | 'promptpay'
1443
+ | 'qris'
1444
+ | 'rechnung'
1352
1445
  | 'revolut_pay'
1353
1446
  | 'samsung_pay'
1354
1447
  | 'sepa_debit'
1448
+ | 'shopeepay'
1355
1449
  | 'sofort'
1356
1450
  | 'swish'
1357
1451
  | 'twint'
@@ -1365,6 +1459,11 @@ declare module 'stripe' {
1365
1459
  */
1366
1460
  account_holder_type: UsBankAccount.AccountHolderType | null;
1367
1461
 
1462
+ /**
1463
+ * Account number of the bank account.
1464
+ */
1465
+ account_number?: string | null;
1466
+
1368
1467
  /**
1369
1468
  * Account type: checkings or savings. Defaults to checking if omitted.
1370
1469
  */