stripe 22.2.0-beta.3 → 22.2.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 (868) hide show
  1. package/CHANGELOG.md +84 -1730
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +65 -57
  4. package/VERSION +1 -1
  5. package/cjs/Error.d.ts +0 -50
  6. package/cjs/Error.js +1 -125
  7. package/cjs/Error.js.map +1 -1
  8. package/cjs/RequestSender.d.ts +1 -0
  9. package/cjs/RequestSender.js +10 -2
  10. package/cjs/RequestSender.js.map +1 -1
  11. package/cjs/Types.d.ts +2 -4
  12. package/cjs/Types.js.map +1 -1
  13. package/cjs/apiVersion.d.ts +2 -1
  14. package/cjs/apiVersion.js +3 -2
  15. package/cjs/apiVersion.js.map +1 -1
  16. package/cjs/lib.d.ts +48 -3
  17. package/cjs/net/FetchHttpClient.js.map +1 -1
  18. package/cjs/net/HttpClient.js.map +1 -1
  19. package/cjs/platform/NodePlatformFunctions.d.ts +6 -0
  20. package/cjs/platform/NodePlatformFunctions.js +17 -0
  21. package/cjs/platform/NodePlatformFunctions.js.map +1 -1
  22. package/cjs/platform/PlatformFunctions.d.ts +13 -0
  23. package/cjs/platform/PlatformFunctions.js +21 -0
  24. package/cjs/platform/PlatformFunctions.js.map +1 -1
  25. package/cjs/resources/AccountLinks.d.ts +1 -1
  26. package/cjs/resources/AccountSessions.d.ts +0 -262
  27. package/cjs/resources/AccountSessions.js.map +1 -1
  28. package/cjs/resources/Accounts.d.ts +45 -819
  29. package/cjs/resources/Accounts.js +0 -15
  30. package/cjs/resources/Accounts.js.map +1 -1
  31. package/cjs/resources/Apps/index.d.ts +4 -4
  32. package/cjs/resources/Balance.d.ts +0 -67
  33. package/cjs/resources/BalanceSettings.d.ts +86 -0
  34. package/cjs/resources/BankAccounts.d.ts +2 -2
  35. package/cjs/resources/Billing/AlertTriggereds.d.ts +1 -2
  36. package/cjs/resources/Billing/index.d.ts +24 -27
  37. package/cjs/resources/Billing/index.js +0 -2
  38. package/cjs/resources/Billing/index.js.map +1 -1
  39. package/cjs/resources/BillingPortal/index.d.ts +5 -5
  40. package/cjs/resources/Capabilities.d.ts +2 -2
  41. package/cjs/resources/Cards.d.ts +0 -4
  42. package/cjs/resources/Charges.d.ts +92 -3064
  43. package/cjs/resources/Checkout/Sessions.d.ts +51 -414
  44. package/cjs/resources/Checkout/index.d.ts +6 -6
  45. package/cjs/resources/Climate/index.d.ts +9 -9
  46. package/cjs/resources/ConfirmationTokens.d.ts +7 -67
  47. package/cjs/resources/Coupons.d.ts +0 -47
  48. package/cjs/resources/CreditNoteLineItems.d.ts +1 -15
  49. package/cjs/resources/CreditNotes.d.ts +1 -7
  50. package/cjs/resources/CreditNotes.js +0 -14
  51. package/cjs/resources/CreditNotes.js.map +1 -1
  52. package/cjs/resources/CustomerSessions.d.ts +0 -68
  53. package/cjs/resources/Customers.d.ts +1 -7
  54. package/cjs/resources/Customers.js +0 -15
  55. package/cjs/resources/Customers.js.map +1 -1
  56. package/cjs/resources/Discounts.d.ts +4 -4
  57. package/cjs/resources/Disputes.d.ts +0 -29
  58. package/cjs/resources/Entitlements/index.d.ts +6 -6
  59. package/cjs/resources/Events.d.ts +2 -547
  60. package/cjs/resources/ExternalAccounts.d.ts +1 -212
  61. package/cjs/resources/ExternalAccounts.js +0 -44
  62. package/cjs/resources/ExternalAccounts.js.map +1 -1
  63. package/cjs/resources/FinancialConnections/Accounts.d.ts +4 -74
  64. package/cjs/resources/FinancialConnections/Accounts.js +0 -8
  65. package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
  66. package/cjs/resources/FinancialConnections/Sessions.d.ts +7 -155
  67. package/cjs/resources/FinancialConnections/index.d.ts +13 -28
  68. package/cjs/resources/FinancialConnections/index.js +0 -4
  69. package/cjs/resources/FinancialConnections/index.js.map +1 -1
  70. package/cjs/resources/Forwarding/index.d.ts +3 -3
  71. package/cjs/resources/Identity/index.d.ts +8 -8
  72. package/cjs/resources/InvoiceItems.d.ts +28 -85
  73. package/cjs/resources/InvoiceItems.js.map +1 -1
  74. package/cjs/resources/InvoiceLineItems.d.ts +2 -40
  75. package/cjs/resources/Invoices.d.ts +26 -1348
  76. package/cjs/resources/Invoices.js +0 -70
  77. package/cjs/resources/Invoices.js.map +1 -1
  78. package/cjs/resources/Issuing/Cardholders.d.ts +1 -2
  79. package/cjs/resources/Issuing/Disputes.d.ts +1 -1
  80. package/cjs/resources/Issuing/PersonalizationDesigns.d.ts +1 -1
  81. package/cjs/resources/Issuing/Transactions.d.ts +0 -9
  82. package/cjs/resources/Issuing/Transactions.js.map +1 -1
  83. package/cjs/resources/Issuing/index.d.ts +35 -60
  84. package/cjs/resources/Issuing/index.js +0 -6
  85. package/cjs/resources/Issuing/index.js.map +1 -1
  86. package/cjs/resources/LineItems.d.ts +2 -29
  87. package/cjs/resources/Mandates.d.ts +4 -33
  88. package/cjs/resources/Mandates.js +0 -8
  89. package/cjs/resources/Mandates.js.map +1 -1
  90. package/cjs/resources/OAuth.d.ts +7 -8
  91. package/cjs/resources/PaymentAttemptRecords.d.ts +23 -92
  92. package/cjs/resources/PaymentIntents.d.ts +6510 -17236
  93. package/cjs/resources/PaymentIntents.js +3 -28
  94. package/cjs/resources/PaymentIntents.js.map +1 -1
  95. package/cjs/resources/PaymentLinks.d.ts +88 -20
  96. package/cjs/resources/PaymentMethodConfigurations.d.ts +93 -299
  97. package/cjs/resources/PaymentMethods.d.ts +22 -152
  98. package/cjs/resources/PaymentMethods.js.map +1 -1
  99. package/cjs/resources/PaymentRecords.d.ts +23 -92
  100. package/cjs/resources/Payouts.d.ts +1 -1
  101. package/cjs/resources/Persons.d.ts +2 -2
  102. package/cjs/resources/Plans.d.ts +0 -16
  103. package/cjs/resources/Prices.d.ts +0 -52
  104. package/cjs/resources/Products.d.ts +0 -42
  105. package/cjs/resources/PromotionCodes.d.ts +0 -12
  106. package/cjs/resources/PromotionCodes.js +0 -28
  107. package/cjs/resources/PromotionCodes.js.map +1 -1
  108. package/cjs/resources/Quotes.d.ts +160 -2369
  109. package/cjs/resources/Quotes.js +13 -1181
  110. package/cjs/resources/Quotes.js.map +1 -1
  111. package/cjs/resources/Radar/PaymentEvaluations.d.ts +2 -2
  112. package/cjs/resources/Radar/index.d.ts +12 -12
  113. package/cjs/resources/Refunds.d.ts +3 -11
  114. package/cjs/resources/Reporting/index.d.ts +5 -5
  115. package/cjs/resources/Reserve/Holds.d.ts +1 -53
  116. package/cjs/resources/Reserve/Holds.js +0 -19
  117. package/cjs/resources/Reserve/Holds.js.map +1 -1
  118. package/cjs/resources/Reserve/Plans.d.ts +0 -16
  119. package/cjs/resources/Reserve/Plans.js +0 -11
  120. package/cjs/resources/Reserve/Plans.js.map +1 -1
  121. package/cjs/resources/Reserve/Releases.d.ts +1 -41
  122. package/cjs/resources/Reserve/Releases.js +0 -19
  123. package/cjs/resources/Reserve/Releases.js.map +1 -1
  124. package/cjs/resources/Reserve/index.d.ts +3 -14
  125. package/cjs/resources/Reserve/index.js +2 -10
  126. package/cjs/resources/Reserve/index.js.map +1 -1
  127. package/cjs/resources/SetupAttempts.d.ts +3 -25
  128. package/cjs/resources/SetupIntents.d.ts +77 -336
  129. package/cjs/resources/Sigma/index.d.ts +2 -2
  130. package/cjs/resources/Sources.d.ts +1 -16
  131. package/cjs/resources/SubscriptionItems.d.ts +4 -165
  132. package/cjs/resources/SubscriptionSchedules.d.ts +16 -1174
  133. package/cjs/resources/SubscriptionSchedules.js +0 -48
  134. package/cjs/resources/SubscriptionSchedules.js.map +1 -1
  135. package/cjs/resources/Subscriptions.d.ts +32 -490
  136. package/cjs/resources/Subscriptions.js +2 -31
  137. package/cjs/resources/Subscriptions.js.map +1 -1
  138. package/cjs/resources/Tax/CalculationLineItems.d.ts +2 -6
  139. package/cjs/resources/Tax/Calculations.d.ts +3 -7
  140. package/cjs/resources/Tax/Registrations.d.ts +2 -138
  141. package/cjs/resources/Tax/Transactions.d.ts +2 -2
  142. package/cjs/resources/Tax/index.d.ts +17 -31
  143. package/cjs/resources/Tax/index.js +0 -4
  144. package/cjs/resources/Tax/index.js.map +1 -1
  145. package/cjs/resources/TaxCodes.d.ts +0 -15
  146. package/cjs/resources/Terminal/Configurations.d.ts +108 -27
  147. package/cjs/resources/Terminal/Readers.d.ts +143 -19
  148. package/cjs/resources/Terminal/Readers.js.map +1 -1
  149. package/cjs/resources/Terminal/index.d.ts +25 -30
  150. package/cjs/resources/Terminal/index.js +0 -2
  151. package/cjs/resources/Terminal/index.js.map +1 -1
  152. package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +14 -79
  153. package/cjs/resources/TestHelpers/TestClocks.d.ts +4 -0
  154. package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +0 -22
  155. package/cjs/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +0 -22
  156. package/cjs/resources/TestHelpers/index.d.ts +5 -8
  157. package/cjs/resources/TestHelpers/index.js +4 -6
  158. package/cjs/resources/TestHelpers/index.js.map +1 -1
  159. package/cjs/resources/Transfers.d.ts +0 -8
  160. package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +0 -5
  161. package/cjs/resources/Treasury/FinancialAccounts.d.ts +1 -34
  162. package/cjs/resources/Treasury/OutboundPayments.d.ts +0 -8
  163. package/cjs/resources/Treasury/OutboundTransfers.d.ts +0 -44
  164. package/cjs/resources/Treasury/ReceivedCredits.d.ts +0 -22
  165. package/cjs/resources/Treasury/ReceivedDebits.d.ts +0 -26
  166. package/cjs/resources/Treasury/index.d.ts +33 -33
  167. package/cjs/resources/V2/Billing/index.d.ts +6 -45
  168. package/cjs/resources/V2/Billing/index.js +0 -8
  169. package/cjs/resources/V2/Billing/index.js.map +1 -1
  170. package/cjs/resources/V2/Commerce/ProductCatalog/Imports.d.ts +2 -2
  171. package/cjs/resources/V2/Core/AccountLinks.d.ts +4 -4
  172. package/cjs/resources/V2/Core/AccountTokens.d.ts +32 -14
  173. package/cjs/resources/V2/Core/AccountTokens.js +5 -1
  174. package/cjs/resources/V2/Core/AccountTokens.js.map +1 -1
  175. package/cjs/resources/V2/Core/Accounts/Persons.d.ts +2 -2
  176. package/cjs/resources/V2/Core/Accounts.d.ts +233 -1171
  177. package/cjs/resources/V2/Core/Accounts.js +1 -1
  178. package/cjs/resources/V2/Core/EventDestinations.d.ts +2 -2
  179. package/cjs/resources/V2/Core/Events.d.ts +8 -1126
  180. package/cjs/resources/V2/Core/Events.js +2 -1
  181. package/cjs/resources/V2/Core/Events.js.map +1 -1
  182. package/cjs/resources/V2/Core/index.d.ts +19 -29
  183. package/cjs/resources/V2/Core/index.js +0 -4
  184. package/cjs/resources/V2/Core/index.js.map +1 -1
  185. package/cjs/resources/V2/index.d.ts +0 -27
  186. package/cjs/resources/V2/index.js +0 -14
  187. package/cjs/resources/V2/index.js.map +1 -1
  188. package/cjs/resources/WebhookEndpoints.d.ts +3 -3
  189. package/cjs/resources.d.ts +0 -10
  190. package/cjs/resources.js +10 -146
  191. package/cjs/resources.js.map +1 -1
  192. package/cjs/stripe.core.d.ts +29 -69
  193. package/cjs/stripe.core.js +44 -61
  194. package/cjs/stripe.core.js.map +1 -1
  195. package/cjs/utils.d.ts +0 -2
  196. package/cjs/utils.js +1 -16
  197. package/cjs/utils.js.map +1 -1
  198. package/esm/Error.d.ts +0 -50
  199. package/esm/Error.js +0 -109
  200. package/esm/Error.js.map +1 -1
  201. package/esm/RequestSender.d.ts +1 -0
  202. package/esm/RequestSender.js +11 -3
  203. package/esm/RequestSender.js.map +1 -1
  204. package/esm/Types.d.ts +2 -4
  205. package/esm/Types.js.map +1 -1
  206. package/esm/apiVersion.d.ts +2 -1
  207. package/esm/apiVersion.js +2 -1
  208. package/esm/apiVersion.js.map +1 -1
  209. package/esm/lib.d.ts +48 -3
  210. package/esm/net/FetchHttpClient.js.map +1 -1
  211. package/esm/net/HttpClient.js.map +1 -1
  212. package/esm/platform/NodePlatformFunctions.d.ts +6 -0
  213. package/esm/platform/NodePlatformFunctions.js +17 -0
  214. package/esm/platform/NodePlatformFunctions.js.map +1 -1
  215. package/esm/platform/PlatformFunctions.d.ts +13 -0
  216. package/esm/platform/PlatformFunctions.js +21 -0
  217. package/esm/platform/PlatformFunctions.js.map +1 -1
  218. package/esm/resources/AccountLinks.d.ts +1 -1
  219. package/esm/resources/AccountSessions.d.ts +0 -262
  220. package/esm/resources/AccountSessions.js.map +1 -1
  221. package/esm/resources/Accounts.d.ts +45 -819
  222. package/esm/resources/Accounts.js +0 -15
  223. package/esm/resources/Accounts.js.map +1 -1
  224. package/esm/resources/Apps/index.d.ts +4 -4
  225. package/esm/resources/Balance.d.ts +0 -67
  226. package/esm/resources/BalanceSettings.d.ts +86 -0
  227. package/esm/resources/BankAccounts.d.ts +2 -2
  228. package/esm/resources/Billing/AlertTriggereds.d.ts +1 -2
  229. package/esm/resources/Billing/index.d.ts +24 -27
  230. package/esm/resources/Billing/index.js +0 -2
  231. package/esm/resources/Billing/index.js.map +1 -1
  232. package/esm/resources/BillingPortal/index.d.ts +5 -5
  233. package/esm/resources/Capabilities.d.ts +2 -2
  234. package/esm/resources/Cards.d.ts +0 -4
  235. package/esm/resources/Charges.d.ts +92 -3064
  236. package/esm/resources/Checkout/Sessions.d.ts +51 -414
  237. package/esm/resources/Checkout/index.d.ts +6 -6
  238. package/esm/resources/Climate/index.d.ts +9 -9
  239. package/esm/resources/ConfirmationTokens.d.ts +7 -67
  240. package/esm/resources/Coupons.d.ts +0 -47
  241. package/esm/resources/CreditNoteLineItems.d.ts +1 -15
  242. package/esm/resources/CreditNotes.d.ts +1 -7
  243. package/esm/resources/CreditNotes.js +0 -14
  244. package/esm/resources/CreditNotes.js.map +1 -1
  245. package/esm/resources/CustomerSessions.d.ts +0 -68
  246. package/esm/resources/Customers.d.ts +1 -7
  247. package/esm/resources/Customers.js +0 -15
  248. package/esm/resources/Customers.js.map +1 -1
  249. package/esm/resources/Discounts.d.ts +4 -4
  250. package/esm/resources/Disputes.d.ts +0 -29
  251. package/esm/resources/Entitlements/index.d.ts +6 -6
  252. package/esm/resources/Events.d.ts +2 -547
  253. package/esm/resources/ExternalAccounts.d.ts +1 -212
  254. package/esm/resources/ExternalAccounts.js +1 -42
  255. package/esm/resources/ExternalAccounts.js.map +1 -1
  256. package/esm/resources/FinancialConnections/Accounts.d.ts +4 -74
  257. package/esm/resources/FinancialConnections/Accounts.js +0 -8
  258. package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
  259. package/esm/resources/FinancialConnections/Sessions.d.ts +7 -155
  260. package/esm/resources/FinancialConnections/index.d.ts +13 -28
  261. package/esm/resources/FinancialConnections/index.js +0 -4
  262. package/esm/resources/FinancialConnections/index.js.map +1 -1
  263. package/esm/resources/Forwarding/index.d.ts +3 -3
  264. package/esm/resources/Identity/index.d.ts +8 -8
  265. package/esm/resources/InvoiceItems.d.ts +28 -85
  266. package/esm/resources/InvoiceItems.js.map +1 -1
  267. package/esm/resources/InvoiceLineItems.d.ts +2 -40
  268. package/esm/resources/Invoices.d.ts +26 -1348
  269. package/esm/resources/Invoices.js +0 -70
  270. package/esm/resources/Invoices.js.map +1 -1
  271. package/esm/resources/Issuing/Cardholders.d.ts +1 -2
  272. package/esm/resources/Issuing/Disputes.d.ts +1 -1
  273. package/esm/resources/Issuing/PersonalizationDesigns.d.ts +1 -1
  274. package/esm/resources/Issuing/Transactions.d.ts +0 -9
  275. package/esm/resources/Issuing/Transactions.js.map +1 -1
  276. package/esm/resources/Issuing/index.d.ts +35 -60
  277. package/esm/resources/Issuing/index.js +0 -6
  278. package/esm/resources/Issuing/index.js.map +1 -1
  279. package/esm/resources/LineItems.d.ts +2 -29
  280. package/esm/resources/Mandates.d.ts +4 -33
  281. package/esm/resources/Mandates.js +0 -8
  282. package/esm/resources/Mandates.js.map +1 -1
  283. package/esm/resources/OAuth.d.ts +7 -8
  284. package/esm/resources/PaymentAttemptRecords.d.ts +23 -92
  285. package/esm/resources/PaymentIntents.d.ts +6510 -17236
  286. package/esm/resources/PaymentIntents.js +3 -28
  287. package/esm/resources/PaymentIntents.js.map +1 -1
  288. package/esm/resources/PaymentLinks.d.ts +88 -20
  289. package/esm/resources/PaymentMethodConfigurations.d.ts +93 -299
  290. package/esm/resources/PaymentMethods.d.ts +22 -152
  291. package/esm/resources/PaymentMethods.js.map +1 -1
  292. package/esm/resources/PaymentRecords.d.ts +23 -92
  293. package/esm/resources/Payouts.d.ts +1 -1
  294. package/esm/resources/Persons.d.ts +2 -2
  295. package/esm/resources/Plans.d.ts +0 -16
  296. package/esm/resources/Prices.d.ts +0 -52
  297. package/esm/resources/Products.d.ts +0 -42
  298. package/esm/resources/PromotionCodes.d.ts +0 -12
  299. package/esm/resources/PromotionCodes.js +0 -28
  300. package/esm/resources/PromotionCodes.js.map +1 -1
  301. package/esm/resources/Quotes.d.ts +160 -2369
  302. package/esm/resources/Quotes.js +13 -1181
  303. package/esm/resources/Quotes.js.map +1 -1
  304. package/esm/resources/Radar/PaymentEvaluations.d.ts +2 -2
  305. package/esm/resources/Radar/index.d.ts +12 -12
  306. package/esm/resources/Refunds.d.ts +3 -11
  307. package/esm/resources/Reporting/index.d.ts +5 -5
  308. package/esm/resources/Reserve/Holds.d.ts +1 -53
  309. package/esm/resources/Reserve/Holds.js +1 -17
  310. package/esm/resources/Reserve/Holds.js.map +1 -1
  311. package/esm/resources/Reserve/Plans.d.ts +0 -16
  312. package/esm/resources/Reserve/Plans.js +1 -9
  313. package/esm/resources/Reserve/Plans.js.map +1 -1
  314. package/esm/resources/Reserve/Releases.d.ts +1 -41
  315. package/esm/resources/Reserve/Releases.js +1 -17
  316. package/esm/resources/Reserve/Releases.js.map +1 -1
  317. package/esm/resources/Reserve/index.d.ts +3 -14
  318. package/esm/resources/Reserve/index.js +2 -10
  319. package/esm/resources/Reserve/index.js.map +1 -1
  320. package/esm/resources/SetupAttempts.d.ts +3 -25
  321. package/esm/resources/SetupIntents.d.ts +77 -336
  322. package/esm/resources/Sigma/index.d.ts +2 -2
  323. package/esm/resources/Sources.d.ts +1 -16
  324. package/esm/resources/SubscriptionItems.d.ts +4 -165
  325. package/esm/resources/SubscriptionSchedules.d.ts +16 -1174
  326. package/esm/resources/SubscriptionSchedules.js +0 -48
  327. package/esm/resources/SubscriptionSchedules.js.map +1 -1
  328. package/esm/resources/Subscriptions.d.ts +32 -490
  329. package/esm/resources/Subscriptions.js +2 -31
  330. package/esm/resources/Subscriptions.js.map +1 -1
  331. package/esm/resources/Tax/CalculationLineItems.d.ts +2 -6
  332. package/esm/resources/Tax/Calculations.d.ts +3 -7
  333. package/esm/resources/Tax/Registrations.d.ts +2 -138
  334. package/esm/resources/Tax/Transactions.d.ts +2 -2
  335. package/esm/resources/Tax/index.d.ts +17 -31
  336. package/esm/resources/Tax/index.js +0 -4
  337. package/esm/resources/Tax/index.js.map +1 -1
  338. package/esm/resources/TaxCodes.d.ts +0 -15
  339. package/esm/resources/Terminal/Configurations.d.ts +108 -27
  340. package/esm/resources/Terminal/Readers.d.ts +143 -19
  341. package/esm/resources/Terminal/Readers.js.map +1 -1
  342. package/esm/resources/Terminal/index.d.ts +25 -30
  343. package/esm/resources/Terminal/index.js +0 -2
  344. package/esm/resources/Terminal/index.js.map +1 -1
  345. package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +14 -79
  346. package/esm/resources/TestHelpers/TestClocks.d.ts +4 -0
  347. package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +0 -22
  348. package/esm/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +0 -22
  349. package/esm/resources/TestHelpers/index.d.ts +5 -8
  350. package/esm/resources/TestHelpers/index.js +0 -2
  351. package/esm/resources/TestHelpers/index.js.map +1 -1
  352. package/esm/resources/Transfers.d.ts +0 -8
  353. package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +0 -5
  354. package/esm/resources/Treasury/FinancialAccounts.d.ts +1 -34
  355. package/esm/resources/Treasury/OutboundPayments.d.ts +0 -8
  356. package/esm/resources/Treasury/OutboundTransfers.d.ts +0 -44
  357. package/esm/resources/Treasury/ReceivedCredits.d.ts +0 -22
  358. package/esm/resources/Treasury/ReceivedDebits.d.ts +0 -26
  359. package/esm/resources/Treasury/index.d.ts +33 -33
  360. package/esm/resources/V2/Billing/index.d.ts +6 -45
  361. package/esm/resources/V2/Billing/index.js +0 -8
  362. package/esm/resources/V2/Billing/index.js.map +1 -1
  363. package/esm/resources/V2/Commerce/ProductCatalog/Imports.d.ts +2 -2
  364. package/esm/resources/V2/Core/AccountLinks.d.ts +4 -4
  365. package/esm/resources/V2/Core/AccountTokens.d.ts +32 -14
  366. package/esm/resources/V2/Core/AccountTokens.js +5 -1
  367. package/esm/resources/V2/Core/AccountTokens.js.map +1 -1
  368. package/esm/resources/V2/Core/Accounts/Persons.d.ts +2 -2
  369. package/esm/resources/V2/Core/Accounts.d.ts +233 -1171
  370. package/esm/resources/V2/Core/Accounts.js +1 -1
  371. package/esm/resources/V2/Core/EventDestinations.d.ts +2 -2
  372. package/esm/resources/V2/Core/Events.d.ts +8 -1126
  373. package/esm/resources/V2/Core/Events.js +2 -1
  374. package/esm/resources/V2/Core/Events.js.map +1 -1
  375. package/esm/resources/V2/Core/index.d.ts +19 -29
  376. package/esm/resources/V2/Core/index.js +0 -4
  377. package/esm/resources/V2/Core/index.js.map +1 -1
  378. package/esm/resources/V2/index.d.ts +0 -27
  379. package/esm/resources/V2/index.js +0 -14
  380. package/esm/resources/V2/index.js.map +1 -1
  381. package/esm/resources/WebhookEndpoints.d.ts +3 -3
  382. package/esm/resources.d.ts +0 -10
  383. package/esm/resources.js +0 -131
  384. package/esm/resources.js.map +1 -1
  385. package/esm/stripe.core.d.ts +29 -69
  386. package/esm/stripe.core.js +15 -32
  387. package/esm/stripe.core.js.map +1 -1
  388. package/esm/stripe.esm.node.d.ts +29 -70
  389. package/esm/stripe.esm.node.js +15 -32
  390. package/esm/stripe.esm.node.js.map +1 -1
  391. package/esm/utils.d.ts +0 -2
  392. package/esm/utils.js +0 -13
  393. package/esm/utils.js.map +1 -1
  394. package/package.json +1 -1
  395. package/cjs/StripeEventNotificationHandler.d.ts +0 -22
  396. package/cjs/StripeEventNotificationHandler.js +0 -147
  397. package/cjs/StripeEventNotificationHandler.js.map +0 -1
  398. package/cjs/resources/AccountNotices.d.ts +0 -140
  399. package/cjs/resources/AccountNotices.js +0 -29
  400. package/cjs/resources/AccountNotices.js.map +0 -1
  401. package/cjs/resources/Billing/Analytics/MeterUsage.d.ts +0 -84
  402. package/cjs/resources/Billing/Analytics/MeterUsage.js +0 -15
  403. package/cjs/resources/Billing/Analytics/MeterUsage.js.map +0 -1
  404. package/cjs/resources/Billing/Analytics/MeterUsageRows.d.ts +0 -32
  405. package/cjs/resources/Billing/Analytics/MeterUsageRows.js +0 -4
  406. package/cjs/resources/Billing/Analytics/MeterUsageRows.js.map +0 -1
  407. package/cjs/resources/Billing/Analytics/index.d.ts +0 -15
  408. package/cjs/resources/Billing/Analytics/index.js +0 -13
  409. package/cjs/resources/Billing/Analytics/index.js.map +0 -1
  410. package/cjs/resources/Capital/FinancingOffers.d.ts +0 -191
  411. package/cjs/resources/Capital/FinancingOffers.js +0 -30
  412. package/cjs/resources/Capital/FinancingOffers.js.map +0 -1
  413. package/cjs/resources/Capital/FinancingSummary.d.ts +0 -98
  414. package/cjs/resources/Capital/FinancingSummary.js +0 -15
  415. package/cjs/resources/Capital/FinancingSummary.js.map +0 -1
  416. package/cjs/resources/Capital/FinancingTransactions.d.ts +0 -143
  417. package/cjs/resources/Capital/FinancingTransactions.js +0 -24
  418. package/cjs/resources/Capital/FinancingTransactions.js.map +0 -1
  419. package/cjs/resources/Capital/index.d.ts +0 -25
  420. package/cjs/resources/Capital/index.js +0 -17
  421. package/cjs/resources/Capital/index.js.map +0 -1
  422. package/cjs/resources/FinancialConnections/AccountInferredBalances.d.ts +0 -24
  423. package/cjs/resources/FinancialConnections/AccountInferredBalances.js +0 -4
  424. package/cjs/resources/FinancialConnections/AccountInferredBalances.js.map +0 -1
  425. package/cjs/resources/FinancialConnections/Authorizations.d.ts +0 -87
  426. package/cjs/resources/FinancialConnections/Authorizations.js +0 -15
  427. package/cjs/resources/FinancialConnections/Authorizations.js.map +0 -1
  428. package/cjs/resources/FinancialConnections/Institutions.d.ts +0 -101
  429. package/cjs/resources/FinancialConnections/Institutions.js +0 -23
  430. package/cjs/resources/FinancialConnections/Institutions.js.map +0 -1
  431. package/cjs/resources/FxQuotes.d.ts +0 -212
  432. package/cjs/resources/FxQuotes.js +0 -29
  433. package/cjs/resources/FxQuotes.js.map +0 -1
  434. package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +0 -640
  435. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -47
  436. package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +0 -1
  437. package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +0 -95
  438. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -23
  439. package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +0 -1
  440. package/cjs/resources/Issuing/FraudLiabilityDebits.d.ts +0 -68
  441. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -23
  442. package/cjs/resources/Issuing/FraudLiabilityDebits.js.map +0 -1
  443. package/cjs/resources/Issuing/Settlements.d.ts +0 -85
  444. package/cjs/resources/Issuing/Settlements.js +0 -4
  445. package/cjs/resources/Issuing/Settlements.js.map +0 -1
  446. package/cjs/resources/Margins.d.ts +0 -115
  447. package/cjs/resources/Margins.js +0 -35
  448. package/cjs/resources/Margins.js.map +0 -1
  449. package/cjs/resources/Orders.d.ts +0 -4693
  450. package/cjs/resources/Orders.js +0 -457
  451. package/cjs/resources/Orders.js.map +0 -1
  452. package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +0 -37
  453. package/cjs/resources/Privacy/RedactionJobValidationErrors.js +0 -4
  454. package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +0 -1
  455. package/cjs/resources/Privacy/RedactionJobs.d.ts +0 -229
  456. package/cjs/resources/Privacy/RedactionJobs.js +0 -73
  457. package/cjs/resources/Privacy/RedactionJobs.js.map +0 -1
  458. package/cjs/resources/Privacy/index.d.ts +0 -22
  459. package/cjs/resources/Privacy/index.js +0 -13
  460. package/cjs/resources/Privacy/index.js.map +0 -1
  461. package/cjs/resources/ProductCatalog/TrialOffers.d.ts +0 -127
  462. package/cjs/resources/ProductCatalog/TrialOffers.js +0 -15
  463. package/cjs/resources/ProductCatalog/TrialOffers.js.map +0 -1
  464. package/cjs/resources/ProductCatalog/index.d.ts +0 -12
  465. package/cjs/resources/ProductCatalog/index.js +0 -13
  466. package/cjs/resources/ProductCatalog/index.js.map +0 -1
  467. package/cjs/resources/QuoteLines.d.ts +0 -507
  468. package/cjs/resources/QuoteLines.js +0 -4
  469. package/cjs/resources/QuoteLines.js.map +0 -1
  470. package/cjs/resources/QuotePreviewInvoices.d.ts +0 -1116
  471. package/cjs/resources/QuotePreviewInvoices.js +0 -4
  472. package/cjs/resources/QuotePreviewInvoices.js.map +0 -1
  473. package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +0 -733
  474. package/cjs/resources/QuotePreviewSubscriptionSchedules.js +0 -4
  475. package/cjs/resources/QuotePreviewSubscriptionSchedules.js.map +0 -1
  476. package/cjs/resources/SharedPayment/GrantedTokens.d.ts +0 -1089
  477. package/cjs/resources/SharedPayment/GrantedTokens.js +0 -15
  478. package/cjs/resources/SharedPayment/GrantedTokens.js.map +0 -1
  479. package/cjs/resources/SharedPayment/IssuedTokens.d.ts +0 -308
  480. package/cjs/resources/SharedPayment/IssuedTokens.js +0 -27
  481. package/cjs/resources/SharedPayment/IssuedTokens.js.map +0 -1
  482. package/cjs/resources/SharedPayment/index.d.ts +0 -19
  483. package/cjs/resources/SharedPayment/index.js +0 -15
  484. package/cjs/resources/SharedPayment/index.js.map +0 -1
  485. package/cjs/resources/Tax/Forms.d.ts +0 -230
  486. package/cjs/resources/Tax/Forms.js +0 -32
  487. package/cjs/resources/Tax/Forms.js.map +0 -1
  488. package/cjs/resources/Tax/Locations.d.ts +0 -108
  489. package/cjs/resources/Tax/Locations.js +0 -33
  490. package/cjs/resources/Tax/Locations.js.map +0 -1
  491. package/cjs/resources/Terminal/ReaderCollectedData.d.ts +0 -52
  492. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -15
  493. package/cjs/resources/Terminal/ReaderCollectedData.js.map +0 -1
  494. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +0 -68
  495. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +0 -21
  496. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +0 -1
  497. package/cjs/resources/TestHelpers/SharedPayment/index.d.ts +0 -8
  498. package/cjs/resources/TestHelpers/SharedPayment/index.js +0 -13
  499. package/cjs/resources/TestHelpers/SharedPayment/index.js.map +0 -1
  500. package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +0 -75
  501. package/cjs/resources/V2/Billing/BillSettingVersions.js +0 -4
  502. package/cjs/resources/V2/Billing/BillSettingVersions.js.map +0 -1
  503. package/cjs/resources/V2/Billing/BillSettings/Versions.d.ts +0 -33
  504. package/cjs/resources/V2/Billing/BillSettings/Versions.js +0 -23
  505. package/cjs/resources/V2/Billing/BillSettings/Versions.js.map +0 -1
  506. package/cjs/resources/V2/Billing/BillSettings.d.ts +0 -284
  507. package/cjs/resources/V2/Billing/BillSettings.js +0 -41
  508. package/cjs/resources/V2/Billing/BillSettings.js.map +0 -1
  509. package/cjs/resources/V2/Billing/Cadences.d.ts +0 -951
  510. package/cjs/resources/V2/Billing/Cadences.js +0 -198
  511. package/cjs/resources/V2/Billing/Cadences.js.map +0 -1
  512. package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +0 -240
  513. package/cjs/resources/V2/Billing/CollectionSettingVersions.js +0 -4
  514. package/cjs/resources/V2/Billing/CollectionSettingVersions.js.map +0 -1
  515. package/cjs/resources/V2/Billing/CollectionSettings/Versions.d.ts +0 -33
  516. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +0 -70
  517. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js.map +0 -1
  518. package/cjs/resources/V2/Billing/CollectionSettings.d.ts +0 -779
  519. package/cjs/resources/V2/Billing/CollectionSettings.js +0 -166
  520. package/cjs/resources/V2/Billing/CollectionSettings.js.map +0 -1
  521. package/cjs/resources/V2/Billing/Profiles.d.ts +0 -166
  522. package/cjs/resources/V2/Billing/Profiles.js +0 -35
  523. package/cjs/resources/V2/Billing/Profiles.js.map +0 -1
  524. package/cjs/resources/V2/Core/BatchJobs.d.ts +0 -373
  525. package/cjs/resources/V2/Core/BatchJobs.js +0 -225
  526. package/cjs/resources/V2/Core/BatchJobs.js.map +0 -1
  527. package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +0 -285
  528. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -54
  529. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +0 -1
  530. package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +0 -254
  531. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -62
  532. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +0 -1
  533. package/cjs/resources/V2/Core/Vault/index.d.ts +0 -28
  534. package/cjs/resources/V2/Core/Vault/index.js +0 -15
  535. package/cjs/resources/V2/Core/Vault/index.js.map +0 -1
  536. package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +0 -156
  537. package/cjs/resources/V2/Data/Reporting/QueryRuns.js +0 -46
  538. package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +0 -1
  539. package/cjs/resources/V2/Data/Reporting/index.d.ts +0 -13
  540. package/cjs/resources/V2/Data/Reporting/index.js +0 -13
  541. package/cjs/resources/V2/Data/Reporting/index.js.map +0 -1
  542. package/cjs/resources/V2/Data/index.d.ts +0 -10
  543. package/cjs/resources/V2/Data/index.js +0 -13
  544. package/cjs/resources/V2/Data/index.js.map +0 -1
  545. package/cjs/resources/V2/EventMisc.d.ts +0 -0
  546. package/cjs/resources/V2/EventMisc.js +0 -2
  547. package/cjs/resources/V2/EventMisc.js.map +0 -1
  548. package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +0 -166
  549. package/cjs/resources/V2/Extend/WorkflowRuns.js +0 -23
  550. package/cjs/resources/V2/Extend/WorkflowRuns.js.map +0 -1
  551. package/cjs/resources/V2/Extend/Workflows.d.ts +0 -123
  552. package/cjs/resources/V2/Extend/Workflows.js +0 -30
  553. package/cjs/resources/V2/Extend/Workflows.js.map +0 -1
  554. package/cjs/resources/V2/Extend/index.d.ts +0 -20
  555. package/cjs/resources/V2/Extend/index.js +0 -15
  556. package/cjs/resources/V2/Extend/index.js.map +0 -1
  557. package/cjs/resources/V2/FinancialAddressCreditSimulations.d.ts +0 -14
  558. package/cjs/resources/V2/FinancialAddressCreditSimulations.js +0 -4
  559. package/cjs/resources/V2/FinancialAddressCreditSimulations.js.map +0 -1
  560. package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -19
  561. package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js +0 -4
  562. package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +0 -1
  563. package/cjs/resources/V2/Iam/ActivityLogs.d.ts +0 -204
  564. package/cjs/resources/V2/Iam/ActivityLogs.js +0 -17
  565. package/cjs/resources/V2/Iam/ActivityLogs.js.map +0 -1
  566. package/cjs/resources/V2/Iam/index.d.ts +0 -12
  567. package/cjs/resources/V2/Iam/index.js +0 -13
  568. package/cjs/resources/V2/Iam/index.js.map +0 -1
  569. package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +0 -135
  570. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -23
  571. package/cjs/resources/V2/MoneyManagement/Adjustments.js.map +0 -1
  572. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.d.ts +0 -244
  573. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -44
  574. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js.map +0 -1
  575. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.d.ts +0 -215
  576. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -31
  577. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js.map +0 -1
  578. package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +0 -254
  579. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -30
  580. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js.map +0 -1
  581. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -212
  582. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -22
  583. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +0 -1
  584. package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +0 -388
  585. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -41
  586. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js.map +0 -1
  587. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -299
  588. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -49
  589. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +0 -1
  590. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +0 -330
  591. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -39
  592. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js.map +0 -1
  593. package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +0 -243
  594. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -44
  595. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +0 -1
  596. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -96
  597. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -17
  598. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +0 -1
  599. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +0 -292
  600. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -23
  601. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js.map +0 -1
  602. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +0 -161
  603. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -23
  604. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js.map +0 -1
  605. package/cjs/resources/V2/MoneyManagement/TransactionEntries.d.ts +0 -165
  606. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -23
  607. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js.map +0 -1
  608. package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +0 -196
  609. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -23
  610. package/cjs/resources/V2/MoneyManagement/Transactions.js.map +0 -1
  611. package/cjs/resources/V2/MoneyManagement/index.d.ts +0 -104
  612. package/cjs/resources/V2/MoneyManagement/index.js +0 -39
  613. package/cjs/resources/V2/MoneyManagement/index.js.map +0 -1
  614. package/cjs/resources/V2/Network/BusinessProfiles.d.ts +0 -96
  615. package/cjs/resources/V2/Network/BusinessProfiles.js +0 -21
  616. package/cjs/resources/V2/Network/BusinessProfiles.js.map +0 -1
  617. package/cjs/resources/V2/Network/index.d.ts +0 -13
  618. package/cjs/resources/V2/Network/index.js +0 -13
  619. package/cjs/resources/V2/Network/index.js.map +0 -1
  620. package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +0 -147
  621. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +0 -41
  622. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +0 -1
  623. package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +0 -16
  624. package/cjs/resources/V2/OrchestratedCommerce/index.js +0 -13
  625. package/cjs/resources/V2/OrchestratedCommerce/index.js.map +0 -1
  626. package/cjs/resources/V2/TestHelpers/FinancialAddresses.d.ts +0 -44
  627. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -23
  628. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js.map +0 -1
  629. package/cjs/resources/V2/TestHelpers/index.d.ts +0 -8
  630. package/cjs/resources/V2/TestHelpers/index.js +0 -13
  631. package/cjs/resources/V2/TestHelpers/index.js.map +0 -1
  632. package/esm/StripeEventNotificationHandler.d.ts +0 -22
  633. package/esm/StripeEventNotificationHandler.js +0 -143
  634. package/esm/StripeEventNotificationHandler.js.map +0 -1
  635. package/esm/resources/AccountNotices.d.ts +0 -140
  636. package/esm/resources/AccountNotices.js +0 -25
  637. package/esm/resources/AccountNotices.js.map +0 -1
  638. package/esm/resources/Billing/Analytics/MeterUsage.d.ts +0 -84
  639. package/esm/resources/Billing/Analytics/MeterUsage.js +0 -11
  640. package/esm/resources/Billing/Analytics/MeterUsage.js.map +0 -1
  641. package/esm/resources/Billing/Analytics/MeterUsageRows.d.ts +0 -32
  642. package/esm/resources/Billing/Analytics/MeterUsageRows.js +0 -3
  643. package/esm/resources/Billing/Analytics/MeterUsageRows.js.map +0 -1
  644. package/esm/resources/Billing/Analytics/index.d.ts +0 -15
  645. package/esm/resources/Billing/Analytics/index.js +0 -9
  646. package/esm/resources/Billing/Analytics/index.js.map +0 -1
  647. package/esm/resources/Capital/FinancingOffers.d.ts +0 -191
  648. package/esm/resources/Capital/FinancingOffers.js +0 -26
  649. package/esm/resources/Capital/FinancingOffers.js.map +0 -1
  650. package/esm/resources/Capital/FinancingSummary.d.ts +0 -98
  651. package/esm/resources/Capital/FinancingSummary.js +0 -11
  652. package/esm/resources/Capital/FinancingSummary.js.map +0 -1
  653. package/esm/resources/Capital/FinancingTransactions.d.ts +0 -143
  654. package/esm/resources/Capital/FinancingTransactions.js +0 -20
  655. package/esm/resources/Capital/FinancingTransactions.js.map +0 -1
  656. package/esm/resources/Capital/index.d.ts +0 -25
  657. package/esm/resources/Capital/index.js +0 -13
  658. package/esm/resources/Capital/index.js.map +0 -1
  659. package/esm/resources/FinancialConnections/AccountInferredBalances.d.ts +0 -24
  660. package/esm/resources/FinancialConnections/AccountInferredBalances.js +0 -3
  661. package/esm/resources/FinancialConnections/AccountInferredBalances.js.map +0 -1
  662. package/esm/resources/FinancialConnections/Authorizations.d.ts +0 -87
  663. package/esm/resources/FinancialConnections/Authorizations.js +0 -11
  664. package/esm/resources/FinancialConnections/Authorizations.js.map +0 -1
  665. package/esm/resources/FinancialConnections/Institutions.d.ts +0 -101
  666. package/esm/resources/FinancialConnections/Institutions.js +0 -19
  667. package/esm/resources/FinancialConnections/Institutions.js.map +0 -1
  668. package/esm/resources/FxQuotes.d.ts +0 -212
  669. package/esm/resources/FxQuotes.js +0 -25
  670. package/esm/resources/FxQuotes.js.map +0 -1
  671. package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +0 -640
  672. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -43
  673. package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +0 -1
  674. package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +0 -95
  675. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -19
  676. package/esm/resources/Issuing/DisputeSettlementDetails.js.map +0 -1
  677. package/esm/resources/Issuing/FraudLiabilityDebits.d.ts +0 -68
  678. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -19
  679. package/esm/resources/Issuing/FraudLiabilityDebits.js.map +0 -1
  680. package/esm/resources/Issuing/Settlements.d.ts +0 -85
  681. package/esm/resources/Issuing/Settlements.js +0 -3
  682. package/esm/resources/Issuing/Settlements.js.map +0 -1
  683. package/esm/resources/Margins.d.ts +0 -115
  684. package/esm/resources/Margins.js +0 -31
  685. package/esm/resources/Margins.js.map +0 -1
  686. package/esm/resources/Orders.d.ts +0 -4693
  687. package/esm/resources/Orders.js +0 -453
  688. package/esm/resources/Orders.js.map +0 -1
  689. package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +0 -37
  690. package/esm/resources/Privacy/RedactionJobValidationErrors.js +0 -3
  691. package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +0 -1
  692. package/esm/resources/Privacy/RedactionJobs.d.ts +0 -229
  693. package/esm/resources/Privacy/RedactionJobs.js +0 -69
  694. package/esm/resources/Privacy/RedactionJobs.js.map +0 -1
  695. package/esm/resources/Privacy/index.d.ts +0 -22
  696. package/esm/resources/Privacy/index.js +0 -9
  697. package/esm/resources/Privacy/index.js.map +0 -1
  698. package/esm/resources/ProductCatalog/TrialOffers.d.ts +0 -127
  699. package/esm/resources/ProductCatalog/TrialOffers.js +0 -11
  700. package/esm/resources/ProductCatalog/TrialOffers.js.map +0 -1
  701. package/esm/resources/ProductCatalog/index.d.ts +0 -12
  702. package/esm/resources/ProductCatalog/index.js +0 -9
  703. package/esm/resources/ProductCatalog/index.js.map +0 -1
  704. package/esm/resources/QuoteLines.d.ts +0 -507
  705. package/esm/resources/QuoteLines.js +0 -3
  706. package/esm/resources/QuoteLines.js.map +0 -1
  707. package/esm/resources/QuotePreviewInvoices.d.ts +0 -1116
  708. package/esm/resources/QuotePreviewInvoices.js +0 -3
  709. package/esm/resources/QuotePreviewInvoices.js.map +0 -1
  710. package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +0 -733
  711. package/esm/resources/QuotePreviewSubscriptionSchedules.js +0 -3
  712. package/esm/resources/QuotePreviewSubscriptionSchedules.js.map +0 -1
  713. package/esm/resources/SharedPayment/GrantedTokens.d.ts +0 -1089
  714. package/esm/resources/SharedPayment/GrantedTokens.js +0 -11
  715. package/esm/resources/SharedPayment/GrantedTokens.js.map +0 -1
  716. package/esm/resources/SharedPayment/IssuedTokens.d.ts +0 -308
  717. package/esm/resources/SharedPayment/IssuedTokens.js +0 -23
  718. package/esm/resources/SharedPayment/IssuedTokens.js.map +0 -1
  719. package/esm/resources/SharedPayment/index.d.ts +0 -19
  720. package/esm/resources/SharedPayment/index.js +0 -11
  721. package/esm/resources/SharedPayment/index.js.map +0 -1
  722. package/esm/resources/Tax/Forms.d.ts +0 -230
  723. package/esm/resources/Tax/Forms.js +0 -28
  724. package/esm/resources/Tax/Forms.js.map +0 -1
  725. package/esm/resources/Tax/Locations.d.ts +0 -108
  726. package/esm/resources/Tax/Locations.js +0 -29
  727. package/esm/resources/Tax/Locations.js.map +0 -1
  728. package/esm/resources/Terminal/ReaderCollectedData.d.ts +0 -52
  729. package/esm/resources/Terminal/ReaderCollectedData.js +0 -11
  730. package/esm/resources/Terminal/ReaderCollectedData.js.map +0 -1
  731. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +0 -68
  732. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +0 -17
  733. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +0 -1
  734. package/esm/resources/TestHelpers/SharedPayment/index.d.ts +0 -8
  735. package/esm/resources/TestHelpers/SharedPayment/index.js +0 -9
  736. package/esm/resources/TestHelpers/SharedPayment/index.js.map +0 -1
  737. package/esm/resources/V2/Billing/BillSettingVersions.d.ts +0 -75
  738. package/esm/resources/V2/Billing/BillSettingVersions.js +0 -3
  739. package/esm/resources/V2/Billing/BillSettingVersions.js.map +0 -1
  740. package/esm/resources/V2/Billing/BillSettings/Versions.d.ts +0 -33
  741. package/esm/resources/V2/Billing/BillSettings/Versions.js +0 -19
  742. package/esm/resources/V2/Billing/BillSettings/Versions.js.map +0 -1
  743. package/esm/resources/V2/Billing/BillSettings.d.ts +0 -284
  744. package/esm/resources/V2/Billing/BillSettings.js +0 -37
  745. package/esm/resources/V2/Billing/BillSettings.js.map +0 -1
  746. package/esm/resources/V2/Billing/Cadences.d.ts +0 -951
  747. package/esm/resources/V2/Billing/Cadences.js +0 -194
  748. package/esm/resources/V2/Billing/Cadences.js.map +0 -1
  749. package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +0 -240
  750. package/esm/resources/V2/Billing/CollectionSettingVersions.js +0 -3
  751. package/esm/resources/V2/Billing/CollectionSettingVersions.js.map +0 -1
  752. package/esm/resources/V2/Billing/CollectionSettings/Versions.d.ts +0 -33
  753. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +0 -66
  754. package/esm/resources/V2/Billing/CollectionSettings/Versions.js.map +0 -1
  755. package/esm/resources/V2/Billing/CollectionSettings.d.ts +0 -779
  756. package/esm/resources/V2/Billing/CollectionSettings.js +0 -162
  757. package/esm/resources/V2/Billing/CollectionSettings.js.map +0 -1
  758. package/esm/resources/V2/Billing/Profiles.d.ts +0 -166
  759. package/esm/resources/V2/Billing/Profiles.js +0 -31
  760. package/esm/resources/V2/Billing/Profiles.js.map +0 -1
  761. package/esm/resources/V2/Core/BatchJobs.d.ts +0 -373
  762. package/esm/resources/V2/Core/BatchJobs.js +0 -221
  763. package/esm/resources/V2/Core/BatchJobs.js.map +0 -1
  764. package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +0 -285
  765. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -50
  766. package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +0 -1
  767. package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +0 -254
  768. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -58
  769. package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +0 -1
  770. package/esm/resources/V2/Core/Vault/index.d.ts +0 -28
  771. package/esm/resources/V2/Core/Vault/index.js +0 -11
  772. package/esm/resources/V2/Core/Vault/index.js.map +0 -1
  773. package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +0 -156
  774. package/esm/resources/V2/Data/Reporting/QueryRuns.js +0 -42
  775. package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +0 -1
  776. package/esm/resources/V2/Data/Reporting/index.d.ts +0 -13
  777. package/esm/resources/V2/Data/Reporting/index.js +0 -9
  778. package/esm/resources/V2/Data/Reporting/index.js.map +0 -1
  779. package/esm/resources/V2/Data/index.d.ts +0 -10
  780. package/esm/resources/V2/Data/index.js +0 -9
  781. package/esm/resources/V2/Data/index.js.map +0 -1
  782. package/esm/resources/V2/EventMisc.d.ts +0 -0
  783. package/esm/resources/V2/EventMisc.js +0 -2
  784. package/esm/resources/V2/EventMisc.js.map +0 -1
  785. package/esm/resources/V2/Extend/WorkflowRuns.d.ts +0 -166
  786. package/esm/resources/V2/Extend/WorkflowRuns.js +0 -19
  787. package/esm/resources/V2/Extend/WorkflowRuns.js.map +0 -1
  788. package/esm/resources/V2/Extend/Workflows.d.ts +0 -123
  789. package/esm/resources/V2/Extend/Workflows.js +0 -26
  790. package/esm/resources/V2/Extend/Workflows.js.map +0 -1
  791. package/esm/resources/V2/Extend/index.d.ts +0 -20
  792. package/esm/resources/V2/Extend/index.js +0 -11
  793. package/esm/resources/V2/Extend/index.js.map +0 -1
  794. package/esm/resources/V2/FinancialAddressCreditSimulations.d.ts +0 -14
  795. package/esm/resources/V2/FinancialAddressCreditSimulations.js +0 -3
  796. package/esm/resources/V2/FinancialAddressCreditSimulations.js.map +0 -1
  797. package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -19
  798. package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js +0 -3
  799. package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +0 -1
  800. package/esm/resources/V2/Iam/ActivityLogs.d.ts +0 -204
  801. package/esm/resources/V2/Iam/ActivityLogs.js +0 -13
  802. package/esm/resources/V2/Iam/ActivityLogs.js.map +0 -1
  803. package/esm/resources/V2/Iam/index.d.ts +0 -12
  804. package/esm/resources/V2/Iam/index.js +0 -9
  805. package/esm/resources/V2/Iam/index.js.map +0 -1
  806. package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +0 -135
  807. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -19
  808. package/esm/resources/V2/MoneyManagement/Adjustments.js.map +0 -1
  809. package/esm/resources/V2/MoneyManagement/FinancialAccounts.d.ts +0 -244
  810. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -40
  811. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js.map +0 -1
  812. package/esm/resources/V2/MoneyManagement/FinancialAddresses.d.ts +0 -215
  813. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -27
  814. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js.map +0 -1
  815. package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +0 -254
  816. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -26
  817. package/esm/resources/V2/MoneyManagement/InboundTransfers.js.map +0 -1
  818. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -212
  819. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -18
  820. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +0 -1
  821. package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +0 -388
  822. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -37
  823. package/esm/resources/V2/MoneyManagement/OutboundPayments.js.map +0 -1
  824. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -299
  825. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -45
  826. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +0 -1
  827. package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +0 -330
  828. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -35
  829. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js.map +0 -1
  830. package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +0 -243
  831. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -40
  832. package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +0 -1
  833. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -96
  834. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -13
  835. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +0 -1
  836. package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +0 -292
  837. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -19
  838. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js.map +0 -1
  839. package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +0 -161
  840. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -19
  841. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js.map +0 -1
  842. package/esm/resources/V2/MoneyManagement/TransactionEntries.d.ts +0 -165
  843. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -19
  844. package/esm/resources/V2/MoneyManagement/TransactionEntries.js.map +0 -1
  845. package/esm/resources/V2/MoneyManagement/Transactions.d.ts +0 -196
  846. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -19
  847. package/esm/resources/V2/MoneyManagement/Transactions.js.map +0 -1
  848. package/esm/resources/V2/MoneyManagement/index.d.ts +0 -104
  849. package/esm/resources/V2/MoneyManagement/index.js +0 -35
  850. package/esm/resources/V2/MoneyManagement/index.js.map +0 -1
  851. package/esm/resources/V2/Network/BusinessProfiles.d.ts +0 -96
  852. package/esm/resources/V2/Network/BusinessProfiles.js +0 -17
  853. package/esm/resources/V2/Network/BusinessProfiles.js.map +0 -1
  854. package/esm/resources/V2/Network/index.d.ts +0 -13
  855. package/esm/resources/V2/Network/index.js +0 -9
  856. package/esm/resources/V2/Network/index.js.map +0 -1
  857. package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +0 -147
  858. package/esm/resources/V2/OrchestratedCommerce/Agreements.js +0 -37
  859. package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +0 -1
  860. package/esm/resources/V2/OrchestratedCommerce/index.d.ts +0 -16
  861. package/esm/resources/V2/OrchestratedCommerce/index.js +0 -9
  862. package/esm/resources/V2/OrchestratedCommerce/index.js.map +0 -1
  863. package/esm/resources/V2/TestHelpers/FinancialAddresses.d.ts +0 -44
  864. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -19
  865. package/esm/resources/V2/TestHelpers/FinancialAddresses.js.map +0 -1
  866. package/esm/resources/V2/TestHelpers/index.d.ts +0 -8
  867. package/esm/resources/V2/TestHelpers/index.js +0 -9
  868. package/esm/resources/V2/TestHelpers/index.js.map +0 -1
