stripe 18.2.0 → 18.3.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/CHANGELOG.md +1241 -11
  2. package/README.md +1 -0
  3. package/VERSION +1 -1
  4. package/cjs/Error.js +91 -1
  5. package/cjs/apiVersion.js +1 -1
  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/Subscriptions.js +4 -0
  27. package/cjs/resources/Tax/Associations.js +9 -0
  28. package/cjs/resources/Tax/Forms.js +20 -0
  29. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  30. package/cjs/resources/Terminal/Readers.js +8 -0
  31. package/cjs/resources/V2/Core/AccountLinks.js +9 -0
  32. package/cjs/resources/V2/Core/Accounts/Persons.js +29 -0
  33. package/cjs/resources/V2/Core/Accounts.js +25 -0
  34. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +28 -0
  35. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +24 -0
  36. package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
  37. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +17 -0
  38. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +21 -0
  39. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +21 -0
  40. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +16 -0
  41. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +25 -0
  42. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +29 -0
  43. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +25 -0
  44. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +25 -0
  45. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +12 -0
  46. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +17 -0
  47. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +17 -0
  48. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +17 -0
  49. package/cjs/resources/V2/MoneyManagement/Transactions.js +17 -0
  50. package/cjs/resources/V2/Payments/OffSessionPayments.js +25 -0
  51. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
  52. package/cjs/resources.js +98 -10
  53. package/cjs/stripe.core.js +1 -1
  54. package/esm/Error.js +79 -0
  55. package/esm/apiVersion.js +1 -1
  56. package/esm/resources/AccountNotices.js +18 -0
  57. package/esm/resources/BalanceSettings.js +7 -0
  58. package/esm/resources/Capital/FinancingOffers.js +18 -0
  59. package/esm/resources/Capital/FinancingSummary.js +9 -0
  60. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  61. package/esm/resources/ExternalAccounts.js +20 -0
  62. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  63. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  64. package/esm/resources/FxQuotes.js +12 -0
  65. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  66. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  67. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  68. package/esm/resources/Margins.js +19 -0
  69. package/esm/resources/Orders.js +21 -0
  70. package/esm/resources/{InvoicePayments.js → PaymentAttemptRecords.js} +3 -3
  71. package/esm/resources/PaymentIntents.js +13 -0
  72. package/esm/resources/PaymentRecords.js +26 -0
  73. package/esm/resources/Privacy/RedactionJobs.js +39 -0
  74. package/esm/resources/Quotes.js +32 -0
  75. package/esm/resources/SubscriptionSchedules.js +4 -0
  76. package/esm/resources/Subscriptions.js +4 -0
  77. package/esm/resources/Tax/Associations.js +6 -0
  78. package/esm/resources/Tax/Forms.js +17 -0
  79. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  80. package/esm/resources/Terminal/Readers.js +8 -0
  81. package/esm/resources/V2/Core/AccountLinks.js +6 -0
  82. package/esm/resources/V2/Core/Accounts/Persons.js +26 -0
  83. package/esm/resources/V2/Core/Accounts.js +22 -0
  84. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +25 -0
  85. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +21 -0
  86. package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
  87. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +14 -0
  88. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +18 -0
  89. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +18 -0
  90. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +13 -0
  91. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +22 -0
  92. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +26 -0
  93. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +22 -0
  94. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +22 -0
  95. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +9 -0
  96. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +14 -0
  97. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +14 -0
  98. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +14 -0
  99. package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
  100. package/esm/resources/V2/Payments/OffSessionPayments.js +22 -0
  101. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
  102. package/esm/resources.js +82 -1
  103. package/esm/stripe.core.js +1 -1
  104. package/package.json +1 -1
  105. package/types/AccountLinksResource.d.ts +5 -1
  106. package/types/AccountNotices.d.ts +113 -0
  107. package/types/AccountNoticesResource.d.ts +98 -0
  108. package/types/AccountSessions.d.ts +45 -0
  109. package/types/AccountSessionsResource.d.ts +264 -0
  110. package/types/Accounts.d.ts +212 -1
  111. package/types/AccountsResource.d.ts +544 -0
  112. package/types/BalanceSettings.d.ts +89 -0
  113. package/types/BalanceSettingsResource.d.ts +108 -0
  114. package/types/Billing/CreditBalanceSummary.d.ts +5 -0
  115. package/types/Billing/CreditBalanceSummaryResource.d.ts +8 -3
  116. package/types/Billing/CreditBalanceTransactionsResource.d.ts +12 -4
  117. package/types/Billing/CreditGrants.d.ts +5 -0
  118. package/types/Billing/CreditGrantsResource.d.ts +11 -1
  119. package/types/BillingPortal/Sessions.d.ts +5 -0
  120. package/types/BillingPortal/SessionsResource.d.ts +12 -4
  121. package/types/Capital/FinancingOffers.d.ts +188 -0
  122. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  123. package/types/Capital/FinancingSummary.d.ts +106 -0
  124. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  125. package/types/Capital/FinancingTransactions.d.ts +135 -0
  126. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  127. package/types/Cards.d.ts +5 -0
  128. package/types/CashBalances.d.ts +5 -0
  129. package/types/Charges.d.ts +166 -0
  130. package/types/ChargesResource.d.ts +1406 -0
  131. package/types/Checkout/Sessions.d.ts +314 -1
  132. package/types/Checkout/SessionsResource.d.ts +340 -1
  133. package/types/ConfirmationTokens.d.ts +125 -0
  134. package/types/Coupons.d.ts +33 -0
  135. package/types/CouponsResource.d.ts +21 -0
  136. package/types/CreditNoteLineItems.d.ts +17 -0
  137. package/types/CreditNotes.d.ts +5 -0
  138. package/types/CreditNotesResource.d.ts +5 -0
  139. package/types/CustomerBalanceTransactions.d.ts +2 -0
  140. package/types/CustomerCashBalanceTransactions.d.ts +2 -0
  141. package/types/CustomerSessions.d.ts +5 -0
  142. package/types/CustomerSessionsResource.d.ts +6 -1
  143. package/types/Customers.d.ts +2 -0
  144. package/types/CustomersResource.d.ts +8 -0
  145. package/types/Discounts.d.ts +10 -0
  146. package/types/Errors.d.ts +69 -2
  147. package/types/EventTypes.d.ts +681 -0
  148. package/types/Events.d.ts +98 -0
  149. package/types/ExternalAccountsResource.d.ts +304 -0
  150. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  151. package/types/FinancialConnections/Accounts.d.ts +36 -1
  152. package/types/FinancialConnections/AccountsResource.d.ts +40 -3
  153. package/types/FinancialConnections/Institutions.d.ts +98 -0
  154. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  155. package/types/FinancialConnections/Sessions.d.ts +51 -1
  156. package/types/FinancialConnections/SessionsResource.d.ts +43 -1
  157. package/types/FxQuotes.d.ts +153 -0
  158. package/types/FxQuotesResource.d.ts +130 -0
  159. package/types/Identity/VerificationSessions.d.ts +5 -0
  160. package/types/Identity/VerificationSessionsResource.d.ts +7 -0
  161. package/types/InvoiceItems.d.ts +10 -0
  162. package/types/InvoiceItemsResource.d.ts +117 -6
  163. package/types/InvoiceLineItems.d.ts +45 -1
  164. package/types/InvoicePayments.d.ts +5 -0
  165. package/types/Invoices.d.ts +133 -3
  166. package/types/InvoicesResource.d.ts +1458 -13
  167. package/types/Issuing/CardholdersResource.d.ts +2 -1
  168. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  169. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  170. package/types/Issuing/DisputeSettlementDetails.d.ts +85 -0
  171. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  172. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  173. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  174. package/types/Issuing/Settlements.d.ts +113 -0
  175. package/types/Issuing/Transactions.d.ts +5 -0
  176. package/types/Issuing/TransactionsResource.d.ts +5 -0
  177. package/types/LineItems.d.ts +49 -0
  178. package/types/Mandates.d.ts +77 -0
  179. package/types/Margins.d.ts +56 -0
  180. package/types/MarginsResource.d.ts +114 -0
  181. package/types/Orders.d.ts +1159 -0
  182. package/types/OrdersResource.d.ts +2967 -0
  183. package/types/PaymentAttemptRecords.d.ts +2132 -0
  184. package/types/PaymentAttemptRecordsResource.d.ts +47 -0
  185. package/types/PaymentIntentAmountDetailsLineItems.d.ts +116 -0
  186. package/types/PaymentIntents.d.ts +764 -2
  187. package/types/PaymentIntentsResource.d.ts +8819 -4111
  188. package/types/PaymentLinks.d.ts +6 -0
  189. package/types/PaymentLinksResource.d.ts +12 -0
  190. package/types/PaymentMethodConfigurations.d.ts +180 -0
  191. package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
  192. package/types/PaymentMethods.d.ts +125 -0
  193. package/types/PaymentMethodsResource.d.ts +167 -2
  194. package/types/PaymentRecords.d.ts +2125 -0
  195. package/types/PaymentRecordsResource.d.ts +455 -0
  196. package/types/Payouts.d.ts +5 -0
  197. package/types/PayoutsResource.d.ts +5 -0
  198. package/types/Prices.d.ts +22 -0
  199. package/types/PricesResource.d.ts +22 -0
  200. package/types/Privacy/RedactionJobValidationErrors.d.ts +60 -0
  201. package/types/Privacy/RedactionJobs.d.ts +111 -0
  202. package/types/Privacy/RedactionJobsResource.d.ts +230 -0
  203. package/types/PromotionCodes.d.ts +5 -0
  204. package/types/PromotionCodesResource.d.ts +10 -0
  205. package/types/QuoteLines.d.ts +634 -0
  206. package/types/QuotePreviewInvoices.d.ts +1695 -0
  207. package/types/QuotePreviewSubscriptionSchedules.d.ts +831 -0
  208. package/types/Quotes.d.ts +603 -1
  209. package/types/QuotesResource.d.ts +2572 -218
  210. package/types/Refunds.d.ts +14 -0
  211. package/types/SetupAttempts.d.ts +47 -1
  212. package/types/SetupIntents.d.ts +118 -2
  213. package/types/SetupIntentsResource.d.ts +730 -3
  214. package/types/Sources.d.ts +29 -0
  215. package/types/SubscriptionItems.d.ts +30 -0
  216. package/types/SubscriptionItemsResource.d.ts +109 -0
  217. package/types/SubscriptionSchedules.d.ts +212 -0
  218. package/types/SubscriptionSchedulesResource.d.ts +1240 -5
  219. package/types/Subscriptions.d.ts +116 -1
  220. package/types/SubscriptionsResource.d.ts +424 -10
  221. package/types/Tax/Associations.d.ts +82 -0
  222. package/types/Tax/AssociationsResource.d.ts +29 -0
  223. package/types/Tax/Forms.d.ts +220 -0
  224. package/types/Tax/FormsResource.d.ts +107 -0
  225. package/types/TaxIds.d.ts +10 -0
  226. package/types/TaxIdsResource.d.ts +10 -0
  227. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  228. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  229. package/types/Terminal/Readers.d.ts +102 -0
  230. package/types/Terminal/ReadersResource.d.ts +96 -0
  231. package/types/TestHelpers/ConfirmationTokensResource.d.ts +126 -0
  232. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  233. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  234. package/types/Transfers.d.ts +5 -0
  235. package/types/TransfersResource.d.ts +5 -0
  236. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  237. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  238. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  239. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  240. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  241. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  242. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  243. package/types/V2/Core/AccountLinks.d.ts +106 -0
  244. package/types/V2/Core/AccountLinksResource.d.ts +90 -0
  245. package/types/V2/Core/Accounts/PersonsResource.d.ts +3770 -0
  246. package/types/V2/Core/Accounts.d.ts +8169 -0
  247. package/types/V2/Core/AccountsResource.d.ts +10203 -0
  248. package/types/V2/Core/Persons.d.ts +1867 -0
  249. package/types/V2/Core/Vault/GbBankAccounts.d.ts +160 -0
  250. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +172 -0
  251. package/types/V2/Core/Vault/UsBankAccounts.d.ts +70 -0
  252. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +123 -0
  253. package/types/V2/EventTypes.d.ts +907 -5
  254. package/types/V2/FinancialAddressCreditSimulations.d.ts +27 -0
  255. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +32 -0
  256. package/types/V2/MoneyManagement/Adjustments.d.ts +110 -0
  257. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
  258. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +546 -0
  259. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +52 -0
  260. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +314 -0
  261. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +288 -0
  262. package/types/V2/MoneyManagement/InboundTransfers.d.ts +206 -0
  263. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +144 -0
  264. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +168 -0
  265. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +115 -0
  266. package/types/V2/MoneyManagement/OutboundPayments.d.ts +278 -0
  267. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +242 -0
  268. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +97 -0
  269. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +296 -0
  270. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +251 -0
  271. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +207 -0
  272. package/types/V2/MoneyManagement/PayoutMethods.d.ts +151 -0
  273. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
  274. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +87 -0
  275. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
  276. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +243 -0
  277. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
  278. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +176 -0
  279. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
  280. package/types/V2/MoneyManagement/TransactionEntries.d.ts +155 -0
  281. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
  282. package/types/V2/MoneyManagement/Transactions.d.ts +170 -0
  283. package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
  284. package/types/V2/Payments/OffSessionPayments.d.ts +167 -0
  285. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +159 -0
  286. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +66 -0
  287. package/types/WebhookEndpointsResource.d.ts +80 -0
  288. package/types/index.d.ts +141 -5
  289. package/types/lib.d.ts +11 -1
  290. package/types/test/typescriptTest.ts +3 -3
  291. 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.
