stripe 19.2.0-beta.1 → 19.2.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 (335) hide show
  1. package/CHANGELOG.md +71 -1433
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +0 -1
  4. package/VERSION +1 -1
  5. package/cjs/Error.js +1 -115
  6. package/cjs/RequestSender.js +1 -1
  7. package/cjs/apiVersion.js +3 -2
  8. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  9. package/cjs/resources/Mandates.js +0 -5
  10. package/cjs/resources/PaymentIntents.js +0 -8
  11. package/cjs/resources/PaymentRecords.js +4 -0
  12. package/cjs/resources/Quotes.js +0 -32
  13. package/cjs/resources/SubscriptionSchedules.js +0 -4
  14. package/cjs/resources/Subscriptions.js +0 -4
  15. package/cjs/resources.js +8 -106
  16. package/cjs/stripe.core.js +1 -1
  17. package/esm/Error.js +0 -100
  18. package/esm/RequestSender.js +1 -1
  19. package/esm/apiVersion.js +2 -1
  20. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  21. package/esm/resources/Mandates.js +0 -5
  22. package/esm/resources/PaymentIntents.js +0 -8
  23. package/esm/resources/PaymentRecords.js +4 -0
  24. package/esm/resources/Quotes.js +0 -32
  25. package/esm/resources/SubscriptionSchedules.js +0 -4
  26. package/esm/resources/Subscriptions.js +0 -4
  27. package/esm/resources.js +0 -93
  28. package/esm/stripe.core.js +1 -1
  29. package/package.json +1 -1
  30. package/types/AccountLinksResource.d.ts +1 -5
  31. package/types/AccountSessions.d.ts +0 -45
  32. package/types/AccountSessionsResource.d.ts +0 -264
  33. package/types/Accounts.d.ts +23 -212
  34. package/types/AccountsResource.d.ts +44 -544
  35. package/types/Billing/AlertTriggereds.d.ts +1 -1
  36. package/types/Billing/CreditBalanceSummary.d.ts +0 -5
  37. package/types/Billing/CreditBalanceSummaryResource.d.ts +3 -8
  38. package/types/Billing/CreditBalanceTransactionsResource.d.ts +4 -12
  39. package/types/Billing/CreditGrants.d.ts +0 -5
  40. package/types/Billing/CreditGrantsResource.d.ts +3 -13
  41. package/types/BillingPortal/Configurations.d.ts +1 -1
  42. package/types/BillingPortal/ConfigurationsResource.d.ts +10 -0
  43. package/types/BillingPortal/Sessions.d.ts +0 -5
  44. package/types/BillingPortal/SessionsResource.d.ts +4 -12
  45. package/types/Cards.d.ts +0 -5
  46. package/types/CashBalances.d.ts +0 -5
  47. package/types/Charges.d.ts +1 -172
  48. package/types/ChargesResource.d.ts +0 -1406
  49. package/types/Checkout/Sessions.d.ts +17 -369
  50. package/types/Checkout/SessionsResource.d.ts +23 -635
  51. package/types/ConfirmationTokens.d.ts +1 -125
  52. package/types/Coupons.d.ts +0 -33
  53. package/types/CouponsResource.d.ts +0 -21
  54. package/types/CreditNoteLineItems.d.ts +0 -17
  55. package/types/CreditNotes.d.ts +26 -5
  56. package/types/CreditNotesResource.d.ts +78 -5
  57. package/types/CustomerBalanceTransactions.d.ts +0 -2
  58. package/types/CustomerCashBalanceTransactions.d.ts +0 -2
  59. package/types/CustomerSessions.d.ts +120 -5
  60. package/types/CustomerSessionsResource.d.ts +121 -6
  61. package/types/Customers.d.ts +7 -2
  62. package/types/CustomersResource.d.ts +1 -8
  63. package/types/Discounts.d.ts +0 -10
  64. package/types/Disputes.d.ts +0 -40
  65. package/types/DisputesResource.d.ts +0 -11
  66. package/types/Errors.d.ts +0 -85
  67. package/types/EventTypes.d.ts +0 -630
  68. package/types/Events.d.ts +0 -95
  69. package/types/Files.d.ts +1 -0
  70. package/types/FilesResource.d.ts +2 -0
  71. package/types/FinancialConnections/Accounts.d.ts +1 -36
  72. package/types/FinancialConnections/AccountsResource.d.ts +4 -41
  73. package/types/FinancialConnections/Sessions.d.ts +1 -51
  74. package/types/FinancialConnections/SessionsResource.d.ts +1 -43
  75. package/types/Identity/VerificationSessions.d.ts +0 -5
  76. package/types/Identity/VerificationSessionsResource.d.ts +0 -7
  77. package/types/InvoiceItems.d.ts +0 -10
  78. package/types/InvoiceItemsResource.d.ts +6 -117
  79. package/types/InvoiceLineItems.d.ts +1 -45
  80. package/types/InvoicePayments.d.ts +1 -1
  81. package/types/Invoices.d.ts +5 -203
  82. package/types/InvoicesResource.d.ts +4 -1622
  83. package/types/Issuing/CardholdersResource.d.ts +1 -2
  84. package/types/Issuing/Transactions.d.ts +0 -5
  85. package/types/Issuing/TransactionsResource.d.ts +0 -5
  86. package/types/LineItems.d.ts +0 -49
  87. package/types/Mandates.d.ts +1 -135
  88. package/types/MandatesResource.d.ts +0 -31
  89. package/types/PaymentAttemptRecords.d.ts +1 -137
  90. package/types/PaymentAttemptRecordsResource.d.ts +5 -0
  91. package/types/PaymentIntentAmountDetailsLineItems.d.ts +17 -7
  92. package/types/PaymentIntents.d.ts +23 -782
  93. package/types/PaymentIntentsResource.d.ts +4783 -9501
  94. package/types/PaymentLinks.d.ts +34 -6
  95. package/types/PaymentLinksResource.d.ts +88 -12
  96. package/types/PaymentMethodConfigurations.d.ts +46 -190
  97. package/types/PaymentMethodConfigurationsResource.d.ts +100 -300
  98. package/types/PaymentMethods.d.ts +34 -130
  99. package/types/PaymentMethodsResource.d.ts +17 -168
  100. package/types/PaymentRecords.d.ts +1 -137
  101. package/types/PaymentRecordsResource.d.ts +89 -0
  102. package/types/PayoutsResource.d.ts +1 -1
  103. package/types/Prices.d.ts +0 -22
  104. package/types/PricesResource.d.ts +0 -22
  105. package/types/PromotionCodes.d.ts +0 -5
  106. package/types/PromotionCodesResource.d.ts +0 -10
  107. package/types/Quotes.d.ts +1 -594
  108. package/types/QuotesResource.d.ts +290 -2635
  109. package/types/Refunds.d.ts +9 -14
  110. package/types/SetupAttempts.d.ts +2 -51
  111. package/types/SetupIntents.d.ts +59 -209
  112. package/types/SetupIntentsResource.d.ts +132 -952
  113. package/types/Sources.d.ts +0 -29
  114. package/types/SubscriptionItems.d.ts +0 -26
  115. package/types/SubscriptionItemsResource.d.ts +0 -109
  116. package/types/SubscriptionSchedules.d.ts +0 -205
  117. package/types/SubscriptionSchedulesResource.d.ts +4 -1232
  118. package/types/Subscriptions.d.ts +1 -262
  119. package/types/SubscriptionsResource.d.ts +8 -745
  120. package/types/Tax/Registrations.d.ts +9 -0
  121. package/types/Tax/RegistrationsResource.d.ts +12 -0
  122. package/types/TaxIds.d.ts +0 -10
  123. package/types/TaxIdsResource.d.ts +0 -10
  124. package/types/Terminal/Configurations.d.ts +19 -9
  125. package/types/Terminal/ConfigurationsResource.d.ts +44 -28
  126. package/types/Terminal/Readers.d.ts +14 -29
  127. package/types/Terminal/ReadersResource.d.ts +30 -30
  128. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -126
  129. package/types/TestHelpers/Terminal/ReadersResource.d.ts +1 -1
  130. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  131. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  132. package/types/TokensResource.d.ts +22 -0
  133. package/types/Transfers.d.ts +0 -5
  134. package/types/TransfersResource.d.ts +0 -5
  135. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  136. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  137. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  138. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  139. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  140. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  141. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  142. package/types/V2/Core/EventTypes.d.ts +10 -1647
  143. package/types/V2/Core/EventsResource.d.ts +29 -3
  144. package/types/WebhookEndpointsResource.d.ts +2 -75
  145. package/types/apiVersion.d.ts +2 -1
  146. package/types/crypto/crypto.d.ts +1 -1
  147. package/types/index.d.ts +0 -153
  148. package/types/lib.d.ts +0 -10
  149. package/cjs/resources/AccountNotices.js +0 -21
  150. package/cjs/resources/Billing/Analytics/MeterUsage.js +0 -12
  151. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  152. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  153. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  154. package/cjs/resources/ExternalAccounts.js +0 -23
  155. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  156. package/cjs/resources/FxQuotes.js +0 -15
  157. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  158. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  159. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  160. package/cjs/resources/Margins.js +0 -22
  161. package/cjs/resources/Orders.js +0 -24
  162. package/cjs/resources/Privacy/RedactionJobs.js +0 -42
  163. package/cjs/resources/Tax/Associations.js +0 -9
  164. package/cjs/resources/Tax/Forms.js +0 -20
  165. package/cjs/resources/Terminal/OnboardingLinks.js +0 -12
  166. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  167. package/cjs/resources/V2/Billing/BillSettings/Versions.js +0 -17
  168. package/cjs/resources/V2/Billing/BillSettings.js +0 -27
  169. package/cjs/resources/V2/Billing/Cadences.js +0 -23
  170. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +0 -17
  171. package/cjs/resources/V2/Billing/CollectionSettings.js +0 -30
  172. package/cjs/resources/V2/Billing/Profiles.js +0 -19
  173. package/cjs/resources/V2/Core/AccountLinks.js +0 -9
  174. package/cjs/resources/V2/Core/Accounts/Persons.js +0 -29
  175. package/cjs/resources/V2/Core/Accounts.js +0 -25
  176. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -28
  177. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -24
  178. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
  179. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -25
  180. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
  181. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
  182. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -16
  183. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
  184. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
  185. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
  186. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
  187. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
  188. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
  189. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
  190. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
  191. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
  192. package/cjs/resources/V2/Payments/OffSessionPayments.js +0 -29
  193. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
  194. package/esm/resources/AccountNotices.js +0 -18
  195. package/esm/resources/Billing/Analytics/MeterUsage.js +0 -9
  196. package/esm/resources/Capital/FinancingOffers.js +0 -18
  197. package/esm/resources/Capital/FinancingSummary.js +0 -9
  198. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  199. package/esm/resources/ExternalAccounts.js +0 -20
  200. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  201. package/esm/resources/FxQuotes.js +0 -12
  202. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  203. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  204. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  205. package/esm/resources/Margins.js +0 -19
  206. package/esm/resources/Orders.js +0 -21
  207. package/esm/resources/Privacy/RedactionJobs.js +0 -39
  208. package/esm/resources/Tax/Associations.js +0 -6
  209. package/esm/resources/Tax/Forms.js +0 -17
  210. package/esm/resources/Terminal/OnboardingLinks.js +0 -9
  211. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  212. package/esm/resources/V2/Billing/BillSettings/Versions.js +0 -14
  213. package/esm/resources/V2/Billing/BillSettings.js +0 -24
  214. package/esm/resources/V2/Billing/Cadences.js +0 -20
  215. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +0 -14
  216. package/esm/resources/V2/Billing/CollectionSettings.js +0 -27
  217. package/esm/resources/V2/Billing/Profiles.js +0 -16
  218. package/esm/resources/V2/Core/AccountLinks.js +0 -6
  219. package/esm/resources/V2/Core/Accounts/Persons.js +0 -26
  220. package/esm/resources/V2/Core/Accounts.js +0 -22
  221. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -25
  222. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -21
  223. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
  224. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -22
  225. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
  226. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
  227. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -13
  228. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
  229. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
  230. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
  231. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
  232. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
  233. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
  234. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
  235. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
  236. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
  237. package/esm/resources/V2/Payments/OffSessionPayments.js +0 -26
  238. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
  239. package/types/AccountNotices.d.ts +0 -113
  240. package/types/AccountNoticesResource.d.ts +0 -98
  241. package/types/Billing/Analytics/MeterUsage.d.ts +0 -31
  242. package/types/Billing/Analytics/MeterUsageResource.d.ts +0 -689
  243. package/types/Billing/Analytics/MeterUsageRows.d.ts +0 -51
  244. package/types/Capital/FinancingOffers.d.ts +0 -188
  245. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  246. package/types/Capital/FinancingSummary.d.ts +0 -106
  247. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  248. package/types/Capital/FinancingTransactions.d.ts +0 -135
  249. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  250. package/types/ExternalAccountsResource.d.ts +0 -304
  251. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  252. package/types/FinancialConnections/Institutions.d.ts +0 -98
  253. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  254. package/types/FxQuotes.d.ts +0 -155
  255. package/types/FxQuotesResource.d.ts +0 -130
  256. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  257. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  258. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
  259. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  260. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  261. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  262. package/types/Issuing/Settlements.d.ts +0 -113
  263. package/types/Margins.d.ts +0 -56
  264. package/types/MarginsResource.d.ts +0 -114
  265. package/types/Orders.d.ts +0 -1163
  266. package/types/OrdersResource.d.ts +0 -3139
  267. package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -60
  268. package/types/Privacy/RedactionJobs.d.ts +0 -111
  269. package/types/Privacy/RedactionJobsResource.d.ts +0 -230
  270. package/types/QuoteLines.d.ts +0 -634
  271. package/types/QuotePreviewInvoices.d.ts +0 -1770
  272. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -908
  273. package/types/Tax/Associations.d.ts +0 -82
  274. package/types/Tax/AssociationsResource.d.ts +0 -29
  275. package/types/Tax/Forms.d.ts +0 -220
  276. package/types/Tax/FormsResource.d.ts +0 -107
  277. package/types/Terminal/OnboardingLinks.d.ts +0 -57
  278. package/types/Terminal/OnboardingLinksResource.d.ts +0 -62
  279. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  280. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  281. package/types/V2/Billing/BillSettingVersions.d.ts +0 -97
  282. package/types/V2/Billing/BillSettings/VersionsResource.d.ts +0 -58
  283. package/types/V2/Billing/BillSettings.d.ts +0 -120
  284. package/types/V2/Billing/BillSettingsResource.d.ts +0 -241
  285. package/types/V2/Billing/Cadences.d.ts +0 -686
  286. package/types/V2/Billing/CadencesResource.d.ts +0 -487
  287. package/types/V2/Billing/CollectionSettingVersions.d.ts +0 -314
  288. package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +0 -62
  289. package/types/V2/Billing/CollectionSettings.d.ts +0 -337
  290. package/types/V2/Billing/CollectionSettingsResource.d.ts +0 -675
  291. package/types/V2/Billing/Profiles.d.ts +0 -70
  292. package/types/V2/Billing/ProfilesResource.d.ts +0 -150
  293. package/types/V2/Core/AccountLinks.d.ts +0 -168
  294. package/types/V2/Core/AccountLinksResource.d.ts +0 -152
  295. package/types/V2/Core/AccountPersons.d.ts +0 -615
  296. package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -1153
  297. package/types/V2/Core/Accounts.d.ts +0 -5919
  298. package/types/V2/Core/AccountsResource.d.ts +0 -4999
  299. package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -160
  300. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -172
  301. package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -70
  302. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -123
  303. package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -27
  304. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -32
  305. package/types/V2/MoneyManagement/Adjustments.d.ts +0 -110
  306. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
  307. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -148
  308. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -147
  309. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -178
  310. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -112
  311. package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -206
  312. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
  313. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -170
  314. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -115
  315. package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -278
  316. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
  317. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -97
  318. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
  319. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -251
  320. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -208
  321. package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -160
  322. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -93
  323. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
  324. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
  325. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -302
  326. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
  327. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -176
  328. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
  329. package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -162
  330. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
  331. package/types/V2/MoneyManagement/Transactions.d.ts +0 -177
  332. package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
  333. package/types/V2/Payments/OffSessionPayments.d.ts +0 -326
  334. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +0 -401
  335. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -68
