@leaflow/sdk 0.117.0 → 0.117.1
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 +1 -1
- package/dist/billing/v1/generated/functions.js +1 -1
- package/dist/billing/v1/generated/models.d.ts +6 -6
- package/dist/billing/v1/generated/schemas.zod.d.ts +1 -1
- package/dist/billing/v1/generated/schemas.zod.js +1 -1
- package/dist/billing/v1/generated/validators/accountBalance.zod.js +2 -2
- package/dist/billing/v1/generated/validators/statement.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statementItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageCharge.zod.js +2 -2
- package/package.json +1 -1
|
@@ -907,7 +907,7 @@ export type listUsageChargesResponseError = listUsageChargesResponseDefault & {
|
|
|
907
907
|
export type listUsageChargesResponse = listUsageChargesResponseSuccess | listUsageChargesResponseError;
|
|
908
908
|
export declare const getListUsageChargesUrl: (params?: ListUsageChargesParams) => string;
|
|
909
909
|
/**
|
|
910
|
-
* Lists priced and
|
|
910
|
+
* Lists priced and unrated usage charges. Requires `statement_id`, `invoice_item_id`, or both `from` and `to` spanning at most 31 days; use the statement summary or spend report for longer periods. Charges are summed into one line per subscription, project, resource, meter and rate when their statement closes; filter by `invoice_item_id` to see the charges behind a line. Unrated charges had no applicable price when the usage occurred and are not billed.
|
|
911
911
|
*
|
|
912
912
|
* Only charges recorded against your billing accounts are included, before filtering, counting and pagination. Reassigning a project does not move previously recorded charges to its new account.
|
|
913
913
|
* @summary List usage charges
|
|
@@ -1009,7 +1009,7 @@ export const getListUsageChargesUrl = (params) => {
|
|
|
1009
1009
|
: `https://billing.leaflow.cloud/api/v1/usage-charges`;
|
|
1010
1010
|
};
|
|
1011
1011
|
/**
|
|
1012
|
-
* Lists priced and
|
|
1012
|
+
* Lists priced and unrated usage charges. Requires `statement_id`, `invoice_item_id`, or both `from` and `to` spanning at most 31 days; use the statement summary or spend report for longer periods. Charges are summed into one line per subscription, project, resource, meter and rate when their statement closes; filter by `invoice_item_id` to see the charges behind a line. Unrated charges had no applicable price when the usage occurred and are not billed.
|
|
1013
1013
|
*
|
|
1014
1014
|
* Only charges recorded against your billing accounts are included, before filtering, counting and pagination. Reassigning a project does not move previously recorded charges to its new account.
|
|
1015
1015
|
* @summary List usage charges
|
|
@@ -694,7 +694,7 @@ export interface CreditGroup {
|
|
|
694
694
|
* Account balance, credits, and unpaid charges are reported separately.
|
|
695
695
|
*/
|
|
696
696
|
export interface AccountBalance {
|
|
697
|
-
/**
|
|
697
|
+
/** Balance minus pending balance returns, unbilled usage estimates and issued unpaid amounts. Credit grants are excluded; the result may be negative. */
|
|
698
698
|
available_credit: Money;
|
|
699
699
|
/** Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance. */
|
|
700
700
|
unbilled_amount: Money;
|
|
@@ -711,7 +711,7 @@ export interface AccountBalance {
|
|
|
711
711
|
* credits balance does not imply that due is zero.
|
|
712
712
|
*/
|
|
713
713
|
credits: Money;
|
|
714
|
-
/** Currently valid credit whose use has applicable product, operation or eligibility conditions. Included in credits, separate from
|
|
714
|
+
/** Currently valid credit whose use has applicable product, operation or eligibility conditions. Included in credits, separate from the balance. */
|
|
715
715
|
restricted_credits: Money;
|
|
716
716
|
/**
|
|
717
717
|
* Currently valid, unspent credit grouped by permitted use. Restrictions and
|
|
@@ -1550,12 +1550,12 @@ export interface UsageCharge {
|
|
|
1550
1550
|
amount?: Money;
|
|
1551
1551
|
currency: string;
|
|
1552
1552
|
/**
|
|
1553
|
-
* The usage invoice this charge was added to. Absent
|
|
1553
|
+
* The usage invoice this charge was added to. Absent until its statement closes and always absent for unrated charges.
|
|
1554
1554
|
* @nullable
|
|
1555
1555
|
*/
|
|
1556
1556
|
invoice_id?: string | null;
|
|
1557
1557
|
/**
|
|
1558
|
-
* The usage invoice line this charge was summed into. Absent
|
|
1558
|
+
* The usage invoice line this charge was summed into. Absent until its statement closes and always absent for unrated charges.
|
|
1559
1559
|
* @nullable
|
|
1560
1560
|
*/
|
|
1561
1561
|
invoice_item_id?: string | null;
|
|
@@ -2702,7 +2702,7 @@ export interface Statement {
|
|
|
2702
2702
|
/** 1 for the first closing of the period; higher for statements that collect usage priced after an earlier closing. */
|
|
2703
2703
|
sequence: number;
|
|
2704
2704
|
status: StatementStatus;
|
|
2705
|
-
/** True while the statement is open. The estimate
|
|
2705
|
+
/** True while the statement is open. The estimate applies tier pricing to the period's usage so far and adds tax for the current invoice contact. Minimum charges are added at closing, and a tier reduction larger than this statement's own charges is credited to earlier invoices of the period at closing. */
|
|
2706
2706
|
estimated: boolean;
|
|
2707
2707
|
amounts: StatementAmounts;
|
|
2708
2708
|
closed_at?: string;
|
|
@@ -2724,7 +2724,7 @@ export interface StatementItem {
|
|
|
2724
2724
|
/** Net usage quantity. Included only when grouping by meter. */
|
|
2725
2725
|
quantity?: string;
|
|
2726
2726
|
deducted_quantity?: string;
|
|
2727
|
-
/** Usage
|
|
2727
|
+
/** Usage that had no applicable price when it occurred. It is not charged, either now or later. */
|
|
2728
2728
|
unrated_quantity?: string;
|
|
2729
2729
|
amount: Money;
|
|
2730
2730
|
}
|
|
@@ -524,7 +524,7 @@ export declare const ListRefundsQueryParams: zod.ZodObject<{
|
|
|
524
524
|
order_id: zod.ZodOptional<zod.ZodUUID>;
|
|
525
525
|
}, zod.z.core.$strict>;
|
|
526
526
|
/**
|
|
527
|
-
* Lists priced and
|
|
527
|
+
* Lists priced and unrated usage charges. Requires `statement_id`, `invoice_item_id`, or both `from` and `to` spanning at most 31 days; use the statement summary or spend report for longer periods. Charges are summed into one line per subscription, project, resource, meter and rate when their statement closes; filter by `invoice_item_id` to see the charges behind a line. Unrated charges had no applicable price when the usage occurred and are not billed.
|
|
528
528
|
*
|
|
529
529
|
* Only charges recorded against your billing accounts are included, before filtering, counting and pagination. Reassigning a project does not move previously recorded charges to its new account.
|
|
530
530
|
* @summary List usage charges
|
|
@@ -665,7 +665,7 @@ export const ListRefundsQueryParams = zod.strictObject({
|
|
|
665
665
|
.describe("Only the refunds that belong to this order: those of its invoice, such as the refund of a\npurchase that could not be delivered, and those it caused on an earlier invoice, such as\nthe difference returned after a downgrade."),
|
|
666
666
|
});
|
|
667
667
|
/**
|
|
668
|
-
* Lists priced and
|
|
668
|
+
* Lists priced and unrated usage charges. Requires `statement_id`, `invoice_item_id`, or both `from` and `to` spanning at most 31 days; use the statement summary or spend report for longer periods. Charges are summed into one line per subscription, project, resource, meter and rate when their statement closes; filter by `invoice_item_id` to see the charges behind a line. Unrated charges had no applicable price when the usage occurred and are not billed.
|
|
669
669
|
*
|
|
670
670
|
* Only charges recorded against your billing accounts are included, before filtering, counting and pagination. Reassigning a project does not move previously recorded charges to its new account.
|
|
671
671
|
* @summary List usage charges
|
|
@@ -10,13 +10,13 @@ import { CreditGroup } from "./creditGroup.zod.js";
|
|
|
10
10
|
import { Money } from "./money.zod.js";
|
|
11
11
|
export const AccountBalance = zod
|
|
12
12
|
.strictObject({
|
|
13
|
-
available_credit: Money.describe("
|
|
13
|
+
available_credit: Money.describe("Balance minus pending balance returns, unbilled usage estimates and issued unpaid amounts. Credit grants are excluded; the result may be negative."),
|
|
14
14
|
unbilled_amount: Money.describe("Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance."),
|
|
15
15
|
billing_account_id: zod.int(),
|
|
16
16
|
currency: zod.string(),
|
|
17
17
|
balance: Money.describe("Prepaid funds in the account currency, excluding credits. May be negative after a payment\ndispute. Outstanding charges are reported separately in due; this value is not a withdrawal quote."),
|
|
18
18
|
credits: Money.describe("The recorded remaining credit, including restricted grants. It is not withdrawable\nand is not part of balance. credit_groups describes currently valid credit by permitted use; a positive\ncredits balance does not imply that due is zero."),
|
|
19
|
-
restricted_credits: Money.describe("Currently valid credit whose use has applicable product, operation or eligibility conditions. Included in credits, separate from
|
|
19
|
+
restricted_credits: Money.describe("Currently valid credit whose use has applicable product, operation or eligibility conditions. Included in credits, separate from the balance."),
|
|
20
20
|
credit_groups: zod
|
|
21
21
|
.array(CreditGroup)
|
|
22
22
|
.describe("Currently valid, unspent credit grouped by permitted use. Restrictions and\nvalidity dates determine which charges a group can cover, so these groups are not a general\nspendable balance and may differ from the recorded credits total."),
|
|
@@ -22,7 +22,7 @@ export const Statement = zod
|
|
|
22
22
|
status: StatementStatus,
|
|
23
23
|
estimated: zod
|
|
24
24
|
.boolean()
|
|
25
|
-
.describe("True while the statement is open. The estimate
|
|
25
|
+
.describe("True while the statement is open. The estimate applies tier pricing to the period's usage so far and adds tax for the current invoice contact. Minimum charges are added at closing, and a tier reduction larger than this statement's own charges is credited to earlier invoices of the period at closing."),
|
|
26
26
|
amounts: StatementAmounts,
|
|
27
27
|
closed_at: zod.iso.datetime({ offset: true }).optional(),
|
|
28
28
|
invoice_id: zod
|
|
@@ -20,6 +20,6 @@ export const StatementItem = zod.strictObject({
|
|
|
20
20
|
unrated_quantity: zod
|
|
21
21
|
.string()
|
|
22
22
|
.optional()
|
|
23
|
-
.describe("Usage
|
|
23
|
+
.describe("Usage that had no applicable price when it occurred. It is not charged, either now or later."),
|
|
24
24
|
amount: Money,
|
|
25
25
|
});
|
|
@@ -48,10 +48,10 @@ export const UsageCharge = zod.strictObject({
|
|
|
48
48
|
invoice_id: zod
|
|
49
49
|
.uuid()
|
|
50
50
|
.nullish()
|
|
51
|
-
.describe("The usage invoice this charge was added to. Absent
|
|
51
|
+
.describe("The usage invoice this charge was added to. Absent until its statement closes and always absent for unrated charges."),
|
|
52
52
|
invoice_item_id: zod
|
|
53
53
|
.uuid()
|
|
54
54
|
.nullish()
|
|
55
|
-
.describe("The usage invoice line this charge was summed into. Absent
|
|
55
|
+
.describe("The usage invoice line this charge was summed into. Absent until its statement closes and always absent for unrated charges."),
|
|
56
56
|
statement_id: zod.uuid().optional().describe("The statement this charge was collected into."),
|
|
57
57
|
});
|