ce-storefront 0.15.30 → 0.16.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.
Files changed (299) hide show
  1. package/README.md +6 -8
  2. package/RUNTIMES.md +6 -6
  3. package/docs/sdks/auth/README.md +32 -16
  4. package/esm/funcs/authGenerateOtp.d.ts +1 -1
  5. package/esm/funcs/authGenerateOtp.d.ts.map +1 -1
  6. package/esm/funcs/authGenerateOtp.js +8 -4
  7. package/esm/funcs/authGenerateOtp.js.map +1 -1
  8. package/esm/funcs/authGetUserDetail.js +1 -1
  9. package/esm/funcs/authGetUserDetail.js.map +1 -1
  10. package/esm/funcs/authLoginWithEmail.d.ts +1 -1
  11. package/esm/funcs/authLoginWithEmail.d.ts.map +1 -1
  12. package/esm/funcs/authLoginWithEmail.js +8 -4
  13. package/esm/funcs/authLoginWithEmail.js.map +1 -1
  14. package/esm/funcs/authLoginWithPhone.d.ts +1 -1
  15. package/esm/funcs/authLoginWithPhone.d.ts.map +1 -1
  16. package/esm/funcs/authLoginWithPhone.js +8 -4
  17. package/esm/funcs/authLoginWithPhone.js.map +1 -1
  18. package/esm/funcs/authLoginWithWhatsapp.d.ts +1 -1
  19. package/esm/funcs/authLoginWithWhatsapp.d.ts.map +1 -1
  20. package/esm/funcs/authLoginWithWhatsapp.js +8 -4
  21. package/esm/funcs/authLoginWithWhatsapp.js.map +1 -1
  22. package/esm/funcs/authLogout.js +1 -1
  23. package/esm/funcs/authLogout.js.map +1 -1
  24. package/esm/funcs/authRefreshToken.js +1 -1
  25. package/esm/funcs/authRefreshToken.js.map +1 -1
  26. package/esm/funcs/authUpdateUser.js +1 -1
  27. package/esm/funcs/authUpdateUser.js.map +1 -1
  28. package/esm/funcs/authVerifyOtp.js +1 -1
  29. package/esm/funcs/authVerifyOtp.js.map +1 -1
  30. package/esm/funcs/cartsAddShippingMethod.js +1 -1
  31. package/esm/funcs/cartsAddShippingMethod.js.map +1 -1
  32. package/esm/funcs/cartsApplyCoupon.js +1 -1
  33. package/esm/funcs/cartsApplyCoupon.js.map +1 -1
  34. package/esm/funcs/cartsCreateCart.js +1 -1
  35. package/esm/funcs/cartsCreateCart.js.map +1 -1
  36. package/esm/funcs/cartsCreateCartAddress.js +1 -1
  37. package/esm/funcs/cartsCreateCartAddress.js.map +1 -1
  38. package/esm/funcs/cartsDeleteCart.js +1 -1
  39. package/esm/funcs/cartsDeleteCart.js.map +1 -1
  40. package/esm/funcs/cartsGetCart.js +1 -1
  41. package/esm/funcs/cartsGetCart.js.map +1 -1
  42. package/esm/funcs/cartsGetUserCart.js +1 -1
  43. package/esm/funcs/cartsGetUserCart.js.map +1 -1
  44. package/esm/funcs/cartsRedeemLoyaltyPoints.js +1 -1
  45. package/esm/funcs/cartsRedeemLoyaltyPoints.js.map +1 -1
  46. package/esm/funcs/cartsRemoveCoupon.js +1 -1
  47. package/esm/funcs/cartsRemoveCoupon.js.map +1 -1
  48. package/esm/funcs/cartsRemoveLoyaltyPoints.js +1 -1
  49. package/esm/funcs/cartsRemoveLoyaltyPoints.js.map +1 -1
  50. package/esm/funcs/cartsRemoveUserCart.js +1 -1
  51. package/esm/funcs/cartsRemoveUserCart.js.map +1 -1
  52. package/esm/funcs/cartsUpdateCart.js +1 -1
  53. package/esm/funcs/cartsUpdateCart.js.map +1 -1
  54. package/esm/funcs/cartsUpdateFulfillmentPreference.js +1 -1
  55. package/esm/funcs/cartsUpdateFulfillmentPreference.js.map +1 -1
  56. package/esm/funcs/catalogGetProductDetail.js +1 -1
  57. package/esm/funcs/catalogGetProductDetail.js.map +1 -1
  58. package/esm/funcs/catalogGetVariantDetail.js +1 -1
  59. package/esm/funcs/catalogGetVariantDetail.js.map +1 -1
  60. package/esm/funcs/catalogListCategories.js +1 -1
  61. package/esm/funcs/catalogListCategories.js.map +1 -1
  62. package/esm/funcs/catalogListCrosssellProducts.js +1 -1
  63. package/esm/funcs/catalogListCrosssellProducts.js.map +1 -1
  64. package/esm/funcs/catalogListProductReviews.js +1 -1
  65. package/esm/funcs/catalogListProductReviews.js.map +1 -1
  66. package/esm/funcs/catalogListProductVariants.js +1 -1
  67. package/esm/funcs/catalogListProductVariants.js.map +1 -1
  68. package/esm/funcs/catalogListProducts.js +1 -1
  69. package/esm/funcs/catalogListProducts.js.map +1 -1
  70. package/esm/funcs/catalogListSimilarProducts.js +1 -1
  71. package/esm/funcs/catalogListSimilarProducts.js.map +1 -1
  72. package/esm/funcs/catalogListSkus.js +1 -1
  73. package/esm/funcs/catalogListSkus.js.map +1 -1
  74. package/esm/funcs/catalogListUpsellProducts.js +1 -1
  75. package/esm/funcs/catalogListUpsellProducts.js.map +1 -1
  76. package/esm/funcs/catalogSearchProducts.js +1 -1
  77. package/esm/funcs/catalogSearchProducts.js.map +1 -1
  78. package/esm/funcs/commonListCountryPincodes.js +1 -1
  79. package/esm/funcs/commonListCountryPincodes.js.map +1 -1
  80. package/esm/funcs/customersCreateAddress.js +1 -1
  81. package/esm/funcs/customersCreateAddress.js.map +1 -1
  82. package/esm/funcs/customersDeleteAddress.js +1 -1
  83. package/esm/funcs/customersDeleteAddress.js.map +1 -1
  84. package/esm/funcs/customersGetAddressDetail.js +1 -1
  85. package/esm/funcs/customersGetAddressDetail.js.map +1 -1
  86. package/esm/funcs/customersGetLoyaltyDetails.js +1 -1
  87. package/esm/funcs/customersGetLoyaltyDetails.js.map +1 -1
  88. package/esm/funcs/customersListAddresses.js +1 -1
  89. package/esm/funcs/customersListAddresses.js.map +1 -1
  90. package/esm/funcs/customersListUserReviews.js +1 -1
  91. package/esm/funcs/customersListUserReviews.js.map +1 -1
  92. package/esm/funcs/customersUpdateAddressDetail.js +1 -1
  93. package/esm/funcs/customersUpdateAddressDetail.js.map +1 -1
  94. package/esm/funcs/ordersCancelOrder.js +1 -1
  95. package/esm/funcs/ordersCancelOrder.js.map +1 -1
  96. package/esm/funcs/ordersCreateOrder.js +1 -1
  97. package/esm/funcs/ordersCreateOrder.js.map +1 -1
  98. package/esm/funcs/ordersGetOrderDetail.js +1 -1
  99. package/esm/funcs/ordersGetOrderDetail.js.map +1 -1
  100. package/esm/funcs/ordersGetPaymentStatus.js +1 -1
  101. package/esm/funcs/ordersGetPaymentStatus.js.map +1 -1
  102. package/esm/funcs/ordersListOrderShipments.js +1 -1
  103. package/esm/funcs/ordersListOrderShipments.js.map +1 -1
  104. package/esm/funcs/ordersListOrders.js +1 -1
  105. package/esm/funcs/ordersListOrders.js.map +1 -1
  106. package/esm/funcs/ordersRetryOrderPayment.js +1 -1
  107. package/esm/funcs/ordersRetryOrderPayment.js.map +1 -1
  108. package/esm/funcs/shippingCheckServiceability.js +1 -1
  109. package/esm/funcs/shippingCheckServiceability.js.map +1 -1
  110. package/esm/funcs/shippingFulfillmentOptions.js +1 -1
  111. package/esm/funcs/shippingFulfillmentOptions.js.map +1 -1
  112. package/esm/funcs/shippingShippingMethods.js +1 -1
  113. package/esm/funcs/shippingShippingMethods.js.map +1 -1
  114. package/esm/lib/config.d.ts +3 -3
  115. package/esm/lib/config.js +3 -3
  116. package/esm/lib/config.js.map +1 -1
  117. package/esm/lib/url.js +1 -1
  118. package/esm/lib/url.js.map +1 -1
  119. package/esm/models/components/cart.d.ts +6 -0
  120. package/esm/models/components/cart.d.ts.map +1 -1
  121. package/esm/models/components/cart.js +10 -0
  122. package/esm/models/components/cart.js.map +1 -1
  123. package/esm/models/components/cartitem.d.ts +0 -5
  124. package/esm/models/components/cartitem.d.ts.map +1 -1
  125. package/esm/models/components/cartitem.js +0 -4
  126. package/esm/models/components/cartitem.js.map +1 -1
  127. package/esm/models/components/deliveryfulfillment.d.ts +8 -0
  128. package/esm/models/components/deliveryfulfillment.d.ts.map +1 -1
  129. package/esm/models/components/deliveryfulfillment.js +16 -0
  130. package/esm/models/components/deliveryfulfillment.js.map +1 -1
  131. package/esm/models/components/fulfillmentpreference.d.ts +16 -19
  132. package/esm/models/components/fulfillmentpreference.d.ts.map +1 -1
  133. package/esm/models/components/fulfillmentpreference.js +20 -9
  134. package/esm/models/components/fulfillmentpreference.js.map +1 -1
  135. package/esm/models/components/fulfillmenttype.d.ts +37 -0
  136. package/esm/models/components/fulfillmenttype.d.ts.map +1 -0
  137. package/esm/models/components/fulfillmenttype.js +28 -0
  138. package/esm/models/components/fulfillmenttype.js.map +1 -0
  139. package/esm/models/components/index.d.ts +2 -0
  140. package/esm/models/components/index.d.ts.map +1 -1
  141. package/esm/models/components/index.js +2 -0
  142. package/esm/models/components/index.js.map +1 -1
  143. package/esm/models/components/item.d.ts +0 -5
  144. package/esm/models/components/item.d.ts.map +1 -1
  145. package/esm/models/components/item.js +0 -4
  146. package/esm/models/components/item.js.map +1 -1
  147. package/esm/models/components/order.d.ts +6 -0
  148. package/esm/models/components/order.d.ts.map +1 -1
  149. package/esm/models/components/order.js +10 -0
  150. package/esm/models/components/order.js.map +1 -1
  151. package/esm/models/components/orderdetail.d.ts +6 -0
  152. package/esm/models/components/orderdetail.d.ts.map +1 -1
  153. package/esm/models/components/orderdetail.js +10 -0
  154. package/esm/models/components/orderdetail.js.map +1 -1
  155. package/esm/models/components/orderitem.d.ts +0 -2
  156. package/esm/models/components/orderitem.d.ts.map +1 -1
  157. package/esm/models/components/orderitem.js +0 -4
  158. package/esm/models/components/orderitem.js.map +1 -1
  159. package/esm/models/components/partialcollectanddelivery.d.ts +91 -28
  160. package/esm/models/components/partialcollectanddelivery.d.ts.map +1 -1
  161. package/esm/models/components/partialcollectanddelivery.js +112 -34
  162. package/esm/models/components/partialcollectanddelivery.js.map +1 -1
  163. package/esm/models/components/partialcollectanddeliveryinput.d.ts +173 -0
  164. package/esm/models/components/partialcollectanddeliveryinput.d.ts.map +1 -0
  165. package/esm/models/components/partialcollectanddeliveryinput.js +211 -0
  166. package/esm/models/components/partialcollectanddeliveryinput.js.map +1 -0
  167. package/esm/models/components/product.d.ts +0 -5
  168. package/esm/models/components/product.d.ts.map +1 -1
  169. package/esm/models/components/product.js +0 -4
  170. package/esm/models/components/product.js.map +1 -1
  171. package/esm/models/components/productbundleitem.d.ts +0 -5
  172. package/esm/models/components/productbundleitem.d.ts.map +1 -1
  173. package/esm/models/components/productbundleitem.js +0 -4
  174. package/esm/models/components/productbundleitem.js.map +1 -1
  175. package/esm/models/components/productdetail.d.ts +0 -5
  176. package/esm/models/components/productdetail.d.ts.map +1 -1
  177. package/esm/models/components/productdetail.js +0 -4
  178. package/esm/models/components/productdetail.js.map +1 -1
  179. package/esm/models/components/variant.d.ts +0 -5
  180. package/esm/models/components/variant.d.ts.map +1 -1
  181. package/esm/models/components/variant.js +0 -4
  182. package/esm/models/components/variant.js.map +1 -1
  183. package/esm/models/components/variantdetail.d.ts +0 -5
  184. package/esm/models/components/variantdetail.d.ts.map +1 -1
  185. package/esm/models/components/variantdetail.js +0 -4
  186. package/esm/models/components/variantdetail.js.map +1 -1
  187. package/esm/models/components/variantoption.d.ts +4 -4
  188. package/esm/models/components/variantoption.d.ts.map +1 -1
  189. package/esm/models/components/variantoption.js +4 -4
  190. package/esm/models/components/variantoption.js.map +1 -1
  191. package/esm/models/operations/generateotp.d.ts +30 -0
  192. package/esm/models/operations/generateotp.d.ts.map +1 -1
  193. package/esm/models/operations/generateotp.js +43 -0
  194. package/esm/models/operations/generateotp.js.map +1 -1
  195. package/esm/models/operations/getfulfillmentoptions.d.ts +27 -1
  196. package/esm/models/operations/getfulfillmentoptions.d.ts.map +1 -1
  197. package/esm/models/operations/getfulfillmentoptions.js +21 -2
  198. package/esm/models/operations/getfulfillmentoptions.js.map +1 -1
  199. package/esm/models/operations/loginwithemail.d.ts +30 -0
  200. package/esm/models/operations/loginwithemail.d.ts.map +1 -1
  201. package/esm/models/operations/loginwithemail.js +37 -0
  202. package/esm/models/operations/loginwithemail.js.map +1 -1
  203. package/esm/models/operations/loginwithphone.d.ts +30 -0
  204. package/esm/models/operations/loginwithphone.d.ts.map +1 -1
  205. package/esm/models/operations/loginwithphone.js +37 -0
  206. package/esm/models/operations/loginwithphone.js.map +1 -1
  207. package/esm/models/operations/loginwithwhatsapp.d.ts +30 -0
  208. package/esm/models/operations/loginwithwhatsapp.d.ts.map +1 -1
  209. package/esm/models/operations/loginwithwhatsapp.js +37 -0
  210. package/esm/models/operations/loginwithwhatsapp.js.map +1 -1
  211. package/esm/models/operations/updatefulfillmentpreference.d.ts +4 -4
  212. package/esm/models/operations/updatefulfillmentpreference.d.ts.map +1 -1
  213. package/esm/models/operations/updatefulfillmentpreference.js +4 -4
  214. package/esm/models/operations/updatefulfillmentpreference.js.map +1 -1
  215. package/esm/sdk/auth.d.ts +4 -4
  216. package/esm/sdk/auth.d.ts.map +1 -1
  217. package/esm/sdk/auth.js.map +1 -1
  218. package/examples/package-lock.json +1 -1
  219. package/jsr.json +1 -1
  220. package/package.json +1 -1
  221. package/src/funcs/authGenerateOtp.ts +10 -6
  222. package/src/funcs/authGetUserDetail.ts +1 -1
  223. package/src/funcs/authLoginWithEmail.ts +10 -6
  224. package/src/funcs/authLoginWithPhone.ts +10 -6
  225. package/src/funcs/authLoginWithWhatsapp.ts +10 -7
  226. package/src/funcs/authLogout.ts +1 -1
  227. package/src/funcs/authRefreshToken.ts +1 -1
  228. package/src/funcs/authUpdateUser.ts +1 -1
  229. package/src/funcs/authVerifyOtp.ts +1 -1
  230. package/src/funcs/cartsAddShippingMethod.ts +1 -1
  231. package/src/funcs/cartsApplyCoupon.ts +1 -1
  232. package/src/funcs/cartsCreateCart.ts +1 -1
  233. package/src/funcs/cartsCreateCartAddress.ts +1 -1
  234. package/src/funcs/cartsDeleteCart.ts +1 -1
  235. package/src/funcs/cartsGetCart.ts +1 -1
  236. package/src/funcs/cartsGetUserCart.ts +1 -1
  237. package/src/funcs/cartsRedeemLoyaltyPoints.ts +1 -1
  238. package/src/funcs/cartsRemoveCoupon.ts +1 -1
  239. package/src/funcs/cartsRemoveLoyaltyPoints.ts +1 -1
  240. package/src/funcs/cartsRemoveUserCart.ts +1 -1
  241. package/src/funcs/cartsUpdateCart.ts +1 -1
  242. package/src/funcs/cartsUpdateFulfillmentPreference.ts +1 -1
  243. package/src/funcs/catalogGetProductDetail.ts +1 -1
  244. package/src/funcs/catalogGetVariantDetail.ts +1 -1
  245. package/src/funcs/catalogListCategories.ts +1 -1
  246. package/src/funcs/catalogListCrosssellProducts.ts +1 -1
  247. package/src/funcs/catalogListProductReviews.ts +1 -1
  248. package/src/funcs/catalogListProductVariants.ts +1 -1
  249. package/src/funcs/catalogListProducts.ts +1 -1
  250. package/src/funcs/catalogListSimilarProducts.ts +1 -1
  251. package/src/funcs/catalogListSkus.ts +1 -1
  252. package/src/funcs/catalogListUpsellProducts.ts +1 -1
  253. package/src/funcs/catalogSearchProducts.ts +1 -1
  254. package/src/funcs/commonListCountryPincodes.ts +1 -1
  255. package/src/funcs/customersCreateAddress.ts +1 -1
  256. package/src/funcs/customersDeleteAddress.ts +1 -1
  257. package/src/funcs/customersGetAddressDetail.ts +1 -1
  258. package/src/funcs/customersGetLoyaltyDetails.ts +1 -1
  259. package/src/funcs/customersListAddresses.ts +1 -1
  260. package/src/funcs/customersListUserReviews.ts +1 -1
  261. package/src/funcs/customersUpdateAddressDetail.ts +1 -1
  262. package/src/funcs/ordersCancelOrder.ts +1 -1
  263. package/src/funcs/ordersCreateOrder.ts +1 -1
  264. package/src/funcs/ordersGetOrderDetail.ts +1 -1
  265. package/src/funcs/ordersGetPaymentStatus.ts +1 -1
  266. package/src/funcs/ordersListOrderShipments.ts +1 -1
  267. package/src/funcs/ordersListOrders.ts +1 -1
  268. package/src/funcs/ordersRetryOrderPayment.ts +1 -1
  269. package/src/funcs/shippingCheckServiceability.ts +1 -1
  270. package/src/funcs/shippingFulfillmentOptions.ts +1 -1
  271. package/src/funcs/shippingShippingMethods.ts +1 -1
  272. package/src/lib/config.ts +3 -3
  273. package/src/lib/url.ts +1 -1
  274. package/src/models/components/cart.ts +23 -0
  275. package/src/models/components/cartitem.ts +0 -9
  276. package/src/models/components/deliveryfulfillment.ts +24 -0
  277. package/src/models/components/fulfillmentpreference.ts +69 -15
  278. package/src/models/components/fulfillmenttype.ts +40 -0
  279. package/src/models/components/index.ts +2 -0
  280. package/src/models/components/item.ts +0 -9
  281. package/src/models/components/order.ts +23 -0
  282. package/src/models/components/orderdetail.ts +23 -0
  283. package/src/models/components/orderitem.ts +0 -6
  284. package/src/models/components/partialcollectanddelivery.ts +210 -63
  285. package/src/models/components/partialcollectanddeliveryinput.ts +472 -0
  286. package/src/models/components/product.ts +0 -9
  287. package/src/models/components/productbundleitem.ts +0 -9
  288. package/src/models/components/productdetail.ts +0 -9
  289. package/src/models/components/variant.ts +0 -9
  290. package/src/models/components/variantdetail.ts +0 -9
  291. package/src/models/components/variantoption.ts +8 -8
  292. package/src/models/operations/generateotp.ts +85 -0
  293. package/src/models/operations/getfulfillmentoptions.ts +33 -4
  294. package/src/models/operations/loginwithemail.ts +75 -0
  295. package/src/models/operations/loginwithphone.ts +75 -0
  296. package/src/models/operations/loginwithwhatsapp.ts +75 -0
  297. package/src/models/operations/updatefulfillmentpreference.ts +8 -8
  298. package/src/sdk/auth.ts +4 -4
  299. package/docs/sdks/cestorefront/README.md +0 -10
