@leaflow/sdk 0.0.0-dev.352.g85966ed → 0.0.0-dev.353.g74313e0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/billing/type/funds/v1/generated/models.d.ts +4 -4
- package/dist/billing/type/funds/v1/generated/validators/funds.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/models.d.ts +375 -779
- package/dist/billing/type/order/v1/generated/models.js +12 -44
- package/dist/billing/type/order/v1/generated/validators/accountBalance.zod.d.ts +22 -11
- package/dist/billing/type/order/v1/generated/validators/accountBalance.zod.js +8 -8
- package/dist/billing/type/order/v1/generated/validators/activeResource.zod.js +8 -5
- package/dist/billing/type/order/v1/generated/validators/allowance.zod.js +3 -3
- package/dist/billing/type/order/v1/generated/validators/applicability.zod.d.ts +22 -11
- package/dist/billing/type/order/v1/generated/validators/applicability.zod.js +12 -3
- package/dist/billing/type/order/v1/generated/validators/applicablePlan.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/billingAccount.zod.js +5 -5
- package/dist/billing/type/order/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/billingScheme.zod.d.ts +14 -0
- package/dist/billing/type/order/v1/generated/validators/billingScheme.zod.js +11 -0
- package/dist/billing/type/order/v1/generated/validators/cancellation.zod.d.ts +6 -3
- package/dist/billing/type/order/v1/generated/validators/cancellation.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/cancellationCreate.zod.js +3 -3
- package/dist/billing/type/order/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
- package/dist/billing/type/order/v1/generated/validators/cancellationItem.zod.js +6 -5
- package/dist/billing/type/order/v1/generated/validators/cancellationList.zod.d.ts +6 -3
- package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
- package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
- package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
- package/dist/billing/type/order/v1/generated/validators/contact.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/creditGrant.zod.d.ts +22 -11
- package/dist/billing/type/order/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
- package/dist/billing/type/order/v1/generated/validators/creditGroup.zod.d.ts +22 -11
- package/dist/billing/type/order/v1/generated/validators/creditGroup.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/creditNote.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/currency.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/discount.zod.d.ts +23 -12
- package/dist/billing/type/order/v1/generated/validators/discount.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/discountList.zod.d.ts +23 -12
- package/dist/billing/type/order/v1/generated/validators/entitlement.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/funds.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/invoice.zod.d.ts +0 -1
- package/dist/billing/type/order/v1/generated/validators/invoice.zod.js +8 -8
- package/dist/billing/type/order/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/invoiceItem.zod.js +6 -4
- package/dist/billing/type/order/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/invoiceItemProration.zod.js +1 -3
- package/dist/billing/type/order/v1/generated/validators/invoiceList.zod.d.ts +0 -1
- package/dist/billing/type/order/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
- package/dist/billing/type/order/v1/generated/validators/invoiceStatus.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
- package/dist/billing/type/order/v1/generated/validators/invoiceSummary.zod.js +3 -3
- package/dist/billing/type/order/v1/generated/validators/monthlyStatement.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/objectIdentity.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/order.zod.d.ts +7 -4
- package/dist/billing/type/order/v1/generated/validators/order.zod.js +10 -12
- package/dist/billing/type/order/v1/generated/validators/orderItem.zod.d.ts +7 -3
- package/dist/billing/type/order/v1/generated/validators/orderItem.zod.js +16 -14
- package/dist/billing/type/order/v1/generated/validators/orderItemList.zod.d.ts +7 -3
- package/dist/billing/type/order/v1/generated/validators/orderItemStatus.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/orderList.zod.d.ts +7 -4
- package/dist/billing/type/order/v1/generated/validators/orderRefundQuote.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/orderStatus.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/paidWith.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
- package/dist/billing/type/order/v1/generated/validators/payTogetherRequest.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/paymentAction.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
- package/dist/billing/type/order/v1/generated/validators/paymentOption.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/paymentPreview.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/paymentResult.zod.js +5 -8
- package/dist/billing/type/order/v1/generated/validators/paymentStatus.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/placedOrder.zod.d.ts +0 -1
- package/dist/billing/type/order/v1/generated/validators/price.zod.d.ts +7 -5
- package/dist/billing/type/order/v1/generated/validators/price.zod.js +14 -11
- package/dist/billing/type/order/v1/generated/validators/priceList.zod.d.ts +7 -5
- package/dist/billing/type/order/v1/generated/validators/priceOption.zod.d.ts +7 -5
- package/dist/billing/type/order/v1/generated/validators/priceOption.zod.js +7 -3
- package/dist/billing/type/order/v1/generated/validators/priceType.zod.d.ts +14 -0
- package/dist/billing/type/order/v1/generated/validators/priceType.zod.js +11 -0
- package/dist/billing/type/order/v1/generated/validators/productID.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/projectAssignment.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/purchaseOperation.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/quote.zod.d.ts +6 -3
- package/dist/billing/type/order/v1/generated/validators/quote.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/quoteCancellation.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/quoteItem.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
- package/dist/billing/type/order/v1/generated/validators/quoteItemInput.zod.js +8 -8
- package/dist/billing/type/order/v1/generated/validators/quoteRenewal.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
- package/dist/billing/type/order/v1/generated/validators/quoteRequest.zod.js +5 -5
- package/dist/billing/type/order/v1/generated/validators/quotedDiscount.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/rate.zod.d.ts +11 -0
- package/dist/billing/type/order/v1/generated/validators/rate.zod.js +14 -6
- package/dist/billing/type/order/v1/generated/validators/rateList.zod.d.ts +11 -0
- package/dist/billing/type/order/v1/generated/validators/refund.zod.js +3 -3
- package/dist/billing/type/order/v1/generated/validators/refundPolicy.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/refundReason.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/renewRequest.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/renewalPrice.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/scheduledChange.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/spendRow.zod.d.ts +8 -0
- package/dist/billing/type/order/v1/generated/validators/spendRow.zod.js +11 -0
- package/dist/billing/type/order/v1/generated/validators/spendRowList.zod.d.ts +8 -0
- package/dist/billing/type/order/v1/generated/validators/spendRowList.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/statement.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/statementItem.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/statementItem.zod.js +4 -0
- package/dist/billing/type/order/v1/generated/validators/statementSummary.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/statementType.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/subscription.zod.d.ts +7 -3
- package/dist/billing/type/order/v1/generated/validators/subscription.zod.js +20 -14
- package/dist/billing/type/order/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
- package/dist/billing/type/order/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/terminationPolicy.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/tier.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/topUp.zod.js +8 -8
- package/dist/billing/type/order/v1/generated/validators/topUpCreate.zod.js +4 -4
- package/dist/billing/type/order/v1/generated/validators/transaction.zod.js +6 -6
- package/dist/billing/type/order/v1/generated/validators/usageCharge.zod.js +4 -7
- package/dist/billing/type/order/v1/generated/validators/usageType.zod.d.ts +14 -0
- package/dist/billing/type/order/v1/generated/validators/usageType.zod.js +11 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawal.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/withdrawalItem.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/validators/withdrawalSource.zod.js +1 -1
- package/dist/billing/type/quote/v1/generated/models.d.ts +4 -4
- package/dist/billing/type/quote/v1/generated/validators/funds.zod.js +4 -4
- package/dist/billing/v1/generated/functions.d.ts +176 -310
- package/dist/billing/v1/generated/functions.js +175 -309
- package/dist/billing/v1/generated/models.d.ts +425 -863
- package/dist/billing/v1/generated/models.js +13 -49
- package/dist/billing/v1/generated/schemas.zod.d.ts +166 -383
- package/dist/billing/v1/generated/schemas.zod.js +213 -372
- package/dist/billing/v1/generated/validators/accountBalance.zod.d.ts +22 -11
- package/dist/billing/v1/generated/validators/accountBalance.zod.js +8 -8
- package/dist/billing/v1/generated/validators/activeResource.zod.js +8 -5
- package/dist/billing/v1/generated/validators/allowance.zod.js +3 -3
- package/dist/billing/v1/generated/validators/applicability.zod.d.ts +22 -11
- package/dist/billing/v1/generated/validators/applicability.zod.js +12 -3
- package/dist/billing/v1/generated/validators/applicablePlan.zod.js +1 -1
- package/dist/billing/v1/generated/validators/billingAccount.zod.js +5 -5
- package/dist/billing/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/billingScheme.zod.d.ts +14 -0
- package/dist/billing/v1/generated/validators/billingScheme.zod.js +11 -0
- package/dist/billing/v1/generated/validators/cancellation.zod.d.ts +6 -3
- package/dist/billing/v1/generated/validators/cancellation.zod.js +4 -4
- package/dist/billing/v1/generated/validators/cancellationCreate.zod.js +3 -3
- package/dist/billing/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
- package/dist/billing/v1/generated/validators/cancellationItem.zod.js +6 -5
- package/dist/billing/v1/generated/validators/cancellationList.zod.d.ts +6 -3
- package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
- package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
- package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
- package/dist/billing/v1/generated/validators/contact.zod.js +2 -2
- package/dist/billing/v1/generated/validators/creditGrant.zod.d.ts +22 -11
- package/dist/billing/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
- package/dist/billing/v1/generated/validators/creditGroup.zod.d.ts +22 -11
- package/dist/billing/v1/generated/validators/creditGroup.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditNote.zod.js +4 -4
- package/dist/billing/v1/generated/validators/currency.zod.js +1 -1
- package/dist/billing/v1/generated/validators/discount.zod.d.ts +23 -12
- package/dist/billing/v1/generated/validators/discount.zod.js +4 -4
- package/dist/billing/v1/generated/validators/discountList.zod.d.ts +23 -12
- package/dist/billing/v1/generated/validators/entitlement.zod.js +1 -1
- package/dist/billing/v1/generated/validators/funds.zod.js +4 -4
- package/dist/billing/v1/generated/validators/invoice.zod.d.ts +0 -1
- package/dist/billing/v1/generated/validators/invoice.zod.js +8 -8
- package/dist/billing/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/invoiceItem.zod.js +6 -4
- package/dist/billing/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/invoiceItemProration.zod.js +1 -3
- package/dist/billing/v1/generated/validators/invoiceList.zod.d.ts +0 -1
- package/dist/billing/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
- package/dist/billing/v1/generated/validators/invoiceStatus.zod.js +2 -2
- package/dist/billing/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
- package/dist/billing/v1/generated/validators/invoiceSummary.zod.js +3 -3
- package/dist/billing/v1/generated/validators/listInvoicesParams.zod.d.ts +0 -1
- package/dist/billing/v1/generated/validators/listPricesParams.zod.d.ts +5 -2
- package/dist/billing/v1/generated/validators/listPricesParams.zod.js +4 -1
- package/dist/billing/v1/generated/validators/listSpendParams.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/listSpendParams.zod.js +3 -1
- package/dist/billing/v1/generated/validators/monthlyStatement.zod.js +2 -2
- package/dist/billing/v1/generated/validators/objectIdentity.zod.js +1 -1
- package/dist/billing/v1/generated/validators/order.zod.d.ts +7 -4
- package/dist/billing/v1/generated/validators/order.zod.js +10 -12
- package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +7 -3
- package/dist/billing/v1/generated/validators/orderItem.zod.js +16 -14
- package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +7 -3
- package/dist/billing/v1/generated/validators/orderItemStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderList.zod.d.ts +7 -4
- package/dist/billing/v1/generated/validators/orderRefundQuote.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paidWith.zod.js +1 -1
- package/dist/billing/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
- package/dist/billing/v1/generated/validators/payTogetherRequest.zod.js +2 -2
- package/dist/billing/v1/generated/validators/paymentAction.zod.js +4 -4
- package/dist/billing/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
- package/dist/billing/v1/generated/validators/paymentOption.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentPreview.zod.js +4 -4
- package/dist/billing/v1/generated/validators/paymentResult.zod.js +5 -8
- package/dist/billing/v1/generated/validators/paymentStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/price.zod.d.ts +7 -5
- package/dist/billing/v1/generated/validators/price.zod.js +14 -11
- package/dist/billing/v1/generated/validators/priceList.zod.d.ts +7 -5
- package/dist/billing/v1/generated/validators/priceOption.zod.d.ts +7 -5
- package/dist/billing/v1/generated/validators/priceOption.zod.js +7 -3
- package/dist/billing/v1/generated/validators/priceType.zod.d.ts +14 -0
- package/dist/billing/v1/generated/validators/priceType.zod.js +11 -0
- package/dist/billing/v1/generated/validators/productID.zod.js +1 -1
- package/dist/billing/v1/generated/validators/projectAssignment.zod.js +2 -2
- package/dist/billing/v1/generated/validators/purchaseOperation.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quote.zod.d.ts +6 -3
- package/dist/billing/v1/generated/validators/quote.zod.js +4 -4
- package/dist/billing/v1/generated/validators/quoteCancellation.zod.js +2 -2
- package/dist/billing/v1/generated/validators/quoteItem.zod.js +4 -4
- package/dist/billing/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
- package/dist/billing/v1/generated/validators/quoteItemInput.zod.js +8 -8
- package/dist/billing/v1/generated/validators/quoteRenewal.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
- package/dist/billing/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
- package/dist/billing/v1/generated/validators/quoteRequest.zod.js +5 -5
- package/dist/billing/v1/generated/validators/quotedDiscount.zod.js +1 -1
- package/dist/billing/v1/generated/validators/rate.zod.d.ts +11 -0
- package/dist/billing/v1/generated/validators/rate.zod.js +14 -6
- package/dist/billing/v1/generated/validators/rateList.zod.d.ts +11 -0
- package/dist/billing/v1/generated/validators/refund.zod.js +3 -3
- package/dist/billing/v1/generated/validators/refundPolicy.zod.js +1 -1
- package/dist/billing/v1/generated/validators/refundReason.zod.js +1 -1
- package/dist/billing/v1/generated/validators/renewRequest.zod.js +2 -2
- package/dist/billing/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
- package/dist/billing/v1/generated/validators/renewalPrice.zod.js +1 -1
- package/dist/billing/v1/generated/validators/scheduledChange.zod.js +2 -2
- package/dist/billing/v1/generated/validators/spendRow.zod.d.ts +8 -0
- package/dist/billing/v1/generated/validators/spendRow.zod.js +11 -0
- package/dist/billing/v1/generated/validators/spendRowList.zod.d.ts +8 -0
- package/dist/billing/v1/generated/validators/spendRowList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statement.zod.js +2 -2
- package/dist/billing/v1/generated/validators/statementItem.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/statementItem.zod.js +4 -0
- package/dist/billing/v1/generated/validators/statementSummary.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/statementType.zod.js +1 -1
- package/dist/billing/v1/generated/validators/subscription.zod.d.ts +7 -3
- package/dist/billing/v1/generated/validators/subscription.zod.js +20 -14
- package/dist/billing/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
- package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
- package/dist/billing/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
- package/dist/billing/v1/generated/validators/terminationPolicy.zod.js +1 -1
- package/dist/billing/v1/generated/validators/tier.zod.js +1 -1
- package/dist/billing/v1/generated/validators/topUp.zod.js +8 -8
- package/dist/billing/v1/generated/validators/topUpCreate.zod.js +4 -4
- package/dist/billing/v1/generated/validators/transaction.zod.js +6 -6
- package/dist/billing/v1/generated/validators/usageCharge.zod.js +4 -7
- package/dist/billing/v1/generated/validators/usageType.zod.d.ts +14 -0
- package/dist/billing/v1/generated/validators/usageType.zod.js +11 -0
- package/dist/billing/v1/generated/validators/withdrawal.zod.js +2 -2
- package/dist/billing/v1/generated/validators/withdrawalItem.zod.js +2 -2
- package/dist/billing/v1/generated/validators/withdrawalSource.zod.js +1 -1
- package/dist/canopy/v1/generated/models.d.ts +375 -779
- package/dist/canopy/v1/generated/models.js +12 -44
- package/dist/canopy/v1/generated/validators/accountBalance.zod.d.ts +22 -11
- package/dist/canopy/v1/generated/validators/accountBalance.zod.js +8 -8
- package/dist/canopy/v1/generated/validators/activeResource.zod.js +8 -5
- package/dist/canopy/v1/generated/validators/allowance.zod.js +3 -3
- package/dist/canopy/v1/generated/validators/applicability.zod.d.ts +22 -11
- package/dist/canopy/v1/generated/validators/applicability.zod.js +12 -3
- package/dist/canopy/v1/generated/validators/applicablePlan.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/billingAccount.zod.js +5 -5
- package/dist/canopy/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/billingScheme.zod.d.ts +39 -0
- package/dist/canopy/v1/generated/validators/billingScheme.zod.js +36 -0
- package/dist/canopy/v1/generated/validators/cancellation.zod.d.ts +6 -3
- package/dist/canopy/v1/generated/validators/cancellation.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/cancellationCreate.zod.js +3 -3
- package/dist/canopy/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
- package/dist/canopy/v1/generated/validators/cancellationItem.zod.js +6 -5
- package/dist/canopy/v1/generated/validators/cancellationList.zod.d.ts +6 -3
- package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
- package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
- package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
- package/dist/canopy/v1/generated/validators/contact.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.d.ts +0 -1
- package/dist/canopy/v1/generated/validators/creditGrant.zod.d.ts +22 -11
- package/dist/canopy/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
- package/dist/canopy/v1/generated/validators/creditGroup.zod.d.ts +22 -11
- package/dist/canopy/v1/generated/validators/creditGroup.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/creditNote.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/currency.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/discount.zod.d.ts +23 -12
- package/dist/canopy/v1/generated/validators/discount.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/discountList.zod.d.ts +23 -12
- package/dist/canopy/v1/generated/validators/entitlement.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/funds.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/invoice.zod.d.ts +0 -1
- package/dist/canopy/v1/generated/validators/invoice.zod.js +8 -8
- package/dist/canopy/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/invoiceItem.zod.js +6 -4
- package/dist/canopy/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/invoiceItemProration.zod.js +1 -3
- package/dist/canopy/v1/generated/validators/invoiceList.zod.d.ts +0 -1
- package/dist/canopy/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
- package/dist/canopy/v1/generated/validators/invoiceStatus.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
- package/dist/canopy/v1/generated/validators/invoiceSummary.zod.js +3 -3
- package/dist/canopy/v1/generated/validators/monthlyStatement.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/objectIdentity.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/order.zod.d.ts +7 -4
- package/dist/canopy/v1/generated/validators/order.zod.js +10 -12
- package/dist/canopy/v1/generated/validators/orderItem.zod.d.ts +7 -3
- package/dist/canopy/v1/generated/validators/orderItem.zod.js +16 -14
- package/dist/canopy/v1/generated/validators/orderItemList.zod.d.ts +7 -3
- package/dist/canopy/v1/generated/validators/orderItemStatus.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/orderList.zod.d.ts +7 -4
- package/dist/canopy/v1/generated/validators/orderRefundQuote.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/orderStatus.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/paidWith.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
- package/dist/canopy/v1/generated/validators/payTogetherRequest.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/paymentAction.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
- package/dist/canopy/v1/generated/validators/paymentOption.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/paymentPreview.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/paymentResult.zod.js +5 -8
- package/dist/canopy/v1/generated/validators/paymentStatus.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/placedOrder.zod.d.ts +0 -1
- package/dist/canopy/v1/generated/validators/price.zod.d.ts +7 -5
- package/dist/canopy/v1/generated/validators/price.zod.js +14 -11
- package/dist/canopy/v1/generated/validators/priceList.zod.d.ts +7 -5
- package/dist/canopy/v1/generated/validators/priceOption.zod.d.ts +7 -5
- package/dist/canopy/v1/generated/validators/priceOption.zod.js +7 -3
- package/dist/canopy/v1/generated/validators/priceType.zod.d.ts +39 -0
- package/dist/canopy/v1/generated/validators/priceType.zod.js +36 -0
- package/dist/canopy/v1/generated/validators/productID.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/projectAssignment.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/purchaseOperation.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/quote5f60d00.zod.d.ts +6 -3
- package/dist/canopy/v1/generated/validators/quote5f60d00.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/quoteA200529.zod.d.ts +6 -3
- package/dist/canopy/v1/generated/validators/quoteCancellation.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/quoteItem.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
- package/dist/canopy/v1/generated/validators/quoteItemInput.zod.js +8 -8
- package/dist/canopy/v1/generated/validators/quoteRenewal.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
- package/dist/canopy/v1/generated/validators/quoteRequest.zod.js +5 -5
- package/dist/canopy/v1/generated/validators/quotedDiscount.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/rate.zod.d.ts +11 -0
- package/dist/canopy/v1/generated/validators/rate.zod.js +14 -6
- package/dist/canopy/v1/generated/validators/rateList.zod.d.ts +11 -0
- package/dist/canopy/v1/generated/validators/refund.zod.js +3 -3
- package/dist/canopy/v1/generated/validators/refundPolicy.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/refundReason.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/renewRequest.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/renewalPrice.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/scheduledChange.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/spendRow.zod.d.ts +8 -0
- package/dist/canopy/v1/generated/validators/spendRow.zod.js +11 -0
- package/dist/canopy/v1/generated/validators/spendRowList.zod.d.ts +8 -0
- package/dist/canopy/v1/generated/validators/spendRowList.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/statement.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/statementItem.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/statementItem.zod.js +4 -0
- package/dist/canopy/v1/generated/validators/statementSummary.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/statementType.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/subscription.zod.d.ts +7 -3
- package/dist/canopy/v1/generated/validators/subscription.zod.js +20 -14
- package/dist/canopy/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
- package/dist/canopy/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/terminationPolicy.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/tier.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/topUp.zod.js +8 -8
- package/dist/canopy/v1/generated/validators/topUpCreate.zod.js +4 -4
- package/dist/canopy/v1/generated/validators/transaction.zod.js +6 -6
- package/dist/canopy/v1/generated/validators/usageCharge.zod.js +4 -7
- package/dist/canopy/v1/generated/validators/usageType.zod.d.ts +39 -0
- package/dist/canopy/v1/generated/validators/usageType.zod.js +36 -0
- package/dist/canopy/v1/generated/validators/withdrawal.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/withdrawalItem.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/withdrawalSource.zod.js +1 -1
- package/dist/compute/v1/generated/models.d.ts +4 -4
- package/dist/compute/v1/generated/schemas.zod.d.ts +18 -18
- package/dist/compute/v1/generated/validators/allocateFloatingIPQuoteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupService.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/billingChoice.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/bootDisk.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupCapacityPackQuoteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createDiskQuoteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createImageQuoteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createImageRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskTypeResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/funds.zod.js +4 -4
- package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/instanceTypeResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/launchInstanceQuoteRequestBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/newBootDisk.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/newCompute.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/newFloatingIP.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/pricing.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/pricingOption.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/regionListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/regionResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/restoreBackupQuoteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setSnapshotQuotaQuoteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/snapshotQuota.zod.d.ts +2 -2
- package/dist/membership/v1/generated/models.d.ts +375 -779
- package/dist/membership/v1/generated/models.js +12 -44
- package/dist/membership/v1/generated/validators/accountBalance.zod.d.ts +22 -11
- package/dist/membership/v1/generated/validators/accountBalance.zod.js +8 -8
- package/dist/membership/v1/generated/validators/activeResource.zod.js +8 -5
- package/dist/membership/v1/generated/validators/allowance.zod.js +3 -3
- package/dist/membership/v1/generated/validators/applicability.zod.d.ts +22 -11
- package/dist/membership/v1/generated/validators/applicability.zod.js +12 -3
- package/dist/membership/v1/generated/validators/applicablePlan.zod.js +1 -1
- package/dist/membership/v1/generated/validators/billingAccount.zod.js +5 -5
- package/dist/membership/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
- package/dist/membership/v1/generated/validators/billingScheme.zod.d.ts +14 -0
- package/dist/membership/v1/generated/validators/billingScheme.zod.js +11 -0
- package/dist/membership/v1/generated/validators/cancellation.zod.d.ts +6 -3
- package/dist/membership/v1/generated/validators/cancellation.zod.js +4 -4
- package/dist/membership/v1/generated/validators/cancellationCreate.zod.js +3 -3
- package/dist/membership/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
- package/dist/membership/v1/generated/validators/cancellationItem.zod.js +6 -5
- package/dist/membership/v1/generated/validators/cancellationList.zod.d.ts +6 -3
- package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
- package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
- package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
- package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
- package/dist/membership/v1/generated/validators/contact.zod.js +2 -2
- package/dist/membership/v1/generated/validators/creditGrant.zod.d.ts +22 -11
- package/dist/membership/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
- package/dist/membership/v1/generated/validators/creditGroup.zod.d.ts +22 -11
- package/dist/membership/v1/generated/validators/creditGroup.zod.js +1 -1
- package/dist/membership/v1/generated/validators/creditNote.zod.js +4 -4
- package/dist/membership/v1/generated/validators/currency6ff0ec7.zod.js +1 -1
- package/dist/membership/v1/generated/validators/discount.zod.d.ts +23 -12
- package/dist/membership/v1/generated/validators/discount.zod.js +4 -4
- package/dist/membership/v1/generated/validators/discountList.zod.d.ts +23 -12
- package/dist/membership/v1/generated/validators/entitlement.zod.js +1 -1
- package/dist/membership/v1/generated/validators/funds.zod.js +4 -4
- package/dist/membership/v1/generated/validators/invoice.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/invoice.zod.js +8 -8
- package/dist/membership/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/invoiceItem.zod.js +6 -4
- package/dist/membership/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/invoiceItemProration.zod.js +1 -3
- package/dist/membership/v1/generated/validators/invoiceList.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/invoiceStatus.zod.js +2 -2
- package/dist/membership/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/invoiceSummary.zod.js +3 -3
- package/dist/membership/v1/generated/validators/membershipPurchase.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/monthlyStatement.zod.js +2 -2
- package/dist/membership/v1/generated/validators/objectIdentity.zod.js +1 -1
- package/dist/membership/v1/generated/validators/order.zod.d.ts +7 -4
- package/dist/membership/v1/generated/validators/order.zod.js +10 -12
- package/dist/membership/v1/generated/validators/orderItem.zod.d.ts +7 -3
- package/dist/membership/v1/generated/validators/orderItem.zod.js +16 -14
- package/dist/membership/v1/generated/validators/orderItemList.zod.d.ts +7 -3
- package/dist/membership/v1/generated/validators/orderItemStatus.zod.js +1 -1
- package/dist/membership/v1/generated/validators/orderList.zod.d.ts +7 -4
- package/dist/membership/v1/generated/validators/orderRefundQuote.zod.js +1 -1
- package/dist/membership/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
- package/dist/membership/v1/generated/validators/orderStatus.zod.js +1 -1
- package/dist/membership/v1/generated/validators/paidWith.zod.js +1 -1
- package/dist/membership/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
- package/dist/membership/v1/generated/validators/payTogetherRequest.zod.js +2 -2
- package/dist/membership/v1/generated/validators/paymentAction.zod.js +4 -4
- package/dist/membership/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
- package/dist/membership/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
- package/dist/membership/v1/generated/validators/paymentOption.zod.js +1 -1
- package/dist/membership/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
- package/dist/membership/v1/generated/validators/paymentPreview.zod.js +4 -4
- package/dist/membership/v1/generated/validators/paymentResult.zod.js +5 -8
- package/dist/membership/v1/generated/validators/paymentStatus.zod.js +1 -1
- package/dist/membership/v1/generated/validators/placedOrder.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/price.zod.d.ts +7 -5
- package/dist/membership/v1/generated/validators/price.zod.js +14 -11
- package/dist/membership/v1/generated/validators/priceList.zod.d.ts +7 -5
- package/dist/membership/v1/generated/validators/priceOption.zod.d.ts +7 -5
- package/dist/membership/v1/generated/validators/priceOption.zod.js +7 -3
- package/dist/membership/v1/generated/validators/priceType.zod.d.ts +14 -0
- package/dist/membership/v1/generated/validators/priceType.zod.js +11 -0
- package/dist/membership/v1/generated/validators/productID.zod.js +1 -1
- package/dist/membership/v1/generated/validators/projectAssignment.zod.js +2 -2
- package/dist/membership/v1/generated/validators/purchaseOperation.zod.js +1 -1
- package/dist/membership/v1/generated/validators/quote.zod.d.ts +6 -3
- package/dist/membership/v1/generated/validators/quote.zod.js +4 -4
- package/dist/membership/v1/generated/validators/quoteCancellation.zod.js +2 -2
- package/dist/membership/v1/generated/validators/quoteItem.zod.js +4 -4
- package/dist/membership/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
- package/dist/membership/v1/generated/validators/quoteItemInput.zod.js +8 -8
- package/dist/membership/v1/generated/validators/quoteRenewal.zod.js +1 -1
- package/dist/membership/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
- package/dist/membership/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
- package/dist/membership/v1/generated/validators/quoteRequest.zod.js +5 -5
- package/dist/membership/v1/generated/validators/quotedDiscount.zod.js +1 -1
- package/dist/membership/v1/generated/validators/rate.zod.d.ts +11 -0
- package/dist/membership/v1/generated/validators/rate.zod.js +14 -6
- package/dist/membership/v1/generated/validators/rateList.zod.d.ts +11 -0
- package/dist/membership/v1/generated/validators/refund.zod.js +3 -3
- package/dist/membership/v1/generated/validators/refundPolicy.zod.js +1 -1
- package/dist/membership/v1/generated/validators/refundReason.zod.js +1 -1
- package/dist/membership/v1/generated/validators/renewRequest.zod.js +2 -2
- package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
- package/dist/membership/v1/generated/validators/renewalPrice.zod.js +1 -1
- package/dist/membership/v1/generated/validators/scheduledChange.zod.js +2 -2
- package/dist/membership/v1/generated/validators/spendRow.zod.d.ts +8 -0
- package/dist/membership/v1/generated/validators/spendRow.zod.js +11 -0
- package/dist/membership/v1/generated/validators/spendRowList.zod.d.ts +8 -0
- package/dist/membership/v1/generated/validators/spendRowList.zod.js +1 -1
- package/dist/membership/v1/generated/validators/statement.zod.js +2 -2
- package/dist/membership/v1/generated/validators/statementItem.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/statementItem.zod.js +4 -0
- package/dist/membership/v1/generated/validators/statementSummary.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/statementType.zod.js +1 -1
- package/dist/membership/v1/generated/validators/subscription.zod.d.ts +7 -3
- package/dist/membership/v1/generated/validators/subscription.zod.js +20 -14
- package/dist/membership/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
- package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
- package/dist/membership/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
- package/dist/membership/v1/generated/validators/terminationPolicy.zod.js +1 -1
- package/dist/membership/v1/generated/validators/tier.zod.js +1 -1
- package/dist/membership/v1/generated/validators/topUp.zod.js +8 -8
- package/dist/membership/v1/generated/validators/topUpCreate.zod.js +4 -4
- package/dist/membership/v1/generated/validators/transaction.zod.js +6 -6
- package/dist/membership/v1/generated/validators/usageCharge.zod.js +4 -7
- package/dist/membership/v1/generated/validators/usageType.zod.d.ts +14 -0
- package/dist/membership/v1/generated/validators/usageType.zod.js +11 -0
- package/dist/membership/v1/generated/validators/withdrawal.zod.js +2 -2
- package/dist/membership/v1/generated/validators/withdrawalItem.zod.js +2 -2
- package/dist/membership/v1/generated/validators/withdrawalSource.zod.js +1 -1
- package/dist/routes.d.ts +4 -4
- package/dist/routes.js +4 -4
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ export const getListWithdrawalItemsUrl = (withdrawalId, params) => {
|
|
|
11
11
|
: `https://billing.leaflow.cloud/api/v1/withdrawals/${encodeURIComponent(String(withdrawalId))}/items`;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* The withdrawal's items and their outcomes. A failed item does not undo refunds completed through other items.
|
|
15
15
|
* @summary List withdrawal items
|
|
16
16
|
*/
|
|
17
17
|
export const listWithdrawalItems = async (withdrawalId, params, options, fetchFn) => {
|
|
@@ -36,7 +36,7 @@ export const getListWithdrawalsUrl = (params) => {
|
|
|
36
36
|
: `https://billing.leaflow.cloud/api/v1/withdrawals`;
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Withdrawals, newest first.
|
|
40
40
|
* @summary List withdrawals
|
|
41
41
|
*/
|
|
42
42
|
export const listWithdrawals = async (params, options, fetchFn) => {
|
|
@@ -52,7 +52,7 @@ export const getCreateWithdrawalUrl = () => {
|
|
|
52
52
|
return `https://billing.leaflow.cloud/api/v1/withdrawals`;
|
|
53
53
|
};
|
|
54
54
|
/**
|
|
55
|
-
* Withdraws the requested
|
|
55
|
+
* Withdraws the requested balance through the original top-ups, oldest first, with fees calculated per source. expected_items and expected_refund_amount must match the preview. Reusing the ID with different terms fails. Only successful items are charged a fee.
|
|
56
56
|
* @summary Create withdrawal
|
|
57
57
|
*/
|
|
58
58
|
export const createWithdrawal = async (withdrawalCreate, options, fetchFn) => {
|
|
@@ -85,7 +85,7 @@ export const getPreviewWithdrawalUrl = () => {
|
|
|
85
85
|
return `https://billing.leaflow.cloud/api/v1/withdrawals/preview`;
|
|
86
86
|
};
|
|
87
87
|
/**
|
|
88
|
-
* Previews the
|
|
88
|
+
* Previews the balance deduction, fees and refund split by original top-up. Omit amount to preview all available balance. Nothing is created or reserved. Fails when a selected source has no refund route or its original processing cost is not yet known.
|
|
89
89
|
* @summary Preview withdrawal
|
|
90
90
|
*/
|
|
91
91
|
export const previewWithdrawal = async (withdrawalPreviewRequest, options, fetchFn) => {
|
|
@@ -106,7 +106,7 @@ export const previewWithdrawal = async (withdrawalPreviewRequest, options, fetch
|
|
|
106
106
|
};
|
|
107
107
|
const res = await (fetchFn ?? fetch)(getPreviewWithdrawalUrl(), {
|
|
108
108
|
...options,
|
|
109
|
-
method: "
|
|
109
|
+
method: "QUERY",
|
|
110
110
|
headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
|
|
111
111
|
body: JSON.stringify(withdrawalPreviewRequest),
|
|
112
112
|
});
|
|
@@ -118,7 +118,7 @@ export const getGetWithdrawalUrl = (withdrawalId) => {
|
|
|
118
118
|
return `https://billing.leaflow.cloud/api/v1/withdrawals/${encodeURIComponent(String(withdrawalId))}`;
|
|
119
119
|
};
|
|
120
120
|
/**
|
|
121
|
-
*
|
|
121
|
+
* A withdrawal with its accepted amounts and overall outcome; list its items for each refund result.
|
|
122
122
|
* @summary Get withdrawal
|
|
123
123
|
*/
|
|
124
124
|
export const getWithdrawal = async (withdrawalId, options, fetchFn) => {
|
|
@@ -143,7 +143,7 @@ export const getListContactsUrl = (accountId, params) => {
|
|
|
143
143
|
: `https://billing.leaflow.cloud/api/v1/billing-accounts/${encodeURIComponent(String(accountId))}/contacts`;
|
|
144
144
|
};
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
146
|
+
* Contacts of the billing account, inactive ones included. Returns 404 if the account does not exist.
|
|
147
147
|
* @summary List contacts
|
|
148
148
|
*/
|
|
149
149
|
export const listContacts = async (accountId, params, options, fetchFn) => {
|
|
@@ -159,7 +159,7 @@ export const getCreateContactUrl = (accountId) => {
|
|
|
159
159
|
return `https://billing.leaflow.cloud/api/v1/billing-accounts/${encodeURIComponent(String(accountId))}/contacts`;
|
|
160
160
|
};
|
|
161
161
|
/**
|
|
162
|
-
* Creates a contact
|
|
162
|
+
* Creates a contact for the billing account. To use it on invoices, set the account's invoice_contact_id.
|
|
163
163
|
* @summary Create contact
|
|
164
164
|
*/
|
|
165
165
|
export const createContact = async (accountId, contactCreate, options, fetchFn) => {
|
|
@@ -192,7 +192,7 @@ export const getGetContactUrl = (accountId, contactId) => {
|
|
|
192
192
|
return `https://billing.leaflow.cloud/api/v1/billing-accounts/${encodeURIComponent(String(accountId))}/contacts/${encodeURIComponent(String(contactId))}`;
|
|
193
193
|
};
|
|
194
194
|
/**
|
|
195
|
-
*
|
|
195
|
+
* A contact of this billing account. Returns 404 if it does not exist in the account.
|
|
196
196
|
* @summary Get contact
|
|
197
197
|
*/
|
|
198
198
|
export const getContact = async (accountId, contactId, options, fetchFn) => {
|
|
@@ -208,7 +208,7 @@ export const getUpdateContactUrl = (accountId, contactId) => {
|
|
|
208
208
|
return `https://billing.leaflow.cloud/api/v1/billing-accounts/${encodeURIComponent(String(accountId))}/contacts/${encodeURIComponent(String(contactId))}`;
|
|
209
209
|
};
|
|
210
210
|
/**
|
|
211
|
-
* Updates a contact
|
|
211
|
+
* Updates a contact of this billing account. Returns 404 if it does not exist in the account.
|
|
212
212
|
* @summary Update contact
|
|
213
213
|
*/
|
|
214
214
|
export const updateContact = async (accountId, contactId, contactUpdate, options, fetchFn) => {
|
|
@@ -241,7 +241,7 @@ export const getDeleteContactUrl = (accountId, contactId) => {
|
|
|
241
241
|
return `https://billing.leaflow.cloud/api/v1/billing-accounts/${encodeURIComponent(String(accountId))}/contacts/${encodeURIComponent(String(contactId))}`;
|
|
242
242
|
};
|
|
243
243
|
/**
|
|
244
|
-
* Deletes a contact
|
|
244
|
+
* Deletes a contact of this billing account; 404 if it does not exist in the account. A contact selected for invoices must be cleared or replaced first. Issued invoices keep their copy.
|
|
245
245
|
* @summary Delete contact
|
|
246
246
|
*/
|
|
247
247
|
export const deleteContact = async (accountId, contactId, options, fetchFn) => {
|
|
@@ -266,8 +266,7 @@ export const getListCurrenciesUrl = (params) => {
|
|
|
266
266
|
: `https://billing.leaflow.cloud/api/v1/currencies`;
|
|
267
267
|
};
|
|
268
268
|
/**
|
|
269
|
-
*
|
|
270
|
-
* although accounts already opened in it keep working. Results are paginated.
|
|
269
|
+
* Currencies a new billing account can be opened in; retired currencies are not listed.
|
|
271
270
|
* @summary List currencies accounts can be opened in
|
|
272
271
|
*/
|
|
273
272
|
export const listCurrencies = async (params, options, fetchFn) => {
|
|
@@ -292,7 +291,7 @@ export const getListBillingAccountsUrl = (params) => {
|
|
|
292
291
|
: `https://billing.leaflow.cloud/api/v1/billing-accounts`;
|
|
293
292
|
};
|
|
294
293
|
/**
|
|
295
|
-
*
|
|
294
|
+
* Billing accounts owned by the authenticated user.
|
|
296
295
|
* @summary List billing accounts
|
|
297
296
|
*/
|
|
298
297
|
export const listBillingAccounts = async (params, options, fetchFn) => {
|
|
@@ -308,10 +307,7 @@ export const getCreateBillingAccountUrl = () => {
|
|
|
308
307
|
return `https://billing.leaflow.cloud/api/v1/billing-accounts`;
|
|
309
308
|
};
|
|
310
309
|
/**
|
|
311
|
-
*
|
|
312
|
-
* account — prices, orders, invoices, balance — is denominated in it.
|
|
313
|
-
*
|
|
314
|
-
* One person may hold several accounts, for example a personal one and one for a team.
|
|
310
|
+
* Creates a billing account. Its currency is fixed: prices, orders, invoices and balance are all in it.
|
|
315
311
|
* @summary Create billing account
|
|
316
312
|
*/
|
|
317
313
|
export const createBillingAccount = async (billingAccountCreate, options, fetchFn) => {
|
|
@@ -344,7 +340,7 @@ export const getGetBillingAccountUrl = (accountId) => {
|
|
|
344
340
|
return `https://billing.leaflow.cloud/api/v1/billing-accounts/${encodeURIComponent(String(accountId))}`;
|
|
345
341
|
};
|
|
346
342
|
/**
|
|
347
|
-
*
|
|
343
|
+
* Your billing account with its currency, status and invoice contact. Returns 404 if it does not exist and 403 if it belongs to another user.
|
|
348
344
|
* @summary Get billing account
|
|
349
345
|
*/
|
|
350
346
|
export const getBillingAccount = async (accountId, options, fetchFn) => {
|
|
@@ -360,9 +356,7 @@ export const getUpdateBillingAccountUrl = (accountId) => {
|
|
|
360
356
|
return `https://billing.leaflow.cloud/api/v1/billing-accounts/${encodeURIComponent(String(accountId))}`;
|
|
361
357
|
};
|
|
362
358
|
/**
|
|
363
|
-
*
|
|
364
|
-
* address and tax identifier are copied when an invoice is issued; issued snapshots are
|
|
365
|
-
* retained. Set invoice_contact_id to null to clear the selection. The currency cannot change.
|
|
359
|
+
* Selects an active contact of this account for future invoices; its legal name, address and tax identifier are copied when an invoice is issued. Set invoice_contact_id to null to clear it. The currency cannot change.
|
|
366
360
|
* @summary Update billing account
|
|
367
361
|
*/
|
|
368
362
|
export const updateBillingAccount = async (accountId, billingAccountUpdate, options, fetchFn) => {
|
|
@@ -395,7 +389,7 @@ export const getGetAccountBalanceUrl = (accountId) => {
|
|
|
395
389
|
return `https://billing.leaflow.cloud/api/v1/billing-accounts/${encodeURIComponent(String(accountId))}/balance`;
|
|
396
390
|
};
|
|
397
391
|
/**
|
|
398
|
-
*
|
|
392
|
+
* The balance of your account, with credit groups, unpaid invoice amounts, unbilled estimates and pending returns. Returns 404 for a missing account and 403 for another user's account.
|
|
399
393
|
* @summary Get account balance
|
|
400
394
|
*/
|
|
401
395
|
export const getAccountBalance = async (accountId, options, fetchFn) => {
|
|
@@ -420,10 +414,7 @@ export const getListPaymentOptionsUrl = (accountId, params) => {
|
|
|
420
414
|
: `https://billing.leaflow.cloud/api/v1/billing-accounts/${encodeURIComponent(String(accountId))}/payment-options`;
|
|
421
415
|
};
|
|
422
416
|
/**
|
|
423
|
-
*
|
|
424
|
-
* preferred gateway first. Top-ups and invoice payments must name a gateway and method listed here;
|
|
425
|
-
* others are refused. An empty result means no online payment is available for this account.
|
|
426
|
-
* Results are paginated.
|
|
417
|
+
* The payment gateways and methods currently accepting the account's currency, preferred gateway first. Top-ups and invoice payments must use one listed here. An empty result means online payment is unavailable for the account.
|
|
427
418
|
* @summary List payment options
|
|
428
419
|
*/
|
|
429
420
|
export const listPaymentOptions = async (accountId, params, options, fetchFn) => {
|
|
@@ -448,7 +439,7 @@ export const getListProjectAssignmentsUrl = (params) => {
|
|
|
448
439
|
: `https://billing.leaflow.cloud/api/v1/assignments`;
|
|
449
440
|
};
|
|
450
441
|
/**
|
|
451
|
-
*
|
|
442
|
+
* Current project assignments to your billing accounts, filtered by billing_account_id or project_ids. Past charges keep the account they were assigned to.
|
|
452
443
|
* @summary List project assignments
|
|
453
444
|
*/
|
|
454
445
|
export const listProjectAssignments = async (params, options, fetchFn) => {
|
|
@@ -464,8 +455,7 @@ export const getGetProjectAssignmentUrl = (projectId) => {
|
|
|
464
455
|
return `https://billing.leaflow.cloud/api/v1/assignments/${encodeURIComponent(String(projectId))}`;
|
|
465
456
|
};
|
|
466
457
|
/**
|
|
467
|
-
*
|
|
468
|
-
* no billing account is assigned; no resources can be created until one is assigned.
|
|
458
|
+
* The project's current assignment. Returns 404 when no billing account is assigned; the project cannot create resources until one is.
|
|
469
459
|
* @summary Get project assignment
|
|
470
460
|
*/
|
|
471
461
|
export const getProjectAssignment = async (projectId, options, fetchFn) => {
|
|
@@ -481,17 +471,13 @@ export const getSetProjectAssignmentUrl = (projectId) => {
|
|
|
481
471
|
return `https://billing.leaflow.cloud/api/v1/assignments/${encodeURIComponent(String(projectId))}`;
|
|
482
472
|
};
|
|
483
473
|
/**
|
|
484
|
-
* Charges already incurred
|
|
485
|
-
* occurred
|
|
486
|
-
* the change.
|
|
487
|
-
*
|
|
488
|
-
*
|
|
489
|
-
* Orders keep the billing account they were placed with and are fulfilled as placed. Periods
|
|
490
|
-
* already paid for are unaffected; renewals are charged to the new billing account.
|
|
474
|
+
* Links the project to another billing account. Charges already incurred stay with the account linked when they
|
|
475
|
+
* occurred and are invoiced to it; metered resources are settled up to the moment of the change. Amounts the
|
|
476
|
+
* previous account owes do not prevent the change. Orders keep the account they were placed with; paid periods
|
|
477
|
+
* are unaffected, and renewals are charged to the new account.
|
|
491
478
|
*
|
|
492
|
-
*
|
|
493
|
-
*
|
|
494
|
-
* other than that of the new billing account.
|
|
479
|
+
* Refused once the project no longer accepts purchases because it is being deleted, and while a subscription or
|
|
480
|
+
* an in-progress order of the project uses a currency other than the new account's.
|
|
495
481
|
* @summary Set project assignment
|
|
496
482
|
*/
|
|
497
483
|
export const setProjectAssignment = async (projectId, setProjectAssignmentRequest, options, fetchFn) => {
|
|
@@ -524,17 +510,7 @@ export const getUnlinkProjectBillingAccountUrl = (projectId) => {
|
|
|
524
510
|
return `https://billing.leaflow.cloud/api/v1/assignments/${encodeURIComponent(String(projectId))}`;
|
|
525
511
|
};
|
|
526
512
|
/**
|
|
527
|
-
* Ends the project's current assignment
|
|
528
|
-
*
|
|
529
|
-
* Permitted only when nothing in the project is still running or in progress: no metered
|
|
530
|
-
* resources, no subscriptions that have not ended, and no orders in progress, including
|
|
531
|
-
* changes scheduled for the end of a period. Orders are not modified by this request; wait
|
|
532
|
-
* for them to complete, and have the service that scheduled a change call it off.
|
|
533
|
-
*
|
|
534
|
-
* Charges already incurred remain with the billing account and are invoiced to it as usual.
|
|
535
|
-
* Amounts the billing account owes do not prevent unlinking.
|
|
536
|
-
*
|
|
537
|
-
* After this the project cannot make purchases until a billing account is linked again.
|
|
513
|
+
* Ends the project's current assignment; the assignment history is kept. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes; orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual; amounts it owes do not prevent unlinking. The project cannot make purchases until a billing account is linked again.
|
|
538
514
|
* @summary Unlink project billing account
|
|
539
515
|
*/
|
|
540
516
|
export const unlinkProjectBillingAccount = async (projectId, options, fetchFn) => {
|
|
@@ -559,8 +535,7 @@ export const getListTopUpsUrl = (params) => {
|
|
|
559
535
|
: `https://billing.leaflow.cloud/api/v1/top-ups`;
|
|
560
536
|
};
|
|
561
537
|
/**
|
|
562
|
-
*
|
|
563
|
-
* created for a top-up. Items carry no `action`; read a pending top-up with get-top-up to continue its payment.
|
|
538
|
+
* Your top-ups, including pending, failed and canceled attempts. Items carry no `action`; read a pending top-up with get-top-up to continue its payment.
|
|
564
539
|
* @summary List top ups
|
|
565
540
|
*/
|
|
566
541
|
export const listTopUps = async (params, options, fetchFn) => {
|
|
@@ -576,9 +551,7 @@ export const getCreateTopUpUrl = () => {
|
|
|
576
551
|
return `https://billing.leaflow.cloud/api/v1/top-ups`;
|
|
577
552
|
};
|
|
578
553
|
/**
|
|
579
|
-
* Creates a top-up for an account
|
|
580
|
-
* The balance increases only after the payment gateway confirms receipt. A top-up has no invoice.
|
|
581
|
-
* Keep the supplied ID to query the original attempt after a lost response; duplicate creation conflicts.
|
|
554
|
+
* Creates a top-up for an account of the authenticated user and returns its payment information. The balance increases when the gateway confirms receipt. Keep the supplied ID to read the attempt after a lost response; creating it again conflicts.
|
|
582
555
|
* @summary Create top up
|
|
583
556
|
*/
|
|
584
557
|
export const createTopUp = async (topUpCreate, options, fetchFn) => {
|
|
@@ -611,12 +584,7 @@ export const getGetTopUpUrl = (topUpId) => {
|
|
|
611
584
|
return `https://billing.leaflow.cloud/api/v1/top-ups/${encodeURIComponent(String(topUpId))}`;
|
|
612
585
|
};
|
|
613
586
|
/**
|
|
614
|
-
*
|
|
615
|
-
* It is not an invoice.
|
|
616
|
-
*
|
|
617
|
-
* While the top-up is pending, the answer includes the customer's next step as the payment gateway
|
|
618
|
-
* currently reports it, so that a payment interrupted by a closed page can be continued. When the gateway
|
|
619
|
-
* cannot be reached, the top-up is returned without `action`; read it again later.
|
|
587
|
+
* A top-up of the authenticated user, with its outcome and unspent amount. While it is pending, `action` carries the customer's next step as the gateway reports it, so an interrupted payment can be continued; when the gateway cannot be reached, `action` is omitted.
|
|
620
588
|
* @summary Get top up
|
|
621
589
|
*/
|
|
622
590
|
export const getTopUp = async (topUpId, options, fetchFn) => {
|
|
@@ -632,17 +600,14 @@ export const getCancelTopUpUrl = (topUpId) => {
|
|
|
632
600
|
return `https://billing.leaflow.cloud/api/v1/top-ups/${encodeURIComponent(String(topUpId))}/cancel`;
|
|
633
601
|
};
|
|
634
602
|
/**
|
|
635
|
-
* Withdraws a pending top-up
|
|
636
|
-
* `
|
|
637
|
-
* top-up
|
|
638
|
-
*
|
|
639
|
-
* If the gateway has already collected the payment, nothing is withdrawn and the top-up is returned
|
|
640
|
-
* as `succeeded` with the balance increased. Check `status` in the answer rather than assuming the
|
|
641
|
-
* cancellation took effect.
|
|
603
|
+
* Withdraws a pending top-up of the authenticated user at the payment gateway. It becomes `canceled` with
|
|
604
|
+
* `cancellation_reason` `requested_by_customer`, and nothing is collected. Canceling a canceled top-up returns
|
|
605
|
+
* it unchanged. If the gateway has already collected the payment, the top-up is returned as `succeeded` with the
|
|
606
|
+
* balance increased; check `status` in the response.
|
|
642
607
|
*
|
|
643
|
-
* Fails with 409
|
|
644
|
-
*
|
|
645
|
-
*
|
|
608
|
+
* Fails with 409 `BILLING_TOPUP_NOT_CANCELABLE` when the top-up has succeeded or failed, with `status` naming
|
|
609
|
+
* the outcome, or while the gateway is processing the payment, with `status` `pending`; read the top-up again
|
|
610
|
+
* later.
|
|
646
611
|
* @summary Cancel top up
|
|
647
612
|
*/
|
|
648
613
|
export const cancelTopUp = async (topUpId, options, fetchFn) => {
|
|
@@ -667,7 +632,7 @@ export const getListPaymentMethodsUrl = (params) => {
|
|
|
667
632
|
: `https://billing.leaflow.cloud/api/v1/payment-methods`;
|
|
668
633
|
};
|
|
669
634
|
/**
|
|
670
|
-
*
|
|
635
|
+
* Saved payment methods of your billing accounts, optionally for one billing_account_id. Removed methods are not listed.
|
|
671
636
|
* @summary List payment methods
|
|
672
637
|
*/
|
|
673
638
|
export const listPaymentMethods = async (params, options, fetchFn) => {
|
|
@@ -683,11 +648,7 @@ export const getCreatePaymentMethodSetupUrl = () => {
|
|
|
683
648
|
return `https://billing.leaflow.cloud/api/v1/payment-methods/setup`;
|
|
684
649
|
};
|
|
685
650
|
/**
|
|
686
|
-
* Returns what
|
|
687
|
-
* form. Nothing is charged, and the method appears in the list once the gateway
|
|
688
|
-
* confirms it.
|
|
689
|
-
*
|
|
690
|
-
* Card numbers are never sent to or stored by this service.
|
|
651
|
+
* Returns what the browser needs to open the payment gateway's card form. Nothing is charged; the method is listed once the gateway confirms it. Card numbers never reach this service.
|
|
691
652
|
* @summary Create payment method setup
|
|
692
653
|
*/
|
|
693
654
|
export const createPaymentMethodSetup = async (paymentMethodSetup, options, fetchFn) => {
|
|
@@ -720,7 +681,7 @@ export const getSetDefaultPaymentMethodUrl = (paymentMethodId) => {
|
|
|
720
681
|
return `https://billing.leaflow.cloud/api/v1/payment-methods/${encodeURIComponent(String(paymentMethodId))}/default`;
|
|
721
682
|
};
|
|
722
683
|
/**
|
|
723
|
-
*
|
|
684
|
+
* Makes an active saved payment method the default for its billing account and returns it. Expired or removed methods cannot be selected; selecting the current default changes nothing.
|
|
724
685
|
* @summary Set default payment method
|
|
725
686
|
*/
|
|
726
687
|
export const setDefaultPaymentMethod = async (paymentMethodId, options, fetchFn) => {
|
|
@@ -736,8 +697,7 @@ export const getDeletePaymentMethodUrl = (paymentMethodId) => {
|
|
|
736
697
|
return `https://billing.leaflow.cloud/api/v1/payment-methods/${encodeURIComponent(String(paymentMethodId))}`;
|
|
737
698
|
};
|
|
738
699
|
/**
|
|
739
|
-
* Refused when it is the only method
|
|
740
|
-
* as there would be nothing left to charge when the balance runs out.
|
|
700
|
+
* Refused when it is the only payment method of an account with metered resources.
|
|
741
701
|
* @summary Delete payment method
|
|
742
702
|
*/
|
|
743
703
|
export const deletePaymentMethod = async (paymentMethodId, options, fetchFn) => {
|
|
@@ -753,41 +713,30 @@ export const getPayInvoiceUrl = (invoiceId) => {
|
|
|
753
713
|
return `https://billing.leaflow.cloud/api/v1/invoices/${encodeURIComponent(String(invoiceId))}/pay`;
|
|
754
714
|
};
|
|
755
715
|
/**
|
|
756
|
-
*
|
|
757
|
-
*
|
|
758
|
-
* account funds fail without starting an online payment. Card and non-card methods use this same
|
|
759
|
-
* operation.
|
|
716
|
+
* Pays the invoice from eligible credit grants and balance as requested, and collects the remainder through the
|
|
717
|
+
* selected gateway and method. Without a gateway, insufficient funds fail and no online payment starts.
|
|
760
718
|
*
|
|
761
|
-
* The draft invoice of a deferred order is priced
|
|
762
|
-
*
|
|
763
|
-
*
|
|
764
|
-
*
|
|
765
|
-
*
|
|
766
|
-
*
|
|
767
|
-
* insufficient funds or a declined card: later attempts reuse them, and a different promotion_code
|
|
768
|
-
* is then refused with `BILLING_ORDER_CHECKOUT_CONFLICT`. A deferred period-end change can be paid
|
|
769
|
-
* once its first period is due to be invoiced; earlier attempts are refused with
|
|
719
|
+
* The draft invoice of a deferred order is priced on its first payment: promotion_code, or otherwise the best
|
|
720
|
+
* applicable account discount, is applied, the total is compared with expected_amount, and the invoice is issued
|
|
721
|
+
* before collection. An invalid or inapplicable code fails, and a total other than expected_amount fails with
|
|
722
|
+
* `BILLING_AMOUNT_CHANGED`; neither changes anything. Once fixed, the terms stay fixed even if collection does
|
|
723
|
+
* not complete, and a different promotion_code is refused with `BILLING_ORDER_CHECKOUT_CONFLICT`. A deferred
|
|
724
|
+
* period-end change can be paid only once its first period is due to be invoiced; earlier attempts fail with
|
|
770
725
|
* `BILLING_CHANGE_NOT_INVOICED`.
|
|
771
726
|
*
|
|
772
|
-
* Returns a payment action when customer
|
|
773
|
-
*
|
|
774
|
-
*
|
|
775
|
-
*
|
|
776
|
-
*
|
|
777
|
-
* charged. One the gateway is still processing is refused with `BILLING_PAYMENT_PENDING` and
|
|
778
|
-
* `meta.transaction_id`; wait for its outcome.
|
|
727
|
+
* Returns a payment action when the customer must act; requires_action and processing are not paid. An
|
|
728
|
+
* unresolved online payment with the same gateway, method and saved payment method is reused, and retries never
|
|
729
|
+
* apply credit grants or balance twice. Paying any other way first cancels that payment; if the gateway had
|
|
730
|
+
* already collected it, the invoice is paid by it and nothing more is charged. A payment the gateway is still
|
|
731
|
+
* processing fails with `BILLING_PAYMENT_PENDING` and `meta.transaction_id`.
|
|
779
732
|
*
|
|
780
|
-
*
|
|
781
|
-
*
|
|
782
|
-
* order
|
|
783
|
-
*
|
|
784
|
-
*
|
|
785
|
-
* `BILLING_INVOICE_NOT_PAYABLE`
|
|
786
|
-
*
|
|
787
|
-
* `subscription_ended` respectively. A usage invoice is billed to the smallest fraction a balance can
|
|
788
|
-
* hold, finer than a payment method can charge, so paying one online is refused with
|
|
789
|
-
* `BILLING_INVOICE_NOT_PAYABLE` and `meta.reason` `usage_invoice`; it is collected from credit grants
|
|
790
|
-
* and balance automatically, including right after a top-up.
|
|
733
|
+
* A paid invoice returns its existing result without another charge. Refused with `BILLING_INVOICE_NOT_PAYABLE`
|
|
734
|
+
* for a void invoice; `BILLING_ORDER_FAILED` or `BILLING_ORDER_CANCELED` for the invoice of a failed or canceled
|
|
735
|
+
* order; `BILLING_ORDER_EXPIRED` after the order's payment deadline; `BILLING_INVOICE_NOT_PAYABLE` with
|
|
736
|
+
* `meta.reason` `subscription_canceling`, `subscription_reclaiming` or `subscription_ended` for a renewal
|
|
737
|
+
* invoice whose subscription is being canceled, is being reclaimed or has ended; and
|
|
738
|
+
* `BILLING_INVOICE_NOT_PAYABLE` with `meta.reason` `usage_invoice` for a usage invoice, which is collected from
|
|
739
|
+
* credit grants and balance automatically, including right after a top-up.
|
|
791
740
|
* @summary Pay an invoice
|
|
792
741
|
*/
|
|
793
742
|
export const payInvoice = async (invoiceId, payInvoiceRequest, options, fetchFn) => {
|
|
@@ -853,25 +802,19 @@ export const getPayTogetherUrl = () => {
|
|
|
853
802
|
return `https://billing.leaflow.cloud/api/v1/payments`;
|
|
854
803
|
};
|
|
855
804
|
/**
|
|
856
|
-
* Pays outstanding invoices, including
|
|
857
|
-
*
|
|
858
|
-
*
|
|
859
|
-
* account discount and is issued first, and stays issued if the payment fails; pay it on its own to
|
|
860
|
-
* apply a promotion code.
|
|
805
|
+
* Pays outstanding invoices, including those of the listed orders, from eligible credit grants and then balance,
|
|
806
|
+
* without a payment gateway. The draft invoice of a deferred order takes the best applicable account discount
|
|
807
|
+
* and is issued first, staying issued if payment fails; pay it alone to use a promotion code.
|
|
861
808
|
*
|
|
862
|
-
*
|
|
863
|
-
*
|
|
864
|
-
*
|
|
865
|
-
*
|
|
866
|
-
*
|
|
867
|
-
* `
|
|
868
|
-
* `BILLING_INVOICE_NOT_PAYABLE
|
|
869
|
-
* `
|
|
870
|
-
*
|
|
871
|
-
* passed with `BILLING_ORDER_EXPIRED`. A renewal invoice is refused with
|
|
872
|
-
* `BILLING_INVOICE_NOT_PAYABLE` while its subscription is being canceled, is being reclaimed or has
|
|
873
|
-
* ended, with `meta.reason` `subscription_canceling`, `subscription_reclaiming` or
|
|
874
|
-
* `subscription_ended` respectively.
|
|
809
|
+
* All invoices are paid or none: insufficient funds fail with `BILLING_INSUFFICIENT_FUNDS`, and a total other
|
|
810
|
+
* than expected_amount fails with `BILLING_AMOUNT_CHANGED`, charging nothing. Paid invoices are not charged
|
|
811
|
+
* again. An earlier online payment for one of the invoices is canceled first; one the gateway is still
|
|
812
|
+
* processing is refused with `BILLING_PAYMENT_PENDING` and `meta.transaction_id`. Also refused with
|
|
813
|
+
* `BILLING_INVOICE_NOT_PAYABLE` for a void invoice; `BILLING_CHANGE_NOT_INVOICED` for a period-end change not
|
|
814
|
+
* yet due; `BILLING_ORDER_FAILED`, `BILLING_ORDER_CANCELED` or `BILLING_ORDER_EXPIRED` for an order in that
|
|
815
|
+
* state; and `BILLING_INVOICE_NOT_PAYABLE` with `meta.reason` `subscription_canceling`,
|
|
816
|
+
* `subscription_reclaiming` or `subscription_ended` for a renewal invoice of a subscription being canceled,
|
|
817
|
+
* being reclaimed or ended.
|
|
875
818
|
* @summary Pay together
|
|
876
819
|
*/
|
|
877
820
|
export const payTogether = async (payTogetherRequest, options, fetchFn) => {
|
|
@@ -904,13 +847,7 @@ export const getPreviewPayTogetherUrl = () => {
|
|
|
904
847
|
return `https://billing.leaflow.cloud/api/v1/payments/preview`;
|
|
905
848
|
};
|
|
906
849
|
/**
|
|
907
|
-
* What paying these invoices together now would take from credit grants and from the balance,
|
|
908
|
-
* invoice by invoice in the order they would be paid. It is computed as paying together computes
|
|
909
|
-
* it. Nothing is charged, reserved or created.
|
|
910
|
-
*
|
|
911
|
-
* Refused with the same errors as paying together, except that insufficient funds are not an
|
|
912
|
-
* error here: they show as a `gateway_amount` above zero, and paying together would then be
|
|
913
|
-
* refused with `BILLING_INSUFFICIENT_FUNDS`.
|
|
850
|
+
* What paying these invoices together now would take from credit grants and from the balance, per invoice in payment order, calculated as paying together does. Nothing is charged, reserved or created. Refused with the same errors as paying together, except that insufficient funds show as a `gateway_amount` above zero instead of an error.
|
|
914
851
|
* @summary Preview paying together
|
|
915
852
|
*/
|
|
916
853
|
export const previewPayTogether = async (payTogetherRequest, options, fetchFn) => {
|
|
@@ -931,7 +868,7 @@ export const previewPayTogether = async (payTogetherRequest, options, fetchFn) =
|
|
|
931
868
|
};
|
|
932
869
|
const res = await (fetchFn ?? fetch)(getPreviewPayTogetherUrl(), {
|
|
933
870
|
...options,
|
|
934
|
-
method: "
|
|
871
|
+
method: "QUERY",
|
|
935
872
|
headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
|
|
936
873
|
body: JSON.stringify(payTogetherRequest),
|
|
937
874
|
});
|
|
@@ -952,7 +889,7 @@ export const getListInvoicesUrl = (params) => {
|
|
|
952
889
|
: `https://billing.leaflow.cloud/api/v1/invoices`;
|
|
953
890
|
};
|
|
954
891
|
/**
|
|
955
|
-
*
|
|
892
|
+
* Issued invoices of your billing accounts. Drafts are not listed; an order's draft invoice is reached through its order. Top-ups have no invoices.
|
|
956
893
|
* @summary List invoices
|
|
957
894
|
*/
|
|
958
895
|
export const listInvoices = async (params, options, fetchFn) => {
|
|
@@ -968,7 +905,7 @@ export const getGetInvoiceUrl = (invoiceId) => {
|
|
|
968
905
|
return `https://billing.leaflow.cloud/api/v1/invoices/${encodeURIComponent(String(invoiceId))}`;
|
|
969
906
|
};
|
|
970
907
|
/**
|
|
971
|
-
*
|
|
908
|
+
* An invoice of your billing account, issued or an order's draft, with its amounts, tax lines and payment state. A missing invoice or another draft returns 404; an invoice of another user's account returns 403.
|
|
972
909
|
* @summary Get invoice
|
|
973
910
|
*/
|
|
974
911
|
export const getInvoice = async (invoiceId, options, fetchFn) => {
|
|
@@ -993,7 +930,7 @@ export const getListInvoiceItemsUrl = (invoiceId, params) => {
|
|
|
993
930
|
: `https://billing.leaflow.cloud/api/v1/invoices/${encodeURIComponent(String(invoiceId))}/items`;
|
|
994
931
|
};
|
|
995
932
|
/**
|
|
996
|
-
*
|
|
933
|
+
* Lines of an invoice of your billing account, issued or an order's draft, with their service periods and projects. A missing invoice or another draft returns 404; an invoice of another user's account returns 403.
|
|
997
934
|
* @summary List invoice items
|
|
998
935
|
*/
|
|
999
936
|
export const listInvoiceItems = async (invoiceId, params, options, fetchFn) => {
|
|
@@ -1018,7 +955,7 @@ export const getListTransactionsUrl = (params) => {
|
|
|
1018
955
|
: `https://billing.leaflow.cloud/api/v1/transactions`;
|
|
1019
956
|
};
|
|
1020
957
|
/**
|
|
1021
|
-
*
|
|
958
|
+
* Ledger entries of your billing accounts, filtered by billing_account_id and creation time.
|
|
1022
959
|
* @summary List transactions
|
|
1023
960
|
*/
|
|
1024
961
|
export const listTransactions = async (params, options, fetchFn) => {
|
|
@@ -1043,8 +980,7 @@ export const getListAccountDiscountsUrl = (params) => {
|
|
|
1043
980
|
: `https://billing.leaflow.cloud/api/v1/discounts`;
|
|
1044
981
|
};
|
|
1045
982
|
/**
|
|
1046
|
-
* Coupons
|
|
1047
|
-
* entered. A coupon reached through a code is not listed here.
|
|
983
|
+
* Coupons held by the account, applied at checkout without a code. Coupons reached through a code are not listed.
|
|
1048
984
|
* @summary List the coupons held on this account
|
|
1049
985
|
*/
|
|
1050
986
|
export const listAccountDiscounts = async (params, options, fetchFn) => {
|
|
@@ -1069,8 +1005,7 @@ export const getListCreditGrantsUrl = (params) => {
|
|
|
1069
1005
|
: `https://billing.leaflow.cloud/api/v1/credit-grants`;
|
|
1070
1006
|
};
|
|
1071
1007
|
/**
|
|
1072
|
-
*
|
|
1073
|
-
* and cannot be withdrawn.
|
|
1008
|
+
* Credit grants with what remains and what each may pay for. Credit is spent before balance and cannot be withdrawn.
|
|
1074
1009
|
* @summary List credit grants
|
|
1075
1010
|
*/
|
|
1076
1011
|
export const listCreditGrants = async (params, options, fetchFn) => {
|
|
@@ -1095,7 +1030,7 @@ export const getListCreditNotesUrl = (params) => {
|
|
|
1095
1030
|
: `https://billing.leaflow.cloud/api/v1/credit-notes`;
|
|
1096
1031
|
};
|
|
1097
1032
|
/**
|
|
1098
|
-
*
|
|
1033
|
+
* Credit notes, newest first. Filters apply within the billing accounts you are authorized for.
|
|
1099
1034
|
* @summary List credit notes
|
|
1100
1035
|
*/
|
|
1101
1036
|
export const listCreditNotes = async (params, options, fetchFn) => {
|
|
@@ -1136,7 +1071,7 @@ export const getListCreditNoteItemsUrl = (creditNoteId, params) => {
|
|
|
1136
1071
|
: `https://billing.leaflow.cloud/api/v1/credit-notes/${encodeURIComponent(String(creditNoteId))}/items`;
|
|
1137
1072
|
};
|
|
1138
1073
|
/**
|
|
1139
|
-
* The
|
|
1074
|
+
* The invoice lines this credit note reduced.
|
|
1140
1075
|
* @summary List credit note items
|
|
1141
1076
|
*/
|
|
1142
1077
|
export const listCreditNoteItems = async (creditNoteId, params, options, fetchFn) => {
|
|
@@ -1186,7 +1121,7 @@ export const getListUsageChargesUrl = (params) => {
|
|
|
1186
1121
|
: `https://billing.leaflow.cloud/api/v1/usage-charges`;
|
|
1187
1122
|
};
|
|
1188
1123
|
/**
|
|
1189
|
-
*
|
|
1124
|
+
* Priced usage charges in the requested scope. Usage that had no price when it occurred is never charged later.
|
|
1190
1125
|
* @summary List usage charges
|
|
1191
1126
|
*/
|
|
1192
1127
|
export const listUsageCharges = async (params, options, fetchFn) => {
|
|
@@ -1211,7 +1146,7 @@ export const getListSubscriptionsUrl = (params) => {
|
|
|
1211
1146
|
: `https://billing.leaflow.cloud/api/v1/subscriptions`;
|
|
1212
1147
|
};
|
|
1213
1148
|
/**
|
|
1214
|
-
*
|
|
1149
|
+
* Subscriptions of the authorized billing account. Deleted subscriptions are not listed.
|
|
1215
1150
|
* @summary List subscriptions
|
|
1216
1151
|
*/
|
|
1217
1152
|
export const listSubscriptions = async (params, options, fetchFn) => {
|
|
@@ -1227,7 +1162,7 @@ export const getGetSubscriptionUrl = (subscriptionId) => {
|
|
|
1227
1162
|
return `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}`;
|
|
1228
1163
|
};
|
|
1229
1164
|
/**
|
|
1230
|
-
*
|
|
1165
|
+
* A subscription of the authorized billing account. Deleted subscriptions are reported as not found.
|
|
1231
1166
|
* @summary Get subscription
|
|
1232
1167
|
*/
|
|
1233
1168
|
export const getSubscription = async (subscriptionId, options, fetchFn) => {
|
|
@@ -1243,15 +1178,7 @@ export const getDeleteSubscriptionUrl = (subscriptionId) => {
|
|
|
1243
1178
|
return `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}`;
|
|
1244
1179
|
};
|
|
1245
1180
|
/**
|
|
1246
|
-
*
|
|
1247
|
-
* list and detail. Your account access token must authorize the subscription's current billing
|
|
1248
|
-
* account. Preserves commercial status, ended_at and billing and financial history. Completed
|
|
1249
|
-
* cancellations and canceled unfulfilled purchases can be deleted directly, without termination.
|
|
1250
|
-
* Pending, provisioning, active and suspended subscriptions are refused with 409
|
|
1251
|
-
* BILLING_SUBSCRIPTION_NOT_ENDED and status in error params. A scheduled or releasing cancellation
|
|
1252
|
-
* does not make a subscription canceled.
|
|
1253
|
-
* There is no force, skip-cleanup or override option. Repeating deletion preserves the original
|
|
1254
|
-
* deleted_at. Sends no cleanup command and creates no refund; outstanding cleanup continues.
|
|
1181
|
+
* Hides a canceled or terminated subscription from your subscription list and detail by setting deleted_at; its status, ended_at and history are kept. The token must authorize the subscription's current billing account. A subscription that has not ended is refused with 409 `BILLING_SUBSCRIPTION_NOT_ENDED` and `status`. Repeating it keeps the original deleted_at. It sends no cleanup command and creates no refund.
|
|
1255
1182
|
* @summary Delete subscription
|
|
1256
1183
|
*/
|
|
1257
1184
|
export const deleteSubscription = async (subscriptionId, options, fetchFn) => {
|
|
@@ -1267,19 +1194,15 @@ export const getCancelSubscriptionUrl = (subscriptionId) => {
|
|
|
1267
1194
|
return `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}/cancel`;
|
|
1268
1195
|
};
|
|
1269
1196
|
/**
|
|
1270
|
-
* Requests cancellation on the purchase's agreed terms
|
|
1271
|
-
*
|
|
1272
|
-
*
|
|
1273
|
-
* Your account access token must authorize the subscription's current billing account.
|
|
1274
|
-
*
|
|
1275
|
-
* Immediate cancellation asks the owning service to clean up now. Period-end cancellation keeps
|
|
1276
|
-
* the subscription active or suspended until the paid term ends. Neither payment nor acceptance
|
|
1277
|
-
* of this request proves cleanup. The subscription becomes canceled only after the service
|
|
1278
|
-
* confirms release and the end of metering; follow the returned cancellation for progress.
|
|
1197
|
+
* Requests cancellation on the purchase's agreed terms, with the same rules as creating a cancellation. Give the
|
|
1198
|
+
* refund amount from a quote with this subscription in `cancellation.subscription_ids`. The token must authorize
|
|
1199
|
+
* the subscription's current billing account.
|
|
1279
1200
|
*
|
|
1280
|
-
*
|
|
1281
|
-
*
|
|
1282
|
-
*
|
|
1201
|
+
* Immediate cancellation asks the owning service to release the resources now; period-end cancellation keeps the
|
|
1202
|
+
* subscription active or suspended until the paid term ends. The subscription becomes canceled when the service
|
|
1203
|
+
* confirms the release; follow the returned cancellation. Subscriptions released together must be canceled
|
|
1204
|
+
* together through create-cancellation, and pending or provisioning purchases through their order. Repeating the
|
|
1205
|
+
* request while the cancellation is open returns it.
|
|
1283
1206
|
* @summary Cancel subscription
|
|
1284
1207
|
*/
|
|
1285
1208
|
export const cancelSubscription = async (subscriptionId, cancelSubscriptionRequest, options, fetchFn) => {
|
|
@@ -1308,18 +1231,20 @@ export const cancelSubscription = async (subscriptionId, cancelSubscriptionReque
|
|
|
1308
1231
|
const data = body ? JSON.parse(body) : {};
|
|
1309
1232
|
return { data, status: res.status, headers: res.headers };
|
|
1310
1233
|
};
|
|
1311
|
-
export const
|
|
1234
|
+
export const getGetQuoteUrl = () => {
|
|
1312
1235
|
return `https://billing.leaflow.cloud/api/v1/quotes`;
|
|
1313
1236
|
};
|
|
1314
1237
|
/**
|
|
1315
|
-
* Calculates exactly one target for a billing account you own: proposed items, an existing order, renewals,
|
|
1316
|
-
*
|
|
1317
|
-
* Existing orders use their recorded purchase account and terms. Renewals and cancellations use the account currently paying for each subscription. Every target must belong to the requested account. A project association or project token does not authorize a quote.
|
|
1238
|
+
* Calculates exactly one target for a billing account you own: proposed items, an existing order, renewals, a
|
|
1239
|
+
* cancellation or an order refund. Nothing is saved, reserved or redeemed.
|
|
1318
1240
|
*
|
|
1319
|
-
*
|
|
1320
|
-
*
|
|
1241
|
+
* Existing orders use their recorded account and terms; renewals and cancellations use the account currently
|
|
1242
|
+
* paying for each subscription. Every target must belong to the requested account; a project token does not
|
|
1243
|
+
* authorize a quote. An existing order's total is the expected_amount for paying its invoice. Usage estimates
|
|
1244
|
+
* are not checkout amounts.
|
|
1245
|
+
* @summary Get a quote
|
|
1321
1246
|
*/
|
|
1322
|
-
export const
|
|
1247
|
+
export const getQuote = async (quoteRequest, options, fetchFn) => {
|
|
1323
1248
|
const getHeaders = (h) => {
|
|
1324
1249
|
if (!h)
|
|
1325
1250
|
return {};
|
|
@@ -1335,9 +1260,9 @@ export const createQuote = async (quoteRequest, options, fetchFn) => {
|
|
|
1335
1260
|
}
|
|
1336
1261
|
return headers;
|
|
1337
1262
|
};
|
|
1338
|
-
const res = await (fetchFn ?? fetch)(
|
|
1263
|
+
const res = await (fetchFn ?? fetch)(getGetQuoteUrl(), {
|
|
1339
1264
|
...options,
|
|
1340
|
-
method: "
|
|
1265
|
+
method: "QUERY",
|
|
1341
1266
|
headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
|
|
1342
1267
|
body: JSON.stringify(quoteRequest),
|
|
1343
1268
|
});
|
|
@@ -1358,7 +1283,7 @@ export const getListCancellationsUrl = (params) => {
|
|
|
1358
1283
|
: `https://billing.leaflow.cloud/api/v1/cancellations`;
|
|
1359
1284
|
};
|
|
1360
1285
|
/**
|
|
1361
|
-
* Newest first. Filter by `subscription_id` and `status=open` to find
|
|
1286
|
+
* Newest first. Filter by `subscription_id` and `status=open` to find a subscription's cancellation in progress.
|
|
1362
1287
|
* @summary List cancellations
|
|
1363
1288
|
*/
|
|
1364
1289
|
export const listCancellations = async (params, options, fetchFn) => {
|
|
@@ -1374,46 +1299,36 @@ export const getCreateCancellationUrl = () => {
|
|
|
1374
1299
|
return `https://billing.leaflow.cloud/api/v1/cancellations`;
|
|
1375
1300
|
};
|
|
1376
1301
|
/**
|
|
1377
|
-
* Ends
|
|
1378
|
-
* subscription
|
|
1379
|
-
* such as a server with the disks deleted along with it, or an address with its bandwidth.
|
|
1302
|
+
* Ends subscriptions of one service together. Deleting a resource is an `immediate` cancellation of every
|
|
1303
|
+
* subscription released with it, such as a server with its disks or an address with its bandwidth.
|
|
1380
1304
|
*
|
|
1381
|
-
* The service
|
|
1382
|
-
*
|
|
1383
|
-
*
|
|
1384
|
-
*
|
|
1385
|
-
* amount confirmed here is the amount returned: prepaid service used while the resources are
|
|
1386
|
-
* being released is not deducted from it. Usage of a postpaid subscription is charged until its
|
|
1387
|
-
* resources are released, as usual.
|
|
1305
|
+
* The owning service releases the resources at once for `immediate`, or at `scheduled_at`, the end of the paid
|
|
1306
|
+
* term, for `period_end`. When release is confirmed, the unused value is returned to the original payment
|
|
1307
|
+
* sources under each subscription's refund terms. For `immediate` the refund is computed as of `proration_date`
|
|
1308
|
+
* and is not reduced by service used during release. Metered usage is charged until release.
|
|
1388
1309
|
*
|
|
1389
|
-
* `mode` must be allowed for every subscription.
|
|
1390
|
-
*
|
|
1391
|
-
*
|
|
1392
|
-
* not ended yet. For `period_end` the paid terms of all the subscriptions must end at the same
|
|
1310
|
+
* `mode` must be allowed for every subscription. Metered and one-time subscriptions end only `immediate`. A
|
|
1311
|
+
* licensed subscription ends `period_end` while its paid term lasts, and `immediate` unless its terms allow only
|
|
1312
|
+
* the end of the paid term and that term has not ended. For `period_end` all paid terms must end at the same
|
|
1393
1313
|
* time.
|
|
1394
1314
|
*
|
|
1395
1315
|
* Refused with:
|
|
1396
|
-
*
|
|
1397
|
-
*
|
|
1398
|
-
* account and currency;
|
|
1316
|
+
*
|
|
1317
|
+
* - 400 `BILLING_CANCELLATION_INVALID` when `subscription_ids` or `proration_date` is invalid (`meta.field`), or
|
|
1318
|
+
* the subscriptions do not share one service, project, account and currency;
|
|
1399
1319
|
* - 409 `BILLING_CANCELLATION_CONFLICT` when a subscription has not started or has ended;
|
|
1400
|
-
* - 422 `BILLING_CANCELLATION_MODE_FIXED` when `mode` is not allowed
|
|
1401
|
-
*
|
|
1402
|
-
*
|
|
1403
|
-
* - 409 `BILLING_CANCELLATION_SCHEDULES_DIFFER` when, for `period_end`, the paid terms end at
|
|
1404
|
-
* different times;
|
|
1320
|
+
* - 422 `BILLING_CANCELLATION_MODE_FIXED` when `mode` is not allowed, and `BILLING_CANCELLATION_TERMS_UNSET`
|
|
1321
|
+
* when a licensed subscription has no termination terms, both with `meta.subscription_id`;
|
|
1322
|
+
* - 409 `BILLING_CANCELLATION_SCHEDULES_DIFFER` when, for `period_end`, the paid terms end at different times;
|
|
1405
1323
|
* - 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` when a subscription is already being canceled
|
|
1406
|
-
* (`meta.cancellation_id`) or reclaimed (`meta.reason` `reclaim_requested`), or has a paid
|
|
1407
|
-
*
|
|
1408
|
-
* - 409 `BILLING_ORDER_PAYMENT_IN_FLIGHT` while an online payment for
|
|
1409
|
-
*
|
|
1410
|
-
* - 409 `BILLING_CANCELLATION_REFUND_CHANGED` when the refund is no longer
|
|
1411
|
-
* `expected_refundable_amount`; quote again.
|
|
1324
|
+
* (`meta.cancellation_id`) or reclaimed (`meta.reason` `reclaim_requested`), or has a paid change waiting to
|
|
1325
|
+
* switch (`meta.order_id`);
|
|
1326
|
+
* - 409 `BILLING_ORDER_PAYMENT_IN_FLIGHT` while an online renewal payment for one of them is in progress;
|
|
1327
|
+
* - 409 `BILLING_CANCELLATION_REFUND_CHANGED` when the refund no longer equals `expected_refundable_amount`.
|
|
1412
1328
|
*
|
|
1413
|
-
*
|
|
1414
|
-
*
|
|
1415
|
-
*
|
|
1416
|
-
* every subscription in the set, for `period_end` as well as `immediate`.
|
|
1329
|
+
* Repeating the request for the same subscriptions, mode and amount while the cancellation is open returns it
|
|
1330
|
+
* with 200. Unpaid renewal orders are canceled with it, and automatic renewal is turned off for every
|
|
1331
|
+
* subscription.
|
|
1417
1332
|
* @summary Cancel subscriptions
|
|
1418
1333
|
*/
|
|
1419
1334
|
export const createCancellation = async (cancellationCreate, options, fetchFn) => {
|
|
@@ -1446,7 +1361,7 @@ export const getGetCancellationUrl = (cancellationId) => {
|
|
|
1446
1361
|
return `https://billing.leaflow.cloud/api/v1/cancellations/${encodeURIComponent(String(cancellationId))}`;
|
|
1447
1362
|
};
|
|
1448
1363
|
/**
|
|
1449
|
-
*
|
|
1364
|
+
* A cancellation of your billing account with its schedule, expected refundable amount and the outcome for each subscription, including partial success.
|
|
1450
1365
|
* @summary Get a cancellation
|
|
1451
1366
|
*/
|
|
1452
1367
|
export const getCancellation = async (cancellationId, options, fetchFn) => {
|
|
@@ -1462,11 +1377,7 @@ export const getWithdrawCancellationUrl = (cancellationId) => {
|
|
|
1462
1377
|
return `https://billing.leaflow.cloud/api/v1/cancellations/${encodeURIComponent(String(cancellationId))}/withdraw`;
|
|
1463
1378
|
};
|
|
1464
1379
|
/**
|
|
1465
|
-
* Withdraws the whole cancellation while
|
|
1466
|
-
* subscriptions continue as before, except that automatic renewal, turned off when the
|
|
1467
|
-
* cancellation was created, stays off until it is turned on again. After that it is refused with
|
|
1468
|
-
* 409 `BILLING_CANCELLATION_CONFLICT`. Withdrawing one that is already withdrawn returns it
|
|
1469
|
-
* unchanged.
|
|
1380
|
+
* Withdraws the whole cancellation while no resource has begun to be released; afterwards it is refused with 409 `BILLING_CANCELLATION_CONFLICT`. The subscriptions continue, but automatic renewal, turned off when the cancellation was created, stays off until it is turned on again. Withdrawing a withdrawn cancellation returns it unchanged.
|
|
1470
1381
|
* @summary Withdraw a cancellation
|
|
1471
1382
|
*/
|
|
1472
1383
|
export const withdrawCancellation = async (cancellationId, options, fetchFn) => {
|
|
@@ -1507,17 +1418,15 @@ export const getRenewSubscriptionUrl = (subscriptionId) => {
|
|
|
1507
1418
|
return `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}/renew`;
|
|
1508
1419
|
};
|
|
1509
1420
|
/**
|
|
1510
|
-
*
|
|
1511
|
-
*
|
|
1512
|
-
*
|
|
1421
|
+
* Buys licensed periods from current_term_end at the agreed recurring amount and pays for them at once. A
|
|
1422
|
+
* different interval selects the price currently sold for it and fixes new terms on the order, applied after
|
|
1423
|
+
* fulfillment. Paid periods keep their value.
|
|
1513
1424
|
*
|
|
1514
|
-
* Without `payment_method_id`, the renewal is paid from credit grants and
|
|
1515
|
-
* `
|
|
1516
|
-
*
|
|
1517
|
-
* and pay its invoice instead.
|
|
1425
|
+
* Without `payment_method_id`, the renewal is paid from credit grants and balance as `use_credits` and
|
|
1426
|
+
* `use_balance` allow; when they cannot cover it, the request fails with `BILLING_INSUFFICIENT_FUNDS` and no
|
|
1427
|
+
* order is left. To pay another way, create a renewal order and pay its invoice.
|
|
1518
1428
|
*
|
|
1519
|
-
*
|
|
1520
|
-
* creation conflicts.
|
|
1429
|
+
* Keep order_id and read the order after an unknown outcome; creating it again conflicts.
|
|
1521
1430
|
* @summary Renew subscription
|
|
1522
1431
|
*/
|
|
1523
1432
|
export const renewSubscription = async (subscriptionId, renewRequest, options, fetchFn) => {
|
|
@@ -1550,16 +1459,14 @@ export const getCreateRenewalOrderUrl = (subscriptionId) => {
|
|
|
1550
1459
|
return `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}/renewal-orders`;
|
|
1551
1460
|
};
|
|
1552
1461
|
/**
|
|
1553
|
-
* Places a renewal order with a draft invoice, without applying a new discount or charging anything.
|
|
1554
|
-
*
|
|
1555
|
-
*
|
|
1556
|
-
*
|
|
1557
|
-
*
|
|
1558
|
-
*
|
|
1559
|
-
* order's terms are not fixed yet.
|
|
1462
|
+
* Places a renewal order with a draft invoice, without applying a new discount or charging anything. Pay its
|
|
1463
|
+
* invoice to renew; a promotion code can be applied when paying. Existing subscription discounts are kept.
|
|
1464
|
+
* Periods and price are chosen as for renewing. The order can be paid until the current paid period ends, and
|
|
1465
|
+
* never after the end of the first period it renews; unpaid by then, it is canceled. While auto-renew is on, the
|
|
1466
|
+
* renewal due at the end of the period pays this order instead of placing another, applying an applicable
|
|
1467
|
+
* account discount first if its terms are not fixed yet.
|
|
1560
1468
|
*
|
|
1561
|
-
*
|
|
1562
|
-
* second time conflicts.
|
|
1469
|
+
* Keep `order_id` and read the order after an unknown outcome; creating it again conflicts.
|
|
1563
1470
|
* @summary Create renewal order
|
|
1564
1471
|
*/
|
|
1565
1472
|
export const createRenewalOrder = async (subscriptionId, renewalOrderRequest, options, fetchFn) => {
|
|
@@ -1592,15 +1499,7 @@ export const getSetAutoRenewUrl = (subscriptionId) => {
|
|
|
1592
1499
|
return `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}/auto-renew`;
|
|
1593
1500
|
};
|
|
1594
1501
|
/**
|
|
1595
|
-
*
|
|
1596
|
-
* subscription cannot set this preference and returns 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_INACTIVE`. Disabling it does
|
|
1597
|
-
* not shorten current_term_end and still permits manual renewal. A postpaid subscription always continues until it is
|
|
1598
|
-
* canceled; setting it is refused with 409
|
|
1599
|
-
* `BILLING_SUBSCRIPTION_AUTO_RENEW_FIXED`.
|
|
1600
|
-
*
|
|
1601
|
-
* While the subscription has an open cancellation, turning it on or off is refused with 409
|
|
1602
|
-
* `BILLING_SUBSCRIPTION_OPERATION_PENDING` and `meta.cancellation_id`: creating the cancellation
|
|
1603
|
-
* turned it off, and withdrawing the cancellation does not turn it back on.
|
|
1502
|
+
* Turns automatic renewal of an active or suspended licensed subscription on or off. Turning it off does not shorten current_term_end and still allows manual renewal. Refused with 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_INACTIVE` for a pending or provisioning subscription, 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_FIXED` for a metered subscription, which continues until it is canceled, and 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` with `meta.cancellation_id` while a cancellation is open: creating it turned renewal off, and withdrawing it does not turn renewal back on.
|
|
1604
1503
|
* @summary Set auto renew
|
|
1605
1504
|
*/
|
|
1606
1505
|
export const setAutoRenew = async (subscriptionId, autoRenewSet, options, fetchFn) => {
|
|
@@ -1642,13 +1541,7 @@ export const getListAllowancesUrl = (params) => {
|
|
|
1642
1541
|
: `https://billing.leaflow.cloud/api/v1/allowances`;
|
|
1643
1542
|
};
|
|
1644
1543
|
/**
|
|
1645
|
-
*
|
|
1646
|
-
* consumed before usage is charged. Lower priority values are consumed first, followed by earlier
|
|
1647
|
-
* expiry and earlier issuance.
|
|
1648
|
-
*
|
|
1649
|
-
* Unused quantity expires without a refund or carry-over. Promotional allowances apply to usage paid
|
|
1650
|
-
* by their holding account. Included allowances apply only to the associated subscription, including
|
|
1651
|
-
* after its project moves to another billing account.
|
|
1544
|
+
* Remaining usage quantities, such as bytes, seconds or tokens. Applicable allowances are consumed before usage is charged: lower priority values first, then earlier expiry, then earlier issuance. Unused quantity expires without refund or carry-over. Promotional allowances apply to usage paid by their holding account; included allowances apply only to their subscription, also after its project moves to another billing account.
|
|
1652
1545
|
* @summary List allowances
|
|
1653
1546
|
*/
|
|
1654
1547
|
export const listAllowances = async (params, options, fetchFn) => {
|
|
@@ -1673,9 +1566,7 @@ export const getListOrdersUrl = (params) => {
|
|
|
1673
1566
|
: `https://billing.leaflow.cloud/api/v1/orders`;
|
|
1674
1567
|
};
|
|
1675
1568
|
/**
|
|
1676
|
-
*
|
|
1677
|
-
* its invoice shows whether it still needs payment. accepted means accepted, not delivered.
|
|
1678
|
-
* Pending orders can expire at expires_at.
|
|
1569
|
+
* Orders with their status and invoice amounts. A pending order is not yet accepted and can expire at expires_at; its invoice shows whether payment is needed. Accepted does not mean delivered.
|
|
1679
1570
|
* @summary List orders
|
|
1680
1571
|
*/
|
|
1681
1572
|
export const listOrders = async (params, options, fetchFn) => {
|
|
@@ -1691,7 +1582,7 @@ export const getGetOrderUrl = (orderId) => {
|
|
|
1691
1582
|
return `https://billing.leaflow.cloud/api/v1/orders/${encodeURIComponent(String(orderId))}`;
|
|
1692
1583
|
};
|
|
1693
1584
|
/**
|
|
1694
|
-
*
|
|
1585
|
+
* An order of your billing account with its status and invoice. An unknown order returns 404; another user's order returns 403.
|
|
1695
1586
|
* @summary Get order
|
|
1696
1587
|
*/
|
|
1697
1588
|
export const getOrder = async (orderId, options, fetchFn) => {
|
|
@@ -1707,24 +1598,19 @@ export const getCancelOrderUrl = (orderId) => {
|
|
|
1707
1598
|
return `https://billing.leaflow.cloud/api/v1/orders/${encodeURIComponent(String(orderId))}/cancel`;
|
|
1708
1599
|
};
|
|
1709
1600
|
/**
|
|
1710
|
-
* Cancels the selected
|
|
1711
|
-
*
|
|
1712
|
-
*
|
|
1713
|
-
*
|
|
1714
|
-
* its existing pending phase while any item is still pending; its final outcome follows all
|
|
1715
|
-
* item outcomes. Previously failed items keep their failure outcome.
|
|
1601
|
+
* Cancels the selected undelivered items of an order that has not been accepted, without recording a delivery
|
|
1602
|
+
* failure. Omit order_item_ids to select every pending item. Delivered items stay delivered and are not
|
|
1603
|
+
* refunded; failed items keep their outcome. The order stays pending while any item is pending, and its final
|
|
1604
|
+
* status follows its items.
|
|
1716
1605
|
*
|
|
1717
|
-
*
|
|
1718
|
-
*
|
|
1719
|
-
*
|
|
1720
|
-
*
|
|
1721
|
-
*
|
|
1606
|
+
* Once the order's terms are fixed, the canceled items keep their agreed amounts and discounts: credit notes
|
|
1607
|
+
* reduce the issued invoice, and collected amounts return to their original payment sources, possibly
|
|
1608
|
+
* asynchronously. While a deferred order's terms are not fixed, the remaining items are priced again. An online
|
|
1609
|
+
* payment waiting for the payer is canceled with the order; one the gateway is processing is refused with
|
|
1610
|
+
* `BILLING_PAYMENT_PENDING` and `meta.transaction_id`. Repeating the cancellation does not refund twice.
|
|
1722
1611
|
*
|
|
1723
|
-
*
|
|
1724
|
-
*
|
|
1725
|
-
* subscription cancellation. Unknown delivery or payment outcomes are not refund evidence;
|
|
1726
|
-
* in-flight or unknown payments must be reconciled first. Scheduled changes continue to be
|
|
1727
|
-
* canceled through the owning service. Refund quotations use CreateQuote.refund.
|
|
1612
|
+
* An accepted order is canceled by its owning service, and delivered items through subscription cancellation.
|
|
1613
|
+
* Refunds are quoted with the quote operation's `refund` target.
|
|
1728
1614
|
* @summary Cancel order
|
|
1729
1615
|
*/
|
|
1730
1616
|
export const cancelOrder = async (orderId, orderCancel, options, fetchFn) => {
|
|
@@ -1791,13 +1677,7 @@ export const getListEntitlementsUrl = (params) => {
|
|
|
1791
1677
|
: `https://billing.leaflow.cloud/api/v1/entitlements`;
|
|
1792
1678
|
};
|
|
1793
1679
|
/**
|
|
1794
|
-
* Capabilities
|
|
1795
|
-
* does not appear, so that "this does not exist" and "this has not been bought" cannot be
|
|
1796
|
-
* confused.
|
|
1797
|
-
*
|
|
1798
|
-
* Derived from live subscriptions and active feature grants rather than stored, so this always
|
|
1799
|
-
* agrees with what is being paid for and granted. It stops being listed as soon as the
|
|
1800
|
-
* subscription or grant providing it ends.
|
|
1680
|
+
* Capabilities granted by live subscriptions and active feature grants. A capability not held is not listed, and one stops being listed when the subscription or grant providing it ends.
|
|
1801
1681
|
* @summary List entitlements
|
|
1802
1682
|
*/
|
|
1803
1683
|
export const listEntitlements = async (params, options, fetchFn) => {
|
|
@@ -1822,9 +1702,7 @@ export const getListFeatureGrantsUrl = (params) => {
|
|
|
1822
1702
|
: `https://billing.leaflow.cloud/api/v1/feature-grants`;
|
|
1823
1703
|
};
|
|
1824
1704
|
/**
|
|
1825
|
-
*
|
|
1826
|
-
* is active, every project whose current billing account holds it has the feature, in addition to the
|
|
1827
|
-
* features of its own subscriptions.
|
|
1705
|
+
* Features held by a billing account for a period, for example through a membership. While a grant is active, every project whose current billing account holds it has the feature, in addition to its subscriptions' features.
|
|
1828
1706
|
* @summary List feature grants
|
|
1829
1707
|
*/
|
|
1830
1708
|
export const listFeatureGrants = async (params, options, fetchFn) => {
|
|
@@ -1849,13 +1727,7 @@ export const getListPricesUrl = (params) => {
|
|
|
1849
1727
|
: `https://billing.leaflow.cloud/api/v1/prices`;
|
|
1850
1728
|
};
|
|
1851
1729
|
/**
|
|
1852
|
-
* Every
|
|
1853
|
-
*
|
|
1854
|
-
* `currency` is required: a plan has a price in each currency it is sold in, so "what does
|
|
1855
|
-
* this cost" has no answer without one.
|
|
1856
|
-
*
|
|
1857
|
-
* Archived prices are left out. Existing subscriptions keep the terms they were bought at, so
|
|
1858
|
-
* this is not the place to look up what an existing purchase is paying.
|
|
1730
|
+
* Every active price in the currency, one entry per plan and price. Archived prices are not listed; existing subscriptions keep the terms they were bought at.
|
|
1859
1731
|
* @summary List what is on sale, with prices
|
|
1860
1732
|
*/
|
|
1861
1733
|
export const listPrices = async (params, headers, options, fetchFn) => {
|
|
@@ -1896,7 +1768,7 @@ export const getListProductsUrl = (params) => {
|
|
|
1896
1768
|
: `https://billing.leaflow.cloud/api/v1/products`;
|
|
1897
1769
|
};
|
|
1898
1770
|
/**
|
|
1899
|
-
*
|
|
1771
|
+
* Registered products. If-None-Match returns 304 for an unchanged page.
|
|
1900
1772
|
* @summary List catalog products
|
|
1901
1773
|
*/
|
|
1902
1774
|
export const listProducts = async (params, headers, options, fetchFn) => {
|
|
@@ -1928,8 +1800,7 @@ export const getGetProductUrl = (productId) => {
|
|
|
1928
1800
|
return `https://billing.leaflow.cloud/api/v1/products/${encodeURIComponent(String(productId))}`;
|
|
1929
1801
|
};
|
|
1930
1802
|
/**
|
|
1931
|
-
*
|
|
1932
|
-
* the terms of a credit — into something that can be displayed.
|
|
1803
|
+
* A product by its ID.
|
|
1933
1804
|
* @summary Get a service
|
|
1934
1805
|
*/
|
|
1935
1806
|
export const getProduct = async (productId, headers, options, fetchFn) => {
|
|
@@ -1961,8 +1832,7 @@ export const getGetPlanUrl = (planId) => {
|
|
|
1961
1832
|
return `https://billing.leaflow.cloud/api/v1/plans/${encodeURIComponent(String(planId))}`;
|
|
1962
1833
|
};
|
|
1963
1834
|
/**
|
|
1964
|
-
*
|
|
1965
|
-
* no longer on sale: an existing purchase still refers to one.
|
|
1835
|
+
* A plan, including one no longer on sale.
|
|
1966
1836
|
* @summary Get a sellable item
|
|
1967
1837
|
*/
|
|
1968
1838
|
export const getPlan = async (planId, headers, options, fetchFn) => {
|
|
@@ -1994,7 +1864,7 @@ export const getGetPriceUrl = (priceId) => {
|
|
|
1994
1864
|
return `https://billing.leaflow.cloud/api/v1/prices/${encodeURIComponent(String(priceId))}`;
|
|
1995
1865
|
};
|
|
1996
1866
|
/**
|
|
1997
|
-
*
|
|
1867
|
+
* A catalog price, archived prices included. The terms of past purchases are on their orders and subscriptions.
|
|
1998
1868
|
* @summary Get a price
|
|
1999
1869
|
*/
|
|
2000
1870
|
export const getPrice = async (priceId, headers, options, fetchFn) => {
|
|
@@ -2035,7 +1905,7 @@ export const getListPlansUrl = (params) => {
|
|
|
2035
1905
|
: `https://billing.leaflow.cloud/api/v1/plans`;
|
|
2036
1906
|
};
|
|
2037
1907
|
/**
|
|
2038
|
-
*
|
|
1908
|
+
* Active plans of product_id with their features. An unknown product returns 404; If-None-Match returns 304 for an unchanged page.
|
|
2039
1909
|
* @summary List catalog plans
|
|
2040
1910
|
*/
|
|
2041
1911
|
export const listPlans = async (params, headers, options, fetchFn) => {
|
|
@@ -2076,8 +1946,7 @@ export const getListPricesByPlanUrl = (planId, params) => {
|
|
|
2076
1946
|
: `https://billing.leaflow.cloud/api/v1/plans/${encodeURIComponent(String(planId))}/prices`;
|
|
2077
1947
|
};
|
|
2078
1948
|
/**
|
|
2079
|
-
* Public list prices
|
|
2080
|
-
* it is never charged more.
|
|
1949
|
+
* Public list prices. An account with a negotiated agreement may be charged less, never more.
|
|
2081
1950
|
* @summary List catalog prices
|
|
2082
1951
|
*/
|
|
2083
1952
|
export const listPricesByPlan = async (planId, params, headers, options, fetchFn) => {
|
|
@@ -2118,8 +1987,7 @@ export const getListRatesUrl = (rateCardId, params) => {
|
|
|
2118
1987
|
: `https://billing.leaflow.cloud/api/v1/rate-cards/${encodeURIComponent(String(rateCardId))}/rules`;
|
|
2119
1988
|
};
|
|
2120
1989
|
/**
|
|
2121
|
-
*
|
|
2122
|
-
* and its identifier cannot be used to reach it.
|
|
1990
|
+
* Rules of a public rate card; contract cards are not readable here.
|
|
2123
1991
|
* @summary List catalog rates
|
|
2124
1992
|
*/
|
|
2125
1993
|
export const listRates = async (rateCardId, params, headers, options, fetchFn) => {
|
|
@@ -2160,9 +2028,7 @@ export const getListActiveResourcesUrl = (params) => {
|
|
|
2160
2028
|
: `https://billing.leaflow.cloud/api/v1/active-resources`;
|
|
2161
2029
|
};
|
|
2162
2030
|
/**
|
|
2163
|
-
*
|
|
2164
|
-
* describe machine runtime or health. Project filters narrow the authorized accounts; they do not
|
|
2165
|
-
* grant project-based access.
|
|
2031
|
+
* Continuous metering registrations paid for by your billing accounts. Their state does not describe the resource's runtime. Project filters only narrow the result.
|
|
2166
2032
|
* @summary List active resources
|
|
2167
2033
|
*/
|
|
2168
2034
|
export const listActiveResources = async (params, options, fetchFn) => {
|
|
@@ -2216,7 +2082,7 @@ export const getListMonthlyStatementsUrl = (params) => {
|
|
|
2216
2082
|
: `https://billing.leaflow.cloud/api/v1/monthly-statements`;
|
|
2217
2083
|
};
|
|
2218
2084
|
/**
|
|
2219
|
-
* Usage billing
|
|
2085
|
+
* Usage billing per UTC calendar month for your billing accounts, newest first. Each month combines its statements, the invoices they issued and how those were paid.
|
|
2220
2086
|
* @summary List monthly statements
|
|
2221
2087
|
*/
|
|
2222
2088
|
export const listMonthlyStatements = async (params, options, fetchFn) => {
|
|
@@ -2241,7 +2107,7 @@ export const getListStatementsUrl = (params) => {
|
|
|
2241
2107
|
: `https://billing.leaflow.cloud/api/v1/statements`;
|
|
2242
2108
|
};
|
|
2243
2109
|
/**
|
|
2244
|
-
*
|
|
2110
|
+
* Statements of your billing accounts, filtered by billing_account_id, open or closed and period start. A closed statement does not mean the month is complete.
|
|
2245
2111
|
* @summary List statements
|
|
2246
2112
|
*/
|
|
2247
2113
|
export const listStatements = async (params, options, fetchFn) => {
|
|
@@ -2257,7 +2123,7 @@ export const getGetStatementUrl = (statementId) => {
|
|
|
2257
2123
|
return `https://billing.leaflow.cloud/api/v1/statements/${encodeURIComponent(String(statementId))}`;
|
|
2258
2124
|
};
|
|
2259
2125
|
/**
|
|
2260
|
-
*
|
|
2126
|
+
* A statement of your billing account with its period, estimated or closed amounts and invoice. Returns 404 for a missing statement and 403 for another user's account.
|
|
2261
2127
|
* @summary Get statement
|
|
2262
2128
|
*/
|
|
2263
2129
|
export const getStatement = async (statementId, options, fetchFn) => {
|
|
@@ -2289,7 +2155,7 @@ export const getGetStatementUsageUrl = (statementId, params) => {
|
|
|
2289
2155
|
: `https://billing.leaflow.cloud/api/v1/statements/${encodeURIComponent(String(statementId))}/usage-summary`;
|
|
2290
2156
|
};
|
|
2291
2157
|
/**
|
|
2292
|
-
*
|
|
2158
|
+
* The statement's consumption, grouped by project, product or meter and filtered within the statement. Quantities are given only for meter groups; grouping by meter also splits by the meter's presentation dimensions.
|
|
2293
2159
|
* @summary Get grouped consumption
|
|
2294
2160
|
*/
|
|
2295
2161
|
export const getStatementUsage = async (statementId, params, options, fetchFn) => {
|