stripe 20.1.0-beta.1 → 20.1.0

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 (398) hide show
  1. package/CHANGELOG.md +47 -1500
  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/apiVersion.js +3 -2
  7. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  8. package/cjs/resources/Mandates.js +0 -5
  9. package/cjs/resources/PaymentIntents.js +0 -8
  10. package/cjs/resources/Quotes.js +0 -32
  11. package/cjs/resources/SubscriptionSchedules.js +0 -4
  12. package/cjs/resources/Subscriptions.js +0 -4
  13. package/cjs/resources.js +2 -88
  14. package/cjs/stripe.core.js +1 -1
  15. package/esm/Error.js +0 -100
  16. package/esm/apiVersion.js +2 -1
  17. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  18. package/esm/resources/Mandates.js +0 -5
  19. package/esm/resources/PaymentIntents.js +0 -8
  20. package/esm/resources/Quotes.js +0 -32
  21. package/esm/resources/SubscriptionSchedules.js +0 -4
  22. package/esm/resources/Subscriptions.js +0 -4
  23. package/esm/resources.js +0 -81
  24. package/esm/stripe.core.js +1 -1
  25. package/package.json +1 -1
  26. package/types/AccountLinks.d.ts +1 -1
  27. package/types/AccountLinksResource.d.ts +1 -5
  28. package/types/AccountSessions.d.ts +2 -47
  29. package/types/AccountSessionsResource.d.ts +0 -264
  30. package/types/Accounts.d.ts +25 -249
  31. package/types/AccountsResource.d.ts +114 -620
  32. package/types/ApplicationFeesResource.d.ts +2 -2
  33. package/types/Apps/Secrets.d.ts +1 -1
  34. package/types/Balance.d.ts +2 -2
  35. package/types/BalanceSettings.d.ts +1 -1
  36. package/types/BalanceTransactions.d.ts +1 -1
  37. package/types/BankAccounts.d.ts +10 -12
  38. package/types/Billing/AlertTriggereds.d.ts +1 -1
  39. package/types/Billing/Alerts.d.ts +1 -1
  40. package/types/Billing/CreditBalanceSummary.d.ts +1 -1
  41. package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
  42. package/types/Billing/CreditBalanceTransactionsResource.d.ts +2 -2
  43. package/types/Billing/CreditGrants.d.ts +3 -3
  44. package/types/Billing/CreditGrantsResource.d.ts +3 -3
  45. package/types/Billing/MeterEvents.d.ts +1 -1
  46. package/types/Billing/MeterEventsResource.d.ts +1 -1
  47. package/types/BillingPortal/Configurations.d.ts +10 -3
  48. package/types/BillingPortal/ConfigurationsResource.d.ts +20 -6
  49. package/types/BillingPortal/Sessions.d.ts +7 -7
  50. package/types/BillingPortal/SessionsResource.d.ts +7 -7
  51. package/types/Capabilities.d.ts +16 -18
  52. package/types/Cards.d.ts +2 -7
  53. package/types/CashBalances.d.ts +3 -3
  54. package/types/Charges.d.ts +59 -179
  55. package/types/ChargesResource.d.ts +88 -3868
  56. package/types/Checkout/Sessions.d.ts +20 -297
  57. package/types/Checkout/SessionsResource.d.ts +59 -417
  58. package/types/Climate/Orders.d.ts +1 -1
  59. package/types/Climate/OrdersResource.d.ts +2 -2
  60. package/types/ConfirmationTokens.d.ts +8 -109
  61. package/types/Coupons.d.ts +3 -38
  62. package/types/CouponsResource.d.ts +2 -25
  63. package/types/CreditNoteLineItems.d.ts +3 -17
  64. package/types/CreditNotes.d.ts +8 -5
  65. package/types/CreditNotesResource.d.ts +5 -5
  66. package/types/CustomerBalanceTransactions.d.ts +9 -6
  67. package/types/CustomerCashBalanceTransactions.d.ts +13 -10
  68. package/types/CustomerSessions.d.ts +1 -42
  69. package/types/CustomerSessionsResource.d.ts +0 -41
  70. package/types/Customers.d.ts +8 -5
  71. package/types/CustomersResource.d.ts +21 -23
  72. package/types/Discounts.d.ts +6 -6
  73. package/types/Disputes.d.ts +3 -43
  74. package/types/DisputesResource.d.ts +1 -12
  75. package/types/Entitlements/ActiveEntitlements.d.ts +1 -1
  76. package/types/Errors.d.ts +0 -85
  77. package/types/EventTypes.d.ts +0 -630
  78. package/types/Events.d.ts +1 -97
  79. package/types/ExchangeRates.d.ts +2 -2
  80. package/types/FeeRefunds.d.ts +2 -2
  81. package/types/FileLinks.d.ts +1 -1
  82. package/types/FileLinksResource.d.ts +2 -2
  83. package/types/Files.d.ts +4 -4
  84. package/types/FilesResource.d.ts +3 -3
  85. package/types/FinancialConnections/Accounts.d.ts +4 -37
  86. package/types/FinancialConnections/AccountsResource.d.ts +6 -38
  87. package/types/FinancialConnections/Sessions.d.ts +3 -51
  88. package/types/FinancialConnections/SessionsResource.d.ts +4 -41
  89. package/types/Forwarding/Requests.d.ts +1 -1
  90. package/types/Forwarding/RequestsResource.d.ts +1 -1
  91. package/types/FundingInstructions.d.ts +2 -2
  92. package/types/Identity/VerificationReports.d.ts +8 -8
  93. package/types/Identity/VerificationSessions.d.ts +11 -11
  94. package/types/Identity/VerificationSessionsResource.d.ts +18 -12
  95. package/types/InvoiceItems.d.ts +8 -13
  96. package/types/InvoiceItemsResource.d.ts +16 -114
  97. package/types/InvoiceLineItems.d.ts +10 -46
  98. package/types/InvoicePayments.d.ts +1 -1
  99. package/types/InvoiceRenderingTemplates.d.ts +1 -1
  100. package/types/Invoices.d.ts +60 -204
  101. package/types/InvoicesResource.d.ts +132 -1651
  102. package/types/Issuing/Authorizations.d.ts +20 -20
  103. package/types/Issuing/AuthorizationsResource.d.ts +4 -4
  104. package/types/Issuing/Cardholders.d.ts +13 -13
  105. package/types/Issuing/CardholdersResource.d.ts +21 -22
  106. package/types/Issuing/Cards.d.ts +10 -10
  107. package/types/Issuing/CardsResource.d.ts +13 -13
  108. package/types/Issuing/Disputes.d.ts +7 -7
  109. package/types/Issuing/DisputesResource.d.ts +5 -5
  110. package/types/Issuing/PersonalizationDesigns.d.ts +1 -1
  111. package/types/Issuing/PersonalizationDesignsResource.d.ts +2 -2
  112. package/types/Issuing/Tokens.d.ts +1 -1
  113. package/types/Issuing/Transactions.d.ts +12 -17
  114. package/types/Issuing/TransactionsResource.d.ts +1 -6
  115. package/types/LineItems.d.ts +4 -48
  116. package/types/LoginLinks.d.ts +1 -1
  117. package/types/Mandates.d.ts +1 -69
  118. package/types/MandatesResource.d.ts +0 -31
  119. package/types/PaymentAttemptRecords.d.ts +119 -135
  120. package/types/PaymentIntentAmountDetailsLineItems.d.ts +3 -3
  121. package/types/PaymentIntents.d.ts +48 -705
  122. package/types/PaymentIntentsResource.d.ts +6867 -19451
  123. package/types/PaymentLinks.d.ts +7 -12
  124. package/types/PaymentLinksResource.d.ts +28 -38
  125. package/types/PaymentMethodConfigurations.d.ts +4 -184
  126. package/types/PaymentMethodConfigurationsResource.d.ts +76 -326
  127. package/types/PaymentMethodDomains.d.ts +1 -1
  128. package/types/PaymentMethods.d.ts +10 -116
  129. package/types/PaymentMethodsResource.d.ts +7 -116
  130. package/types/PaymentRecords.d.ts +126 -135
  131. package/types/PaymentRecordsResource.d.ts +7 -7
  132. package/types/Payouts.d.ts +7 -7
  133. package/types/PayoutsResource.d.ts +3 -3
  134. package/types/Persons.d.ts +21 -23
  135. package/types/Plans.d.ts +5 -5
  136. package/types/PlansResource.d.ts +6 -6
  137. package/types/Prices.d.ts +6 -28
  138. package/types/PricesResource.d.ts +10 -32
  139. package/types/Products.d.ts +10 -10
  140. package/types/ProductsResource.d.ts +14 -14
  141. package/types/PromotionCodes.d.ts +5 -5
  142. package/types/PromotionCodesResource.d.ts +5 -5
  143. package/types/Quotes.d.ts +14 -602
  144. package/types/QuotesResource.d.ts +298 -2628
  145. package/types/Radar/EarlyFraudWarnings.d.ts +1 -1
  146. package/types/Radar/ValueListItems.d.ts +1 -1
  147. package/types/Radar/ValueLists.d.ts +2 -2
  148. package/types/Radar/ValueListsResource.d.ts +2 -2
  149. package/types/Refunds.d.ts +3 -17
  150. package/types/RefundsResource.d.ts +3 -3
  151. package/types/Reporting/ReportRuns.d.ts +3 -3
  152. package/types/Reporting/ReportRunsResource.d.ts +2 -2
  153. package/types/Reporting/ReportTypes.d.ts +3 -3
  154. package/types/Reviews.d.ts +1 -1
  155. package/types/SetupAttempts.d.ts +22 -60
  156. package/types/SetupIntents.d.ts +22 -157
  157. package/types/SetupIntentsResource.d.ts +50 -673
  158. package/types/ShippingRates.d.ts +3 -3
  159. package/types/ShippingRatesResource.d.ts +3 -3
  160. package/types/Sigma/ScheduledQueryRuns.d.ts +1 -1
  161. package/types/SourceMandateNotifications.d.ts +3 -3
  162. package/types/Sources.d.ts +5 -34
  163. package/types/SourcesResource.d.ts +2 -2
  164. package/types/SubscriptionItems.d.ts +7 -33
  165. package/types/SubscriptionItemsResource.d.ts +22 -131
  166. package/types/SubscriptionSchedules.d.ts +9 -209
  167. package/types/SubscriptionSchedulesResource.d.ts +39 -1257
  168. package/types/Subscriptions.d.ts +41 -251
  169. package/types/SubscriptionsResource.d.ts +94 -734
  170. package/types/Tax/Associations.d.ts +3 -3
  171. package/types/Tax/AssociationsResource.d.ts +1 -1
  172. package/types/Tax/CalculationLineItems.d.ts +7 -7
  173. package/types/Tax/Calculations.d.ts +12 -12
  174. package/types/Tax/CalculationsResource.d.ts +7 -7
  175. package/types/Tax/Registrations.d.ts +3 -3
  176. package/types/Tax/Settings.d.ts +1 -1
  177. package/types/Tax/SettingsResource.d.ts +1 -1
  178. package/types/Tax/TransactionLineItems.d.ts +5 -5
  179. package/types/Tax/Transactions.d.ts +9 -9
  180. package/types/Tax/TransactionsResource.d.ts +10 -10
  181. package/types/TaxIds.d.ts +6 -6
  182. package/types/TaxIdsResource.d.ts +4 -4
  183. package/types/TaxRates.d.ts +1 -1
  184. package/types/TaxRatesResource.d.ts +2 -2
  185. package/types/Terminal/Configurations.d.ts +0 -9
  186. package/types/Terminal/ConfigurationsResource.d.ts +0 -28
  187. package/types/Terminal/ConnectionTokens.d.ts +1 -1
  188. package/types/Terminal/Locations.d.ts +2 -2
  189. package/types/Terminal/LocationsResource.d.ts +3 -3
  190. package/types/Terminal/Readers.d.ts +10 -30
  191. package/types/Terminal/ReadersResource.d.ts +7 -7
  192. package/types/TestHelpers/ConfirmationTokensResource.d.ts +5 -107
  193. package/types/TestHelpers/CustomersResource.d.ts +2 -2
  194. package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +10 -10
  195. package/types/TestHelpers/Issuing/TransactionsResource.d.ts +5 -5
  196. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +1 -27
  197. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +1 -27
  198. package/types/Tokens.d.ts +4 -4
  199. package/types/TokensResource.d.ts +17 -17
  200. package/types/Topups.d.ts +3 -3
  201. package/types/TopupsResource.d.ts +3 -3
  202. package/types/TransferReversals.d.ts +4 -4
  203. package/types/Transfers.d.ts +5 -10
  204. package/types/TransfersResource.d.ts +6 -11
  205. package/types/Treasury/CreditReversals.d.ts +3 -3
  206. package/types/Treasury/CreditReversalsResource.d.ts +1 -1
  207. package/types/Treasury/DebitReversals.d.ts +3 -3
  208. package/types/Treasury/DebitReversalsResource.d.ts +1 -1
  209. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  210. package/types/Treasury/FinancialAccounts.d.ts +1 -6
  211. package/types/Treasury/FinancialAccountsResource.d.ts +2 -39
  212. package/types/Treasury/InboundTransfers.d.ts +4 -4
  213. package/types/Treasury/InboundTransfersResource.d.ts +2 -2
  214. package/types/Treasury/OutboundPayments.d.ts +5 -5
  215. package/types/Treasury/OutboundPaymentsResource.d.ts +4 -4
  216. package/types/Treasury/OutboundTransfers.d.ts +4 -30
  217. package/types/Treasury/OutboundTransfersResource.d.ts +3 -29
  218. package/types/Treasury/ReceivedCredits.d.ts +9 -35
  219. package/types/Treasury/ReceivedDebits.d.ts +6 -37
  220. package/types/Treasury/TransactionEntries.d.ts +11 -11
  221. package/types/Treasury/Transactions.d.ts +11 -11
  222. package/types/V2/Core/AccountLinks.d.ts +13 -21
  223. package/types/V2/Core/AccountLinksResource.d.ts +8 -16
  224. package/types/V2/Core/AccountPersons.d.ts +55 -10
  225. package/types/V2/Core/AccountTokensResource.d.ts +129 -24
  226. package/types/V2/Core/Accounts/PersonTokensResource.d.ts +48 -3
  227. package/types/V2/Core/Accounts/PersonsResource.d.ts +101 -11
  228. package/types/V2/Core/Accounts.d.ts +256 -1349
  229. package/types/V2/Core/AccountsResource.d.ts +282 -567
  230. package/types/V2/Core/EventTypes.d.ts +10 -1542
  231. package/types/WebhookEndpoints.d.ts +1 -1
  232. package/types/WebhookEndpointsResource.d.ts +5 -79
  233. package/types/apiVersion.d.ts +2 -1
  234. package/types/index.d.ts +0 -134
  235. package/types/lib.d.ts +0 -10
  236. package/cjs/resources/AccountNotices.js +0 -21
  237. package/cjs/resources/Billing/Analytics/MeterUsage.js +0 -12
  238. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  239. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  240. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  241. package/cjs/resources/ExternalAccounts.js +0 -23
  242. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  243. package/cjs/resources/FxQuotes.js +0 -15
  244. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  245. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  246. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  247. package/cjs/resources/Margins.js +0 -22
  248. package/cjs/resources/Orders.js +0 -24
  249. package/cjs/resources/Privacy/RedactionJobs.js +0 -42
  250. package/cjs/resources/Tax/Forms.js +0 -20
  251. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  252. package/cjs/resources/V2/Billing/BillSettings/Versions.js +0 -17
  253. package/cjs/resources/V2/Billing/BillSettings.js +0 -27
  254. package/cjs/resources/V2/Billing/Cadences.js +0 -23
  255. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +0 -17
  256. package/cjs/resources/V2/Billing/CollectionSettings.js +0 -30
  257. package/cjs/resources/V2/Billing/Profiles.js +0 -19
  258. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -33
  259. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -37
  260. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
  261. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -29
  262. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
  263. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
  264. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -16
  265. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
  266. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
  267. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
  268. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
  269. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
  270. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
  271. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
  272. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
  273. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
  274. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
  275. package/esm/resources/AccountNotices.js +0 -18
  276. package/esm/resources/Billing/Analytics/MeterUsage.js +0 -9
  277. package/esm/resources/Capital/FinancingOffers.js +0 -18
  278. package/esm/resources/Capital/FinancingSummary.js +0 -9
  279. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  280. package/esm/resources/ExternalAccounts.js +0 -20
  281. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  282. package/esm/resources/FxQuotes.js +0 -12
  283. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  284. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  285. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  286. package/esm/resources/Margins.js +0 -19
  287. package/esm/resources/Orders.js +0 -21
  288. package/esm/resources/Privacy/RedactionJobs.js +0 -39
  289. package/esm/resources/Tax/Forms.js +0 -17
  290. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  291. package/esm/resources/V2/Billing/BillSettings/Versions.js +0 -14
  292. package/esm/resources/V2/Billing/BillSettings.js +0 -24
  293. package/esm/resources/V2/Billing/Cadences.js +0 -20
  294. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +0 -14
  295. package/esm/resources/V2/Billing/CollectionSettings.js +0 -27
  296. package/esm/resources/V2/Billing/Profiles.js +0 -16
  297. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -30
  298. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -34
  299. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
  300. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -26
  301. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
  302. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
  303. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -13
  304. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
  305. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
  306. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
  307. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
  308. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
  309. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
  310. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
  311. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
  312. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
  313. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
  314. package/types/AccountNotices.d.ts +0 -113
  315. package/types/AccountNoticesResource.d.ts +0 -98
  316. package/types/Billing/Analytics/MeterUsage.d.ts +0 -31
  317. package/types/Billing/Analytics/MeterUsageResource.d.ts +0 -689
  318. package/types/Billing/Analytics/MeterUsageRows.d.ts +0 -51
  319. package/types/Capital/FinancingOffers.d.ts +0 -188
  320. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  321. package/types/Capital/FinancingSummary.d.ts +0 -106
  322. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  323. package/types/Capital/FinancingTransactions.d.ts +0 -135
  324. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  325. package/types/ExternalAccountsResource.d.ts +0 -304
  326. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  327. package/types/FinancialConnections/Institutions.d.ts +0 -98
  328. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  329. package/types/FxQuotes.d.ts +0 -155
  330. package/types/FxQuotesResource.d.ts +0 -130
  331. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  332. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  333. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
  334. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  335. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  336. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  337. package/types/Issuing/Settlements.d.ts +0 -113
  338. package/types/Margins.d.ts +0 -56
  339. package/types/MarginsResource.d.ts +0 -114
  340. package/types/Orders.d.ts +0 -1163
  341. package/types/OrdersResource.d.ts +0 -5505
  342. package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -60
  343. package/types/Privacy/RedactionJobs.d.ts +0 -111
  344. package/types/Privacy/RedactionJobsResource.d.ts +0 -230
  345. package/types/QuoteLines.d.ts +0 -634
  346. package/types/QuotePreviewInvoices.d.ts +0 -1771
  347. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -908
  348. package/types/Tax/Forms.d.ts +0 -220
  349. package/types/Tax/FormsResource.d.ts +0 -107
  350. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  351. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  352. package/types/V2/Billing/BillSettingVersions.d.ts +0 -97
  353. package/types/V2/Billing/BillSettings/VersionsResource.d.ts +0 -58
  354. package/types/V2/Billing/BillSettings.d.ts +0 -120
  355. package/types/V2/Billing/BillSettingsResource.d.ts +0 -241
  356. package/types/V2/Billing/Cadences.d.ts +0 -690
  357. package/types/V2/Billing/CadencesResource.d.ts +0 -487
  358. package/types/V2/Billing/CollectionSettingVersions.d.ts +0 -318
  359. package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +0 -62
  360. package/types/V2/Billing/CollectionSettings.d.ts +0 -341
  361. package/types/V2/Billing/CollectionSettingsResource.d.ts +0 -683
  362. package/types/V2/Billing/Profiles.d.ts +0 -70
  363. package/types/V2/Billing/ProfilesResource.d.ts +0 -150
  364. package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -160
  365. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -194
  366. package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -116
  367. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -198
  368. package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -27
  369. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -32
  370. package/types/V2/MoneyManagement/Adjustments.d.ts +0 -110
  371. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
  372. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -148
  373. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -172
  374. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -175
  375. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -109
  376. package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -212
  377. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
  378. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -170
  379. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -115
  380. package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -278
  381. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
  382. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -97
  383. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
  384. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -251
  385. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -208
  386. package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -160
  387. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -93
  388. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
  389. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
  390. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -302
  391. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
  392. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -176
  393. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
  394. package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -162
  395. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
  396. package/types/V2/MoneyManagement/Transactions.d.ts +0 -177
  397. package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
  398. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -68