@@ -1,1116 +0,0 @@
1
- import { TaxId, DeletedTaxId } from './TaxIds.js';
2
- import { Application, DeletedApplication } from './Applications.js';
3
- import { Margin } from './Margins.js';
4
- import { PaymentMethod } from './PaymentMethods.js';
5
- import { CustomerSource } from './CustomerSources.js';
6
- import { TaxRate } from './TaxRates.js';
7
- import { Discount, DeletedDiscount } from './Discounts.js';
8
- import { Invoice } from './Invoices.js';
9
- import { InvoiceLineItem } from './InvoiceLineItems.js';
10
- import { Account } from './Accounts.js';
11
- import { InvoicePayment } from './InvoicePayments.js';
12
- import { Subscription } from './Subscriptions.js';
13
- import { PaymentIntent } from './PaymentIntents.js';
14
- import { SetupIntent } from './SetupIntents.js';
15
- import { ShippingRate } from './ShippingRates.js';
16
- import * as TestHelpers from './TestHelpers/index.js';
17
- import * as Billing from './Billing/index.js';
18
- import { Address, Metadata } from '../shared.js';
19
- import { ApiList } from '../lib.js';
20
- export interface QuotePreviewInvoice {
21
- /**
22
- * Unique identifier for the object. For preview invoices created using the [create preview](https://stripe.com/docs/api/invoices/create_preview) endpoint, this id will be prefixed with `upcoming_in`.
23
- */
24
- id: string;
25
- /**
26
- * String representing the object's type. Objects of the same type share the same value.
27
- */
28
- object: 'quote_preview_invoice';
29
- /**
30
- * The country of the business associated with this invoice, most often the business creating the invoice.
31
- */
32
- account_country: string | null;
33
- /**
34
- * The public name of the business associated with this invoice, most often the business creating the invoice.
35
- */
36
- account_name: string | null;
37
- /**
38
- * The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
39
- */
40
- account_tax_ids: Array<string | TaxId | DeletedTaxId> | null;
41
- /**
42
- * Final amount due at this time for this invoice. If the invoice's total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the `amount_due` may be 0. If there is a positive `starting_balance` for the invoice (the customer owes money), the `amount_due` will also take that into account. The charge that gets generated for the invoice will be for the amount specified in `amount_due`.
43
- */
44
- amount_due: number;
45
- /**
46
- * Amount that was overpaid on the invoice. The amount overpaid is credited to the customer's credit balance.
47
- */
48
- amount_overpaid: number;
49
- /**
50
- * The amount, in cents (or local equivalent), that was paid.
51
- */
52
- amount_paid: number;
53
- /**
54
- * The difference between amount_due and amount_paid, in cents (or local equivalent).
55
- */
56
- amount_remaining: number;
57
- /**
58
- * This is the sum of all the shipping amounts.
59
- */
60
- amount_shipping: number;
61
- /**
62
- * List of expected payments and corresponding due dates. This value will be null for invoices where collection_method=charge_automatically.
63
- */
64
- amounts_due?: Array<QuotePreviewInvoice.AmountsDue> | null;
65
- /**
66
- * ID of the Connect Application that created the invoice.
67
- */
68
- application: string | Application | DeletedApplication | null;
69
- applies_to: QuotePreviewInvoice.AppliesTo;
70
- /**
71
- * Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule. If a failure is returned with a non-retryable return code, the invoice can no longer be retried unless a new payment method is obtained. Retries will continue to be scheduled, and attempt_count will continue to increment, but retries will only be executed if a new payment method is obtained.
72
- */
73
- attempt_count: number;
74
- /**
75
- * Whether an attempt has been made to pay the invoice. An invoice is not attempted until 1 hour after the `invoice.created` webhook, for example, so you might not want to display that invoice as unpaid to your users.
76
- */
77
- attempted: boolean;
78
- automatic_tax: QuotePreviewInvoice.AutomaticTax;
79
- /**
80
- * The time when this invoice is currently scheduled to be automatically finalized. The field will be `null` if the invoice is not scheduled to finalize in the future. If the invoice is not in the draft state, this field will always be `null` - see `finalized_at` for the time when an already-finalized invoice was finalized.
81
- */
82
- automatically_finalizes_at: number | null;
83
- /**
84
- * Indicates the reason why the invoice was created.
85
- *
86
- * * `manual`: Unrelated to a subscription, for example, created via the invoice editor.
87
- * * `subscription`: No longer in use. Applies to subscriptions from before May 2018 where no distinction was made between updates, cycles, and thresholds.
88
- * * `subscription_create`: A new subscription was created.
89
- * * `subscription_cycle`: A subscription advanced into a new period.
90
- * * `subscription_threshold`: A subscription reached a billing threshold.
91
- * * `subscription_update`: A subscription was updated.
92
- * * `upcoming`: Reserved for upcoming invoices created through the Create Preview Invoice API or when an `invoice.upcoming` event is generated for an upcoming invoice on a subscription.
93
- */
94
- billing_reason: QuotePreviewInvoice.BillingReason | null;
95
- /**
96
- * Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions.
97
- */
98
- collection_method: QuotePreviewInvoice.CollectionMethod;
99
- /**
100
- * The confirmation secret associated with this invoice. Currently, this contains the client_secret of the PaymentIntent that Stripe creates during invoice finalization.
101
- */
102
- confirmation_secret?: QuotePreviewInvoice.ConfirmationSecret | null;
103
- /**
104
- * Time at which the object was created. Measured in seconds since the Unix epoch.
105
- */
106
- created: number;
107
- /**
108
- * 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).
109
- */
110
- currency: string;
111
- /**
112
- * Custom fields displayed on the invoice.
113
- */
114
- custom_fields: Array<QuotePreviewInvoice.CustomField> | null;
115
- /**
116
- * The ID of the account representing the customer to bill.
117
- */
118
- customer_account: string | null;
119
- /**
120
- * The customer's address. Until the invoice is finalized, this field will equal `customer.address`. Once the invoice is finalized, this field will no longer be updated.
121
- */
122
- customer_address: Address | null;
123
- /**
124
- * The customer's email. Until the invoice is finalized, this field will equal `customer.email`. Once the invoice is finalized, this field will no longer be updated.
125
- */
126
- customer_email: string | null;
127
- /**
128
- * The customer's name. Until the invoice is finalized, this field will equal `customer.name`. Once the invoice is finalized, this field will no longer be updated.
129
- */
130
- customer_name: string | null;
131
- /**
132
- * The customer's phone number. Until the invoice is finalized, this field will equal `customer.phone`. Once the invoice is finalized, this field will no longer be updated.
133
- */
134
- customer_phone: string | null;
135
- /**
136
- * The customer's shipping information. Until the invoice is finalized, this field will equal `customer.shipping`. Once the invoice is finalized, this field will no longer be updated.
137
- */
138
- customer_shipping: QuotePreviewInvoice.CustomerShipping | null;
139
- /**
140
- * The customer's tax exempt status. Until the invoice is finalized, this field will equal `customer.tax_exempt`. Once the invoice is finalized, this field will no longer be updated.
141
- */
142
- customer_tax_exempt: QuotePreviewInvoice.CustomerTaxExempt | null;
143
- /**
144
- * The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as `customer.tax_ids`. Once the invoice is finalized, this field will no longer be updated.
145
- */
146
- customer_tax_ids?: Array<QuotePreviewInvoice.CustomerTaxId> | null;
147
- /**
148
- * The margins applied to the invoice. Can be overridden by line item `margins`. Use `expand[]=default_margins` to expand each margin.
149
- */
150
- default_margins?: Array<string | Margin> | null;
151
- /**
152
- * ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
153
- */
154
- default_payment_method: string | PaymentMethod | null;
155
- /**
156
- * ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source.
157
- */
158
- default_source: string | CustomerSource | null;
159
- /**
160
- * The tax rates applied to this invoice, if any.
161
- */
162
- default_tax_rates: Array<TaxRate>;
163
- /**
164
- * An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.
165
- */
166
- description: string | null;
167
- /**
168
- * The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount.
169
- */
170
- discounts: Array<string | Discount | DeletedDiscount>;
171
- /**
172
- * The date on which payment for this invoice is due. This value will be `null` for invoices where `collection_method=charge_automatically`.
173
- */
174
- due_date: number | null;
175
- /**
176
- * The date when this invoice is in effect. Same as `finalized_at` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the invoice PDF and receipt.
177
- */
178
- effective_at: number | null;
179
- /**
180
- * Ending customer balance after the invoice is finalized. Invoices are finalized approximately an hour after successful webhook delivery or when payment collection is attempted for the invoice. If the invoice has not been finalized yet, this will be null.
181
- */
182
- ending_balance: number | null;
183
- /**
184
- * Footer displayed on the invoice.
185
- */
186
- footer: string | null;
187
- /**
188
- * Details of the invoice that was cloned. See the [revision documentation](https://docs.stripe.com/invoicing/invoice-revisions) for more details.
189
- */
190
- from_invoice: QuotePreviewInvoice.FromInvoice | null;
191
- issuer: QuotePreviewInvoice.Issuer;
192
- /**
193
- * The error encountered during the previous attempt to finalize the invoice. This field is cleared when the invoice is successfully finalized.
194
- */
195
- last_finalization_error: QuotePreviewInvoice.LastFinalizationError | null;
196
- /**
197
- * The ID of the most recent non-draft revision of this invoice
198
- */
199
- latest_revision: string | Invoice | null;
200
- /**
201
- * The individual line items that make up the invoice. `lines` is sorted as follows: (1) pending invoice items (including prorations) in reverse chronological order, (2) subscription items in reverse chronological order, and (3) invoice items added after invoice creation in chronological order.
202
- */
203
- lines: ApiList<InvoiceLineItem>;
204
- /**
205
- * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
206
- */
207
- livemode: boolean;
208
- /**
209
- * 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.
210
- */
211
- metadata: Metadata | null;
212
- /**
213
- * The time at which payment will next be attempted. This value will be `null` for invoices where `collection_method=send_invoice`.
214
- */
215
- next_payment_attempt: number | null;
216
- /**
217
- * A unique, identifying string that appears on emails sent to the customer for this invoice. This starts with the customer's unique invoice_prefix if it is specified.
218
- */
219
- number: string | null;
220
- /**
221
- * The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://docs.stripe.com/billing/invoices/connect) documentation for details.
222
- */
223
- on_behalf_of: string | Account | null;
224
- /**
225
- * The parent that generated this invoice
226
- */
227
- parent: QuotePreviewInvoice.Parent | null;
228
- payment_settings: QuotePreviewInvoice.PaymentSettings;
229
- /**
230
- * Payments for this invoice. Use [invoice payment](https://docs.stripe.com/api/invoice-payment) to get more details.
231
- */
232
- payments?: ApiList<InvoicePayment>;
233
- /**
234
- * The latest timestamp at which invoice items can be associated with this invoice. Use the [line item period](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price.
235
- */
236
- period_end: number;
237
- /**
238
- * The earliest timestamp at which invoice items can be associated with this invoice. Use the [line item period](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price.
239
- */
240
- period_start: number;
241
- /**
242
- * Total amount of all post-payment credit notes issued for this invoice.
243
- */
244
- post_payment_credit_notes_amount: number;
245
- /**
246
- * Total amount of all pre-payment credit notes issued for this invoice.
247
- */
248
- pre_payment_credit_notes_amount: number;
249
- /**
250
- * This is the transaction number that appears on email receipts sent for this invoice.
251
- */
252
- receipt_number: string | null;
253
- /**
254
- * The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page.
255
- */
256
- rendering: QuotePreviewInvoice.Rendering | null;
257
- /**
258
- * The details of the cost of shipping, including the ShippingRate applied on the invoice.
259
- */
260
- shipping_cost: QuotePreviewInvoice.ShippingCost | null;
261
- /**
262
- * Shipping details for the invoice. The Invoice PDF will use the `shipping_details` value if it is set, otherwise the PDF will render the shipping address from the customer.
263
- */
264
- shipping_details: QuotePreviewInvoice.ShippingDetails | null;
265
- /**
266
- * Starting customer balance before the invoice is finalized. If the invoice has not been finalized yet, this will be the current customer balance. For revision invoices, this also includes any customer balance that was applied to the original invoice.
267
- */
268
- starting_balance: number;
269
- /**
270
- * Extra information about an invoice for the customer's credit card statement.
271
- */
272
- statement_descriptor: string | null;
273
- /**
274
- * The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. [Learn more](https://docs.stripe.com/billing/invoices/workflow#workflow-overview)
275
- */
276
- status: QuotePreviewInvoice.Status | null;
277
- status_transitions: QuotePreviewInvoice.StatusTransitions;
278
- subscription: string | Subscription | null;
279
- /**
280
- * Total of all subscriptions, invoice items, and prorations on the invoice before any invoice level discount or exclusive tax is applied. Item discounts are already incorporated
281
- */
282
- subtotal: number;
283
- /**
284
- * The integer amount in cents (or local equivalent) representing the subtotal of the invoice before any invoice level discount or tax is applied. Item discounts are already incorporated
285
- */
286
- subtotal_excluding_tax: number | null;
287
- /**
288
- * ID of the test clock this invoice belongs to.
289
- */
290
- test_clock: string | TestHelpers.TestClock | null;
291
- threshold_reason?: QuotePreviewInvoice.ThresholdReason;
292
- /**
293
- * Total after discounts and taxes.
294
- */
295
- total: number;
296
- /**
297
- * The aggregate amounts calculated per discount across all line items.
298
- */
299
- total_discount_amounts: Array<QuotePreviewInvoice.TotalDiscountAmount> | null;
300
- /**
301
- * The integer amount in cents (or local equivalent) representing the total amount of the invoice including all discounts but excluding all tax.
302
- */
303
- total_excluding_tax: number | null;
304
- /**
305
- * The aggregate amounts calculated per margin across all line items.
306
- */
307
- total_margin_amounts?: Array<QuotePreviewInvoice.TotalMarginAmount> | null;
308
- /**
309
- * Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this invoice. This is a combined list of total_pretax_credit_amounts across all invoice line items.
310
- */
311
- total_pretax_credit_amounts: Array<QuotePreviewInvoice.TotalPretaxCreditAmount> | null;
312
- /**
313
- * The aggregate tax information of all line items.
314
- */
315
- total_taxes: Array<QuotePreviewInvoice.TotalTax> | null;
316
- /**
317
- * Invoices are automatically paid or sent 1 hour after webhooks are delivered, or until all webhook delivery attempts have [been exhausted](https://docs.stripe.com/billing/webhooks#understand). This field tracks the time when webhooks for this invoice were successfully delivered. If the invoice had no webhooks to deliver, this will be set while the invoice is being created.
318
- */
319
- webhooks_delivered_at: number | null;
320
- }
321
- export declare namespace QuotePreviewInvoice {
322
- interface AmountsDue {
323
- /**
324
- * Incremental amount due for this payment in cents (or local equivalent).
325
- */
326
- amount: number;
327
- /**
328
- * The amount in cents (or local equivalent) that was paid for this payment.
329
- */
330
- amount_paid: number;
331
- /**
332
- * The difference between the payment's amount and amount_paid, in cents (or local equivalent).
333
- */
334
- amount_remaining: number;
335
- /**
336
- * Number of days from when invoice is finalized until the payment is due.
337
- */
338
- days_until_due: number | null;
339
- /**
340
- * An arbitrary string attached to the object. Often useful for displaying to users.
341
- */
342
- description: string | null;
343
- /**
344
- * Date on which a payment plan's payment is due.
345
- */
346
- due_date: number | null;
347
- /**
348
- * Timestamp when the payment was paid.
349
- */
350
- paid_at: number | null;
351
- /**
352
- * The status of the payment, one of `open`, `paid`, or `past_due`
353
- */
354
- status: AmountsDue.Status;
355
- }
356
- interface AppliesTo {
357
- /**
358
- * 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.
359
- */
360
- new_reference: string | null;
361
- /**
362
- * The ID of the schedule the line applies to.
363
- */
364
- subscription_schedule: string | null;
365
- /**
366
- * Describes whether the quote line is affecting a new schedule or an existing schedule.
367
- */
368
- type: AppliesTo.Type;
369
- }
370
- interface AutomaticTax {
371
- /**
372
- * If Stripe disabled automatic tax, this enum describes why.
373
- */
374
- disabled_reason: AutomaticTax.DisabledReason | null;
375
- /**
376
- * Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://docs.stripe.com/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.
377
- */
378
- enabled: boolean;
379
- /**
380
- * 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.
381
- */
382
- liability: AutomaticTax.Liability | null;
383
- /**
384
- * The tax provider powering automatic tax.
385
- */
386
- provider: string | null;
387
- /**
388
- * The status of the most recent automated tax calculation for this invoice.
389
- */
390
- status: AutomaticTax.Status | null;
391
- }
392
- type BillingReason = 'automatic_pending_invoice_item_invoice' | 'manual' | 'quote_accept' | 'subscription' | 'subscription_create' | 'subscription_cycle' | 'subscription_threshold' | 'subscription_update' | 'upcoming';
393
- type CollectionMethod = 'charge_automatically' | 'send_invoice';
394
- interface ConfirmationSecret {
395
- /**
396
- * The client_secret of the payment that Stripe creates for the invoice after finalization.
397
- */
398
- client_secret: string;
399
- /**
400
- * The type of client_secret. Currently this is always payment_intent, referencing the default payment_intent that Stripe creates during invoice finalization
401
- */
402
- type: string;
403
- }
404
- interface CustomField {
405
- /**
406
- * The name of the custom field.
407
- */
408
- name: string;
409
- /**
410
- * The value of the custom field.
411
- */
412
- value: string;
413
- }
414
- interface CustomerShipping {
415
- address?: Address;
416
- /**
417
- * The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
418
- */
419
- carrier?: string | null;
420
- /**
421
- * Recipient name.
422
- */
423
- name?: string;
424
- /**
425
- * Recipient phone (including extension).
426
- */
427
- phone?: string | null;
428
- /**
429
- * The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
430
- */
431
- tracking_number?: string | null;
432
- }
433
- type CustomerTaxExempt = 'exempt' | 'none' | 'reverse';
434
- interface CustomerTaxId {
435
- /**
436
- * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
437
- */
438
- type: CustomerTaxId.Type;
439
- /**
440
- * The value of the tax ID.
441
- */
442
- value: string | null;
443
- }
444
- interface FromInvoice {
445
- /**
446
- * The relation between this invoice and the cloned invoice
447
- */
448
- action: string;
449
- /**
450
- * The invoice that was cloned.
451
- */
452
- invoice: string | Invoice;
453
- }
454
- interface Issuer {
455
- /**
456
- * The connected account being referenced when `type` is `account`.
457
- */
458
- account?: string | Account;
459
- /**
460
- * Type of the account referenced.
461
- */
462
- type: Issuer.Type;
463
- }
464
- interface LastFinalizationError {
465
- /**
466
- * For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines) if they provide one.
467
- */
468
- advice_code?: string;
469
- /**
470
- * For card errors, the ID of the failed charge.
471
- */
472
- charge?: string;
473
- /**
474
- * For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported.
475
- */
476
- code?: LastFinalizationError.Code;
477
- /**
478
- * For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://docs.stripe.com/declines#issuer-declines) if they provide one.
479
- */
480
- decline_code?: string;
481
- /**
482
- * A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported.
483
- */
484
- doc_url?: string;
485
- /**
486
- * A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
487
- */
488
- message?: string;
489
- /**
490
- * For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
491
- */
492
- network_advice_code?: string;
493
- /**
494
- * For payments declined by the network, an alphanumeric code which indicates the reason the payment failed.
495
- */
496
- network_decline_code?: string;
497
- /**
498
- * If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.
499
- */
500
- param?: string;
501
- /**
502
- * A PaymentIntent guides you through the process of collecting a payment from your customer.
503
- * We recommend that you create exactly one PaymentIntent for each order or
504
- * customer session in your system. You can reference the PaymentIntent later to
505
- * see the history of payment attempts for a particular session.
506
- *
507
- * A PaymentIntent transitions through
508
- * [multiple statuses](https://docs.stripe.com/payments/paymentintents/lifecycle)
509
- * throughout its lifetime as it interfaces with Stripe.js to perform
510
- * authentication flows and ultimately creates at most one successful charge.
511
- *
512
- * Related guide: [Payment Intents API](https://docs.stripe.com/payments/payment-intents)
513
- */
514
- payment_intent?: PaymentIntent;
515
- /**
516
- * PaymentMethod objects represent your customer's payment instruments.
517
- * You can use them with [PaymentIntents](https://docs.stripe.com/payments/payment-intents) to collect payments or save them to
518
- * Customer objects to store instrument details for future payments.
519
- *
520
- * Related guides: [Payment Methods](https://docs.stripe.com/payments/payment-methods) and [More Payment Scenarios](https://docs.stripe.com/payments/more-payment-scenarios).
521
- */
522
- payment_method?: PaymentMethod;
523
- /**
524
- * If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors.
525
- */
526
- payment_method_type?: string;
527
- /**
528
- * A URL to the request log entry in your dashboard.
529
- */
530
- request_log_url?: string;
531
- /**
532
- * A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments.
533
- * For example, you can use a SetupIntent to set up and save your customer's card without immediately collecting a payment.
534
- * Later, you can use [PaymentIntents](https://api.stripe.com#payment_intents) to drive the payment flow.
535
- *
536
- * Create a SetupIntent when you're ready to collect your customer's payment credentials.
537
- * Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid.
538
- * The SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides
539
- * you through the setup process.
540
- *
541
- * Successful SetupIntents result in payment credentials that are optimized for future payments.
542
- * For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through
543
- * [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection
544
- * to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents).
545
- * If you use the SetupIntent with a [Customer](https://api.stripe.com#setup_intent_object-customer),
546
- * it automatically attaches the resulting payment method to that Customer after successful setup.
547
- * We recommend using SetupIntents or [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) on
548
- * PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods.
549
- *
550
- * By using SetupIntents, you can reduce friction for your customers, even as regulations change over time.
551
- *
552
- * Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents)
553
- */
554
- setup_intent?: SetupIntent;
555
- source?: CustomerSource;
556
- /**
557
- * The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`
558
- */
559
- type: LastFinalizationError.Type;
560
- }
561
- interface Parent {
562
- /**
563
- * Details about the quote that generated this invoice
564
- */
565
- quote_details: Parent.QuoteDetails | null;
566
- /**
567
- * Details about the subscription that generated this invoice
568
- */
569
- subscription_details: Parent.SubscriptionDetails | null;
570
- /**
571
- * The type of parent that generated this invoice
572
- */
573
- type: Parent.Type;
574
- }
575
- interface PaymentSettings {
576
- /**
577
- * ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set.
578
- */
579
- default_mandate: string | null;
580
- /**
581
- * Payment-method-specific configuration to provide to the invoice's PaymentIntent.
582
- */
583
- payment_method_options: PaymentSettings.PaymentMethodOptions | null;
584
- /**
585
- * The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
586
- */
587
- payment_method_types: Array<PaymentSettings.PaymentMethodType> | null;
588
- }
589
- interface Rendering {
590
- /**
591
- * How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
592
- */
593
- amount_tax_display: string | null;
594
- /**
595
- * Invoice pdf rendering options
596
- */
597
- pdf: Rendering.Pdf | null;
598
- /**
599
- * ID of the rendering template that the invoice is formatted by.
600
- */
601
- template: string | null;
602
- /**
603
- * Version of the rendering template that the invoice is using.
604
- */
605
- template_version: number | null;
606
- }
607
- interface ShippingCost {
608
- /**
609
- * Total shipping cost before any taxes are applied.
610
- */
611
- amount_subtotal: number;
612
- /**
613
- * Total tax amount applied due to shipping costs. If no tax was applied, defaults to 0.
614
- */
615
- amount_tax: number;
616
- /**
617
- * Total shipping cost after taxes are applied.
618
- */
619
- amount_total: number;
620
- /**
621
- * The ID of the ShippingRate for this invoice.
622
- */
623
- shipping_rate: string | ShippingRate | null;
624
- /**
625
- * The taxes applied to the shipping rate.
626
- */
627
- taxes?: Array<ShippingCost.Tax>;
628
- }
629
- interface ShippingDetails {
630
- address?: Address;
631
- /**
632
- * The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
633
- */
634
- carrier?: string | null;
635
- /**
636
- * Recipient name.
637
- */
638
- name?: string;
639
- /**
640
- * Recipient phone (including extension).
641
- */
642
- phone?: string | null;
643
- /**
644
- * The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
645
- */
646
- tracking_number?: string | null;
647
- }
648
- type Status = 'draft' | 'open' | 'paid' | 'uncollectible' | 'void';
649
- interface StatusTransitions {
650
- /**
651
- * The time that the invoice draft was finalized.
652
- */
653
- finalized_at: number | null;
654
- /**
655
- * The time that the invoice was marked uncollectible.
656
- */
657
- marked_uncollectible_at: number | null;
658
- /**
659
- * The time that the invoice was paid.
660
- */
661
- paid_at: number | null;
662
- /**
663
- * The time that the invoice was voided.
664
- */
665
- voided_at: number | null;
666
- }
667
- interface ThresholdReason {
668
- /**
669
- * The total invoice amount threshold boundary if it triggered the threshold invoice.
670
- */
671
- amount_gte: number | null;
672
- /**
673
- * Indicates which line items triggered a threshold invoice.
674
- */
675
- item_reasons: Array<ThresholdReason.ItemReason>;
676
- }
677
- interface TotalDiscountAmount {
678
- /**
679
- * The amount, in cents (or local equivalent), of the discount.
680
- */
681
- amount: number;
682
- /**
683
- * The discount that was applied to get this discount amount.
684
- */
685
- discount: string | Discount | DeletedDiscount;
686
- }
687
- interface TotalMarginAmount {
688
- /**
689
- * The amount, in cents (or local equivalent), of the reduction in line item amount.
690
- */
691
- amount: number;
692
- /**
693
- * The margin that was applied to get this margin amount.
694
- */
695
- margin: string | Margin;
696
- }
697
- interface TotalPretaxCreditAmount {
698
- /**
699
- * The amount, in cents (or local equivalent), of the pretax credit amount.
700
- */
701
- amount: number;
702
- /**
703
- * The credit balance transaction that was applied to get this pretax credit amount.
704
- */
705
- credit_balance_transaction?: string | Billing.CreditBalanceTransaction | null;
706
- /**
707
- * The discount that was applied to get this pretax credit amount.
708
- */
709
- discount?: string | Discount | DeletedDiscount;
710
- /**
711
- * The margin that was applied to get this pretax credit amount.
712
- */
713
- margin?: string | Margin;
714
- /**
715
- * Type of the pretax credit amount referenced.
716
- */
717
- type: TotalPretaxCreditAmount.Type;
718
- }
719
- interface TotalTax {
720
- /**
721
- * The amount of the tax, in cents (or local equivalent).
722
- */
723
- amount: number;
724
- /**
725
- * Whether this tax is inclusive or exclusive.
726
- */
727
- tax_behavior: TotalTax.TaxBehavior;
728
- /**
729
- * Additional details about the tax rate. Only present when `type` is `tax_rate_details`.
730
- */
731
- tax_rate_details: TotalTax.TaxRateDetails | null;
732
- /**
733
- * The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
734
- */
735
- taxability_reason: TotalTax.TaxabilityReason;
736
- /**
737
- * The amount on which tax is calculated, in cents (or local equivalent).
738
- */
739
- taxable_amount: number | null;
740
- /**
741
- * The type of tax information.
742
- */
743
- type: 'tax_rate_details';
744
- }
745
- namespace AmountsDue {
746
- type Status = 'open' | 'paid' | 'past_due';
747
- }
748
- namespace AppliesTo {
749
- type Type = 'new_reference' | 'subscription_schedule';
750
- }
751
- namespace AutomaticTax {
752
- type DisabledReason = 'finalization_requires_location_inputs' | 'finalization_system_error';
753
- interface Liability {
754
- /**
755
- * The connected account being referenced when `type` is `account`.
756
- */
757
- account?: string | Account;
758
- /**
759
- * Type of the account referenced.
760
- */
761
- type: Liability.Type;
762
- }
763
- type Status = 'complete' | 'failed' | 'requires_location_inputs';
764
- namespace Liability {
765
- type Type = 'account' | 'self';
766
- }
767
- }
768
- namespace CustomerTaxId {
769
- type Type = 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'fo_vat' | 'gb_vat' | 'ge_vat' | 'gi_tin' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'it_cf' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'lk_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'pl_nip' | 'py_ruc' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin';
770
- }
771
- namespace Issuer {
772
- type Type = 'account' | 'self';
773
- }
774
- namespace LastFinalizationError {
775
- type Code = 'account_closed' | 'account_country_invalid_address' | 'account_error_country_change_requires_additional_steps' | 'account_information_mismatch' | 'account_invalid' | 'account_number_invalid' | 'account_token_required_for_v2_account' | 'acss_debit_session_incomplete' | 'action_blocked' | 'alipay_upgrade_required' | 'amount_too_large' | 'amount_too_small' | 'api_key_expired' | 'application_fees_not_allowed' | 'approval_required' | 'authentication_required' | 'balance_insufficient' | 'balance_invalid_parameter' | 'bank_account_bad_routing_numbers' | 'bank_account_declined' | 'bank_account_exists' | 'bank_account_restricted' | 'bank_account_unusable' | 'bank_account_unverified' | 'bank_account_verification_failed' | 'billing_invalid_mandate' | 'bitcoin_upgrade_required' | 'capture_charge_authorization_expired' | 'capture_unauthorized_payment' | 'card_decline_rate_limit_exceeded' | 'card_declined' | 'cardholder_phone_number_required' | 'charge_already_captured' | 'charge_already_refunded' | 'charge_disputed' | 'charge_exceeds_source_limit' | 'charge_exceeds_transaction_limit' | 'charge_expired_for_capture' | 'charge_invalid_parameter' | 'charge_not_refundable' | 'clearing_code_unsupported' | 'country_code_invalid' | 'country_unsupported' | 'coupon_expired' | 'customer_max_payment_methods' | 'customer_max_subscriptions' | 'customer_session_expired' | 'customer_tax_location_invalid' | 'debit_not_authorized' | 'email_invalid' | 'expired_card' | 'financial_connections_account_inactive' | 'financial_connections_account_pending_account_numbers' | 'financial_connections_account_unavailable_account_numbers' | 'financial_connections_institution_unavailable' | 'financial_connections_no_successful_transaction_refresh' | 'forwarding_api_inactive' | 'forwarding_api_invalid_parameter' | 'forwarding_api_retryable_upstream_error' | 'forwarding_api_upstream_connection_error' | 'forwarding_api_upstream_connection_timeout' | 'forwarding_api_upstream_error' | 'idempotency_key_in_use' | 'incorrect_address' | 'incorrect_cvc' | 'incorrect_number' | 'incorrect_zip' | 'india_recurring_payment_mandate_canceled' | 'instant_payouts_config_disabled' | 'instant_payouts_currency_disabled' | 'instant_payouts_limit_exceeded' | 'instant_payouts_unsupported' | 'insufficient_funds' | 'intent_invalid_state' | 'intent_verification_method_missing' | 'invalid_card_type' | 'invalid_characters' | 'invalid_charge_amount' | 'invalid_cvc' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_mandate_reference_prefix_format' | 'invalid_number' | 'invalid_source_usage' | 'invalid_tax_location' | 'invoice_no_customer_line_items' | 'invoice_no_payment_method_types' | 'invoice_no_subscription_line_items' | 'invoice_not_editable' | 'invoice_on_behalf_of_not_editable' | 'invoice_payment_intent_requires_action' | 'invoice_upcoming_none' | 'livemode_mismatch' | 'lock_timeout' | 'missing' | 'no_account' | 'not_allowed_on_standard_account' | 'out_of_inventory' | 'ownership_declaration_not_allowed' | 'parameter_invalid_empty' | 'parameter_invalid_integer' | 'parameter_invalid_string_blank' | 'parameter_invalid_string_empty' | 'parameter_missing' | 'parameter_unknown' | 'parameters_exclusive' | 'payment_intent_action_required' | 'payment_intent_authentication_failure' | 'payment_intent_incompatible_payment_method' | 'payment_intent_invalid_parameter' | 'payment_intent_konbini_rejected_confirmation_number' | 'payment_intent_mandate_invalid' | 'payment_intent_payment_attempt_expired' | 'payment_intent_payment_attempt_failed' | 'payment_intent_rate_limit_exceeded' | 'payment_intent_unexpected_state' | 'payment_method_bank_account_already_verified' | 'payment_method_bank_account_blocked' | 'payment_method_billing_details_address_missing' | 'payment_method_configuration_failures' | 'payment_method_currency_mismatch' | 'payment_method_customer_decline' | 'payment_method_invalid_parameter' | 'payment_method_invalid_parameter_testmode' | 'payment_method_microdeposit_failed' | 'payment_method_microdeposit_verification_amounts_invalid' | 'payment_method_microdeposit_verification_amounts_mismatch' | 'payment_method_microdeposit_verification_attempts_exceeded' | 'payment_method_microdeposit_verification_descriptor_code_mismatch' | 'payment_method_microdeposit_verification_timeout' | 'payment_method_not_available' | 'payment_method_provider_decline' | 'payment_method_provider_timeout' | 'payment_method_unactivated' | 'payment_method_unexpected_state' | 'payment_method_unsupported_type' | 'payout_reconciliation_not_ready' | 'payouts_limit_exceeded' | 'payouts_not_allowed' | 'platform_account_required' | 'platform_api_key_expired' | 'postal_code_invalid' | 'processing_error' | 'product_inactive' | 'progressive_onboarding_limit_exceeded' | 'rate_limit' | 'refer_to_customer' | 'refund_disputed_payment' | 'request_blocked' | 'resource_already_exists' | 'resource_missing' | 'return_intent_already_processed' | 'routing_number_invalid' | 'secret_key_required' | 'sensitive_data_access_expired' | 'sepa_unsupported_account' | 'service_period_coupon_with_metered_tiered_item_unsupported' | 'setup_attempt_failed' | 'setup_intent_authentication_failure' | 'setup_intent_invalid_parameter' | 'setup_intent_mandate_invalid' | 'setup_intent_mobile_wallet_unsupported' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state' | 'shipping_address_invalid' | 'shipping_calculation_failed' | 'sku_inactive' | 'state_unsupported' | 'status_transition_invalid' | 'storer_capability_missing' | 'storer_capability_not_active' | 'stripe_tax_inactive' | 'tax_id_invalid' | 'tax_id_prohibited' | 'taxes_calculation_failed' | 'terminal_location_country_unsupported' | 'terminal_reader_busy' | 'terminal_reader_collected_data_invalid' | 'terminal_reader_hardware_fault' | 'terminal_reader_invalid_location_for_activation' | 'terminal_reader_invalid_location_for_payment' | 'terminal_reader_offline' | 'terminal_reader_timeout' | 'testmode_charges_only' | 'tls_version_unsupported' | 'token_already_used' | 'token_card_network_invalid' | 'token_in_use' | 'transfer_source_balance_parameters_mismatch' | 'transfers_not_allowed' | 'url_invalid' | 'v2_account_disconnection_unsupported' | 'v2_account_missing_configuration';
776
- type Type = 'api_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error';
777
- }
778
- namespace Parent {
779
- interface QuoteDetails {
780
- /**
781
- * The quote that generated this invoice
782
- */
783
- quote: string;
784
- }
785
- interface SubscriptionDetails {
786
- /**
787
- * Set of [key-value pairs](https://docs.stripe.com/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization.
788
- * *Note: This attribute is populated only for invoices created on or after June 29, 2023.*
789
- */
790
- metadata: Metadata | null;
791
- /**
792
- * 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://docs.stripe.com/billing/subscriptions/pause-payment).
793
- */
794
- pause_collection?: SubscriptionDetails.PauseCollection | null;
795
- /**
796
- * The subscription that generated this invoice
797
- */
798
- subscription: string | Subscription;
799
- /**
800
- * Only set for upcoming invoices that preview prorations. The time used to calculate prorations.
801
- */
802
- subscription_proration_date?: number;
803
- }
804
- type Type = 'quote_details' | 'subscription_details';
805
- namespace SubscriptionDetails {
806
- interface PauseCollection {
807
- /**
808
- * The payment collection behavior for this subscription while paused.
809
- */
810
- behavior: PauseCollection.Behavior | null;
811
- /**
812
- * The time after which the subscription will resume collecting payments.
813
- */
814
- resumes_at: number | null;
815
- }
816
- namespace PauseCollection {
817
- type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
818
- }
819
- }
820
- }
821
- namespace PaymentSettings {
822
- interface PaymentMethodOptions {
823
- /**
824
- * If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice's PaymentIntent.
825
- */
826
- acss_debit: PaymentMethodOptions.AcssDebit | null;
827
- /**
828
- * If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
829
- */
830
- bancontact: PaymentMethodOptions.Bancontact | null;
831
- /**
832
- * If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
833
- */
834
- blik?: PaymentMethodOptions.Blik | null;
835
- /**
836
- * If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
837
- */
838
- card: PaymentMethodOptions.Card | null;
839
- /**
840
- * If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
841
- */
842
- customer_balance: PaymentMethodOptions.CustomerBalance | null;
843
- /**
844
- * If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
845
- */
846
- id_bank_transfer?: PaymentMethodOptions.IdBankTransfer | null;
847
- /**
848
- * If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
849
- */
850
- konbini: PaymentMethodOptions.Konbini | null;
851
- /**
852
- * If paying by `payto`, this sub-hash contains details about the PayTo payment method options to pass to the invoice's PaymentIntent.
853
- */
854
- payto: PaymentMethodOptions.Payto | null;
855
- /**
856
- * If paying by `pix`, this sub-hash contains details about the Pix payment method options to pass to the invoice's PaymentIntent.
857
- */
858
- pix: PaymentMethodOptions.Pix | null;
859
- /**
860
- * If paying by `sepa_debit`, this sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice's PaymentIntent.
861
- */
862
- sepa_debit: PaymentMethodOptions.SepaDebit | null;
863
- /**
864
- * If paying by `upi`, this sub-hash contains details about the UPI payment method options to pass to the invoice's PaymentIntent.
865
- */
866
- upi: PaymentMethodOptions.Upi | null;
867
- /**
868
- * If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent.
869
- */
870
- us_bank_account: PaymentMethodOptions.UsBankAccount | null;
871
- }
872
- type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'stripe_balance' | 'swish' | 'upi' | 'us_bank_account' | 'wechat_pay';
873
- namespace PaymentMethodOptions {
874
- interface AcssDebit {
875
- mandate_options?: AcssDebit.MandateOptions;
876
- /**
877
- * Bank account verification method. The default value is `automatic`.
878
- */
879
- verification_method?: AcssDebit.VerificationMethod;
880
- }
881
- interface Bancontact {
882
- /**
883
- * Preferred language of the Bancontact authorization page that the customer is redirected to.
884
- */
885
- preferred_language: Bancontact.PreferredLanguage;
886
- }
887
- interface Blik {
888
- }
889
- interface Card {
890
- installments?: Card.Installments;
891
- /**
892
- * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
893
- */
894
- request_three_d_secure: Card.RequestThreeDSecure | null;
895
- }
896
- interface CustomerBalance {
897
- bank_transfer?: CustomerBalance.BankTransfer;
898
- /**
899
- * The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
900
- */
901
- funding_type: 'bank_transfer' | null;
902
- }
903
- interface IdBankTransfer {
904
- }
905
- interface Konbini {
906
- }
907
- interface Payto {
908
- mandate_options?: Payto.MandateOptions;
909
- }
910
- interface Pix {
911
- /**
912
- * Determines if the amount includes the IOF tax.
913
- */
914
- amount_includes_iof: Pix.AmountIncludesIof | null;
915
- /**
916
- * The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
917
- */
918
- expires_after_seconds?: number;
919
- }
920
- interface SepaDebit {
921
- }
922
- interface Upi {
923
- mandate_options?: Upi.MandateOptions;
924
- }
925
- interface UsBankAccount {
926
- financial_connections?: UsBankAccount.FinancialConnections;
927
- /**
928
- * Bank account verification method. The default value is `automatic`.
929
- */
930
- verification_method?: UsBankAccount.VerificationMethod;
931
- }
932
- namespace AcssDebit {
933
- interface MandateOptions {
934
- /**
935
- * Transaction type of the mandate.
936
- */
937
- transaction_type: MandateOptions.TransactionType | null;
938
- }
939
- type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
940
- namespace MandateOptions {
941
- type TransactionType = 'business' | 'personal';
942
- }
943
- }
944
- namespace Bancontact {
945
- type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
946
- }
947
- namespace Card {
948
- interface Installments {
949
- /**
950
- * Whether Installments are enabled for this Invoice.
951
- */
952
- enabled: boolean | null;
953
- }
954
- type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
955
- }
956
- namespace CustomerBalance {
957
- interface BankTransfer {
958
- eu_bank_transfer?: BankTransfer.EuBankTransfer;
959
- /**
960
- * The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
961
- */
962
- type: string | null;
963
- }
964
- namespace BankTransfer {
965
- interface EuBankTransfer {
966
- /**
967
- * The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
968
- */
969
- country: EuBankTransfer.Country;
970
- }
971
- namespace EuBankTransfer {
972
- type Country = 'BE' | 'DE' | 'ES' | 'FR' | 'IE' | 'NL';
973
- }
974
- }
975
- }
976
- namespace Payto {
977
- interface MandateOptions {
978
- /**
979
- * The maximum amount that can be collected in a single invoice. If you don't specify a maximum, then there is no limit.
980
- */
981
- amount: number | null;
982
- /**
983
- * Only `maximum` is supported.
984
- */
985
- amount_type: MandateOptions.AmountType | null;
986
- /**
987
- * The purpose for which payments are made. Has a default value based on your merchant category code.
988
- */
989
- purpose: MandateOptions.Purpose | null;
990
- }
991
- namespace MandateOptions {
992
- type AmountType = 'fixed' | 'maximum';
993
- type Purpose = 'dependant_support' | 'government' | 'loan' | 'mortgage' | 'other' | 'pension' | 'personal' | 'retail' | 'salary' | 'tax' | 'utility';
994
- }
995
- }
996
- namespace Pix {
997
- type AmountIncludesIof = 'always' | 'never';
998
- }
999
- namespace Upi {
1000
- interface MandateOptions {
1001
- /**
1002
- * Amount to be charged for future payments.
1003
- */
1004
- amount: number | null;
1005
- /**
1006
- * One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
1007
- */
1008
- amount_type: MandateOptions.AmountType | null;
1009
- /**
1010
- * A description of the mandate or subscription that is meant to be displayed to the customer.
1011
- */
1012
- description: string | null;
1013
- /**
1014
- * End date of the mandate or subscription.
1015
- */
1016
- end_date: number | null;
1017
- }
1018
- namespace MandateOptions {
1019
- type AmountType = 'fixed' | 'maximum';
1020
- }
1021
- }
1022
- namespace UsBankAccount {
1023
- interface FinancialConnections {
1024
- filters?: FinancialConnections.Filters;
1025
- /**
1026
- * The list of permissions to request. The `payment_method` permission must be included.
1027
- */
1028
- permissions?: Array<FinancialConnections.Permission>;
1029
- /**
1030
- * Data features requested to be retrieved upon account creation.
1031
- */
1032
- prefetch: Array<FinancialConnections.Prefetch> | null;
1033
- }
1034
- type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
1035
- namespace FinancialConnections {
1036
- interface Filters {
1037
- /**
1038
- * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
1039
- */
1040
- account_subcategories?: Array<Filters.AccountSubcategory>;
1041
- /**
1042
- * The institution to use to filter for possible accounts to link.
1043
- */
1044
- institution?: string;
1045
- }
1046
- type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions';
1047
- type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions';
1048
- namespace Filters {
1049
- type AccountSubcategory = 'checking' | 'savings';
1050
- }
1051
- }
1052
- }
1053
- }
1054
- }
1055
- namespace Rendering {
1056
- interface Pdf {
1057
- /**
1058
- * Page size of invoice pdf. Options include a4, letter, and auto. If set to auto, page size will be switched to a4 or letter based on customer locale.
1059
- */
1060
- page_size: Pdf.PageSize | null;
1061
- }
1062
- namespace Pdf {
1063
- type PageSize = 'a4' | 'auto' | 'letter';
1064
- }
1065
- }
1066
- namespace ShippingCost {
1067
- interface Tax {
1068
- /**
1069
- * Amount of tax applied for this rate.
1070
- */
1071
- amount: number;
1072
- /**
1073
- * Tax rates can be applied to [invoices](https://docs.stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://docs.stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://docs.stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
1074
- *
1075
- * Related guide: [Tax rates](https://docs.stripe.com/billing/taxes/tax-rates)
1076
- */
1077
- rate: TaxRate;
1078
- /**
1079
- * The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
1080
- */
1081
- taxability_reason: Tax.TaxabilityReason | null;
1082
- /**
1083
- * The amount on which tax is calculated, in cents (or local equivalent).
1084
- */
1085
- taxable_amount: number | null;
1086
- }
1087
- namespace Tax {
1088
- type TaxabilityReason = 'customer_exempt' | 'not_collecting' | 'not_subject_to_tax' | 'not_supported' | 'portion_product_exempt' | 'portion_reduced_rated' | 'portion_standard_rated' | 'product_exempt' | 'product_exempt_holiday' | 'proportionally_rated' | 'reduced_rated' | 'reverse_charge' | 'standard_rated' | 'taxable_basis_reduced' | 'zero_rated';
1089
- }
1090
- }
1091
- namespace ThresholdReason {
1092
- interface ItemReason {
1093
- /**
1094
- * The IDs of the line items that triggered the threshold invoice.
1095
- */
1096
- line_item_ids: Array<string>;
1097
- /**
1098
- * The quantity threshold boundary that applied to the given line item.
1099
- */
1100
- usage_gte: number;
1101
- }
1102
- }
1103
- namespace TotalPretaxCreditAmount {
1104
- type Type = 'credit_balance_transaction' | 'discount' | 'margin';
1105
- }
1106
- namespace TotalTax {
1107
- type TaxBehavior = 'exclusive' | 'inclusive';
1108
- interface TaxRateDetails {
1109
- /**
1110
- * ID of the tax rate
1111
- */
1112
- tax_rate: string | TaxRate;
1113
- }
1114
- type TaxabilityReason = 'customer_exempt' | 'not_available' | 'not_collecting' | 'not_subject_to_tax' | 'not_supported' | 'portion_product_exempt' | 'portion_reduced_rated' | 'portion_standard_rated' | 'product_exempt' | 'product_exempt_holiday' | 'proportionally_rated' | 'reduced_rated' | 'reverse_charge' | 'standard_rated' | 'taxable_basis_reduced' | 'zero_rated';
1115
- }
1116
- }