@@ -67,6 +67,8 @@ declare module 'stripe' {
67
67
  */
68
68
  customer: string | Stripe.Customer | null;
69
69
 
70
+ customer_account?: string | null;
71
+
70
72
  customer_balance?: PaymentMethod.CustomerBalance;
71
73
 
72
74
  eps?: PaymentMethod.Eps;
@@ -75,8 +77,12 @@ declare module 'stripe' {
75
77
 
76
78
  giropay?: PaymentMethod.Giropay;
77
79
 
80
+ gopay?: PaymentMethod.Gopay;
81
+
78
82
  grabpay?: PaymentMethod.Grabpay;
79
83
 
84
+ id_bank_transfer?: PaymentMethod.IdBankTransfer;
85
+
80
86
  ideal?: PaymentMethod.Ideal;
81
87
 
82
88
  interac_present?: PaymentMethod.InteracPresent;
@@ -96,6 +102,8 @@ declare module 'stripe' {
96
102
  */
97
103
  livemode: boolean;
98
104
 
105
+ mb_way?: PaymentMethod.MbWay;
106
+
99
107
  /**
100
108
  * 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.
101
109
  */
@@ -121,15 +129,21 @@ declare module 'stripe' {
121
129
 
122
130
  paypal?: PaymentMethod.Paypal;
123
131
 
132
+ payto?: PaymentMethod.Payto;
133
+
124
134
  pix?: PaymentMethod.Pix;
125
135
 
126
136
  promptpay?: PaymentMethod.Promptpay;
127
137
 
138
+ qris?: PaymentMethod.Qris;
139
+
128
140
  /**
129
141
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
130
142
  */
131
143
  radar_options?: PaymentMethod.RadarOptions;
132
144
 
145
+ rechnung?: PaymentMethod.Rechnung;
146
+
133
147
  revolut_pay?: PaymentMethod.RevolutPay;
134
148
 
135
149
  samsung_pay?: PaymentMethod.SamsungPay;
@@ -138,8 +152,12 @@ declare module 'stripe' {
138
152
 
139
153
  sepa_debit?: PaymentMethod.SepaDebit;
140
154
 
155
+ shopeepay?: PaymentMethod.Shopeepay;
156
+
141
157
  sofort?: PaymentMethod.Sofort;
142
158
 
159
+ stripe_balance?: PaymentMethod.StripeBalance;
160
+
143
161
  swish?: PaymentMethod.Swish;
144
162
 
145
163
  twint?: PaymentMethod.Twint;
@@ -158,6 +176,11 @@ declare module 'stripe' {
158
176
 
159
177
  namespace PaymentMethod {
160
178
  interface AcssDebit {
179
+ /**
180
+ * Account number of the bank account.
181
+ */
182
+ account_number?: string | null;
183
+
161
184
  /**
162
185
  * Name of the bank associated with the bank account.
163
186
  */
@@ -962,8 +985,24 @@ declare module 'stripe' {
962
985
 
963
986
  interface Giropay {}
964
987
 
988
+ interface Gopay {}
989
+
965
990
  interface Grabpay {}
966
991
 
992
+ interface IdBankTransfer {
993
+ bank: IdBankTransfer.Bank | null;
994
+
995
+ bank_code: string | null;
996
+
997
+ bank_name: string | null;
998
+
999
+ display_name: string | null;
1000
+ }
1001
+
1002
+ namespace IdBankTransfer {
1003
+ type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
1004
+ }
1005
+
967
1006
  interface Ideal {
968
1007
  /**
969
1008
  * 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`.
@@ -1191,6 +1230,8 @@ declare module 'stripe' {
1191
1230
  persistent_token?: string;
1192
1231
  }
1193
1232
 
1233
+ interface MbWay {}
1234
+
1194
1235
  interface Mobilepay {}
1195
1236
 
1196
1237
  interface Multibanco {}
@@ -1294,6 +1335,11 @@ declare module 'stripe' {
1294
1335
  */
1295
1336
  country: string | null;
1296
1337
 
1338
+ /**
1339
+ * Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
1340
+ */
1341
+ fingerprint?: string | null;
1342
+
1297
1343
  /**
1298
1344
  * Owner's email. Values are provided by PayPal directly
1299
1345
  * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
@@ -1304,12 +1350,37 @@ declare module 'stripe' {
1304
1350
  * PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
1305
1351
  */
1306
1352
  payer_id: string | null;
1353
+
1354
+ /**
1355
+ * Owner's verified email. Values are verified or provided by PayPal directly
1356
+ * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1357
+ */
1358
+ verified_email?: string | null;
1359
+ }
1360
+
1361
+ interface Payto {
1362
+ /**
1363
+ * Bank-State-Branch number of the bank account.
1364
+ */
1365
+ bsb_number: string | null;
1366
+
1367
+ /**
1368
+ * Last four digits of the bank account number.
1369
+ */
1370
+ last4: string | null;
1371
+
1372
+ /**
1373
+ * The PayID alias for the bank account.
1374
+ */
1375
+ pay_id: string | null;
1307
1376
  }
1308
1377
 
1309
1378
  interface Pix {}
1310
1379
 
1311
1380
  interface Promptpay {}
1312
1381
 
1382
+ interface Qris {}
1383
+
1313
1384
  interface RadarOptions {
1314
1385
  /**
1315
1386
  * 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.
@@ -1317,6 +1388,29 @@ declare module 'stripe' {
1317
1388
  session?: string;
1318
1389
  }
1319
1390
 
1391
+ interface Rechnung {
1392
+ dob?: Rechnung.Dob;
1393
+ }
1394
+
1395
+ namespace Rechnung {
1396
+ interface Dob {
1397
+ /**
1398
+ * The day of birth, between 1 and 31.
1399
+ */
1400
+ day: number;
1401
+
1402
+ /**
1403
+ * The month of birth, between 1 and 12.
1404
+ */
1405
+ month: number;
1406
+
1407
+ /**
1408
+ * The four-digit year of birth.
1409
+ */
1410
+ year: number;
1411
+ }
1412
+ }
1413
+
1320
1414
  interface RevolutPay {}
1321
1415
 
1322
1416
  interface SamsungPay {}
@@ -1369,6 +1463,8 @@ declare module 'stripe' {
1369
1463
  }
1370
1464
  }
1371
1465
 
1466
+ interface Shopeepay {}
1467
+
1372
1468
  interface Sofort {
1373
1469
  /**
1374
1470
  * Two-letter ISO code representing the country the bank account is located in.
@@ -1376,6 +1472,22 @@ declare module 'stripe' {
1376
1472
  country: string | null;
1377
1473
  }
1378
1474
 
1475
+ interface StripeBalance {
1476
+ /**
1477
+ * The connected account ID whose Stripe balance to use as the source of payment
1478
+ */
1479
+ account?: string | null;
1480
+
1481
+ /**
1482
+ * The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
1483
+ */
1484
+ source_type: StripeBalance.SourceType;
1485
+ }
1486
+
1487
+ namespace StripeBalance {
1488
+ type SourceType = 'bank_account' | 'card' | 'fpx';
1489
+ }
1490
+
1379
1491
  interface Swish {}
1380
1492
 
1381
1493
  interface Twint {}
@@ -1400,7 +1512,9 @@ declare module 'stripe' {
1400
1512
  | 'eps'
1401
1513
  | 'fpx'
1402
1514
  | 'giropay'
1515
+ | 'gopay'
1403
1516
  | 'grabpay'
1517
+ | 'id_bank_transfer'
1404
1518
  | 'ideal'
1405
1519
  | 'interac_present'
1406
1520
  | 'kakao_pay'
@@ -1408,6 +1522,7 @@ declare module 'stripe' {
1408
1522
  | 'konbini'
1409
1523
  | 'kr_card'
1410
1524
  | 'link'
1525
+ | 'mb_way'
1411
1526
  | 'mobilepay'
1412
1527
  | 'multibanco'
1413
1528
  | 'naver_pay'
@@ -1418,13 +1533,18 @@ declare module 'stripe' {
1418
1533
  | 'payco'
1419
1534
  | 'paynow'
1420
1535
  | 'paypal'
1536
+ | 'payto'
1421
1537
  | 'pix'
1422
1538
  | 'promptpay'
1539
+ | 'qris'
1540
+ | 'rechnung'
1423
1541
  | 'revolut_pay'
1424
1542
  | 'samsung_pay'
1425
1543
  | 'satispay'
1426
1544
  | 'sepa_debit'
1545
+ | 'shopeepay'
1427
1546
  | 'sofort'
1547
+ | 'stripe_balance'
1428
1548
  | 'swish'
1429
1549
  | 'twint'
1430
1550
  | 'us_bank_account'
@@ -1437,6 +1557,11 @@ declare module 'stripe' {
1437
1557
  */
1438
1558
  account_holder_type: UsBankAccount.AccountHolderType | null;
1439
1559
 
1560
+ /**
1561
+ * Account number of the bank account.
1562
+ */
1563
+ account_number?: string | null;
1564
+
1440
1565
  /**
1441
1566
  * Account type: checkings or savings. Defaults to checking if omitted.
1442
1567
  */