@leaflow/sdk 0.121.0 → 0.123.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 (1267) hide show
  1. package/dist/billing/type/checkout/v1/generated/functions.d.ts +8 -0
  2. package/dist/billing/type/checkout/v1/generated/functions.js +8 -0
  3. package/dist/billing/type/checkout/v1/generated/models.d.ts +49 -0
  4. package/dist/billing/type/checkout/v1/generated/models.js +4 -0
  5. package/dist/billing/type/checkout/v1/generated/schemas.zod.d.ts +8 -0
  6. package/dist/billing/type/checkout/v1/generated/schemas.zod.js +8 -0
  7. package/dist/billing/type/checkout/v1/generated/validators/checkoutMode.zod.d.ts +14 -0
  8. package/dist/billing/type/checkout/v1/generated/validators/checkoutMode.zod.js +11 -0
  9. package/dist/billing/type/checkout/v1/generated/validators/checkoutOptions.zod.d.ts +19 -0
  10. package/dist/billing/type/checkout/v1/generated/validators/checkoutOptions.zod.js +20 -0
  11. package/dist/billing/type/checkout/v1/generated/validators/money.zod.d.ts +11 -0
  12. package/dist/billing/type/checkout/v1/generated/validators/money.zod.js +11 -0
  13. package/dist/billing/type/order/v1/generated/functions.d.ts +8 -0
  14. package/dist/billing/type/order/v1/generated/functions.js +8 -0
  15. package/dist/billing/type/order/v1/generated/models.d.ts +2931 -0
  16. package/dist/billing/type/order/v1/generated/models.js +359 -0
  17. package/dist/billing/type/order/v1/generated/schemas.zod.d.ts +8 -0
  18. package/dist/billing/type/order/v1/generated/schemas.zod.js +8 -0
  19. package/dist/billing/type/order/v1/generated/validators/accountBalance.zod.d.ts +123 -0
  20. package/dist/billing/type/order/v1/generated/validators/accountBalance.zod.js +26 -0
  21. package/dist/billing/type/order/v1/generated/validators/accountIdentity.zod.d.ts +15 -0
  22. package/dist/billing/type/order/v1/generated/validators/accountIdentity.zod.js +13 -0
  23. package/dist/billing/type/order/v1/generated/validators/activeResource.zod.d.ts +41 -0
  24. package/dist/billing/type/order/v1/generated/validators/activeResource.zod.js +36 -0
  25. package/dist/billing/type/order/v1/generated/validators/activeResourceList.zod.d.ts +48 -0
  26. package/dist/billing/type/order/v1/generated/validators/activeResourceList.zod.js +14 -0
  27. package/dist/billing/type/order/v1/generated/validators/allowance.zod.d.ts +44 -0
  28. package/dist/billing/type/order/v1/generated/validators/allowance.zod.js +41 -0
  29. package/dist/billing/type/order/v1/generated/validators/allowanceList.zod.d.ts +51 -0
  30. package/dist/billing/type/order/v1/generated/validators/allowanceList.zod.js +14 -0
  31. package/dist/billing/type/order/v1/generated/validators/applicability.zod.d.ts +108 -0
  32. package/dist/billing/type/order/v1/generated/validators/applicability.zod.js +32 -0
  33. package/dist/billing/type/order/v1/generated/validators/applicablePlan.zod.d.ts +15 -0
  34. package/dist/billing/type/order/v1/generated/validators/applicablePlan.zod.js +15 -0
  35. package/dist/billing/type/order/v1/generated/validators/appliedCredit.zod.d.ts +15 -0
  36. package/dist/billing/type/order/v1/generated/validators/appliedCredit.zod.js +16 -0
  37. package/dist/billing/type/order/v1/generated/validators/autoRenewSet.zod.d.ts +13 -0
  38. package/dist/billing/type/order/v1/generated/validators/autoRenewSet.zod.js +11 -0
  39. package/dist/billing/type/order/v1/generated/validators/billingAccount.zod.d.ts +25 -0
  40. package/dist/billing/type/order/v1/generated/validators/billingAccount.zod.js +31 -0
  41. package/dist/billing/type/order/v1/generated/validators/billingAccountCreate.zod.d.ts +17 -0
  42. package/dist/billing/type/order/v1/generated/validators/billingAccountCreate.zod.js +15 -0
  43. package/dist/billing/type/order/v1/generated/validators/billingAccountList.zod.d.ts +32 -0
  44. package/dist/billing/type/order/v1/generated/validators/billingAccountList.zod.js +14 -0
  45. package/dist/billing/type/order/v1/generated/validators/billingAccountUpdate.zod.d.ts +15 -0
  46. package/dist/billing/type/order/v1/generated/validators/billingAccountUpdate.zod.js +16 -0
  47. package/dist/billing/type/order/v1/generated/validators/cancelSubscriptionRequest.zod.d.ts +21 -0
  48. package/dist/billing/type/order/v1/generated/validators/cancelSubscriptionRequest.zod.js +21 -0
  49. package/dist/billing/type/order/v1/generated/validators/cancellation.zod.d.ts +64 -0
  50. package/dist/billing/type/order/v1/generated/validators/cancellation.zod.js +39 -0
  51. package/dist/billing/type/order/v1/generated/validators/cancellationCreate.zod.d.ts +23 -0
  52. package/dist/billing/type/order/v1/generated/validators/cancellationCreate.zod.js +31 -0
  53. package/dist/billing/type/order/v1/generated/validators/cancellationItem.zod.d.ts +35 -0
  54. package/dist/billing/type/order/v1/generated/validators/cancellationItem.zod.js +35 -0
  55. package/dist/billing/type/order/v1/generated/validators/cancellationList.zod.d.ts +71 -0
  56. package/dist/billing/type/order/v1/generated/validators/cancellationList.zod.js +14 -0
  57. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreview.zod.d.ts +46 -0
  58. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreview.zod.js +32 -0
  59. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +31 -0
  60. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreviewItem.zod.js +31 -0
  61. package/dist/billing/type/order/v1/generated/validators/contact.zod.d.ts +41 -0
  62. package/dist/billing/type/order/v1/generated/validators/contact.zod.js +39 -0
  63. package/dist/billing/type/order/v1/generated/validators/contactCreate.zod.d.ts +32 -0
  64. package/dist/billing/type/order/v1/generated/validators/contactCreate.zod.js +30 -0
  65. package/dist/billing/type/order/v1/generated/validators/contactList.zod.d.ts +38 -0
  66. package/dist/billing/type/order/v1/generated/validators/contactList.zod.js +14 -0
  67. package/dist/billing/type/order/v1/generated/validators/contactUpdate.zod.d.ts +33 -0
  68. package/dist/billing/type/order/v1/generated/validators/contactUpdate.zod.js +31 -0
  69. package/dist/billing/type/order/v1/generated/validators/creditGrant.zod.d.ts +126 -0
  70. package/dist/billing/type/order/v1/generated/validators/creditGrant.zod.js +27 -0
  71. package/dist/billing/type/order/v1/generated/validators/creditGrantList.zod.d.ts +133 -0
  72. package/dist/billing/type/order/v1/generated/validators/creditGrantList.zod.js +14 -0
  73. package/dist/billing/type/order/v1/generated/validators/creditGroup.zod.d.ts +112 -0
  74. package/dist/billing/type/order/v1/generated/validators/creditGroup.zod.js +18 -0
  75. package/dist/billing/type/order/v1/generated/validators/creditNote.zod.d.ts +34 -0
  76. package/dist/billing/type/order/v1/generated/validators/creditNote.zod.js +40 -0
  77. package/dist/billing/type/order/v1/generated/validators/creditNoteItem.zod.d.ts +17 -0
  78. package/dist/billing/type/order/v1/generated/validators/creditNoteItem.zod.js +16 -0
  79. package/dist/billing/type/order/v1/generated/validators/creditNoteItemList.zod.d.ts +24 -0
  80. package/dist/billing/type/order/v1/generated/validators/creditNoteItemList.zod.js +14 -0
  81. package/dist/billing/type/order/v1/generated/validators/creditNoteList.zod.d.ts +41 -0
  82. package/dist/billing/type/order/v1/generated/validators/creditNoteList.zod.js +14 -0
  83. package/dist/billing/type/order/v1/generated/validators/currency.zod.d.ts +21 -0
  84. package/dist/billing/type/order/v1/generated/validators/currency.zod.js +30 -0
  85. package/dist/billing/type/order/v1/generated/validators/currencyList.zod.d.ts +23 -0
  86. package/dist/billing/type/order/v1/generated/validators/currencyList.zod.js +14 -0
  87. package/dist/billing/type/order/v1/generated/validators/cursorPagination.zod.d.ts +14 -0
  88. package/dist/billing/type/order/v1/generated/validators/cursorPagination.zod.js +14 -0
  89. package/dist/billing/type/order/v1/generated/validators/discount.zod.d.ts +142 -0
  90. package/dist/billing/type/order/v1/generated/validators/discount.zod.js +44 -0
  91. package/dist/billing/type/order/v1/generated/validators/discountList.zod.d.ts +149 -0
  92. package/dist/billing/type/order/v1/generated/validators/discountList.zod.js +14 -0
  93. package/dist/billing/type/order/v1/generated/validators/entitlement.zod.d.ts +25 -0
  94. package/dist/billing/type/order/v1/generated/validators/entitlement.zod.js +20 -0
  95. package/dist/billing/type/order/v1/generated/validators/entitlementList.zod.d.ts +32 -0
  96. package/dist/billing/type/order/v1/generated/validators/entitlementList.zod.js +14 -0
  97. package/dist/billing/type/order/v1/generated/validators/error.zod.d.ts +16 -0
  98. package/dist/billing/type/order/v1/generated/validators/error.zod.js +17 -0
  99. package/dist/billing/type/order/v1/generated/validators/featureGrant.zod.d.ts +33 -0
  100. package/dist/billing/type/order/v1/generated/validators/featureGrant.zod.js +24 -0
  101. package/dist/billing/type/order/v1/generated/validators/featureGrantList.zod.d.ts +40 -0
  102. package/dist/billing/type/order/v1/generated/validators/featureGrantList.zod.js +14 -0
  103. package/dist/billing/type/order/v1/generated/validators/featureGrantStatus.zod.d.ts +16 -0
  104. package/dist/billing/type/order/v1/generated/validators/featureGrantStatus.zod.js +11 -0
  105. package/dist/billing/type/order/v1/generated/validators/invoice.zod.d.ts +63 -0
  106. package/dist/billing/type/order/v1/generated/validators/invoice.zod.js +53 -0
  107. package/dist/billing/type/order/v1/generated/validators/invoiceItem.zod.d.ts +41 -0
  108. package/dist/billing/type/order/v1/generated/validators/invoiceItem.zod.js +46 -0
  109. package/dist/billing/type/order/v1/generated/validators/invoiceItemList.zod.d.ts +48 -0
  110. package/dist/billing/type/order/v1/generated/validators/invoiceItemList.zod.js +14 -0
  111. package/dist/billing/type/order/v1/generated/validators/invoiceList.zod.d.ts +70 -0
  112. package/dist/billing/type/order/v1/generated/validators/invoiceList.zod.js +14 -0
  113. package/dist/billing/type/order/v1/generated/validators/invoiceStatus.zod.d.ts +17 -0
  114. package/dist/billing/type/order/v1/generated/validators/invoiceStatus.zod.js +11 -0
  115. package/dist/billing/type/order/v1/generated/validators/invoiceSummary.zod.d.ts +33 -0
  116. package/dist/billing/type/order/v1/generated/validators/invoiceSummary.zod.js +34 -0
  117. package/dist/billing/type/order/v1/generated/validators/money.zod.d.ts +11 -0
  118. package/dist/billing/type/order/v1/generated/validators/money.zod.js +11 -0
  119. package/dist/billing/type/order/v1/generated/validators/namedIdentity.zod.d.ts +15 -0
  120. package/dist/billing/type/order/v1/generated/validators/namedIdentity.zod.js +15 -0
  121. package/dist/billing/type/order/v1/generated/validators/objectIdentity.zod.d.ts +15 -0
  122. package/dist/billing/type/order/v1/generated/validators/objectIdentity.zod.js +15 -0
  123. package/dist/billing/type/order/v1/generated/validators/offsetPagination.zod.d.ts +16 -0
  124. package/dist/billing/type/order/v1/generated/validators/offsetPagination.zod.js +16 -0
  125. package/dist/billing/type/order/v1/generated/validators/order.zod.d.ts +143 -0
  126. package/dist/billing/type/order/v1/generated/validators/order.zod.js +65 -0
  127. package/dist/billing/type/order/v1/generated/validators/orderCancel.zod.d.ts +14 -0
  128. package/dist/billing/type/order/v1/generated/validators/orderCancel.zod.js +17 -0
  129. package/dist/billing/type/order/v1/generated/validators/orderItem.zod.d.ts +69 -0
  130. package/dist/billing/type/order/v1/generated/validators/orderItem.zod.js +73 -0
  131. package/dist/billing/type/order/v1/generated/validators/orderItemList.zod.d.ts +75 -0
  132. package/dist/billing/type/order/v1/generated/validators/orderItemList.zod.js +14 -0
  133. package/dist/billing/type/order/v1/generated/validators/orderItemStatus.zod.d.ts +16 -0
  134. package/dist/billing/type/order/v1/generated/validators/orderItemStatus.zod.js +11 -0
  135. package/dist/billing/type/order/v1/generated/validators/orderList.zod.d.ts +150 -0
  136. package/dist/billing/type/order/v1/generated/validators/orderList.zod.js +14 -0
  137. package/dist/billing/type/order/v1/generated/validators/orderRefundQuote.zod.d.ts +17 -0
  138. package/dist/billing/type/order/v1/generated/validators/orderRefundQuote.zod.js +18 -0
  139. package/dist/billing/type/order/v1/generated/validators/orderRefundQuoteInput.zod.d.ts +15 -0
  140. package/dist/billing/type/order/v1/generated/validators/orderRefundQuoteInput.zod.js +20 -0
  141. package/dist/billing/type/order/v1/generated/validators/orderStatus.zod.d.ts +18 -0
  142. package/dist/billing/type/order/v1/generated/validators/orderStatus.zod.js +11 -0
  143. package/dist/billing/type/order/v1/generated/validators/paidWith.zod.d.ts +17 -0
  144. package/dist/billing/type/order/v1/generated/validators/paidWith.zod.js +25 -0
  145. package/dist/billing/type/order/v1/generated/validators/payInvoiceRequest.zod.d.ts +26 -0
  146. package/dist/billing/type/order/v1/generated/validators/payInvoiceRequest.zod.js +53 -0
  147. package/dist/billing/type/order/v1/generated/validators/payTogetherRequest.zod.d.ts +18 -0
  148. package/dist/billing/type/order/v1/generated/validators/payTogetherRequest.zod.js +21 -0
  149. package/dist/billing/type/order/v1/generated/validators/paymentAction.zod.d.ts +22 -0
  150. package/dist/billing/type/order/v1/generated/validators/paymentAction.zod.js +24 -0
  151. package/dist/billing/type/order/v1/generated/validators/paymentCancellationReason.zod.d.ts +14 -0
  152. package/dist/billing/type/order/v1/generated/validators/paymentCancellationReason.zod.js +11 -0
  153. package/dist/billing/type/order/v1/generated/validators/paymentMethod.zod.d.ts +25 -0
  154. package/dist/billing/type/order/v1/generated/validators/paymentMethod.zod.js +19 -0
  155. package/dist/billing/type/order/v1/generated/validators/paymentMethodList.zod.d.ts +32 -0
  156. package/dist/billing/type/order/v1/generated/validators/paymentMethodList.zod.js +14 -0
  157. package/dist/billing/type/order/v1/generated/validators/paymentMethodSetup.zod.d.ts +15 -0
  158. package/dist/billing/type/order/v1/generated/validators/paymentMethodSetup.zod.js +17 -0
  159. package/dist/billing/type/order/v1/generated/validators/paymentMethodSetupResult.zod.d.ts +26 -0
  160. package/dist/billing/type/order/v1/generated/validators/paymentMethodSetupResult.zod.js +18 -0
  161. package/dist/billing/type/order/v1/generated/validators/paymentOption.zod.d.ts +17 -0
  162. package/dist/billing/type/order/v1/generated/validators/paymentOption.zod.js +15 -0
  163. package/dist/billing/type/order/v1/generated/validators/paymentOptionList.zod.d.ts +24 -0
  164. package/dist/billing/type/order/v1/generated/validators/paymentOptionList.zod.js +14 -0
  165. package/dist/billing/type/order/v1/generated/validators/paymentOptionMethod.zod.d.ts +14 -0
  166. package/dist/billing/type/order/v1/generated/validators/paymentOptionMethod.zod.js +16 -0
  167. package/dist/billing/type/order/v1/generated/validators/paymentPreview.zod.d.ts +30 -0
  168. package/dist/billing/type/order/v1/generated/validators/paymentPreview.zod.js +28 -0
  169. package/dist/billing/type/order/v1/generated/validators/paymentPreviewInvoice.zod.d.ts +17 -0
  170. package/dist/billing/type/order/v1/generated/validators/paymentPreviewInvoice.zod.js +16 -0
  171. package/dist/billing/type/order/v1/generated/validators/paymentResult.zod.d.ts +86 -0
  172. package/dist/billing/type/order/v1/generated/validators/paymentResult.zod.js +39 -0
  173. package/dist/billing/type/order/v1/generated/validators/paymentStatus.zod.d.ts +16 -0
  174. package/dist/billing/type/order/v1/generated/validators/paymentStatus.zod.js +11 -0
  175. package/dist/billing/type/order/v1/generated/validators/placedOrder.zod.d.ts +36 -0
  176. package/dist/billing/type/order/v1/generated/validators/placedOrder.zod.js +16 -0
  177. package/dist/billing/type/order/v1/generated/validators/plan.zod.d.ts +31 -0
  178. package/dist/billing/type/order/v1/generated/validators/plan.zod.js +23 -0
  179. package/dist/billing/type/order/v1/generated/validators/planFeature.zod.d.ts +18 -0
  180. package/dist/billing/type/order/v1/generated/validators/planFeature.zod.js +13 -0
  181. package/dist/billing/type/order/v1/generated/validators/planList.zod.d.ts +38 -0
  182. package/dist/billing/type/order/v1/generated/validators/planList.zod.js +14 -0
  183. package/dist/billing/type/order/v1/generated/validators/price.zod.d.ts +81 -0
  184. package/dist/billing/type/order/v1/generated/validators/price.zod.js +67 -0
  185. package/dist/billing/type/order/v1/generated/validators/priceList.zod.d.ts +88 -0
  186. package/dist/billing/type/order/v1/generated/validators/priceList.zod.js +14 -0
  187. package/dist/billing/type/order/v1/generated/validators/priceOption.zod.d.ts +44 -0
  188. package/dist/billing/type/order/v1/generated/validators/priceOption.zod.js +28 -0
  189. package/dist/billing/type/order/v1/generated/validators/product.zod.d.ts +15 -0
  190. package/dist/billing/type/order/v1/generated/validators/product.zod.js +14 -0
  191. package/dist/billing/type/order/v1/generated/validators/productID.zod.d.ts +13 -0
  192. package/dist/billing/type/order/v1/generated/validators/productID.zod.js +16 -0
  193. package/dist/billing/type/order/v1/generated/validators/productList.zod.d.ts +22 -0
  194. package/dist/billing/type/order/v1/generated/validators/productList.zod.js +14 -0
  195. package/dist/billing/type/order/v1/generated/validators/projectAssignment.zod.d.ts +22 -0
  196. package/dist/billing/type/order/v1/generated/validators/projectAssignment.zod.js +23 -0
  197. package/dist/billing/type/order/v1/generated/validators/projectAssignmentList.zod.d.ts +29 -0
  198. package/dist/billing/type/order/v1/generated/validators/projectAssignmentList.zod.js +14 -0
  199. package/dist/billing/type/order/v1/generated/validators/purchaseOperation.zod.d.ts +15 -0
  200. package/dist/billing/type/order/v1/generated/validators/purchaseOperation.zod.js +11 -0
  201. package/dist/billing/type/order/v1/generated/validators/quote.zod.d.ts +99 -0
  202. package/dist/billing/type/order/v1/generated/validators/quote.zod.js +30 -0
  203. package/dist/billing/type/order/v1/generated/validators/quoteCancellation.zod.d.ts +18 -0
  204. package/dist/billing/type/order/v1/generated/validators/quoteCancellation.zod.js +20 -0
  205. package/dist/billing/type/order/v1/generated/validators/quoteItem.zod.d.ts +25 -0
  206. package/dist/billing/type/order/v1/generated/validators/quoteItem.zod.js +38 -0
  207. package/dist/billing/type/order/v1/generated/validators/quoteItemInput.zod.d.ts +42 -0
  208. package/dist/billing/type/order/v1/generated/validators/quoteItemInput.zod.js +41 -0
  209. package/dist/billing/type/order/v1/generated/validators/quoteRenewal.zod.d.ts +27 -0
  210. package/dist/billing/type/order/v1/generated/validators/quoteRenewal.zod.js +26 -0
  211. package/dist/billing/type/order/v1/generated/validators/quoteRenewalResult.zod.d.ts +27 -0
  212. package/dist/billing/type/order/v1/generated/validators/quoteRenewalResult.zod.js +24 -0
  213. package/dist/billing/type/order/v1/generated/validators/quoteRequest.zod.d.ts +72 -0
  214. package/dist/billing/type/order/v1/generated/validators/quoteRequest.zod.js +42 -0
  215. package/dist/billing/type/order/v1/generated/validators/quotedDiscount.zod.d.ts +19 -0
  216. package/dist/billing/type/order/v1/generated/validators/quotedDiscount.zod.js +21 -0
  217. package/dist/billing/type/order/v1/generated/validators/rate.zod.d.ts +38 -0
  218. package/dist/billing/type/order/v1/generated/validators/rate.zod.js +33 -0
  219. package/dist/billing/type/order/v1/generated/validators/rateList.zod.d.ts +45 -0
  220. package/dist/billing/type/order/v1/generated/validators/rateList.zod.js +14 -0
  221. package/dist/billing/type/order/v1/generated/validators/refund.zod.d.ts +92 -0
  222. package/dist/billing/type/order/v1/generated/validators/refund.zod.js +44 -0
  223. package/dist/billing/type/order/v1/generated/validators/refundList.zod.d.ts +99 -0
  224. package/dist/billing/type/order/v1/generated/validators/refundList.zod.js +14 -0
  225. package/dist/billing/type/order/v1/generated/validators/refundPolicy.zod.d.ts +14 -0
  226. package/dist/billing/type/order/v1/generated/validators/refundPolicy.zod.js +11 -0
  227. package/dist/billing/type/order/v1/generated/validators/refundReason.zod.d.ts +23 -0
  228. package/dist/billing/type/order/v1/generated/validators/refundReason.zod.js +23 -0
  229. package/dist/billing/type/order/v1/generated/validators/renewRequest.zod.d.ts +31 -0
  230. package/dist/billing/type/order/v1/generated/validators/renewRequest.zod.js +42 -0
  231. package/dist/billing/type/order/v1/generated/validators/renewalOrderRequest.zod.d.ts +25 -0
  232. package/dist/billing/type/order/v1/generated/validators/renewalOrderRequest.zod.js +25 -0
  233. package/dist/billing/type/order/v1/generated/validators/renewalPrice.zod.d.ts +30 -0
  234. package/dist/billing/type/order/v1/generated/validators/renewalPrice.zod.js +23 -0
  235. package/dist/billing/type/order/v1/generated/validators/renewalPriceList.zod.d.ts +37 -0
  236. package/dist/billing/type/order/v1/generated/validators/renewalPriceList.zod.js +14 -0
  237. package/dist/billing/type/order/v1/generated/validators/setProjectAssignmentRequest.zod.d.ts +13 -0
  238. package/dist/billing/type/order/v1/generated/validators/setProjectAssignmentRequest.zod.js +11 -0
  239. package/dist/billing/type/order/v1/generated/validators/spendRow.zod.d.ts +22 -0
  240. package/dist/billing/type/order/v1/generated/validators/spendRow.zod.js +18 -0
  241. package/dist/billing/type/order/v1/generated/validators/spendRowList.zod.d.ts +31 -0
  242. package/dist/billing/type/order/v1/generated/validators/spendRowList.zod.js +17 -0
  243. package/dist/billing/type/order/v1/generated/validators/statement.zod.d.ts +34 -0
  244. package/dist/billing/type/order/v1/generated/validators/statement.zod.js +36 -0
  245. package/dist/billing/type/order/v1/generated/validators/statementAmounts.zod.d.ts +16 -0
  246. package/dist/billing/type/order/v1/generated/validators/statementAmounts.zod.js +15 -0
  247. package/dist/billing/type/order/v1/generated/validators/statementItem.zod.d.ts +19 -0
  248. package/dist/billing/type/order/v1/generated/validators/statementItem.zod.js +21 -0
  249. package/dist/billing/type/order/v1/generated/validators/statementList.zod.d.ts +41 -0
  250. package/dist/billing/type/order/v1/generated/validators/statementList.zod.js +14 -0
  251. package/dist/billing/type/order/v1/generated/validators/statementStatus.zod.d.ts +14 -0
  252. package/dist/billing/type/order/v1/generated/validators/statementStatus.zod.js +9 -0
  253. package/dist/billing/type/order/v1/generated/validators/statementSummary.zod.d.ts +35 -0
  254. package/dist/billing/type/order/v1/generated/validators/statementSummary.zod.js +19 -0
  255. package/dist/billing/type/order/v1/generated/validators/subscription.zod.d.ts +111 -0
  256. package/dist/billing/type/order/v1/generated/validators/subscription.zod.js +92 -0
  257. package/dist/billing/type/order/v1/generated/validators/subscriptionCancellation.zod.d.ts +37 -0
  258. package/dist/billing/type/order/v1/generated/validators/subscriptionCancellation.zod.js +30 -0
  259. package/dist/billing/type/order/v1/generated/validators/subscriptionList.zod.d.ts +117 -0
  260. package/dist/billing/type/order/v1/generated/validators/subscriptionList.zod.js +14 -0
  261. package/dist/billing/type/order/v1/generated/validators/taxItem.zod.d.ts +21 -0
  262. package/dist/billing/type/order/v1/generated/validators/taxItem.zod.js +21 -0
  263. package/dist/billing/type/order/v1/generated/validators/terminationPolicy.zod.d.ts +14 -0
  264. package/dist/billing/type/order/v1/generated/validators/terminationPolicy.zod.js +11 -0
  265. package/dist/billing/type/order/v1/generated/validators/tier.zod.d.ts +15 -0
  266. package/dist/billing/type/order/v1/generated/validators/tier.zod.js +17 -0
  267. package/dist/billing/type/order/v1/generated/validators/topUp.zod.d.ts +51 -0
  268. package/dist/billing/type/order/v1/generated/validators/topUp.zod.js +46 -0
  269. package/dist/billing/type/order/v1/generated/validators/topUpCreate.zod.d.ts +22 -0
  270. package/dist/billing/type/order/v1/generated/validators/topUpCreate.zod.js +34 -0
  271. package/dist/billing/type/order/v1/generated/validators/topUpList.zod.d.ts +58 -0
  272. package/dist/billing/type/order/v1/generated/validators/topUpList.zod.js +14 -0
  273. package/dist/billing/type/order/v1/generated/validators/transaction.zod.d.ts +53 -0
  274. package/dist/billing/type/order/v1/generated/validators/transaction.zod.js +48 -0
  275. package/dist/billing/type/order/v1/generated/validators/transactionList.zod.d.ts +60 -0
  276. package/dist/billing/type/order/v1/generated/validators/transactionList.zod.js +14 -0
  277. package/dist/billing/type/order/v1/generated/validators/transactionType.zod.d.ts +16 -0
  278. package/dist/billing/type/order/v1/generated/validators/transactionType.zod.js +11 -0
  279. package/dist/billing/type/order/v1/generated/validators/usageCharge.zod.d.ts +43 -0
  280. package/dist/billing/type/order/v1/generated/validators/usageCharge.zod.js +57 -0
  281. package/dist/billing/type/order/v1/generated/validators/usageChargeList.zod.d.ts +50 -0
  282. package/dist/billing/type/order/v1/generated/validators/usageChargeList.zod.js +14 -0
  283. package/dist/billing/type/quote/v1/generated/functions.d.ts +8 -0
  284. package/dist/billing/type/quote/v1/generated/functions.js +8 -0
  285. package/dist/billing/type/quote/v1/generated/models.d.ts +98 -0
  286. package/dist/billing/type/quote/v1/generated/models.js +1 -0
  287. package/dist/billing/type/quote/v1/generated/schemas.zod.d.ts +8 -0
  288. package/dist/billing/type/quote/v1/generated/schemas.zod.js +8 -0
  289. package/dist/billing/type/quote/v1/generated/validators/money.zod.d.ts +11 -0
  290. package/dist/billing/type/quote/v1/generated/validators/money.zod.js +11 -0
  291. package/dist/billing/type/quote/v1/generated/validators/quote.zod.d.ts +32 -0
  292. package/dist/billing/type/quote/v1/generated/validators/quote.zod.js +32 -0
  293. package/dist/billing/type/quote/v1/generated/validators/quoteItem.zod.d.ts +22 -0
  294. package/dist/billing/type/quote/v1/generated/validators/quoteItem.zod.js +27 -0
  295. package/dist/billing/v1/generated/functions.d.ts +80 -83
  296. package/dist/billing/v1/generated/functions.js +83 -90
  297. package/dist/billing/v1/generated/models.d.ts +317 -154
  298. package/dist/billing/v1/generated/models.js +43 -15
  299. package/dist/billing/v1/generated/schemas.zod.d.ts +90 -70
  300. package/dist/billing/v1/generated/schemas.zod.js +108 -78
  301. package/dist/billing/v1/generated/validators/accountBalance.zod.d.ts +1 -1
  302. package/dist/billing/v1/generated/validators/applicability.zod.d.ts +1 -1
  303. package/dist/billing/v1/generated/validators/applicability.zod.js +1 -1
  304. package/dist/billing/v1/generated/validators/cancellation.zod.d.ts +1 -1
  305. package/dist/billing/v1/generated/validators/cancellationItem.zod.d.ts +1 -1
  306. package/dist/billing/v1/generated/validators/cancellationItem.zod.js +3 -3
  307. package/dist/billing/v1/generated/validators/cancellationList.zod.d.ts +1 -1
  308. package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.d.ts +1 -1
  309. package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -1
  310. package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.js +2 -2
  311. package/dist/billing/v1/generated/validators/contact.zod.d.ts +5 -1
  312. package/dist/billing/v1/generated/validators/contact.zod.js +3 -1
  313. package/dist/billing/v1/generated/validators/contactList.zod.d.ts +5 -1
  314. package/dist/billing/v1/generated/validators/creditGrant.zod.d.ts +1 -1
  315. package/dist/billing/v1/generated/validators/creditGrantList.zod.d.ts +1 -1
  316. package/dist/billing/v1/generated/validators/creditGroup.zod.d.ts +1 -1
  317. package/dist/billing/v1/generated/validators/creditNote.zod.d.ts +12 -2
  318. package/dist/billing/v1/generated/validators/creditNote.zod.js +15 -3
  319. package/dist/billing/v1/generated/validators/creditNoteItem.zod.d.ts +2 -2
  320. package/dist/billing/v1/generated/validators/creditNoteItem.zod.js +2 -2
  321. package/dist/billing/v1/generated/validators/creditNoteItemList.zod.d.ts +2 -2
  322. package/dist/billing/v1/generated/validators/creditNoteList.zod.d.ts +12 -2
  323. package/dist/billing/v1/generated/validators/discount.zod.d.ts +7 -5
  324. package/dist/billing/v1/generated/validators/discount.zod.js +9 -4
  325. package/dist/billing/v1/generated/validators/discountList.zod.d.ts +7 -5
  326. package/dist/billing/v1/generated/validators/featureGrant.zod.d.ts +33 -0
  327. package/dist/billing/v1/generated/validators/featureGrant.zod.js +24 -0
  328. package/dist/billing/v1/generated/validators/featureGrantList.zod.d.ts +40 -0
  329. package/dist/billing/v1/generated/validators/featureGrantList.zod.js +14 -0
  330. package/dist/billing/v1/generated/validators/featureGrantStatus.zod.d.ts +16 -0
  331. package/dist/billing/v1/generated/validators/featureGrantStatus.zod.js +11 -0
  332. package/dist/billing/v1/generated/validators/invoice.zod.d.ts +7 -3
  333. package/dist/billing/v1/generated/validators/invoice.zod.js +7 -3
  334. package/dist/billing/v1/generated/validators/invoiceList.zod.d.ts +7 -3
  335. package/dist/billing/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
  336. package/dist/billing/v1/generated/validators/invoiceStatus.zod.js +2 -2
  337. package/dist/billing/v1/generated/validators/invoiceSummary.zod.d.ts +2 -3
  338. package/dist/billing/v1/generated/validators/invoiceSummary.zod.js +3 -3
  339. package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.d.ts +26 -0
  340. package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.js +29 -0
  341. package/dist/billing/v1/generated/validators/listInvoicesParams.zod.d.ts +0 -1
  342. package/dist/billing/v1/generated/validators/listOrdersParams.zod.d.ts +0 -1
  343. package/dist/billing/v1/generated/validators/order.zod.d.ts +9 -10
  344. package/dist/billing/v1/generated/validators/order.zod.js +12 -7
  345. package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +1 -1
  346. package/dist/billing/v1/generated/validators/orderItem.zod.js +2 -2
  347. package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +1 -1
  348. package/dist/billing/v1/generated/validators/orderList.zod.d.ts +9 -10
  349. package/dist/billing/v1/generated/validators/orderStatus.zod.d.ts +0 -1
  350. package/dist/billing/v1/generated/validators/orderStatus.zod.js +2 -10
  351. package/dist/billing/v1/generated/validators/paidWith.zod.js +1 -1
  352. package/dist/billing/v1/generated/validators/payInvoiceRequest.zod.d.ts +4 -0
  353. package/dist/billing/v1/generated/validators/payInvoiceRequest.zod.js +13 -1
  354. package/dist/billing/v1/generated/validators/payTogetherRequest.zod.d.ts +2 -0
  355. package/dist/billing/v1/generated/validators/payTogetherRequest.zod.js +5 -0
  356. package/dist/billing/v1/generated/validators/paymentResult.zod.d.ts +0 -1
  357. package/dist/billing/v1/generated/validators/previewInvoicePaymentParams.zod.d.ts +2 -0
  358. package/dist/billing/v1/generated/validators/previewInvoicePaymentParams.zod.js +2 -0
  359. package/dist/billing/v1/generated/validators/purchaseOperation.zod.d.ts +1 -1
  360. package/dist/billing/v1/generated/validators/purchaseOperation.zod.js +2 -2
  361. package/dist/billing/v1/generated/validators/quote.zod.d.ts +1 -1
  362. package/dist/billing/v1/generated/validators/quoteCancellation.zod.js +1 -1
  363. package/dist/billing/v1/generated/validators/quoteItemInput.zod.js +1 -1
  364. package/dist/billing/v1/generated/validators/quoteRequest.zod.js +1 -1
  365. package/dist/billing/v1/generated/validators/rate.zod.d.ts +5 -1
  366. package/dist/billing/v1/generated/validators/rate.zod.js +7 -5
  367. package/dist/billing/v1/generated/validators/rateList.zod.d.ts +5 -1
  368. package/dist/billing/v1/generated/validators/refund.zod.d.ts +2 -3
  369. package/dist/billing/v1/generated/validators/refund.zod.js +1 -1
  370. package/dist/billing/v1/generated/validators/refundList.zod.d.ts +2 -3
  371. package/dist/billing/v1/generated/validators/refundReason.zod.d.ts +1 -1
  372. package/dist/billing/v1/generated/validators/renewalOrderRequest.zod.d.ts +4 -0
  373. package/dist/billing/v1/generated/validators/renewalOrderRequest.zod.js +2 -0
  374. package/dist/billing/v1/generated/validators/subscription.zod.d.ts +6 -10
  375. package/dist/billing/v1/generated/validators/subscription.zod.js +21 -9
  376. package/dist/billing/v1/generated/validators/{cancellationRequest.zod.d.ts → subscriptionCancellation.zod.d.ts} +3 -3
  377. package/dist/billing/v1/generated/validators/{cancellationRequest.zod.js → subscriptionCancellation.zod.js} +2 -2
  378. package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +6 -10
  379. package/dist/billing/v1/generated/validators/topUp.zod.js +1 -1
  380. package/dist/billing/v1/generated/validators/transaction.zod.d.ts +0 -1
  381. package/dist/billing/v1/generated/validators/transaction.zod.js +1 -1
  382. package/dist/billing/v1/generated/validators/transactionList.zod.d.ts +0 -1
  383. package/dist/billing/v1/generated/validators/transactionType.zod.d.ts +0 -1
  384. package/dist/billing/v1/generated/validators/transactionType.zod.js +2 -2
  385. package/dist/canopy/v1/generated/models.d.ts +2883 -17
  386. package/dist/canopy/v1/generated/models.js +359 -0
  387. package/dist/canopy/v1/generated/validators/accountBalance.zod.d.ts +146 -0
  388. package/dist/canopy/v1/generated/validators/accountBalance.zod.js +49 -0
  389. package/dist/canopy/v1/generated/validators/accountIdentity.zod.d.ts +38 -0
  390. package/dist/canopy/v1/generated/validators/accountIdentity.zod.js +36 -0
  391. package/dist/canopy/v1/generated/validators/activeResource.zod.d.ts +64 -0
  392. package/dist/canopy/v1/generated/validators/activeResource.zod.js +59 -0
  393. package/dist/canopy/v1/generated/validators/activeResourceList.zod.d.ts +71 -0
  394. package/dist/canopy/v1/generated/validators/activeResourceList.zod.js +37 -0
  395. package/dist/canopy/v1/generated/validators/allowance.zod.d.ts +67 -0
  396. package/dist/canopy/v1/generated/validators/allowance.zod.js +64 -0
  397. package/dist/canopy/v1/generated/validators/allowanceList.zod.d.ts +74 -0
  398. package/dist/canopy/v1/generated/validators/allowanceList.zod.js +37 -0
  399. package/dist/canopy/v1/generated/validators/applicability.zod.d.ts +131 -0
  400. package/dist/canopy/v1/generated/validators/applicability.zod.js +55 -0
  401. package/dist/canopy/v1/generated/validators/applicablePlan.zod.d.ts +38 -0
  402. package/dist/canopy/v1/generated/validators/applicablePlan.zod.js +38 -0
  403. package/dist/canopy/v1/generated/validators/appliedCredit.zod.d.ts +38 -0
  404. package/dist/canopy/v1/generated/validators/appliedCredit.zod.js +39 -0
  405. package/dist/canopy/v1/generated/validators/autoRenewSet.zod.d.ts +36 -0
  406. package/dist/canopy/v1/generated/validators/autoRenewSet.zod.js +34 -0
  407. package/dist/canopy/v1/generated/validators/billingAccount.zod.d.ts +48 -0
  408. package/dist/canopy/v1/generated/validators/billingAccount.zod.js +54 -0
  409. package/dist/canopy/v1/generated/validators/billingAccountCreate.zod.d.ts +40 -0
  410. package/dist/canopy/v1/generated/validators/billingAccountCreate.zod.js +38 -0
  411. package/dist/canopy/v1/generated/validators/billingAccountList.zod.d.ts +55 -0
  412. package/dist/canopy/v1/generated/validators/billingAccountList.zod.js +37 -0
  413. package/dist/canopy/v1/generated/validators/billingAccountUpdate.zod.d.ts +38 -0
  414. package/dist/canopy/v1/generated/validators/billingAccountUpdate.zod.js +39 -0
  415. package/dist/canopy/v1/generated/validators/cancelSubscriptionRequest.zod.d.ts +44 -0
  416. package/dist/canopy/v1/generated/validators/cancelSubscriptionRequest.zod.js +44 -0
  417. package/dist/canopy/v1/generated/validators/cancellation.zod.d.ts +87 -0
  418. package/dist/canopy/v1/generated/validators/cancellation.zod.js +62 -0
  419. package/dist/canopy/v1/generated/validators/cancellationCreate.zod.d.ts +46 -0
  420. package/dist/canopy/v1/generated/validators/cancellationCreate.zod.js +54 -0
  421. package/dist/canopy/v1/generated/validators/cancellationItem.zod.d.ts +58 -0
  422. package/dist/canopy/v1/generated/validators/cancellationItem.zod.js +58 -0
  423. package/dist/canopy/v1/generated/validators/cancellationList.zod.d.ts +94 -0
  424. package/dist/canopy/v1/generated/validators/cancellationList.zod.js +37 -0
  425. package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.d.ts +69 -0
  426. package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.js +55 -0
  427. package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +54 -0
  428. package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.js +54 -0
  429. package/dist/canopy/v1/generated/validators/checkoutMode.zod.js +1 -1
  430. package/dist/canopy/v1/generated/validators/checkoutOptions.zod.js +2 -2
  431. package/dist/canopy/v1/generated/validators/contact.zod.d.ts +64 -0
  432. package/dist/canopy/v1/generated/validators/contact.zod.js +62 -0
  433. package/dist/canopy/v1/generated/validators/contactCreate.zod.d.ts +55 -0
  434. package/dist/canopy/v1/generated/validators/contactCreate.zod.js +53 -0
  435. package/dist/canopy/v1/generated/validators/contactList.zod.d.ts +61 -0
  436. package/dist/canopy/v1/generated/validators/contactList.zod.js +37 -0
  437. package/dist/canopy/v1/generated/validators/contactUpdate.zod.d.ts +56 -0
  438. package/dist/canopy/v1/generated/validators/contactUpdate.zod.js +54 -0
  439. package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.d.ts +23 -1
  440. package/dist/canopy/v1/generated/validators/creditGrant.zod.d.ts +149 -0
  441. package/dist/canopy/v1/generated/validators/creditGrant.zod.js +50 -0
  442. package/dist/canopy/v1/generated/validators/creditGrantList.zod.d.ts +156 -0
  443. package/dist/canopy/v1/generated/validators/creditGrantList.zod.js +37 -0
  444. package/dist/canopy/v1/generated/validators/creditGroup.zod.d.ts +135 -0
  445. package/dist/canopy/v1/generated/validators/creditGroup.zod.js +41 -0
  446. package/dist/canopy/v1/generated/validators/creditNote.zod.d.ts +57 -0
  447. package/dist/canopy/v1/generated/validators/creditNote.zod.js +63 -0
  448. package/dist/canopy/v1/generated/validators/creditNoteItem.zod.d.ts +40 -0
  449. package/dist/canopy/v1/generated/validators/creditNoteItem.zod.js +39 -0
  450. package/dist/canopy/v1/generated/validators/creditNoteItemList.zod.d.ts +47 -0
  451. package/dist/canopy/v1/generated/validators/creditNoteItemList.zod.js +37 -0
  452. package/dist/canopy/v1/generated/validators/creditNoteList.zod.d.ts +64 -0
  453. package/dist/canopy/v1/generated/validators/creditNoteList.zod.js +37 -0
  454. package/dist/canopy/v1/generated/validators/currency.zod.d.ts +44 -0
  455. package/dist/canopy/v1/generated/validators/currency.zod.js +53 -0
  456. package/dist/canopy/v1/generated/validators/currencyList.zod.d.ts +46 -0
  457. package/dist/canopy/v1/generated/validators/currencyList.zod.js +37 -0
  458. package/dist/canopy/v1/generated/validators/discount.zod.d.ts +165 -0
  459. package/dist/canopy/v1/generated/validators/discount.zod.js +67 -0
  460. package/dist/canopy/v1/generated/validators/discountList.zod.d.ts +172 -0
  461. package/dist/canopy/v1/generated/validators/discountList.zod.js +37 -0
  462. package/dist/canopy/v1/generated/validators/entitlement.zod.d.ts +48 -0
  463. package/dist/canopy/v1/generated/validators/entitlement.zod.js +43 -0
  464. package/dist/canopy/v1/generated/validators/entitlementList.zod.d.ts +55 -0
  465. package/dist/canopy/v1/generated/validators/entitlementList.zod.js +37 -0
  466. package/dist/canopy/v1/generated/validators/errorA200529.zod.d.ts +39 -0
  467. package/dist/canopy/v1/generated/validators/errorA200529.zod.js +33 -0
  468. package/dist/canopy/v1/generated/validators/featureGrant.zod.d.ts +56 -0
  469. package/dist/canopy/v1/generated/validators/featureGrant.zod.js +47 -0
  470. package/dist/canopy/v1/generated/validators/featureGrantList.zod.d.ts +63 -0
  471. package/dist/canopy/v1/generated/validators/featureGrantList.zod.js +37 -0
  472. package/dist/canopy/v1/generated/validators/featureGrantStatus.zod.d.ts +39 -0
  473. package/dist/canopy/v1/generated/validators/featureGrantStatus.zod.js +34 -0
  474. package/dist/canopy/v1/generated/validators/invoice.zod.d.ts +86 -0
  475. package/dist/canopy/v1/generated/validators/invoice.zod.js +76 -0
  476. package/dist/canopy/v1/generated/validators/invoiceItem.zod.d.ts +64 -0
  477. package/dist/canopy/v1/generated/validators/invoiceItem.zod.js +69 -0
  478. package/dist/canopy/v1/generated/validators/invoiceItemList.zod.d.ts +71 -0
  479. package/dist/canopy/v1/generated/validators/invoiceItemList.zod.js +37 -0
  480. package/dist/canopy/v1/generated/validators/invoiceList.zod.d.ts +93 -0
  481. package/dist/canopy/v1/generated/validators/invoiceList.zod.js +37 -0
  482. package/dist/canopy/v1/generated/validators/invoiceStatus.zod.d.ts +40 -0
  483. package/dist/canopy/v1/generated/validators/invoiceStatus.zod.js +34 -0
  484. package/dist/canopy/v1/generated/validators/invoiceSummary.zod.d.ts +56 -0
  485. package/dist/canopy/v1/generated/validators/invoiceSummary.zod.js +57 -0
  486. package/dist/canopy/v1/generated/validators/namedIdentity.zod.d.ts +38 -0
  487. package/dist/canopy/v1/generated/validators/namedIdentity.zod.js +38 -0
  488. package/dist/canopy/v1/generated/validators/objectIdentity.zod.d.ts +38 -0
  489. package/dist/canopy/v1/generated/validators/objectIdentity.zod.js +38 -0
  490. package/dist/canopy/v1/generated/validators/order.zod.d.ts +166 -0
  491. package/dist/canopy/v1/generated/validators/order.zod.js +88 -0
  492. package/dist/canopy/v1/generated/validators/orderCancel.zod.d.ts +37 -0
  493. package/dist/canopy/v1/generated/validators/orderCancel.zod.js +40 -0
  494. package/dist/canopy/v1/generated/validators/orderItem.zod.d.ts +92 -0
  495. package/dist/canopy/v1/generated/validators/orderItem.zod.js +96 -0
  496. package/dist/canopy/v1/generated/validators/orderItemList.zod.d.ts +98 -0
  497. package/dist/canopy/v1/generated/validators/orderItemList.zod.js +37 -0
  498. package/dist/canopy/v1/generated/validators/orderItemStatus.zod.d.ts +39 -0
  499. package/dist/canopy/v1/generated/validators/orderItemStatus.zod.js +34 -0
  500. package/dist/canopy/v1/generated/validators/orderList.zod.d.ts +173 -0
  501. package/dist/canopy/v1/generated/validators/orderList.zod.js +37 -0
  502. package/dist/canopy/v1/generated/validators/orderRefundQuote.zod.d.ts +40 -0
  503. package/dist/canopy/v1/generated/validators/orderRefundQuote.zod.js +41 -0
  504. package/dist/canopy/v1/generated/validators/orderRefundQuoteInput.zod.d.ts +38 -0
  505. package/dist/canopy/v1/generated/validators/orderRefundQuoteInput.zod.js +43 -0
  506. package/dist/canopy/v1/generated/validators/orderStatus.zod.d.ts +41 -0
  507. package/dist/canopy/v1/generated/validators/orderStatus.zod.js +34 -0
  508. package/dist/canopy/v1/generated/validators/paidWith.zod.d.ts +40 -0
  509. package/dist/canopy/v1/generated/validators/paidWith.zod.js +48 -0
  510. package/dist/canopy/v1/generated/validators/payInvoiceRequest.zod.d.ts +49 -0
  511. package/dist/canopy/v1/generated/validators/payInvoiceRequest.zod.js +76 -0
  512. package/dist/canopy/v1/generated/validators/payTogetherRequest.zod.d.ts +41 -0
  513. package/dist/canopy/v1/generated/validators/payTogetherRequest.zod.js +44 -0
  514. package/dist/canopy/v1/generated/validators/paymentAction.zod.d.ts +45 -0
  515. package/dist/canopy/v1/generated/validators/paymentAction.zod.js +47 -0
  516. package/dist/canopy/v1/generated/validators/paymentCancellationReason.zod.d.ts +37 -0
  517. package/dist/canopy/v1/generated/validators/paymentCancellationReason.zod.js +34 -0
  518. package/dist/canopy/v1/generated/validators/paymentMethod.zod.d.ts +48 -0
  519. package/dist/canopy/v1/generated/validators/paymentMethod.zod.js +42 -0
  520. package/dist/canopy/v1/generated/validators/paymentMethodList.zod.d.ts +55 -0
  521. package/dist/canopy/v1/generated/validators/paymentMethodList.zod.js +37 -0
  522. package/dist/canopy/v1/generated/validators/paymentMethodSetup.zod.d.ts +38 -0
  523. package/dist/canopy/v1/generated/validators/paymentMethodSetup.zod.js +40 -0
  524. package/dist/canopy/v1/generated/validators/paymentMethodSetupResult.zod.d.ts +49 -0
  525. package/dist/canopy/v1/generated/validators/paymentMethodSetupResult.zod.js +41 -0
  526. package/dist/canopy/v1/generated/validators/paymentOption.zod.d.ts +40 -0
  527. package/dist/canopy/v1/generated/validators/paymentOption.zod.js +38 -0
  528. package/dist/canopy/v1/generated/validators/paymentOptionList.zod.d.ts +47 -0
  529. package/dist/canopy/v1/generated/validators/paymentOptionList.zod.js +37 -0
  530. package/dist/canopy/v1/generated/validators/paymentOptionMethod.zod.d.ts +37 -0
  531. package/dist/canopy/v1/generated/validators/paymentOptionMethod.zod.js +39 -0
  532. package/dist/canopy/v1/generated/validators/paymentPreview.zod.d.ts +53 -0
  533. package/dist/canopy/v1/generated/validators/paymentPreview.zod.js +51 -0
  534. package/dist/canopy/v1/generated/validators/paymentPreviewInvoice.zod.d.ts +40 -0
  535. package/dist/canopy/v1/generated/validators/paymentPreviewInvoice.zod.js +39 -0
  536. package/dist/canopy/v1/generated/validators/paymentResult.zod.d.ts +109 -0
  537. package/dist/canopy/v1/generated/validators/paymentResult.zod.js +62 -0
  538. package/dist/canopy/v1/generated/validators/paymentStatus.zod.d.ts +39 -0
  539. package/dist/canopy/v1/generated/validators/paymentStatus.zod.js +34 -0
  540. package/dist/canopy/v1/generated/validators/placedOrder.zod.d.ts +23 -1
  541. package/dist/canopy/v1/generated/validators/placedOrder.zod.js +5 -8
  542. package/dist/canopy/v1/generated/validators/plan.zod.d.ts +54 -0
  543. package/dist/canopy/v1/generated/validators/plan.zod.js +46 -0
  544. package/dist/canopy/v1/generated/validators/planFeature.zod.d.ts +41 -0
  545. package/dist/canopy/v1/generated/validators/planFeature.zod.js +36 -0
  546. package/dist/canopy/v1/generated/validators/planList.zod.d.ts +61 -0
  547. package/dist/canopy/v1/generated/validators/planList.zod.js +37 -0
  548. package/dist/canopy/v1/generated/validators/price.zod.d.ts +104 -0
  549. package/dist/canopy/v1/generated/validators/price.zod.js +90 -0
  550. package/dist/canopy/v1/generated/validators/priceList.zod.d.ts +111 -0
  551. package/dist/canopy/v1/generated/validators/priceList.zod.js +37 -0
  552. package/dist/canopy/v1/generated/validators/priceOption.zod.d.ts +67 -0
  553. package/dist/canopy/v1/generated/validators/priceOption.zod.js +51 -0
  554. package/dist/canopy/v1/generated/validators/product.zod.d.ts +38 -0
  555. package/dist/canopy/v1/generated/validators/product.zod.js +37 -0
  556. package/dist/canopy/v1/generated/validators/productID.zod.d.ts +36 -0
  557. package/dist/canopy/v1/generated/validators/productID.zod.js +39 -0
  558. package/dist/canopy/v1/generated/validators/productList.zod.d.ts +45 -0
  559. package/dist/canopy/v1/generated/validators/productList.zod.js +37 -0
  560. package/dist/canopy/v1/generated/validators/projectAssignment.zod.d.ts +45 -0
  561. package/dist/canopy/v1/generated/validators/projectAssignment.zod.js +46 -0
  562. package/dist/canopy/v1/generated/validators/projectAssignmentList.zod.d.ts +52 -0
  563. package/dist/canopy/v1/generated/validators/projectAssignmentList.zod.js +37 -0
  564. package/dist/canopy/v1/generated/validators/purchaseOperation.zod.d.ts +38 -0
  565. package/dist/canopy/v1/generated/validators/purchaseOperation.zod.js +34 -0
  566. package/dist/canopy/v1/generated/validators/quote.zod.js +2 -2
  567. package/dist/canopy/v1/generated/validators/quote5f60d00.zod.d.ts +122 -0
  568. package/dist/canopy/v1/generated/validators/quote5f60d00.zod.js +53 -0
  569. package/dist/canopy/v1/generated/validators/quoteA200529.zod.d.ts +122 -0
  570. package/dist/canopy/v1/generated/validators/quoteA200529.zod.js +33 -0
  571. package/dist/canopy/v1/generated/validators/quoteCancellation.zod.d.ts +41 -0
  572. package/dist/canopy/v1/generated/validators/quoteCancellation.zod.js +43 -0
  573. package/dist/canopy/v1/generated/validators/quoteItem.zod.d.ts +6 -3
  574. package/dist/canopy/v1/generated/validators/quoteItem.zod.js +22 -11
  575. package/dist/canopy/v1/generated/validators/quoteItemDc1fddb.zod.d.ts +45 -0
  576. package/dist/canopy/v1/generated/validators/quoteItemDc1fddb.zod.js +50 -0
  577. package/dist/canopy/v1/generated/validators/quoteItemInput.zod.d.ts +65 -0
  578. package/dist/canopy/v1/generated/validators/quoteItemInput.zod.js +64 -0
  579. package/dist/canopy/v1/generated/validators/quoteRenewal.zod.d.ts +50 -0
  580. package/dist/canopy/v1/generated/validators/quoteRenewal.zod.js +49 -0
  581. package/dist/canopy/v1/generated/validators/quoteRenewalResult.zod.d.ts +50 -0
  582. package/dist/canopy/v1/generated/validators/quoteRenewalResult.zod.js +47 -0
  583. package/dist/canopy/v1/generated/validators/quoteRequest.zod.d.ts +95 -0
  584. package/dist/canopy/v1/generated/validators/quoteRequest.zod.js +65 -0
  585. package/dist/canopy/v1/generated/validators/quotedDiscount.zod.d.ts +42 -0
  586. package/dist/canopy/v1/generated/validators/quotedDiscount.zod.js +44 -0
  587. package/dist/canopy/v1/generated/validators/rate.zod.d.ts +61 -0
  588. package/dist/canopy/v1/generated/validators/rate.zod.js +56 -0
  589. package/dist/canopy/v1/generated/validators/rateList.zod.d.ts +68 -0
  590. package/dist/canopy/v1/generated/validators/rateList.zod.js +37 -0
  591. package/dist/canopy/v1/generated/validators/refund.zod.d.ts +115 -0
  592. package/dist/canopy/v1/generated/validators/refund.zod.js +67 -0
  593. package/dist/canopy/v1/generated/validators/refundList.zod.d.ts +122 -0
  594. package/dist/canopy/v1/generated/validators/refundList.zod.js +37 -0
  595. package/dist/canopy/v1/generated/validators/refundPolicy.zod.d.ts +37 -0
  596. package/dist/canopy/v1/generated/validators/refundPolicy.zod.js +34 -0
  597. package/dist/canopy/v1/generated/validators/refundReason.zod.d.ts +46 -0
  598. package/dist/canopy/v1/generated/validators/refundReason.zod.js +46 -0
  599. package/dist/canopy/v1/generated/validators/renewRequest.zod.d.ts +54 -0
  600. package/dist/canopy/v1/generated/validators/renewRequest.zod.js +65 -0
  601. package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.d.ts +48 -0
  602. package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.js +48 -0
  603. package/dist/canopy/v1/generated/validators/renewalPrice.zod.d.ts +53 -0
  604. package/dist/canopy/v1/generated/validators/renewalPrice.zod.js +46 -0
  605. package/dist/canopy/v1/generated/validators/renewalPriceList.zod.d.ts +60 -0
  606. package/dist/canopy/v1/generated/validators/renewalPriceList.zod.js +37 -0
  607. package/dist/canopy/v1/generated/validators/serviceResource.zod.js +1 -1
  608. package/dist/canopy/v1/generated/validators/setProjectAssignmentRequest.zod.d.ts +36 -0
  609. package/dist/canopy/v1/generated/validators/setProjectAssignmentRequest.zod.js +34 -0
  610. package/dist/canopy/v1/generated/validators/spendRow.zod.d.ts +45 -0
  611. package/dist/canopy/v1/generated/validators/spendRow.zod.js +41 -0
  612. package/dist/canopy/v1/generated/validators/spendRowList.zod.d.ts +54 -0
  613. package/dist/canopy/v1/generated/validators/spendRowList.zod.js +40 -0
  614. package/dist/canopy/v1/generated/validators/statement.zod.d.ts +57 -0
  615. package/dist/canopy/v1/generated/validators/statement.zod.js +59 -0
  616. package/dist/canopy/v1/generated/validators/statementAmounts.zod.d.ts +39 -0
  617. package/dist/canopy/v1/generated/validators/statementAmounts.zod.js +38 -0
  618. package/dist/canopy/v1/generated/validators/statementItem.zod.d.ts +42 -0
  619. package/dist/canopy/v1/generated/validators/statementItem.zod.js +44 -0
  620. package/dist/canopy/v1/generated/validators/statementList.zod.d.ts +64 -0
  621. package/dist/canopy/v1/generated/validators/statementList.zod.js +37 -0
  622. package/dist/canopy/v1/generated/validators/statementStatus.zod.d.ts +37 -0
  623. package/dist/canopy/v1/generated/validators/statementStatus.zod.js +32 -0
  624. package/dist/canopy/v1/generated/validators/statementSummary.zod.d.ts +58 -0
  625. package/dist/canopy/v1/generated/validators/statementSummary.zod.js +42 -0
  626. package/dist/canopy/v1/generated/validators/subscription.zod.d.ts +134 -0
  627. package/dist/canopy/v1/generated/validators/subscription.zod.js +115 -0
  628. package/dist/canopy/v1/generated/validators/subscriptionCancellation.zod.d.ts +60 -0
  629. package/dist/canopy/v1/generated/validators/subscriptionCancellation.zod.js +53 -0
  630. package/dist/canopy/v1/generated/validators/subscriptionList.zod.d.ts +140 -0
  631. package/dist/canopy/v1/generated/validators/subscriptionList.zod.js +37 -0
  632. package/dist/canopy/v1/generated/validators/taxItem.zod.d.ts +44 -0
  633. package/dist/canopy/v1/generated/validators/taxItem.zod.js +44 -0
  634. package/dist/canopy/v1/generated/validators/terminationPolicy.zod.d.ts +37 -0
  635. package/dist/canopy/v1/generated/validators/terminationPolicy.zod.js +34 -0
  636. package/dist/canopy/v1/generated/validators/tier.zod.d.ts +38 -0
  637. package/dist/canopy/v1/generated/validators/tier.zod.js +40 -0
  638. package/dist/canopy/v1/generated/validators/topUp.zod.d.ts +74 -0
  639. package/dist/canopy/v1/generated/validators/topUp.zod.js +69 -0
  640. package/dist/canopy/v1/generated/validators/topUpCreate.zod.d.ts +45 -0
  641. package/dist/canopy/v1/generated/validators/topUpCreate.zod.js +57 -0
  642. package/dist/canopy/v1/generated/validators/topUpList.zod.d.ts +81 -0
  643. package/dist/canopy/v1/generated/validators/topUpList.zod.js +37 -0
  644. package/dist/canopy/v1/generated/validators/transaction.zod.d.ts +76 -0
  645. package/dist/canopy/v1/generated/validators/transaction.zod.js +71 -0
  646. package/dist/canopy/v1/generated/validators/transactionList.zod.d.ts +83 -0
  647. package/dist/canopy/v1/generated/validators/transactionList.zod.js +37 -0
  648. package/dist/canopy/v1/generated/validators/transactionType.zod.d.ts +39 -0
  649. package/dist/canopy/v1/generated/validators/transactionType.zod.js +34 -0
  650. package/dist/canopy/v1/generated/validators/usageCharge.zod.d.ts +66 -0
  651. package/dist/canopy/v1/generated/validators/usageCharge.zod.js +80 -0
  652. package/dist/canopy/v1/generated/validators/usageChargeList.zod.d.ts +73 -0
  653. package/dist/canopy/v1/generated/validators/usageChargeList.zod.js +37 -0
  654. package/dist/compute/v1/generated/models.d.ts +2882 -15
  655. package/dist/compute/v1/generated/models.js +359 -0
  656. package/dist/compute/v1/generated/validators/accountBalance.zod.d.ts +139 -0
  657. package/dist/compute/v1/generated/validators/accountBalance.zod.js +42 -0
  658. package/dist/compute/v1/generated/validators/accountIdentity.zod.d.ts +31 -0
  659. package/dist/compute/v1/generated/validators/accountIdentity.zod.js +29 -0
  660. package/dist/compute/v1/generated/validators/activeResource.zod.d.ts +57 -0
  661. package/dist/compute/v1/generated/validators/activeResource.zod.js +52 -0
  662. package/dist/compute/v1/generated/validators/activeResourceList.zod.d.ts +64 -0
  663. package/dist/compute/v1/generated/validators/activeResourceList.zod.js +30 -0
  664. package/dist/compute/v1/generated/validators/allocateFloatingIPResponseBody.zod.d.ts +23 -1
  665. package/dist/compute/v1/generated/validators/allowance.zod.d.ts +60 -0
  666. package/dist/compute/v1/generated/validators/allowance.zod.js +57 -0
  667. package/dist/compute/v1/generated/validators/allowanceList.zod.d.ts +67 -0
  668. package/dist/compute/v1/generated/validators/allowanceList.zod.js +30 -0
  669. package/dist/compute/v1/generated/validators/applicability.zod.d.ts +124 -0
  670. package/dist/compute/v1/generated/validators/applicability.zod.js +48 -0
  671. package/dist/compute/v1/generated/validators/applicablePlan.zod.d.ts +31 -0
  672. package/dist/compute/v1/generated/validators/applicablePlan.zod.js +31 -0
  673. package/dist/compute/v1/generated/validators/appliedCredit.zod.d.ts +31 -0
  674. package/dist/compute/v1/generated/validators/appliedCredit.zod.js +32 -0
  675. package/dist/compute/v1/generated/validators/autoRenewSet.zod.d.ts +29 -0
  676. package/dist/compute/v1/generated/validators/autoRenewSet.zod.js +27 -0
  677. package/dist/compute/v1/generated/validators/billingAccount.zod.d.ts +41 -0
  678. package/dist/compute/v1/generated/validators/billingAccount.zod.js +47 -0
  679. package/dist/compute/v1/generated/validators/billingAccountCreate.zod.d.ts +33 -0
  680. package/dist/compute/v1/generated/validators/billingAccountCreate.zod.js +31 -0
  681. package/dist/compute/v1/generated/validators/billingAccountList.zod.d.ts +48 -0
  682. package/dist/compute/v1/generated/validators/billingAccountList.zod.js +30 -0
  683. package/dist/compute/v1/generated/validators/billingAccountUpdate.zod.d.ts +31 -0
  684. package/dist/compute/v1/generated/validators/billingAccountUpdate.zod.js +32 -0
  685. package/dist/compute/v1/generated/validators/cancelSubscriptionRequest.zod.d.ts +37 -0
  686. package/dist/compute/v1/generated/validators/cancelSubscriptionRequest.zod.js +37 -0
  687. package/dist/compute/v1/generated/validators/cancellation.zod.d.ts +80 -0
  688. package/dist/compute/v1/generated/validators/cancellation.zod.js +55 -0
  689. package/dist/compute/v1/generated/validators/cancellationCreate.zod.d.ts +39 -0
  690. package/dist/compute/v1/generated/validators/cancellationCreate.zod.js +47 -0
  691. package/dist/compute/v1/generated/validators/cancellationItem.zod.d.ts +51 -0
  692. package/dist/compute/v1/generated/validators/cancellationItem.zod.js +51 -0
  693. package/dist/compute/v1/generated/validators/cancellationList.zod.d.ts +87 -0
  694. package/dist/compute/v1/generated/validators/cancellationList.zod.js +30 -0
  695. package/dist/compute/v1/generated/validators/cancellationRefundPreview.zod.d.ts +62 -0
  696. package/dist/compute/v1/generated/validators/cancellationRefundPreview.zod.js +48 -0
  697. package/dist/compute/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +47 -0
  698. package/dist/compute/v1/generated/validators/cancellationRefundPreviewItem.zod.js +47 -0
  699. package/dist/compute/v1/generated/validators/checkoutMode.zod.js +1 -1
  700. package/dist/compute/v1/generated/validators/checkoutOptions.zod.js +2 -2
  701. package/dist/compute/v1/generated/validators/contact.zod.d.ts +57 -0
  702. package/dist/compute/v1/generated/validators/contact.zod.js +55 -0
  703. package/dist/compute/v1/generated/validators/contactCreate.zod.d.ts +48 -0
  704. package/dist/compute/v1/generated/validators/contactCreate.zod.js +46 -0
  705. package/dist/compute/v1/generated/validators/contactList.zod.d.ts +54 -0
  706. package/dist/compute/v1/generated/validators/contactList.zod.js +30 -0
  707. package/dist/compute/v1/generated/validators/contactUpdate.zod.d.ts +49 -0
  708. package/dist/compute/v1/generated/validators/contactUpdate.zod.js +47 -0
  709. package/dist/compute/v1/generated/validators/createBackupCapacityPackResponseBody.zod.d.ts +23 -1
  710. package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.d.ts +23 -1
  711. package/dist/compute/v1/generated/validators/createDiskResponseBody.zod.d.ts +23 -1
  712. package/dist/compute/v1/generated/validators/createImageResponseBody.zod.d.ts +23 -1
  713. package/dist/compute/v1/generated/validators/creditGrant.zod.d.ts +142 -0
  714. package/dist/compute/v1/generated/validators/creditGrant.zod.js +43 -0
  715. package/dist/compute/v1/generated/validators/creditGrantList.zod.d.ts +149 -0
  716. package/dist/compute/v1/generated/validators/creditGrantList.zod.js +30 -0
  717. package/dist/compute/v1/generated/validators/creditGroup.zod.d.ts +128 -0
  718. package/dist/compute/v1/generated/validators/creditGroup.zod.js +34 -0
  719. package/dist/compute/v1/generated/validators/creditNote.zod.d.ts +50 -0
  720. package/dist/compute/v1/generated/validators/creditNote.zod.js +56 -0
  721. package/dist/compute/v1/generated/validators/creditNoteItem.zod.d.ts +33 -0
  722. package/dist/compute/v1/generated/validators/creditNoteItem.zod.js +32 -0
  723. package/dist/compute/v1/generated/validators/creditNoteItemList.zod.d.ts +40 -0
  724. package/dist/compute/v1/generated/validators/creditNoteItemList.zod.js +30 -0
  725. package/dist/compute/v1/generated/validators/creditNoteList.zod.d.ts +57 -0
  726. package/dist/compute/v1/generated/validators/creditNoteList.zod.js +30 -0
  727. package/dist/compute/v1/generated/validators/currency.zod.d.ts +37 -0
  728. package/dist/compute/v1/generated/validators/currency.zod.js +46 -0
  729. package/dist/compute/v1/generated/validators/currencyList.zod.d.ts +39 -0
  730. package/dist/compute/v1/generated/validators/currencyList.zod.js +30 -0
  731. package/dist/compute/v1/generated/validators/discount.zod.d.ts +158 -0
  732. package/dist/compute/v1/generated/validators/discount.zod.js +60 -0
  733. package/dist/compute/v1/generated/validators/discountList.zod.d.ts +165 -0
  734. package/dist/compute/v1/generated/validators/discountList.zod.js +30 -0
  735. package/dist/compute/v1/generated/validators/entitlement.zod.d.ts +41 -0
  736. package/dist/compute/v1/generated/validators/entitlement.zod.js +36 -0
  737. package/dist/compute/v1/generated/validators/entitlementList.zod.d.ts +48 -0
  738. package/dist/compute/v1/generated/validators/entitlementList.zod.js +30 -0
  739. package/dist/compute/v1/generated/validators/errorA200529.zod.d.ts +32 -0
  740. package/dist/compute/v1/generated/validators/errorA200529.zod.js +26 -0
  741. package/dist/compute/v1/generated/validators/featureGrant.zod.d.ts +49 -0
  742. package/dist/compute/v1/generated/validators/featureGrant.zod.js +40 -0
  743. package/dist/compute/v1/generated/validators/featureGrantList.zod.d.ts +56 -0
  744. package/dist/compute/v1/generated/validators/featureGrantList.zod.js +30 -0
  745. package/dist/compute/v1/generated/validators/featureGrantStatus.zod.d.ts +32 -0
  746. package/dist/compute/v1/generated/validators/featureGrantStatus.zod.js +27 -0
  747. package/dist/compute/v1/generated/validators/invoice.zod.d.ts +79 -0
  748. package/dist/compute/v1/generated/validators/invoice.zod.js +69 -0
  749. package/dist/compute/v1/generated/validators/invoiceItem.zod.d.ts +57 -0
  750. package/dist/compute/v1/generated/validators/invoiceItem.zod.js +62 -0
  751. package/dist/compute/v1/generated/validators/invoiceItemList.zod.d.ts +64 -0
  752. package/dist/compute/v1/generated/validators/invoiceItemList.zod.js +30 -0
  753. package/dist/compute/v1/generated/validators/invoiceList.zod.d.ts +86 -0
  754. package/dist/compute/v1/generated/validators/invoiceList.zod.js +30 -0
  755. package/dist/compute/v1/generated/validators/invoiceStatus.zod.d.ts +33 -0
  756. package/dist/compute/v1/generated/validators/invoiceStatus.zod.js +27 -0
  757. package/dist/compute/v1/generated/validators/invoiceSummary.zod.d.ts +49 -0
  758. package/dist/compute/v1/generated/validators/invoiceSummary.zod.js +50 -0
  759. package/dist/compute/v1/generated/validators/launchInstanceResponseBody.zod.d.ts +23 -1
  760. package/dist/compute/v1/generated/validators/namedIdentity.zod.d.ts +31 -0
  761. package/dist/compute/v1/generated/validators/namedIdentity.zod.js +31 -0
  762. package/dist/compute/v1/generated/validators/objectIdentity.zod.d.ts +31 -0
  763. package/dist/compute/v1/generated/validators/objectIdentity.zod.js +31 -0
  764. package/dist/compute/v1/generated/validators/order.zod.d.ts +159 -0
  765. package/dist/compute/v1/generated/validators/order.zod.js +81 -0
  766. package/dist/compute/v1/generated/validators/orderCancel.zod.d.ts +30 -0
  767. package/dist/compute/v1/generated/validators/orderCancel.zod.js +33 -0
  768. package/dist/compute/v1/generated/validators/orderItem.zod.d.ts +85 -0
  769. package/dist/compute/v1/generated/validators/orderItem.zod.js +89 -0
  770. package/dist/compute/v1/generated/validators/orderItemList.zod.d.ts +91 -0
  771. package/dist/compute/v1/generated/validators/orderItemList.zod.js +30 -0
  772. package/dist/compute/v1/generated/validators/orderItemStatus.zod.d.ts +32 -0
  773. package/dist/compute/v1/generated/validators/orderItemStatus.zod.js +27 -0
  774. package/dist/compute/v1/generated/validators/orderList.zod.d.ts +166 -0
  775. package/dist/compute/v1/generated/validators/orderList.zod.js +30 -0
  776. package/dist/compute/v1/generated/validators/orderRefundQuote.zod.d.ts +33 -0
  777. package/dist/compute/v1/generated/validators/orderRefundQuote.zod.js +34 -0
  778. package/dist/compute/v1/generated/validators/orderRefundQuoteInput.zod.d.ts +31 -0
  779. package/dist/compute/v1/generated/validators/orderRefundQuoteInput.zod.js +36 -0
  780. package/dist/compute/v1/generated/validators/orderStatus.zod.d.ts +34 -0
  781. package/dist/compute/v1/generated/validators/orderStatus.zod.js +27 -0
  782. package/dist/compute/v1/generated/validators/paidWith.zod.d.ts +33 -0
  783. package/dist/compute/v1/generated/validators/paidWith.zod.js +41 -0
  784. package/dist/compute/v1/generated/validators/payInvoiceRequest.zod.d.ts +42 -0
  785. package/dist/compute/v1/generated/validators/payInvoiceRequest.zod.js +69 -0
  786. package/dist/compute/v1/generated/validators/payTogetherRequest.zod.d.ts +34 -0
  787. package/dist/compute/v1/generated/validators/payTogetherRequest.zod.js +37 -0
  788. package/dist/compute/v1/generated/validators/paymentAction.zod.d.ts +38 -0
  789. package/dist/compute/v1/generated/validators/paymentAction.zod.js +40 -0
  790. package/dist/compute/v1/generated/validators/paymentCancellationReason.zod.d.ts +30 -0
  791. package/dist/compute/v1/generated/validators/paymentCancellationReason.zod.js +27 -0
  792. package/dist/compute/v1/generated/validators/paymentMethod.zod.d.ts +41 -0
  793. package/dist/compute/v1/generated/validators/paymentMethod.zod.js +35 -0
  794. package/dist/compute/v1/generated/validators/paymentMethodList.zod.d.ts +48 -0
  795. package/dist/compute/v1/generated/validators/paymentMethodList.zod.js +30 -0
  796. package/dist/compute/v1/generated/validators/paymentMethodSetup.zod.d.ts +31 -0
  797. package/dist/compute/v1/generated/validators/paymentMethodSetup.zod.js +33 -0
  798. package/dist/compute/v1/generated/validators/paymentMethodSetupResult.zod.d.ts +42 -0
  799. package/dist/compute/v1/generated/validators/paymentMethodSetupResult.zod.js +34 -0
  800. package/dist/compute/v1/generated/validators/paymentOption.zod.d.ts +33 -0
  801. package/dist/compute/v1/generated/validators/paymentOption.zod.js +31 -0
  802. package/dist/compute/v1/generated/validators/paymentOptionList.zod.d.ts +40 -0
  803. package/dist/compute/v1/generated/validators/paymentOptionList.zod.js +30 -0
  804. package/dist/compute/v1/generated/validators/paymentOptionMethod.zod.d.ts +30 -0
  805. package/dist/compute/v1/generated/validators/paymentOptionMethod.zod.js +32 -0
  806. package/dist/compute/v1/generated/validators/paymentPreview.zod.d.ts +46 -0
  807. package/dist/compute/v1/generated/validators/paymentPreview.zod.js +44 -0
  808. package/dist/compute/v1/generated/validators/paymentPreviewInvoice.zod.d.ts +33 -0
  809. package/dist/compute/v1/generated/validators/paymentPreviewInvoice.zod.js +32 -0
  810. package/dist/compute/v1/generated/validators/paymentResult.zod.d.ts +102 -0
  811. package/dist/compute/v1/generated/validators/paymentResult.zod.js +55 -0
  812. package/dist/compute/v1/generated/validators/paymentStatus.zod.d.ts +32 -0
  813. package/dist/compute/v1/generated/validators/paymentStatus.zod.js +27 -0
  814. package/dist/compute/v1/generated/validators/placedOrder.zod.d.ts +23 -1
  815. package/dist/compute/v1/generated/validators/placedOrder.zod.js +5 -8
  816. package/dist/compute/v1/generated/validators/plan.zod.d.ts +47 -0
  817. package/dist/compute/v1/generated/validators/plan.zod.js +39 -0
  818. package/dist/compute/v1/generated/validators/planFeature.zod.d.ts +34 -0
  819. package/dist/compute/v1/generated/validators/planFeature.zod.js +29 -0
  820. package/dist/compute/v1/generated/validators/planList.zod.d.ts +54 -0
  821. package/dist/compute/v1/generated/validators/planList.zod.js +30 -0
  822. package/dist/compute/v1/generated/validators/price.zod.d.ts +97 -0
  823. package/dist/compute/v1/generated/validators/price.zod.js +83 -0
  824. package/dist/compute/v1/generated/validators/priceList.zod.d.ts +104 -0
  825. package/dist/compute/v1/generated/validators/priceList.zod.js +30 -0
  826. package/dist/compute/v1/generated/validators/priceOption.zod.d.ts +60 -0
  827. package/dist/compute/v1/generated/validators/priceOption.zod.js +44 -0
  828. package/dist/compute/v1/generated/validators/product.zod.d.ts +31 -0
  829. package/dist/compute/v1/generated/validators/product.zod.js +30 -0
  830. package/dist/compute/v1/generated/validators/productID.zod.d.ts +29 -0
  831. package/dist/compute/v1/generated/validators/productID.zod.js +32 -0
  832. package/dist/compute/v1/generated/validators/productList.zod.d.ts +38 -0
  833. package/dist/compute/v1/generated/validators/productList.zod.js +30 -0
  834. package/dist/compute/v1/generated/validators/projectAssignment.zod.d.ts +38 -0
  835. package/dist/compute/v1/generated/validators/projectAssignment.zod.js +39 -0
  836. package/dist/compute/v1/generated/validators/projectAssignmentList.zod.d.ts +45 -0
  837. package/dist/compute/v1/generated/validators/projectAssignmentList.zod.js +30 -0
  838. package/dist/compute/v1/generated/validators/purchaseOperation.zod.d.ts +31 -0
  839. package/dist/compute/v1/generated/validators/purchaseOperation.zod.js +27 -0
  840. package/dist/compute/v1/generated/validators/quote.zod.js +2 -2
  841. package/dist/compute/v1/generated/validators/quote5f60d00.zod.d.ts +115 -0
  842. package/dist/compute/v1/generated/validators/quote5f60d00.zod.js +46 -0
  843. package/dist/compute/v1/generated/validators/quoteA200529.zod.d.ts +115 -0
  844. package/dist/compute/v1/generated/validators/quoteA200529.zod.js +26 -0
  845. package/dist/compute/v1/generated/validators/quoteCancellation.zod.d.ts +34 -0
  846. package/dist/compute/v1/generated/validators/quoteCancellation.zod.js +36 -0
  847. package/dist/compute/v1/generated/validators/quoteItem.zod.d.ts +6 -3
  848. package/dist/compute/v1/generated/validators/quoteItem.zod.js +22 -11
  849. package/dist/compute/v1/generated/validators/quoteItemDc1fddb.zod.d.ts +38 -0
  850. package/dist/compute/v1/generated/validators/quoteItemDc1fddb.zod.js +43 -0
  851. package/dist/compute/v1/generated/validators/quoteItemInput.zod.d.ts +58 -0
  852. package/dist/compute/v1/generated/validators/quoteItemInput.zod.js +57 -0
  853. package/dist/compute/v1/generated/validators/quoteRenewal.zod.d.ts +43 -0
  854. package/dist/compute/v1/generated/validators/quoteRenewal.zod.js +42 -0
  855. package/dist/compute/v1/generated/validators/quoteRenewalResult.zod.d.ts +43 -0
  856. package/dist/compute/v1/generated/validators/quoteRenewalResult.zod.js +40 -0
  857. package/dist/compute/v1/generated/validators/quoteRequest.zod.d.ts +88 -0
  858. package/dist/compute/v1/generated/validators/quoteRequest.zod.js +58 -0
  859. package/dist/compute/v1/generated/validators/quotedDiscount.zod.d.ts +35 -0
  860. package/dist/compute/v1/generated/validators/quotedDiscount.zod.js +37 -0
  861. package/dist/compute/v1/generated/validators/rate.zod.d.ts +54 -0
  862. package/dist/compute/v1/generated/validators/rate.zod.js +49 -0
  863. package/dist/compute/v1/generated/validators/rateList.zod.d.ts +61 -0
  864. package/dist/compute/v1/generated/validators/rateList.zod.js +30 -0
  865. package/dist/compute/v1/generated/validators/refund.zod.d.ts +108 -0
  866. package/dist/compute/v1/generated/validators/refund.zod.js +60 -0
  867. package/dist/compute/v1/generated/validators/refundList.zod.d.ts +115 -0
  868. package/dist/compute/v1/generated/validators/refundList.zod.js +30 -0
  869. package/dist/compute/v1/generated/validators/refundPolicy.zod.d.ts +30 -0
  870. package/dist/compute/v1/generated/validators/refundPolicy.zod.js +27 -0
  871. package/dist/compute/v1/generated/validators/refundReason.zod.d.ts +39 -0
  872. package/dist/compute/v1/generated/validators/refundReason.zod.js +39 -0
  873. package/dist/compute/v1/generated/validators/renewRequest.zod.d.ts +47 -0
  874. package/dist/compute/v1/generated/validators/renewRequest.zod.js +58 -0
  875. package/dist/compute/v1/generated/validators/renewalOrderRequest.zod.d.ts +41 -0
  876. package/dist/compute/v1/generated/validators/renewalOrderRequest.zod.js +41 -0
  877. package/dist/compute/v1/generated/validators/renewalPrice.zod.d.ts +46 -0
  878. package/dist/compute/v1/generated/validators/renewalPrice.zod.js +39 -0
  879. package/dist/compute/v1/generated/validators/renewalPriceList.zod.d.ts +53 -0
  880. package/dist/compute/v1/generated/validators/renewalPriceList.zod.js +30 -0
  881. package/dist/compute/v1/generated/validators/resizeDiskResponseBody.zod.d.ts +23 -1
  882. package/dist/compute/v1/generated/validators/resizeInstanceResponseBody.zod.d.ts +23 -1
  883. package/dist/compute/v1/generated/validators/setFloatingIPBandwidthResponseBody.zod.d.ts +23 -1
  884. package/dist/compute/v1/generated/validators/setProjectAssignmentRequest.zod.d.ts +29 -0
  885. package/dist/compute/v1/generated/validators/setProjectAssignmentRequest.zod.js +27 -0
  886. package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.d.ts +23 -1
  887. package/dist/compute/v1/generated/validators/spendRow.zod.d.ts +38 -0
  888. package/dist/compute/v1/generated/validators/spendRow.zod.js +34 -0
  889. package/dist/compute/v1/generated/validators/spendRowList.zod.d.ts +47 -0
  890. package/dist/compute/v1/generated/validators/spendRowList.zod.js +33 -0
  891. package/dist/compute/v1/generated/validators/statement.zod.d.ts +50 -0
  892. package/dist/compute/v1/generated/validators/statement.zod.js +52 -0
  893. package/dist/compute/v1/generated/validators/statementAmounts.zod.d.ts +32 -0
  894. package/dist/compute/v1/generated/validators/statementAmounts.zod.js +31 -0
  895. package/dist/compute/v1/generated/validators/statementItem.zod.d.ts +35 -0
  896. package/dist/compute/v1/generated/validators/statementItem.zod.js +37 -0
  897. package/dist/compute/v1/generated/validators/statementList.zod.d.ts +57 -0
  898. package/dist/compute/v1/generated/validators/statementList.zod.js +30 -0
  899. package/dist/compute/v1/generated/validators/statementStatus.zod.d.ts +30 -0
  900. package/dist/compute/v1/generated/validators/statementStatus.zod.js +25 -0
  901. package/dist/compute/v1/generated/validators/statementSummary.zod.d.ts +51 -0
  902. package/dist/compute/v1/generated/validators/statementSummary.zod.js +35 -0
  903. package/dist/compute/v1/generated/validators/subscription.zod.d.ts +127 -0
  904. package/dist/compute/v1/generated/validators/subscription.zod.js +108 -0
  905. package/dist/compute/v1/generated/validators/subscriptionCancellation.zod.d.ts +53 -0
  906. package/dist/compute/v1/generated/validators/subscriptionCancellation.zod.js +46 -0
  907. package/dist/compute/v1/generated/validators/subscriptionList.zod.d.ts +133 -0
  908. package/dist/compute/v1/generated/validators/subscriptionList.zod.js +30 -0
  909. package/dist/compute/v1/generated/validators/taxItem.zod.d.ts +37 -0
  910. package/dist/compute/v1/generated/validators/taxItem.zod.js +37 -0
  911. package/dist/compute/v1/generated/validators/terminationPolicyA200529.zod.d.ts +30 -0
  912. package/dist/compute/v1/generated/validators/terminationPolicyA200529.zod.js +26 -0
  913. package/dist/compute/v1/generated/validators/terminationPolicyBfdab9f.zod.d.ts +30 -0
  914. package/dist/compute/v1/generated/validators/terminationPolicyBfdab9f.zod.js +27 -0
  915. package/dist/compute/v1/generated/validators/tier.zod.d.ts +31 -0
  916. package/dist/compute/v1/generated/validators/tier.zod.js +33 -0
  917. package/dist/compute/v1/generated/validators/topUp.zod.d.ts +67 -0
  918. package/dist/compute/v1/generated/validators/topUp.zod.js +62 -0
  919. package/dist/compute/v1/generated/validators/topUpCreate.zod.d.ts +38 -0
  920. package/dist/compute/v1/generated/validators/topUpCreate.zod.js +50 -0
  921. package/dist/compute/v1/generated/validators/topUpList.zod.d.ts +74 -0
  922. package/dist/compute/v1/generated/validators/topUpList.zod.js +30 -0
  923. package/dist/compute/v1/generated/validators/transaction.zod.d.ts +69 -0
  924. package/dist/compute/v1/generated/validators/transaction.zod.js +64 -0
  925. package/dist/compute/v1/generated/validators/transactionList.zod.d.ts +76 -0
  926. package/dist/compute/v1/generated/validators/transactionList.zod.js +30 -0
  927. package/dist/compute/v1/generated/validators/transactionType.zod.d.ts +32 -0
  928. package/dist/compute/v1/generated/validators/transactionType.zod.js +27 -0
  929. package/dist/compute/v1/generated/validators/usageCharge.zod.d.ts +59 -0
  930. package/dist/compute/v1/generated/validators/usageCharge.zod.js +73 -0
  931. package/dist/compute/v1/generated/validators/usageChargeList.zod.d.ts +66 -0
  932. package/dist/compute/v1/generated/validators/usageChargeList.zod.js +30 -0
  933. package/dist/membership/v1/generated/functions.d.ts +224 -0
  934. package/dist/membership/v1/generated/functions.js +237 -0
  935. package/dist/membership/v1/generated/models.d.ts +3308 -0
  936. package/dist/membership/v1/generated/models.js +400 -0
  937. package/dist/membership/v1/generated/schemas.zod.d.ts +139 -0
  938. package/dist/membership/v1/generated/schemas.zod.js +158 -0
  939. package/dist/membership/v1/generated/validators/accountBalance.zod.d.ts +138 -0
  940. package/dist/membership/v1/generated/validators/accountBalance.zod.js +41 -0
  941. package/dist/membership/v1/generated/validators/accountIdentity.zod.d.ts +30 -0
  942. package/dist/membership/v1/generated/validators/accountIdentity.zod.js +28 -0
  943. package/dist/membership/v1/generated/validators/activeResource.zod.d.ts +56 -0
  944. package/dist/membership/v1/generated/validators/activeResource.zod.js +51 -0
  945. package/dist/membership/v1/generated/validators/activeResourceList.zod.d.ts +63 -0
  946. package/dist/membership/v1/generated/validators/activeResourceList.zod.js +29 -0
  947. package/dist/membership/v1/generated/validators/allowance.zod.d.ts +59 -0
  948. package/dist/membership/v1/generated/validators/allowance.zod.js +56 -0
  949. package/dist/membership/v1/generated/validators/allowanceBenefit.zod.d.ts +36 -0
  950. package/dist/membership/v1/generated/validators/allowanceBenefit.zod.js +36 -0
  951. package/dist/membership/v1/generated/validators/allowanceList.zod.d.ts +66 -0
  952. package/dist/membership/v1/generated/validators/allowanceList.zod.js +29 -0
  953. package/dist/membership/v1/generated/validators/applicability.zod.d.ts +123 -0
  954. package/dist/membership/v1/generated/validators/applicability.zod.js +47 -0
  955. package/dist/membership/v1/generated/validators/applicablePlan.zod.d.ts +30 -0
  956. package/dist/membership/v1/generated/validators/applicablePlan.zod.js +30 -0
  957. package/dist/membership/v1/generated/validators/appliedCredit.zod.d.ts +30 -0
  958. package/dist/membership/v1/generated/validators/appliedCredit.zod.js +31 -0
  959. package/dist/membership/v1/generated/validators/autoRenewSet.zod.d.ts +28 -0
  960. package/dist/membership/v1/generated/validators/autoRenewSet.zod.js +26 -0
  961. package/dist/membership/v1/generated/validators/benefit.zod.d.ts +76 -0
  962. package/dist/membership/v1/generated/validators/benefit.zod.js +37 -0
  963. package/dist/membership/v1/generated/validators/billingAccount.zod.d.ts +40 -0
  964. package/dist/membership/v1/generated/validators/billingAccount.zod.js +46 -0
  965. package/dist/membership/v1/generated/validators/billingAccountCreate.zod.d.ts +32 -0
  966. package/dist/membership/v1/generated/validators/billingAccountCreate.zod.js +30 -0
  967. package/dist/membership/v1/generated/validators/billingAccountList.zod.d.ts +47 -0
  968. package/dist/membership/v1/generated/validators/billingAccountList.zod.js +29 -0
  969. package/dist/membership/v1/generated/validators/billingAccountUpdate.zod.d.ts +30 -0
  970. package/dist/membership/v1/generated/validators/billingAccountUpdate.zod.js +31 -0
  971. package/dist/membership/v1/generated/validators/cancelSubscriptionRequest.zod.d.ts +36 -0
  972. package/dist/membership/v1/generated/validators/cancelSubscriptionRequest.zod.js +36 -0
  973. package/dist/membership/v1/generated/validators/cancellation.zod.d.ts +79 -0
  974. package/dist/membership/v1/generated/validators/cancellation.zod.js +54 -0
  975. package/dist/membership/v1/generated/validators/cancellationCreate.zod.d.ts +38 -0
  976. package/dist/membership/v1/generated/validators/cancellationCreate.zod.js +46 -0
  977. package/dist/membership/v1/generated/validators/cancellationItem.zod.d.ts +50 -0
  978. package/dist/membership/v1/generated/validators/cancellationItem.zod.js +50 -0
  979. package/dist/membership/v1/generated/validators/cancellationList.zod.d.ts +86 -0
  980. package/dist/membership/v1/generated/validators/cancellationList.zod.js +29 -0
  981. package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.d.ts +61 -0
  982. package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.js +47 -0
  983. package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +46 -0
  984. package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.js +46 -0
  985. package/dist/membership/v1/generated/validators/checkoutMode.zod.d.ts +29 -0
  986. package/dist/membership/v1/generated/validators/checkoutMode.zod.js +26 -0
  987. package/dist/membership/v1/generated/validators/checkoutOptions.zod.d.ts +34 -0
  988. package/dist/membership/v1/generated/validators/checkoutOptions.zod.js +35 -0
  989. package/dist/membership/v1/generated/validators/contact.zod.d.ts +56 -0
  990. package/dist/membership/v1/generated/validators/contact.zod.js +54 -0
  991. package/dist/membership/v1/generated/validators/contactCreate.zod.d.ts +47 -0
  992. package/dist/membership/v1/generated/validators/contactCreate.zod.js +45 -0
  993. package/dist/membership/v1/generated/validators/contactList.zod.d.ts +53 -0
  994. package/dist/membership/v1/generated/validators/contactList.zod.js +29 -0
  995. package/dist/membership/v1/generated/validators/contactUpdate.zod.d.ts +48 -0
  996. package/dist/membership/v1/generated/validators/contactUpdate.zod.js +46 -0
  997. package/dist/membership/v1/generated/validators/creditBenefit.zod.d.ts +34 -0
  998. package/dist/membership/v1/generated/validators/creditBenefit.zod.js +38 -0
  999. package/dist/membership/v1/generated/validators/creditGrant.zod.d.ts +141 -0
  1000. package/dist/membership/v1/generated/validators/creditGrant.zod.js +42 -0
  1001. package/dist/membership/v1/generated/validators/creditGrantList.zod.d.ts +148 -0
  1002. package/dist/membership/v1/generated/validators/creditGrantList.zod.js +29 -0
  1003. package/dist/membership/v1/generated/validators/creditGroup.zod.d.ts +127 -0
  1004. package/dist/membership/v1/generated/validators/creditGroup.zod.js +33 -0
  1005. package/dist/membership/v1/generated/validators/creditNote.zod.d.ts +49 -0
  1006. package/dist/membership/v1/generated/validators/creditNote.zod.js +55 -0
  1007. package/dist/membership/v1/generated/validators/creditNoteItem.zod.d.ts +32 -0
  1008. package/dist/membership/v1/generated/validators/creditNoteItem.zod.js +31 -0
  1009. package/dist/membership/v1/generated/validators/creditNoteItemList.zod.d.ts +39 -0
  1010. package/dist/membership/v1/generated/validators/creditNoteItemList.zod.js +29 -0
  1011. package/dist/membership/v1/generated/validators/creditNoteList.zod.d.ts +56 -0
  1012. package/dist/membership/v1/generated/validators/creditNoteList.zod.js +29 -0
  1013. package/dist/membership/v1/generated/validators/currency.zod.d.ts +27 -0
  1014. package/dist/membership/v1/generated/validators/currency.zod.js +25 -0
  1015. package/dist/membership/v1/generated/validators/currency6ff0ec7.zod.d.ts +36 -0
  1016. package/dist/membership/v1/generated/validators/currency6ff0ec7.zod.js +45 -0
  1017. package/dist/membership/v1/generated/validators/currencyA200529.zod.d.ts +31 -0
  1018. package/dist/membership/v1/generated/validators/currencyA200529.zod.js +25 -0
  1019. package/dist/membership/v1/generated/validators/currencyList.zod.d.ts +38 -0
  1020. package/dist/membership/v1/generated/validators/currencyList.zod.js +29 -0
  1021. package/dist/membership/v1/generated/validators/cursorPagination.zod.d.ts +29 -0
  1022. package/dist/membership/v1/generated/validators/cursorPagination.zod.js +29 -0
  1023. package/dist/membership/v1/generated/validators/discount.zod.d.ts +157 -0
  1024. package/dist/membership/v1/generated/validators/discount.zod.js +59 -0
  1025. package/dist/membership/v1/generated/validators/discountBenefit.zod.d.ts +39 -0
  1026. package/dist/membership/v1/generated/validators/discountBenefit.zod.js +37 -0
  1027. package/dist/membership/v1/generated/validators/discountList.zod.d.ts +164 -0
  1028. package/dist/membership/v1/generated/validators/discountList.zod.js +29 -0
  1029. package/dist/membership/v1/generated/validators/entitlement.zod.d.ts +40 -0
  1030. package/dist/membership/v1/generated/validators/entitlement.zod.js +35 -0
  1031. package/dist/membership/v1/generated/validators/entitlementList.zod.d.ts +47 -0
  1032. package/dist/membership/v1/generated/validators/entitlementList.zod.js +29 -0
  1033. package/dist/membership/v1/generated/validators/error.zod.d.ts +31 -0
  1034. package/dist/membership/v1/generated/validators/error.zod.js +32 -0
  1035. package/dist/membership/v1/generated/validators/errorA200529.zod.d.ts +31 -0
  1036. package/dist/membership/v1/generated/validators/errorA200529.zod.js +25 -0
  1037. package/dist/membership/v1/generated/validators/featureBenefit.zod.d.ts +33 -0
  1038. package/dist/membership/v1/generated/validators/featureBenefit.zod.js +31 -0
  1039. package/dist/membership/v1/generated/validators/featureGrant.zod.d.ts +48 -0
  1040. package/dist/membership/v1/generated/validators/featureGrant.zod.js +39 -0
  1041. package/dist/membership/v1/generated/validators/featureGrantList.zod.d.ts +55 -0
  1042. package/dist/membership/v1/generated/validators/featureGrantList.zod.js +29 -0
  1043. package/dist/membership/v1/generated/validators/featureGrantStatus.zod.d.ts +31 -0
  1044. package/dist/membership/v1/generated/validators/featureGrantStatus.zod.js +26 -0
  1045. package/dist/membership/v1/generated/validators/getPlanParams.zod.d.ts +28 -0
  1046. package/dist/membership/v1/generated/validators/getPlanParams.zod.js +27 -0
  1047. package/dist/membership/v1/generated/validators/grant.zod.d.ts +86 -0
  1048. package/dist/membership/v1/generated/validators/grant.zod.js +46 -0
  1049. package/dist/membership/v1/generated/validators/invoice.zod.d.ts +78 -0
  1050. package/dist/membership/v1/generated/validators/invoice.zod.js +68 -0
  1051. package/dist/membership/v1/generated/validators/invoiceItem.zod.d.ts +56 -0
  1052. package/dist/membership/v1/generated/validators/invoiceItem.zod.js +61 -0
  1053. package/dist/membership/v1/generated/validators/invoiceItemList.zod.d.ts +63 -0
  1054. package/dist/membership/v1/generated/validators/invoiceItemList.zod.js +29 -0
  1055. package/dist/membership/v1/generated/validators/invoiceList.zod.d.ts +85 -0
  1056. package/dist/membership/v1/generated/validators/invoiceList.zod.js +29 -0
  1057. package/dist/membership/v1/generated/validators/invoiceStatus.zod.d.ts +32 -0
  1058. package/dist/membership/v1/generated/validators/invoiceStatus.zod.js +26 -0
  1059. package/dist/membership/v1/generated/validators/invoiceSummary.zod.d.ts +48 -0
  1060. package/dist/membership/v1/generated/validators/invoiceSummary.zod.js +49 -0
  1061. package/dist/membership/v1/generated/validators/listMembershipPeriodsParams.zod.d.ts +33 -0
  1062. package/dist/membership/v1/generated/validators/listMembershipPeriodsParams.zod.js +39 -0
  1063. package/dist/membership/v1/generated/validators/listMembershipsParams.zod.d.ts +34 -0
  1064. package/dist/membership/v1/generated/validators/listMembershipsParams.zod.js +40 -0
  1065. package/dist/membership/v1/generated/validators/listPlansParams.zod.d.ts +34 -0
  1066. package/dist/membership/v1/generated/validators/listPlansParams.zod.js +37 -0
  1067. package/dist/membership/v1/generated/validators/membership.zod.d.ts +123 -0
  1068. package/dist/membership/v1/generated/validators/membership.zod.js +55 -0
  1069. package/dist/membership/v1/generated/validators/membershipCreate.zod.d.ts +37 -0
  1070. package/dist/membership/v1/generated/validators/membershipCreate.zod.js +32 -0
  1071. package/dist/membership/v1/generated/validators/membershipDowngrade.zod.d.ts +28 -0
  1072. package/dist/membership/v1/generated/validators/membershipDowngrade.zod.js +28 -0
  1073. package/dist/membership/v1/generated/validators/membershipList.zod.d.ts +130 -0
  1074. package/dist/membership/v1/generated/validators/membershipList.zod.js +29 -0
  1075. package/dist/membership/v1/generated/validators/membershipPurchase.zod.d.ts +151 -0
  1076. package/dist/membership/v1/generated/validators/membershipPurchase.zod.js +31 -0
  1077. package/dist/membership/v1/generated/validators/membershipUpgrade.zod.d.ts +35 -0
  1078. package/dist/membership/v1/generated/validators/membershipUpgrade.zod.js +28 -0
  1079. package/dist/membership/v1/generated/validators/money.zod.d.ts +26 -0
  1080. package/dist/membership/v1/generated/validators/money.zod.js +26 -0
  1081. package/dist/membership/v1/generated/validators/namedIdentity.zod.d.ts +30 -0
  1082. package/dist/membership/v1/generated/validators/namedIdentity.zod.js +30 -0
  1083. package/dist/membership/v1/generated/validators/objectIdentity.zod.d.ts +30 -0
  1084. package/dist/membership/v1/generated/validators/objectIdentity.zod.js +30 -0
  1085. package/dist/membership/v1/generated/validators/offsetPagination.zod.d.ts +31 -0
  1086. package/dist/membership/v1/generated/validators/offsetPagination.zod.js +31 -0
  1087. package/dist/membership/v1/generated/validators/order.zod.d.ts +158 -0
  1088. package/dist/membership/v1/generated/validators/order.zod.js +80 -0
  1089. package/dist/membership/v1/generated/validators/orderCancel.zod.d.ts +29 -0
  1090. package/dist/membership/v1/generated/validators/orderCancel.zod.js +32 -0
  1091. package/dist/membership/v1/generated/validators/orderItem.zod.d.ts +84 -0
  1092. package/dist/membership/v1/generated/validators/orderItem.zod.js +88 -0
  1093. package/dist/membership/v1/generated/validators/orderItemList.zod.d.ts +90 -0
  1094. package/dist/membership/v1/generated/validators/orderItemList.zod.js +29 -0
  1095. package/dist/membership/v1/generated/validators/orderItemStatus.zod.d.ts +31 -0
  1096. package/dist/membership/v1/generated/validators/orderItemStatus.zod.js +26 -0
  1097. package/dist/membership/v1/generated/validators/orderList.zod.d.ts +165 -0
  1098. package/dist/membership/v1/generated/validators/orderList.zod.js +29 -0
  1099. package/dist/membership/v1/generated/validators/orderRefundQuote.zod.d.ts +32 -0
  1100. package/dist/membership/v1/generated/validators/orderRefundQuote.zod.js +33 -0
  1101. package/dist/membership/v1/generated/validators/orderRefundQuoteInput.zod.d.ts +30 -0
  1102. package/dist/membership/v1/generated/validators/orderRefundQuoteInput.zod.js +35 -0
  1103. package/dist/membership/v1/generated/validators/orderStatus.zod.d.ts +33 -0
  1104. package/dist/membership/v1/generated/validators/orderStatus.zod.js +26 -0
  1105. package/dist/membership/v1/generated/validators/paidWith.zod.d.ts +32 -0
  1106. package/dist/membership/v1/generated/validators/paidWith.zod.js +40 -0
  1107. package/dist/membership/v1/generated/validators/payInvoiceRequest.zod.d.ts +41 -0
  1108. package/dist/membership/v1/generated/validators/payInvoiceRequest.zod.js +68 -0
  1109. package/dist/membership/v1/generated/validators/payTogetherRequest.zod.d.ts +33 -0
  1110. package/dist/membership/v1/generated/validators/payTogetherRequest.zod.js +36 -0
  1111. package/dist/membership/v1/generated/validators/paymentAction.zod.d.ts +37 -0
  1112. package/dist/membership/v1/generated/validators/paymentAction.zod.js +39 -0
  1113. package/dist/membership/v1/generated/validators/paymentCancellationReason.zod.d.ts +29 -0
  1114. package/dist/membership/v1/generated/validators/paymentCancellationReason.zod.js +26 -0
  1115. package/dist/membership/v1/generated/validators/paymentMethod.zod.d.ts +40 -0
  1116. package/dist/membership/v1/generated/validators/paymentMethod.zod.js +34 -0
  1117. package/dist/membership/v1/generated/validators/paymentMethodList.zod.d.ts +47 -0
  1118. package/dist/membership/v1/generated/validators/paymentMethodList.zod.js +29 -0
  1119. package/dist/membership/v1/generated/validators/paymentMethodSetup.zod.d.ts +30 -0
  1120. package/dist/membership/v1/generated/validators/paymentMethodSetup.zod.js +32 -0
  1121. package/dist/membership/v1/generated/validators/paymentMethodSetupResult.zod.d.ts +41 -0
  1122. package/dist/membership/v1/generated/validators/paymentMethodSetupResult.zod.js +33 -0
  1123. package/dist/membership/v1/generated/validators/paymentOption.zod.d.ts +32 -0
  1124. package/dist/membership/v1/generated/validators/paymentOption.zod.js +30 -0
  1125. package/dist/membership/v1/generated/validators/paymentOptionList.zod.d.ts +39 -0
  1126. package/dist/membership/v1/generated/validators/paymentOptionList.zod.js +29 -0
  1127. package/dist/membership/v1/generated/validators/paymentOptionMethod.zod.d.ts +29 -0
  1128. package/dist/membership/v1/generated/validators/paymentOptionMethod.zod.js +31 -0
  1129. package/dist/membership/v1/generated/validators/paymentPreview.zod.d.ts +45 -0
  1130. package/dist/membership/v1/generated/validators/paymentPreview.zod.js +43 -0
  1131. package/dist/membership/v1/generated/validators/paymentPreviewInvoice.zod.d.ts +32 -0
  1132. package/dist/membership/v1/generated/validators/paymentPreviewInvoice.zod.js +31 -0
  1133. package/dist/membership/v1/generated/validators/paymentResult.zod.d.ts +101 -0
  1134. package/dist/membership/v1/generated/validators/paymentResult.zod.js +54 -0
  1135. package/dist/membership/v1/generated/validators/paymentStatus.zod.d.ts +31 -0
  1136. package/dist/membership/v1/generated/validators/paymentStatus.zod.js +26 -0
  1137. package/dist/membership/v1/generated/validators/period.zod.d.ts +98 -0
  1138. package/dist/membership/v1/generated/validators/period.zod.js +35 -0
  1139. package/dist/membership/v1/generated/validators/periodList.zod.d.ts +105 -0
  1140. package/dist/membership/v1/generated/validators/periodList.zod.js +29 -0
  1141. package/dist/membership/v1/generated/validators/placedOrder.zod.d.ts +51 -0
  1142. package/dist/membership/v1/generated/validators/placedOrder.zod.js +31 -0
  1143. package/dist/membership/v1/generated/validators/plan.zod.d.ts +93 -0
  1144. package/dist/membership/v1/generated/validators/plan.zod.js +34 -0
  1145. package/dist/membership/v1/generated/validators/planA200529.zod.d.ts +46 -0
  1146. package/dist/membership/v1/generated/validators/planA200529.zod.js +25 -0
  1147. package/dist/membership/v1/generated/validators/planC836db9.zod.d.ts +46 -0
  1148. package/dist/membership/v1/generated/validators/planC836db9.zod.js +38 -0
  1149. package/dist/membership/v1/generated/validators/planFeature.zod.d.ts +33 -0
  1150. package/dist/membership/v1/generated/validators/planFeature.zod.js +28 -0
  1151. package/dist/membership/v1/generated/validators/planList.zod.d.ts +100 -0
  1152. package/dist/membership/v1/generated/validators/planList.zod.js +29 -0
  1153. package/dist/membership/v1/generated/validators/planListA200529.zod.d.ts +53 -0
  1154. package/dist/membership/v1/generated/validators/planListA200529.zod.js +25 -0
  1155. package/dist/membership/v1/generated/validators/planListC836db9.zod.d.ts +53 -0
  1156. package/dist/membership/v1/generated/validators/planListC836db9.zod.js +29 -0
  1157. package/dist/membership/v1/generated/validators/planPrice.zod.d.ts +35 -0
  1158. package/dist/membership/v1/generated/validators/planPrice.zod.js +34 -0
  1159. package/dist/membership/v1/generated/validators/planSummary.zod.d.ts +31 -0
  1160. package/dist/membership/v1/generated/validators/planSummary.zod.js +31 -0
  1161. package/dist/membership/v1/generated/validators/price.zod.d.ts +96 -0
  1162. package/dist/membership/v1/generated/validators/price.zod.js +82 -0
  1163. package/dist/membership/v1/generated/validators/priceList.zod.d.ts +103 -0
  1164. package/dist/membership/v1/generated/validators/priceList.zod.js +29 -0
  1165. package/dist/membership/v1/generated/validators/priceOption.zod.d.ts +59 -0
  1166. package/dist/membership/v1/generated/validators/priceOption.zod.js +43 -0
  1167. package/dist/membership/v1/generated/validators/product.zod.d.ts +30 -0
  1168. package/dist/membership/v1/generated/validators/product.zod.js +29 -0
  1169. package/dist/membership/v1/generated/validators/productID.zod.d.ts +28 -0
  1170. package/dist/membership/v1/generated/validators/productID.zod.js +31 -0
  1171. package/dist/membership/v1/generated/validators/productIdentity.zod.d.ts +29 -0
  1172. package/dist/membership/v1/generated/validators/productIdentity.zod.js +29 -0
  1173. package/dist/membership/v1/generated/validators/productList.zod.d.ts +37 -0
  1174. package/dist/membership/v1/generated/validators/productList.zod.js +29 -0
  1175. package/dist/membership/v1/generated/validators/projectAssignment.zod.d.ts +37 -0
  1176. package/dist/membership/v1/generated/validators/projectAssignment.zod.js +38 -0
  1177. package/dist/membership/v1/generated/validators/projectAssignmentList.zod.d.ts +44 -0
  1178. package/dist/membership/v1/generated/validators/projectAssignmentList.zod.js +29 -0
  1179. package/dist/membership/v1/generated/validators/purchaseOperation.zod.d.ts +30 -0
  1180. package/dist/membership/v1/generated/validators/purchaseOperation.zod.js +26 -0
  1181. package/dist/membership/v1/generated/validators/quote.zod.d.ts +114 -0
  1182. package/dist/membership/v1/generated/validators/quote.zod.js +45 -0
  1183. package/dist/membership/v1/generated/validators/quoteCancellation.zod.d.ts +33 -0
  1184. package/dist/membership/v1/generated/validators/quoteCancellation.zod.js +35 -0
  1185. package/dist/membership/v1/generated/validators/quoteItem.zod.d.ts +40 -0
  1186. package/dist/membership/v1/generated/validators/quoteItem.zod.js +53 -0
  1187. package/dist/membership/v1/generated/validators/quoteItemInput.zod.d.ts +57 -0
  1188. package/dist/membership/v1/generated/validators/quoteItemInput.zod.js +56 -0
  1189. package/dist/membership/v1/generated/validators/quoteRenewal.zod.d.ts +42 -0
  1190. package/dist/membership/v1/generated/validators/quoteRenewal.zod.js +41 -0
  1191. package/dist/membership/v1/generated/validators/quoteRenewalResult.zod.d.ts +42 -0
  1192. package/dist/membership/v1/generated/validators/quoteRenewalResult.zod.js +39 -0
  1193. package/dist/membership/v1/generated/validators/quoteRequest.zod.d.ts +87 -0
  1194. package/dist/membership/v1/generated/validators/quoteRequest.zod.js +57 -0
  1195. package/dist/membership/v1/generated/validators/quotedDiscount.zod.d.ts +34 -0
  1196. package/dist/membership/v1/generated/validators/quotedDiscount.zod.js +36 -0
  1197. package/dist/membership/v1/generated/validators/rate.zod.d.ts +53 -0
  1198. package/dist/membership/v1/generated/validators/rate.zod.js +48 -0
  1199. package/dist/membership/v1/generated/validators/rateList.zod.d.ts +60 -0
  1200. package/dist/membership/v1/generated/validators/rateList.zod.js +29 -0
  1201. package/dist/membership/v1/generated/validators/refund.zod.d.ts +107 -0
  1202. package/dist/membership/v1/generated/validators/refund.zod.js +59 -0
  1203. package/dist/membership/v1/generated/validators/refundList.zod.d.ts +114 -0
  1204. package/dist/membership/v1/generated/validators/refundList.zod.js +29 -0
  1205. package/dist/membership/v1/generated/validators/refundPolicy.zod.d.ts +29 -0
  1206. package/dist/membership/v1/generated/validators/refundPolicy.zod.js +26 -0
  1207. package/dist/membership/v1/generated/validators/refundReason.zod.d.ts +38 -0
  1208. package/dist/membership/v1/generated/validators/refundReason.zod.js +38 -0
  1209. package/dist/membership/v1/generated/validators/renewRequest.zod.d.ts +46 -0
  1210. package/dist/membership/v1/generated/validators/renewRequest.zod.js +57 -0
  1211. package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.d.ts +40 -0
  1212. package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.js +40 -0
  1213. package/dist/membership/v1/generated/validators/renewalPrice.zod.d.ts +45 -0
  1214. package/dist/membership/v1/generated/validators/renewalPrice.zod.js +38 -0
  1215. package/dist/membership/v1/generated/validators/renewalPriceList.zod.d.ts +52 -0
  1216. package/dist/membership/v1/generated/validators/renewalPriceList.zod.js +29 -0
  1217. package/dist/membership/v1/generated/validators/setProjectAssignmentRequest.zod.d.ts +28 -0
  1218. package/dist/membership/v1/generated/validators/setProjectAssignmentRequest.zod.js +26 -0
  1219. package/dist/membership/v1/generated/validators/spendRow.zod.d.ts +37 -0
  1220. package/dist/membership/v1/generated/validators/spendRow.zod.js +33 -0
  1221. package/dist/membership/v1/generated/validators/spendRowList.zod.d.ts +46 -0
  1222. package/dist/membership/v1/generated/validators/spendRowList.zod.js +32 -0
  1223. package/dist/membership/v1/generated/validators/statement.zod.d.ts +49 -0
  1224. package/dist/membership/v1/generated/validators/statement.zod.js +51 -0
  1225. package/dist/membership/v1/generated/validators/statementAmounts.zod.d.ts +31 -0
  1226. package/dist/membership/v1/generated/validators/statementAmounts.zod.js +30 -0
  1227. package/dist/membership/v1/generated/validators/statementItem.zod.d.ts +34 -0
  1228. package/dist/membership/v1/generated/validators/statementItem.zod.js +36 -0
  1229. package/dist/membership/v1/generated/validators/statementList.zod.d.ts +56 -0
  1230. package/dist/membership/v1/generated/validators/statementList.zod.js +29 -0
  1231. package/dist/membership/v1/generated/validators/statementStatus.zod.d.ts +29 -0
  1232. package/dist/membership/v1/generated/validators/statementStatus.zod.js +24 -0
  1233. package/dist/membership/v1/generated/validators/statementSummary.zod.d.ts +50 -0
  1234. package/dist/membership/v1/generated/validators/statementSummary.zod.js +34 -0
  1235. package/dist/membership/v1/generated/validators/subscription.zod.d.ts +126 -0
  1236. package/dist/membership/v1/generated/validators/subscription.zod.js +107 -0
  1237. package/dist/membership/v1/generated/validators/subscriptionCancellation.zod.d.ts +52 -0
  1238. package/dist/membership/v1/generated/validators/subscriptionCancellation.zod.js +45 -0
  1239. package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +132 -0
  1240. package/dist/membership/v1/generated/validators/subscriptionList.zod.js +29 -0
  1241. package/dist/membership/v1/generated/validators/taxItem.zod.d.ts +36 -0
  1242. package/dist/membership/v1/generated/validators/taxItem.zod.js +36 -0
  1243. package/dist/membership/v1/generated/validators/terminationPolicy.zod.d.ts +29 -0
  1244. package/dist/membership/v1/generated/validators/terminationPolicy.zod.js +26 -0
  1245. package/dist/membership/v1/generated/validators/tier.zod.d.ts +30 -0
  1246. package/dist/membership/v1/generated/validators/tier.zod.js +32 -0
  1247. package/dist/membership/v1/generated/validators/topUp.zod.d.ts +66 -0
  1248. package/dist/membership/v1/generated/validators/topUp.zod.js +61 -0
  1249. package/dist/membership/v1/generated/validators/topUpCreate.zod.d.ts +37 -0
  1250. package/dist/membership/v1/generated/validators/topUpCreate.zod.js +49 -0
  1251. package/dist/membership/v1/generated/validators/topUpList.zod.d.ts +73 -0
  1252. package/dist/membership/v1/generated/validators/topUpList.zod.js +29 -0
  1253. package/dist/membership/v1/generated/validators/transaction.zod.d.ts +68 -0
  1254. package/dist/membership/v1/generated/validators/transaction.zod.js +63 -0
  1255. package/dist/membership/v1/generated/validators/transactionList.zod.d.ts +75 -0
  1256. package/dist/membership/v1/generated/validators/transactionList.zod.js +29 -0
  1257. package/dist/membership/v1/generated/validators/transactionType.zod.d.ts +31 -0
  1258. package/dist/membership/v1/generated/validators/transactionType.zod.js +26 -0
  1259. package/dist/membership/v1/generated/validators/usageCharge.zod.d.ts +58 -0
  1260. package/dist/membership/v1/generated/validators/usageCharge.zod.js +72 -0
  1261. package/dist/membership/v1/generated/validators/usageChargeList.zod.d.ts +65 -0
  1262. package/dist/membership/v1/generated/validators/usageChargeList.zod.js +29 -0
  1263. package/dist/routes.d.ts +80 -8
  1264. package/dist/routes.js +90 -9
  1265. package/package.json +1 -1
  1266. package/dist/billing/v1/generated/validators/checkoutOrderRequest.zod.d.ts +0 -16
  1267. package/dist/billing/v1/generated/validators/checkoutOrderRequest.zod.js +0 -22
