@leaflow/sdk 0.0.0-dev.369.g4b81cd7 → 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.
|
@@ -501,13 +501,13 @@ export type setProjectAssignmentResponseError = setProjectAssignmentResponseDefa
|
|
|
501
501
|
export type setProjectAssignmentResponse = setProjectAssignmentResponseSuccess | setProjectAssignmentResponseError;
|
|
502
502
|
export declare const getSetProjectAssignmentUrl: (projectId: string) => string;
|
|
503
503
|
/**
|
|
504
|
-
* Links the project to
|
|
505
|
-
*
|
|
506
|
-
*
|
|
507
|
-
*
|
|
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.
|
|
508
509
|
*
|
|
509
|
-
* Refused once the project no longer accepts purchases because it is being deleted
|
|
510
|
-
* 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.
|
|
511
511
|
* @summary Set project assignment
|
|
512
512
|
*/
|
|
513
513
|
export declare const setProjectAssignment: (projectId: string, setProjectAssignmentRequest: SetProjectAssignmentRequest, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<setProjectAssignmentResponse>;
|
|
@@ -528,7 +528,7 @@ export type unlinkProjectBillingAccountResponseError = unlinkProjectBillingAccou
|
|
|
528
528
|
export type unlinkProjectBillingAccountResponse = unlinkProjectBillingAccountResponseSuccess | unlinkProjectBillingAccountResponseError;
|
|
529
529
|
export declare const getUnlinkProjectBillingAccountUrl: (projectId: string) => string;
|
|
530
530
|
/**
|
|
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; 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.
|
|
532
532
|
* @summary Unlink project billing account
|
|
533
533
|
*/
|
|
534
534
|
export declare const unlinkProjectBillingAccount: (projectId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<unlinkProjectBillingAccountResponse>;
|
|
@@ -529,13 +529,13 @@ export const getSetProjectAssignmentUrl = (projectId) => {
|
|
|
529
529
|
return `https://billing.leaflow.cloud/api/v1/assignments/${encodeURIComponent(String(projectId))}`;
|
|
530
530
|
};
|
|
531
531
|
/**
|
|
532
|
-
* Links the project to
|
|
533
|
-
*
|
|
534
|
-
*
|
|
535
|
-
*
|
|
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.
|
|
536
537
|
*
|
|
537
|
-
* Refused once the project no longer accepts purchases because it is being deleted
|
|
538
|
-
* 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.
|
|
539
539
|
* @summary Set project assignment
|
|
540
540
|
*/
|
|
541
541
|
export const setProjectAssignment = async (projectId, setProjectAssignmentRequest, options, fetchFn) => {
|
|
@@ -568,7 +568,7 @@ export const getUnlinkProjectBillingAccountUrl = (projectId) => {
|
|
|
568
568
|
return `https://billing.leaflow.cloud/api/v1/assignments/${encodeURIComponent(String(projectId))}`;
|
|
569
569
|
};
|
|
570
570
|
/**
|
|
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; 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.
|
|
572
572
|
* @summary Unlink project billing account
|
|
573
573
|
*/
|
|
574
574
|
export const unlinkProjectBillingAccount = async (projectId, options, fetchFn) => {
|
|
@@ -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<{
|
|
@@ -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({
|