@leaflow/sdk 0.0.0-dev.544.gc6fb74a → 0.0.0-dev.546.gd7d0a9b

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 (30) hide show
  1. package/dist/billing/type/checkout/v1/generated/models.d.ts +2 -2
  2. package/dist/billing/type/checkout/v1/generated/validators/checkoutOptions.zod.js +1 -1
  3. package/dist/billing/v1/generated/functions.d.ts +2 -2
  4. package/dist/billing/v1/generated/functions.js +2 -2
  5. package/dist/billing/v1/generated/models.d.ts +16 -7
  6. package/dist/billing/v1/generated/schemas.zod.d.ts +2 -2
  7. package/dist/billing/v1/generated/schemas.zod.js +2 -2
  8. package/dist/billing/v1/generated/validators/checkoutOptions.zod.js +1 -1
  9. package/dist/billing/v1/generated/validators/checkoutSession.zod.d.ts +6 -107
  10. package/dist/billing/v1/generated/validators/checkoutSessionList.zod.d.ts +6 -107
  11. package/dist/billing/v1/generated/validators/checkoutSessionResult.zod.d.ts +6 -107
  12. package/dist/billing/v1/generated/validators/discount.zod.js +1 -1
  13. package/dist/billing/v1/generated/validators/trialEndBehavior.zod.js +1 -1
  14. package/dist/billing/v1/generated/validators/trialGrant.zod.d.ts +6 -107
  15. package/dist/billing/v1/generated/validators/trialGrantList.zod.d.ts +6 -107
  16. package/dist/billing/v1/generated/validators/trialOffer.zod.d.ts +6 -107
  17. package/dist/billing/v1/generated/validators/trialOffer.zod.js +5 -3
  18. package/dist/billing/v1/generated/validators/trialOfferItem.zod.d.ts +18 -0
  19. package/dist/billing/v1/generated/validators/trialOfferItem.zod.js +17 -0
  20. package/dist/canopy/v1/generated/models.d.ts +2 -2
  21. package/dist/canopy/v1/generated/validators/checkoutOptions.zod.js +1 -1
  22. package/dist/compute/v2/generated/functions.d.ts +6 -6
  23. package/dist/compute/v2/generated/functions.js +6 -6
  24. package/dist/compute/v2/generated/models.d.ts +2 -2
  25. package/dist/compute/v2/generated/schemas.zod.d.ts +6 -6
  26. package/dist/compute/v2/generated/schemas.zod.js +6 -6
  27. package/dist/compute/v2/generated/validators/checkoutOptions.zod.js +1 -1
  28. package/dist/membership/v1/generated/models.d.ts +2 -2
  29. package/dist/membership/v1/generated/validators/checkoutOptions.zod.js +1 -1
  30. 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 all covers, and that has a licensed line and
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 all covers, and that has a licensed line and\nno 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."),
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 its offer all covers, and that has a licensed line and no trial of its
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 its offer all covers, and that has a licensed line and no trial of its
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
  *
