ce-storefront 0.13.0 → 0.13.2
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/FUNCTIONS.md +5 -22
- package/README.md +44 -58
- package/docs/sdks/auth/README.md +50 -90
- package/docs/sdks/carts/README.md +60 -108
- package/docs/sdks/catalog/README.md +55 -99
- package/docs/sdks/common/README.md +5 -9
- package/docs/sdks/customers/README.md +35 -63
- package/docs/sdks/orders/README.md +35 -63
- package/docs/sdks/shipping/README.md +5 -9
- package/esm/funcs/catalogGetProductDetail.js +2 -5
- package/esm/funcs/catalogGetProductDetail.js.map +1 -1
- package/esm/funcs/catalogGetVariantDetail.js +2 -5
- package/esm/funcs/catalogGetVariantDetail.js.map +1 -1
- package/esm/funcs/catalogListCrosssellProducts.js +2 -1
- package/esm/funcs/catalogListCrosssellProducts.js.map +1 -1
- package/esm/funcs/catalogListProductVariants.js +2 -5
- package/esm/funcs/catalogListProductVariants.js.map +1 -1
- package/esm/funcs/catalogListProducts.js +2 -2
- package/esm/funcs/catalogListProducts.js.map +1 -1
- package/esm/funcs/catalogListSimilarProducts.js +2 -1
- package/esm/funcs/catalogListSimilarProducts.js.map +1 -1
- package/esm/funcs/catalogListSkus.js +2 -2
- package/esm/funcs/catalogListSkus.js.map +1 -1
- package/esm/funcs/catalogListUpsellProducts.js +2 -1
- package/esm/funcs/catalogListUpsellProducts.js.map +1 -1
- package/esm/index.d.ts +2 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/components/appliedpromotion.d.ts +8 -8
- package/esm/models/components/appliedpromotion.d.ts.map +1 -1
- package/esm/models/components/appliedpromotion.js +12 -12
- package/esm/models/components/appliedpromotion.js.map +1 -1
- package/esm/models/components/discountbasedpromotion.d.ts +31 -0
- package/esm/models/components/discountbasedpromotion.d.ts.map +1 -1
- package/esm/models/components/discountbasedpromotion.js +21 -0
- package/esm/models/components/discountbasedpromotion.js.map +1 -1
- package/esm/models/components/fixedpricepromotion.d.ts +34 -2
- package/esm/models/components/fixedpricepromotion.d.ts.map +1 -1
- package/esm/models/components/fixedpricepromotion.js +23 -2
- package/esm/models/components/fixedpricepromotion.js.map +1 -1
- package/esm/models/components/freegoodspromotion.d.ts +32 -0
- package/esm/models/components/freegoodspromotion.d.ts.map +1 -1
- package/esm/models/components/freegoodspromotion.js +21 -0
- package/esm/models/components/freegoodspromotion.js.map +1 -1
- package/esm/models/components/item.d.ts +8 -0
- package/esm/models/components/item.d.ts.map +1 -1
- package/esm/models/components/item.js +5 -0
- package/esm/models/components/item.js.map +1 -1
- package/esm/models/components/product.d.ts +5 -0
- package/esm/models/components/product.d.ts.map +1 -1
- package/esm/models/components/product.js +2 -0
- package/esm/models/components/product.js.map +1 -1
- package/esm/models/components/productbundleitem.d.ts +8 -0
- package/esm/models/components/productbundleitem.d.ts.map +1 -1
- package/esm/models/components/productbundleitem.js +5 -0
- package/esm/models/components/productbundleitem.js.map +1 -1
- package/esm/models/components/productdetail.d.ts +5 -0
- package/esm/models/components/productdetail.d.ts.map +1 -1
- package/esm/models/components/productdetail.js +2 -0
- package/esm/models/components/productdetail.js.map +1 -1
- package/esm/models/components/productpromotion.d.ts +2 -14
- package/esm/models/components/productpromotion.d.ts.map +1 -1
- package/esm/models/components/productshipping.d.ts +8 -16
- package/esm/models/components/productshipping.d.ts.map +1 -1
- package/esm/models/components/productshipping.js +12 -28
- package/esm/models/components/productshipping.js.map +1 -1
- package/esm/models/components/variant.d.ts +5 -0
- package/esm/models/components/variant.d.ts.map +1 -1
- package/esm/models/components/variant.js +2 -0
- package/esm/models/components/variant.js.map +1 -1
- package/esm/models/components/variantdetail.d.ts +5 -0
- package/esm/models/components/variantdetail.d.ts.map +1 -1
- package/esm/models/components/variantdetail.js +2 -0
- package/esm/models/components/variantdetail.js.map +1 -1
- package/esm/models/components/volumebasedpromotion.d.ts +34 -2
- package/esm/models/components/volumebasedpromotion.d.ts.map +1 -1
- package/esm/models/components/volumebasedpromotion.js +23 -2
- package/esm/models/components/volumebasedpromotion.js.map +1 -1
- package/esm/models/errors/ceerror.d.ts +14 -2
- package/esm/models/errors/ceerror.d.ts.map +1 -1
- package/esm/models/errors/ceerror.js +1 -1
- package/esm/models/errors/ceerror.js.map +1 -1
- package/esm/models/operations/getproductdetail.d.ts +5 -5
- package/esm/models/operations/getproductdetail.d.ts.map +1 -1
- package/esm/models/operations/getproductdetail.js +4 -4
- package/esm/models/operations/getproductdetail.js.map +1 -1
- package/esm/models/operations/getvariantdetail.d.ts +5 -5
- package/esm/models/operations/getvariantdetail.d.ts.map +1 -1
- package/esm/models/operations/getvariantdetail.js +4 -4
- package/esm/models/operations/getvariantdetail.js.map +1 -1
- package/esm/models/operations/listcrosssellproducts.d.ts +5 -0
- package/esm/models/operations/listcrosssellproducts.d.ts.map +1 -1
- package/esm/models/operations/listcrosssellproducts.js +4 -0
- package/esm/models/operations/listcrosssellproducts.js.map +1 -1
- package/esm/models/operations/listproducts.d.ts +1 -1
- package/esm/models/operations/listproductvariants.d.ts +5 -5
- package/esm/models/operations/listproductvariants.d.ts.map +1 -1
- package/esm/models/operations/listproductvariants.js +4 -4
- package/esm/models/operations/listproductvariants.js.map +1 -1
- package/esm/models/operations/listsimilarproducts.d.ts +5 -0
- package/esm/models/operations/listsimilarproducts.d.ts.map +1 -1
- package/esm/models/operations/listsimilarproducts.js +4 -0
- package/esm/models/operations/listsimilarproducts.js.map +1 -1
- package/esm/models/operations/listskus.d.ts +5 -5
- package/esm/models/operations/listskus.d.ts.map +1 -1
- package/esm/models/operations/listskus.js +2 -2
- package/esm/models/operations/listskus.js.map +1 -1
- package/esm/models/operations/listupsellproducts.d.ts +5 -0
- package/esm/models/operations/listupsellproducts.d.ts.map +1 -1
- package/esm/models/operations/listupsellproducts.js +4 -0
- package/esm/models/operations/listupsellproducts.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/catalogGetProductDetail.ts +6 -6
- package/src/funcs/catalogGetVariantDetail.ts +6 -6
- package/src/funcs/catalogListCrosssellProducts.ts +6 -1
- package/src/funcs/catalogListProductVariants.ts +6 -6
- package/src/funcs/catalogListProducts.ts +6 -2
- package/src/funcs/catalogListSimilarProducts.ts +6 -1
- package/src/funcs/catalogListSkus.ts +6 -2
- package/src/funcs/catalogListUpsellProducts.ts +6 -1
- package/src/index.ts +2 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/appliedpromotion.ts +18 -16
- package/src/models/components/discountbasedpromotion.ts +30 -1
- package/src/models/components/fixedpricepromotion.ts +36 -4
- package/src/models/components/freegoodspromotion.ts +33 -1
- package/src/models/components/item.ts +17 -0
- package/src/models/components/product.ts +7 -0
- package/src/models/components/productbundleitem.ts +17 -0
- package/src/models/components/productdetail.ts +7 -0
- package/src/models/components/productshipping.ts +20 -44
- package/src/models/components/variant.ts +7 -0
- package/src/models/components/variantdetail.ts +7 -0
- package/src/models/components/volumebasedpromotion.ts +37 -4
- package/src/models/errors/ceerror.ts +18 -3
- package/src/models/operations/getproductdetail.ts +9 -9
- package/src/models/operations/getvariantdetail.ts +9 -9
- package/src/models/operations/listcrosssellproducts.ts +9 -0
- package/src/models/operations/listproducts.ts +1 -1
- package/src/models/operations/listproductvariants.ts +9 -9
- package/src/models/operations/listsimilarproducts.ts +9 -0
- package/src/models/operations/listskus.ts +7 -7
- package/src/models/operations/listupsellproducts.ts +9 -0
package/src/index.ts
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -80,7 +80,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
80
80
|
export const SDK_METADATA = {
|
|
81
81
|
language: "typescript",
|
|
82
82
|
openapiDocVersion: "1.0",
|
|
83
|
-
sdkVersion: "0.13.
|
|
84
|
-
genVersion: "2.
|
|
85
|
-
userAgent: "speakeasy-sdk/typescript 0.13.
|
|
83
|
+
sdkVersion: "0.13.2",
|
|
84
|
+
genVersion: "2.620.2",
|
|
85
|
+
userAgent: "speakeasy-sdk/typescript 0.13.2 2.620.2 1.0 ce-storefront",
|
|
86
86
|
} as const;
|
|
@@ -9,21 +9,23 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export const
|
|
12
|
+
export const AppliedPromotionPromotionType = {
|
|
13
13
|
Discount: "discount",
|
|
14
14
|
FreeGoods: "free-goods",
|
|
15
15
|
FreeShipping: "free-shipping",
|
|
16
16
|
BuyXGetY: "buy-x-get-y",
|
|
17
17
|
VolumeBased: "volume-based",
|
|
18
18
|
} as const;
|
|
19
|
-
export type
|
|
19
|
+
export type AppliedPromotionPromotionType = ClosedEnum<
|
|
20
|
+
typeof AppliedPromotionPromotionType
|
|
21
|
+
>;
|
|
20
22
|
|
|
21
23
|
/**
|
|
22
24
|
* Details about an active promotion applied to a cart/order
|
|
23
25
|
*/
|
|
24
26
|
export type AppliedPromotion = {
|
|
25
27
|
promotionId: string;
|
|
26
|
-
promotionType:
|
|
28
|
+
promotionType: AppliedPromotionPromotionType;
|
|
27
29
|
savings: number;
|
|
28
30
|
productId: string | null;
|
|
29
31
|
variantId: string | null;
|
|
@@ -34,24 +36,24 @@ export type AppliedPromotion = {
|
|
|
34
36
|
};
|
|
35
37
|
|
|
36
38
|
/** @internal */
|
|
37
|
-
export const
|
|
38
|
-
typeof
|
|
39
|
-
> = z.nativeEnum(
|
|
39
|
+
export const AppliedPromotionPromotionType$inboundSchema: z.ZodNativeEnum<
|
|
40
|
+
typeof AppliedPromotionPromotionType
|
|
41
|
+
> = z.nativeEnum(AppliedPromotionPromotionType);
|
|
40
42
|
|
|
41
43
|
/** @internal */
|
|
42
|
-
export const
|
|
43
|
-
typeof
|
|
44
|
-
> =
|
|
44
|
+
export const AppliedPromotionPromotionType$outboundSchema: z.ZodNativeEnum<
|
|
45
|
+
typeof AppliedPromotionPromotionType
|
|
46
|
+
> = AppliedPromotionPromotionType$inboundSchema;
|
|
45
47
|
|
|
46
48
|
/**
|
|
47
49
|
* @internal
|
|
48
50
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
51
|
*/
|
|
50
|
-
export namespace
|
|
51
|
-
/** @deprecated use `
|
|
52
|
-
export const inboundSchema =
|
|
53
|
-
/** @deprecated use `
|
|
54
|
-
export const outboundSchema =
|
|
52
|
+
export namespace AppliedPromotionPromotionType$ {
|
|
53
|
+
/** @deprecated use `AppliedPromotionPromotionType$inboundSchema` instead. */
|
|
54
|
+
export const inboundSchema = AppliedPromotionPromotionType$inboundSchema;
|
|
55
|
+
/** @deprecated use `AppliedPromotionPromotionType$outboundSchema` instead. */
|
|
56
|
+
export const outboundSchema = AppliedPromotionPromotionType$outboundSchema;
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
/** @internal */
|
|
@@ -61,7 +63,7 @@ export const AppliedPromotion$inboundSchema: z.ZodType<
|
|
|
61
63
|
unknown
|
|
62
64
|
> = z.object({
|
|
63
65
|
promotion_id: z.string(),
|
|
64
|
-
promotion_type:
|
|
66
|
+
promotion_type: AppliedPromotionPromotionType$inboundSchema,
|
|
65
67
|
savings: z.number(),
|
|
66
68
|
product_id: z.nullable(z.string()),
|
|
67
69
|
variant_id: z.nullable(z.string()),
|
|
@@ -101,7 +103,7 @@ export const AppliedPromotion$outboundSchema: z.ZodType<
|
|
|
101
103
|
AppliedPromotion
|
|
102
104
|
> = z.object({
|
|
103
105
|
promotionId: z.string(),
|
|
104
|
-
promotionType:
|
|
106
|
+
promotionType: AppliedPromotionPromotionType$outboundSchema,
|
|
105
107
|
savings: z.number(),
|
|
106
108
|
productId: z.nullable(z.string()),
|
|
107
109
|
variantId: z.nullable(z.string()),
|
|
@@ -9,6 +9,14 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
+
export const PromotionType = {
|
|
13
|
+
Discount: "discount",
|
|
14
|
+
VolumeBased: "volume-based",
|
|
15
|
+
FixedPrice: "fixed-price",
|
|
16
|
+
FreeGoods: "free-goods",
|
|
17
|
+
} as const;
|
|
18
|
+
export type PromotionType = ClosedEnum<typeof PromotionType>;
|
|
19
|
+
|
|
12
20
|
export const DiscountType = {
|
|
13
21
|
Percentage: "percentage",
|
|
14
22
|
FixedAmount: "fixed-amount",
|
|
@@ -28,6 +36,27 @@ export type DiscountBasedPromotion = {
|
|
|
28
36
|
discountFixedAmount?: number | undefined;
|
|
29
37
|
};
|
|
30
38
|
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const PromotionType$inboundSchema: z.ZodNativeEnum<
|
|
41
|
+
typeof PromotionType
|
|
42
|
+
> = z.nativeEnum(PromotionType);
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const PromotionType$outboundSchema: z.ZodNativeEnum<
|
|
46
|
+
typeof PromotionType
|
|
47
|
+
> = PromotionType$inboundSchema;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
+
*/
|
|
53
|
+
export namespace PromotionType$ {
|
|
54
|
+
/** @deprecated use `PromotionType$inboundSchema` instead. */
|
|
55
|
+
export const inboundSchema = PromotionType$inboundSchema;
|
|
56
|
+
/** @deprecated use `PromotionType$outboundSchema` instead. */
|
|
57
|
+
export const outboundSchema = PromotionType$outboundSchema;
|
|
58
|
+
}
|
|
59
|
+
|
|
31
60
|
/** @internal */
|
|
32
61
|
export const DiscountType$inboundSchema: z.ZodNativeEnum<typeof DiscountType> =
|
|
33
62
|
z.nativeEnum(DiscountType);
|
|
@@ -80,7 +109,7 @@ export const DiscountBasedPromotion$outboundSchema: z.ZodType<
|
|
|
80
109
|
z.ZodTypeDef,
|
|
81
110
|
DiscountBasedPromotion
|
|
82
111
|
> = z.object({
|
|
83
|
-
promotionType: z.literal("discount").default("discount"
|
|
112
|
+
promotionType: z.literal("discount").default("discount"),
|
|
84
113
|
discountType: DiscountType$outboundSchema,
|
|
85
114
|
discountPercent: z.number().optional(),
|
|
86
115
|
discountFixedAmount: z.number().int().optional(),
|
|
@@ -5,21 +5,53 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
11
|
|
|
12
|
+
export const FixedPricePromotionPromotionType = {
|
|
13
|
+
Discount: "discount",
|
|
14
|
+
VolumeBased: "volume-based",
|
|
15
|
+
FixedPrice: "fixed-price",
|
|
16
|
+
FreeGoods: "free-goods",
|
|
17
|
+
} as const;
|
|
18
|
+
export type FixedPricePromotionPromotionType = ClosedEnum<
|
|
19
|
+
typeof FixedPricePromotionPromotionType
|
|
20
|
+
>;
|
|
21
|
+
|
|
11
22
|
export type FixedPricePromotion = {
|
|
12
|
-
promotionType?: "
|
|
23
|
+
promotionType?: "fixed-price" | undefined;
|
|
13
24
|
offerPrice: number;
|
|
14
25
|
};
|
|
15
26
|
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const FixedPricePromotionPromotionType$inboundSchema: z.ZodNativeEnum<
|
|
29
|
+
typeof FixedPricePromotionPromotionType
|
|
30
|
+
> = z.nativeEnum(FixedPricePromotionPromotionType);
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const FixedPricePromotionPromotionType$outboundSchema: z.ZodNativeEnum<
|
|
34
|
+
typeof FixedPricePromotionPromotionType
|
|
35
|
+
> = FixedPricePromotionPromotionType$inboundSchema;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
+
*/
|
|
41
|
+
export namespace FixedPricePromotionPromotionType$ {
|
|
42
|
+
/** @deprecated use `FixedPricePromotionPromotionType$inboundSchema` instead. */
|
|
43
|
+
export const inboundSchema = FixedPricePromotionPromotionType$inboundSchema;
|
|
44
|
+
/** @deprecated use `FixedPricePromotionPromotionType$outboundSchema` instead. */
|
|
45
|
+
export const outboundSchema = FixedPricePromotionPromotionType$outboundSchema;
|
|
46
|
+
}
|
|
47
|
+
|
|
16
48
|
/** @internal */
|
|
17
49
|
export const FixedPricePromotion$inboundSchema: z.ZodType<
|
|
18
50
|
FixedPricePromotion,
|
|
19
51
|
z.ZodTypeDef,
|
|
20
52
|
unknown
|
|
21
53
|
> = z.object({
|
|
22
|
-
promotion_type: z.literal("
|
|
54
|
+
promotion_type: z.literal("fixed-price").optional(),
|
|
23
55
|
offer_price: z.number(),
|
|
24
56
|
}).transform((v) => {
|
|
25
57
|
return remap$(v, {
|
|
@@ -30,7 +62,7 @@ export const FixedPricePromotion$inboundSchema: z.ZodType<
|
|
|
30
62
|
|
|
31
63
|
/** @internal */
|
|
32
64
|
export type FixedPricePromotion$Outbound = {
|
|
33
|
-
promotion_type: "
|
|
65
|
+
promotion_type: "fixed-price";
|
|
34
66
|
offer_price: number;
|
|
35
67
|
};
|
|
36
68
|
|
|
@@ -40,7 +72,7 @@ export const FixedPricePromotion$outboundSchema: z.ZodType<
|
|
|
40
72
|
z.ZodTypeDef,
|
|
41
73
|
FixedPricePromotion
|
|
42
74
|
> = z.object({
|
|
43
|
-
promotionType: z.literal("
|
|
75
|
+
promotionType: z.literal("fixed-price").default("fixed-price"),
|
|
44
76
|
offerPrice: z.number(),
|
|
45
77
|
}).transform((v) => {
|
|
46
78
|
return remap$(v, {
|
|
@@ -5,9 +5,20 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
11
|
|
|
12
|
+
export const FreeGoodsPromotionPromotionType = {
|
|
13
|
+
Discount: "discount",
|
|
14
|
+
VolumeBased: "volume-based",
|
|
15
|
+
FixedPrice: "fixed-price",
|
|
16
|
+
FreeGoods: "free-goods",
|
|
17
|
+
} as const;
|
|
18
|
+
export type FreeGoodsPromotionPromotionType = ClosedEnum<
|
|
19
|
+
typeof FreeGoodsPromotionPromotionType
|
|
20
|
+
>;
|
|
21
|
+
|
|
11
22
|
export type FreeGoodsPromotion = {
|
|
12
23
|
promotionType?: "free-goods" | undefined;
|
|
13
24
|
/**
|
|
@@ -20,6 +31,27 @@ export type FreeGoodsPromotion = {
|
|
|
20
31
|
getQuantity: number;
|
|
21
32
|
};
|
|
22
33
|
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const FreeGoodsPromotionPromotionType$inboundSchema: z.ZodNativeEnum<
|
|
36
|
+
typeof FreeGoodsPromotionPromotionType
|
|
37
|
+
> = z.nativeEnum(FreeGoodsPromotionPromotionType);
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const FreeGoodsPromotionPromotionType$outboundSchema: z.ZodNativeEnum<
|
|
41
|
+
typeof FreeGoodsPromotionPromotionType
|
|
42
|
+
> = FreeGoodsPromotionPromotionType$inboundSchema;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
|
+
*/
|
|
48
|
+
export namespace FreeGoodsPromotionPromotionType$ {
|
|
49
|
+
/** @deprecated use `FreeGoodsPromotionPromotionType$inboundSchema` instead. */
|
|
50
|
+
export const inboundSchema = FreeGoodsPromotionPromotionType$inboundSchema;
|
|
51
|
+
/** @deprecated use `FreeGoodsPromotionPromotionType$outboundSchema` instead. */
|
|
52
|
+
export const outboundSchema = FreeGoodsPromotionPromotionType$outboundSchema;
|
|
53
|
+
}
|
|
54
|
+
|
|
23
55
|
/** @internal */
|
|
24
56
|
export const FreeGoodsPromotion$inboundSchema: z.ZodType<
|
|
25
57
|
FreeGoodsPromotion,
|
|
@@ -50,7 +82,7 @@ export const FreeGoodsPromotion$outboundSchema: z.ZodType<
|
|
|
50
82
|
z.ZodTypeDef,
|
|
51
83
|
FreeGoodsPromotion
|
|
52
84
|
> = z.object({
|
|
53
|
-
promotionType: z.literal("free-goods").default("free-goods"
|
|
85
|
+
promotionType: z.literal("free-goods").default("free-goods"),
|
|
54
86
|
buyQuantity: z.number().int(),
|
|
55
87
|
getQuantity: z.number().int(),
|
|
56
88
|
}).transform((v) => {
|
|
@@ -38,6 +38,12 @@ import {
|
|
|
38
38
|
ProductPromotion$Outbound,
|
|
39
39
|
ProductPromotion$outboundSchema,
|
|
40
40
|
} from "./productpromotion.js";
|
|
41
|
+
import {
|
|
42
|
+
ProductShipping,
|
|
43
|
+
ProductShipping$inboundSchema,
|
|
44
|
+
ProductShipping$Outbound,
|
|
45
|
+
ProductShipping$outboundSchema,
|
|
46
|
+
} from "./productshipping.js";
|
|
41
47
|
import {
|
|
42
48
|
ProductSubscription,
|
|
43
49
|
ProductSubscription$inboundSchema,
|
|
@@ -63,6 +69,10 @@ export type Item = {
|
|
|
63
69
|
shortDescription: string | null;
|
|
64
70
|
active: boolean;
|
|
65
71
|
stockAvailable: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Indicates whether the item is being fulfilled as a backorder. When true, the item is not currently in stock and will ship later once inventory is available. This may result in the order being split into multiple shipments, with delays for the backordered portion.
|
|
74
|
+
*/
|
|
75
|
+
backorder?: boolean | undefined;
|
|
66
76
|
/**
|
|
67
77
|
* Indicates whether this item is associated with any active (product-specific) coupons
|
|
68
78
|
*/
|
|
@@ -79,6 +89,7 @@ export type Item = {
|
|
|
79
89
|
promotion: ProductPromotion | null;
|
|
80
90
|
subscription: Array<ProductSubscription>;
|
|
81
91
|
associatedOptions: { [k: string]: AssociatedOption } | null;
|
|
92
|
+
shipping?: ProductShipping | null | undefined;
|
|
82
93
|
};
|
|
83
94
|
|
|
84
95
|
/** @internal */
|
|
@@ -115,6 +126,7 @@ export const Item$inboundSchema: z.ZodType<Item, z.ZodTypeDef, unknown> = z
|
|
|
115
126
|
short_description: z.nullable(z.string()),
|
|
116
127
|
active: z.boolean(),
|
|
117
128
|
stock_available: z.boolean(),
|
|
129
|
+
backorder: z.boolean().optional(),
|
|
118
130
|
on_offer: z.boolean(),
|
|
119
131
|
on_subscription: z.boolean(),
|
|
120
132
|
on_promotion: z.boolean(),
|
|
@@ -128,6 +140,7 @@ export const Item$inboundSchema: z.ZodType<Item, z.ZodTypeDef, unknown> = z
|
|
|
128
140
|
promotion: z.nullable(ProductPromotion$inboundSchema),
|
|
129
141
|
subscription: z.array(ProductSubscription$inboundSchema),
|
|
130
142
|
associated_options: z.nullable(z.record(AssociatedOption$inboundSchema)),
|
|
143
|
+
shipping: z.nullable(ProductShipping$inboundSchema).optional(),
|
|
131
144
|
}).transform((v) => {
|
|
132
145
|
return remap$(v, {
|
|
133
146
|
"product_id": "productId",
|
|
@@ -159,6 +172,7 @@ export type Item$Outbound = {
|
|
|
159
172
|
short_description: string | null;
|
|
160
173
|
active: boolean;
|
|
161
174
|
stock_available: boolean;
|
|
175
|
+
backorder?: boolean | undefined;
|
|
162
176
|
on_offer: boolean;
|
|
163
177
|
on_subscription: boolean;
|
|
164
178
|
on_promotion: boolean;
|
|
@@ -172,6 +186,7 @@ export type Item$Outbound = {
|
|
|
172
186
|
promotion: ProductPromotion$Outbound | null;
|
|
173
187
|
subscription: Array<ProductSubscription$Outbound>;
|
|
174
188
|
associated_options: { [k: string]: AssociatedOption$Outbound } | null;
|
|
189
|
+
shipping?: ProductShipping$Outbound | null | undefined;
|
|
175
190
|
};
|
|
176
191
|
|
|
177
192
|
/** @internal */
|
|
@@ -187,6 +202,7 @@ export const Item$outboundSchema: z.ZodType<Item$Outbound, z.ZodTypeDef, Item> =
|
|
|
187
202
|
shortDescription: z.nullable(z.string()),
|
|
188
203
|
active: z.boolean(),
|
|
189
204
|
stockAvailable: z.boolean(),
|
|
205
|
+
backorder: z.boolean().optional(),
|
|
190
206
|
onOffer: z.boolean(),
|
|
191
207
|
onSubscription: z.boolean(),
|
|
192
208
|
onPromotion: z.boolean(),
|
|
@@ -200,6 +216,7 @@ export const Item$outboundSchema: z.ZodType<Item$Outbound, z.ZodTypeDef, Item> =
|
|
|
200
216
|
promotion: z.nullable(ProductPromotion$outboundSchema),
|
|
201
217
|
subscription: z.array(ProductSubscription$outboundSchema),
|
|
202
218
|
associatedOptions: z.nullable(z.record(AssociatedOption$outboundSchema)),
|
|
219
|
+
shipping: z.nullable(ProductShipping$outboundSchema).optional(),
|
|
203
220
|
}).transform((v) => {
|
|
204
221
|
return remap$(v, {
|
|
205
222
|
productId: "product_id",
|
|
@@ -79,6 +79,10 @@ export type Product = {
|
|
|
79
79
|
* Indicates whether the product has stock available
|
|
80
80
|
*/
|
|
81
81
|
stockAvailable: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Indicates whether the item is being fulfilled as a backorder. When true, the item is not currently in stock and will ship later once inventory is available. This may result in the order being split into multiple shipments, with delays for the backordered portion.
|
|
84
|
+
*/
|
|
85
|
+
backorder?: boolean | undefined;
|
|
82
86
|
/**
|
|
83
87
|
* Indicates whether this item is associated with any active (product-specific) coupons
|
|
84
88
|
*/
|
|
@@ -142,6 +146,7 @@ export const Product$inboundSchema: z.ZodType<Product, z.ZodTypeDef, unknown> =
|
|
|
142
146
|
product_type: ProductType$inboundSchema,
|
|
143
147
|
active: z.boolean(),
|
|
144
148
|
stock_available: z.boolean(),
|
|
149
|
+
backorder: z.boolean().optional(),
|
|
145
150
|
on_offer: z.boolean(),
|
|
146
151
|
on_subscription: z.boolean(),
|
|
147
152
|
on_promotion: z.boolean(),
|
|
@@ -185,6 +190,7 @@ export type Product$Outbound = {
|
|
|
185
190
|
product_type: string;
|
|
186
191
|
active: boolean;
|
|
187
192
|
stock_available: boolean;
|
|
193
|
+
backorder?: boolean | undefined;
|
|
188
194
|
on_offer: boolean;
|
|
189
195
|
on_subscription: boolean;
|
|
190
196
|
on_promotion: boolean;
|
|
@@ -217,6 +223,7 @@ export const Product$outboundSchema: z.ZodType<
|
|
|
217
223
|
productType: ProductType$outboundSchema,
|
|
218
224
|
active: z.boolean(),
|
|
219
225
|
stockAvailable: z.boolean(),
|
|
226
|
+
backorder: z.boolean().optional(),
|
|
220
227
|
onOffer: z.boolean(),
|
|
221
228
|
onSubscription: z.boolean(),
|
|
222
229
|
onPromotion: z.boolean(),
|
|
@@ -38,6 +38,12 @@ import {
|
|
|
38
38
|
ProductPromotion$Outbound,
|
|
39
39
|
ProductPromotion$outboundSchema,
|
|
40
40
|
} from "./productpromotion.js";
|
|
41
|
+
import {
|
|
42
|
+
ProductShipping,
|
|
43
|
+
ProductShipping$inboundSchema,
|
|
44
|
+
ProductShipping$Outbound,
|
|
45
|
+
ProductShipping$outboundSchema,
|
|
46
|
+
} from "./productshipping.js";
|
|
41
47
|
import {
|
|
42
48
|
ProductSubscription,
|
|
43
49
|
ProductSubscription$inboundSchema,
|
|
@@ -66,6 +72,10 @@ export type ProductBundleItem = {
|
|
|
66
72
|
shortDescription: string | null;
|
|
67
73
|
active: boolean;
|
|
68
74
|
stockAvailable: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Indicates whether the item is being fulfilled as a backorder. When true, the item is not currently in stock and will ship later once inventory is available. This may result in the order being split into multiple shipments, with delays for the backordered portion.
|
|
77
|
+
*/
|
|
78
|
+
backorder?: boolean | undefined;
|
|
69
79
|
/**
|
|
70
80
|
* Indicates whether this item is associated with any active (product-specific) coupons
|
|
71
81
|
*/
|
|
@@ -82,6 +92,7 @@ export type ProductBundleItem = {
|
|
|
82
92
|
promotion: ProductPromotion | null;
|
|
83
93
|
subscription: Array<ProductSubscription>;
|
|
84
94
|
associatedOptions: { [k: string]: AssociatedOption } | null;
|
|
95
|
+
shipping?: ProductShipping | null | undefined;
|
|
85
96
|
};
|
|
86
97
|
|
|
87
98
|
/** @internal */
|
|
@@ -122,6 +133,7 @@ export const ProductBundleItem$inboundSchema: z.ZodType<
|
|
|
122
133
|
short_description: z.nullable(z.string()),
|
|
123
134
|
active: z.boolean(),
|
|
124
135
|
stock_available: z.boolean(),
|
|
136
|
+
backorder: z.boolean().optional(),
|
|
125
137
|
on_offer: z.boolean(),
|
|
126
138
|
on_subscription: z.boolean(),
|
|
127
139
|
on_promotion: z.boolean(),
|
|
@@ -135,6 +147,7 @@ export const ProductBundleItem$inboundSchema: z.ZodType<
|
|
|
135
147
|
promotion: z.nullable(ProductPromotion$inboundSchema),
|
|
136
148
|
subscription: z.array(ProductSubscription$inboundSchema),
|
|
137
149
|
associated_options: z.nullable(z.record(AssociatedOption$inboundSchema)),
|
|
150
|
+
shipping: z.nullable(ProductShipping$inboundSchema).optional(),
|
|
138
151
|
}).transform((v) => {
|
|
139
152
|
return remap$(v, {
|
|
140
153
|
"product_id": "productId",
|
|
@@ -167,6 +180,7 @@ export type ProductBundleItem$Outbound = {
|
|
|
167
180
|
short_description: string | null;
|
|
168
181
|
active: boolean;
|
|
169
182
|
stock_available: boolean;
|
|
183
|
+
backorder?: boolean | undefined;
|
|
170
184
|
on_offer: boolean;
|
|
171
185
|
on_subscription: boolean;
|
|
172
186
|
on_promotion: boolean;
|
|
@@ -180,6 +194,7 @@ export type ProductBundleItem$Outbound = {
|
|
|
180
194
|
promotion: ProductPromotion$Outbound | null;
|
|
181
195
|
subscription: Array<ProductSubscription$Outbound>;
|
|
182
196
|
associated_options: { [k: string]: AssociatedOption$Outbound } | null;
|
|
197
|
+
shipping?: ProductShipping$Outbound | null | undefined;
|
|
183
198
|
};
|
|
184
199
|
|
|
185
200
|
/** @internal */
|
|
@@ -199,6 +214,7 @@ export const ProductBundleItem$outboundSchema: z.ZodType<
|
|
|
199
214
|
shortDescription: z.nullable(z.string()),
|
|
200
215
|
active: z.boolean(),
|
|
201
216
|
stockAvailable: z.boolean(),
|
|
217
|
+
backorder: z.boolean().optional(),
|
|
202
218
|
onOffer: z.boolean(),
|
|
203
219
|
onSubscription: z.boolean(),
|
|
204
220
|
onPromotion: z.boolean(),
|
|
@@ -212,6 +228,7 @@ export const ProductBundleItem$outboundSchema: z.ZodType<
|
|
|
212
228
|
promotion: z.nullable(ProductPromotion$outboundSchema),
|
|
213
229
|
subscription: z.array(ProductSubscription$outboundSchema),
|
|
214
230
|
associatedOptions: z.nullable(z.record(AssociatedOption$outboundSchema)),
|
|
231
|
+
shipping: z.nullable(ProductShipping$outboundSchema).optional(),
|
|
215
232
|
}).transform((v) => {
|
|
216
233
|
return remap$(v, {
|
|
217
234
|
productId: "product_id",
|
|
@@ -99,6 +99,10 @@ export type ProductDetail = {
|
|
|
99
99
|
* Indicates whether the product has stock available
|
|
100
100
|
*/
|
|
101
101
|
stockAvailable: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Indicates whether the item is being fulfilled as a backorder. When true, the item is not currently in stock and will ship later once inventory is available. This may result in the order being split into multiple shipments, with delays for the backordered portion.
|
|
104
|
+
*/
|
|
105
|
+
backorder?: boolean | undefined;
|
|
102
106
|
/**
|
|
103
107
|
* Indicates whether this item is associated with any active (product-specific) coupons
|
|
104
108
|
*/
|
|
@@ -181,6 +185,7 @@ export const ProductDetail$inboundSchema: z.ZodType<
|
|
|
181
185
|
product_type: ProductDetailProductType$inboundSchema,
|
|
182
186
|
active: z.boolean(),
|
|
183
187
|
stock_available: z.boolean(),
|
|
188
|
+
backorder: z.boolean().optional(),
|
|
184
189
|
on_offer: z.boolean(),
|
|
185
190
|
on_subscription: z.boolean(),
|
|
186
191
|
on_promotion: z.boolean(),
|
|
@@ -235,6 +240,7 @@ export type ProductDetail$Outbound = {
|
|
|
235
240
|
product_type: string;
|
|
236
241
|
active: boolean;
|
|
237
242
|
stock_available: boolean;
|
|
243
|
+
backorder?: boolean | undefined;
|
|
238
244
|
on_offer: boolean;
|
|
239
245
|
on_subscription: boolean;
|
|
240
246
|
on_promotion: boolean;
|
|
@@ -275,6 +281,7 @@ export const ProductDetail$outboundSchema: z.ZodType<
|
|
|
275
281
|
productType: ProductDetailProductType$outboundSchema,
|
|
276
282
|
active: z.boolean(),
|
|
277
283
|
stockAvailable: z.boolean(),
|
|
284
|
+
backorder: z.boolean().optional(),
|
|
278
285
|
onOffer: z.boolean(),
|
|
279
286
|
onSubscription: z.boolean(),
|
|
280
287
|
onPromotion: z.boolean(),
|
|
@@ -9,14 +9,10 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type ProductShipping = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
midCode: string | null;
|
|
17
|
-
countryOfOrigin?: string | null | undefined;
|
|
18
|
-
taxType: string | null;
|
|
19
|
-
taxRate: number | null;
|
|
12
|
+
handlingChargesIncludingTax: number;
|
|
13
|
+
handlingChargesExcludingTax: number;
|
|
14
|
+
taxType: string;
|
|
15
|
+
taxRate: number;
|
|
20
16
|
};
|
|
21
17
|
|
|
22
18
|
/** @internal */
|
|
@@ -25,22 +21,14 @@ export const ProductShipping$inboundSchema: z.ZodType<
|
|
|
25
21
|
z.ZodTypeDef,
|
|
26
22
|
unknown
|
|
27
23
|
> = z.object({
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
mid_code: z.nullable(z.string()),
|
|
33
|
-
country_of_origin: z.nullable(z.string().default("India")),
|
|
34
|
-
tax_type: z.nullable(z.string()),
|
|
35
|
-
tax_rate: z.nullable(z.number()),
|
|
24
|
+
handling_charges_including_tax: z.number(),
|
|
25
|
+
handling_charges_excluding_tax: z.number(),
|
|
26
|
+
tax_type: z.string(),
|
|
27
|
+
tax_rate: z.number(),
|
|
36
28
|
}).transform((v) => {
|
|
37
29
|
return remap$(v, {
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"availability_description": "availabilityDescription",
|
|
41
|
-
"ships_internationally": "shipsInternationally",
|
|
42
|
-
"mid_code": "midCode",
|
|
43
|
-
"country_of_origin": "countryOfOrigin",
|
|
30
|
+
"handling_charges_including_tax": "handlingChargesIncludingTax",
|
|
31
|
+
"handling_charges_excluding_tax": "handlingChargesExcludingTax",
|
|
44
32
|
"tax_type": "taxType",
|
|
45
33
|
"tax_rate": "taxRate",
|
|
46
34
|
});
|
|
@@ -48,14 +36,10 @@ export const ProductShipping$inboundSchema: z.ZodType<
|
|
|
48
36
|
|
|
49
37
|
/** @internal */
|
|
50
38
|
export type ProductShipping$Outbound = {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
mid_code: string | null;
|
|
56
|
-
country_of_origin: string | null;
|
|
57
|
-
tax_type: string | null;
|
|
58
|
-
tax_rate: number | null;
|
|
39
|
+
handling_charges_including_tax: number;
|
|
40
|
+
handling_charges_excluding_tax: number;
|
|
41
|
+
tax_type: string;
|
|
42
|
+
tax_rate: number;
|
|
59
43
|
};
|
|
60
44
|
|
|
61
45
|
/** @internal */
|
|
@@ -64,22 +48,14 @@ export const ProductShipping$outboundSchema: z.ZodType<
|
|
|
64
48
|
z.ZodTypeDef,
|
|
65
49
|
ProductShipping
|
|
66
50
|
> = z.object({
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
midCode: z.nullable(z.string()),
|
|
72
|
-
countryOfOrigin: z.nullable(z.string().default("India")),
|
|
73
|
-
taxType: z.nullable(z.string()),
|
|
74
|
-
taxRate: z.nullable(z.number()),
|
|
51
|
+
handlingChargesIncludingTax: z.number(),
|
|
52
|
+
handlingChargesExcludingTax: z.number(),
|
|
53
|
+
taxType: z.string(),
|
|
54
|
+
taxRate: z.number(),
|
|
75
55
|
}).transform((v) => {
|
|
76
56
|
return remap$(v, {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
availabilityDescription: "availability_description",
|
|
80
|
-
shipsInternationally: "ships_internationally",
|
|
81
|
-
midCode: "mid_code",
|
|
82
|
-
countryOfOrigin: "country_of_origin",
|
|
57
|
+
handlingChargesIncludingTax: "handling_charges_including_tax",
|
|
58
|
+
handlingChargesExcludingTax: "handling_charges_excluding_tax",
|
|
83
59
|
taxType: "tax_type",
|
|
84
60
|
taxRate: "tax_rate",
|
|
85
61
|
});
|
|
@@ -63,6 +63,10 @@ export type Variant = {
|
|
|
63
63
|
shortDescription: string | null;
|
|
64
64
|
active: boolean;
|
|
65
65
|
stockAvailable: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Indicates whether the item is being fulfilled as a backorder. When true, the item is not currently in stock and will ship later once inventory is available. This may result in the order being split into multiple shipments, with delays for the backordered portion.
|
|
68
|
+
*/
|
|
69
|
+
backorder?: boolean | undefined;
|
|
66
70
|
/**
|
|
67
71
|
* Indicates whether this item is associated with any active (product-specific) coupons
|
|
68
72
|
*/
|
|
@@ -95,6 +99,7 @@ export const Variant$inboundSchema: z.ZodType<Variant, z.ZodTypeDef, unknown> =
|
|
|
95
99
|
short_description: z.nullable(z.string()),
|
|
96
100
|
active: z.boolean(),
|
|
97
101
|
stock_available: z.boolean(),
|
|
102
|
+
backorder: z.boolean().optional(),
|
|
98
103
|
on_offer: z.boolean(),
|
|
99
104
|
on_promotion: z.boolean(),
|
|
100
105
|
on_subscription: z.boolean(),
|
|
@@ -129,6 +134,7 @@ export type Variant$Outbound = {
|
|
|
129
134
|
short_description: string | null;
|
|
130
135
|
active: boolean;
|
|
131
136
|
stock_available: boolean;
|
|
137
|
+
backorder?: boolean | undefined;
|
|
132
138
|
on_offer: boolean;
|
|
133
139
|
on_promotion: boolean;
|
|
134
140
|
on_subscription: boolean;
|
|
@@ -155,6 +161,7 @@ export const Variant$outboundSchema: z.ZodType<
|
|
|
155
161
|
shortDescription: z.nullable(z.string()),
|
|
156
162
|
active: z.boolean(),
|
|
157
163
|
stockAvailable: z.boolean(),
|
|
164
|
+
backorder: z.boolean().optional(),
|
|
158
165
|
onOffer: z.boolean(),
|
|
159
166
|
onPromotion: z.boolean(),
|
|
160
167
|
onSubscription: z.boolean(),
|
|
@@ -103,6 +103,10 @@ export type VariantDetail = {
|
|
|
103
103
|
shortDescription: string | null;
|
|
104
104
|
active: boolean;
|
|
105
105
|
stockAvailable: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Indicates whether the item is being fulfilled as a backorder. When true, the item is not currently in stock and will ship later once inventory is available. This may result in the order being split into multiple shipments, with delays for the backordered portion.
|
|
108
|
+
*/
|
|
109
|
+
backorder?: boolean | undefined;
|
|
106
110
|
/**
|
|
107
111
|
* Indicates whether this item is associated with any active (product-specific) coupons
|
|
108
112
|
*/
|
|
@@ -173,6 +177,7 @@ export const VariantDetail$inboundSchema: z.ZodType<
|
|
|
173
177
|
short_description: z.nullable(z.string()),
|
|
174
178
|
active: z.boolean(),
|
|
175
179
|
stock_available: z.boolean(),
|
|
180
|
+
backorder: z.boolean().optional(),
|
|
176
181
|
on_offer: z.boolean(),
|
|
177
182
|
on_promotion: z.boolean(),
|
|
178
183
|
on_subscription: z.boolean(),
|
|
@@ -229,6 +234,7 @@ export type VariantDetail$Outbound = {
|
|
|
229
234
|
short_description: string | null;
|
|
230
235
|
active: boolean;
|
|
231
236
|
stock_available: boolean;
|
|
237
|
+
backorder?: boolean | undefined;
|
|
232
238
|
on_offer: boolean;
|
|
233
239
|
on_promotion: boolean;
|
|
234
240
|
on_subscription: boolean;
|
|
@@ -269,6 +275,7 @@ export const VariantDetail$outboundSchema: z.ZodType<
|
|
|
269
275
|
shortDescription: z.nullable(z.string()),
|
|
270
276
|
active: z.boolean(),
|
|
271
277
|
stockAvailable: z.boolean(),
|
|
278
|
+
backorder: z.boolean().optional(),
|
|
272
279
|
onOffer: z.boolean(),
|
|
273
280
|
onPromotion: z.boolean(),
|
|
274
281
|
onSubscription: z.boolean(),
|