stripe 20.1.0 → 20.2.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/CHANGELOG.md +1544 -47
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +1 -0
  4. package/VERSION +1 -1
  5. package/cjs/Error.js +115 -1
  6. package/cjs/StripeEventNotificationHandler.js +118 -0
  7. package/cjs/apiVersion.js +2 -3
  8. package/cjs/resources/AccountNotices.js +21 -0
  9. package/cjs/resources/Billing/Analytics/MeterUsage.js +12 -0
  10. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  11. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  12. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  13. package/cjs/resources/ExternalAccounts.js +23 -0
  14. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  15. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  16. package/cjs/resources/FxQuotes.js +15 -0
  17. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  18. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  19. package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
  20. package/cjs/resources/Mandates.js +5 -0
  21. package/cjs/resources/Margins.js +22 -0
  22. package/cjs/resources/Orders.js +24 -0
  23. package/cjs/resources/PaymentIntents.js +8 -0
  24. package/cjs/resources/Privacy/RedactionJobs.js +42 -0
  25. package/cjs/resources/Quotes.js +32 -0
  26. package/cjs/resources/Reserve/Holds.js +14 -0
  27. package/cjs/resources/Reserve/Plans.js +9 -0
  28. package/cjs/resources/Reserve/Releases.js +17 -0
  29. package/cjs/resources/SubscriptionSchedules.js +4 -0
  30. package/cjs/resources/Subscriptions.js +4 -0
  31. package/cjs/resources/Tax/Forms.js +20 -0
  32. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  33. package/cjs/resources/V2/Billing/BillSettings/Versions.js +17 -0
  34. package/cjs/resources/V2/Billing/BillSettings.js +27 -0
  35. package/cjs/resources/V2/Billing/Cadences.js +23 -0
  36. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +17 -0
  37. package/cjs/resources/V2/Billing/CollectionSettings.js +30 -0
  38. package/cjs/resources/V2/Billing/Profiles.js +19 -0
  39. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +33 -0
  40. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +37 -0
  41. package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
  42. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +29 -0
  43. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +21 -0
  44. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +21 -0
  45. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +16 -0
  46. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +25 -0
  47. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +29 -0
  48. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +25 -0
  49. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +25 -0
  50. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +12 -0
  51. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +17 -0
  52. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +17 -0
  53. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +17 -0
  54. package/cjs/resources/V2/MoneyManagement/Transactions.js +17 -0
  55. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
  56. package/cjs/resources.js +98 -4
  57. package/cjs/stripe.core.js +5 -1
  58. package/esm/Error.js +100 -0
  59. package/esm/StripeEventNotificationHandler.js +114 -0
  60. package/esm/apiVersion.js +1 -2
  61. package/esm/resources/AccountNotices.js +18 -0
  62. package/esm/resources/Billing/Analytics/MeterUsage.js +9 -0
  63. package/esm/resources/Capital/FinancingOffers.js +18 -0
  64. package/esm/resources/Capital/FinancingSummary.js +9 -0
  65. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  66. package/esm/resources/ExternalAccounts.js +20 -0
  67. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  68. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  69. package/esm/resources/FxQuotes.js +12 -0
  70. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  71. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  72. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  73. package/esm/resources/Mandates.js +5 -0
  74. package/esm/resources/Margins.js +19 -0
  75. package/esm/resources/Orders.js +21 -0
  76. package/esm/resources/PaymentIntents.js +8 -0
  77. package/esm/resources/Privacy/RedactionJobs.js +39 -0
  78. package/esm/resources/Quotes.js +32 -0
  79. package/esm/resources/Reserve/Holds.js +11 -0
  80. package/esm/resources/Reserve/Plans.js +6 -0
  81. package/esm/resources/Reserve/Releases.js +14 -0
  82. package/esm/resources/SubscriptionSchedules.js +4 -0
  83. package/esm/resources/Subscriptions.js +4 -0
  84. package/esm/resources/Tax/Forms.js +17 -0
  85. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  86. package/esm/resources/V2/Billing/BillSettings/Versions.js +14 -0
  87. package/esm/resources/V2/Billing/BillSettings.js +24 -0
  88. package/esm/resources/V2/Billing/Cadences.js +20 -0
  89. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +14 -0
  90. package/esm/resources/V2/Billing/CollectionSettings.js +27 -0
  91. package/esm/resources/V2/Billing/Profiles.js +16 -0
  92. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +30 -0
  93. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +34 -0
  94. package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
  95. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +26 -0
  96. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +18 -0
  97. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +18 -0
  98. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +13 -0
  99. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +22 -0
  100. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +26 -0
  101. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +22 -0
  102. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +22 -0
  103. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +9 -0
  104. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +14 -0
  105. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +14 -0
  106. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +14 -0
  107. package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
  108. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
  109. package/esm/resources.js +89 -0
  110. package/esm/stripe.core.js +5 -1
  111. package/package.json +1 -1
  112. package/types/AccountLinksResource.d.ts +5 -1
  113. package/types/AccountNotices.d.ts +113 -0
  114. package/types/AccountNoticesResource.d.ts +98 -0
  115. package/types/AccountSessions.d.ts +45 -0
  116. package/types/AccountSessionsResource.d.ts +264 -0
  117. package/types/Accounts.d.ts +225 -1
  118. package/types/AccountsResource.d.ts +562 -0
  119. package/types/BankAccounts.d.ts +2 -0
  120. package/types/Billing/AlertTriggereds.d.ts +1 -1
  121. package/types/Billing/Analytics/MeterUsage.d.ts +31 -0
  122. package/types/Billing/Analytics/MeterUsageResource.d.ts +689 -0
  123. package/types/Billing/Analytics/MeterUsageRows.d.ts +51 -0
  124. package/types/Capabilities.d.ts +2 -0
  125. package/types/Capital/FinancingOffers.d.ts +188 -0
  126. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  127. package/types/Capital/FinancingSummary.d.ts +109 -0
  128. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  129. package/types/Capital/FinancingTransactions.d.ts +135 -0
  130. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  131. package/types/Cards.d.ts +5 -0
  132. package/types/Charges.d.ts +152 -0
  133. package/types/ChargesResource.d.ts +3855 -75
  134. package/types/Checkout/Sessions.d.ts +279 -2
  135. package/types/Checkout/SessionsResource.d.ts +362 -2
  136. package/types/ConfirmationTokens.d.ts +103 -0
  137. package/types/Coupons.d.ts +35 -0
  138. package/types/CouponsResource.d.ts +23 -0
  139. package/types/CreditNoteLineItems.d.ts +17 -0
  140. package/types/CustomerSessions.d.ts +41 -0
  141. package/types/CustomerSessionsResource.d.ts +41 -0
  142. package/types/CustomersResource.d.ts +7 -0
  143. package/types/Disputes.d.ts +40 -0
  144. package/types/DisputesResource.d.ts +11 -0
  145. package/types/Errors.d.ts +85 -0
  146. package/types/EventTypes.d.ts +630 -0
  147. package/types/Events.d.ts +96 -0
  148. package/types/ExternalAccountsResource.d.ts +304 -0
  149. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  150. package/types/FinancialConnections/Accounts.d.ts +34 -1
  151. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  152. package/types/FinancialConnections/Institutions.d.ts +98 -0
  153. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  154. package/types/FinancialConnections/Sessions.d.ts +49 -1
  155. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  156. package/types/FxQuotes.d.ts +155 -0
  157. package/types/FxQuotesResource.d.ts +130 -0
  158. package/types/InvoiceItems.d.ts +5 -0
  159. package/types/InvoiceItemsResource.d.ts +98 -0
  160. package/types/InvoiceLineItems.d.ts +45 -1
  161. package/types/Invoices.d.ts +198 -4
  162. package/types/InvoicesResource.d.ts +1606 -3
  163. package/types/Issuing/CardholdersResource.d.ts +2 -1
  164. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  165. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  166. package/types/Issuing/DisputeSettlementDetails.d.ts +85 -0
  167. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  168. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  169. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  170. package/types/Issuing/Settlements.d.ts +113 -0
  171. package/types/Issuing/Transactions.d.ts +5 -0
  172. package/types/Issuing/TransactionsResource.d.ts +5 -0
  173. package/types/LineItems.d.ts +45 -1
  174. package/types/Mandates.d.ts +69 -1
  175. package/types/MandatesResource.d.ts +31 -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 +5505 -0
  180. package/types/PaymentAttemptRecords.d.ts +117 -0
  181. package/types/PaymentIntents.d.ts +683 -3
  182. package/types/PaymentIntentsResource.d.ts +19095 -6508
  183. package/types/PaymentLinks.d.ts +5 -0
  184. package/types/PaymentLinksResource.d.ts +10 -0
  185. package/types/PaymentMethodConfigurations.d.ts +180 -0
  186. package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
  187. package/types/PaymentMethods.d.ts +108 -0
  188. package/types/PaymentMethodsResource.d.ts +110 -0
  189. package/types/PaymentRecords.d.ts +117 -0
  190. package/types/Persons.d.ts +2 -0
  191. package/types/Prices.d.ts +22 -0
  192. package/types/PricesResource.d.ts +22 -0
  193. package/types/Privacy/RedactionJobValidationErrors.d.ts +60 -0
  194. package/types/Privacy/RedactionJobs.d.ts +111 -0
  195. package/types/Privacy/RedactionJobsResource.d.ts +230 -0
  196. package/types/QuoteLines.d.ts +634 -0
  197. package/types/QuotePreviewInvoices.d.ts +1821 -0
  198. package/types/QuotePreviewSubscriptionSchedules.d.ts +908 -0
  199. package/types/Quotes.d.ts +589 -1
  200. package/types/QuotesResource.d.ts +2567 -237
  201. package/types/Refunds.d.ts +14 -0
  202. package/types/Reserve/Holds.d.ts +104 -0
  203. package/types/Reserve/HoldsResource.d.ts +76 -0
  204. package/types/Reserve/Plans.d.ts +103 -0
  205. package/types/Reserve/PlansResource.d.ts +29 -0
  206. package/types/Reserve/Releases.d.ts +105 -0
  207. package/types/Reserve/ReleasesResource.d.ts +60 -0
  208. package/types/SetupAttempts.d.ts +42 -1
  209. package/types/SetupIntents.d.ts +138 -2
  210. package/types/SetupIntentsResource.d.ts +629 -3
  211. package/types/Sources.d.ts +29 -0
  212. package/types/SubscriptionItems.d.ts +26 -0
  213. package/types/SubscriptionItemsResource.d.ts +109 -0
  214. package/types/SubscriptionSchedules.d.ts +200 -0
  215. package/types/SubscriptionSchedulesResource.d.ts +1230 -12
  216. package/types/Subscriptions.d.ts +257 -1
  217. package/types/SubscriptionsResource.d.ts +726 -2
  218. package/types/Tax/Forms.d.ts +220 -0
  219. package/types/Tax/FormsResource.d.ts +107 -0
  220. package/types/Terminal/Configurations.d.ts +9 -0
  221. package/types/Terminal/ConfigurationsResource.d.ts +28 -0
  222. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  223. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  224. package/types/Terminal/Readers.d.ts +20 -0
  225. package/types/TestHelpers/ConfirmationTokensResource.d.ts +103 -0
  226. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  227. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  228. package/types/Transfers.d.ts +5 -0
  229. package/types/TransfersResource.d.ts +5 -0
  230. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  231. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  232. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  233. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  234. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  235. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  236. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  237. package/types/V2/Billing/BillSettingVersions.d.ts +97 -0
  238. package/types/V2/Billing/BillSettings/VersionsResource.d.ts +58 -0
  239. package/types/V2/Billing/BillSettings.d.ts +120 -0
  240. package/types/V2/Billing/BillSettingsResource.d.ts +241 -0
  241. package/types/V2/Billing/Cadences.d.ts +690 -0
  242. package/types/V2/Billing/CadencesResource.d.ts +487 -0
  243. package/types/V2/Billing/CollectionSettingVersions.d.ts +318 -0
  244. package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +62 -0
  245. package/types/V2/Billing/CollectionSettings.d.ts +341 -0
  246. package/types/V2/Billing/CollectionSettingsResource.d.ts +683 -0
  247. package/types/V2/Billing/Profiles.d.ts +70 -0
  248. package/types/V2/Billing/ProfilesResource.d.ts +150 -0
  249. package/types/V2/Core/AccountLinks.d.ts +10 -2
  250. package/types/V2/Core/AccountLinksResource.d.ts +10 -2
  251. package/types/V2/Core/AccountTokensResource.d.ts +12 -0
  252. package/types/V2/Core/Accounts.d.ts +999 -84
  253. package/types/V2/Core/AccountsResource.d.ts +523 -2
  254. package/types/V2/Core/EventTypes.d.ts +1564 -9
  255. package/types/V2/Core/Vault/GbBankAccounts.d.ts +160 -0
  256. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +194 -0
  257. package/types/V2/Core/Vault/UsBankAccounts.d.ts +121 -0
  258. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +198 -0
  259. package/types/V2/EventMisc.d.ts +37 -0
  260. package/types/V2/FinancialAddressCreditSimulations.d.ts +27 -0
  261. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +46 -0
  262. package/types/V2/MoneyManagement/Adjustments.d.ts +122 -0
  263. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
  264. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +186 -0
  265. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +172 -0
  266. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +175 -0
  267. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +109 -0
  268. package/types/V2/MoneyManagement/InboundTransfers.d.ts +250 -0
  269. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +156 -0
  270. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +222 -0
  271. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +127 -0
  272. package/types/V2/MoneyManagement/OutboundPayments.d.ts +318 -0
  273. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +254 -0
  274. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +97 -0
  275. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +298 -0
  276. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +291 -0
  277. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +220 -0
  278. package/types/V2/MoneyManagement/PayoutMethods.d.ts +165 -0
  279. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +93 -0
  280. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
  281. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +115 -0
  282. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +323 -0
  283. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
  284. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +188 -0
  285. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
  286. package/types/V2/MoneyManagement/TransactionEntries.d.ts +200 -0
  287. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
  288. package/types/V2/MoneyManagement/Transactions.d.ts +227 -0
  289. package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
  290. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +80 -0
  291. package/types/WebhookEndpointsResource.d.ts +76 -0
  292. package/types/apiVersion.d.ts +1 -2
  293. package/types/index.d.ts +160 -0
  294. package/types/lib.d.ts +10 -0
  295. package/types/test/typescriptTest.ts +27 -0