@@ -1458,7 +1458,7 @@ export interface TrialEndBehavior {
1458
1458
  /** 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
1459
  missing_payment_method: TrialEndBehaviorMissingPaymentMethod;
1460
1460
  /**
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.
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. Must be null with `cancel`, which releases the resources when the trial ends.
1462
1462
  * @nullable
1463
1463
  */
1464
1464
  retention_seconds: number | null;
@@ -1832,8 +1832,8 @@ export interface CheckoutOptions {
1832
1832
  auto_renew?: boolean;
1833
1833
  /**
1834
1834
  * 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 all covers, and that has a licensed line and
1836
- * no trial of its own, opens with the offer's free trial. Accepted only in automatic mode; with deferred it is refused with
1835
+ * subscription of the purchase whose lines are all of plans the grant's offer lists, within each plan's
1836
+ * 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
1837
  * HTTP 400, and the grant is chosen when completing the checkout through Billing. Refused with
1838
1838
  * BILLING_TRIAL_GRANT_INAPPLICABLE when no subscription qualifies or the grant cannot be used now.
1839
1839
  */
@@ -1896,7 +1896,16 @@ export interface CheckoutSessionDiscount {
1896
1896
  eligibility: CheckoutSessionDiscountEligibility;
1897
1897
  }
1898
1898
  /**
1899
- * 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. When the trial ends it converts to paid if automatic renewal is on; otherwise `trial_settings` applies.
1899
+ * A plan a subscription on the trial may hold, and how much of it.
1900
+ */
1901
+ export interface TrialOfferItem {
1902
+ /** The plan, which may since have been archived. */
1903
+ plan: ObjectIdentity;
1904
+ /** 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. */
1905
+ max_quantity: string;
1906
+ }
1907
+ /**
1908
+ * 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
1909
  */
1901
1910
  export interface TrialOffer {
1902
1911
  id: string;
@@ -1908,8 +1917,8 @@ export interface TrialOffer {
1908
1917
  */
1909
1918
  trial_period_days: number;
1910
1919
  trial_settings: TrialSettings;
1911
- /** The purchases it can be used for. Every line of the subscription must be covered. */
1912
- applies_to: Applicability;
1920
+ /** The plans a subscription on the trial may hold. An offer without items applies to no purchase. */
1921
+ items: TrialOfferItem[];
1913
1922
  }
1914
1923
  /**
1915
1924
  * `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.
@@ -2784,7 +2793,7 @@ export interface Discount {
2784
2793
  /** For a percentage discount, out of one hundred. */
2785
2794
  percent_off?: string;
2786
2795
  amount?: Money;
2787
- /** Caps a percentage discount. */
2796
+ /** The most one purchase is reduced by, for a percentage, price override or free-setup discount. */
2788
2797
  max_discount?: Money;
2789
2798
  currency?: string;
2790
2799
  /** What it may pay for. Absent means anything on the account, including setup fees and usage. */
@@ -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 its offer all covers, and that has a licensed line and no trial of its
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 its offer all covers, and that has a licensed line and no trial of its
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 all covers, and that has a licensed line and\nno 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."),
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,14 @@ 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
- applies_to: zod.ZodObject<{
104
- products: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
105
- id: zod.ZodString;
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
- active: zod.ZodBoolean;
174
- }, zod.z.core.$strict>>>;
175
- excluded_prices: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
176
- product: zod.ZodObject<{
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
+ }, zod.z.core.$strict>>;
212
111
  }, zod.z.core.$strict>;
213
112
  status: zod.ZodEnum<{
214
113
  scheduled: "scheduled";
@@ -101,115 +101,14 @@ 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
- applies_to: zod.ZodObject<{
105
- products: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
106
- id: zod.ZodString;
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
- active: zod.ZodBoolean;
175
- }, zod.z.core.$strict>>>;
176
- excluded_prices: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
177
- product: zod.ZodObject<{
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
+ }, zod.z.core.$strict>>;
213
112
  }, zod.z.core.$strict>;
214
113
  status: zod.ZodEnum<{
215
114
  scheduled: "scheduled";
@@ -101,115 +101,14 @@ 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
- applies_to: zod.ZodObject<{
105
- products: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
106
- id: zod.ZodString;
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
- active: zod.ZodBoolean;
175
- }, zod.z.core.$strict>>>;
176
- excluded_prices: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
177
- product: zod.ZodObject<{
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
+ }, zod.z.core.$strict>>;
213
112
  }, zod.z.core.$strict>;
214
113
  status: zod.ZodEnum<{
215
114
  scheduled: "scheduled";
@@ -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("Caps a percentage discount."),
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
@@ -13,5 +13,5 @@ export const TrialEndBehavior = zod.strictObject({
13
13
  retention_seconds: zod
14
14
  .int()
15
15
  .nullable()
16
- .describe("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."),
16
+ .describe("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."),
17
17
  });