@leaflow/sdk 0.0.0-dev.403.g86286e3 → 0.0.0-dev.407.g035f1ea
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 +26 -6
- package/dist/billing/v1/generated/functions.js +38 -6
- package/dist/billing/v1/generated/models.d.ts +57 -56
- package/dist/billing/v1/generated/schemas.zod.d.ts +3 -3
- package/dist/billing/v1/generated/schemas.zod.js +3 -3
- 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 +3 -3
- 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 +4 -4
- 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/cancellationMode.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationMode.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/{quoteCancellationResult.zod.d.ts → cancellationPreview.zod.d.ts} +6 -4
- package/dist/billing/v1/generated/validators/cancellationPreview.zod.js +33 -0
- package/dist/billing/v1/generated/validators/{quoteCancellationItem.zod.d.ts → cancellationPreviewItem.zod.d.ts} +4 -4
- package/dist/billing/v1/generated/validators/{quoteCancellationItem.zod.js → cancellationPreviewItem.zod.js} +3 -3
- package/dist/billing/v1/generated/validators/cancellationPreviewRequest.zod.d.ts +19 -0
- package/dist/billing/v1/generated/validators/cancellationPreviewRequest.zod.js +24 -0
- 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/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/priceSearch.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/priceSearch.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 -40
- package/dist/billing/v1/generated/validators/quote.zod.js +4 -8
- package/dist/billing/v1/generated/validators/quoteAddress.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteAddress.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteChangeInput.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteChangeInput.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteDowngradeRefund.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteDowngradeRefund.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 -8
- package/dist/billing/v1/generated/validators/quoteRequest.zod.js +3 -5
- 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/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 +10 -2
- package/dist/routes.js +11 -2
- package/package.json +1 -1
- package/dist/billing/v1/generated/validators/quoteCancellation.zod.d.ts +0 -18
- package/dist/billing/v1/generated/validators/quoteCancellation.zod.js +0 -20
- package/dist/billing/v1/generated/validators/quoteCancellationResult.zod.js +0 -28
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Billing API
|
|
5
|
-
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
|
-
import type { AccountBalance, AccountDeletionReadiness, ActiveResourceList, AllowanceList, AutoRenewSet, BillingAccount, BillingAccountCreate, BillingAccountList, BillingAccountUpdate, CancelSubscriptionRequest, Cancellation, CancellationCreate, CancellationList, CheckoutSession, CheckoutSessionConfirm, CheckoutSessionCreate, CheckoutSessionItemList, CheckoutSessionList, CheckoutSessionResult, Contact, ContactCreate, ContactList, ContactUpdate, CreditGrantList, CreditNote, CreditNoteItemList, CreditNoteList, CurrencyList, DiscountList, EntitlementList, Error, ErrorResponse, FeatureGrantList, GetCheckoutSessionQuoteParams, GetPlanHeaders, GetPriceHeaders, GetProductHeaders, GetStatementUsageParams, Invoice, InvoiceItemList, InvoiceList, ListAccountDiscountsParams, ListActiveResourcesParams, ListAllowancesParams, ListBillingAccountsParams, ListCancellationsParams, ListCheckoutSessionItemsParams, ListCheckoutSessionsParams, ListContactsParams, ListCreditGrantsParams, ListCreditNoteItemsParams, ListCreditNotesParams, ListCurrenciesParams, ListEntitlementsParams, ListFeatureGrantsParams, ListInvoiceItemsParams, ListInvoicesParams, ListMonthlyStatementsParams, ListOrderItemsParams, ListOrdersParams, ListPaymentMethodsParams, ListPaymentOptionsParams, ListPlansHeaders, ListPlansParams, ListPricesByPlanHeaders, ListPricesByPlanParams, ListPricesHeaders, ListPricesParams, ListProductsHeaders, ListProductsParams, ListProjectAssignmentsParams, ListRefundsParams, ListRenewalPricesParams, ListSpendParams, ListStatementsParams, ListSubscriptionsParams, ListTopUpsParams, ListTransactionsParams, ListUsageChargesParams, ListWithdrawalItemsParams, ListWithdrawalsParams, MonthlyStatementList, NotModifiedResponse, Order, OrderCancel, OrderItemList, OrderList, OrderRefundPreview, PayInvoiceRequest, PayTogetherRequest, PaymentMethod, PaymentMethodList, PaymentMethodSetup, PaymentMethodSetupResult, PaymentOptionList, PaymentPreview, PaymentResult, Plan, PlanList, PreviewInvoicePaymentParams, PreviewOrderRefundParams, Price, PriceList, PriceSearch, Product, ProductID, ProductList, ProjectAssignment, ProjectAssignmentList, Quote, QuoteRequest, RefundList, RenewRequest, RenewalPriceList, SetProjectAssignmentRequest, SpendRowList, Statement, StatementList, StatementSummary, Subscription, SubscriptionList, TopUp, TopUpCreate, TopUpList, TransactionList, UsageChargeList, UsageEstimate, UsageEstimateRequest, Withdrawal, WithdrawalCreate, WithdrawalItemList, WithdrawalList, WithdrawalPreview, WithdrawalPreviewRequest } from "./models.js";
|
|
8
|
+
import type { AccountBalance, AccountDeletionReadiness, ActiveResourceList, AllowanceList, AutoRenewSet, BillingAccount, BillingAccountCreate, BillingAccountList, BillingAccountUpdate, CancelSubscriptionRequest, Cancellation, CancellationCreate, CancellationList, CancellationPreview, CancellationPreviewRequest, CheckoutSession, CheckoutSessionConfirm, CheckoutSessionCreate, CheckoutSessionItemList, CheckoutSessionList, CheckoutSessionResult, Contact, ContactCreate, ContactList, ContactUpdate, CreditGrantList, CreditNote, CreditNoteItemList, CreditNoteList, CurrencyList, DiscountList, EntitlementList, Error, ErrorResponse, FeatureGrantList, GetCheckoutSessionQuoteParams, GetPlanHeaders, GetPriceHeaders, GetProductHeaders, GetStatementUsageParams, Invoice, InvoiceItemList, InvoiceList, ListAccountDiscountsParams, ListActiveResourcesParams, ListAllowancesParams, ListBillingAccountsParams, ListCancellationsParams, ListCheckoutSessionItemsParams, ListCheckoutSessionsParams, ListContactsParams, ListCreditGrantsParams, ListCreditNoteItemsParams, ListCreditNotesParams, ListCurrenciesParams, ListEntitlementsParams, ListFeatureGrantsParams, ListInvoiceItemsParams, ListInvoicesParams, ListMonthlyStatementsParams, ListOrderItemsParams, ListOrdersParams, ListPaymentMethodsParams, ListPaymentOptionsParams, ListPlansHeaders, ListPlansParams, ListPricesByPlanHeaders, ListPricesByPlanParams, ListPricesHeaders, ListPricesParams, ListProductsHeaders, ListProductsParams, ListProjectAssignmentsParams, ListRefundsParams, ListRenewalPricesParams, ListSpendParams, ListStatementsParams, ListSubscriptionsParams, ListTopUpsParams, ListTransactionsParams, ListUsageChargesParams, ListWithdrawalItemsParams, ListWithdrawalsParams, MonthlyStatementList, NotModifiedResponse, Order, OrderCancel, OrderItemList, OrderList, OrderRefundPreview, PayInvoiceRequest, PayTogetherRequest, PaymentMethod, PaymentMethodList, PaymentMethodSetup, PaymentMethodSetupResult, PaymentOptionList, PaymentPreview, PaymentResult, Plan, PlanList, PreviewInvoicePaymentParams, PreviewOrderRefundParams, Price, PriceList, PriceSearch, Product, ProductID, ProductList, ProjectAssignment, ProjectAssignmentList, Quote, QuoteRequest, RefundList, RenewRequest, RenewalPriceList, SetProjectAssignmentRequest, SpendRowList, Statement, StatementList, StatementSummary, Subscription, SubscriptionList, TopUp, TopUpCreate, TopUpList, TransactionList, UsageChargeList, UsageEstimate, UsageEstimateRequest, Withdrawal, WithdrawalCreate, WithdrawalItemList, WithdrawalList, WithdrawalPreview, WithdrawalPreviewRequest } from "./models.js";
|
|
9
9
|
export type HTTPStatusCode1xx = 100 | 101 | 102 | 103;
|
|
10
10
|
export type HTTPStatusCode2xx = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207;
|
|
11
11
|
export type HTTPStatusCode3xx = 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308;
|
|
@@ -1145,7 +1145,7 @@ export type cancelSubscriptionResponse = cancelSubscriptionResponseSuccess | can
|
|
|
1145
1145
|
export declare const getCancelSubscriptionUrl: (subscriptionId: string) => string;
|
|
1146
1146
|
/**
|
|
1147
1147
|
* Requests cancellation on the purchase's agreed terms, with the same rules as creating a cancellation. Give the
|
|
1148
|
-
*
|
|
1148
|
+
* `proration_date` and `refundable_amount` of preview-cancellation for this subscription. Open to the owner of the
|
|
1149
1149
|
* subscription's current billing account and to members of its project with the project permission
|
|
1150
1150
|
* `billing:finance.manage`.
|
|
1151
1151
|
*
|
|
@@ -1175,8 +1175,7 @@ export type getQuoteResponse = getQuoteResponseSuccess | getQuoteResponseError;
|
|
|
1175
1175
|
export declare const getGetQuoteUrl: () => string;
|
|
1176
1176
|
/**
|
|
1177
1177
|
* Calculates what a proposed purchase, a change of your subscriptions or their renewal would invoice now, and
|
|
1178
|
-
* what each purchased or changed line renews at
|
|
1179
|
-
* reserved, redeemed or canceled.
|
|
1178
|
+
* what each purchased or changed line renews at. Nothing is saved, reserved or redeemed.
|
|
1180
1179
|
*
|
|
1181
1180
|
* With `billing_account_id`, the quote is for that billing account: its currency, account discounts,
|
|
1182
1181
|
* tax and funds apply, changes and renewals use the account currently paying for each subscription, and an
|
|
@@ -1294,6 +1293,27 @@ export declare const getCreateCancellationUrl: () => string;
|
|
|
1294
1293
|
* @summary Cancel subscriptions
|
|
1295
1294
|
*/
|
|
1296
1295
|
export declare const createCancellation: (cancellationCreate: CancellationCreate, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<createCancellationResponse>;
|
|
1296
|
+
export type previewCancellationResponse200 = {
|
|
1297
|
+
data: CancellationPreview;
|
|
1298
|
+
status: 200;
|
|
1299
|
+
};
|
|
1300
|
+
export type previewCancellationResponseDefault = {
|
|
1301
|
+
data: ErrorResponse;
|
|
1302
|
+
status: Exclude<HTTPStatusCodes, 200>;
|
|
1303
|
+
};
|
|
1304
|
+
export type previewCancellationResponseSuccess = previewCancellationResponse200 & {
|
|
1305
|
+
headers: Headers;
|
|
1306
|
+
};
|
|
1307
|
+
export type previewCancellationResponseError = previewCancellationResponseDefault & {
|
|
1308
|
+
headers: Headers;
|
|
1309
|
+
};
|
|
1310
|
+
export type previewCancellationResponse = previewCancellationResponseSuccess | previewCancellationResponseError;
|
|
1311
|
+
export declare const getPreviewCancellationUrl: () => string;
|
|
1312
|
+
/**
|
|
1313
|
+
* What creating the cancellation now would return, per subscription and in total. Nothing is canceled, ended or refunded. Open to the owner of the subscriptions' current billing account and to members of their project; refused for the same states as creating it.
|
|
1314
|
+
* @summary Preview a cancellation
|
|
1315
|
+
*/
|
|
1316
|
+
export declare const previewCancellation: (cancellationPreviewRequest: CancellationPreviewRequest, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<previewCancellationResponse>;
|
|
1297
1317
|
export type getCancellationResponse200 = {
|
|
1298
1318
|
data: Cancellation;
|
|
1299
1319
|
status: 200;
|
|
@@ -1332,7 +1352,7 @@ export type withdrawCancellationResponseError = withdrawCancellationResponseDefa
|
|
|
1332
1352
|
export type withdrawCancellationResponse = withdrawCancellationResponseSuccess | withdrawCancellationResponseError;
|
|
1333
1353
|
export declare const getWithdrawCancellationUrl: (cancellationId: string) => string;
|
|
1334
1354
|
/**
|
|
1335
|
-
* 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:finance.manage`.
|
|
1355
|
+
* Withdraws the whole cancellation, which stays with status `canceled`, 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:finance.manage`.
|
|
1336
1356
|
* @summary Withdraw a cancellation
|
|
1337
1357
|
*/
|
|
1338
1358
|
export declare const withdrawCancellation: (cancellationId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<withdrawCancellationResponse>;
|
|
@@ -1248,7 +1248,7 @@ export const getCancelSubscriptionUrl = (subscriptionId) => {
|
|
|
1248
1248
|
};
|
|
1249
1249
|
/**
|
|
1250
1250
|
* Requests cancellation on the purchase's agreed terms, with the same rules as creating a cancellation. Give the
|
|
1251
|
-
*
|
|
1251
|
+
* `proration_date` and `refundable_amount` of preview-cancellation for this subscription. Open to the owner of the
|
|
1252
1252
|
* subscription's current billing account and to members of its project with the project permission
|
|
1253
1253
|
* `billing:finance.manage`.
|
|
1254
1254
|
*
|
|
@@ -1290,8 +1290,7 @@ export const getGetQuoteUrl = () => {
|
|
|
1290
1290
|
};
|
|
1291
1291
|
/**
|
|
1292
1292
|
* Calculates what a proposed purchase, a change of your subscriptions or their renewal would invoice now, and
|
|
1293
|
-
* what each purchased or changed line renews at
|
|
1294
|
-
* reserved, redeemed or canceled.
|
|
1293
|
+
* what each purchased or changed line renews at. Nothing is saved, reserved or redeemed.
|
|
1295
1294
|
*
|
|
1296
1295
|
* With `billing_account_id`, the quote is for that billing account: its currency, account discounts,
|
|
1297
1296
|
* tax and funds apply, changes and renewals use the account currently paying for each subscription, and an
|
|
@@ -1458,6 +1457,39 @@ export const createCancellation = async (cancellationCreate, options, fetchFn) =
|
|
|
1458
1457
|
const data = body ? JSON.parse(body) : {};
|
|
1459
1458
|
return { data, status: res.status, headers: res.headers };
|
|
1460
1459
|
};
|
|
1460
|
+
export const getPreviewCancellationUrl = () => {
|
|
1461
|
+
return `https://billing.leaflow.cloud/api/v1/cancellations:preview`;
|
|
1462
|
+
};
|
|
1463
|
+
/**
|
|
1464
|
+
* What creating the cancellation now would return, per subscription and in total. Nothing is canceled, ended or refunded. Open to the owner of the subscriptions' current billing account and to members of their project; refused for the same states as creating it.
|
|
1465
|
+
* @summary Preview a cancellation
|
|
1466
|
+
*/
|
|
1467
|
+
export const previewCancellation = async (cancellationPreviewRequest, options, fetchFn) => {
|
|
1468
|
+
const getHeaders = (h) => {
|
|
1469
|
+
if (!h)
|
|
1470
|
+
return {};
|
|
1471
|
+
if (h instanceof Headers)
|
|
1472
|
+
return Object.fromEntries(h.entries());
|
|
1473
|
+
if (Symbol.iterator in h) {
|
|
1474
|
+
return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1475
|
+
}
|
|
1476
|
+
const headers = {};
|
|
1477
|
+
for (const [name, value] of Object.entries(h)) {
|
|
1478
|
+
if (value !== undefined)
|
|
1479
|
+
headers[name] = value;
|
|
1480
|
+
}
|
|
1481
|
+
return headers;
|
|
1482
|
+
};
|
|
1483
|
+
const res = await (fetchFn ?? fetch)(getPreviewCancellationUrl(), {
|
|
1484
|
+
...options,
|
|
1485
|
+
method: "QUERY",
|
|
1486
|
+
headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
|
|
1487
|
+
body: JSON.stringify(cancellationPreviewRequest),
|
|
1488
|
+
});
|
|
1489
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
1490
|
+
const data = body ? JSON.parse(body) : {};
|
|
1491
|
+
return { data, status: res.status, headers: res.headers };
|
|
1492
|
+
};
|
|
1461
1493
|
export const getGetCancellationUrl = (cancellationId) => {
|
|
1462
1494
|
return `https://billing.leaflow.cloud/api/v1/cancellations/${encodeURIComponent(String(cancellationId))}`;
|
|
1463
1495
|
};
|
|
@@ -1475,16 +1507,16 @@ export const getCancellation = async (cancellationId, options, fetchFn) => {
|
|
|
1475
1507
|
return { data, status: res.status, headers: res.headers };
|
|
1476
1508
|
};
|
|
1477
1509
|
export const getWithdrawCancellationUrl = (cancellationId) => {
|
|
1478
|
-
return `https://billing.leaflow.cloud/api/v1/cancellations/${encodeURIComponent(String(cancellationId))}
|
|
1510
|
+
return `https://billing.leaflow.cloud/api/v1/cancellations/${encodeURIComponent(String(cancellationId))}`;
|
|
1479
1511
|
};
|
|
1480
1512
|
/**
|
|
1481
|
-
* 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:finance.manage`.
|
|
1513
|
+
* Withdraws the whole cancellation, which stays with status `canceled`, 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:finance.manage`.
|
|
1482
1514
|
* @summary Withdraw a cancellation
|
|
1483
1515
|
*/
|
|
1484
1516
|
export const withdrawCancellation = async (cancellationId, options, fetchFn) => {
|
|
1485
1517
|
const res = await (fetchFn ?? fetch)(getWithdrawCancellationUrl(cancellationId), {
|
|
1486
1518
|
...options,
|
|
1487
|
-
method: "
|
|
1519
|
+
method: "DELETE",
|
|
1488
1520
|
});
|
|
1489
1521
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
1490
1522
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Billing API
|
|
5
|
-
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
@@ -290,6 +290,29 @@ export interface QuotedDiscount {
|
|
|
290
290
|
/** `confirmed`: every condition of the discount holds for the billing account. `unverified`: a quote without an account, where conditions that depend on the account, such as a first purchase or a per-account limit, are checked only when a Checkout Session is completed. */
|
|
291
291
|
eligibility: QuotedDiscountEligibility;
|
|
292
292
|
}
|
|
293
|
+
/**
|
|
294
|
+
* A complete calculation in `currency`; nothing is saved or reserved. The request fails if any item cannot be priced. A Checkout Session quote gives what completing the session would invoice.
|
|
295
|
+
*/
|
|
296
|
+
export interface Quote {
|
|
297
|
+
/** Account funds for the quoted purchase. Null without an account. */
|
|
298
|
+
funds: Funds | null;
|
|
299
|
+
subtotal: Money;
|
|
300
|
+
discount_amount: Money;
|
|
301
|
+
tax_amount: Money;
|
|
302
|
+
/** The discount a purchase would get, not yet applied. Null when there is none, and for renewals. */
|
|
303
|
+
discount: QuotedDiscount | null;
|
|
304
|
+
items: QuoteItem[];
|
|
305
|
+
renewals: QuoteRenewalResult[];
|
|
306
|
+
total: Money;
|
|
307
|
+
currency: string;
|
|
308
|
+
/**
|
|
309
|
+
* Immediate changes only; null otherwise. The instant the change is priced from; pass it when confirming the Checkout Session so it is priced from the same instant.
|
|
310
|
+
* @nullable
|
|
311
|
+
*/
|
|
312
|
+
proration_date: string | null;
|
|
313
|
+
/** `complete`: tax is calculated for the billing account's invoice contact, or for `address` without an account. `requires_location_inputs`: a quote without an account or `address`, which leaves out tax that would be added; tax already contained in a price is included. */
|
|
314
|
+
tax_status: QuoteTaxStatus;
|
|
315
|
+
}
|
|
293
316
|
/**
|
|
294
317
|
* When subscriptions end. immediate ends them now and refunds the unused value under their refund terms; period_end
|
|
295
318
|
* ends them at the end of their paid period. The cancellation terms fixed when a subscription was bought decide which
|
|
@@ -302,6 +325,23 @@ export declare const CancellationMode: {
|
|
|
302
325
|
readonly immediate: "immediate";
|
|
303
326
|
readonly period_end: "period_end";
|
|
304
327
|
};
|
|
328
|
+
/**
|
|
329
|
+
* What ending these subscriptions together would return, for one mode; preview `immediate` and `period_end` separately to compare. Refused with 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` when a subscription is already being canceled (`meta.cancellation_id`), is being reclaimed (`meta.reason` `reclaim_requested`) or has a paid change waiting to switch (`meta.order_id`).
|
|
330
|
+
*/
|
|
331
|
+
export interface CancellationPreviewRequest {
|
|
332
|
+
/**
|
|
333
|
+
* A billing account you own that currently pays for every subscription.
|
|
334
|
+
* @minimum 1
|
|
335
|
+
*/
|
|
336
|
+
billing_account_id: number;
|
|
337
|
+
/**
|
|
338
|
+
* The subscriptions to end together, all of one service, including every subscription released with a resource.
|
|
339
|
+
* @minItems 1
|
|
340
|
+
* @maxItems 50
|
|
341
|
+
*/
|
|
342
|
+
subscription_ids: string[];
|
|
343
|
+
mode: CancellationMode;
|
|
344
|
+
}
|
|
305
345
|
/**
|
|
306
346
|
* Which object this is, together with what a person currently calls it.
|
|
307
347
|
*
|
|
@@ -318,9 +358,9 @@ export interface NamedIdentity {
|
|
|
318
358
|
name: string;
|
|
319
359
|
}
|
|
320
360
|
/**
|
|
321
|
-
* One subscription of the
|
|
361
|
+
* One subscription of the previewed cancellation.
|
|
322
362
|
*/
|
|
323
|
-
export interface
|
|
363
|
+
export interface CancellationPreviewItem {
|
|
324
364
|
subscription_id: string;
|
|
325
365
|
plan_id: string;
|
|
326
366
|
plan_name: string;
|
|
@@ -339,8 +379,8 @@ export interface QuoteCancellationItem {
|
|
|
339
379
|
forfeited_amount: Money;
|
|
340
380
|
}
|
|
341
381
|
/**
|
|
342
|
-
* What the cancellation would return, per subscription and in total, as of
|
|
343
|
-
* `
|
|
382
|
+
* What the cancellation would return, per subscription and in total, as of now. Give `proration_date` and
|
|
383
|
+
* `refundable_amount` when creating the cancellation.
|
|
344
384
|
*
|
|
345
385
|
* - `unused_amount`: before tax, the amount paid for the current periods in proportion to the time remaining.
|
|
346
386
|
* - `short_rate_surcharge_amount`: before tax, the part of `forfeited_amount` due to the short rate of the
|
|
@@ -354,10 +394,13 @@ export interface QuoteCancellationItem {
|
|
|
354
394
|
*
|
|
355
395
|
* Metered and one-time subscriptions show zero; their usage until release is charged as usual.
|
|
356
396
|
*/
|
|
357
|
-
export interface
|
|
397
|
+
export interface CancellationPreview {
|
|
358
398
|
mode: CancellationMode;
|
|
359
399
|
/** For `period_end`, when release begins, the end of the paid terms. */
|
|
360
400
|
scheduled_at?: string;
|
|
401
|
+
/** For `immediate`, the second the refund is computed as of. Give it when creating the cancellation. */
|
|
402
|
+
proration_date?: string;
|
|
403
|
+
currency: string;
|
|
361
404
|
unused_amount: Money;
|
|
362
405
|
short_rate_surcharge_amount: Money;
|
|
363
406
|
refundable_amount: Money;
|
|
@@ -365,60 +408,19 @@ export interface QuoteCancellationResult {
|
|
|
365
408
|
credit_amount: Money;
|
|
366
409
|
tax_amount: Money;
|
|
367
410
|
forfeited_amount: Money;
|
|
368
|
-
items:
|
|
369
|
-
}
|
|
370
|
-
/**
|
|
371
|
-
* A complete calculation in `currency`; nothing is saved or reserved. The request fails if any item cannot be priced. A Checkout Session quote gives what completing the session would invoice.
|
|
372
|
-
*/
|
|
373
|
-
export interface Quote {
|
|
374
|
-
/** Account funds for the quoted purchase. Null without an account, and for a cancellation. */
|
|
375
|
-
funds: Funds | null;
|
|
376
|
-
subtotal: Money;
|
|
377
|
-
discount_amount: Money;
|
|
378
|
-
tax_amount: Money;
|
|
379
|
-
/** The discount a purchase would get, not yet applied. Null when there is none, and for renewals and a cancellation. */
|
|
380
|
-
discount: QuotedDiscount | null;
|
|
381
|
-
items: QuoteItem[];
|
|
382
|
-
renewals: QuoteRenewalResult[];
|
|
383
|
-
/** What the cancellation would return. Null unless the request quotes a cancellation. */
|
|
384
|
-
cancellation: QuoteCancellationResult | null;
|
|
385
|
-
total: Money;
|
|
386
|
-
currency: string;
|
|
387
|
-
/**
|
|
388
|
-
* Immediate changes and immediate cancellations only; null otherwise. The instant the change or the refund is priced from; pass it when confirming the Checkout Session or creating the cancellation so it is priced from the same instant.
|
|
389
|
-
* @nullable
|
|
390
|
-
*/
|
|
391
|
-
proration_date: string | null;
|
|
392
|
-
/** `complete`: tax is calculated for the billing account's invoice contact, or for `address` without an account. `requires_location_inputs`: a quote without an account or `address`, which leaves out tax that would be added; tax already contained in a price is included. */
|
|
393
|
-
tax_status: QuoteTaxStatus;
|
|
394
|
-
}
|
|
395
|
-
/**
|
|
396
|
-
* Preview ending these subscriptions together in one mode; quote `immediate` and `period_end` separately to
|
|
397
|
-
* compare. Each must currently be paid by `billing_account_id` and be yours to read, as the owner of that account
|
|
398
|
-
* or a member of the subscriptions' project. Refused as creating the cancellation would be, including 409
|
|
399
|
-
* `BILLING_SUBSCRIPTION_OPERATION_PENDING` when a subscription is already being canceled (`meta.cancellation_id`),
|
|
400
|
-
* is being reclaimed (`meta.reason` `reclaim_requested`) or has a paid change waiting to switch (`meta.order_id`).
|
|
401
|
-
*/
|
|
402
|
-
export interface QuoteCancellation {
|
|
403
|
-
/**
|
|
404
|
-
* The subscriptions to end together, all of one service, including every subscription released with a resource.
|
|
405
|
-
* @minItems 1
|
|
406
|
-
* @maxItems 50
|
|
407
|
-
*/
|
|
408
|
-
subscription_ids: string[];
|
|
409
|
-
mode: CancellationMode;
|
|
411
|
+
items: CancellationPreviewItem[];
|
|
410
412
|
}
|
|
411
413
|
export interface CancellationCreate {
|
|
412
414
|
/**
|
|
413
|
-
* As in the
|
|
415
|
+
* As in the preview.
|
|
414
416
|
* @minItems 1
|
|
415
417
|
* @maxItems 50
|
|
416
418
|
*/
|
|
417
419
|
subscription_ids: string[];
|
|
418
420
|
mode: CancellationMode;
|
|
419
|
-
/** For `immediate`, the
|
|
421
|
+
/** For `immediate`, the preview's `proration_date`: a whole second, not in the future and at most ten minutes old; the refund is computed as of it. Now when omitted. */
|
|
420
422
|
proration_date?: string;
|
|
421
|
-
/** The
|
|
423
|
+
/** The preview's `refundable_amount`; the cancellation is refused when the refund differs. */
|
|
422
424
|
expected_refundable_amount: Money & string;
|
|
423
425
|
/**
|
|
424
426
|
* A note from the account holder, kept with the cancellation.
|
|
@@ -2846,11 +2848,11 @@ export interface QuoteAddress {
|
|
|
2846
2848
|
state?: string;
|
|
2847
2849
|
}
|
|
2848
2850
|
/**
|
|
2849
|
-
* Quote proposed items, changes
|
|
2851
|
+
* Quote proposed items, changes or renewals: exactly one of them. Give exactly one of `billing_account_id` and `currency`; changes and renewals need the account. Promotion codes apply to proposed items and changes. An invalid combination fails with `BILLING_PURCHASE_INVALID` and the field.
|
|
2850
2852
|
*/
|
|
2851
2853
|
export interface QuoteRequest {
|
|
2852
2854
|
/**
|
|
2853
|
-
* The billing account to price for; it must be yours or currently pay for a project you are a member of, and an access token is required. Renewals
|
|
2855
|
+
* The billing account to price for; it must be yours or currently pay for a project you are a member of, and an access token is required. Renewals must currently be paid by it.
|
|
2854
2856
|
* @minimum 1
|
|
2855
2857
|
*/
|
|
2856
2858
|
billing_account_id?: number;
|
|
@@ -2878,7 +2880,6 @@ export interface QuoteRequest {
|
|
|
2878
2880
|
* @maxItems 100
|
|
2879
2881
|
*/
|
|
2880
2882
|
changes?: QuoteChangeInput[];
|
|
2881
|
-
cancellation?: QuoteCancellation;
|
|
2882
2883
|
/** When the changes take effect; defaults to `immediate`. `immediate` prices the rest of the paid period from `proration_date`, charging an upgrade the difference and showing what a downgrade refunds. `period_end` prices the first period at the new terms, which replaces the renewal when the paid period ends. */
|
|
2883
2884
|
change_effective?: QuoteRequestChangeEffective;
|
|
2884
2885
|
/** Only with `currency`. Where the customer is, to include the tax that would be added there for a customer who is not tax exempt; `tax_status` is then `complete`. Refused with `billing_account_id`, whose invoice contact decides tax. */
|
|
@@ -3202,9 +3203,9 @@ export interface PriceSearch {
|
|
|
3202
3203
|
}
|
|
3203
3204
|
export interface CancelSubscriptionRequest {
|
|
3204
3205
|
mode: CancellationMode;
|
|
3205
|
-
/** For immediate cancellation, the
|
|
3206
|
+
/** For immediate cancellation, the preview's `proration_date`, the whole second the refund is computed as of. Now when omitted. */
|
|
3206
3207
|
proration_date?: string;
|
|
3207
|
-
/** The
|
|
3208
|
+
/** The preview's `refundable_amount`, including an explicit zero. */
|
|
3208
3209
|
expected_refundable_amount: Money & string;
|
|
3209
3210
|
/** @maxLength 1024 */
|
|
3210
3211
|
reason?: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Billing API
|
|
5
|
-
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
@@ -618,7 +618,7 @@ export declare const DeleteSubscriptionParams: zod.ZodObject<{
|
|
|
618
618
|
}, zod.z.core.$strict>;
|
|
619
619
|
/**
|
|
620
620
|
* Requests cancellation on the purchase's agreed terms, with the same rules as creating a cancellation. Give the
|
|
621
|
-
*
|
|
621
|
+
* `proration_date` and `refundable_amount` of preview-cancellation for this subscription. Open to the owner of the
|
|
622
622
|
* subscription's current billing account and to members of its project with the project permission
|
|
623
623
|
* `billing:finance.manage`.
|
|
624
624
|
*
|
|
@@ -719,7 +719,7 @@ export declare const GetCancellationParams: zod.ZodObject<{
|
|
|
719
719
|
cancellationId: zod.ZodUUID;
|
|
720
720
|
}, zod.z.core.$strict>;
|
|
721
721
|
/**
|
|
722
|
-
* 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:finance.manage`.
|
|
722
|
+
* Withdraws the whole cancellation, which stays with status `canceled`, 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:finance.manage`.
|
|
723
723
|
* @summary Withdraw a cancellation
|
|
724
724
|
*/
|
|
725
725
|
export declare const WithdrawCancellationParams: zod.ZodObject<{
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Billing API
|
|
5
|
-
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
@@ -821,7 +821,7 @@ export const DeleteSubscriptionParams = zod.strictObject({
|
|
|
821
821
|
});
|
|
822
822
|
/**
|
|
823
823
|
* Requests cancellation on the purchase's agreed terms, with the same rules as creating a cancellation. Give the
|
|
824
|
-
*
|
|
824
|
+
* `proration_date` and `refundable_amount` of preview-cancellation for this subscription. Open to the owner of the
|
|
825
825
|
* subscription's current billing account and to members of its project with the project permission
|
|
826
826
|
* `billing:finance.manage`.
|
|
827
827
|
*
|
|
@@ -921,7 +921,7 @@ export const GetCancellationParams = zod.strictObject({
|
|
|
921
921
|
cancellationId: zod.uuid(),
|
|
922
922
|
});
|
|
923
923
|
/**
|
|
924
|
-
* 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:finance.manage`.
|
|
924
|
+
* Withdraws the whole cancellation, which stays with status `canceled`, 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:finance.manage`.
|
|
925
925
|
* @summary Withdraw a cancellation
|
|
926
926
|
*/
|
|
927
927
|
export const WithdrawCancellationParams = zod.strictObject({
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Billing API
|
|
5
|
-
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Billing API
|
|
5
|
-
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Billing API
|
|
5
|
-
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Billing API
|
|
5
|
-
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Billing API
|
|
5
|
-
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Billing API
|
|
5
|
-
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Billing API
|
|
5
|
-
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Billing API
|
|
5
|
-
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Billing API
|
|
5
|
-
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Billing API
|
|
5
|
-
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Billing API
|
|
5
|
-
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Billing API
|
|
5
|
-
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Billing API
|
|
5
|
-
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Billing API
|
|
5
|
-
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|