@leaflow/sdk 0.123.0 → 0.125.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/billing/type/order/v1/generated/models.d.ts +3 -2
  2. package/dist/billing/type/order/v1/generated/validators/accountBalance.zod.d.ts +1 -0
  3. package/dist/billing/type/order/v1/generated/validators/accountBalance.zod.js +2 -1
  4. package/dist/billing/type/order/v1/generated/validators/order.zod.d.ts +0 -1
  5. package/dist/billing/type/order/v1/generated/validators/orderItem.zod.d.ts +0 -1
  6. package/dist/billing/type/order/v1/generated/validators/orderItem.zod.js +0 -1
  7. package/dist/billing/type/order/v1/generated/validators/orderItemList.zod.d.ts +0 -1
  8. package/dist/billing/type/order/v1/generated/validators/orderList.zod.d.ts +0 -1
  9. package/dist/billing/v1/generated/models.d.ts +3 -2
  10. package/dist/billing/v1/generated/validators/accountBalance.zod.d.ts +1 -0
  11. package/dist/billing/v1/generated/validators/accountBalance.zod.js +2 -1
  12. package/dist/billing/v1/generated/validators/order.zod.d.ts +0 -1
  13. package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +0 -1
  14. package/dist/billing/v1/generated/validators/orderItem.zod.js +0 -1
  15. package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +0 -1
  16. package/dist/billing/v1/generated/validators/orderList.zod.d.ts +0 -1
  17. package/dist/canopy/v1/generated/models.d.ts +3 -2
  18. package/dist/canopy/v1/generated/validators/accountBalance.zod.d.ts +1 -0
  19. package/dist/canopy/v1/generated/validators/accountBalance.zod.js +2 -1
  20. package/dist/canopy/v1/generated/validators/order.zod.d.ts +0 -1
  21. package/dist/canopy/v1/generated/validators/orderItem.zod.d.ts +0 -1
  22. package/dist/canopy/v1/generated/validators/orderItem.zod.js +0 -1
  23. package/dist/canopy/v1/generated/validators/orderItemList.zod.d.ts +0 -1
  24. package/dist/canopy/v1/generated/validators/orderList.zod.d.ts +0 -1
  25. package/dist/compute/v1/generated/models.d.ts +3 -2
  26. package/dist/compute/v1/generated/validators/accountBalance.zod.d.ts +1 -0
  27. package/dist/compute/v1/generated/validators/accountBalance.zod.js +2 -1
  28. package/dist/compute/v1/generated/validators/order.zod.d.ts +0 -1
  29. package/dist/compute/v1/generated/validators/orderItem.zod.d.ts +0 -1
  30. package/dist/compute/v1/generated/validators/orderItem.zod.js +0 -1
  31. package/dist/compute/v1/generated/validators/orderItemList.zod.d.ts +0 -1
  32. package/dist/compute/v1/generated/validators/orderList.zod.d.ts +0 -1
  33. package/dist/membership/v1/generated/models.d.ts +3 -2
  34. package/dist/membership/v1/generated/validators/accountBalance.zod.d.ts +1 -0
  35. package/dist/membership/v1/generated/validators/accountBalance.zod.js +2 -1
  36. package/dist/membership/v1/generated/validators/order.zod.d.ts +0 -1
  37. package/dist/membership/v1/generated/validators/orderItem.zod.d.ts +0 -1
  38. package/dist/membership/v1/generated/validators/orderItem.zod.js +0 -1
  39. package/dist/membership/v1/generated/validators/orderItemList.zod.d.ts +0 -1
  40. package/dist/membership/v1/generated/validators/orderList.zod.d.ts +0 -1
  41. package/package.json +1 -1
