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.
- package/README.md +6 -8
- package/RUNTIMES.md +6 -6
- package/docs/sdks/auth/README.md +32 -16
- package/esm/funcs/authGenerateOtp.d.ts +1 -1
- package/esm/funcs/authGenerateOtp.d.ts.map +1 -1
- package/esm/funcs/authGenerateOtp.js +8 -4
- package/esm/funcs/authGenerateOtp.js.map +1 -1
- package/esm/funcs/authGetUserDetail.js +1 -1
- package/esm/funcs/authGetUserDetail.js.map +1 -1
- package/esm/funcs/authLoginWithEmail.d.ts +1 -1
- package/esm/funcs/authLoginWithEmail.d.ts.map +1 -1
- package/esm/funcs/authLoginWithEmail.js +8 -4
- package/esm/funcs/authLoginWithEmail.js.map +1 -1
- package/esm/funcs/authLoginWithPhone.d.ts +1 -1
- package/esm/funcs/authLoginWithPhone.d.ts.map +1 -1
- package/esm/funcs/authLoginWithPhone.js +8 -4
- package/esm/funcs/authLoginWithPhone.js.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.d.ts +1 -1
- package/esm/funcs/authLoginWithWhatsapp.d.ts.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.js +8 -4
- package/esm/funcs/authLoginWithWhatsapp.js.map +1 -1
- package/esm/funcs/authLogout.js +1 -1
- package/esm/funcs/authLogout.js.map +1 -1
- package/esm/funcs/authRefreshToken.js +1 -1
- package/esm/funcs/authRefreshToken.js.map +1 -1
- package/esm/funcs/authUpdateUser.js +1 -1
- package/esm/funcs/authUpdateUser.js.map +1 -1
- package/esm/funcs/authVerifyOtp.js +1 -1
- package/esm/funcs/authVerifyOtp.js.map +1 -1
- package/esm/funcs/cartsAddShippingMethod.js +1 -1
- package/esm/funcs/cartsAddShippingMethod.js.map +1 -1
- package/esm/funcs/cartsApplyCoupon.js +1 -1
- package/esm/funcs/cartsApplyCoupon.js.map +1 -1
- package/esm/funcs/cartsCreateCart.js +1 -1
- package/esm/funcs/cartsCreateCart.js.map +1 -1
- package/esm/funcs/cartsCreateCartAddress.js +1 -1
- package/esm/funcs/cartsCreateCartAddress.js.map +1 -1
- package/esm/funcs/cartsDeleteCart.js +1 -1
- package/esm/funcs/cartsDeleteCart.js.map +1 -1
- package/esm/funcs/cartsGetCart.js +1 -1
- package/esm/funcs/cartsGetCart.js.map +1 -1
- package/esm/funcs/cartsGetUserCart.js +1 -1
- package/esm/funcs/cartsGetUserCart.js.map +1 -1
- package/esm/funcs/cartsRedeemLoyaltyPoints.js +1 -1
- package/esm/funcs/cartsRedeemLoyaltyPoints.js.map +1 -1
- package/esm/funcs/cartsRemoveCoupon.js +1 -1
- package/esm/funcs/cartsRemoveCoupon.js.map +1 -1
- package/esm/funcs/cartsRemoveLoyaltyPoints.js +1 -1
- package/esm/funcs/cartsRemoveLoyaltyPoints.js.map +1 -1
- package/esm/funcs/cartsRemoveUserCart.js +1 -1
- package/esm/funcs/cartsRemoveUserCart.js.map +1 -1
- package/esm/funcs/cartsUpdateCart.js +1 -1
- package/esm/funcs/cartsUpdateCart.js.map +1 -1
- package/esm/funcs/cartsUpdateFulfillmentPreference.js +1 -1
- package/esm/funcs/cartsUpdateFulfillmentPreference.js.map +1 -1
- package/esm/funcs/catalogGetProductDetail.js +1 -1
- package/esm/funcs/catalogGetProductDetail.js.map +1 -1
- package/esm/funcs/catalogGetVariantDetail.js +1 -1
- package/esm/funcs/catalogGetVariantDetail.js.map +1 -1
- package/esm/funcs/catalogListCategories.js +1 -1
- package/esm/funcs/catalogListCategories.js.map +1 -1
- package/esm/funcs/catalogListCrosssellProducts.js +1 -1
- package/esm/funcs/catalogListCrosssellProducts.js.map +1 -1
- package/esm/funcs/catalogListProductReviews.js +1 -1
- package/esm/funcs/catalogListProductReviews.js.map +1 -1
- package/esm/funcs/catalogListProductVariants.js +1 -1
- package/esm/funcs/catalogListProductVariants.js.map +1 -1
- package/esm/funcs/catalogListProducts.js +1 -1
- package/esm/funcs/catalogListProducts.js.map +1 -1
- package/esm/funcs/catalogListSimilarProducts.js +1 -1
- package/esm/funcs/catalogListSimilarProducts.js.map +1 -1
- package/esm/funcs/catalogListSkus.js +1 -1
- package/esm/funcs/catalogListSkus.js.map +1 -1
- package/esm/funcs/catalogListUpsellProducts.js +1 -1
- package/esm/funcs/catalogListUpsellProducts.js.map +1 -1
- package/esm/funcs/catalogSearchProducts.js +1 -1
- package/esm/funcs/catalogSearchProducts.js.map +1 -1
- package/esm/funcs/commonListCountryPincodes.js +1 -1
- package/esm/funcs/commonListCountryPincodes.js.map +1 -1
- package/esm/funcs/customersCreateAddress.js +1 -1
- package/esm/funcs/customersCreateAddress.js.map +1 -1
- package/esm/funcs/customersDeleteAddress.js +1 -1
- package/esm/funcs/customersDeleteAddress.js.map +1 -1
- package/esm/funcs/customersGetAddressDetail.js +1 -1
- package/esm/funcs/customersGetAddressDetail.js.map +1 -1
- package/esm/funcs/customersGetLoyaltyDetails.js +1 -1
- package/esm/funcs/customersGetLoyaltyDetails.js.map +1 -1
- package/esm/funcs/customersListAddresses.js +1 -1
- package/esm/funcs/customersListAddresses.js.map +1 -1
- package/esm/funcs/customersListUserReviews.js +1 -1
- package/esm/funcs/customersListUserReviews.js.map +1 -1
- package/esm/funcs/customersUpdateAddressDetail.js +1 -1
- package/esm/funcs/customersUpdateAddressDetail.js.map +1 -1
- package/esm/funcs/ordersCancelOrder.js +1 -1
- package/esm/funcs/ordersCancelOrder.js.map +1 -1
- package/esm/funcs/ordersCreateOrder.js +1 -1
- package/esm/funcs/ordersCreateOrder.js.map +1 -1
- package/esm/funcs/ordersGetOrderDetail.js +1 -1
- package/esm/funcs/ordersGetOrderDetail.js.map +1 -1
- package/esm/funcs/ordersGetPaymentStatus.js +1 -1
- package/esm/funcs/ordersGetPaymentStatus.js.map +1 -1
- package/esm/funcs/ordersListOrderShipments.js +1 -1
- package/esm/funcs/ordersListOrderShipments.js.map +1 -1
- package/esm/funcs/ordersListOrders.js +1 -1
- package/esm/funcs/ordersListOrders.js.map +1 -1
- package/esm/funcs/ordersRetryOrderPayment.js +1 -1
- package/esm/funcs/ordersRetryOrderPayment.js.map +1 -1
- package/esm/funcs/shippingCheckServiceability.js +1 -1
- package/esm/funcs/shippingCheckServiceability.js.map +1 -1
- package/esm/funcs/shippingFulfillmentOptions.js +1 -1
- package/esm/funcs/shippingFulfillmentOptions.js.map +1 -1
- package/esm/funcs/shippingShippingMethods.js +1 -1
- package/esm/funcs/shippingShippingMethods.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/url.js +1 -1
- package/esm/lib/url.js.map +1 -1
- package/esm/models/components/cart.d.ts +6 -0
- package/esm/models/components/cart.d.ts.map +1 -1
- package/esm/models/components/cart.js +10 -0
- package/esm/models/components/cart.js.map +1 -1
- package/esm/models/components/cartitem.d.ts +0 -5
- package/esm/models/components/cartitem.d.ts.map +1 -1
- package/esm/models/components/cartitem.js +0 -4
- package/esm/models/components/cartitem.js.map +1 -1
- package/esm/models/components/deliveryfulfillment.d.ts +8 -0
- package/esm/models/components/deliveryfulfillment.d.ts.map +1 -1
- package/esm/models/components/deliveryfulfillment.js +16 -0
- package/esm/models/components/deliveryfulfillment.js.map +1 -1
- package/esm/models/components/fulfillmentpreference.d.ts +16 -19
- package/esm/models/components/fulfillmentpreference.d.ts.map +1 -1
- package/esm/models/components/fulfillmentpreference.js +20 -9
- package/esm/models/components/fulfillmentpreference.js.map +1 -1
- package/esm/models/components/fulfillmenttype.d.ts +37 -0
- package/esm/models/components/fulfillmenttype.d.ts.map +1 -0
- package/esm/models/components/fulfillmenttype.js +28 -0
- package/esm/models/components/fulfillmenttype.js.map +1 -0
- package/esm/models/components/index.d.ts +2 -0
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +2 -0
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/item.d.ts +0 -5
- package/esm/models/components/item.d.ts.map +1 -1
- package/esm/models/components/item.js +0 -4
- package/esm/models/components/item.js.map +1 -1
- package/esm/models/components/order.d.ts +6 -0
- package/esm/models/components/order.d.ts.map +1 -1
- package/esm/models/components/order.js +10 -0
- package/esm/models/components/order.js.map +1 -1
- package/esm/models/components/orderdetail.d.ts +6 -0
- package/esm/models/components/orderdetail.d.ts.map +1 -1
- package/esm/models/components/orderdetail.js +10 -0
- package/esm/models/components/orderdetail.js.map +1 -1
- package/esm/models/components/orderitem.d.ts +0 -2
- package/esm/models/components/orderitem.d.ts.map +1 -1
- package/esm/models/components/orderitem.js +0 -4
- package/esm/models/components/orderitem.js.map +1 -1
- package/esm/models/components/partialcollectanddelivery.d.ts +91 -28
- package/esm/models/components/partialcollectanddelivery.d.ts.map +1 -1
- package/esm/models/components/partialcollectanddelivery.js +112 -34
- package/esm/models/components/partialcollectanddelivery.js.map +1 -1
- package/esm/models/components/partialcollectanddeliveryinput.d.ts +173 -0
- package/esm/models/components/partialcollectanddeliveryinput.d.ts.map +1 -0
- package/esm/models/components/partialcollectanddeliveryinput.js +211 -0
- package/esm/models/components/partialcollectanddeliveryinput.js.map +1 -0
- package/esm/models/components/product.d.ts +0 -5
- package/esm/models/components/product.d.ts.map +1 -1
- package/esm/models/components/product.js +0 -4
- package/esm/models/components/product.js.map +1 -1
- package/esm/models/components/productbundleitem.d.ts +0 -5
- package/esm/models/components/productbundleitem.d.ts.map +1 -1
- package/esm/models/components/productbundleitem.js +0 -4
- package/esm/models/components/productbundleitem.js.map +1 -1
- package/esm/models/components/productdetail.d.ts +0 -5
- package/esm/models/components/productdetail.d.ts.map +1 -1
- package/esm/models/components/productdetail.js +0 -4
- package/esm/models/components/productdetail.js.map +1 -1
- package/esm/models/components/variant.d.ts +0 -5
- package/esm/models/components/variant.d.ts.map +1 -1
- package/esm/models/components/variant.js +0 -4
- package/esm/models/components/variant.js.map +1 -1
- package/esm/models/components/variantdetail.d.ts +0 -5
- package/esm/models/components/variantdetail.d.ts.map +1 -1
- package/esm/models/components/variantdetail.js +0 -4
- package/esm/models/components/variantdetail.js.map +1 -1
- package/esm/models/components/variantoption.d.ts +4 -4
- package/esm/models/components/variantoption.d.ts.map +1 -1
- package/esm/models/components/variantoption.js +4 -4
- package/esm/models/components/variantoption.js.map +1 -1
- package/esm/models/operations/generateotp.d.ts +30 -0
- package/esm/models/operations/generateotp.d.ts.map +1 -1
- package/esm/models/operations/generateotp.js +43 -0
- package/esm/models/operations/generateotp.js.map +1 -1
- package/esm/models/operations/getfulfillmentoptions.d.ts +27 -1
- package/esm/models/operations/getfulfillmentoptions.d.ts.map +1 -1
- package/esm/models/operations/getfulfillmentoptions.js +21 -2
- package/esm/models/operations/getfulfillmentoptions.js.map +1 -1
- package/esm/models/operations/loginwithemail.d.ts +30 -0
- package/esm/models/operations/loginwithemail.d.ts.map +1 -1
- package/esm/models/operations/loginwithemail.js +37 -0
- package/esm/models/operations/loginwithemail.js.map +1 -1
- package/esm/models/operations/loginwithphone.d.ts +30 -0
- package/esm/models/operations/loginwithphone.d.ts.map +1 -1
- package/esm/models/operations/loginwithphone.js +37 -0
- package/esm/models/operations/loginwithphone.js.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.d.ts +30 -0
- package/esm/models/operations/loginwithwhatsapp.d.ts.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.js +37 -0
- package/esm/models/operations/loginwithwhatsapp.js.map +1 -1
- package/esm/models/operations/updatefulfillmentpreference.d.ts +4 -4
- package/esm/models/operations/updatefulfillmentpreference.d.ts.map +1 -1
- package/esm/models/operations/updatefulfillmentpreference.js +4 -4
- package/esm/models/operations/updatefulfillmentpreference.js.map +1 -1
- package/esm/sdk/auth.d.ts +4 -4
- package/esm/sdk/auth.d.ts.map +1 -1
- package/esm/sdk/auth.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/authGenerateOtp.ts +10 -6
- package/src/funcs/authGetUserDetail.ts +1 -1
- package/src/funcs/authLoginWithEmail.ts +10 -6
- package/src/funcs/authLoginWithPhone.ts +10 -6
- package/src/funcs/authLoginWithWhatsapp.ts +10 -7
- package/src/funcs/authLogout.ts +1 -1
- package/src/funcs/authRefreshToken.ts +1 -1
- package/src/funcs/authUpdateUser.ts +1 -1
- package/src/funcs/authVerifyOtp.ts +1 -1
- package/src/funcs/cartsAddShippingMethod.ts +1 -1
- package/src/funcs/cartsApplyCoupon.ts +1 -1
- package/src/funcs/cartsCreateCart.ts +1 -1
- package/src/funcs/cartsCreateCartAddress.ts +1 -1
- package/src/funcs/cartsDeleteCart.ts +1 -1
- package/src/funcs/cartsGetCart.ts +1 -1
- package/src/funcs/cartsGetUserCart.ts +1 -1
- package/src/funcs/cartsRedeemLoyaltyPoints.ts +1 -1
- package/src/funcs/cartsRemoveCoupon.ts +1 -1
- package/src/funcs/cartsRemoveLoyaltyPoints.ts +1 -1
- package/src/funcs/cartsRemoveUserCart.ts +1 -1
- package/src/funcs/cartsUpdateCart.ts +1 -1
- package/src/funcs/cartsUpdateFulfillmentPreference.ts +1 -1
- package/src/funcs/catalogGetProductDetail.ts +1 -1
- package/src/funcs/catalogGetVariantDetail.ts +1 -1
- package/src/funcs/catalogListCategories.ts +1 -1
- package/src/funcs/catalogListCrosssellProducts.ts +1 -1
- package/src/funcs/catalogListProductReviews.ts +1 -1
- package/src/funcs/catalogListProductVariants.ts +1 -1
- package/src/funcs/catalogListProducts.ts +1 -1
- package/src/funcs/catalogListSimilarProducts.ts +1 -1
- package/src/funcs/catalogListSkus.ts +1 -1
- package/src/funcs/catalogListUpsellProducts.ts +1 -1
- package/src/funcs/catalogSearchProducts.ts +1 -1
- package/src/funcs/commonListCountryPincodes.ts +1 -1
- package/src/funcs/customersCreateAddress.ts +1 -1
- package/src/funcs/customersDeleteAddress.ts +1 -1
- package/src/funcs/customersGetAddressDetail.ts +1 -1
- package/src/funcs/customersGetLoyaltyDetails.ts +1 -1
- package/src/funcs/customersListAddresses.ts +1 -1
- package/src/funcs/customersListUserReviews.ts +1 -1
- package/src/funcs/customersUpdateAddressDetail.ts +1 -1
- package/src/funcs/ordersCancelOrder.ts +1 -1
- package/src/funcs/ordersCreateOrder.ts +1 -1
- package/src/funcs/ordersGetOrderDetail.ts +1 -1
- package/src/funcs/ordersGetPaymentStatus.ts +1 -1
- package/src/funcs/ordersListOrderShipments.ts +1 -1
- package/src/funcs/ordersListOrders.ts +1 -1
- package/src/funcs/ordersRetryOrderPayment.ts +1 -1
- package/src/funcs/shippingCheckServiceability.ts +1 -1
- package/src/funcs/shippingFulfillmentOptions.ts +1 -1
- package/src/funcs/shippingShippingMethods.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/url.ts +1 -1
- package/src/models/components/cart.ts +23 -0
- package/src/models/components/cartitem.ts +0 -9
- package/src/models/components/deliveryfulfillment.ts +24 -0
- package/src/models/components/fulfillmentpreference.ts +69 -15
- package/src/models/components/fulfillmenttype.ts +40 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/item.ts +0 -9
- package/src/models/components/order.ts +23 -0
- package/src/models/components/orderdetail.ts +23 -0
- package/src/models/components/orderitem.ts +0 -6
- package/src/models/components/partialcollectanddelivery.ts +210 -63
- package/src/models/components/partialcollectanddeliveryinput.ts +472 -0
- package/src/models/components/product.ts +0 -9
- package/src/models/components/productbundleitem.ts +0 -9
- package/src/models/components/productdetail.ts +0 -9
- package/src/models/components/variant.ts +0 -9
- package/src/models/components/variantdetail.ts +0 -9
- package/src/models/components/variantoption.ts +8 -8
- package/src/models/operations/generateotp.ts +85 -0
- package/src/models/operations/getfulfillmentoptions.ts +33 -4
- package/src/models/operations/loginwithemail.ts +75 -0
- package/src/models/operations/loginwithphone.ts +75 -0
- package/src/models/operations/loginwithwhatsapp.ts +75 -0
- package/src/models/operations/updatefulfillmentpreference.ts +8 -8
- package/src/sdk/auth.ts +4 -4
- package/docs/sdks/cestorefront/README.md +0 -10
|
@@ -37,6 +37,17 @@ import {
|
|
|
37
37
|
CustomerAddress$Outbound,
|
|
38
38
|
CustomerAddress$outboundSchema,
|
|
39
39
|
} from "./customeraddress.js";
|
|
40
|
+
import {
|
|
41
|
+
FulfillmentPreference,
|
|
42
|
+
FulfillmentPreference$inboundSchema,
|
|
43
|
+
FulfillmentPreference$Outbound,
|
|
44
|
+
FulfillmentPreference$outboundSchema,
|
|
45
|
+
} from "./fulfillmentpreference.js";
|
|
46
|
+
import {
|
|
47
|
+
FulfillmentType,
|
|
48
|
+
FulfillmentType$inboundSchema,
|
|
49
|
+
FulfillmentType$outboundSchema,
|
|
50
|
+
} from "./fulfillmenttype.js";
|
|
40
51
|
|
|
41
52
|
/**
|
|
42
53
|
* This cart model is structured to capture a wide range of details, facilitating accurate representation and management of user shopping carts in an e-commerce platform.
|
|
@@ -120,6 +131,8 @@ export type Cart = {
|
|
|
120
131
|
* Shipping amount including shipping tax.
|
|
121
132
|
*/
|
|
122
133
|
shippingAmountIncludingTax: number | null;
|
|
134
|
+
fulfillmentType: FulfillmentType;
|
|
135
|
+
fulfillmentPreference?: FulfillmentPreference | undefined;
|
|
123
136
|
shippingProviderId: string | null;
|
|
124
137
|
shippingProviderName: string | null;
|
|
125
138
|
courierCompanyId: string | null;
|
|
@@ -212,6 +225,8 @@ export const Cart$inboundSchema: z.ZodType<Cart, z.ZodTypeDef, unknown> = z
|
|
|
212
225
|
shipping_tax_rate: z.nullable(z.number()),
|
|
213
226
|
shipping_tax_amount: z.nullable(z.number()),
|
|
214
227
|
shipping_amount_including_tax: z.nullable(z.number()),
|
|
228
|
+
fulfillment_type: FulfillmentType$inboundSchema,
|
|
229
|
+
fulfillment_preference: FulfillmentPreference$inboundSchema.optional(),
|
|
215
230
|
shipping_provider_id: z.nullable(z.string()),
|
|
216
231
|
shipping_provider_name: z.nullable(z.string()),
|
|
217
232
|
courier_company_id: z.nullable(z.string()),
|
|
@@ -259,6 +274,8 @@ export const Cart$inboundSchema: z.ZodType<Cart, z.ZodTypeDef, unknown> = z
|
|
|
259
274
|
"shipping_tax_rate": "shippingTaxRate",
|
|
260
275
|
"shipping_tax_amount": "shippingTaxAmount",
|
|
261
276
|
"shipping_amount_including_tax": "shippingAmountIncludingTax",
|
|
277
|
+
"fulfillment_type": "fulfillmentType",
|
|
278
|
+
"fulfillment_preference": "fulfillmentPreference",
|
|
262
279
|
"shipping_provider_id": "shippingProviderId",
|
|
263
280
|
"shipping_provider_name": "shippingProviderName",
|
|
264
281
|
"courier_company_id": "courierCompanyId",
|
|
@@ -308,6 +325,8 @@ export type Cart$Outbound = {
|
|
|
308
325
|
shipping_tax_rate: number | null;
|
|
309
326
|
shipping_tax_amount: number | null;
|
|
310
327
|
shipping_amount_including_tax: number | null;
|
|
328
|
+
fulfillment_type: string;
|
|
329
|
+
fulfillment_preference?: FulfillmentPreference$Outbound | undefined;
|
|
311
330
|
shipping_provider_id: string | null;
|
|
312
331
|
shipping_provider_name: string | null;
|
|
313
332
|
courier_company_id: string | null;
|
|
@@ -359,6 +378,8 @@ export const Cart$outboundSchema: z.ZodType<Cart$Outbound, z.ZodTypeDef, Cart> =
|
|
|
359
378
|
shippingTaxRate: z.nullable(z.number()),
|
|
360
379
|
shippingTaxAmount: z.nullable(z.number()),
|
|
361
380
|
shippingAmountIncludingTax: z.nullable(z.number()),
|
|
381
|
+
fulfillmentType: FulfillmentType$outboundSchema,
|
|
382
|
+
fulfillmentPreference: FulfillmentPreference$outboundSchema.optional(),
|
|
362
383
|
shippingProviderId: z.nullable(z.string()),
|
|
363
384
|
shippingProviderName: z.nullable(z.string()),
|
|
364
385
|
courierCompanyId: z.nullable(z.string()),
|
|
@@ -404,6 +425,8 @@ export const Cart$outboundSchema: z.ZodType<Cart$Outbound, z.ZodTypeDef, Cart> =
|
|
|
404
425
|
shippingTaxRate: "shipping_tax_rate",
|
|
405
426
|
shippingTaxAmount: "shipping_tax_amount",
|
|
406
427
|
shippingAmountIncludingTax: "shipping_amount_including_tax",
|
|
428
|
+
fulfillmentType: "fulfillment_type",
|
|
429
|
+
fulfillmentPreference: "fulfillment_preference",
|
|
407
430
|
shippingProviderId: "shipping_provider_id",
|
|
408
431
|
shippingProviderName: "shipping_provider_name",
|
|
409
432
|
courierCompanyId: "courier_company_id",
|
|
@@ -77,10 +77,6 @@ export type CartItem = {
|
|
|
77
77
|
* 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.
|
|
78
78
|
*/
|
|
79
79
|
backorder: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Indicates whether the product is currently on offer.
|
|
82
|
-
*/
|
|
83
|
-
onOffer: boolean;
|
|
84
80
|
/**
|
|
85
81
|
* Indicates whether the product is currently on a subscription.
|
|
86
82
|
*/
|
|
@@ -180,7 +176,6 @@ export const CartItem$inboundSchema: z.ZodType<
|
|
|
180
176
|
product_image_url: z.string(),
|
|
181
177
|
stock_available: z.boolean(),
|
|
182
178
|
backorder: z.boolean(),
|
|
183
|
-
on_offer: z.boolean(),
|
|
184
179
|
on_subscription: z.boolean(),
|
|
185
180
|
on_promotion: z.boolean(),
|
|
186
181
|
quantity: z.number().int(),
|
|
@@ -213,7 +208,6 @@ export const CartItem$inboundSchema: z.ZodType<
|
|
|
213
208
|
"product_type": "productType",
|
|
214
209
|
"product_image_url": "productImageUrl",
|
|
215
210
|
"stock_available": "stockAvailable",
|
|
216
|
-
"on_offer": "onOffer",
|
|
217
211
|
"on_subscription": "onSubscription",
|
|
218
212
|
"on_promotion": "onPromotion",
|
|
219
213
|
"is_free_item": "isFreeItem",
|
|
@@ -249,7 +243,6 @@ export type CartItem$Outbound = {
|
|
|
249
243
|
product_image_url: string;
|
|
250
244
|
stock_available: boolean;
|
|
251
245
|
backorder: boolean;
|
|
252
|
-
on_offer: boolean;
|
|
253
246
|
on_subscription: boolean;
|
|
254
247
|
on_promotion: boolean;
|
|
255
248
|
quantity: number;
|
|
@@ -291,7 +284,6 @@ export const CartItem$outboundSchema: z.ZodType<
|
|
|
291
284
|
productImageUrl: z.string(),
|
|
292
285
|
stockAvailable: z.boolean(),
|
|
293
286
|
backorder: z.boolean(),
|
|
294
|
-
onOffer: z.boolean(),
|
|
295
287
|
onSubscription: z.boolean(),
|
|
296
288
|
onPromotion: z.boolean(),
|
|
297
289
|
quantity: z.number().int(),
|
|
@@ -324,7 +316,6 @@ export const CartItem$outboundSchema: z.ZodType<
|
|
|
324
316
|
productType: "product_type",
|
|
325
317
|
productImageUrl: "product_image_url",
|
|
326
318
|
stockAvailable: "stock_available",
|
|
327
|
-
onOffer: "on_offer",
|
|
328
319
|
onSubscription: "on_subscription",
|
|
329
320
|
onPromotion: "on_promotion",
|
|
330
321
|
isFreeItem: "is_free_item",
|
|
@@ -13,6 +13,10 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
13
13
|
*/
|
|
14
14
|
export type DeliveryFulfillment = {
|
|
15
15
|
fulfillmentType?: "delivery" | undefined;
|
|
16
|
+
shippingProviderId?: string | null | undefined;
|
|
17
|
+
shippingProviderName?: string | null | undefined;
|
|
18
|
+
courierCompanyId?: string | null | undefined;
|
|
19
|
+
courierCompanyName?: string | null | undefined;
|
|
16
20
|
};
|
|
17
21
|
|
|
18
22
|
/** @internal */
|
|
@@ -22,15 +26,27 @@ export const DeliveryFulfillment$inboundSchema: z.ZodType<
|
|
|
22
26
|
unknown
|
|
23
27
|
> = z.object({
|
|
24
28
|
fulfillment_type: z.literal("delivery").default("delivery").optional(),
|
|
29
|
+
shipping_provider_id: z.nullable(z.string()).optional(),
|
|
30
|
+
shipping_provider_name: z.nullable(z.string()).optional(),
|
|
31
|
+
courier_company_id: z.nullable(z.string()).optional(),
|
|
32
|
+
courier_company_name: z.nullable(z.string()).optional(),
|
|
25
33
|
}).transform((v) => {
|
|
26
34
|
return remap$(v, {
|
|
27
35
|
"fulfillment_type": "fulfillmentType",
|
|
36
|
+
"shipping_provider_id": "shippingProviderId",
|
|
37
|
+
"shipping_provider_name": "shippingProviderName",
|
|
38
|
+
"courier_company_id": "courierCompanyId",
|
|
39
|
+
"courier_company_name": "courierCompanyName",
|
|
28
40
|
});
|
|
29
41
|
});
|
|
30
42
|
|
|
31
43
|
/** @internal */
|
|
32
44
|
export type DeliveryFulfillment$Outbound = {
|
|
33
45
|
fulfillment_type: "delivery";
|
|
46
|
+
shipping_provider_id?: string | null | undefined;
|
|
47
|
+
shipping_provider_name?: string | null | undefined;
|
|
48
|
+
courier_company_id?: string | null | undefined;
|
|
49
|
+
courier_company_name?: string | null | undefined;
|
|
34
50
|
};
|
|
35
51
|
|
|
36
52
|
/** @internal */
|
|
@@ -40,9 +56,17 @@ export const DeliveryFulfillment$outboundSchema: z.ZodType<
|
|
|
40
56
|
DeliveryFulfillment
|
|
41
57
|
> = z.object({
|
|
42
58
|
fulfillmentType: z.literal("delivery").default("delivery" as const),
|
|
59
|
+
shippingProviderId: z.nullable(z.string()).optional(),
|
|
60
|
+
shippingProviderName: z.nullable(z.string()).optional(),
|
|
61
|
+
courierCompanyId: z.nullable(z.string()).optional(),
|
|
62
|
+
courierCompanyName: z.nullable(z.string()).optional(),
|
|
43
63
|
}).transform((v) => {
|
|
44
64
|
return remap$(v, {
|
|
45
65
|
fulfillmentType: "fulfillment_type",
|
|
66
|
+
shippingProviderId: "shipping_provider_id",
|
|
67
|
+
shippingProviderName: "shipping_provider_name",
|
|
68
|
+
courierCompanyId: "courier_company_id",
|
|
69
|
+
courierCompanyName: "courier_company_name",
|
|
46
70
|
});
|
|
47
71
|
});
|
|
48
72
|
|
|
@@ -3,29 +3,63 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import {
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
CollectInStoreFulfillment,
|
|
11
|
+
CollectInStoreFulfillment$inboundSchema,
|
|
12
|
+
CollectInStoreFulfillment$Outbound,
|
|
13
|
+
CollectInStoreFulfillment$outboundSchema,
|
|
14
|
+
} from "./collectinstorefulfillment.js";
|
|
15
|
+
import {
|
|
16
|
+
DeliveryFulfillment,
|
|
17
|
+
DeliveryFulfillment$inboundSchema,
|
|
18
|
+
DeliveryFulfillment$Outbound,
|
|
19
|
+
DeliveryFulfillment$outboundSchema,
|
|
20
|
+
} from "./deliveryfulfillment.js";
|
|
21
|
+
import {
|
|
22
|
+
PartialCollectAndDelivery,
|
|
23
|
+
PartialCollectAndDelivery$inboundSchema,
|
|
24
|
+
PartialCollectAndDelivery$Outbound,
|
|
25
|
+
PartialCollectAndDelivery$outboundSchema,
|
|
26
|
+
} from "./partialcollectanddelivery.js";
|
|
7
27
|
|
|
8
28
|
/**
|
|
9
29
|
* @see {@link https://llm-docs.commercengine.io/schemas/FulfillmentPreference} - API reference for the FulfillmentPreference schema
|
|
10
30
|
*/
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
31
|
+
export type FulfillmentPreference =
|
|
32
|
+
| CollectInStoreFulfillment
|
|
33
|
+
| PartialCollectAndDelivery
|
|
34
|
+
| DeliveryFulfillment;
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const FulfillmentPreference$inboundSchema: z.ZodType<
|
|
38
|
+
FulfillmentPreference,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
unknown
|
|
41
|
+
> = z.union([
|
|
42
|
+
CollectInStoreFulfillment$inboundSchema,
|
|
43
|
+
PartialCollectAndDelivery$inboundSchema,
|
|
44
|
+
DeliveryFulfillment$inboundSchema,
|
|
45
|
+
]);
|
|
19
46
|
|
|
20
47
|
/** @internal */
|
|
21
|
-
export
|
|
22
|
-
|
|
23
|
-
|
|
48
|
+
export type FulfillmentPreference$Outbound =
|
|
49
|
+
| CollectInStoreFulfillment$Outbound
|
|
50
|
+
| PartialCollectAndDelivery$Outbound
|
|
51
|
+
| DeliveryFulfillment$Outbound;
|
|
24
52
|
|
|
25
53
|
/** @internal */
|
|
26
|
-
export const FulfillmentPreference$outboundSchema: z.
|
|
27
|
-
|
|
28
|
-
|
|
54
|
+
export const FulfillmentPreference$outboundSchema: z.ZodType<
|
|
55
|
+
FulfillmentPreference$Outbound,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
FulfillmentPreference
|
|
58
|
+
> = z.union([
|
|
59
|
+
CollectInStoreFulfillment$outboundSchema,
|
|
60
|
+
PartialCollectAndDelivery$outboundSchema,
|
|
61
|
+
DeliveryFulfillment$outboundSchema,
|
|
62
|
+
]);
|
|
29
63
|
|
|
30
64
|
/**
|
|
31
65
|
* @internal
|
|
@@ -36,4 +70,24 @@ export namespace FulfillmentPreference$ {
|
|
|
36
70
|
export const inboundSchema = FulfillmentPreference$inboundSchema;
|
|
37
71
|
/** @deprecated use `FulfillmentPreference$outboundSchema` instead. */
|
|
38
72
|
export const outboundSchema = FulfillmentPreference$outboundSchema;
|
|
73
|
+
/** @deprecated use `FulfillmentPreference$Outbound` instead. */
|
|
74
|
+
export type Outbound = FulfillmentPreference$Outbound;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function fulfillmentPreferenceToJSON(
|
|
78
|
+
fulfillmentPreference: FulfillmentPreference,
|
|
79
|
+
): string {
|
|
80
|
+
return JSON.stringify(
|
|
81
|
+
FulfillmentPreference$outboundSchema.parse(fulfillmentPreference),
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function fulfillmentPreferenceFromJSON(
|
|
86
|
+
jsonString: string,
|
|
87
|
+
): SafeParseResult<FulfillmentPreference, SDKValidationError> {
|
|
88
|
+
return safeParse(
|
|
89
|
+
jsonString,
|
|
90
|
+
(x) => FulfillmentPreference$inboundSchema.parse(JSON.parse(x)),
|
|
91
|
+
`Failed to parse 'FulfillmentPreference' from JSON`,
|
|
92
|
+
);
|
|
39
93
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @see {@link https://llm-docs.commercengine.io/schemas/FulfillmentType} - API reference for the FulfillmentType schema
|
|
10
|
+
*/
|
|
11
|
+
export const FulfillmentType = {
|
|
12
|
+
CollectInStore: "collect-in-store",
|
|
13
|
+
Delivery: "delivery",
|
|
14
|
+
PartialCollectAndDelivery: "partial-collect-and-delivery",
|
|
15
|
+
} as const;
|
|
16
|
+
/**
|
|
17
|
+
* @see {@link https://llm-docs.commercengine.io/schemas/FulfillmentType} - API reference for the FulfillmentType schema
|
|
18
|
+
*/
|
|
19
|
+
export type FulfillmentType = ClosedEnum<typeof FulfillmentType>;
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const FulfillmentType$inboundSchema: z.ZodNativeEnum<
|
|
23
|
+
typeof FulfillmentType
|
|
24
|
+
> = z.nativeEnum(FulfillmentType);
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const FulfillmentType$outboundSchema: z.ZodNativeEnum<
|
|
28
|
+
typeof FulfillmentType
|
|
29
|
+
> = FulfillmentType$inboundSchema;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
34
|
+
*/
|
|
35
|
+
export namespace FulfillmentType$ {
|
|
36
|
+
/** @deprecated use `FulfillmentType$inboundSchema` instead. */
|
|
37
|
+
export const inboundSchema = FulfillmentType$inboundSchema;
|
|
38
|
+
/** @deprecated use `FulfillmentType$outboundSchema` instead. */
|
|
39
|
+
export const outboundSchema = FulfillmentType$outboundSchema;
|
|
40
|
+
}
|
|
@@ -29,6 +29,7 @@ export * from "./discountbasedpromotion.js";
|
|
|
29
29
|
export * from "./fixedpricepromotion.js";
|
|
30
30
|
export * from "./freegoodspromotion.js";
|
|
31
31
|
export * from "./fulfillmentpreference.js";
|
|
32
|
+
export * from "./fulfillmenttype.js";
|
|
32
33
|
export * from "./generateotpwithemail.js";
|
|
33
34
|
export * from "./generateotpwithphone.js";
|
|
34
35
|
export * from "./item.js";
|
|
@@ -48,6 +49,7 @@ export * from "./orderpayment.js";
|
|
|
48
49
|
export * from "./ordershipment.js";
|
|
49
50
|
export * from "./pagination.js";
|
|
50
51
|
export * from "./partialcollectanddelivery.js";
|
|
52
|
+
export * from "./partialcollectanddeliveryinput.js";
|
|
51
53
|
export * from "./paymentgateway.js";
|
|
52
54
|
export * from "./paymentgatewayparams.js";
|
|
53
55
|
export * from "./payupaymentgatewayparams.js";
|
|
@@ -82,10 +82,6 @@ export type Item = {
|
|
|
82
82
|
* 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.
|
|
83
83
|
*/
|
|
84
84
|
backorder?: boolean | undefined;
|
|
85
|
-
/**
|
|
86
|
-
* Indicates whether this item is associated with any active (product-specific) coupons
|
|
87
|
-
*/
|
|
88
|
-
onOffer: boolean;
|
|
89
85
|
onSubscription: boolean;
|
|
90
86
|
onPromotion: boolean;
|
|
91
87
|
categoryIds: Array<string>;
|
|
@@ -137,7 +133,6 @@ export const Item$inboundSchema: z.ZodType<Item, z.ZodTypeDef, unknown> = z
|
|
|
137
133
|
active: z.boolean(),
|
|
138
134
|
stock_available: z.boolean(),
|
|
139
135
|
backorder: z.boolean().optional(),
|
|
140
|
-
on_offer: z.boolean(),
|
|
141
136
|
on_subscription: z.boolean(),
|
|
142
137
|
on_promotion: z.boolean(),
|
|
143
138
|
category_ids: z.array(z.string()),
|
|
@@ -161,7 +156,6 @@ export const Item$inboundSchema: z.ZodType<Item, z.ZodTypeDef, unknown> = z
|
|
|
161
156
|
"product_type": "productType",
|
|
162
157
|
"short_description": "shortDescription",
|
|
163
158
|
"stock_available": "stockAvailable",
|
|
164
|
-
"on_offer": "onOffer",
|
|
165
159
|
"on_subscription": "onSubscription",
|
|
166
160
|
"on_promotion": "onPromotion",
|
|
167
161
|
"category_ids": "categoryIds",
|
|
@@ -184,7 +178,6 @@ export type Item$Outbound = {
|
|
|
184
178
|
active: boolean;
|
|
185
179
|
stock_available: boolean;
|
|
186
180
|
backorder?: boolean | undefined;
|
|
187
|
-
on_offer: boolean;
|
|
188
181
|
on_subscription: boolean;
|
|
189
182
|
on_promotion: boolean;
|
|
190
183
|
category_ids: Array<string>;
|
|
@@ -215,7 +208,6 @@ export const Item$outboundSchema: z.ZodType<Item$Outbound, z.ZodTypeDef, Item> =
|
|
|
215
208
|
active: z.boolean(),
|
|
216
209
|
stockAvailable: z.boolean(),
|
|
217
210
|
backorder: z.boolean().optional(),
|
|
218
|
-
onOffer: z.boolean(),
|
|
219
211
|
onSubscription: z.boolean(),
|
|
220
212
|
onPromotion: z.boolean(),
|
|
221
213
|
categoryIds: z.array(z.string()),
|
|
@@ -239,7 +231,6 @@ export const Item$outboundSchema: z.ZodType<Item$Outbound, z.ZodTypeDef, Item> =
|
|
|
239
231
|
productType: "product_type",
|
|
240
232
|
shortDescription: "short_description",
|
|
241
233
|
stockAvailable: "stock_available",
|
|
242
|
-
onOffer: "on_offer",
|
|
243
234
|
onSubscription: "on_subscription",
|
|
244
235
|
onPromotion: "on_promotion",
|
|
245
236
|
categoryIds: "category_ids",
|
|
@@ -26,6 +26,17 @@ import {
|
|
|
26
26
|
CustomerAddress$Outbound,
|
|
27
27
|
CustomerAddress$outboundSchema,
|
|
28
28
|
} from "./customeraddress.js";
|
|
29
|
+
import {
|
|
30
|
+
FulfillmentPreference,
|
|
31
|
+
FulfillmentPreference$inboundSchema,
|
|
32
|
+
FulfillmentPreference$Outbound,
|
|
33
|
+
FulfillmentPreference$outboundSchema,
|
|
34
|
+
} from "./fulfillmentpreference.js";
|
|
35
|
+
import {
|
|
36
|
+
FulfillmentType,
|
|
37
|
+
FulfillmentType$inboundSchema,
|
|
38
|
+
FulfillmentType$outboundSchema,
|
|
39
|
+
} from "./fulfillmenttype.js";
|
|
29
40
|
import {
|
|
30
41
|
OrderItem,
|
|
31
42
|
OrderItem$inboundSchema,
|
|
@@ -143,6 +154,8 @@ export type Order = {
|
|
|
143
154
|
shippingTaxRate?: number | undefined;
|
|
144
155
|
shippingTaxAmount?: number | undefined;
|
|
145
156
|
shippingAmountIncludingTax?: number | undefined;
|
|
157
|
+
fulfillmentType?: FulfillmentType | undefined;
|
|
158
|
+
fulfillmentPreference?: FulfillmentPreference | undefined;
|
|
146
159
|
shippingProviderId?: string | null | undefined;
|
|
147
160
|
shippingProviderName?: string | null | undefined;
|
|
148
161
|
courierCompanyId?: string | null | undefined;
|
|
@@ -410,6 +423,8 @@ export const Order$inboundSchema: z.ZodType<Order, z.ZodTypeDef, unknown> = z
|
|
|
410
423
|
shipping_tax_rate: z.number().optional(),
|
|
411
424
|
shipping_tax_amount: z.number().optional(),
|
|
412
425
|
shipping_amount_including_tax: z.number().optional(),
|
|
426
|
+
fulfillment_type: FulfillmentType$inboundSchema.optional(),
|
|
427
|
+
fulfillment_preference: FulfillmentPreference$inboundSchema.optional(),
|
|
413
428
|
shipping_provider_id: z.nullable(z.string()).optional(),
|
|
414
429
|
shipping_provider_name: z.nullable(z.string()).optional(),
|
|
415
430
|
courier_company_id: z.nullable(z.string()).optional(),
|
|
@@ -464,6 +479,8 @@ export const Order$inboundSchema: z.ZodType<Order, z.ZodTypeDef, unknown> = z
|
|
|
464
479
|
"shipping_tax_rate": "shippingTaxRate",
|
|
465
480
|
"shipping_tax_amount": "shippingTaxAmount",
|
|
466
481
|
"shipping_amount_including_tax": "shippingAmountIncludingTax",
|
|
482
|
+
"fulfillment_type": "fulfillmentType",
|
|
483
|
+
"fulfillment_preference": "fulfillmentPreference",
|
|
467
484
|
"shipping_provider_id": "shippingProviderId",
|
|
468
485
|
"shipping_provider_name": "shippingProviderName",
|
|
469
486
|
"courier_company_id": "courierCompanyId",
|
|
@@ -518,6 +535,8 @@ export type Order$Outbound = {
|
|
|
518
535
|
shipping_tax_rate?: number | undefined;
|
|
519
536
|
shipping_tax_amount?: number | undefined;
|
|
520
537
|
shipping_amount_including_tax?: number | undefined;
|
|
538
|
+
fulfillment_type?: string | undefined;
|
|
539
|
+
fulfillment_preference?: FulfillmentPreference$Outbound | undefined;
|
|
521
540
|
shipping_provider_id?: string | null | undefined;
|
|
522
541
|
shipping_provider_name?: string | null | undefined;
|
|
523
542
|
courier_company_id?: string | null | undefined;
|
|
@@ -578,6 +597,8 @@ export const Order$outboundSchema: z.ZodType<
|
|
|
578
597
|
shippingTaxRate: z.number().optional(),
|
|
579
598
|
shippingTaxAmount: z.number().optional(),
|
|
580
599
|
shippingAmountIncludingTax: z.number().optional(),
|
|
600
|
+
fulfillmentType: FulfillmentType$outboundSchema.optional(),
|
|
601
|
+
fulfillmentPreference: FulfillmentPreference$outboundSchema.optional(),
|
|
581
602
|
shippingProviderId: z.nullable(z.string()).optional(),
|
|
582
603
|
shippingProviderName: z.nullable(z.string()).optional(),
|
|
583
604
|
courierCompanyId: z.nullable(z.string()).optional(),
|
|
@@ -632,6 +653,8 @@ export const Order$outboundSchema: z.ZodType<
|
|
|
632
653
|
shippingTaxRate: "shipping_tax_rate",
|
|
633
654
|
shippingTaxAmount: "shipping_tax_amount",
|
|
634
655
|
shippingAmountIncludingTax: "shipping_amount_including_tax",
|
|
656
|
+
fulfillmentType: "fulfillment_type",
|
|
657
|
+
fulfillmentPreference: "fulfillment_preference",
|
|
635
658
|
shippingProviderId: "shipping_provider_id",
|
|
636
659
|
shippingProviderName: "shipping_provider_name",
|
|
637
660
|
courierCompanyId: "courier_company_id",
|
|
@@ -26,6 +26,17 @@ import {
|
|
|
26
26
|
CustomerAddress$Outbound,
|
|
27
27
|
CustomerAddress$outboundSchema,
|
|
28
28
|
} from "./customeraddress.js";
|
|
29
|
+
import {
|
|
30
|
+
FulfillmentPreference,
|
|
31
|
+
FulfillmentPreference$inboundSchema,
|
|
32
|
+
FulfillmentPreference$Outbound,
|
|
33
|
+
FulfillmentPreference$outboundSchema,
|
|
34
|
+
} from "./fulfillmentpreference.js";
|
|
35
|
+
import {
|
|
36
|
+
FulfillmentType,
|
|
37
|
+
FulfillmentType$inboundSchema,
|
|
38
|
+
FulfillmentType$outboundSchema,
|
|
39
|
+
} from "./fulfillmenttype.js";
|
|
29
40
|
import {
|
|
30
41
|
OrderItem,
|
|
31
42
|
OrderItem$inboundSchema,
|
|
@@ -151,6 +162,8 @@ export type OrderDetail = {
|
|
|
151
162
|
shippingTaxRate?: number | undefined;
|
|
152
163
|
shippingTaxAmount?: number | undefined;
|
|
153
164
|
shippingAmountIncludingTax?: number | undefined;
|
|
165
|
+
fulfillmentType?: FulfillmentType | undefined;
|
|
166
|
+
fulfillmentPreference?: FulfillmentPreference | undefined;
|
|
154
167
|
shippingProviderId?: string | null | undefined;
|
|
155
168
|
shippingProviderName?: string | null | undefined;
|
|
156
169
|
courierCompanyId?: string | null | undefined;
|
|
@@ -432,6 +445,8 @@ export const OrderDetail$inboundSchema: z.ZodType<
|
|
|
432
445
|
shipping_tax_rate: z.number().optional(),
|
|
433
446
|
shipping_tax_amount: z.number().optional(),
|
|
434
447
|
shipping_amount_including_tax: z.number().optional(),
|
|
448
|
+
fulfillment_type: FulfillmentType$inboundSchema.optional(),
|
|
449
|
+
fulfillment_preference: FulfillmentPreference$inboundSchema.optional(),
|
|
435
450
|
shipping_provider_id: z.nullable(z.string()).optional(),
|
|
436
451
|
shipping_provider_name: z.nullable(z.string()).optional(),
|
|
437
452
|
courier_company_id: z.nullable(z.string()).optional(),
|
|
@@ -487,6 +502,8 @@ export const OrderDetail$inboundSchema: z.ZodType<
|
|
|
487
502
|
"shipping_tax_rate": "shippingTaxRate",
|
|
488
503
|
"shipping_tax_amount": "shippingTaxAmount",
|
|
489
504
|
"shipping_amount_including_tax": "shippingAmountIncludingTax",
|
|
505
|
+
"fulfillment_type": "fulfillmentType",
|
|
506
|
+
"fulfillment_preference": "fulfillmentPreference",
|
|
490
507
|
"shipping_provider_id": "shippingProviderId",
|
|
491
508
|
"shipping_provider_name": "shippingProviderName",
|
|
492
509
|
"courier_company_id": "courierCompanyId",
|
|
@@ -541,6 +558,8 @@ export type OrderDetail$Outbound = {
|
|
|
541
558
|
shipping_tax_rate?: number | undefined;
|
|
542
559
|
shipping_tax_amount?: number | undefined;
|
|
543
560
|
shipping_amount_including_tax?: number | undefined;
|
|
561
|
+
fulfillment_type?: string | undefined;
|
|
562
|
+
fulfillment_preference?: FulfillmentPreference$Outbound | undefined;
|
|
544
563
|
shipping_provider_id?: string | null | undefined;
|
|
545
564
|
shipping_provider_name?: string | null | undefined;
|
|
546
565
|
courier_company_id?: string | null | undefined;
|
|
@@ -604,6 +623,8 @@ export const OrderDetail$outboundSchema: z.ZodType<
|
|
|
604
623
|
shippingTaxRate: z.number().optional(),
|
|
605
624
|
shippingTaxAmount: z.number().optional(),
|
|
606
625
|
shippingAmountIncludingTax: z.number().optional(),
|
|
626
|
+
fulfillmentType: FulfillmentType$outboundSchema.optional(),
|
|
627
|
+
fulfillmentPreference: FulfillmentPreference$outboundSchema.optional(),
|
|
607
628
|
shippingProviderId: z.nullable(z.string()).optional(),
|
|
608
629
|
shippingProviderName: z.nullable(z.string()).optional(),
|
|
609
630
|
courierCompanyId: z.nullable(z.string()).optional(),
|
|
@@ -659,6 +680,8 @@ export const OrderDetail$outboundSchema: z.ZodType<
|
|
|
659
680
|
shippingTaxRate: "shipping_tax_rate",
|
|
660
681
|
shippingTaxAmount: "shipping_tax_amount",
|
|
661
682
|
shippingAmountIncludingTax: "shipping_amount_including_tax",
|
|
683
|
+
fulfillmentType: "fulfillment_type",
|
|
684
|
+
fulfillmentPreference: "fulfillment_preference",
|
|
662
685
|
shippingProviderId: "shipping_provider_id",
|
|
663
686
|
shippingProviderName: "shipping_provider_name",
|
|
664
687
|
courierCompanyId: "courier_company_id",
|
|
@@ -48,7 +48,6 @@ export type OrderItem = {
|
|
|
48
48
|
* 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.
|
|
49
49
|
*/
|
|
50
50
|
backorder: boolean;
|
|
51
|
-
onOffer: boolean;
|
|
52
51
|
onPromotion: boolean;
|
|
53
52
|
onSubscription: boolean;
|
|
54
53
|
subscriptionPlan: string | null;
|
|
@@ -109,7 +108,6 @@ export const OrderItem$inboundSchema: z.ZodType<
|
|
|
109
108
|
variant_id: z.nullable(z.string()),
|
|
110
109
|
variant_name: z.nullable(z.string()),
|
|
111
110
|
backorder: z.boolean(),
|
|
112
|
-
on_offer: z.boolean(),
|
|
113
111
|
on_promotion: z.boolean(),
|
|
114
112
|
on_subscription: z.boolean(),
|
|
115
113
|
subscription_plan: z.nullable(z.string()),
|
|
@@ -141,7 +139,6 @@ export const OrderItem$inboundSchema: z.ZodType<
|
|
|
141
139
|
"product_type": "productType",
|
|
142
140
|
"variant_id": "variantId",
|
|
143
141
|
"variant_name": "variantName",
|
|
144
|
-
"on_offer": "onOffer",
|
|
145
142
|
"on_promotion": "onPromotion",
|
|
146
143
|
"on_subscription": "onSubscription",
|
|
147
144
|
"subscription_plan": "subscriptionPlan",
|
|
@@ -176,7 +173,6 @@ export type OrderItem$Outbound = {
|
|
|
176
173
|
variant_id: string | null;
|
|
177
174
|
variant_name: string | null;
|
|
178
175
|
backorder: boolean;
|
|
179
|
-
on_offer: boolean;
|
|
180
176
|
on_promotion: boolean;
|
|
181
177
|
on_subscription: boolean;
|
|
182
178
|
subscription_plan: string | null;
|
|
@@ -219,7 +215,6 @@ export const OrderItem$outboundSchema: z.ZodType<
|
|
|
219
215
|
variantId: z.nullable(z.string()),
|
|
220
216
|
variantName: z.nullable(z.string()),
|
|
221
217
|
backorder: z.boolean(),
|
|
222
|
-
onOffer: z.boolean(),
|
|
223
218
|
onPromotion: z.boolean(),
|
|
224
219
|
onSubscription: z.boolean(),
|
|
225
220
|
subscriptionPlan: z.nullable(z.string()),
|
|
@@ -251,7 +246,6 @@ export const OrderItem$outboundSchema: z.ZodType<
|
|
|
251
246
|
productType: "product_type",
|
|
252
247
|
variantId: "variant_id",
|
|
253
248
|
variantName: "variant_name",
|
|
254
|
-
onOffer: "on_offer",
|
|
255
249
|
onPromotion: "on_promotion",
|
|
256
250
|
onSubscription: "on_subscription",
|
|
257
251
|
subscriptionPlan: "subscription_plan",
|