stripe 18.3.0 → 18.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 (287) hide show
  1. package/CHANGELOG.md +1296 -12
  2. package/README.md +1 -0
  3. package/VERSION +1 -1
  4. package/cjs/Error.js +107 -1
  5. package/cjs/apiVersion.js +2 -3
  6. package/cjs/resources/AccountNotices.js +21 -0
  7. package/cjs/resources/BalanceSettings.js +10 -0
  8. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  9. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  10. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  11. package/cjs/resources/ExternalAccounts.js +23 -0
  12. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  13. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  14. package/cjs/resources/FxQuotes.js +15 -0
  15. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  16. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  17. package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
  18. package/cjs/resources/Margins.js +22 -0
  19. package/cjs/resources/Orders.js +24 -0
  20. package/cjs/resources/{InvoicePayments.js → PaymentAttemptRecords.js} +4 -4
  21. package/cjs/resources/PaymentIntents.js +13 -0
  22. package/cjs/resources/PaymentRecords.js +29 -0
  23. package/cjs/resources/Privacy/RedactionJobs.js +42 -0
  24. package/cjs/resources/Quotes.js +32 -0
  25. package/cjs/resources/SubscriptionSchedules.js +4 -0
  26. package/cjs/resources/Tax/Associations.js +9 -0
  27. package/cjs/resources/Tax/Forms.js +20 -0
  28. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  29. package/cjs/resources/V2/Core/AccountLinks.js +9 -0
  30. package/cjs/resources/V2/Core/Accounts/Persons.js +29 -0
  31. package/cjs/resources/V2/Core/Accounts.js +25 -0
  32. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +28 -0
  33. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +24 -0
  34. package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
  35. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +25 -0
  36. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +21 -0
  37. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +21 -0
  38. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +16 -0
  39. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +25 -0
  40. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +29 -0
  41. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +25 -0
  42. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +25 -0
  43. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +12 -0
  44. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +17 -0
  45. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +17 -0
  46. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +17 -0
  47. package/cjs/resources/V2/MoneyManagement/Transactions.js +17 -0
  48. package/cjs/resources/V2/Payments/OffSessionPayments.js +25 -0
  49. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
  50. package/cjs/resources.js +98 -10
  51. package/cjs/stripe.core.js +1 -1
  52. package/esm/Error.js +93 -0
  53. package/esm/apiVersion.js +1 -2
  54. package/esm/resources/AccountNotices.js +18 -0
  55. package/esm/resources/BalanceSettings.js +7 -0
  56. package/esm/resources/Capital/FinancingOffers.js +18 -0
  57. package/esm/resources/Capital/FinancingSummary.js +9 -0
  58. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  59. package/esm/resources/ExternalAccounts.js +20 -0
  60. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  61. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  62. package/esm/resources/FxQuotes.js +12 -0
  63. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  64. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  65. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  66. package/esm/resources/Margins.js +19 -0
  67. package/esm/resources/Orders.js +21 -0
  68. package/esm/resources/{InvoicePayments.js → PaymentAttemptRecords.js} +3 -3
  69. package/esm/resources/PaymentIntents.js +13 -0
  70. package/esm/resources/PaymentRecords.js +26 -0
  71. package/esm/resources/Privacy/RedactionJobs.js +39 -0
  72. package/esm/resources/Quotes.js +32 -0
  73. package/esm/resources/SubscriptionSchedules.js +4 -0
  74. package/esm/resources/Tax/Associations.js +6 -0
  75. package/esm/resources/Tax/Forms.js +17 -0
  76. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  77. package/esm/resources/V2/Core/AccountLinks.js +6 -0
  78. package/esm/resources/V2/Core/Accounts/Persons.js +26 -0
  79. package/esm/resources/V2/Core/Accounts.js +22 -0
  80. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +25 -0
  81. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +21 -0
  82. package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
  83. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +22 -0
  84. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +18 -0
  85. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +18 -0
  86. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +13 -0
  87. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +22 -0
  88. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +26 -0
  89. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +22 -0
  90. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +22 -0
  91. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +9 -0
  92. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +14 -0
  93. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +14 -0
  94. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +14 -0
  95. package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
  96. package/esm/resources/V2/Payments/OffSessionPayments.js +22 -0
  97. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
  98. package/esm/resources.js +82 -1
  99. package/esm/stripe.core.js +1 -1
  100. package/package.json +1 -1
  101. package/types/AccountLinksResource.d.ts +5 -1
  102. package/types/AccountNotices.d.ts +113 -0
  103. package/types/AccountNoticesResource.d.ts +98 -0
  104. package/types/AccountSessions.d.ts +45 -0
  105. package/types/AccountSessionsResource.d.ts +264 -0
  106. package/types/Accounts.d.ts +212 -1
  107. package/types/AccountsResource.d.ts +544 -0
  108. package/types/BalanceSettings.d.ts +89 -0
  109. package/types/BalanceSettingsResource.d.ts +108 -0
  110. package/types/Billing/CreditBalanceSummary.d.ts +5 -0
  111. package/types/Billing/CreditBalanceSummaryResource.d.ts +8 -3
  112. package/types/Billing/CreditBalanceTransactionsResource.d.ts +12 -4
  113. package/types/Billing/CreditGrants.d.ts +5 -0
  114. package/types/Billing/CreditGrantsResource.d.ts +11 -1
  115. package/types/BillingPortal/Sessions.d.ts +5 -0
  116. package/types/BillingPortal/SessionsResource.d.ts +12 -4
  117. package/types/Capital/FinancingOffers.d.ts +188 -0
  118. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  119. package/types/Capital/FinancingSummary.d.ts +106 -0
  120. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  121. package/types/Capital/FinancingTransactions.d.ts +135 -0
  122. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  123. package/types/Cards.d.ts +5 -0
  124. package/types/CashBalances.d.ts +5 -0
  125. package/types/Charges.d.ts +166 -0
  126. package/types/ChargesResource.d.ts +1406 -0
  127. package/types/Checkout/Sessions.d.ts +314 -1
  128. package/types/Checkout/SessionsResource.d.ts +333 -1
  129. package/types/ConfirmationTokens.d.ts +125 -0
  130. package/types/Coupons.d.ts +33 -0
  131. package/types/CouponsResource.d.ts +21 -0
  132. package/types/CreditNoteLineItems.d.ts +17 -0
  133. package/types/CreditNotes.d.ts +5 -0
  134. package/types/CreditNotesResource.d.ts +5 -0
  135. package/types/CustomerBalanceTransactions.d.ts +2 -0
  136. package/types/CustomerCashBalanceTransactions.d.ts +2 -0
  137. package/types/CustomerSessions.d.ts +5 -0
  138. package/types/CustomerSessionsResource.d.ts +6 -1
  139. package/types/Customers.d.ts +2 -0
  140. package/types/CustomersResource.d.ts +8 -0
  141. package/types/Discounts.d.ts +10 -0
  142. package/types/Disputes.d.ts +7 -0
  143. package/types/Errors.d.ts +81 -2
  144. package/types/EventTypes.d.ts +664 -0
  145. package/types/Events.d.ts +97 -0
  146. package/types/ExternalAccountsResource.d.ts +304 -0
  147. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  148. package/types/FinancialConnections/Accounts.d.ts +36 -1
  149. package/types/FinancialConnections/AccountsResource.d.ts +40 -3
  150. package/types/FinancialConnections/Institutions.d.ts +98 -0
  151. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  152. package/types/FinancialConnections/Sessions.d.ts +51 -1
  153. package/types/FinancialConnections/SessionsResource.d.ts +43 -1
  154. package/types/FxQuotes.d.ts +153 -0
  155. package/types/FxQuotesResource.d.ts +130 -0
  156. package/types/Identity/VerificationSessions.d.ts +5 -0
  157. package/types/Identity/VerificationSessionsResource.d.ts +7 -0
  158. package/types/InvoiceItems.d.ts +10 -0
  159. package/types/InvoiceItemsResource.d.ts +117 -6
  160. package/types/InvoiceLineItems.d.ts +45 -1
  161. package/types/InvoicePayments.d.ts +5 -0
  162. package/types/Invoices.d.ts +133 -3
  163. package/types/InvoicesResource.d.ts +1447 -16
  164. package/types/Issuing/CardholdersResource.d.ts +2 -1
  165. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  166. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  167. package/types/Issuing/DisputeSettlementDetails.d.ts +85 -0
  168. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  169. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  170. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  171. package/types/Issuing/Settlements.d.ts +113 -0
  172. package/types/Issuing/Transactions.d.ts +5 -0
  173. package/types/Issuing/TransactionsResource.d.ts +5 -0
  174. package/types/LineItems.d.ts +49 -0
  175. package/types/Mandates.d.ts +77 -0
  176. package/types/Margins.d.ts +56 -0
  177. package/types/MarginsResource.d.ts +114 -0
  178. package/types/Orders.d.ts +1163 -0
  179. package/types/OrdersResource.d.ts +3139 -0
  180. package/types/PaymentAttemptRecords.d.ts +2161 -0
  181. package/types/PaymentAttemptRecordsResource.d.ts +47 -0
  182. package/types/PaymentIntentAmountDetailsLineItems.d.ts +116 -0
  183. package/types/PaymentIntents.d.ts +768 -2
  184. package/types/PaymentIntentsResource.d.ts +8808 -4088
  185. package/types/PaymentLinks.d.ts +6 -0
  186. package/types/PaymentLinksResource.d.ts +12 -0
  187. package/types/PaymentMethodConfigurations.d.ts +180 -0
  188. package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
  189. package/types/PaymentMethods.d.ts +125 -0
  190. package/types/PaymentMethodsResource.d.ts +167 -2
  191. package/types/PaymentRecords.d.ts +2154 -0
  192. package/types/PaymentRecordsResource.d.ts +455 -0
  193. package/types/Payouts.d.ts +5 -0
  194. package/types/PayoutsResource.d.ts +5 -0
  195. package/types/Prices.d.ts +22 -0
  196. package/types/PricesResource.d.ts +22 -0
  197. package/types/Privacy/RedactionJobValidationErrors.d.ts +60 -0
  198. package/types/Privacy/RedactionJobs.d.ts +111 -0
  199. package/types/Privacy/RedactionJobsResource.d.ts +230 -0
  200. package/types/PromotionCodes.d.ts +5 -0
  201. package/types/PromotionCodesResource.d.ts +10 -0
  202. package/types/QuoteLines.d.ts +634 -0
  203. package/types/QuotePreviewInvoices.d.ts +1696 -0
  204. package/types/QuotePreviewSubscriptionSchedules.d.ts +845 -0
  205. package/types/Quotes.d.ts +594 -1
  206. package/types/QuotesResource.d.ts +2577 -232
  207. package/types/Refunds.d.ts +14 -0
  208. package/types/SetupAttempts.d.ts +47 -1
  209. package/types/SetupIntents.d.ts +118 -2
  210. package/types/SetupIntentsResource.d.ts +730 -3
  211. package/types/Sources.d.ts +29 -0
  212. package/types/SubscriptionItems.d.ts +21 -0
  213. package/types/SubscriptionItemsResource.d.ts +109 -0
  214. package/types/SubscriptionSchedules.d.ts +205 -0
  215. package/types/SubscriptionSchedulesResource.d.ts +1237 -9
  216. package/types/Subscriptions.d.ts +97 -1
  217. package/types/SubscriptionsResource.d.ts +396 -10
  218. package/types/Tax/Associations.d.ts +82 -0
  219. package/types/Tax/AssociationsResource.d.ts +29 -0
  220. package/types/Tax/Forms.d.ts +220 -0
  221. package/types/Tax/FormsResource.d.ts +107 -0
  222. package/types/TaxIds.d.ts +10 -0
  223. package/types/TaxIdsResource.d.ts +10 -0
  224. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  225. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  226. package/types/Terminal/Readers.d.ts +20 -0
  227. package/types/TestHelpers/ConfirmationTokensResource.d.ts +126 -0
  228. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  229. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  230. package/types/Transfers.d.ts +5 -0
  231. package/types/TransfersResource.d.ts +5 -0
  232. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  233. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  234. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  235. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  236. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  237. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  238. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  239. package/types/V2/Core/AccountLinks.d.ts +106 -0
  240. package/types/V2/Core/AccountLinksResource.d.ts +90 -0
  241. package/types/V2/Core/Accounts/PersonsResource.d.ts +3780 -0
  242. package/types/V2/Core/Accounts.d.ts +8791 -0
  243. package/types/V2/Core/AccountsResource.d.ts +10582 -0
  244. package/types/V2/Core/Persons.d.ts +1872 -0
  245. package/types/V2/Core/Vault/GbBankAccounts.d.ts +160 -0
  246. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +172 -0
  247. package/types/V2/Core/Vault/UsBankAccounts.d.ts +70 -0
  248. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +123 -0
  249. package/types/V2/EventTypes.d.ts +958 -5
  250. package/types/V2/FinancialAddressCreditSimulations.d.ts +27 -0
  251. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +32 -0
  252. package/types/V2/MoneyManagement/Adjustments.d.ts +110 -0
  253. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
  254. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +580 -0
  255. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +326 -0
  256. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +314 -0
  257. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +289 -0
  258. package/types/V2/MoneyManagement/InboundTransfers.d.ts +206 -0
  259. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +144 -0
  260. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +168 -0
  261. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +115 -0
  262. package/types/V2/MoneyManagement/OutboundPayments.d.ts +278 -0
  263. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +242 -0
  264. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +97 -0
  265. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +296 -0
  266. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +251 -0
  267. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +208 -0
  268. package/types/V2/MoneyManagement/PayoutMethods.d.ts +151 -0
  269. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
  270. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +87 -0
  271. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
  272. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +262 -0
  273. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
  274. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +176 -0
  275. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
  276. package/types/V2/MoneyManagement/TransactionEntries.d.ts +155 -0
  277. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
  278. package/types/V2/MoneyManagement/Transactions.d.ts +170 -0
  279. package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
  280. package/types/V2/Payments/OffSessionPayments.d.ts +162 -0
  281. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +159 -0
  282. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +66 -0
  283. package/types/WebhookEndpointsResource.d.ts +78 -0
  284. package/types/index.d.ts +138 -2
  285. package/types/lib.d.ts +11 -1
  286. package/types/test/typescriptTest.ts +3 -3
  287. package/types/InvoicePaymentsResource.d.ts +0 -74
