stripe 19.0.0 → 19.1.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 (323) hide show
  1. package/CHANGELOG.md +1431 -11
  2. package/README.md +1 -0
  3. package/VERSION +1 -1
  4. package/cjs/Error.js +115 -1
  5. package/cjs/apiVersion.js +2 -3
  6. package/cjs/resources/AccountNotices.js +21 -0
  7. package/cjs/resources/Billing/Analytics/MeterUsage.js +12 -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/Mandates.js +5 -0
  19. package/cjs/resources/Margins.js +22 -0
  20. package/cjs/resources/Orders.js +24 -0
  21. package/cjs/resources/PaymentAttemptRecords.js +17 -0
  22. package/cjs/resources/PaymentIntents.js +13 -0
  23. package/cjs/resources/PaymentRecords.js +33 -0
  24. package/cjs/resources/Privacy/RedactionJobs.js +42 -0
  25. package/cjs/resources/Quotes.js +32 -0
  26. package/cjs/resources/SubscriptionSchedules.js +4 -0
  27. package/cjs/resources/Subscriptions.js +4 -0
  28. package/cjs/resources/Tax/Associations.js +9 -0
  29. package/cjs/resources/Tax/Forms.js +20 -0
  30. package/cjs/resources/Terminal/OnboardingLinks.js +12 -0
  31. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  32. package/cjs/resources/V2/Billing/BillSettings/Versions.js +17 -0
  33. package/cjs/resources/V2/Billing/BillSettings.js +27 -0
  34. package/cjs/resources/V2/Billing/Cadences.js +23 -0
  35. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +17 -0
  36. package/cjs/resources/V2/Billing/CollectionSettings.js +30 -0
  37. package/cjs/resources/V2/Billing/Profiles.js +19 -0
  38. package/cjs/resources/V2/Core/AccountLinks.js +9 -0
  39. package/cjs/resources/V2/Core/Accounts/Persons.js +29 -0
  40. package/cjs/resources/V2/Core/Accounts.js +25 -0
  41. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +28 -0
  42. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +24 -0
  43. package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
  44. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +25 -0
  45. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +21 -0
  46. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +21 -0
  47. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +16 -0
  48. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +25 -0
  49. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +29 -0
  50. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +25 -0
  51. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +25 -0
  52. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +12 -0
  53. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +17 -0
  54. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +17 -0
  55. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +17 -0
  56. package/cjs/resources/V2/MoneyManagement/Transactions.js +17 -0
  57. package/cjs/resources/V2/Payments/OffSessionPayments.js +29 -0
  58. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
  59. package/cjs/resources.js +110 -8
  60. package/cjs/stripe.core.js +1 -1
  61. package/esm/Error.js +100 -0
  62. package/esm/apiVersion.js +1 -2
  63. package/esm/resources/AccountNotices.js +18 -0
  64. package/esm/resources/Billing/Analytics/MeterUsage.js +9 -0
  65. package/esm/resources/Capital/FinancingOffers.js +18 -0
  66. package/esm/resources/Capital/FinancingSummary.js +9 -0
  67. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  68. package/esm/resources/ExternalAccounts.js +20 -0
  69. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  70. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  71. package/esm/resources/FxQuotes.js +12 -0
  72. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  73. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  74. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  75. package/esm/resources/Mandates.js +5 -0
  76. package/esm/resources/Margins.js +19 -0
  77. package/esm/resources/Orders.js +21 -0
  78. package/esm/resources/PaymentAttemptRecords.js +14 -0
  79. package/esm/resources/PaymentIntents.js +13 -0
  80. package/esm/resources/PaymentRecords.js +30 -0
  81. package/esm/resources/Privacy/RedactionJobs.js +39 -0
  82. package/esm/resources/Quotes.js +32 -0
  83. package/esm/resources/SubscriptionSchedules.js +4 -0
  84. package/esm/resources/Subscriptions.js +4 -0
  85. package/esm/resources/Tax/Associations.js +6 -0
  86. package/esm/resources/Tax/Forms.js +17 -0
  87. package/esm/resources/Terminal/OnboardingLinks.js +9 -0
  88. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  89. package/esm/resources/V2/Billing/BillSettings/Versions.js +14 -0
  90. package/esm/resources/V2/Billing/BillSettings.js +24 -0
  91. package/esm/resources/V2/Billing/Cadences.js +20 -0
  92. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +14 -0
  93. package/esm/resources/V2/Billing/CollectionSettings.js +27 -0
  94. package/esm/resources/V2/Billing/Profiles.js +16 -0
  95. package/esm/resources/V2/Core/AccountLinks.js +6 -0
  96. package/esm/resources/V2/Core/Accounts/Persons.js +26 -0
  97. package/esm/resources/V2/Core/Accounts.js +22 -0
  98. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +25 -0
  99. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +21 -0
  100. package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
  101. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +22 -0
  102. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +18 -0
  103. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +18 -0
  104. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +13 -0
  105. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +22 -0
  106. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +26 -0
  107. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +22 -0
  108. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +22 -0
  109. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +9 -0
  110. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +14 -0
  111. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +14 -0
  112. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +14 -0
  113. package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
  114. package/esm/resources/V2/Payments/OffSessionPayments.js +26 -0
  115. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
  116. package/esm/resources.js +95 -0
  117. package/esm/stripe.core.js +1 -1
  118. package/package.json +1 -1
  119. package/types/AccountLinksResource.d.ts +5 -1
  120. package/types/AccountNotices.d.ts +113 -0
  121. package/types/AccountNoticesResource.d.ts +98 -0
  122. package/types/AccountSessions.d.ts +45 -0
  123. package/types/AccountSessionsResource.d.ts +264 -0
  124. package/types/Accounts.d.ts +212 -1
  125. package/types/AccountsResource.d.ts +544 -0
  126. package/types/Billing/AlertTriggereds.d.ts +1 -1
  127. package/types/Billing/Analytics/MeterUsage.d.ts +31 -0
  128. package/types/Billing/Analytics/MeterUsageResource.d.ts +689 -0
  129. package/types/Billing/Analytics/MeterUsageRows.d.ts +51 -0
  130. package/types/Billing/CreditBalanceSummary.d.ts +5 -0
  131. package/types/Billing/CreditBalanceSummaryResource.d.ts +8 -3
  132. package/types/Billing/CreditBalanceTransactionsResource.d.ts +12 -4
  133. package/types/Billing/CreditGrants.d.ts +5 -0
  134. package/types/Billing/CreditGrantsResource.d.ts +11 -1
  135. package/types/BillingPortal/Sessions.d.ts +5 -0
  136. package/types/BillingPortal/SessionsResource.d.ts +12 -4
  137. package/types/Capital/FinancingOffers.d.ts +188 -0
  138. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  139. package/types/Capital/FinancingSummary.d.ts +106 -0
  140. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  141. package/types/Capital/FinancingTransactions.d.ts +135 -0
  142. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  143. package/types/Cards.d.ts +5 -0
  144. package/types/CashBalances.d.ts +5 -0
  145. package/types/Charges.d.ts +171 -0
  146. package/types/ChargesResource.d.ts +1406 -0
  147. package/types/Checkout/Sessions.d.ts +369 -2
  148. package/types/Checkout/SessionsResource.d.ts +634 -2
  149. package/types/ConfirmationTokens.d.ts +125 -0
  150. package/types/Coupons.d.ts +33 -0
  151. package/types/CouponsResource.d.ts +21 -0
  152. package/types/CreditNoteLineItems.d.ts +17 -0
  153. package/types/CreditNotes.d.ts +5 -0
  154. package/types/CreditNotesResource.d.ts +5 -0
  155. package/types/CustomerBalanceTransactions.d.ts +2 -0
  156. package/types/CustomerCashBalanceTransactions.d.ts +2 -0
  157. package/types/CustomerSessions.d.ts +5 -0
  158. package/types/CustomerSessionsResource.d.ts +6 -1
  159. package/types/Customers.d.ts +2 -0
  160. package/types/CustomersResource.d.ts +8 -0
  161. package/types/Discounts.d.ts +10 -0
  162. package/types/Disputes.d.ts +40 -0
  163. package/types/DisputesResource.d.ts +11 -0
  164. package/types/Errors.d.ts +85 -0
  165. package/types/EventTypes.d.ts +664 -0
  166. package/types/Events.d.ts +97 -0
  167. package/types/ExternalAccountsResource.d.ts +304 -0
  168. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  169. package/types/FinancialConnections/Accounts.d.ts +36 -1
  170. package/types/FinancialConnections/AccountsResource.d.ts +40 -3
  171. package/types/FinancialConnections/Institutions.d.ts +98 -0
  172. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  173. package/types/FinancialConnections/Sessions.d.ts +51 -1
  174. package/types/FinancialConnections/SessionsResource.d.ts +43 -1
  175. package/types/FxQuotes.d.ts +155 -0
  176. package/types/FxQuotesResource.d.ts +130 -0
  177. package/types/Identity/VerificationSessions.d.ts +5 -0
  178. package/types/Identity/VerificationSessionsResource.d.ts +7 -0
  179. package/types/InvoiceItems.d.ts +10 -0
  180. package/types/InvoiceItemsResource.d.ts +117 -6
  181. package/types/InvoiceLineItems.d.ts +45 -1
  182. package/types/InvoicePayments.d.ts +5 -0
  183. package/types/InvoicePaymentsResource.d.ts +10 -1
  184. package/types/Invoices.d.ts +204 -4
  185. package/types/InvoicesResource.d.ts +1646 -21
  186. package/types/Issuing/CardholdersResource.d.ts +2 -1
  187. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  188. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  189. package/types/Issuing/DisputeSettlementDetails.d.ts +85 -0
  190. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  191. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  192. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  193. package/types/Issuing/Settlements.d.ts +113 -0
  194. package/types/Issuing/Transactions.d.ts +5 -0
  195. package/types/Issuing/TransactionsResource.d.ts +5 -0
  196. package/types/LineItems.d.ts +49 -0
  197. package/types/Mandates.d.ts +135 -1
  198. package/types/MandatesResource.d.ts +31 -0
  199. package/types/Margins.d.ts +56 -0
  200. package/types/MarginsResource.d.ts +114 -0
  201. package/types/Orders.d.ts +1163 -0
  202. package/types/OrdersResource.d.ts +3139 -0
  203. package/types/PaymentAttemptRecords.d.ts +2360 -0
  204. package/types/PaymentAttemptRecordsResource.d.ts +52 -0
  205. package/types/PaymentIntentAmountDetailsLineItems.d.ts +116 -0
  206. package/types/PaymentIntents.d.ts +825 -3
  207. package/types/PaymentIntentsResource.d.ts +11753 -5914
  208. package/types/PaymentLinks.d.ts +7 -0
  209. package/types/PaymentLinksResource.d.ts +14 -0
  210. package/types/PaymentMethodConfigurations.d.ts +216 -0
  211. package/types/PaymentMethodConfigurationsResource.d.ts +300 -0
  212. package/types/PaymentMethods.d.ts +130 -0
  213. package/types/PaymentMethodsResource.d.ts +167 -2
  214. package/types/PaymentRecords.d.ts +2353 -0
  215. package/types/PaymentRecordsResource.d.ts +559 -0
  216. package/types/Prices.d.ts +22 -0
  217. package/types/PricesResource.d.ts +22 -0
  218. package/types/Privacy/RedactionJobValidationErrors.d.ts +60 -0
  219. package/types/Privacy/RedactionJobs.d.ts +111 -0
  220. package/types/Privacy/RedactionJobsResource.d.ts +230 -0
  221. package/types/PromotionCodes.d.ts +5 -0
  222. package/types/PromotionCodesResource.d.ts +10 -0
  223. package/types/QuoteLines.d.ts +634 -0
  224. package/types/QuotePreviewInvoices.d.ts +1770 -0
  225. package/types/QuotePreviewSubscriptionSchedules.d.ts +908 -0
  226. package/types/Quotes.d.ts +594 -1
  227. package/types/QuotesResource.d.ts +2588 -243
  228. package/types/Refunds.d.ts +14 -0
  229. package/types/SetupAttempts.d.ts +51 -1
  230. package/types/SetupIntents.d.ts +210 -2
  231. package/types/SetupIntentsResource.d.ts +938 -4
  232. package/types/Sources.d.ts +29 -0
  233. package/types/SubscriptionItems.d.ts +26 -0
  234. package/types/SubscriptionItemsResource.d.ts +109 -0
  235. package/types/SubscriptionSchedules.d.ts +205 -0
  236. package/types/SubscriptionSchedulesResource.d.ts +1233 -5
  237. package/types/Subscriptions.d.ts +263 -1
  238. package/types/SubscriptionsResource.d.ts +747 -8
  239. package/types/Tax/Associations.d.ts +82 -0
  240. package/types/Tax/AssociationsResource.d.ts +29 -0
  241. package/types/Tax/Forms.d.ts +220 -0
  242. package/types/Tax/FormsResource.d.ts +107 -0
  243. package/types/TaxIds.d.ts +10 -0
  244. package/types/TaxIdsResource.d.ts +10 -0
  245. package/types/Terminal/Configurations.d.ts +9 -0
  246. package/types/Terminal/ConfigurationsResource.d.ts +28 -0
  247. package/types/Terminal/OnboardingLinks.d.ts +57 -0
  248. package/types/Terminal/OnboardingLinksResource.d.ts +62 -0
  249. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  250. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  251. package/types/Terminal/Readers.d.ts +20 -0
  252. package/types/TestHelpers/ConfirmationTokensResource.d.ts +126 -0
  253. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  254. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  255. package/types/Transfers.d.ts +5 -0
  256. package/types/TransfersResource.d.ts +5 -0
  257. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  258. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  259. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  260. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  261. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  262. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  263. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  264. package/types/V2/Billing/BillSettingVersions.d.ts +97 -0
  265. package/types/V2/Billing/BillSettings/VersionsResource.d.ts +58 -0
  266. package/types/V2/Billing/BillSettings.d.ts +120 -0
  267. package/types/V2/Billing/BillSettingsResource.d.ts +241 -0
  268. package/types/V2/Billing/Cadences.d.ts +686 -0
  269. package/types/V2/Billing/CadencesResource.d.ts +487 -0
  270. package/types/V2/Billing/CollectionSettingVersions.d.ts +314 -0
  271. package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +62 -0
  272. package/types/V2/Billing/CollectionSettings.d.ts +337 -0
  273. package/types/V2/Billing/CollectionSettingsResource.d.ts +675 -0
  274. package/types/V2/Billing/Profiles.d.ts +70 -0
  275. package/types/V2/Billing/ProfilesResource.d.ts +150 -0
  276. package/types/V2/Core/AccountLinks.d.ts +168 -0
  277. package/types/V2/Core/AccountLinksResource.d.ts +152 -0
  278. package/types/V2/Core/AccountPersons.d.ts +615 -0
  279. package/types/V2/Core/Accounts/PersonsResource.d.ts +1153 -0
  280. package/types/V2/Core/Accounts.d.ts +5919 -0
  281. package/types/V2/Core/AccountsResource.d.ts +4999 -0
  282. package/types/V2/Core/EventTypes.d.ts +1646 -9
  283. package/types/V2/Core/Vault/GbBankAccounts.d.ts +160 -0
  284. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +172 -0
  285. package/types/V2/Core/Vault/UsBankAccounts.d.ts +70 -0
  286. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +123 -0
  287. package/types/V2/FinancialAddressCreditSimulations.d.ts +27 -0
  288. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +32 -0
  289. package/types/V2/MoneyManagement/Adjustments.d.ts +110 -0
  290. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
  291. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +148 -0
  292. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +147 -0
  293. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +178 -0
  294. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +112 -0
  295. package/types/V2/MoneyManagement/InboundTransfers.d.ts +206 -0
  296. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +144 -0
  297. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +170 -0
  298. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +115 -0
  299. package/types/V2/MoneyManagement/OutboundPayments.d.ts +278 -0
  300. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +242 -0
  301. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +97 -0
  302. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +296 -0
  303. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +251 -0
  304. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +208 -0
  305. package/types/V2/MoneyManagement/PayoutMethods.d.ts +160 -0
  306. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +93 -0
  307. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
  308. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
  309. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +302 -0
  310. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
  311. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +176 -0
  312. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
  313. package/types/V2/MoneyManagement/TransactionEntries.d.ts +162 -0
  314. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
  315. package/types/V2/MoneyManagement/Transactions.d.ts +177 -0
  316. package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
  317. package/types/V2/Payments/OffSessionPayments.d.ts +326 -0
  318. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +401 -0
  319. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +68 -0
  320. package/types/WebhookEndpointsResource.d.ts +78 -0
  321. package/types/apiVersion.d.ts +1 -2
  322. package/types/index.d.ts +160 -0
  323. package/types/lib.d.ts +10 -0
