@leaflow/sdk 0.0.0-dev.544.gc6fb74a → 0.0.0-dev.548.ga512fa1
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/type/checkout/v1/generated/models.d.ts +2 -2
- package/dist/billing/type/checkout/v1/generated/validators/checkoutOptions.zod.js +1 -1
- package/dist/billing/v1/generated/functions.d.ts +2 -2
- package/dist/billing/v1/generated/functions.js +2 -2
- package/dist/billing/v1/generated/models.d.ts +29 -7
- package/dist/billing/v1/generated/schemas.zod.d.ts +2 -2
- package/dist/billing/v1/generated/schemas.zod.js +2 -2
- package/dist/billing/v1/generated/validators/checkoutOptions.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSession.zod.d.ts +8 -107
- package/dist/billing/v1/generated/validators/checkoutSessionItem.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/checkoutSessionItem.zod.js +4 -0
- package/dist/billing/v1/generated/validators/checkoutSessionList.zod.d.ts +8 -107
- package/dist/billing/v1/generated/validators/checkoutSessionResult.zod.d.ts +9 -107
- package/dist/billing/v1/generated/validators/checkoutSessionSubscription.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/discount.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoiceItem.zod.js +4 -1
- package/dist/billing/v1/generated/validators/order.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/orderItem.zod.js +4 -0
- package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/orderList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/plan.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/plan.zod.js +4 -0
- package/dist/billing/v1/generated/validators/planList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/scheduledChange.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/scheduledChange.zod.js +4 -0
- package/dist/billing/v1/generated/validators/subscription.zod.d.ts +2 -0
- package/dist/billing/v1/generated/validators/subscriptionItem.zod.d.ts +2 -0
- package/dist/billing/v1/generated/validators/subscriptionItem.zod.js +4 -0
- package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +2 -0
- package/dist/billing/v1/generated/validators/trialEndBehavior.zod.js +1 -1
- package/dist/billing/v1/generated/validators/trialGrant.zod.d.ts +7 -107
- package/dist/billing/v1/generated/validators/trialGrantList.zod.d.ts +7 -107
- package/dist/billing/v1/generated/validators/trialOffer.zod.d.ts +7 -107
- package/dist/billing/v1/generated/validators/trialOffer.zod.js +5 -3
- package/dist/billing/v1/generated/validators/trialOfferItem.zod.d.ts +19 -0
- package/dist/billing/v1/generated/validators/trialOfferItem.zod.js +21 -0
- package/dist/canopy/v1/generated/models.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/checkoutOptions.zod.js +1 -1
- package/dist/compute/v2/generated/functions.d.ts +6 -6
- package/dist/compute/v2/generated/functions.js +6 -6
- package/dist/compute/v2/generated/models.d.ts +2 -2
- package/dist/compute/v2/generated/schemas.zod.d.ts +6 -6
- package/dist/compute/v2/generated/schemas.zod.js +6 -6
- package/dist/compute/v2/generated/validators/checkoutOptions.zod.js +1 -1
- package/dist/membership/v1/generated/models.d.ts +2 -2
- package/dist/membership/v1/generated/validators/checkoutOptions.zod.js +1 -1
- package/package.json +1 -1
|
@@ -62,8 +62,8 @@ export interface CheckoutOptions {
|
|
|
62
62
|
auto_renew?: boolean;
|
|
63
63
|
/**
|
|
64
64
|
* A free trial grant of the paying billing account that the customer chose to use. The first new
|
|
65
|
-
* subscription of the purchase whose lines the grant's offer
|
|
66
|
-
* no trial of its own, opens with the offer's free trial. Accepted only in automatic mode; with deferred it is refused with
|
|
65
|
+
* subscription of the purchase whose lines are all of plans the grant's offer lists, within each plan's
|
|
66
|
+
* max_quantity, and that has a licensed line and no trial of its own, opens with the offer's free trial. Accepted only in automatic mode; with deferred it is refused with
|
|
67
67
|
* HTTP 400, and the grant is chosen when completing the checkout through Billing. Refused with
|
|
68
68
|
* BILLING_TRIAL_GRANT_INAPPLICABLE when no subscription qualifies or the grant cannot be used now.
|
|
69
69
|
*/
|
|
@@ -30,6 +30,6 @@ export const CheckoutOptions = zod
|
|
|
30
30
|
trial_grant_id: zod
|
|
31
31
|
.uuid()
|
|
32
32
|
.optional()
|
|
33
|
-
.describe("A free trial grant of the paying billing account that the customer chose to use. The first new\nsubscription of the purchase whose lines the grant's offer
|
|
33
|
+
.describe("A free trial grant of the paying billing account that the customer chose to use. The first new\nsubscription of the purchase whose lines are all of plans the grant's offer lists, within each plan's\nmax_quantity, and that has a licensed line and no trial of its own, opens with the offer's free trial. Accepted only in automatic mode; with deferred it is refused with\nHTTP 400, and the grant is chosen when completing the checkout through Billing. Refused with\nBILLING_TRIAL_GRANT_INAPPLICABLE when no subscription qualifies or the grant cannot be used now."),
|
|
34
34
|
})
|
|
35
35
|
.describe("Shared checkout choices for a product purchase. The service may set them or forward its client's\nchoices unchanged; it does not need to read them, and Billing validates them. Omitting this object or\nmode selects automatic checkout. Each purchase creates its own Checkout Session. Promotion codes are supplied\nonly to Billing. A service may retain a failed creation record when Billing refuses a purchase; no\ninfrastructure is created for that refusal.");
|
|
@@ -1618,8 +1618,8 @@ export declare const getUpdateCheckoutSessionUrl: (checkoutSessionId: string) =>
|
|
|
1618
1618
|
*
|
|
1619
1619
|
* A code that does not exist or cannot be applied is refused with its promotion error, and a grant that cannot be
|
|
1620
1620
|
* used with `BILLING_TRIAL_GRANT_INAPPLICABLE`; the session is then unchanged. A grant applies to the first new
|
|
1621
|
-
* subscription of the session whose lines
|
|
1622
|
-
* own. `auto_renew` turns automatic renewal on or off for every subscription with licensed items the session
|
|
1621
|
+
* subscription of the session whose lines are all of plans its offer lists, within each plan's `max_quantity`,
|
|
1622
|
+
* and that has a licensed line and no trial of its own. `auto_renew` turns automatic renewal on or off for every subscription with licensed items the session
|
|
1623
1623
|
* opens; for a free trial, it decides whether the trial converts to paid when it ends. A session that is not
|
|
1624
1624
|
* open is refused with `BILLING_CHECKOUT_SESSION_COMPLETE` or `BILLING_CHECKOUT_SESSION_EXPIRED`.
|
|
1625
1625
|
*
|
|
@@ -1805,8 +1805,8 @@ export const getUpdateCheckoutSessionUrl = (checkoutSessionId) => {
|
|
|
1805
1805
|
*
|
|
1806
1806
|
* A code that does not exist or cannot be applied is refused with its promotion error, and a grant that cannot be
|
|
1807
1807
|
* used with `BILLING_TRIAL_GRANT_INAPPLICABLE`; the session is then unchanged. A grant applies to the first new
|
|
1808
|
-
* subscription of the session whose lines
|
|
1809
|
-
* own. `auto_renew` turns automatic renewal on or off for every subscription with licensed items the session
|
|
1808
|
+
* subscription of the session whose lines are all of plans its offer lists, within each plan's `max_quantity`,
|
|
1809
|
+
* and that has a licensed line and no trial of its own. `auto_renew` turns automatic renewal on or off for every subscription with licensed items the session
|
|
1810
1810
|
* opens; for a free trial, it decides whether the trial converts to paid when it ends. A session that is not
|
|
1811
1811
|
* open is refused with `BILLING_CHECKOUT_SESSION_COMPLETE` or `BILLING_CHECKOUT_SESSION_EXPIRED`.
|
|
1812
1812
|
*
|
|
@@ -1147,6 +1147,7 @@ export interface InvoiceItem {
|
|
|
1147
1147
|
resource_id?: string;
|
|
1148
1148
|
/** The line's wording as recorded when the invoice was issued. */
|
|
1149
1149
|
description: string;
|
|
1150
|
+
/** What `quantity` counts: the plan's unit label for a licensed purchase line, such as GiB, or the meter's unit for a usage line. Empty when there is none. */
|
|
1150
1151
|
unit?: string;
|
|
1151
1152
|
quantity?: string;
|
|
1152
1153
|
/** The part covered by an included allowance, and therefore not charged. */
|
|
@@ -1458,7 +1459,7 @@ export interface TrialEndBehavior {
|
|
|
1458
1459
|
/** What happens when the trial ends while automatic renewal is off. With it on, the first paid period is charged to the account's funds or saved payment method, and this applies only when that charge fails. `cancel`: the subscription ends and its resources are released. `pause`: service stops, and renewing before the retention period ends restores it, with the first paid period starting at payment. `create_invoice`: as `pause`, and an invoice for the first paid period is issued to pay. */
|
|
1459
1460
|
missing_payment_method: TrialEndBehaviorMissingPaymentMethod;
|
|
1460
1461
|
/**
|
|
1461
|
-
* How long a subscription stopped at the end of its trial keeps its resources before they are reclaimed; null for the platform's retention period.
|
|
1462
|
+
* How long a subscription stopped at the end of its trial keeps its resources before they are reclaimed; null for the platform's retention period. Must be null with `cancel`, which releases the resources when the trial ends.
|
|
1462
1463
|
* @nullable
|
|
1463
1464
|
*/
|
|
1464
1465
|
retention_seconds: number | null;
|
|
@@ -1510,6 +1511,8 @@ export interface ScheduledChange {
|
|
|
1510
1511
|
plan_name: string;
|
|
1511
1512
|
price_id: string;
|
|
1512
1513
|
quantity: string;
|
|
1514
|
+
/** The plan's unit label when the change was placed, which a licensed quantity counts, such as GiB or Mbps. Absent for a metered item and when the plan had none. */
|
|
1515
|
+
unit_label?: string;
|
|
1513
1516
|
/** The target licensed renewal amount before tax. */
|
|
1514
1517
|
recurring_amount: string;
|
|
1515
1518
|
currency: string;
|
|
@@ -1537,6 +1540,8 @@ export interface SubscriptionItem {
|
|
|
1537
1540
|
/** The dimension values of what was bought, such as region and instance type. Empty when the purchase gave none. */
|
|
1538
1541
|
dimensions: SubscriptionItemDimensions;
|
|
1539
1542
|
quantity: string;
|
|
1543
|
+
/** The plan's current unit label, which a licensed item's quantity counts, such as GiB or Mbps. Absent for a metered item and when the plan has none. */
|
|
1544
|
+
unit_label?: string;
|
|
1540
1545
|
/** This item's renewal amount, after continuing discounts and before tax. A pending item shows base terms until paying the order fixes any new discount. Absent for metered and one-time items. */
|
|
1541
1546
|
recurring_amount?: string;
|
|
1542
1547
|
/** Whether new account discounts may apply to this item in future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them. */
|
|
@@ -1832,8 +1837,8 @@ export interface CheckoutOptions {
|
|
|
1832
1837
|
auto_renew?: boolean;
|
|
1833
1838
|
/**
|
|
1834
1839
|
* A free trial grant of the paying billing account that the customer chose to use. The first new
|
|
1835
|
-
* subscription of the purchase whose lines the grant's offer
|
|
1836
|
-
* no trial of its own, opens with the offer's free trial. Accepted only in automatic mode; with deferred it is refused with
|
|
1840
|
+
* subscription of the purchase whose lines are all of plans the grant's offer lists, within each plan's
|
|
1841
|
+
* max_quantity, and that has a licensed line and no trial of its own, opens with the offer's free trial. Accepted only in automatic mode; with deferred it is refused with
|
|
1837
1842
|
* HTTP 400, and the grant is chosen when completing the checkout through Billing. Refused with
|
|
1838
1843
|
* BILLING_TRIAL_GRANT_INAPPLICABLE when no subscription qualifies or the grant cannot be used now.
|
|
1839
1844
|
*/
|
|
@@ -1896,7 +1901,18 @@ export interface CheckoutSessionDiscount {
|
|
|
1896
1901
|
eligibility: CheckoutSessionDiscountEligibility;
|
|
1897
1902
|
}
|
|
1898
1903
|
/**
|
|
1899
|
-
*
|
|
1904
|
+
* A plan a subscription on the trial may hold, and how much of it.
|
|
1905
|
+
*/
|
|
1906
|
+
export interface TrialOfferItem {
|
|
1907
|
+
/** The plan, which may since have been archived. */
|
|
1908
|
+
plan: ObjectIdentity;
|
|
1909
|
+
/** The most the subscription's licensed items of this plan may hold together, in the plan's quantity unit, such as gibibytes of storage or megabits per second of bandwidth. Metered items of the plan are charged as usual and do not count towards it. */
|
|
1910
|
+
max_quantity: string;
|
|
1911
|
+
/** The plan's unit label, which `max_quantity` counts, such as GiB or Mbps. Absent when the plan has none. */
|
|
1912
|
+
unit_label?: string;
|
|
1913
|
+
}
|
|
1914
|
+
/**
|
|
1915
|
+
* The terms of a free trial. The licensed items of the subscription it is used for are free for `trial_period_days`, while metered usage is charged as usual. The subscription holds only the listed plans and no more of each than its `max_quantity`, both when it is bought and while the trial lasts. When the trial ends it converts to paid if automatic renewal is on; otherwise `trial_settings` applies.
|
|
1900
1916
|
*/
|
|
1901
1917
|
export interface TrialOffer {
|
|
1902
1918
|
id: string;
|
|
@@ -1908,8 +1924,8 @@ export interface TrialOffer {
|
|
|
1908
1924
|
*/
|
|
1909
1925
|
trial_period_days: number;
|
|
1910
1926
|
trial_settings: TrialSettings;
|
|
1911
|
-
/** The
|
|
1912
|
-
|
|
1927
|
+
/** The plans a subscription on the trial may hold. An offer without items applies to no purchase. */
|
|
1928
|
+
items: TrialOfferItem[];
|
|
1913
1929
|
}
|
|
1914
1930
|
/**
|
|
1915
1931
|
* `scheduled` before valid_from, `available` to be chosen at checkout, `redeemed` once used for a subscription, `expired` after valid_until without being used, or `voided` once withdrawn.
|
|
@@ -2052,6 +2068,8 @@ export interface CheckoutSessionItem {
|
|
|
2052
2068
|
*/
|
|
2053
2069
|
interval_count: number | null;
|
|
2054
2070
|
quantity: string;
|
|
2071
|
+
/** The plan's unit label, which a licensed line's quantity counts, such as GiB or Mbps. A completed session shows the label its order was placed with. Absent for a metered line and when the plan has none. */
|
|
2072
|
+
unit_label?: string;
|
|
2055
2073
|
/** The dimension values of what is bought, such as region and instance type. */
|
|
2056
2074
|
dimensions: CheckoutSessionItemDimensions;
|
|
2057
2075
|
/**
|
|
@@ -2652,6 +2670,8 @@ export interface OrderItem {
|
|
|
2652
2670
|
/** The name when bought. */
|
|
2653
2671
|
plan_name: string;
|
|
2654
2672
|
quantity: string;
|
|
2673
|
+
/** The plan's unit label when the line was placed, which a licensed line's quantity counts, such as GiB or Mbps. Absent for a metered line and when the plan had none. */
|
|
2674
|
+
unit_label?: string;
|
|
2655
2675
|
/** The unit amount of the price the line is charged under. Absent for a tiered price, and for an immediate change, which is charged as `gross_amount` describes. */
|
|
2656
2676
|
unit_amount?: Money;
|
|
2657
2677
|
/**
|
|
@@ -2784,7 +2804,7 @@ export interface Discount {
|
|
|
2784
2804
|
/** For a percentage discount, out of one hundred. */
|
|
2785
2805
|
percent_off?: string;
|
|
2786
2806
|
amount?: Money;
|
|
2787
|
-
/**
|
|
2807
|
+
/** The most one purchase is reduced by, for a percentage, price override or free-setup discount. */
|
|
2788
2808
|
max_discount?: Money;
|
|
2789
2809
|
currency?: string;
|
|
2790
2810
|
/** What it may pay for. Absent means anything on the account, including setup fees and usage. */
|
|
@@ -2932,6 +2952,8 @@ export interface Plan {
|
|
|
2932
2952
|
product_id: ProductId;
|
|
2933
2953
|
name: string;
|
|
2934
2954
|
description?: string;
|
|
2955
|
+
/** What a licensed quantity of the plan counts, as shown next to it, such as GiB or Mbps. Absent when the plan has none. Metered usage is measured in its meter's unit instead. */
|
|
2956
|
+
unit_label?: string;
|
|
2935
2957
|
}
|
|
2936
2958
|
export interface PlanList {
|
|
2937
2959
|
items: Plan[];
|
|
@@ -1007,8 +1007,8 @@ export declare const GetCheckoutSessionParams: zod.ZodObject<{
|
|
|
1007
1007
|
*
|
|
1008
1008
|
* A code that does not exist or cannot be applied is refused with its promotion error, and a grant that cannot be
|
|
1009
1009
|
* used with `BILLING_TRIAL_GRANT_INAPPLICABLE`; the session is then unchanged. A grant applies to the first new
|
|
1010
|
-
* subscription of the session whose lines
|
|
1011
|
-
* own. `auto_renew` turns automatic renewal on or off for every subscription with licensed items the session
|
|
1010
|
+
* subscription of the session whose lines are all of plans its offer lists, within each plan's `max_quantity`,
|
|
1011
|
+
* and that has a licensed line and no trial of its own. `auto_renew` turns automatic renewal on or off for every subscription with licensed items the session
|
|
1012
1012
|
* opens; for a free trial, it decides whether the trial converts to paid when it ends. A session that is not
|
|
1013
1013
|
* open is refused with `BILLING_CHECKOUT_SESSION_COMPLETE` or `BILLING_CHECKOUT_SESSION_EXPIRED`.
|
|
1014
1014
|
*
|
|
@@ -1272,8 +1272,8 @@ export const GetCheckoutSessionParams = zod.strictObject({
|
|
|
1272
1272
|
*
|
|
1273
1273
|
* A code that does not exist or cannot be applied is refused with its promotion error, and a grant that cannot be
|
|
1274
1274
|
* used with `BILLING_TRIAL_GRANT_INAPPLICABLE`; the session is then unchanged. A grant applies to the first new
|
|
1275
|
-
* subscription of the session whose lines
|
|
1276
|
-
* own. `auto_renew` turns automatic renewal on or off for every subscription with licensed items the session
|
|
1275
|
+
* subscription of the session whose lines are all of plans its offer lists, within each plan's `max_quantity`,
|
|
1276
|
+
* and that has a licensed line and no trial of its own. `auto_renew` turns automatic renewal on or off for every subscription with licensed items the session
|
|
1277
1277
|
* opens; for a free trial, it decides whether the trial converts to paid when it ends. A session that is not
|
|
1278
1278
|
* open is refused with `BILLING_CHECKOUT_SESSION_COMPLETE` or `BILLING_CHECKOUT_SESSION_EXPIRED`.
|
|
1279
1279
|
*
|
|
@@ -30,6 +30,6 @@ export const CheckoutOptions = zod
|
|
|
30
30
|
trial_grant_id: zod
|
|
31
31
|
.uuid()
|
|
32
32
|
.optional()
|
|
33
|
-
.describe("A free trial grant of the paying billing account that the customer chose to use. The first new\nsubscription of the purchase whose lines the grant's offer
|
|
33
|
+
.describe("A free trial grant of the paying billing account that the customer chose to use. The first new\nsubscription of the purchase whose lines are all of plans the grant's offer lists, within each plan's\nmax_quantity, and that has a licensed line and no trial of its own, opens with the offer's free trial. Accepted only in automatic mode; with deferred it is refused with\nHTTP 400, and the grant is chosen when completing the checkout through Billing. Refused with\nBILLING_TRIAL_GRANT_INAPPLICABLE when no subscription qualifies or the grant cannot be used now."),
|
|
34
34
|
})
|
|
35
35
|
.describe("Shared checkout choices for a product purchase. The service may set them or forward its client's\nchoices unchanged; it does not need to read them, and Billing validates them. Omitting this object or\nmode selects automatic checkout. Each purchase creates its own Checkout Session. Promotion codes are supplied\nonly to Billing. A service may retain a failed creation record when Billing refuses a purchase; no\ninfrastructure is created for that refusal.");
|
|
@@ -100,115 +100,15 @@ export declare const CheckoutSession: zod.ZodObject<{
|
|
|
100
100
|
retention_seconds: zod.ZodNullable<zod.ZodInt>;
|
|
101
101
|
}, zod.z.core.$strict>;
|
|
102
102
|
}, zod.z.core.$strict>;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
name: zod.ZodString;
|
|
107
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
108
|
-
}, zod.z.core.$strict>>>;
|
|
109
|
-
plans: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
110
|
-
id: zod.ZodUUID;
|
|
111
|
-
name: zod.ZodString;
|
|
112
|
-
active: zod.ZodBoolean;
|
|
113
|
-
}, zod.z.core.$strict>>>;
|
|
114
|
-
prices: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
115
|
-
product: zod.ZodObject<{
|
|
116
|
-
id: zod.ZodString;
|
|
117
|
-
name: zod.ZodString;
|
|
118
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
119
|
-
}, zod.z.core.$strict>;
|
|
120
|
-
plan: zod.ZodObject<{
|
|
121
|
-
lookup_key: zod.ZodOptional<zod.ZodString>;
|
|
122
|
-
id: zod.ZodUUID;
|
|
123
|
-
name: zod.ZodString;
|
|
124
|
-
}, zod.z.core.$strict>;
|
|
125
|
-
billing_scheme: zod.ZodOptional<zod.ZodEnum<{
|
|
126
|
-
per_unit: "per_unit";
|
|
127
|
-
tiered: "tiered";
|
|
128
|
-
}>>;
|
|
129
|
-
unit_quantity: zod.ZodString;
|
|
130
|
-
id: zod.ZodUUID;
|
|
131
|
-
currency: zod.ZodString;
|
|
132
|
-
type: zod.ZodEnum<{
|
|
133
|
-
one_time: "one_time";
|
|
134
|
-
recurring: "recurring";
|
|
135
|
-
}>;
|
|
136
|
-
usage_type: zod.ZodEnum<{
|
|
137
|
-
licensed: "licensed";
|
|
138
|
-
metered: "metered";
|
|
139
|
-
}>;
|
|
140
|
-
interval: zod.ZodEnum<{
|
|
141
|
-
none: "none";
|
|
142
|
-
day: "day";
|
|
143
|
-
month: "month";
|
|
144
|
-
year: "year";
|
|
145
|
-
}>;
|
|
146
|
-
interval_count: zod.ZodOptional<zod.ZodInt>;
|
|
147
|
-
unit_amount: zod.ZodOptional<zod.ZodString>;
|
|
148
|
-
active: zod.ZodBoolean;
|
|
149
|
-
}, zod.z.core.$strict>>>;
|
|
150
|
-
price_types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
151
|
-
one_time: "one_time";
|
|
152
|
-
recurring: "recurring";
|
|
153
|
-
}>>>;
|
|
154
|
-
usage_types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
155
|
-
licensed: "licensed";
|
|
156
|
-
metered: "metered";
|
|
157
|
-
}>>>;
|
|
158
|
-
operations: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
159
|
-
new: "new";
|
|
160
|
-
renew: "renew";
|
|
161
|
-
modify: "modify";
|
|
162
|
-
}>>>;
|
|
163
|
-
min_term_months: zod.ZodOptional<zod.ZodInt>;
|
|
164
|
-
max_term_months: zod.ZodOptional<zod.ZodInt>;
|
|
165
|
-
excluded_products: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
166
|
-
id: zod.ZodString;
|
|
167
|
-
name: zod.ZodString;
|
|
168
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
169
|
-
}, zod.z.core.$strict>>>;
|
|
170
|
-
excluded_plans: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
103
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
104
|
+
plan: zod.ZodObject<{
|
|
105
|
+
lookup_key: zod.ZodOptional<zod.ZodString>;
|
|
171
106
|
id: zod.ZodUUID;
|
|
172
107
|
name: zod.ZodString;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
id: zod.ZodString;
|
|
178
|
-
name: zod.ZodString;
|
|
179
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
180
|
-
}, zod.z.core.$strict>;
|
|
181
|
-
plan: zod.ZodObject<{
|
|
182
|
-
lookup_key: zod.ZodOptional<zod.ZodString>;
|
|
183
|
-
id: zod.ZodUUID;
|
|
184
|
-
name: zod.ZodString;
|
|
185
|
-
}, zod.z.core.$strict>;
|
|
186
|
-
billing_scheme: zod.ZodOptional<zod.ZodEnum<{
|
|
187
|
-
per_unit: "per_unit";
|
|
188
|
-
tiered: "tiered";
|
|
189
|
-
}>>;
|
|
190
|
-
unit_quantity: zod.ZodString;
|
|
191
|
-
id: zod.ZodUUID;
|
|
192
|
-
currency: zod.ZodString;
|
|
193
|
-
type: zod.ZodEnum<{
|
|
194
|
-
one_time: "one_time";
|
|
195
|
-
recurring: "recurring";
|
|
196
|
-
}>;
|
|
197
|
-
usage_type: zod.ZodEnum<{
|
|
198
|
-
licensed: "licensed";
|
|
199
|
-
metered: "metered";
|
|
200
|
-
}>;
|
|
201
|
-
interval: zod.ZodEnum<{
|
|
202
|
-
none: "none";
|
|
203
|
-
day: "day";
|
|
204
|
-
month: "month";
|
|
205
|
-
year: "year";
|
|
206
|
-
}>;
|
|
207
|
-
interval_count: zod.ZodOptional<zod.ZodInt>;
|
|
208
|
-
unit_amount: zod.ZodOptional<zod.ZodString>;
|
|
209
|
-
active: zod.ZodBoolean;
|
|
210
|
-
}, zod.z.core.$strict>>>;
|
|
211
|
-
}, zod.z.core.$strict>;
|
|
108
|
+
}, zod.z.core.$strict>;
|
|
109
|
+
max_quantity: zod.ZodString;
|
|
110
|
+
unit_label: zod.ZodOptional<zod.ZodString>;
|
|
111
|
+
}, zod.z.core.$strict>>;
|
|
212
112
|
}, zod.z.core.$strict>;
|
|
213
113
|
status: zod.ZodEnum<{
|
|
214
114
|
scheduled: "scheduled";
|
|
@@ -296,6 +196,7 @@ export declare const CheckoutSession: zod.ZodObject<{
|
|
|
296
196
|
}>;
|
|
297
197
|
interval_count: zod.ZodNullable<zod.ZodInt>;
|
|
298
198
|
quantity: zod.ZodString;
|
|
199
|
+
unit_label: zod.ZodOptional<zod.ZodString>;
|
|
299
200
|
dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
|
300
201
|
periods: zod.ZodNullable<zod.ZodInt>;
|
|
301
202
|
unit_amount: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>;
|
|
@@ -30,6 +30,7 @@ export declare const CheckoutSessionItem: zod.ZodObject<{
|
|
|
30
30
|
}>;
|
|
31
31
|
interval_count: zod.ZodNullable<zod.ZodInt>;
|
|
32
32
|
quantity: zod.ZodString;
|
|
33
|
+
unit_label: zod.ZodOptional<zod.ZodString>;
|
|
33
34
|
dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
|
34
35
|
periods: zod.ZodNullable<zod.ZodInt>;
|
|
35
36
|
unit_amount: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>;
|
|
@@ -43,6 +43,10 @@ export const CheckoutSessionItem = zod
|
|
|
43
43
|
.nullable()
|
|
44
44
|
.describe("Periods per billing cycle of a recurring licensed price; null otherwise."),
|
|
45
45
|
quantity: zod.string(),
|
|
46
|
+
unit_label: zod
|
|
47
|
+
.string()
|
|
48
|
+
.optional()
|
|
49
|
+
.describe("The plan's unit label, which a licensed line's quantity counts, such as GiB or Mbps. A completed session shows the label its order was placed with. Absent for a metered line and when the plan has none."),
|
|
46
50
|
dimensions: zod
|
|
47
51
|
.record(zod.string(), zod.string())
|
|
48
52
|
.describe("The dimension values of what is bought, such as region and instance type."),
|
|
@@ -101,115 +101,15 @@ export declare const CheckoutSessionList: zod.ZodObject<{
|
|
|
101
101
|
retention_seconds: zod.ZodNullable<zod.ZodInt>;
|
|
102
102
|
}, zod.z.core.$strict>;
|
|
103
103
|
}, zod.z.core.$strict>;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
name: zod.ZodString;
|
|
108
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
109
|
-
}, zod.z.core.$strict>>>;
|
|
110
|
-
plans: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
111
|
-
id: zod.ZodUUID;
|
|
112
|
-
name: zod.ZodString;
|
|
113
|
-
active: zod.ZodBoolean;
|
|
114
|
-
}, zod.z.core.$strict>>>;
|
|
115
|
-
prices: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
116
|
-
product: zod.ZodObject<{
|
|
117
|
-
id: zod.ZodString;
|
|
118
|
-
name: zod.ZodString;
|
|
119
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
120
|
-
}, zod.z.core.$strict>;
|
|
121
|
-
plan: zod.ZodObject<{
|
|
122
|
-
lookup_key: zod.ZodOptional<zod.ZodString>;
|
|
123
|
-
id: zod.ZodUUID;
|
|
124
|
-
name: zod.ZodString;
|
|
125
|
-
}, zod.z.core.$strict>;
|
|
126
|
-
billing_scheme: zod.ZodOptional<zod.ZodEnum<{
|
|
127
|
-
per_unit: "per_unit";
|
|
128
|
-
tiered: "tiered";
|
|
129
|
-
}>>;
|
|
130
|
-
unit_quantity: zod.ZodString;
|
|
131
|
-
id: zod.ZodUUID;
|
|
132
|
-
currency: zod.ZodString;
|
|
133
|
-
type: zod.ZodEnum<{
|
|
134
|
-
one_time: "one_time";
|
|
135
|
-
recurring: "recurring";
|
|
136
|
-
}>;
|
|
137
|
-
usage_type: zod.ZodEnum<{
|
|
138
|
-
licensed: "licensed";
|
|
139
|
-
metered: "metered";
|
|
140
|
-
}>;
|
|
141
|
-
interval: zod.ZodEnum<{
|
|
142
|
-
none: "none";
|
|
143
|
-
day: "day";
|
|
144
|
-
month: "month";
|
|
145
|
-
year: "year";
|
|
146
|
-
}>;
|
|
147
|
-
interval_count: zod.ZodOptional<zod.ZodInt>;
|
|
148
|
-
unit_amount: zod.ZodOptional<zod.ZodString>;
|
|
149
|
-
active: zod.ZodBoolean;
|
|
150
|
-
}, zod.z.core.$strict>>>;
|
|
151
|
-
price_types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
152
|
-
one_time: "one_time";
|
|
153
|
-
recurring: "recurring";
|
|
154
|
-
}>>>;
|
|
155
|
-
usage_types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
156
|
-
licensed: "licensed";
|
|
157
|
-
metered: "metered";
|
|
158
|
-
}>>>;
|
|
159
|
-
operations: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
160
|
-
new: "new";
|
|
161
|
-
renew: "renew";
|
|
162
|
-
modify: "modify";
|
|
163
|
-
}>>>;
|
|
164
|
-
min_term_months: zod.ZodOptional<zod.ZodInt>;
|
|
165
|
-
max_term_months: zod.ZodOptional<zod.ZodInt>;
|
|
166
|
-
excluded_products: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
167
|
-
id: zod.ZodString;
|
|
168
|
-
name: zod.ZodString;
|
|
169
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
170
|
-
}, zod.z.core.$strict>>>;
|
|
171
|
-
excluded_plans: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
104
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
105
|
+
plan: zod.ZodObject<{
|
|
106
|
+
lookup_key: zod.ZodOptional<zod.ZodString>;
|
|
172
107
|
id: zod.ZodUUID;
|
|
173
108
|
name: zod.ZodString;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
id: zod.ZodString;
|
|
179
|
-
name: zod.ZodString;
|
|
180
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
181
|
-
}, zod.z.core.$strict>;
|
|
182
|
-
plan: zod.ZodObject<{
|
|
183
|
-
lookup_key: zod.ZodOptional<zod.ZodString>;
|
|
184
|
-
id: zod.ZodUUID;
|
|
185
|
-
name: zod.ZodString;
|
|
186
|
-
}, zod.z.core.$strict>;
|
|
187
|
-
billing_scheme: zod.ZodOptional<zod.ZodEnum<{
|
|
188
|
-
per_unit: "per_unit";
|
|
189
|
-
tiered: "tiered";
|
|
190
|
-
}>>;
|
|
191
|
-
unit_quantity: zod.ZodString;
|
|
192
|
-
id: zod.ZodUUID;
|
|
193
|
-
currency: zod.ZodString;
|
|
194
|
-
type: zod.ZodEnum<{
|
|
195
|
-
one_time: "one_time";
|
|
196
|
-
recurring: "recurring";
|
|
197
|
-
}>;
|
|
198
|
-
usage_type: zod.ZodEnum<{
|
|
199
|
-
licensed: "licensed";
|
|
200
|
-
metered: "metered";
|
|
201
|
-
}>;
|
|
202
|
-
interval: zod.ZodEnum<{
|
|
203
|
-
none: "none";
|
|
204
|
-
day: "day";
|
|
205
|
-
month: "month";
|
|
206
|
-
year: "year";
|
|
207
|
-
}>;
|
|
208
|
-
interval_count: zod.ZodOptional<zod.ZodInt>;
|
|
209
|
-
unit_amount: zod.ZodOptional<zod.ZodString>;
|
|
210
|
-
active: zod.ZodBoolean;
|
|
211
|
-
}, zod.z.core.$strict>>>;
|
|
212
|
-
}, zod.z.core.$strict>;
|
|
109
|
+
}, zod.z.core.$strict>;
|
|
110
|
+
max_quantity: zod.ZodString;
|
|
111
|
+
unit_label: zod.ZodOptional<zod.ZodString>;
|
|
112
|
+
}, zod.z.core.$strict>>;
|
|
213
113
|
}, zod.z.core.$strict>;
|
|
214
114
|
status: zod.ZodEnum<{
|
|
215
115
|
scheduled: "scheduled";
|
|
@@ -297,6 +197,7 @@ export declare const CheckoutSessionList: zod.ZodObject<{
|
|
|
297
197
|
}>;
|
|
298
198
|
interval_count: zod.ZodNullable<zod.ZodInt>;
|
|
299
199
|
quantity: zod.ZodString;
|
|
200
|
+
unit_label: zod.ZodOptional<zod.ZodString>;
|
|
300
201
|
dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
|
301
202
|
periods: zod.ZodNullable<zod.ZodInt>;
|
|
302
203
|
unit_amount: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>;
|
|
@@ -101,115 +101,15 @@ export declare const CheckoutSessionResult: zod.ZodObject<{
|
|
|
101
101
|
retention_seconds: zod.ZodNullable<zod.ZodInt>;
|
|
102
102
|
}, zod.z.core.$strict>;
|
|
103
103
|
}, zod.z.core.$strict>;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
name: zod.ZodString;
|
|
108
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
109
|
-
}, zod.z.core.$strict>>>;
|
|
110
|
-
plans: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
111
|
-
id: zod.ZodUUID;
|
|
112
|
-
name: zod.ZodString;
|
|
113
|
-
active: zod.ZodBoolean;
|
|
114
|
-
}, zod.z.core.$strict>>>;
|
|
115
|
-
prices: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
116
|
-
product: zod.ZodObject<{
|
|
117
|
-
id: zod.ZodString;
|
|
118
|
-
name: zod.ZodString;
|
|
119
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
120
|
-
}, zod.z.core.$strict>;
|
|
121
|
-
plan: zod.ZodObject<{
|
|
122
|
-
lookup_key: zod.ZodOptional<zod.ZodString>;
|
|
123
|
-
id: zod.ZodUUID;
|
|
124
|
-
name: zod.ZodString;
|
|
125
|
-
}, zod.z.core.$strict>;
|
|
126
|
-
billing_scheme: zod.ZodOptional<zod.ZodEnum<{
|
|
127
|
-
per_unit: "per_unit";
|
|
128
|
-
tiered: "tiered";
|
|
129
|
-
}>>;
|
|
130
|
-
unit_quantity: zod.ZodString;
|
|
131
|
-
id: zod.ZodUUID;
|
|
132
|
-
currency: zod.ZodString;
|
|
133
|
-
type: zod.ZodEnum<{
|
|
134
|
-
one_time: "one_time";
|
|
135
|
-
recurring: "recurring";
|
|
136
|
-
}>;
|
|
137
|
-
usage_type: zod.ZodEnum<{
|
|
138
|
-
licensed: "licensed";
|
|
139
|
-
metered: "metered";
|
|
140
|
-
}>;
|
|
141
|
-
interval: zod.ZodEnum<{
|
|
142
|
-
none: "none";
|
|
143
|
-
day: "day";
|
|
144
|
-
month: "month";
|
|
145
|
-
year: "year";
|
|
146
|
-
}>;
|
|
147
|
-
interval_count: zod.ZodOptional<zod.ZodInt>;
|
|
148
|
-
unit_amount: zod.ZodOptional<zod.ZodString>;
|
|
149
|
-
active: zod.ZodBoolean;
|
|
150
|
-
}, zod.z.core.$strict>>>;
|
|
151
|
-
price_types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
152
|
-
one_time: "one_time";
|
|
153
|
-
recurring: "recurring";
|
|
154
|
-
}>>>;
|
|
155
|
-
usage_types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
156
|
-
licensed: "licensed";
|
|
157
|
-
metered: "metered";
|
|
158
|
-
}>>>;
|
|
159
|
-
operations: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
160
|
-
new: "new";
|
|
161
|
-
renew: "renew";
|
|
162
|
-
modify: "modify";
|
|
163
|
-
}>>>;
|
|
164
|
-
min_term_months: zod.ZodOptional<zod.ZodInt>;
|
|
165
|
-
max_term_months: zod.ZodOptional<zod.ZodInt>;
|
|
166
|
-
excluded_products: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
167
|
-
id: zod.ZodString;
|
|
168
|
-
name: zod.ZodString;
|
|
169
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
170
|
-
}, zod.z.core.$strict>>>;
|
|
171
|
-
excluded_plans: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
104
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
105
|
+
plan: zod.ZodObject<{
|
|
106
|
+
lookup_key: zod.ZodOptional<zod.ZodString>;
|
|
172
107
|
id: zod.ZodUUID;
|
|
173
108
|
name: zod.ZodString;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
id: zod.ZodString;
|
|
179
|
-
name: zod.ZodString;
|
|
180
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
181
|
-
}, zod.z.core.$strict>;
|
|
182
|
-
plan: zod.ZodObject<{
|
|
183
|
-
lookup_key: zod.ZodOptional<zod.ZodString>;
|
|
184
|
-
id: zod.ZodUUID;
|
|
185
|
-
name: zod.ZodString;
|
|
186
|
-
}, zod.z.core.$strict>;
|
|
187
|
-
billing_scheme: zod.ZodOptional<zod.ZodEnum<{
|
|
188
|
-
per_unit: "per_unit";
|
|
189
|
-
tiered: "tiered";
|
|
190
|
-
}>>;
|
|
191
|
-
unit_quantity: zod.ZodString;
|
|
192
|
-
id: zod.ZodUUID;
|
|
193
|
-
currency: zod.ZodString;
|
|
194
|
-
type: zod.ZodEnum<{
|
|
195
|
-
one_time: "one_time";
|
|
196
|
-
recurring: "recurring";
|
|
197
|
-
}>;
|
|
198
|
-
usage_type: zod.ZodEnum<{
|
|
199
|
-
licensed: "licensed";
|
|
200
|
-
metered: "metered";
|
|
201
|
-
}>;
|
|
202
|
-
interval: zod.ZodEnum<{
|
|
203
|
-
none: "none";
|
|
204
|
-
day: "day";
|
|
205
|
-
month: "month";
|
|
206
|
-
year: "year";
|
|
207
|
-
}>;
|
|
208
|
-
interval_count: zod.ZodOptional<zod.ZodInt>;
|
|
209
|
-
unit_amount: zod.ZodOptional<zod.ZodString>;
|
|
210
|
-
active: zod.ZodBoolean;
|
|
211
|
-
}, zod.z.core.$strict>>>;
|
|
212
|
-
}, zod.z.core.$strict>;
|
|
109
|
+
}, zod.z.core.$strict>;
|
|
110
|
+
max_quantity: zod.ZodString;
|
|
111
|
+
unit_label: zod.ZodOptional<zod.ZodString>;
|
|
112
|
+
}, zod.z.core.$strict>>;
|
|
213
113
|
}, zod.z.core.$strict>;
|
|
214
114
|
status: zod.ZodEnum<{
|
|
215
115
|
scheduled: "scheduled";
|
|
@@ -297,6 +197,7 @@ export declare const CheckoutSessionResult: zod.ZodObject<{
|
|
|
297
197
|
}>;
|
|
298
198
|
interval_count: zod.ZodNullable<zod.ZodInt>;
|
|
299
199
|
quantity: zod.ZodString;
|
|
200
|
+
unit_label: zod.ZodOptional<zod.ZodString>;
|
|
300
201
|
dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
|
301
202
|
periods: zod.ZodNullable<zod.ZodInt>;
|
|
302
203
|
unit_amount: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>;
|
|
@@ -444,6 +345,7 @@ export declare const CheckoutSessionResult: zod.ZodObject<{
|
|
|
444
345
|
plan_id: zod.ZodUUID;
|
|
445
346
|
plan_name: zod.ZodString;
|
|
446
347
|
quantity: zod.ZodString;
|
|
348
|
+
unit_label: zod.ZodOptional<zod.ZodString>;
|
|
447
349
|
unit_amount: zod.ZodOptional<zod.ZodString>;
|
|
448
350
|
gross_amount: zod.ZodOptional<zod.ZodString>;
|
|
449
351
|
discount_amount: zod.ZodOptional<zod.ZodString>;
|
|
@@ -73,6 +73,7 @@ export declare const CheckoutSessionSubscription: zod.ZodObject<{
|
|
|
73
73
|
}>;
|
|
74
74
|
interval_count: zod.ZodNullable<zod.ZodInt>;
|
|
75
75
|
quantity: zod.ZodString;
|
|
76
|
+
unit_label: zod.ZodOptional<zod.ZodString>;
|
|
76
77
|
dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
|
77
78
|
periods: zod.ZodNullable<zod.ZodInt>;
|
|
78
79
|
unit_amount: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>;
|
|
@@ -27,7 +27,7 @@ export const Discount = zod
|
|
|
27
27
|
name: zod.string().optional(),
|
|
28
28
|
percent_off: zod.string().optional().describe("For a percentage discount, out of one hundred."),
|
|
29
29
|
amount: Money.optional(),
|
|
30
|
-
max_discount: Money.optional().describe("
|
|
30
|
+
max_discount: Money.optional().describe("The most one purchase is reduced by, for a percentage, price override or free-setup discount."),
|
|
31
31
|
currency: zod.string().optional(),
|
|
32
32
|
applies_to: Applicability.describe("What it may pay for. Absent means anything on the account, including setup fees and usage."),
|
|
33
33
|
first_purchase_only: zod
|