@@ -118,11 +118,21 @@ declare module 'stripe' {
118
118
  */
119
119
  google_pay?: PaymentMethodConfigurationCreateParams.GooglePay;
120
120
 
121
+ /**
122
+ * 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.
123
+ */
124
+ gopay?: PaymentMethodConfigurationCreateParams.Gopay;
125
+
121
126
  /**
122
127
  * 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.
123
128
  */
124
129
  grabpay?: PaymentMethodConfigurationCreateParams.Grabpay;
125
130
 
131
+ /**
132
+ * Stripe users in Indonesia can receive bank transfers from customers in Indonesia. Bank transfers are a popular B2C and B2B payment method in Indonesia.
133
+ */
134
+ id_bank_transfer?: PaymentMethodConfigurationCreateParams.IdBankTransfer;
135
+
126
136
  /**
127
137
  * 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.
128
138
  */
@@ -218,6 +228,11 @@ declare module 'stripe' {
218
228
  */
219
229
  paypal?: PaymentMethodConfigurationCreateParams.Paypal;
220
230
 
231
+ /**
232
+ * 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.
233
+ */
234
+ payto?: PaymentMethodConfigurationCreateParams.Payto;
235
+
221
236
  /**
222
237
  * Pix is a payment method popular in Brazil. When paying with Pix, customers authenticate and approve payments by scanning a QR code in their preferred banking app. Check this [page](https://docs.stripe.com/payments/pix) for more details.
223
238
  */
@@ -228,6 +243,11 @@ declare module 'stripe' {
228
243
  */
229
244
  promptpay?: PaymentMethodConfigurationCreateParams.Promptpay;
230
245
 
246
+ /**
247
+ * 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.
248
+ */
249
+ qris?: PaymentMethodConfigurationCreateParams.Qris;
250
+
231
251
  /**
232
252
  * 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.
233
253
  */
@@ -248,6 +268,11 @@ declare module 'stripe' {
248
268
  */
249
269
  sepa_debit?: PaymentMethodConfigurationCreateParams.SepaDebit;
250
270
 
271
+ /**
272
+ * 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.
273
+ */
274
+ shopeepay?: PaymentMethodConfigurationCreateParams.Shopeepay;
275
+
251
276
  /**
252
277
  * 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.
253
278
  */
@@ -720,6 +745,26 @@ declare module 'stripe' {
720
745
  }
721
746
  }
722
747
 
748
+ interface Gopay {
749
+ /**
750
+ * Whether or not the payment method should be displayed.
751
+ */
752
+ display_preference?: Gopay.DisplayPreference;
753
+ }
754
+
755
+ namespace Gopay {
756
+ interface DisplayPreference {
757
+ /**
758
+ * The account's preference for whether or not to display this payment method.
759
+ */
760
+ preference?: DisplayPreference.Preference;
761
+ }
762
+
763
+ namespace DisplayPreference {
764
+ type Preference = 'none' | 'off' | 'on';
765
+ }
766
+ }
767
+
723
768
  interface Grabpay {
724
769
  /**
725
770
  * Whether or not the payment method should be displayed.
@@ -740,6 +785,26 @@ declare module 'stripe' {
740
785
  }
741
786
  }
742
787
 
788
+ interface IdBankTransfer {
789
+ /**
790
+ * Whether or not the payment method should be displayed.
791
+ */
792
+ display_preference?: IdBankTransfer.DisplayPreference;
793
+ }
794
+
795
+ namespace IdBankTransfer {
796
+ interface DisplayPreference {
797
+ /**
798
+ * The account's preference for whether or not to display this payment method.
799
+ */
800
+ preference?: DisplayPreference.Preference;
801
+ }
802
+
803
+ namespace DisplayPreference {
804
+ type Preference = 'none' | 'off' | 'on';
805
+ }
806
+ }
807
+
743
808
  interface Ideal {
744
809
  /**
745
810
  * Whether or not the payment method should be displayed.
@@ -1080,6 +1145,26 @@ declare module 'stripe' {
1080
1145
  }
1081
1146
  }
1082
1147
 
1148
+ interface Payto {
1149
+ /**
1150
+ * Whether or not the payment method should be displayed.
1151
+ */
1152
+ display_preference?: Payto.DisplayPreference;
1153
+ }
1154
+
1155
+ namespace Payto {
1156
+ interface DisplayPreference {
1157
+ /**
1158
+ * The account's preference for whether or not to display this payment method.
1159
+ */
1160
+ preference?: DisplayPreference.Preference;
1161
+ }
1162
+
1163
+ namespace DisplayPreference {
1164
+ type Preference = 'none' | 'off' | 'on';
1165
+ }
1166
+ }
1167
+
1083
1168
  interface Pix {
1084
1169
  /**
1085
1170
  * Whether or not the payment method should be displayed.
@@ -1120,6 +1205,26 @@ declare module 'stripe' {
1120
1205
  }
1121
1206
  }
1122
1207
 
1208
+ interface Qris {
1209
+ /**
1210
+ * Whether or not the payment method should be displayed.
1211
+ */
1212
+ display_preference?: Qris.DisplayPreference;
1213
+ }
1214
+
1215
+ namespace Qris {
1216
+ interface DisplayPreference {
1217
+ /**
1218
+ * The account's preference for whether or not to display this payment method.
1219
+ */
1220
+ preference?: DisplayPreference.Preference;
1221
+ }
1222
+
1223
+ namespace DisplayPreference {
1224
+ type Preference = 'none' | 'off' | 'on';
1225
+ }
1226
+ }
1227
+
1123
1228
  interface RevolutPay {
1124
1229
  /**
1125
1230
  * Whether or not the payment method should be displayed.
@@ -1200,6 +1305,26 @@ declare module 'stripe' {
1200
1305
  }
1201
1306
  }
1202
1307
 
1308
+ interface Shopeepay {
1309
+ /**
1310
+ * Whether or not the payment method should be displayed.
1311
+ */
1312
+ display_preference?: Shopeepay.DisplayPreference;
1313
+ }
1314
+
1315
+ namespace Shopeepay {
1316
+ interface DisplayPreference {
1317
+ /**
1318
+ * The account's preference for whether or not to display this payment method.
1319
+ */
1320
+ preference?: DisplayPreference.Preference;
1321
+ }
1322
+
1323
+ namespace DisplayPreference {
1324
+ type Preference = 'none' | 'off' | 'on';
1325
+ }
1326
+ }
1327
+
1203
1328
  interface Sofort {
1204
1329
  /**
1205
1330
  * Whether or not the payment method should be displayed.
@@ -1449,11 +1574,21 @@ declare module 'stripe' {
1449
1574
  */
1450
1575
  google_pay?: PaymentMethodConfigurationUpdateParams.GooglePay;
1451
1576
 
1577
+ /**
1578
+ * 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.
1579
+ */
1580
+ gopay?: PaymentMethodConfigurationUpdateParams.Gopay;
1581
+
1452
1582
  /**
1453
1583
  * 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.
1454
1584
  */
1455
1585
  grabpay?: PaymentMethodConfigurationUpdateParams.Grabpay;
1456
1586
 
1587
+ /**
1588
+ * Stripe users in Indonesia can receive bank transfers from customers in Indonesia. Bank transfers are a popular B2C and B2B payment method in Indonesia.
1589
+ */
1590
+ id_bank_transfer?: PaymentMethodConfigurationUpdateParams.IdBankTransfer;
1591
+
1457
1592
  /**
1458
1593
  * 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.
1459
1594
  */
@@ -1544,6 +1679,11 @@ declare module 'stripe' {
1544
1679
  */
1545
1680
  paypal?: PaymentMethodConfigurationUpdateParams.Paypal;
1546
1681
 
1682
+ /**
1683
+ * 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.
1684
+ */
1685
+ payto?: PaymentMethodConfigurationUpdateParams.Payto;
1686
+
1547
1687
  /**
1548
1688
  * Pix is a payment method popular in Brazil. When paying with Pix, customers authenticate and approve payments by scanning a QR code in their preferred banking app. Check this [page](https://docs.stripe.com/payments/pix) for more details.
1549
1689
  */
@@ -1554,6 +1694,11 @@ declare module 'stripe' {
1554
1694
  */
1555
1695
  promptpay?: PaymentMethodConfigurationUpdateParams.Promptpay;
1556
1696
 
1697
+ /**
1698
+ * 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.
1699
+ */
1700
+ qris?: PaymentMethodConfigurationUpdateParams.Qris;
1701
+
1557
1702
  /**
1558
1703
  * 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.
1559
1704
  */
@@ -1574,6 +1719,11 @@ declare module 'stripe' {
1574
1719
  */
1575
1720
  sepa_debit?: PaymentMethodConfigurationUpdateParams.SepaDebit;
1576
1721
 
1722
+ /**
1723
+ * 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.
1724
+ */
1725
+ shopeepay?: PaymentMethodConfigurationUpdateParams.Shopeepay;
1726
+
1577
1727
  /**
1578
1728
  * 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.
1579
1729
  */
@@ -2046,6 +2196,26 @@ declare module 'stripe' {
2046
2196
  }
2047
2197
  }
2048
2198
 
2199
+ interface Gopay {
2200
+ /**
2201
+ * Whether or not the payment method should be displayed.
2202
+ */
2203
+ display_preference?: Gopay.DisplayPreference;
2204
+ }
2205
+
2206
+ namespace Gopay {
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
+
2049
2219
  interface Grabpay {
2050
2220
  /**
2051
2221
  * Whether or not the payment method should be displayed.
@@ -2066,6 +2236,26 @@ declare module 'stripe' {
2066
2236
  }
2067
2237
  }
2068
2238
 
2239
+ interface IdBankTransfer {
2240
+ /**
2241
+ * Whether or not the payment method should be displayed.
2242
+ */
2243
+ display_preference?: IdBankTransfer.DisplayPreference;
2244
+ }
2245
+
2246
+ namespace IdBankTransfer {
2247
+ interface DisplayPreference {
2248
+ /**
2249
+ * The account's preference for whether or not to display this payment method.
2250
+ */
2251
+ preference?: DisplayPreference.Preference;
2252
+ }
2253
+
2254
+ namespace DisplayPreference {
2255
+ type Preference = 'none' | 'off' | 'on';
2256
+ }
2257
+ }
2258
+
2069
2259
  interface Ideal {
2070
2260
  /**
2071
2261
  * Whether or not the payment method should be displayed.
@@ -2406,6 +2596,26 @@ declare module 'stripe' {
2406
2596
  }
2407
2597
  }
2408
2598
 
2599
+ interface Payto {
2600
+ /**
2601
+ * Whether or not the payment method should be displayed.
2602
+ */
2603
+ display_preference?: Payto.DisplayPreference;
2604
+ }
2605
+
2606
+ namespace Payto {
2607
+ interface DisplayPreference {
2608
+ /**
2609
+ * The account's preference for whether or not to display this payment method.
2610
+ */
2611
+ preference?: DisplayPreference.Preference;
2612
+ }
2613
+
2614
+ namespace DisplayPreference {
2615
+ type Preference = 'none' | 'off' | 'on';
2616
+ }
2617
+ }
2618
+
2409
2619
  interface Pix {
2410
2620
  /**
2411
2621
  * Whether or not the payment method should be displayed.
@@ -2446,6 +2656,26 @@ declare module 'stripe' {
2446
2656
  }
2447
2657
  }
2448
2658
 
2659
+ interface Qris {
2660
+ /**
2661
+ * Whether or not the payment method should be displayed.
2662
+ */
2663
+ display_preference?: Qris.DisplayPreference;
2664
+ }
2665
+
2666
+ namespace Qris {
2667
+ interface DisplayPreference {
2668
+ /**
2669
+ * The account's preference for whether or not to display this payment method.
2670
+ */
2671
+ preference?: DisplayPreference.Preference;
2672
+ }
2673
+
2674
+ namespace DisplayPreference {
2675
+ type Preference = 'none' | 'off' | 'on';
2676
+ }
2677
+ }
2678
+
2449
2679
  interface RevolutPay {
2450
2680
  /**
2451
2681
  * Whether or not the payment method should be displayed.
@@ -2526,6 +2756,26 @@ declare module 'stripe' {
2526
2756
  }
2527
2757
  }
2528
2758
 
2759
+ interface Shopeepay {
2760
+ /**
2761
+ * Whether or not the payment method should be displayed.
2762
+ */
2763
+ display_preference?: Shopeepay.DisplayPreference;
2764
+ }
2765
+
2766
+ namespace Shopeepay {
2767
+ interface DisplayPreference {
2768
+ /**
2769
+ * The account's preference for whether or not to display this payment method.
2770
+ */
2771
+ preference?: DisplayPreference.Preference;
2772
+ }
2773
+
2774
+ namespace DisplayPreference {
2775
+ type Preference = 'none' | 'off' | 'on';
2776
+ }
2777
+ }
2778
+
2529
2779
  interface Sofort {
2530
2780
  /**
2531
2781
  * Whether or not the payment method should be displayed.
@@ -69,6 +69,8 @@ declare module 'stripe' {
69
69
  */
70
70
  customer: string | Stripe.Customer | null;
71
71
 
72
+ customer_account?: string | null;
73
+
72
74
  customer_balance?: PaymentMethod.CustomerBalance;
73
75
 
74
76
  eps?: PaymentMethod.Eps;
@@ -77,8 +79,12 @@ declare module 'stripe' {
77
79
 
78
80
  giropay?: PaymentMethod.Giropay;
79
81
 
82
+ gopay?: PaymentMethod.Gopay;
83
+
80
84
  grabpay?: PaymentMethod.Grabpay;
81
85
 
86
+ id_bank_transfer?: PaymentMethod.IdBankTransfer;
87
+
82
88
  ideal?: PaymentMethod.Ideal;
83
89
 
84
90
  interac_present?: PaymentMethod.InteracPresent;
@@ -98,6 +104,8 @@ declare module 'stripe' {
98
104
  */
99
105
  livemode: boolean;
100
106
 
107
+ mb_way?: PaymentMethod.MbWay;
108
+
101
109
  /**
102
110
  * 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.
103
111
  */
@@ -123,15 +131,21 @@ declare module 'stripe' {
123
131
 
124
132
  paypal?: PaymentMethod.Paypal;
125
133
 
134
+ payto?: PaymentMethod.Payto;
135
+
126
136
  pix?: PaymentMethod.Pix;
127
137
 
128
138
  promptpay?: PaymentMethod.Promptpay;
129
139
 
140
+ qris?: PaymentMethod.Qris;
141
+
130
142
  /**
131
143
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
132
144
  */
133
145
  radar_options?: PaymentMethod.RadarOptions;
134
146
 
147
+ rechnung?: PaymentMethod.Rechnung;
148
+
135
149
  revolut_pay?: PaymentMethod.RevolutPay;
136
150
 
137
151
  samsung_pay?: PaymentMethod.SamsungPay;
@@ -140,8 +154,12 @@ declare module 'stripe' {
140
154
 
141
155
  sepa_debit?: PaymentMethod.SepaDebit;
142
156
 
157
+ shopeepay?: PaymentMethod.Shopeepay;
158
+
143
159
  sofort?: PaymentMethod.Sofort;
144
160
 
161
+ stripe_balance?: PaymentMethod.StripeBalance;
162
+
145
163
  swish?: PaymentMethod.Swish;
146
164
 
147
165
  twint?: PaymentMethod.Twint;
@@ -160,6 +178,11 @@ declare module 'stripe' {
160
178
 
161
179
  namespace PaymentMethod {
162
180
  interface AcssDebit {
181
+ /**
182
+ * Account number of the bank account.
183
+ */
184
+ account_number?: string | null;
185
+
163
186
  /**
164
187
  * Name of the bank associated with the bank account.
165
188
  */
@@ -966,8 +989,24 @@ declare module 'stripe' {
966
989
 
967
990
  interface Giropay {}
968
991
 
992
+ interface Gopay {}
993
+
969
994
  interface Grabpay {}
970
995
 
996
+ interface IdBankTransfer {
997
+ bank: IdBankTransfer.Bank | null;
998
+
999
+ bank_code: string | null;
1000
+
1001
+ bank_name: string | null;
1002
+
1003
+ display_name: string | null;
1004
+ }
1005
+
1006
+ namespace IdBankTransfer {
1007
+ type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
1008
+ }
1009
+
971
1010
  interface Ideal {
972
1011
  /**
973
1012
  * The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
@@ -1197,6 +1236,8 @@ declare module 'stripe' {
1197
1236
  persistent_token?: string;
1198
1237
  }
1199
1238
 
1239
+ interface MbWay {}
1240
+
1200
1241
  interface Mobilepay {}
1201
1242
 
1202
1243
  interface Multibanco {}
@@ -1300,6 +1341,11 @@ declare module 'stripe' {
1300
1341
  */
1301
1342
  country: string | null;
1302
1343
 
1344
+ /**
1345
+ * Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
1346
+ */
1347
+ fingerprint?: string | null;
1348
+
1303
1349
  /**
1304
1350
  * Owner's email. Values are provided by PayPal directly
1305
1351
  * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
@@ -1310,12 +1356,37 @@ declare module 'stripe' {
1310
1356
  * PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
1311
1357
  */
1312
1358
  payer_id: string | null;
1359
+
1360
+ /**
1361
+ * Owner's verified email. Values are verified or provided by PayPal directly
1362
+ * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1363
+ */
1364
+ verified_email?: string | null;
1365
+ }
1366
+
1367
+ interface Payto {
1368
+ /**
1369
+ * Bank-State-Branch number of the bank account.
1370
+ */
1371
+ bsb_number: string | null;
1372
+
1373
+ /**
1374
+ * Last four digits of the bank account number.
1375
+ */
1376
+ last4: string | null;
1377
+
1378
+ /**
1379
+ * The PayID alias for the bank account.
1380
+ */
1381
+ pay_id: string | null;
1313
1382
  }
1314
1383
 
1315
1384
  interface Pix {}
1316
1385
 
1317
1386
  interface Promptpay {}
1318
1387
 
1388
+ interface Qris {}
1389
+
1319
1390
  interface RadarOptions {
1320
1391
  /**
1321
1392
  * 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.
@@ -1323,6 +1394,29 @@ declare module 'stripe' {
1323
1394
  session?: string;
1324
1395
  }
1325
1396
 
1397
+ interface Rechnung {
1398
+ dob?: Rechnung.Dob;
1399
+ }
1400
+
1401
+ namespace Rechnung {
1402
+ interface Dob {
1403
+ /**
1404
+ * The day of birth, between 1 and 31.
1405
+ */
1406
+ day: number;
1407
+
1408
+ /**
1409
+ * The month of birth, between 1 and 12.
1410
+ */
1411
+ month: number;
1412
+
1413
+ /**
1414
+ * The four-digit year of birth.
1415
+ */
1416
+ year: number;
1417
+ }
1418
+ }
1419
+
1326
1420
  interface RevolutPay {}
1327
1421
 
1328
1422
  interface SamsungPay {}
@@ -1375,6 +1469,8 @@ declare module 'stripe' {
1375
1469
  }
1376
1470
  }
1377
1471
 
1472
+ interface Shopeepay {}
1473
+
1378
1474
  interface Sofort {
1379
1475
  /**
1380
1476
  * Two-letter ISO code representing the country the bank account is located in.
@@ -1382,6 +1478,22 @@ declare module 'stripe' {
1382
1478
  country: string | null;
1383
1479
  }
1384
1480
 
1481
+ interface StripeBalance {
1482
+ /**
1483
+ * The connected account ID whose Stripe balance to use as the source of payment
1484
+ */
1485
+ account?: string | null;
1486
+
1487
+ /**
1488
+ * The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
1489
+ */
1490
+ source_type: StripeBalance.SourceType;
1491
+ }
1492
+
1493
+ namespace StripeBalance {
1494
+ type SourceType = 'bank_account' | 'card' | 'fpx';
1495
+ }
1496
+
1385
1497
  interface Swish {}
1386
1498
 
1387
1499
  interface Twint {}
@@ -1407,7 +1519,9 @@ declare module 'stripe' {
1407
1519
  | 'eps'
1408
1520
  | 'fpx'
1409
1521
  | 'giropay'
1522
+ | 'gopay'
1410
1523
  | 'grabpay'
1524
+ | 'id_bank_transfer'
1411
1525
  | 'ideal'
1412
1526
  | 'interac_present'
1413
1527
  | 'kakao_pay'
@@ -1415,6 +1529,7 @@ declare module 'stripe' {
1415
1529
  | 'konbini'
1416
1530
  | 'kr_card'
1417
1531
  | 'link'
1532
+ | 'mb_way'
1418
1533
  | 'mobilepay'
1419
1534
  | 'multibanco'
1420
1535
  | 'naver_pay'
@@ -1425,13 +1540,18 @@ declare module 'stripe' {
1425
1540
  | 'payco'
1426
1541
  | 'paynow'
1427
1542
  | 'paypal'
1543
+ | 'payto'
1428
1544
  | 'pix'
1429
1545
  | 'promptpay'
1546
+ | 'qris'
1547
+ | 'rechnung'
1430
1548
  | 'revolut_pay'
1431
1549
  | 'samsung_pay'
1432
1550
  | 'satispay'
1433
1551
  | 'sepa_debit'
1552
+ | 'shopeepay'
1434
1553
  | 'sofort'
1554
+ | 'stripe_balance'
1435
1555
  | 'swish'
1436
1556
  | 'twint'
1437
1557
  | 'us_bank_account'
@@ -1444,6 +1564,11 @@ declare module 'stripe' {
1444
1564
  */
1445
1565
  account_holder_type: UsBankAccount.AccountHolderType | null;
1446
1566
 
1567
+ /**
1568
+ * Account number of the bank account.
1569
+ */
1570
+ account_number?: string | null;
1571
+
1447
1572
  /**
1448
1573
  * Account type: checkings or savings. Defaults to checking if omitted.
1449
1574
  */