@@ -81,6 +81,11 @@ declare module 'stripe' {
81
81
  */
82
82
  customer?: string;
83
83
 
84
+ /**
85
+ * ID of an existing Account, if one exists. Has the same behavior as `customer`.
86
+ */
87
+ customer_account?: string;
88
+
84
89
  /**
85
90
  * Configure whether a Checkout Session creates a [Customer](https://stripe.com/docs/api/customers) during Session confirmation.
86
91
  *
@@ -730,12 +735,55 @@ declare module 'stripe' {
730
735
  */
731
736
  coupon?: string;
732
737
 
738
+ /**
739
+ * Data used to generate a new [Coupon](https://stripe.com/docs/api/coupon) object inline. One of `coupon` or `coupon_data` is required when updating discounts.
740
+ */
741
+ coupon_data?: Discount.CouponData;
742
+
733
743
  /**
734
744
  * The ID of a promotion code to apply to this Session.
735
745
  */
736
746
  promotion_code?: string;
737
747
  }
738
748
 
749
+ namespace Discount {
750
+ interface CouponData {
751
+ /**
752
+ * A positive integer representing the amount to subtract from an invoice total (required if `percent_off` is not passed).
753
+ */
754
+ amount_off?: number;
755
+
756
+ /**
757
+ * Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `amount_off` parameter (required if `amount_off` is passed).
758
+ */
759
+ currency?: string;
760
+
761
+ /**
762
+ * Specifies how long the discount will be in effect if used on a subscription. Defaults to `once`.
763
+ */
764
+ duration?: CouponData.Duration;
765
+
766
+ /**
767
+ * 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
768
+ */
769
+ metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
770
+
771
+ /**
772
+ * Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the `id` is shown if `name` is not set.
773
+ */
774
+ name?: string;
775
+
776
+ /**
777
+ * A positive float larger than 0, and smaller or equal to 100, that represents the discount the coupon will apply (required if `amount_off` is not passed).
778
+ */
779
+ percent_off?: number;
780
+ }
781
+
782
+ namespace CouponData {
783
+ type Duration = 'forever' | 'once' | 'repeating';
784
+ }
785
+ }
786
+
739
787
  type ExcludedPaymentMethodType =
