@leaflow/sdk 0.0.0-dev.367.g5d66ccc → 0.0.0-dev.371.gc7cf9b8
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/account/v1/generated/functions.d.ts +76 -2
- package/dist/account/v1/generated/functions.js +77 -1
- package/dist/account/v1/generated/models.d.ts +88 -43
- package/dist/account/v1/generated/models.js +19 -9
- package/dist/account/v1/generated/schemas.zod.d.ts +15 -1
- package/dist/account/v1/generated/schemas.zod.js +14 -1
- package/dist/account/v1/generated/validators/accountDeletionObjectionResource.zod.d.ts +32 -0
- package/dist/account/v1/generated/validators/accountDeletionObjectionResource.zod.js +32 -0
- package/dist/account/v1/generated/validators/accountDeletionResource.zod.d.ts +69 -0
- package/dist/account/v1/generated/validators/accountDeletionResource.zod.js +53 -0
- package/dist/account/v1/generated/validators/accountDeletionState.zod.d.ts +34 -0
- package/dist/account/v1/generated/validators/accountDeletionState.zod.js +29 -0
- package/dist/account/v1/generated/validators/requestAccountDeletionRequestBody.zod.d.ts +31 -0
- package/dist/account/v1/generated/validators/requestAccountDeletionRequestBody.zod.js +31 -0
- package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.d.ts +1 -1
- package/dist/assistant/v1/generated/validators/platformResource.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/models.d.ts +29 -0
- package/dist/billing/type/order/v1/generated/models.js +9 -0
- package/dist/billing/type/order/v1/generated/validators/accountDeletionObjection.zod.d.ts +19 -0
- package/dist/billing/type/order/v1/generated/validators/accountDeletionObjection.zod.js +19 -0
- package/dist/billing/type/order/v1/generated/validators/accountDeletionReadiness.zod.d.ts +45 -0
- package/dist/billing/type/order/v1/generated/validators/accountDeletionReadiness.zod.js +14 -0
- package/dist/billing/type/order/v1/generated/validators/accountDeletionReadinessItem.zod.d.ts +43 -0
- package/dist/billing/type/order/v1/generated/validators/accountDeletionReadinessItem.zod.js +19 -0
- package/dist/billing/type/order/v1/generated/validators/cancellation.zod.d.ts +2 -2
- package/dist/billing/type/order/v1/generated/validators/cancellationItem.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/cancellationList.zod.d.ts +2 -2
- package/dist/billing/type/order/v1/generated/validators/contact.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/contactList.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/discount.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/discountList.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/featureGrant.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/invoice.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/invoiceList.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/subscription.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/subscriptionCancellation.zod.d.ts +1 -1
- package/dist/billing/type/order/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/functions.d.ts +34 -8
- package/dist/billing/v1/generated/functions.js +28 -7
- package/dist/billing/v1/generated/models.d.ts +29 -0
- package/dist/billing/v1/generated/models.js +9 -0
- package/dist/billing/v1/generated/schemas.zod.d.ts +9 -9
- package/dist/billing/v1/generated/schemas.zod.js +7 -7
- package/dist/billing/v1/generated/validators/accountDeletionObjection.zod.d.ts +19 -0
- package/dist/billing/v1/generated/validators/accountDeletionObjection.zod.js +19 -0
- package/dist/billing/v1/generated/validators/accountDeletionReadiness.zod.d.ts +45 -0
- package/dist/billing/v1/generated/validators/accountDeletionReadiness.zod.js +14 -0
- package/dist/billing/v1/generated/validators/accountDeletionReadinessItem.zod.d.ts +43 -0
- package/dist/billing/v1/generated/validators/accountDeletionReadinessItem.zod.js +19 -0
- package/dist/billing/v1/generated/validators/cancellation.zod.d.ts +2 -2
- package/dist/billing/v1/generated/validators/cancellationItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationList.zod.d.ts +2 -2
- package/dist/billing/v1/generated/validators/contact.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/contactList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/discount.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/discountList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/featureGrant.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoice.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoiceList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCancellationsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/subscription.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/subscriptionCancellation.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/models.d.ts +29 -0
- package/dist/canopy/v1/generated/models.js +9 -0
- package/dist/canopy/v1/generated/validators/accountDeletionObjection.zod.d.ts +52 -0
- package/dist/canopy/v1/generated/validators/accountDeletionObjection.zod.js +52 -0
- package/dist/canopy/v1/generated/validators/accountDeletionReadiness.zod.d.ts +78 -0
- package/dist/canopy/v1/generated/validators/accountDeletionReadiness.zod.js +47 -0
- package/dist/canopy/v1/generated/validators/accountDeletionReadinessItem.zod.d.ts +76 -0
- package/dist/canopy/v1/generated/validators/accountDeletionReadinessItem.zod.js +52 -0
- package/dist/canopy/v1/generated/validators/cancellation.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/cancellationItem.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/validators/cancellationList.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/contact.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/validators/contactList.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/validators/discount.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/validators/discountList.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/validators/featureGrant.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/validators/invoice.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/validators/invoiceList.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/validators/subscription.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/validators/subscriptionCancellation.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
- package/dist/membership/v1/generated/functions.d.ts +3 -3
- package/dist/membership/v1/generated/functions.js +3 -3
- package/dist/membership/v1/generated/models.d.ts +29 -0
- package/dist/membership/v1/generated/models.js +9 -0
- package/dist/membership/v1/generated/schemas.zod.d.ts +3 -3
- package/dist/membership/v1/generated/schemas.zod.js +3 -3
- package/dist/membership/v1/generated/validators/accountDeletionObjection.zod.d.ts +19 -0
- package/dist/membership/v1/generated/validators/accountDeletionObjection.zod.js +19 -0
- package/dist/membership/v1/generated/validators/accountDeletionReadiness.zod.d.ts +45 -0
- package/dist/membership/v1/generated/validators/accountDeletionReadiness.zod.js +14 -0
- package/dist/membership/v1/generated/validators/accountDeletionReadinessItem.zod.d.ts +43 -0
- package/dist/membership/v1/generated/validators/accountDeletionReadinessItem.zod.js +19 -0
- package/dist/membership/v1/generated/validators/cancellation.zod.d.ts +2 -2
- package/dist/membership/v1/generated/validators/cancellationItem.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/cancellationList.zod.d.ts +2 -2
- package/dist/membership/v1/generated/validators/contact.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/contactList.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/discount.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/discountList.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/featureGrant.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/invoice.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/invoiceList.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/subscription.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/subscriptionCancellation.zod.d.ts +1 -1
- package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
- package/dist/routes.d.ts +32 -0
- package/dist/routes.js +36 -0
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Products, prices, orders, subscriptions and account billing. Financial operations require an account access token and billing-account authorization. Public catalogue operations declare no security requirement.
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
|
-
import type { AccountBalance, ActiveResourceList, AllowanceList, AutoRenewSet, BillingAccount, BillingAccountCreate, BillingAccountList, BillingAccountUpdate, CancelSubscriptionRequest, Cancellation, CancellationCreate, CancellationList, Contact, ContactCreate, ContactList, ContactUpdate, CreditGrantList, CreditNote, CreditNoteItemList, CreditNoteList, CurrencyList, DiscountList, EntitlementList, Error, ErrorResponse, FeatureGrantList, GetPlanHeaders, GetPriceHeaders, GetProductHeaders, GetStatementUsageParams, Invoice, InvoiceItemList, InvoiceList, ListAccountDiscountsParams, ListActiveResourcesParams, ListAllowancesParams, ListBillingAccountsParams, ListCancellationsParams, ListContactsParams, ListCreditGrantsParams, ListCreditNoteItemsParams, ListCreditNotesParams, ListCurrenciesParams, ListEntitlementsParams, ListFeatureGrantsParams, ListInvoiceItemsParams, ListInvoicesParams, ListMonthlyStatementsParams, ListOrderItemsParams, ListOrdersParams, ListPaymentMethodsParams, ListPaymentOptionsParams, ListPlansHeaders, ListPlansParams, ListPricesByPlanHeaders, ListPricesByPlanParams, ListPricesHeaders, ListPricesParams, ListProductsHeaders, ListProductsParams, ListProjectAssignmentsParams, ListRatesHeaders, ListRatesParams, ListRefundsParams, ListRenewalPricesParams, ListSpendParams, ListStatementsParams, ListSubscriptionsParams, ListTopUpsParams, ListTransactionsParams, ListUsageChargesParams, ListWithdrawalItemsParams, ListWithdrawalsParams, MonthlyStatementList, NotModifiedResponse, Order, OrderCancel, OrderItemList, OrderList, PayInvoiceRequest, PayTogetherRequest, PaymentMethod, PaymentMethodList, PaymentMethodSetup, PaymentMethodSetupResult, PaymentOptionList, PaymentPreview, PaymentResult, Plan, PlanList, PreviewInvoicePaymentParams, Price, PriceList, Product, ProductID, ProductList, ProjectAssignment, ProjectAssignmentList, Quote, QuoteRequest, RateList, RefundList, RenewRequest, RenewalOrderRequest, RenewalPriceList, SetProjectAssignmentRequest, SpendRowList, Statement, StatementList, StatementSummary, Subscription, SubscriptionList, TopUp, TopUpCreate, TopUpList, TransactionList, UsageChargeList, 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, Contact, ContactCreate, ContactList, ContactUpdate, CreditGrantList, CreditNote, CreditNoteItemList, CreditNoteList, CurrencyList, DiscountList, EntitlementList, Error, ErrorResponse, FeatureGrantList, GetPlanHeaders, GetPriceHeaders, GetProductHeaders, GetStatementUsageParams, Invoice, InvoiceItemList, InvoiceList, ListAccountDiscountsParams, ListActiveResourcesParams, ListAllowancesParams, ListBillingAccountsParams, ListCancellationsParams, ListContactsParams, ListCreditGrantsParams, ListCreditNoteItemsParams, ListCreditNotesParams, ListCurrenciesParams, ListEntitlementsParams, ListFeatureGrantsParams, ListInvoiceItemsParams, ListInvoicesParams, ListMonthlyStatementsParams, ListOrderItemsParams, ListOrdersParams, ListPaymentMethodsParams, ListPaymentOptionsParams, ListPlansHeaders, ListPlansParams, ListPricesByPlanHeaders, ListPricesByPlanParams, ListPricesHeaders, ListPricesParams, ListProductsHeaders, ListProductsParams, ListProjectAssignmentsParams, ListRatesHeaders, ListRatesParams, ListRefundsParams, ListRenewalPricesParams, ListSpendParams, ListStatementsParams, ListSubscriptionsParams, ListTopUpsParams, ListTransactionsParams, ListUsageChargesParams, ListWithdrawalItemsParams, ListWithdrawalsParams, MonthlyStatementList, NotModifiedResponse, Order, OrderCancel, OrderItemList, OrderList, PayInvoiceRequest, PayTogetherRequest, PaymentMethod, PaymentMethodList, PaymentMethodSetup, PaymentMethodSetupResult, PaymentOptionList, PaymentPreview, PaymentResult, Plan, PlanList, PreviewInvoicePaymentParams, Price, PriceList, Product, ProductID, ProductList, ProjectAssignment, ProjectAssignmentList, Quote, QuoteRequest, RateList, RefundList, RenewRequest, RenewalOrderRequest, RenewalPriceList, SetProjectAssignmentRequest, SpendRowList, Statement, StatementList, StatementSummary, Subscription, SubscriptionList, TopUp, TopUpCreate, TopUpList, TransactionList, UsageChargeList, 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;
|
|
@@ -416,6 +416,32 @@ export declare const getListPaymentOptionsUrl: (accountId: number, params?: List
|
|
|
416
416
|
* @summary List payment options
|
|
417
417
|
*/
|
|
418
418
|
export declare const listPaymentOptions: (accountId: number, params?: ListPaymentOptionsParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listPaymentOptionsResponse>;
|
|
419
|
+
export type getAccountDeletionReadinessResponse200 = {
|
|
420
|
+
data: AccountDeletionReadiness;
|
|
421
|
+
status: 200;
|
|
422
|
+
};
|
|
423
|
+
export type getAccountDeletionReadinessResponseDefault = {
|
|
424
|
+
data: ErrorResponse;
|
|
425
|
+
status: Exclude<HTTPStatusCodes, 200>;
|
|
426
|
+
};
|
|
427
|
+
export type getAccountDeletionReadinessResponseSuccess = getAccountDeletionReadinessResponse200 & {
|
|
428
|
+
headers: Headers;
|
|
429
|
+
};
|
|
430
|
+
export type getAccountDeletionReadinessResponseError = getAccountDeletionReadinessResponseDefault & {
|
|
431
|
+
headers: Headers;
|
|
432
|
+
};
|
|
433
|
+
export type getAccountDeletionReadinessResponse = getAccountDeletionReadinessResponseSuccess | getAccountDeletionReadinessResponseError;
|
|
434
|
+
export declare const getGetAccountDeletionReadinessUrl: () => string;
|
|
435
|
+
/**
|
|
436
|
+
* Lists every billing account you own that is not closed, with what stops each from closing. Deleting your Leaflow
|
|
437
|
+
* account closes all of them and is refused while any lists an objection. Balance and credits left on them are
|
|
438
|
+
* forfeited when they close; the accounts and their records are kept, closed.
|
|
439
|
+
*
|
|
440
|
+
* A preview that holds nothing: the same check runs again when you request deletion and once more when the grace
|
|
441
|
+
* period ends.
|
|
442
|
+
* @summary Check billing accounts before deleting your Leaflow account
|
|
443
|
+
*/
|
|
444
|
+
export declare const getAccountDeletionReadiness: (options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getAccountDeletionReadinessResponse>;
|
|
419
445
|
export type listProjectAssignmentsResponse200 = {
|
|
420
446
|
data: ProjectAssignmentList;
|
|
421
447
|
status: 200;
|
|
@@ -475,13 +501,13 @@ export type setProjectAssignmentResponseError = setProjectAssignmentResponseDefa
|
|
|
475
501
|
export type setProjectAssignmentResponse = setProjectAssignmentResponseSuccess | setProjectAssignmentResponseError;
|
|
476
502
|
export declare const getSetProjectAssignmentUrl: (projectId: string) => string;
|
|
477
503
|
/**
|
|
478
|
-
* Links the project to
|
|
479
|
-
*
|
|
480
|
-
*
|
|
481
|
-
*
|
|
504
|
+
* Links the project to a billing account. A project without one is linked directly. Moving it to another
|
|
505
|
+
* account has the same requirements as unlinking: you own both accounts, the project has no metered resources,
|
|
506
|
+
* no subscriptions that have not ended and no orders in progress, and the current account has no unpaid
|
|
507
|
+
* invoices. Nothing moves with the project; charges already incurred stay with the account linked when they
|
|
508
|
+
* occurred.
|
|
482
509
|
*
|
|
483
|
-
* Refused once the project no longer accepts purchases because it is being deleted
|
|
484
|
-
* an in-progress order of the project uses a currency other than the new account's.
|
|
510
|
+
* Refused once the project no longer accepts purchases because it is being deleted.
|
|
485
511
|
* @summary Set project assignment
|
|
486
512
|
*/
|
|
487
513
|
export declare const setProjectAssignment: (projectId: string, setProjectAssignmentRequest: SetProjectAssignmentRequest, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<setProjectAssignmentResponse>;
|
|
@@ -502,7 +528,7 @@ export type unlinkProjectBillingAccountResponseError = unlinkProjectBillingAccou
|
|
|
502
528
|
export type unlinkProjectBillingAccountResponse = unlinkProjectBillingAccountResponseSuccess | unlinkProjectBillingAccountResponseError;
|
|
503
529
|
export declare const getUnlinkProjectBillingAccountUrl: (projectId: string) => string;
|
|
504
530
|
/**
|
|
505
|
-
* Ends the project's current assignment; the assignment history is kept. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes; orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual
|
|
531
|
+
* Ends the project's current assignment; the assignment history is kept. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes, and the billing account has no unpaid invoices; invoices of orders awaiting payment do not count. Orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual. The project cannot make purchases until a billing account is linked again.
|
|
506
532
|
* @summary Unlink project billing account
|
|
507
533
|
*/
|
|
508
534
|
export declare const unlinkProjectBillingAccount: (projectId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<unlinkProjectBillingAccountResponse>;
|
|
@@ -463,6 +463,27 @@ export const listPaymentOptions = async (accountId, params, options, fetchFn) =>
|
|
|
463
463
|
const data = body ? JSON.parse(body) : {};
|
|
464
464
|
return { data, status: res.status, headers: res.headers };
|
|
465
465
|
};
|
|
466
|
+
export const getGetAccountDeletionReadinessUrl = () => {
|
|
467
|
+
return `https://billing.leaflow.cloud/api/v1/account-deletion/readiness`;
|
|
468
|
+
};
|
|
469
|
+
/**
|
|
470
|
+
* Lists every billing account you own that is not closed, with what stops each from closing. Deleting your Leaflow
|
|
471
|
+
* account closes all of them and is refused while any lists an objection. Balance and credits left on them are
|
|
472
|
+
* forfeited when they close; the accounts and their records are kept, closed.
|
|
473
|
+
*
|
|
474
|
+
* A preview that holds nothing: the same check runs again when you request deletion and once more when the grace
|
|
475
|
+
* period ends.
|
|
476
|
+
* @summary Check billing accounts before deleting your Leaflow account
|
|
477
|
+
*/
|
|
478
|
+
export const getAccountDeletionReadiness = async (options, fetchFn) => {
|
|
479
|
+
const res = await (fetchFn ?? fetch)(getGetAccountDeletionReadinessUrl(), {
|
|
480
|
+
...options,
|
|
481
|
+
method: "GET",
|
|
482
|
+
});
|
|
483
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
484
|
+
const data = body ? JSON.parse(body) : {};
|
|
485
|
+
return { data, status: res.status, headers: res.headers };
|
|
486
|
+
};
|
|
466
487
|
export const getListProjectAssignmentsUrl = (params) => {
|
|
467
488
|
const normalizedParams = new URLSearchParams();
|
|
468
489
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -508,13 +529,13 @@ export const getSetProjectAssignmentUrl = (projectId) => {
|
|
|
508
529
|
return `https://billing.leaflow.cloud/api/v1/assignments/${encodeURIComponent(String(projectId))}`;
|
|
509
530
|
};
|
|
510
531
|
/**
|
|
511
|
-
* Links the project to
|
|
512
|
-
*
|
|
513
|
-
*
|
|
514
|
-
*
|
|
532
|
+
* Links the project to a billing account. A project without one is linked directly. Moving it to another
|
|
533
|
+
* account has the same requirements as unlinking: you own both accounts, the project has no metered resources,
|
|
534
|
+
* no subscriptions that have not ended and no orders in progress, and the current account has no unpaid
|
|
535
|
+
* invoices. Nothing moves with the project; charges already incurred stay with the account linked when they
|
|
536
|
+
* occurred.
|
|
515
537
|
*
|
|
516
|
-
* Refused once the project no longer accepts purchases because it is being deleted
|
|
517
|
-
* an in-progress order of the project uses a currency other than the new account's.
|
|
538
|
+
* Refused once the project no longer accepts purchases because it is being deleted.
|
|
518
539
|
* @summary Set project assignment
|
|
519
540
|
*/
|
|
520
541
|
export const setProjectAssignment = async (projectId, setProjectAssignmentRequest, options, fetchFn) => {
|
|
@@ -547,7 +568,7 @@ export const getUnlinkProjectBillingAccountUrl = (projectId) => {
|
|
|
547
568
|
return `https://billing.leaflow.cloud/api/v1/assignments/${encodeURIComponent(String(projectId))}`;
|
|
548
569
|
};
|
|
549
570
|
/**
|
|
550
|
-
* Ends the project's current assignment; the assignment history is kept. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes; orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual
|
|
571
|
+
* Ends the project's current assignment; the assignment history is kept. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes, and the billing account has no unpaid invoices; invoices of orders awaiting payment do not count. Orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual. The project cannot make purchases until a billing account is linked again.
|
|
551
572
|
* @summary Unlink project billing account
|
|
552
573
|
*/
|
|
553
574
|
export const unlinkProjectBillingAccount = async (projectId, options, fetchFn) => {
|
|
@@ -691,6 +691,35 @@ export interface AccountBalance {
|
|
|
691
691
|
due: Money;
|
|
692
692
|
pending_returns_amount: Money;
|
|
693
693
|
}
|
|
694
|
+
/**
|
|
695
|
+
* `ARREARS`: the balance is negative. `PROJECTS_ASSIGNED`: the account still pays for a project, yours or anyone
|
|
696
|
+
* else's. `ACTIVE_SUBSCRIPTION`: a subscription it bought has not ended. `OPEN_ORDER`: an order is not finished.
|
|
697
|
+
* `UNPAID_INVOICE`: an issued invoice is not settled. `UNBILLED_USAGE`: usage has not been invoiced yet; it is
|
|
698
|
+
* invoiced in the next billing run. `PENDING_TRANSACTION`: a top-up, refund or withdrawal is still pending.
|
|
699
|
+
*/
|
|
700
|
+
export type AccountDeletionObjection = (typeof AccountDeletionObjection)[keyof typeof AccountDeletionObjection];
|
|
701
|
+
export declare const AccountDeletionObjection: {
|
|
702
|
+
readonly ARREARS: "ARREARS";
|
|
703
|
+
readonly PROJECTS_ASSIGNED: "PROJECTS_ASSIGNED";
|
|
704
|
+
readonly ACTIVE_SUBSCRIPTION: "ACTIVE_SUBSCRIPTION";
|
|
705
|
+
readonly OPEN_ORDER: "OPEN_ORDER";
|
|
706
|
+
readonly UNPAID_INVOICE: "UNPAID_INVOICE";
|
|
707
|
+
readonly UNBILLED_USAGE: "UNBILLED_USAGE";
|
|
708
|
+
readonly PENDING_TRANSACTION: "PENDING_TRANSACTION";
|
|
709
|
+
};
|
|
710
|
+
export interface AccountDeletionReadinessItem {
|
|
711
|
+
account: BillingAccount;
|
|
712
|
+
/** Topped-up funds, in the account's currency, forfeited when it closes. Negative means arrears. */
|
|
713
|
+
balance: Money;
|
|
714
|
+
/** Remaining credit, in the account's currency, forfeited when it closes. */
|
|
715
|
+
credits: Money;
|
|
716
|
+
/** What stops this account from closing; empty when it can close. */
|
|
717
|
+
objections: AccountDeletionObjection[];
|
|
718
|
+
}
|
|
719
|
+
export interface AccountDeletionReadiness {
|
|
720
|
+
/** Every billing account you own that is not closed; empty when you own none. */
|
|
721
|
+
accounts: AccountDeletionReadinessItem[];
|
|
722
|
+
}
|
|
694
723
|
/**
|
|
695
724
|
* A project's assignment to a billing account from effective_from until effective_to; an open assignment has no end.
|
|
696
725
|
*/
|
|
@@ -87,6 +87,15 @@ export const PurchaseOperation = {
|
|
|
87
87
|
renew: "renew",
|
|
88
88
|
modify: "modify",
|
|
89
89
|
};
|
|
90
|
+
export const AccountDeletionObjection = {
|
|
91
|
+
ARREARS: "ARREARS",
|
|
92
|
+
PROJECTS_ASSIGNED: "PROJECTS_ASSIGNED",
|
|
93
|
+
ACTIVE_SUBSCRIPTION: "ACTIVE_SUBSCRIPTION",
|
|
94
|
+
OPEN_ORDER: "OPEN_ORDER",
|
|
95
|
+
UNPAID_INVOICE: "UNPAID_INVOICE",
|
|
96
|
+
UNBILLED_USAGE: "UNBILLED_USAGE",
|
|
97
|
+
PENDING_TRANSACTION: "PENDING_TRANSACTION",
|
|
98
|
+
};
|
|
90
99
|
export const TopUpStatus = {
|
|
91
100
|
pending: "pending",
|
|
92
101
|
succeeded: "succeeded",
|
|
@@ -242,13 +242,13 @@ export declare const GetProjectAssignmentParams: zod.ZodObject<{
|
|
|
242
242
|
projectId: zod.ZodUUID;
|
|
243
243
|
}, zod.z.core.$strict>;
|
|
244
244
|
/**
|
|
245
|
-
* Links the project to
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
245
|
+
* Links the project to a billing account. A project without one is linked directly. Moving it to another
|
|
246
|
+
* account has the same requirements as unlinking: you own both accounts, the project has no metered resources,
|
|
247
|
+
* no subscriptions that have not ended and no orders in progress, and the current account has no unpaid
|
|
248
|
+
* invoices. Nothing moves with the project; charges already incurred stay with the account linked when they
|
|
249
|
+
* occurred.
|
|
249
250
|
*
|
|
250
|
-
* Refused once the project no longer accepts purchases because it is being deleted
|
|
251
|
-
* an in-progress order of the project uses a currency other than the new account's.
|
|
251
|
+
* Refused once the project no longer accepts purchases because it is being deleted.
|
|
252
252
|
* @summary Set project assignment
|
|
253
253
|
*/
|
|
254
254
|
export declare const SetProjectAssignmentParams: zod.ZodObject<{
|
|
@@ -258,7 +258,7 @@ export declare const SetProjectAssignmentBody: zod.ZodObject<{
|
|
|
258
258
|
billing_account_id: zod.ZodInt;
|
|
259
259
|
}, zod.z.core.$strict>;
|
|
260
260
|
/**
|
|
261
|
-
* Ends the project's current assignment; the assignment history is kept. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes; orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual
|
|
261
|
+
* Ends the project's current assignment; the assignment history is kept. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes, and the billing account has no unpaid invoices; invoices of orders awaiting payment do not count. Orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual. The project cannot make purchases until a billing account is linked again.
|
|
262
262
|
* @summary Unlink project billing account
|
|
263
263
|
*/
|
|
264
264
|
export declare const UnlinkProjectBillingAccountParams: zod.ZodObject<{
|
|
@@ -665,11 +665,11 @@ export declare const ListCancellationsQueryParams: zod.ZodObject<{
|
|
|
665
665
|
billing_account_id: zod.ZodOptional<zod.ZodInt>;
|
|
666
666
|
subscription_id: zod.ZodOptional<zod.ZodUUID>;
|
|
667
667
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
668
|
+
scheduled: "scheduled";
|
|
668
669
|
completed: "completed";
|
|
669
670
|
failed: "failed";
|
|
670
671
|
open: "open";
|
|
671
672
|
requested: "requested";
|
|
672
|
-
scheduled: "scheduled";
|
|
673
673
|
releasing: "releasing";
|
|
674
674
|
canceled: "canceled";
|
|
675
675
|
}>>;
|
|
@@ -946,9 +946,9 @@ export declare const ListFeatureGrantsQueryParams: zod.ZodObject<{
|
|
|
946
946
|
billing_account_id: zod.ZodOptional<zod.ZodInt>;
|
|
947
947
|
product_id: zod.ZodOptional<zod.ZodString>;
|
|
948
948
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
949
|
+
scheduled: "scheduled";
|
|
949
950
|
active: "active";
|
|
950
951
|
expired: "expired";
|
|
951
|
-
scheduled: "scheduled";
|
|
952
952
|
voided: "voided";
|
|
953
953
|
}>>;
|
|
954
954
|
}, zod.z.core.$strict>;
|
|
@@ -293,13 +293,13 @@ export const GetProjectAssignmentParams = zod.strictObject({
|
|
|
293
293
|
projectId: zod.uuid(),
|
|
294
294
|
});
|
|
295
295
|
/**
|
|
296
|
-
* Links the project to
|
|
297
|
-
*
|
|
298
|
-
*
|
|
299
|
-
*
|
|
296
|
+
* Links the project to a billing account. A project without one is linked directly. Moving it to another
|
|
297
|
+
* account has the same requirements as unlinking: you own both accounts, the project has no metered resources,
|
|
298
|
+
* no subscriptions that have not ended and no orders in progress, and the current account has no unpaid
|
|
299
|
+
* invoices. Nothing moves with the project; charges already incurred stay with the account linked when they
|
|
300
|
+
* occurred.
|
|
300
301
|
*
|
|
301
|
-
* Refused once the project no longer accepts purchases because it is being deleted
|
|
302
|
-
* an in-progress order of the project uses a currency other than the new account's.
|
|
302
|
+
* Refused once the project no longer accepts purchases because it is being deleted.
|
|
303
303
|
* @summary Set project assignment
|
|
304
304
|
*/
|
|
305
305
|
export const SetProjectAssignmentParams = zod.strictObject({
|
|
@@ -307,7 +307,7 @@ export const SetProjectAssignmentParams = zod.strictObject({
|
|
|
307
307
|
});
|
|
308
308
|
export const SetProjectAssignmentBody = SetProjectAssignmentRequest;
|
|
309
309
|
/**
|
|
310
|
-
* Ends the project's current assignment; the assignment history is kept. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes; orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual
|
|
310
|
+
* Ends the project's current assignment; the assignment history is kept. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes, and the billing account has no unpaid invoices; invoices of orders awaiting payment do not count. Orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual. The project cannot make purchases until a billing account is linked again.
|
|
311
311
|
* @summary Unlink project billing account
|
|
312
312
|
*/
|
|
313
313
|
export const UnlinkProjectBillingAccountParams = zod.strictObject({
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Billing API
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Financial operations require an account access token and billing-account authorization. Public catalogue operations declare no security requirement.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const AccountDeletionObjection: zod.ZodEnum<{
|
|
10
|
+
ARREARS: "ARREARS";
|
|
11
|
+
PROJECTS_ASSIGNED: "PROJECTS_ASSIGNED";
|
|
12
|
+
ACTIVE_SUBSCRIPTION: "ACTIVE_SUBSCRIPTION";
|
|
13
|
+
OPEN_ORDER: "OPEN_ORDER";
|
|
14
|
+
UNPAID_INVOICE: "UNPAID_INVOICE";
|
|
15
|
+
UNBILLED_USAGE: "UNBILLED_USAGE";
|
|
16
|
+
PENDING_TRANSACTION: "PENDING_TRANSACTION";
|
|
17
|
+
}>;
|
|
18
|
+
export type AccountDeletionObjection = zod.input<typeof AccountDeletionObjection>;
|
|
19
|
+
export type AccountDeletionObjectionOutput = zod.output<typeof AccountDeletionObjection>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Billing API
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Financial operations require an account access token and billing-account authorization. Public catalogue operations declare no security requirement.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const AccountDeletionObjection = zod
|
|
10
|
+
.enum([
|
|
11
|
+
"ARREARS",
|
|
12
|
+
"PROJECTS_ASSIGNED",
|
|
13
|
+
"ACTIVE_SUBSCRIPTION",
|
|
14
|
+
"OPEN_ORDER",
|
|
15
|
+
"UNPAID_INVOICE",
|
|
16
|
+
"UNBILLED_USAGE",
|
|
17
|
+
"PENDING_TRANSACTION",
|
|
18
|
+
])
|
|
19
|
+
.describe("`ARREARS`: the balance is negative. `PROJECTS_ASSIGNED`: the account still pays for a project, yours or anyone\nelse's. `ACTIVE_SUBSCRIPTION`: a subscription it bought has not ended. `OPEN_ORDER`: an order is not finished.\n`UNPAID_INVOICE`: an issued invoice is not settled. `UNBILLED_USAGE`: usage has not been invoiced yet; it is\ninvoiced in the next billing run. `PENDING_TRANSACTION`: a top-up, refund or withdrawal is still pending.");
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Billing API
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Financial operations require an account access token and billing-account authorization. Public catalogue operations declare no security requirement.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const AccountDeletionReadiness: zod.ZodObject<{
|
|
10
|
+
accounts: zod.ZodArray<zod.ZodObject<{
|
|
11
|
+
account: zod.ZodObject<{
|
|
12
|
+
invoice_contact_id: zod.ZodOptional<zod.ZodNullable<zod.ZodUUID>>;
|
|
13
|
+
id: zod.ZodInt;
|
|
14
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
15
|
+
currency: zod.ZodString;
|
|
16
|
+
status: zod.ZodEnum<{
|
|
17
|
+
active: "active";
|
|
18
|
+
suspended: "suspended";
|
|
19
|
+
closed: "closed";
|
|
20
|
+
}>;
|
|
21
|
+
suspended_by: zod.ZodEnum<{
|
|
22
|
+
none: "none";
|
|
23
|
+
operator: "operator";
|
|
24
|
+
owner: "owner";
|
|
25
|
+
}>;
|
|
26
|
+
grace_amount: zod.ZodOptional<zod.ZodString>;
|
|
27
|
+
grace_period_seconds: zod.ZodOptional<zod.ZodInt>;
|
|
28
|
+
closed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
29
|
+
created_at: zod.z.ZodISODateTime;
|
|
30
|
+
}, zod.z.core.$strict>;
|
|
31
|
+
balance: zod.ZodString;
|
|
32
|
+
credits: zod.ZodString;
|
|
33
|
+
objections: zod.ZodArray<zod.ZodEnum<{
|
|
34
|
+
ARREARS: "ARREARS";
|
|
35
|
+
PROJECTS_ASSIGNED: "PROJECTS_ASSIGNED";
|
|
36
|
+
ACTIVE_SUBSCRIPTION: "ACTIVE_SUBSCRIPTION";
|
|
37
|
+
OPEN_ORDER: "OPEN_ORDER";
|
|
38
|
+
UNPAID_INVOICE: "UNPAID_INVOICE";
|
|
39
|
+
UNBILLED_USAGE: "UNBILLED_USAGE";
|
|
40
|
+
PENDING_TRANSACTION: "PENDING_TRANSACTION";
|
|
41
|
+
}>>;
|
|
42
|
+
}, zod.z.core.$strict>>;
|
|
43
|
+
}, zod.z.core.$strict>;
|
|
44
|
+
export type AccountDeletionReadiness = zod.input<typeof AccountDeletionReadiness>;
|
|
45
|
+
export type AccountDeletionReadinessOutput = zod.output<typeof AccountDeletionReadiness>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Billing API
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Financial operations require an account access token and billing-account authorization. Public catalogue operations declare no security requirement.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
import { AccountDeletionReadinessItem } from "./accountDeletionReadinessItem.zod.js";
|
|
10
|
+
export const AccountDeletionReadiness = zod.strictObject({
|
|
11
|
+
accounts: zod
|
|
12
|
+
.array(AccountDeletionReadinessItem)
|
|
13
|
+
.describe("Every billing account you own that is not closed; empty when you own none."),
|
|
14
|
+
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Billing API
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Financial operations require an account access token and billing-account authorization. Public catalogue operations declare no security requirement.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const AccountDeletionReadinessItem: zod.ZodObject<{
|
|
10
|
+
account: zod.ZodObject<{
|
|
11
|
+
invoice_contact_id: zod.ZodOptional<zod.ZodNullable<zod.ZodUUID>>;
|
|
12
|
+
id: zod.ZodInt;
|
|
13
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
14
|
+
currency: zod.ZodString;
|
|
15
|
+
status: zod.ZodEnum<{
|
|
16
|
+
active: "active";
|
|
17
|
+
suspended: "suspended";
|
|
18
|
+
closed: "closed";
|
|
19
|
+
}>;
|
|
20
|
+
suspended_by: zod.ZodEnum<{
|
|
21
|
+
none: "none";
|
|
22
|
+
operator: "operator";
|
|
23
|
+
owner: "owner";
|
|
24
|
+
}>;
|
|
25
|
+
grace_amount: zod.ZodOptional<zod.ZodString>;
|
|
26
|
+
grace_period_seconds: zod.ZodOptional<zod.ZodInt>;
|
|
27
|
+
closed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
28
|
+
created_at: zod.z.ZodISODateTime;
|
|
29
|
+
}, zod.z.core.$strict>;
|
|
30
|
+
balance: zod.ZodString;
|
|
31
|
+
credits: zod.ZodString;
|
|
32
|
+
objections: zod.ZodArray<zod.ZodEnum<{
|
|
33
|
+
ARREARS: "ARREARS";
|
|
34
|
+
PROJECTS_ASSIGNED: "PROJECTS_ASSIGNED";
|
|
35
|
+
ACTIVE_SUBSCRIPTION: "ACTIVE_SUBSCRIPTION";
|
|
36
|
+
OPEN_ORDER: "OPEN_ORDER";
|
|
37
|
+
UNPAID_INVOICE: "UNPAID_INVOICE";
|
|
38
|
+
UNBILLED_USAGE: "UNBILLED_USAGE";
|
|
39
|
+
PENDING_TRANSACTION: "PENDING_TRANSACTION";
|
|
40
|
+
}>>;
|
|
41
|
+
}, zod.z.core.$strict>;
|
|
42
|
+
export type AccountDeletionReadinessItem = zod.input<typeof AccountDeletionReadinessItem>;
|
|
43
|
+
export type AccountDeletionReadinessItemOutput = zod.output<typeof AccountDeletionReadinessItem>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Billing API
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Financial operations require an account access token and billing-account authorization. Public catalogue operations declare no security requirement.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
import { AccountDeletionObjection } from "./accountDeletionObjection.zod.js";
|
|
10
|
+
import { BillingAccount } from "./billingAccount.zod.js";
|
|
11
|
+
import { Money } from "./money.zod.js";
|
|
12
|
+
export const AccountDeletionReadinessItem = zod.strictObject({
|
|
13
|
+
account: BillingAccount,
|
|
14
|
+
balance: Money.describe("Topped-up funds, in the account's currency, forfeited when it closes. Negative means arrears."),
|
|
15
|
+
credits: Money.describe("Remaining credit, in the account's currency, forfeited when it closes."),
|
|
16
|
+
objections: zod
|
|
17
|
+
.array(AccountDeletionObjection)
|
|
18
|
+
.describe("What stops this account from closing; empty when it can close."),
|
|
19
|
+
});
|
|
@@ -9,10 +9,10 @@ import * as zod from "zod";
|
|
|
9
9
|
export declare const Cancellation: zod.ZodObject<{
|
|
10
10
|
id: zod.ZodUUID;
|
|
11
11
|
status: zod.ZodEnum<{
|
|
12
|
+
scheduled: "scheduled";
|
|
12
13
|
completed: "completed";
|
|
13
14
|
failed: "failed";
|
|
14
15
|
requested: "requested";
|
|
15
|
-
scheduled: "scheduled";
|
|
16
16
|
releasing: "releasing";
|
|
17
17
|
canceled: "canceled";
|
|
18
18
|
}>;
|
|
@@ -48,10 +48,10 @@ export declare const Cancellation: zod.ZodObject<{
|
|
|
48
48
|
metered: "metered";
|
|
49
49
|
}>;
|
|
50
50
|
status: zod.ZodEnum<{
|
|
51
|
+
scheduled: "scheduled";
|
|
51
52
|
completed: "completed";
|
|
52
53
|
failed: "failed";
|
|
53
54
|
requested: "requested";
|
|
54
|
-
scheduled: "scheduled";
|
|
55
55
|
releasing: "releasing";
|
|
56
56
|
canceled: "canceled";
|
|
57
57
|
}>;
|
|
@@ -20,10 +20,10 @@ export declare const CancellationItem: zod.ZodObject<{
|
|
|
20
20
|
metered: "metered";
|
|
21
21
|
}>;
|
|
22
22
|
status: zod.ZodEnum<{
|
|
23
|
+
scheduled: "scheduled";
|
|
23
24
|
completed: "completed";
|
|
24
25
|
failed: "failed";
|
|
25
26
|
requested: "requested";
|
|
26
|
-
scheduled: "scheduled";
|
|
27
27
|
releasing: "releasing";
|
|
28
28
|
canceled: "canceled";
|
|
29
29
|
}>;
|
|
@@ -10,10 +10,10 @@ export declare const CancellationList: zod.ZodObject<{
|
|
|
10
10
|
items: zod.ZodArray<zod.ZodObject<{
|
|
11
11
|
id: zod.ZodUUID;
|
|
12
12
|
status: zod.ZodEnum<{
|
|
13
|
+
scheduled: "scheduled";
|
|
13
14
|
completed: "completed";
|
|
14
15
|
failed: "failed";
|
|
15
16
|
requested: "requested";
|
|
16
|
-
scheduled: "scheduled";
|
|
17
17
|
releasing: "releasing";
|
|
18
18
|
canceled: "canceled";
|
|
19
19
|
}>;
|
|
@@ -49,10 +49,10 @@ export declare const CancellationList: zod.ZodObject<{
|
|
|
49
49
|
metered: "metered";
|
|
50
50
|
}>;
|
|
51
51
|
status: zod.ZodEnum<{
|
|
52
|
+
scheduled: "scheduled";
|
|
52
53
|
completed: "completed";
|
|
53
54
|
failed: "failed";
|
|
54
55
|
requested: "requested";
|
|
55
|
-
scheduled: "scheduled";
|
|
56
56
|
releasing: "releasing";
|
|
57
57
|
canceled: "canceled";
|
|
58
58
|
}>;
|
|
@@ -30,8 +30,8 @@ export declare const Contact: zod.ZodObject<{
|
|
|
30
30
|
address_postal_code: zod.ZodOptional<zod.ZodString>;
|
|
31
31
|
address_country: zod.ZodOptional<zod.ZodString>;
|
|
32
32
|
tax_exempt: zod.ZodEnum<{
|
|
33
|
-
reverse: "reverse";
|
|
34
33
|
none: "none";
|
|
34
|
+
reverse: "reverse";
|
|
35
35
|
exempt: "exempt";
|
|
36
36
|
}>;
|
|
37
37
|
active: zod.ZodBoolean;
|
|
@@ -21,8 +21,8 @@ export declare const ContactList: zod.ZodObject<{
|
|
|
21
21
|
address_postal_code: zod.ZodOptional<zod.ZodString>;
|
|
22
22
|
address_country: zod.ZodOptional<zod.ZodString>;
|
|
23
23
|
tax_exempt: zod.ZodEnum<{
|
|
24
|
-
reverse: "reverse";
|
|
25
24
|
none: "none";
|
|
25
|
+
reverse: "reverse";
|
|
26
26
|
exempt: "exempt";
|
|
27
27
|
}>;
|
|
28
28
|
active: zod.ZodBoolean;
|
|
@@ -12,9 +12,9 @@ export declare const Discount: zod.ZodObject<{
|
|
|
12
12
|
coupon_id: zod.ZodUUID;
|
|
13
13
|
promotion_code_id: zod.ZodOptional<zod.ZodUUID>;
|
|
14
14
|
status: zod.ZodEnum<{
|
|
15
|
+
scheduled: "scheduled";
|
|
15
16
|
active: "active";
|
|
16
17
|
expired: "expired";
|
|
17
|
-
scheduled: "scheduled";
|
|
18
18
|
voided: "voided";
|
|
19
19
|
}>;
|
|
20
20
|
voided_at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
@@ -13,9 +13,9 @@ export declare const DiscountList: zod.ZodObject<{
|
|
|
13
13
|
coupon_id: zod.ZodUUID;
|
|
14
14
|
promotion_code_id: zod.ZodOptional<zod.ZodUUID>;
|
|
15
15
|
status: zod.ZodEnum<{
|
|
16
|
+
scheduled: "scheduled";
|
|
16
17
|
active: "active";
|
|
17
18
|
expired: "expired";
|
|
18
|
-
scheduled: "scheduled";
|
|
19
19
|
voided: "voided";
|
|
20
20
|
}>;
|
|
21
21
|
voided_at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
@@ -23,9 +23,9 @@ export declare const FeatureGrant: zod.ZodObject<{
|
|
|
23
23
|
valid_from: zod.z.ZodISODateTime;
|
|
24
24
|
valid_until: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
25
25
|
status: zod.ZodEnum<{
|
|
26
|
+
scheduled: "scheduled";
|
|
26
27
|
active: "active";
|
|
27
28
|
expired: "expired";
|
|
28
|
-
scheduled: "scheduled";
|
|
29
29
|
voided: "voided";
|
|
30
30
|
}>;
|
|
31
31
|
}, zod.z.core.$strict>;
|
|
@@ -24,9 +24,9 @@ export declare const FeatureGrantList: zod.ZodObject<{
|
|
|
24
24
|
valid_from: zod.z.ZodISODateTime;
|
|
25
25
|
valid_until: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
26
26
|
status: zod.ZodEnum<{
|
|
27
|
+
scheduled: "scheduled";
|
|
27
28
|
active: "active";
|
|
28
29
|
expired: "expired";
|
|
29
|
-
scheduled: "scheduled";
|
|
30
30
|
voided: "voided";
|
|
31
31
|
}>;
|
|
32
32
|
}, zod.z.core.$strict>>;
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export declare const FeatureGrantStatus: zod.ZodEnum<{
|
|
10
|
+
scheduled: "scheduled";
|
|
10
11
|
active: "active";
|
|
11
12
|
expired: "expired";
|
|
12
|
-
scheduled: "scheduled";
|
|
13
13
|
voided: "voided";
|
|
14
14
|
}>;
|
|
15
15
|
export type FeatureGrantStatus = zod.input<typeof FeatureGrantStatus>;
|
|
@@ -46,8 +46,8 @@ export declare const Invoice: zod.ZodObject<{
|
|
|
46
46
|
customer_email: zod.ZodOptional<zod.ZodString>;
|
|
47
47
|
customer_tax_id: zod.ZodOptional<zod.ZodString>;
|
|
48
48
|
customer_tax_exempt: zod.ZodOptional<zod.ZodEnum<{
|
|
49
|
-
reverse: "reverse";
|
|
50
49
|
none: "none";
|
|
50
|
+
reverse: "reverse";
|
|
51
51
|
exempt: "exempt";
|
|
52
52
|
}>>;
|
|
53
53
|
customer_address_line1: zod.ZodOptional<zod.ZodString>;
|
|
@@ -47,8 +47,8 @@ export declare const InvoiceList: zod.ZodObject<{
|
|
|
47
47
|
customer_email: zod.ZodOptional<zod.ZodString>;
|
|
48
48
|
customer_tax_id: zod.ZodOptional<zod.ZodString>;
|
|
49
49
|
customer_tax_exempt: zod.ZodOptional<zod.ZodEnum<{
|
|
50
|
-
reverse: "reverse";
|
|
51
50
|
none: "none";
|
|
51
|
+
reverse: "reverse";
|
|
52
52
|
exempt: "exempt";
|
|
53
53
|
}>>;
|
|
54
54
|
customer_address_line1: zod.ZodOptional<zod.ZodString>;
|
|
@@ -17,11 +17,11 @@ export declare const ListCancellationsParams: zod.ZodObject<{
|
|
|
17
17
|
billing_account_id: zod.ZodOptional<zod.ZodInt>;
|
|
18
18
|
subscription_id: zod.ZodOptional<zod.ZodUUID>;
|
|
19
19
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
20
|
+
scheduled: "scheduled";
|
|
20
21
|
completed: "completed";
|
|
21
22
|
failed: "failed";
|
|
22
23
|
open: "open";
|
|
23
24
|
requested: "requested";
|
|
24
|
-
scheduled: "scheduled";
|
|
25
25
|
releasing: "releasing";
|
|
26
26
|
canceled: "canceled";
|
|
27
27
|
}>>;
|