@leaflow/sdk 0.139.0 → 0.140.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.
- package/dist/billing/type/order/v1/generated/models.d.ts +4 -0
- package/dist/billing/type/order/v1/generated/validators/order.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/orderItem.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/orderItem.zod.js +4 -0
- package/dist/billing/type/order/v1/generated/validators/orderItemList.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/orderList.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/subscription.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/subscription.zod.js +4 -0
- package/dist/billing/type/order/v1/generated/validators/subscriptionList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/models.d.ts +4 -0
- 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/subscription.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/subscription.zod.js +4 -0
- package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/models.d.ts +4 -0
- package/dist/canopy/v1/generated/validators/order.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/orderItem.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/orderItem.zod.js +4 -0
- package/dist/canopy/v1/generated/validators/orderItemList.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/orderList.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/subscription.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/subscription.zod.js +4 -0
- package/dist/canopy/v1/generated/validators/subscriptionList.zod.d.ts +1 -0
- package/dist/membership/v1/generated/models.d.ts +4 -0
- package/dist/membership/v1/generated/validators/order.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/orderItem.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/orderItem.zod.js +4 -0
- package/dist/membership/v1/generated/validators/orderItemList.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/orderList.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/subscription.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/subscription.zod.js +4 -0
- package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1993,6 +1993,8 @@ export declare const SubscriptionStatus: {
|
|
|
1993
1993
|
* the owning service enforces current holdings against the purchased count.
|
|
1994
1994
|
*/
|
|
1995
1995
|
export interface Subscription {
|
|
1996
|
+
/** Whether new account discounts may apply to future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them. */
|
|
1997
|
+
renewal_discounts_enabled?: boolean;
|
|
1996
1998
|
currency: string;
|
|
1997
1999
|
charge_type: SubscriptionChargeType;
|
|
1998
2000
|
interval: SubscriptionInterval;
|
|
@@ -2271,6 +2273,8 @@ export type OrderItemConfiguration = {
|
|
|
2271
2273
|
* purchase creates its pending subscription when this item is recorded, not when payment succeeds.
|
|
2272
2274
|
*/
|
|
2273
2275
|
export interface OrderItem {
|
|
2276
|
+
/** Whether new account discounts may apply to future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them. */
|
|
2277
|
+
renewal_discounts_enabled?: boolean;
|
|
2274
2278
|
/** Financial lines produced by this purchase item, including setup charges. */
|
|
2275
2279
|
invoice_item_ids?: string[];
|
|
2276
2280
|
/** @minimum 0 */
|
|
@@ -81,6 +81,7 @@ export declare const Order: zod.ZodObject<{
|
|
|
81
81
|
checkout_confirmed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
82
82
|
created_at: zod.z.ZodISODateTime;
|
|
83
83
|
items: zod.ZodArray<zod.ZodObject<{
|
|
84
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
84
85
|
invoice_item_ids: zod.ZodOptional<zod.ZodArray<zod.ZodUUID>>;
|
|
85
86
|
position: zod.ZodOptional<zod.ZodInt>;
|
|
86
87
|
configuration: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export declare const orderItemPositionMin = 0;
|
|
10
10
|
export declare const OrderItem: zod.ZodObject<{
|
|
11
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
11
12
|
invoice_item_ids: zod.ZodOptional<zod.ZodArray<zod.ZodUUID>>;
|
|
12
13
|
position: zod.ZodOptional<zod.ZodInt>;
|
|
13
14
|
configuration: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
@@ -15,6 +15,10 @@ import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
|
15
15
|
export const orderItemPositionMin = 0;
|
|
16
16
|
export const OrderItem = zod
|
|
17
17
|
.strictObject({
|
|
18
|
+
renewal_discounts_enabled: zod
|
|
19
|
+
.boolean()
|
|
20
|
+
.optional()
|
|
21
|
+
.describe("Whether new account discounts may apply to future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them."),
|
|
18
22
|
invoice_item_ids: zod
|
|
19
23
|
.array(zod.uuid())
|
|
20
24
|
.optional()
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export declare const OrderItemList: zod.ZodObject<{
|
|
10
10
|
items: zod.ZodArray<zod.ZodObject<{
|
|
11
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
11
12
|
invoice_item_ids: zod.ZodOptional<zod.ZodArray<zod.ZodUUID>>;
|
|
12
13
|
position: zod.ZodOptional<zod.ZodInt>;
|
|
13
14
|
configuration: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
@@ -82,6 +82,7 @@ export declare const OrderList: zod.ZodObject<{
|
|
|
82
82
|
checkout_confirmed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
83
83
|
created_at: zod.z.ZodISODateTime;
|
|
84
84
|
items: zod.ZodArray<zod.ZodObject<{
|
|
85
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
85
86
|
invoice_item_ids: zod.ZodOptional<zod.ZodArray<zod.ZodUUID>>;
|
|
86
87
|
position: zod.ZodOptional<zod.ZodInt>;
|
|
87
88
|
configuration: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export declare const subscriptionDiscountedRenewalsRemainingMin = 0;
|
|
10
10
|
export declare const Subscription: zod.ZodObject<{
|
|
11
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
11
12
|
currency: zod.ZodString;
|
|
12
13
|
charge_type: zod.ZodEnum<{
|
|
13
14
|
postpaid: "postpaid";
|
|
@@ -19,6 +19,10 @@ import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
|
19
19
|
export const subscriptionDiscountedRenewalsRemainingMin = 0;
|
|
20
20
|
export const Subscription = zod
|
|
21
21
|
.strictObject({
|
|
22
|
+
renewal_discounts_enabled: zod
|
|
23
|
+
.boolean()
|
|
24
|
+
.optional()
|
|
25
|
+
.describe("Whether new account discounts may apply to future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them."),
|
|
22
26
|
currency: zod.string(),
|
|
23
27
|
charge_type: zod.enum(["postpaid", "prepaid", "one_time"]),
|
|
24
28
|
interval: zod.enum(["none", "day", "month", "year"]),
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export declare const SubscriptionList: zod.ZodObject<{
|
|
10
10
|
items: zod.ZodArray<zod.ZodObject<{
|
|
11
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
11
12
|
currency: zod.ZodString;
|
|
12
13
|
charge_type: zod.ZodEnum<{
|
|
13
14
|
postpaid: "postpaid";
|
|
@@ -1779,6 +1779,8 @@ export declare const SubscriptionStatus: {
|
|
|
1779
1779
|
* the owning service enforces current holdings against the purchased count.
|
|
1780
1780
|
*/
|
|
1781
1781
|
export interface Subscription {
|
|
1782
|
+
/** Whether new account discounts may apply to future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them. */
|
|
1783
|
+
renewal_discounts_enabled?: boolean;
|
|
1782
1784
|
currency: string;
|
|
1783
1785
|
charge_type: SubscriptionChargeType;
|
|
1784
1786
|
interval: SubscriptionInterval;
|
|
@@ -2091,6 +2093,8 @@ export type OrderItemConfiguration = {
|
|
|
2091
2093
|
* purchase creates its pending subscription when this item is recorded, not when payment succeeds.
|
|
2092
2094
|
*/
|
|
2093
2095
|
export interface OrderItem {
|
|
2096
|
+
/** Whether new account discounts may apply to future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them. */
|
|
2097
|
+
renewal_discounts_enabled?: boolean;
|
|
2094
2098
|
/** Financial lines produced by this purchase item, including setup charges. */
|
|
2095
2099
|
invoice_item_ids?: string[];
|
|
2096
2100
|
/** @minimum 0 */
|
|
@@ -81,6 +81,7 @@ export declare const Order: zod.ZodObject<{
|
|
|
81
81
|
checkout_confirmed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
82
82
|
created_at: zod.z.ZodISODateTime;
|
|
83
83
|
items: zod.ZodArray<zod.ZodObject<{
|
|
84
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
84
85
|
invoice_item_ids: zod.ZodOptional<zod.ZodArray<zod.ZodUUID>>;
|
|
85
86
|
position: zod.ZodOptional<zod.ZodInt>;
|
|
86
87
|
configuration: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export declare const orderItemPositionMin = 0;
|
|
10
10
|
export declare const OrderItem: zod.ZodObject<{
|
|
11
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
11
12
|
invoice_item_ids: zod.ZodOptional<zod.ZodArray<zod.ZodUUID>>;
|
|
12
13
|
position: zod.ZodOptional<zod.ZodInt>;
|
|
13
14
|
configuration: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
@@ -15,6 +15,10 @@ import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
|
15
15
|
export const orderItemPositionMin = 0;
|
|
16
16
|
export const OrderItem = zod
|
|
17
17
|
.strictObject({
|
|
18
|
+
renewal_discounts_enabled: zod
|
|
19
|
+
.boolean()
|
|
20
|
+
.optional()
|
|
21
|
+
.describe("Whether new account discounts may apply to future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them."),
|
|
18
22
|
invoice_item_ids: zod
|
|
19
23
|
.array(zod.uuid())
|
|
20
24
|
.optional()
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export declare const OrderItemList: zod.ZodObject<{
|
|
10
10
|
items: zod.ZodArray<zod.ZodObject<{
|
|
11
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
11
12
|
invoice_item_ids: zod.ZodOptional<zod.ZodArray<zod.ZodUUID>>;
|
|
12
13
|
position: zod.ZodOptional<zod.ZodInt>;
|
|
13
14
|
configuration: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
@@ -82,6 +82,7 @@ export declare const OrderList: zod.ZodObject<{
|
|
|
82
82
|
checkout_confirmed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
83
83
|
created_at: zod.z.ZodISODateTime;
|
|
84
84
|
items: zod.ZodArray<zod.ZodObject<{
|
|
85
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
85
86
|
invoice_item_ids: zod.ZodOptional<zod.ZodArray<zod.ZodUUID>>;
|
|
86
87
|
position: zod.ZodOptional<zod.ZodInt>;
|
|
87
88
|
configuration: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export declare const subscriptionDiscountedRenewalsRemainingMin = 0;
|
|
10
10
|
export declare const Subscription: zod.ZodObject<{
|
|
11
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
11
12
|
currency: zod.ZodString;
|
|
12
13
|
charge_type: zod.ZodEnum<{
|
|
13
14
|
postpaid: "postpaid";
|
|
@@ -19,6 +19,10 @@ import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
|
19
19
|
export const subscriptionDiscountedRenewalsRemainingMin = 0;
|
|
20
20
|
export const Subscription = zod
|
|
21
21
|
.strictObject({
|
|
22
|
+
renewal_discounts_enabled: zod
|
|
23
|
+
.boolean()
|
|
24
|
+
.optional()
|
|
25
|
+
.describe("Whether new account discounts may apply to future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them."),
|
|
22
26
|
currency: zod.string(),
|
|
23
27
|
charge_type: zod.enum(["postpaid", "prepaid", "one_time"]),
|
|
24
28
|
interval: zod.enum(["none", "day", "month", "year"]),
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export declare const SubscriptionList: zod.ZodObject<{
|
|
10
10
|
items: zod.ZodArray<zod.ZodObject<{
|
|
11
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
11
12
|
currency: zod.ZodString;
|
|
12
13
|
charge_type: zod.ZodEnum<{
|
|
13
14
|
postpaid: "postpaid";
|
|
@@ -2466,6 +2466,8 @@ export declare const SubscriptionStatus: {
|
|
|
2466
2466
|
* the owning service enforces current holdings against the purchased count.
|
|
2467
2467
|
*/
|
|
2468
2468
|
export interface Subscription {
|
|
2469
|
+
/** Whether new account discounts may apply to future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them. */
|
|
2470
|
+
renewal_discounts_enabled?: boolean;
|
|
2469
2471
|
currency: string;
|
|
2470
2472
|
charge_type: SubscriptionChargeType;
|
|
2471
2473
|
interval: SubscriptionInterval;
|
|
@@ -2744,6 +2746,8 @@ export type OrderItemConfiguration = {
|
|
|
2744
2746
|
* purchase creates its pending subscription when this item is recorded, not when payment succeeds.
|
|
2745
2747
|
*/
|
|
2746
2748
|
export interface OrderItem {
|
|
2749
|
+
/** Whether new account discounts may apply to future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them. */
|
|
2750
|
+
renewal_discounts_enabled?: boolean;
|
|
2747
2751
|
/** Financial lines produced by this purchase item, including setup charges. */
|
|
2748
2752
|
invoice_item_ids?: string[];
|
|
2749
2753
|
/** @minimum 0 */
|
|
@@ -104,6 +104,7 @@ export declare const Order: zod.ZodObject<{
|
|
|
104
104
|
checkout_confirmed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
105
105
|
created_at: zod.z.ZodISODateTime;
|
|
106
106
|
items: zod.ZodArray<zod.ZodObject<{
|
|
107
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
107
108
|
invoice_item_ids: zod.ZodOptional<zod.ZodArray<zod.ZodUUID>>;
|
|
108
109
|
position: zod.ZodOptional<zod.ZodInt>;
|
|
109
110
|
configuration: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
import * as zod from "zod";
|
|
32
32
|
export declare const orderItemPositionMin = 0;
|
|
33
33
|
export declare const OrderItem: zod.ZodObject<{
|
|
34
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
34
35
|
invoice_item_ids: zod.ZodOptional<zod.ZodArray<zod.ZodUUID>>;
|
|
35
36
|
position: zod.ZodOptional<zod.ZodInt>;
|
|
36
37
|
configuration: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
@@ -38,6 +38,10 @@ import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
|
38
38
|
export const orderItemPositionMin = 0;
|
|
39
39
|
export const OrderItem = zod
|
|
40
40
|
.strictObject({
|
|
41
|
+
renewal_discounts_enabled: zod
|
|
42
|
+
.boolean()
|
|
43
|
+
.optional()
|
|
44
|
+
.describe("Whether new account discounts may apply to future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them."),
|
|
41
45
|
invoice_item_ids: zod
|
|
42
46
|
.array(zod.uuid())
|
|
43
47
|
.optional()
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
import * as zod from "zod";
|
|
32
32
|
export declare const OrderItemList: zod.ZodObject<{
|
|
33
33
|
items: zod.ZodArray<zod.ZodObject<{
|
|
34
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
34
35
|
invoice_item_ids: zod.ZodOptional<zod.ZodArray<zod.ZodUUID>>;
|
|
35
36
|
position: zod.ZodOptional<zod.ZodInt>;
|
|
36
37
|
configuration: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
@@ -105,6 +105,7 @@ export declare const OrderList: zod.ZodObject<{
|
|
|
105
105
|
checkout_confirmed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
106
106
|
created_at: zod.z.ZodISODateTime;
|
|
107
107
|
items: zod.ZodArray<zod.ZodObject<{
|
|
108
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
108
109
|
invoice_item_ids: zod.ZodOptional<zod.ZodArray<zod.ZodUUID>>;
|
|
109
110
|
position: zod.ZodOptional<zod.ZodInt>;
|
|
110
111
|
configuration: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
import * as zod from "zod";
|
|
32
32
|
export declare const subscriptionDiscountedRenewalsRemainingMin = 0;
|
|
33
33
|
export declare const Subscription: zod.ZodObject<{
|
|
34
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
34
35
|
currency: zod.ZodString;
|
|
35
36
|
charge_type: zod.ZodEnum<{
|
|
36
37
|
postpaid: "postpaid";
|
|
@@ -42,6 +42,10 @@ import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
|
42
42
|
export const subscriptionDiscountedRenewalsRemainingMin = 0;
|
|
43
43
|
export const Subscription = zod
|
|
44
44
|
.strictObject({
|
|
45
|
+
renewal_discounts_enabled: zod
|
|
46
|
+
.boolean()
|
|
47
|
+
.optional()
|
|
48
|
+
.describe("Whether new account discounts may apply to future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them."),
|
|
45
49
|
currency: zod.string(),
|
|
46
50
|
charge_type: zod.enum(["postpaid", "prepaid", "one_time"]),
|
|
47
51
|
interval: zod.enum(["none", "day", "month", "year"]),
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
import * as zod from "zod";
|
|
32
32
|
export declare const SubscriptionList: zod.ZodObject<{
|
|
33
33
|
items: zod.ZodArray<zod.ZodObject<{
|
|
34
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
34
35
|
currency: zod.ZodString;
|
|
35
36
|
charge_type: zod.ZodEnum<{
|
|
36
37
|
postpaid: "postpaid";
|
|
@@ -2288,6 +2288,8 @@ export declare const SubscriptionStatus: {
|
|
|
2288
2288
|
* the owning service enforces current holdings against the purchased count.
|
|
2289
2289
|
*/
|
|
2290
2290
|
export interface Subscription {
|
|
2291
|
+
/** Whether new account discounts may apply to future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them. */
|
|
2292
|
+
renewal_discounts_enabled?: boolean;
|
|
2291
2293
|
currency: string;
|
|
2292
2294
|
charge_type: SubscriptionChargeType;
|
|
2293
2295
|
interval: SubscriptionInterval;
|
|
@@ -2566,6 +2568,8 @@ export type OrderItemConfiguration = {
|
|
|
2566
2568
|
* purchase creates its pending subscription when this item is recorded, not when payment succeeds.
|
|
2567
2569
|
*/
|
|
2568
2570
|
export interface OrderItem {
|
|
2571
|
+
/** Whether new account discounts may apply to future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them. */
|
|
2572
|
+
renewal_discounts_enabled?: boolean;
|
|
2569
2573
|
/** Financial lines produced by this purchase item, including setup charges. */
|
|
2570
2574
|
invoice_item_ids?: string[];
|
|
2571
2575
|
/** @minimum 0 */
|
|
@@ -81,6 +81,7 @@ export declare const Order: zod.ZodObject<{
|
|
|
81
81
|
checkout_confirmed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
82
82
|
created_at: zod.z.ZodISODateTime;
|
|
83
83
|
items: zod.ZodArray<zod.ZodObject<{
|
|
84
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
84
85
|
invoice_item_ids: zod.ZodOptional<zod.ZodArray<zod.ZodUUID>>;
|
|
85
86
|
position: zod.ZodOptional<zod.ZodInt>;
|
|
86
87
|
configuration: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export declare const orderItemPositionMin = 0;
|
|
10
10
|
export declare const OrderItem: zod.ZodObject<{
|
|
11
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
11
12
|
invoice_item_ids: zod.ZodOptional<zod.ZodArray<zod.ZodUUID>>;
|
|
12
13
|
position: zod.ZodOptional<zod.ZodInt>;
|
|
13
14
|
configuration: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
@@ -15,6 +15,10 @@ import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
|
15
15
|
export const orderItemPositionMin = 0;
|
|
16
16
|
export const OrderItem = zod
|
|
17
17
|
.strictObject({
|
|
18
|
+
renewal_discounts_enabled: zod
|
|
19
|
+
.boolean()
|
|
20
|
+
.optional()
|
|
21
|
+
.describe("Whether new account discounts may apply to future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them."),
|
|
18
22
|
invoice_item_ids: zod
|
|
19
23
|
.array(zod.uuid())
|
|
20
24
|
.optional()
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export declare const OrderItemList: zod.ZodObject<{
|
|
10
10
|
items: zod.ZodArray<zod.ZodObject<{
|
|
11
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
11
12
|
invoice_item_ids: zod.ZodOptional<zod.ZodArray<zod.ZodUUID>>;
|
|
12
13
|
position: zod.ZodOptional<zod.ZodInt>;
|
|
13
14
|
configuration: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
@@ -82,6 +82,7 @@ export declare const OrderList: zod.ZodObject<{
|
|
|
82
82
|
checkout_confirmed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
83
83
|
created_at: zod.z.ZodISODateTime;
|
|
84
84
|
items: zod.ZodArray<zod.ZodObject<{
|
|
85
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
85
86
|
invoice_item_ids: zod.ZodOptional<zod.ZodArray<zod.ZodUUID>>;
|
|
86
87
|
position: zod.ZodOptional<zod.ZodInt>;
|
|
87
88
|
configuration: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export declare const subscriptionDiscountedRenewalsRemainingMin = 0;
|
|
10
10
|
export declare const Subscription: zod.ZodObject<{
|
|
11
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
11
12
|
currency: zod.ZodString;
|
|
12
13
|
charge_type: zod.ZodEnum<{
|
|
13
14
|
postpaid: "postpaid";
|
|
@@ -19,6 +19,10 @@ import { TerminationPolicy } from "./terminationPolicy.zod.js";
|
|
|
19
19
|
export const subscriptionDiscountedRenewalsRemainingMin = 0;
|
|
20
20
|
export const Subscription = zod
|
|
21
21
|
.strictObject({
|
|
22
|
+
renewal_discounts_enabled: zod
|
|
23
|
+
.boolean()
|
|
24
|
+
.optional()
|
|
25
|
+
.describe("Whether new account discounts may apply to future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them."),
|
|
22
26
|
currency: zod.string(),
|
|
23
27
|
charge_type: zod.enum(["postpaid", "prepaid", "one_time"]),
|
|
24
28
|
interval: zod.enum(["none", "day", "month", "year"]),
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export declare const SubscriptionList: zod.ZodObject<{
|
|
10
10
|
items: zod.ZodArray<zod.ZodObject<{
|
|
11
|
+
renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
11
12
|
currency: zod.ZodString;
|
|
12
13
|
charge_type: zod.ZodEnum<{
|
|
13
14
|
postpaid: "postpaid";
|