@leaflow/sdk 0.0.0-dev.352.g85966ed → 0.0.0-dev.353.g74313e0
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.
- package/dist/billing/type/funds/v1/generated/models.d.ts +4 -4
- package/dist/billing/type/funds/v1/generated/validators/funds.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/models.d.ts +375 -779
- package/dist/billing/type/order/v1/generated/models.js +12 -44
- package/dist/billing/type/order/v1/generated/validators/accountBalance.zod.d.ts +22 -11
- package/dist/billing/type/order/v1/generated/validators/accountBalance.zod.js +8 -8
- package/dist/billing/type/order/v1/generated/validators/activeResource.zod.js +8 -5
- package/dist/billing/type/order/v1/generated/validators/allowance.zod.js +3 -3
- package/dist/billing/type/order/v1/generated/validators/applicability.zod.d.ts +22 -11
- package/dist/billing/type/order/v1/generated/validators/applicability.zod.js +12 -3
- package/dist/billing/type/order/v1/generated/validators/applicablePlan.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/billingAccount.zod.js +5 -5
- package/dist/billing/type/order/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/billingScheme.zod.d.ts +14 -0
- package/dist/billing/type/order/v1/generated/validators/billingScheme.zod.js +11 -0
- package/dist/billing/type/order/v1/generated/validators/cancellation.zod.d.ts +6 -3
- package/dist/billing/type/order/v1/generated/validators/cancellation.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/cancellationCreate.zod.js +3 -3
- package/dist/billing/type/order/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
- package/dist/billing/type/order/v1/generated/validators/cancellationItem.zod.js +6 -5
- package/dist/billing/type/order/v1/generated/validators/cancellationList.zod.d.ts +6 -3
- package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
- package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
- package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
- package/dist/billing/type/order/v1/generated/validators/contact.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/creditGrant.zod.d.ts +22 -11
- package/dist/billing/type/order/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
- package/dist/billing/type/order/v1/generated/validators/creditGroup.zod.d.ts +22 -11
- package/dist/billing/type/order/v1/generated/validators/creditGroup.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/creditNote.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/currency.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/discount.zod.d.ts +23 -12
- package/dist/billing/type/order/v1/generated/validators/discount.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/discountList.zod.d.ts +23 -12
- package/dist/billing/type/order/v1/generated/validators/entitlement.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/funds.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/invoice.zod.d.ts +0 -1
- package/dist/billing/type/order/v1/generated/validators/invoice.zod.js +8 -8
- package/dist/billing/type/order/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/invoiceItem.zod.js +6 -4
- package/dist/billing/type/order/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/invoiceItemProration.zod.js +1 -3
- package/dist/billing/type/order/v1/generated/validators/invoiceList.zod.d.ts +0 -1
- package/dist/billing/type/order/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
- package/dist/billing/type/order/v1/generated/validators/invoiceStatus.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
- package/dist/billing/type/order/v1/generated/validators/invoiceSummary.zod.js +3 -3
- package/dist/billing/type/order/v1/generated/validators/monthlyStatement.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/objectIdentity.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/order.zod.d.ts +7 -4
- package/dist/billing/type/order/v1/generated/validators/order.zod.js +10 -12
- package/dist/billing/type/order/v1/generated/validators/orderItem.zod.d.ts +7 -3
- package/dist/billing/type/order/v1/generated/validators/orderItem.zod.js +16 -14
- package/dist/billing/type/order/v1/generated/validators/orderItemList.zod.d.ts +7 -3
- package/dist/billing/type/order/v1/generated/validators/orderItemStatus.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/orderList.zod.d.ts +7 -4
- package/dist/billing/type/order/v1/generated/validators/orderRefundQuote.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/orderStatus.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/paidWith.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
- package/dist/billing/type/order/v1/generated/validators/payTogetherRequest.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/paymentAction.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
- package/dist/billing/type/order/v1/generated/validators/paymentOption.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/paymentPreview.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/paymentResult.zod.js +5 -8
- package/dist/billing/type/order/v1/generated/validators/paymentStatus.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/placedOrder.zod.d.ts +0 -1
- package/dist/billing/type/order/v1/generated/validators/price.zod.d.ts +7 -5
- package/dist/billing/type/order/v1/generated/validators/price.zod.js +14 -11
- package/dist/billing/type/order/v1/generated/validators/priceList.zod.d.ts +7 -5
- package/dist/billing/type/order/v1/generated/validators/priceOption.zod.d.ts +7 -5
- package/dist/billing/type/order/v1/generated/validators/priceOption.zod.js +7 -3
- package/dist/billing/type/order/v1/generated/validators/priceType.zod.d.ts +14 -0
- package/dist/billing/type/order/v1/generated/validators/priceType.zod.js +11 -0
- package/dist/billing/type/order/v1/generated/validators/productID.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/projectAssignment.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/purchaseOperation.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/quote.zod.d.ts +6 -3
- package/dist/billing/type/order/v1/generated/validators/quote.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/quoteCancellation.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/quoteItem.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
- package/dist/billing/type/order/v1/generated/validators/quoteItemInput.zod.js +8 -8
- package/dist/billing/type/order/v1/generated/validators/quoteRenewal.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
- package/dist/billing/type/order/v1/generated/validators/quoteRequest.zod.js +5 -5
- package/dist/billing/type/order/v1/generated/validators/quotedDiscount.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/rate.zod.d.ts +11 -0
- package/dist/billing/type/order/v1/generated/validators/rate.zod.js +14 -6
- package/dist/billing/type/order/v1/generated/validators/rateList.zod.d.ts +11 -0
- package/dist/billing/type/order/v1/generated/validators/refund.zod.js +3 -3
- package/dist/billing/type/order/v1/generated/validators/refundPolicy.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/refundReason.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/renewRequest.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/renewalPrice.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/scheduledChange.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/spendRow.zod.d.ts +8 -0
- package/dist/billing/type/order/v1/generated/validators/spendRow.zod.js +11 -0
- package/dist/billing/type/order/v1/generated/validators/spendRowList.zod.d.ts +8 -0
- package/dist/billing/type/order/v1/generated/validators/spendRowList.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/statement.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/statementItem.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/statementItem.zod.js +4 -0
- package/dist/billing/type/order/v1/generated/validators/statementSummary.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/statementType.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/subscription.zod.d.ts +7 -3
- package/dist/billing/type/order/v1/generated/validators/subscription.zod.js +20 -14
- package/dist/billing/type/order/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
- package/dist/billing/type/order/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/terminationPolicy.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/tier.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/topUp.zod.js +8 -8
- package/dist/billing/type/order/v1/generated/validators/topUpCreate.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/transaction.zod.js +6 -6
- package/dist/billing/type/order/v1/generated/validators/usageCharge.zod.js +4 -7
- package/dist/billing/type/order/v1/generated/validators/usageType.zod.d.ts +14 -0
- package/dist/billing/type/order/v1/generated/validators/usageType.zod.js +11 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawal.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/withdrawalItem.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/withdrawalSource.zod.js +1 -1
- package/dist/billing/type/quote/v1/generated/models.d.ts +4 -4
- package/dist/billing/type/quote/v1/generated/validators/funds.zod.js +4 -4
- package/dist/billing/v1/generated/functions.d.ts +176 -310
- package/dist/billing/v1/generated/functions.js +175 -309
- package/dist/billing/v1/generated/models.d.ts +425 -863
- package/dist/billing/v1/generated/models.js +13 -49
- package/dist/billing/v1/generated/schemas.zod.d.ts +166 -383
- package/dist/billing/v1/generated/schemas.zod.js +213 -372
- package/dist/billing/v1/generated/validators/accountBalance.zod.d.ts +22 -11
- package/dist/billing/v1/generated/validators/accountBalance.zod.js +8 -8
- package/dist/billing/v1/generated/validators/activeResource.zod.js +8 -5
- package/dist/billing/v1/generated/validators/allowance.zod.js +3 -3
- package/dist/billing/v1/generated/validators/applicability.zod.d.ts +22 -11
- package/dist/billing/v1/generated/validators/applicability.zod.js +12 -3
- package/dist/billing/v1/generated/validators/applicablePlan.zod.js +1 -1
- package/dist/billing/v1/generated/validators/billingAccount.zod.js +5 -5
- package/dist/billing/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/billingScheme.zod.d.ts +14 -0
- package/dist/billing/v1/generated/validators/billingScheme.zod.js +11 -0
- package/dist/billing/v1/generated/validators/cancellation.zod.d.ts +6 -3
- package/dist/billing/v1/generated/validators/cancellation.zod.js +4 -4
- package/dist/billing/v1/generated/validators/cancellationCreate.zod.js +3 -3
- package/dist/billing/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
- package/dist/billing/v1/generated/validators/cancellationItem.zod.js +6 -5
- package/dist/billing/v1/generated/validators/cancellationList.zod.d.ts +6 -3
- package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
- package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
- package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
- package/dist/billing/v1/generated/validators/contact.zod.js +2 -2
- package/dist/billing/v1/generated/validators/creditGrant.zod.d.ts +22 -11
- package/dist/billing/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
- package/dist/billing/v1/generated/validators/creditGroup.zod.d.ts +22 -11
- package/dist/billing/v1/generated/validators/creditGroup.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditNote.zod.js +4 -4
- package/dist/billing/v1/generated/validators/currency.zod.js +1 -1
- package/dist/billing/v1/generated/validators/discount.zod.d.ts +23 -12
- package/dist/billing/v1/generated/validators/discount.zod.js +4 -4
- package/dist/billing/v1/generated/validators/discountList.zod.d.ts +23 -12
- package/dist/billing/v1/generated/validators/entitlement.zod.js +1 -1
- package/dist/billing/v1/generated/validators/funds.zod.js +4 -4
- package/dist/billing/v1/generated/validators/invoice.zod.d.ts +0 -1
- package/dist/billing/v1/generated/validators/invoice.zod.js +8 -8
- package/dist/billing/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/invoiceItem.zod.js +6 -4
- package/dist/billing/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/invoiceItemProration.zod.js +1 -3
- package/dist/billing/v1/generated/validators/invoiceList.zod.d.ts +0 -1
- package/dist/billing/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
- package/dist/billing/v1/generated/validators/invoiceStatus.zod.js +2 -2
- package/dist/billing/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
- package/dist/billing/v1/generated/validators/invoiceSummary.zod.js +3 -3
- package/dist/billing/v1/generated/validators/listInvoicesParams.zod.d.ts +0 -1
- package/dist/billing/v1/generated/validators/listPricesParams.zod.d.ts +5 -2
- package/dist/billing/v1/generated/validators/listPricesParams.zod.js +4 -1
- package/dist/billing/v1/generated/validators/listSpendParams.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/listSpendParams.zod.js +3 -1
- package/dist/billing/v1/generated/validators/monthlyStatement.zod.js +2 -2
- package/dist/billing/v1/generated/validators/objectIdentity.zod.js +1 -1
- package/dist/billing/v1/generated/validators/order.zod.d.ts +7 -4
- package/dist/billing/v1/generated/validators/order.zod.js +10 -12
- package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +7 -3
- package/dist/billing/v1/generated/validators/orderItem.zod.js +16 -14
- package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +7 -3
- package/dist/billing/v1/generated/validators/orderItemStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderList.zod.d.ts +7 -4
- package/dist/billing/v1/generated/validators/orderRefundQuote.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paidWith.zod.js +1 -1
- package/dist/billing/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
- package/dist/billing/v1/generated/validators/payTogetherRequest.zod.js +2 -2
- package/dist/billing/v1/generated/validators/paymentAction.zod.js +4 -4
- package/dist/billing/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
- package/dist/billing/v1/generated/validators/paymentOption.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentPreview.zod.js +4 -4
- package/dist/billing/v1/generated/validators/paymentResult.zod.js +5 -8
- package/dist/billing/v1/generated/validators/paymentStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/price.zod.d.ts +7 -5
- package/dist/billing/v1/generated/validators/price.zod.js +14 -11
- package/dist/billing/v1/generated/validators/priceList.zod.d.ts +7 -5
- package/dist/billing/v1/generated/validators/priceOption.zod.d.ts +7 -5
- package/dist/billing/v1/generated/validators/priceOption.zod.js +7 -3
- package/dist/billing/v1/generated/validators/priceType.zod.d.ts +14 -0
- package/dist/billing/v1/generated/validators/priceType.zod.js +11 -0
- package/dist/billing/v1/generated/validators/productID.zod.js +1 -1
- package/dist/billing/v1/generated/validators/projectAssignment.zod.js +2 -2
- package/dist/billing/v1/generated/validators/purchaseOperation.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quote.zod.d.ts +6 -3
- package/dist/billing/v1/generated/validators/quote.zod.js +4 -4
- package/dist/billing/v1/generated/validators/quoteCancellation.zod.js +2 -2
- package/dist/billing/v1/generated/validators/quoteItem.zod.js +4 -4
- package/dist/billing/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
- package/dist/billing/v1/generated/validators/quoteItemInput.zod.js +8 -8
- package/dist/billing/v1/generated/validators/quoteRenewal.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
- package/dist/billing/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
- package/dist/billing/v1/generated/validators/quoteRequest.zod.js +5 -5
- package/dist/billing/v1/generated/validators/quotedDiscount.zod.js +1 -1
- package/dist/billing/v1/generated/validators/rate.zod.d.ts +11 -0
- package/dist/billing/v1/generated/validators/rate.zod.js +14 -6
- package/dist/billing/v1/generated/validators/rateList.zod.d.ts +11 -0
- package/dist/billing/v1/generated/validators/refund.zod.js +3 -3
- package/dist/billing/v1/generated/validators/refundPolicy.zod.js +1 -1
- package/dist/billing/v1/generated/validators/refundReason.zod.js +1 -1
- package/dist/billing/v1/generated/validators/renewRequest.zod.js +2 -2
- package/dist/billing/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
- package/dist/billing/v1/generated/validators/renewalPrice.zod.js +1 -1
- package/dist/billing/v1/generated/validators/scheduledChange.zod.js +2 -2
- package/dist/billing/v1/generated/validators/spendRow.zod.d.ts +8 -0
- package/dist/billing/v1/generated/validators/spendRow.zod.js +11 -0
- package/dist/billing/v1/generated/validators/spendRowList.zod.d.ts +8 -0
- package/dist/billing/v1/generated/validators/spendRowList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statement.zod.js +2 -2
- package/dist/billing/v1/generated/validators/statementItem.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/statementItem.zod.js +4 -0
- package/dist/billing/v1/generated/validators/statementSummary.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/statementType.zod.js +1 -1
- package/dist/billing/v1/generated/validators/subscription.zod.d.ts +7 -3
- package/dist/billing/v1/generated/validators/subscription.zod.js +20 -14
- package/dist/billing/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
- package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
- package/dist/billing/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
- package/dist/billing/v1/generated/validators/terminationPolicy.zod.js +1 -1
- package/dist/billing/v1/generated/validators/tier.zod.js +1 -1
- package/dist/billing/v1/generated/validators/topUp.zod.js +8 -8
- package/dist/billing/v1/generated/validators/topUpCreate.zod.js +4 -4
- package/dist/billing/v1/generated/validators/transaction.zod.js +6 -6
- package/dist/billing/v1/generated/validators/usageCharge.zod.js +4 -7
- package/dist/billing/v1/generated/validators/usageType.zod.d.ts +14 -0
- package/dist/billing/v1/generated/validators/usageType.zod.js +11 -0
- package/dist/billing/v1/generated/validators/withdrawal.zod.js +2 -2
- package/dist/billing/v1/generated/validators/withdrawalItem.zod.js +2 -2
- package/dist/billing/v1/generated/validators/withdrawalSource.zod.js +1 -1
- package/dist/canopy/v1/generated/models.d.ts +375 -779
- package/dist/canopy/v1/generated/models.js +12 -44
- package/dist/canopy/v1/generated/validators/accountBalance.zod.d.ts +22 -11
- package/dist/canopy/v1/generated/validators/accountBalance.zod.js +8 -8
- package/dist/canopy/v1/generated/validators/activeResource.zod.js +8 -5
- package/dist/canopy/v1/generated/validators/allowance.zod.js +3 -3
- package/dist/canopy/v1/generated/validators/applicability.zod.d.ts +22 -11
- package/dist/canopy/v1/generated/validators/applicability.zod.js +12 -3
- package/dist/canopy/v1/generated/validators/applicablePlan.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/billingAccount.zod.js +5 -5
- package/dist/canopy/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/billingScheme.zod.d.ts +39 -0
- package/dist/canopy/v1/generated/validators/billingScheme.zod.js +36 -0
- package/dist/canopy/v1/generated/validators/cancellation.zod.d.ts +6 -3
- package/dist/canopy/v1/generated/validators/cancellation.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/cancellationCreate.zod.js +3 -3
- package/dist/canopy/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
- package/dist/canopy/v1/generated/validators/cancellationItem.zod.js +6 -5
- package/dist/canopy/v1/generated/validators/cancellationList.zod.d.ts +6 -3
- package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
- package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
- package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
- package/dist/canopy/v1/generated/validators/contact.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.d.ts +0 -1
- package/dist/canopy/v1/generated/validators/creditGrant.zod.d.ts +22 -11
- package/dist/canopy/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
- package/dist/canopy/v1/generated/validators/creditGroup.zod.d.ts +22 -11
- package/dist/canopy/v1/generated/validators/creditGroup.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/creditNote.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/currency.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/discount.zod.d.ts +23 -12
- package/dist/canopy/v1/generated/validators/discount.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/discountList.zod.d.ts +23 -12
- package/dist/canopy/v1/generated/validators/entitlement.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/funds.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/invoice.zod.d.ts +0 -1
- package/dist/canopy/v1/generated/validators/invoice.zod.js +8 -8
- package/dist/canopy/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/invoiceItem.zod.js +6 -4
- package/dist/canopy/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/invoiceItemProration.zod.js +1 -3
- package/dist/canopy/v1/generated/validators/invoiceList.zod.d.ts +0 -1
- package/dist/canopy/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
- package/dist/canopy/v1/generated/validators/invoiceStatus.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
- package/dist/canopy/v1/generated/validators/invoiceSummary.zod.js +3 -3
- package/dist/canopy/v1/generated/validators/monthlyStatement.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/objectIdentity.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/order.zod.d.ts +7 -4
- package/dist/canopy/v1/generated/validators/order.zod.js +10 -12
- package/dist/canopy/v1/generated/validators/orderItem.zod.d.ts +7 -3
- package/dist/canopy/v1/generated/validators/orderItem.zod.js +16 -14
- package/dist/canopy/v1/generated/validators/orderItemList.zod.d.ts +7 -3
- package/dist/canopy/v1/generated/validators/orderItemStatus.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/orderList.zod.d.ts +7 -4
- package/dist/canopy/v1/generated/validators/orderRefundQuote.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/orderStatus.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/paidWith.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
- package/dist/canopy/v1/generated/validators/payTogetherRequest.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/paymentAction.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
- package/dist/canopy/v1/generated/validators/paymentOption.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/paymentPreview.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/paymentResult.zod.js +5 -8
- package/dist/canopy/v1/generated/validators/paymentStatus.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/placedOrder.zod.d.ts +0 -1
- package/dist/canopy/v1/generated/validators/price.zod.d.ts +7 -5
- package/dist/canopy/v1/generated/validators/price.zod.js +14 -11
- package/dist/canopy/v1/generated/validators/priceList.zod.d.ts +7 -5
- package/dist/canopy/v1/generated/validators/priceOption.zod.d.ts +7 -5
- package/dist/canopy/v1/generated/validators/priceOption.zod.js +7 -3
- package/dist/canopy/v1/generated/validators/priceType.zod.d.ts +39 -0
- package/dist/canopy/v1/generated/validators/priceType.zod.js +36 -0
- package/dist/canopy/v1/generated/validators/productID.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/projectAssignment.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/purchaseOperation.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/quote5f60d00.zod.d.ts +6 -3
- package/dist/canopy/v1/generated/validators/quote5f60d00.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/quoteA200529.zod.d.ts +6 -3
- package/dist/canopy/v1/generated/validators/quoteCancellation.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/quoteItem.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
- package/dist/canopy/v1/generated/validators/quoteItemInput.zod.js +8 -8
- package/dist/canopy/v1/generated/validators/quoteRenewal.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
- package/dist/canopy/v1/generated/validators/quoteRequest.zod.js +5 -5
- package/dist/canopy/v1/generated/validators/quotedDiscount.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/rate.zod.d.ts +11 -0
- package/dist/canopy/v1/generated/validators/rate.zod.js +14 -6
- package/dist/canopy/v1/generated/validators/rateList.zod.d.ts +11 -0
- package/dist/canopy/v1/generated/validators/refund.zod.js +3 -3
- package/dist/canopy/v1/generated/validators/refundPolicy.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/refundReason.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/renewRequest.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/renewalPrice.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/scheduledChange.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/spendRow.zod.d.ts +8 -0
- package/dist/canopy/v1/generated/validators/spendRow.zod.js +11 -0
- package/dist/canopy/v1/generated/validators/spendRowList.zod.d.ts +8 -0
- package/dist/canopy/v1/generated/validators/spendRowList.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/statement.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/statementItem.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/statementItem.zod.js +4 -0
- package/dist/canopy/v1/generated/validators/statementSummary.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/statementType.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/subscription.zod.d.ts +7 -3
- package/dist/canopy/v1/generated/validators/subscription.zod.js +20 -14
- package/dist/canopy/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
- package/dist/canopy/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/terminationPolicy.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/tier.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/topUp.zod.js +8 -8
- package/dist/canopy/v1/generated/validators/topUpCreate.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/transaction.zod.js +6 -6
- package/dist/canopy/v1/generated/validators/usageCharge.zod.js +4 -7
- package/dist/canopy/v1/generated/validators/usageType.zod.d.ts +39 -0
- package/dist/canopy/v1/generated/validators/usageType.zod.js +36 -0
- package/dist/canopy/v1/generated/validators/withdrawal.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/withdrawalItem.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/withdrawalSource.zod.js +1 -1
- package/dist/compute/v1/generated/models.d.ts +4 -4
- package/dist/compute/v1/generated/schemas.zod.d.ts +18 -18
- package/dist/compute/v1/generated/validators/allocateFloatingIPQuoteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupService.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/billingChoice.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/bootDisk.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupCapacityPackQuoteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createDiskQuoteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createImageQuoteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createImageRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskTypeResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/funds.zod.js +4 -4
- package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/instanceTypeResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/launchInstanceQuoteRequestBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/newBootDisk.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/newCompute.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/newFloatingIP.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/pricing.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/pricingOption.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/regionListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/regionResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/restoreBackupQuoteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setSnapshotQuotaQuoteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/snapshotQuota.zod.d.ts +2 -2
- package/dist/membership/v1/generated/models.d.ts +375 -779
- package/dist/membership/v1/generated/models.js +12 -44
- package/dist/membership/v1/generated/validators/accountBalance.zod.d.ts +22 -11
- package/dist/membership/v1/generated/validators/accountBalance.zod.js +8 -8
- package/dist/membership/v1/generated/validators/activeResource.zod.js +8 -5
- package/dist/membership/v1/generated/validators/allowance.zod.js +3 -3
- package/dist/membership/v1/generated/validators/applicability.zod.d.ts +22 -11
- package/dist/membership/v1/generated/validators/applicability.zod.js +12 -3
- package/dist/membership/v1/generated/validators/applicablePlan.zod.js +1 -1
- package/dist/membership/v1/generated/validators/billingAccount.zod.js +5 -5
- package/dist/membership/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
- package/dist/membership/v1/generated/validators/billingScheme.zod.d.ts +14 -0
- package/dist/membership/v1/generated/validators/billingScheme.zod.js +11 -0
- package/dist/membership/v1/generated/validators/cancellation.zod.d.ts +6 -3
- package/dist/membership/v1/generated/validators/cancellation.zod.js +4 -4
- package/dist/membership/v1/generated/validators/cancellationCreate.zod.js +3 -3
- package/dist/membership/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
- package/dist/membership/v1/generated/validators/cancellationItem.zod.js +6 -5
- package/dist/membership/v1/generated/validators/cancellationList.zod.d.ts +6 -3
- package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
- package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
- package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
- package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
- package/dist/membership/v1/generated/validators/contact.zod.js +2 -2
- package/dist/membership/v1/generated/validators/creditGrant.zod.d.ts +22 -11
- package/dist/membership/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
- package/dist/membership/v1/generated/validators/creditGroup.zod.d.ts +22 -11
- package/dist/membership/v1/generated/validators/creditGroup.zod.js +1 -1
- package/dist/membership/v1/generated/validators/creditNote.zod.js +4 -4
- package/dist/membership/v1/generated/validators/currency6ff0ec7.zod.js +1 -1
- package/dist/membership/v1/generated/validators/discount.zod.d.ts +23 -12
- package/dist/membership/v1/generated/validators/discount.zod.js +4 -4
- package/dist/membership/v1/generated/validators/discountList.zod.d.ts +23 -12
- package/dist/membership/v1/generated/validators/entitlement.zod.js +1 -1
- package/dist/membership/v1/generated/validators/funds.zod.js +4 -4
- package/dist/membership/v1/generated/validators/invoice.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/invoice.zod.js +8 -8
- package/dist/membership/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/invoiceItem.zod.js +6 -4
- package/dist/membership/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/invoiceItemProration.zod.js +1 -3
- package/dist/membership/v1/generated/validators/invoiceList.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/invoiceStatus.zod.js +2 -2
- package/dist/membership/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/invoiceSummary.zod.js +3 -3
- package/dist/membership/v1/generated/validators/membershipPurchase.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/monthlyStatement.zod.js +2 -2
- package/dist/membership/v1/generated/validators/objectIdentity.zod.js +1 -1
- package/dist/membership/v1/generated/validators/order.zod.d.ts +7 -4
- package/dist/membership/v1/generated/validators/order.zod.js +10 -12
- package/dist/membership/v1/generated/validators/orderItem.zod.d.ts +7 -3
- package/dist/membership/v1/generated/validators/orderItem.zod.js +16 -14
- package/dist/membership/v1/generated/validators/orderItemList.zod.d.ts +7 -3
- package/dist/membership/v1/generated/validators/orderItemStatus.zod.js +1 -1
- package/dist/membership/v1/generated/validators/orderList.zod.d.ts +7 -4
- package/dist/membership/v1/generated/validators/orderRefundQuote.zod.js +1 -1
- package/dist/membership/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
- package/dist/membership/v1/generated/validators/orderStatus.zod.js +1 -1
- package/dist/membership/v1/generated/validators/paidWith.zod.js +1 -1
- package/dist/membership/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
- package/dist/membership/v1/generated/validators/payTogetherRequest.zod.js +2 -2
- package/dist/membership/v1/generated/validators/paymentAction.zod.js +4 -4
- package/dist/membership/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
- package/dist/membership/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
- package/dist/membership/v1/generated/validators/paymentOption.zod.js +1 -1
- package/dist/membership/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
- package/dist/membership/v1/generated/validators/paymentPreview.zod.js +4 -4
- package/dist/membership/v1/generated/validators/paymentResult.zod.js +5 -8
- package/dist/membership/v1/generated/validators/paymentStatus.zod.js +1 -1
- package/dist/membership/v1/generated/validators/placedOrder.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/price.zod.d.ts +7 -5
- package/dist/membership/v1/generated/validators/price.zod.js +14 -11
- package/dist/membership/v1/generated/validators/priceList.zod.d.ts +7 -5
- package/dist/membership/v1/generated/validators/priceOption.zod.d.ts +7 -5
- package/dist/membership/v1/generated/validators/priceOption.zod.js +7 -3
- package/dist/membership/v1/generated/validators/priceType.zod.d.ts +14 -0
- package/dist/membership/v1/generated/validators/priceType.zod.js +11 -0
- package/dist/membership/v1/generated/validators/productID.zod.js +1 -1
- package/dist/membership/v1/generated/validators/projectAssignment.zod.js +2 -2
- package/dist/membership/v1/generated/validators/purchaseOperation.zod.js +1 -1
- package/dist/membership/v1/generated/validators/quote.zod.d.ts +6 -3
- package/dist/membership/v1/generated/validators/quote.zod.js +4 -4
- package/dist/membership/v1/generated/validators/quoteCancellation.zod.js +2 -2
- package/dist/membership/v1/generated/validators/quoteItem.zod.js +4 -4
- package/dist/membership/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
- package/dist/membership/v1/generated/validators/quoteItemInput.zod.js +8 -8
- package/dist/membership/v1/generated/validators/quoteRenewal.zod.js +1 -1
- package/dist/membership/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
- package/dist/membership/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
- package/dist/membership/v1/generated/validators/quoteRequest.zod.js +5 -5
- package/dist/membership/v1/generated/validators/quotedDiscount.zod.js +1 -1
- package/dist/membership/v1/generated/validators/rate.zod.d.ts +11 -0
- package/dist/membership/v1/generated/validators/rate.zod.js +14 -6
- package/dist/membership/v1/generated/validators/rateList.zod.d.ts +11 -0
- package/dist/membership/v1/generated/validators/refund.zod.js +3 -3
- package/dist/membership/v1/generated/validators/refundPolicy.zod.js +1 -1
- package/dist/membership/v1/generated/validators/refundReason.zod.js +1 -1
- package/dist/membership/v1/generated/validators/renewRequest.zod.js +2 -2
- package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
- package/dist/membership/v1/generated/validators/renewalPrice.zod.js +1 -1
- package/dist/membership/v1/generated/validators/scheduledChange.zod.js +2 -2
- package/dist/membership/v1/generated/validators/spendRow.zod.d.ts +8 -0
- package/dist/membership/v1/generated/validators/spendRow.zod.js +11 -0
- package/dist/membership/v1/generated/validators/spendRowList.zod.d.ts +8 -0
- package/dist/membership/v1/generated/validators/spendRowList.zod.js +1 -1
- package/dist/membership/v1/generated/validators/statement.zod.js +2 -2
- package/dist/membership/v1/generated/validators/statementItem.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/statementItem.zod.js +4 -0
- package/dist/membership/v1/generated/validators/statementSummary.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/statementType.zod.js +1 -1
- package/dist/membership/v1/generated/validators/subscription.zod.d.ts +7 -3
- package/dist/membership/v1/generated/validators/subscription.zod.js +20 -14
- package/dist/membership/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
- package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
- package/dist/membership/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
- package/dist/membership/v1/generated/validators/terminationPolicy.zod.js +1 -1
- package/dist/membership/v1/generated/validators/tier.zod.js +1 -1
- package/dist/membership/v1/generated/validators/topUp.zod.js +8 -8
- package/dist/membership/v1/generated/validators/topUpCreate.zod.js +4 -4
- package/dist/membership/v1/generated/validators/transaction.zod.js +6 -6
- package/dist/membership/v1/generated/validators/usageCharge.zod.js +4 -7
- package/dist/membership/v1/generated/validators/usageType.zod.d.ts +14 -0
- package/dist/membership/v1/generated/validators/usageType.zod.js +11 -0
- package/dist/membership/v1/generated/validators/withdrawal.zod.js +2 -2
- package/dist/membership/v1/generated/validators/withdrawalItem.zod.js +2 -2
- package/dist/membership/v1/generated/validators/withdrawalSource.zod.js +1 -1
- package/dist/routes.d.ts +4 -4
- package/dist/routes.js +4 -4
- package/package.json +1 -1
|
@@ -39,14 +39,14 @@ export const Refund = zod.strictObject({
|
|
|
39
39
|
cancellation_item_id: zod.uuid().optional(),
|
|
40
40
|
transactions: zod
|
|
41
41
|
.array(Transaction)
|
|
42
|
-
.describe("
|
|
42
|
+
.describe("The refund split by original payment source, with each result. Unknown gateway results stay pending."),
|
|
43
43
|
id: zod.uuid(),
|
|
44
44
|
billing_account_id: zod.int().optional(),
|
|
45
45
|
invoice_id: zod.uuid().nullish(),
|
|
46
46
|
order_id: zod
|
|
47
47
|
.uuid()
|
|
48
48
|
.nullish()
|
|
49
|
-
.describe("The order the refund belongs to: the order that caused it, such as a downgrade, otherwise
|
|
49
|
+
.describe("The order the refund belongs to: the order that caused it, such as a downgrade, otherwise the order of the refunded invoice. Null for refunds of top-ups and usage invoices."),
|
|
50
50
|
amount: Money.describe("The whole refund. Equals balance_amount plus credit_amount plus gateway_amount."),
|
|
51
51
|
balance_amount: Money.describe("The part returned to the account balance."),
|
|
52
52
|
credit_amount: Money.describe("The part restored to the credit grants that paid for it."),
|
|
@@ -56,7 +56,7 @@ export const Refund = zod.strictObject({
|
|
|
56
56
|
destination: zod
|
|
57
57
|
.enum(["balance", "gateway"])
|
|
58
58
|
.optional()
|
|
59
|
-
.describe("Use balance_amount, credit_amount and gateway_amount, which also show a refund split between
|
|
59
|
+
.describe("Use balance_amount, credit_amount and gateway_amount, which also show a refund split between destinations."),
|
|
60
60
|
status: zod
|
|
61
61
|
.enum(["pending", "processing", "succeeded", "failed"])
|
|
62
62
|
.describe("Summary of the parts in `transactions`.\n\n- `pending`: nothing has been returned yet, and at least one part is in progress.\n- `processing`: some parts have been returned, and at least one is still in progress.\n- `succeeded`: every part has been returned.\n- `failed`: no part is in progress and at least one has failed. What was returned is in\n settled_amount.\n\nReturns to the balance and to credit grants complete shortly after the refund is made; a\nreturn to a payment method completes when the gateway confirms it."),
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
import * as zod from "zod";
|
|
34
34
|
export const RefundPolicy = zod
|
|
35
35
|
.enum(["none", "prorated"])
|
|
36
|
-
.describe("none refunds nothing. prorated refunds the amount paid for the current period minus the value of
|
|
36
|
+
.describe("`none` refunds nothing. `prorated` refunds the amount paid for the current period minus the value of the time used, never below zero or above what remains unrefunded. Time used runs from the period start to the effective cancellation and is valued at prices frozen on the order item: each full calendar month at `refund_monthly_amount`, the rest at `refund_hourly_amount` or, without it, at the monthly price by the second. When the plan has no licensed period shorter than the one bought, time used is valued pro rata at the price paid. Discounts and setup fees are not refunded. Refunds return to the original payment sources, with tax refunded in proportion.");
|
|
@@ -45,4 +45,4 @@ export const RefundReason = zod
|
|
|
45
45
|
"payment_not_applied",
|
|
46
46
|
"operator",
|
|
47
47
|
])
|
|
48
|
-
.describe("Why the refund was made.
|
|
48
|
+
.describe("Why the refund was made. New codes may be added; treat an unknown code as unspecified.\n\n- `provisioning_failed`: the purchase could not be delivered.\n- `order_expired`: the order expired after part of it was paid.\n- `order_canceled`: the order was canceled after part of it was paid.\n- `change_canceled`: a scheduled change was withdrawn after part of it was paid.\n- `change_expired`: a scheduled change could not take effect in time.\n- `subscription_canceled`: the unused value of a canceled subscription, under its refund terms.\n- `future_period_canceled`: a renewal that had not started was withdrawn.\n- `downgrade_difference`: after a downgrade, the remaining paid value, valued as refund policy `prorated`\n describes, minus the new configuration's cost for the remaining time at the change item's\n `refund_monthly_amount` and `refund_hourly_amount`.\n- `usage_true_up`: usage priced over the whole month cost less than was charged.\n- `payment_not_applied`: a payment arrived after its invoice could no longer be paid.\n- `operator`: made by the platform operator.");
|
|
@@ -38,12 +38,12 @@ export const renewRequestUseCreditsDefault = true;
|
|
|
38
38
|
export const RenewRequest = zod.strictObject({
|
|
39
39
|
order_id: zod
|
|
40
40
|
.uuid()
|
|
41
|
-
.describe("
|
|
41
|
+
.describe("The order ID, chosen by the caller. Creating it again conflicts; read the order after an unknown outcome."),
|
|
42
42
|
periods: zod
|
|
43
43
|
.int()
|
|
44
44
|
.min(1)
|
|
45
45
|
.default(renewRequestPeriodsDefault)
|
|
46
|
-
.describe("How many further periods to buy, each at the price
|
|
46
|
+
.describe("How many further periods to buy, each at the price the subscription already renews at. To buy a longer term at its own price, give `interval` and `interval_count` instead."),
|
|
47
47
|
interval_count: zod
|
|
48
48
|
.int()
|
|
49
49
|
.min(1)
|
|
@@ -37,7 +37,7 @@ export const RenewalOrderRequest = zod
|
|
|
37
37
|
.strictObject({
|
|
38
38
|
order_id: zod
|
|
39
39
|
.uuid()
|
|
40
|
-
.describe("
|
|
40
|
+
.describe("The order ID, chosen by the caller. Creating it again conflicts; read the order after an unknown outcome."),
|
|
41
41
|
periods: zod
|
|
42
42
|
.int()
|
|
43
43
|
.min(1)
|
|
@@ -47,4 +47,4 @@ export const RenewalOrderRequest = zod
|
|
|
47
47
|
interval: zod.enum(["day", "month", "year"]).optional().describe("As in renewing."),
|
|
48
48
|
termination_policy: TerminationPolicy.optional().describe("As in renewing."),
|
|
49
49
|
})
|
|
50
|
-
.describe("The periods and price
|
|
50
|
+
.describe("The renewal's periods and price, chosen as in renewing.");
|
|
@@ -44,5 +44,5 @@ export const RenewalPrice = zod.strictObject({
|
|
|
44
44
|
currency: zod.string().optional(),
|
|
45
45
|
current: zod
|
|
46
46
|
.boolean()
|
|
47
|
-
.describe("The term
|
|
47
|
+
.describe("The term the subscription renews at now; renewing for it keeps the agreed price."),
|
|
48
48
|
});
|
|
@@ -43,9 +43,9 @@ export const ScheduledChange = zod
|
|
|
43
43
|
plan_name: zod.string(),
|
|
44
44
|
price_id: zod.uuid(),
|
|
45
45
|
quantity: zod.string(),
|
|
46
|
-
recurring_amount: zod.string().describe("The target
|
|
46
|
+
recurring_amount: zod.string().describe("The target licensed renewal amount before tax."),
|
|
47
47
|
currency: zod.string(),
|
|
48
48
|
interval: zod.enum(["day", "month", "year"]),
|
|
49
49
|
interval_count: zod.int().min(1),
|
|
50
50
|
})
|
|
51
|
-
.describe("The next accepted period-end change
|
|
51
|
+
.describe("The next accepted period-end change of the subscription: the target terms, applied at effective_at.");
|
|
@@ -40,6 +40,14 @@ export declare const SpendRow: zod.ZodObject<{
|
|
|
40
40
|
plan_id: zod.ZodOptional<zod.ZodUUID>;
|
|
41
41
|
plan_name: zod.ZodOptional<zod.ZodString>;
|
|
42
42
|
resource_id: zod.ZodOptional<zod.ZodString>;
|
|
43
|
+
meter: zod.ZodOptional<zod.ZodObject<{
|
|
44
|
+
lookup_key: zod.ZodOptional<zod.ZodString>;
|
|
45
|
+
id: zod.ZodUUID;
|
|
46
|
+
name: zod.ZodString;
|
|
47
|
+
}, zod.z.core.$strict>>;
|
|
48
|
+
unit: zod.ZodOptional<zod.ZodString>;
|
|
49
|
+
quantity: zod.ZodOptional<zod.ZodString>;
|
|
50
|
+
dimensions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
43
51
|
amount: zod.ZodString;
|
|
44
52
|
currency: zod.ZodString;
|
|
45
53
|
}, zod.z.core.$strict>;
|
|
@@ -32,12 +32,23 @@
|
|
|
32
32
|
*/
|
|
33
33
|
import * as zod from "zod";
|
|
34
34
|
import { Money } from "./money.zod.js";
|
|
35
|
+
import { ObjectIdentity } from "./objectIdentity.zod.js";
|
|
35
36
|
import { Product } from "./product.zod.js";
|
|
36
37
|
export const SpendRow = zod.strictObject({
|
|
37
38
|
product: Product.optional(),
|
|
38
39
|
plan_id: zod.uuid().optional(),
|
|
39
40
|
plan_name: zod.string().optional(),
|
|
40
41
|
resource_id: zod.string().optional().describe("Present only when grouped by resource."),
|
|
42
|
+
meter: ObjectIdentity.optional().describe("Present only when grouped by meter."),
|
|
43
|
+
unit: zod.string().optional().describe("Present only when grouped by meter."),
|
|
44
|
+
quantity: zod
|
|
45
|
+
.string()
|
|
46
|
+
.optional()
|
|
47
|
+
.describe("Net usage quantity, present only when grouped by meter."),
|
|
48
|
+
dimensions: zod
|
|
49
|
+
.record(zod.string(), zod.string())
|
|
50
|
+
.optional()
|
|
51
|
+
.describe("The values of the meter's presentation dimensions, present only when grouped by meter."),
|
|
41
52
|
amount: Money,
|
|
42
53
|
currency: zod.string(),
|
|
43
54
|
});
|
|
@@ -41,6 +41,14 @@ export declare const SpendRowList: zod.ZodObject<{
|
|
|
41
41
|
plan_id: zod.ZodOptional<zod.ZodUUID>;
|
|
42
42
|
plan_name: zod.ZodOptional<zod.ZodString>;
|
|
43
43
|
resource_id: zod.ZodOptional<zod.ZodString>;
|
|
44
|
+
meter: zod.ZodOptional<zod.ZodObject<{
|
|
45
|
+
lookup_key: zod.ZodOptional<zod.ZodString>;
|
|
46
|
+
id: zod.ZodUUID;
|
|
47
|
+
name: zod.ZodString;
|
|
48
|
+
}, zod.z.core.$strict>>;
|
|
49
|
+
unit: zod.ZodOptional<zod.ZodString>;
|
|
50
|
+
quantity: zod.ZodOptional<zod.ZodString>;
|
|
51
|
+
dimensions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
44
52
|
amount: zod.ZodString;
|
|
45
53
|
currency: zod.ZodString;
|
|
46
54
|
}, zod.z.core.$strict>>;
|
|
@@ -36,7 +36,7 @@ import { OffsetPagination } from "./offsetPagination.zod.js";
|
|
|
36
36
|
import { SpendRow } from "./spendRow.zod.js";
|
|
37
37
|
export const SpendRowList = zod.strictObject({
|
|
38
38
|
items: zod.array(SpendRow),
|
|
39
|
-
total: Money.describe("The
|
|
39
|
+
total: Money.describe("The total over all matching groups, not only the page returned."),
|
|
40
40
|
currency: zod.string(),
|
|
41
41
|
pagination: OffsetPagination,
|
|
42
42
|
});
|
|
@@ -47,7 +47,7 @@ export const Statement = zod
|
|
|
47
47
|
type: StatementType,
|
|
48
48
|
estimated: zod
|
|
49
49
|
.boolean()
|
|
50
|
-
.describe("True while the statement is open. The estimate
|
|
50
|
+
.describe("True while the statement is open. The estimate prices the period's usage so far at tier prices and adds tax for the current invoice contact. Minimum charges are added at the period's final closing, and a tier reduction larger than this statement's charges is credited to the period's earlier invoices at closing."),
|
|
51
51
|
amounts: StatementAmounts,
|
|
52
52
|
closed_at: zod.iso.datetime({ offset: true }).optional(),
|
|
53
53
|
invoice_id: zod
|
|
@@ -58,4 +58,4 @@ export const Statement = zod
|
|
|
58
58
|
calculated_at: zod.iso.datetime({ offset: true }).optional(),
|
|
59
59
|
credited_amount: Money,
|
|
60
60
|
})
|
|
61
|
-
.describe("An account's consumption for one billing period
|
|
61
|
+
.describe("An account's consumption for one billing period up to one closing. Usage is invoiced after every settlement run, about hourly: each closing issues an invoice for the usage priced since the previous one and collects it from credits and balance, and later usage goes into the next statement of the same period. A closed statement does not change. The period's consumption is the sum of its statements.");
|
|
@@ -36,6 +36,7 @@ export declare const StatementItem: zod.ZodObject<{
|
|
|
36
36
|
product_id: zod.ZodOptional<zod.ZodString>;
|
|
37
37
|
meter_id: zod.ZodOptional<zod.ZodUUID>;
|
|
38
38
|
unit: zod.ZodOptional<zod.ZodString>;
|
|
39
|
+
dimensions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
39
40
|
quantity: zod.ZodOptional<zod.ZodString>;
|
|
40
41
|
deducted_quantity: zod.ZodOptional<zod.ZodString>;
|
|
41
42
|
amount: zod.ZodString;
|
|
@@ -37,6 +37,10 @@ export const StatementItem = zod.strictObject({
|
|
|
37
37
|
product_id: zod.string().optional(),
|
|
38
38
|
meter_id: zod.uuid().optional(),
|
|
39
39
|
unit: zod.string().optional(),
|
|
40
|
+
dimensions: zod
|
|
41
|
+
.record(zod.string(), zod.string())
|
|
42
|
+
.optional()
|
|
43
|
+
.describe("The values of the meter's presentation dimensions, such as the model and token kind. Included only when grouping by meter, which splits each meter by these values."),
|
|
40
44
|
quantity: zod
|
|
41
45
|
.string()
|
|
42
46
|
.optional()
|
|
@@ -46,6 +46,7 @@ export declare const StatementSummary: zod.ZodObject<{
|
|
|
46
46
|
product_id: zod.ZodOptional<zod.ZodString>;
|
|
47
47
|
meter_id: zod.ZodOptional<zod.ZodUUID>;
|
|
48
48
|
unit: zod.ZodOptional<zod.ZodString>;
|
|
49
|
+
dimensions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
49
50
|
quantity: zod.ZodOptional<zod.ZodString>;
|
|
50
51
|
deducted_quantity: zod.ZodOptional<zod.ZodString>;
|
|
51
52
|
amount: zod.ZodString;
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
import * as zod from "zod";
|
|
34
34
|
export const StatementType = zod
|
|
35
35
|
.enum(["interim", "final", "supplement"])
|
|
36
|
-
.describe("interim
|
|
36
|
+
.describe("`interim`: a closing before the period's usage is final, without minimum charges. `final`: the first closing after the period ended and its late usage was settled, applying the period's minimum charges. `supplement`: a closing after the final one, for usage priced late. An open statement is interim.");
|
|
@@ -35,11 +35,15 @@ export declare const subscriptionDiscountedRenewalsRemainingMin = 0;
|
|
|
35
35
|
export declare const Subscription: zod.ZodObject<{
|
|
36
36
|
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
37
37
|
currency: zod.ZodString;
|
|
38
|
-
|
|
39
|
-
postpaid: "postpaid";
|
|
40
|
-
prepaid: "prepaid";
|
|
38
|
+
type: zod.ZodEnum<{
|
|
41
39
|
one_time: "one_time";
|
|
40
|
+
recurring: "recurring";
|
|
42
41
|
}>;
|
|
42
|
+
usage_type: zod.ZodEnum<{
|
|
43
|
+
licensed: "licensed";
|
|
44
|
+
metered: "metered";
|
|
45
|
+
}>;
|
|
46
|
+
dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
|
43
47
|
interval: zod.ZodEnum<{
|
|
44
48
|
none: "none";
|
|
45
49
|
day: "day";
|
|
@@ -34,6 +34,7 @@ import * as zod from "zod";
|
|
|
34
34
|
import { AccountIdentity } from "./accountIdentity.zod.js";
|
|
35
35
|
import { NamedIdentity } from "./namedIdentity.zod.js";
|
|
36
36
|
import { ObjectIdentity } from "./objectIdentity.zod.js";
|
|
37
|
+
import { PriceType } from "./priceType.zod.js";
|
|
37
38
|
import { Product } from "./product.zod.js";
|
|
38
39
|
import { ProductID } from "./productID.zod.js";
|
|
39
40
|
import { RefundPolicy } from "./refundPolicy.zod.js";
|
|
@@ -41,6 +42,7 @@ import { ScheduledChange } from "./scheduledChange.zod.js";
|
|
|
41
42
|
import { SubscriptionCancellation } from "./subscriptionCancellation.zod.js";
|
|
42
43
|
import { SubscriptionRestriction } from "./subscriptionRestriction.zod.js";
|
|
43
44
|
import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
45
|
+
import { UsageType } from "./usageType.zod.js";
|
|
44
46
|
export const subscriptionDiscountedRenewalsRemainingMin = 0;
|
|
45
47
|
export const Subscription = zod
|
|
46
48
|
.strictObject({
|
|
@@ -49,13 +51,17 @@ export const Subscription = zod
|
|
|
49
51
|
.optional()
|
|
50
52
|
.describe("Whether new account discounts may apply to future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them."),
|
|
51
53
|
currency: zod.string(),
|
|
52
|
-
|
|
54
|
+
type: PriceType,
|
|
55
|
+
usage_type: UsageType,
|
|
56
|
+
dimensions: zod
|
|
57
|
+
.record(zod.string(), zod.string())
|
|
58
|
+
.describe("The dimension values of what was bought, such as region and instance type. Empty when the purchase gave none."),
|
|
53
59
|
interval: zod.enum(["none", "day", "month", "year"]),
|
|
54
60
|
interval_count: zod.int().min(1).optional(),
|
|
55
61
|
recurring_amount: zod
|
|
56
62
|
.string()
|
|
57
63
|
.optional()
|
|
58
|
-
.describe("
|
|
64
|
+
.describe("The whole licensed subscription's renewal amount, after continuing discounts and before tax. A pending subscription shows base terms until paying the order fixes any new discount. Absent for metered and one-time subscriptions."),
|
|
59
65
|
termination_policy: TerminationPolicy.optional(),
|
|
60
66
|
refund_policy: RefundPolicy.optional(),
|
|
61
67
|
order_item_id: zod.uuid().optional(),
|
|
@@ -68,17 +74,17 @@ export const Subscription = zod
|
|
|
68
74
|
restrictions: zod
|
|
69
75
|
.array(SubscriptionRestriction)
|
|
70
76
|
.optional()
|
|
71
|
-
.describe("The operations currently prevented on the subscription, sorted
|
|
77
|
+
.describe("The operations currently prevented on the subscription, sorted; it is suspended while this contains `billing.subscriptions.use`."),
|
|
72
78
|
billing_cycle_anchor: zod.iso.datetime({ offset: true }).optional(),
|
|
73
79
|
cancellation: SubscriptionCancellation.optional(),
|
|
74
80
|
scheduled_change: zod
|
|
75
81
|
.union([ScheduledChange, zod.null()])
|
|
76
82
|
.optional()
|
|
77
|
-
.describe("The accepted period-end change
|
|
83
|
+
.describe("The accepted period-end change scheduled for this subscription; null when there is none."),
|
|
78
84
|
default_payment_method_id: zod
|
|
79
85
|
.uuid()
|
|
80
86
|
.nullish()
|
|
81
|
-
.describe("The saved payment method automatic renewal charges after
|
|
87
|
+
.describe("The saved payment method automatic renewal charges after balance and credits, before the account's default payment method. Set when a purchase, renewal or change is paid with a saved payment method. Used only while it belongs to the account paying the renewal."),
|
|
82
88
|
created_at: zod.iso.datetime({ offset: true }).optional(),
|
|
83
89
|
id: zod.uuid(),
|
|
84
90
|
billing_account_id: zod
|
|
@@ -89,11 +95,11 @@ export const Subscription = zod
|
|
|
89
95
|
project_id: zod
|
|
90
96
|
.uuid()
|
|
91
97
|
.nullish()
|
|
92
|
-
.describe("
|
|
98
|
+
.describe("The project it is for. Absent for an account-level purchase, such as a membership."),
|
|
93
99
|
project: zod
|
|
94
100
|
.union([NamedIdentity, zod.null()])
|
|
95
101
|
.optional()
|
|
96
|
-
.describe("The project and its current name
|
|
102
|
+
.describe("The project and its current name. Absent for an account-level purchase or when the project cannot be read; `project_id` still identifies it."),
|
|
97
103
|
product: Product,
|
|
98
104
|
plan_id: zod.uuid(),
|
|
99
105
|
plan_name: zod.string(),
|
|
@@ -102,25 +108,25 @@ export const Subscription = zod
|
|
|
102
108
|
current_term_end: zod.iso
|
|
103
109
|
.datetime({ offset: true })
|
|
104
110
|
.nullish()
|
|
105
|
-
.describe("When a
|
|
111
|
+
.describe("When a licensed subscription renews or expires: the end of the last period bought, moved by renewing in advance. Null until the subscription becomes active, even when its purchase has been paid, and for metered subscriptions."),
|
|
106
112
|
current_period_start: zod.iso
|
|
107
113
|
.datetime({ offset: true })
|
|
108
114
|
.nullish()
|
|
109
|
-
.describe("Start of the service period in effect now. Null when none is, including for
|
|
115
|
+
.describe("Start of the service period in effect now. Null when none is, including for metered subscriptions."),
|
|
110
116
|
current_period_end: zod.iso
|
|
111
117
|
.datetime({ offset: true })
|
|
112
118
|
.nullish()
|
|
113
|
-
.describe("End of the service period in effect now
|
|
119
|
+
.describe("End of the service period in effect now; renewing in advance moves `current_term_end`, not this. Null when no period is in effect, including for metered subscriptions."),
|
|
114
120
|
auto_renew: zod
|
|
115
121
|
.boolean()
|
|
116
|
-
.describe("
|
|
122
|
+
.describe("Whether a licensed subscription renews automatically. A metered subscription continues until it is canceled; for it this is true until a cancellation is requested, and cannot be set."),
|
|
117
123
|
status: zod
|
|
118
124
|
.enum(["pending", "provisioning", "active", "suspended", "canceled", "terminated"])
|
|
119
|
-
.describe("pending
|
|
125
|
+
.describe("`pending`: the order has not been accepted. `provisioning`: the owning service accepted the order and is delivering. `active`: delivery was confirmed; payment alone does not make a subscription active. `suspended`: service is stopped while a lien restricts its use. `canceled`: cancellation completed, or an undelivered purchase was canceled or failed. `terminated`: an operator or the owning service ended it immediately."),
|
|
120
126
|
started_at: zod.iso
|
|
121
127
|
.datetime({ offset: true })
|
|
122
128
|
.nullish()
|
|
123
|
-
.describe("
|
|
129
|
+
.describe("When service started. Null until a new subscription becomes active, also after payment."),
|
|
124
130
|
ended_at: zod.iso.datetime({ offset: true }).nullish(),
|
|
125
131
|
})
|
|
126
|
-
.describe("
|
|
132
|
+
.describe("A purchase that is billed, renewed and changed on its own, separate from the owning service's resource. A new\nrecurring purchase creates a pending subscription for each order line; its ID is returned on the order item\nand stays the same through checkout, delivery, renewals and changes. A one-time purchase may create none.\n\nPending and provisioning subscriptions grant no service. A subscription becomes provisioning when the owning\nservice accepts the order, and active when the service confirms delivery, which sets started_at; payment\nchanges neither. Licensed service periods start at delivery, and metered usage is charged as the service\nreports it. Canceling or failing an undelivered purchase cancels its subscriptions without starting a period.\nRenewals use recurring_amount and the agreed interval; paid periods keep their value.\n\nA shared capacity limit, such as a regional snapshot quota, has one subscription for the purchased quantity\nrather than one per item.");
|
|
@@ -37,7 +37,7 @@ export const SubscriptionCancellation = zod
|
|
|
37
37
|
cancellation_id: zod
|
|
38
38
|
.uuid()
|
|
39
39
|
.optional()
|
|
40
|
-
.describe("The cancellation this
|
|
40
|
+
.describe("The cancellation this item belongs to, with the other subscriptions released together."),
|
|
41
41
|
id: zod.uuid(),
|
|
42
42
|
subscription_id: zod.uuid(),
|
|
43
43
|
status: zod.enum(["requested", "scheduled", "releasing", "failed", "completed", "canceled"]),
|
|
@@ -52,4 +52,4 @@ export const SubscriptionCancellation = zod
|
|
|
52
52
|
failure_code: zod.string().optional(),
|
|
53
53
|
failure_reason: zod.string().optional(),
|
|
54
54
|
})
|
|
55
|
-
.describe("The latest cancellation
|
|
55
|
+
.describe("The latest cancellation including the subscription, with this subscription's item: `id` is the item and `cancellation_id` the cancellation. scheduled_at is the intended time and effective_at the confirmed end of service.");
|
|
@@ -35,11 +35,15 @@ export declare const SubscriptionList: zod.ZodObject<{
|
|
|
35
35
|
items: zod.ZodArray<zod.ZodObject<{
|
|
36
36
|
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
37
37
|
currency: zod.ZodString;
|
|
38
|
-
|
|
39
|
-
postpaid: "postpaid";
|
|
40
|
-
prepaid: "prepaid";
|
|
38
|
+
type: zod.ZodEnum<{
|
|
41
39
|
one_time: "one_time";
|
|
40
|
+
recurring: "recurring";
|
|
42
41
|
}>;
|
|
42
|
+
usage_type: zod.ZodEnum<{
|
|
43
|
+
licensed: "licensed";
|
|
44
|
+
metered: "metered";
|
|
45
|
+
}>;
|
|
46
|
+
dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
|
43
47
|
interval: zod.ZodEnum<{
|
|
44
48
|
none: "none";
|
|
45
49
|
day: "day";
|
|
@@ -39,4 +39,4 @@ export const SubscriptionRestriction = zod
|
|
|
39
39
|
"billing.subscriptions.cancel",
|
|
40
40
|
"billing.subscriptions.terminate",
|
|
41
41
|
])
|
|
42
|
-
.describe("An operation
|
|
42
|
+
.describe("An operation prevented on the subscription. `billing.subscriptions.use` stops the service. `renew` prevents renewal and paying a renewal order. `modify` prevents placing a change order. `cancel` prevents cancellation. `terminate` prevents immediate termination.");
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
import * as zod from "zod";
|
|
34
34
|
export const TerminationPolicy = zod
|
|
35
35
|
.enum(["immediate", "period_end"])
|
|
36
|
-
.describe("Whether a
|
|
36
|
+
.describe("Whether a delivered purchase may end immediately or only at the end of its paid term; refunds follow the refund policy. When absent, no termination terms were agreed.");
|
|
@@ -36,7 +36,7 @@ export const Tier = zod.strictObject({
|
|
|
36
36
|
up_to: zod
|
|
37
37
|
.string()
|
|
38
38
|
.nullish()
|
|
39
|
-
.describe("The upper bound
|
|
39
|
+
.describe("The band's inclusive upper bound; null for the last band."),
|
|
40
40
|
unit_amount: Money,
|
|
41
41
|
flat_amount: Money.optional().describe("Charged once when this band is reached, in addition to the per-unit amount."),
|
|
42
42
|
});
|
|
@@ -40,12 +40,12 @@ export const TopUp = zod
|
|
|
40
40
|
id: zod.uuid(),
|
|
41
41
|
billing_account_id: zod.int(),
|
|
42
42
|
account: AccountIdentity,
|
|
43
|
-
amount: Money.describe("What is credited to the account, in
|
|
43
|
+
amount: Money.describe("What is credited to the account, in its currency."),
|
|
44
44
|
currency: zod.string(),
|
|
45
|
-
remaining_amount: Money.optional().describe("The part of this top-up still
|
|
45
|
+
remaining_amount: Money.optional().describe("The part of this top-up still in the balance. Pending refunds may hold part of it, so not all of it is necessarily withdrawable."),
|
|
46
46
|
status: zod
|
|
47
47
|
.enum(["pending", "succeeded", "failed", "canceled"])
|
|
48
|
-
.describe("`pending` until the payment gateway reaches a result
|
|
48
|
+
.describe("`pending` until the payment gateway reaches a result; the balance increases on `succeeded`. `failed`: the gateway declined the payment, which is withdrawn at the gateway; create a new top-up to pay another way. `canceled`: withdrawn without collecting money, for the reason in `cancellation_reason`. Unknown gateway outcomes stay `pending`; a browser redirect is not proof of payment. `failed` and `canceled` are final; a payment the gateway collects afterwards is credited as a separate `succeeded` top-up."),
|
|
49
49
|
cancellation_reason: PaymentCancellationReason.optional(),
|
|
50
50
|
payment_gateway: zod.string().optional().describe("Which payment gateway collected it."),
|
|
51
51
|
method_type: zod
|
|
@@ -55,17 +55,17 @@ export const TopUp = zod
|
|
|
55
55
|
presentment_currency: zod
|
|
56
56
|
.string()
|
|
57
57
|
.optional()
|
|
58
|
-
.describe("The currency the customer was
|
|
59
|
-
presentment_amount: Money.optional().describe("
|
|
58
|
+
.describe("The currency the customer was charged in when the checkout collected a local currency; absent when it is the account's."),
|
|
59
|
+
presentment_amount: Money.optional().describe("The amount charged in `presentment_currency`, as shown on the customer's statement."),
|
|
60
60
|
failure_reason: zod
|
|
61
61
|
.string()
|
|
62
62
|
.optional()
|
|
63
|
-
.describe("Why the gateway declined it
|
|
63
|
+
.describe("Why the gateway declined it; present with `failed`. The gateway's code unchanged: the issuer's decline code when there is one (Stripe decline_code, such as insufficient_funds), otherwise the gateway's error code (Stripe code, such as card_declined). Treat an unknown value as a generic decline."),
|
|
64
64
|
action: PaymentAction.optional(),
|
|
65
65
|
created_at: zod.iso.datetime({ offset: true }),
|
|
66
66
|
settled_at: zod.iso
|
|
67
67
|
.datetime({ offset: true })
|
|
68
68
|
.nullish()
|
|
69
|
-
.describe("When the funds arrived
|
|
69
|
+
.describe("When the funds arrived, possibly days after `created_at`. Absent until the payment completes."),
|
|
70
70
|
})
|
|
71
|
-
.describe("A top-up attempt and its outcome. A successful top-up adds
|
|
71
|
+
.describe("A top-up attempt and its outcome. A successful top-up adds to the balance; it is not a credit grant and has no invoice.");
|
|
@@ -40,7 +40,7 @@ export const TopUpCreate = zod.strictObject({
|
|
|
40
40
|
.string()
|
|
41
41
|
.min(1)
|
|
42
42
|
.max(topUpCreatePaymentGatewayMax)
|
|
43
|
-
.describe("The gateway
|
|
43
|
+
.describe("The gateway selected from the available payment options."),
|
|
44
44
|
method_type: zod
|
|
45
45
|
.string()
|
|
46
46
|
.min(1)
|
|
@@ -48,12 +48,12 @@ export const TopUpCreate = zod.strictObject({
|
|
|
48
48
|
.describe("The selected method, such as card, wechat_pay or alipay."),
|
|
49
49
|
id: zod
|
|
50
50
|
.uuid()
|
|
51
|
-
.describe("The
|
|
51
|
+
.describe("The top-up ID, chosen by the caller. Read it after an uncertain response."),
|
|
52
52
|
billing_account_id: zod.int(),
|
|
53
|
-
amount: Money.and(zod.string().regex(topUpCreateAmountTwoRegExp)).describe("In the account's currency,
|
|
53
|
+
amount: Money.and(zod.string().regex(topUpCreateAmountTwoRegExp)).describe("In the account's currency, no finer than its smallest unit (two decimals for most currencies, none for JPY). An amount below the currency's minimum top-up is refused, and the minimum is returned with the error."),
|
|
54
54
|
payment_method_id: zod
|
|
55
55
|
.uuid()
|
|
56
56
|
.optional()
|
|
57
|
-
.describe("Charge a saved method instead of opening a checkout page."),
|
|
57
|
+
.describe("Charge a saved payment method instead of opening a checkout page."),
|
|
58
58
|
return_url: zod.string().optional().describe("Where to send the customer after checkout."),
|
|
59
59
|
});
|
|
@@ -48,26 +48,26 @@ export const Transaction = zod
|
|
|
48
48
|
refund_destination: zod
|
|
49
49
|
.enum(["balance", "credit", "gateway"])
|
|
50
50
|
.optional()
|
|
51
|
-
.describe("Present on refunds
|
|
51
|
+
.describe("Present on refunds: where this part goes. `balance`: the account balance. `credit`: the credit grant that paid, keeping its original expiry. `gateway`: the payment method it was paid with."),
|
|
52
52
|
status: zod
|
|
53
53
|
.enum(["pending", "succeeded", "failed", "canceled"])
|
|
54
54
|
.optional()
|
|
55
|
-
.describe("`failed
|
|
55
|
+
.describe("`failed`: the operation did not succeed; for a gateway payment, the gateway declined it. `canceled`: a gateway payment was withdrawn without collecting money. Either way, the invoice it was for stays open."),
|
|
56
56
|
cancellation_reason: PaymentCancellationReason.optional(),
|
|
57
57
|
payment_gateway: zod.string().optional(),
|
|
58
58
|
method_type: zod.string().optional(),
|
|
59
59
|
failure_reason: zod
|
|
60
60
|
.string()
|
|
61
61
|
.optional()
|
|
62
|
-
.describe("Why it failed
|
|
62
|
+
.describe("Why it failed; present with `failed`. For a declined gateway payment, the gateway's code unchanged: the issuer's decline code when there is one (Stripe decline_code, such as insufficient_funds), otherwise the gateway's error code (Stripe code, such as card_declined). Treat an unknown value as a generic decline."),
|
|
63
63
|
settled_at: zod.iso.datetime({ offset: true }).optional(),
|
|
64
64
|
id: zod.uuid(),
|
|
65
65
|
billing_account_id: zod.int().optional(),
|
|
66
66
|
type: TransactionType,
|
|
67
|
-
amount: Money.describe("Signed by type: positive for `topup` and `payment`, negative for `refund
|
|
68
|
-
remaining_amount: Money.describe("How much of this transaction is still
|
|
67
|
+
amount: Money.describe("Signed by type: positive for `topup` and `payment`, negative for `refund`. An `adjustment` is positive when it adds to the balance and negative when it takes from it. For other types the sign does not show the effect on the balance: a payment from balance lowers it, a payment by gateway or credit does not."),
|
|
68
|
+
remaining_amount: Money.describe("How much of this transaction is still in the balance. Only top-ups, positive adjustments and gateway payments returned to the balance can be non-zero."),
|
|
69
69
|
currency: zod.string(),
|
|
70
70
|
reason: zod.string().optional(),
|
|
71
71
|
created_at: zod.iso.datetime({ offset: true }),
|
|
72
72
|
})
|
|
73
|
-
.describe("A funds
|
|
73
|
+
.describe("A funds movement with one source. Refunds name the original transaction. Unknown gateway results stay pending.");
|
|
@@ -42,7 +42,7 @@ export const UsageCharge = zod.strictObject({
|
|
|
42
42
|
project: zod
|
|
43
43
|
.union([NamedIdentity, zod.null()])
|
|
44
44
|
.optional()
|
|
45
|
-
.describe("The project and its current name
|
|
45
|
+
.describe("The project and its current name. Absent when the project cannot be read; `project_id` still identifies it."),
|
|
46
46
|
product: Product,
|
|
47
47
|
resource_id: zod
|
|
48
48
|
.string()
|
|
@@ -53,20 +53,17 @@ export const UsageCharge = zod.strictObject({
|
|
|
53
53
|
dimensions: zod
|
|
54
54
|
.record(zod.string(), zod.string())
|
|
55
55
|
.optional()
|
|
56
|
-
.describe("The
|
|
56
|
+
.describe("The dimension values the rate was matched by, such as region and machine type."),
|
|
57
57
|
window_start: zod.iso.datetime({ offset: true }),
|
|
58
58
|
window_end: zod.iso.datetime({ offset: true }).describe("Exclusive."),
|
|
59
|
-
gross_quantity: zod
|
|
60
|
-
.string()
|
|
61
|
-
.optional()
|
|
62
|
-
.describe("How much was used, before any included allowance."),
|
|
59
|
+
gross_quantity: zod.string().optional().describe("Quantity used before allowances."),
|
|
63
60
|
deducted_quantity: zod
|
|
64
61
|
.string()
|
|
65
62
|
.optional()
|
|
66
63
|
.describe("How much of that was covered by an allowance."),
|
|
67
64
|
quantity: zod
|
|
68
65
|
.string()
|
|
69
|
-
.describe("
|
|
66
|
+
.describe("The quantity charged: gross quantity less the part covered by allowances."),
|
|
70
67
|
unit_amount: Money.optional(),
|
|
71
68
|
amount: Money,
|
|
72
69
|
currency: zod.string(),
|