@leaflow/sdk 0.135.0 → 0.136.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.
@@ -62,6 +62,13 @@ export interface QuoteItem {
62
62
  * error response; it never returns a partial quote with HTTP 200.
63
63
  */
64
64
  export interface Quote {
65
+ /**
66
+ * Whether the account's current balance and eligible credits cover immediate charges
67
+ * and the currency's minimum top-up for every new postpaid item. False preserves this
68
+ * complete price preview. Nothing is reserved; checkout rechecks funds. Prepaid
69
+ * purchases may also use an online payment method.
70
+ */
71
+ funds_sufficient: boolean;
65
72
  /** One line for each item the purchase would order, in the order it would order them. */
66
73
  items: QuoteItem[];
67
74
  /**
@@ -7,6 +7,7 @@
7
7
  */
8
8
  import * as zod from "zod";
9
9
  export declare const Quote: zod.ZodObject<{
10
+ funds_sufficient: zod.ZodBoolean;
10
11
  items: zod.ZodArray<zod.ZodObject<{
11
12
  plan_name: zod.ZodString;
12
13
  unit_amount: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>;
@@ -10,6 +10,9 @@ import { Money } from "./money.zod.js";
10
10
  import { QuoteItem } from "./quoteItem.zod.js";
11
11
  export const Quote = zod
12
12
  .strictObject({
13
+ funds_sufficient: zod
14
+ .boolean()
15
+ .describe("Whether the account's current balance and eligible credits cover immediate charges\nand the currency's minimum top-up for every new postpaid item. False preserves this\ncomplete price preview. Nothing is reserved; checkout rechecks funds. Prepaid\npurchases may also use an online payment method."),
13
16
  items: zod
14
17
  .array(QuoteItem)
15
18
  .describe("One line for each item the purchase would order, in the order it would order them."),
@@ -536,6 +536,13 @@ export interface QuoteItemDc1fddb {
536
536
  * error response; it never returns a partial quote with HTTP 200.
537
537
  */
538
538
  export interface Quote {
539
+ /**
540
+ * Whether the account's current balance and eligible credits cover immediate charges
541
+ * and the currency's minimum top-up for every new postpaid item. False preserves this
542
+ * complete price preview. Nothing is reserved; checkout rechecks funds. Prepaid
543
+ * purchases may also use an online payment method.
544
+ */
545
+ funds_sufficient: boolean;
539
546
  /** One line for each item the purchase would order, in the order it would order them. */
540
547
  items: QuoteItemDc1fddb[];
541
548
  /**
@@ -30,6 +30,7 @@
30
30
  */
31
31
  import * as zod from "zod";
32
32
  export declare const Quote: zod.ZodObject<{
33
+ funds_sufficient: zod.ZodBoolean;
33
34
  items: zod.ZodArray<zod.ZodObject<{
34
35
  plan_name: zod.ZodString;
35
36
  unit_amount: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>;
@@ -33,6 +33,9 @@ import { Money } from "./money.zod.js";
33
33
  import { QuoteItemDc1fddb } from "./quoteItemDc1fddb.zod.js";
34
34
  export const Quote = zod
35
35
  .strictObject({
36
+ funds_sufficient: zod
37
+ .boolean()
38
+ .describe("Whether the account's current balance and eligible credits cover immediate charges\nand the currency's minimum top-up for every new postpaid item. False preserves this\ncomplete price preview. Nothing is reserved; checkout rechecks funds. Prepaid\npurchases may also use an online payment method."),
36
39
  items: zod
37
40
  .array(QuoteItemDc1fddb)
38
41
  .describe("One line for each item the purchase would order, in the order it would order them."),
@@ -2347,6 +2347,13 @@ export interface QuoteItem {
2347
2347
  * error response; it never returns a partial quote with HTTP 200.
2348
2348
  */
2349
2349
  export interface Quote {
2350
+ /**
2351
+ * Whether the account's current balance and eligible credits cover immediate charges
2352
+ * and the currency's minimum top-up for every new postpaid item. False preserves this
2353
+ * complete price preview. Nothing is reserved; checkout rechecks funds. Prepaid
2354
+ * purchases may also use an online payment method.
2355
+ */
2356
+ funds_sufficient: boolean;
2350
2357
  /** One line for each item the purchase would order, in the order it would order them. */
2351
2358
  items: QuoteItem[];
2352
2359
  /**
@@ -23,6 +23,7 @@
23
23
  */
24
24
  import * as zod from "zod";
25
25
  export declare const Quote: zod.ZodObject<{
26
+ funds_sufficient: zod.ZodBoolean;
26
27
  items: zod.ZodArray<zod.ZodObject<{
27
28
  plan_name: zod.ZodString;
28
29
  unit_amount: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>;
@@ -26,6 +26,9 @@ import { Money } from "./money.zod.js";
26
26
  import { QuoteItem } from "./quoteItem.zod.js";
27
27
  export const Quote = zod
28
28
  .strictObject({
29
+ funds_sufficient: zod
30
+ .boolean()
31
+ .describe("Whether the account's current balance and eligible credits cover immediate charges\nand the currency's minimum top-up for every new postpaid item. False preserves this\ncomplete price preview. Nothing is reserved; checkout rechecks funds. Prepaid\npurchases may also use an online payment method."),
29
32
  items: zod
30
33
  .array(QuoteItem)
31
34
  .describe("One line for each item the purchase would order, in the order it would order them."),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.135.0",
3
+ "version": "0.136.0",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {