@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
|
@@ -53,11 +53,9 @@ export const InvoiceItem = zod.strictObject({
|
|
|
53
53
|
project: zod
|
|
54
54
|
.union([NamedIdentity, zod.null()])
|
|
55
55
|
.optional()
|
|
56
|
-
.describe("The project the charge was for and its current name
|
|
56
|
+
.describe("The project the charge was for and its current name. Absent when the line has no project or the project cannot be read; `project_id` still identifies it."),
|
|
57
57
|
resource_id: zod.string().optional(),
|
|
58
|
-
description: zod
|
|
59
|
-
.string()
|
|
60
|
-
.describe("The wording as recorded when the invoice was issued. It is not re-translated\nafterwards, so that an invoice continues to read as it did when it was sent."),
|
|
58
|
+
description: zod.string().describe("The line's wording as recorded when the invoice was issued."),
|
|
61
59
|
unit: zod.string().optional(),
|
|
62
60
|
quantity: zod.string().optional(),
|
|
63
61
|
deducted_quantity: zod
|
|
@@ -69,6 +67,10 @@ export const InvoiceItem = zod.strictObject({
|
|
|
69
67
|
currency: zod.string(),
|
|
70
68
|
period_start: zod.iso.datetime({ offset: true }).nullish(),
|
|
71
69
|
period_end: zod.iso.datetime({ offset: true }).nullish(),
|
|
70
|
+
dimensions: zod
|
|
71
|
+
.record(zod.string(), zod.string())
|
|
72
|
+
.optional()
|
|
73
|
+
.describe("For a usage line, the values of its meter's presentation dimensions, such as the model and token kind. Empty for other lines."),
|
|
72
74
|
prorations: zod
|
|
73
75
|
.array(InvoiceItemProration)
|
|
74
76
|
.optional()
|
|
@@ -62,6 +62,7 @@ export declare const InvoiceItemList: zod.ZodObject<{
|
|
|
62
62
|
currency: zod.ZodString;
|
|
63
63
|
period_start: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
64
64
|
period_end: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
65
|
+
dimensions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
65
66
|
prorations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
66
67
|
credited_invoice_item_id: zod.ZodUUID;
|
|
67
68
|
description: zod.ZodString;
|
|
@@ -37,9 +37,7 @@ export const InvoiceItemProration = zod
|
|
|
37
37
|
credited_invoice_item_id: zod
|
|
38
38
|
.uuid()
|
|
39
39
|
.describe("The earlier invoice line that paid for the period."),
|
|
40
|
-
description: zod
|
|
41
|
-
.string()
|
|
42
|
-
.describe("The wording of the earlier invoice line as recorded when this invoice was created."),
|
|
40
|
+
description: zod.string().describe("The earlier invoice line's wording as recorded."),
|
|
43
41
|
period_start: zod.iso.datetime({ offset: true }),
|
|
44
42
|
period_end: zod.iso.datetime({ offset: true }).describe("Exclusive."),
|
|
45
43
|
remaining_amount: Money.describe("Before tax and discounts, the new configuration for the period."),
|
|
@@ -36,7 +36,6 @@ export declare const InvoiceStatus: zod.ZodEnum<{
|
|
|
36
36
|
open: "open";
|
|
37
37
|
draft: "draft";
|
|
38
38
|
paid: "paid";
|
|
39
|
-
uncollectible: "uncollectible";
|
|
40
39
|
}>;
|
|
41
40
|
export type InvoiceStatus = zod.input<typeof InvoiceStatus>;
|
|
42
41
|
export type InvoiceStatusOutput = zod.output<typeof InvoiceStatus>;
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
*/
|
|
33
33
|
import * as zod from "zod";
|
|
34
34
|
export const InvoiceStatus = zod
|
|
35
|
-
.enum(["draft", "open", "paid", "void"
|
|
36
|
-
.describe("
|
|
35
|
+
.enum(["draft", "open", "paid", "void"])
|
|
36
|
+
.describe("`draft`: not yet issued; an order's draft invoice shows base prices until it is paid, when the discount is applied and it is issued. Other drafts are visible only to operators. `open`: issued and not yet settled; a zero-total invoice is paid at once. `paid` stays paid after a refund, with the refunded part in amount_refunded. `void`: collection has stopped and any funds received have been returned. Usage not yet invoiced is not on any invoice.");
|
|
@@ -47,8 +47,8 @@ export const InvoiceSummary = zod
|
|
|
47
47
|
tax_amount: zod.string(),
|
|
48
48
|
total: zod.string(),
|
|
49
49
|
amount_paid: zod.string(),
|
|
50
|
-
pre_payment_credit_notes_amount: Money.describe("Issued
|
|
51
|
-
post_payment_credit_notes_amount: Money.describe("Issued credit notes against payments already received
|
|
50
|
+
pre_payment_credit_notes_amount: Money.describe("Issued credit notes that reduced unpaid receivables; the original invoice total is unchanged."),
|
|
51
|
+
post_payment_credit_notes_amount: Money.describe("Issued credit notes against payments already received; their refunds may not have completed."),
|
|
52
52
|
amount_due: zod
|
|
53
53
|
.string()
|
|
54
54
|
.regex(invoiceSummaryAmountDueRegExp)
|
|
@@ -56,4 +56,4 @@ export const InvoiceSummary = zod
|
|
|
56
56
|
amount_refunded: zod.string(),
|
|
57
57
|
due_at: zod.iso.datetime({ offset: true }).optional(),
|
|
58
58
|
})
|
|
59
|
-
.describe("
|
|
59
|
+
.describe("An order's invoice amounts, without contact details or payment methods. A draft shows base prices until it is paid, when the discount is applied and it is issued; a zero-total invoice is issued and paid at placement.");
|
|
@@ -41,7 +41,7 @@ export const MonthlyStatement = zod
|
|
|
41
41
|
period_end: zod.iso.datetime({ offset: true }),
|
|
42
42
|
finalized: zod
|
|
43
43
|
.boolean()
|
|
44
|
-
.describe("True after the period's final closing, which applies minimum charges
|
|
44
|
+
.describe("True after the period's final closing, which applies the month's minimum charges. Usage priced later is billed in supplement statements and added here."),
|
|
45
45
|
finalized_at: zod.iso.datetime({ offset: true }).optional(),
|
|
46
46
|
statement_count: zod.int().describe("Statements of the period, including the open one."),
|
|
47
47
|
billed: StatementAmounts,
|
|
@@ -52,4 +52,4 @@ export const MonthlyStatement = zod
|
|
|
52
52
|
amount_due: Money,
|
|
53
53
|
amount_refunded: Money,
|
|
54
54
|
})
|
|
55
|
-
.describe("One billing account's usage billing for one UTC calendar month, summed over
|
|
55
|
+
.describe("One billing account's usage billing for one UTC calendar month, summed over its statements. Not payable itself; each statement's invoice is collected on its own.");
|
|
@@ -50,7 +50,6 @@ export declare const Order: zod.ZodObject<{
|
|
|
50
50
|
open: "open";
|
|
51
51
|
draft: "draft";
|
|
52
52
|
paid: "paid";
|
|
53
|
-
uncollectible: "uncollectible";
|
|
54
53
|
}>;
|
|
55
54
|
subtotal: zod.ZodString;
|
|
56
55
|
discount_amount: zod.ZodString;
|
|
@@ -130,11 +129,15 @@ export declare const Order: zod.ZodObject<{
|
|
|
130
129
|
refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
131
130
|
recurring_amount: zod.ZodOptional<zod.ZodString>;
|
|
132
131
|
setup_amount: zod.ZodOptional<zod.ZodString>;
|
|
133
|
-
|
|
134
|
-
postpaid: "postpaid";
|
|
135
|
-
prepaid: "prepaid";
|
|
132
|
+
type: zod.ZodEnum<{
|
|
136
133
|
one_time: "one_time";
|
|
134
|
+
recurring: "recurring";
|
|
137
135
|
}>;
|
|
136
|
+
usage_type: zod.ZodEnum<{
|
|
137
|
+
licensed: "licensed";
|
|
138
|
+
metered: "metered";
|
|
139
|
+
}>;
|
|
140
|
+
dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
|
138
141
|
tax_amount: zod.ZodOptional<zod.ZodString>;
|
|
139
142
|
tax_included_amount: zod.ZodOptional<zod.ZodString>;
|
|
140
143
|
id: zod.ZodUUID;
|
|
@@ -46,7 +46,7 @@ export const Order = zod
|
|
|
46
46
|
promotion_code: zod
|
|
47
47
|
.string()
|
|
48
48
|
.optional()
|
|
49
|
-
.describe("
|
|
49
|
+
.describe("The promotion code applied. Absent for an account discount."),
|
|
50
50
|
invoice_id: zod.uuid().describe("The order's invoice, the same as invoice.id."),
|
|
51
51
|
invoice: InvoiceSummary,
|
|
52
52
|
paid_with: PaidWith.optional().describe("How the order was paid. Absent until it is paid."),
|
|
@@ -56,35 +56,33 @@ export const Order = zod
|
|
|
56
56
|
project_id: zod
|
|
57
57
|
.uuid()
|
|
58
58
|
.nullish()
|
|
59
|
-
.describe("
|
|
59
|
+
.describe("The project it was bought for. Absent for an account-level purchase, such as a membership."),
|
|
60
60
|
project: zod
|
|
61
61
|
.union([NamedIdentity, zod.null()])
|
|
62
62
|
.optional()
|
|
63
|
-
.describe("The project and its current name
|
|
63
|
+
.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."),
|
|
64
64
|
billing_account_id: zod
|
|
65
65
|
.int()
|
|
66
66
|
.optional()
|
|
67
|
-
.describe("The billing account the order was placed with
|
|
67
|
+
.describe("The billing account the order was placed with, unchanged when the project is later linked to another account. While it is suspended or closed, the order cannot be accepted, and a period-end change's invoice is not issued and the change is called off when the current period ends; such requests fail with `BILLING_ACCOUNT_UNAVAILABLE`."),
|
|
68
68
|
currency: zod.string(),
|
|
69
69
|
type: zod
|
|
70
70
|
.enum(["new", "renew", "modify"])
|
|
71
|
-
.describe("`new` buys, `renew` extends a
|
|
71
|
+
.describe("`new` buys, `renew` extends a licensed subscription, `modify` changes a subscription's configuration or billing terms."),
|
|
72
72
|
status: OrderStatus,
|
|
73
73
|
change_effective: zod
|
|
74
74
|
.enum(["none", "immediate", "period_end"])
|
|
75
75
|
.optional()
|
|
76
|
-
.describe("When a plan change takes effect
|
|
76
|
+
.describe("When a plan change takes effect; `none` for anything that is not a change. A `period_end` order stays pending until the first period at the new price is paid. That period is invoiced shortly before the current paid period ends and starts when it ends; if the invoice is unpaid by then, the order is canceled and the subscription renews or ends as usual. A renewal in the meantime moves the change to the end of the renewed period."),
|
|
77
77
|
expires_at: zod.iso
|
|
78
78
|
.datetime({ offset: true })
|
|
79
79
|
.nullish()
|
|
80
|
-
.describe("Acceptance deadline
|
|
80
|
+
.describe("Acceptance deadline; a pending order expires after it."),
|
|
81
81
|
checkout_confirmed_at: zod.iso
|
|
82
82
|
.datetime({ offset: true })
|
|
83
83
|
.nullish()
|
|
84
|
-
.describe("When the discount and amount were fixed: at placement for automatic checkout
|
|
84
|
+
.describe("When the discount and amount were fixed: at placement for automatic checkout or a zero total, otherwise when the invoice was first paid. Null while a deferred order awaits payment."),
|
|
85
85
|
created_at: zod.iso.datetime({ offset: true }),
|
|
86
|
-
items: zod
|
|
87
|
-
.array(OrderItem)
|
|
88
|
-
.describe("What was bought. Present on a single order and on every order in a list, so a list\ncan be rendered without a further request per row."),
|
|
86
|
+
items: zod.array(OrderItem).describe("What was bought."),
|
|
89
87
|
})
|
|
90
|
-
.describe("A recorded purchase with its invoice from placement; a zero-total invoice, such as for
|
|
88
|
+
.describe("A recorded purchase with its invoice from placement; a zero-total invoice, such as for a metered purchase, is issued and paid at placement in either checkout mode. Until checkout_confirmed_at is set, the invoice is a draft at base prices: paying it fixes the discount and amount, issues it and collects it, and the order cannot be accepted before then. Coupon fields describe the discount fixed then and are absent before. Payment and acceptance do not mean the resources were delivered.");
|
|
@@ -57,11 +57,15 @@ export declare const OrderItem: zod.ZodObject<{
|
|
|
57
57
|
refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
58
58
|
recurring_amount: zod.ZodOptional<zod.ZodString>;
|
|
59
59
|
setup_amount: zod.ZodOptional<zod.ZodString>;
|
|
60
|
-
|
|
61
|
-
postpaid: "postpaid";
|
|
62
|
-
prepaid: "prepaid";
|
|
60
|
+
type: zod.ZodEnum<{
|
|
63
61
|
one_time: "one_time";
|
|
62
|
+
recurring: "recurring";
|
|
64
63
|
}>;
|
|
64
|
+
usage_type: zod.ZodEnum<{
|
|
65
|
+
licensed: "licensed";
|
|
66
|
+
metered: "metered";
|
|
67
|
+
}>;
|
|
68
|
+
dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
|
65
69
|
tax_amount: zod.ZodOptional<zod.ZodString>;
|
|
66
70
|
tax_included_amount: zod.ZodOptional<zod.ZodString>;
|
|
67
71
|
id: zod.ZodUUID;
|
|
@@ -33,10 +33,12 @@
|
|
|
33
33
|
import * as zod from "zod";
|
|
34
34
|
import { Money } from "./money.zod.js";
|
|
35
35
|
import { OrderItemStatus } from "./orderItemStatus.zod.js";
|
|
36
|
+
import { PriceType } from "./priceType.zod.js";
|
|
36
37
|
import { Product } from "./product.zod.js";
|
|
37
38
|
import { ProductID } from "./productID.zod.js";
|
|
38
39
|
import { RefundPolicy } from "./refundPolicy.zod.js";
|
|
39
40
|
import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
41
|
+
import { UsageType } from "./usageType.zod.js";
|
|
40
42
|
export const orderItemPositionMin = 0;
|
|
41
43
|
export const OrderItem = zod
|
|
42
44
|
.strictObject({
|
|
@@ -53,7 +55,7 @@ export const OrderItem = zod
|
|
|
53
55
|
subscription_id: zod
|
|
54
56
|
.uuid()
|
|
55
57
|
.optional()
|
|
56
|
-
.describe("
|
|
58
|
+
.describe("The Billing subscription: the new pending subscription of a recurring purchase, or the existing one renewed or changed, which keeps its ID. Absent for a purchase without a subscription."),
|
|
57
59
|
interval: zod.enum(["none", "day", "month", "year"]),
|
|
58
60
|
interval_count: zod.int().min(1).optional(),
|
|
59
61
|
termination_policy: TerminationPolicy.optional(),
|
|
@@ -61,16 +63,18 @@ export const OrderItem = zod
|
|
|
61
63
|
refund_monthly_amount: zod
|
|
62
64
|
.string()
|
|
63
65
|
.nullish()
|
|
64
|
-
.describe("
|
|
66
|
+
.describe("Recurring licensed items only: the plan's one-month licensed price for this item's quantity, before tax and frozen at purchase, used to value time under a prorated refund or a downgrade. Null when the plan has no licensed period shorter than the one bought."),
|
|
65
67
|
refund_hourly_amount: zod
|
|
66
68
|
.string()
|
|
67
69
|
.nullish()
|
|
68
|
-
.describe("
|
|
70
|
+
.describe("Recurring licensed items only, the plan's metered hourly price for this item's quantity before tax, frozen at purchase, used for time used short of a full month. Null when the licensed price has no meter."),
|
|
69
71
|
recurring_amount: zod.string().optional(),
|
|
70
72
|
setup_amount: zod.string().optional(),
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
type: PriceType,
|
|
74
|
+
usage_type: UsageType,
|
|
75
|
+
dimensions: zod
|
|
76
|
+
.record(zod.string(), zod.string())
|
|
77
|
+
.describe("The dimension values the line was bought with, such as region and instance type. Empty when the purchase gave none."),
|
|
74
78
|
tax_amount: zod
|
|
75
79
|
.string()
|
|
76
80
|
.optional()
|
|
@@ -85,23 +89,21 @@ export const OrderItem = zod
|
|
|
85
89
|
product_id: ProductID.optional(),
|
|
86
90
|
product: Product.optional(),
|
|
87
91
|
plan_id: zod.uuid().describe("Which plan was bought."),
|
|
88
|
-
plan_name: zod
|
|
89
|
-
.string()
|
|
90
|
-
.describe("What it was called when bought. It does not follow later catalogue renames and is\nnot translated."),
|
|
92
|
+
plan_name: zod.string().describe("The name when bought."),
|
|
91
93
|
quantity: zod.string(),
|
|
92
|
-
unit_amount: Money.optional().describe("The unit amount of the price
|
|
93
|
-
gross_amount: Money.optional().describe("Before discounts: the price applied to the quantity,
|
|
94
|
-
discount_amount: Money.optional().describe("The reduction on this line
|
|
94
|
+
unit_amount: Money.optional().describe("The unit amount of the price the line is charged under. Absent for a tiered price, and for an immediate change, which is charged as `gross_amount` describes."),
|
|
95
|
+
gross_amount: Money.optional().describe("Before discounts and setup fees: the price applied to the quantity, `unit_amount` times `quantity` for a per-\nunit price, raised by any minimum charge. For an immediate upgrade it is the new price for the rest of the\npaid period minus the amount paid for that time; a downgrade, or a change between equal period prices, charges\nnothing.\n\nUnder an inclusive tax rate it includes tax, shown in `tax_included_amount`, except for a renewal at agreed\nterms, whose amount excludes tax."),
|
|
96
|
+
discount_amount: Money.optional().describe("The reduction on this line, from the order's coupon and, for a renewal at agreed terms, from the subscription's carried discount. With a carried discount, `gross_amount` is `unit_amount` times `quantity`, except when the renewal order also uses an account coupon or the tax rate is inclusive: then `gross_amount` is the agreed amount, which already reflects the carried discount."),
|
|
95
97
|
amount: Money.optional().describe("`gross_amount` less `discount_amount`."),
|
|
96
98
|
currency: zod.string(),
|
|
97
99
|
period_start: zod.iso
|
|
98
100
|
.datetime({ offset: true })
|
|
99
101
|
.nullish()
|
|
100
|
-
.describe("The start of the service period this line paid for.
|
|
102
|
+
.describe("The start of the service period this line paid for. Fixed at placement for renewals and period-end changes, and for a licensed line of a new purchase when its invoice is paid. Absent for metered and one-time lines."),
|
|
101
103
|
period_end: zod.iso
|
|
102
104
|
.datetime({ offset: true })
|
|
103
105
|
.nullish()
|
|
104
106
|
.describe("The end of that service period, exclusive."),
|
|
105
107
|
status: OrderItemStatus,
|
|
106
108
|
})
|
|
107
|
-
.describe("
|
|
109
|
+
.describe("The purchase terms frozen at placement. Monetary fields come from the order's invoice lines and are zero without an immediate charge, such as for a metered purchase. Later catalog changes do not reprice the line. A new service purchase has its pending subscription from placement.");
|
|
@@ -57,11 +57,15 @@ export declare const OrderItemList: zod.ZodObject<{
|
|
|
57
57
|
refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
58
58
|
recurring_amount: zod.ZodOptional<zod.ZodString>;
|
|
59
59
|
setup_amount: zod.ZodOptional<zod.ZodString>;
|
|
60
|
-
|
|
61
|
-
postpaid: "postpaid";
|
|
62
|
-
prepaid: "prepaid";
|
|
60
|
+
type: zod.ZodEnum<{
|
|
63
61
|
one_time: "one_time";
|
|
62
|
+
recurring: "recurring";
|
|
64
63
|
}>;
|
|
64
|
+
usage_type: zod.ZodEnum<{
|
|
65
|
+
licensed: "licensed";
|
|
66
|
+
metered: "metered";
|
|
67
|
+
}>;
|
|
68
|
+
dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
|
65
69
|
tax_amount: zod.ZodOptional<zod.ZodString>;
|
|
66
70
|
tax_included_amount: zod.ZodOptional<zod.ZodString>;
|
|
67
71
|
id: zod.ZodUUID;
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
import * as zod from "zod";
|
|
34
34
|
export const OrderItemStatus = zod
|
|
35
35
|
.enum(["pending", "completed", "failed", "canceled"])
|
|
36
|
-
.describe("`pending
|
|
36
|
+
.describe("`pending`: waiting to be set up. `completed`: set up, as confirmed by the service. `failed`: not set up; its amount was refunded to the original payment sources. `canceled`: withdrawn without delivery; any collected amount is returned. A completed item ends when its subscription is canceled.");
|
|
@@ -51,7 +51,6 @@ export declare const OrderList: zod.ZodObject<{
|
|
|
51
51
|
open: "open";
|
|
52
52
|
draft: "draft";
|
|
53
53
|
paid: "paid";
|
|
54
|
-
uncollectible: "uncollectible";
|
|
55
54
|
}>;
|
|
56
55
|
subtotal: zod.ZodString;
|
|
57
56
|
discount_amount: zod.ZodString;
|
|
@@ -131,11 +130,15 @@ export declare const OrderList: zod.ZodObject<{
|
|
|
131
130
|
refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
132
131
|
recurring_amount: zod.ZodOptional<zod.ZodString>;
|
|
133
132
|
setup_amount: zod.ZodOptional<zod.ZodString>;
|
|
134
|
-
|
|
135
|
-
postpaid: "postpaid";
|
|
136
|
-
prepaid: "prepaid";
|
|
133
|
+
type: zod.ZodEnum<{
|
|
137
134
|
one_time: "one_time";
|
|
135
|
+
recurring: "recurring";
|
|
138
136
|
}>;
|
|
137
|
+
usage_type: zod.ZodEnum<{
|
|
138
|
+
licensed: "licensed";
|
|
139
|
+
metered: "metered";
|
|
140
|
+
}>;
|
|
141
|
+
dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
|
139
142
|
tax_amount: zod.ZodOptional<zod.ZodString>;
|
|
140
143
|
tax_included_amount: zod.ZodOptional<zod.ZodString>;
|
|
141
144
|
id: zod.ZodUUID;
|
|
@@ -40,4 +40,4 @@ export const OrderRefundQuote = zod
|
|
|
40
40
|
credit_amount: Money,
|
|
41
41
|
currency: zod.string(),
|
|
42
42
|
})
|
|
43
|
-
.describe("An estimated refund to original payment sources. Before acceptance, cancellation returns the
|
|
43
|
+
.describe("An estimated refund to the original payment sources. Before acceptance, cancellation returns the collected amount. For delivered service, only value paid by this order is included; renewals are evaluated with their own orders under the agreed termination terms. Nothing is refunded by the quote; the amount is fixed when cancellation or termination is confirmed.");
|
|
@@ -42,4 +42,4 @@ export const OrderRefundQuoteInput = zod
|
|
|
42
42
|
.optional()
|
|
43
43
|
.describe("Estimate only these items. Omit to estimate the whole order. Every item must belong to the order."),
|
|
44
44
|
})
|
|
45
|
-
.describe("An estimate of the refundable value of
|
|
45
|
+
.describe("An estimate of the refundable value of an order or selected items; nothing is canceled or refunded.");
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
import * as zod from "zod";
|
|
34
34
|
export const OrderStatus = zod
|
|
35
35
|
.enum(["pending", "accepted", "completed", "partially_completed", "failed", "canceled"])
|
|
36
|
-
.describe("Follows the items. `pending
|
|
36
|
+
.describe("Follows the items. `pending`: not yet accepted, paid or unpaid; its invoice shows whether payment is needed, and it can expire or be canceled. `accepted`: items are being set up. `completed`: every item was set up. `partially_completed`: some items were set up and the others failed or were canceled and refunded to their original payment sources. `failed`: no item was delivered and at least one failed; amounts collected for undelivered items are refunded. `canceled`: every item was withdrawn without delivery; collected amounts are returned to their original payment sources. No status by itself means the service was delivered.");
|
|
@@ -47,4 +47,4 @@ export const PaidWith = zod
|
|
|
47
47
|
brand: zod.string().optional(),
|
|
48
48
|
last4: zod.string().optional(),
|
|
49
49
|
})
|
|
50
|
-
.describe("How it was paid.
|
|
50
|
+
.describe("How it was paid. `payment_method_id` still names the payment method after it is removed.");
|
|
@@ -45,7 +45,7 @@ export const PayInvoiceRequest = zod
|
|
|
45
45
|
.min(1)
|
|
46
46
|
.max(payInvoiceRequestPaymentGatewayMax)
|
|
47
47
|
.optional()
|
|
48
|
-
.describe("Required to collect an online remainder. An existing attempt keeps its
|
|
48
|
+
.describe("Required to collect an online remainder. An existing attempt keeps its gateway."),
|
|
49
49
|
method_type: zod
|
|
50
50
|
.string()
|
|
51
51
|
.min(1)
|
|
@@ -55,24 +55,24 @@ export const PayInvoiceRequest = zod
|
|
|
55
55
|
payment_method_id: zod
|
|
56
56
|
.uuid()
|
|
57
57
|
.optional()
|
|
58
|
-
.describe("
|
|
58
|
+
.describe("A saved card of this billing account at the selected gateway. Omit to pay interactively."),
|
|
59
59
|
use_balance: zod
|
|
60
60
|
.boolean()
|
|
61
61
|
.default(payInvoiceRequestUseBalanceDefault)
|
|
62
|
-
.describe("Whether to apply the
|
|
62
|
+
.describe("Whether to apply the balance; credit grants are controlled by use_credits."),
|
|
63
63
|
use_credits: zod
|
|
64
64
|
.boolean()
|
|
65
65
|
.default(payInvoiceRequestUseCreditsDefault)
|
|
66
|
-
.describe("Apply eligible, unexpired credit grants before
|
|
66
|
+
.describe("Apply eligible, unexpired credit grants before the balance. Grants are never converted into balance."),
|
|
67
67
|
return_url: zod.string().optional(),
|
|
68
68
|
promotion_code: zod
|
|
69
69
|
.string()
|
|
70
70
|
.min(1)
|
|
71
71
|
.max(payInvoiceRequestPromotionCodeMax)
|
|
72
72
|
.optional()
|
|
73
|
-
.describe("The code to apply while the order's terms are not
|
|
73
|
+
.describe("The code to apply while the order's terms are not fixed. Omit to apply the best applicable account discount, or to keep the discount already recorded."),
|
|
74
74
|
expected_amount: Money.and(zod.string().regex(payInvoiceRequestExpectedAmountTwoRegExp))
|
|
75
75
|
.optional()
|
|
76
|
-
.describe("The invoice total to expect, after discounts and tax and before credit grants or balance, as the
|
|
76
|
+
.describe("The invoice total to expect, after discounts and tax and before credit grants or balance, as the payment preview or an order quote gave it. A different total fails with `BILLING_AMOUNT_CHANGED` and nothing is charged. Omit to skip the check; zero is checked."),
|
|
77
77
|
})
|
|
78
78
|
.describe("Applies eligible credit grants and the available balance as requested, then collects only the remainder\nthrough the selected gateway. Grants restricted to other purchases are not counted as available funds.\nAn unresolved channel payment is reused; retries do not apply the grant or balance portions twice.\nWithout a gateway selection, insufficient account funds fail without starting an online payment.\n\n`payment_gateway` and `method_type` are given together, and `payment_method_id` only with both;\notherwise the request is refused with `BILLING_PURCHASE_INVALID`.");
|
|
@@ -41,6 +41,6 @@ export const PayTogetherRequest = zod
|
|
|
41
41
|
order_ids: zod.array(zod.uuid()).max(payTogetherRequestOrderIdsMax).optional(),
|
|
42
42
|
expected_amount: Money.and(zod.string().regex(payTogetherRequestExpectedAmountTwoRegExp))
|
|
43
43
|
.optional()
|
|
44
|
-
.describe("The amount due
|
|
44
|
+
.describe("The amount due across all invoices, before credit grants or balance, as preview-pay-together gave it. A different amount fails with `BILLING_AMOUNT_CHANGED` and nothing is charged. Omit to skip the check."),
|
|
45
45
|
})
|
|
46
|
-
.describe("Name at least one invoice or order.
|
|
46
|
+
.describe("Name at least one invoice or order. All must belong to one account in its currency.");
|
|
@@ -37,13 +37,13 @@ export const PaymentAction = zod
|
|
|
37
37
|
provider: zod
|
|
38
38
|
.string()
|
|
39
39
|
.optional()
|
|
40
|
-
.describe("
|
|
40
|
+
.describe("The browser adapter for the action, for example stripe."),
|
|
41
41
|
url: zod.url().optional(),
|
|
42
|
-
qr_code: zod.string().optional().describe("QR content to render
|
|
42
|
+
qr_code: zod.string().optional().describe("QR content to render, not an image URL."),
|
|
43
43
|
client_secret: zod
|
|
44
44
|
.string()
|
|
45
45
|
.optional()
|
|
46
|
-
.describe("Short-lived client credential for this payment
|
|
46
|
+
.describe("Short-lived client credential for confirming this payment in the browser."),
|
|
47
47
|
public_key: zod.string().optional(),
|
|
48
48
|
})
|
|
49
|
-
.describe("The customer's next
|
|
49
|
+
.describe("The customer's next step; the payment outcome is reported separately.");
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
import * as zod from "zod";
|
|
34
34
|
export const PaymentCancellationReason = zod
|
|
35
35
|
.enum(["abandoned", "requested_by_customer"])
|
|
36
|
-
.describe("Why a gateway payment was withdrawn
|
|
36
|
+
.describe("Why a gateway payment was withdrawn: `abandoned` when the customer did not complete it in time, `requested_by_customer` when the customer canceled it.");
|
|
@@ -34,10 +34,8 @@ import * as zod from "zod";
|
|
|
34
34
|
import { PaymentAction } from "./paymentAction.zod.js";
|
|
35
35
|
export const PaymentMethodSetupResult = zod
|
|
36
36
|
.strictObject({
|
|
37
|
-
setup_id: zod
|
|
38
|
-
.string()
|
|
39
|
-
.describe("The gateway's identifier for this attempt. Use it to tell a reloaded page apart\nfrom a second attempt."),
|
|
37
|
+
setup_id: zod.string().describe("The gateway's identifier for this attempt."),
|
|
40
38
|
payment_gateway: zod.string(),
|
|
41
39
|
action: PaymentAction,
|
|
42
40
|
})
|
|
43
|
-
.describe("What the payment gateway's browser library needs
|
|
41
|
+
.describe("What the payment gateway's browser library needs to collect a card in the page; the card goes from the browser straight to the gateway.");
|
|
@@ -37,4 +37,4 @@ export const PaymentOption = zod
|
|
|
37
37
|
payment_gateway: zod.string().describe("The value to send as `payment_gateway`."),
|
|
38
38
|
methods: zod.array(PaymentOptionMethod),
|
|
39
39
|
})
|
|
40
|
-
.describe("A
|
|
40
|
+
.describe("A gateway accepting the account's currency, with its payment methods.");
|
|
@@ -37,5 +37,5 @@ export const PaymentOptionMethod = zod.strictObject({
|
|
|
37
37
|
.describe("The value to send as `method_type`, such as card, wechat_pay or alipay."),
|
|
38
38
|
reusable: zod
|
|
39
39
|
.boolean()
|
|
40
|
-
.describe("Whether
|
|
40
|
+
.describe("Whether this method type can be saved with create-payment-method-setup and charged later without the customer."),
|
|
41
41
|
});
|
|
@@ -43,13 +43,13 @@ export const PaymentPreview = zod
|
|
|
43
43
|
credit_applied: Money.describe("What credit grants would pay. Grants restricted to other purchases pay nothing here."),
|
|
44
44
|
credit_grants: zod
|
|
45
45
|
.array(AppliedCredit)
|
|
46
|
-
.describe("The credit grants that would pay, in the order
|
|
46
|
+
.describe("The credit grants that would pay, in the order used."),
|
|
47
47
|
balance_applied: Money.describe("What the balance would pay."),
|
|
48
|
-
gateway_amount: Money.describe("What would remain to
|
|
48
|
+
gateway_amount: Money.describe("What would remain to pay online. Paying without a gateway is refused with `BILLING_INSUFFICIENT_FUNDS` while this is above zero."),
|
|
49
49
|
balance_after: Money.describe("The available balance after paying."),
|
|
50
50
|
invoices: zod
|
|
51
51
|
.array(PaymentPreviewInvoice)
|
|
52
52
|
.optional()
|
|
53
|
-
.describe("Paying together only
|
|
53
|
+
.describe("Paying together only: each invoice, in payment order."),
|
|
54
54
|
})
|
|
55
|
-
.describe("What paying would take,
|
|
55
|
+
.describe("What paying would take, calculated as paying does. Nothing is charged or reserved.");
|
|
@@ -37,28 +37,25 @@ import { PaymentStatus } from "./paymentStatus.zod.js";
|
|
|
37
37
|
import { Transaction } from "./transaction.zod.js";
|
|
38
38
|
export const PaymentResult = zod.strictObject({
|
|
39
39
|
transactions: zod.array(Transaction),
|
|
40
|
-
transaction_id: zod
|
|
41
|
-
.uuid()
|
|
42
|
-
.optional()
|
|
43
|
-
.describe("The gateway transaction, when one is involved. Balance and credit-grant payments are separate transactions."),
|
|
40
|
+
transaction_id: zod.uuid().optional().describe("The gateway transaction, when one is involved."),
|
|
44
41
|
status: PaymentStatus,
|
|
45
42
|
amount_paid: Money,
|
|
46
|
-
amount_due: Money.describe("What is still outstanding
|
|
43
|
+
amount_due: Money.describe("What is still outstanding: zero once the payment succeeds, unchanged while `processing`."),
|
|
47
44
|
currency: zod.string(),
|
|
48
45
|
credit_applied: Money.optional(),
|
|
49
46
|
gateway_amount: Money.optional(),
|
|
50
47
|
payment_gateway: zod.string().optional(),
|
|
51
48
|
method_type: zod.string().optional(),
|
|
52
|
-
balance_applied: Money.optional().describe("The amount already paid from
|
|
49
|
+
balance_applied: Money.optional().describe("The amount already paid from balance toward this invoice; retrying the online remainder does not debit it again."),
|
|
53
50
|
action: PaymentAction.optional(),
|
|
54
51
|
retriable: zod
|
|
55
52
|
.boolean()
|
|
56
53
|
.optional()
|
|
57
|
-
.describe("Whether paying again
|
|
54
|
+
.describe("Whether paying again can succeed. False for a refusal that will repeat, such as a closed account or an amount over a limit."),
|
|
58
55
|
invoice_id: zod.uuid().nullish(),
|
|
59
56
|
order_id: zod.uuid().nullish(),
|
|
60
57
|
failure_reason: zod
|
|
61
58
|
.string()
|
|
62
59
|
.optional()
|
|
63
|
-
.describe("Why the payment
|
|
60
|
+
.describe("Why the payment 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."),
|
|
64
61
|
});
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
import * as zod from "zod";
|
|
34
34
|
export const PaymentStatus = zod
|
|
35
35
|
.enum(["succeeded", "processing", "requires_action", "failed"])
|
|
36
|
-
.describe("
|
|
36
|
+
.describe("`succeeded`: paid. `processing`: confirmation is pending; poll the invoice or order instead of paying again. `requires_action`: the customer must complete the returned action. `failed`: the attempt did not succeed, for the reason in failure_reason; a declined gateway payment is withdrawn, and paying again starts a new payment.");
|