@@ -0,0 +1,2931 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Billing Order Types
5
+ * The Billing order a product purchase placed. Types only; this document declares no operations.
6
+ * OpenAPI spec version: v1
7
+ */
8
+ /**
9
+ * A draft is not yet issued. The draft invoice of an order shows base prices until it is paid, when
10
+ * the discount is applied and it is issued; other drafts are private to administrators.
11
+ * An issued invoice is open until settled; a zero-total issued invoice is immediately paid.
12
+ * Unbilled usage remains separate from invoices until it is invoiced.
13
+ * A refund does not change the status: a paid invoice stays paid, with the refunded part in
14
+ * amount_refunded. void means collection has stopped and any funds received have been returned.
15
+ */
16
+ export type InvoiceStatus = (typeof InvoiceStatus)[keyof typeof InvoiceStatus];
17
+ export declare const InvoiceStatus: {
18
+ readonly draft: "draft";
19
+ readonly open: "open";
20
+ readonly paid: "paid";
21
+ readonly void: "void";
22
+ readonly uncollectible: "uncollectible";
23
+ };
24
+ /**
25
+ * A decimal string, in the currency stated alongside it.
26
+ *
27
+ * **The currency is not part of this type.** It is carried by a `currency` field next to the
28
+ * amount, or by the account the amount belongs to. Reading an amount without that field is
29
+ * reading a number with no unit.
30
+ *
31
+ * It is a string rather than a JSON number because a JSON number is a float in most parsers,
32
+ * and a float loses precision on the first arithmetic. Nothing on this platform puts an amount
33
+ * through a float.
34
+ */
35
+ export type Money = string;
36
+ /**
37
+ * Purchase-related invoice amounts, without account contact details or payment methods. Every order
38
+ * has an invoice from placement. A draft shows base prices until it is paid, when the discount is
39
+ * applied and it is issued; a zero-total invoice is issued and paid at placement whatever the
40
+ * checkout mode. Neither establishes acceptance or delivery.
41
+ */
42
+ export interface InvoiceSummary {
43
+ id: string;
44
+ number?: string;
45
+ currency: string;
46
+ status: InvoiceStatus;
47
+ /**
48
+ * Sum of the line amounts before discounts. Where prices include tax, the tax contained in
49
+ * each line's discounted amount is taken out here, so that total = subtotal -
50
+ * discount_amount + tax_amount always holds.
51
+ */
52
+ subtotal: string;
53
+ /** Sum of the line discounts, taken off before tax. */
54
+ discount_amount: string;
55
+ tax_amount: string;
56
+ total: string;
57
+ amount_paid: string;
58
+ /** Issued, non-void credit notes that reduced unpaid receivables. Does not rewrite the original invoice total. */
59
+ pre_payment_credit_notes_amount: Money;
60
+ /** Issued credit notes against payments already received. This is a return obligation, not evidence of completed refunds. */
61
+ post_payment_credit_notes_amount: Money;
62
+ /**
63
+ * What is still collectible after unpaid credit notes and successful payments; never below zero.
64
+ * @pattern ^\d+(\.\d{1,10})?$
65
+ */
66
+ amount_due: string;
67
+ amount_refunded: string;
68
+ due_at?: string;
69
+ }
70
+ /**
71
+ * The Billing order this purchase placed and its invoice as they stood at placement. Read the order and
72
+ * the invoice in Billing for current progress: the service starts delivery only after Billing accepts the
73
+ * order, and payment alone does not mean delivery has completed.
74
+ */
75
+ export interface PlacedOrder {
76
+ order_id: string;
77
+ /** The order's invoice, the same as invoice.id. */
78
+ invoice_id: string;
79
+ /**
80
+ * What the purchase charges. A draft shows the base price in total and is paid through Billing, where a
81
+ * promotion code can still be applied; an open invoice is issued and awaits its amount_due; a paid one
82
+ * needs nothing further. A zero-total invoice is issued and paid at placement.
83
+ */
84
+ invoice: InvoiceSummary;
85
+ }
86
+ /**
87
+ * Pagination metadata for stable numbered pages. total_count is returned only when the operation can determine it without an unbounded scan.
88
+ */
89
+ export interface OffsetPagination {
90
+ /** @minimum 1 */
91
+ page: number;
92
+ /** @minimum 1 */
93
+ page_size: number;
94
+ /** @minimum 0 */
95
+ total_count?: number;
96
+ }
97
+ /**
98
+ * Pagination metadata for keyset traversal. Pass next_cursor as cursor to read the following page; null means there is no following page.
99
+ */
100
+ export interface CursorPagination {
101
+ /** @minimum 1 */
102
+ page_size: number;
103
+ /** @nullable */
104
+ next_cursor?: string | null;
105
+ }
106
+ /**
107
+ * How tax applies to the customer, as in Stripe. `none` taxes normally. `exempt` charges no tax.
108
+ * `reverse` charges no tax and leaves it to the customer under the reverse-charge mechanism;
109
+ * invoices state this. Only operators change it.
110
+ */
111
+ export type ContactTaxExempt = (typeof ContactTaxExempt)[keyof typeof ContactTaxExempt];
112
+ export declare const ContactTaxExempt: {
113
+ readonly none: "none";
114
+ readonly exempt: "exempt";
115
+ readonly reverse: "reverse";
116
+ };
117
+ /**
118
+ * A billing-account contact profile with one address. An account can hold multiple contacts; this is not a login identity.
119
+ */
120
+ export interface Contact {
121
+ id: string;
122
+ billing_account_id: number;
123
+ /**
124
+ * @minLength 1
125
+ * @maxLength 255
126
+ */
127
+ name: string;
128
+ /** @maxLength 255 */
129
+ legal_name?: string;
130
+ /** @maxLength 255 */
131
+ email?: string;
132
+ /** @maxLength 64 */
133
+ tax_id?: string;
134
+ /** @maxLength 255 */
135
+ address_line1?: string;
136
+ /** @maxLength 255 */
137
+ address_line2?: string;
138
+ /** @maxLength 128 */
139
+ address_city?: string;
140
+ /** @maxLength 128 */
141
+ address_state?: string;
142
+ /** @maxLength 32 */
143
+ address_postal_code?: string;
144
+ /** @pattern ^([A-Z]{2})?$ */
145
+ address_country?: string;
146
+ /**
147
+ * How tax applies to the customer, as in Stripe. `none` taxes normally. `exempt` charges no tax.
148
+ * `reverse` charges no tax and leaves it to the customer under the reverse-charge mechanism;
149
+ * invoices state this. Only operators change it.
150
+ */
151
+ tax_exempt: ContactTaxExempt;
152
+ active: boolean;
153
+ created_at: string;
154
+ }
155
+ export interface ContactCreate {
156
+ /**
157
+ * @minLength 1
158
+ * @maxLength 255
159
+ */
160
+ name: string;
161
+ /** @maxLength 255 */
162
+ legal_name?: string;
163
+ /** @maxLength 255 */
164
+ email?: string;
165
+ /** @maxLength 64 */
166
+ tax_id?: string;
167
+ /** @maxLength 255 */
168
+ address_line1?: string;
169
+ /** @maxLength 255 */
170
+ address_line2?: string;
171
+ /** @maxLength 128 */
172
+ address_city?: string;
173
+ /** @maxLength 128 */
174
+ address_state?: string;
175
+ /** @maxLength 32 */
176
+ address_postal_code?: string;
177
+ /** @pattern ^([A-Z]{2})?$ */
178
+ address_country?: string;
179
+ }
180
+ export interface ContactUpdate {
181
+ /**
182
+ * @minLength 1
183
+ * @maxLength 255
184
+ */
185
+ name?: string;
186
+ /** @maxLength 255 */
187
+ legal_name?: string;
188
+ /** @maxLength 255 */
189
+ email?: string;
190
+ /** @maxLength 64 */
191
+ tax_id?: string;
192
+ /** @maxLength 255 */
193
+ address_line1?: string;
194
+ /** @maxLength 255 */
195
+ address_line2?: string;
196
+ /** @maxLength 128 */
197
+ address_city?: string;
198
+ /** @maxLength 128 */
199
+ address_state?: string;
200
+ /** @maxLength 32 */
201
+ address_postal_code?: string;
202
+ /** @pattern ^([A-Z]{2})?$ */
203
+ address_country?: string;
204
+ active?: boolean;
205
+ }
206
+ export interface ContactList {
207
+ items: Contact[];
208
+ pagination: OffsetPagination;
209
+ }
210
+ /**
211
+ * Whether a fulfilled purchase may end immediately or only after its paid term. Does not grant a refund. When absent, the terms are not configured and termination requires review.
212
+ */
213
+ export type TerminationPolicy = (typeof TerminationPolicy)[keyof typeof TerminationPolicy];
214
+ export declare const TerminationPolicy: {
215
+ readonly immediate: "immediate";
216
+ readonly period_end: "period_end";
217
+ };
218
+ /**
219
+ * none refunds nothing. prorated refunds the amount paid for the current period minus the value of
220
+ * the time used, never below zero and never more than what remains unrefunded. The time used runs
221
+ * from the period start to the effective cancellation time and is valued at the plan's
222
+ * shorter-period prices in the same currency, frozen at purchase as the order item's
223
+ * refund_monthly_amount and refund_hourly_amount: each full calendar month at the one-month prepaid
224
+ * price, the remainder at the postpaid hourly price or, without one, at the one-month price by the
225
+ * second. When the plan has no prepaid period shorter than the one bought, the time used is valued
226
+ * at the price paid, pro rata by the second. Discounts are not refunded, as they were never paid,
227
+ * and setup fees are excluded. The refunded part returns to the payment sources it came from. Tax
228
+ * paid is refunded in the same proportion as the amount it was paid on.
229
+ */
230
+ export type RefundPolicy = (typeof RefundPolicy)[keyof typeof RefundPolicy];
231
+ export declare const RefundPolicy: {
232
+ readonly none: "none";
233
+ readonly prorated: "prorated";
234
+ };
235
+ export interface OrderCancel {
236
+ /**
237
+ * Omit to select all still-pending items. Explicit selections name one or more items of this order; successful items cannot be reversed here.
238
+ * @minItems 1
239
+ * @maxItems 100
240
+ */
241
+ order_item_ids?: string[];
242
+ }
243
+ export type QuoteRenewalInterval = (typeof QuoteRenewalInterval)[keyof typeof QuoteRenewalInterval];
244
+ export declare const QuoteRenewalInterval: {
245
+ readonly day: "day";
246
+ readonly month: "month";
247
+ readonly year: "year";
248
+ };
249
+ /**
250
+ * Price renewing a prepaid subscription. Give `price_id`, or `interval` with
251
+ * `interval_count`, to renew for another term at the price currently sold for it. Naming
252
+ * the current term, or giving neither, renews at the agreed amount. A term sold at several
253
+ * prices that differ in termination policy is refused with 409
254
+ * `BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `termination_policy` or `price_id` is given.
255
+ */
256
+ export interface QuoteRenewal {
257
+ subscription_id: string;
258
+ price_id?: string;
259
+ interval?: QuoteRenewalInterval;
260
+ /** @minimum 1 */
261
+ interval_count?: number;
262
+ /** With `interval` and `interval_count`, chooses among prices of that term that differ in termination policy. */
263
+ termination_policy?: TerminationPolicy;
264
+ /**
265
+ * How many consecutive periods to renew for.
266
+ * @minimum 1
267
+ * @maximum 100
268
+ */
269
+ periods?: number;
270
+ }
271
+ export type QuoteRenewalResultInterval = (typeof QuoteRenewalResultInterval)[keyof typeof QuoteRenewalResultInterval];
272
+ export declare const QuoteRenewalResultInterval: {
273
+ readonly day: "day";
274
+ readonly month: "month";
275
+ readonly year: "year";
276
+ };
277
+ /**
278
+ * What renewing would charge. Renewing the same subscription for the same term and number
279
+ * of periods charges exactly `total`, unless prices or the discounts the account holds
280
+ * change in between.
281
+ */
282
+ export interface QuoteRenewalResult {
283
+ /** Which renewal of the request this answers. */
284
+ index: number;
285
+ subscription_id: string;
286
+ /** The price the renewal is charged under. */
287
+ price_id: string;
288
+ interval: QuoteRenewalResultInterval;
289
+ interval_count: number;
290
+ periods: number;
291
+ /**
292
+ * The price of the periods before the discounts the account holds. A discount the
293
+ * subscription already carries is reflected here. Contains tax only where the price
294
+ * itself includes it.
295
+ */
296
+ amount: Money;
297
+ /** The reduction from a discount the account holds. */
298
+ discount_amount: Money;
299
+ /** Tax on the discounted amount. */
300
+ tax_amount: Money;
301
+ /** The part of `tax_amount` already contained in `amount`. */
302
+ tax_included_amount: Money;
303
+ /**
304
+ * What renewing would charge: `amount` less `discount_amount`, plus `tax_amount`, less
305
+ * `tax_included_amount`.
306
+ */
307
+ total: Money;
308
+ }
309
+ /**
310
+ * One fully calculated purchase, estimated postpaid usage or recorded order item. Amounts use the
311
+ * billing-account currency. An item with no immediate charge has zero checkout amounts.
312
+ */
313
+ export interface QuoteItem {
314
+ tax_amount: Money;
315
+ tax_included_amount: Money;
316
+ /**
317
+ * Zero-based request line index, or the recorded order item's position for an order quote.
318
+ * @minimum 0
319
+ */
320
+ index: number;
321
+ /** Present for an existing order quote; identifies the recorded item being priced. */
322
+ order_item_id?: string;
323
+ /** The selected price, including when the request identified it indirectly. */
324
+ price_id: string;
325
+ plan_name: string;
326
+ /** Unit price before discounts. Null when no single unit price applies, such as tiered or multiple-rate pricing. */
327
+ unit_amount: Money | null;
328
+ /** The quantity priced. When duration_seconds is supplied for metered usage, this is quantity multiplied by that duration. */
329
+ quantity: string;
330
+ /** Amount before discounts and including any setup charge. For requested future usage this is an estimate, not a collectible checkout amount. */
331
+ amount: Money;
332
+ discount_amount: Money;
333
+ total: Money;
334
+ currency: string;
335
+ }
336
+ export type QuotedDiscountType = (typeof QuotedDiscountType)[keyof typeof QuotedDiscountType];
337
+ export declare const QuotedDiscountType: {
338
+ readonly promotion_code: "promotion_code";
339
+ readonly account_discount: "account_discount";
340
+ };
341
+ /**
342
+ * The discount selected for this calculation. Its presence in a quote does not apply it or
343
+ * reserve a redemption. Discount amounts are reported on the quote and its lines.
344
+ */
345
+ export interface QuotedDiscount {
346
+ type: QuotedDiscountType;
347
+ name: string;
348
+ /**
349
+ * Code text for a promotion_code discount; null for an account_discount.
350
+ * @minLength 1
351
+ * @maxLength 64
352
+ * @nullable
353
+ */
354
+ promotion_code: string | null;
355
+ }
356
+ /**
357
+ * Which object this is, together with what a person currently calls it.
358
+ *
359
+ * The name is for display. It is chosen by whoever owns the object, it changes, it is not unique
360
+ * between objects, and it may be empty when nobody has named it yet — so it must not be used to
361
+ * address, match or deduplicate anything. Addressing is by id.
362
+ *
363
+ * This differs from an identity carrying a lookup key: a lookup key is written once by an operator,
364
+ * is unique, and can be used to fetch the object. A name cannot.
365
+ */
366
+ export interface NamedIdentity {
367
+ id: string;
368
+ /** @maxLength 255 */
369
+ name: string;
370
+ }
371
+ export type CancellationRefundPreviewItemChargeType = (typeof CancellationRefundPreviewItemChargeType)[keyof typeof CancellationRefundPreviewItemChargeType];
372
+ export declare const CancellationRefundPreviewItemChargeType: {
373
+ readonly postpaid: "postpaid";
374
+ readonly prepaid: "prepaid";
375
+ readonly one_time: "one_time";
376
+ };
377
+ /**
378
+ * One subscription of the quoted cancellation. The amounts mean what they mean in the total.
379
+ */
380
+ export interface CancellationRefundPreviewItem {
381
+ subscription_id: string;
382
+ plan_id: string;
383
+ plan_name: string;
384
+ /**
385
+ * The project and its current name, for display. Absent for a purchase at account level, and when the
386
+ * project details cannot be read at the moment.
387
+ */
388
+ project?: NamedIdentity | null;
389
+ charge_type: CancellationRefundPreviewItemChargeType;
390
+ /**
391
+ * Whether automatic renewal is on now. Creating the cancellation turns it off. Withdrawing the
392
+ * cancellation does not turn it back on for a prepaid subscription; a postpaid subscription continues
393
+ * until it is canceled and turns it back on.
394
+ */
395
+ auto_renew: boolean;
396
+ unused_amount: Money;
397
+ refundable_amount: Money;
398
+ refund_amount: Money;
399
+ credit_amount: Money;
400
+ tax_amount: Money;
401
+ forfeited_amount: Money;
402
+ }
403
+ /**
404
+ * What the cancellation would return, subscription by subscription and in total, as of now. Give
405
+ * `proration_date` and `refundable_amount` when creating the cancellation.
406
+ *
407
+ * - `unused_amount`: before tax, the amount paid for the current periods minus the value of the
408
+ * time used, valued as refund policy `prorated` describes, whatever the refund terms say.
409
+ * - `refundable_amount`: what is returned the way it was paid, including the tax paid on it;
410
+ * `refund_amount` plus `credit_amount`.
411
+ * - `refund_amount`: the part returned to the balance or to the payment method.
412
+ * - `credit_amount`: the part restored to the credit grants that paid.
413
+ * - `tax_amount`: the tax included in `refundable_amount`.
414
+ * - `forfeited_amount`: before tax, the part of `unused_amount` the refund terms do not return.
415
+ *
416
+ * Postpaid and one-time subscriptions show zero; usage until release is charged as usual.
417
+ */
418
+ export interface CancellationRefundPreview {
419
+ mode: TerminationPolicy;
420
+ /** For `period_end`, when release begins, the end of the paid terms. */
421
+ scheduled_at?: string;
422
+ /** For `immediate`, the second the refund is computed as of. Give it when creating the cancellation. */
423
+ proration_date?: string;
424
+ currency: string;
425
+ unused_amount: Money;
426
+ refundable_amount: Money;
427
+ refund_amount: Money;
428
+ credit_amount: Money;
429
+ tax_amount: Money;
430
+ forfeited_amount: Money;
431
+ items: CancellationRefundPreviewItem[];
432
+ }
433
+ /**
434
+ * An estimated refund to original payment sources. Before acceptance, cancellation returns the
435
+ * collected amount. For delivered service, only value funded by this order is included; renewals
436
+ * are evaluated under their own orders and the agreed termination terms apply. An unknown
437
+ * delivery outcome is not evidence that a refund is eligible. This calculation does not create
438
+ * a refund; the amount returned is determined when cancellation or termination is confirmed.
439
+ */
440
+ export interface OrderRefundQuote {
441
+ order_id: string;
442
+ refundable_amount: Money;
443
+ refund_amount: Money;
444
+ credit_amount: Money;
445
+ currency: string;
446
+ }
447
+ /**
448
+ * A complete calculation in one billing-account currency, without saving a quote or reserving funds or
449
+ * redemptions. The request fails if any item cannot be priced. Requested future usage estimates are
450
+ * included in totals for reporting and are not collectible at checkout. Only an existing-order quote
451
+ * provides that order's checkout amount.
452
+ */
453
+ export interface Quote {
454
+ subtotal: Money;
455
+ discount_amount: Money;
456
+ tax_amount: Money;
457
+ /**
458
+ * The discount evaluated for a purchase or order, without applying it. Null when none is selected or
459
+ * when quoting renewals or a cancellation. A confirmed order reports its recorded discount.
460
+ */
461
+ discount: QuotedDiscount | null;
462
+ items: QuoteItem[];
463
+ renewals: QuoteRenewalResult[];
464
+ /** What the cancellation requested would return. Present only when one was requested. */
465
+ cancellation?: CancellationRefundPreview;
466
+ total: Money;
467
+ currency: string;
468
+ /** Present only when an order refund was requested. Nothing is collectible for this target. */
469
+ refund?: OrderRefundQuote;
470
+ }
471
+ /**
472
+ * A cancellation to quote: what ending these subscriptions together would return. One mode per
473
+ * request; to compare, quote `immediate` and `period_end` separately.
474
+ *
475
+ * Refused with 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` when a subscription is already being
476
+ * canceled (`meta.cancellation_id`), is being reclaimed (`meta.reason` `reclaim_requested`) or has a
477
+ * paid change still waiting to switch (`meta.order_id`).
478
+ */
479
+ export interface QuoteCancellation {
480
+ /**
481
+ * The subscriptions to end together, all of one service. Every subscription released with a resource must be included.
482
+ * @minItems 1
483
+ * @maxItems 50
484
+ */
485
+ subscription_ids: string[];
486
+ mode: TerminationPolicy;
487
+ }
488
+ export interface CancellationCreate {
489
+ /**
490
+ * As in the quote.
491
+ * @minItems 1
492
+ * @maxItems 50
493
+ */
494
+ subscription_ids: string[];
495
+ mode: TerminationPolicy;
496
+ /**
497
+ * For `immediate`, the `proration_date` of the quote: a whole second, not in the future and
498
+ * at most ten minutes old. The refund is computed as of it. Now when omitted.
499
+ */
500
+ proration_date?: string;
501
+ /** The `refundable_amount` of the quote. The cancellation is refused when the refund differs. */
502
+ expected_refundable_amount: Money & string;
503
+ /**
504
+ * A note from the account holder. It is kept with the cancellation and not shown elsewhere.
505
+ * @maxLength 1024
506
+ */
507
+ reason?: string;
508
+ }
509
+ export type CancellationStatus = (typeof CancellationStatus)[keyof typeof CancellationStatus];
510
+ export declare const CancellationStatus: {
511
+ readonly requested: "requested";
512
+ readonly scheduled: "scheduled";
513
+ readonly releasing: "releasing";
514
+ readonly completed: "completed";
515
+ readonly canceled: "canceled";
516
+ readonly failed: "failed";
517
+ };
518
+ /**
519
+ * Who asked for it. `project_deletion` means the project was deleted.
520
+ */
521
+ export type CancellationOrigin = (typeof CancellationOrigin)[keyof typeof CancellationOrigin];
522
+ export declare const CancellationOrigin: {
523
+ readonly customer: "customer";
524
+ readonly operator: "operator";
525
+ readonly project_deletion: "project_deletion";
526
+ };
527
+ /**
528
+ * How the subscription is charged. Creating the cancellation turned automatic renewal off;
529
+ * withdrawing it turns renewal back on for a `postpaid` subscription and leaves it off for a
530
+ * `prepaid` one.
531
+ */
532
+ export type CancellationItemChargeType = (typeof CancellationItemChargeType)[keyof typeof CancellationItemChargeType];
533
+ export declare const CancellationItemChargeType: {
534
+ readonly postpaid: "postpaid";
535
+ readonly prepaid: "prepaid";
536
+ readonly one_time: "one_time";
537
+ };
538
+ export type CancellationItemStatus = (typeof CancellationItemStatus)[keyof typeof CancellationItemStatus];
539
+ export declare const CancellationItemStatus: {
540
+ readonly requested: "requested";
541
+ readonly scheduled: "scheduled";
542
+ readonly releasing: "releasing";
543
+ readonly completed: "completed";
544
+ readonly canceled: "canceled";
545
+ readonly failed: "failed";
546
+ };
547
+ /**
548
+ * One subscription of the cancellation.
549
+ */
550
+ export interface CancellationItem {
551
+ /** The cancellation item of this subscription, the same as `Subscription.cancellation.id`. */
552
+ id: string;
553
+ subscription_id: string;
554
+ plan_id: string;
555
+ plan_name: string;
556
+ /**
557
+ * How the subscription is charged. Creating the cancellation turned automatic renewal off;
558
+ * withdrawing it turns renewal back on for a `postpaid` subscription and leaves it off for a
559
+ * `prepaid` one.
560
+ */
561
+ charge_type: CancellationItemChargeType;
562
+ status: CancellationItemStatus;
563
+ /** Execution stopped or its result is unknown. Present while release still requires resolution; it does not establish refund eligibility. */
564
+ failure_code?: string;
565
+ release_started_at?: string;
566
+ /** When the service ended, as confirmed by the service that provides it. */
567
+ effective_at?: string;
568
+ /** Present with `completed`. The part of the refund returned to the account balance. */
569
+ balance_amount?: Money;
570
+ /** Present with `completed`. The part restored to the credit grants that paid. */
571
+ credit_amount?: Money;
572
+ /** Present with `completed`. The part returned to the payment method it was paid with. */
573
+ gateway_amount?: Money;
574
+ }
575
+ /**
576
+ * One cancellation of a set of subscriptions of one service, released together at one time.
577
+ *
578
+ * - `requested`: `immediate`, release has not begun.
579
+ * - `scheduled`: `period_end`, waiting for `scheduled_at`.
580
+ * - `releasing`: release has begun; it can no longer be withdrawn.
581
+ * - `completed`: every subscription has ended and its refund has been made.
582
+ * - `canceled`: withdrawn before release began; the subscriptions continue.
583
+ * - `failed`: the service could not carry it out, for the reason in `failure_code`; the
584
+ * subscriptions continue and can be canceled again.
585
+ */
586
+ export interface Cancellation {
587
+ id: string;
588
+ status: CancellationStatus;
589
+ mode: TerminationPolicy;
590
+ scheduled_at?: string;
591
+ /** For `immediate`, the second the refund is computed as of. */
592
+ proration_date?: string;
593
+ /** Who asked for it. `project_deletion` means the project was deleted. */
594
+ origin: CancellationOrigin;
595
+ /**
596
+ * The billing account that paid for these subscriptions when the cancellation was created: the
597
+ * account of an account-level purchase, or the account the project was linked to.
598
+ */
599
+ billing_account_id: number;
600
+ currency: string;
601
+ /** The refund confirmed when it was created. Absent when the platform created it. */
602
+ expected_refundable_amount?: Money;
603
+ /**
604
+ * Present with `failed`. A code of the service that provides the resources, such as a disk
605
+ * that can only be released with its server. Clients map it to their own wording.
606
+ */
607
+ failure_code?: string;
608
+ requested_at: string;
609
+ completed_at?: string;
610
+ canceled_at?: string;
611
+ items: CancellationItem[];
612
+ }
613
+ export interface CancellationList {
614
+ items: Cancellation[];
615
+ pagination: OffsetPagination;
616
+ }
617
+ export type SubscriptionCancellationStatus = (typeof SubscriptionCancellationStatus)[keyof typeof SubscriptionCancellationStatus];
618
+ export declare const SubscriptionCancellationStatus: {
619
+ readonly requested: "requested";
620
+ readonly scheduled: "scheduled";
621
+ readonly releasing: "releasing";
622
+ readonly failed: "failed";
623
+ readonly completed: "completed";
624
+ readonly canceled: "canceled";
625
+ };
626
+ export type SubscriptionCancellationMode = (typeof SubscriptionCancellationMode)[keyof typeof SubscriptionCancellationMode];
627
+ export declare const SubscriptionCancellationMode: {
628
+ readonly immediate: "immediate";
629
+ readonly period_end: "period_end";
630
+ };
631
+ /**
632
+ * The latest cancellation that includes the subscription, with this subscription's item. `id` is the
633
+ * item; `cancellation_id` is the cancellation. scheduled_at is the intended time; effective_at is the
634
+ * confirmed end of service. A cancellation alone does not stop metering or issue a refund.
635
+ */
636
+ export interface SubscriptionCancellation {
637
+ reason?: string;
638
+ /** The cancellation this request belongs to, with the other subscriptions released together. */
639
+ cancellation_id?: string;
640
+ id: string;
641
+ subscription_id: string;
642
+ status: SubscriptionCancellationStatus;
643
+ mode: SubscriptionCancellationMode;
644
+ requested_at: string;
645
+ scheduled_at?: string;
646
+ effective_at?: string;
647
+ completed_at?: string;
648
+ release_started_at?: string;
649
+ canceled_at?: string;
650
+ forfeit_remaining_value: boolean;
651
+ failure_code?: string;
652
+ failure_reason?: string;
653
+ }
654
+ /**
655
+ * What a given `code` carries alongside the message. The keys depend on the code,
656
+ * and a client that does not recognise one ignores it.
657
+ */
658
+ export type ErrorMeta = {
659
+ [key: string]: unknown;
660
+ };
661
+ export interface Error {
662
+ code?: string;
663
+ message: string;
664
+ /**
665
+ * What a given `code` carries alongside the message. The keys depend on the code,
666
+ * and a client that does not recognise one ignores it.
667
+ */
668
+ meta?: ErrorMeta;
669
+ status: number;
670
+ }
671
+ /**
672
+ * Immutable platform service identifier, such as compute, canopy or assistant.
673
+ * @minLength 1
674
+ * @maxLength 64
675
+ * @pattern ^[a-z][a-z0-9]*(-[a-z0-9]+)*$
676
+ */
677
+ export type ProductID = string;
678
+ export interface Product {
679
+ id: ProductID;
680
+ name: string;
681
+ description?: string;
682
+ }
683
+ export type BillingAccountStatus = (typeof BillingAccountStatus)[keyof typeof BillingAccountStatus];
684
+ export declare const BillingAccountStatus: {
685
+ readonly active: "active";
686
+ readonly suspended: "suspended";
687
+ readonly closed: "closed";
688
+ };
689
+ export interface BillingAccount {
690
+ /**
691
+ * The active contact used for invoicing. Must belong to this account; null clears the selection.
692
+ * @nullable
693
+ */
694
+ invoice_contact_id?: string | null;
695
+ id: number;
696
+ /** What you call this account. */
697
+ name?: string;
698
+ /** Fixed when the account was opened. */
699
+ currency: string;
700
+ status: BillingAccountStatus;
701
+ /**
702
+ * How far past the suspension threshold this account may go before its resources are
703
+ * suspended. "0" means none: the account is suspended as soon as it crosses the threshold.
704
+ */
705
+ grace_amount?: string;
706
+ /**
707
+ * How long this account has to top up after crossing the suspension threshold.
708
+ * 0 means none. Whichever runs out first — this or grace_amount — ends the grace.
709
+ */
710
+ grace_period_seconds?: number;
711
+ /**
712
+ * The actual time this account was closed, in UTC (RFC 3339).
713
+ * Null or absent if the account is not closed or its historical close time is unknown.
714
+ * @nullable
715
+ */
716
+ readonly closed_at?: string | null;
717
+ created_at: string;
718
+ }
719
+ /**
720
+ * A currency a billing account can be opened in.
721
+ */
722
+ export interface Currency {
723
+ /**
724
+ * ISO 4217 alpha-3, uppercase.
725
+ * @minLength 3
726
+ * @maxLength 3
727
+ */
728
+ code: string;
729
+ /**
730
+ * Decimal places of the currency, the ISO 4217 minor unit.
731
+ * @minimum 0
732
+ * @maximum 4
733
+ */
734
+ exponent: number;
735
+ /**
736
+ * @minLength 1
737
+ * @maxLength 64
738
+ */
739
+ name: string;
740
+ minimum_top_up: Money;
741
+ }
742
+ export interface CurrencyList {
743
+ items: Currency[];
744
+ pagination: OffsetPagination;
745
+ }
746
+ export interface BillingAccountCreate {
747
+ /**
748
+ * @minLength 3
749
+ * @maxLength 3
750
+ */
751
+ currency: string;
752
+ /** @maxLength 255 */
753
+ name?: string;
754
+ }
755
+ export interface BillingAccountUpdate {
756
+ /**
757
+ * The active contact used for invoicing. Must belong to this account; null clears the selection.
758
+ * @nullable
759
+ */
760
+ invoice_contact_id?: string | null;
761
+ /** @maxLength 255 */
762
+ name?: string;
763
+ }
764
+ export interface BillingAccountList {
765
+ items: BillingAccount[];
766
+ pagination: OffsetPagination;
767
+ }
768
+ /**
769
+ * A plan it refers to. active is false once the plan is archived; it still applies to subscriptions already on this plan.
770
+ */
771
+ export interface ApplicablePlan {
772
+ id: string;
773
+ name: string;
774
+ active: boolean;
775
+ }
776
+ /**
777
+ * A catalog object inlined for display.
778
+ */
779
+ export interface ObjectIdentity {
780
+ lookup_key?: string;
781
+ id: string;
782
+ name: string;
783
+ }
784
+ export type PriceOptionBillingScheme = (typeof PriceOptionBillingScheme)[keyof typeof PriceOptionBillingScheme];
785
+ export declare const PriceOptionBillingScheme: {
786
+ readonly per_unit: "per_unit";
787
+ readonly tiered: "tiered";
788
+ readonly rated: "rated";
789
+ };
790
+ export type PriceOptionType = (typeof PriceOptionType)[keyof typeof PriceOptionType];
791
+ export declare const PriceOptionType: {
792
+ readonly postpaid: "postpaid";
793
+ readonly prepaid: "prepaid";
794
+ readonly one_time: "one_time";
795
+ };
796
+ export type PriceOptionInterval = (typeof PriceOptionInterval)[keyof typeof PriceOptionInterval];
797
+ export declare const PriceOptionInterval: {
798
+ readonly none: "none";
799
+ readonly day: "day";
800
+ readonly month: "month";
801
+ readonly year: "year";
802
+ };
803
+ /**
804
+ * A price's display terms, including archived prices referenced by an applicability list.
805
+ */
806
+ export interface PriceOption {
807
+ product: Product;
808
+ plan: ObjectIdentity;
809
+ billing_scheme: PriceOptionBillingScheme;
810
+ unit_quantity: string;
811
+ id: string;
812
+ currency: string;
813
+ type: PriceOptionType;
814
+ interval: PriceOptionInterval;
815
+ /** How many periods one purchase covers. */
816
+ interval_count?: number;
817
+ unit_amount?: Money;
818
+ /** False once the price is archived. It still applies to purchases already made at this price. */
819
+ active: boolean;
820
+ }
821
+ /**
822
+ * Which purchase operation this applies to. `new` covers every new purchase, including
823
+ * zero-charge purchases. It does not mean the account's first purchase; use
824
+ * `first_purchase_only` for that restriction. `renew` covers renewals. `modify` covers
825
+ * configuration or billing-term changes, including changes that increase or decrease
826
+ * the amount due and changes with no additional charge or refund.
827
+ */
828
+ export type PurchaseOperation = (typeof PurchaseOperation)[keyof typeof PurchaseOperation];
829
+ export declare const PurchaseOperation: {
830
+ readonly new: "new";
831
+ readonly renew: "renew";
832
+ readonly modify: "modify";
833
+ };
834
+ /**
835
+ * Anything not excluded that matches an inclusion, or anything not excluded when no inclusion is
836
+ * given, subject to the charge type, operation and term conditions. Entries always include their
837
+ * display fields; archived plans and prices stay listed with active set to false.
838
+ */
839
+ export interface Applicability {
840
+ products?: Product[];
841
+ plans?: ApplicablePlan[];
842
+ prices?: PriceOption[];
843
+ price_types?: string[];
844
+ operations?: PurchaseOperation[];
845
+ /**
846
+ * The shortest term a purchase may have, in months. A purchase with no term, such as
847
+ * metered usage, never qualifies while this is set.
848
+ */
849
+ min_term_months?: number;
850
+ /** The longest term a purchase may have, in months. */
851
+ max_term_months?: number;
852
+ excluded_products?: Product[];
853
+ excluded_plans?: ApplicablePlan[];
854
+ excluded_prices?: PriceOption[];
855
+ }
856
+ export interface CreditGroup {
857
+ /** What the credit in this group may pay for. No restrictions means anything on the account. */
858
+ applies_to: Applicability;
859
+ /** Restricted to your first purchase of anything it applies to. */
860
+ first_purchase_only?: boolean;
861
+ amount: Money;
862
+ }
863
+ /**
864
+ * Account balance, credits, and unpaid charges are reported separately.
865
+ */
866
+ export interface AccountBalance {
867
+ /** Balance minus pending balance returns, unbilled usage estimates and issued unpaid amounts. Credit grants are excluded; the result may be negative. */
868
+ available_credit: Money;
869
+ /** Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance. */
870
+ unbilled_amount: Money;
871
+ billing_account_id: number;
872
+ currency: string;
873
+ /**
874
+ * Prepaid funds in the account currency, excluding credits. May be negative after a payment
875
+ * dispute. Outstanding charges are reported separately in due; this value is not a withdrawal quote.
876
+ */
877
+ balance: Money;
878
+ /**
879
+ * The recorded remaining credit, including restricted grants. It is not withdrawable
880
+ * and is not part of balance. credit_groups describes currently valid credit by permitted use; a positive
881
+ * credits balance does not imply that due is zero.
882
+ */
883
+ credits: Money;
884
+ /** Currently valid credit whose use has applicable product, operation or eligibility conditions. Included in credits, separate from the balance. */
885
+ restricted_credits: Money;
886
+ /**
887
+ * Currently valid, unspent credit grouped by permitted use. Restrictions and
888
+ * validity dates determine which charges a group can cover, so these groups are not a general
889
+ * spendable balance and may differ from the recorded credits total.
890
+ */
891
+ credit_groups: CreditGroup[];
892
+ /** Amount still payable on issued invoices. Unbilled usage is reported separately; arrears depend on actual eligible funding and grace terms. */
893
+ due: Money;
894
+ pending_returns_amount: Money;
895
+ }
896
+ /**
897
+ * A project's assignment to a billing account for the interval from effective_from to effective_to. An open-ended assignment has no end time.
898
+ */
899
+ export interface ProjectAssignment {
900
+ project_id: string;
901
+ /**
902
+ * The project and its current name, for display. Absent when the project no longer exists or its
903
+ * details cannot be read at the moment; `project_id` still identifies it.
904
+ */
905
+ project?: NamedIdentity | null;
906
+ billing_account_id: number;
907
+ account_name?: string;
908
+ currency: string;
909
+ effective_from: string;
910
+ /** @nullable */
911
+ effective_to?: string | null;
912
+ }
913
+ export interface ProjectAssignmentList {
914
+ items: ProjectAssignment[];
915
+ pagination: OffsetPagination;
916
+ }
917
+ export interface SetProjectAssignmentRequest {
918
+ billing_account_id: number;
919
+ }
920
+ /**
921
+ * `pending` until the payment gateway reaches a result. The balance increases on `succeeded`.
922
+ *
923
+ * `failed` means the gateway declined the payment. A declined attempt ends the top-up at once
924
+ * and the payment is withdrawn at the gateway; to pay another way, create a new top-up.
925
+ * `canceled` means the attempt was withdrawn without collecting money; `cancellation_reason`
926
+ * says why. Unknown gateway outcomes remain `pending`, and a browser redirect is not proof of
927
+ * payment.
928
+ *
929
+ * `failed` and `canceled` are final. If the gateway nevertheless collects payment for such an
930
+ * attempt, the amount is credited as a separate `succeeded` top-up.
931
+ */
932
+ export type TopUpStatus = (typeof TopUpStatus)[keyof typeof TopUpStatus];
933
+ export declare const TopUpStatus: {
934
+ readonly pending: "pending";
935
+ readonly succeeded: "succeeded";
936
+ readonly failed: "failed";
937
+ readonly canceled: "canceled";
938
+ };
939
+ export interface AccountIdentity {
940
+ id: number;
941
+ name: string;
942
+ currency: string;
943
+ }
944
+ /**
945
+ * Why a gateway payment was withdrawn. `abandoned` means the customer did not complete it within the time
946
+ * allowed for payment. `requested_by_customer` means the customer canceled it.
947
+ */
948
+ export type PaymentCancellationReason = (typeof PaymentCancellationReason)[keyof typeof PaymentCancellationReason];
949
+ export declare const PaymentCancellationReason: {
950
+ readonly abandoned: "abandoned";
951
+ readonly requested_by_customer: "requested_by_customer";
952
+ };
953
+ export type PaymentActionType = (typeof PaymentActionType)[keyof typeof PaymentActionType];
954
+ export declare const PaymentActionType: {
955
+ readonly redirect: "redirect";
956
+ readonly qr_code: "qr_code";
957
+ readonly sdk: "sdk";
958
+ };
959
+ /**
960
+ * The customer's next interaction. The gateway reports the actual payment outcome separately.
961
+ */
962
+ export interface PaymentAction {
963
+ type: PaymentActionType;
964
+ /** Identifies the browser adapter for an SDK action, for example stripe. */
965
+ provider?: string;
966
+ url?: string;
967
+ /** QR content to render and scan, not an image URL. */
968
+ qr_code?: string;
969
+ /** Short-lived client credential for this payment's browser confirmation. */
970
+ client_secret?: string;
971
+ public_key?: string;
972
+ }
973
+ /**
974
+ * A top-up attempt and its outcome. A successful top-up adds a traceable amount to the balance; it is not a credit grant and has no associated invoice.
975
+ */
976
+ export interface TopUp {
977
+ id: string;
978
+ billing_account_id: number;
979
+ account: AccountIdentity;
980
+ /** What is credited to the account, in the account's own currency. */
981
+ amount: Money;
982
+ currency: string;
983
+ /**
984
+ * The part of this top-up still held in the balance. Pending refunds can temporarily
985
+ * reserve part of it; it is not a promise that the whole amount is immediately withdrawable.
986
+ */
987
+ remaining_amount?: Money;
988
+ /**
989
+ * `pending` until the payment gateway reaches a result. The balance increases on `succeeded`.
990
+ *
991
+ * `failed` means the gateway declined the payment. A declined attempt ends the top-up at once
992
+ * and the payment is withdrawn at the gateway; to pay another way, create a new top-up.
993
+ * `canceled` means the attempt was withdrawn without collecting money; `cancellation_reason`
994
+ * says why. Unknown gateway outcomes remain `pending`, and a browser redirect is not proof of
995
+ * payment.
996
+ *
997
+ * `failed` and `canceled` are final. If the gateway nevertheless collects payment for such an
998
+ * attempt, the amount is credited as a separate `succeeded` top-up.
999
+ */
1000
+ status: TopUpStatus;
1001
+ cancellation_reason?: PaymentCancellationReason;
1002
+ /** Which payment gateway collected it. */
1003
+ payment_gateway?: string;
1004
+ /** The selected payment method, such as card, wechat_pay or alipay. */
1005
+ method_type?: string;
1006
+ /**
1007
+ * The currency the customer was actually charged in, when the checkout page collected a
1008
+ * local one. Absent when it was the same as the account's.
1009
+ */
1010
+ presentment_currency?: string;
1011
+ /**
1012
+ * What was charged, in `presentment_currency`. It will not equal `amount`, and it is
1013
+ * the figure that appears on the customer's card or wallet statement.
1014
+ */
1015
+ presentment_amount?: Money;
1016
+ /**
1017
+ * Why the gateway declined it. Present with `failed`. The value is the gateway's own code,
1018
+ * passed on unchanged: the card issuer's decline code when there is one (Stripe's decline_code,
1019
+ * such as insufficient_funds or lost_card), otherwise the gateway's error code (Stripe's code,
1020
+ * such as card_declined, expired_card or payment_intent_authentication_failure). Clients map it
1021
+ * to their own wording and treat an unknown value as a generic decline.
1022
+ */
1023
+ failure_reason?: string;
1024
+ action?: PaymentAction;
1025
+ created_at: string;
1026
+ /**
1027
+ * When the funds arrived. Later than `created_at` — by days for a bank transfer — so
1028
+ * reconciling against a statement uses this rather than the moment it was started.
1029
+ * Absent until the payment completes.
1030
+ * @nullable
1031
+ */
1032
+ settled_at?: string | null;
1033
+ }
1034
+ export interface TopUpCreate {
1035
+ /**
1036
+ * The gateway explicitly selected from the available payment options.
1037
+ * @minLength 1
1038
+ * @maxLength 32
1039
+ */
1040
+ payment_gateway: string;
1041
+ /**
1042
+ * The selected method, such as card, wechat_pay or alipay.
1043
+ * @minLength 1
1044
+ * @maxLength 64
1045
+ */
1046
+ method_type: string;
1047
+ /** The ID of this top-up attempt. Keep it before submitting and query it after an uncertain response. */
1048
+ id: string;
1049
+ billing_account_id: number;
1050
+ /**
1051
+ * In the account's currency, and no finer than that currency's smallest unit:
1052
+ * two decimals for most, none for the yen. A finer amount is refused here rather
1053
+ * than at the checkout page, where the customer would see the gateway's own wording
1054
+ * instead of an explanation.
1055
+ *
1056
+ * There is a minimum, which differs by currency. Below it the gateway's fee
1057
+ * exceeds the top-up itself, so such a payment costs more to accept than it brings.
1058
+ * The minimum in force is returned with the rejection.
1059
+ */
1060
+ amount: Money & string;
1061
+ /** Charge a saved method instead of opening a checkout page. */
1062
+ payment_method_id?: string;
1063
+ /** Where to send the customer after checkout. */
1064
+ return_url?: string;
1065
+ }
1066
+ export interface TopUpList {
1067
+ items: TopUp[];
1068
+ pagination: OffsetPagination;
1069
+ }
1070
+ export interface PaymentOptionMethod {
1071
+ /** The value to send as `method_type`, such as card, wechat_pay or alipay. */
1072
+ method_type: string;
1073
+ /**
1074
+ * Whether a method of this type can be saved with create-payment-method-setup and charged later
1075
+ * without the customer present. Methods that are not reusable are paid anew each time.
1076
+ */
1077
+ reusable: boolean;
1078
+ }
1079
+ /**
1080
+ * A payment gateway that accepts payment in the account's currency, with the methods it accepts.
1081
+ */
1082
+ export interface PaymentOption {
1083
+ /** The value to send as `payment_gateway`. */
1084
+ payment_gateway: string;
1085
+ methods: PaymentOptionMethod[];
1086
+ }
1087
+ export interface PaymentOptionList {
1088
+ items: PaymentOption[];
1089
+ pagination: OffsetPagination;
1090
+ }
1091
+ export type PaymentMethodStatus = (typeof PaymentMethodStatus)[keyof typeof PaymentMethodStatus];
1092
+ export declare const PaymentMethodStatus: {
1093
+ readonly active: "active";
1094
+ readonly expired: "expired";
1095
+ readonly removed: "removed";
1096
+ };
1097
+ export interface PaymentMethod {
1098
+ id: string;
1099
+ billing_account_id: number;
1100
+ payment_gateway: string;
1101
+ brand?: string;
1102
+ last4?: string;
1103
+ /** @nullable */
1104
+ exp_month?: number | null;
1105
+ /** @nullable */
1106
+ exp_year?: number | null;
1107
+ is_default: boolean;
1108
+ status: PaymentMethodStatus;
1109
+ }
1110
+ export interface PaymentMethodList {
1111
+ items: PaymentMethod[];
1112
+ pagination: OffsetPagination;
1113
+ }
1114
+ export interface PaymentMethodSetup {
1115
+ /**
1116
+ * The selected gateway supporting saved payment methods.
1117
+ * @minLength 1
1118
+ * @maxLength 32
1119
+ */
1120
+ payment_gateway: string;
1121
+ billing_account_id: number;
1122
+ }
1123
+ /**
1124
+ * What the payment gateway's browser library needs in order to collect a card. There is
1125
+ * no address to redirect to: the form is rendered in the page, and the card goes straight
1126
+ * from the browser to the gateway.
1127
+ */
1128
+ export interface PaymentMethodSetupResult {
1129
+ /**
1130
+ * The gateway's identifier for this attempt. Use it to tell a reloaded page apart
1131
+ * from a second attempt.
1132
+ */
1133
+ setup_id: string;
1134
+ payment_gateway: string;
1135
+ action: PaymentAction;
1136
+ }
1137
+ /**
1138
+ * Applies eligible credit grants and the available balance as requested, then collects only the remainder
1139
+ * through the selected gateway. Grants restricted to other purchases are not counted as available funds.
1140
+ * An unresolved channel payment is reused; retries do not apply the grant or balance portions twice.
1141
+ * Without a gateway selection, insufficient account funds fail without starting an online payment.
1142
+ *
1143
+ * `payment_gateway` and `method_type` are given together, and `payment_method_id` only with both;
1144
+ * otherwise the request is refused with `BILLING_PURCHASE_INVALID`.
1145
+ */
1146
+ export interface PayInvoiceRequest {
1147
+ /**
1148
+ * Required to collect an online remainder. An existing attempt keeps its original gateway.
1149
+ * @minLength 1
1150
+ * @maxLength 32
1151
+ */
1152
+ payment_gateway?: string;
1153
+ /**
1154
+ * Required with payment_gateway; for example card, wechat_pay or alipay.
1155
+ * @minLength 1
1156
+ * @maxLength 64
1157
+ */
1158
+ method_type?: string;
1159
+ /** Optional saved card owned by this billing account and belonging to the selected gateway. Omit to complete payment interactively. */
1160
+ payment_method_id?: string;
1161
+ /** Whether to apply the available balance. Credit grants are controlled separately by use_credits. */
1162
+ use_balance?: boolean;
1163
+ /** Apply eligible, unexpired credit grants before using the balance. This never withdraws grants or converts them into balance. */
1164
+ use_credits?: boolean;
1165
+ return_url?: string;
1166
+ /**
1167
+ * The code to apply while the order's terms are not yet fixed. Omit to apply the best applicable
1168
+ * account discount, or to keep the discount already recorded.
1169
+ * @minLength 1
1170
+ * @maxLength 64
1171
+ */
1172
+ promotion_code?: string;
1173
+ /**
1174
+ * The invoice total to expect, after discounts and tax and before credit grants or balance, as the
1175
+ * payment preview or an order quote gave it. A different total fails with BILLING_AMOUNT_CHANGED
1176
+ * and nothing is charged. Omit to skip the comparison; an explicit zero is compared.
1177
+ */
1178
+ expected_amount?: Money & string;
1179
+ }
1180
+ /**
1181
+ * Name at least one invoice or order. They must all belong to the same account and share
1182
+ * its currency; anything else is refused rather than partly paid.
1183
+ */
1184
+ export interface PayTogetherRequest {
1185
+ /** @maxItems 100 */
1186
+ invoice_ids?: string[];
1187
+ /** @maxItems 100 */
1188
+ order_ids?: string[];
1189
+ /**
1190
+ * The amount due to expect across all of them, before credit grants or balance, as preview-pay-together
1191
+ * gave it. A different amount fails with BILLING_AMOUNT_CHANGED and nothing is charged. Omit to skip
1192
+ * the comparison.
1193
+ */
1194
+ expected_amount?: Money & string;
1195
+ }
1196
+ /**
1197
+ * The current payment outcome.
1198
+ *
1199
+ * succeeded means payment is complete. processing means confirmation is pending; poll the invoice or
1200
+ * order rather than submitting another payment. requires_action means the customer must complete the
1201
+ * supplied action. failed means the attempt did not succeed and failure_reason explains the outcome; a
1202
+ * declined gateway payment is withdrawn at the gateway, and paying again starts a new payment with the
1203
+ * same or another method.
1204
+ */
1205
+ export type PaymentStatus = (typeof PaymentStatus)[keyof typeof PaymentStatus];
1206
+ export declare const PaymentStatus: {
1207
+ readonly succeeded: "succeeded";
1208
+ readonly processing: "processing";
1209
+ readonly requires_action: "requires_action";
1210
+ readonly failed: "failed";
1211
+ };
1212
+ /**
1213
+ * A credit grant and what it would pay.
1214
+ */
1215
+ export interface AppliedCredit {
1216
+ credit_grant_id: string;
1217
+ name: string;
1218
+ amount: Money;
1219
+ }
1220
+ export interface PaymentPreviewInvoice {
1221
+ invoice_id: string;
1222
+ /** @nullable */
1223
+ order_id?: string | null;
1224
+ amount_due: Money;
1225
+ credit_applied: Money;
1226
+ balance_applied: Money;
1227
+ }
1228
+ /**
1229
+ * What paying would take, computed as paying computes it. Nothing is charged or reserved.
1230
+ */
1231
+ export interface PaymentPreview {
1232
+ currency: string;
1233
+ /** What is outstanding before paying. */
1234
+ amount_due: Money;
1235
+ /** What credit grants would pay. Grants restricted to other purchases pay nothing here. */
1236
+ credit_applied: Money;
1237
+ /** The credit grants that would pay, in the order they would be used. */
1238
+ credit_grants: AppliedCredit[];
1239
+ /** What the balance would pay. */
1240
+ balance_applied: Money;
1241
+ /** What would remain to be paid online. Paying without a gateway is refused with `BILLING_INSUFFICIENT_FUNDS` while this is above zero. */
1242
+ gateway_amount: Money;
1243
+ /** The available balance after paying. */
1244
+ balance_after: Money;
1245
+ /** Paying together only. Each invoice, in the order it would be paid. */
1246
+ invoices?: PaymentPreviewInvoice[];
1247
+ }
1248
+ /**
1249
+ * Present on refunds. Where this part of the refund goes.
1250
+ *
1251
+ * - `balance`: back to the account balance.
1252
+ * - `credit`: back to the credit grant that paid, which keeps its original expiry.
1253
+ * - `gateway`: back to the payment method it was paid with.
1254
+ */
1255
+ export type TransactionRefundDestination = (typeof TransactionRefundDestination)[keyof typeof TransactionRefundDestination];
1256
+ export declare const TransactionRefundDestination: {
1257
+ readonly balance: "balance";
1258
+ readonly credit: "credit";
1259
+ readonly gateway: "gateway";
1260
+ };
1261
+ /**
1262
+ * `failed` means the operation did not succeed; for a gateway payment, that the gateway declined
1263
+ * it. `canceled` means a gateway payment was withdrawn without collecting money. After either,
1264
+ * an invoice the payment was meant to pay remains open for another payment.
1265
+ */
1266
+ export type TransactionStatus = (typeof TransactionStatus)[keyof typeof TransactionStatus];
1267
+ export declare const TransactionStatus: {
1268
+ readonly pending: "pending";
1269
+ readonly succeeded: "succeeded";
1270
+ readonly failed: "failed";
1271
+ readonly canceled: "canceled";
1272
+ };
1273
+ /**
1274
+ * topup adds to the balance; payment settles an invoice; refund returns original funds; adjustment changes the balance with an audit reason.
1275
+ */
1276
+ export type TransactionType = (typeof TransactionType)[keyof typeof TransactionType];
1277
+ export declare const TransactionType: {
1278
+ readonly topup: "topup";
1279
+ readonly payment: "payment";
1280
+ readonly refund: "refund";
1281
+ readonly adjustment: "adjustment";
1282
+ };
1283
+ /**
1284
+ * A funds operation. Each payment has one source; refunds identify the original successful transaction. Unknown gateway results remain pending. Payments from the balance or a gateway are distinct from credit-grant payments.
1285
+ */
1286
+ export interface Transaction {
1287
+ invoice_id?: string;
1288
+ transaction_id?: string;
1289
+ /** The credit grant that paid, or for a refund, the credit grant restored. */
1290
+ credit_grant_id?: string;
1291
+ credit_grant?: ObjectIdentity;
1292
+ refund_id?: string;
1293
+ /**
1294
+ * Present on refunds. Where this part of the refund goes.
1295
+ *
1296
+ * - `balance`: back to the account balance.
1297
+ * - `credit`: back to the credit grant that paid, which keeps its original expiry.
1298
+ * - `gateway`: back to the payment method it was paid with.
1299
+ */
1300
+ refund_destination?: TransactionRefundDestination;
1301
+ /**
1302
+ * `failed` means the operation did not succeed; for a gateway payment, that the gateway declined
1303
+ * it. `canceled` means a gateway payment was withdrawn without collecting money. After either,
1304
+ * an invoice the payment was meant to pay remains open for another payment.
1305
+ */
1306
+ status?: TransactionStatus;
1307
+ cancellation_reason?: PaymentCancellationReason;
1308
+ payment_gateway?: string;
1309
+ method_type?: string;
1310
+ /**
1311
+ * Why it failed. Present with `failed`. For a declined gateway payment the value is the
1312
+ * gateway's own code, passed on unchanged: the card issuer's decline code when there is one
1313
+ * (Stripe's decline_code, such as insufficient_funds or lost_card), otherwise the gateway's
1314
+ * error code (Stripe's code, such as card_declined, expired_card or
1315
+ * payment_intent_authentication_failure). Clients map it to their own wording and treat an
1316
+ * unknown value as a generic decline.
1317
+ */
1318
+ failure_reason?: string;
1319
+ settled_at?: string;
1320
+ id: string;
1321
+ billing_account_id?: number;
1322
+ type: TransactionType;
1323
+ /**
1324
+ * Signed by type: positive for `topup` and `payment`, negative for `refund`.
1325
+ * An `adjustment` is positive when it adds to the balance and negative when it takes from
1326
+ * it. For the other types the sign does not tell the effect on the balance: a payment from
1327
+ * the balance lowers it, while a payment by gateway or by credit leaves it unchanged.
1328
+ */
1329
+ amount: Money;
1330
+ /**
1331
+ * How much of this transaction is still available in the balance. Only top-ups, positive
1332
+ * adjustments and gateway payments later returned to the balance can be non-zero.
1333
+ */
1334
+ remaining_amount: Money;
1335
+ currency: string;
1336
+ reason?: string;
1337
+ created_at: string;
1338
+ }
1339
+ export interface PaymentResult {
1340
+ transactions: Transaction[];
1341
+ /** The gateway transaction, when one is involved. Balance and credit-grant payments are separate transactions. */
1342
+ transaction_id?: string;
1343
+ status: PaymentStatus;
1344
+ amount_paid: Money;
1345
+ /**
1346
+ * What is still outstanding. Zero once the payment succeeds. Unchanged while
1347
+ * `processing`: nothing is collected until the gateway confirms it.
1348
+ */
1349
+ amount_due: Money;
1350
+ currency: string;
1351
+ credit_applied?: Money;
1352
+ gateway_amount?: Money;
1353
+ payment_gateway?: string;
1354
+ method_type?: string;
1355
+ /**
1356
+ * The amount already paid from the account's balance toward this invoice. Retrying an online remainder
1357
+ * does not debit it again. A canceled purchase returns funds through its refund process.
1358
+ */
1359
+ balance_applied?: Money;
1360
+ action?: PaymentAction;
1361
+ /**
1362
+ * Whether paying again is worth attempting. False for a refusal that will keep
1363
+ * happening — a closed account, an amount over a limit — so that a client does not
1364
+ * retry in a loop.
1365
+ */
1366
+ retriable?: boolean;
1367
+ /** @nullable */
1368
+ invoice_id?: string | null;
1369
+ /** @nullable */
1370
+ order_id?: string | null;
1371
+ /**
1372
+ * Why the payment did not go through. Present with `failed`. For a declined gateway payment the
1373
+ * value is the gateway's own code, passed on unchanged: the card issuer's decline code when
1374
+ * there is one (Stripe's decline_code, such as insufficient_funds or lost_card), otherwise the
1375
+ * gateway's error code (Stripe's code, such as card_declined, expired_card or
1376
+ * payment_intent_authentication_failure). Clients map it to their own wording and treat an
1377
+ * unknown value as a generic decline.
1378
+ */
1379
+ failure_reason?: string;
1380
+ }
1381
+ /**
1382
+ * How tax applied to the customer when the invoice was issued. `reverse` means no tax was
1383
+ * charged because the customer accounts for it under the reverse-charge mechanism.
1384
+ */
1385
+ export type InvoiceCustomerTaxExempt = (typeof InvoiceCustomerTaxExempt)[keyof typeof InvoiceCustomerTaxExempt];
1386
+ export declare const InvoiceCustomerTaxExempt: {
1387
+ readonly none: "none";
1388
+ readonly exempt: "exempt";
1389
+ readonly reverse: "reverse";
1390
+ };
1391
+ /**
1392
+ * Tax name, rate and amounts frozen on the invoice.
1393
+ */
1394
+ export interface TaxItem {
1395
+ id: string;
1396
+ invoice_id: string;
1397
+ name: string;
1398
+ percentage: string;
1399
+ country: string;
1400
+ state?: string;
1401
+ taxable_amount: string;
1402
+ tax_amount: string;
1403
+ currency: string;
1404
+ }
1405
+ export interface Invoice {
1406
+ /** Collection has been stopped; any accepted return obligations are completed before final voiding. */
1407
+ void_requested_at?: string;
1408
+ due_at?: string;
1409
+ amount_refunded?: string;
1410
+ tax_items: TaxItem[];
1411
+ id: string;
1412
+ billing_account_id: number;
1413
+ /** Numbered per account and per month. */
1414
+ number: string;
1415
+ currency: string;
1416
+ status: InvoiceStatus;
1417
+ /**
1418
+ * Sum of the line amounts before discounts. Where prices include tax, the tax contained in
1419
+ * each line's discounted amount is taken out here, so that total = subtotal -
1420
+ * discount_amount + tax_amount always holds.
1421
+ */
1422
+ subtotal?: Money;
1423
+ /** Sum of the line discounts, taken off before tax. */
1424
+ discount_amount?: Money;
1425
+ tax_amount?: Money;
1426
+ /** Successful credit-grant payments included in amount_paid. Does not reduce the receivable or tax base. */
1427
+ credit_applied?: Money;
1428
+ /** Subtotal less discount plus tax. Balance and credit grants are payment sources, not reductions of the receivable. */
1429
+ total: Money;
1430
+ amount_paid?: Money;
1431
+ /** Issued, non-void credit notes that reduced unpaid receivables. Does not rewrite the original invoice total. */
1432
+ pre_payment_credit_notes_amount: Money;
1433
+ /** Issued credit notes against payments already received. This is a return obligation, not evidence of completed refunds. */
1434
+ post_payment_credit_notes_amount: Money;
1435
+ /** What is still collectible after unpaid credit notes and successful payments; never below zero. A draft has none; its total is the base price, and a payment preview shows what paying it would collect. A paid or void invoice has none either. */
1436
+ amount_due: Money;
1437
+ /** @nullable */
1438
+ period_start?: string | null;
1439
+ /**
1440
+ * Exclusive.
1441
+ * @nullable
1442
+ */
1443
+ period_end?: string | null;
1444
+ /**
1445
+ * Who this was billed to, as recorded when the invoice was issued. Later changes to
1446
+ * the account do not alter it.
1447
+ */
1448
+ customer_name?: string;
1449
+ customer_email?: string;
1450
+ customer_tax_id?: string;
1451
+ /**
1452
+ * How tax applied to the customer when the invoice was issued. `reverse` means no tax was
1453
+ * charged because the customer accounts for it under the reverse-charge mechanism.
1454
+ */
1455
+ customer_tax_exempt?: InvoiceCustomerTaxExempt;
1456
+ customer_address_line1?: string;
1457
+ customer_address_line2?: string;
1458
+ customer_address_city?: string;
1459
+ customer_address_state?: string;
1460
+ customer_address_postal_code?: string;
1461
+ customer_address_country?: string;
1462
+ /** @nullable */
1463
+ paid_at?: string | null;
1464
+ }
1465
+ export interface InvoiceList {
1466
+ items: Invoice[];
1467
+ pagination: OffsetPagination;
1468
+ }
1469
+ export type InvoiceItemType = (typeof InvoiceItemType)[keyof typeof InvoiceItemType];
1470
+ export declare const InvoiceItemType: {
1471
+ readonly usage: "usage";
1472
+ readonly subscription: "subscription";
1473
+ readonly one_time: "one_time";
1474
+ readonly setup: "setup";
1475
+ readonly adjustment: "adjustment";
1476
+ };
1477
+ export interface InvoiceItem {
1478
+ taxable?: boolean;
1479
+ /** Discount applied to this line before tax. */
1480
+ discount_amount?: string;
1481
+ /**
1482
+ * The account discount applied to this line.
1483
+ * @nullable
1484
+ */
1485
+ discount_id?: string | null;
1486
+ /**
1487
+ * The coupon applied to this line.
1488
+ * @nullable
1489
+ */
1490
+ coupon_id?: string | null;
1491
+ /** Tax on the discounted line, including tax already included in the price. */
1492
+ tax_amount?: string;
1493
+ /** The part of tax_amount already included in amount. */
1494
+ tax_included_amount?: string;
1495
+ id: string;
1496
+ type?: InvoiceItemType;
1497
+ /** @nullable */
1498
+ project_id?: string | null;
1499
+ /**
1500
+ * The project the charge was for and its current name, for display. Absent when the line is
1501
+ * not for a project, and when the project no longer exists or its details cannot be read at
1502
+ * the moment; `project_id` still identifies it then.
1503
+ */
1504
+ project?: NamedIdentity | null;
1505
+ resource_id?: string;
1506
+ /**
1507
+ * The wording as recorded when the invoice was issued. It is not re-translated
1508
+ * afterwards, so that an invoice continues to read as it did when it was sent.
1509
+ */
1510
+ description: string;
1511
+ unit?: string;
1512
+ quantity?: string;
1513
+ /** The part covered by an included allowance, and therefore not charged. */
1514
+ deducted_quantity?: string;
1515
+ unit_amount?: Money;
1516
+ amount: Money;
1517
+ currency: string;
1518
+ /** @nullable */
1519
+ period_start?: string | null;
1520
+ /** @nullable */
1521
+ period_end?: string | null;
1522
+ }
1523
+ export interface InvoiceItemList {
1524
+ items: InvoiceItem[];
1525
+ pagination: OffsetPagination;
1526
+ }
1527
+ export interface TransactionList {
1528
+ items: Transaction[];
1529
+ pagination: OffsetPagination;
1530
+ }
1531
+ export type CreditGrantStatus = (typeof CreditGrantStatus)[keyof typeof CreditGrantStatus];
1532
+ export declare const CreditGrantStatus: {
1533
+ readonly active: "active";
1534
+ readonly depleted: "depleted";
1535
+ readonly expired: "expired";
1536
+ readonly voided: "voided";
1537
+ };
1538
+ export interface CreditGrant {
1539
+ min_amount?: string;
1540
+ id: string;
1541
+ billing_account_id?: number;
1542
+ name: string;
1543
+ amount: Money;
1544
+ remaining_amount: Money;
1545
+ currency: string;
1546
+ /** What this credit may pay for. No restrictions means anything on the account. */
1547
+ applies_to: Applicability;
1548
+ /** Restricted to your first purchase of anything it applies to. */
1549
+ first_purchase_only?: boolean;
1550
+ status: CreditGrantStatus;
1551
+ valid_from: string;
1552
+ /** @nullable */
1553
+ valid_until?: string | null;
1554
+ }
1555
+ export interface CreditGrantList {
1556
+ items: CreditGrant[];
1557
+ pagination: OffsetPagination;
1558
+ }
1559
+ export type CreditNoteStatus = (typeof CreditNoteStatus)[keyof typeof CreditNoteStatus];
1560
+ export declare const CreditNoteStatus: {
1561
+ readonly issued: "issued";
1562
+ readonly void: "void";
1563
+ };
1564
+ /**
1565
+ * Why the note was issued. Notes from canceled, expired or failed orders carry the order's reason;
1566
+ * `usage_true_up` returns a tier price reduction settled after the original invoice; `operator` is
1567
+ * issued by Leaflow on request.
1568
+ */
1569
+ export type CreditNoteReason = (typeof CreditNoteReason)[keyof typeof CreditNoteReason];
1570
+ export declare const CreditNoteReason: {
1571
+ readonly provisioning_failed: "provisioning_failed";
1572
+ readonly order_expired: "order_expired";
1573
+ readonly order_canceled: "order_canceled";
1574
+ readonly change_canceled: "change_canceled";
1575
+ readonly change_expired: "change_expired";
1576
+ readonly subscription_canceled: "subscription_canceled";
1577
+ readonly usage_true_up: "usage_true_up";
1578
+ readonly operator: "operator";
1579
+ };
1580
+ /**
1581
+ * An issued invoice reduction. Its credited amount is pre_payment_amount plus post_payment_amount. A paid credit records a return obligation; refund_id identifies its refund, whose outcome may still be pending. Original invoice amounts remain unchanged.
1582
+ */
1583
+ export interface CreditNote {
1584
+ id: string;
1585
+ invoice_id: string;
1586
+ currency: string;
1587
+ issued_at: string;
1588
+ status: CreditNoteStatus;
1589
+ /**
1590
+ * When this note was voided; null while issued.
1591
+ * @nullable
1592
+ */
1593
+ voided_at: string | null;
1594
+ /** The reduction of unpaid receivables. A void note no longer reduces what is due. */
1595
+ pre_payment_amount: Money;
1596
+ /** The credited part of payments already received. This is not proof that its refund has completed. */
1597
+ post_payment_amount: Money;
1598
+ /**
1599
+ * The refund to the original payment sources, or null when no paid amount was credited.
1600
+ * @nullable
1601
+ */
1602
+ refund_id: string | null;
1603
+ /**
1604
+ * Why the note was issued. Notes from canceled, expired or failed orders carry the order's reason;
1605
+ * `usage_true_up` returns a tier price reduction settled after the original invoice; `operator` is
1606
+ * issued by Leaflow on request.
1607
+ */
1608
+ reason: CreditNoteReason;
1609
+ }
1610
+ export interface CreditNoteItem {
1611
+ id: string;
1612
+ credit_note_id: string;
1613
+ invoice_item_id: string;
1614
+ pre_payment_amount: Money;
1615
+ post_payment_amount: Money;
1616
+ }
1617
+ export interface CreditNoteList {
1618
+ items: CreditNote[];
1619
+ pagination: OffsetPagination;
1620
+ }
1621
+ export interface CreditNoteItemList {
1622
+ items: CreditNoteItem[];
1623
+ pagination: OffsetPagination;
1624
+ }
1625
+ /**
1626
+ * Use balance_amount, credit_amount and gateway_amount, which also show a refund split between several destinations.
1627
+ * @deprecated
1628
+ */
1629
+ export type RefundDestination = (typeof RefundDestination)[keyof typeof RefundDestination];
1630
+ export declare const RefundDestination: {
1631
+ readonly balance: "balance";
1632
+ readonly gateway: "gateway";
1633
+ };
1634
+ /**
1635
+ * Summary of the parts in `transactions`.
1636
+ *
1637
+ * - `pending`: nothing has been returned yet, and at least one part is in progress.
1638
+ * - `processing`: some parts have been returned, and at least one is still in progress.
1639
+ * - `succeeded`: every part has been returned.
1640
+ * - `failed`: no part is in progress and at least one has failed. What was returned is in
1641
+ * settled_amount.
1642
+ *
1643
+ * Returns to the balance and to credit grants complete shortly after the refund is made; a
1644
+ * return to a payment method completes when the gateway confirms it.
1645
+ */
1646
+ export type RefundStatus = (typeof RefundStatus)[keyof typeof RefundStatus];
1647
+ export declare const RefundStatus: {
1648
+ readonly pending: "pending";
1649
+ readonly processing: "processing";
1650
+ readonly succeeded: "succeeded";
1651
+ readonly failed: "failed";
1652
+ };
1653
+ /**
1654
+ * Why the refund was made. Clients map the code to their own wording. More codes may be added;
1655
+ * treat an unknown code as a refund without a stated reason.
1656
+ *
1657
+ * - `provisioning_failed`: the purchase could not be delivered.
1658
+ * - `order_expired`: the order expired after part of it had been paid.
1659
+ * - `order_canceled`: the account holder canceled the order after part of it had been paid.
1660
+ * - `change_canceled`: a scheduled change was withdrawn after part of it had been paid.
1661
+ * - `change_expired`: a scheduled change could not take effect before its time passed.
1662
+ * - `subscription_canceled`: the subscription was canceled and its unused value returned under
1663
+ * its refund terms.
1664
+ * - `future_period_canceled`: a renewal that had not started yet was withdrawn.
1665
+ * - `downgrade_difference`: after a downgrade, the remaining value of what was paid, valued as refund
1666
+ * policy `prorated` describes, minus the new configuration's cost for the remaining time at the
1667
+ * change item's `refund_monthly_amount` and `refund_hourly_amount`. Nothing is refunded when that is
1668
+ * zero or less.
1669
+ * - `usage_true_up`: usage priced again over the whole month cost less than was charged.
1670
+ * - `payment_not_applied`: a payment arrived after its invoice could no longer be paid.
1671
+ * - `operator`: made by the platform operator.
1672
+ */
1673
+ export type RefundReason = (typeof RefundReason)[keyof typeof RefundReason];
1674
+ export declare const RefundReason: {
1675
+ readonly provisioning_failed: "provisioning_failed";
1676
+ readonly order_expired: "order_expired";
1677
+ readonly order_canceled: "order_canceled";
1678
+ readonly change_canceled: "change_canceled";
1679
+ readonly change_expired: "change_expired";
1680
+ readonly subscription_canceled: "subscription_canceled";
1681
+ readonly future_period_canceled: "future_period_canceled";
1682
+ readonly downgrade_difference: "downgrade_difference";
1683
+ readonly usage_true_up: "usage_true_up";
1684
+ readonly payment_not_applied: "payment_not_applied";
1685
+ readonly operator: "operator";
1686
+ };
1687
+ export interface Refund {
1688
+ transaction_id?: string;
1689
+ cancellation_item_id?: string;
1690
+ /** Original funds-return split and each result. Unknown gateway results remain pending. */
1691
+ transactions: Transaction[];
1692
+ id: string;
1693
+ billing_account_id?: number;
1694
+ /** @nullable */
1695
+ invoice_id?: string | null;
1696
+ /**
1697
+ * The order the refund belongs to: the order that caused it, such as a downgrade, otherwise
1698
+ * the order of the refunded invoice. Null for refunds of top-ups and of usage invoices.
1699
+ * @nullable
1700
+ */
1701
+ order_id?: string | null;
1702
+ /** The whole refund. Equals balance_amount plus credit_amount plus gateway_amount. */
1703
+ amount: Money;
1704
+ /** The part returned to the account balance. */
1705
+ balance_amount: Money;
1706
+ /** The part restored to the credit grants that paid for it. */
1707
+ credit_amount: Money;
1708
+ /** The part returned to the payment method it was paid with. */
1709
+ gateway_amount: Money;
1710
+ /** What has actually been returned. */
1711
+ settled_amount?: Money;
1712
+ currency: string;
1713
+ /**
1714
+ * Use balance_amount, credit_amount and gateway_amount, which also show a refund split between several destinations.
1715
+ * @deprecated
1716
+ */
1717
+ destination?: RefundDestination;
1718
+ /**
1719
+ * Summary of the parts in `transactions`.
1720
+ *
1721
+ * - `pending`: nothing has been returned yet, and at least one part is in progress.
1722
+ * - `processing`: some parts have been returned, and at least one is still in progress.
1723
+ * - `succeeded`: every part has been returned.
1724
+ * - `failed`: no part is in progress and at least one has failed. What was returned is in
1725
+ * settled_amount.
1726
+ *
1727
+ * Returns to the balance and to credit grants complete shortly after the refund is made; a
1728
+ * return to a payment method completes when the gateway confirms it.
1729
+ */
1730
+ status: RefundStatus;
1731
+ /** When the last part was returned. Present with `succeeded`. */
1732
+ settled_at?: string;
1733
+ reason: RefundReason;
1734
+ created_at: string;
1735
+ }
1736
+ export interface RefundList {
1737
+ items: Refund[];
1738
+ pagination: OffsetPagination;
1739
+ }
1740
+ /**
1741
+ * The attributes the rate was chosen by, such as region and machine type.
1742
+ */
1743
+ export type UsageChargeDimensions = {
1744
+ [key: string]: string;
1745
+ };
1746
+ export interface UsageCharge {
1747
+ subscription_id: string;
1748
+ id: string;
1749
+ project_id?: string;
1750
+ /**
1751
+ * The project and its current name, for display. Absent when the project no longer exists or its
1752
+ * details cannot be read at the moment; `project_id` still identifies it.
1753
+ */
1754
+ project?: NamedIdentity | null;
1755
+ product: Product;
1756
+ /** Which resource this was charged for. Empty for charges not tied to one. */
1757
+ resource_id?: string;
1758
+ meter: ObjectIdentity;
1759
+ unit?: string;
1760
+ /** The attributes the rate was chosen by, such as region and machine type. */
1761
+ dimensions?: UsageChargeDimensions;
1762
+ window_start: string;
1763
+ /** Exclusive. */
1764
+ window_end: string;
1765
+ /** How much was used, before any included allowance. */
1766
+ gross_quantity?: string;
1767
+ /** How much of that was covered by an allowance. */
1768
+ deducted_quantity?: string;
1769
+ /** What was charged for — the gross quantity less the part covered. */
1770
+ quantity: string;
1771
+ unit_amount?: Money;
1772
+ amount: Money;
1773
+ currency: string;
1774
+ /**
1775
+ * Present after the statement is closed and its invoice is issued.
1776
+ * @nullable
1777
+ */
1778
+ invoice_id?: string | null;
1779
+ /**
1780
+ * Present after the statement is closed and its invoice is issued.
1781
+ * @nullable
1782
+ */
1783
+ invoice_item_id?: string | null;
1784
+ /** The statement this charge was collected into. */
1785
+ statement_id?: string;
1786
+ }
1787
+ export interface UsageChargeList {
1788
+ items: UsageCharge[];
1789
+ pagination: OffsetPagination;
1790
+ }
1791
+ export type SubscriptionChargeType = (typeof SubscriptionChargeType)[keyof typeof SubscriptionChargeType];
1792
+ export declare const SubscriptionChargeType: {
1793
+ readonly postpaid: "postpaid";
1794
+ readonly prepaid: "prepaid";
1795
+ readonly one_time: "one_time";
1796
+ };
1797
+ export type SubscriptionInterval = (typeof SubscriptionInterval)[keyof typeof SubscriptionInterval];
1798
+ export declare const SubscriptionInterval: {
1799
+ readonly none: "none";
1800
+ readonly day: "day";
1801
+ readonly month: "month";
1802
+ readonly year: "year";
1803
+ };
1804
+ /**
1805
+ * pending means the purchase relationship exists but its order has not been accepted.
1806
+ * provisioning means the service accepted the order and is delivering. For a service-owned
1807
+ * purchase, only confirmed delivery moves it to active; paying alone does not.
1808
+ * canceled means cancellation completed, or an unfulfilled purchase was canceled or failed without delivery.
1809
+ * terminated means an administrator or the owning service immediately ended the commercial relationship.
1810
+ */
1811
+ export type SubscriptionStatus = (typeof SubscriptionStatus)[keyof typeof SubscriptionStatus];
1812
+ export declare const SubscriptionStatus: {
1813
+ readonly pending: "pending";
1814
+ readonly provisioning: "provisioning";
1815
+ readonly active: "active";
1816
+ readonly suspended: "suspended";
1817
+ readonly canceled: "canceled";
1818
+ readonly terminated: "terminated";
1819
+ };
1820
+ /**
1821
+ * An independently billed purchase relationship, separate from the owning service's resource.
1822
+ * Placing a new prepaid or postpaid service order creates a pending subscription for each line
1823
+ * in the same purchase transaction. Its ID is returned on the order item and remains stable
1824
+ * through checkout and delivery. One order may create several subscriptions, such as an instance,
1825
+ * its system disk and its address; it has no single subscription ID.
1826
+ *
1827
+ * Pending and provisioning do not grant service or accrue usage. A service-owned subscription
1828
+ * becomes provisioning when the owning service accepts the order, and active when the service
1829
+ * confirms delivery, with started_at set to the confirmed effective time; payment changes neither. Prepaid service periods start
1830
+ * then; postpaid usage starts only when the service reports actual delivery and metering.
1831
+ *
1832
+ * One-time delivery may omit a subscription. Renewals reference and extend existing subscriptions
1833
+ * rather than creating another; a change keeps the subscription ID and switches its terms when it
1834
+ * takes effect. Canceling or failing an unfulfilled purchase sets its pending or provisioning
1835
+ * subscriptions to canceled without starting a service period.
1836
+ * Fixed renewals use the agreed recurring_amount and interval; already paid periods retain their
1837
+ * original value. Technical state belongs to the owning service.
1838
+ *
1839
+ * A purchased shared capacity limit, such as a regional snapshot count quota, can have its own
1840
+ * subscription. Activating that capacity confirms delivery of the quota, not individual snapshots.
1841
+ * Creating or deleting snapshots within it does not create, activate or terminate more subscriptions;
1842
+ * the owning service enforces current holdings against the purchased count.
1843
+ */
1844
+ export interface Subscription {
1845
+ currency: string;
1846
+ charge_type: SubscriptionChargeType;
1847
+ interval: SubscriptionInterval;
1848
+ /** @minimum 1 */
1849
+ interval_count?: number;
1850
+ /**
1851
+ * Whole-subscription prepaid renewal amount, after continuing discounts and before tax.
1852
+ * Pending subscriptions show base terms until paying the order fixes any new continuing discount.
1853
+ * Absent for other charge types.
1854
+ */
1855
+ recurring_amount?: string;
1856
+ termination_policy?: TerminationPolicy;
1857
+ refund_policy?: RefundPolicy;
1858
+ order_item_id?: string;
1859
+ /** Present only on subscriptions created by an earlier change that replaced the subscription. A change now keeps the subscription ID. */
1860
+ replaces_subscription_id?: string;
1861
+ coupon_id?: string;
1862
+ coupon?: ObjectIdentity;
1863
+ /** @minimum 0 */
1864
+ discounted_renewals_remaining?: number;
1865
+ suspend_reason?: string;
1866
+ billing_cycle_anchor?: string;
1867
+ cancellation?: SubscriptionCancellation;
1868
+ /**
1869
+ * The saved payment method automatic renewal charges after the account's balance and credits,
1870
+ * before the account's default payment method. Set when the purchase, a renewal or a change is paid with a
1871
+ * saved payment method; paying any other way leaves it unchanged. It is used only while it belongs to the
1872
+ * account that pays the renewal.
1873
+ * @nullable
1874
+ */
1875
+ default_payment_method_id?: string | null;
1876
+ created_at?: string;
1877
+ id: string;
1878
+ /** The billing account that made the purchase. Renewals of a project subscription are charged to the project's current billing account. */
1879
+ billing_account_id: number;
1880
+ account: AccountIdentity;
1881
+ product_id: ProductID;
1882
+ /**
1883
+ * Which project this is for. Absent when it was bought at account level, such as a
1884
+ * membership, which belongs to no single project.
1885
+ * @nullable
1886
+ */
1887
+ project_id?: string | null;
1888
+ /**
1889
+ * The project and its current name, for display. Absent for a purchase at account level,
1890
+ * and when the project no longer exists or its details cannot be read at the moment;
1891
+ * `project_id` still identifies it then.
1892
+ */
1893
+ project?: NamedIdentity | null;
1894
+ product: Product;
1895
+ plan_id: string;
1896
+ plan_name: string;
1897
+ price_id: string;
1898
+ quantity: string;
1899
+ /**
1900
+ * When a prepaid subscription renews or expires, the end of the last service period bought.
1901
+ * Renewing several periods in advance moves it. Null until a new subscription becomes active, even when
1902
+ * its purchase has been paid, and for postpaid subscriptions.
1903
+ * @nullable
1904
+ */
1905
+ current_term_end?: string | null;
1906
+ /**
1907
+ * Start of the service period in effect now. Null when none is, including for postpaid subscriptions.
1908
+ * @nullable
1909
+ */
1910
+ current_period_start?: string | null;
1911
+ /**
1912
+ * End of the service period in effect now. Renewing in advance moves `current_term_end`, not
1913
+ * this. Null when no period is in effect, including for postpaid subscriptions.
1914
+ * @nullable
1915
+ */
1916
+ current_period_end?: string | null;
1917
+ /** A prepaid subscription renews automatically while this is on. A postpaid subscription always continues until it is canceled; this is true until a cancellation is requested and cannot be set. */
1918
+ auto_renew: boolean;
1919
+ /**
1920
+ * pending means the purchase relationship exists but its order has not been accepted.
1921
+ * provisioning means the service accepted the order and is delivering. For a service-owned
1922
+ * purchase, only confirmed delivery moves it to active; paying alone does not.
1923
+ * canceled means cancellation completed, or an unfulfilled purchase was canceled or failed without delivery.
1924
+ * terminated means an administrator or the owning service immediately ended the commercial relationship.
1925
+ */
1926
+ status: SubscriptionStatus;
1927
+ /**
1928
+ * Confirmed start of service. Null until a new subscription becomes active, including after payment.
1929
+ * @nullable
1930
+ */
1931
+ started_at?: string | null;
1932
+ /** @nullable */
1933
+ ended_at?: string | null;
1934
+ }
1935
+ export interface SubscriptionList {
1936
+ items: Subscription[];
1937
+ pagination: OffsetPagination;
1938
+ }
1939
+ export type RenewalPriceInterval = (typeof RenewalPriceInterval)[keyof typeof RenewalPriceInterval];
1940
+ export declare const RenewalPriceInterval: {
1941
+ readonly day: "day";
1942
+ readonly month: "month";
1943
+ readonly year: "year";
1944
+ };
1945
+ export interface RenewalPrice {
1946
+ termination_policy?: TerminationPolicy;
1947
+ refund_policy?: RefundPolicy;
1948
+ price_id: string;
1949
+ /** How many periods one renewal covers. */
1950
+ interval_count: number;
1951
+ interval: RenewalPriceInterval;
1952
+ /** What renewing for this term costs, for the quantity held. */
1953
+ amount?: Money;
1954
+ currency?: string;
1955
+ /**
1956
+ * The term this item already bills at. Renewing for it uses the price bought
1957
+ * originally, so a later price change does not affect it.
1958
+ */
1959
+ current: boolean;
1960
+ }
1961
+ export interface RenewalPriceList {
1962
+ items: RenewalPrice[];
1963
+ pagination: OffsetPagination;
1964
+ }
1965
+ /**
1966
+ * The unit interval_count counts in.
1967
+ */
1968
+ export type RenewRequestInterval = (typeof RenewRequestInterval)[keyof typeof RenewRequestInterval];
1969
+ export declare const RenewRequestInterval: {
1970
+ readonly day: "day";
1971
+ readonly month: "month";
1972
+ readonly year: "year";
1973
+ };
1974
+ export interface RenewRequest {
1975
+ /** Purchase ID saved before submitting. Duplicate creation conflicts; query this order after an unknown result. */
1976
+ order_id: string;
1977
+ /**
1978
+ * How many further periods to buy, each at the price this item already bills at.
1979
+ *
1980
+ * Buying twelve monthly periods is not the same as buying one yearly term: a longer
1981
+ * term is usually sold at a lower price, and that price is only reached by naming the
1982
+ * interval. Use `interval_count` and `interval` for that.
1983
+ * @minimum 1
1984
+ */
1985
+ periods?: number;
1986
+ /**
1987
+ * Renew for a term of this length instead, at the price currently sold for it. Give
1988
+ * `interval` with it.
1989
+ *
1990
+ * Leaving both out renews at the price this item already bills at, which a later price
1991
+ * change does not affect. Naming a term that differs from the current one is a fresh
1992
+ * choice, so it is bought at today's price. Naming the current term changes nothing. A
1993
+ * term sold at several prices that differ in termination policy is refused with 409
1994
+ * `BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `termination_policy` is given.
1995
+ *
1996
+ * List the terms on offer with the renewal prices operation.
1997
+ * @minimum 1
1998
+ */
1999
+ interval_count?: number;
2000
+ /** The unit interval_count counts in. */
2001
+ interval?: RenewRequestInterval;
2002
+ /** With `interval` and `interval_count`, chooses among prices of that term that differ in termination policy. */
2003
+ termination_policy?: TerminationPolicy;
2004
+ payment_method_id?: string;
2005
+ /** Whether to pay from the balance, with or without `payment_method_id`. */
2006
+ use_balance?: boolean;
2007
+ /** Whether to pay from eligible credit grants before the balance. */
2008
+ use_credits?: boolean;
2009
+ return_url?: string;
2010
+ }
2011
+ /**
2012
+ * As in renewing.
2013
+ */
2014
+ export type RenewalOrderRequestInterval = (typeof RenewalOrderRequestInterval)[keyof typeof RenewalOrderRequestInterval];
2015
+ export declare const RenewalOrderRequestInterval: {
2016
+ readonly day: "day";
2017
+ readonly month: "month";
2018
+ readonly year: "year";
2019
+ };
2020
+ /**
2021
+ * The periods and price of the renewal, chosen as in renewing.
2022
+ */
2023
+ export interface RenewalOrderRequest {
2024
+ /** Purchase ID saved before submitting. Duplicate creation conflicts; query this order after an unknown result. */
2025
+ order_id: string;
2026
+ /**
2027
+ * As in renewing.
2028
+ * @minimum 1
2029
+ */
2030
+ periods?: number;
2031
+ /**
2032
+ * As in renewing.
2033
+ * @minimum 1
2034
+ */
2035
+ interval_count?: number;
2036
+ /** As in renewing. */
2037
+ interval?: RenewalOrderRequestInterval;
2038
+ /** As in renewing. */
2039
+ termination_policy?: TerminationPolicy;
2040
+ }
2041
+ export interface AutoRenewSet {
2042
+ auto_renew: boolean;
2043
+ }
2044
+ /**
2045
+ * Follows the items. `pending` is not yet accepted and may be unpaid or paid; its invoice shows
2046
+ * whether payment is still needed, and it can expire or be canceled. `accepted` is accepted with items still
2047
+ * being set up. `completed` means every item was set up. `partially_completed` means some items were set up
2048
+ * and the others failed or were canceled and were refunded to their original payment sources. `failed` means
2049
+ * no item was delivered and at least one failed; collected amounts for the undelivered items are refunded.
2050
+ * `canceled` means every item was withdrawn without delivery; collected amounts are returned to their original
2051
+ * payment sources. No status establishes service delivery by itself.
2052
+ */
2053
+ export type OrderStatus = (typeof OrderStatus)[keyof typeof OrderStatus];
2054
+ export declare const OrderStatus: {
2055
+ readonly pending: "pending";
2056
+ readonly accepted: "accepted";
2057
+ readonly completed: "completed";
2058
+ readonly partially_completed: "partially_completed";
2059
+ readonly failed: "failed";
2060
+ readonly canceled: "canceled";
2061
+ };
2062
+ /**
2063
+ * `pending` is waiting to be set up. `completed` was confirmed by the service.
2064
+ * `failed` was not set up and its amount was refunded to the original payment sources.
2065
+ * `canceled` was confirmed withdrawn without delivery; any collected amount is returned. A completed item is ended by canceling
2066
+ * its subscription.
2067
+ */
2068
+ export type OrderItemStatus = (typeof OrderItemStatus)[keyof typeof OrderItemStatus];
2069
+ export declare const OrderItemStatus: {
2070
+ readonly pending: "pending";
2071
+ readonly completed: "completed";
2072
+ readonly failed: "failed";
2073
+ readonly canceled: "canceled";
2074
+ };
2075
+ /**
2076
+ * `new` buys, `renew` extends a prepaid subscription, `modify` changes a subscription's configuration or billing terms.
2077
+ */
2078
+ export type OrderType = (typeof OrderType)[keyof typeof OrderType];
2079
+ export declare const OrderType: {
2080
+ readonly new: "new";
2081
+ readonly renew: "renew";
2082
+ readonly modify: "modify";
2083
+ };
2084
+ /**
2085
+ * When a plan change takes effect. `none` on anything that is not a change.
2086
+ *
2087
+ * `period_end` orders stay pending until the first period at the new price is paid. That period
2088
+ * is invoiced shortly before the current paid period ends and starts when it ends; if the
2089
+ * invoice is still unpaid by then, the order is canceled and the subscription renews or ends as
2090
+ * usual. Renewing in the meantime moves all of this along with it.
2091
+ */
2092
+ export type OrderChangeEffective = (typeof OrderChangeEffective)[keyof typeof OrderChangeEffective];
2093
+ export declare const OrderChangeEffective: {
2094
+ readonly none: "none";
2095
+ readonly immediate: "immediate";
2096
+ readonly period_end: "period_end";
2097
+ };
2098
+ /**
2099
+ * How it was paid. Removing the payment method afterwards does not change it; `payment_method_id`
2100
+ * then names a removed payment method.
2101
+ */
2102
+ export interface PaidWith {
2103
+ /**
2104
+ * `balance` when the account's balance and credits covered it in full. Otherwise the method used
2105
+ * with the gateway, such as `card`.
2106
+ */
2107
+ method_type: string;
2108
+ /** The gateway that collected it. Absent when `method_type` is `balance`. */
2109
+ payment_gateway?: string;
2110
+ /** The saved payment method that was charged, when one was. */
2111
+ payment_method_id?: string;
2112
+ brand?: string;
2113
+ last4?: string;
2114
+ }
2115
+ export type OrderItemInterval = (typeof OrderItemInterval)[keyof typeof OrderItemInterval];
2116
+ export declare const OrderItemInterval: {
2117
+ readonly none: "none";
2118
+ readonly day: "day";
2119
+ readonly month: "month";
2120
+ readonly year: "year";
2121
+ };
2122
+ /**
2123
+ * The payment timing of the selected price.
2124
+ */
2125
+ export type OrderItemChargeType = (typeof OrderItemChargeType)[keyof typeof OrderItemChargeType];
2126
+ export declare const OrderItemChargeType: {
2127
+ readonly postpaid: "postpaid";
2128
+ readonly prepaid: "prepaid";
2129
+ readonly one_time: "one_time";
2130
+ };
2131
+ export type OrderItemConfiguration = {
2132
+ [key: string]: unknown;
2133
+ };
2134
+ /**
2135
+ * Frozen purchase terms. Monetary fields come from related invoice-line snapshots and are zero
2136
+ * for a line with no immediate charge, such as postpaid admission. Later catalog changes do not reprice this line. A new service
2137
+ * purchase creates its pending subscription when this item is recorded, not when payment succeeds.
2138
+ */
2139
+ export interface OrderItem {
2140
+ /** Financial lines produced by this purchase item, including setup charges. */
2141
+ invoice_item_ids?: string[];
2142
+ /** @minimum 0 */
2143
+ position?: number;
2144
+ configuration?: OrderItemConfiguration;
2145
+ /**
2146
+ * Stable Billing subscription ID. A new prepaid or postpaid service purchase returns the
2147
+ * pending subscription here; renewals and changes reference the existing subscription, which
2148
+ * keeps its ID. Absent for delivery without a subscription. This is not a business resource ID.
2149
+ */
2150
+ subscription_id?: string;
2151
+ interval: OrderItemInterval;
2152
+ /** @minimum 1 */
2153
+ interval_count?: number;
2154
+ termination_policy?: TerminationPolicy;
2155
+ refund_policy?: RefundPolicy;
2156
+ /**
2157
+ * Prepaid items only: the plan's one-month prepaid price for this item's quantity before tax, frozen
2158
+ * at purchase, used to value time used under a prorated refund or a downgrade. Null when the plan has
2159
+ * no prepaid period shorter than the one bought.
2160
+ * @nullable
2161
+ */
2162
+ refund_monthly_amount?: string | null;
2163
+ /**
2164
+ * Prepaid items only: the plan's postpaid hourly price for this item's quantity before tax, frozen at
2165
+ * purchase, used for time used short of a full month. Null when the plan has no postpaid price.
2166
+ * @nullable
2167
+ */
2168
+ refund_hourly_amount?: string | null;
2169
+ completes_on_payment: boolean;
2170
+ recurring_amount?: string;
2171
+ setup_amount?: string;
2172
+ /** The payment timing of the selected price. */
2173
+ charge_type: OrderItemChargeType;
2174
+ /** Total tax after discounts, including any tax already included in the price. */
2175
+ tax_amount?: string;
2176
+ /** The part of tax_amount already included in gross_amount; it is not charged again. */
2177
+ tax_included_amount?: string;
2178
+ id: string;
2179
+ order_id?: string;
2180
+ price_id: string;
2181
+ product_id?: ProductID;
2182
+ product?: Product;
2183
+ /** Which plan was bought. */
2184
+ plan_id: string;
2185
+ /**
2186
+ * What it was called when bought. It does not follow later catalogue renames and is
2187
+ * not translated.
2188
+ */
2189
+ plan_name: string;
2190
+ quantity: string;
2191
+ /**
2192
+ * The unit amount of the price this line is charged under. Absent for a tiered price, which has no
2193
+ * single unit amount, and for a change that takes effect at once, which is charged as `gross_amount`
2194
+ * describes.
2195
+ */
2196
+ unit_amount?: Money;
2197
+ /**
2198
+ * Before discounts: the price applied to the quantity, which for a per-unit price is `unit_amount`
2199
+ * times `quantity`; a minimum charge can make it higher. For an upgrade that takes effect at once it is
2200
+ * the new price minus the old price for the time left in the paid period, both at the subscription's
2201
+ * own period price, and the period end does not move; a downgrade charges nothing and may refund the
2202
+ * difference instead. A change between equal period prices charges and refunds nothing. The setup fee is not part of it; see `setup_amount`.
2203
+ *
2204
+ * Under an inclusive tax rate it includes tax, as the price does, and the included part is
2205
+ * `tax_included_amount`. A renewal at the agreed terms is the exception: the agreed amount excludes
2206
+ * tax, and tax is added to it.
2207
+ */
2208
+ gross_amount?: Money;
2209
+ /**
2210
+ * The reduction on this line: from the coupon the order uses and, for a renewal at the agreed terms,
2211
+ * from the discount the subscription carries.
2212
+ *
2213
+ * A carried discount is part of the agreed amount. It is listed here, and `gross_amount` is then
2214
+ * `unit_amount` times `quantity`, except in two cases where `gross_amount` is the agreed amount and
2215
+ * the carried discount is already reflected in it: the renewal order also uses a coupon the account
2216
+ * holds, or the account's tax rate is inclusive.
2217
+ */
2218
+ discount_amount?: Money;
2219
+ /** `gross_amount` less `discount_amount`. */
2220
+ amount?: Money;
2221
+ currency: string;
2222
+ /** @nullable */
2223
+ period_start?: string | null;
2224
+ /** @nullable */
2225
+ period_end?: string | null;
2226
+ status: OrderItemStatus;
2227
+ }
2228
+ /**
2229
+ * A recorded purchase with its invoice from placement; a zero-total invoice, such as for postpaid
2230
+ * admission, is issued and paid at placement whatever the checkout mode. Until checkout_confirmed_at is set, the
2231
+ * invoice is a draft at base prices: paying it fixes the discount and amount, issues it and collects it, and the
2232
+ * order cannot be accepted before then. Coupon fields describe the discount fixed at that point and are absent
2233
+ * before it; a quote never populates them. Payment and acceptance remain separate from resource delivery.
2234
+ */
2235
+ export interface Order {
2236
+ coupon_id?: string;
2237
+ coupon?: ObjectIdentity;
2238
+ promotion_code_id?: string;
2239
+ /** Code text frozen when the coupon was applied. Absent for an account discount. */
2240
+ promotion_code?: string;
2241
+ /** The order's invoice, the same as invoice.id. */
2242
+ invoice_id: string;
2243
+ invoice: InvoiceSummary;
2244
+ /** How the order was paid. Absent until it is paid. */
2245
+ paid_with?: PaidWith;
2246
+ account?: AccountIdentity;
2247
+ change_effective_at?: string;
2248
+ id: string;
2249
+ /**
2250
+ * Which project it was bought for. Absent for a purchase made at account level, such
2251
+ * as a membership.
2252
+ * @nullable
2253
+ */
2254
+ project_id?: string | null;
2255
+ /**
2256
+ * The project and its current name, for display. Absent for a purchase at account level,
2257
+ * and when the project no longer exists or its details cannot be read at the moment;
2258
+ * `project_id` still identifies it then.
2259
+ */
2260
+ project?: NamedIdentity | null;
2261
+ /**
2262
+ * The billing account the order was placed with. It does not change when the project is later
2263
+ * linked to another billing account. While this account is suspended or closed the order cannot
2264
+ * be accepted, and the invoice of a change scheduled for the end of a period is not issued and the change is called off
2265
+ * when the current period ends; such requests fail with BILLING_ACCOUNT_UNAVAILABLE.
2266
+ */
2267
+ billing_account_id?: number;
2268
+ currency: string;
2269
+ /** `new` buys, `renew` extends a prepaid subscription, `modify` changes a subscription's configuration or billing terms. */
2270
+ type: OrderType;
2271
+ status: OrderStatus;
2272
+ /**
2273
+ * When a plan change takes effect. `none` on anything that is not a change.
2274
+ *
2275
+ * `period_end` orders stay pending until the first period at the new price is paid. That period
2276
+ * is invoiced shortly before the current paid period ends and starts when it ends; if the
2277
+ * invoice is still unpaid by then, the order is canceled and the subscription renews or ends as
2278
+ * usual. Renewing in the meantime moves all of this along with it.
2279
+ */
2280
+ change_effective?: OrderChangeEffective;
2281
+ /**
2282
+ * Acceptance deadline. Pending orders can expire automatically.
2283
+ * @nullable
2284
+ */
2285
+ expires_at?: string | null;
2286
+ /**
2287
+ * When the discount and amount were fixed: at placement for automatic checkout and for a
2288
+ * zero total, otherwise when the invoice was first paid. Null while a deferred order awaits payment.
2289
+ * @nullable
2290
+ */
2291
+ checkout_confirmed_at?: string | null;
2292
+ created_at: string;
2293
+ /**
2294
+ * What was bought. Present on a single order and on every order in a list, so a list
2295
+ * can be rendered without a further request per row.
2296
+ */
2297
+ items: OrderItem[];
2298
+ }
2299
+ export interface OrderList {
2300
+ items: Order[];
2301
+ pagination: OffsetPagination;
2302
+ }
2303
+ /**
2304
+ * `scheduled` before valid_from, `active` within the validity, `expired` after valid_until, or
2305
+ * `voided` once Leaflow withdrew it.
2306
+ */
2307
+ export type DiscountStatus = (typeof DiscountStatus)[keyof typeof DiscountStatus];
2308
+ export declare const DiscountStatus: {
2309
+ readonly scheduled: "scheduled";
2310
+ readonly active: "active";
2311
+ readonly expired: "expired";
2312
+ readonly voided: "voided";
2313
+ };
2314
+ export type DiscountType = (typeof DiscountType)[keyof typeof DiscountType];
2315
+ export declare const DiscountType: {
2316
+ readonly percentage: "percentage";
2317
+ readonly fixed_amount: "fixed_amount";
2318
+ readonly price_override: "price_override";
2319
+ readonly free_setup: "free_setup";
2320
+ };
2321
+ /**
2322
+ * Whether the discount continues on renewals of the purchased item. `once` applies only to the
2323
+ * purchase or renewal that uses the coupon, `recurring` continues for `frequency_duration` billing
2324
+ * periods including the first, and `forever` continues on every renewal.
2325
+ */
2326
+ export type DiscountFrequency = (typeof DiscountFrequency)[keyof typeof DiscountFrequency];
2327
+ export declare const DiscountFrequency: {
2328
+ readonly once: "once";
2329
+ readonly recurring: "recurring";
2330
+ readonly forever: "forever";
2331
+ };
2332
+ /**
2333
+ * A coupon held on this account for a period. Within the period it applies without a code to purchases and
2334
+ * to metered usage that the coupon covers.
2335
+ */
2336
+ export interface Discount {
2337
+ min_amount?: string;
2338
+ billing_account_id?: number;
2339
+ coupon_id: string;
2340
+ promotion_code_id?: string;
2341
+ /**
2342
+ * `scheduled` before valid_from, `active` within the validity, `expired` after valid_until, or
2343
+ * `voided` once Leaflow withdrew it.
2344
+ */
2345
+ status: DiscountStatus;
2346
+ voided_at?: string;
2347
+ type: DiscountType;
2348
+ /**
2349
+ * Whether the discount continues on renewals of the purchased item. `once` applies only to the
2350
+ * purchase or renewal that uses the coupon, `recurring` continues for `frequency_duration` billing
2351
+ * periods including the first, and `forever` continues on every renewal.
2352
+ */
2353
+ frequency?: DiscountFrequency;
2354
+ /** @minimum 1 */
2355
+ frequency_duration?: number;
2356
+ id: string;
2357
+ name?: string;
2358
+ /** For a percentage discount, out of one hundred. */
2359
+ percent_off?: string;
2360
+ amount?: Money;
2361
+ /** Caps a percentage discount. */
2362
+ max_discount?: Money;
2363
+ currency?: string;
2364
+ /**
2365
+ * What it may be used for. Absent means it applies to anything on the account,
2366
+ * including setup fees and traffic.
2367
+ */
2368
+ applies_to: Applicability;
2369
+ /** Restricted to your first purchase of anything it applies to. */
2370
+ first_purchase_only?: boolean;
2371
+ valid_from?: string;
2372
+ /**
2373
+ * Absent follows the coupon's own validity.
2374
+ * @nullable
2375
+ */
2376
+ valid_until?: string | null;
2377
+ }
2378
+ export interface DiscountList {
2379
+ items: Discount[];
2380
+ pagination: OffsetPagination;
2381
+ }
2382
+ export interface OrderItemList {
2383
+ items: OrderItem[];
2384
+ pagination: OffsetPagination;
2385
+ }
2386
+ /**
2387
+ * Whether the quantity was paid for or granted free of charge. Both are consumed the same way.
2388
+ */
2389
+ export type AllowanceCategory = (typeof AllowanceCategory)[keyof typeof AllowanceCategory];
2390
+ export declare const AllowanceCategory: {
2391
+ readonly paid: "paid";
2392
+ readonly promotional: "promotional";
2393
+ };
2394
+ /**
2395
+ * Exact values for a subset of the meter's dimensions. Only usage with these values is deducted;
2396
+ * omitted dimensions are not restricted.
2397
+ */
2398
+ export type AllowanceDimensions = {
2399
+ [key: string]: string;
2400
+ };
2401
+ export type AllowanceStatus = (typeof AllowanceStatus)[keyof typeof AllowanceStatus];
2402
+ export declare const AllowanceStatus: {
2403
+ readonly active: "active";
2404
+ readonly depleted: "depleted";
2405
+ readonly expired: "expired";
2406
+ readonly voided: "voided";
2407
+ };
2408
+ export interface Allowance {
2409
+ /** Optional issuance key, unique within this billing account. */
2410
+ idempotency_key?: string;
2411
+ subscription_id?: string;
2412
+ id: string;
2413
+ billing_account_id?: number;
2414
+ product: Product;
2415
+ meter: ObjectIdentity;
2416
+ /** The unit it is counted in, such as `MiB`. */
2417
+ unit?: string;
2418
+ /** Whether the quantity was paid for or granted free of charge. Both are consumed the same way. */
2419
+ category: AllowanceCategory;
2420
+ /**
2421
+ * Exact values for a subset of the meter's dimensions. Only usage with these values is deducted;
2422
+ * omitted dimensions are not restricted.
2423
+ */
2424
+ dimensions: AllowanceDimensions;
2425
+ name: string;
2426
+ /** How much was granted. */
2427
+ quantity: string;
2428
+ /** How much is left. */
2429
+ remaining_quantity: string;
2430
+ /**
2431
+ * Lower values are consumed first. At equal priority, earlier expiry and then earlier issuance take
2432
+ * precedence.
2433
+ */
2434
+ priority?: number;
2435
+ status: AllowanceStatus;
2436
+ valid_from: string;
2437
+ /**
2438
+ * When it lapses. Anything unused at that point is lost; it is not refunded and does
2439
+ * not carry over. Absent when it does not expire on its own.
2440
+ * @nullable
2441
+ */
2442
+ valid_until?: string | null;
2443
+ }
2444
+ export interface AllowanceList {
2445
+ items: Allowance[];
2446
+ pagination: OffsetPagination;
2447
+ }
2448
+ /**
2449
+ * Derived from the validity period. scheduled means valid_from has not yet arrived.
2450
+ */
2451
+ export type FeatureGrantStatus = (typeof FeatureGrantStatus)[keyof typeof FeatureGrantStatus];
2452
+ export declare const FeatureGrantStatus: {
2453
+ readonly scheduled: "scheduled";
2454
+ readonly active: "active";
2455
+ readonly expired: "expired";
2456
+ readonly voided: "voided";
2457
+ };
2458
+ export interface FeatureGrant {
2459
+ id: string;
2460
+ billing_account_id: number;
2461
+ product: Product;
2462
+ feature: ObjectIdentity;
2463
+ name: string;
2464
+ valid_from: string;
2465
+ /**
2466
+ * Null means the grant does not expire.
2467
+ * @nullable
2468
+ */
2469
+ valid_until: string | null;
2470
+ status: FeatureGrantStatus;
2471
+ }
2472
+ export interface FeatureGrantList {
2473
+ items: FeatureGrant[];
2474
+ pagination: OffsetPagination;
2475
+ }
2476
+ export interface Entitlement {
2477
+ product: Product;
2478
+ feature: ObjectIdentity;
2479
+ name?: string;
2480
+ enabled: boolean;
2481
+ /**
2482
+ * When the subscription providing it ends. Absent for a metered subscription, which
2483
+ * has no end date.
2484
+ * @nullable
2485
+ */
2486
+ expires_at?: string | null;
2487
+ }
2488
+ export interface EntitlementList {
2489
+ items: Entitlement[];
2490
+ pagination: OffsetPagination;
2491
+ }
2492
+ export interface ProductList {
2493
+ items: Product[];
2494
+ pagination: OffsetPagination;
2495
+ }
2496
+ export interface PlanFeature {
2497
+ feature: ObjectIdentity;
2498
+ name: string;
2499
+ }
2500
+ export interface Plan {
2501
+ /** False once archived. An archived plan cannot be bought until it is active again. */
2502
+ active: boolean;
2503
+ lookup_key?: string;
2504
+ product: Product;
2505
+ features: PlanFeature[];
2506
+ id: string;
2507
+ product_id: ProductID;
2508
+ name: string;
2509
+ description?: string;
2510
+ }
2511
+ export interface PlanList {
2512
+ items: Plan[];
2513
+ pagination: OffsetPagination;
2514
+ }
2515
+ /**
2516
+ * `postpaid` charges for what is used, `prepaid` buys a period in advance, `one_time`
2517
+ * charges once.
2518
+ */
2519
+ export type PriceType = (typeof PriceType)[keyof typeof PriceType];
2520
+ export declare const PriceType: {
2521
+ readonly postpaid: "postpaid";
2522
+ readonly prepaid: "prepaid";
2523
+ readonly one_time: "one_time";
2524
+ };
2525
+ /**
2526
+ * How the amount is arrived at. `rated` means the rate depends on attributes such as
2527
+ * region or machine type, and is looked up on a price list.
2528
+ */
2529
+ export type PriceBillingScheme = (typeof PriceBillingScheme)[keyof typeof PriceBillingScheme];
2530
+ export declare const PriceBillingScheme: {
2531
+ readonly per_unit: "per_unit";
2532
+ readonly tiered: "tiered";
2533
+ readonly rated: "rated";
2534
+ };
2535
+ /**
2536
+ * `none` for a price that is not tiered, which is most of them.
2537
+ *
2538
+ * Otherwise `graduated` charges each band at its own rate, and `volume` charges
2539
+ * everything at the rate of the band the total falls in.
2540
+ */
2541
+ export type PriceTiersMode = (typeof PriceTiersMode)[keyof typeof PriceTiersMode];
2542
+ export declare const PriceTiersMode: {
2543
+ readonly none: "none";
2544
+ readonly graduated: "graduated";
2545
+ readonly volume: "volume";
2546
+ };
2547
+ export type PriceInterval = (typeof PriceInterval)[keyof typeof PriceInterval];
2548
+ export declare const PriceInterval: {
2549
+ readonly none: "none";
2550
+ readonly day: "day";
2551
+ readonly month: "month";
2552
+ readonly year: "year";
2553
+ };
2554
+ export interface Tier {
2555
+ /**
2556
+ * The upper bound of this band. Null on the last band, which has no bound.
2557
+ * @nullable
2558
+ */
2559
+ up_to?: string | null;
2560
+ unit_amount: Money;
2561
+ /** Charged once when this band is reached, in addition to the per-unit amount. */
2562
+ flat_amount?: Money;
2563
+ }
2564
+ export interface Price {
2565
+ rate_card?: ObjectIdentity;
2566
+ lookup_key?: string;
2567
+ product: Product;
2568
+ plan: ObjectIdentity;
2569
+ meter_id?: string;
2570
+ meter?: ObjectIdentity;
2571
+ unit_quantity: string;
2572
+ /** False once archived. An archived price cannot be bought until it is active again. */
2573
+ active: boolean;
2574
+ termination_policy?: TerminationPolicy;
2575
+ refund_policy?: RefundPolicy;
2576
+ product_id?: ProductID;
2577
+ id: string;
2578
+ plan_id: string;
2579
+ currency: string;
2580
+ /**
2581
+ * `postpaid` charges for what is used, `prepaid` buys a period in advance, `one_time`
2582
+ * charges once.
2583
+ */
2584
+ type: PriceType;
2585
+ /**
2586
+ * How the amount is arrived at. `rated` means the rate depends on attributes such as
2587
+ * region or machine type, and is looked up on a price list.
2588
+ */
2589
+ billing_scheme: PriceBillingScheme;
2590
+ /** Present for `per_unit`. */
2591
+ unit_amount?: Money;
2592
+ /**
2593
+ * `none` for a price that is not tiered, which is most of them.
2594
+ *
2595
+ * Otherwise `graduated` charges each band at its own rate, and `volume` charges
2596
+ * everything at the rate of the band the total falls in.
2597
+ */
2598
+ tiers_mode?: PriceTiersMode;
2599
+ /** Present for `tiered`, in ascending order. */
2600
+ tiers?: Tier[];
2601
+ /** For `rated` prices, the price list the rates are read from. */
2602
+ rate_card_id?: string;
2603
+ /** The smallest quantity that can be bought. Absent means no lower bound. */
2604
+ min_quantity?: string;
2605
+ /**
2606
+ * The largest purchasable quantity. Omitted when no maximum applies. A quantity above this limit is
2607
+ * rejected with BILLING_PRICE_INVALID and field=max_quantity.
2608
+ */
2609
+ max_quantity?: string;
2610
+ /** Quantities must be a multiple of this. Absent means any quantity within the bounds. */
2611
+ quantity_step?: string;
2612
+ /** For prepaid prices, how many periods one purchase covers. */
2613
+ interval_count?: number;
2614
+ interval: PriceInterval;
2615
+ setup_fee?: Money;
2616
+ }
2617
+ export interface PriceList {
2618
+ items: Price[];
2619
+ pagination: OffsetPagination;
2620
+ }
2621
+ /**
2622
+ * The attributes this rate applies to, such as region and machine type.
2623
+ */
2624
+ export type RateDimensions = {
2625
+ [key: string]: string;
2626
+ };
2627
+ /**
2628
+ * `per_unit` multiplies `unit_amount`; `tiered` walks the tiers as `tiers_mode` says.
2629
+ */
2630
+ export type RateBillingScheme = (typeof RateBillingScheme)[keyof typeof RateBillingScheme];
2631
+ export declare const RateBillingScheme: {
2632
+ readonly per_unit: "per_unit";
2633
+ readonly tiered: "tiered";
2634
+ };
2635
+ /**
2636
+ * `graduated` charges each band at its own rate; `volume` charges everything at the rate of the band the total lands in. `none` for a `per_unit` rate.
2637
+ */
2638
+ export type RateTiersMode = (typeof RateTiersMode)[keyof typeof RateTiersMode];
2639
+ export declare const RateTiersMode: {
2640
+ readonly none: "none";
2641
+ readonly graduated: "graduated";
2642
+ readonly volume: "volume";
2643
+ };
2644
+ export interface Rate {
2645
+ meter: ObjectIdentity;
2646
+ /** The unit readings arrive in, such as `core-second`. */
2647
+ unit?: string;
2648
+ /** The attributes this rate applies to, such as region and machine type. */
2649
+ dimensions: RateDimensions;
2650
+ /** `per_unit` multiplies `unit_amount`; `tiered` walks the tiers as `tiers_mode` says. */
2651
+ billing_scheme: RateBillingScheme;
2652
+ /** `graduated` charges each band at its own rate; `volume` charges everything at the rate of the band the total lands in. `none` for a `per_unit` rate. */
2653
+ tiers_mode: RateTiersMode;
2654
+ /** Present for `per_unit`. Tiered rates carry their amounts on the tiers. */
2655
+ unit_amount?: Money;
2656
+ /** Present for a tiered rate, in ascending order. */
2657
+ tiers?: Tier[];
2658
+ /**
2659
+ * How many measured units one amount covers. An hourly rate on a per-second meter is
2660
+ * `"3600"`.
2661
+ */
2662
+ unit_quantity?: string;
2663
+ currency: string;
2664
+ effective_from: string;
2665
+ /** @nullable */
2666
+ effective_to?: string | null;
2667
+ }
2668
+ export interface RateList {
2669
+ items: Rate[];
2670
+ pagination: OffsetPagination;
2671
+ }
2672
+ /**
2673
+ * Narrows the selection when a plan offers more than one charge type.
2674
+ */
2675
+ export type QuoteItemInputPriceType = (typeof QuoteItemInputPriceType)[keyof typeof QuoteItemInputPriceType];
2676
+ export declare const QuoteItemInputPriceType: {
2677
+ readonly postpaid: "postpaid";
2678
+ readonly prepaid: "prepaid";
2679
+ readonly one_time: "one_time";
2680
+ };
2681
+ export type QuoteItemInputInterval = (typeof QuoteItemInputInterval)[keyof typeof QuoteItemInputInterval];
2682
+ export declare const QuoteItemInputInterval: {
2683
+ readonly none: "none";
2684
+ readonly day: "day";
2685
+ readonly month: "month";
2686
+ readonly year: "year";
2687
+ };
2688
+ /**
2689
+ * The attributes the price depends on — region, instance type, token class.
2690
+ *
2691
+ * Required when the price draws its rates from a price list, which is how anything
2692
+ * sold by region or by machine type is priced. A price that carries a single unit
2693
+ * amount, or a ladder, has no attributes to give and takes none.
2694
+ *
2695
+ * Every attribute the meter declares must be present. A combination with no rate
2696
+ * covering it is refused rather than priced at zero.
2697
+ */
2698
+ export type QuoteItemInputDimensions = {
2699
+ [key: string]: string;
2700
+ };
2701
+ /**
2702
+ * Identify a price directly, or select a price for a plan. For each resource give its ID or lookup
2703
+ * key, never both. Lookup keys require product_id. Meter, dimensions or duration_seconds request a
2704
+ * postpaid usage estimate. Such an estimate cannot be combined with a promotion code or treated as a
2705
+ * checkout amount. Without a usage estimate, a postpaid item includes only any setup charge.
2706
+ */
2707
+ export interface QuoteItemInput {
2708
+ /**
2709
+ * @minLength 1
2710
+ * @maxLength 128
2711
+ */
2712
+ price_lookup_key?: string;
2713
+ /**
2714
+ * @minLength 1
2715
+ * @maxLength 128
2716
+ */
2717
+ plan_lookup_key?: string;
2718
+ price_id?: string;
2719
+ product_id?: ProductID;
2720
+ plan_id?: string;
2721
+ /** Narrows the selection when a plan offers more than one charge type. */
2722
+ price_type?: QuoteItemInputPriceType;
2723
+ interval?: QuoteItemInputInterval;
2724
+ /** @minimum 1 */
2725
+ interval_count?: number;
2726
+ /** Selects among prepaid prices with otherwise identical billing terms. Ambiguous terms are refused instead of choosing a price arbitrarily. */
2727
+ termination_policy?: TerminationPolicy;
2728
+ /** @pattern ^(?:(?:[1-9][0-9]{0,27}|0(?:[1-9][0-9]{0,26}|0(?:[1-9][0-9]{0,25}|0(?:[1-9][0-9]{0,24}|0(?:[1-9][0-9]{0,23}|0(?:[1-9][0-9]{0,22}|0(?:[1-9][0-9]{0,21}|0(?:[1-9][0-9]{0,20}|0(?:[1-9][0-9]{0,19}|0(?:[1-9][0-9]{0,18}|0(?:[1-9][0-9]{0,17}|0(?:[1-9][0-9]{0,16}|0(?:[1-9][0-9]{0,15}|0(?:[1-9][0-9]{0,14}|0(?:[1-9][0-9]{0,13}|0(?:[1-9][0-9]{0,12}|0(?:[1-9][0-9]{0,11}|0(?:[1-9][0-9]{0,10}|0(?:[1-9][0-9]{0,9}|0(?:[1-9][0-9]{0,8}|0(?:[1-9][0-9]{0,7}|0(?:[1-9][0-9]{0,6}|0(?:[1-9][0-9]{0,5}|0(?:[1-9][0-9]{0,4}|0(?:[1-9][0-9]{0,3}|0(?:[1-9][0-9]{0,2}|0(?:[1-9][0-9]{0,1}|0[1-9])))))))))))))))))))))))))))([.][0-9]{1,10})?|0{1,28}[.](?:[1-9][0-9]{0,9}|0(?:[1-9][0-9]{0,8}|0(?:[1-9][0-9]{0,7}|0(?:[1-9][0-9]{0,6}|0(?:[1-9][0-9]{0,5}|0(?:[1-9][0-9]{0,4}|0(?:[1-9][0-9]{0,3}|0(?:[1-9][0-9]{0,2}|0(?:[1-9][0-9]{0,1}|0[1-9]))))))))))$ */
2729
+ quantity: string;
2730
+ meter_id?: string;
2731
+ /**
2732
+ * @minLength 1
2733
+ * @maxLength 128
2734
+ */
2735
+ meter_lookup_key?: string;
2736
+ /**
2737
+ * The attributes the price depends on — region, instance type, token class.
2738
+ *
2739
+ * Required when the price draws its rates from a price list, which is how anything
2740
+ * sold by region or by machine type is priced. A price that carries a single unit
2741
+ * amount, or a ladder, has no attributes to give and takes none.
2742
+ *
2743
+ * Every attribute the meter declares must be present. A combination with no rate
2744
+ * covering it is refused rather than priced at zero.
2745
+ */
2746
+ dimensions?: QuoteItemInputDimensions;
2747
+ /**
2748
+ * For metered items, how long to price for. This allows an estimate such as "about
2749
+ * this much per month" to be shown before anything exists. The priced quantity is
2750
+ * `quantity` multiplied by this duration.
2751
+ */
2752
+ duration_seconds?: number;
2753
+ }
2754
+ export interface SpendRow {
2755
+ product?: Product;
2756
+ plan_id?: string;
2757
+ plan_name?: string;
2758
+ /** Present only when grouped by resource. */
2759
+ resource_id?: string;
2760
+ amount: Money;
2761
+ currency: string;
2762
+ }
2763
+ export interface SpendRowList {
2764
+ items: SpendRow[];
2765
+ /** The sum over the whole period, not only the page returned. */
2766
+ total: Money;
2767
+ currency: string;
2768
+ pagination: OffsetPagination;
2769
+ }
2770
+ export type ActiveResourceDimensions = {
2771
+ [key: string]: string;
2772
+ };
2773
+ export type ActiveResourceStatus = (typeof ActiveResourceStatus)[keyof typeof ActiveResourceStatus];
2774
+ export declare const ActiveResourceStatus: {
2775
+ readonly active: "active";
2776
+ readonly suspended: "suspended";
2777
+ readonly closing: "closing";
2778
+ readonly closed: "closed";
2779
+ };
2780
+ /**
2781
+ * A resource currently accruing charges by the second.
2782
+ */
2783
+ export interface ActiveResource {
2784
+ id: string;
2785
+ ended_at?: string;
2786
+ suspended_at?: string;
2787
+ state_changed_at?: string;
2788
+ /** The postpaid subscription charged for this metering record, including shared services. */
2789
+ subscription_id: string;
2790
+ resource_id: string;
2791
+ product: Product;
2792
+ /** What it is, as its own service names it. */
2793
+ resource_type?: string;
2794
+ meter: ObjectIdentity;
2795
+ unit?: string;
2796
+ /** How much is held — cores, MiB, cards. Not how much has been used. */
2797
+ quantity: string;
2798
+ dimensions?: ActiveResourceDimensions;
2799
+ status: ActiveResourceStatus;
2800
+ started_at: string;
2801
+ project_id?: string;
2802
+ /** Usage has been generated up to this boundary; it does not imply invoicing or payment. */
2803
+ usage_generated_until: string;
2804
+ }
2805
+ export interface ActiveResourceList {
2806
+ items: ActiveResource[];
2807
+ pagination: OffsetPagination;
2808
+ }
2809
+ /**
2810
+ * An estimate of the refundable value of one order or selected items. This does not cancel the order, stop service or create a refund.
2811
+ */
2812
+ export interface OrderRefundQuoteInput {
2813
+ order_id: string;
2814
+ /**
2815
+ * Estimate only these items. Omit to estimate the whole order. Every item must belong to the order.
2816
+ * @minItems 1
2817
+ * @maxItems 100
2818
+ */
2819
+ order_item_ids?: string[];
2820
+ }
2821
+ /**
2822
+ * "Quote exactly one target: proposed items, an existing order, renewals, a cancellation or an order
2823
+ * refund. All targets use the specified billing account. Nothing is saved, charged, reserved or
2824
+ * canceled. Promotion codes apply only to a purchase basket or an existing order. An invalid
2825
+ * combination returns BILLING_PURCHASE_INVALID with the offending field."
2826
+ */
2827
+ export interface QuoteRequest {
2828
+ /**
2829
+ * The billing account to price for. It must belong to you. Existing orders must have been purchased
2830
+ * with this account; renewals and cancellations must currently be paid for by it.
2831
+ * @minimum 1
2832
+ */
2833
+ billing_account_id: number;
2834
+ /**
2835
+ * A proposed purchase priced in the account currency. Metered items may estimate specified usage
2836
+ * quantities; those estimates are not amounts collectible at checkout.
2837
+ * @minItems 1
2838
+ * @maxItems 100
2839
+ */
2840
+ items?: QuoteItemInput[];
2841
+ /**
2842
+ * Preview paying this existing order. Its recorded purchase terms supply every line, and an order
2843
+ * whose terms are fixed returns its recorded amounts. A preview does not change the order.
2844
+ */
2845
+ order_id?: string;
2846
+ /**
2847
+ * Preview renewing these subscriptions, each at most once. Each entry represents a separate
2848
+ * renewal order. To preview a new promotion code, create a renewal order and quote it by order_id.
2849
+ * @minItems 1
2850
+ * @maxItems 100
2851
+ */
2852
+ renewals?: QuoteRenewal[];
2853
+ cancellation?: QuoteCancellation;
2854
+ /**
2855
+ * @minLength 1
2856
+ * @maxLength 64
2857
+ */
2858
+ promotion_code?: string;
2859
+ refund?: OrderRefundQuoteInput;
2860
+ }
2861
+ export interface CancelSubscriptionRequest {
2862
+ mode: TerminationPolicy;
2863
+ /** For immediate cancellation, the quoted whole-second refund basis. Now when omitted. */
2864
+ proration_date?: string;
2865
+ /** The cancellation quote's refundable amount, including an explicit zero. */
2866
+ expected_refundable_amount: Money & string;
2867
+ /** @maxLength 1024 */
2868
+ reason?: string;
2869
+ }
2870
+ export interface StatementAmounts {
2871
+ subtotal: Money;
2872
+ discount_amount: Money;
2873
+ tax_amount: Money;
2874
+ total: Money;
2875
+ }
2876
+ export type StatementStatus = (typeof StatementStatus)[keyof typeof StatementStatus];
2877
+ export declare const StatementStatus: {
2878
+ readonly open: "open";
2879
+ readonly closed: "closed";
2880
+ };
2881
+ /**
2882
+ * An account's consumption for one billing period, collected at one closing. The first statement of a period (sequence 1) closes after the period ends. Usage priced after that closing is collected in a later statement for the same period, which closes and invoices separately; a closed statement is never rewritten. Payments apply to issued invoices.
2883
+ */
2884
+ export interface Statement {
2885
+ id: string;
2886
+ billing_account_id: number;
2887
+ currency: string;
2888
+ period_start: string;
2889
+ period_end: string;
2890
+ /** 1 for the first closing of the period; higher for statements that collect usage priced after an earlier closing. */
2891
+ sequence: number;
2892
+ status: StatementStatus;
2893
+ /** True while the statement is open. The estimate applies tier pricing to the period's usage so far and adds tax for the current invoice contact. Minimum charges are added at closing, and a tier reduction larger than this statement's own charges is credited to earlier invoices of the period at closing. */
2894
+ estimated: boolean;
2895
+ amounts: StatementAmounts;
2896
+ closed_at?: string;
2897
+ /** The invoice issued at this closing, when it produced one. */
2898
+ invoice_id?: string;
2899
+ created_at: string;
2900
+ calculated_at?: string;
2901
+ credited_amount: Money;
2902
+ }
2903
+ export interface StatementList {
2904
+ items: Statement[];
2905
+ pagination: OffsetPagination;
2906
+ }
2907
+ export interface StatementItem {
2908
+ project_id?: string;
2909
+ product_id?: string;
2910
+ meter_id?: string;
2911
+ unit?: string;
2912
+ /** Net usage quantity. Included only when grouping by meter. */
2913
+ quantity?: string;
2914
+ deducted_quantity?: string;
2915
+ amount: Money;
2916
+ }
2917
+ export type StatementSummaryGroupBy = (typeof StatementSummaryGroupBy)[keyof typeof StatementSummaryGroupBy];
2918
+ export declare const StatementSummaryGroupBy: {
2919
+ readonly project: "project";
2920
+ readonly product: "product";
2921
+ readonly meter: "meter";
2922
+ };
2923
+ export interface StatementSummary {
2924
+ statement_id: string;
2925
+ currency: string;
2926
+ estimated: boolean;
2927
+ calculated_at?: string;
2928
+ group_by: StatementSummaryGroupBy;
2929
+ items: StatementItem[];
2930
+ pagination: OffsetPagination;
2931
+ }