@@ -1,908 +0,0 @@
1
- // File generated from our OpenAPI spec
2
-
3
- declare module 'stripe' {
4
- namespace Stripe {
5
- /**
6
- * The QuotePreviewSubscriptionSchedule object.
7
- */
8
- interface QuotePreviewSubscriptionSchedule {
9
- /**
10
- * Unique identifier for the object.
11
- */
12
- id: string;
13
-
14
- /**
15
- * String representing the object's type. Objects of the same type share the same value.
16
- */
17
- object: 'quote_preview_subscription_schedule';
18
-
19
- /**
20
- * ID of the Connect Application that created the schedule.
21
- */
22
- application:
23
- | string
24
- | Stripe.Application
25
- | Stripe.DeletedApplication
26
- | null;
27
-
28
- applies_to: QuotePreviewSubscriptionSchedule.AppliesTo;
29
-
30
- /**
31
- * Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
32
- */
33
- billing_behavior?: QuotePreviewSubscriptionSchedule.BillingBehavior;
34
-
35
- /**
36
- * The billing mode of the subscription.
37
- */
38
- billing_mode: QuotePreviewSubscriptionSchedule.BillingMode;
39
-
40
- /**
41
- * Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch.
42
- */
43
- canceled_at: number | null;
44
-
45
- /**
46
- * Time at which the subscription schedule was completed. Measured in seconds since the Unix epoch.
47
- */
48
- completed_at: number | null;
49
-
50
- /**
51
- * Time at which the object was created. Measured in seconds since the Unix epoch.
52
- */
53
- created: number;
54
-
55
- /**
56
- * Object representing the start and end dates for the current phase of the subscription schedule, if it is `active`.
57
- */
58
- current_phase: QuotePreviewSubscriptionSchedule.CurrentPhase | null;
59
-
60
- /**
61
- * ID of the customer who owns the subscription schedule.
62
- */
63
- customer: string | Stripe.Customer | Stripe.DeletedCustomer;
64
-
65
- /**
66
- * ID of the account who owns the subscription schedule.
67
- */
68
- customer_account?: string | null;
69
-
70
- default_settings: QuotePreviewSubscriptionSchedule.DefaultSettings;
71
-
72
- /**
73
- * Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
74
- */
75
- end_behavior: QuotePreviewSubscriptionSchedule.EndBehavior;
76
-
77
- /**
78
- * Details of the most recent price migration that failed for the subscription schedule.
79
- */
80
- last_price_migration_error?: QuotePreviewSubscriptionSchedule.LastPriceMigrationError | null;
81
-
82
- /**
83
- * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
84
- */
85
- livemode: boolean;
86
-
87
- /**
88
- * 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.
89
- */
90
- metadata: Stripe.Metadata | null;
91
-
92
- /**
93
- * Configuration for the subscription schedule's phases.
94
- */
95
- phases: Array<QuotePreviewSubscriptionSchedule.Phase>;
96
-
97
- /**
98
- * Time period and invoice for a Subscription billed in advance.
99
- */
100
- prebilling?: QuotePreviewSubscriptionSchedule.Prebilling | null;
101
-
102
- /**
103
- * Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.
104
- */
105
- released_at: number | null;
106
-
107
- /**
108
- * ID of the subscription once managed by the subscription schedule (if it is released).
109
- */
110
- released_subscription: string | null;
111
-
112
- /**
113
- * The present status of the subscription schedule. Possible values are `not_started`, `active`, `completed`, `released`, and `canceled`. You can read more about the different states in our [behavior guide](https://stripe.com/docs/billing/subscriptions/subscription-schedules).
114
- */
115
- status: QuotePreviewSubscriptionSchedule.Status;
116
-
117
- /**
118
- * ID of the subscription managed by the subscription schedule.
119
- */
120
- subscription: string | Stripe.Subscription | null;
121
-
122
- /**
123
- * ID of the test clock this subscription schedule belongs to.
124
- */
125
- test_clock: string | Stripe.TestHelpers.TestClock | null;
126
- }
127
-
128
- namespace QuotePreviewSubscriptionSchedule {
129
- interface AppliesTo {
130
- /**
131
- * A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
132
- */
133
- new_reference: string | null;
134
-
135
- /**
136
- * The ID of the schedule the line applies to.
137
- */
138
- subscription_schedule: string | null;
139
-
140
- /**
141
- * Describes whether the quote line is affecting a new schedule or an existing schedule.
142
- */
143
- type: AppliesTo.Type;
144
- }
145
-
146
- namespace AppliesTo {
147
- type Type = 'new_reference' | 'subscription_schedule';
148
- }
149
-
150
- type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
151
-
152
- interface BillingMode {
153
- /**
154
- * Configure behavior for flexible billing mode
155
- */
156
- flexible: BillingMode.Flexible | null;
157
-
158
- /**
159
- * Controls how prorations and invoices for subscriptions are calculated and orchestrated.
160
- */
161
- type: BillingMode.Type;
162
-
163
- /**
164
- * Details on when the current billing_mode was adopted.
165
- */
166
- updated_at?: number;
167
- }
168
-
169
- namespace BillingMode {
170
- interface Flexible {
171
- /**
172
- * Controls how invoices and invoice items display proration amounts and discount amounts.
173
- */
174
- proration_discounts?: Flexible.ProrationDiscounts;
175
- }
176
-
177
- namespace Flexible {
178
- type ProrationDiscounts = 'included' | 'itemized';
179
- }
180
-
181
- type Type = 'classic' | 'flexible';
182
- }
183
-
184
- interface CurrentPhase {
185
- /**
186
- * The end of this phase of the subscription schedule.
187
- */
188
- end_date: number;
189
-
190
- /**
191
- * The start of this phase of the subscription schedule.
192
- */
193
- start_date: number;
194
- }
195
-
196
- interface DefaultSettings {
197
- /**
198
- * A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account during this phase of the schedule.
199
- */
200
- application_fee_percent: number | null;
201
-
202
- automatic_tax?: DefaultSettings.AutomaticTax;
203
-
204
- /**
205
- * Possible values are `phase_start` or `automatic`. If `phase_start` then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. If `automatic` then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
206
- */
207
- billing_cycle_anchor: DefaultSettings.BillingCycleAnchor;
208
-
209
- /**
210
- * Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
211
- */
212
- billing_thresholds: DefaultSettings.BillingThresholds | null;
213
-
214
- /**
215
- * Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`.
216
- */
217
- collection_method: DefaultSettings.CollectionMethod | null;
218
-
219
- /**
220
- * ID of the default payment method for the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
221
- */
222
- default_payment_method: string | Stripe.PaymentMethod | null;
223
-
224
- /**
225
- * Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
226
- */
227
- description: string | null;
228
-
229
- invoice_settings: DefaultSettings.InvoiceSettings;
230
-
231
- /**
232
- * The account (if any) the charge was made on behalf of for charges associated with the schedule's subscription. See the Connect documentation for details.
233
- */
234
- on_behalf_of: string | Stripe.Account | null;
235
-
236
- /**
237
- * The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
238
- */
239
- transfer_data: DefaultSettings.TransferData | null;
240
- }
241
-
242
- namespace DefaultSettings {
243
- interface AutomaticTax {
244
- /**
245
- * If Stripe disabled automatic tax, this enum describes why.
246
- */
247
- disabled_reason: 'requires_location_inputs' | null;
248
-
249
- /**
250
- * Whether Stripe automatically computes tax on invoices created during this phase.
251
- */
252
- enabled: boolean;
253
-
254
- /**
255
- * 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.
256
- */
257
- liability: AutomaticTax.Liability | null;
258
- }
259
-
260
- namespace AutomaticTax {
261
- interface Liability {
262
- /**
263
- * The connected account being referenced when `type` is `account`.
264
- */
265
- account?: string | Stripe.Account;
266
-
267
- /**
268
- * Type of the account referenced.
269
- */
270
- type: Liability.Type;
271
- }
272
-
273
- namespace Liability {
274
- type Type = 'account' | 'self';
275
- }
276
- }
277
-
278
- type BillingCycleAnchor = 'automatic' | 'phase_start';
279
-
280
- interface BillingThresholds {
281
- /**
282
- * Monetary threshold that triggers the subscription to create an invoice
283
- */
284
- amount_gte: number | null;
285
-
286
- /**
287
- * Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. This value may not be `true` if the subscription contains items with plans that have `aggregate_usage=last_ever`.
288
- */
289
- reset_billing_cycle_anchor: boolean | null;
290
- }
291
-
292
- type CollectionMethod = 'charge_automatically' | 'send_invoice';
293
-
294
- interface InvoiceSettings {
295
- /**
296
- * The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
297
- */
298
- account_tax_ids: Array<
299
- string | Stripe.TaxId | Stripe.DeletedTaxId
300
- > | null;
301
-
302
- /**
303
- * Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
304
- */
305
- days_until_due: number | null;
306
-
307
- issuer: InvoiceSettings.Issuer;
308
- }
309
-
310
- namespace InvoiceSettings {
311
- interface Issuer {
312
- /**
313
- * The connected account being referenced when `type` is `account`.
314
- */
315
- account?: string | Stripe.Account;
316
-
317
- /**
318
- * Type of the account referenced.
319
- */
320
- type: Issuer.Type;
321
- }
322
-
323
- namespace Issuer {
324
- type Type = 'account' | 'self';
325
- }
326
- }
327
-
328
- interface TransferData {
329
- /**
330
- * A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
331
- */
332
- amount_percent: number | null;
333
-
334
- /**
335
- * The account where funds from the payment will be transferred to upon payment success.
336
- */
337
- destination: string | Stripe.Account;
338
- }
339
- }
340
-
341
- type EndBehavior = 'cancel' | 'none' | 'release' | 'renew';
342
-
343
- interface LastPriceMigrationError {
344
- /**
345
- * The time at which the price migration encountered an error.
346
- */
347
- errored_at: number;
348
-
349
- /**
350
- * The involved price pairs in each failed transition.
351
- */
352
- failed_transitions: Array<LastPriceMigrationError.FailedTransition>;
353
-
354
- /**
355
- * The type of error encountered by the price migration.
356
- */
357
- type: 'price_uniqueness_violation';
358
- }
359
-
360
- namespace LastPriceMigrationError {
361
- interface FailedTransition {
362
- /**
363
- * The original price to be migrated.
364
- */
365
- source_price: string;
366
-
367
- /**
368
- * The intended resulting price of the migration.
369
- */
370
- target_price: string;
371
- }
372
- }
373
-
374
- interface Phase {
375
- /**
376
- * A list of prices and quantities that will generate invoice items appended to the next invoice for this phase.
377
- */
378
- add_invoice_items: Array<Phase.AddInvoiceItem>;
379
-
380
- /**
381
- * A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account during this phase of the schedule.
382
- */
383
- application_fee_percent: number | null;
384
-
385
- automatic_tax?: Phase.AutomaticTax;
386
-
387
- /**
388
- * Possible values are `phase_start` or `automatic`. If `phase_start` then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. If `automatic` then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
389
- */
390
- billing_cycle_anchor: Phase.BillingCycleAnchor | null;
391
-
392
- /**
393
- * Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
394
- */
395
- billing_thresholds: Phase.BillingThresholds | null;
396
-
397
- /**
398
- * Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`.
399
- */
400
- collection_method: Phase.CollectionMethod | null;
401
-
402
- /**
403
- * 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).
404
- */
405
- currency: string;
406
-
407
- /**
408
- * ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
409
- */
410
- default_payment_method: string | Stripe.PaymentMethod | null;
411
-
412
- /**
413
- * The default tax rates to apply to the subscription during this phase of the subscription schedule.
414
- */
415
- default_tax_rates?: Array<Stripe.TaxRate> | null;
416
-
417
- /**
418
- * Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
419
- */
420
- description: string | null;
421
-
422
- /**
423
- * The stackable discounts that will be applied to the subscription on this phase. Subscription item discounts are applied before subscription discounts.
424
- */
425
- discounts: Array<Phase.Discount>;
426
-
427
- /**
428
- * The end of this phase of the subscription schedule.
429
- */
430
- end_date: number;
431
-
432
- /**
433
- * The invoice settings applicable during this phase.
434
- */
435
- invoice_settings: Phase.InvoiceSettings | null;
436
-
437
- /**
438
- * Subscription items to configure the subscription to during this phase of the subscription schedule.
439
- */
440
- items: Array<Phase.Item>;
441
-
442
- /**
443
- * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered. Updating the underlying subscription's `metadata` directly will not affect the current phase's `metadata`.
444
- */
445
- metadata: Stripe.Metadata | null;
446
-
447
- /**
448
- * The account (if any) the charge was made on behalf of for charges associated with the schedule's subscription. See the Connect documentation for details.
449
- */
450
- on_behalf_of: string | Stripe.Account | null;
451
-
452
- /**
453
- * If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
454
- */
455
- pause_collection?: Phase.PauseCollection | null;
456
-
457
- /**
458
- * When transitioning phases, controls how prorations are handled (if any). Possible values are `create_prorations`, `none`, and `always_invoice`.
459
- */
460
- proration_behavior: Phase.ProrationBehavior;
461
-
462
- /**
463
- * The start of this phase of the subscription schedule.
464
- */
465
- start_date: number;
466
-
467
- /**
468
- * The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
469
- */
470
- transfer_data: Phase.TransferData | null;
471
-
472
- /**
473
- * Specify behavior of the trial when crossing schedule phase boundaries
474
- */
475
- trial_continuation?: Phase.TrialContinuation | null;
476
-
477
- /**
478
- * When the trial ends within the phase.
479
- */
480
- trial_end: number | null;
481
-
482
- /**
483
- * Settings related to any trials on the subscription during this phase.
484
- */
485
- trial_settings?: Phase.TrialSettings | null;
486
- }
487
-
488
- namespace Phase {
489
- interface AddInvoiceItem {
490
- /**
491
- * The stackable discounts that will be applied to the item.
492
- */
493
- discounts: Array<AddInvoiceItem.Discount>;
494
-
495
- /**
496
- * 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.
497
- */
498
- metadata: Stripe.Metadata | null;
499
-
500
- period: AddInvoiceItem.Period;
501
-
502
- /**
503
- * ID of the price used to generate the invoice item.
504
- */
505
- price: string | Stripe.Price | Stripe.DeletedPrice;
506
-
507
- /**
508
- * The quantity of the invoice item.
509
- */
510
- quantity: number | null;
511
-
512
- /**
513
- * The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
514
- */
515
- tax_rates?: Array<Stripe.TaxRate> | null;
516
- }
517
-
518
- namespace AddInvoiceItem {
519
- interface Discount {
520
- /**
521
- * ID of the coupon to create a new discount for.
522
- */
523
- coupon: string | Stripe.Coupon | null;
524
-
525
- /**
526
- * ID of an existing discount on the object (or one of its ancestors) to reuse.
527
- */
528
- discount: string | Stripe.Discount | null;
529
-
530
- /**
531
- * Details to determine how long the discount should be applied for.
532
- */
533
- discount_end?: Discount.DiscountEnd | null;
534
-
535
- /**
536
- * ID of the promotion code to create a new discount for.
537
- */
538
- promotion_code: string | Stripe.PromotionCode | null;
539
- }
540
-
541
- namespace Discount {
542
- interface DiscountEnd {
543
- /**
544
- * The discount end timestamp.
545
- */
546
- timestamp: number | null;
547
-
548
- /**
549
- * The discount end type.
550
- */
551
- type: 'timestamp';
552
- }
553
- }
554
-
555
- interface Period {
556
- end: Period.End;
557
-
558
- start: Period.Start;
559
- }
560
-
561
- namespace Period {
562
- interface End {
563
- /**
564
- * A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`.
565
- */
566
- timestamp?: number;
567
-
568
- /**
569
- * Select how to calculate the end of the invoice item period.
570
- */
571
- type: End.Type;
572
- }
573
-
574
- namespace End {
575
- type Type = 'min_item_period_end' | 'phase_end' | 'timestamp';
576
- }
577
-
578
- interface Start {
579
- /**
580
- * A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`.
581
- */
582
- timestamp?: number;
583
-
584
- /**
585
- * Select how to calculate the start of the invoice item period.
586
- */
587
- type: Start.Type;
588
- }
589
-
590
- namespace Start {
591
- type Type = 'max_item_period_start' | 'phase_start' | 'timestamp';
592
- }
593
- }
594
- }
595
-
596
- interface AutomaticTax {
597
- /**
598
- * If Stripe disabled automatic tax, this enum describes why.
599
- */
600
- disabled_reason: 'requires_location_inputs' | null;
601
-
602
- /**
603
- * Whether Stripe automatically computes tax on invoices created during this phase.
604
- */
605
- enabled: boolean;
606
-
607
- /**
608
- * 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.
609
- */
610
- liability: AutomaticTax.Liability | null;
611
- }
612
-
613
- namespace AutomaticTax {
614
- interface Liability {
615
- /**
616
- * The connected account being referenced when `type` is `account`.
617
- */
618
- account?: string | Stripe.Account;
619
-
620
- /**
621
- * Type of the account referenced.
622
- */
623
- type: Liability.Type;
624
- }
625
-
626
- namespace Liability {
627
- type Type = 'account' | 'self';
628
- }
629
- }
630
-
631
- type BillingCycleAnchor = 'automatic' | 'phase_start';
632
-
633
- interface BillingThresholds {
634
- /**
635
- * Monetary threshold that triggers the subscription to create an invoice
636
- */
637
- amount_gte: number | null;
638
-
639
- /**
640
- * Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. This value may not be `true` if the subscription contains items with plans that have `aggregate_usage=last_ever`.
641
- */
642
- reset_billing_cycle_anchor: boolean | null;
643
- }
644
-
645
- type CollectionMethod = 'charge_automatically' | 'send_invoice';
646
-
647
- interface Discount {
648
- /**
649
- * ID of the coupon to create a new discount for.
650
- */
651
- coupon: string | Stripe.Coupon | null;
652
-
653
- /**
654
- * ID of an existing discount on the object (or one of its ancestors) to reuse.
655
- */
656
- discount: string | Stripe.Discount | null;
657
-
658
- /**
659
- * Details to determine how long the discount should be applied for.
660
- */
661
- discount_end?: Discount.DiscountEnd | null;
662
-
663
- /**
664
- * ID of the promotion code to create a new discount for.
665
- */
666
- promotion_code: string | Stripe.PromotionCode | null;
667
- }
668
-
669
- namespace Discount {
670
- interface DiscountEnd {
671
- /**
672
- * The discount end timestamp.
673
- */
674
- timestamp: number | null;
675
-
676
- /**
677
- * The discount end type.
678
- */
679
- type: 'timestamp';
680
- }
681
- }
682
-
683
- interface InvoiceSettings {
684
- /**
685
- * The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
686
- */
687
- account_tax_ids: Array<
688
- string | Stripe.TaxId | Stripe.DeletedTaxId
689
- > | null;
690
-
691
- /**
692
- * Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
693
- */
694
- days_until_due: number | null;
695
-
696
- /**
697
- * The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
698
- */
699
- issuer: InvoiceSettings.Issuer | null;
700
- }
701
-
702
- namespace InvoiceSettings {
703
- interface Issuer {
704
- /**
705
- * The connected account being referenced when `type` is `account`.
706
- */
707
- account?: string | Stripe.Account;
708
-
709
- /**
710
- * Type of the account referenced.
711
- */
712
- type: Issuer.Type;
713
- }
714
-
715
- namespace Issuer {
716
- type Type = 'account' | 'self';
717
- }
718
- }
719
-
720
- interface Item {
721
- /**
722
- * Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period
723
- */
724
- billing_thresholds: Item.BillingThresholds | null;
725
-
726
- /**
727
- * The discounts applied to the subscription item. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount.
728
- */
729
- discounts: Array<Item.Discount>;
730
-
731
- /**
732
- * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an item. Metadata on this item will update the underlying subscription item's `metadata` when the phase is entered.
733
- */
734
- metadata: Stripe.Metadata | null;
735
-
736
- /**
737
- * ID of the plan to which the customer should be subscribed.
738
- */
739
- plan: string | Stripe.Plan | Stripe.DeletedPlan;
740
-
741
- /**
742
- * ID of the price to which the customer should be subscribed.
743
- */
744
- price: string | Stripe.Price | Stripe.DeletedPrice;
745
-
746
- /**
747
- * Quantity of the plan to which the customer should be subscribed.
748
- */
749
- quantity?: number;
750
-
751
- /**
752
- * The tax rates which apply to this `phase_item`. When set, the `default_tax_rates` on the phase do not apply to this `phase_item`.
753
- */
754
- tax_rates?: Array<Stripe.TaxRate> | null;
755
-
756
- /**
757
- * Options that configure the trial on the subscription item.
758
- */
759
- trial?: Item.Trial | null;
760
- }
761
-
762
- namespace Item {
763
- interface BillingThresholds {
764
- /**
765
- * Usage threshold that triggers the subscription to create an invoice
766
- */
767
- usage_gte: number | null;
768
- }
769
-
770
- interface Discount {
771
- /**
772
- * ID of the coupon to create a new discount for.
773
- */
774
- coupon: string | Stripe.Coupon | null;
775
-
776
- /**
777
- * ID of an existing discount on the object (or one of its ancestors) to reuse.
778
- */
779
- discount: string | Stripe.Discount | null;
780
-
781
- /**
782
- * Details to determine how long the discount should be applied for.
783
- */
784
- discount_end?: Discount.DiscountEnd | null;
785
-
786
- /**
787
- * ID of the promotion code to create a new discount for.
788
- */
789
- promotion_code: string | Stripe.PromotionCode | null;
790
- }
791
-
792
- namespace Discount {
793
- interface DiscountEnd {
794
- /**
795
- * The discount end timestamp.
796
- */
797
- timestamp: number | null;
798
-
799
- /**
800
- * The discount end type.
801
- */
802
- type: 'timestamp';
803
- }
804
- }
805
-
806
- interface Trial {
807
- /**
808
- * List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
809
- */
810
- converts_to?: Array<string> | null;
811
-
812
- /**
813
- * Determines the type of trial for this item.
814
- */
815
- type: Trial.Type;
816
- }
817
-
818
- namespace Trial {
819
- type Type = 'free' | 'paid';
820
- }
821
- }
822
-
823
- interface PauseCollection {
824
- /**
825
- * The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
826
- */
827
- behavior: PauseCollection.Behavior;
828
- }
829
-
830
- namespace PauseCollection {
831
- type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
832
- }
833
-
834
- type ProrationBehavior =
835
- | 'always_invoice'
836
- | 'create_prorations'
837
- | 'none';
838
-
839
- interface TransferData {
840
- /**
841
- * A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
842
- */
843
- amount_percent: number | null;
844
-
845
- /**
846
- * The account where funds from the payment will be transferred to upon payment success.
847
- */
848
- destination: string | Stripe.Account;
849
- }
850
-
851
- type TrialContinuation = 'continue' | 'none';
852
-
853
- interface TrialSettings {
854
- /**
855
- * Defines how the subscription should behave when a trial ends.
856
- */
857
- end_behavior: TrialSettings.EndBehavior | null;
858
- }
859
-
860
- namespace TrialSettings {
861
- interface EndBehavior {
862
- /**
863
- * Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
864
- */
865
- prorate_up_front: EndBehavior.ProrateUpFront | null;
866
- }
867
-
868
- namespace EndBehavior {
869
- type ProrateUpFront = 'defer' | 'include';
870
- }
871
- }
872
- }
873
-
874
- interface Prebilling {
875
- /**
876
- * ID of the prebilling invoice.
877
- */
878
- invoice: string | Stripe.Invoice;
879
-
880
- /**
881
- * The end of the last period for which the invoice pre-bills.
882
- */
883
- period_end: number;
884
-
885
- /**
886
- * The start of the first period for which the invoice pre-bills.
887
- */
888
- period_start: number;
889
-
890
- /**
891
- * Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
892
- */
893
- update_behavior?: Prebilling.UpdateBehavior;
894
- }
895
-
896
- namespace Prebilling {
897
- type UpdateBehavior = 'prebill' | 'reset';
898
- }
899
-
900
- type Status =
901
- | 'active'
902
- | 'canceled'
903
- | 'completed'
904
- | 'not_started'
905
- | 'released';
906
- }
907
- }
908
- }