@@ -67,6 +67,11 @@ declare module 'stripe' {
67
67
  * The Recipient Configuration allows the Account to receive funds. Utilize this configuration if the Account will not be the Merchant of Record, like with Separate Charges & Transfers, or Destination Charges without on_behalf_of set.
68
68
  */
69
69
  recipient?: Configuration.Recipient;
70
+
71
+ /**
72
+ * The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
73
+ */
74
+ storer?: Configuration.Storer;
70
75
  }
71
76
 
72
77
  namespace Configuration {
@@ -108,10 +113,21 @@ declare module 'stripe' {
108
113
  * A recent IP address of the customer used for tax reporting and tax location inference.
109
114
  */
110
115
  ip_address?: string;
116
+
117
+ /**
118
+ * The data source used to identify the customer's tax location - defaults to `identity_address`. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. This behavior is now deprecated for new users.
119
+ */
120
+ location_source?: AutomaticIndirectTax.LocationSource;
111
121
  }
112
122
 
113
123
  namespace AutomaticIndirectTax {
114
124
  type Exempt = 'exempt' | 'none' | 'reverse';
125
+
126
+ type LocationSource =
127
+ | 'identity_address'
128
+ | 'ip_address'
129
+ | 'payment_method'
130
+ | 'shipping_address';
115
131
  }
116
132
 
117
133
  interface Billing {
@@ -1007,6 +1023,16 @@ declare module 'stripe' {
1007
1023
 
1008
1024
  namespace Recipient {
1009
1025
  interface Capabilities {
1026
+ /**
1027
+ * Capabilities that enable OutboundPayments to a bank account linked to this Account.
1028
+ */
1029
+ bank_accounts?: Capabilities.BankAccounts;
1030
+
1031
+ /**
1032
+ * Capabilities that enable OutboundPayments to a card linked to this Account.
1033
+ */
1034
+ cards?: Capabilities.Cards;
1035
+
1010
1036
  /**
1011
1037
  * Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
1012
1038
  */
@@ -1014,6 +1040,41 @@ declare module 'stripe' {
1014
1040
  }
1015
1041
 
1016
1042
  namespace Capabilities {
1043
+ interface BankAccounts {
1044
+ /**
1045
+ * Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
1046
+ */
1047
+ local?: BankAccounts.Local;
1048
+
1049
+ /**
1050
+ * Enables this Account to receive OutboundPayments to linked bank accounts over wire.
1051
+ */
1052
+ wire?: BankAccounts.Wire;
1053
+ }
1054
+
1055
+ namespace BankAccounts {
1056
+ interface Local {
1057
+ /**
1058
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1059
+ */
1060
+ requested: boolean;
1061
+ }
1062
+
1063
+ interface Wire {
1064
+ /**
1065
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1066
+ */
1067
+ requested: boolean;
1068
+ }
1069
+ }
1070
+
1071
+ interface Cards {
1072
+ /**
1073
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1074
+ */
1075
+ requested: boolean;
1076
+ }
1077
+
1017
1078
  interface StripeBalance {
1018
1079
  /**
1019
1080
  * Enables this Account to receive /v1/transfers into their Stripe Balance (/v1/balance).
@@ -1031,6 +1092,184 @@ declare module 'stripe' {
1031
1092
  }
1032
1093
  }
1033
1094
  }
1095
+
1096
+ interface Storer {
1097
+ /**
1098
+ * Capabilities to request on the Storer Configuration.
1099
+ */
1100
+ capabilities?: Storer.Capabilities;
1101
+ }
1102
+
1103
+ namespace Storer {
1104
+ interface Capabilities {
1105
+ /**
1106
+ * Can provision a financial address to credit/debit a FinancialAccount.
1107
+ */
1108
+ financial_addresses?: Capabilities.FinancialAddresses;
1109
+
1110
+ /**
1111
+ * Can hold storage-type funds on Stripe.
1112
+ */
1113
+ holds_currencies?: Capabilities.HoldsCurrencies;
1114
+
1115
+ /**
1116
+ * Can pull funds from an external source, owned by yourself, to a FinancialAccount.
1117
+ */
1118
+ inbound_transfers?: Capabilities.InboundTransfers;
1119
+
1120
+ /**
1121
+ * Can send funds from a FinancialAccount to a destination owned by someone else.
1122
+ */
1123
+ outbound_payments?: Capabilities.OutboundPayments;
1124
+
1125
+ /**
1126
+ * Can send funds from a FinancialAccount to a destination owned by yourself.
1127
+ */
1128
+ outbound_transfers?: Capabilities.OutboundTransfers;
1129
+ }
1130
+
1131
+ namespace Capabilities {
1132
+ interface FinancialAddresses {
1133
+ /**
1134
+ * Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount.
1135
+ */
1136
+ bank_accounts?: FinancialAddresses.BankAccounts;
1137
+ }
1138
+
1139
+ namespace FinancialAddresses {
1140
+ interface BankAccounts {
1141
+ /**
1142
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1143
+ */
1144
+ requested: boolean;
1145
+ }
1146
+ }
1147
+
1148
+ interface HoldsCurrencies {
1149
+ /**
1150
+ * Can hold storage-type funds on Stripe in EUR.
1151
+ */
1152
+ eur?: HoldsCurrencies.Eur;
1153
+
1154
+ /**
1155
+ * Can hold storage-type funds on Stripe in GBP.
1156
+ */
1157
+ gbp?: HoldsCurrencies.Gbp;
1158
+
1159
+ /**
1160
+ * Can hold storage-type funds on Stripe in USD.
1161
+ */
1162
+ usd?: HoldsCurrencies.Usd;
1163
+ }
1164
+
1165
+ namespace HoldsCurrencies {
1166
+ interface Eur {
1167
+ /**
1168
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1169
+ */
1170
+ requested: boolean;
1171
+ }
1172
+
1173
+ interface Gbp {
1174
+ /**
1175
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1176
+ */
1177
+ requested: boolean;
1178
+ }
1179
+
1180
+ interface Usd {
1181
+ /**
1182
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1183
+ */
1184
+ requested: boolean;
1185
+ }
1186
+ }
1187
+
1188
+ interface InboundTransfers {
1189
+ /**
1190
+ * Can pull funds from an external bank account owned by yourself to a FinancialAccount.
1191
+ */
1192
+ bank_accounts?: InboundTransfers.BankAccounts;
1193
+ }
1194
+
1195
+ namespace InboundTransfers {
1196
+ interface BankAccounts {
1197
+ /**
1198
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1199
+ */
1200
+ requested: boolean;
1201
+ }
1202
+ }
1203
+
1204
+ interface OutboundPayments {
1205
+ /**
1206
+ * Can send funds from a FinancialAccount to a bank account owned by someone else.
1207
+ */
1208
+ bank_accounts?: OutboundPayments.BankAccounts;
1209
+
1210
+ /**
1211
+ * Can send funds from a FinancialAccount to a debit card owned by someone else.
1212
+ */
1213
+ cards?: OutboundPayments.Cards;
1214
+
1215
+ /**
1216
+ * Can send funds from a FinancialAccount to another FinancialAccount owned by someone else.
1217
+ */
1218
+ financial_accounts?: OutboundPayments.FinancialAccounts;
1219
+ }
1220
+
1221
+ namespace OutboundPayments {
1222
+ interface BankAccounts {
1223
+ /**
1224
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1225
+ */
1226
+ requested: boolean;
1227
+ }
1228
+
1229
+ interface Cards {
1230
+ /**
1231
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1232
+ */
1233
+ requested: boolean;
1234
+ }
1235
+
1236
+ interface FinancialAccounts {
1237
+ /**
1238
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1239
+ */
1240
+ requested: boolean;
1241
+ }
1242
+ }
1243
+
1244
+ interface OutboundTransfers {
1245
+ /**
1246
+ * Can send funds from a FinancialAccount to a bank account owned by yourself.
1247
+ */
1248
+ bank_accounts?: OutboundTransfers.BankAccounts;
1249
+
1250
+ /**
1251
+ * Can send funds from a FinancialAccount to another FinancialAccount owned by yourself.
1252
+ */
1253
+ financial_accounts?: OutboundTransfers.FinancialAccounts;
1254
+ }
1255
+
1256
+ namespace OutboundTransfers {
1257
+ interface BankAccounts {
1258
+ /**
1259
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1260
+ */
1261
+ requested: boolean;
1262
+ }
1263
+
1264
+ interface FinancialAccounts {
1265
+ /**
1266
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1267
+ */
1268
+ requested: boolean;
1269
+ }
1270
+ }
1271
+ }
1272
+ }
1034
1273
  }
1035
1274
 
1036
1275
  type Dashboard = 'express' | 'full' | 'none';
@@ -1324,6 +1563,11 @@ declare module 'stripe' {
1324
1563
  * Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
1325
1564
  */
1326
1565
  account?: TermsOfService.Account;
1566
+
1567
+ /**
1568
+ * Details on the Account's acceptance of Treasury-specific terms of service.
1569
+ */
1570
+ storer?: TermsOfService.Storer;
1327
1571
  }
1328
1572
 
1329
1573
  namespace TermsOfService {
@@ -1343,6 +1587,23 @@ declare module 'stripe' {
1343
1587
  */
1344
1588
  user_agent?: string;
1345
1589
  }
1590
+
1591
+ interface Storer {
1592
+ /**
1593
+ * The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1594
+ */
1595
+ date: string;
1596
+
1597
+ /**
1598
+ * The IP address from which the Account's representative accepted the terms of service.
1599
+ */
1600
+ ip: string;
1601
+
1602
+ /**
1603
+ * The user agent of the browser from which the Account's representative accepted the terms of service.
1604
+ */
1605
+ user_agent?: string;
1606
+ }
1346
1607
  }
1347
1608
  }
1348
1609
 
@@ -2546,6 +2807,7 @@ declare module 'stripe' {
2546
2807
  | 'configuration.customer'
2547
2808
  | 'configuration.merchant'
2548
2809
  | 'configuration.recipient'
2810
+ | 'configuration.storer'
2549
2811
  | 'defaults'
2550
2812
  | 'future_requirements'
2551
2813
  | 'identity'
@@ -2566,6 +2828,7 @@ declare module 'stripe' {
2566
2828
  | 'configuration.customer'
2567
2829
  | 'configuration.merchant'
2568
2830
  | 'configuration.recipient'
2831
+ | 'configuration.storer'
2569
2832
  | 'defaults'
2570
2833
  | 'future_requirements'
2571
2834
  | 'identity'
@@ -2637,6 +2900,11 @@ declare module 'stripe' {
2637
2900
  * The Recipient Configuration allows the Account to receive funds. Utilize this configuration if the Account will not be the Merchant of Record, like with Separate Charges & Transfers, or Destination Charges without on_behalf_of set.
2638
2901
  */
2639
2902
  recipient?: Configuration.Recipient;
2903
+
2904
+ /**
2905
+ * The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
2906
+ */
2907
+ storer?: Configuration.Storer;
2640
2908
  }
2641
2909
 
2642
2910
  namespace Configuration {
@@ -2684,6 +2952,11 @@ declare module 'stripe' {
2684
2952
  */
2685
2953
  ip_address?: string;
2686
2954
 
2955
+ /**
2956
+ * Data source used to identify the customer account's tax location. Defaults to `identity_address`. Used for automatic indirect tax calculation.
2957
+ */
2958
+ location_source?: AutomaticIndirectTax.LocationSource;
2959
+
2687
2960
  /**
2688
2961
  * A per-request flag that indicates when Stripe should validate the customer tax location - defaults to `auto`.
2689
2962
  */
@@ -2693,6 +2966,12 @@ declare module 'stripe' {
2693
2966
  namespace AutomaticIndirectTax {
2694
2967
  type Exempt = 'exempt' | 'none' | 'reverse';
2695
2968
 
2969
+ type LocationSource =
2970
+ | 'identity_address'
2971
+ | 'ip_address'
2972
+ | 'payment_method'
2973
+ | 'shipping_address';
2974
+
2696
2975
  type ValidateLocation = 'auto' | 'deferred' | 'immediately';
2697
2976
  }
2698
2977
 
@@ -3561,10 +3840,25 @@ declare module 'stripe' {
3561
3840
  * Capabilities to request on the Recipient Configuration.
3562
3841
  */
3563
3842
  capabilities?: Recipient.Capabilities;
3843
+
3844
+ /**
3845
+ * The payout method id to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via dashboard. Can also be explicitly set to `null` to clear the existing default outbound destination. For further details about creating an Outbound Destination, see [Collect recipient's payment details](https://docs.stripe.com/global-payouts-private-preview/quickstart?dashboard-or-api=api#collect-bank-account-details).
3846
+ */
3847
+ default_outbound_destination?: string;
3564
3848
  }
3565
3849
 
3566
3850
  namespace Recipient {
3567
3851
  interface Capabilities {
3852
+ /**
3853
+ * Capabilities that enable OutboundPayments to a bank account linked to this Account.
3854
+ */
3855
+ bank_accounts?: Capabilities.BankAccounts;
3856
+
3857
+ /**
3858
+ * Capability that enable OutboundPayments to a debit card linked to this Account.
3859
+ */
3860
+ cards?: Capabilities.Cards;
3861
+
3568
3862
  /**
3569
3863
  * Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
3570
3864
  */
@@ -3572,6 +3866,41 @@ declare module 'stripe' {
3572
3866
  }
3573
3867
 
3574
3868
  namespace Capabilities {
3869
+ interface BankAccounts {
3870
+ /**
3871
+ * Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
3872
+ */
3873
+ local?: BankAccounts.Local;
3874
+
3875
+ /**
3876
+ * Enables this Account to receive OutboundPayments to linked bank accounts over wire.
3877
+ */
3878
+ wire?: BankAccounts.Wire;
3879
+ }
3880
+
3881
+ namespace BankAccounts {
3882
+ interface Local {
3883
+ /**
3884
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
3885
+ */
3886
+ requested?: boolean;
3887
+ }
3888
+
3889
+ interface Wire {
3890
+ /**
3891
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
3892
+ */
3893
+ requested?: boolean;
3894
+ }
3895
+ }
3896
+
3897
+ interface Cards {
3898
+ /**
3899
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
3900
+ */
3901
+ requested?: boolean;
3902
+ }
3903
+
3575
3904
  interface StripeBalance {
3576
3905
  /**
3577
3906
  * Enables this Account to receive /v1/transfers into their Stripe Balance (/v1/balance).
@@ -3589,6 +3918,189 @@ declare module 'stripe' {
3589
3918
  }
3590
3919
  }
3591
3920
  }
3921
+
3922
+ interface Storer {
3923
+ /**
3924
+ * Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
3925
+ */
3926
+ applied?: boolean;
3927
+
3928
+ /**
3929
+ * Capabilities to request on the Storer Configuration.
3930
+ */
3931
+ capabilities?: Storer.Capabilities;
3932
+ }
3933
+
3934
+ namespace Storer {
3935
+ interface Capabilities {
3936
+ /**
3937
+ * Can provision a financial address to credit/debit a FinancialAccount.
3938
+ */
3939
+ financial_addresses?: Capabilities.FinancialAddresses;
3940
+
3941
+ /**
3942
+ * Can hold storage-type funds on Stripe.
3943
+ */
3944
+ holds_currencies?: Capabilities.HoldsCurrencies;
3945
+
3946
+ /**
3947
+ * Can pull funds from an external source, owned by yourself, to a FinancialAccount.
3948
+ */
3949
+ inbound_transfers?: Capabilities.InboundTransfers;
3950
+
3951
+ /**
3952
+ * Can send funds from a FinancialAccount to a destination owned by someone else.
3953
+ */
3954
+ outbound_payments?: Capabilities.OutboundPayments;
3955
+
3956
+ /**
3957
+ * Can send funds from a FinancialAccount to a destination owned by yourself.
3958
+ */
3959
+ outbound_transfers?: Capabilities.OutboundTransfers;
3960
+ }
3961
+
3962
+ namespace Capabilities {
3963
+ interface FinancialAddresses {
3964
+ /**
3965
+ * Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount.
3966
+ */
3967
+ bank_accounts?: FinancialAddresses.BankAccounts;
3968
+ }
3969
+
3970
+ namespace FinancialAddresses {
3971
+ interface BankAccounts {
3972
+ /**
3973
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
3974
+ */
3975
+ requested?: boolean;
3976
+ }
3977
+ }
3978
+
3979
+ interface HoldsCurrencies {
3980
+ /**
3981
+ * Can hold storage-type funds on Stripe in EUR.
3982
+ */
3983
+ eur?: HoldsCurrencies.Eur;
3984
+
3985
+ /**
3986
+ * Can hold storage-type funds on Stripe in GBP.
3987
+ */
3988
+ gbp?: HoldsCurrencies.Gbp;
3989
+
3990
+ /**
3991
+ * Can hold storage-type funds on Stripe in USD.
3992
+ */
3993
+ usd?: HoldsCurrencies.Usd;
3994
+ }
3995
+
3996
+ namespace HoldsCurrencies {
3997
+ interface Eur {
3998
+ /**
3999
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
4000
+ */
4001
+ requested?: boolean;
4002
+ }
4003
+
4004
+ interface Gbp {
4005
+ /**
4006
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
4007
+ */
4008
+ requested?: boolean;
4009
+ }
4010
+
4011
+ interface Usd {
4012
+ /**
4013
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
4014
+ */
4015
+ requested?: boolean;
4016
+ }
4017
+ }
4018
+
4019
+ interface InboundTransfers {
4020
+ /**
4021
+ * Can pull funds from an external bank account owned by yourself to a FinancialAccount.
4022
+ */
4023
+ bank_accounts?: InboundTransfers.BankAccounts;
4024
+ }
4025
+
4026
+ namespace InboundTransfers {
4027
+ interface BankAccounts {
4028
+ /**
4029
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
4030
+ */
4031
+ requested?: boolean;
4032
+ }
4033
+ }
4034
+
4035
+ interface OutboundPayments {
4036
+ /**
4037
+ * Can send funds from a FinancialAccount to a bank account owned by someone else.
4038
+ */
4039
+ bank_accounts?: OutboundPayments.BankAccounts;
4040
+
4041
+ /**
4042
+ * Can send funds from a FinancialAccount to a debit card owned by someone else.
4043
+ */
4044
+ cards?: OutboundPayments.Cards;
4045
+
4046
+ /**
4047
+ * Can send funds from a FinancialAccount to another FinancialAccount owned by someone else.
4048
+ */
4049
+ financial_accounts?: OutboundPayments.FinancialAccounts;
4050
+ }
4051
+
4052
+ namespace OutboundPayments {
4053
+ interface BankAccounts {
4054
+ /**
4055
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
4056
+ */
4057
+ requested?: boolean;
4058
+ }
4059
+
4060
+ interface Cards {
4061
+ /**
4062
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
4063
+ */
4064
+ requested?: boolean;
4065
+ }
4066
+
4067
+ interface FinancialAccounts {
4068
+ /**
4069
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
4070
+ */
4071
+ requested?: boolean;
4072
+ }
4073
+ }
4074
+
4075
+ interface OutboundTransfers {
4076
+ /**
4077
+ * Can send funds from a FinancialAccount to a bank account owned by yourself.
4078
+ */
4079
+ bank_accounts?: OutboundTransfers.BankAccounts;
4080
+
4081
+ /**
4082
+ * Can send funds from a FinancialAccount to another FinancialAccount owned by yourself.
4083
+ */
4084
+ financial_accounts?: OutboundTransfers.FinancialAccounts;
4085
+ }
4086
+
4087
+ namespace OutboundTransfers {
4088
+ interface BankAccounts {
4089
+ /**
4090
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
4091
+ */
4092
+ requested?: boolean;
4093
+ }
4094
+
4095
+ interface FinancialAccounts {
4096
+ /**
4097
+ * To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
4098
+ */
4099
+ requested?: boolean;
4100
+ }
4101
+ }
4102
+ }
4103
+ }
3592
4104
  }
3593
4105
 
3594
4106
  type Dashboard = 'express' | 'full' | 'none';
@@ -4922,6 +5434,7 @@ declare module 'stripe' {
4922
5434
  | 'configuration.customer'
4923
5435
  | 'configuration.merchant'
4924
5436
  | 'configuration.recipient'
5437
+ | 'configuration.storer'
4925
5438
  | 'defaults'
4926
5439
  | 'future_requirements'
4927
5440
  | 'identity'
@@ -4950,7 +5463,11 @@ declare module 'stripe' {
4950
5463
  }
4951
5464
 
4952
5465
  namespace AccountListParams {
4953
- type AppliedConfiguration = 'customer' | 'merchant' | 'recipient';
5466
+ type AppliedConfiguration =
5467
+ | 'customer'
5468
+ | 'merchant'
5469
+ | 'recipient'
5470
+ | 'storer';
4954
5471
  }
4955
5472
  }
4956
5473
 
@@ -4965,7 +5482,11 @@ declare module 'stripe' {
4965
5482
  }
4966
5483
 
4967
5484
  namespace AccountCloseParams {
4968
- type AppliedConfiguration = 'customer' | 'merchant' | 'recipient';
5485
+ type AppliedConfiguration =
5486
+ | 'customer'
5487
+ | 'merchant'
5488
+ | 'recipient'
5489
+ | 'storer';
4969
5490
  }
4970
5491
  }
4971
5492