@@ -0,0 +1,472 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type PartialCollectAndDeliveryItemsInput = {
12
+ productId: string;
13
+ variantId: string | null;
14
+ quantity: number;
15
+ };
16
+
17
+ export type PartialCollectAndDeliveryPickup = {
18
+ items?: Array<PartialCollectAndDeliveryItemsInput> | undefined;
19
+ };
20
+
21
+ export type PartialCollectAndDeliveryPreferenceItemsInput = {
22
+ productId: string;
23
+ variantId: string | null;
24
+ quantity: number;
25
+ };
26
+
27
+ export type PartialCollectAndDeliveryDelivery = {
28
+ shippingProviderId: string | null;
29
+ courierCompanyId?: string | null | undefined;
30
+ items: Array<PartialCollectAndDeliveryPreferenceItemsInput>;
31
+ };
32
+
33
+ export type PartialCollectAndDeliveryPreference = {
34
+ pickup: PartialCollectAndDeliveryPickup;
35
+ delivery: PartialCollectAndDeliveryDelivery;
36
+ };
37
+
38
+ /**
39
+ * @see {@link https://llm-docs.commercengine.io/schemas/PartialCollectAndDelivery} - API reference for the PartialCollectAndDelivery schema
40
+ */
41
+ export type PartialCollectAndDeliveryInput = {
42
+ fulfillmentType?: "partial-collect-and-delivery" | undefined;
43
+ preference: PartialCollectAndDeliveryPreference;
44
+ };
45
+
46
+ /** @internal */
47
+ export const PartialCollectAndDeliveryItemsInput$inboundSchema: z.ZodType<
48
+ PartialCollectAndDeliveryItemsInput,
49
+ z.ZodTypeDef,
50
+ unknown
51
+ > = z.object({
52
+ product_id: z.string(),
53
+ variant_id: z.nullable(z.string()),
54
+ quantity: z.number().int(),
55
+ }).transform((v) => {
56
+ return remap$(v, {
57
+ "product_id": "productId",
58
+ "variant_id": "variantId",
59
+ });
60
+ });
61
+
62
+ /** @internal */
63
+ export type PartialCollectAndDeliveryItemsInput$Outbound = {
64
+ product_id: string;
65
+ variant_id: string | null;
66
+ quantity: number;
67
+ };
68
+
69
+ /** @internal */
70
+ export const PartialCollectAndDeliveryItemsInput$outboundSchema: z.ZodType<
71
+ PartialCollectAndDeliveryItemsInput$Outbound,
72
+ z.ZodTypeDef,
73
+ PartialCollectAndDeliveryItemsInput
74
+ > = z.object({
75
+ productId: z.string(),
76
+ variantId: z.nullable(z.string()),
77
+ quantity: z.number().int(),
78
+ }).transform((v) => {
79
+ return remap$(v, {
80
+ productId: "product_id",
81
+ variantId: "variant_id",
82
+ });
83
+ });
84
+
85
+ /**
86
+ * @internal
87
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
88
+ */
89
+ export namespace PartialCollectAndDeliveryItemsInput$ {
90
+ /** @deprecated use `PartialCollectAndDeliveryItemsInput$inboundSchema` instead. */
91
+ export const inboundSchema =
92
+ PartialCollectAndDeliveryItemsInput$inboundSchema;
93
+ /** @deprecated use `PartialCollectAndDeliveryItemsInput$outboundSchema` instead. */
94
+ export const outboundSchema =
95
+ PartialCollectAndDeliveryItemsInput$outboundSchema;
96
+ /** @deprecated use `PartialCollectAndDeliveryItemsInput$Outbound` instead. */
97
+ export type Outbound = PartialCollectAndDeliveryItemsInput$Outbound;
98
+ }
99
+
100
+ export function partialCollectAndDeliveryItemsInputToJSON(
101
+ partialCollectAndDeliveryItemsInput: PartialCollectAndDeliveryItemsInput,
102
+ ): string {
103
+ return JSON.stringify(
104
+ PartialCollectAndDeliveryItemsInput$outboundSchema.parse(
105
+ partialCollectAndDeliveryItemsInput,
106
+ ),
107
+ );
108
+ }
109
+
110
+ export function partialCollectAndDeliveryItemsInputFromJSON(
111
+ jsonString: string,
112
+ ): SafeParseResult<PartialCollectAndDeliveryItemsInput, SDKValidationError> {
113
+ return safeParse(
114
+ jsonString,
115
+ (x) =>
116
+ PartialCollectAndDeliveryItemsInput$inboundSchema.parse(JSON.parse(x)),
117
+ `Failed to parse 'PartialCollectAndDeliveryItemsInput' from JSON`,
118
+ );
119
+ }
120
+
121
+ /** @internal */
122
+ export const PartialCollectAndDeliveryPickup$inboundSchema: z.ZodType<
123
+ PartialCollectAndDeliveryPickup,
124
+ z.ZodTypeDef,
125
+ unknown
126
+ > = z.object({
127
+ items: z.array(
128
+ z.lazy(() => PartialCollectAndDeliveryItemsInput$inboundSchema),
129
+ ).optional(),
130
+ });
131
+
132
+ /** @internal */
133
+ export type PartialCollectAndDeliveryPickup$Outbound = {
134
+ items?: Array<PartialCollectAndDeliveryItemsInput$Outbound> | undefined;
135
+ };
136
+
137
+ /** @internal */
138
+ export const PartialCollectAndDeliveryPickup$outboundSchema: z.ZodType<
139
+ PartialCollectAndDeliveryPickup$Outbound,
140
+ z.ZodTypeDef,
141
+ PartialCollectAndDeliveryPickup
142
+ > = z.object({
143
+ items: z.array(
144
+ z.lazy(() => PartialCollectAndDeliveryItemsInput$outboundSchema),
145
+ ).optional(),
146
+ });
147
+
148
+ /**
149
+ * @internal
150
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
151
+ */
152
+ export namespace PartialCollectAndDeliveryPickup$ {
153
+ /** @deprecated use `PartialCollectAndDeliveryPickup$inboundSchema` instead. */
154
+ export const inboundSchema = PartialCollectAndDeliveryPickup$inboundSchema;
155
+ /** @deprecated use `PartialCollectAndDeliveryPickup$outboundSchema` instead. */
156
+ export const outboundSchema = PartialCollectAndDeliveryPickup$outboundSchema;
157
+ /** @deprecated use `PartialCollectAndDeliveryPickup$Outbound` instead. */
158
+ export type Outbound = PartialCollectAndDeliveryPickup$Outbound;
159
+ }
160
+
161
+ export function partialCollectAndDeliveryPickupToJSON(
162
+ partialCollectAndDeliveryPickup: PartialCollectAndDeliveryPickup,
163
+ ): string {
164
+ return JSON.stringify(
165
+ PartialCollectAndDeliveryPickup$outboundSchema.parse(
166
+ partialCollectAndDeliveryPickup,
167
+ ),
168
+ );
169
+ }
170
+
171
+ export function partialCollectAndDeliveryPickupFromJSON(
172
+ jsonString: string,
173
+ ): SafeParseResult<PartialCollectAndDeliveryPickup, SDKValidationError> {
174
+ return safeParse(
175
+ jsonString,
176
+ (x) => PartialCollectAndDeliveryPickup$inboundSchema.parse(JSON.parse(x)),
177
+ `Failed to parse 'PartialCollectAndDeliveryPickup' from JSON`,
178
+ );
179
+ }
180
+
181
+ /** @internal */
182
+ export const PartialCollectAndDeliveryPreferenceItemsInput$inboundSchema:
183
+ z.ZodType<
184
+ PartialCollectAndDeliveryPreferenceItemsInput,
185
+ z.ZodTypeDef,
186
+ unknown
187
+ > = z.object({
188
+ product_id: z.string(),
189
+ variant_id: z.nullable(z.string()),
190
+ quantity: z.number().int(),
191
+ }).transform((v) => {
192
+ return remap$(v, {
193
+ "product_id": "productId",
194
+ "variant_id": "variantId",
195
+ });
196
+ });
197
+
198
+ /** @internal */
199
+ export type PartialCollectAndDeliveryPreferenceItemsInput$Outbound = {
200
+ product_id: string;
201
+ variant_id: string | null;
202
+ quantity: number;
203
+ };
204
+
205
+ /** @internal */
206
+ export const PartialCollectAndDeliveryPreferenceItemsInput$outboundSchema:
207
+ z.ZodType<
208
+ PartialCollectAndDeliveryPreferenceItemsInput$Outbound,
209
+ z.ZodTypeDef,
210
+ PartialCollectAndDeliveryPreferenceItemsInput
211
+ > = z.object({
212
+ productId: z.string(),
213
+ variantId: z.nullable(z.string()),
214
+ quantity: z.number().int(),
215
+ }).transform((v) => {
216
+ return remap$(v, {
217
+ productId: "product_id",
218
+ variantId: "variant_id",
219
+ });
220
+ });
221
+
222
+ /**
223
+ * @internal
224
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
225
+ */
226
+ export namespace PartialCollectAndDeliveryPreferenceItemsInput$ {
227
+ /** @deprecated use `PartialCollectAndDeliveryPreferenceItemsInput$inboundSchema` instead. */
228
+ export const inboundSchema =
229
+ PartialCollectAndDeliveryPreferenceItemsInput$inboundSchema;
230
+ /** @deprecated use `PartialCollectAndDeliveryPreferenceItemsInput$outboundSchema` instead. */
231
+ export const outboundSchema =
232
+ PartialCollectAndDeliveryPreferenceItemsInput$outboundSchema;
233
+ /** @deprecated use `PartialCollectAndDeliveryPreferenceItemsInput$Outbound` instead. */
234
+ export type Outbound = PartialCollectAndDeliveryPreferenceItemsInput$Outbound;
235
+ }
236
+
237
+ export function partialCollectAndDeliveryPreferenceItemsInputToJSON(
238
+ partialCollectAndDeliveryPreferenceItemsInput:
239
+ PartialCollectAndDeliveryPreferenceItemsInput,
240
+ ): string {
241
+ return JSON.stringify(
242
+ PartialCollectAndDeliveryPreferenceItemsInput$outboundSchema.parse(
243
+ partialCollectAndDeliveryPreferenceItemsInput,
244
+ ),
245
+ );
246
+ }
247
+
248
+ export function partialCollectAndDeliveryPreferenceItemsInputFromJSON(
249
+ jsonString: string,
250
+ ): SafeParseResult<
251
+ PartialCollectAndDeliveryPreferenceItemsInput,
252
+ SDKValidationError
253
+ > {
254
+ return safeParse(
255
+ jsonString,
256
+ (x) =>
257
+ PartialCollectAndDeliveryPreferenceItemsInput$inboundSchema.parse(
258
+ JSON.parse(x),
259
+ ),
260
+ `Failed to parse 'PartialCollectAndDeliveryPreferenceItemsInput' from JSON`,
261
+ );
262
+ }
263
+
264
+ /** @internal */
265
+ export const PartialCollectAndDeliveryDelivery$inboundSchema: z.ZodType<
266
+ PartialCollectAndDeliveryDelivery,
267
+ z.ZodTypeDef,
268
+ unknown
269
+ > = z.object({
270
+ shipping_provider_id: z.nullable(z.string()),
271
+ courier_company_id: z.nullable(z.string()).optional(),
272
+ items: z.array(
273
+ z.lazy(() => PartialCollectAndDeliveryPreferenceItemsInput$inboundSchema),
274
+ ),
275
+ }).transform((v) => {
276
+ return remap$(v, {
277
+ "shipping_provider_id": "shippingProviderId",
278
+ "courier_company_id": "courierCompanyId",
279
+ });
280
+ });
281
+
282
+ /** @internal */
283
+ export type PartialCollectAndDeliveryDelivery$Outbound = {
284
+ shipping_provider_id: string | null;
285
+ courier_company_id?: string | null | undefined;
286
+ items: Array<PartialCollectAndDeliveryPreferenceItemsInput$Outbound>;
287
+ };
288
+
289
+ /** @internal */
290
+ export const PartialCollectAndDeliveryDelivery$outboundSchema: z.ZodType<
291
+ PartialCollectAndDeliveryDelivery$Outbound,
292
+ z.ZodTypeDef,
293
+ PartialCollectAndDeliveryDelivery
294
+ > = z.object({
295
+ shippingProviderId: z.nullable(z.string()),
296
+ courierCompanyId: z.nullable(z.string()).optional(),
297
+ items: z.array(
298
+ z.lazy(() => PartialCollectAndDeliveryPreferenceItemsInput$outboundSchema),
299
+ ),
300
+ }).transform((v) => {
301
+ return remap$(v, {
302
+ shippingProviderId: "shipping_provider_id",
303
+ courierCompanyId: "courier_company_id",
304
+ });
305
+ });
306
+
307
+ /**
308
+ * @internal
309
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
310
+ */
311
+ export namespace PartialCollectAndDeliveryDelivery$ {
312
+ /** @deprecated use `PartialCollectAndDeliveryDelivery$inboundSchema` instead. */
313
+ export const inboundSchema = PartialCollectAndDeliveryDelivery$inboundSchema;
314
+ /** @deprecated use `PartialCollectAndDeliveryDelivery$outboundSchema` instead. */
315
+ export const outboundSchema =
316
+ PartialCollectAndDeliveryDelivery$outboundSchema;
317
+ /** @deprecated use `PartialCollectAndDeliveryDelivery$Outbound` instead. */
318
+ export type Outbound = PartialCollectAndDeliveryDelivery$Outbound;
319
+ }
320
+
321
+ export function partialCollectAndDeliveryDeliveryToJSON(
322
+ partialCollectAndDeliveryDelivery: PartialCollectAndDeliveryDelivery,
323
+ ): string {
324
+ return JSON.stringify(
325
+ PartialCollectAndDeliveryDelivery$outboundSchema.parse(
326
+ partialCollectAndDeliveryDelivery,
327
+ ),
328
+ );
329
+ }
330
+
331
+ export function partialCollectAndDeliveryDeliveryFromJSON(
332
+ jsonString: string,
333
+ ): SafeParseResult<PartialCollectAndDeliveryDelivery, SDKValidationError> {
334
+ return safeParse(
335
+ jsonString,
336
+ (x) => PartialCollectAndDeliveryDelivery$inboundSchema.parse(JSON.parse(x)),
337
+ `Failed to parse 'PartialCollectAndDeliveryDelivery' from JSON`,
338
+ );
339
+ }
340
+
341
+ /** @internal */
342
+ export const PartialCollectAndDeliveryPreference$inboundSchema: z.ZodType<
343
+ PartialCollectAndDeliveryPreference,
344
+ z.ZodTypeDef,
345
+ unknown
346
+ > = z.object({
347
+ pickup: z.lazy(() => PartialCollectAndDeliveryPickup$inboundSchema),
348
+ delivery: z.lazy(() => PartialCollectAndDeliveryDelivery$inboundSchema),
349
+ });
350
+
351
+ /** @internal */
352
+ export type PartialCollectAndDeliveryPreference$Outbound = {
353
+ pickup: PartialCollectAndDeliveryPickup$Outbound;
354
+ delivery: PartialCollectAndDeliveryDelivery$Outbound;
355
+ };
356
+
357
+ /** @internal */
358
+ export const PartialCollectAndDeliveryPreference$outboundSchema: z.ZodType<
359
+ PartialCollectAndDeliveryPreference$Outbound,
360
+ z.ZodTypeDef,
361
+ PartialCollectAndDeliveryPreference
362
+ > = z.object({
363
+ pickup: z.lazy(() => PartialCollectAndDeliveryPickup$outboundSchema),
364
+ delivery: z.lazy(() => PartialCollectAndDeliveryDelivery$outboundSchema),
365
+ });
366
+
367
+ /**
368
+ * @internal
369
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
370
+ */
371
+ export namespace PartialCollectAndDeliveryPreference$ {
372
+ /** @deprecated use `PartialCollectAndDeliveryPreference$inboundSchema` instead. */
373
+ export const inboundSchema =
374
+ PartialCollectAndDeliveryPreference$inboundSchema;
375
+ /** @deprecated use `PartialCollectAndDeliveryPreference$outboundSchema` instead. */
376
+ export const outboundSchema =
377
+ PartialCollectAndDeliveryPreference$outboundSchema;
378
+ /** @deprecated use `PartialCollectAndDeliveryPreference$Outbound` instead. */
379
+ export type Outbound = PartialCollectAndDeliveryPreference$Outbound;
380
+ }
381
+
382
+ export function partialCollectAndDeliveryPreferenceToJSON(
383
+ partialCollectAndDeliveryPreference: PartialCollectAndDeliveryPreference,
384
+ ): string {
385
+ return JSON.stringify(
386
+ PartialCollectAndDeliveryPreference$outboundSchema.parse(
387
+ partialCollectAndDeliveryPreference,
388
+ ),
389
+ );
390
+ }
391
+
392
+ export function partialCollectAndDeliveryPreferenceFromJSON(
393
+ jsonString: string,
394
+ ): SafeParseResult<PartialCollectAndDeliveryPreference, SDKValidationError> {
395
+ return safeParse(
396
+ jsonString,
397
+ (x) =>
398
+ PartialCollectAndDeliveryPreference$inboundSchema.parse(JSON.parse(x)),
399
+ `Failed to parse 'PartialCollectAndDeliveryPreference' from JSON`,
400
+ );
401
+ }
402
+
403
+ /** @internal */
404
+ export const PartialCollectAndDeliveryInput$inboundSchema: z.ZodType<
405
+ PartialCollectAndDeliveryInput,
406
+ z.ZodTypeDef,
407
+ unknown
408
+ > = z.object({
409
+ fulfillment_type: z.literal("partial-collect-and-delivery").default(
410
+ "partial-collect-and-delivery",
411
+ ).optional(),
412
+ preference: z.lazy(() => PartialCollectAndDeliveryPreference$inboundSchema),
413
+ }).transform((v) => {
414
+ return remap$(v, {
415
+ "fulfillment_type": "fulfillmentType",
416
+ });
417
+ });
418
+
419
+ /** @internal */
420
+ export type PartialCollectAndDeliveryInput$Outbound = {
421
+ fulfillment_type: "partial-collect-and-delivery";
422
+ preference: PartialCollectAndDeliveryPreference$Outbound;
423
+ };
424
+
425
+ /** @internal */
426
+ export const PartialCollectAndDeliveryInput$outboundSchema: z.ZodType<
427
+ PartialCollectAndDeliveryInput$Outbound,
428
+ z.ZodTypeDef,
429
+ PartialCollectAndDeliveryInput
430
+ > = z.object({
431
+ fulfillmentType: z.literal("partial-collect-and-delivery").default(
432
+ "partial-collect-and-delivery" as const,
433
+ ),
434
+ preference: z.lazy(() => PartialCollectAndDeliveryPreference$outboundSchema),
435
+ }).transform((v) => {
436
+ return remap$(v, {
437
+ fulfillmentType: "fulfillment_type",
438
+ });
439
+ });
440
+
441
+ /**
442
+ * @internal
443
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
444
+ */
445
+ export namespace PartialCollectAndDeliveryInput$ {
446
+ /** @deprecated use `PartialCollectAndDeliveryInput$inboundSchema` instead. */
447
+ export const inboundSchema = PartialCollectAndDeliveryInput$inboundSchema;
448
+ /** @deprecated use `PartialCollectAndDeliveryInput$outboundSchema` instead. */
449
+ export const outboundSchema = PartialCollectAndDeliveryInput$outboundSchema;
450
+ /** @deprecated use `PartialCollectAndDeliveryInput$Outbound` instead. */
451
+ export type Outbound = PartialCollectAndDeliveryInput$Outbound;
452
+ }
453
+
454
+ export function partialCollectAndDeliveryInputToJSON(
455
+ partialCollectAndDeliveryInput: PartialCollectAndDeliveryInput,
456
+ ): string {
457
+ return JSON.stringify(
458
+ PartialCollectAndDeliveryInput$outboundSchema.parse(
459
+ partialCollectAndDeliveryInput,
460
+ ),
461
+ );
462
+ }
463
+
464
+ export function partialCollectAndDeliveryInputFromJSON(
465
+ jsonString: string,
466
+ ): SafeParseResult<PartialCollectAndDeliveryInput, SDKValidationError> {
467
+ return safeParse(
468
+ jsonString,
469
+ (x) => PartialCollectAndDeliveryInput$inboundSchema.parse(JSON.parse(x)),
470
+ `Failed to parse 'PartialCollectAndDeliveryInput' from JSON`,
471
+ );
472
+ }
@@ -98,10 +98,6 @@ export type Product = {
98
98
  * 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.
99
99
  */
100
100
  backorder?: boolean | undefined;
101
- /**
102
- * Indicates whether this item is associated with any active (product-specific) coupons
103
- */
104
- onOffer: boolean;
105
101
  /**
106
102
  * Indicates whether the product has any subscription plans avaialble
107
103
  */
@@ -166,7 +162,6 @@ export const Product$inboundSchema: z.ZodType<Product, z.ZodTypeDef, unknown> =
166
162
  active: z.boolean(),
167
163
  stock_available: z.boolean(),
168
164
  backorder: z.boolean().optional(),
169
- on_offer: z.boolean(),
170
165
  on_subscription: z.boolean(),
171
166
  on_promotion: z.boolean(),
172
167
  has_variant: z.boolean(),
@@ -189,7 +184,6 @@ export const Product$inboundSchema: z.ZodType<Product, z.ZodTypeDef, unknown> =
189
184
  "short_description": "shortDescription",
190
185
  "product_type": "productType",
191
186
  "stock_available": "stockAvailable",
192
- "on_offer": "onOffer",
193
187
  "on_subscription": "onSubscription",
194
188
  "on_promotion": "onPromotion",
195
189
  "has_variant": "hasVariant",
@@ -212,7 +206,6 @@ export type Product$Outbound = {
212
206
  active: boolean;
213
207
  stock_available: boolean;
214
208
  backorder?: boolean | undefined;
215
- on_offer: boolean;
216
209
  on_subscription: boolean;
217
210
  on_promotion: boolean;
218
211
  has_variant: boolean;
@@ -247,7 +240,6 @@ export const Product$outboundSchema: z.ZodType<
247
240
  active: z.boolean(),
248
241
  stockAvailable: z.boolean(),
249
242
  backorder: z.boolean().optional(),
250
- onOffer: z.boolean(),
251
243
  onSubscription: z.boolean(),
252
244
  onPromotion: z.boolean(),
253
245
  hasVariant: z.boolean(),
@@ -270,7 +262,6 @@ export const Product$outboundSchema: z.ZodType<
270
262
  shortDescription: "short_description",
271
263
  productType: "product_type",
272
264
  stockAvailable: "stock_available",
273
- onOffer: "on_offer",
274
265
  onSubscription: "on_subscription",
275
266
  onPromotion: "on_promotion",
276
267
  hasVariant: "has_variant",
@@ -85,10 +85,6 @@ export type ProductBundleItem = {
85
85
  * 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.
86
86
  */
87
87
  backorder?: boolean | undefined;
88
- /**
89
- * Indicates whether this item is associated with any active (product-specific) coupons
90
- */
91
- onOffer: boolean;
92
88
  onSubscription: boolean;
93
89
  onPromotion: boolean;
94
90
  categoryIds: Array<string>;
@@ -144,7 +140,6 @@ export const ProductBundleItem$inboundSchema: z.ZodType<
144
140
  active: z.boolean(),
145
141
  stock_available: z.boolean(),
146
142
  backorder: z.boolean().optional(),
147
- on_offer: z.boolean(),
148
143
  on_subscription: z.boolean(),
149
144
  on_promotion: z.boolean(),
150
145
  category_ids: z.array(z.string()),
@@ -168,7 +163,6 @@ export const ProductBundleItem$inboundSchema: z.ZodType<
168
163
  "product_type": "productType",
169
164
  "short_description": "shortDescription",
170
165
  "stock_available": "stockAvailable",
171
- "on_offer": "onOffer",
172
166
  "on_subscription": "onSubscription",
173
167
  "on_promotion": "onPromotion",
174
168
  "category_ids": "categoryIds",
@@ -192,7 +186,6 @@ export type ProductBundleItem$Outbound = {
192
186
  active: boolean;
193
187
  stock_available: boolean;
194
188
  backorder?: boolean | undefined;
195
- on_offer: boolean;
196
189
  on_subscription: boolean;
197
190
  on_promotion: boolean;
198
191
  category_ids: Array<string>;
@@ -227,7 +220,6 @@ export const ProductBundleItem$outboundSchema: z.ZodType<
227
220
  active: z.boolean(),
228
221
  stockAvailable: z.boolean(),
229
222
  backorder: z.boolean().optional(),
230
- onOffer: z.boolean(),
231
223
  onSubscription: z.boolean(),
232
224
  onPromotion: z.boolean(),
233
225
  categoryIds: z.array(z.string()),
@@ -251,7 +243,6 @@ export const ProductBundleItem$outboundSchema: z.ZodType<
251
243
  productType: "product_type",
252
244
  shortDescription: "short_description",
253
245
  stockAvailable: "stock_available",
254
- onOffer: "on_offer",
255
246
  onSubscription: "on_subscription",
256
247
  onPromotion: "on_promotion",
257
248
  categoryIds: "category_ids",
@@ -118,10 +118,6 @@ export type ProductDetail = {
118
118
  * 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.
119
119
  */
120
120
  backorder?: boolean | undefined;
121
- /**
122
- * Indicates whether this item is associated with any active (product-specific) coupons
123
- */
124
- onOffer: boolean;
125
121
  /**
126
122
  * Indicates whether the product has any subscription plans avaialble
127
123
  */
@@ -203,7 +199,6 @@ export const ProductDetail$inboundSchema: z.ZodType<
203
199
  active: z.boolean(),
204
200
  stock_available: z.boolean(),
205
201
  backorder: z.boolean().optional(),
206
- on_offer: z.boolean(),
207
202
  on_subscription: z.boolean(),
208
203
  on_promotion: z.boolean(),
209
204
  has_variant: z.boolean(),
@@ -234,7 +229,6 @@ export const ProductDetail$inboundSchema: z.ZodType<
234
229
  "short_description": "shortDescription",
235
230
  "product_type": "productType",
236
231
  "stock_available": "stockAvailable",
237
- "on_offer": "onOffer",
238
232
  "on_subscription": "onSubscription",
239
233
  "on_promotion": "onPromotion",
240
234
  "has_variant": "hasVariant",
@@ -260,7 +254,6 @@ export type ProductDetail$Outbound = {
260
254
  active: boolean;
261
255
  stock_available: boolean;
262
256
  backorder?: boolean | undefined;
263
- on_offer: boolean;
264
257
  on_subscription: boolean;
265
258
  on_promotion: boolean;
266
259
  has_variant: boolean;
@@ -303,7 +296,6 @@ export const ProductDetail$outboundSchema: z.ZodType<
303
296
  active: z.boolean(),
304
297
  stockAvailable: z.boolean(),
305
298
  backorder: z.boolean().optional(),
306
- onOffer: z.boolean(),
307
299
  onSubscription: z.boolean(),
308
300
  onPromotion: z.boolean(),
309
301
  hasVariant: z.boolean(),
@@ -334,7 +326,6 @@ export const ProductDetail$outboundSchema: z.ZodType<
334
326
  shortDescription: "short_description",
335
327
  productType: "product_type",
336
328
  stockAvailable: "stock_available",
337
- onOffer: "on_offer",
338
329
  onSubscription: "on_subscription",
339
330
  onPromotion: "on_promotion",
340
331
  hasVariant: "has_variant",
@@ -76,10 +76,6 @@ export type Variant = {
76
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
77
  */
78
78
  backorder?: boolean | undefined;
79
- /**
80
- * Indicates whether this item is associated with any active (product-specific) coupons
81
- */
82
- onOffer: boolean;
83
79
  onPromotion: boolean;
84
80
  onSubscription: boolean;
85
81
  /**
@@ -110,7 +106,6 @@ export const Variant$inboundSchema: z.ZodType<Variant, z.ZodTypeDef, unknown> =
110
106
  active: z.boolean(),
111
107
  stock_available: z.boolean(),
112
108
  backorder: z.boolean().optional(),
113
- on_offer: z.boolean(),
114
109
  on_promotion: z.boolean(),
115
110
  on_subscription: z.boolean(),
116
111
  is_default: z.boolean(),
@@ -126,7 +121,6 @@ export const Variant$inboundSchema: z.ZodType<Variant, z.ZodTypeDef, unknown> =
126
121
  "product_name": "productName",
127
122
  "short_description": "shortDescription",
128
123
  "stock_available": "stockAvailable",
129
- "on_offer": "onOffer",
130
124
  "on_promotion": "onPromotion",
131
125
  "on_subscription": "onSubscription",
132
126
  "is_default": "isDefault",
@@ -146,7 +140,6 @@ export type Variant$Outbound = {
146
140
  active: boolean;
147
141
  stock_available: boolean;
148
142
  backorder?: boolean | undefined;
149
- on_offer: boolean;
150
143
  on_promotion: boolean;
151
144
  on_subscription: boolean;
152
145
  is_default: boolean;
@@ -174,7 +167,6 @@ export const Variant$outboundSchema: z.ZodType<
174
167
  active: z.boolean(),
175
168
  stockAvailable: z.boolean(),
176
169
  backorder: z.boolean().optional(),
177
- onOffer: z.boolean(),
178
170
  onPromotion: z.boolean(),
179
171
  onSubscription: z.boolean(),
180
172
  isDefault: z.boolean(),
@@ -190,7 +182,6 @@ export const Variant$outboundSchema: z.ZodType<
190
182
  productName: "product_name",
191
183
  shortDescription: "short_description",
192
184
  stockAvailable: "stock_available",
193
- onOffer: "on_offer",
194
185
  onPromotion: "on_promotion",
195
186
  onSubscription: "on_subscription",
196
187
  isDefault: "is_default",