@leaflow/sdk 0.0.0-dev.352.g85966ed → 0.0.0-dev.355.g42152f5
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 +379 -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 +2 -0
- package/dist/billing/type/order/v1/generated/validators/invoiceItem.zod.js +10 -4
- package/dist/billing/type/order/v1/generated/validators/invoiceItemList.zod.d.ts +2 -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.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/usageCharge.zod.js +8 -7
- package/dist/billing/type/order/v1/generated/validators/usageChargeList.zod.d.ts +1 -0
- 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 +429 -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 +2 -0
- package/dist/billing/v1/generated/validators/invoiceItem.zod.js +10 -4
- package/dist/billing/v1/generated/validators/invoiceItemList.zod.d.ts +2 -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.d.ts +1 -0
- package/dist/billing/v1/generated/validators/usageCharge.zod.js +8 -7
- package/dist/billing/v1/generated/validators/usageChargeList.zod.d.ts +1 -0
- 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/functions.d.ts +1 -1
- package/dist/canopy/v1/generated/functions.js +1 -1
- package/dist/canopy/v1/generated/models.d.ts +379 -779
- package/dist/canopy/v1/generated/models.js +12 -44
- package/dist/canopy/v1/generated/schemas.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/schemas.zod.js +1 -1
- 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 +2 -0
- package/dist/canopy/v1/generated/validators/invoiceItem.zod.js +10 -4
- package/dist/canopy/v1/generated/validators/invoiceItemList.zod.d.ts +2 -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.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/usageCharge.zod.js +8 -7
- package/dist/canopy/v1/generated/validators/usageChargeList.zod.d.ts +1 -0
- 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/functions.d.ts +15 -15
- package/dist/compute/v1/generated/functions.js +13 -13
- package/dist/compute/v1/generated/models.d.ts +37 -29
- package/dist/compute/v1/generated/models.js +6 -6
- package/dist/compute/v1/generated/schemas.zod.d.ts +69 -69
- package/dist/compute/v1/generated/schemas.zod.js +15 -15
- package/dist/compute/v1/generated/validators/allocateFloatingIPQuoteRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/allocateFloatingIPQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/allocateFloatingIPResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/allocateFloatingIPResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/attachDiskRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/attachDiskRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/attachFloatingIPRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/attachFloatingIPRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/attachPortRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/attachPortRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/backupCapacityPack.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/backupCapacityPack.zod.js +3 -3
- package/dist/compute/v1/generated/validators/backupCapacityPackListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/backupCapacityPackListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/backupListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/backupListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/backupOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/backupOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/backupResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/backupResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/backupService.zod.d.ts +10 -10
- package/dist/compute/v1/generated/validators/backupService.zod.js +7 -7
- package/dist/compute/v1/generated/validators/billingChoice.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/billingChoice.zod.js +6 -4
- package/dist/compute/v1/generated/validators/billingPeriod.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/billingPeriod.zod.js +2 -2
- package/dist/compute/v1/generated/validators/bindFloatingIPRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/bindFloatingIPRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/bootDisk.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/bootDisk.zod.js +2 -2
- package/dist/compute/v1/generated/validators/checkoutMode.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/checkoutMode.zod.js +2 -2
- package/dist/compute/v1/generated/validators/checkoutOptions.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/checkoutOptions.zod.js +2 -2
- package/dist/compute/v1/generated/validators/commandResultResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/commandResultResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/consoleOutputResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/consoleOutputResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/consoleResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/consoleResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createBackupCapacityPackQuoteRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/createBackupCapacityPackQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createBackupCapacityPackResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createBackupCapacityPackResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createBackupRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createBackupRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createBackupServiceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createBackupServiceRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.d.ts +9 -9
- package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createDiskQuoteRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/createDiskQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createDiskResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createDiskResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createImageQuoteRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/createImageQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createImageRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/createImageRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createImageResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createImageResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createPeeringRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createPeeringRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createPortRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createPortRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createPrivateNetworkRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createPrivateNetworkRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createRouteRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createRouteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createSecurityGroupRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createSecurityGroupRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createSecurityRuleRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createSecurityRuleRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createSnapshotRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createSnapshotRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createSubnetRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createSubnetRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/cursorPagination.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/cursorPagination.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskAttachment.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/diskAttachment.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskAttachmentList.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/diskAttachmentList.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/diskListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/diskOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/diskResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskTypePurpose.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/diskTypePurpose.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskTypeResource.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/diskTypeResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/error.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/error.zod.js +2 -2
- package/dist/compute/v1/generated/validators/existingBootDisk.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/existingBootDisk.zod.js +2 -2
- package/dist/compute/v1/generated/validators/floatingIPListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/floatingIPListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/floatingIPOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/floatingIPOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/floatingIPResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/floatingIPResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/funds.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/funds.zod.js +6 -6
- package/dist/compute/v1/generated/validators/getInstanceConsoleOutputParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/getInstanceConsoleOutputParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/iPv4Binding.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/iPv4Binding.zod.js +2 -2
- package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.d.ts +8 -8
- package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.d.ts +8 -8
- package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/iPv6ResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/iPv6ResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/imageListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/imageListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/imageOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/imageOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/imageResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/imageResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/imageVisibility.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/imageVisibility.zod.js +2 -2
- package/dist/compute/v1/generated/validators/instanceListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/instanceListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/instanceOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/instanceOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/instanceResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/instanceResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/instanceRestriction.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/instanceRestriction.zod.js +2 -2
- package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/instanceTypeResource.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/instanceTypeResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/launchInstanceQuoteRequestBody.zod.d.ts +11 -11
- package/dist/compute/v1/generated/validators/launchInstanceQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.d.ts +11 -11
- package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/launchInstanceResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/launchInstanceResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listAvailabilityZonesParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listAvailabilityZonesParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listBackupCapacityPacksParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listBackupCapacityPacksParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listBackupsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listBackupsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listDiskTypesParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listDiskTypesParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listDisksParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listDisksParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listFloatingIpsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listFloatingIpsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listImagesParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listImagesParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listInstanceDisksParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listInstanceDisksParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listInstancePortsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listInstancePortsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listInstanceTypesParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listInstanceTypesParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listInstancesParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listInstancesParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listIpv4PoolsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listIpv4PoolsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listOperationLogsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listOperationLogsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listPeeringsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listPeeringsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listPortsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listPortsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listPrivateNetworksParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listPrivateNetworksParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listRegionsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listRegionsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listRoutesParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listRoutesParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listSecurityGroupRulesParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listSecurityGroupRulesParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listSecurityGroupsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listSecurityGroupsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listSnapshotsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listSnapshotsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listSubnetsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listSubnetsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/money.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/money.zod.js +2 -2
- package/dist/compute/v1/generated/validators/newBootDisk.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/newBootDisk.zod.js +2 -2
- package/dist/compute/v1/generated/validators/newCompute.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/newCompute.zod.js +2 -2
- package/dist/compute/v1/generated/validators/newFloatingIP.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/newFloatingIP.zod.js +2 -2
- package/dist/compute/v1/generated/validators/nextFreeCidrResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/nextFreeCidrResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/offsetPagination.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/offsetPagination.zod.js +2 -2
- package/dist/compute/v1/generated/validators/operationLogListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/operationLogListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/operationLogResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/operationLogResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/peeringListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/peeringListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/peeringOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/peeringOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/peeringResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/peeringResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/placedOrder.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/placedOrder.zod.js +2 -2
- package/dist/compute/v1/generated/validators/portAddress.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/portAddress.zod.js +2 -2
- package/dist/compute/v1/generated/validators/portAttachment.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/portAttachment.zod.js +2 -2
- package/dist/compute/v1/generated/validators/portAttachmentList.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/portAttachmentList.zod.js +2 -2
- package/dist/compute/v1/generated/validators/portListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/portListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/portOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/portOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/portResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/portResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/powerRequest.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/powerRequest.zod.js +2 -2
- package/dist/compute/v1/generated/validators/pricing.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/pricing.zod.js +2 -2
- package/dist/compute/v1/generated/validators/pricingOption.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/pricingOption.zod.js +12 -10
- package/dist/compute/v1/generated/validators/privateNetworkListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/privateNetworkListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/privateNetworkResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/privateNetworkResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/quote.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/quote.zod.js +2 -2
- package/dist/compute/v1/generated/validators/quoteItem.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/quoteItem.zod.js +2 -2
- package/dist/compute/v1/generated/validators/rebootInstanceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/rebootInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/rebuildInstanceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/rebuildInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/rebuildInstanceResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/rebuildInstanceResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/regionListResponseBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/regionListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/regionResource.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/regionResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/releaseResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/releaseResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/releaseSetItem.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/releaseSetItem.zod.js +2 -2
- package/dist/compute/v1/generated/validators/renameBackupRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/renameBackupRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/renameDiskRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/renameDiskRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/renameImageRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/renameImageRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/renameInstanceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/renameInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/renamePrivateNetworkRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/renamePrivateNetworkRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/renameSecurityGroupRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/renameSecurityGroupRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/renameSnapshotRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/renameSnapshotRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resetPasswordRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resetPasswordRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resetPasswordResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resetPasswordResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeDiskQuoteRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resizeDiskQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeDiskRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resizeDiskRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeDiskResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resizeDiskResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeInstanceQuoteRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resizeInstanceQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeInstanceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resizeInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeInstanceResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resizeInstanceResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/restoreBackupQuoteRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/restoreBackupQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/revertDiskRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/revertDiskRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/routeListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/routeListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/routeResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/routeResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/runCommandRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/runCommandRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/securityGroupListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/securityGroupListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/securityGroupResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/securityGroupResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/securityRuleListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/securityRuleListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/securityRuleResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/securityRuleResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthQuoteRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setInstanceLabelsRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/setInstanceLabelsRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setInstanceNotesRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/setInstanceNotesRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setSnapshotQuotaQuoteRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/setSnapshotQuotaQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.d.ts +8 -8
- package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/snapshotListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/snapshotListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/snapshotOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/snapshotOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/snapshotQuota.zod.d.ts +8 -8
- package/dist/compute/v1/generated/validators/snapshotQuota.zod.js +2 -2
- package/dist/compute/v1/generated/validators/snapshotResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/snapshotResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/subnetListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/subnetListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/subnetResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/subnetResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/suggestSubnetCidrParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/suggestSubnetCidrParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/terminationPolicy.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/terminationPolicy.zod.js +2 -2
- package/dist/compute/v1/generated/validators/zoneListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/zoneListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/zoneResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/zoneResource.zod.js +2 -2
- package/dist/membership/v1/generated/models.d.ts +379 -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 +2 -0
- package/dist/membership/v1/generated/validators/invoiceItem.zod.js +10 -4
- package/dist/membership/v1/generated/validators/invoiceItemList.zod.d.ts +2 -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.d.ts +1 -0
- package/dist/membership/v1/generated/validators/usageCharge.zod.js +8 -7
- package/dist/membership/v1/generated/validators/usageChargeList.zod.d.ts +1 -0
- 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
|
@@ -300,12 +300,7 @@ export interface MembershipList {
|
|
|
300
300
|
pagination: OffsetPagination;
|
|
301
301
|
}
|
|
302
302
|
/**
|
|
303
|
-
*
|
|
304
|
-
* the discount is applied and it is issued; other drafts are private to administrators.
|
|
305
|
-
* An issued invoice is open until settled; a zero-total issued invoice is immediately paid.
|
|
306
|
-
* Unbilled usage remains separate from invoices until it is invoiced.
|
|
307
|
-
* A refund does not change the status: a paid invoice stays paid, with the refunded part in
|
|
308
|
-
* amount_refunded. void means collection has stopped and any funds received have been returned.
|
|
303
|
+
* `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.
|
|
309
304
|
*/
|
|
310
305
|
export type InvoiceStatus = (typeof InvoiceStatus)[keyof typeof InvoiceStatus];
|
|
311
306
|
export declare const InvoiceStatus: {
|
|
@@ -313,13 +308,9 @@ export declare const InvoiceStatus: {
|
|
|
313
308
|
readonly open: "open";
|
|
314
309
|
readonly paid: "paid";
|
|
315
310
|
readonly void: "void";
|
|
316
|
-
readonly uncollectible: "uncollectible";
|
|
317
311
|
};
|
|
318
312
|
/**
|
|
319
|
-
*
|
|
320
|
-
* has an invoice from placement. A draft shows base prices until it is paid, when the discount is
|
|
321
|
-
* applied and it is issued; a zero-total invoice is issued and paid at placement whatever the
|
|
322
|
-
* checkout mode. Neither establishes acceptance or delivery.
|
|
313
|
+
* 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.
|
|
323
314
|
*/
|
|
324
315
|
export interface InvoiceSummary {
|
|
325
316
|
id: string;
|
|
@@ -337,9 +328,9 @@ export interface InvoiceSummary {
|
|
|
337
328
|
tax_amount: string;
|
|
338
329
|
total: string;
|
|
339
330
|
amount_paid: string;
|
|
340
|
-
/** Issued
|
|
331
|
+
/** Issued credit notes that reduced unpaid receivables; the original invoice total is unchanged. */
|
|
341
332
|
pre_payment_credit_notes_amount: Money;
|
|
342
|
-
/** Issued credit notes against payments already received
|
|
333
|
+
/** Issued credit notes against payments already received; their refunds may not have completed. */
|
|
343
334
|
post_payment_credit_notes_amount: Money;
|
|
344
335
|
/**
|
|
345
336
|
* What is still collectible after unpaid credit notes and successful payments; never below zero.
|
|
@@ -445,7 +436,7 @@ export declare const WithdrawalItemStatus: {
|
|
|
445
436
|
readonly reversed: "reversed";
|
|
446
437
|
};
|
|
447
438
|
/**
|
|
448
|
-
* The original top-up and its refund
|
|
439
|
+
* The original top-up and where its refund goes. Card details are included when the original payment method was saved.
|
|
449
440
|
*/
|
|
450
441
|
export interface WithdrawalSource {
|
|
451
442
|
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
@@ -463,7 +454,7 @@ export interface WithdrawalSource {
|
|
|
463
454
|
card_last4?: string;
|
|
464
455
|
}
|
|
465
456
|
/**
|
|
466
|
-
*
|
|
457
|
+
* For one original top-up: the principal deducted, the withdrawal fee and the amount refunded, through its own refund. payment_gateway and method_type identify the original route.
|
|
467
458
|
*/
|
|
468
459
|
export interface WithdrawalItem {
|
|
469
460
|
source_transaction_id: string;
|
|
@@ -488,7 +479,7 @@ export interface WithdrawalItem {
|
|
|
488
479
|
payment_gateway: string;
|
|
489
480
|
method_type: string;
|
|
490
481
|
source: WithdrawalSource;
|
|
491
|
-
/** The
|
|
482
|
+
/** The gateway's failure code when a refund failed, or `refund_reversed` when a completed refund was reversed. Absent while pending or successful. */
|
|
492
483
|
failure_code?: string;
|
|
493
484
|
}
|
|
494
485
|
export type WithdrawalStatus = (typeof WithdrawalStatus)[keyof typeof WithdrawalStatus];
|
|
@@ -501,7 +492,7 @@ export declare const WithdrawalStatus: {
|
|
|
501
492
|
readonly reversed: "reversed";
|
|
502
493
|
};
|
|
503
494
|
/**
|
|
504
|
-
*
|
|
495
|
+
* A withdrawal of account balance to the original payment methods of its unused top-ups. Accepted amounts are fixed. deducted_amount, settled_amount and charged_fee_amount cover completed items. A failed item releases its principal and fee; successful items stand when another item fails.
|
|
505
496
|
*/
|
|
506
497
|
export interface Withdrawal {
|
|
507
498
|
id: string;
|
|
@@ -526,7 +517,7 @@ export interface Withdrawal {
|
|
|
526
517
|
status: WithdrawalStatus;
|
|
527
518
|
created_at: string;
|
|
528
519
|
completed_at?: string;
|
|
529
|
-
/**
|
|
520
|
+
/** Who submitted the withdrawal; may differ from the account owner. */
|
|
530
521
|
created_by?: string;
|
|
531
522
|
}
|
|
532
523
|
export interface WithdrawalPreviewItem {
|
|
@@ -584,7 +575,7 @@ export interface WithdrawalItemList {
|
|
|
584
575
|
pagination: OffsetPagination;
|
|
585
576
|
}
|
|
586
577
|
/**
|
|
587
|
-
* Whether a
|
|
578
|
+
* 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.
|
|
588
579
|
*/
|
|
589
580
|
export type TerminationPolicy = (typeof TerminationPolicy)[keyof typeof TerminationPolicy];
|
|
590
581
|
export declare const TerminationPolicy: {
|
|
@@ -592,16 +583,7 @@ export declare const TerminationPolicy: {
|
|
|
592
583
|
readonly period_end: "period_end";
|
|
593
584
|
};
|
|
594
585
|
/**
|
|
595
|
-
* none refunds nothing. prorated refunds the amount paid for the current period minus the value of
|
|
596
|
-
* the time used, never below zero and never more than what remains unrefunded. The time used runs
|
|
597
|
-
* from the period start to the effective cancellation time and is valued at the plan's
|
|
598
|
-
* shorter-period prices in the same currency, frozen at purchase as the order item's
|
|
599
|
-
* refund_monthly_amount and refund_hourly_amount: each full calendar month at the one-month prepaid
|
|
600
|
-
* price, the remainder at the postpaid hourly price or, without one, at the one-month price by the
|
|
601
|
-
* second. When the plan has no prepaid period shorter than the one bought, the time used is valued
|
|
602
|
-
* at the price paid, pro rata by the second. Discounts are not refunded, as they were never paid,
|
|
603
|
-
* and setup fees are excluded. The refunded part returns to the payment sources it came from. Tax
|
|
604
|
-
* paid is refunded in the same proportion as the amount it was paid on.
|
|
586
|
+
* `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.
|
|
605
587
|
*/
|
|
606
588
|
export type RefundPolicy = (typeof RefundPolicy)[keyof typeof RefundPolicy];
|
|
607
589
|
export declare const RefundPolicy: {
|
|
@@ -623,7 +605,7 @@ export declare const QuoteRenewalInterval: {
|
|
|
623
605
|
readonly year: "year";
|
|
624
606
|
};
|
|
625
607
|
/**
|
|
626
|
-
* Price renewing a
|
|
608
|
+
* Price renewing a licensed subscription. Give `price_id`, or `interval` with
|
|
627
609
|
* `interval_count`, to renew for another term at the price currently sold for it. Naming
|
|
628
610
|
* the current term, or giving neither, renews at the agreed amount. A term sold at several
|
|
629
611
|
* prices that differ in termination policy is refused with 409
|
|
@@ -651,9 +633,7 @@ export declare const QuoteRenewalResultInterval: {
|
|
|
651
633
|
readonly year: "year";
|
|
652
634
|
};
|
|
653
635
|
/**
|
|
654
|
-
* What renewing would charge. Renewing the same subscription for the same term and
|
|
655
|
-
* of periods charges exactly `total`, unless prices or the discounts the account holds
|
|
656
|
-
* change in between.
|
|
636
|
+
* What renewing would charge. Renewing the same subscription for the same term and periods charges exactly `total` unless prices or the account's discounts change first.
|
|
657
637
|
*/
|
|
658
638
|
export interface QuoteRenewalResult {
|
|
659
639
|
/** Which renewal of the request this answers. */
|
|
@@ -664,11 +644,7 @@ export interface QuoteRenewalResult {
|
|
|
664
644
|
interval: QuoteRenewalResultInterval;
|
|
665
645
|
interval_count: number;
|
|
666
646
|
periods: number;
|
|
667
|
-
/**
|
|
668
|
-
* The price of the periods before the discounts the account holds. A discount the
|
|
669
|
-
* subscription already carries is reflected here. Contains tax only where the price
|
|
670
|
-
* itself includes it.
|
|
671
|
-
*/
|
|
647
|
+
/** The price of the periods before the account's discounts, with any discount the subscription carries already reflected; includes tax only where the price does. */
|
|
672
648
|
amount: Money;
|
|
673
649
|
/** The reduction from a discount the account holds. */
|
|
674
650
|
discount_amount: Money;
|
|
@@ -683,25 +659,25 @@ export interface QuoteRenewalResult {
|
|
|
683
659
|
total: Money;
|
|
684
660
|
}
|
|
685
661
|
/**
|
|
686
|
-
* One fully calculated purchase, estimated
|
|
662
|
+
* One fully calculated purchase, estimated metered usage or recorded order item. Amounts use the
|
|
687
663
|
* billing-account currency. An item with no immediate charge has zero checkout amounts.
|
|
688
664
|
*/
|
|
689
665
|
export interface QuoteItem {
|
|
690
666
|
tax_amount: Money;
|
|
691
667
|
tax_included_amount: Money;
|
|
692
668
|
/**
|
|
693
|
-
*
|
|
669
|
+
* The zero-based request line index, or the recorded order item's position for an order quote.
|
|
694
670
|
* @minimum 0
|
|
695
671
|
*/
|
|
696
672
|
index: number;
|
|
697
673
|
/** Present for an existing order quote; identifies the recorded item being priced. */
|
|
698
674
|
order_item_id?: string;
|
|
699
|
-
/** The selected price,
|
|
675
|
+
/** The selected price, also when the request identified it indirectly. */
|
|
700
676
|
price_id: string;
|
|
701
677
|
plan_name: string;
|
|
702
678
|
/** Unit price before discounts. Null when no single unit price applies, such as tiered or multiple-rate pricing. */
|
|
703
679
|
unit_amount: Money | null;
|
|
704
|
-
/** The quantity priced
|
|
680
|
+
/** The quantity priced; with duration_seconds, quantity times the duration. */
|
|
705
681
|
quantity: string;
|
|
706
682
|
/** Amount before discounts and including any setup charge. For requested future usage this is an estimate, not a collectible checkout amount. */
|
|
707
683
|
amount: Money;
|
|
@@ -712,16 +688,16 @@ export interface QuoteItem {
|
|
|
712
688
|
/**
|
|
713
689
|
* Account funding for this purchase, calculated by Billing. Amounts use the enclosing response currency.
|
|
714
690
|
* Credit eligibility and all purchase requirements are already evaluated. Nothing is charged or reserved.
|
|
715
|
-
* A
|
|
691
|
+
* A licensed purchase may instead be paid with an online payment method.
|
|
716
692
|
*/
|
|
717
693
|
export interface Funds {
|
|
718
694
|
/** Spendable balance after pending returns. */
|
|
719
695
|
available_balance_amount: Money;
|
|
720
|
-
/** Currently effective credits eligible for the quoted purchases or
|
|
696
|
+
/** Currently effective credits eligible for the quoted purchases or metered usage. Each grant is counted once. */
|
|
721
697
|
usable_credit_amount: Money;
|
|
722
|
-
/** Currently effective credits that cannot fund any quoted purchase or
|
|
698
|
+
/** Currently effective credits that cannot fund any quoted purchase or metered target. Unused eligible credits are not restricted. */
|
|
723
699
|
restricted_credit_amount: Money;
|
|
724
|
-
/** Minimum spendable balance needed after eligible credits, covering immediate charges and every new
|
|
700
|
+
/** Minimum spendable balance needed after eligible credits, covering immediate charges and every new metered purchase's admission requirement. */
|
|
725
701
|
required_balance_amount: Money;
|
|
726
702
|
/** Additional balance needed now. Zero means account funds satisfy this quote. No funds are reserved. */
|
|
727
703
|
balance_shortfall_amount: Money;
|
|
@@ -734,8 +710,7 @@ export declare const QuotedDiscountType: {
|
|
|
734
710
|
readonly account_discount: "account_discount";
|
|
735
711
|
};
|
|
736
712
|
/**
|
|
737
|
-
* The discount selected for this calculation.
|
|
738
|
-
* reserve a redemption. Discount amounts are reported on the quote and its lines.
|
|
713
|
+
* The discount selected for this calculation, not applied and not reserved. Amounts are on the quote and its lines.
|
|
739
714
|
*/
|
|
740
715
|
export interface QuotedDiscount {
|
|
741
716
|
type: QuotedDiscountType;
|
|
@@ -748,30 +723,35 @@ export interface QuotedDiscount {
|
|
|
748
723
|
*/
|
|
749
724
|
promotion_code: string | null;
|
|
750
725
|
}
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
726
|
+
/**
|
|
727
|
+
* `one_time` charges once when bought. `recurring` charges again for every period, or for usage as it is settled.
|
|
728
|
+
*/
|
|
729
|
+
export type PriceType = (typeof PriceType)[keyof typeof PriceType];
|
|
730
|
+
export declare const PriceType: {
|
|
755
731
|
readonly one_time: "one_time";
|
|
732
|
+
readonly recurring: "recurring";
|
|
756
733
|
};
|
|
757
734
|
/**
|
|
758
|
-
*
|
|
735
|
+
* `licensed` charges for the quantity bought, each period paid before it starts. `metered` charges for the usage
|
|
736
|
+
* reported, after it is settled; a metered subscription lasts until it is canceled. A one-time price is licensed.
|
|
737
|
+
*/
|
|
738
|
+
export type UsageType = (typeof UsageType)[keyof typeof UsageType];
|
|
739
|
+
export declare const UsageType: {
|
|
740
|
+
readonly licensed: "licensed";
|
|
741
|
+
readonly metered: "metered";
|
|
742
|
+
};
|
|
743
|
+
/**
|
|
744
|
+
* One subscription of the quoted cancellation.
|
|
759
745
|
*/
|
|
760
746
|
export interface CancellationRefundPreviewItem {
|
|
761
747
|
subscription_id: string;
|
|
762
748
|
plan_id: string;
|
|
763
749
|
plan_name: string;
|
|
764
|
-
/**
|
|
765
|
-
* The project and its current name, for display. Absent for a purchase at account level, and when the
|
|
766
|
-
* project details cannot be read at the moment.
|
|
767
|
-
*/
|
|
750
|
+
/** The project and its current name. Absent for an account-level purchase or when the project cannot be read. */
|
|
768
751
|
project?: NamedIdentity | null;
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
* cancellation does not turn it back on for a prepaid subscription; a postpaid subscription continues
|
|
773
|
-
* until it is canceled and turns it back on.
|
|
774
|
-
*/
|
|
752
|
+
type: PriceType;
|
|
753
|
+
usage_type: UsageType;
|
|
754
|
+
/** Whether automatic renewal is on now. Creating the cancellation turns it off; withdrawing it turns it back on for a metered subscription but not for a licensed one. */
|
|
775
755
|
auto_renew: boolean;
|
|
776
756
|
unused_amount: Money;
|
|
777
757
|
refundable_amount: Money;
|
|
@@ -781,19 +761,19 @@ export interface CancellationRefundPreviewItem {
|
|
|
781
761
|
forfeited_amount: Money;
|
|
782
762
|
}
|
|
783
763
|
/**
|
|
784
|
-
* What the cancellation would return,
|
|
785
|
-
* `
|
|
764
|
+
* What the cancellation would return, per subscription and in total, as of now. Give `proration_date` and
|
|
765
|
+
* `refundable_amount` when creating the cancellation.
|
|
786
766
|
*
|
|
787
|
-
* - `unused_amount`: before tax, the amount paid for the current periods minus the value of the
|
|
788
|
-
*
|
|
789
|
-
* - `refundable_amount`: what is returned the way it was paid,
|
|
790
|
-
* `
|
|
791
|
-
* - `refund_amount`: the part returned to the balance or
|
|
767
|
+
* - `unused_amount`: before tax, the amount paid for the current periods minus the value of the time used,
|
|
768
|
+
* valued as refund policy `prorated` describes, whatever the refund terms say.
|
|
769
|
+
* - `refundable_amount`: what is returned the way it was paid, tax included; `refund_amount` plus
|
|
770
|
+
* `credit_amount`.
|
|
771
|
+
* - `refund_amount`: the part returned to the balance or the payment method.
|
|
792
772
|
* - `credit_amount`: the part restored to the credit grants that paid.
|
|
793
773
|
* - `tax_amount`: the tax included in `refundable_amount`.
|
|
794
774
|
* - `forfeited_amount`: before tax, the part of `unused_amount` the refund terms do not return.
|
|
795
775
|
*
|
|
796
|
-
*
|
|
776
|
+
* Metered and one-time subscriptions show zero; their usage until release is charged as usual.
|
|
797
777
|
*/
|
|
798
778
|
export interface CancellationRefundPreview {
|
|
799
779
|
mode: TerminationPolicy;
|
|
@@ -811,11 +791,7 @@ export interface CancellationRefundPreview {
|
|
|
811
791
|
items: CancellationRefundPreviewItem[];
|
|
812
792
|
}
|
|
813
793
|
/**
|
|
814
|
-
* An estimated refund to original payment sources. Before acceptance, cancellation returns the
|
|
815
|
-
* collected amount. For delivered service, only value funded by this order is included; renewals
|
|
816
|
-
* are evaluated under their own orders and the agreed termination terms apply. An unknown
|
|
817
|
-
* delivery outcome is not evidence that a refund is eligible. This calculation does not create
|
|
818
|
-
* a refund; the amount returned is determined when cancellation or termination is confirmed.
|
|
794
|
+
* 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.
|
|
819
795
|
*/
|
|
820
796
|
export interface OrderRefundQuote {
|
|
821
797
|
order_id: string;
|
|
@@ -825,21 +801,15 @@ export interface OrderRefundQuote {
|
|
|
825
801
|
currency: string;
|
|
826
802
|
}
|
|
827
803
|
/**
|
|
828
|
-
* A complete calculation in
|
|
829
|
-
* redemptions. The request fails if any item cannot be priced. Requested future usage estimates are
|
|
830
|
-
* included in totals for reporting and are not collectible at checkout. Only an existing-order quote
|
|
831
|
-
* provides that order's checkout amount.
|
|
804
|
+
* A complete calculation in the billing account's currency; nothing is saved or reserved. The request fails if any item cannot be priced. Usage estimates are included in totals but are not collected at checkout; only an existing-order quote gives that order's checkout amount.
|
|
832
805
|
*/
|
|
833
806
|
export interface Quote {
|
|
834
|
-
/** Account
|
|
807
|
+
/** Account funds for an existing-order checkout quote. Absent for usage estimates, refunds and cancellations. */
|
|
835
808
|
funds?: Funds;
|
|
836
809
|
subtotal: Money;
|
|
837
810
|
discount_amount: Money;
|
|
838
811
|
tax_amount: Money;
|
|
839
|
-
/**
|
|
840
|
-
* The discount evaluated for a purchase or order, without applying it. Null when none is selected or
|
|
841
|
-
* when quoting renewals or a cancellation. A confirmed order reports its recorded discount.
|
|
842
|
-
*/
|
|
812
|
+
/** The discount a purchase or order would get, not yet applied. Null when there is none, and for renewals and cancellations. A confirmed order reports its recorded discount. */
|
|
843
813
|
discount: QuotedDiscount | null;
|
|
844
814
|
items: QuoteItem[];
|
|
845
815
|
renewals: QuoteRenewalResult[];
|
|
@@ -847,20 +817,15 @@ export interface Quote {
|
|
|
847
817
|
cancellation?: CancellationRefundPreview;
|
|
848
818
|
total: Money;
|
|
849
819
|
currency: string;
|
|
850
|
-
/** Present
|
|
820
|
+
/** Present when an order refund was requested. */
|
|
851
821
|
refund?: OrderRefundQuote;
|
|
852
822
|
}
|
|
853
823
|
/**
|
|
854
|
-
* A cancellation to quote: what ending these subscriptions together would return
|
|
855
|
-
* request; to compare, quote `immediate` and `period_end` separately.
|
|
856
|
-
*
|
|
857
|
-
* Refused with 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` when a subscription is already being
|
|
858
|
-
* canceled (`meta.cancellation_id`), is being reclaimed (`meta.reason` `reclaim_requested`) or has a
|
|
859
|
-
* paid change still waiting to switch (`meta.order_id`).
|
|
824
|
+
* A cancellation to quote: what ending these subscriptions together would return, for one mode; quote `immediate` and `period_end` separately to compare. Refused with 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` when a subscription is already being canceled (`meta.cancellation_id`), is being reclaimed (`meta.reason` `reclaim_requested`) or has a paid change waiting to switch (`meta.order_id`).
|
|
860
825
|
*/
|
|
861
826
|
export interface QuoteCancellation {
|
|
862
827
|
/**
|
|
863
|
-
* The subscriptions to end together, all of one service
|
|
828
|
+
* The subscriptions to end together, all of one service, including every subscription released with a resource.
|
|
864
829
|
* @minItems 1
|
|
865
830
|
* @maxItems 50
|
|
866
831
|
*/
|
|
@@ -875,15 +840,12 @@ export interface CancellationCreate {
|
|
|
875
840
|
*/
|
|
876
841
|
subscription_ids: string[];
|
|
877
842
|
mode: TerminationPolicy;
|
|
878
|
-
/**
|
|
879
|
-
* For `immediate`, the `proration_date` of the quote: a whole second, not in the future and
|
|
880
|
-
* at most ten minutes old. The refund is computed as of it. Now when omitted.
|
|
881
|
-
*/
|
|
843
|
+
/** For `immediate`, the quote's `proration_date`: a whole second, not in the future and at most ten minutes old; the refund is computed as of it. Now when omitted. */
|
|
882
844
|
proration_date?: string;
|
|
883
|
-
/** The `refundable_amount
|
|
845
|
+
/** The quote's `refundable_amount`; the cancellation is refused when the refund differs. */
|
|
884
846
|
expected_refundable_amount: Money & string;
|
|
885
847
|
/**
|
|
886
|
-
* A note from the account holder
|
|
848
|
+
* A note from the account holder, kept with the cancellation.
|
|
887
849
|
* @maxLength 1024
|
|
888
850
|
*/
|
|
889
851
|
reason?: string;
|
|
@@ -898,7 +860,7 @@ export declare const CancellationStatus: {
|
|
|
898
860
|
readonly failed: "failed";
|
|
899
861
|
};
|
|
900
862
|
/**
|
|
901
|
-
* Who
|
|
863
|
+
* Who requested it; `project_deletion` means the project was deleted.
|
|
902
864
|
*/
|
|
903
865
|
export type CancellationOrigin = (typeof CancellationOrigin)[keyof typeof CancellationOrigin];
|
|
904
866
|
export declare const CancellationOrigin: {
|
|
@@ -906,17 +868,6 @@ export declare const CancellationOrigin: {
|
|
|
906
868
|
readonly operator: "operator";
|
|
907
869
|
readonly project_deletion: "project_deletion";
|
|
908
870
|
};
|
|
909
|
-
/**
|
|
910
|
-
* How the subscription is charged. Creating the cancellation turned automatic renewal off;
|
|
911
|
-
* withdrawing it turns renewal back on for a `postpaid` subscription and leaves it off for a
|
|
912
|
-
* `prepaid` one.
|
|
913
|
-
*/
|
|
914
|
-
export type CancellationItemChargeType = (typeof CancellationItemChargeType)[keyof typeof CancellationItemChargeType];
|
|
915
|
-
export declare const CancellationItemChargeType: {
|
|
916
|
-
readonly postpaid: "postpaid";
|
|
917
|
-
readonly prepaid: "prepaid";
|
|
918
|
-
readonly one_time: "one_time";
|
|
919
|
-
};
|
|
920
871
|
export type CancellationItemStatus = (typeof CancellationItemStatus)[keyof typeof CancellationItemStatus];
|
|
921
872
|
export declare const CancellationItemStatus: {
|
|
922
873
|
readonly requested: "requested";
|
|
@@ -930,19 +881,19 @@ export declare const CancellationItemStatus: {
|
|
|
930
881
|
* One subscription of the cancellation.
|
|
931
882
|
*/
|
|
932
883
|
export interface CancellationItem {
|
|
933
|
-
/** The cancellation item
|
|
884
|
+
/** The subscription's cancellation item, the same as `Subscription.cancellation.id`. */
|
|
934
885
|
id: string;
|
|
935
886
|
subscription_id: string;
|
|
936
887
|
plan_id: string;
|
|
937
888
|
plan_name: string;
|
|
889
|
+
type: PriceType;
|
|
938
890
|
/**
|
|
939
|
-
*
|
|
940
|
-
*
|
|
941
|
-
* `prepaid` one.
|
|
891
|
+
* Creating the cancellation turned automatic renewal off; withdrawing it turns renewal back on
|
|
892
|
+
* for a `metered` subscription and leaves it off for a `licensed` one.
|
|
942
893
|
*/
|
|
943
|
-
|
|
894
|
+
usage_type: UsageType;
|
|
944
895
|
status: CancellationItemStatus;
|
|
945
|
-
/**
|
|
896
|
+
/** The release stopped or its result is unknown; present while the release needs resolution. */
|
|
946
897
|
failure_code?: string;
|
|
947
898
|
release_started_at?: string;
|
|
948
899
|
/** When the service ended, as confirmed by the service that provides it. */
|
|
@@ -972,20 +923,14 @@ export interface Cancellation {
|
|
|
972
923
|
scheduled_at?: string;
|
|
973
924
|
/** For `immediate`, the second the refund is computed as of. */
|
|
974
925
|
proration_date?: string;
|
|
975
|
-
/** Who
|
|
926
|
+
/** Who requested it; `project_deletion` means the project was deleted. */
|
|
976
927
|
origin: CancellationOrigin;
|
|
977
|
-
/**
|
|
978
|
-
* The billing account that paid for these subscriptions when the cancellation was created: the
|
|
979
|
-
* account of an account-level purchase, or the account the project was linked to.
|
|
980
|
-
*/
|
|
928
|
+
/** The billing account paying for these subscriptions when the cancellation was created: the purchasing account of an account-level purchase, or the project's linked account. */
|
|
981
929
|
billing_account_id: number;
|
|
982
930
|
currency: string;
|
|
983
|
-
/** The refund confirmed when
|
|
931
|
+
/** The refund confirmed when the cancellation was created. Absent when the platform created it. */
|
|
984
932
|
expected_refundable_amount?: Money;
|
|
985
|
-
/**
|
|
986
|
-
* Present with `failed`. A code of the service that provides the resources, such as a disk
|
|
987
|
-
* that can only be released with its server. Clients map it to their own wording.
|
|
988
|
-
*/
|
|
933
|
+
/** Present with `failed`: the owning service's code, such as for a disk that can only be released with its server. */
|
|
989
934
|
failure_code?: string;
|
|
990
935
|
requested_at: string;
|
|
991
936
|
completed_at?: string;
|
|
@@ -1011,13 +956,11 @@ export declare const SubscriptionCancellationMode: {
|
|
|
1011
956
|
readonly period_end: "period_end";
|
|
1012
957
|
};
|
|
1013
958
|
/**
|
|
1014
|
-
* The latest cancellation
|
|
1015
|
-
* item; `cancellation_id` is the cancellation. scheduled_at is the intended time; effective_at is the
|
|
1016
|
-
* confirmed end of service. A cancellation alone does not stop metering or issue a refund.
|
|
959
|
+
* 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.
|
|
1017
960
|
*/
|
|
1018
961
|
export interface SubscriptionCancellation {
|
|
1019
962
|
reason?: string;
|
|
1020
|
-
/** The cancellation this
|
|
963
|
+
/** The cancellation this item belongs to, with the other subscriptions released together. */
|
|
1021
964
|
cancellation_id?: string;
|
|
1022
965
|
id: string;
|
|
1023
966
|
subscription_id: string;
|
|
@@ -1035,7 +978,7 @@ export interface SubscriptionCancellation {
|
|
|
1035
978
|
}
|
|
1036
979
|
export type ErrorA200529 = Error;
|
|
1037
980
|
/**
|
|
1038
|
-
*
|
|
981
|
+
* The platform service's fixed identifier, such as compute, canopy or assistant.
|
|
1039
982
|
* @minLength 1
|
|
1040
983
|
* @maxLength 64
|
|
1041
984
|
* @pattern ^[a-z][a-z0-9]*(-[a-z0-9]+)*$
|
|
@@ -1054,29 +997,22 @@ export declare const BillingAccountStatus: {
|
|
|
1054
997
|
};
|
|
1055
998
|
export interface BillingAccount {
|
|
1056
999
|
/**
|
|
1057
|
-
* The active contact used for
|
|
1000
|
+
* The active contact used for invoices, of this account; null clears it.
|
|
1058
1001
|
* @nullable
|
|
1059
1002
|
*/
|
|
1060
1003
|
invoice_contact_id?: string | null;
|
|
1061
1004
|
id: number;
|
|
1062
|
-
/**
|
|
1005
|
+
/** Your name for the account. */
|
|
1063
1006
|
name?: string;
|
|
1064
1007
|
/** Fixed when the account was opened. */
|
|
1065
1008
|
currency: string;
|
|
1066
1009
|
status: BillingAccountStatus;
|
|
1067
|
-
/**
|
|
1068
|
-
* How far past the suspension threshold this account may go before its resources are
|
|
1069
|
-
* suspended. "0" means none: the account is suspended as soon as it crosses the threshold.
|
|
1070
|
-
*/
|
|
1010
|
+
/** How far past the suspension threshold the account may go before its resources are suspended; `0` means none. */
|
|
1071
1011
|
grace_amount?: string;
|
|
1072
|
-
/**
|
|
1073
|
-
* How long this account has to top up after crossing the suspension threshold.
|
|
1074
|
-
* 0 means none. Whichever runs out first — this or grace_amount — ends the grace.
|
|
1075
|
-
*/
|
|
1012
|
+
/** How long the account has to top up after crossing the suspension threshold, in seconds; `0` means none. Grace ends when this or grace_amount runs out. */
|
|
1076
1013
|
grace_period_seconds?: number;
|
|
1077
1014
|
/**
|
|
1078
|
-
*
|
|
1079
|
-
* Null or absent if the account is not closed or its historical close time is unknown.
|
|
1015
|
+
* When the account was closed. Null if it is not closed or the time is unknown.
|
|
1080
1016
|
* @nullable
|
|
1081
1017
|
*/
|
|
1082
1018
|
readonly closed_at?: string | null;
|
|
@@ -1093,7 +1029,7 @@ export interface Currency6ff0ec7 {
|
|
|
1093
1029
|
*/
|
|
1094
1030
|
code: string;
|
|
1095
1031
|
/**
|
|
1096
|
-
* Decimal places of the
|
|
1032
|
+
* Decimal places of the ISO 4217 minor unit.
|
|
1097
1033
|
* @minimum 0
|
|
1098
1034
|
* @maximum 4
|
|
1099
1035
|
*/
|
|
@@ -1121,7 +1057,7 @@ export interface BillingAccountCreate {
|
|
|
1121
1057
|
}
|
|
1122
1058
|
export interface BillingAccountUpdate {
|
|
1123
1059
|
/**
|
|
1124
|
-
* The active contact used for
|
|
1060
|
+
* The active contact used for invoices, of this account; null clears it.
|
|
1125
1061
|
* @nullable
|
|
1126
1062
|
*/
|
|
1127
1063
|
invoice_contact_id?: string | null;
|
|
@@ -1133,7 +1069,7 @@ export interface BillingAccountList {
|
|
|
1133
1069
|
pagination: OffsetPagination;
|
|
1134
1070
|
}
|
|
1135
1071
|
/**
|
|
1136
|
-
* A plan
|
|
1072
|
+
* A plan referenced by an applicability; active is false once it is archived, and the reference still applies.
|
|
1137
1073
|
*/
|
|
1138
1074
|
export interface ApplicablePlan {
|
|
1139
1075
|
id: string;
|
|
@@ -1141,24 +1077,20 @@ export interface ApplicablePlan {
|
|
|
1141
1077
|
active: boolean;
|
|
1142
1078
|
}
|
|
1143
1079
|
/**
|
|
1144
|
-
* A catalog object inlined for display.
|
|
1080
|
+
* A catalog object, inlined for display.
|
|
1145
1081
|
*/
|
|
1146
1082
|
export interface ObjectIdentity {
|
|
1147
1083
|
lookup_key?: string;
|
|
1148
1084
|
id: string;
|
|
1149
1085
|
name: string;
|
|
1150
1086
|
}
|
|
1151
|
-
|
|
1152
|
-
|
|
1087
|
+
/**
|
|
1088
|
+
* `per_unit` multiplies a unit amount; `tiered` walks a ladder.
|
|
1089
|
+
*/
|
|
1090
|
+
export type BillingScheme = (typeof BillingScheme)[keyof typeof BillingScheme];
|
|
1091
|
+
export declare const BillingScheme: {
|
|
1153
1092
|
readonly per_unit: "per_unit";
|
|
1154
1093
|
readonly tiered: "tiered";
|
|
1155
|
-
readonly rated: "rated";
|
|
1156
|
-
};
|
|
1157
|
-
export type PriceOptionType = (typeof PriceOptionType)[keyof typeof PriceOptionType];
|
|
1158
|
-
export declare const PriceOptionType: {
|
|
1159
|
-
readonly postpaid: "postpaid";
|
|
1160
|
-
readonly prepaid: "prepaid";
|
|
1161
|
-
readonly one_time: "one_time";
|
|
1162
1094
|
};
|
|
1163
1095
|
export type PriceOptionInterval = (typeof PriceOptionInterval)[keyof typeof PriceOptionInterval];
|
|
1164
1096
|
export declare const PriceOptionInterval: {
|
|
@@ -1168,16 +1100,18 @@ export declare const PriceOptionInterval: {
|
|
|
1168
1100
|
readonly year: "year";
|
|
1169
1101
|
};
|
|
1170
1102
|
/**
|
|
1171
|
-
* A price's display terms, including archived prices referenced by an applicability
|
|
1103
|
+
* A price's display terms, including archived prices referenced by an applicability.
|
|
1172
1104
|
*/
|
|
1173
1105
|
export interface PriceOption {
|
|
1174
1106
|
product: Product;
|
|
1175
1107
|
plan: ObjectIdentity;
|
|
1176
|
-
|
|
1108
|
+
/** Absent when the price delegates to a rate card. */
|
|
1109
|
+
billing_scheme?: BillingScheme;
|
|
1177
1110
|
unit_quantity: string;
|
|
1178
1111
|
id: string;
|
|
1179
1112
|
currency: string;
|
|
1180
|
-
type:
|
|
1113
|
+
type: PriceType;
|
|
1114
|
+
usage_type: UsageType;
|
|
1181
1115
|
interval: PriceOptionInterval;
|
|
1182
1116
|
/** How many periods one purchase covers. */
|
|
1183
1117
|
interval_count?: number;
|
|
@@ -1186,11 +1120,7 @@ export interface PriceOption {
|
|
|
1186
1120
|
active: boolean;
|
|
1187
1121
|
}
|
|
1188
1122
|
/**
|
|
1189
|
-
*
|
|
1190
|
-
* zero-charge purchases. It does not mean the account's first purchase; use
|
|
1191
|
-
* `first_purchase_only` for that restriction. `renew` covers renewals. `modify` covers
|
|
1192
|
-
* configuration or billing-term changes, including changes that increase or decrease
|
|
1193
|
-
* the amount due and changes with no additional charge or refund.
|
|
1123
|
+
* The purchase operation covered. `new`: every new purchase, including zero-charge ones; it does not mean the account's first purchase, which `first_purchase_only` restricts. `renew`: renewals. `modify`: configuration or billing-term changes, whether they charge, refund or neither.
|
|
1194
1124
|
*/
|
|
1195
1125
|
export type PurchaseOperation = (typeof PurchaseOperation)[keyof typeof PurchaseOperation];
|
|
1196
1126
|
export declare const PurchaseOperation: {
|
|
@@ -1199,20 +1129,18 @@ export declare const PurchaseOperation: {
|
|
|
1199
1129
|
readonly modify: "modify";
|
|
1200
1130
|
};
|
|
1201
1131
|
/**
|
|
1202
|
-
*
|
|
1203
|
-
* given, subject to the charge type, operation and term conditions. Entries always include their
|
|
1204
|
-
* display fields; archived plans and prices stay listed with active set to false.
|
|
1132
|
+
* Covers anything not excluded that matches an inclusion, or anything not excluded when no inclusion is given, subject to the price type, usage type, operation and term conditions. Archived plans and prices stay listed with active false.
|
|
1205
1133
|
*/
|
|
1206
1134
|
export interface Applicability {
|
|
1207
1135
|
products?: Product[];
|
|
1208
1136
|
plans?: ApplicablePlan[];
|
|
1209
1137
|
prices?: PriceOption[];
|
|
1210
|
-
|
|
1138
|
+
/** The price types covered; empty covers both. */
|
|
1139
|
+
price_types?: PriceType[];
|
|
1140
|
+
/** The usage types covered; empty covers both. */
|
|
1141
|
+
usage_types?: UsageType[];
|
|
1211
1142
|
operations?: PurchaseOperation[];
|
|
1212
|
-
/**
|
|
1213
|
-
* The shortest term a purchase may have, in months. A purchase with no term, such as
|
|
1214
|
-
* metered usage, never qualifies while this is set.
|
|
1215
|
-
*/
|
|
1143
|
+
/** The shortest term a purchase may have, in months. Purchases without a term, such as metered usage, do not qualify while this is set. */
|
|
1216
1144
|
min_term_months?: number;
|
|
1217
1145
|
/** The longest term a purchase may have, in months. */
|
|
1218
1146
|
max_term_months?: number;
|
|
@@ -1221,56 +1149,42 @@ export interface Applicability {
|
|
|
1221
1149
|
excluded_prices?: PriceOption[];
|
|
1222
1150
|
}
|
|
1223
1151
|
export interface CreditGroup {
|
|
1224
|
-
/** What the credit in this group may pay for
|
|
1152
|
+
/** What the credit in this group may pay for; no restrictions means anything on the account. */
|
|
1225
1153
|
applies_to: Applicability;
|
|
1226
1154
|
/** Restricted to your first purchase of anything it applies to. */
|
|
1227
1155
|
first_purchase_only?: boolean;
|
|
1228
1156
|
amount: Money;
|
|
1229
1157
|
}
|
|
1230
1158
|
/**
|
|
1231
|
-
*
|
|
1159
|
+
* Balance, credits and unpaid charges, each reported separately.
|
|
1232
1160
|
*/
|
|
1233
1161
|
export interface AccountBalance {
|
|
1234
1162
|
/** Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes. */
|
|
1235
1163
|
available_credit: Money;
|
|
1236
|
-
/** Credit expected to pay unbilled_amount and due
|
|
1164
|
+
/** Credit expected to pay unbilled_amount and due, matching each charge to the grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is deducted until an invoice is paid, so credits still includes this amount. */
|
|
1237
1165
|
estimated_credit_applied: Money;
|
|
1238
|
-
/** Current estimate of
|
|
1166
|
+
/** Current estimate of priced usage that has not been invoiced. Final pricing and tax are fixed at issuance. */
|
|
1239
1167
|
unbilled_amount: Money;
|
|
1240
1168
|
billing_account_id: number;
|
|
1241
1169
|
currency: string;
|
|
1242
|
-
/**
|
|
1243
|
-
* Prepaid funds in the account currency, excluding credits. May be negative after a payment
|
|
1244
|
-
* dispute. Outstanding charges are reported separately in due; this value is not a withdrawal quote.
|
|
1245
|
-
*/
|
|
1170
|
+
/** Topped-up funds in the account's currency, excluding credits. May be negative after a payment dispute. Amounts owed are reported in due; this is not a withdrawable amount. */
|
|
1246
1171
|
balance: Money;
|
|
1247
|
-
/**
|
|
1248
|
-
* The recorded remaining credit, including restricted grants. It is not withdrawable
|
|
1249
|
-
* and is not part of balance. credit_groups describes currently valid credit by permitted use; a positive
|
|
1250
|
-
* credits balance does not imply that due is zero.
|
|
1251
|
-
*/
|
|
1172
|
+
/** Remaining credit, including restricted grants; not withdrawable and not part of balance. credit_groups shows currently valid credit by permitted use; positive credits do not mean due is zero. */
|
|
1252
1173
|
credits: Money;
|
|
1253
|
-
/** Currently valid credit
|
|
1174
|
+
/** Currently valid credit restricted to certain products, operations or conditions; part of credits, not of balance. */
|
|
1254
1175
|
restricted_credits: Money;
|
|
1255
|
-
/**
|
|
1256
|
-
* Currently valid, unspent credit grouped by permitted use. Restrictions and
|
|
1257
|
-
* validity dates determine which charges a group can cover, so these groups are not a general
|
|
1258
|
-
* spendable balance and may differ from the recorded credits total.
|
|
1259
|
-
*/
|
|
1176
|
+
/** Currently valid unspent credit grouped by permitted use. Each group covers only the charges its restrictions and validity allow, and the groups may differ from the recorded credits total. */
|
|
1260
1177
|
credit_groups: CreditGroup[];
|
|
1261
|
-
/** Amount still payable on issued invoices. The invoice of an order not yet accepted is
|
|
1178
|
+
/** Amount still payable on issued invoices. The invoice of an order not yet accepted is excluded, here and from available_credit. Usage not yet invoiced is reported separately. */
|
|
1262
1179
|
due: Money;
|
|
1263
1180
|
pending_returns_amount: Money;
|
|
1264
1181
|
}
|
|
1265
1182
|
/**
|
|
1266
|
-
* A project's assignment to a billing account
|
|
1183
|
+
* A project's assignment to a billing account from effective_from until effective_to; an open assignment has no end.
|
|
1267
1184
|
*/
|
|
1268
1185
|
export interface ProjectAssignment {
|
|
1269
1186
|
project_id: string;
|
|
1270
|
-
/**
|
|
1271
|
-
* The project and its current name, for display. Absent when the project no longer exists or its
|
|
1272
|
-
* details cannot be read at the moment; `project_id` still identifies it.
|
|
1273
|
-
*/
|
|
1187
|
+
/** The project and its current name. Absent when the project cannot be read; `project_id` still identifies it. */
|
|
1274
1188
|
project?: NamedIdentity | null;
|
|
1275
1189
|
billing_account_id: number;
|
|
1276
1190
|
account_name?: string;
|
|
@@ -1287,16 +1201,7 @@ export interface SetProjectAssignmentRequest {
|
|
|
1287
1201
|
billing_account_id: number;
|
|
1288
1202
|
}
|
|
1289
1203
|
/**
|
|
1290
|
-
* `pending` until the payment gateway reaches a result
|
|
1291
|
-
*
|
|
1292
|
-
* `failed` means the gateway declined the payment. A declined attempt ends the top-up at once
|
|
1293
|
-
* and the payment is withdrawn at the gateway; to pay another way, create a new top-up.
|
|
1294
|
-
* `canceled` means the attempt was withdrawn without collecting money; `cancellation_reason`
|
|
1295
|
-
* says why. Unknown gateway outcomes remain `pending`, and a browser redirect is not proof of
|
|
1296
|
-
* payment.
|
|
1297
|
-
*
|
|
1298
|
-
* `failed` and `canceled` are final. If the gateway nevertheless collects payment for such an
|
|
1299
|
-
* attempt, the amount is credited as a separate `succeeded` top-up.
|
|
1204
|
+
* `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.
|
|
1300
1205
|
*/
|
|
1301
1206
|
export type TopUpStatus = (typeof TopUpStatus)[keyof typeof TopUpStatus];
|
|
1302
1207
|
export declare const TopUpStatus: {
|
|
@@ -1311,8 +1216,7 @@ export interface AccountIdentity {
|
|
|
1311
1216
|
currency: string;
|
|
1312
1217
|
}
|
|
1313
1218
|
/**
|
|
1314
|
-
* Why a gateway payment was withdrawn
|
|
1315
|
-
* allowed for payment. `requested_by_customer` means the customer canceled it.
|
|
1219
|
+
* Why a gateway payment was withdrawn: `abandoned` when the customer did not complete it in time, `requested_by_customer` when the customer canceled it.
|
|
1316
1220
|
*/
|
|
1317
1221
|
export type PaymentCancellationReason = (typeof PaymentCancellationReason)[keyof typeof PaymentCancellationReason];
|
|
1318
1222
|
export declare const PaymentCancellationReason: {
|
|
@@ -1326,83 +1230,55 @@ export declare const PaymentActionType: {
|
|
|
1326
1230
|
readonly sdk: "sdk";
|
|
1327
1231
|
};
|
|
1328
1232
|
/**
|
|
1329
|
-
* The customer's next
|
|
1233
|
+
* The customer's next step; the payment outcome is reported separately.
|
|
1330
1234
|
*/
|
|
1331
1235
|
export interface PaymentAction {
|
|
1332
1236
|
type: PaymentActionType;
|
|
1333
|
-
/**
|
|
1237
|
+
/** The browser adapter for the action, for example stripe. */
|
|
1334
1238
|
provider?: string;
|
|
1335
1239
|
url?: string;
|
|
1336
|
-
/** QR content to render
|
|
1240
|
+
/** QR content to render, not an image URL. */
|
|
1337
1241
|
qr_code?: string;
|
|
1338
|
-
/** Short-lived client credential for this payment
|
|
1242
|
+
/** Short-lived client credential for confirming this payment in the browser. */
|
|
1339
1243
|
client_secret?: string;
|
|
1340
1244
|
public_key?: string;
|
|
1341
1245
|
}
|
|
1342
1246
|
/**
|
|
1343
|
-
* A top-up attempt and its outcome. A successful top-up adds
|
|
1247
|
+
* 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.
|
|
1344
1248
|
*/
|
|
1345
1249
|
export interface TopUp {
|
|
1346
1250
|
id: string;
|
|
1347
1251
|
billing_account_id: number;
|
|
1348
1252
|
account: AccountIdentity;
|
|
1349
|
-
/** What is credited to the account, in
|
|
1253
|
+
/** What is credited to the account, in its currency. */
|
|
1350
1254
|
amount: Money;
|
|
1351
1255
|
currency: string;
|
|
1352
|
-
/**
|
|
1353
|
-
* The part of this top-up still held in the balance. Pending refunds can temporarily
|
|
1354
|
-
* reserve part of it; it is not a promise that the whole amount is immediately withdrawable.
|
|
1355
|
-
*/
|
|
1256
|
+
/** 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. */
|
|
1356
1257
|
remaining_amount?: Money;
|
|
1357
|
-
/**
|
|
1358
|
-
* `pending` until the payment gateway reaches a result. The balance increases on `succeeded`.
|
|
1359
|
-
*
|
|
1360
|
-
* `failed` means the gateway declined the payment. A declined attempt ends the top-up at once
|
|
1361
|
-
* and the payment is withdrawn at the gateway; to pay another way, create a new top-up.
|
|
1362
|
-
* `canceled` means the attempt was withdrawn without collecting money; `cancellation_reason`
|
|
1363
|
-
* says why. Unknown gateway outcomes remain `pending`, and a browser redirect is not proof of
|
|
1364
|
-
* payment.
|
|
1365
|
-
*
|
|
1366
|
-
* `failed` and `canceled` are final. If the gateway nevertheless collects payment for such an
|
|
1367
|
-
* attempt, the amount is credited as a separate `succeeded` top-up.
|
|
1368
|
-
*/
|
|
1258
|
+
/** `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. */
|
|
1369
1259
|
status: TopUpStatus;
|
|
1370
1260
|
cancellation_reason?: PaymentCancellationReason;
|
|
1371
1261
|
/** Which payment gateway collected it. */
|
|
1372
1262
|
payment_gateway?: string;
|
|
1373
1263
|
/** The selected payment method, such as card, wechat_pay or alipay. */
|
|
1374
1264
|
method_type?: string;
|
|
1375
|
-
/**
|
|
1376
|
-
* The currency the customer was actually charged in, when the checkout page collected a
|
|
1377
|
-
* local one. Absent when it was the same as the account's.
|
|
1378
|
-
*/
|
|
1265
|
+
/** The currency the customer was charged in when the checkout collected a local currency; absent when it is the account's. */
|
|
1379
1266
|
presentment_currency?: string;
|
|
1380
|
-
/**
|
|
1381
|
-
* What was charged, in `presentment_currency`. It will not equal `amount`, and it is
|
|
1382
|
-
* the figure that appears on the customer's card or wallet statement.
|
|
1383
|
-
*/
|
|
1267
|
+
/** The amount charged in `presentment_currency`, as shown on the customer's statement. */
|
|
1384
1268
|
presentment_amount?: Money;
|
|
1385
|
-
/**
|
|
1386
|
-
* Why the gateway declined it. Present with `failed`. The value is the gateway's own code,
|
|
1387
|
-
* passed on unchanged: the card issuer's decline code when there is one (Stripe's decline_code,
|
|
1388
|
-
* such as insufficient_funds or lost_card), otherwise the gateway's error code (Stripe's code,
|
|
1389
|
-
* such as card_declined, expired_card or payment_intent_authentication_failure). Clients map it
|
|
1390
|
-
* to their own wording and treat an unknown value as a generic decline.
|
|
1391
|
-
*/
|
|
1269
|
+
/** 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. */
|
|
1392
1270
|
failure_reason?: string;
|
|
1393
1271
|
action?: PaymentAction;
|
|
1394
1272
|
created_at: string;
|
|
1395
1273
|
/**
|
|
1396
|
-
* When the funds arrived
|
|
1397
|
-
* reconciling against a statement uses this rather than the moment it was started.
|
|
1398
|
-
* Absent until the payment completes.
|
|
1274
|
+
* When the funds arrived, possibly days after `created_at`. Absent until the payment completes.
|
|
1399
1275
|
* @nullable
|
|
1400
1276
|
*/
|
|
1401
1277
|
settled_at?: string | null;
|
|
1402
1278
|
}
|
|
1403
1279
|
export interface TopUpCreate {
|
|
1404
1280
|
/**
|
|
1405
|
-
* The gateway
|
|
1281
|
+
* The gateway selected from the available payment options.
|
|
1406
1282
|
* @minLength 1
|
|
1407
1283
|
* @maxLength 32
|
|
1408
1284
|
*/
|
|
@@ -1413,21 +1289,12 @@ export interface TopUpCreate {
|
|
|
1413
1289
|
* @maxLength 64
|
|
1414
1290
|
*/
|
|
1415
1291
|
method_type: string;
|
|
1416
|
-
/** The
|
|
1292
|
+
/** The top-up ID, chosen by the caller. Read it after an uncertain response. */
|
|
1417
1293
|
id: string;
|
|
1418
1294
|
billing_account_id: number;
|
|
1419
|
-
/**
|
|
1420
|
-
* In the account's currency, and no finer than that currency's smallest unit:
|
|
1421
|
-
* two decimals for most, none for the yen. A finer amount is refused here rather
|
|
1422
|
-
* than at the checkout page, where the customer would see the gateway's own wording
|
|
1423
|
-
* instead of an explanation.
|
|
1424
|
-
*
|
|
1425
|
-
* There is a minimum, which differs by currency. Below it the gateway's fee
|
|
1426
|
-
* exceeds the top-up itself, so such a payment costs more to accept than it brings.
|
|
1427
|
-
* The minimum in force is returned with the rejection.
|
|
1428
|
-
*/
|
|
1295
|
+
/** 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. */
|
|
1429
1296
|
amount: Money & string;
|
|
1430
|
-
/** Charge a saved method instead of opening a checkout page. */
|
|
1297
|
+
/** Charge a saved payment method instead of opening a checkout page. */
|
|
1431
1298
|
payment_method_id?: string;
|
|
1432
1299
|
/** Where to send the customer after checkout. */
|
|
1433
1300
|
return_url?: string;
|
|
@@ -1439,14 +1306,11 @@ export interface TopUpList {
|
|
|
1439
1306
|
export interface PaymentOptionMethod {
|
|
1440
1307
|
/** The value to send as `method_type`, such as card, wechat_pay or alipay. */
|
|
1441
1308
|
method_type: string;
|
|
1442
|
-
/**
|
|
1443
|
-
* Whether a method of this type can be saved with create-payment-method-setup and charged later
|
|
1444
|
-
* without the customer present. Methods that are not reusable are paid anew each time.
|
|
1445
|
-
*/
|
|
1309
|
+
/** Whether this method type can be saved with create-payment-method-setup and charged later without the customer. */
|
|
1446
1310
|
reusable: boolean;
|
|
1447
1311
|
}
|
|
1448
1312
|
/**
|
|
1449
|
-
* A
|
|
1313
|
+
* A gateway accepting the account's currency, with its payment methods.
|
|
1450
1314
|
*/
|
|
1451
1315
|
export interface PaymentOption {
|
|
1452
1316
|
/** The value to send as `payment_gateway`. */
|
|
@@ -1490,15 +1354,10 @@ export interface PaymentMethodSetup {
|
|
|
1490
1354
|
billing_account_id: number;
|
|
1491
1355
|
}
|
|
1492
1356
|
/**
|
|
1493
|
-
* What the payment gateway's browser library needs
|
|
1494
|
-
* no address to redirect to: the form is rendered in the page, and the card goes straight
|
|
1495
|
-
* from the browser to the gateway.
|
|
1357
|
+
* 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.
|
|
1496
1358
|
*/
|
|
1497
1359
|
export interface PaymentMethodSetupResult {
|
|
1498
|
-
/**
|
|
1499
|
-
* The gateway's identifier for this attempt. Use it to tell a reloaded page apart
|
|
1500
|
-
* from a second attempt.
|
|
1501
|
-
*/
|
|
1360
|
+
/** The gateway's identifier for this attempt. */
|
|
1502
1361
|
setup_id: string;
|
|
1503
1362
|
payment_gateway: string;
|
|
1504
1363
|
action: PaymentAction;
|
|
@@ -1514,7 +1373,7 @@ export interface PaymentMethodSetupResult {
|
|
|
1514
1373
|
*/
|
|
1515
1374
|
export interface PayInvoiceRequest {
|
|
1516
1375
|
/**
|
|
1517
|
-
* Required to collect an online remainder. An existing attempt keeps its
|
|
1376
|
+
* Required to collect an online remainder. An existing attempt keeps its gateway.
|
|
1518
1377
|
* @minLength 1
|
|
1519
1378
|
* @maxLength 32
|
|
1520
1379
|
*/
|
|
@@ -1525,51 +1384,35 @@ export interface PayInvoiceRequest {
|
|
|
1525
1384
|
* @maxLength 64
|
|
1526
1385
|
*/
|
|
1527
1386
|
method_type?: string;
|
|
1528
|
-
/**
|
|
1387
|
+
/** A saved card of this billing account at the selected gateway. Omit to pay interactively. */
|
|
1529
1388
|
payment_method_id?: string;
|
|
1530
|
-
/** Whether to apply the
|
|
1389
|
+
/** Whether to apply the balance; credit grants are controlled by use_credits. */
|
|
1531
1390
|
use_balance?: boolean;
|
|
1532
|
-
/** Apply eligible, unexpired credit grants before
|
|
1391
|
+
/** Apply eligible, unexpired credit grants before the balance. Grants are never converted into balance. */
|
|
1533
1392
|
use_credits?: boolean;
|
|
1534
1393
|
return_url?: string;
|
|
1535
1394
|
/**
|
|
1536
|
-
* The code to apply while the order's terms are not
|
|
1537
|
-
* account discount, or to keep the discount already recorded.
|
|
1395
|
+
* 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.
|
|
1538
1396
|
* @minLength 1
|
|
1539
1397
|
* @maxLength 64
|
|
1540
1398
|
*/
|
|
1541
1399
|
promotion_code?: string;
|
|
1542
|
-
/**
|
|
1543
|
-
* The invoice total to expect, after discounts and tax and before credit grants or balance, as the
|
|
1544
|
-
* payment preview or an order quote gave it. A different total fails with BILLING_AMOUNT_CHANGED
|
|
1545
|
-
* and nothing is charged. Omit to skip the comparison; an explicit zero is compared.
|
|
1546
|
-
*/
|
|
1400
|
+
/** 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. */
|
|
1547
1401
|
expected_amount?: Money & string;
|
|
1548
1402
|
}
|
|
1549
1403
|
/**
|
|
1550
|
-
* Name at least one invoice or order.
|
|
1551
|
-
* its currency; anything else is refused rather than partly paid.
|
|
1404
|
+
* Name at least one invoice or order. All must belong to one account in its currency.
|
|
1552
1405
|
*/
|
|
1553
1406
|
export interface PayTogetherRequest {
|
|
1554
1407
|
/** @maxItems 100 */
|
|
1555
1408
|
invoice_ids?: string[];
|
|
1556
1409
|
/** @maxItems 100 */
|
|
1557
1410
|
order_ids?: string[];
|
|
1558
|
-
/**
|
|
1559
|
-
* The amount due to expect across all of them, before credit grants or balance, as preview-pay-together
|
|
1560
|
-
* gave it. A different amount fails with BILLING_AMOUNT_CHANGED and nothing is charged. Omit to skip
|
|
1561
|
-
* the comparison.
|
|
1562
|
-
*/
|
|
1411
|
+
/** 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. */
|
|
1563
1412
|
expected_amount?: Money & string;
|
|
1564
1413
|
}
|
|
1565
1414
|
/**
|
|
1566
|
-
*
|
|
1567
|
-
*
|
|
1568
|
-
* succeeded means payment is complete. processing means confirmation is pending; poll the invoice or
|
|
1569
|
-
* order rather than submitting another payment. requires_action means the customer must complete the
|
|
1570
|
-
* supplied action. failed means the attempt did not succeed and failure_reason explains the outcome; a
|
|
1571
|
-
* declined gateway payment is withdrawn at the gateway, and paying again starts a new payment with the
|
|
1572
|
-
* same or another method.
|
|
1415
|
+
* `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.
|
|
1573
1416
|
*/
|
|
1574
1417
|
export type PaymentStatus = (typeof PaymentStatus)[keyof typeof PaymentStatus];
|
|
1575
1418
|
export declare const PaymentStatus: {
|
|
@@ -1595,7 +1438,7 @@ export interface PaymentPreviewInvoice {
|
|
|
1595
1438
|
balance_applied: Money;
|
|
1596
1439
|
}
|
|
1597
1440
|
/**
|
|
1598
|
-
* What paying would take,
|
|
1441
|
+
* What paying would take, calculated as paying does. Nothing is charged or reserved.
|
|
1599
1442
|
*/
|
|
1600
1443
|
export interface PaymentPreview {
|
|
1601
1444
|
funds?: Funds;
|
|
@@ -1604,23 +1447,19 @@ export interface PaymentPreview {
|
|
|
1604
1447
|
amount_due: Money;
|
|
1605
1448
|
/** What credit grants would pay. Grants restricted to other purchases pay nothing here. */
|
|
1606
1449
|
credit_applied: Money;
|
|
1607
|
-
/** The credit grants that would pay, in the order
|
|
1450
|
+
/** The credit grants that would pay, in the order used. */
|
|
1608
1451
|
credit_grants: AppliedCredit[];
|
|
1609
1452
|
/** What the balance would pay. */
|
|
1610
1453
|
balance_applied: Money;
|
|
1611
|
-
/** What would remain to
|
|
1454
|
+
/** What would remain to pay online. Paying without a gateway is refused with `BILLING_INSUFFICIENT_FUNDS` while this is above zero. */
|
|
1612
1455
|
gateway_amount: Money;
|
|
1613
1456
|
/** The available balance after paying. */
|
|
1614
1457
|
balance_after: Money;
|
|
1615
|
-
/** Paying together only
|
|
1458
|
+
/** Paying together only: each invoice, in payment order. */
|
|
1616
1459
|
invoices?: PaymentPreviewInvoice[];
|
|
1617
1460
|
}
|
|
1618
1461
|
/**
|
|
1619
|
-
* Present on refunds
|
|
1620
|
-
*
|
|
1621
|
-
* - `balance`: back to the account balance.
|
|
1622
|
-
* - `credit`: back to the credit grant that paid, which keeps its original expiry.
|
|
1623
|
-
* - `gateway`: back to the payment method it was paid with.
|
|
1462
|
+
* 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.
|
|
1624
1463
|
*/
|
|
1625
1464
|
export type TransactionRefundDestination = (typeof TransactionRefundDestination)[keyof typeof TransactionRefundDestination];
|
|
1626
1465
|
export declare const TransactionRefundDestination: {
|
|
@@ -1629,9 +1468,7 @@ export declare const TransactionRefundDestination: {
|
|
|
1629
1468
|
readonly gateway: "gateway";
|
|
1630
1469
|
};
|
|
1631
1470
|
/**
|
|
1632
|
-
* `failed
|
|
1633
|
-
* it. `canceled` means a gateway payment was withdrawn without collecting money. After either,
|
|
1634
|
-
* an invoice the payment was meant to pay remains open for another payment.
|
|
1471
|
+
* `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.
|
|
1635
1472
|
*/
|
|
1636
1473
|
export type TransactionStatus = (typeof TransactionStatus)[keyof typeof TransactionStatus];
|
|
1637
1474
|
export declare const TransactionStatus: {
|
|
@@ -1652,7 +1489,7 @@ export declare const TransactionType: {
|
|
|
1652
1489
|
readonly fee: "fee";
|
|
1653
1490
|
};
|
|
1654
1491
|
/**
|
|
1655
|
-
* A funds
|
|
1492
|
+
* A funds movement with one source. Refunds name the original transaction. Unknown gateway results stay pending.
|
|
1656
1493
|
*/
|
|
1657
1494
|
export interface Transaction {
|
|
1658
1495
|
invoice_id?: string;
|
|
@@ -1661,47 +1498,22 @@ export interface Transaction {
|
|
|
1661
1498
|
credit_grant_id?: string;
|
|
1662
1499
|
credit_grant?: ObjectIdentity;
|
|
1663
1500
|
refund_id?: string;
|
|
1664
|
-
/**
|
|
1665
|
-
* Present on refunds. Where this part of the refund goes.
|
|
1666
|
-
*
|
|
1667
|
-
* - `balance`: back to the account balance.
|
|
1668
|
-
* - `credit`: back to the credit grant that paid, which keeps its original expiry.
|
|
1669
|
-
* - `gateway`: back to the payment method it was paid with.
|
|
1670
|
-
*/
|
|
1501
|
+
/** 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. */
|
|
1671
1502
|
refund_destination?: TransactionRefundDestination;
|
|
1672
|
-
/**
|
|
1673
|
-
* `failed` means the operation did not succeed; for a gateway payment, that the gateway declined
|
|
1674
|
-
* it. `canceled` means a gateway payment was withdrawn without collecting money. After either,
|
|
1675
|
-
* an invoice the payment was meant to pay remains open for another payment.
|
|
1676
|
-
*/
|
|
1503
|
+
/** `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. */
|
|
1677
1504
|
status?: TransactionStatus;
|
|
1678
1505
|
cancellation_reason?: PaymentCancellationReason;
|
|
1679
1506
|
payment_gateway?: string;
|
|
1680
1507
|
method_type?: string;
|
|
1681
|
-
/**
|
|
1682
|
-
* Why it failed. Present with `failed`. For a declined gateway payment the value is the
|
|
1683
|
-
* gateway's own code, passed on unchanged: the card issuer's decline code when there is one
|
|
1684
|
-
* (Stripe's decline_code, such as insufficient_funds or lost_card), otherwise the gateway's
|
|
1685
|
-
* error code (Stripe's code, such as card_declined, expired_card or
|
|
1686
|
-
* payment_intent_authentication_failure). Clients map it to their own wording and treat an
|
|
1687
|
-
* unknown value as a generic decline.
|
|
1688
|
-
*/
|
|
1508
|
+
/** 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. */
|
|
1689
1509
|
failure_reason?: string;
|
|
1690
1510
|
settled_at?: string;
|
|
1691
1511
|
id: string;
|
|
1692
1512
|
billing_account_id?: number;
|
|
1693
1513
|
type: TransactionType;
|
|
1694
|
-
/**
|
|
1695
|
-
* Signed by type: positive for `topup` and `payment`, negative for `refund`.
|
|
1696
|
-
* An `adjustment` is positive when it adds to the balance and negative when it takes from
|
|
1697
|
-
* it. For the other types the sign does not tell the effect on the balance: a payment from
|
|
1698
|
-
* the balance lowers it, while a payment by gateway or by credit leaves it unchanged.
|
|
1699
|
-
*/
|
|
1514
|
+
/** 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. */
|
|
1700
1515
|
amount: Money;
|
|
1701
|
-
/**
|
|
1702
|
-
* How much of this transaction is still available in the balance. Only top-ups, positive
|
|
1703
|
-
* adjustments and gateway payments later returned to the balance can be non-zero.
|
|
1704
|
-
*/
|
|
1516
|
+
/** 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. */
|
|
1705
1517
|
remaining_amount: Money;
|
|
1706
1518
|
currency: string;
|
|
1707
1519
|
reason?: string;
|
|
@@ -1709,49 +1521,31 @@ export interface Transaction {
|
|
|
1709
1521
|
}
|
|
1710
1522
|
export interface PaymentResult {
|
|
1711
1523
|
transactions: Transaction[];
|
|
1712
|
-
/** The gateway transaction, when one is involved.
|
|
1524
|
+
/** The gateway transaction, when one is involved. */
|
|
1713
1525
|
transaction_id?: string;
|
|
1714
1526
|
status: PaymentStatus;
|
|
1715
1527
|
amount_paid: Money;
|
|
1716
|
-
/**
|
|
1717
|
-
* What is still outstanding. Zero once the payment succeeds. Unchanged while
|
|
1718
|
-
* `processing`: nothing is collected until the gateway confirms it.
|
|
1719
|
-
*/
|
|
1528
|
+
/** What is still outstanding: zero once the payment succeeds, unchanged while `processing`. */
|
|
1720
1529
|
amount_due: Money;
|
|
1721
1530
|
currency: string;
|
|
1722
1531
|
credit_applied?: Money;
|
|
1723
1532
|
gateway_amount?: Money;
|
|
1724
1533
|
payment_gateway?: string;
|
|
1725
1534
|
method_type?: string;
|
|
1726
|
-
/**
|
|
1727
|
-
* The amount already paid from the account's balance toward this invoice. Retrying an online remainder
|
|
1728
|
-
* does not debit it again. A canceled purchase returns funds through its refund process.
|
|
1729
|
-
*/
|
|
1535
|
+
/** The amount already paid from balance toward this invoice; retrying the online remainder does not debit it again. */
|
|
1730
1536
|
balance_applied?: Money;
|
|
1731
1537
|
action?: PaymentAction;
|
|
1732
|
-
/**
|
|
1733
|
-
* Whether paying again is worth attempting. False for a refusal that will keep
|
|
1734
|
-
* happening — a closed account, an amount over a limit — so that a client does not
|
|
1735
|
-
* retry in a loop.
|
|
1736
|
-
*/
|
|
1538
|
+
/** Whether paying again can succeed. False for a refusal that will repeat, such as a closed account or an amount over a limit. */
|
|
1737
1539
|
retriable?: boolean;
|
|
1738
1540
|
/** @nullable */
|
|
1739
1541
|
invoice_id?: string | null;
|
|
1740
1542
|
/** @nullable */
|
|
1741
1543
|
order_id?: string | null;
|
|
1742
|
-
/**
|
|
1743
|
-
* Why the payment did not go through. Present with `failed`. For a declined gateway payment the
|
|
1744
|
-
* value is the gateway's own code, passed on unchanged: the card issuer's decline code when
|
|
1745
|
-
* there is one (Stripe's decline_code, such as insufficient_funds or lost_card), otherwise the
|
|
1746
|
-
* gateway's error code (Stripe's code, such as card_declined, expired_card or
|
|
1747
|
-
* payment_intent_authentication_failure). Clients map it to their own wording and treat an
|
|
1748
|
-
* unknown value as a generic decline.
|
|
1749
|
-
*/
|
|
1544
|
+
/** 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. */
|
|
1750
1545
|
failure_reason?: string;
|
|
1751
1546
|
}
|
|
1752
1547
|
/**
|
|
1753
|
-
* How tax applied to the customer when the invoice was issued
|
|
1754
|
-
* charged because the customer accounts for it under the reverse-charge mechanism.
|
|
1548
|
+
* How tax applied to the customer when the invoice was issued; `reverse` means no tax was charged under the reverse-charge mechanism.
|
|
1755
1549
|
*/
|
|
1756
1550
|
export type InvoiceCustomerTaxExempt = (typeof InvoiceCustomerTaxExempt)[keyof typeof InvoiceCustomerTaxExempt];
|
|
1757
1551
|
export declare const InvoiceCustomerTaxExempt: {
|
|
@@ -1774,7 +1568,7 @@ export interface TaxItem {
|
|
|
1774
1568
|
currency: string;
|
|
1775
1569
|
}
|
|
1776
1570
|
export interface Invoice {
|
|
1777
|
-
/** Collection has
|
|
1571
|
+
/** Collection has stopped; accepted return obligations are completed. */
|
|
1778
1572
|
void_requested_at?: string;
|
|
1779
1573
|
due_at?: string;
|
|
1780
1574
|
amount_refunded?: string;
|
|
@@ -1794,16 +1588,16 @@ export interface Invoice {
|
|
|
1794
1588
|
/** Sum of the line discounts, taken off before tax. */
|
|
1795
1589
|
discount_amount?: Money;
|
|
1796
1590
|
tax_amount?: Money;
|
|
1797
|
-
/** Successful credit-grant payments included in amount_paid
|
|
1591
|
+
/** Successful credit-grant payments, included in amount_paid; they do not reduce the receivable or tax base. */
|
|
1798
1592
|
credit_applied?: Money;
|
|
1799
|
-
/** Subtotal less discount plus tax. Balance and credit grants
|
|
1593
|
+
/** Subtotal less discount plus tax. Balance and credit grants pay it; they do not reduce it. */
|
|
1800
1594
|
total: Money;
|
|
1801
1595
|
amount_paid?: Money;
|
|
1802
|
-
/** Issued
|
|
1596
|
+
/** Issued credit notes that reduced unpaid receivables; the original invoice total is unchanged. */
|
|
1803
1597
|
pre_payment_credit_notes_amount: Money;
|
|
1804
|
-
/** Issued credit notes against payments already received
|
|
1598
|
+
/** Issued credit notes against payments already received; their refunds may not have completed. */
|
|
1805
1599
|
post_payment_credit_notes_amount: Money;
|
|
1806
|
-
/** What is still collectible after unpaid credit notes and successful payments; never below zero.
|
|
1600
|
+
/** What is still collectible after unpaid credit notes and successful payments; never below zero. Zero for a draft, whose total is the base price, and for a paid or void invoice. */
|
|
1807
1601
|
amount_due: Money;
|
|
1808
1602
|
/** @nullable */
|
|
1809
1603
|
period_start?: string | null;
|
|
@@ -1812,17 +1606,11 @@ export interface Invoice {
|
|
|
1812
1606
|
* @nullable
|
|
1813
1607
|
*/
|
|
1814
1608
|
period_end?: string | null;
|
|
1815
|
-
/**
|
|
1816
|
-
* Who this was billed to, as recorded when the invoice was issued. Later changes to
|
|
1817
|
-
* the account do not alter it.
|
|
1818
|
-
*/
|
|
1609
|
+
/** The billing details recorded when the invoice was issued. */
|
|
1819
1610
|
customer_name?: string;
|
|
1820
1611
|
customer_email?: string;
|
|
1821
1612
|
customer_tax_id?: string;
|
|
1822
|
-
/**
|
|
1823
|
-
* How tax applied to the customer when the invoice was issued. `reverse` means no tax was
|
|
1824
|
-
* charged because the customer accounts for it under the reverse-charge mechanism.
|
|
1825
|
-
*/
|
|
1613
|
+
/** How tax applied to the customer when the invoice was issued; `reverse` means no tax was charged under the reverse-charge mechanism. */
|
|
1826
1614
|
customer_tax_exempt?: InvoiceCustomerTaxExempt;
|
|
1827
1615
|
customer_address_line1?: string;
|
|
1828
1616
|
customer_address_line2?: string;
|
|
@@ -1845,13 +1633,19 @@ export declare const InvoiceItemType: {
|
|
|
1845
1633
|
readonly setup: "setup";
|
|
1846
1634
|
readonly adjustment: "adjustment";
|
|
1847
1635
|
};
|
|
1636
|
+
/**
|
|
1637
|
+
* For a usage line, the values of its meter's presentation dimensions, such as the model and token kind. Empty for other lines.
|
|
1638
|
+
*/
|
|
1639
|
+
export type InvoiceItemDimensions = {
|
|
1640
|
+
[key: string]: string;
|
|
1641
|
+
};
|
|
1848
1642
|
/**
|
|
1849
1643
|
* The value of one paid period moved to the new configuration of a subscription.
|
|
1850
1644
|
*/
|
|
1851
1645
|
export interface InvoiceItemProration {
|
|
1852
1646
|
/** The earlier invoice line that paid for the period. */
|
|
1853
1647
|
credited_invoice_item_id: string;
|
|
1854
|
-
/** The
|
|
1648
|
+
/** The earlier invoice line's wording as recorded. */
|
|
1855
1649
|
description: string;
|
|
1856
1650
|
period_start: string;
|
|
1857
1651
|
/** Exclusive. */
|
|
@@ -1883,29 +1677,26 @@ export interface InvoiceItem {
|
|
|
1883
1677
|
type?: InvoiceItemType;
|
|
1884
1678
|
/** @nullable */
|
|
1885
1679
|
project_id?: string | null;
|
|
1886
|
-
/**
|
|
1887
|
-
* The project the charge was for and its current name, for display. Absent when the line is
|
|
1888
|
-
* not for a project, and when the project no longer exists or its details cannot be read at
|
|
1889
|
-
* the moment; `project_id` still identifies it then.
|
|
1890
|
-
*/
|
|
1680
|
+
/** 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. */
|
|
1891
1681
|
project?: NamedIdentity | null;
|
|
1892
1682
|
resource_id?: string;
|
|
1893
|
-
/**
|
|
1894
|
-
* The wording as recorded when the invoice was issued. It is not re-translated
|
|
1895
|
-
* afterwards, so that an invoice continues to read as it did when it was sent.
|
|
1896
|
-
*/
|
|
1683
|
+
/** The line's wording as recorded when the invoice was issued. */
|
|
1897
1684
|
description: string;
|
|
1898
1685
|
unit?: string;
|
|
1899
1686
|
quantity?: string;
|
|
1900
1687
|
/** The part covered by an included allowance, and therefore not charged. */
|
|
1901
1688
|
deducted_quantity?: string;
|
|
1902
1689
|
unit_amount?: Money;
|
|
1690
|
+
/** The quantity `unit_amount` prices, such as 1000000 tokens or 3600 seconds: `amount` is `quantity` × `unit_amount` ÷ `unit_quantity`. Present together with `unit_amount`. */
|
|
1691
|
+
unit_quantity?: string;
|
|
1903
1692
|
amount: Money;
|
|
1904
1693
|
currency: string;
|
|
1905
1694
|
/** @nullable */
|
|
1906
1695
|
period_start?: string | null;
|
|
1907
1696
|
/** @nullable */
|
|
1908
1697
|
period_end?: string | null;
|
|
1698
|
+
/** For a usage line, the values of its meter's presentation dimensions, such as the model and token kind. Empty for other lines. */
|
|
1699
|
+
dimensions?: InvoiceItemDimensions;
|
|
1909
1700
|
/**
|
|
1910
1701
|
* Present on a line that changes a subscription immediately, one entry for each paid period it
|
|
1911
1702
|
* covers. `amount` is the sum of `remaining_amount` minus `credited_amount` over the entries.
|
|
@@ -1954,9 +1745,7 @@ export declare const CreditNoteStatus: {
|
|
|
1954
1745
|
readonly void: "void";
|
|
1955
1746
|
};
|
|
1956
1747
|
/**
|
|
1957
|
-
* Why the note was issued. Notes
|
|
1958
|
-
* `usage_true_up` returns a tier price reduction settled after the original invoice; `operator` is
|
|
1959
|
-
* issued by Leaflow on request.
|
|
1748
|
+
* Why the note was issued. Notes for canceled, expired or failed orders carry the order's reason; `usage_true_up` returns a tier price reduction settled after the original invoice; `operator` was issued on request.
|
|
1960
1749
|
*/
|
|
1961
1750
|
export type CreditNoteReason = (typeof CreditNoteReason)[keyof typeof CreditNoteReason];
|
|
1962
1751
|
export declare const CreditNoteReason: {
|
|
@@ -1970,7 +1759,7 @@ export declare const CreditNoteReason: {
|
|
|
1970
1759
|
readonly operator: "operator";
|
|
1971
1760
|
};
|
|
1972
1761
|
/**
|
|
1973
|
-
*
|
|
1762
|
+
* A reduction of an issued invoice; the original invoice amounts do not change. The credited amount is pre_payment_amount plus post_payment_amount. A paid part creates a refund, identified by refund_id, whose outcome may still be pending.
|
|
1974
1763
|
*/
|
|
1975
1764
|
export interface CreditNote {
|
|
1976
1765
|
id: string;
|
|
@@ -1985,18 +1774,14 @@ export interface CreditNote {
|
|
|
1985
1774
|
voided_at: string | null;
|
|
1986
1775
|
/** The reduction of unpaid receivables. A void note no longer reduces what is due. */
|
|
1987
1776
|
pre_payment_amount: Money;
|
|
1988
|
-
/** The credited part of payments already received
|
|
1777
|
+
/** The credited part of payments already received; its refund may not have completed. */
|
|
1989
1778
|
post_payment_amount: Money;
|
|
1990
1779
|
/**
|
|
1991
|
-
* The refund to the original payment sources
|
|
1780
|
+
* The refund to the original payment sources; null when no paid amount was credited.
|
|
1992
1781
|
* @nullable
|
|
1993
1782
|
*/
|
|
1994
1783
|
refund_id: string | null;
|
|
1995
|
-
/**
|
|
1996
|
-
* Why the note was issued. Notes from canceled, expired or failed orders carry the order's reason;
|
|
1997
|
-
* `usage_true_up` returns a tier price reduction settled after the original invoice; `operator` is
|
|
1998
|
-
* issued by Leaflow on request.
|
|
1999
|
-
*/
|
|
1784
|
+
/** Why the note was issued. Notes for canceled, expired or failed orders carry the order's reason; `usage_true_up` returns a tier price reduction settled after the original invoice; `operator` was issued on request. */
|
|
2000
1785
|
reason: CreditNoteReason;
|
|
2001
1786
|
}
|
|
2002
1787
|
export interface CreditNoteItem {
|
|
@@ -2015,7 +1800,7 @@ export interface CreditNoteItemList {
|
|
|
2015
1800
|
pagination: OffsetPagination;
|
|
2016
1801
|
}
|
|
2017
1802
|
/**
|
|
2018
|
-
* Use balance_amount, credit_amount and gateway_amount, which also show a refund split between
|
|
1803
|
+
* Use balance_amount, credit_amount and gateway_amount, which also show a refund split between destinations.
|
|
2019
1804
|
* @deprecated
|
|
2020
1805
|
*/
|
|
2021
1806
|
export type RefundDestination = (typeof RefundDestination)[keyof typeof RefundDestination];
|
|
@@ -2043,22 +1828,19 @@ export declare const RefundStatus: {
|
|
|
2043
1828
|
readonly failed: "failed";
|
|
2044
1829
|
};
|
|
2045
1830
|
/**
|
|
2046
|
-
* Why the refund was made.
|
|
2047
|
-
* treat an unknown code as a refund without a stated reason.
|
|
1831
|
+
* Why the refund was made. New codes may be added; treat an unknown code as unspecified.
|
|
2048
1832
|
*
|
|
2049
1833
|
* - `provisioning_failed`: the purchase could not be delivered.
|
|
2050
|
-
* - `order_expired`: the order expired after part of it
|
|
2051
|
-
* - `order_canceled`: the
|
|
2052
|
-
* - `change_canceled`: a scheduled change was withdrawn after part of it
|
|
2053
|
-
* - `change_expired`: a scheduled change could not take effect
|
|
2054
|
-
* - `subscription_canceled`: the
|
|
2055
|
-
*
|
|
2056
|
-
* - `
|
|
2057
|
-
*
|
|
2058
|
-
*
|
|
2059
|
-
*
|
|
2060
|
-
* zero or less.
|
|
2061
|
-
* - `usage_true_up`: usage priced again over the whole month cost less than was charged.
|
|
1834
|
+
* - `order_expired`: the order expired after part of it was paid.
|
|
1835
|
+
* - `order_canceled`: the order was canceled after part of it was paid.
|
|
1836
|
+
* - `change_canceled`: a scheduled change was withdrawn after part of it was paid.
|
|
1837
|
+
* - `change_expired`: a scheduled change could not take effect in time.
|
|
1838
|
+
* - `subscription_canceled`: the unused value of a canceled subscription, under its refund terms.
|
|
1839
|
+
* - `future_period_canceled`: a renewal that had not started was withdrawn.
|
|
1840
|
+
* - `downgrade_difference`: after a downgrade, the remaining paid value, valued as refund policy `prorated`
|
|
1841
|
+
* describes, minus the new configuration's cost for the remaining time at the change item's
|
|
1842
|
+
* `refund_monthly_amount` and `refund_hourly_amount`.
|
|
1843
|
+
* - `usage_true_up`: usage priced over the whole month cost less than was charged.
|
|
2062
1844
|
* - `payment_not_applied`: a payment arrived after its invoice could no longer be paid.
|
|
2063
1845
|
* - `operator`: made by the platform operator.
|
|
2064
1846
|
*/
|
|
@@ -2079,15 +1861,14 @@ export declare const RefundReason: {
|
|
|
2079
1861
|
export interface Refund {
|
|
2080
1862
|
transaction_id?: string;
|
|
2081
1863
|
cancellation_item_id?: string;
|
|
2082
|
-
/**
|
|
1864
|
+
/** The refund split by original payment source, with each result. Unknown gateway results stay pending. */
|
|
2083
1865
|
transactions: Transaction[];
|
|
2084
1866
|
id: string;
|
|
2085
1867
|
billing_account_id?: number;
|
|
2086
1868
|
/** @nullable */
|
|
2087
1869
|
invoice_id?: string | null;
|
|
2088
1870
|
/**
|
|
2089
|
-
* The order the refund belongs to: the order that caused it, such as a downgrade, otherwise
|
|
2090
|
-
* the order of the refunded invoice. Null for refunds of top-ups and of usage invoices.
|
|
1871
|
+
* 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.
|
|
2091
1872
|
* @nullable
|
|
2092
1873
|
*/
|
|
2093
1874
|
order_id?: string | null;
|
|
@@ -2103,7 +1884,7 @@ export interface Refund {
|
|
|
2103
1884
|
settled_amount?: Money;
|
|
2104
1885
|
currency: string;
|
|
2105
1886
|
/**
|
|
2106
|
-
* Use balance_amount, credit_amount and gateway_amount, which also show a refund split between
|
|
1887
|
+
* Use balance_amount, credit_amount and gateway_amount, which also show a refund split between destinations.
|
|
2107
1888
|
* @deprecated
|
|
2108
1889
|
*/
|
|
2109
1890
|
destination?: RefundDestination;
|
|
@@ -2130,7 +1911,7 @@ export interface RefundList {
|
|
|
2130
1911
|
pagination: OffsetPagination;
|
|
2131
1912
|
}
|
|
2132
1913
|
/**
|
|
2133
|
-
* The
|
|
1914
|
+
* The dimension values the rate was matched by, such as region and machine type.
|
|
2134
1915
|
*/
|
|
2135
1916
|
export type UsageChargeDimensions = {
|
|
2136
1917
|
[key: string]: string;
|
|
@@ -2139,28 +1920,27 @@ export interface UsageCharge {
|
|
|
2139
1920
|
subscription_id: string;
|
|
2140
1921
|
id: string;
|
|
2141
1922
|
project_id?: string;
|
|
2142
|
-
/**
|
|
2143
|
-
* The project and its current name, for display. Absent when the project no longer exists or its
|
|
2144
|
-
* details cannot be read at the moment; `project_id` still identifies it.
|
|
2145
|
-
*/
|
|
1923
|
+
/** The project and its current name. Absent when the project cannot be read; `project_id` still identifies it. */
|
|
2146
1924
|
project?: NamedIdentity | null;
|
|
2147
1925
|
product: Product;
|
|
2148
1926
|
/** Which resource this was charged for. Empty for charges not tied to one. */
|
|
2149
1927
|
resource_id?: string;
|
|
2150
1928
|
meter: ObjectIdentity;
|
|
2151
1929
|
unit?: string;
|
|
2152
|
-
/** The
|
|
1930
|
+
/** The dimension values the rate was matched by, such as region and machine type. */
|
|
2153
1931
|
dimensions?: UsageChargeDimensions;
|
|
2154
1932
|
window_start: string;
|
|
2155
1933
|
/** Exclusive. */
|
|
2156
1934
|
window_end: string;
|
|
2157
|
-
/**
|
|
1935
|
+
/** Quantity used before allowances. */
|
|
2158
1936
|
gross_quantity?: string;
|
|
2159
1937
|
/** How much of that was covered by an allowance. */
|
|
2160
1938
|
deducted_quantity?: string;
|
|
2161
|
-
/**
|
|
1939
|
+
/** The quantity charged: gross quantity less the part covered by allowances. */
|
|
2162
1940
|
quantity: string;
|
|
2163
1941
|
unit_amount?: Money;
|
|
1942
|
+
/** The quantity `unit_amount` prices, such as 1000000 tokens or 3600 seconds: `amount` is `quantity` × `unit_amount` ÷ `unit_quantity`. */
|
|
1943
|
+
unit_quantity?: string;
|
|
2164
1944
|
amount: Money;
|
|
2165
1945
|
currency: string;
|
|
2166
1946
|
/**
|
|
@@ -2180,12 +1960,6 @@ export interface UsageChargeList {
|
|
|
2180
1960
|
items: UsageCharge[];
|
|
2181
1961
|
pagination: OffsetPagination;
|
|
2182
1962
|
}
|
|
2183
|
-
export type SubscriptionChargeType = (typeof SubscriptionChargeType)[keyof typeof SubscriptionChargeType];
|
|
2184
|
-
export declare const SubscriptionChargeType: {
|
|
2185
|
-
readonly postpaid: "postpaid";
|
|
2186
|
-
readonly prepaid: "prepaid";
|
|
2187
|
-
readonly one_time: "one_time";
|
|
2188
|
-
};
|
|
2189
1963
|
export type SubscriptionInterval = (typeof SubscriptionInterval)[keyof typeof SubscriptionInterval];
|
|
2190
1964
|
export declare const SubscriptionInterval: {
|
|
2191
1965
|
readonly none: "none";
|
|
@@ -2194,7 +1968,7 @@ export declare const SubscriptionInterval: {
|
|
|
2194
1968
|
readonly year: "year";
|
|
2195
1969
|
};
|
|
2196
1970
|
/**
|
|
2197
|
-
* An operation
|
|
1971
|
+
* 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.
|
|
2198
1972
|
*/
|
|
2199
1973
|
export type SubscriptionRestriction = (typeof SubscriptionRestriction)[keyof typeof SubscriptionRestriction];
|
|
2200
1974
|
export declare const SubscriptionRestriction: {
|
|
@@ -2205,13 +1979,7 @@ export declare const SubscriptionRestriction: {
|
|
|
2205
1979
|
readonly billingsubscriptionsterminate: "billing.subscriptions.terminate";
|
|
2206
1980
|
};
|
|
2207
1981
|
/**
|
|
2208
|
-
* Follows the items. `pending
|
|
2209
|
-
* whether payment is still needed, and it can expire or be canceled. `accepted` is accepted with items still
|
|
2210
|
-
* being set up. `completed` means every item was set up. `partially_completed` means some items were set up
|
|
2211
|
-
* and the others failed or were canceled and were refunded to their original payment sources. `failed` means
|
|
2212
|
-
* no item was delivered and at least one failed; collected amounts for the undelivered items are refunded.
|
|
2213
|
-
* `canceled` means every item was withdrawn without delivery; collected amounts are returned to their original
|
|
2214
|
-
* payment sources. No status establishes service delivery by itself.
|
|
1982
|
+
* 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.
|
|
2215
1983
|
*/
|
|
2216
1984
|
export type OrderStatus = (typeof OrderStatus)[keyof typeof OrderStatus];
|
|
2217
1985
|
export declare const OrderStatus: {
|
|
@@ -2229,7 +1997,7 @@ export declare const ScheduledChangeInterval: {
|
|
|
2229
1997
|
readonly year: "year";
|
|
2230
1998
|
};
|
|
2231
1999
|
/**
|
|
2232
|
-
* The next accepted period-end change
|
|
2000
|
+
* The next accepted period-end change of the subscription: the target terms, applied at effective_at.
|
|
2233
2001
|
*/
|
|
2234
2002
|
export interface ScheduledChange {
|
|
2235
2003
|
order_id: string;
|
|
@@ -2240,7 +2008,7 @@ export interface ScheduledChange {
|
|
|
2240
2008
|
plan_name: string;
|
|
2241
2009
|
price_id: string;
|
|
2242
2010
|
quantity: string;
|
|
2243
|
-
/** The target
|
|
2011
|
+
/** The target licensed renewal amount before tax. */
|
|
2244
2012
|
recurring_amount: string;
|
|
2245
2013
|
currency: string;
|
|
2246
2014
|
interval: ScheduledChangeInterval;
|
|
@@ -2248,11 +2016,7 @@ export interface ScheduledChange {
|
|
|
2248
2016
|
interval_count: number;
|
|
2249
2017
|
}
|
|
2250
2018
|
/**
|
|
2251
|
-
* pending
|
|
2252
|
-
* provisioning means the service accepted the order and is delivering. For a service-owned
|
|
2253
|
-
* purchase, only confirmed delivery moves it to active; paying alone does not.
|
|
2254
|
-
* canceled means cancellation completed, or an unfulfilled purchase was canceled or failed without delivery.
|
|
2255
|
-
* terminated means an administrator or the owning service immediately ended the commercial relationship.
|
|
2019
|
+
* `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.
|
|
2256
2020
|
*/
|
|
2257
2021
|
export type SubscriptionStatus = (typeof SubscriptionStatus)[keyof typeof SubscriptionStatus];
|
|
2258
2022
|
export declare const SubscriptionStatus: {
|
|
@@ -2264,42 +2028,37 @@ export declare const SubscriptionStatus: {
|
|
|
2264
2028
|
readonly terminated: "terminated";
|
|
2265
2029
|
};
|
|
2266
2030
|
/**
|
|
2267
|
-
*
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
*
|
|
2274
|
-
*
|
|
2275
|
-
*
|
|
2276
|
-
* then; postpaid usage starts only when the service reports actual delivery and metering.
|
|
2031
|
+
* The dimension values of what was bought, such as region and instance type. Empty when the purchase gave none.
|
|
2032
|
+
*/
|
|
2033
|
+
export type SubscriptionDimensions = {
|
|
2034
|
+
[key: string]: string;
|
|
2035
|
+
};
|
|
2036
|
+
/**
|
|
2037
|
+
* A purchase that is billed, renewed and changed on its own, separate from the owning service's resource. A new
|
|
2038
|
+
* recurring purchase creates a pending subscription for each order line; its ID is returned on the order item
|
|
2039
|
+
* and stays the same through checkout, delivery, renewals and changes. A one-time purchase may create none.
|
|
2277
2040
|
*
|
|
2278
|
-
*
|
|
2279
|
-
*
|
|
2280
|
-
*
|
|
2281
|
-
*
|
|
2282
|
-
*
|
|
2283
|
-
* original value. Technical state belongs to the owning service.
|
|
2041
|
+
* Pending and provisioning subscriptions grant no service. A subscription becomes provisioning when the owning
|
|
2042
|
+
* service accepts the order, and active when the service confirms delivery, which sets started_at; payment
|
|
2043
|
+
* changes neither. Licensed service periods start at delivery, and metered usage is charged as the service
|
|
2044
|
+
* reports it. Canceling or failing an undelivered purchase cancels its subscriptions without starting a period.
|
|
2045
|
+
* Renewals use recurring_amount and the agreed interval; paid periods keep their value.
|
|
2284
2046
|
*
|
|
2285
|
-
* A
|
|
2286
|
-
*
|
|
2287
|
-
* Creating or deleting snapshots within it does not create, activate or terminate more subscriptions;
|
|
2288
|
-
* the owning service enforces current holdings against the purchased count.
|
|
2047
|
+
* A shared capacity limit, such as a regional snapshot quota, has one subscription for the purchased quantity
|
|
2048
|
+
* rather than one per item.
|
|
2289
2049
|
*/
|
|
2290
2050
|
export interface Subscription {
|
|
2291
2051
|
/** 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. */
|
|
2292
2052
|
renewal_discounts_enabled?: boolean;
|
|
2293
2053
|
currency: string;
|
|
2294
|
-
|
|
2054
|
+
type: PriceType;
|
|
2055
|
+
usage_type: UsageType;
|
|
2056
|
+
/** The dimension values of what was bought, such as region and instance type. Empty when the purchase gave none. */
|
|
2057
|
+
dimensions: SubscriptionDimensions;
|
|
2295
2058
|
interval: SubscriptionInterval;
|
|
2296
2059
|
/** @minimum 1 */
|
|
2297
2060
|
interval_count?: number;
|
|
2298
|
-
/**
|
|
2299
|
-
* Whole-subscription prepaid renewal amount, after continuing discounts and before tax.
|
|
2300
|
-
* Pending subscriptions show base terms until paying the order fixes any new continuing discount.
|
|
2301
|
-
* Absent for other charge types.
|
|
2302
|
-
*/
|
|
2061
|
+
/** 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. */
|
|
2303
2062
|
recurring_amount?: string;
|
|
2304
2063
|
termination_policy?: TerminationPolicy;
|
|
2305
2064
|
refund_policy?: RefundPolicy;
|
|
@@ -2308,17 +2067,14 @@ export interface Subscription {
|
|
|
2308
2067
|
coupon?: ObjectIdentity;
|
|
2309
2068
|
/** @minimum 0 */
|
|
2310
2069
|
discounted_renewals_remaining?: number;
|
|
2311
|
-
/** The operations currently prevented on the subscription, sorted
|
|
2070
|
+
/** The operations currently prevented on the subscription, sorted; it is suspended while this contains `billing.subscriptions.use`. */
|
|
2312
2071
|
restrictions?: SubscriptionRestriction[];
|
|
2313
2072
|
billing_cycle_anchor?: string;
|
|
2314
2073
|
cancellation?: SubscriptionCancellation;
|
|
2315
|
-
/** The accepted period-end change
|
|
2074
|
+
/** The accepted period-end change scheduled for this subscription; null when there is none. */
|
|
2316
2075
|
scheduled_change?: ScheduledChange | null;
|
|
2317
2076
|
/**
|
|
2318
|
-
* The saved payment method automatic renewal charges after the account's
|
|
2319
|
-
* before the account's default payment method. Set when the purchase, a renewal or a change is paid with a
|
|
2320
|
-
* saved payment method; paying any other way leaves it unchanged. It is used only while it belongs to the
|
|
2321
|
-
* account that pays the renewal.
|
|
2077
|
+
* 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.
|
|
2322
2078
|
* @nullable
|
|
2323
2079
|
*/
|
|
2324
2080
|
default_payment_method_id?: string | null;
|
|
@@ -2329,16 +2085,11 @@ export interface Subscription {
|
|
|
2329
2085
|
account: AccountIdentity;
|
|
2330
2086
|
product_id: ProductID;
|
|
2331
2087
|
/**
|
|
2332
|
-
*
|
|
2333
|
-
* membership, which belongs to no single project.
|
|
2088
|
+
* The project it is for. Absent for an account-level purchase, such as a membership.
|
|
2334
2089
|
* @nullable
|
|
2335
2090
|
*/
|
|
2336
2091
|
project_id?: string | null;
|
|
2337
|
-
/**
|
|
2338
|
-
* The project and its current name, for display. Absent for a purchase at account level,
|
|
2339
|
-
* and when the project no longer exists or its details cannot be read at the moment;
|
|
2340
|
-
* `project_id` still identifies it then.
|
|
2341
|
-
*/
|
|
2092
|
+
/** The project and its current name. Absent for an account-level purchase or when the project cannot be read; `project_id` still identifies it. */
|
|
2342
2093
|
project?: NamedIdentity | null;
|
|
2343
2094
|
product: Product;
|
|
2344
2095
|
plan_id: string;
|
|
@@ -2346,35 +2097,26 @@ export interface Subscription {
|
|
|
2346
2097
|
price_id: string;
|
|
2347
2098
|
quantity: string;
|
|
2348
2099
|
/**
|
|
2349
|
-
* When a
|
|
2350
|
-
* Renewing several periods in advance moves it. Null until a new subscription becomes active, even when
|
|
2351
|
-
* its purchase has been paid, and for postpaid subscriptions.
|
|
2100
|
+
* 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.
|
|
2352
2101
|
* @nullable
|
|
2353
2102
|
*/
|
|
2354
2103
|
current_term_end?: string | null;
|
|
2355
2104
|
/**
|
|
2356
|
-
* Start of the service period in effect now. Null when none is, including for
|
|
2105
|
+
* Start of the service period in effect now. Null when none is, including for metered subscriptions.
|
|
2357
2106
|
* @nullable
|
|
2358
2107
|
*/
|
|
2359
2108
|
current_period_start?: string | null;
|
|
2360
2109
|
/**
|
|
2361
|
-
* End of the service period in effect now
|
|
2362
|
-
* this. Null when no period is in effect, including for postpaid subscriptions.
|
|
2110
|
+
* 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.
|
|
2363
2111
|
* @nullable
|
|
2364
2112
|
*/
|
|
2365
2113
|
current_period_end?: string | null;
|
|
2366
|
-
/**
|
|
2114
|
+
/** 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. */
|
|
2367
2115
|
auto_renew: boolean;
|
|
2368
|
-
/**
|
|
2369
|
-
* pending means the purchase relationship exists but its order has not been accepted.
|
|
2370
|
-
* provisioning means the service accepted the order and is delivering. For a service-owned
|
|
2371
|
-
* purchase, only confirmed delivery moves it to active; paying alone does not.
|
|
2372
|
-
* canceled means cancellation completed, or an unfulfilled purchase was canceled or failed without delivery.
|
|
2373
|
-
* terminated means an administrator or the owning service immediately ended the commercial relationship.
|
|
2374
|
-
*/
|
|
2116
|
+
/** `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. */
|
|
2375
2117
|
status: SubscriptionStatus;
|
|
2376
2118
|
/**
|
|
2377
|
-
*
|
|
2119
|
+
* When service started. Null until a new subscription becomes active, also after payment.
|
|
2378
2120
|
* @nullable
|
|
2379
2121
|
*/
|
|
2380
2122
|
started_at?: string | null;
|
|
@@ -2401,10 +2143,7 @@ export interface RenewalPrice {
|
|
|
2401
2143
|
/** What renewing for this term costs, for the quantity held. */
|
|
2402
2144
|
amount?: Money;
|
|
2403
2145
|
currency?: string;
|
|
2404
|
-
/**
|
|
2405
|
-
* The term this item already bills at. Renewing for it uses the price bought
|
|
2406
|
-
* originally, so a later price change does not affect it.
|
|
2407
|
-
*/
|
|
2146
|
+
/** The term the subscription renews at now; renewing for it keeps the agreed price. */
|
|
2408
2147
|
current: boolean;
|
|
2409
2148
|
}
|
|
2410
2149
|
export interface RenewalPriceList {
|
|
@@ -2421,14 +2160,10 @@ export declare const RenewRequestInterval: {
|
|
|
2421
2160
|
readonly year: "year";
|
|
2422
2161
|
};
|
|
2423
2162
|
export interface RenewRequest {
|
|
2424
|
-
/**
|
|
2163
|
+
/** The order ID, chosen by the caller. Creating it again conflicts; read the order after an unknown outcome. */
|
|
2425
2164
|
order_id: string;
|
|
2426
2165
|
/**
|
|
2427
|
-
* How many further periods to buy, each at the price
|
|
2428
|
-
*
|
|
2429
|
-
* Buying twelve monthly periods is not the same as buying one yearly term: a longer
|
|
2430
|
-
* term is usually sold at a lower price, and that price is only reached by naming the
|
|
2431
|
-
* interval. Use `interval_count` and `interval` for that.
|
|
2166
|
+
* 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.
|
|
2432
2167
|
* @minimum 1
|
|
2433
2168
|
*/
|
|
2434
2169
|
periods?: number;
|
|
@@ -2467,10 +2202,10 @@ export declare const RenewalOrderRequestInterval: {
|
|
|
2467
2202
|
readonly year: "year";
|
|
2468
2203
|
};
|
|
2469
2204
|
/**
|
|
2470
|
-
* The periods and price
|
|
2205
|
+
* The renewal's periods and price, chosen as in renewing.
|
|
2471
2206
|
*/
|
|
2472
2207
|
export interface RenewalOrderRequest {
|
|
2473
|
-
/**
|
|
2208
|
+
/** The order ID, chosen by the caller. Creating it again conflicts; read the order after an unknown outcome. */
|
|
2474
2209
|
order_id: string;
|
|
2475
2210
|
/**
|
|
2476
2211
|
* As in renewing.
|
|
@@ -2491,10 +2226,7 @@ export interface AutoRenewSet {
|
|
|
2491
2226
|
auto_renew: boolean;
|
|
2492
2227
|
}
|
|
2493
2228
|
/**
|
|
2494
|
-
* `pending
|
|
2495
|
-
* `failed` was not set up and its amount was refunded to the original payment sources.
|
|
2496
|
-
* `canceled` was confirmed withdrawn without delivery; any collected amount is returned. A completed item is ended by canceling
|
|
2497
|
-
* its subscription.
|
|
2229
|
+
* `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.
|
|
2498
2230
|
*/
|
|
2499
2231
|
export type OrderItemStatus = (typeof OrderItemStatus)[keyof typeof OrderItemStatus];
|
|
2500
2232
|
export declare const OrderItemStatus: {
|
|
@@ -2504,7 +2236,7 @@ export declare const OrderItemStatus: {
|
|
|
2504
2236
|
readonly canceled: "canceled";
|
|
2505
2237
|
};
|
|
2506
2238
|
/**
|
|
2507
|
-
* `new` buys, `renew` extends a
|
|
2239
|
+
* `new` buys, `renew` extends a licensed subscription, `modify` changes a subscription's configuration or billing terms.
|
|
2508
2240
|
*/
|
|
2509
2241
|
export type OrderType = (typeof OrderType)[keyof typeof OrderType];
|
|
2510
2242
|
export declare const OrderType: {
|
|
@@ -2513,12 +2245,7 @@ export declare const OrderType: {
|
|
|
2513
2245
|
readonly modify: "modify";
|
|
2514
2246
|
};
|
|
2515
2247
|
/**
|
|
2516
|
-
* When a plan change takes effect
|
|
2517
|
-
*
|
|
2518
|
-
* `period_end` orders stay pending until the first period at the new price is paid. That period
|
|
2519
|
-
* is invoiced shortly before the current paid period ends and starts when it ends; if the
|
|
2520
|
-
* invoice is still unpaid by then, the order is canceled and the subscription renews or ends as
|
|
2521
|
-
* usual. Renewing in the meantime moves all of this along with it.
|
|
2248
|
+
* 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.
|
|
2522
2249
|
*/
|
|
2523
2250
|
export type OrderChangeEffective = (typeof OrderChangeEffective)[keyof typeof OrderChangeEffective];
|
|
2524
2251
|
export declare const OrderChangeEffective: {
|
|
@@ -2527,8 +2254,7 @@ export declare const OrderChangeEffective: {
|
|
|
2527
2254
|
readonly period_end: "period_end";
|
|
2528
2255
|
};
|
|
2529
2256
|
/**
|
|
2530
|
-
* How it was paid.
|
|
2531
|
-
* then names a removed payment method.
|
|
2257
|
+
* How it was paid. `payment_method_id` still names the payment method after it is removed.
|
|
2532
2258
|
*/
|
|
2533
2259
|
export interface PaidWith {
|
|
2534
2260
|
/**
|
|
@@ -2550,22 +2276,17 @@ export declare const OrderItemInterval: {
|
|
|
2550
2276
|
readonly month: "month";
|
|
2551
2277
|
readonly year: "year";
|
|
2552
2278
|
};
|
|
2553
|
-
/**
|
|
2554
|
-
* The payment timing of the selected price.
|
|
2555
|
-
*/
|
|
2556
|
-
export type OrderItemChargeType = (typeof OrderItemChargeType)[keyof typeof OrderItemChargeType];
|
|
2557
|
-
export declare const OrderItemChargeType: {
|
|
2558
|
-
readonly postpaid: "postpaid";
|
|
2559
|
-
readonly prepaid: "prepaid";
|
|
2560
|
-
readonly one_time: "one_time";
|
|
2561
|
-
};
|
|
2562
2279
|
export type OrderItemConfiguration = {
|
|
2563
2280
|
[key: string]: unknown;
|
|
2564
2281
|
};
|
|
2565
2282
|
/**
|
|
2566
|
-
*
|
|
2567
|
-
|
|
2568
|
-
|
|
2283
|
+
* The dimension values the line was bought with, such as region and instance type. Empty when the purchase gave none.
|
|
2284
|
+
*/
|
|
2285
|
+
export type OrderItemDimensions = {
|
|
2286
|
+
[key: string]: string;
|
|
2287
|
+
};
|
|
2288
|
+
/**
|
|
2289
|
+
* 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.
|
|
2569
2290
|
*/
|
|
2570
2291
|
export interface OrderItem {
|
|
2571
2292
|
/** 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. */
|
|
@@ -2575,11 +2296,7 @@ export interface OrderItem {
|
|
|
2575
2296
|
/** @minimum 0 */
|
|
2576
2297
|
position?: number;
|
|
2577
2298
|
configuration?: OrderItemConfiguration;
|
|
2578
|
-
/**
|
|
2579
|
-
* Stable Billing subscription ID. A new prepaid or postpaid service purchase returns the
|
|
2580
|
-
* pending subscription here; renewals and changes reference the existing subscription, which
|
|
2581
|
-
* keeps its ID. Absent for delivery without a subscription. This is not a business resource ID.
|
|
2582
|
-
*/
|
|
2299
|
+
/** 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. */
|
|
2583
2300
|
subscription_id?: string;
|
|
2584
2301
|
interval: OrderItemInterval;
|
|
2585
2302
|
/** @minimum 1 */
|
|
@@ -2587,22 +2304,21 @@ export interface OrderItem {
|
|
|
2587
2304
|
termination_policy?: TerminationPolicy;
|
|
2588
2305
|
refund_policy?: RefundPolicy;
|
|
2589
2306
|
/**
|
|
2590
|
-
*
|
|
2591
|
-
* at purchase, used to value time used under a prorated refund or a downgrade. Null when the plan has
|
|
2592
|
-
* no prepaid period shorter than the one bought.
|
|
2307
|
+
* 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.
|
|
2593
2308
|
* @nullable
|
|
2594
2309
|
*/
|
|
2595
2310
|
refund_monthly_amount?: string | null;
|
|
2596
2311
|
/**
|
|
2597
|
-
*
|
|
2598
|
-
* purchase, used for time used short of a full month. Null when the plan has no postpaid price.
|
|
2312
|
+
* 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.
|
|
2599
2313
|
* @nullable
|
|
2600
2314
|
*/
|
|
2601
2315
|
refund_hourly_amount?: string | null;
|
|
2602
2316
|
recurring_amount?: string;
|
|
2603
2317
|
setup_amount?: string;
|
|
2604
|
-
|
|
2605
|
-
|
|
2318
|
+
type: PriceType;
|
|
2319
|
+
usage_type: UsageType;
|
|
2320
|
+
/** The dimension values the line was bought with, such as region and instance type. Empty when the purchase gave none. */
|
|
2321
|
+
dimensions: OrderItemDimensions;
|
|
2606
2322
|
/** Total tax after discounts, including any tax already included in the price. */
|
|
2607
2323
|
tax_amount?: string;
|
|
2608
2324
|
/** The part of tax_amount already included in gross_amount; it is not charged again. */
|
|
@@ -2614,45 +2330,28 @@ export interface OrderItem {
|
|
|
2614
2330
|
product?: Product;
|
|
2615
2331
|
/** Which plan was bought. */
|
|
2616
2332
|
plan_id: string;
|
|
2617
|
-
/**
|
|
2618
|
-
* What it was called when bought. It does not follow later catalogue renames and is
|
|
2619
|
-
* not translated.
|
|
2620
|
-
*/
|
|
2333
|
+
/** The name when bought. */
|
|
2621
2334
|
plan_name: string;
|
|
2622
2335
|
quantity: string;
|
|
2623
|
-
/**
|
|
2624
|
-
* The unit amount of the price this line is charged under. Absent for a tiered price, which has no
|
|
2625
|
-
* single unit amount, and for a change that takes effect at once, which is charged as `gross_amount`
|
|
2626
|
-
* describes.
|
|
2627
|
-
*/
|
|
2336
|
+
/** 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. */
|
|
2628
2337
|
unit_amount?: Money;
|
|
2629
2338
|
/**
|
|
2630
|
-
* Before discounts: the price applied to the quantity,
|
|
2631
|
-
*
|
|
2632
|
-
* the
|
|
2633
|
-
*
|
|
2634
|
-
* difference instead. A change between equal period prices charges and refunds nothing. The setup fee is not part of it; see `setup_amount`.
|
|
2339
|
+
* Before discounts and setup fees: the price applied to the quantity, `unit_amount` times `quantity` for a per-
|
|
2340
|
+
* unit price, raised by any minimum charge. For an immediate upgrade it is the new price for the rest of the
|
|
2341
|
+
* paid period minus the amount paid for that time; a downgrade, or a change between equal period prices, charges
|
|
2342
|
+
* nothing.
|
|
2635
2343
|
*
|
|
2636
|
-
* Under an inclusive tax rate it includes tax,
|
|
2637
|
-
*
|
|
2638
|
-
* tax, and tax is added to it.
|
|
2344
|
+
* Under an inclusive tax rate it includes tax, shown in `tax_included_amount`, except for a renewal at agreed
|
|
2345
|
+
* terms, whose amount excludes tax.
|
|
2639
2346
|
*/
|
|
2640
2347
|
gross_amount?: Money;
|
|
2641
|
-
/**
|
|
2642
|
-
* The reduction on this line: from the coupon the order uses and, for a renewal at the agreed terms,
|
|
2643
|
-
* from the discount the subscription carries.
|
|
2644
|
-
*
|
|
2645
|
-
* A carried discount is part of the agreed amount. It is listed here, and `gross_amount` is then
|
|
2646
|
-
* `unit_amount` times `quantity`, except in two cases where `gross_amount` is the agreed amount and
|
|
2647
|
-
* the carried discount is already reflected in it: the renewal order also uses a coupon the account
|
|
2648
|
-
* holds, or the account's tax rate is inclusive.
|
|
2649
|
-
*/
|
|
2348
|
+
/** 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. */
|
|
2650
2349
|
discount_amount?: Money;
|
|
2651
2350
|
/** `gross_amount` less `discount_amount`. */
|
|
2652
2351
|
amount?: Money;
|
|
2653
2352
|
currency: string;
|
|
2654
2353
|
/**
|
|
2655
|
-
* The start of the service period this line paid for.
|
|
2354
|
+
* 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.
|
|
2656
2355
|
* @nullable
|
|
2657
2356
|
*/
|
|
2658
2357
|
period_start?: string | null;
|
|
@@ -2664,17 +2363,13 @@ export interface OrderItem {
|
|
|
2664
2363
|
status: OrderItemStatus;
|
|
2665
2364
|
}
|
|
2666
2365
|
/**
|
|
2667
|
-
* A recorded purchase with its invoice from placement; a zero-total invoice, such as for
|
|
2668
|
-
* admission, is issued and paid at placement whatever the checkout mode. Until checkout_confirmed_at is set, the
|
|
2669
|
-
* invoice is a draft at base prices: paying it fixes the discount and amount, issues it and collects it, and the
|
|
2670
|
-
* order cannot be accepted before then. Coupon fields describe the discount fixed at that point and are absent
|
|
2671
|
-
* before it; a quote never populates them. Payment and acceptance remain separate from resource delivery.
|
|
2366
|
+
* 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.
|
|
2672
2367
|
*/
|
|
2673
2368
|
export interface Order {
|
|
2674
2369
|
coupon_id?: string;
|
|
2675
2370
|
coupon?: ObjectIdentity;
|
|
2676
2371
|
promotion_code_id?: string;
|
|
2677
|
-
/**
|
|
2372
|
+
/** The promotion code applied. Absent for an account discount. */
|
|
2678
2373
|
promotion_code?: string;
|
|
2679
2374
|
/** The order's invoice, the same as invoice.id. */
|
|
2680
2375
|
invoice_id: string;
|
|
@@ -2685,53 +2380,32 @@ export interface Order {
|
|
|
2685
2380
|
change_effective_at?: string;
|
|
2686
2381
|
id: string;
|
|
2687
2382
|
/**
|
|
2688
|
-
*
|
|
2689
|
-
* as a membership.
|
|
2383
|
+
* The project it was bought for. Absent for an account-level purchase, such as a membership.
|
|
2690
2384
|
* @nullable
|
|
2691
2385
|
*/
|
|
2692
2386
|
project_id?: string | null;
|
|
2693
|
-
/**
|
|
2694
|
-
* The project and its current name, for display. Absent for a purchase at account level,
|
|
2695
|
-
* and when the project no longer exists or its details cannot be read at the moment;
|
|
2696
|
-
* `project_id` still identifies it then.
|
|
2697
|
-
*/
|
|
2387
|
+
/** The project and its current name. Absent for an account-level purchase or when the project cannot be read; `project_id` still identifies it. */
|
|
2698
2388
|
project?: NamedIdentity | null;
|
|
2699
|
-
/**
|
|
2700
|
-
* The billing account the order was placed with. It does not change when the project is later
|
|
2701
|
-
* linked to another billing account. While this account is suspended or closed the order cannot
|
|
2702
|
-
* be accepted, and the invoice of a change scheduled for the end of a period is not issued and the change is called off
|
|
2703
|
-
* when the current period ends; such requests fail with BILLING_ACCOUNT_UNAVAILABLE.
|
|
2704
|
-
*/
|
|
2389
|
+
/** 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`. */
|
|
2705
2390
|
billing_account_id?: number;
|
|
2706
2391
|
currency: string;
|
|
2707
|
-
/** `new` buys, `renew` extends a
|
|
2392
|
+
/** `new` buys, `renew` extends a licensed subscription, `modify` changes a subscription's configuration or billing terms. */
|
|
2708
2393
|
type: OrderType;
|
|
2709
2394
|
status: OrderStatus;
|
|
2710
|
-
/**
|
|
2711
|
-
* When a plan change takes effect. `none` on anything that is not a change.
|
|
2712
|
-
*
|
|
2713
|
-
* `period_end` orders stay pending until the first period at the new price is paid. That period
|
|
2714
|
-
* is invoiced shortly before the current paid period ends and starts when it ends; if the
|
|
2715
|
-
* invoice is still unpaid by then, the order is canceled and the subscription renews or ends as
|
|
2716
|
-
* usual. Renewing in the meantime moves all of this along with it.
|
|
2717
|
-
*/
|
|
2395
|
+
/** 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. */
|
|
2718
2396
|
change_effective?: OrderChangeEffective;
|
|
2719
2397
|
/**
|
|
2720
|
-
* Acceptance deadline
|
|
2398
|
+
* Acceptance deadline; a pending order expires after it.
|
|
2721
2399
|
* @nullable
|
|
2722
2400
|
*/
|
|
2723
2401
|
expires_at?: string | null;
|
|
2724
2402
|
/**
|
|
2725
|
-
* When the discount and amount were fixed: at placement for automatic checkout
|
|
2726
|
-
* zero total, otherwise when the invoice was first paid. Null while a deferred order awaits payment.
|
|
2403
|
+
* 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.
|
|
2727
2404
|
* @nullable
|
|
2728
2405
|
*/
|
|
2729
2406
|
checkout_confirmed_at?: string | null;
|
|
2730
2407
|
created_at: string;
|
|
2731
|
-
/**
|
|
2732
|
-
* What was bought. Present on a single order and on every order in a list, so a list
|
|
2733
|
-
* can be rendered without a further request per row.
|
|
2734
|
-
*/
|
|
2408
|
+
/** What was bought. */
|
|
2735
2409
|
items: OrderItem[];
|
|
2736
2410
|
}
|
|
2737
2411
|
export interface OrderList {
|
|
@@ -2739,8 +2413,7 @@ export interface OrderList {
|
|
|
2739
2413
|
pagination: OffsetPagination;
|
|
2740
2414
|
}
|
|
2741
2415
|
/**
|
|
2742
|
-
* `scheduled` before valid_from, `active` within the validity, `expired` after valid_until, or
|
|
2743
|
-
* `voided` once Leaflow withdrew it.
|
|
2416
|
+
* `scheduled` before valid_from, `active` within the validity, `expired` after valid_until, or `voided` once withdrawn.
|
|
2744
2417
|
*/
|
|
2745
2418
|
export type DiscountStatus = (typeof DiscountStatus)[keyof typeof DiscountStatus];
|
|
2746
2419
|
export declare const DiscountStatus: {
|
|
@@ -2757,9 +2430,7 @@ export declare const DiscountType: {
|
|
|
2757
2430
|
readonly free_setup: "free_setup";
|
|
2758
2431
|
};
|
|
2759
2432
|
/**
|
|
2760
|
-
* Whether the discount continues on renewals
|
|
2761
|
-
* purchase or renewal that uses the coupon, `recurring` continues for `frequency_duration` billing
|
|
2762
|
-
* periods including the first, and `forever` continues on every renewal.
|
|
2433
|
+
* Whether the discount continues on renewals: `once` applies only to the purchase or renewal using the coupon, `recurring` for `frequency_duration` periods including the first, `forever` on every renewal.
|
|
2763
2434
|
*/
|
|
2764
2435
|
export type DiscountFrequency = (typeof DiscountFrequency)[keyof typeof DiscountFrequency];
|
|
2765
2436
|
export declare const DiscountFrequency: {
|
|
@@ -2768,26 +2439,18 @@ export declare const DiscountFrequency: {
|
|
|
2768
2439
|
readonly forever: "forever";
|
|
2769
2440
|
};
|
|
2770
2441
|
/**
|
|
2771
|
-
* A coupon held
|
|
2772
|
-
* to metered usage that the coupon covers.
|
|
2442
|
+
* A coupon held by the account for a period, applying without a code to the purchases and metered usage it covers.
|
|
2773
2443
|
*/
|
|
2774
2444
|
export interface Discount {
|
|
2775
2445
|
min_amount?: string;
|
|
2776
2446
|
billing_account_id?: number;
|
|
2777
2447
|
coupon_id: string;
|
|
2778
2448
|
promotion_code_id?: string;
|
|
2779
|
-
/**
|
|
2780
|
-
* `scheduled` before valid_from, `active` within the validity, `expired` after valid_until, or
|
|
2781
|
-
* `voided` once Leaflow withdrew it.
|
|
2782
|
-
*/
|
|
2449
|
+
/** `scheduled` before valid_from, `active` within the validity, `expired` after valid_until, or `voided` once withdrawn. */
|
|
2783
2450
|
status: DiscountStatus;
|
|
2784
2451
|
voided_at?: string;
|
|
2785
2452
|
type: DiscountType;
|
|
2786
|
-
/**
|
|
2787
|
-
* Whether the discount continues on renewals of the purchased item. `once` applies only to the
|
|
2788
|
-
* purchase or renewal that uses the coupon, `recurring` continues for `frequency_duration` billing
|
|
2789
|
-
* periods including the first, and `forever` continues on every renewal.
|
|
2790
|
-
*/
|
|
2453
|
+
/** Whether the discount continues on renewals: `once` applies only to the purchase or renewal using the coupon, `recurring` for `frequency_duration` periods including the first, `forever` on every renewal. */
|
|
2791
2454
|
frequency?: DiscountFrequency;
|
|
2792
2455
|
/** @minimum 1 */
|
|
2793
2456
|
frequency_duration?: number;
|
|
@@ -2799,10 +2462,7 @@ export interface Discount {
|
|
|
2799
2462
|
/** Caps a percentage discount. */
|
|
2800
2463
|
max_discount?: Money;
|
|
2801
2464
|
currency?: string;
|
|
2802
|
-
/**
|
|
2803
|
-
* What it may be used for. Absent means it applies to anything on the account,
|
|
2804
|
-
* including setup fees and traffic.
|
|
2805
|
-
*/
|
|
2465
|
+
/** What it may pay for. Absent means anything on the account, including setup fees and usage. */
|
|
2806
2466
|
applies_to: Applicability;
|
|
2807
2467
|
/** Restricted to your first purchase of anything it applies to. */
|
|
2808
2468
|
first_purchase_only?: boolean;
|
|
@@ -2822,7 +2482,7 @@ export interface OrderItemList {
|
|
|
2822
2482
|
pagination: OffsetPagination;
|
|
2823
2483
|
}
|
|
2824
2484
|
/**
|
|
2825
|
-
* Whether the quantity was paid for or granted free
|
|
2485
|
+
* Whether the quantity was paid for or granted free; both are consumed the same way.
|
|
2826
2486
|
*/
|
|
2827
2487
|
export type AllowanceCategory = (typeof AllowanceCategory)[keyof typeof AllowanceCategory];
|
|
2828
2488
|
export declare const AllowanceCategory: {
|
|
@@ -2853,7 +2513,7 @@ export interface Allowance {
|
|
|
2853
2513
|
meter: ObjectIdentity;
|
|
2854
2514
|
/** The unit it is counted in, such as `MiB`. */
|
|
2855
2515
|
unit?: string;
|
|
2856
|
-
/** Whether the quantity was paid for or granted free
|
|
2516
|
+
/** Whether the quantity was paid for or granted free; both are consumed the same way. */
|
|
2857
2517
|
category: AllowanceCategory;
|
|
2858
2518
|
/**
|
|
2859
2519
|
* Exact values for a subset of the meter's dimensions. Only usage with these values is deducted;
|
|
@@ -2865,16 +2525,12 @@ export interface Allowance {
|
|
|
2865
2525
|
quantity: string;
|
|
2866
2526
|
/** How much is left. */
|
|
2867
2527
|
remaining_quantity: string;
|
|
2868
|
-
/**
|
|
2869
|
-
* Lower values are consumed first. At equal priority, earlier expiry and then earlier issuance take
|
|
2870
|
-
* precedence.
|
|
2871
|
-
*/
|
|
2528
|
+
/** Lower values are consumed first; at equal priority, earlier expiry and then earlier issuance. */
|
|
2872
2529
|
priority?: number;
|
|
2873
2530
|
status: AllowanceStatus;
|
|
2874
2531
|
valid_from: string;
|
|
2875
2532
|
/**
|
|
2876
|
-
* When
|
|
2877
|
-
* not carry over. Absent when it does not expire on its own.
|
|
2533
|
+
* When the allowance lapses; unused quantity is lost. Absent when it does not expire.
|
|
2878
2534
|
* @nullable
|
|
2879
2535
|
*/
|
|
2880
2536
|
valid_until?: string | null;
|
|
@@ -2917,8 +2573,7 @@ export interface Entitlement {
|
|
|
2917
2573
|
name?: string;
|
|
2918
2574
|
enabled: boolean;
|
|
2919
2575
|
/**
|
|
2920
|
-
* When the
|
|
2921
|
-
* has no end date.
|
|
2576
|
+
* When the providing subscription ends. Absent for a metered subscription.
|
|
2922
2577
|
* @nullable
|
|
2923
2578
|
*/
|
|
2924
2579
|
expires_at?: string | null;
|
|
@@ -2953,30 +2608,7 @@ export interface PlanListC836db9 {
|
|
|
2953
2608
|
}
|
|
2954
2609
|
export type PlanListA200529 = PlanListC836db9;
|
|
2955
2610
|
/**
|
|
2956
|
-
* `
|
|
2957
|
-
* charges once.
|
|
2958
|
-
*/
|
|
2959
|
-
export type PriceType = (typeof PriceType)[keyof typeof PriceType];
|
|
2960
|
-
export declare const PriceType: {
|
|
2961
|
-
readonly postpaid: "postpaid";
|
|
2962
|
-
readonly prepaid: "prepaid";
|
|
2963
|
-
readonly one_time: "one_time";
|
|
2964
|
-
};
|
|
2965
|
-
/**
|
|
2966
|
-
* How the amount is arrived at. `rated` means the rate depends on attributes such as
|
|
2967
|
-
* region or machine type, and is looked up on a price list.
|
|
2968
|
-
*/
|
|
2969
|
-
export type PriceBillingScheme = (typeof PriceBillingScheme)[keyof typeof PriceBillingScheme];
|
|
2970
|
-
export declare const PriceBillingScheme: {
|
|
2971
|
-
readonly per_unit: "per_unit";
|
|
2972
|
-
readonly tiered: "tiered";
|
|
2973
|
-
readonly rated: "rated";
|
|
2974
|
-
};
|
|
2975
|
-
/**
|
|
2976
|
-
* `none` for a price that is not tiered, which is most of them.
|
|
2977
|
-
*
|
|
2978
|
-
* Otherwise `graduated` charges each band at its own rate, and `volume` charges
|
|
2979
|
-
* everything at the rate of the band the total falls in.
|
|
2611
|
+
* How a ladder is walked: `graduated` charges each band at its own rate, `volume` charges everything at the rate of the band the total falls in. `none` when not tiered.
|
|
2980
2612
|
*/
|
|
2981
2613
|
export type PriceTiersMode = (typeof PriceTiersMode)[keyof typeof PriceTiersMode];
|
|
2982
2614
|
export declare const PriceTiersMode: {
|
|
@@ -2993,7 +2625,7 @@ export declare const PriceInterval: {
|
|
|
2993
2625
|
};
|
|
2994
2626
|
export interface Tier {
|
|
2995
2627
|
/**
|
|
2996
|
-
* The upper bound
|
|
2628
|
+
* The band's inclusive upper bound; null for the last band.
|
|
2997
2629
|
* @nullable
|
|
2998
2630
|
*/
|
|
2999
2631
|
up_to?: string | null;
|
|
@@ -3006,6 +2638,7 @@ export interface Price {
|
|
|
3006
2638
|
lookup_key?: string;
|
|
3007
2639
|
product: Product;
|
|
3008
2640
|
plan: ObjectIdentity;
|
|
2641
|
+
/** For a metered price with its own amounts, the meter it charges. For a licensed price, the meter its quantity is held on. Absent otherwise. */
|
|
3009
2642
|
meter_id?: string;
|
|
3010
2643
|
meter?: ObjectIdentity;
|
|
3011
2644
|
unit_quantity: string;
|
|
@@ -3017,39 +2650,25 @@ export interface Price {
|
|
|
3017
2650
|
id: string;
|
|
3018
2651
|
plan_id: string;
|
|
3019
2652
|
currency: string;
|
|
3020
|
-
/**
|
|
3021
|
-
* `postpaid` charges for what is used, `prepaid` buys a period in advance, `one_time`
|
|
3022
|
-
* charges once.
|
|
3023
|
-
*/
|
|
3024
2653
|
type: PriceType;
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
*/
|
|
3029
|
-
billing_scheme: PriceBillingScheme;
|
|
2654
|
+
usage_type: UsageType;
|
|
2655
|
+
/** Absent when the price delegates to a rate card, where the rate depends on attributes such as region or machine type. */
|
|
2656
|
+
billing_scheme?: BillingScheme;
|
|
3030
2657
|
/** Present for `per_unit`. */
|
|
3031
2658
|
unit_amount?: Money;
|
|
3032
|
-
/**
|
|
3033
|
-
* `none` for a price that is not tiered, which is most of them.
|
|
3034
|
-
*
|
|
3035
|
-
* Otherwise `graduated` charges each band at its own rate, and `volume` charges
|
|
3036
|
-
* everything at the rate of the band the total falls in.
|
|
3037
|
-
*/
|
|
2659
|
+
/** How a ladder is walked: `graduated` charges each band at its own rate, `volume` charges everything at the rate of the band the total falls in. `none` when not tiered. */
|
|
3038
2660
|
tiers_mode?: PriceTiersMode;
|
|
3039
2661
|
/** Present for `tiered`, in ascending order. */
|
|
3040
2662
|
tiers?: Tier[];
|
|
3041
|
-
/**
|
|
2663
|
+
/** Present when the price delegates to a rate card, the price list its rates are read from. */
|
|
3042
2664
|
rate_card_id?: string;
|
|
3043
2665
|
/** The smallest quantity that can be bought. Absent means no lower bound. */
|
|
3044
2666
|
min_quantity?: string;
|
|
3045
|
-
/**
|
|
3046
|
-
* The largest purchasable quantity. Omitted when no maximum applies. A quantity above this limit is
|
|
3047
|
-
* rejected with BILLING_PRICE_INVALID and field=max_quantity.
|
|
3048
|
-
*/
|
|
2667
|
+
/** The largest quantity that may be bought; absent when there is no limit. A larger quantity is refused with `BILLING_PRICE_INVALID` and `field` `max_quantity`. */
|
|
3049
2668
|
max_quantity?: string;
|
|
3050
2669
|
/** Quantities must be a multiple of this. Absent means any quantity within the bounds. */
|
|
3051
2670
|
quantity_step?: string;
|
|
3052
|
-
/** For
|
|
2671
|
+
/** For recurring licensed prices, how many interval units one period covers. */
|
|
3053
2672
|
interval_count?: number;
|
|
3054
2673
|
interval: PriceInterval;
|
|
3055
2674
|
setup_fee?: Money;
|
|
@@ -3059,18 +2678,20 @@ export interface PriceList {
|
|
|
3059
2678
|
pagination: OffsetPagination;
|
|
3060
2679
|
}
|
|
3061
2680
|
/**
|
|
3062
|
-
* The
|
|
2681
|
+
* The dimension values this rate applies to, such as region and machine type.
|
|
3063
2682
|
*/
|
|
3064
2683
|
export type RateDimensions = {
|
|
3065
2684
|
[key: string]: string;
|
|
3066
2685
|
};
|
|
3067
2686
|
/**
|
|
3068
|
-
*
|
|
2687
|
+
* Licensed rates only, the period the amount buys; `none` for metered rates.
|
|
3069
2688
|
*/
|
|
3070
|
-
export type
|
|
3071
|
-
export declare const
|
|
3072
|
-
readonly
|
|
3073
|
-
readonly
|
|
2689
|
+
export type RateInterval = (typeof RateInterval)[keyof typeof RateInterval];
|
|
2690
|
+
export declare const RateInterval: {
|
|
2691
|
+
readonly none: "none";
|
|
2692
|
+
readonly day: "day";
|
|
2693
|
+
readonly month: "month";
|
|
2694
|
+
readonly year: "year";
|
|
3074
2695
|
};
|
|
3075
2696
|
/**
|
|
3076
2697
|
* `graduated` charges each band at its own rate; `volume` charges everything at the rate of the band the total lands in. `none` for a `per_unit` rate.
|
|
@@ -3083,22 +2704,24 @@ export declare const RateTiersMode: {
|
|
|
3083
2704
|
};
|
|
3084
2705
|
export interface Rate {
|
|
3085
2706
|
meter: ObjectIdentity;
|
|
3086
|
-
/** The unit readings
|
|
2707
|
+
/** The unit readings are reported in, such as `core-second`. */
|
|
3087
2708
|
unit?: string;
|
|
3088
|
-
/** The
|
|
2709
|
+
/** The dimension values this rate applies to, such as region and machine type. */
|
|
3089
2710
|
dimensions: RateDimensions;
|
|
3090
|
-
|
|
3091
|
-
|
|
2711
|
+
billing_scheme: BillingScheme;
|
|
2712
|
+
/** `metered` prices usage; `licensed` prices holding a quantity for one period. */
|
|
2713
|
+
usage_type: UsageType;
|
|
2714
|
+
/** Licensed rates only, the period the amount buys; `none` for metered rates. */
|
|
2715
|
+
interval: RateInterval;
|
|
2716
|
+
/** @nullable */
|
|
2717
|
+
interval_count?: number | null;
|
|
3092
2718
|
/** `graduated` charges each band at its own rate; `volume` charges everything at the rate of the band the total lands in. `none` for a `per_unit` rate. */
|
|
3093
2719
|
tiers_mode: RateTiersMode;
|
|
3094
2720
|
/** Present for `per_unit`. Tiered rates carry their amounts on the tiers. */
|
|
3095
2721
|
unit_amount?: Money;
|
|
3096
2722
|
/** Present for a tiered rate, in ascending order. */
|
|
3097
2723
|
tiers?: Tier[];
|
|
3098
|
-
/**
|
|
3099
|
-
* How many measured units one amount covers. An hourly rate on a per-second meter is
|
|
3100
|
-
* `"3600"`.
|
|
3101
|
-
*/
|
|
2724
|
+
/** How many measured units one amount covers; an hourly rate on a per-second meter is `"3600"`. */
|
|
3102
2725
|
unit_quantity?: string;
|
|
3103
2726
|
currency: string;
|
|
3104
2727
|
effective_from: string;
|
|
@@ -3109,15 +2732,6 @@ export interface RateList {
|
|
|
3109
2732
|
items: Rate[];
|
|
3110
2733
|
pagination: OffsetPagination;
|
|
3111
2734
|
}
|
|
3112
|
-
/**
|
|
3113
|
-
* Narrows the selection when a plan offers more than one charge type.
|
|
3114
|
-
*/
|
|
3115
|
-
export type QuoteItemInputPriceType = (typeof QuoteItemInputPriceType)[keyof typeof QuoteItemInputPriceType];
|
|
3116
|
-
export declare const QuoteItemInputPriceType: {
|
|
3117
|
-
readonly postpaid: "postpaid";
|
|
3118
|
-
readonly prepaid: "prepaid";
|
|
3119
|
-
readonly one_time: "one_time";
|
|
3120
|
-
};
|
|
3121
2735
|
export type QuoteItemInputInterval = (typeof QuoteItemInputInterval)[keyof typeof QuoteItemInputInterval];
|
|
3122
2736
|
export declare const QuoteItemInputInterval: {
|
|
3123
2737
|
readonly none: "none";
|
|
@@ -3126,23 +2740,13 @@ export declare const QuoteItemInputInterval: {
|
|
|
3126
2740
|
readonly year: "year";
|
|
3127
2741
|
};
|
|
3128
2742
|
/**
|
|
3129
|
-
* The
|
|
3130
|
-
*
|
|
3131
|
-
* Required when the price draws its rates from a price list, which is how anything
|
|
3132
|
-
* sold by region or by machine type is priced. A price that carries a single unit
|
|
3133
|
-
* amount, or a ladder, has no attributes to give and takes none.
|
|
3134
|
-
*
|
|
3135
|
-
* Every attribute the meter declares must be present. A combination with no rate
|
|
3136
|
-
* covering it is refused rather than priced at zero.
|
|
2743
|
+
* The dimension values the rate depends on, such as region, instance type or token kind: those of the usage for a metered estimate, and those of what is bought for a licensed price on a rate card. Required whenever the price uses a rate card; prices with their own amounts ignore them. Every key the meter declares must be given. A combination no rate covers is refused rather than priced at zero.
|
|
3137
2744
|
*/
|
|
3138
2745
|
export type QuoteItemInputDimensions = {
|
|
3139
2746
|
[key: string]: string;
|
|
3140
2747
|
};
|
|
3141
2748
|
/**
|
|
3142
|
-
* Identify a price
|
|
3143
|
-
* key, never both. Lookup keys require product_id. Meter, dimensions or duration_seconds request a
|
|
3144
|
-
* postpaid usage estimate. Such an estimate cannot be combined with a promotion code or treated as a
|
|
3145
|
-
* checkout amount. Without a usage estimate, a postpaid item includes only any setup charge.
|
|
2749
|
+
* Identify a price, or select one for a plan; give each resource's ID or lookup key, never both, and product_id with lookup keys. For a metered price, a meter or duration_seconds requests a usage estimate, which cannot be combined with a promotion code and is not a checkout amount. Without one, a metered item includes only any setup charge.
|
|
3146
2750
|
*/
|
|
3147
2751
|
export interface QuoteItemInput {
|
|
3148
2752
|
/**
|
|
@@ -3158,12 +2762,14 @@ export interface QuoteItemInput {
|
|
|
3158
2762
|
price_id?: string;
|
|
3159
2763
|
product_id?: ProductID;
|
|
3160
2764
|
plan_id?: string;
|
|
3161
|
-
/** Narrows the selection when a plan offers more than one
|
|
3162
|
-
price_type?:
|
|
2765
|
+
/** Narrows the selection when a plan offers more than one price type. */
|
|
2766
|
+
price_type?: PriceType;
|
|
2767
|
+
/** Narrows the selection when a plan offers more than one usage type. */
|
|
2768
|
+
usage_type?: UsageType;
|
|
3163
2769
|
interval?: QuoteItemInputInterval;
|
|
3164
2770
|
/** @minimum 1 */
|
|
3165
2771
|
interval_count?: number;
|
|
3166
|
-
/** Selects among
|
|
2772
|
+
/** Selects among licensed prices with otherwise identical billing terms. Ambiguous terms are refused instead of choosing a price arbitrarily. */
|
|
3167
2773
|
termination_policy?: TerminationPolicy;
|
|
3168
2774
|
/** @pattern ^(?:(?:[1-9][0-9]{0,27}|0(?:[1-9][0-9]{0,26}|0(?:[1-9][0-9]{0,25}|0(?:[1-9][0-9]{0,24}|0(?:[1-9][0-9]{0,23}|0(?:[1-9][0-9]{0,22}|0(?:[1-9][0-9]{0,21}|0(?:[1-9][0-9]{0,20}|0(?:[1-9][0-9]{0,19}|0(?:[1-9][0-9]{0,18}|0(?:[1-9][0-9]{0,17}|0(?:[1-9][0-9]{0,16}|0(?:[1-9][0-9]{0,15}|0(?:[1-9][0-9]{0,14}|0(?:[1-9][0-9]{0,13}|0(?:[1-9][0-9]{0,12}|0(?:[1-9][0-9]{0,11}|0(?:[1-9][0-9]{0,10}|0(?:[1-9][0-9]{0,9}|0(?:[1-9][0-9]{0,8}|0(?:[1-9][0-9]{0,7}|0(?:[1-9][0-9]{0,6}|0(?:[1-9][0-9]{0,5}|0(?:[1-9][0-9]{0,4}|0(?:[1-9][0-9]{0,3}|0(?:[1-9][0-9]{0,2}|0(?:[1-9][0-9]{0,1}|0[1-9])))))))))))))))))))))))))))([.][0-9]{1,10})?|0{1,28}[.](?:[1-9][0-9]{0,9}|0(?:[1-9][0-9]{0,8}|0(?:[1-9][0-9]{0,7}|0(?:[1-9][0-9]{0,6}|0(?:[1-9][0-9]{0,5}|0(?:[1-9][0-9]{0,4}|0(?:[1-9][0-9]{0,3}|0(?:[1-9][0-9]{0,2}|0(?:[1-9][0-9]{0,1}|0[1-9]))))))))))$ */
|
|
3169
2775
|
quantity: string;
|
|
@@ -3173,36 +2779,37 @@ export interface QuoteItemInput {
|
|
|
3173
2779
|
* @maxLength 128
|
|
3174
2780
|
*/
|
|
3175
2781
|
meter_lookup_key?: string;
|
|
3176
|
-
/**
|
|
3177
|
-
* The attributes the price depends on — region, instance type, token class.
|
|
3178
|
-
*
|
|
3179
|
-
* Required when the price draws its rates from a price list, which is how anything
|
|
3180
|
-
* sold by region or by machine type is priced. A price that carries a single unit
|
|
3181
|
-
* amount, or a ladder, has no attributes to give and takes none.
|
|
3182
|
-
*
|
|
3183
|
-
* Every attribute the meter declares must be present. A combination with no rate
|
|
3184
|
-
* covering it is refused rather than priced at zero.
|
|
3185
|
-
*/
|
|
2782
|
+
/** The dimension values the rate depends on, such as region, instance type or token kind: those of the usage for a metered estimate, and those of what is bought for a licensed price on a rate card. Required whenever the price uses a rate card; prices with their own amounts ignore them. Every key the meter declares must be given. A combination no rate covers is refused rather than priced at zero. */
|
|
3186
2783
|
dimensions?: QuoteItemInputDimensions;
|
|
3187
|
-
/**
|
|
3188
|
-
* For metered items, how long to price for. This allows an estimate such as "about
|
|
3189
|
-
* this much per month" to be shown before anything exists. The priced quantity is
|
|
3190
|
-
* `quantity` multiplied by this duration.
|
|
3191
|
-
*/
|
|
2784
|
+
/** For a metered estimate, how long to price for, in seconds; the priced quantity is `quantity` times this duration. */
|
|
3192
2785
|
duration_seconds?: number;
|
|
3193
2786
|
}
|
|
2787
|
+
/**
|
|
2788
|
+
* The values of the meter's presentation dimensions, present only when grouped by meter.
|
|
2789
|
+
*/
|
|
2790
|
+
export type SpendRowDimensions = {
|
|
2791
|
+
[key: string]: string;
|
|
2792
|
+
};
|
|
3194
2793
|
export interface SpendRow {
|
|
3195
2794
|
product?: Product;
|
|
3196
2795
|
plan_id?: string;
|
|
3197
2796
|
plan_name?: string;
|
|
3198
2797
|
/** Present only when grouped by resource. */
|
|
3199
2798
|
resource_id?: string;
|
|
2799
|
+
/** Present only when grouped by meter. */
|
|
2800
|
+
meter?: ObjectIdentity;
|
|
2801
|
+
/** Present only when grouped by meter. */
|
|
2802
|
+
unit?: string;
|
|
2803
|
+
/** Net usage quantity, present only when grouped by meter. */
|
|
2804
|
+
quantity?: string;
|
|
2805
|
+
/** The values of the meter's presentation dimensions, present only when grouped by meter. */
|
|
2806
|
+
dimensions?: SpendRowDimensions;
|
|
3200
2807
|
amount: Money;
|
|
3201
2808
|
currency: string;
|
|
3202
2809
|
}
|
|
3203
2810
|
export interface SpendRowList {
|
|
3204
2811
|
items: SpendRow[];
|
|
3205
|
-
/** The
|
|
2812
|
+
/** The total over all matching groups, not only the page returned. */
|
|
3206
2813
|
total: Money;
|
|
3207
2814
|
currency: string;
|
|
3208
2815
|
pagination: OffsetPagination;
|
|
@@ -3218,28 +2825,28 @@ export declare const ActiveResourceStatus: {
|
|
|
3218
2825
|
readonly closed: "closed";
|
|
3219
2826
|
};
|
|
3220
2827
|
/**
|
|
3221
|
-
* A resource
|
|
2828
|
+
* A resource charged continuously by the second.
|
|
3222
2829
|
*/
|
|
3223
2830
|
export interface ActiveResource {
|
|
3224
2831
|
id: string;
|
|
3225
2832
|
ended_at?: string;
|
|
3226
2833
|
suspended_at?: string;
|
|
3227
2834
|
state_changed_at?: string;
|
|
3228
|
-
/** The
|
|
2835
|
+
/** The metered subscription charged for this metering record. */
|
|
3229
2836
|
subscription_id: string;
|
|
3230
2837
|
resource_id: string;
|
|
3231
2838
|
product: Product;
|
|
3232
|
-
/**
|
|
2839
|
+
/** The resource type, as the owning service names it. */
|
|
3233
2840
|
resource_type?: string;
|
|
3234
2841
|
meter: ObjectIdentity;
|
|
3235
2842
|
unit?: string;
|
|
3236
|
-
/** How much is held
|
|
2843
|
+
/** How much is held, such as cores, MiB or cards; not how much was used. */
|
|
3237
2844
|
quantity: string;
|
|
3238
2845
|
dimensions?: ActiveResourceDimensions;
|
|
3239
2846
|
status: ActiveResourceStatus;
|
|
3240
2847
|
started_at: string;
|
|
3241
2848
|
project_id?: string;
|
|
3242
|
-
/** Usage has been generated up to this boundary; it
|
|
2849
|
+
/** Usage has been generated up to this boundary; it says nothing about invoicing or payment. */
|
|
3243
2850
|
usage_generated_until: string;
|
|
3244
2851
|
}
|
|
3245
2852
|
export interface ActiveResourceList {
|
|
@@ -3247,7 +2854,7 @@ export interface ActiveResourceList {
|
|
|
3247
2854
|
pagination: OffsetPagination;
|
|
3248
2855
|
}
|
|
3249
2856
|
/**
|
|
3250
|
-
* An estimate of the refundable value of
|
|
2857
|
+
* An estimate of the refundable value of an order or selected items; nothing is canceled or refunded.
|
|
3251
2858
|
*/
|
|
3252
2859
|
export interface OrderRefundQuoteInput {
|
|
3253
2860
|
order_id: string;
|
|
@@ -3259,33 +2866,24 @@ export interface OrderRefundQuoteInput {
|
|
|
3259
2866
|
order_item_ids?: string[];
|
|
3260
2867
|
}
|
|
3261
2868
|
/**
|
|
3262
|
-
*
|
|
3263
|
-
* refund. All targets use the specified billing account. Nothing is saved, charged, reserved or
|
|
3264
|
-
* canceled. Promotion codes apply only to a purchase basket or an existing order. An invalid
|
|
3265
|
-
* combination returns BILLING_PURCHASE_INVALID with the offending field."
|
|
2869
|
+
* Quote exactly one target for the billing account: proposed items, an existing order, renewals, a cancellation or an order refund. Promotion codes apply only to proposed items or an existing order. An invalid combination fails with `BILLING_PURCHASE_INVALID` and the field.
|
|
3266
2870
|
*/
|
|
3267
2871
|
export interface QuoteRequest {
|
|
3268
2872
|
/**
|
|
3269
|
-
* The billing account to price for
|
|
3270
|
-
* with this account; renewals and cancellations must currently be paid for by it.
|
|
2873
|
+
* The billing account to price for; it must be yours. Existing orders must have been placed with it, and renewals and cancellations must currently be paid by it.
|
|
3271
2874
|
* @minimum 1
|
|
3272
2875
|
*/
|
|
3273
2876
|
billing_account_id: number;
|
|
3274
2877
|
/**
|
|
3275
|
-
* A proposed purchase priced in the account currency. Metered items may
|
|
3276
|
-
* quantities; those estimates are not amounts collectible at checkout.
|
|
2878
|
+
* A proposed purchase priced in the account's currency. Metered items may include usage estimates, which are not checkout amounts.
|
|
3277
2879
|
* @minItems 1
|
|
3278
2880
|
* @maxItems 100
|
|
3279
2881
|
*/
|
|
3280
2882
|
items?: QuoteItemInput[];
|
|
3281
|
-
/**
|
|
3282
|
-
* Preview paying this existing order. Its recorded purchase terms supply every line, and an order
|
|
3283
|
-
* whose terms are fixed returns its recorded amounts. A preview does not change the order.
|
|
3284
|
-
*/
|
|
2883
|
+
/** Preview paying this order. Its recorded terms supply every line, and an order whose terms are fixed returns its recorded amounts. The order does not change. */
|
|
3285
2884
|
order_id?: string;
|
|
3286
2885
|
/**
|
|
3287
|
-
* Preview renewing these subscriptions, each at most once
|
|
3288
|
-
* renewal order. To preview a new promotion code, create a renewal order and quote it by order_id.
|
|
2886
|
+
* Preview renewing these subscriptions, each at most once; each entry is a separate renewal order. To preview a promotion code, create a renewal order and quote it by order_id.
|
|
3289
2887
|
* @minItems 1
|
|
3290
2888
|
* @maxItems 100
|
|
3291
2889
|
*/
|
|
@@ -3299,9 +2897,7 @@ export interface QuoteRequest {
|
|
|
3299
2897
|
refund?: OrderRefundQuoteInput;
|
|
3300
2898
|
}
|
|
3301
2899
|
/**
|
|
3302
|
-
* How tax applies to the customer, as in Stripe
|
|
3303
|
-
* `reverse` charges no tax and leaves it to the customer under the reverse-charge mechanism;
|
|
3304
|
-
* invoices state this. Only operators change it.
|
|
2900
|
+
* How tax applies to the customer, as in Stripe: `none` taxes normally, `exempt` charges no tax, `reverse` charges no tax under the reverse-charge mechanism, stated on invoices. Only operators change it.
|
|
3305
2901
|
*/
|
|
3306
2902
|
export type ContactTaxExempt = (typeof ContactTaxExempt)[keyof typeof ContactTaxExempt];
|
|
3307
2903
|
export declare const ContactTaxExempt: {
|
|
@@ -3310,7 +2906,7 @@ export declare const ContactTaxExempt: {
|
|
|
3310
2906
|
readonly reverse: "reverse";
|
|
3311
2907
|
};
|
|
3312
2908
|
/**
|
|
3313
|
-
* A billing
|
|
2909
|
+
* A contact of a billing account with one address. An account can hold several; a contact is not a login.
|
|
3314
2910
|
*/
|
|
3315
2911
|
export interface Contact {
|
|
3316
2912
|
id: string;
|
|
@@ -3338,11 +2934,7 @@ export interface Contact {
|
|
|
3338
2934
|
address_postal_code?: string;
|
|
3339
2935
|
/** @pattern ^([A-Z]{2})?$ */
|
|
3340
2936
|
address_country?: string;
|
|
3341
|
-
/**
|
|
3342
|
-
* How tax applies to the customer, as in Stripe. `none` taxes normally. `exempt` charges no tax.
|
|
3343
|
-
* `reverse` charges no tax and leaves it to the customer under the reverse-charge mechanism;
|
|
3344
|
-
* invoices state this. Only operators change it.
|
|
3345
|
-
*/
|
|
2937
|
+
/** How tax applies to the customer, as in Stripe: `none` taxes normally, `exempt` charges no tax, `reverse` charges no tax under the reverse-charge mechanism, stated on invoices. Only operators change it. */
|
|
3346
2938
|
tax_exempt: ContactTaxExempt;
|
|
3347
2939
|
active: boolean;
|
|
3348
2940
|
created_at: string;
|
|
@@ -3418,14 +3010,14 @@ export interface StatementAmounts {
|
|
|
3418
3010
|
total: Money;
|
|
3419
3011
|
}
|
|
3420
3012
|
/**
|
|
3421
|
-
* One billing account's usage billing for one UTC calendar month, summed over
|
|
3013
|
+
* 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.
|
|
3422
3014
|
*/
|
|
3423
3015
|
export interface MonthlyStatement {
|
|
3424
3016
|
billing_account_id: number;
|
|
3425
3017
|
currency: string;
|
|
3426
3018
|
period_start: string;
|
|
3427
3019
|
period_end: string;
|
|
3428
|
-
/** True after the period's final closing, which applies minimum charges
|
|
3020
|
+
/** 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. */
|
|
3429
3021
|
finalized: boolean;
|
|
3430
3022
|
finalized_at?: string;
|
|
3431
3023
|
/** Statements of the period, including the open one. */
|
|
@@ -3448,7 +3040,7 @@ export declare const StatementStatus: {
|
|
|
3448
3040
|
readonly closed: "closed";
|
|
3449
3041
|
};
|
|
3450
3042
|
/**
|
|
3451
|
-
* interim
|
|
3043
|
+
* `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.
|
|
3452
3044
|
*/
|
|
3453
3045
|
export type StatementType = (typeof StatementType)[keyof typeof StatementType];
|
|
3454
3046
|
export declare const StatementType: {
|
|
@@ -3457,7 +3049,7 @@ export declare const StatementType: {
|
|
|
3457
3049
|
readonly supplement: "supplement";
|
|
3458
3050
|
};
|
|
3459
3051
|
/**
|
|
3460
|
-
* An account's consumption for one billing period
|
|
3052
|
+
* 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.
|
|
3461
3053
|
*/
|
|
3462
3054
|
export interface Statement {
|
|
3463
3055
|
id: string;
|
|
@@ -3469,7 +3061,7 @@ export interface Statement {
|
|
|
3469
3061
|
sequence: number;
|
|
3470
3062
|
status: StatementStatus;
|
|
3471
3063
|
type: StatementType;
|
|
3472
|
-
/** True while the statement is open. The estimate
|
|
3064
|
+
/** 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. */
|
|
3473
3065
|
estimated: boolean;
|
|
3474
3066
|
amounts: StatementAmounts;
|
|
3475
3067
|
closed_at?: string;
|
|
@@ -3483,11 +3075,19 @@ export interface StatementList {
|
|
|
3483
3075
|
items: Statement[];
|
|
3484
3076
|
pagination: OffsetPagination;
|
|
3485
3077
|
}
|
|
3078
|
+
/**
|
|
3079
|
+
* 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.
|
|
3080
|
+
*/
|
|
3081
|
+
export type StatementItemDimensions = {
|
|
3082
|
+
[key: string]: string;
|
|
3083
|
+
};
|
|
3486
3084
|
export interface StatementItem {
|
|
3487
3085
|
project_id?: string;
|
|
3488
3086
|
product_id?: string;
|
|
3489
3087
|
meter_id?: string;
|
|
3490
3088
|
unit?: string;
|
|
3089
|
+
/** 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. */
|
|
3090
|
+
dimensions?: StatementItemDimensions;
|
|
3491
3091
|
/** Net usage quantity. Included only when grouping by meter. */
|
|
3492
3092
|
quantity?: string;
|
|
3493
3093
|
deducted_quantity?: string;
|