@@ -81,11 +81,6 @@ 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
-
89
84
  /**
90
85
  * Configure whether a Checkout Session creates a [Customer](https://stripe.com/docs/api/customers) during Session confirmation.
91
86
  *
@@ -401,7 +396,7 @@ declare module 'stripe' {
401
396
  button_color?: Stripe.Emptyable<string>;
402
397
 
403
398
  /**
404
- * A string to override the business name shown on the Checkout Session.
399
+ * A string to override the business name shown on the Checkout Session. This only shows at the top of the Checkout page, and your business name still appears in terms, receipts, and other places.
405
400
  */
406
401
  display_name?: string;
407
402
 
@@ -411,12 +406,12 @@ declare module 'stripe' {
411
406
  font_family?: Stripe.Emptyable<BrandingSettings.FontFamily>;
412
407
 
413
408
  /**
414
- * The icon for the Checkout Session. You cannot set both `logo` and `icon`.
409
+ * The icon for the Checkout Session. For best results, use a square image.
415
410
  */
416
411
  icon?: BrandingSettings.Icon;
417
412
 
418
413
  /**
419
- * The logo for the Checkout Session. You cannot set both `logo` and `icon`.
414
+ * The logo for the Checkout Session.
420
415
  */
421
416
  logo?: BrandingSettings.Logo;
422
417
  }