@@ -864,8 +864,10 @@ export interface CreditGroup {
864
864
  * Account balance, credits, and unpaid charges are reported separately.
865
865
  */
866
866
  export interface AccountBalance {
867
- /** Balance minus pending balance returns, unbilled usage estimates and issued unpaid amounts. Credit grants are excluded; the result may be negative. */
867
+ /** Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes. */
868
868
  available_credit: Money;
869
+ /** Credit expected to pay unbilled_amount and due. Each charge is matched to grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is reserved or deducted until an invoice is paid, so credits still includes this amount. */
870
+ estimated_credit_applied: Money;
869
871
  /** Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance. */
870
872
  unbilled_amount: Money;
871
873
  billing_account_id: number;
@@ -2166,7 +2168,6 @@ export interface OrderItem {
2166
2168
  * @nullable
2167
2169
  */
2168
2170
  refund_hourly_amount?: string | null;
2169
- completes_on_payment: boolean;
2170
2171
  recurring_amount?: string;
2171
2172
  setup_amount?: string;
2172
2173
  /** The payment timing of the selected price. */
@@ -8,6 +8,7 @@
8
8
  import * as zod from "zod";
9
9
  export declare const AccountBalance: zod.ZodObject<{
10
10
  available_credit: zod.ZodString;
11
+ estimated_credit_applied: zod.ZodString;
11
12
  unbilled_amount: zod.ZodString;
12
13
  billing_account_id: zod.ZodInt;
13
14
  currency: zod.ZodString;
@@ -10,7 +10,8 @@ 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("Balance minus pending balance returns, unbilled usage estimates and issued unpaid amounts. Credit grants are excluded; the result may be negative."),
13
+ available_credit: Money.describe("Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes."),
14
+ estimated_credit_applied: Money.describe("Credit expected to pay unbilled_amount and due. Each charge is matched to grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is reserved or deducted until an invoice is paid, so credits still includes this amount."),
14
15
  unbilled_amount: Money.describe("Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance."),
15
16
  billing_account_id: zod.int(),
16
17
  currency: zod.string(),
@@ -102,7 +102,6 @@ export declare const Order: zod.ZodObject<{
102
102
  }>>;
103
103
  refund_monthly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
104
104
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
105
- completes_on_payment: zod.ZodBoolean;
106
105
  recurring_amount: zod.ZodOptional<zod.ZodString>;
107
106
  setup_amount: zod.ZodOptional<zod.ZodString>;
108
107
  charge_type: zod.ZodEnum<{
@@ -29,7 +29,6 @@ export declare const OrderItem: zod.ZodObject<{
29
29
  }>>;
30
30
  refund_monthly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
31
31
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
32
- completes_on_payment: zod.ZodBoolean;
33
32
  recurring_amount: zod.ZodOptional<zod.ZodString>;
34
33
  setup_amount: zod.ZodOptional<zod.ZodString>;
35
34
  charge_type: zod.ZodEnum<{
@@ -37,7 +37,6 @@ export const OrderItem = zod
37
37
  .string()
38
38
  .nullish()
39
39
  .describe("Prepaid items only: the plan's postpaid hourly price for this item's quantity before tax, frozen at\npurchase, used for time used short of a full month. Null when the plan has no postpaid price."),
40
- completes_on_payment: zod.boolean(),
41
40
  recurring_amount: zod.string().optional(),
42
41
  setup_amount: zod.string().optional(),
43
42
  charge_type: zod
@@ -29,7 +29,6 @@ export declare const OrderItemList: zod.ZodObject<{
29
29
  }>>;
30
30
  refund_monthly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
31
31
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
32
- completes_on_payment: zod.ZodBoolean;
33
32
  recurring_amount: zod.ZodOptional<zod.ZodString>;
34
33
  setup_amount: zod.ZodOptional<zod.ZodString>;
35
34
  charge_type: zod.ZodEnum<{
@@ -103,7 +103,6 @@ export declare const OrderList: zod.ZodObject<{
103
103
  }>>;
104
104
  refund_monthly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
105
105
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
106
- completes_on_payment: zod.ZodBoolean;
107
106
  recurring_amount: zod.ZodOptional<zod.ZodString>;
108
107
  setup_amount: zod.ZodOptional<zod.ZodString>;
109
108
  charge_type: zod.ZodEnum<{
@@ -685,8 +685,10 @@ export interface CreditGroup {
685
685
  * Account balance, credits, and unpaid charges are reported separately.
686
686
  */
687
687
  export interface AccountBalance {
688
- /** Balance minus pending balance returns, unbilled usage estimates and issued unpaid amounts. Credit grants are excluded; the result may be negative. */
688
+ /** Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes. */
689
689
  available_credit: Money;
690
+ /** Credit expected to pay unbilled_amount and due. Each charge is matched to grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is reserved or deducted until an invoice is paid, so credits still includes this amount. */
691
+ estimated_credit_applied: Money;
690
692
  /** Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance. */
691
693
  unbilled_amount: Money;
692
694
  billing_account_id: number;
@@ -2037,7 +2039,6 @@ export interface OrderItem {
2037
2039
  * @nullable
2038
2040
  */
2039
2041
  refund_hourly_amount?: string | null;
2040
- completes_on_payment: boolean;
2041
2042
  recurring_amount?: string;
2042
2043
  setup_amount?: string;
2043
2044
  /** The payment timing of the selected price. */
@@ -8,6 +8,7 @@
8
8
  import * as zod from "zod";
9
9
  export declare const AccountBalance: zod.ZodObject<{
10
10
  available_credit: zod.ZodString;
11
+ estimated_credit_applied: zod.ZodString;
11
12
  unbilled_amount: zod.ZodString;
12
13
  billing_account_id: zod.ZodInt;
13
14
  currency: zod.ZodString;
@@ -10,7 +10,8 @@ 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("Balance minus pending balance returns, unbilled usage estimates and issued unpaid amounts. Credit grants are excluded; the result may be negative."),
13
+ available_credit: Money.describe("Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes."),
14
+ estimated_credit_applied: Money.describe("Credit expected to pay unbilled_amount and due. Each charge is matched to grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is reserved or deducted until an invoice is paid, so credits still includes this amount."),
14
15
  unbilled_amount: Money.describe("Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance."),
15
16
  billing_account_id: zod.int(),
16
17
  currency: zod.string(),
@@ -102,7 +102,6 @@ export declare const Order: zod.ZodObject<{
102
102
  }>>;
103
103
  refund_monthly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
104
104
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
105
- completes_on_payment: zod.ZodBoolean;
106
105
  recurring_amount: zod.ZodOptional<zod.ZodString>;
107
106
  setup_amount: zod.ZodOptional<zod.ZodString>;
108
107
  charge_type: zod.ZodEnum<{
@@ -29,7 +29,6 @@ export declare const OrderItem: zod.ZodObject<{
29
29
  }>>;
30
30
  refund_monthly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
31
31
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
32
- completes_on_payment: zod.ZodBoolean;
33
32
  recurring_amount: zod.ZodOptional<zod.ZodString>;
34
33
  setup_amount: zod.ZodOptional<zod.ZodString>;
35
34
  charge_type: zod.ZodEnum<{
@@ -37,7 +37,6 @@ export const OrderItem = zod
37
37
  .string()
38
38
  .nullish()
39
39
  .describe("Prepaid items only: the plan's postpaid hourly price for this item's quantity before tax, frozen at\npurchase, used for time used short of a full month. Null when the plan has no postpaid price."),
40
- completes_on_payment: zod.boolean(),
41
40
  recurring_amount: zod.string().optional(),
42
41
  setup_amount: zod.string().optional(),
43
42
  charge_type: zod
@@ -29,7 +29,6 @@ export declare const OrderItemList: zod.ZodObject<{
29
29
  }>>;
30
30
  refund_monthly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
31
31
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
32
- completes_on_payment: zod.ZodBoolean;
33
32
  recurring_amount: zod.ZodOptional<zod.ZodString>;
34
33
  setup_amount: zod.ZodOptional<zod.ZodString>;
35
34
  charge_type: zod.ZodEnum<{
@@ -103,7 +103,6 @@ export declare const OrderList: zod.ZodObject<{
103
103
  }>>;
104
104
  refund_monthly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
105
105
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
106
- completes_on_payment: zod.ZodBoolean;
107
106
  recurring_amount: zod.ZodOptional<zod.ZodString>;
108
107
  setup_amount: zod.ZodOptional<zod.ZodString>;
109
108
  charge_type: zod.ZodEnum<{
@@ -1332,8 +1332,10 @@ export interface CreditGroup {
1332
1332
  * Account balance, credits, and unpaid charges are reported separately.
1333
1333
  */
1334
1334
  export interface AccountBalance {
1335
- /** Balance minus pending balance returns, unbilled usage estimates and issued unpaid amounts. Credit grants are excluded; the result may be negative. */
1335
+ /** Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes. */
1336
1336
  available_credit: Money;
1337
+ /** Credit expected to pay unbilled_amount and due. Each charge is matched to grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is reserved or deducted until an invoice is paid, so credits still includes this amount. */
1338
+ estimated_credit_applied: Money;
1337
1339
  /** Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance. */
1338
1340
  unbilled_amount: Money;
1339
1341
  billing_account_id: number;
@@ -2634,7 +2636,6 @@ export interface OrderItem {
2634
2636
  * @nullable
2635
2637
  */
2636
2638
  refund_hourly_amount?: string | null;
2637
- completes_on_payment: boolean;
2638
2639
  recurring_amount?: string;
2639
2640
  setup_amount?: string;
2640
2641
  /** The payment timing of the selected price. */
@@ -31,6 +31,7 @@
31
31
  import * as zod from "zod";
32
32
  export declare const AccountBalance: zod.ZodObject<{
33
33
  available_credit: zod.ZodString;
34
+ estimated_credit_applied: zod.ZodString;
34
35
  unbilled_amount: zod.ZodString;
35
36
  billing_account_id: zod.ZodInt;
36
37
  currency: zod.ZodString;
@@ -33,7 +33,8 @@ import { CreditGroup } from "./creditGroup.zod.js";
33
33
  import { Money } from "./money.zod.js";
34
34
  export const AccountBalance = zod
35
35
  .strictObject({
36
- 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."),
36
+ available_credit: Money.describe("Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes."),
37
+ estimated_credit_applied: Money.describe("Credit expected to pay unbilled_amount and due. Each charge is matched to grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is reserved or deducted until an invoice is paid, so credits still includes this amount."),
37
38
  unbilled_amount: Money.describe("Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance."),
38
39
  billing_account_id: zod.int(),
39
40
  currency: zod.string(),
@@ -125,7 +125,6 @@ export declare const Order: zod.ZodObject<{
125
125
  }>>;
126
126
  refund_monthly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
127
127
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
128
- completes_on_payment: zod.ZodBoolean;
129
128
  recurring_amount: zod.ZodOptional<zod.ZodString>;
130
129
  setup_amount: zod.ZodOptional<zod.ZodString>;
131
130
  charge_type: zod.ZodEnum<{
@@ -52,7 +52,6 @@ export declare const OrderItem: zod.ZodObject<{
52
52
  }>>;
53
53
  refund_monthly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
54
54
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
55
- completes_on_payment: zod.ZodBoolean;
56
55
  recurring_amount: zod.ZodOptional<zod.ZodString>;
57
56
  setup_amount: zod.ZodOptional<zod.ZodString>;
58
57
  charge_type: zod.ZodEnum<{
@@ -60,7 +60,6 @@ export const OrderItem = zod
60
60
  .string()
61
61
  .nullish()
62
62
  .describe("Prepaid items only: the plan's postpaid hourly price for this item's quantity before tax, frozen at\npurchase, used for time used short of a full month. Null when the plan has no postpaid price."),
63
- completes_on_payment: zod.boolean(),
64
63
  recurring_amount: zod.string().optional(),
65
64
  setup_amount: zod.string().optional(),
66
65
  charge_type: zod
@@ -52,7 +52,6 @@ export declare const OrderItemList: zod.ZodObject<{
52
52
  }>>;
53
53
  refund_monthly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
54
54
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
55
- completes_on_payment: zod.ZodBoolean;
56
55
  recurring_amount: zod.ZodOptional<zod.ZodString>;
57
56
  setup_amount: zod.ZodOptional<zod.ZodString>;
58
57
  charge_type: zod.ZodEnum<{
@@ -126,7 +126,6 @@ export declare const OrderList: zod.ZodObject<{
126
126
  }>>;
127
127
  refund_monthly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
128
128
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
129
- completes_on_payment: zod.ZodBoolean;
130
129
  recurring_amount: zod.ZodOptional<zod.ZodString>;
131
130
  setup_amount: zod.ZodOptional<zod.ZodString>;
132
131
  charge_type: zod.ZodEnum<{
@@ -3278,8 +3278,10 @@ export interface CreditGroup {
3278
3278
  * Account balance, credits, and unpaid charges are reported separately.
3279
3279
  */
3280
3280
  export interface AccountBalance {
3281
- /** Balance minus pending balance returns, unbilled usage estimates and issued unpaid amounts. Credit grants are excluded; the result may be negative. */
3281
+ /** Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes. */
3282
3282
  available_credit: Money;
3283
+ /** Credit expected to pay unbilled_amount and due. Each charge is matched to grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is reserved or deducted until an invoice is paid, so credits still includes this amount. */
3284
+ estimated_credit_applied: Money;
3283
3285
  /** Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance. */
3284
3286
  unbilled_amount: Money;
3285
3287
  billing_account_id: number;
@@ -4580,7 +4582,6 @@ export interface OrderItem {
4580
4582
  * @nullable
4581
4583
  */
4582
4584
  refund_hourly_amount?: string | null;
4583
- completes_on_payment: boolean;
4584
4585
  recurring_amount?: string;
4585
4586
  setup_amount?: string;
4586
4587
  /** The payment timing of the selected price. */
@@ -24,6 +24,7 @@
24
24
  import * as zod from "zod";
25
25
  export declare const AccountBalance: zod.ZodObject<{
26
26
  available_credit: zod.ZodString;
27
+ estimated_credit_applied: zod.ZodString;
27
28
  unbilled_amount: zod.ZodString;
28
29
  billing_account_id: zod.ZodInt;
29
30
  currency: zod.ZodString;
@@ -26,7 +26,8 @@ import { CreditGroup } from "./creditGroup.zod.js";
26
26
  import { Money } from "./money.zod.js";
27
27
  export const AccountBalance = zod
28
28
  .strictObject({
29
- 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."),
29
+ available_credit: Money.describe("Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes."),
30
+ estimated_credit_applied: Money.describe("Credit expected to pay unbilled_amount and due. Each charge is matched to grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is reserved or deducted until an invoice is paid, so credits still includes this amount."),
30
31
  unbilled_amount: Money.describe("Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance."),
31
32
  billing_account_id: zod.int(),
32
33
  currency: zod.string(),
@@ -118,7 +118,6 @@ export declare const Order: zod.ZodObject<{
118
118
  }>>;
119
119
  refund_monthly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
120
120
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
121
- completes_on_payment: zod.ZodBoolean;
122
121
  recurring_amount: zod.ZodOptional<zod.ZodString>;
123
122
  setup_amount: zod.ZodOptional<zod.ZodString>;
124
123
  charge_type: zod.ZodEnum<{
@@ -45,7 +45,6 @@ export declare const OrderItem: zod.ZodObject<{
45
45
  }>>;
46
46
  refund_monthly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
47
47
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
48
- completes_on_payment: zod.ZodBoolean;
49
48
  recurring_amount: zod.ZodOptional<zod.ZodString>;
50
49
  setup_amount: zod.ZodOptional<zod.ZodString>;
51
50
  charge_type: zod.ZodEnum<{
@@ -53,7 +53,6 @@ export const OrderItem = zod
53
53
  .string()
54
54
  .nullish()
55
55
  .describe("Prepaid items only: the plan's postpaid hourly price for this item's quantity before tax, frozen at\npurchase, used for time used short of a full month. Null when the plan has no postpaid price."),
56
- completes_on_payment: zod.boolean(),
57
56
  recurring_amount: zod.string().optional(),
58
57
  setup_amount: zod.string().optional(),
59
58
  charge_type: zod
@@ -45,7 +45,6 @@ export declare const OrderItemList: zod.ZodObject<{
45
45
  }>>;
46
46
  refund_monthly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
47
47
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
48
- completes_on_payment: zod.ZodBoolean;
49
48
  recurring_amount: zod.ZodOptional<zod.ZodString>;
50
49
  setup_amount: zod.ZodOptional<zod.ZodString>;
51
50
  charge_type: zod.ZodEnum<{
@@ -119,7 +119,6 @@ export declare const OrderList: zod.ZodObject<{
119
119
  }>>;
120
120
  refund_monthly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
121
121
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
122
- completes_on_payment: zod.ZodBoolean;
123
122
  recurring_amount: zod.ZodOptional<zod.ZodString>;
124
123
  setup_amount: zod.ZodOptional<zod.ZodString>;
125
124
  charge_type: zod.ZodEnum<{
@@ -1174,8 +1174,10 @@ export interface CreditGroup {
1174
1174
  * Account balance, credits, and unpaid charges are reported separately.
1175
1175
  */
1176
1176
  export interface AccountBalance {
1177
- /** Balance minus pending balance returns, unbilled usage estimates and issued unpaid amounts. Credit grants are excluded; the result may be negative. */
1177
+ /** Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes. */
1178
1178
  available_credit: Money;
1179
+ /** Credit expected to pay unbilled_amount and due. Each charge is matched to grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is reserved or deducted until an invoice is paid, so credits still includes this amount. */
1180
+ estimated_credit_applied: Money;
1179
1181
  /** Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance. */
1180
1182
  unbilled_amount: Money;
1181
1183
  billing_account_id: number;
@@ -2476,7 +2478,6 @@ export interface OrderItem {
2476
2478
  * @nullable
2477
2479
  */
2478
2480
  refund_hourly_amount?: string | null;
2479
- completes_on_payment: boolean;
2480
2481
  recurring_amount?: string;
2481
2482
  setup_amount?: string;
2482
2483
  /** The payment timing of the selected price. */
@@ -23,6 +23,7 @@
23
23
  import * as zod from "zod";
24
24
  export declare const AccountBalance: zod.ZodObject<{
25
25
  available_credit: zod.ZodString;
26
+ estimated_credit_applied: zod.ZodString;
26
27
  unbilled_amount: zod.ZodString;
27
28
  billing_account_id: zod.ZodInt;
28
29
  currency: zod.ZodString;
@@ -25,7 +25,8 @@ import { CreditGroup } from "./creditGroup.zod.js";
25
25
  import { Money } from "./money.zod.js";
26
26
  export const AccountBalance = zod
27
27
  .strictObject({
28
- 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."),
28
+ available_credit: Money.describe("Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes."),
29
+ estimated_credit_applied: Money.describe("Credit expected to pay unbilled_amount and due. Each charge is matched to grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is reserved or deducted until an invoice is paid, so credits still includes this amount."),
29
30
  unbilled_amount: Money.describe("Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance."),
30
31
  billing_account_id: zod.int(),
31
32
  currency: zod.string(),
@@ -117,7 +117,6 @@ export declare const Order: zod.ZodObject<{
117
117
  }>>;
118
118
  refund_monthly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
119
119
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
120
- completes_on_payment: zod.ZodBoolean;
121
120
  recurring_amount: zod.ZodOptional<zod.ZodString>;
122
121
  setup_amount: zod.ZodOptional<zod.ZodString>;
123
122
  charge_type: zod.ZodEnum<{
@@ -44,7 +44,6 @@ export declare const OrderItem: zod.ZodObject<{
44
44
  }>>;
45
45
  refund_monthly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
46
46
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
47
- completes_on_payment: zod.ZodBoolean;
48
47
  recurring_amount: zod.ZodOptional<zod.ZodString>;
49
48
  setup_amount: zod.ZodOptional<zod.ZodString>;
50
49
  charge_type: zod.ZodEnum<{
@@ -52,7 +52,6 @@ export const OrderItem = zod
52
52
  .string()
53
53
  .nullish()
54
54
  .describe("Prepaid items only: the plan's postpaid hourly price for this item's quantity before tax, frozen at\npurchase, used for time used short of a full month. Null when the plan has no postpaid price."),
55
- completes_on_payment: zod.boolean(),
56
55
  recurring_amount: zod.string().optional(),
57
56
  setup_amount: zod.string().optional(),
58
57
  charge_type: zod
@@ -44,7 +44,6 @@ export declare const OrderItemList: zod.ZodObject<{
44
44
  }>>;
45
45
  refund_monthly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
46
46
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
47
- completes_on_payment: zod.ZodBoolean;
48
47
  recurring_amount: zod.ZodOptional<zod.ZodString>;
49
48
  setup_amount: zod.ZodOptional<zod.ZodString>;
50
49
  charge_type: zod.ZodEnum<{
@@ -118,7 +118,6 @@ export declare const OrderList: zod.ZodObject<{
118
118
  }>>;
119
119
  refund_monthly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
120
120
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
121
- completes_on_payment: zod.ZodBoolean;
122
121
  recurring_amount: zod.ZodOptional<zod.ZodString>;
123
122
  setup_amount: zod.ZodOptional<zod.ZodString>;
124
123
  charge_type: zod.ZodEnum<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.123.0",
3
+ "version": "0.125.0",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {