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
package/types/Quotes.d.ts CHANGED
@@ -17,11 +17,6 @@ declare module 'stripe' {
17
17
  */
18
18
  object: 'quote';
19
19
 
20
- /**
21
- * Allow quote lines to have `starts_at` in the past if collection is paused between `starts_at` and now.
22
- */
23
- allow_backdated_lines?: boolean | null;
24
-
25
20
  /**
26
21
  * Total before any discounts or taxes are applied.
27
22
  */
@@ -71,14 +66,14 @@ declare module 'stripe' {
71
66
  currency: string | null;
72
67
 
73
68
  /**
74
- * The customer which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
69
+ * The customer who received this quote. A customer is required to finalize the quote. Once specified, you can't change it.
75
70
  */
76
71
  customer: string | Stripe.Customer | Stripe.DeletedCustomer | null;
77
72
 
78
73
  /**
79
- * The account which this quote belongs to. A customer or account is required before finalizing the quote. Once specified, it cannot be changed.
74
+ * The account representing the customer who received this quote. A customer or account is required to finalize the quote. Once specified, you can't change it.
80
75
  */
81
- customer_account?: string | null;
76
+ customer_account: string | null;
82
77
 
83
78
  /**
84
79
  * The tax rates applied to this quote.
@@ -106,7 +101,7 @@ declare module 'stripe' {
106
101
  footer: string | null;
107
102
 
108
103
  /**
109
- * Details of the quote that was cloned. See the [cloning documentation](https://stripe.com/docs/quotes/clone) for more details.
104
+ * Details of the quote that was cloned. See the [cloning documentation](https://docs.stripe.com/quotes/clone) for more details.
110
105
  */
111
106
  from_quote: Quote.FromQuote | null;
112
107
 
@@ -127,23 +122,18 @@ declare module 'stripe' {
127
122
  */
128
123
  line_items?: ApiList<Stripe.LineItem>;
129
124
 
130
- /**
131
- * A list of [quote lines](https://docs.stripe.com/api/quote_lines) on the quote. These lines describe changes, in the order provided, that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
132
- */
133
- lines?: Array<string> | null;
134
-
135
125
  /**
136
126
  * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
137
127
  */
138
128
  livemode: boolean;
139
129
 
140
130
  /**
141
- * 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.
131
+ * Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
142
132
  */
143
133
  metadata: Stripe.Metadata;
144
134
 
145
135
  /**
146
- * A unique number that identifies this particular quote. This number is assigned once the quote is [finalized](https://stripe.com/docs/quotes/overview#finalize).
136
+ * A unique number that identifies this particular quote. This number is assigned once the quote is [finalized](https://docs.stripe.com/quotes/overview#finalize).
147
137
  */
148
138
  number: string | null;
149
139
 
@@ -157,11 +147,6 @@ declare module 'stripe' {
157
147
  */
158
148
  status: Quote.Status;
159
149
 
160
- /**
161
- * Details on when and why a quote has been marked as stale or canceled.
162
- */
163
- status_details?: Quote.StatusDetails | null;
164
-
165
150
  status_transitions: Quote.StatusTransitions;
166
151
 
167
152
  /**
@@ -171,23 +156,11 @@ declare module 'stripe' {
171
156
 
172
157
  subscription_data: Quote.SubscriptionData;
173
158
 
174
- /**
175
- * List representing overrides for `subscription_data` configurations for specific subscription schedules.
176
- */
177
- subscription_data_overrides?: Array<
178
- Quote.SubscriptionDataOverride
179
- > | null;
180
-
181
159
  /**
182
160
  * The subscription schedule that was created or updated from this quote.
183
161
  */
184
162
  subscription_schedule: string | Stripe.SubscriptionSchedule | null;
185
163
 
186
- /**
187
- * The subscription schedules that were created or updated from this quote.
188
- */
189
- subscription_schedules?: Array<Quote.SubscriptionSchedule> | null;
190
-
191
164
  /**
192
165
  * ID of the test clock this quote belongs to.
193
166
  */
@@ -247,62 +220,15 @@ declare module 'stripe' {
247
220
  type CollectionMethod = 'charge_automatically' | 'send_invoice';
248
221
 
249
222
  interface Computed {
250
- /**
251
- * Details of the most recent reestimate of the quote's preview schedules and upcoming invoices, including the status of Stripe's calculation.
252
- */
253
- last_reestimation_details?: Computed.LastReestimationDetails | null;
254
-
255
223
  /**
256
224
  * The definitive totals and line items the customer will be charged on a recurring basis. Takes into account the line items with recurring prices and discounts with `duration=forever` coupons only. Defaults to `null` if no inputted line items with recurring prices.
257
225
  */
258
226
  recurring: Computed.Recurring | null;
259
227
 
260
- /**
261
- * The time at which the quote's estimated schedules and upcoming invoices were generated.
262
- */
263
- updated_at?: number | null;
264
-
265
228
  upfront: Computed.Upfront;
266
229
  }
267
230
 
268
231
  namespace Computed {
269
- interface LastReestimationDetails {
270
- /**
271
- * When `status` is `failed`, provides details about the quote reestimation failure.
272
- */
273
- failed: LastReestimationDetails.Failed | null;
274
-
275
- /**
276
- * Latest status of the reestimation.
277
- */
278
- status: LastReestimationDetails.Status;
279
- }
280
-
281
- namespace LastReestimationDetails {
282
- interface Failed {
283
- /**
284
- * The failure `code` is more granular than the `reason` provided and may correspond to a Stripe error code. For automation errors, this field is one of: `reverse_api_failure`, `reverse_api_deadline_exceeeded`, or `reverse_api_response_validation_error`, which are Stripe error codes and map to the error `message` field.
285
- */
286
- failure_code: string | null;
287
-
288
- /**
289
- * Information derived from the `failure_code` or a freeform message that explains the error as a human-readable English string. For example, "margin ID is not a valid ID".
290
- */
291
- message: string | null;
292
-
293
- /**
294
- * The reason the reestimation failed.
295
- */
296
- reason: Failed.Reason;
297
- }
298
-
299
- namespace Failed {
300
- type Reason = 'automation_failure' | 'internal_error';
301
- }
302
-
303
- type Status = 'failed' | 'in_progress' | 'succeeded';
304
- }
305
-
306
232
  interface Recurring {
307
233
  /**
308
234
  * Total before any discounts or taxes are applied.
@@ -370,10 +296,10 @@ declare module 'stripe' {
370
296
  amount: number;
371
297
 
372
298
  /**
373
- * A discount represents the actual application of a [coupon](https://stripe.com/docs/api#coupons) or [promotion code](https://stripe.com/docs/api#promotion_codes).
299
+ * A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes).
374
300
  * It contains information about when the discount began, when it will end, and what it is applied to.
375
301
  *
376
- * Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts)
302
+ * Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
377
303
  */
378
304
  discount: Stripe.Discount;
379
305
  }
@@ -484,10 +410,10 @@ declare module 'stripe' {
484
410
  amount: number;
485
411
 
486
412
  /**
487
- * A discount represents the actual application of a [coupon](https://stripe.com/docs/api#coupons) or [promotion code](https://stripe.com/docs/api#promotion_codes).
413
+ * A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes).
488
414
  * It contains information about when the discount began, when it will end, and what it is applied to.
489
415
  *
490
- * Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts)
416
+ * Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
491
417
  */
492
418
  discount: Stripe.Discount;
493
419
  }
@@ -578,153 +504,7 @@ declare module 'stripe' {
578
504
  }
579
505
  }
580
506
 
581
- type Status =
582
- | 'accepted'
583
- | 'accepting'
584
- | 'canceled'
585
- | 'draft'
586
- | 'open'
587
- | 'stale';
588
-
589
- interface StatusDetails {
590
- canceled?: StatusDetails.Canceled;
591
-
592
- stale?: StatusDetails.Stale;
593
- }
594
-
595
- namespace StatusDetails {
596
- interface Canceled {
597
- /**
598
- * The reason this quote was marked as canceled.
599
- */
600
- reason: Canceled.Reason | null;
601
-
602
- /**
603
- * Time at which the quote was marked as canceled. Measured in seconds since the Unix epoch.
604
- */
605
- transitioned_at: number | null;
606
- }
607
-
608
- namespace Canceled {
609
- type Reason =
610
- | 'canceled'
611
- | 'quote_accepted'
612
- | 'quote_expired'
613
- | 'quote_superseded'
614
- | 'subscription_canceled';
615
- }
616
-
617
- interface Stale {
618
- /**
619
- * Time at which the quote expires. Measured in seconds since the Unix epoch.
620
- */
621
- expires_at: number | null;
622
-
623
- /**
624
- * The most recent reason this quote was marked as stale.
625
- */
626
- last_reason: Stale.LastReason | null;
627
-
628
- /**
629
- * Time at which the stale reason was updated. Measured in seconds since the Unix epoch.
630
- */
631
- last_updated_at: number | null;
632
-
633
- /**
634
- * Time at which the quote was marked as stale. Measured in seconds since the Unix epoch.
635
- */
636
- transitioned_at: number | null;
637
- }
638
-
639
- namespace Stale {
640
- interface LastReason {
641
- /**
642
- * The ID of the line that is invalid if the stale reason type is `line_invalid`.
643
- */
644
- line_invalid?: string;
645
-
646
- /**
647
- * The IDs of the lines that are invalid if the stale reason type is `lines_invalid`.
648
- */
649
- lines_invalid?: Array<LastReason.LinesInvalid>;
650
-
651
- /**
652
- * The user supplied mark stale reason.
653
- */
654
- marked_stale?: string | null;
655
-
656
- /**
657
- * The ID of the subscription that was canceled.
658
- */
659
- subscription_canceled?: string;
660
-
661
- subscription_changed?: LastReason.SubscriptionChanged;
662
-
663
- /**
664
- * The ID of the subscription that was expired.
665
- */
666
- subscription_expired?: string;
667
-
668
- /**
669
- * The ID of the subscription schedule that was canceled.
670
- */
671
- subscription_schedule_canceled?: string;
672
-
673
- subscription_schedule_changed?: LastReason.SubscriptionScheduleChanged;
674
-
675
- /**
676
- * The ID of the subscription schedule that was released.
677
- */
678
- subscription_schedule_released?: string;
679
-
680
- /**
681
- * The reason the quote was marked as stale.
682
- */
683
- type: LastReason.Type | null;
684
- }
685
-
686
- namespace LastReason {
687
- interface LinesInvalid {
688
- /**
689
- * The timestamp at which the lines were marked as invalid.
690
- */
691
- invalid_at: number;
692
-
693
- /**
694
- * The list of lines that became invalid at the given timestamp.
695
- */
696
- lines: Array<string>;
697
- }
698
-
699
- interface SubscriptionChanged {
700
- /**
701
- * The subscription's state before the quote was marked as stale.
702
- */
703
- previous_subscription: Stripe.Subscription | null;
704
- }
705
-
706
- interface SubscriptionScheduleChanged {
707
- /**
708
- * The subscription schedule's state before the quote was marked as stale.
709
- */
710
- previous_subscription_schedule: Stripe.SubscriptionSchedule | null;
711
- }
712
-
713
- type Type =
714
- | 'accept_failed_validations'
715
- | 'bill_on_acceptance_invalid'
716
- | 'line_invalid'
717
- | 'lines_invalid'
718
- | 'marked_stale'
719
- | 'subscription_canceled'
720
- | 'subscription_changed'
721
- | 'subscription_expired'
722
- | 'subscription_schedule_canceled'
723
- | 'subscription_schedule_changed'
724
- | 'subscription_schedule_released';
725
- }
726
- }
727
- }
507
+ type Status = 'accepted' | 'canceled' | 'draft' | 'open';
728
508
 
729
509
  interface StatusTransitions {
730
510
  /**
@@ -744,21 +524,6 @@ declare module 'stripe' {
744
524
  }
745
525
 
746
526
  interface SubscriptionData {
747
- /**
748
- * Describes the period to bill for upon accepting the quote.
749
- */
750
- bill_on_acceptance?: SubscriptionData.BillOnAcceptance | null;
751
-
752
- /**
753
- * 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.
754
- */
755
- billing_behavior?: SubscriptionData.BillingBehavior;
756
-
757
- /**
758
- * Whether the subscription will always start a new billing period when the quote is accepted.
759
- */
760
- billing_cycle_anchor?: 'reset' | null;
761
-
762
527
  /**
763
528
  * The billing mode of the quote.
764
529
  */
@@ -775,30 +540,10 @@ declare module 'stripe' {
775
540
  effective_date: number | null;
776
541
 
777
542
  /**
778
- * Behavior of the subscription schedule and underlying subscription when it ends.
779
- */
780
- end_behavior?: SubscriptionData.EndBehavior | null;
781
-
782
- /**
783
- * The id of the subscription that will be updated when the quote is accepted.
784
- */
785
- from_subscription?: string | Stripe.Subscription | null;
786
-
787
- /**
788
- * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
543
+ * Set of [key-value pairs](https://docs.stripe.com/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
789
544
  */
790
545
  metadata: Stripe.Metadata | null;
791
546
 
792
- /**
793
- * If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`.
794
- */
795
- prebilling?: SubscriptionData.Prebilling | null;
796
-
797
- /**
798
- * Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the quote is accepted.
799
- */
800
- proration_behavior?: SubscriptionData.ProrationBehavior;
801
-
802
547
  /**
803
548
  * Integer representing the number of trial period days before the customer is charged for the first time.
804
549
  */
@@ -806,8 +551,6 @@ declare module 'stripe' {
806
551
  }
807
552
 
808
553
  namespace SubscriptionData {
809
- type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
810
-
811
554
  interface BillingMode {
812
555
  flexible?: BillingMode.Flexible;
813
556
 
@@ -831,337 +574,6 @@ declare module 'stripe' {
831
574
 
832
575
  type Type = 'classic' | 'flexible';
833
576
  }
834
-
835
- interface BillOnAcceptance {
836
- /**
837
- * The start of the period to bill from when the Quote is accepted.
838
- */
839
- bill_from: BillOnAcceptance.BillFrom | null;
840
-
841
- /**
842
- * The end of the period to bill until when the Quote is accepted.
843
- */
844
- bill_until: BillOnAcceptance.BillUntil | null;
845
- }
846
-
847
- namespace BillOnAcceptance {
848
- interface BillFrom {
849
- /**
850
- * The materialized time.
851
- */
852
- computed: number | null;
853
-
854
- /**
855
- * The timestamp the given line starts at.
856
- */
857
- line_starts_at: BillFrom.LineStartsAt | null;
858
-
859
- /**
860
- * A precise Unix timestamp.
861
- */
862
- timestamp: number | null;
863
-
864
- /**
865
- * The type of method to specify the `bill_from` time.
866
- */
867
- type: BillFrom.Type;
868
- }
869
-
870
- namespace BillFrom {
871
- interface LineStartsAt {
872
- /**
873
- * Unique identifier for the object.
874
- */
875
- id: string;
876
- }
877
-
878
- type Type =
879
- | 'line_starts_at'
880
- | 'now'
881
- | 'pause_collection_start'
882
- | 'quote_acceptance_date'
883
- | 'timestamp';
884
- }
885
-
886
- interface BillUntil {
887
- /**
888
- * The materialized time.
889
- */
890
- computed: number | null;
891
-
892
- /**
893
- * Time span for the quote line starting from the `starts_at` date.
894
- */
895
- duration: BillUntil.Duration | null;
896
-
897
- /**
898
- * The timestamp the given line ends at.
899
- */
900
- line_ends_at: BillUntil.LineEndsAt | null;
901
-
902
- /**
903
- * A precise Unix timestamp.
904
- */
905
- timestamp: number | null;
906
-
907
- /**
908
- * The type of method to specify the `bill_until` time.
909
- */
910
- type: BillUntil.Type;
911
- }
912
-
913
- namespace BillUntil {
914
- interface Duration {
915
- /**
916
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
917
- */
918
- interval: Duration.Interval;
919
-
920
- /**
921
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
922
- */
923
- interval_count: number;
924
- }
925
-
926
- namespace Duration {
927
- type Interval = 'day' | 'month' | 'week' | 'year';
928
- }
929
-
930
- interface LineEndsAt {
931
- /**
932
- * Unique identifier for the object.
933
- */
934
- id: string;
935
- }
936
-
937
- type Type =
938
- | 'duration'
939
- | 'line_ends_at'
940
- | 'schedule_end'
941
- | 'timestamp'
942
- | 'upcoming_invoice';
943
- }
944
- }
945
-
946
- type EndBehavior = 'cancel' | 'release';
947
-
948
- interface Prebilling {
949
- iterations: number;
950
- }
951
-
952
- type ProrationBehavior =
953
- | 'always_invoice'
954
- | 'create_prorations'
955
- | 'none';
956
- }
957
-
958
- interface SubscriptionDataOverride {
959
- applies_to: SubscriptionDataOverride.AppliesTo;
960
-
961
- /**
962
- * Describes the period to bill for upon accepting the quote.
963
- */
964
- bill_on_acceptance?: SubscriptionDataOverride.BillOnAcceptance | null;
965
-
966
- /**
967
- * 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.
968
- */
969
- billing_behavior?: SubscriptionDataOverride.BillingBehavior;
970
-
971
- /**
972
- * The customer which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
973
- */
974
- customer: string | null;
975
-
976
- /**
977
- * The subscription's 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.
978
- */
979
- description: string | null;
980
-
981
- /**
982
- * Behavior of the subscription schedule and underlying subscription when it ends.
983
- */
984
- end_behavior?: SubscriptionDataOverride.EndBehavior | null;
985
-
986
- /**
987
- * Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the quote is accepted.
988
- */
989
- proration_behavior?: SubscriptionDataOverride.ProrationBehavior | null;
990
- }
991
-
992
- namespace SubscriptionDataOverride {
993
- interface AppliesTo {
994
- /**
995
- * 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.
996
- */
997
- new_reference: string | null;
998
-
999
- /**
1000
- * The ID of the schedule the line applies to.
1001
- */
1002
- subscription_schedule: string | null;
1003
-
1004
- /**
1005
- * Describes whether the quote line is affecting a new schedule or an existing schedule.
1006
- */
1007
- type: AppliesTo.Type;
1008
- }
1009
-
1010
- namespace AppliesTo {
1011
- type Type = 'new_reference' | 'subscription_schedule';
1012
- }
1013
-
1014
- type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
1015
-
1016
- interface BillOnAcceptance {
1017
- /**
1018
- * The start of the period to bill from when the Quote is accepted.
1019
- */
1020
- bill_from: BillOnAcceptance.BillFrom | null;
1021
-
1022
- /**
1023
- * The end of the period to bill until when the Quote is accepted.
1024
- */
1025
- bill_until: BillOnAcceptance.BillUntil | null;
1026
- }
1027
-
1028
- namespace BillOnAcceptance {
1029
- interface BillFrom {
1030
- /**
1031
- * The materialized time.
1032
- */
1033
- computed: number | null;
1034
-
1035
- /**
1036
- * The timestamp the given line starts at.
1037
- */
1038
- line_starts_at: BillFrom.LineStartsAt | null;
1039
-
1040
- /**
1041
- * A precise Unix timestamp.
1042
- */
1043
- timestamp: number | null;
1044
-
1045
- /**
1046
- * The type of method to specify the `bill_from` time.
1047
- */
1048
- type: BillFrom.Type;
1049
- }
1050
-
1051
- namespace BillFrom {
1052
- interface LineStartsAt {
1053
- /**
1054
- * Unique identifier for the object.
1055
- */
1056
- id: string;
1057
- }
1058
-
1059
- type Type =
1060
- | 'line_starts_at'
1061
- | 'now'
1062
- | 'pause_collection_start'
1063
- | 'quote_acceptance_date'
1064
- | 'timestamp';
1065
- }
1066
-
1067
- interface BillUntil {
1068
- /**
1069
- * The materialized time.
1070
- */
1071
- computed: number | null;
1072
-
1073
- /**
1074
- * Time span for the quote line starting from the `starts_at` date.
1075
- */
1076
- duration: BillUntil.Duration | null;
1077
-
1078
- /**
1079
- * The timestamp the given line ends at.
1080
- */
1081
- line_ends_at: BillUntil.LineEndsAt | null;
1082
-
1083
- /**
1084
- * A precise Unix timestamp.
1085
- */
1086
- timestamp: number | null;
1087
-
1088
- /**
1089
- * The type of method to specify the `bill_until` time.
1090
- */
1091
- type: BillUntil.Type;
1092
- }
1093
-
1094
- namespace BillUntil {
1095
- interface Duration {
1096
- /**
1097
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1098
- */
1099
- interval: Duration.Interval;
1100
-
1101
- /**
1102
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1103
- */
1104
- interval_count: number;
1105
- }
1106
-
1107
- namespace Duration {
1108
- type Interval = 'day' | 'month' | 'week' | 'year';
1109
- }
1110
-
1111
- interface LineEndsAt {
1112
- /**
1113
- * Unique identifier for the object.
1114
- */
1115
- id: string;
1116
- }
1117
-
1118
- type Type =
1119
- | 'duration'
1120
- | 'line_ends_at'
1121
- | 'schedule_end'
1122
- | 'timestamp'
1123
- | 'upcoming_invoice';
1124
- }
1125
- }
1126
-
1127
- type EndBehavior = 'cancel' | 'release';
1128
-
1129
- type ProrationBehavior =
1130
- | 'always_invoice'
1131
- | 'create_prorations'
1132
- | 'none';
1133
- }
1134
-
1135
- interface SubscriptionSchedule {
1136
- applies_to: SubscriptionSchedule.AppliesTo;
1137
-
1138
- /**
1139
- * The subscription schedule that was created or updated from this quote.
1140
- */
1141
- subscription_schedule: string;
1142
- }
1143
-
1144
- namespace SubscriptionSchedule {
1145
- interface AppliesTo {
1146
- /**
1147
- * 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.
1148
- */
1149
- new_reference: string | null;
1150
-
1151
- /**
1152
- * The ID of the schedule the line applies to.
1153
- */
1154
- subscription_schedule: string | null;
1155
-
1156
- /**
1157
- * Describes whether the quote line is affecting a new schedule or an existing schedule.
1158
- */
1159
- type: AppliesTo.Type;
1160
- }
1161
-
1162
- namespace AppliesTo {
1163
- type Type = 'new_reference' | 'subscription_schedule';
1164
- }
1165
577
  }
1166
578
 
1167
579
  interface TotalDetails {
@@ -1204,10 +616,10 @@ declare module 'stripe' {
1204
616
  amount: number;
1205
617
 
1206
618
  /**
1207
- * A discount represents the actual application of a [coupon](https://stripe.com/docs/api#coupons) or [promotion code](https://stripe.com/docs/api#promotion_codes).
619
+ * A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes).
1208
620
  * It contains information about when the discount began, when it will end, and what it is applied to.
1209
621
  *
1210
- * Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts)
622
+ * Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
1211
623
  */
1212
624
  discount: Stripe.Discount;
1213
625
  }