@leaflow/sdk 0.155.0 → 0.157.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/billing/v1/generated/functions.d.ts +61 -41
- package/dist/billing/v1/generated/functions.js +60 -40
- package/dist/billing/v1/generated/models.d.ts +31 -31
- package/dist/billing/v1/generated/schemas.zod.d.ts +56 -37
- package/dist/billing/v1/generated/schemas.zod.js +83 -64
- package/dist/billing/v1/generated/validators/accountBalance.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/accountBalance.zod.js +1 -1
- package/dist/billing/v1/generated/validators/accountDeletionObjection.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/accountDeletionObjection.zod.js +1 -1
- package/dist/billing/v1/generated/validators/accountDeletionReadiness.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/accountDeletionReadiness.zod.js +1 -1
- package/dist/billing/v1/generated/validators/accountDeletionReadinessItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/accountDeletionReadinessItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/accountIdentity.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/accountIdentity.zod.js +1 -1
- package/dist/billing/v1/generated/validators/activeResource.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/activeResource.zod.js +1 -1
- package/dist/billing/v1/generated/validators/activeResourceList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/activeResourceList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/allowance.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/allowance.zod.js +1 -1
- package/dist/billing/v1/generated/validators/allowanceList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/allowanceList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/applicability.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/applicability.zod.js +1 -1
- package/dist/billing/v1/generated/validators/applicablePlan.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/applicablePlan.zod.js +1 -1
- package/dist/billing/v1/generated/validators/appliedCredit.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/appliedCredit.zod.js +1 -1
- package/dist/billing/v1/generated/validators/autoRenewSet.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/autoRenewSet.zod.js +1 -1
- package/dist/billing/v1/generated/validators/billingAccount.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/billingAccount.zod.js +1 -1
- package/dist/billing/v1/generated/validators/billingAccountCreate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/billingAccountCreate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/billingAccountList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/billingAccountList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/billingAccountUpdate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/billingScheme.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/billingScheme.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancelSubscriptionRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancelSubscriptionRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellation.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellation.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellationCreate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationCreate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellationItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellationList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellationPolicy.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationPolicy.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellationPreviewRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationPreviewRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutMode.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutMode.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutOptions.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutOptions.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSession.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSession.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionConfirm.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionConfirm.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionCreate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionCreate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionItemList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionItemList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionResult.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionResult.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/contact.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/contact.zod.js +1 -1
- package/dist/billing/v1/generated/validators/contactCreate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/contactCreate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/contactList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/contactList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/contactUpdate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/contactUpdate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditGrant.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditGrant.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditGrantList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditGrantList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditGroup.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditGroup.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditNote.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditNote.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditNoteItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditNoteItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditNoteItemList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditNoteItemList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditNoteList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditNoteList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/currency.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/currency.zod.js +1 -1
- package/dist/billing/v1/generated/validators/currencyList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/currencyList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cursorPagination.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cursorPagination.zod.js +1 -1
- package/dist/billing/v1/generated/validators/discount.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/discount.zod.js +1 -1
- package/dist/billing/v1/generated/validators/discountList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/discountList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/entitlement.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/entitlement.zod.js +1 -1
- package/dist/billing/v1/generated/validators/entitlementList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/entitlementList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/error.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/error.zod.js +1 -1
- package/dist/billing/v1/generated/validators/featureGrant.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/featureGrant.zod.js +1 -1
- package/dist/billing/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/featureGrantList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/featureGrantStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/funds.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/funds.zod.js +1 -1
- package/dist/billing/v1/generated/validators/getCheckoutSessionQuoteParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/getCheckoutSessionQuoteParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/getPlanHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/getPlanHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/getPriceHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/getPriceHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/getProductHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/getProductHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/getStatementUsageParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/getStatementUsageParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoice.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoice.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoiceItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoiceItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoiceItemList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoiceItemList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoiceItemProration.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoiceItemProration.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoiceList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoiceList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoiceStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoiceStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoiceSummary.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoiceSummary.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listAccountDiscountsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listAccountDiscountsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listActiveResourcesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listActiveResourcesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listAllowancesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listAllowancesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listBillingAccountsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listBillingAccountsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listCancellationsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCancellationsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listCheckoutSessionItemsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCheckoutSessionItemsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listCheckoutSessionsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCheckoutSessionsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listContactsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listContactsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listCreditGrantsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCreditGrantsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listCreditNoteItemsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCreditNoteItemsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listCreditNotesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCreditNotesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listCurrenciesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCurrenciesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listEntitlementsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listEntitlementsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listInvoiceItemsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listInvoiceItemsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listInvoicesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listInvoicesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listMonthlyStatementsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listMonthlyStatementsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listOrderItemsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listOrderItemsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listOrdersParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listOrdersParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPaymentMethodsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPaymentMethodsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPaymentOptionsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPaymentOptionsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPlansHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPlansHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPlansParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPlansParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPricesByPlanHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPricesByPlanHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPricesByPlanParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPricesByPlanParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPricesHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPricesHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPricesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPricesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listProductsHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listProductsHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listProductsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listProductsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listProjectAssignmentsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listProjectAssignmentsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listRatesHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listRatesHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listRatesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listRatesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listRefundsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listRefundsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listRenewalPricesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listRenewalPricesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listSpendParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listSpendParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listStatementsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listStatementsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listSubscriptionsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listSubscriptionsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listTopUpsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listTopUpsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listTransactionsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listTransactionsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listUsageChargesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listUsageChargesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listWithdrawalItemsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listWithdrawalItemsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listWithdrawalsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listWithdrawalsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/money.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/money.zod.js +1 -1
- package/dist/billing/v1/generated/validators/monthlyStatement.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/monthlyStatement.zod.js +1 -1
- package/dist/billing/v1/generated/validators/monthlyStatementList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/monthlyStatementList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/namedIdentity.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/namedIdentity.zod.js +1 -1
- package/dist/billing/v1/generated/validators/objectIdentity.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/objectIdentity.zod.js +1 -1
- package/dist/billing/v1/generated/validators/offsetPagination.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/offsetPagination.zod.js +1 -1
- package/dist/billing/v1/generated/validators/order.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/order.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderCancel.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderCancel.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderItemList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderItemStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderItemStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderRefundPreview.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderRefundPreview.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paidWith.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paidWith.zod.js +1 -1
- package/dist/billing/v1/generated/validators/payInvoiceRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/payInvoiceRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/payTogetherRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/payTogetherRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentAction.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentAction.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentCancellationReason.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentMethod.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentMethod.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodSetup.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodSetup.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodSetupResult.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodSetupResult.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentOption.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentOption.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentOptionList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentOptionList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentOptionMethod.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentPreview.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentPreview.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentPreviewInvoice.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentPreviewInvoice.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentResult.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentResult.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/plan.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/plan.zod.js +1 -1
- package/dist/billing/v1/generated/validators/planFeature.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/planFeature.zod.js +1 -1
- package/dist/billing/v1/generated/validators/planList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/planList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/previewInvoicePaymentParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/previewInvoicePaymentParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/previewOrderRefundParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/previewOrderRefundParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/price.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/price.zod.js +1 -1
- package/dist/billing/v1/generated/validators/priceList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/priceList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/priceOption.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/priceOption.zod.js +1 -1
- package/dist/billing/v1/generated/validators/priceType.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/priceType.zod.js +1 -1
- package/dist/billing/v1/generated/validators/product.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/product.zod.js +1 -1
- package/dist/billing/v1/generated/validators/productID.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/productID.zod.js +1 -1
- package/dist/billing/v1/generated/validators/productList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/productList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/projectAssignment.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/projectAssignment.zod.js +1 -1
- package/dist/billing/v1/generated/validators/projectAssignmentList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/projectAssignmentList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/purchaseOperation.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/purchaseOperation.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quote.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quote.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteItemInput.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteItemInput.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteRenewal.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteRenewal.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteRenewalResult.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteRenewalResult.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteRequest.zod.js +2 -2
- package/dist/billing/v1/generated/validators/quotedDiscount.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quotedDiscount.zod.js +1 -1
- package/dist/billing/v1/generated/validators/rate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/rate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/rateList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/rateList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/refund.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/refund.zod.js +1 -1
- package/dist/billing/v1/generated/validators/refundList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/refundList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/refundPolicy.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/refundPolicy.zod.js +1 -1
- package/dist/billing/v1/generated/validators/refundReason.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/refundReason.zod.js +1 -1
- package/dist/billing/v1/generated/validators/renewRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/renewRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/renewalPrice.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/renewalPrice.zod.js +1 -1
- package/dist/billing/v1/generated/validators/renewalPriceList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/renewalPriceList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/scheduledChange.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/scheduledChange.zod.js +1 -1
- package/dist/billing/v1/generated/validators/setProjectAssignmentRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/setProjectAssignmentRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/spendRow.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/spendRow.zod.js +1 -1
- package/dist/billing/v1/generated/validators/spendRowList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/spendRowList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statement.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/statement.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statementAmounts.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/statementAmounts.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statementItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/statementItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statementList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/statementList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statementStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/statementStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statementSummary.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/statementSummary.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statementType.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/statementType.zod.js +1 -1
- package/dist/billing/v1/generated/validators/subscription.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/subscription.zod.js +1 -1
- package/dist/billing/v1/generated/validators/subscriptionCancellation.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/subscriptionCancellation.zod.js +1 -1
- package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/subscriptionList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/subscriptionRestriction.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
- package/dist/billing/v1/generated/validators/taxItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/taxItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/tier.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/tier.zod.js +1 -1
- package/dist/billing/v1/generated/validators/topUp.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/topUp.zod.js +1 -1
- package/dist/billing/v1/generated/validators/topUpCreate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/topUpCreate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/topUpList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/topUpList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/transaction.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/transaction.zod.js +1 -1
- package/dist/billing/v1/generated/validators/transactionList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/transactionList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/transactionType.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/transactionType.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageCharge.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/usageCharge.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageChargeList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/usageChargeList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageEstimate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/usageEstimate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageEstimateInput.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/usageEstimateInput.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageEstimateItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/usageEstimateItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageEstimateRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/usageEstimateRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageType.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/usageType.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawal.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawal.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalAllocation.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalAllocation.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalCreate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalCreate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalItemList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalItemList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalPreview.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalPreview.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalPreviewItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalPreviewItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalPreviewRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalPreviewRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalSource.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalSource.zod.js +1 -1
- package/dist/routes.d.ts +2992 -2992
- package/dist/routes.js +3005 -3005
- package/package.json +1 -1
|
@@ -340,7 +340,7 @@ export const getGetBillingAccountUrl = (accountId) => {
|
|
|
340
340
|
return `https://billing.leaflow.cloud/api/v1/billing-accounts/${encodeURIComponent(String(accountId))}`;
|
|
341
341
|
};
|
|
342
342
|
/**
|
|
343
|
-
*
|
|
343
|
+
* A billing account with its currency, status and invoice contact, readable by its owner and by members of the projects it currently pays for. Returns 404 if it does not exist and 403 to anyone else.
|
|
344
344
|
* @summary Get billing account
|
|
345
345
|
*/
|
|
346
346
|
export const getBillingAccount = async (accountId, options, fetchFn) => {
|
|
@@ -426,7 +426,7 @@ export const getGetAccountBalanceUrl = (accountId) => {
|
|
|
426
426
|
return `https://billing.leaflow.cloud/api/v1/billing-accounts/${encodeURIComponent(String(accountId))}/balance`;
|
|
427
427
|
};
|
|
428
428
|
/**
|
|
429
|
-
* The balance of
|
|
429
|
+
* The balance of an account, with credit groups, unpaid invoice amounts, unbilled estimates and pending returns, readable by its owner and by members of the projects it currently pays for. Returns 404 for a missing account and 403 to anyone else.
|
|
430
430
|
* @summary Get account balance
|
|
431
431
|
*/
|
|
432
432
|
export const getAccountBalance = async (accountId, options, fetchFn) => {
|
|
@@ -451,7 +451,7 @@ export const getListPaymentOptionsUrl = (accountId, params) => {
|
|
|
451
451
|
: `https://billing.leaflow.cloud/api/v1/billing-accounts/${encodeURIComponent(String(accountId))}/payment-options`;
|
|
452
452
|
};
|
|
453
453
|
/**
|
|
454
|
-
* 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.
|
|
454
|
+
* 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. Open to the owner of the account and to members of the projects it currently pays for.
|
|
455
455
|
* @summary List payment options
|
|
456
456
|
*/
|
|
457
457
|
export const listPaymentOptions = async (accountId, params, options, fetchFn) => {
|
|
@@ -513,7 +513,7 @@ export const getGetProjectAssignmentUrl = (projectId) => {
|
|
|
513
513
|
return `https://billing.leaflow.cloud/api/v1/assignments/${encodeURIComponent(String(projectId))}`;
|
|
514
514
|
};
|
|
515
515
|
/**
|
|
516
|
-
* The project's current assignment. Returns 404 when no billing account is assigned; the project cannot create resources until one is.
|
|
516
|
+
* The project's current assignment, readable by the owner of the assigned account and by members of the project. Returns 404 when no billing account is assigned; the project cannot create resources until one is.
|
|
517
517
|
* @summary Get project assignment
|
|
518
518
|
*/
|
|
519
519
|
export const getProjectAssignment = async (projectId, options, fetchFn) => {
|
|
@@ -529,7 +529,8 @@ export const getSetProjectAssignmentUrl = (projectId) => {
|
|
|
529
529
|
return `https://billing.leaflow.cloud/api/v1/assignments/${encodeURIComponent(String(projectId))}`;
|
|
530
530
|
};
|
|
531
531
|
/**
|
|
532
|
-
* Links the project to a billing account
|
|
532
|
+
* Links the project to a billing account you own; you need the project permission
|
|
533
|
+
* `billing:project_assignment.write`. A project without one is linked directly. Moving it to another
|
|
533
534
|
* account has the same requirements as unlinking: you own both accounts, the project has no metered resources,
|
|
534
535
|
* no subscriptions that have not ended and no orders in progress, and the current account has no unpaid
|
|
535
536
|
* invoices. Nothing moves with the project; charges already incurred stay with the account linked when they
|
|
@@ -568,7 +569,7 @@ export const getUnlinkProjectBillingAccountUrl = (projectId) => {
|
|
|
568
569
|
return `https://billing.leaflow.cloud/api/v1/assignments/${encodeURIComponent(String(projectId))}`;
|
|
569
570
|
};
|
|
570
571
|
/**
|
|
571
|
-
* 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, and the billing account has no unpaid invoices; invoices of orders awaiting payment do not count. Orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual. The project cannot make purchases until a billing account is linked again.
|
|
572
|
+
* Ends the project's current assignment; the assignment history is kept. You need to own the account and hold the project permission `billing:project_assignment.write`. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes, and the billing account has no unpaid invoices; invoices of orders awaiting payment do not count. Orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual. The project cannot make purchases until a billing account is linked again.
|
|
572
573
|
* @summary Unlink project billing account
|
|
573
574
|
*/
|
|
574
575
|
export const unlinkProjectBillingAccount = async (projectId, options, fetchFn) => {
|
|
@@ -790,6 +791,9 @@ export const getPayInvoiceUrl = (invoiceId) => {
|
|
|
790
791
|
* `BILLING_INVOICE_NOT_PAYABLE` with `meta.reason` `fractional_amount` when the amount left for the gateway is
|
|
791
792
|
* not a whole number of the currency's minor unit; such an invoice is collected from credit grants and balance
|
|
792
793
|
* automatically, including right after a top-up.
|
|
794
|
+
*
|
|
795
|
+
* Open to the owner of the invoice's billing account and, for the invoice of an order of a project, to members
|
|
796
|
+
* of the project. Only the owner can pay with a saved `payment_method_id`.
|
|
793
797
|
* @summary Pay an invoice
|
|
794
798
|
*/
|
|
795
799
|
export const payInvoice = async (invoiceId, payInvoiceRequest, options, fetchFn) => {
|
|
@@ -837,7 +841,7 @@ export const getPreviewInvoicePaymentUrl = (invoiceId, params) => {
|
|
|
837
841
|
* Nothing is charged, reserved or created.
|
|
838
842
|
*
|
|
839
843
|
* Refused with the same errors as paying, except that insufficient funds are not an error here:
|
|
840
|
-
* they show as a `gateway_amount` above zero.
|
|
844
|
+
* they show as a `gateway_amount` above zero. Open to the same callers as paying.
|
|
841
845
|
* @summary Preview invoice payment
|
|
842
846
|
*/
|
|
843
847
|
export const previewInvoicePayment = async (invoiceId, params, options, fetchFn) => {
|
|
@@ -954,7 +958,7 @@ export const getGetInvoiceUrl = (invoiceId) => {
|
|
|
954
958
|
return `https://billing.leaflow.cloud/api/v1/invoices/${encodeURIComponent(String(invoiceId))}`;
|
|
955
959
|
};
|
|
956
960
|
/**
|
|
957
|
-
* An issued invoice of your billing account, with its amounts, tax lines and payment state. A missing or unissued invoice returns 404;
|
|
961
|
+
* An issued invoice of your billing account, or the invoice of an order of a project you are a member of, with its amounts, tax lines and payment state. A missing or unissued invoice returns 404; any other invoice returns 403.
|
|
958
962
|
* @summary Get invoice
|
|
959
963
|
*/
|
|
960
964
|
export const getInvoice = async (invoiceId, options, fetchFn) => {
|
|
@@ -979,7 +983,7 @@ export const getListInvoiceItemsUrl = (invoiceId, params) => {
|
|
|
979
983
|
: `https://billing.leaflow.cloud/api/v1/invoices/${encodeURIComponent(String(invoiceId))}/items`;
|
|
980
984
|
};
|
|
981
985
|
/**
|
|
982
|
-
* Lines of an
|
|
986
|
+
* Lines of an invoice readable with get-invoice, with their service periods and projects. A missing or unissued invoice returns 404; any other invoice returns 403.
|
|
983
987
|
* @summary List invoice items
|
|
984
988
|
*/
|
|
985
989
|
export const listInvoiceItems = async (invoiceId, params, options, fetchFn) => {
|
|
@@ -1170,7 +1174,7 @@ export const getListUsageChargesUrl = (params) => {
|
|
|
1170
1174
|
: `https://billing.leaflow.cloud/api/v1/usage-charges`;
|
|
1171
1175
|
};
|
|
1172
1176
|
/**
|
|
1173
|
-
* Priced usage charges in the requested scope. Usage that had no price when it occurred is never charged later.
|
|
1177
|
+
* Priced usage charges in the requested scope; members with the project permission `billing:cost.read` list a project's charges with `project_ids`. Usage that had no price when it occurred is never charged later.
|
|
1174
1178
|
* @summary List usage charges
|
|
1175
1179
|
*/
|
|
1176
1180
|
export const listUsageCharges = async (params, options, fetchFn) => {
|
|
@@ -1195,7 +1199,7 @@ export const getListSubscriptionsUrl = (params) => {
|
|
|
1195
1199
|
: `https://billing.leaflow.cloud/api/v1/subscriptions`;
|
|
1196
1200
|
};
|
|
1197
1201
|
/**
|
|
1198
|
-
* Subscriptions
|
|
1202
|
+
* Subscriptions paid by your billing accounts; members of a project list its subscriptions with `project_ids`. Deleted subscriptions are not listed.
|
|
1199
1203
|
* @summary List subscriptions
|
|
1200
1204
|
*/
|
|
1201
1205
|
export const listSubscriptions = async (params, options, fetchFn) => {
|
|
@@ -1211,7 +1215,7 @@ export const getGetSubscriptionUrl = (subscriptionId) => {
|
|
|
1211
1215
|
return `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}`;
|
|
1212
1216
|
};
|
|
1213
1217
|
/**
|
|
1214
|
-
* A subscription
|
|
1218
|
+
* A subscription paid by your billing account or of a project you are a member of. Deleted subscriptions are reported as not found.
|
|
1215
1219
|
* @summary Get subscription
|
|
1216
1220
|
*/
|
|
1217
1221
|
export const getSubscription = async (subscriptionId, options, fetchFn) => {
|
|
@@ -1227,7 +1231,7 @@ export const getDeleteSubscriptionUrl = (subscriptionId) => {
|
|
|
1227
1231
|
return `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}`;
|
|
1228
1232
|
};
|
|
1229
1233
|
/**
|
|
1230
|
-
* Hides a canceled or terminated subscription from your subscription list and detail by setting deleted_at; its status, ended_at and history are kept.
|
|
1234
|
+
* Hides a canceled or terminated subscription from your subscription list and detail by setting deleted_at; its status, ended_at and history are kept. Only the owner of the subscription's current billing account can delete it. 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.
|
|
1231
1235
|
* @summary Delete subscription
|
|
1232
1236
|
*/
|
|
1233
1237
|
export const deleteSubscription = async (subscriptionId, options, fetchFn) => {
|
|
@@ -1244,8 +1248,9 @@ export const getCancelSubscriptionUrl = (subscriptionId) => {
|
|
|
1244
1248
|
};
|
|
1245
1249
|
/**
|
|
1246
1250
|
* Requests cancellation on the purchase's agreed terms, with the same rules as creating a cancellation. Give the
|
|
1247
|
-
* refund amount from a quote with this subscription in `cancellation.subscription_ids`.
|
|
1248
|
-
*
|
|
1251
|
+
* refund amount from a quote with this subscription in `cancellation.subscription_ids`. Open to the owner of the
|
|
1252
|
+
* subscription's current billing account and to members of its project with the project permission
|
|
1253
|
+
* `billing:subscription.write`.
|
|
1249
1254
|
*
|
|
1250
1255
|
* Immediate cancellation asks the owning service to release the resources now; period-end cancellation keeps the
|
|
1251
1256
|
* subscription active or suspended until the paid term ends. The subscription becomes canceled when the service
|
|
@@ -1287,10 +1292,11 @@ export const getGetQuoteUrl = () => {
|
|
|
1287
1292
|
* Calculates what a proposed purchase, or the renewal of your subscriptions, would invoice now, and what each
|
|
1288
1293
|
* purchased line renews at. Nothing is saved, reserved or redeemed.
|
|
1289
1294
|
*
|
|
1290
|
-
* With `billing_account_id`, the quote is for
|
|
1295
|
+
* With `billing_account_id`, the quote is for that billing account: its currency, account discounts,
|
|
1291
1296
|
* tax and funds apply, renewals use the account currently paying for each subscription, and an access token
|
|
1292
|
-
* is required.
|
|
1293
|
-
* discount or funds apply, and
|
|
1297
|
+
* is required. The account must be yours or currently pay for a project you are a member of. Without it,
|
|
1298
|
+
* proposed items are priced in `currency` for anyone, signed in or not: no account discount or funds apply, and
|
|
1299
|
+
* `tax_status` is `requires_location_inputs`.
|
|
1294
1300
|
*
|
|
1295
1301
|
* A promotion code is evaluated without being applied. It is applied only when a Checkout Session is completed
|
|
1296
1302
|
* with it; conditions that depend on the account, such as a first purchase, are checked only with an account
|
|
@@ -1372,7 +1378,7 @@ export const getListCancellationsUrl = (params) => {
|
|
|
1372
1378
|
: `https://billing.leaflow.cloud/api/v1/cancellations`;
|
|
1373
1379
|
};
|
|
1374
1380
|
/**
|
|
1375
|
-
* Newest first
|
|
1381
|
+
* Newest first; members of a project list its cancellations with `project_ids`. Filter by `subscription_id` and `status=open` to find a subscription's cancellation in progress.
|
|
1376
1382
|
* @summary List cancellations
|
|
1377
1383
|
*/
|
|
1378
1384
|
export const listCancellations = async (params, options, fetchFn) => {
|
|
@@ -1389,7 +1395,9 @@ export const getCreateCancellationUrl = () => {
|
|
|
1389
1395
|
};
|
|
1390
1396
|
/**
|
|
1391
1397
|
* Ends subscriptions of one service together. Deleting a resource is an `immediate` cancellation of every
|
|
1392
|
-
* subscription released with it, such as a server with its disks or an address with its bandwidth.
|
|
1398
|
+
* subscription released with it, such as a server with its disks or an address with its bandwidth. Open to the
|
|
1399
|
+
* owner of the subscriptions' current billing account and to members of their project with the project
|
|
1400
|
+
* permission `billing:subscription.write`.
|
|
1393
1401
|
*
|
|
1394
1402
|
* The owning service releases the resources at once for `immediate`, or at `scheduled_at`, the end of the paid
|
|
1395
1403
|
* term, for `period_end`. When release is confirmed, the unused value is returned to the original payment
|
|
@@ -1450,7 +1458,7 @@ export const getPreviewCancellationUrl = () => {
|
|
|
1450
1458
|
return `https://billing.leaflow.cloud/api/v1/cancellations/preview`;
|
|
1451
1459
|
};
|
|
1452
1460
|
/**
|
|
1453
|
-
* What creating the cancellation now would return, per subscription and in total. Nothing is canceled, ended or refunded.
|
|
1461
|
+
* What creating the cancellation now would return, per subscription and in total. Nothing is canceled, ended or refunded. Open to the same callers and refused as creating it would be, except that nothing is recorded.
|
|
1454
1462
|
* @summary Preview a cancellation
|
|
1455
1463
|
*/
|
|
1456
1464
|
export const previewCancellation = async (cancellationPreviewRequest, options, fetchFn) => {
|
|
@@ -1483,7 +1491,7 @@ export const getGetCancellationUrl = (cancellationId) => {
|
|
|
1483
1491
|
return `https://billing.leaflow.cloud/api/v1/cancellations/${encodeURIComponent(String(cancellationId))}`;
|
|
1484
1492
|
};
|
|
1485
1493
|
/**
|
|
1486
|
-
* A cancellation
|
|
1494
|
+
* A cancellation paid by your billing account or of a project you are a member of, with its schedule, expected refundable amount and the outcome for each subscription, including partial success.
|
|
1487
1495
|
* @summary Get a cancellation
|
|
1488
1496
|
*/
|
|
1489
1497
|
export const getCancellation = async (cancellationId, options, fetchFn) => {
|
|
@@ -1499,7 +1507,7 @@ export const getWithdrawCancellationUrl = (cancellationId) => {
|
|
|
1499
1507
|
return `https://billing.leaflow.cloud/api/v1/cancellations/${encodeURIComponent(String(cancellationId))}/withdraw`;
|
|
1500
1508
|
};
|
|
1501
1509
|
/**
|
|
1502
|
-
* 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.
|
|
1510
|
+
* 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. Open to the owner of the subscriptions' current billing account and to members of their project with the project permission `billing:subscription.write`.
|
|
1503
1511
|
* @summary Withdraw a cancellation
|
|
1504
1512
|
*/
|
|
1505
1513
|
export const withdrawCancellation = async (cancellationId, options, fetchFn) => {
|
|
@@ -1524,7 +1532,7 @@ export const getListRenewalPricesUrl = (subscriptionId, params) => {
|
|
|
1524
1532
|
: `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}/renewal-prices`;
|
|
1525
1533
|
};
|
|
1526
1534
|
/**
|
|
1527
|
-
* Lists the current renewal agreement and available intervals. The current option preserves recurring_amount; other options use current prices. Amounts cover the whole subscription quantity and exclude tax.
|
|
1535
|
+
* Lists the current renewal agreement and available intervals. The current option preserves recurring_amount; other options use current prices. Amounts cover the whole subscription quantity and exclude tax. Open to the owner of the subscription's current billing account and to members of its project.
|
|
1528
1536
|
* @summary List the terms this item can be renewed for
|
|
1529
1537
|
*/
|
|
1530
1538
|
export const listRenewalPrices = async (subscriptionId, params, options, fetchFn) => {
|
|
@@ -1548,6 +1556,9 @@ export const getRenewSubscriptionUrl = (subscriptionId) => {
|
|
|
1548
1556
|
* `use_balance` allow; when they cannot cover it, the request fails with `BILLING_INSUFFICIENT_FUNDS` and no
|
|
1549
1557
|
* order is left. To apply a promotion code or pay later, create a renewal Checkout Session.
|
|
1550
1558
|
*
|
|
1559
|
+
* Open to the owner of the subscription's current billing account and to members of its project with the
|
|
1560
|
+
* project permission `billing:subscription.write`. Only the owner can pay with `payment_method_id`.
|
|
1561
|
+
*
|
|
1551
1562
|
* Keep order_id and read the order after an unknown outcome; creating it again conflicts.
|
|
1552
1563
|
* @summary Renew subscription
|
|
1553
1564
|
*/
|
|
@@ -1581,7 +1592,7 @@ export const getSetAutoRenewUrl = (subscriptionId) => {
|
|
|
1581
1592
|
return `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}/auto-renew`;
|
|
1582
1593
|
};
|
|
1583
1594
|
/**
|
|
1584
|
-
* 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.
|
|
1595
|
+
* 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. Open to the owner of the subscription's current billing account and to members of its project with the project permission `billing:subscription.write`.
|
|
1585
1596
|
* @summary Set auto renew
|
|
1586
1597
|
*/
|
|
1587
1598
|
export const setAutoRenew = async (subscriptionId, autoRenewSet, options, fetchFn) => {
|
|
@@ -1623,7 +1634,7 @@ export const getListAllowancesUrl = (params) => {
|
|
|
1623
1634
|
: `https://billing.leaflow.cloud/api/v1/allowances`;
|
|
1624
1635
|
};
|
|
1625
1636
|
/**
|
|
1626
|
-
* Remaining usage quantities, such as bytes, seconds or tokens
|
|
1637
|
+
* Remaining usage quantities, such as bytes, seconds or tokens; members of a project list its allowances with `project_ids`. 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.
|
|
1627
1638
|
* @summary List allowances
|
|
1628
1639
|
*/
|
|
1629
1640
|
export const listAllowances = async (params, options, fetchFn) => {
|
|
@@ -1648,7 +1659,7 @@ export const getListCheckoutSessionsUrl = (params) => {
|
|
|
1648
1659
|
: `https://billing.leaflow.cloud/api/v1/checkout-sessions`;
|
|
1649
1660
|
};
|
|
1650
1661
|
/**
|
|
1651
|
-
* Checkout Sessions of your billing accounts, newest first
|
|
1662
|
+
* Checkout Sessions of your billing accounts, newest first; members of a project list its sessions with `project_ids`. An open session is a purchase waiting for checkout to be completed.
|
|
1652
1663
|
* @summary List Checkout Sessions
|
|
1653
1664
|
*/
|
|
1654
1665
|
export const listCheckoutSessions = async (params, options, fetchFn) => {
|
|
@@ -1664,13 +1675,15 @@ export const getCreateCheckoutSessionUrl = () => {
|
|
|
1664
1675
|
return `https://billing.leaflow.cloud/api/v1/checkout-sessions`;
|
|
1665
1676
|
};
|
|
1666
1677
|
/**
|
|
1667
|
-
* Opens a Checkout Session renewing
|
|
1678
|
+
* Opens a Checkout Session renewing a licensed subscription, with periods and price chosen as in
|
|
1668
1679
|
* renewing. Nothing is charged until you complete it, when a promotion code can be applied; it then renews from
|
|
1669
1680
|
* the subscription's current_term_end at that time. To renew at once from credit grants, balance or a payment
|
|
1670
1681
|
* method, renew the subscription instead. Purchases and changes of a service's resources are created through
|
|
1671
1682
|
* that service.
|
|
1672
1683
|
*
|
|
1673
|
-
*
|
|
1684
|
+
* Open to the owner of the subscription's current billing account and to members of its project with the
|
|
1685
|
+
* project permission `billing:subscription.write`. Keep `checkout_session_id` and read the session after an
|
|
1686
|
+
* unknown outcome; creating it again conflicts.
|
|
1674
1687
|
* @summary Create a renewal Checkout Session
|
|
1675
1688
|
*/
|
|
1676
1689
|
export const createCheckoutSession = async (checkoutSessionCreate, options, fetchFn) => {
|
|
@@ -1703,7 +1716,7 @@ export const getGetCheckoutSessionUrl = (checkoutSessionId) => {
|
|
|
1703
1716
|
return `https://billing.leaflow.cloud/api/v1/checkout-sessions/${encodeURIComponent(String(checkoutSessionId))}`;
|
|
1704
1717
|
};
|
|
1705
1718
|
/**
|
|
1706
|
-
* A Checkout Session of your billing account. Poll it to follow checkout; once it is complete, read its order for payment and delivery. An unknown session returns 404;
|
|
1719
|
+
* A Checkout Session of your billing account or of a project you are a member of. Poll it to follow checkout; once it is complete, read its order for payment and delivery. An unknown session returns 404; any other session returns 403.
|
|
1707
1720
|
* @summary Get a Checkout Session
|
|
1708
1721
|
*/
|
|
1709
1722
|
export const getCheckoutSession = async (checkoutSessionId, options, fetchFn) => {
|
|
@@ -1728,7 +1741,7 @@ export const getListCheckoutSessionItemsUrl = (checkoutSessionId, params) => {
|
|
|
1728
1741
|
: `https://billing.leaflow.cloud/api/v1/checkout-sessions/${encodeURIComponent(String(checkoutSessionId))}/items`;
|
|
1729
1742
|
};
|
|
1730
1743
|
/**
|
|
1731
|
-
* What the session buys, by position. Prices and amounts are in its quote.
|
|
1744
|
+
* What the session buys, by position. Prices and amounts are in its quote. Readable by whoever can read the session.
|
|
1732
1745
|
* @summary List Checkout Session items
|
|
1733
1746
|
*/
|
|
1734
1747
|
export const listCheckoutSessionItems = async (checkoutSessionId, params, options, fetchFn) => {
|
|
@@ -1761,6 +1774,8 @@ export const getGetCheckoutSessionQuoteUrl = (checkoutSessionId, params) => {
|
|
|
1761
1774
|
* immediate change, the returned `proration_date`. An expired session is refused with
|
|
1762
1775
|
* `BILLING_CHECKOUT_SESSION_EXPIRED`, and a complete one with `BILLING_CHECKOUT_SESSION_COMPLETE`; read its order
|
|
1763
1776
|
* instead.
|
|
1777
|
+
*
|
|
1778
|
+
* Open to the owner of the session's billing account and to members of its project.
|
|
1764
1779
|
* @summary Quote a Checkout Session
|
|
1765
1780
|
*/
|
|
1766
1781
|
export const getCheckoutSessionQuote = async (checkoutSessionId, params, options, fetchFn) => {
|
|
@@ -1785,6 +1800,8 @@ export const getConfirmCheckoutSessionUrl = (checkoutSessionId) => {
|
|
|
1785
1800
|
* Confirming a complete session again with the same terms returns it with its order; different terms are refused
|
|
1786
1801
|
* with `BILLING_CHECKOUT_SESSION_COMPLETE`. An expired session is refused with `BILLING_CHECKOUT_SESSION_EXPIRED`.
|
|
1787
1802
|
* The order is delivered by the service that owns it once paid; confirmation alone does not mean delivery.
|
|
1803
|
+
*
|
|
1804
|
+
* Open to the owner of the session's billing account and to members of its project.
|
|
1788
1805
|
* @summary Confirm a Checkout Session
|
|
1789
1806
|
*/
|
|
1790
1807
|
export const confirmCheckoutSession = async (checkoutSessionId, checkoutSessionConfirm, options, fetchFn) => {
|
|
@@ -1817,7 +1834,7 @@ export const getExpireCheckoutSessionUrl = (checkoutSessionId) => {
|
|
|
1817
1834
|
return `https://billing.leaflow.cloud/api/v1/checkout-sessions/${encodeURIComponent(String(checkoutSessionId))}/expire`;
|
|
1818
1835
|
};
|
|
1819
1836
|
/**
|
|
1820
|
-
* Ends an open session without an order; the service that created it releases what it was holding for the purchase. An expired session is returned unchanged.
|
|
1837
|
+
* Ends an open session without an order; the service that created it releases what it was holding for the purchase. An expired session is returned unchanged. Open to the owner of the session's billing account and to members of its project.
|
|
1821
1838
|
* @summary Expire a Checkout Session
|
|
1822
1839
|
*/
|
|
1823
1840
|
export const expireCheckoutSession = async (checkoutSessionId, options, fetchFn) => {
|
|
@@ -1842,7 +1859,7 @@ export const getListOrdersUrl = (params) => {
|
|
|
1842
1859
|
: `https://billing.leaflow.cloud/api/v1/orders`;
|
|
1843
1860
|
};
|
|
1844
1861
|
/**
|
|
1845
|
-
* Orders with their status and invoice amounts
|
|
1862
|
+
* Orders of your billing accounts with their status and invoice amounts; members of a project list its orders with `project_ids`. 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.
|
|
1846
1863
|
* @summary List orders
|
|
1847
1864
|
*/
|
|
1848
1865
|
export const listOrders = async (params, options, fetchFn) => {
|
|
@@ -1858,7 +1875,7 @@ export const getGetOrderUrl = (orderId) => {
|
|
|
1858
1875
|
return `https://billing.leaflow.cloud/api/v1/orders/${encodeURIComponent(String(orderId))}`;
|
|
1859
1876
|
};
|
|
1860
1877
|
/**
|
|
1861
|
-
* An order of your billing account with its status and invoice. An unknown order returns 404;
|
|
1878
|
+
* An order of your billing account or of a project you are a member of, with its status and invoice. An unknown order returns 404; any other order returns 403.
|
|
1862
1879
|
* @summary Get order
|
|
1863
1880
|
*/
|
|
1864
1881
|
export const getOrder = async (orderId, options, fetchFn) => {
|
|
@@ -1883,7 +1900,7 @@ export const getPreviewOrderRefundUrl = (orderId, params) => {
|
|
|
1883
1900
|
: `https://billing.leaflow.cloud/api/v1/orders/${encodeURIComponent(String(orderId))}/refund-preview`;
|
|
1884
1901
|
};
|
|
1885
1902
|
/**
|
|
1886
|
-
* What canceling the listed items, or the whole order, would refund to the original payment sources. Nothing is canceled or refunded.
|
|
1903
|
+
* What canceling the listed items, or the whole order, would refund to the original payment sources. Nothing is canceled or refunded. Open to the owner of the order's billing account and to members of its project.
|
|
1887
1904
|
* @summary Preview an order refund
|
|
1888
1905
|
*/
|
|
1889
1906
|
export const previewOrderRefund = async (orderId, params, options, fetchFn) => {
|
|
@@ -1910,7 +1927,7 @@ export const getCancelOrderUrl = (orderId) => {
|
|
|
1910
1927
|
* `BILLING_PAYMENT_PENDING` and `meta.transaction_id`. Repeating the cancellation does not refund twice.
|
|
1911
1928
|
*
|
|
1912
1929
|
* An accepted order is canceled by its owning service, and delivered items through subscription cancellation.
|
|
1913
|
-
* Refunds are previewed with `preview-order-refund`.
|
|
1930
|
+
* Refunds are previewed with `preview-order-refund`. Open to the owner of the order's billing account and to members of its project.
|
|
1914
1931
|
* @summary Cancel order
|
|
1915
1932
|
*/
|
|
1916
1933
|
export const cancelOrder = async (orderId, orderCancel, options, fetchFn) => {
|
|
@@ -1952,7 +1969,7 @@ export const getListOrderItemsUrl = (orderId, params) => {
|
|
|
1952
1969
|
: `https://billing.leaflow.cloud/api/v1/orders/${encodeURIComponent(String(orderId))}/items`;
|
|
1953
1970
|
};
|
|
1954
1971
|
/**
|
|
1955
|
-
* One entry per item bought, with the price charged and the period it covers.
|
|
1972
|
+
* One entry per item bought, with the price charged and the period it covers. Readable by whoever can read the order.
|
|
1956
1973
|
* @summary List order items
|
|
1957
1974
|
*/
|
|
1958
1975
|
export const listOrderItems = async (orderId, params, options, fetchFn) => {
|
|
@@ -1977,7 +1994,7 @@ export const getListEntitlementsUrl = (params) => {
|
|
|
1977
1994
|
: `https://billing.leaflow.cloud/api/v1/entitlements`;
|
|
1978
1995
|
};
|
|
1979
1996
|
/**
|
|
1980
|
-
* Capabilities granted by live subscriptions and active feature grants
|
|
1997
|
+
* Capabilities granted by live subscriptions and active feature grants; members of a project list its entitlements with `project_ids`. A capability not held is not listed, and one stops being listed when the subscription or grant providing it ends.
|
|
1981
1998
|
* @summary List entitlements
|
|
1982
1999
|
*/
|
|
1983
2000
|
export const listEntitlements = async (params, options, fetchFn) => {
|
|
@@ -2328,7 +2345,7 @@ export const getListActiveResourcesUrl = (params) => {
|
|
|
2328
2345
|
: `https://billing.leaflow.cloud/api/v1/active-resources`;
|
|
2329
2346
|
};
|
|
2330
2347
|
/**
|
|
2331
|
-
* Continuous metering registrations paid for by your billing accounts
|
|
2348
|
+
* Continuous metering registrations paid for by your billing accounts; members of a project list its registrations with `project_ids`. Their state does not describe the resource's runtime.
|
|
2332
2349
|
* @summary List active resources
|
|
2333
2350
|
*/
|
|
2334
2351
|
export const listActiveResources = async (params, options, fetchFn) => {
|
|
@@ -2358,6 +2375,9 @@ export const getListSpendUrl = (params) => {
|
|
|
2358
2375
|
* closing are included. `from` and `to` must fall on UTC day boundaries and span at most 92 days.
|
|
2359
2376
|
* Project filters use the account recorded on each charge, including charges for projects later
|
|
2360
2377
|
* assigned to another account. The total covers all matching groups, not just the returned page.
|
|
2378
|
+
*
|
|
2379
|
+
* Open to the owner of the account and to members with the project permission `billing:cost.read` of each
|
|
2380
|
+
* project in `project_ids`, which must then be given and currently assigned to the account.
|
|
2361
2381
|
* @summary List account spend
|
|
2362
2382
|
*/
|
|
2363
2383
|
export const listSpend = async (params, options, fetchFn) => {
|
|
@@ -2455,7 +2475,7 @@ export const getGetStatementUsageUrl = (statementId, params) => {
|
|
|
2455
2475
|
: `https://billing.leaflow.cloud/api/v1/statements/${encodeURIComponent(String(statementId))}/usage-summary`;
|
|
2456
2476
|
};
|
|
2457
2477
|
/**
|
|
2458
|
-
* 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.
|
|
2478
|
+
* 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. Open to the owner of the statement's account and to members with the project permission `billing:cost.read` of each project in `project_ids`, which must then be given and currently assigned to that account.
|
|
2459
2479
|
* @summary Get grouped consumption
|
|
2460
2480
|
*/
|
|
2461
2481
|
export const getStatementUsage = async (statementId, params, options, fetchFn) => {
|