stripe 17.5.0 → 17.6.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 (181) hide show
  1. package/CHANGELOG.md +1052 -109
  2. package/README.md +24 -16
  3. package/VERSION +1 -1
  4. package/cjs/apiVersion.js +1 -1
  5. package/cjs/resources/AccountNotices.js +21 -0
  6. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  7. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  8. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  9. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  10. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  11. package/cjs/resources/GiftCards/Cards.js +23 -0
  12. package/cjs/resources/GiftCards/Transactions.js +33 -0
  13. package/cjs/resources/Invoices.js +17 -0
  14. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  15. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  16. package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
  17. package/cjs/resources/Margins.js +22 -0
  18. package/cjs/resources/Orders.js +24 -0
  19. package/cjs/resources/PaymentAttemptRecords.js +17 -0
  20. package/cjs/resources/PaymentIntents.js +8 -0
  21. package/cjs/resources/PaymentRecords.js +29 -0
  22. package/cjs/resources/Quotes.js +32 -0
  23. package/cjs/resources/SubscriptionSchedules.js +4 -0
  24. package/cjs/resources/Tax/Associations.js +9 -0
  25. package/cjs/resources/Tax/Forms.js +20 -0
  26. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  27. package/cjs/resources/Terminal/Readers.js +12 -0
  28. package/cjs/resources/Treasury/FinancialAccounts.js +4 -0
  29. package/cjs/resources.js +48 -10
  30. package/cjs/stripe.core.js +1 -1
  31. package/esm/apiVersion.js +1 -1
  32. package/esm/resources/AccountNotices.js +18 -0
  33. package/esm/resources/Capital/FinancingOffers.js +18 -0
  34. package/esm/resources/Capital/FinancingSummary.js +9 -0
  35. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  36. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  37. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  38. package/esm/resources/GiftCards/Cards.js +20 -0
  39. package/esm/resources/GiftCards/Transactions.js +30 -0
  40. package/esm/resources/Invoices.js +17 -0
  41. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  42. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  43. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  44. package/esm/resources/Margins.js +19 -0
  45. package/esm/resources/Orders.js +21 -0
  46. package/esm/resources/PaymentAttemptRecords.js +14 -0
  47. package/esm/resources/PaymentIntents.js +8 -0
  48. package/esm/resources/PaymentRecords.js +26 -0
  49. package/esm/resources/Quotes.js +32 -0
  50. package/esm/resources/SubscriptionSchedules.js +4 -0
  51. package/esm/resources/Tax/Associations.js +6 -0
  52. package/esm/resources/Tax/Forms.js +17 -0
  53. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  54. package/esm/resources/Terminal/Readers.js +12 -0
  55. package/esm/resources/Treasury/FinancialAccounts.js +4 -0
  56. package/esm/resources.js +33 -0
  57. package/esm/stripe.core.js +1 -1
  58. package/package.json +3 -15
  59. package/types/AccountLinksResource.d.ts +5 -1
  60. package/types/AccountNotices.d.ts +113 -0
  61. package/types/AccountNoticesResource.d.ts +98 -0
  62. package/types/AccountSessions.d.ts +175 -0
  63. package/types/AccountSessionsResource.d.ts +376 -0
  64. package/types/Accounts.d.ts +225 -1
  65. package/types/AccountsResource.d.ts +628 -0
  66. package/types/Billing/CreditBalanceTransactions.d.ts +1 -1
  67. package/types/Billing/MeterErrorReports.d.ts +106 -0
  68. package/types/BillingPortal/ConfigurationsResource.d.ts +2 -2
  69. package/types/Capital/FinancingOffers.d.ts +188 -0
  70. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  71. package/types/Capital/FinancingSummary.d.ts +106 -0
  72. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  73. package/types/Capital/FinancingTransactions.d.ts +135 -0
  74. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  75. package/types/Cards.d.ts +6 -1
  76. package/types/Charges.d.ts +159 -2
  77. package/types/ChargesResource.d.ts +1294 -0
  78. package/types/Checkout/Sessions.d.ts +359 -5
  79. package/types/Checkout/SessionsResource.d.ts +456 -5
  80. package/types/ConfirmationTokens.d.ts +110 -1
  81. package/types/Coupons.d.ts +1 -1
  82. package/types/CouponsResource.d.ts +1 -1
  83. package/types/CreditNoteLineItems.d.ts +1 -1
  84. package/types/CreditNotes.d.ts +22 -1
  85. package/types/CreditNotesResource.d.ts +51 -0
  86. package/types/CustomersResource.d.ts +8 -0
  87. package/types/EventTypes.d.ts +596 -0
  88. package/types/Events.d.ts +93 -0
  89. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  90. package/types/FinancialConnections/Accounts.d.ts +29 -1
  91. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  92. package/types/FinancialConnections/Institutions.d.ts +93 -0
  93. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  94. package/types/FinancialConnections/Sessions.d.ts +49 -1
  95. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  96. package/types/FinancialConnections/TransactionsResource.d.ts +1 -1
  97. package/types/GiftCards/Cards.d.ts +118 -0
  98. package/types/GiftCards/CardsResource.d.ts +159 -0
  99. package/types/GiftCards/Transactions.d.ts +129 -0
  100. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  101. package/types/InvoiceItems.d.ts +5 -0
  102. package/types/InvoiceItemsResource.d.ts +98 -0
  103. package/types/InvoiceLineItems.d.ts +29 -2
  104. package/types/InvoicePayments.d.ts +113 -0
  105. package/types/Invoices.d.ts +143 -3
  106. package/types/InvoicesResource.d.ts +4618 -933
  107. package/types/Issuing/Authorizations.d.ts +2 -1
  108. package/types/Issuing/CardholdersResource.d.ts +2 -1
  109. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  110. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  111. package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
  112. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  113. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  114. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  115. package/types/Issuing/Settlements.d.ts +103 -0
  116. package/types/Issuing/Transactions.d.ts +3 -1
  117. package/types/Issuing/TransactionsResource.d.ts +5 -0
  118. package/types/LineItems.d.ts +32 -0
  119. package/types/Mandates.d.ts +77 -0
  120. package/types/Margins.d.ts +56 -0
  121. package/types/MarginsResource.d.ts +114 -0
  122. package/types/Orders.d.ts +1179 -0
  123. package/types/OrdersResource.d.ts +2961 -0
  124. package/types/PaymentAttemptRecords.d.ts +242 -0
  125. package/types/PaymentAttemptRecordsResource.d.ts +47 -0
  126. package/types/PaymentIntents.d.ts +653 -1
  127. package/types/PaymentIntentsResource.d.ts +8018 -3686
  128. package/types/PaymentLinks.d.ts +8 -0
  129. package/types/PaymentLinksResource.d.ts +30 -0
  130. package/types/PaymentMethodConfigurations.d.ts +216 -0
  131. package/types/PaymentMethodConfigurationsResource.d.ts +300 -0
  132. package/types/PaymentMethods.d.ts +110 -1
  133. package/types/PaymentMethodsResource.d.ts +149 -0
  134. package/types/PaymentRecords.d.ts +242 -0
  135. package/types/PaymentRecordsResource.d.ts +455 -0
  136. package/types/Prices.d.ts +22 -0
  137. package/types/PricesResource.d.ts +22 -0
  138. package/types/Products.d.ts +39 -0
  139. package/types/ProductsResource.d.ts +36 -0
  140. package/types/QuoteLines.d.ts +634 -0
  141. package/types/QuotePreviewInvoices.d.ts +1658 -0
  142. package/types/QuotePreviewSubscriptionSchedules.d.ts +824 -0
  143. package/types/Quotes.d.ts +591 -1
  144. package/types/QuotesResource.d.ts +2526 -194
  145. package/types/Refunds.d.ts +14 -0
  146. package/types/SetupAttempts.d.ts +43 -0
  147. package/types/SetupIntents.d.ts +116 -1
  148. package/types/SetupIntentsResource.d.ts +669 -3
  149. package/types/Sources.d.ts +29 -0
  150. package/types/SubscriptionItems.d.ts +21 -0
  151. package/types/SubscriptionItemsResource.d.ts +109 -0
  152. package/types/SubscriptionSchedules.d.ts +200 -0
  153. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  154. package/types/Subscriptions.d.ts +91 -1
  155. package/types/SubscriptionsResource.d.ts +369 -2
  156. package/types/Tax/Associations.d.ts +126 -0
  157. package/types/Tax/AssociationsResource.d.ts +29 -0
  158. package/types/Tax/Forms.d.ts +220 -0
  159. package/types/Tax/FormsResource.d.ts +107 -0
  160. package/types/Terminal/Configurations.d.ts +19 -0
  161. package/types/Terminal/ConfigurationsResource.d.ts +44 -0
  162. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  163. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  164. package/types/Terminal/Readers.d.ts +310 -0
  165. package/types/Terminal/ReadersResource.d.ts +215 -0
  166. package/types/TestHelpers/ConfirmationTokensResource.d.ts +112 -0
  167. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  168. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  169. package/types/TokensResource.d.ts +30 -0
  170. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  171. package/types/Treasury/FinancialAccounts.d.ts +12 -0
  172. package/types/Treasury/FinancialAccountsResource.d.ts +121 -0
  173. package/types/Treasury/OutboundTransfers.d.ts +43 -1
  174. package/types/Treasury/OutboundTransfersResource.d.ts +43 -0
  175. package/types/Treasury/ReceivedCredits.d.ts +36 -0
  176. package/types/Treasury/ReceivedCreditsResource.d.ts +1 -0
  177. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  178. package/types/WebhookEndpointsResource.d.ts +72 -1
  179. package/types/index.d.ts +62 -0
  180. package/types/lib.d.ts +1 -1
  181. package/types/test/typescriptTest.ts +3 -3