740
788
  | 'acss_debit'
741
789
  | 'affirm'
@@ -756,12 +804,14 @@ declare module 'stripe' {
756
804
  | 'eps'
757
805
  | 'fpx'
758
806
  | 'giropay'
807
+ | 'gopay'
759
808
  | 'grabpay'
760
809
  | 'ideal'
761
810
  | 'kakao_pay'
762
811
  | 'klarna'
763
812
  | 'konbini'
764
813
  | 'kr_card'
814
+ | 'mb_way'
765
815
  | 'mobilepay'
766
816
  | 'multibanco'
767
817
  | 'naver_pay'
@@ -772,12 +822,17 @@ declare module 'stripe' {
772
822
  | 'payco'
773
823
  | 'paynow'
774
824
  | 'paypal'
825
+ | 'paypay'
826
+ | 'payto'
775
827
  | 'pix'
776
828
  | 'promptpay'
829
+ | 'qris'
830
+ | 'rechnung'
777
831
  | 'revolut_pay'
778
832
  | 'samsung_pay'
779
833
  | 'satispay'
780
834
  | 'sepa_debit'
835
+ | 'shopeepay'
781
836
  | 'sofort'
782
837
  | 'swish'
783
838
  | 'twint'
@@ -895,6 +950,11 @@ declare module 'stripe' {
895
950
  */
896
951
  dynamic_tax_rates?: Array<string>;
897
952
 
953
+ /**
954
+ * 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
955
+ */
956
+ metadata?: Stripe.MetadataParam;
957
+
898
958
  /**
899
959
  * The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. One of `price` or `price_data` is required.
900
960
  */
@@ -1463,6 +1523,11 @@ declare module 'stripe' {
1463
1523
  */
1464
1524
  paypal?: PaymentMethodOptions.Paypal;
1465
1525
 
1526
+ /**
1527
+ * contains details about the PayTo payment method options.
1528
+ */
1529
+ payto?: PaymentMethodOptions.Payto;
1530
+
1466
1531
  /**
1467
1532
  * contains details about the Pix payment method options.
1468
1533
  */
@@ -1771,6 +1836,11 @@ declare module 'stripe' {
1771
1836
  */
1772
1837
  installments?: Card.Installments;
1773
1838
 
1839
+ /**
1840
+ * Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession.
1841
+ */
1842
+ request_decremental_authorization?: Card.RequestDecrementalAuthorization;
1843
+
1774
1844
  /**
1775
1845
  * Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession.
1776
1846
  */
@@ -1832,6 +1902,8 @@ declare module 'stripe' {
1832
1902
  enabled?: boolean;
1833
1903
  }
1834
1904
 
1905
+ type RequestDecrementalAuthorization = 'if_available' | 'never';
1906
+
1835
1907
  type RequestExtendedAuthorization = 'if_available' | 'never';
1836
1908
 
1837
1909
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -2314,6 +2386,11 @@ declare module 'stripe' {
2314
2386
  */
2315
2387
  reference?: string;
2316
2388
 
2389
+ /**
2390
+ * A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
2391
+ */
2392
+ reference_id?: string;
2393
+
2317
2394
  /**
2318
2395
  * The risk correlation ID for an on-session payment using a saved PayPal payment method.
2319
2396
  */
@@ -2331,6 +2408,11 @@ declare module 'stripe' {
2331
2408
  * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2332
2409
  */
2333
2410
  setup_future_usage?: Stripe.Emptyable<Paypal.SetupFutureUsage>;
2411
+
2412
+ /**
2413
+ * The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
2414
+ */
2415
+ subsellers?: Array<string>;
2334
2416
  }
2335
2417
 
2336
2418
  namespace Paypal {
@@ -2360,6 +2442,92 @@ declare module 'stripe' {
2360
2442
  type SetupFutureUsage = 'none' | 'off_session';
2361
2443
  }
2362
2444
 
2445
+ interface Payto {
2446
+ /**
2447
+ * Additional fields for Mandate creation
2448
+ */
2449
+ mandate_options?: Payto.MandateOptions;
2450
+
2451
+ /**
2452
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2453
+ *
2454
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2455
+ *
2456
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2457
+ *
2458
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2459
+ */
2460
+ setup_future_usage?: Payto.SetupFutureUsage;
2461
+ }
2462
+
2463
+ namespace Payto {
2464
+ interface MandateOptions {
2465
+ /**
2466
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
2467
+ */
2468
+ amount?: number;
2469
+
2470
+ /**
2471
+ * The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
2472
+ */
2473
+ amount_type?: MandateOptions.AmountType;
2474
+
2475
+ /**
2476
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2477
+ */
2478
+ end_date?: string;
2479
+
2480
+ /**
2481
+ * The periodicity at which payments will be collected.
2482
+ */
2483
+ payment_schedule?: MandateOptions.PaymentSchedule;
2484
+
2485
+ /**
2486
+ * The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
2487
+ */
2488
+ payments_per_period?: number;
2489
+
2490
+ /**
2491
+ * The purpose for which payments are made. Defaults to retail.
2492
+ */
2493
+ purpose?: MandateOptions.Purpose;
2494
+
2495
+ /**
2496
+ * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
2497
+ */
2498
+ start_date?: string;
2499
+ }
2500
+
2501
+ namespace MandateOptions {
2502
+ type AmountType = 'fixed' | 'maximum';
2503
+
2504
+ type PaymentSchedule =
2505
+ | 'adhoc'
2506
+ | 'annual'
2507
+ | 'daily'
2508
+ | 'fortnightly'
2509
+ | 'monthly'
2510
+ | 'quarterly'
2511
+ | 'semi_annual'
2512
+ | 'weekly';
2513
+
2514
+ type Purpose =
2515
+ | 'dependant_support'
2516
+ | 'government'
2517
+ | 'loan'
2518
+ | 'mortgage'
2519
+ | 'other'
2520
+ | 'pension'
2521
+ | 'personal'
2522
+ | 'retail'
2523
+ | 'salary'
2524
+ | 'tax'
2525
+ | 'utility';
2526
+ }
2527
+
2528
+ type SetupFutureUsage = 'none' | 'off_session';
2529
+ }
2530
+
2363
2531
  interface Pix {
2364
2532
  /**
2365
2533
  * Determines if the amount includes the IOF tax. Defaults to `never`.
@@ -2371,6 +2539,11 @@ declare module 'stripe' {
2371
2539
  */
2372
2540
  expires_after_seconds?: number;
2373
2541
 
2542
+ /**
2543
+ * Additional fields for mandate creation.
2544
+ */
2545
+ mandate_options?: Pix.MandateOptions;
2546
+
2374
2547
  /**
2375
2548
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2376
2549
  *
@@ -2380,11 +2553,68 @@ declare module 'stripe' {
2380
2553
  *
2381
2554
  * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2382
2555
  */
2383
- setup_future_usage?: 'none';
2556
+ setup_future_usage?: Pix.SetupFutureUsage;
2384
2557
  }
2385
2558
 
2386
2559
  namespace Pix {
2387
2560
  type AmountIncludesIof = 'always' | 'never';
2561
+
2562
+ interface MandateOptions {
2563
+ /**
2564
+ * Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
2565
+ */
2566
+ amount?: number;
2567
+
2568
+ /**
2569
+ * Determines if the amount includes the IOF tax. Defaults to `never`.
2570
+ */
2571
+ amount_includes_iof?: MandateOptions.AmountIncludesIof;
2572
+
2573
+ /**
2574
+ * Type of amount. Defaults to `maximum`.
2575
+ */
2576
+ amount_type?: MandateOptions.AmountType;
2577
+
2578
+ /**
2579
+ * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
2580
+ */
2581
+ currency?: string;
2582
+
2583
+ /**
2584
+ * Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
2585
+ */
2586
+ end_date?: string;
2587
+
2588
+ /**
2589
+ * Schedule at which the future payments will be charged. Defaults to `weekly`.
2590
+ */
2591
+ payment_schedule?: MandateOptions.PaymentSchedule;
2592
+
2593
+ /**
2594
+ * Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
2595
+ */
2596
+ reference?: string;
2597
+
2598
+ /**
2599
+ * Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
2600
+ */
2601
+ start_date?: string;
2602
+ }
2603
+
2604
+ namespace MandateOptions {
2605
+ type AmountIncludesIof = 'always' | 'never';
2606
+
2607
+ type AmountType = 'fixed' | 'maximum';
2608
+
2609
+ type PaymentSchedule =
2610
+ | 'halfyearly'
2611
+ | 'monthly'
2612
+ | 'quarterly'
2613
+ | 'weekly'
2614
+ | 'yearly';
2615
+ }
2616
+
2617
+ type SetupFutureUsage = 'none' | 'off_session';
2388
2618
  }
2389
2619
 
2390
2620
  interface RevolutPay {
@@ -2525,7 +2755,11 @@ declare module 'stripe' {
2525
2755
  | 'payment_method'
2526
2756
  | 'transactions';
2527
2757
 
2528
- type Prefetch = 'balances' | 'ownership' | 'transactions';
2758
+ type Prefetch =
2759
+ | 'balances'
2760
+ | 'inferred_balances'
2761
+ | 'ownership'
2762
+ | 'transactions';
2529
2763
  }
2530
2764
 
2531
2765
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -2581,6 +2815,7 @@ declare module 'stripe' {
2581
2815
  | 'eps'
2582
2816
  | 'fpx'
2583
2817
  | 'giropay'
2818
+ | 'gopay'
2584
2819
  | 'grabpay'
2585
2820
  | 'ideal'
2586
2821
  | 'kakao_pay'
@@ -2588,6 +2823,7 @@ declare module 'stripe' {
2588
2823
  | 'konbini'
2589
2824
  | 'kr_card'
2590
2825
  | 'link'
2826
+ | 'mb_way'
2591
2827
  | 'mobilepay'
2592
2828
  | 'multibanco'
2593
2829
  | 'naver_pay'
@@ -2598,12 +2834,17 @@ declare module 'stripe' {
2598
2834
  | 'payco'
2599
2835
  | 'paynow'
2600
2836
  | 'paypal'
2837
+ | 'paypay'
2838
+ | 'payto'
2601
2839
  | 'pix'
2602
2840
  | 'promptpay'
2841
+ | 'qris'
2842
+ | 'rechnung'
2603
2843
  | 'revolut_pay'
2604
2844
  | 'samsung_pay'
2605
2845
  | 'satispay'
2606
2846
  | 'sepa_debit'
2847
+ | 'shopeepay'
2607
2848
  | 'sofort'
2608
2849
  | 'swish'
2609
2850
  | 'twint'
@@ -2612,6 +2853,27 @@ declare module 'stripe' {
2612
2853
  | 'zip';
2613
2854
 
2614
2855
  interface Permissions {
2856
+ /**
2857
+ * Permissions for updating the Checkout Session.
2858
+ */
2859
+ update?: Permissions.Update;
2860
+
2861
+ /**
2862
+ * Determines which entity is allowed to update the discounts (coupons or promotion codes) that apply to this session.
2863
+ *
2864
+ * Default is `client_only`. Stripe Checkout client will automatically handle discount updates. If set to `server_only`, only your server is allowed to update discounts.
2865
+ */
2866
+ update_discounts?: Permissions.UpdateDiscounts;
2867
+
2868
+ /**
2869
+ * Determines which entity is allowed to update the line items.
2870
+ *
2871
+ * Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
2872
+ *
2873
+ * When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
2874
+ */
2875
+ update_line_items?: Permissions.UpdateLineItems;
2876
+
2615
2877
  /**
2616
2878
  * Determines which entity is allowed to update the shipping details.
2617
2879
  *
@@ -2623,6 +2885,36 @@ declare module 'stripe' {
2623
2885
  }
2624
2886
 
2625
2887
  namespace Permissions {
2888
+ interface Update {
2889
+ /**
2890
+ * Determines which entity is allowed to update the line items.
2891
+ *
2892
+ * Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
2893
+ *
2894
+ * When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
2895
+ */
2896
+ line_items?: Update.LineItems;
2897
+
2898
+ /**
2899
+ * Determines which entity is allowed to update the shipping details.
2900
+ *
2901
+ * Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
2902
+ *
2903
+ * When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
2904
+ */
2905
+ shipping_details?: Update.ShippingDetails;
2906
+ }
2907
+
2908
+ namespace Update {
2909
+ type LineItems = 'client_only' | 'server_only';
2910
+
2911
+ type ShippingDetails = 'client_only' | 'server_only';
2912
+ }
2913
+
2914
+ type UpdateDiscounts = 'client_only' | 'server_only';
2915
+
2916
+ type UpdateLineItems = 'client_only' | 'server_only';
2917
+
2626
2918
  type UpdateShippingDetails = 'client_only' | 'server_only';
2627
2919
  }
2628
2920
 
@@ -3277,16 +3569,48 @@ declare module 'stripe' {
3277
3569
  }
3278
3570
 
3279
3571
  interface SessionUpdateParams {
3572
+ /**
3573
+ * Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions.
3574
+ */
3575
+ automatic_tax?: SessionUpdateParams.AutomaticTax;
3576
+
3280
3577
  /**
3281
3578
  * Information about the customer collected within the Checkout Session. Can only be set when updating `embedded` or `custom` sessions.
3282
3579
  */
3283
3580
  collected_information?: SessionUpdateParams.CollectedInformation;
3284
3581
 
3582
+ /**
3583
+ * List of coupons and promotion codes attached to the Checkout Session.
3584
+ */
3585
+ discounts?: Stripe.Emptyable<Array<SessionUpdateParams.Discount>>;
3586
+
3285
3587
  /**
3286
3588
  * Specifies which fields in the response should be expanded.
3287
3589
  */
3288
3590
  expand?: Array<string>;
3289
3591
 
3592
+ /**
3593
+ * Generate a post-purchase Invoice for one-time payments.
3594
+ */
3595
+ invoice_creation?: SessionUpdateParams.InvoiceCreation;
3596
+
3597
+ /**
3598
+ * A list of items the customer is purchasing.
3599
+ *
3600
+ * When updating line items, you must retransmit the entire array of line items.
3601
+ *
3602
+ * To retain an existing line item, specify its `id`.
3603
+ *
3604
+ * To update an existing line item, specify its `id` along with the new values of the fields to update.
3605
+ *
3606
+ * To add a new line item, specify one of `price` or `price_data` and `quantity`.
3607
+ *
3608
+ * To remove an existing line item, omit the line item's ID from the retransmitted array.
3609
+ *
3610
+ * To reorder a line item, specify it at the desired position in the retransmitted array.
3611
+ */
3612
+ line_items?: Array<SessionUpdateParams.LineItem>;
3613
+
3290
3614
  /**
3291
3615
  * 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
3292
3616
  */
@@ -3298,9 +3622,39 @@ declare module 'stripe' {
3298
3622
  shipping_options?: Stripe.Emptyable<
3299
3623
  Array<SessionUpdateParams.ShippingOption>
3300
3624
  >;
3625
+
3626
+ /**
3627
+ * A subset of parameters to be passed to subscription creation for Checkout Sessions in `subscription` mode.
3628
+ */
3629
+ subscription_data?: SessionUpdateParams.SubscriptionData;
3301
3630
  }
3302
3631
 
3303
3632
  namespace SessionUpdateParams {
3633
+ interface AutomaticTax {
3634
+ /**
3635
+ * The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
3636
+ */
3637
+ liability?: AutomaticTax.Liability;
3638
+ }
3639
+
3640
+ namespace AutomaticTax {
3641
+ interface Liability {
3642
+ /**
3643
+ * The connected account being referenced when `type` is `account`.
3644
+ */
3645
+ account?: string;
3646
+
3647
+ /**
3648
+ * Type of the account referenced in the request.
3649
+ */
3650
+ type: Liability.Type;
3651
+ }
3652
+
3653
+ namespace Liability {
3654
+ type Type = 'account' | 'self';
3655
+ }
3656
+ }
3657
+
3304
3658
  interface CollectedInformation {
3305
3659
  /**
3306
3660
  * The shipping details to apply to this Session.
@@ -3356,6 +3710,235 @@ declare module 'stripe' {
3356
3710
  }
3357
3711
  }
3358
3712
 
3713
+ interface Discount {
3714
+ /**
3715
+ * The ID of the [Coupon](https://stripe.com/docs/api/coupons) to apply to this Session. One of `coupon` or `coupon_data` is required when updating discounts.
3716
+ */
3717
+ coupon?: string;
3718
+
3719
+ /**
3720
+ * Data used to generate a new [Coupon](https://stripe.com/docs/api/coupon) object inline. One of `coupon` or `coupon_data` is required when updating discounts.
3721
+ */
3722
+ coupon_data?: Discount.CouponData;
3723
+ }
3724
+
3725
+ namespace Discount {
3726
+ interface CouponData {
3727
+ /**
3728
+ * A positive integer representing the amount to subtract from an invoice total (required if `percent_off` is not passed).
3729
+ */
3730
+ amount_off?: number;
3731
+
3732
+ /**
3733
+ * Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `amount_off` parameter (required if `amount_off` is passed).
3734
+ */
3735
+ currency?: string;
3736
+
3737
+ /**
3738
+ * Specifies how long the discount will be in effect if used on a subscription. Defaults to `once`.
3739
+ */
3740
+ duration?: CouponData.Duration;
3741
+
3742
+ /**
3743
+ * 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
3744
+ */
3745
+ metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
3746
+
3747
+ /**
3748
+ * Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the `id` is shown if `name` is not set.
3749
+ */
3750
+ name?: string;
3751
+
3752
+ /**
3753
+ * A positive float larger than 0, and smaller or equal to 100, that represents the discount the coupon will apply (required if `amount_off` is not passed).
3754
+ */
3755
+ percent_off?: number;
3756
+ }
3757
+
3758
+ namespace CouponData {
3759
+ type Duration = 'forever' | 'once' | 'repeating';
3760
+ }
3761
+ }
3762
+
3763
+ interface InvoiceCreation {
3764
+ /**
3765
+ * Parameters passed when creating invoices for payment-mode Checkout Sessions.
3766
+ */
3767
+ invoice_data?: InvoiceCreation.InvoiceData;
3768
+ }
3769
+
3770
+ namespace InvoiceCreation {
3771
+ interface InvoiceData {
3772
+ /**
3773
+ * The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
3774
+ */
3775
+ issuer?: InvoiceData.Issuer;
3776
+ }
3777
+
3778
+ namespace InvoiceData {
3779
+ interface Issuer {
3780
+ /**
3781
+ * The connected account being referenced when `type` is `account`.
3782
+ */
3783
+ account?: string;
3784
+
3785
+ /**
3786
+ * Type of the account referenced in the request.
3787
+ */
3788
+ type: Issuer.Type;
3789
+ }
3790
+
3791
+ namespace Issuer {
3792
+ type Type = 'account' | 'self';
3793
+ }
3794
+ }
3795
+ }
3796
+
3797
+ interface LineItem {
3798
+ /**
3799
+ * When set, provides configuration for this item's quantity to be adjusted by the customer during Checkout.
3800
+ */
3801
+ adjustable_quantity?: LineItem.AdjustableQuantity;
3802
+
3803
+ /**
3804
+ * ID of an existing line item.
3805
+ */
3806
+ id?: string;
3807
+
3808
+ /**
3809
+ * 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
3810
+ */
3811
+ metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
3812
+
3813
+ /**
3814
+ * The ID of the [Price](https://stripe.com/docs/api/prices). One of `price` or `price_data` is required when creating a new line item.
3815
+ */
3816
+ price?: string;
3817
+
3818
+ /**
3819
+ * Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required when creating a new line item.
3820
+ */
3821
+ price_data?: LineItem.PriceData;
3822
+
3823
+ /**
3824
+ * The quantity of the line item being purchased. Quantity should not be defined when `recurring.usage_type=metered`.
3825
+ */
3826
+ quantity?: number;
3827
+
3828
+ /**
3829
+ * The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item.
3830
+ */
3831
+ tax_rates?: Stripe.Emptyable<Array<string>>;
3832
+ }
3833
+
3834
+ namespace LineItem {
3835
+ interface AdjustableQuantity {
3836
+ /**
3837
+ * Set to true if the quantity can be adjusted to any positive integer. Setting to false will remove any previously specified constraints on quantity.
3838
+ */
3839
+ enabled: boolean;
3840
+
3841
+ /**
3842
+ * The maximum quantity the customer can purchase for the Checkout Session. By default this value is 99. You can specify a value up to 999999.
3843
+ */
3844
+ maximum?: number;
3845
+
3846
+ /**
3847
+ * The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
3848
+ */
3849
+ minimum?: number;
3850
+ }
3851
+
3852
+ interface PriceData {
3853
+ /**
3854
+ * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
3855
+ */
3856
+ currency: string;
3857
+
3858
+ /**
3859
+ * The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required.
3860
+ */
3861
+ product?: string;
3862
+
3863
+ /**
3864
+ * Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
3865
+ */
3866
+ product_data?: PriceData.ProductData;
3867
+
3868
+ /**
3869
+ * The recurring components of a price such as `interval` and `interval_count`.
3870
+ */
3871
+ recurring?: PriceData.Recurring;
3872
+
3873
+ /**
3874
+ * Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
3875
+ */
3876
+ tax_behavior?: PriceData.TaxBehavior;
3877
+
3878
+ /**
3879
+ * A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
3880
+ */
3881
+ unit_amount?: number;
3882
+
3883
+ /**
3884
+ * Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
3885
+ */
3886
+ unit_amount_decimal?: string;
3887
+ }
3888
+
3889
+ namespace PriceData {
3890
+ interface ProductData {
3891
+ /**
3892
+ * The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
3893
+ */
3894
+ description?: string;
3895
+
3896
+ /**
3897
+ * A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
3898
+ */
3899
+ images?: Array<string>;
3900
+
3901
+ /**
3902
+ * 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
3903
+ */
3904
+ metadata?: Stripe.MetadataParam;
3905
+
3906
+ /**
3907
+ * The product's name, meant to be displayable to the customer.
3908
+ */
3909
+ name: string;
3910
+
3911
+ /**
3912
+ * A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
3913
+ */
3914
+ tax_code?: string;
3915
+
3916
+ /**
3917
+ * A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
3918
+ */
3919
+ unit_label?: string;
3920
+ }
3921
+
3922
+ interface Recurring {
3923
+ /**
3924
+ * Specifies billing frequency. Either `day`, `week`, `month` or `year`.
3925
+ */
3926
+ interval: Recurring.Interval;
3927
+
3928
+ /**
3929
+ * The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
3930
+ */
3931
+ interval_count?: number;
3932
+ }
3933
+
3934
+ namespace Recurring {
3935
+ type Interval = 'day' | 'month' | 'week' | 'year';
3936
+ }
3937
+
3938
+ type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
3939
+ }
3940
+ }
3941
+
3359
3942
  interface ShippingOption {
3360
3943
  /**
3361
3944
  * The ID of the Shipping Rate to use for this shipping option.
@@ -3493,6 +4076,50 @@ declare module 'stripe' {
3493
4076
  type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
3494
4077
  }
3495
4078
  }
4079
+
4080
+ interface SubscriptionData {
4081
+ /**
4082
+ * All invoices will be billed using the specified settings.
4083
+ */
4084
+ invoice_settings?: SubscriptionData.InvoiceSettings;
4085
+
4086
+ /**
4087
+ * Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. Has to be at least 48 hours in the future.
4088
+ */
4089
+ trial_end?: number;
4090
+
4091
+ /**
4092
+ * Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
4093
+ */
4094
+ trial_period_days?: Stripe.Emptyable<number>;
4095
+ }
4096
+
4097
+ namespace SubscriptionData {
4098
+ interface InvoiceSettings {
4099
+ /**
4100
+ * The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
4101
+ */
4102
+ issuer?: InvoiceSettings.Issuer;
4103
+ }
4104
+
4105
+ namespace InvoiceSettings {
4106
+ interface Issuer {
4107
+ /**
4108
+ * The connected account being referenced when `type` is `account`.
4109
+ */
4110
+ account?: string;
4111
+
4112
+ /**
4113
+ * Type of the account referenced in the request.
4114
+ */
4115
+ type: Issuer.Type;
4116
+ }
4117
+
4118
+ namespace Issuer {
4119
+ type Type = 'account' | 'self';
4120
+ }
4121
+ }
4122
+ }
3496
4123
  }
3497
4124
 
3498
4125
  interface SessionListParams extends PaginationParams {
@@ -3506,6 +4133,11 @@ declare module 'stripe' {
3506
4133
  */
3507
4134
  customer?: string;
3508
4135
 
4136
+ /**
4137
+ * Only return the Checkout Sessions for the Account specified.
4138
+ */
4139
+ customer_account?: string;
4140
+
3509
4141
  /**
3510
4142
  * Only return the Checkout Sessions for the Customer details specified.
3511
4143
  */