@@ -735,55 +730,12 @@ declare module 'stripe' {
735
730
  */
736
731
  coupon?: string;
737
732
 
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
-
743
733
  /**
744
734
  * The ID of a promotion code to apply to this Session.
745
735
  */
746
736
  promotion_code?: string;
747
737
  }
748
738
 
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
-
787
739
  type ExcludedPaymentMethodType =
788
740
  | 'acss_debit'
789
741
  | 'affirm'
@@ -804,7 +756,6 @@ declare module 'stripe' {
804
756
  | 'eps'
805
757
  | 'fpx'
806
758
  | 'giropay'
807
- | 'gopay'
808
759
  | 'grabpay'
809
760
  | 'ideal'
810
761
  | 'kakao_pay'
@@ -822,17 +773,12 @@ declare module 'stripe' {
822
773
  | 'payco'
823
774
  | 'paynow'
824
775
  | 'paypal'
825
- | 'paypay'
826
- | 'payto'
827
776
  | 'pix'
828
777
  | 'promptpay'
829
- | 'qris'
830
- | 'rechnung'
831
778
  | 'revolut_pay'
832
779
  | 'samsung_pay'
833
780
  | 'satispay'
834
781
  | 'sepa_debit'
835
- | 'shopeepay'
836
782
  | 'sofort'
837
783
  | 'swish'
838
784
  | 'twint'
@@ -950,11 +896,6 @@ declare module 'stripe' {
950
896
  */
951
897
  dynamic_tax_rates?: Array<string>;
952
898
 
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
-
958
899
  /**
959
900
  * 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.
960
901
  */
@@ -1523,11 +1464,6 @@ declare module 'stripe' {
1523
1464
  */
1524
1465
  paypal?: PaymentMethodOptions.Paypal;
1525
1466
 
1526
- /**
1527
- * contains details about the PayTo payment method options.
1528
- */
1529
- payto?: PaymentMethodOptions.Payto;
1530
-
1531
1467
  /**
1532
1468
  * contains details about the Pix payment method options.
1533
1469
  */
@@ -1563,6 +1499,11 @@ declare module 'stripe' {
1563
1499
  */
1564
1500
  swish?: PaymentMethodOptions.Swish;
1565
1501
 
1502
+ /**
1503
+ * contains details about the TWINT payment method options.
1504
+ */
1505
+ twint?: PaymentMethodOptions.Twint;
1506
+
1566
1507
  /**
1567
1508
  * contains details about the Us Bank Account payment method options.
1568
1509
  */
@@ -1836,11 +1777,6 @@ declare module 'stripe' {
1836
1777
  */
1837
1778
  installments?: Card.Installments;
1838
1779
 
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
-
1844
1780
  /**
1845
1781
  * Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession.
1846
1782
  */
@@ -1902,8 +1838,6 @@ declare module 'stripe' {
1902
1838
  enabled?: boolean;
1903
1839
  }
1904
1840
 
1905
- type RequestDecrementalAuthorization = 'if_available' | 'never';
1906
-
1907
1841
  type RequestExtendedAuthorization = 'if_available' | 'never';
1908
1842
 
1909
1843
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -2386,11 +2320,6 @@ declare module 'stripe' {
2386
2320
  */
2387
2321
  reference?: string;
2388
2322
 
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
-
2394
2323
  /**
2395
2324
  * The risk correlation ID for an on-session payment using a saved PayPal payment method.
2396
2325
  */
@@ -2408,11 +2337,6 @@ declare module 'stripe' {
2408
2337
  * 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`.
2409
2338
  */
2410
2339
  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>;
2416
2340
  }
2417
2341
 
2418
2342
  namespace Paypal {
@@ -2442,92 +2366,6 @@ declare module 'stripe' {
2442
2366
  type SetupFutureUsage = 'none' | 'off_session';
2443
2367
  }
2444
2368
 
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
-
2531
2369
  interface Pix {
2532
2370
  /**
2533
2371
  * Determines if the amount includes the IOF tax. Defaults to `never`.
@@ -2539,11 +2377,6 @@ declare module 'stripe' {
2539
2377
  */
2540
2378
  expires_after_seconds?: number;
2541
2379
 
2542
- /**
2543
- * Additional fields for mandate creation.
2544
- */
2545
- mandate_options?: Pix.MandateOptions;
2546
-
2547
2380
  /**
2548
2381
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2549
2382
  *
@@ -2553,68 +2386,11 @@ declare module 'stripe' {
2553
2386
  *
2554
2387
  * 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).
2555
2388
  */
2556
- setup_future_usage?: Pix.SetupFutureUsage;
2389
+ setup_future_usage?: 'none';
2557
2390
  }
2558
2391
 
2559
2392
  namespace Pix {
2560
2393
  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';
2618
2394
  }
2619
2395
 
2620
2396
  interface RevolutPay {
@@ -2707,6 +2483,19 @@ declare module 'stripe' {
2707
2483
  reference?: string;
2708
2484
  }
2709
2485
 
2486
+ interface Twint {
2487
+ /**
2488
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2489
+ *
2490
+ * 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.
2491
+ *
2492
+ * 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.
2493
+ *
2494
+ * 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).
2495
+ */
2496
+ setup_future_usage?: 'none';
2497
+ }
2498
+
2710
2499
  interface UsBankAccount {
2711
2500
  /**
2712
2501
  * Additional fields for Financial Connections Session creation
@@ -2755,11 +2544,7 @@ declare module 'stripe' {
2755
2544
  | 'payment_method'
2756
2545
  | 'transactions';
2757
2546
 
2758
- type Prefetch =
2759
- | 'balances'
2760
- | 'inferred_balances'
2761
- | 'ownership'
2762
- | 'transactions';
2547
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
2763
2548
  }
2764
2549
 
2765
2550
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -2815,7 +2600,6 @@ declare module 'stripe' {
2815
2600
  | 'eps'
2816
2601
  | 'fpx'
2817
2602
  | 'giropay'
2818
- | 'gopay'
2819
2603
  | 'grabpay'
2820
2604
  | 'ideal'
2821
2605
  | 'kakao_pay'
@@ -2834,17 +2618,12 @@ declare module 'stripe' {
2834
2618
  | 'payco'
2835
2619
  | 'paynow'
2836
2620
  | 'paypal'
2837
- | 'paypay'
2838
- | 'payto'
2839
2621
  | 'pix'
2840
2622
  | 'promptpay'
2841
- | 'qris'
2842
- | 'rechnung'
2843
2623
  | 'revolut_pay'
2844
2624
  | 'samsung_pay'
2845
2625
  | 'satispay'
2846
2626
  | 'sepa_debit'
2847
- | 'shopeepay'
2848
2627
  | 'sofort'
2849
2628
  | 'swish'
2850
2629
  | 'twint'
@@ -2853,27 +2632,6 @@ declare module 'stripe' {
2853
2632
  | 'zip';
2854
2633
 
2855
2634
  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
-
2877
2635
  /**
2878
2636
  * Determines which entity is allowed to update the shipping details.
2879
2637
  *
@@ -2885,36 +2643,6 @@ declare module 'stripe' {
2885
2643
  }
2886
2644
 
2887
2645
  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
-
2918
2646
  type UpdateShippingDetails = 'client_only' | 'server_only';
2919
2647
  }
2920
2648
 
@@ -3569,48 +3297,16 @@ declare module 'stripe' {
3569
3297
  }
3570
3298
 
3571
3299
  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
-
3577
3300
  /**
3578
3301
  * Information about the customer collected within the Checkout Session. Can only be set when updating `embedded` or `custom` sessions.
3579
3302
  */
3580
3303
  collected_information?: SessionUpdateParams.CollectedInformation;
3581
3304
 
3582
- /**
3583
- * List of coupons and promotion codes attached to the Checkout Session.
3584
- */
3585
- discounts?: Stripe.Emptyable<Array<SessionUpdateParams.Discount>>;
3586
-
3587
3305
  /**
3588
3306
  * Specifies which fields in the response should be expanded.
3589
3307
  */
3590
3308
  expand?: Array<string>;
3591
3309
 
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
-
3614
3310
  /**
3615
3311
  * 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`.
3616
3312
  */
@@ -3622,39 +3318,9 @@ declare module 'stripe' {
3622
3318
  shipping_options?: Stripe.Emptyable<
3623
3319
  Array<SessionUpdateParams.ShippingOption>
3624
3320
  >;
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;
3630
3321
  }
3631
3322
 
3632
3323
  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
-
3658
3324
  interface CollectedInformation {
3659
3325
  /**
3660
3326
  * The shipping details to apply to this Session.
@@ -3710,235 +3376,6 @@ declare module 'stripe' {
3710
3376
  }
3711
3377
  }
3712
3378
 
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
-
3942
3379
  interface ShippingOption {
3943
3380
  /**
3944
3381
  * The ID of the Shipping Rate to use for this shipping option.
@@ -4076,50 +3513,6 @@ declare module 'stripe' {
4076
3513
  type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
4077
3514
  }
4078
3515
  }
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
- }
4123
3516
  }
4124
3517
 
4125
3518
  interface SessionListParams extends PaginationParams {
@@ -4133,11 +3526,6 @@ declare module 'stripe' {
4133
3526
  */
4134
3527
  customer?: string;
4135
3528
 
4136
- /**
4137
- * Only return the Checkout Sessions for the Account specified.
4138
- */
4139
- customer_account?: string;
4140
-
4141
3529
  /**
4142
3530
  * Only return the Checkout Sessions for the Customer details specified.
4143
3531
  */