@@ -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
  */
@@ -173,6 +183,11 @@ declare module 'stripe' {
173
183
  */
174
184
  parent?: string;
175
185
 
186
+ /**
187
+ * Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments.
188
+ */
189
+ pay_by_bank?: PaymentMethodConfigurationCreateParams.PayByBank;
190
+
176
191
  /**
177
192
  * PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://stripe.com/docs/payments/paynow) for more details.
178
193
  */
@@ -183,11 +198,21 @@ declare module 'stripe' {
183
198
  */
184
199
  paypal?: PaymentMethodConfigurationCreateParams.Paypal;
185
200
 
201
+ /**
202
+ * 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.
203
+ */
204
+ payto?: PaymentMethodConfigurationCreateParams.Payto;
205
+
186
206
  /**
187
207
  * 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
208
  */
189
209
  promptpay?: PaymentMethodConfigurationCreateParams.Promptpay;
190
210
 
211
+ /**
212
+ * 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.
213
+ */
214
+ qris?: PaymentMethodConfigurationCreateParams.Qris;
215
+
191
216
  /**
192
217
  * 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
218
  */
@@ -198,6 +223,11 @@ declare module 'stripe' {
198
223
  */
199
224
  sepa_debit?: PaymentMethodConfigurationCreateParams.SepaDebit;
200
225
 
226
+ /**
227
+ * 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.
228
+ */
229
+ shopeepay?: PaymentMethodConfigurationCreateParams.Shopeepay;
230
+
201
231
  /**
202
232
  * 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
233
  */
@@ -650,6 +680,26 @@ declare module 'stripe' {
650
680
  }
651
681
  }
652
682
 
683
+ interface Gopay {
684
+ /**
685
+ * Whether or not the payment method should be displayed.
686
+ */
687
+ display_preference?: Gopay.DisplayPreference;
688
+ }
689
+
690
+ namespace Gopay {
691
+ interface DisplayPreference {
692
+ /**
693
+ * The account's preference for whether or not to display this payment method.
694
+ */
695
+ preference?: DisplayPreference.Preference;
696
+ }
697
+
698
+ namespace DisplayPreference {
699
+ type Preference = 'none' | 'off' | 'on';
700
+ }
701
+ }
702
+
653
703
  interface Grabpay {
654
704
  /**
655
705
  * Whether or not the payment method should be displayed.
@@ -670,6 +720,26 @@ declare module 'stripe' {
670
720
  }
671
721
  }
672
722
 
723
+ interface IdBankTransfer {
724
+ /**
725
+ * Whether or not the payment method should be displayed.
726
+ */
727
+ display_preference?: IdBankTransfer.DisplayPreference;
728
+ }
729
+
730
+ namespace IdBankTransfer {
731
+ interface DisplayPreference {
732
+ /**
733
+ * The account's preference for whether or not to display this payment method.
734
+ */
735
+ preference?: DisplayPreference.Preference;
736
+ }
737
+
738
+ namespace DisplayPreference {
739
+ type Preference = 'none' | 'off' | 'on';
740
+ }
741
+ }
742
+
673
743
  interface Ideal {
674
744
  /**
675
745
  * Whether or not the payment method should be displayed.
@@ -850,6 +920,26 @@ declare module 'stripe' {
850
920
  }
851
921
  }
852
922
 
923
+ interface PayByBank {
924
+ /**
925
+ * Whether or not the payment method should be displayed.
926
+ */
927
+ display_preference?: PayByBank.DisplayPreference;
928
+ }
929
+
930
+ namespace PayByBank {
931
+ interface DisplayPreference {
932
+ /**
933
+ * The account's preference for whether or not to display this payment method.
934
+ */
935
+ preference?: DisplayPreference.Preference;
936
+ }
937
+
938
+ namespace DisplayPreference {
939
+ type Preference = 'none' | 'off' | 'on';
940
+ }
941
+ }
942
+
853
943
  interface Paynow {
854
944
  /**
855
945
  * Whether or not the payment method should be displayed.
@@ -890,6 +980,26 @@ declare module 'stripe' {
890
980
  }
891
981
  }
892
982
 
983
+ interface Payto {
984
+ /**
985
+ * Whether or not the payment method should be displayed.
986
+ */
987
+ display_preference?: Payto.DisplayPreference;
988
+ }
989
+
990
+ namespace Payto {
991
+ interface DisplayPreference {
992
+ /**
993
+ * The account's preference for whether or not to display this payment method.
994
+ */
995
+ preference?: DisplayPreference.Preference;
996
+ }
997
+
998
+ namespace DisplayPreference {
999
+ type Preference = 'none' | 'off' | 'on';
1000
+ }
1001
+ }
1002
+
893
1003
  interface Promptpay {
894
1004
  /**
895
1005
  * Whether or not the payment method should be displayed.
@@ -910,6 +1020,26 @@ declare module 'stripe' {
910
1020
  }
911
1021
  }
912
1022
 
1023
+ interface Qris {
1024
+ /**
1025
+ * Whether or not the payment method should be displayed.
1026
+ */
1027
+ display_preference?: Qris.DisplayPreference;
1028
+ }
1029
+
1030
+ namespace Qris {
1031
+ interface DisplayPreference {
1032
+ /**
1033
+ * The account's preference for whether or not to display this payment method.
1034
+ */
1035
+ preference?: DisplayPreference.Preference;
1036
+ }
1037
+
1038
+ namespace DisplayPreference {
1039
+ type Preference = 'none' | 'off' | 'on';
1040
+ }
1041
+ }
1042
+
913
1043
  interface RevolutPay {
914
1044
  /**
915
1045
  * Whether or not the payment method should be displayed.
@@ -950,6 +1080,26 @@ declare module 'stripe' {
950
1080
  }
951
1081
  }
952
1082
 
1083
+ interface Shopeepay {
1084
+ /**
1085
+ * Whether or not the payment method should be displayed.
1086
+ */
1087
+ display_preference?: Shopeepay.DisplayPreference;
1088
+ }
1089
+
1090
+ namespace Shopeepay {
1091
+ interface DisplayPreference {
1092
+ /**
1093
+ * The account's preference for whether or not to display this payment method.
1094
+ */
1095
+ preference?: DisplayPreference.Preference;
1096
+ }
1097
+
1098
+ namespace DisplayPreference {
1099
+ type Preference = 'none' | 'off' | 'on';
1100
+ }
1101
+ }
1102
+
953
1103
  interface Sofort {
954
1104
  /**
955
1105
  * Whether or not the payment method should be displayed.
@@ -1194,11 +1344,21 @@ declare module 'stripe' {
1194
1344
  */
1195
1345
  google_pay?: PaymentMethodConfigurationUpdateParams.GooglePay;
1196
1346
 
1347
+ /**
1348
+ * 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.
1349
+ */
1350
+ gopay?: PaymentMethodConfigurationUpdateParams.Gopay;
1351
+
1197
1352
  /**
1198
1353
  * 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
1354
  */
1200
1355
  grabpay?: PaymentMethodConfigurationUpdateParams.Grabpay;
1201
1356
 
1357
+ /**
1358
+ * Stripe users in Indonesia can receive bank transfers from customers in Indonesia. Bank transfers are a popular B2C and B2B payment method in Indonesia.
1359
+ */
1360
+ id_bank_transfer?: PaymentMethodConfigurationUpdateParams.IdBankTransfer;
1361
+
1202
1362
  /**
1203
1363
  * 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
1364
  */
@@ -1249,6 +1409,11 @@ declare module 'stripe' {
1249
1409
  */
1250
1410
  p24?: PaymentMethodConfigurationUpdateParams.P24;
1251
1411
 
1412
+ /**
1413
+ * Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments.
1414
+ */
1415
+ pay_by_bank?: PaymentMethodConfigurationUpdateParams.PayByBank;
1416
+
1252
1417
  /**
1253
1418
  * PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://stripe.com/docs/payments/paynow) for more details.
1254
1419
  */
@@ -1259,11 +1424,21 @@ declare module 'stripe' {
1259
1424
  */
1260
1425
  paypal?: PaymentMethodConfigurationUpdateParams.Paypal;
1261
1426
 
1427
+ /**
1428
+ * 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.
1429
+ */
1430
+ payto?: PaymentMethodConfigurationUpdateParams.Payto;
1431
+
1262
1432
  /**
1263
1433
  * 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
1434
  */
1265
1435
  promptpay?: PaymentMethodConfigurationUpdateParams.Promptpay;
1266
1436
 
1437
+ /**
1438
+ * 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.
1439
+ */
1440
+ qris?: PaymentMethodConfigurationUpdateParams.Qris;
1441
+
1267
1442
  /**
1268
1443
  * 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
1444
  */
@@ -1274,6 +1449,11 @@ declare module 'stripe' {
1274
1449
  */
1275
1450
  sepa_debit?: PaymentMethodConfigurationUpdateParams.SepaDebit;
1276
1451
 
1452
+ /**
1453
+ * 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.
1454
+ */
1455
+ shopeepay?: PaymentMethodConfigurationUpdateParams.Shopeepay;
1456
+
1277
1457
  /**
1278
1458
  * 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
1459
  */
@@ -1726,6 +1906,26 @@ declare module 'stripe' {
1726
1906
  }
1727
1907
  }
1728
1908
 
1909
+ interface Gopay {
1910
+ /**
1911
+ * Whether or not the payment method should be displayed.
1912
+ */
1913
+ display_preference?: Gopay.DisplayPreference;
1914
+ }
1915
+
1916
+ namespace Gopay {
1917
+ interface DisplayPreference {
1918
+ /**
1919
+ * The account's preference for whether or not to display this payment method.
1920
+ */
1921
+ preference?: DisplayPreference.Preference;
1922
+ }
1923
+
1924
+ namespace DisplayPreference {
1925
+ type Preference = 'none' | 'off' | 'on';
1926
+ }
1927
+ }
1928
+
1729
1929
  interface Grabpay {
1730
1930
  /**
1731
1931
  * Whether or not the payment method should be displayed.
@@ -1746,6 +1946,26 @@ declare module 'stripe' {
1746
1946
  }
1747
1947
  }
1748
1948
 
1949
+ interface IdBankTransfer {
1950
+ /**
1951
+ * Whether or not the payment method should be displayed.
1952
+ */
1953
+ display_preference?: IdBankTransfer.DisplayPreference;
1954
+ }
1955
+
1956
+ namespace IdBankTransfer {
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
+
1749
1969
  interface Ideal {
1750
1970
  /**
1751
1971
  * Whether or not the payment method should be displayed.
@@ -1926,6 +2146,26 @@ declare module 'stripe' {
1926
2146
  }
1927
2147
  }
1928
2148
 
2149
+ interface PayByBank {
2150
+ /**
2151
+ * Whether or not the payment method should be displayed.
2152
+ */
2153
+ display_preference?: PayByBank.DisplayPreference;
2154
+ }
2155
+
2156
+ namespace PayByBank {
2157
+ interface DisplayPreference {
2158
+ /**
2159
+ * The account's preference for whether or not to display this payment method.
2160
+ */
2161
+ preference?: DisplayPreference.Preference;
2162
+ }
2163
+
2164
+ namespace DisplayPreference {
2165
+ type Preference = 'none' | 'off' | 'on';
2166
+ }
2167
+ }
2168
+
1929
2169
  interface Paynow {
1930
2170
  /**
1931
2171
  * Whether or not the payment method should be displayed.
@@ -1966,6 +2206,26 @@ declare module 'stripe' {
1966
2206
  }
1967
2207
  }
1968
2208
 
2209
+ interface Payto {
2210
+ /**
2211
+ * Whether or not the payment method should be displayed.
2212
+ */
2213
+ display_preference?: Payto.DisplayPreference;
2214
+ }
2215
+
2216
+ namespace Payto {
2217
+ interface DisplayPreference {
2218
+ /**
2219
+ * The account's preference for whether or not to display this payment method.
2220
+ */
2221
+ preference?: DisplayPreference.Preference;
2222
+ }
2223
+
2224
+ namespace DisplayPreference {
2225
+ type Preference = 'none' | 'off' | 'on';
2226
+ }
2227
+ }
2228
+
1969
2229
  interface Promptpay {
1970
2230
  /**
1971
2231
  * Whether or not the payment method should be displayed.
@@ -1986,6 +2246,26 @@ declare module 'stripe' {
1986
2246
  }
1987
2247
  }
1988
2248
 
2249
+ interface Qris {
2250
+ /**
2251
+ * Whether or not the payment method should be displayed.
2252
+ */
2253
+ display_preference?: Qris.DisplayPreference;
2254
+ }
2255
+
2256
+ namespace Qris {
2257
+ interface DisplayPreference {
2258
+ /**
2259
+ * The account's preference for whether or not to display this payment method.
2260
+ */
2261
+ preference?: DisplayPreference.Preference;
2262
+ }
2263
+
2264
+ namespace DisplayPreference {
2265
+ type Preference = 'none' | 'off' | 'on';
2266
+ }
2267
+ }
2268
+
1989
2269
  interface RevolutPay {
1990
2270
  /**
1991
2271
  * Whether or not the payment method should be displayed.
@@ -2026,6 +2306,26 @@ declare module 'stripe' {
2026
2306
  }
2027
2307
  }
2028
2308
 
2309
+ interface Shopeepay {
2310
+ /**
2311
+ * Whether or not the payment method should be displayed.
2312
+ */
2313
+ display_preference?: Shopeepay.DisplayPreference;
2314
+ }
2315
+
2316
+ namespace Shopeepay {
2317
+ interface DisplayPreference {
2318
+ /**
2319
+ * The account's preference for whether or not to display this payment method.
2320
+ */
2321
+ preference?: DisplayPreference.Preference;
2322
+ }
2323
+
2324
+ namespace DisplayPreference {
2325
+ type Preference = 'none' | 'off' | 'on';
2326
+ }
2327
+ }
2328
+
2029
2329
  interface Sofort {
2030
2330
  /**
2031
2331
  * 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
  */
@@ -109,27 +115,37 @@ declare module 'stripe' {
109
115
 
110
116
  p24?: PaymentMethod.P24;
111
117
 
118
+ pay_by_bank?: PaymentMethod.PayByBank;
119
+
112
120
  payco?: PaymentMethod.Payco;
113
121
 
114
122
  paynow?: PaymentMethod.Paynow;
115
123
 
116
124
  paypal?: PaymentMethod.Paypal;
117
125
 
126
+ payto?: PaymentMethod.Payto;
127
+
118
128
  pix?: PaymentMethod.Pix;
119
129
 
120
130
  promptpay?: PaymentMethod.Promptpay;
121
131
 
132
+ qris?: PaymentMethod.Qris;
133
+
122
134
  /**
123
135
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
124
136
  */
125
137
  radar_options?: PaymentMethod.RadarOptions;
126
138
 
139
+ rechnung?: PaymentMethod.Rechnung;
140
+
127
141
  revolut_pay?: PaymentMethod.RevolutPay;
128
142
 
129
143
  samsung_pay?: PaymentMethod.SamsungPay;
130
144
 
131
145
  sepa_debit?: PaymentMethod.SepaDebit;
132
146
 
147
+ shopeepay?: PaymentMethod.Shopeepay;
148
+
133
149
  sofort?: PaymentMethod.Sofort;
134
150
 
135
151
  swish?: PaymentMethod.Swish;
@@ -331,7 +347,7 @@ declare module 'stripe' {
331
347
  /**
332
348
  * Status of a card based on the card issuer.
333
349
  */
334
- regulated_status?: Card.RegulatedStatus | null;
350
+ regulated_status: Card.RegulatedStatus | null;
335
351
 
336
352
  /**
337
353
  * Contains details on how this Card may be used for 3D Secure authentication.
@@ -947,8 +963,24 @@ declare module 'stripe' {
947
963
 
948
964
  interface Giropay {}
949
965
 
966
+ interface Gopay {}
967
+
950
968
  interface Grabpay {}
951
969
 
970
+ interface IdBankTransfer {
971
+ bank: IdBankTransfer.Bank | null;
972
+
973
+ bank_code: string | null;
974
+
975
+ bank_name: string | null;
976
+
977
+ display_name: string | null;
978
+ }
979
+
980
+ namespace IdBankTransfer {
981
+ type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
982
+ }
983
+
952
984
  interface Ideal {
953
985
  /**
954
986
  * 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`.
@@ -1176,6 +1208,8 @@ declare module 'stripe' {
1176
1208
  persistent_token?: string;
1177
1209
  }
1178
1210
 
1211
+ interface MbWay {}
1212
+
1179
1213
  interface Mobilepay {}
1180
1214
 
1181
1215
  interface Multibanco {}
@@ -1230,11 +1264,23 @@ declare module 'stripe' {
1230
1264
  | 'volkswagen_bank';
1231
1265
  }
1232
1266
 
1267
+ interface PayByBank {}
1268
+
1233
1269
  interface Payco {}
1234
1270
 
1235
1271
  interface Paynow {}
1236
1272
 
1237
1273
  interface Paypal {
1274
+ /**
1275
+ * Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1276
+ */
1277
+ country: string | null;
1278
+
1279
+ /**
1280
+ * Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
1281
+ */
1282
+ fingerprint?: string | null;
1283
+
1238
1284
  /**
1239
1285
  * Owner's email. Values are provided by PayPal directly
1240
1286
  * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
@@ -1245,12 +1291,37 @@ declare module 'stripe' {
1245
1291
  * PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
1246
1292
  */
1247
1293
  payer_id: string | null;
1294
+
1295
+ /**
1296
+ * Owner's verified email. Values are verified or provided by PayPal directly
1297
+ * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1298
+ */
1299
+ verified_email?: string | null;
1300
+ }
1301
+
1302
+ interface Payto {
1303
+ /**
1304
+ * Bank-State-Branch number of the bank account.
1305
+ */
1306
+ bsb_number: string | null;
1307
+
1308
+ /**
1309
+ * Last four digits of the bank account number.
1310
+ */
1311
+ last4: string | null;
1312
+
1313
+ /**
1314
+ * The PayID alias for the bank account.
1315
+ */
1316
+ pay_id: string | null;
1248
1317
  }
1249
1318
 
1250
1319
  interface Pix {}
1251
1320
 
1252
1321
  interface Promptpay {}
1253
1322
 
1323
+ interface Qris {}
1324
+
1254
1325
  interface RadarOptions {
1255
1326
  /**
1256
1327
  * 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.
@@ -1258,6 +1329,29 @@ declare module 'stripe' {
1258
1329
  session?: string;
1259
1330
  }
1260
1331
 
1332
+ interface Rechnung {
1333
+ dob?: Rechnung.Dob;
1334
+ }
1335
+
1336
+ namespace Rechnung {
1337
+ interface Dob {
1338
+ /**
1339
+ * The day of birth, between 1 and 31.
1340
+ */
1341
+ day: number;
1342
+
1343
+ /**
1344
+ * The month of birth, between 1 and 12.
1345
+ */
1346
+ month: number;
1347
+
1348
+ /**
1349
+ * The four-digit year of birth.
1350
+ */
1351
+ year: number;
1352
+ }
1353
+ }
1354
+
1261
1355
  interface RevolutPay {}
1262
1356
 
1263
1357
  interface SamsungPay {}
@@ -1308,6 +1402,8 @@ declare module 'stripe' {
1308
1402
  }
1309
1403
  }
1310
1404
 
1405
+ interface Shopeepay {}
1406
+
1311
1407
  interface Sofort {
1312
1408
  /**
1313
1409
  * Two-letter ISO code representing the country the bank account is located in.
@@ -1338,7 +1434,9 @@ declare module 'stripe' {
1338
1434
  | 'eps'
1339
1435
  | 'fpx'
1340
1436
  | 'giropay'
1437
+ | 'gopay'
1341
1438
  | 'grabpay'
1439
+ | 'id_bank_transfer'
1342
1440
  | 'ideal'
1343
1441
  | 'interac_present'
1344
1442
  | 'kakao_pay'
@@ -1346,19 +1444,25 @@ declare module 'stripe' {
1346
1444
  | 'konbini'
1347
1445
  | 'kr_card'
1348
1446
  | 'link'
1447
+ | 'mb_way'
1349
1448
  | 'mobilepay'
1350
1449
  | 'multibanco'
1351
1450
  | 'naver_pay'
1352
1451
  | 'oxxo'
1353
1452
  | 'p24'
1453
+ | 'pay_by_bank'
1354
1454
  | 'payco'
1355
1455
  | 'paynow'
1356
1456
  | 'paypal'
1457
+ | 'payto'
1357
1458
  | 'pix'
1358
1459
  | 'promptpay'
1460
+ | 'qris'
1461
+ | 'rechnung'
1359
1462
  | 'revolut_pay'
1360
1463
  | 'samsung_pay'
1361
1464
  | 'sepa_debit'
1465
+ | 'shopeepay'
1362
1466
  | 'sofort'
1363
1467
  | 'swish'
1364
1468
  | 'twint'
@@ -1372,6 +1476,11 @@ declare module 'stripe' {
1372
1476
  */
1373
1477
  account_holder_type: UsBankAccount.AccountHolderType | null;
1374
1478
 
1479
+ /**
1480
+ * Account number of the bank account.
1481
+ */
1482
+ account_number?: string | null;
1483
+
1375
1484
  /**
1376
1485
  * Account type: checkings or savings. Defaults to checking if omitted.
1377
1486
  */