ce-storefront 0.13.3 → 0.14.1
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 +35 -28
- package/docs/sdks/catalog/README.md +7 -3
- package/esm/funcs/authGenerateOtp.d.ts +3 -2
- package/esm/funcs/authGenerateOtp.d.ts.map +1 -1
- package/esm/funcs/authGenerateOtp.js +1 -1
- package/esm/funcs/authGenerateOtp.js.map +1 -1
- package/esm/funcs/authGetAnonymousToken.d.ts +3 -2
- package/esm/funcs/authGetAnonymousToken.d.ts.map +1 -1
- package/esm/funcs/authGetAnonymousToken.js +1 -1
- package/esm/funcs/authGetAnonymousToken.js.map +1 -1
- package/esm/funcs/authGetUserDetail.d.ts +3 -2
- package/esm/funcs/authGetUserDetail.d.ts.map +1 -1
- package/esm/funcs/authGetUserDetail.js +1 -1
- package/esm/funcs/authGetUserDetail.js.map +1 -1
- package/esm/funcs/authLoginWithEmail.d.ts +3 -2
- package/esm/funcs/authLoginWithEmail.d.ts.map +1 -1
- package/esm/funcs/authLoginWithEmail.js +1 -1
- package/esm/funcs/authLoginWithEmail.js.map +1 -1
- package/esm/funcs/authLoginWithPhone.d.ts +3 -2
- package/esm/funcs/authLoginWithPhone.d.ts.map +1 -1
- package/esm/funcs/authLoginWithPhone.js +1 -1
- package/esm/funcs/authLoginWithPhone.js.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.d.ts +3 -2
- package/esm/funcs/authLoginWithWhatsapp.d.ts.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.js +1 -1
- package/esm/funcs/authLoginWithWhatsapp.js.map +1 -1
- package/esm/funcs/authLogout.d.ts +3 -2
- package/esm/funcs/authLogout.d.ts.map +1 -1
- package/esm/funcs/authLogout.js +1 -1
- package/esm/funcs/authLogout.js.map +1 -1
- package/esm/funcs/authRefreshToken.d.ts +3 -2
- package/esm/funcs/authRefreshToken.d.ts.map +1 -1
- package/esm/funcs/authRefreshToken.js +1 -1
- package/esm/funcs/authRefreshToken.js.map +1 -1
- package/esm/funcs/authUpdateUser.d.ts +3 -2
- package/esm/funcs/authUpdateUser.d.ts.map +1 -1
- package/esm/funcs/authUpdateUser.js +1 -1
- package/esm/funcs/authUpdateUser.js.map +1 -1
- package/esm/funcs/authVerifyOtp.d.ts +3 -2
- package/esm/funcs/authVerifyOtp.d.ts.map +1 -1
- package/esm/funcs/authVerifyOtp.js +1 -1
- package/esm/funcs/authVerifyOtp.js.map +1 -1
- package/esm/funcs/cartsAddShippingMethod.d.ts +3 -2
- package/esm/funcs/cartsAddShippingMethod.d.ts.map +1 -1
- package/esm/funcs/cartsAddShippingMethod.js +1 -1
- package/esm/funcs/cartsAddShippingMethod.js.map +1 -1
- package/esm/funcs/cartsApplyCoupon.d.ts +3 -2
- package/esm/funcs/cartsApplyCoupon.d.ts.map +1 -1
- package/esm/funcs/cartsApplyCoupon.js +1 -1
- package/esm/funcs/cartsApplyCoupon.js.map +1 -1
- package/esm/funcs/cartsCreateCart.d.ts +3 -2
- package/esm/funcs/cartsCreateCart.d.ts.map +1 -1
- package/esm/funcs/cartsCreateCart.js +1 -1
- package/esm/funcs/cartsCreateCart.js.map +1 -1
- package/esm/funcs/cartsCreateCartAddress.d.ts +3 -2
- package/esm/funcs/cartsCreateCartAddress.d.ts.map +1 -1
- package/esm/funcs/cartsCreateCartAddress.js +1 -1
- package/esm/funcs/cartsCreateCartAddress.js.map +1 -1
- package/esm/funcs/cartsDeleteCart.d.ts +3 -2
- package/esm/funcs/cartsDeleteCart.d.ts.map +1 -1
- package/esm/funcs/cartsDeleteCart.js +1 -1
- package/esm/funcs/cartsDeleteCart.js.map +1 -1
- package/esm/funcs/cartsGetCart.d.ts +3 -2
- package/esm/funcs/cartsGetCart.d.ts.map +1 -1
- package/esm/funcs/cartsGetCart.js +1 -1
- package/esm/funcs/cartsGetCart.js.map +1 -1
- package/esm/funcs/cartsGetUserCart.d.ts +3 -2
- package/esm/funcs/cartsGetUserCart.d.ts.map +1 -1
- package/esm/funcs/cartsGetUserCart.js +1 -1
- package/esm/funcs/cartsGetUserCart.js.map +1 -1
- package/esm/funcs/cartsRedeemLoyaltyPoints.d.ts +3 -2
- package/esm/funcs/cartsRedeemLoyaltyPoints.d.ts.map +1 -1
- package/esm/funcs/cartsRedeemLoyaltyPoints.js +1 -1
- package/esm/funcs/cartsRedeemLoyaltyPoints.js.map +1 -1
- package/esm/funcs/cartsRemoveCoupon.d.ts +3 -2
- package/esm/funcs/cartsRemoveCoupon.d.ts.map +1 -1
- package/esm/funcs/cartsRemoveCoupon.js +1 -1
- package/esm/funcs/cartsRemoveCoupon.js.map +1 -1
- package/esm/funcs/cartsRemoveLoyaltyPoints.d.ts +3 -2
- package/esm/funcs/cartsRemoveLoyaltyPoints.d.ts.map +1 -1
- package/esm/funcs/cartsRemoveLoyaltyPoints.js +1 -1
- package/esm/funcs/cartsRemoveLoyaltyPoints.js.map +1 -1
- package/esm/funcs/cartsRemoveUserCart.d.ts +3 -2
- package/esm/funcs/cartsRemoveUserCart.d.ts.map +1 -1
- package/esm/funcs/cartsRemoveUserCart.js +1 -1
- package/esm/funcs/cartsRemoveUserCart.js.map +1 -1
- package/esm/funcs/cartsUpdateCart.d.ts +3 -2
- package/esm/funcs/cartsUpdateCart.d.ts.map +1 -1
- package/esm/funcs/cartsUpdateCart.js +1 -1
- package/esm/funcs/cartsUpdateCart.js.map +1 -1
- package/esm/funcs/catalogGetProductDetail.d.ts +3 -2
- package/esm/funcs/catalogGetProductDetail.d.ts.map +1 -1
- package/esm/funcs/catalogGetProductDetail.js +2 -2
- package/esm/funcs/catalogGetProductDetail.js.map +1 -1
- package/esm/funcs/catalogGetVariantDetail.d.ts +3 -2
- package/esm/funcs/catalogGetVariantDetail.d.ts.map +1 -1
- package/esm/funcs/catalogGetVariantDetail.js +2 -2
- package/esm/funcs/catalogGetVariantDetail.js.map +1 -1
- package/esm/funcs/catalogListCategories.d.ts +3 -2
- package/esm/funcs/catalogListCategories.d.ts.map +1 -1
- package/esm/funcs/catalogListCategories.js +1 -1
- package/esm/funcs/catalogListCategories.js.map +1 -1
- package/esm/funcs/catalogListCrosssellProducts.d.ts +3 -2
- package/esm/funcs/catalogListCrosssellProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListCrosssellProducts.js +2 -2
- package/esm/funcs/catalogListCrosssellProducts.js.map +1 -1
- package/esm/funcs/catalogListProductReviews.d.ts +3 -2
- package/esm/funcs/catalogListProductReviews.d.ts.map +1 -1
- package/esm/funcs/catalogListProductReviews.js +1 -1
- package/esm/funcs/catalogListProductReviews.js.map +1 -1
- package/esm/funcs/catalogListProductVariants.d.ts +3 -2
- package/esm/funcs/catalogListProductVariants.d.ts.map +1 -1
- package/esm/funcs/catalogListProductVariants.js +2 -2
- package/esm/funcs/catalogListProductVariants.js.map +1 -1
- package/esm/funcs/catalogListProducts.d.ts +3 -2
- package/esm/funcs/catalogListProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListProducts.js +2 -2
- package/esm/funcs/catalogListProducts.js.map +1 -1
- package/esm/funcs/catalogListSimilarProducts.d.ts +3 -2
- package/esm/funcs/catalogListSimilarProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListSimilarProducts.js +2 -2
- package/esm/funcs/catalogListSimilarProducts.js.map +1 -1
- package/esm/funcs/catalogListSkus.d.ts +3 -2
- package/esm/funcs/catalogListSkus.d.ts.map +1 -1
- package/esm/funcs/catalogListSkus.js +2 -2
- package/esm/funcs/catalogListSkus.js.map +1 -1
- package/esm/funcs/catalogListUpsellProducts.d.ts +3 -2
- package/esm/funcs/catalogListUpsellProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListUpsellProducts.js +2 -2
- package/esm/funcs/catalogListUpsellProducts.js.map +1 -1
- package/esm/funcs/catalogSearchProducts.d.ts +3 -3
- package/esm/funcs/catalogSearchProducts.d.ts.map +1 -1
- package/esm/funcs/catalogSearchProducts.js +5 -5
- package/esm/funcs/catalogSearchProducts.js.map +1 -1
- package/esm/funcs/commonListCountryPincodes.d.ts +3 -2
- package/esm/funcs/commonListCountryPincodes.d.ts.map +1 -1
- package/esm/funcs/commonListCountryPincodes.js +1 -1
- package/esm/funcs/commonListCountryPincodes.js.map +1 -1
- package/esm/funcs/customersCreateAddress.d.ts +3 -2
- package/esm/funcs/customersCreateAddress.d.ts.map +1 -1
- package/esm/funcs/customersCreateAddress.js +1 -1
- package/esm/funcs/customersCreateAddress.js.map +1 -1
- package/esm/funcs/customersDeleteAddress.d.ts +3 -2
- package/esm/funcs/customersDeleteAddress.d.ts.map +1 -1
- package/esm/funcs/customersDeleteAddress.js +1 -1
- package/esm/funcs/customersDeleteAddress.js.map +1 -1
- package/esm/funcs/customersGetAddressDetail.d.ts +3 -2
- package/esm/funcs/customersGetAddressDetail.d.ts.map +1 -1
- package/esm/funcs/customersGetAddressDetail.js +1 -1
- package/esm/funcs/customersGetAddressDetail.js.map +1 -1
- package/esm/funcs/customersGetLoyaltyDetails.d.ts +3 -2
- package/esm/funcs/customersGetLoyaltyDetails.d.ts.map +1 -1
- package/esm/funcs/customersGetLoyaltyDetails.js +1 -1
- package/esm/funcs/customersGetLoyaltyDetails.js.map +1 -1
- package/esm/funcs/customersListAddresses.d.ts +3 -2
- package/esm/funcs/customersListAddresses.d.ts.map +1 -1
- package/esm/funcs/customersListAddresses.js +1 -1
- package/esm/funcs/customersListAddresses.js.map +1 -1
- package/esm/funcs/customersListUserReviews.d.ts +3 -2
- package/esm/funcs/customersListUserReviews.d.ts.map +1 -1
- package/esm/funcs/customersListUserReviews.js +1 -1
- package/esm/funcs/customersListUserReviews.js.map +1 -1
- package/esm/funcs/customersUpdateAddressDetail.d.ts +3 -2
- package/esm/funcs/customersUpdateAddressDetail.d.ts.map +1 -1
- package/esm/funcs/customersUpdateAddressDetail.js +1 -1
- package/esm/funcs/customersUpdateAddressDetail.js.map +1 -1
- package/esm/funcs/ordersCancelOrder.d.ts +3 -2
- package/esm/funcs/ordersCancelOrder.d.ts.map +1 -1
- package/esm/funcs/ordersCancelOrder.js +1 -1
- package/esm/funcs/ordersCancelOrder.js.map +1 -1
- package/esm/funcs/ordersCreateOrder.d.ts +3 -2
- package/esm/funcs/ordersCreateOrder.d.ts.map +1 -1
- package/esm/funcs/ordersCreateOrder.js +1 -1
- package/esm/funcs/ordersCreateOrder.js.map +1 -1
- package/esm/funcs/ordersGetOrderDetail.d.ts +3 -2
- package/esm/funcs/ordersGetOrderDetail.d.ts.map +1 -1
- package/esm/funcs/ordersGetOrderDetail.js +1 -1
- package/esm/funcs/ordersGetOrderDetail.js.map +1 -1
- package/esm/funcs/ordersGetPaymentStatus.d.ts +3 -2
- package/esm/funcs/ordersGetPaymentStatus.d.ts.map +1 -1
- package/esm/funcs/ordersGetPaymentStatus.js +1 -1
- package/esm/funcs/ordersGetPaymentStatus.js.map +1 -1
- package/esm/funcs/ordersListOrderShipments.d.ts +3 -2
- package/esm/funcs/ordersListOrderShipments.d.ts.map +1 -1
- package/esm/funcs/ordersListOrderShipments.js +1 -1
- package/esm/funcs/ordersListOrderShipments.js.map +1 -1
- package/esm/funcs/ordersListOrders.d.ts +3 -2
- package/esm/funcs/ordersListOrders.d.ts.map +1 -1
- package/esm/funcs/ordersListOrders.js +1 -1
- package/esm/funcs/ordersListOrders.js.map +1 -1
- package/esm/funcs/ordersRetryOrderPayment.d.ts +3 -2
- package/esm/funcs/ordersRetryOrderPayment.d.ts.map +1 -1
- package/esm/funcs/ordersRetryOrderPayment.js +1 -1
- package/esm/funcs/ordersRetryOrderPayment.js.map +1 -1
- package/esm/funcs/shippingShippingMethods.d.ts +3 -2
- package/esm/funcs/shippingShippingMethods.d.ts.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/files.d.ts +5 -0
- package/esm/lib/files.d.ts.map +1 -1
- package/esm/lib/files.js +40 -0
- package/esm/lib/files.js.map +1 -1
- package/esm/lib/matchers.d.ts +3 -10
- package/esm/lib/matchers.d.ts.map +1 -1
- package/esm/lib/matchers.js +33 -30
- package/esm/lib/matchers.js.map +1 -1
- package/esm/lib/security.d.ts +2 -2
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/models/components/coloroption.js +1 -1
- package/esm/models/components/coloroption.js.map +1 -1
- package/esm/models/components/customeraddress.js +1 -1
- package/esm/models/components/customeraddress.js.map +1 -1
- package/esm/models/components/customeraddressinput.js +1 -1
- package/esm/models/components/customeraddressinput.js.map +1 -1
- package/esm/models/components/discountbasedpromotion.js +1 -1
- package/esm/models/components/discountbasedpromotion.js.map +1 -1
- package/esm/models/components/fixedpricepromotion.js +1 -1
- package/esm/models/components/fixedpricepromotion.js.map +1 -1
- package/esm/models/components/freegoodspromotion.js +1 -1
- package/esm/models/components/freegoodspromotion.js.map +1 -1
- package/esm/models/components/generateotpwithemail.js +1 -1
- package/esm/models/components/generateotpwithemail.js.map +1 -1
- package/esm/models/components/juspaypaymentinfo.d.ts.map +1 -1
- package/esm/models/components/juspaypaymentinfo.js +3 -2
- package/esm/models/components/juspaypaymentinfo.js.map +1 -1
- package/esm/models/components/orderpayment.d.ts +2 -2
- package/esm/models/components/orderpayment.d.ts.map +1 -1
- package/esm/models/components/orderpayment.js +2 -2
- package/esm/models/components/orderpayment.js.map +1 -1
- package/esm/models/components/payupaymentinfo.js +3 -3
- package/esm/models/components/payupaymentinfo.js.map +1 -1
- package/esm/models/components/product.d.ts +3 -0
- package/esm/models/components/product.d.ts.map +1 -1
- package/esm/models/components/product.js +3 -0
- package/esm/models/components/product.js.map +1 -1
- package/esm/models/components/productdetail.d.ts +3 -0
- package/esm/models/components/productdetail.d.ts.map +1 -1
- package/esm/models/components/productdetail.js +3 -0
- package/esm/models/components/productdetail.js.map +1 -1
- package/esm/models/components/productpromotion.d.ts +20 -20
- package/esm/models/components/productpromotion.d.ts.map +1 -1
- package/esm/models/components/productpromotion.js +16 -16
- package/esm/models/components/productpromotion.js.map +1 -1
- package/esm/models/components/searchproduct.d.ts +0 -5
- package/esm/models/components/searchproduct.d.ts.map +1 -1
- package/esm/models/components/searchproduct.js +0 -11
- package/esm/models/components/searchproduct.js.map +1 -1
- package/esm/models/components/singleselectoption.js +1 -1
- package/esm/models/components/singleselectoption.js.map +1 -1
- package/esm/models/components/volumebasedpromotion.js +1 -1
- package/esm/models/components/volumebasedpromotion.js.map +1 -1
- package/esm/models/errors/badrequest.d.ts +7 -2
- package/esm/models/errors/badrequest.d.ts.map +1 -1
- package/esm/models/errors/badrequest.js +12 -4
- package/esm/models/errors/badrequest.js.map +1 -1
- package/esm/models/errors/ceerror.d.ts +8 -18
- package/esm/models/errors/ceerror.d.ts.map +1 -1
- package/esm/models/errors/ceerror.js +17 -10
- package/esm/models/errors/ceerror.js.map +1 -1
- package/esm/models/errors/cestorefronterror.d.ts +19 -0
- package/esm/models/errors/cestorefronterror.d.ts.map +1 -0
- package/esm/models/errors/cestorefronterror.js +16 -0
- package/esm/models/errors/cestorefronterror.js.map +1 -0
- package/esm/models/errors/index.d.ts +1 -0
- package/esm/models/errors/index.d.ts.map +1 -1
- package/esm/models/errors/index.js +1 -0
- package/esm/models/errors/index.js.map +1 -1
- package/esm/models/errors/notfound.d.ts +7 -2
- package/esm/models/errors/notfound.d.ts.map +1 -1
- package/esm/models/errors/notfound.js +12 -4
- package/esm/models/errors/notfound.js.map +1 -1
- package/esm/models/errors/responsevalidationerror.d.ts +26 -0
- package/esm/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/esm/models/errors/responsevalidationerror.js +29 -0
- package/esm/models/errors/responsevalidationerror.js.map +1 -0
- package/esm/models/errors/sdkvalidationerror.d.ts +1 -0
- package/esm/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/esm/models/errors/sdkvalidationerror.js +14 -0
- package/esm/models/errors/sdkvalidationerror.js.map +1 -1
- package/esm/models/errors/unauthorized.d.ts +7 -2
- package/esm/models/errors/unauthorized.d.ts.map +1 -1
- package/esm/models/errors/unauthorized.js +12 -4
- package/esm/models/errors/unauthorized.js.map +1 -1
- package/esm/models/operations/createaddress.js +1 -1
- package/esm/models/operations/createaddress.js.map +1 -1
- package/esm/models/operations/createorder.d.ts +16 -16
- package/esm/models/operations/createorder.d.ts.map +1 -1
- package/esm/models/operations/createorder.js +12 -12
- package/esm/models/operations/createorder.js.map +1 -1
- package/esm/models/operations/generateotp.d.ts +2 -2
- package/esm/models/operations/generateotp.js +2 -2
- package/esm/models/operations/getaddressdetail.js +1 -1
- package/esm/models/operations/getaddressdetail.js.map +1 -1
- package/esm/models/operations/getproductdetail.d.ts +3 -3
- 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 +3 -3
- 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/listaddresses.js +1 -1
- package/esm/models/operations/listaddresses.js.map +1 -1
- package/esm/models/operations/listcrosssellproducts.d.ts +3 -3
- package/esm/models/operations/listcrosssellproducts.d.ts.map +1 -1
- package/esm/models/operations/listcrosssellproducts.js +4 -4
- package/esm/models/operations/listcrosssellproducts.js.map +1 -1
- package/esm/models/operations/listproducts.d.ts +3 -3
- package/esm/models/operations/listproducts.d.ts.map +1 -1
- package/esm/models/operations/listproducts.js +4 -4
- package/esm/models/operations/listproducts.js.map +1 -1
- package/esm/models/operations/listproductvariants.d.ts +3 -3
- 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 +3 -3
- package/esm/models/operations/listsimilarproducts.d.ts.map +1 -1
- package/esm/models/operations/listsimilarproducts.js +4 -4
- package/esm/models/operations/listsimilarproducts.js.map +1 -1
- package/esm/models/operations/listskus.d.ts +3 -3
- package/esm/models/operations/listskus.d.ts.map +1 -1
- package/esm/models/operations/listskus.js +4 -4
- package/esm/models/operations/listskus.js.map +1 -1
- package/esm/models/operations/listupsellproducts.d.ts +3 -3
- package/esm/models/operations/listupsellproducts.d.ts.map +1 -1
- package/esm/models/operations/listupsellproducts.js +4 -4
- package/esm/models/operations/listupsellproducts.js.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.js +1 -1
- package/esm/models/operations/loginwithwhatsapp.js.map +1 -1
- package/esm/models/operations/retryorderpayment.d.ts +16 -16
- package/esm/models/operations/retryorderpayment.d.ts.map +1 -1
- package/esm/models/operations/retryorderpayment.js +12 -12
- package/esm/models/operations/retryorderpayment.js.map +1 -1
- package/esm/models/operations/searchproducts.d.ts +30 -0
- package/esm/models/operations/searchproducts.d.ts.map +1 -1
- package/esm/models/operations/searchproducts.js +37 -0
- package/esm/models/operations/searchproducts.js.map +1 -1
- package/esm/models/operations/updateaddressdetail.js +1 -1
- package/esm/models/operations/updateaddressdetail.js.map +1 -1
- package/esm/sdk/catalog.d.ts +1 -2
- package/esm/sdk/catalog.d.ts.map +1 -1
- package/esm/sdk/catalog.js.map +1 -1
- package/esm/types/constdatetime.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/authGenerateOtp.ts +21 -17
- package/src/funcs/authGetAnonymousToken.ts +21 -17
- package/src/funcs/authGetUserDetail.ts +21 -17
- package/src/funcs/authLoginWithEmail.ts +21 -17
- package/src/funcs/authLoginWithPhone.ts +21 -17
- package/src/funcs/authLoginWithWhatsapp.ts +21 -17
- package/src/funcs/authLogout.ts +21 -17
- package/src/funcs/authRefreshToken.ts +21 -17
- package/src/funcs/authUpdateUser.ts +21 -17
- package/src/funcs/authVerifyOtp.ts +21 -17
- package/src/funcs/cartsAddShippingMethod.ts +21 -17
- package/src/funcs/cartsApplyCoupon.ts +21 -17
- package/src/funcs/cartsCreateCart.ts +21 -17
- package/src/funcs/cartsCreateCartAddress.ts +21 -17
- package/src/funcs/cartsDeleteCart.ts +21 -17
- package/src/funcs/cartsGetCart.ts +21 -17
- package/src/funcs/cartsGetUserCart.ts +21 -17
- package/src/funcs/cartsRedeemLoyaltyPoints.ts +21 -17
- package/src/funcs/cartsRemoveCoupon.ts +21 -17
- package/src/funcs/cartsRemoveLoyaltyPoints.ts +21 -17
- package/src/funcs/cartsRemoveUserCart.ts +21 -17
- package/src/funcs/cartsUpdateCart.ts +21 -17
- package/src/funcs/catalogGetProductDetail.ts +24 -20
- package/src/funcs/catalogGetVariantDetail.ts +24 -20
- package/src/funcs/catalogListCategories.ts +21 -17
- package/src/funcs/catalogListCrosssellProducts.ts +24 -20
- package/src/funcs/catalogListProductReviews.ts +21 -17
- package/src/funcs/catalogListProductVariants.ts +24 -20
- package/src/funcs/catalogListProducts.ts +24 -20
- package/src/funcs/catalogListSimilarProducts.ts +24 -20
- package/src/funcs/catalogListSkus.ts +24 -20
- package/src/funcs/catalogListUpsellProducts.ts +24 -20
- package/src/funcs/catalogSearchProducts.ts +31 -23
- package/src/funcs/commonListCountryPincodes.ts +21 -17
- package/src/funcs/customersCreateAddress.ts +21 -17
- package/src/funcs/customersDeleteAddress.ts +21 -17
- package/src/funcs/customersGetAddressDetail.ts +21 -17
- package/src/funcs/customersGetLoyaltyDetails.ts +21 -17
- package/src/funcs/customersListAddresses.ts +21 -17
- package/src/funcs/customersListUserReviews.ts +21 -17
- package/src/funcs/customersUpdateAddressDetail.ts +21 -17
- package/src/funcs/ordersCancelOrder.ts +21 -17
- package/src/funcs/ordersCreateOrder.ts +21 -17
- package/src/funcs/ordersGetOrderDetail.ts +21 -17
- package/src/funcs/ordersGetPaymentStatus.ts +21 -17
- package/src/funcs/ordersListOrderShipments.ts +21 -17
- package/src/funcs/ordersListOrders.ts +21 -17
- package/src/funcs/ordersRetryOrderPayment.ts +21 -17
- package/src/funcs/shippingShippingMethods.ts +21 -17
- package/src/lib/config.ts +3 -3
- package/src/lib/files.ts +42 -0
- package/src/lib/matchers.ts +44 -41
- package/src/lib/security.ts +2 -2
- package/src/models/components/coloroption.ts +1 -1
- package/src/models/components/customeraddress.ts +1 -1
- package/src/models/components/customeraddressinput.ts +1 -1
- package/src/models/components/discountbasedpromotion.ts +1 -1
- package/src/models/components/fixedpricepromotion.ts +1 -1
- package/src/models/components/freegoodspromotion.ts +1 -1
- package/src/models/components/generateotpwithemail.ts +1 -1
- package/src/models/components/juspaypaymentinfo.ts +3 -2
- package/src/models/components/orderpayment.ts +4 -4
- package/src/models/components/payupaymentinfo.ts +3 -3
- package/src/models/components/product.ts +10 -0
- package/src/models/components/productdetail.ts +10 -0
- package/src/models/components/productpromotion.ts +48 -48
- package/src/models/components/searchproduct.ts +0 -16
- package/src/models/components/singleselectoption.ts +1 -1
- package/src/models/components/volumebasedpromotion.ts +1 -1
- package/src/models/errors/badrequest.ts +15 -5
- package/src/models/errors/ceerror.ts +23 -31
- package/src/models/errors/cestorefronterror.ts +35 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/notfound.ts +15 -5
- package/src/models/errors/responsevalidationerror.ts +50 -0
- package/src/models/errors/sdkvalidationerror.ts +12 -0
- package/src/models/errors/unauthorized.ts +15 -5
- package/src/models/operations/createaddress.ts +1 -1
- package/src/models/operations/createorder.ts +37 -35
- package/src/models/operations/generateotp.ts +6 -6
- package/src/models/operations/getaddressdetail.ts +1 -1
- package/src/models/operations/getproductdetail.ts +7 -7
- package/src/models/operations/getvariantdetail.ts +7 -7
- package/src/models/operations/listaddresses.ts +1 -1
- package/src/models/operations/listcrosssellproducts.ts +7 -7
- package/src/models/operations/listproducts.ts +7 -7
- package/src/models/operations/listproductvariants.ts +7 -7
- package/src/models/operations/listsimilarproducts.ts +7 -7
- package/src/models/operations/listskus.ts +7 -7
- package/src/models/operations/listupsellproducts.ts +7 -7
- package/src/models/operations/loginwithwhatsapp.ts +1 -1
- package/src/models/operations/retryorderpayment.ts +37 -35
- package/src/models/operations/searchproducts.ts +75 -0
- package/src/models/operations/updateaddressdetail.ts +1 -1
- package/src/sdk/catalog.ts +1 -2
- package/src/types/constdatetime.ts +1 -1
|
@@ -15,9 +15,9 @@ export type GetProductDetailRequest = {
|
|
|
15
15
|
*/
|
|
16
16
|
productIdOrSlug: string;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned.
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
xCustomerGroupId?: string | undefined;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
export type GetProductDetailContent = {
|
|
@@ -40,18 +40,18 @@ export const GetProductDetailRequest$inboundSchema: z.ZodType<
|
|
|
40
40
|
unknown
|
|
41
41
|
> = z.object({
|
|
42
42
|
product_id_or_slug: z.string(),
|
|
43
|
-
|
|
43
|
+
"x-customer-group-id": z.string().optional(),
|
|
44
44
|
}).transform((v) => {
|
|
45
45
|
return remap$(v, {
|
|
46
46
|
"product_id_or_slug": "productIdOrSlug",
|
|
47
|
-
"
|
|
47
|
+
"x-customer-group-id": "xCustomerGroupId",
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
50
|
|
|
51
51
|
/** @internal */
|
|
52
52
|
export type GetProductDetailRequest$Outbound = {
|
|
53
53
|
product_id_or_slug: string;
|
|
54
|
-
|
|
54
|
+
"x-customer-group-id"?: string | undefined;
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
/** @internal */
|
|
@@ -61,11 +61,11 @@ export const GetProductDetailRequest$outboundSchema: z.ZodType<
|
|
|
61
61
|
GetProductDetailRequest
|
|
62
62
|
> = z.object({
|
|
63
63
|
productIdOrSlug: z.string(),
|
|
64
|
-
|
|
64
|
+
xCustomerGroupId: z.string().optional(),
|
|
65
65
|
}).transform((v) => {
|
|
66
66
|
return remap$(v, {
|
|
67
67
|
productIdOrSlug: "product_id_or_slug",
|
|
68
|
-
|
|
68
|
+
xCustomerGroupId: "x-customer-group-id",
|
|
69
69
|
});
|
|
70
70
|
});
|
|
71
71
|
|
|
@@ -19,9 +19,9 @@ export type GetVariantDetailRequest = {
|
|
|
19
19
|
*/
|
|
20
20
|
variantId: string;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned.
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
xCustomerGroupId?: string | undefined;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
export type GetVariantDetailContent = {
|
|
@@ -45,12 +45,12 @@ export const GetVariantDetailRequest$inboundSchema: z.ZodType<
|
|
|
45
45
|
> = z.object({
|
|
46
46
|
product_id: z.string(),
|
|
47
47
|
variant_id: z.string(),
|
|
48
|
-
|
|
48
|
+
"x-customer-group-id": z.string().optional(),
|
|
49
49
|
}).transform((v) => {
|
|
50
50
|
return remap$(v, {
|
|
51
51
|
"product_id": "productId",
|
|
52
52
|
"variant_id": "variantId",
|
|
53
|
-
"
|
|
53
|
+
"x-customer-group-id": "xCustomerGroupId",
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
56
|
|
|
@@ -58,7 +58,7 @@ export const GetVariantDetailRequest$inboundSchema: z.ZodType<
|
|
|
58
58
|
export type GetVariantDetailRequest$Outbound = {
|
|
59
59
|
product_id: string;
|
|
60
60
|
variant_id: string;
|
|
61
|
-
|
|
61
|
+
"x-customer-group-id"?: string | undefined;
|
|
62
62
|
};
|
|
63
63
|
|
|
64
64
|
/** @internal */
|
|
@@ -69,12 +69,12 @@ export const GetVariantDetailRequest$outboundSchema: z.ZodType<
|
|
|
69
69
|
> = z.object({
|
|
70
70
|
productId: z.string(),
|
|
71
71
|
variantId: z.string(),
|
|
72
|
-
|
|
72
|
+
xCustomerGroupId: z.string().optional(),
|
|
73
73
|
}).transform((v) => {
|
|
74
74
|
return remap$(v, {
|
|
75
75
|
productId: "product_id",
|
|
76
76
|
variantId: "variant_id",
|
|
77
|
-
|
|
77
|
+
xCustomerGroupId: "x-customer-group-id",
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
80
|
|
|
@@ -166,7 +166,7 @@ export const Addresses$inboundSchema: z.ZodType<
|
|
|
166
166
|
pincode: z.string(),
|
|
167
167
|
city: z.string(),
|
|
168
168
|
state: z.string(),
|
|
169
|
-
country: z.literal("India").optional(),
|
|
169
|
+
country: z.literal("India").default("India").optional(),
|
|
170
170
|
tax_identification_number: z.nullable(z.string()),
|
|
171
171
|
business_name: z.nullable(z.string()),
|
|
172
172
|
is_phone_verified: z.boolean(),
|
|
@@ -27,9 +27,9 @@ export type ListCrosssellProductsRequest = {
|
|
|
27
27
|
*/
|
|
28
28
|
sortBy?: string | undefined;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned.
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
xCustomerGroupId?: string | undefined;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
export type ListCrosssellProductsContent = {
|
|
@@ -59,12 +59,12 @@ export const ListCrosssellProductsRequest$inboundSchema: z.ZodType<
|
|
|
59
59
|
page: z.number().int().optional(),
|
|
60
60
|
limit: z.number().int().optional(),
|
|
61
61
|
sort_by: z.string().optional(),
|
|
62
|
-
|
|
62
|
+
"x-customer-group-id": z.string().optional(),
|
|
63
63
|
}).transform((v) => {
|
|
64
64
|
return remap$(v, {
|
|
65
65
|
"product_id": "productId",
|
|
66
66
|
"sort_by": "sortBy",
|
|
67
|
-
"
|
|
67
|
+
"x-customer-group-id": "xCustomerGroupId",
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
70
|
|
|
@@ -74,7 +74,7 @@ export type ListCrosssellProductsRequest$Outbound = {
|
|
|
74
74
|
page?: number | undefined;
|
|
75
75
|
limit?: number | undefined;
|
|
76
76
|
sort_by?: string | undefined;
|
|
77
|
-
|
|
77
|
+
"x-customer-group-id"?: string | undefined;
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
/** @internal */
|
|
@@ -87,12 +87,12 @@ export const ListCrosssellProductsRequest$outboundSchema: z.ZodType<
|
|
|
87
87
|
page: z.number().int().optional(),
|
|
88
88
|
limit: z.number().int().optional(),
|
|
89
89
|
sortBy: z.string().optional(),
|
|
90
|
-
|
|
90
|
+
xCustomerGroupId: z.string().optional(),
|
|
91
91
|
}).transform((v) => {
|
|
92
92
|
return remap$(v, {
|
|
93
93
|
productId: "product_id",
|
|
94
94
|
sortBy: "sort_by",
|
|
95
|
-
|
|
95
|
+
xCustomerGroupId: "x-customer-group-id",
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
|
|
@@ -27,9 +27,9 @@ export type ListProductsRequest = {
|
|
|
27
27
|
*/
|
|
28
28
|
categoryId?: Array<string> | undefined;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned.
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
xCustomerGroupId?: string | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* filter products by categories slugs
|
|
35
35
|
*/
|
|
@@ -63,13 +63,13 @@ export const ListProductsRequest$inboundSchema: z.ZodType<
|
|
|
63
63
|
limit: z.number().int().optional(),
|
|
64
64
|
sort_by: z.string().optional(),
|
|
65
65
|
category_id: z.array(z.string()).optional(),
|
|
66
|
-
|
|
66
|
+
"x-customer-group-id": z.string().optional(),
|
|
67
67
|
category_slug: z.array(z.string()).optional(),
|
|
68
68
|
}).transform((v) => {
|
|
69
69
|
return remap$(v, {
|
|
70
70
|
"sort_by": "sortBy",
|
|
71
71
|
"category_id": "categoryId",
|
|
72
|
-
"
|
|
72
|
+
"x-customer-group-id": "xCustomerGroupId",
|
|
73
73
|
"category_slug": "categorySlug",
|
|
74
74
|
});
|
|
75
75
|
});
|
|
@@ -80,7 +80,7 @@ export type ListProductsRequest$Outbound = {
|
|
|
80
80
|
limit?: number | undefined;
|
|
81
81
|
sort_by?: string | undefined;
|
|
82
82
|
category_id?: Array<string> | undefined;
|
|
83
|
-
|
|
83
|
+
"x-customer-group-id"?: string | undefined;
|
|
84
84
|
category_slug?: Array<string> | undefined;
|
|
85
85
|
};
|
|
86
86
|
|
|
@@ -94,13 +94,13 @@ export const ListProductsRequest$outboundSchema: z.ZodType<
|
|
|
94
94
|
limit: z.number().int().optional(),
|
|
95
95
|
sortBy: z.string().optional(),
|
|
96
96
|
categoryId: z.array(z.string()).optional(),
|
|
97
|
-
|
|
97
|
+
xCustomerGroupId: z.string().optional(),
|
|
98
98
|
categorySlug: z.array(z.string()).optional(),
|
|
99
99
|
}).transform((v) => {
|
|
100
100
|
return remap$(v, {
|
|
101
101
|
sortBy: "sort_by",
|
|
102
102
|
categoryId: "category_id",
|
|
103
|
-
|
|
103
|
+
xCustomerGroupId: "x-customer-group-id",
|
|
104
104
|
categorySlug: "category_slug",
|
|
105
105
|
});
|
|
106
106
|
});
|
|
@@ -15,9 +15,9 @@ export type ListProductVariantsRequest = {
|
|
|
15
15
|
*/
|
|
16
16
|
productId: string;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned.
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
xCustomerGroupId?: string | undefined;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
export type ListProductVariantsContent = {
|
|
@@ -40,18 +40,18 @@ export const ListProductVariantsRequest$inboundSchema: z.ZodType<
|
|
|
40
40
|
unknown
|
|
41
41
|
> = z.object({
|
|
42
42
|
product_id: z.string(),
|
|
43
|
-
|
|
43
|
+
"x-customer-group-id": z.string().optional(),
|
|
44
44
|
}).transform((v) => {
|
|
45
45
|
return remap$(v, {
|
|
46
46
|
"product_id": "productId",
|
|
47
|
-
"
|
|
47
|
+
"x-customer-group-id": "xCustomerGroupId",
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
50
|
|
|
51
51
|
/** @internal */
|
|
52
52
|
export type ListProductVariantsRequest$Outbound = {
|
|
53
53
|
product_id: string;
|
|
54
|
-
|
|
54
|
+
"x-customer-group-id"?: string | undefined;
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
/** @internal */
|
|
@@ -61,11 +61,11 @@ export const ListProductVariantsRequest$outboundSchema: z.ZodType<
|
|
|
61
61
|
ListProductVariantsRequest
|
|
62
62
|
> = z.object({
|
|
63
63
|
productId: z.string(),
|
|
64
|
-
|
|
64
|
+
xCustomerGroupId: z.string().optional(),
|
|
65
65
|
}).transform((v) => {
|
|
66
66
|
return remap$(v, {
|
|
67
67
|
productId: "product_id",
|
|
68
|
-
|
|
68
|
+
xCustomerGroupId: "x-customer-group-id",
|
|
69
69
|
});
|
|
70
70
|
});
|
|
71
71
|
|
|
@@ -27,9 +27,9 @@ export type ListSimilarProductsRequest = {
|
|
|
27
27
|
*/
|
|
28
28
|
sortBy?: string | undefined;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned.
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
xCustomerGroupId?: string | undefined;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
export type ListSimilarProductsContent = {
|
|
@@ -59,12 +59,12 @@ export const ListSimilarProductsRequest$inboundSchema: z.ZodType<
|
|
|
59
59
|
page: z.number().int().optional(),
|
|
60
60
|
limit: z.number().int().optional(),
|
|
61
61
|
sort_by: z.string().optional(),
|
|
62
|
-
|
|
62
|
+
"x-customer-group-id": z.string().optional(),
|
|
63
63
|
}).transform((v) => {
|
|
64
64
|
return remap$(v, {
|
|
65
65
|
"product_id": "productId",
|
|
66
66
|
"sort_by": "sortBy",
|
|
67
|
-
"
|
|
67
|
+
"x-customer-group-id": "xCustomerGroupId",
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
70
|
|
|
@@ -74,7 +74,7 @@ export type ListSimilarProductsRequest$Outbound = {
|
|
|
74
74
|
page?: number | undefined;
|
|
75
75
|
limit?: number | undefined;
|
|
76
76
|
sort_by?: string | undefined;
|
|
77
|
-
|
|
77
|
+
"x-customer-group-id"?: string | undefined;
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
/** @internal */
|
|
@@ -87,12 +87,12 @@ export const ListSimilarProductsRequest$outboundSchema: z.ZodType<
|
|
|
87
87
|
page: z.number().int().optional(),
|
|
88
88
|
limit: z.number().int().optional(),
|
|
89
89
|
sortBy: z.string().optional(),
|
|
90
|
-
|
|
90
|
+
xCustomerGroupId: z.string().optional(),
|
|
91
91
|
}).transform((v) => {
|
|
92
92
|
return remap$(v, {
|
|
93
93
|
productId: "product_id",
|
|
94
94
|
sortBy: "sort_by",
|
|
95
|
-
|
|
95
|
+
xCustomerGroupId: "x-customer-group-id",
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
|
|
@@ -31,9 +31,9 @@ export type ListSkusRequest = {
|
|
|
31
31
|
*/
|
|
32
32
|
sku?: Array<string> | undefined;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned.
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
xCustomerGroupId?: string | undefined;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
export type ListSkusContent = {
|
|
@@ -64,12 +64,12 @@ export const ListSkusRequest$inboundSchema: z.ZodType<
|
|
|
64
64
|
sort_by: z.string().optional(),
|
|
65
65
|
category_id: z.array(z.string()).optional(),
|
|
66
66
|
sku: z.array(z.string()).optional(),
|
|
67
|
-
|
|
67
|
+
"x-customer-group-id": z.string().optional(),
|
|
68
68
|
}).transform((v) => {
|
|
69
69
|
return remap$(v, {
|
|
70
70
|
"sort_by": "sortBy",
|
|
71
71
|
"category_id": "categoryId",
|
|
72
|
-
"
|
|
72
|
+
"x-customer-group-id": "xCustomerGroupId",
|
|
73
73
|
});
|
|
74
74
|
});
|
|
75
75
|
|
|
@@ -80,7 +80,7 @@ export type ListSkusRequest$Outbound = {
|
|
|
80
80
|
sort_by?: string | undefined;
|
|
81
81
|
category_id?: Array<string> | undefined;
|
|
82
82
|
sku?: Array<string> | undefined;
|
|
83
|
-
|
|
83
|
+
"x-customer-group-id"?: string | undefined;
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
/** @internal */
|
|
@@ -94,12 +94,12 @@ export const ListSkusRequest$outboundSchema: z.ZodType<
|
|
|
94
94
|
sortBy: z.string().optional(),
|
|
95
95
|
categoryId: z.array(z.string()).optional(),
|
|
96
96
|
sku: z.array(z.string()).optional(),
|
|
97
|
-
|
|
97
|
+
xCustomerGroupId: z.string().optional(),
|
|
98
98
|
}).transform((v) => {
|
|
99
99
|
return remap$(v, {
|
|
100
100
|
sortBy: "sort_by",
|
|
101
101
|
categoryId: "category_id",
|
|
102
|
-
|
|
102
|
+
xCustomerGroupId: "x-customer-group-id",
|
|
103
103
|
});
|
|
104
104
|
});
|
|
105
105
|
|
|
@@ -27,9 +27,9 @@ export type ListUpsellProductsRequest = {
|
|
|
27
27
|
*/
|
|
28
28
|
sortBy?: string | undefined;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned.
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
xCustomerGroupId?: string | undefined;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
export type ListUpsellProductsContent = {
|
|
@@ -62,12 +62,12 @@ export const ListUpsellProductsRequest$inboundSchema: z.ZodType<
|
|
|
62
62
|
page: z.number().int().optional(),
|
|
63
63
|
limit: z.number().int().optional(),
|
|
64
64
|
sort_by: z.string().optional(),
|
|
65
|
-
|
|
65
|
+
"x-customer-group-id": z.string().optional(),
|
|
66
66
|
}).transform((v) => {
|
|
67
67
|
return remap$(v, {
|
|
68
68
|
"product_id": "productId",
|
|
69
69
|
"sort_by": "sortBy",
|
|
70
|
-
"
|
|
70
|
+
"x-customer-group-id": "xCustomerGroupId",
|
|
71
71
|
});
|
|
72
72
|
});
|
|
73
73
|
|
|
@@ -77,7 +77,7 @@ export type ListUpsellProductsRequest$Outbound = {
|
|
|
77
77
|
page?: number | undefined;
|
|
78
78
|
limit?: number | undefined;
|
|
79
79
|
sort_by?: string | undefined;
|
|
80
|
-
|
|
80
|
+
"x-customer-group-id"?: string | undefined;
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
/** @internal */
|
|
@@ -90,12 +90,12 @@ export const ListUpsellProductsRequest$outboundSchema: z.ZodType<
|
|
|
90
90
|
page: z.number().int().optional(),
|
|
91
91
|
limit: z.number().int().optional(),
|
|
92
92
|
sortBy: z.string().optional(),
|
|
93
|
-
|
|
93
|
+
xCustomerGroupId: z.string().optional(),
|
|
94
94
|
}).transform((v) => {
|
|
95
95
|
return remap$(v, {
|
|
96
96
|
productId: "product_id",
|
|
97
97
|
sortBy: "sort_by",
|
|
98
|
-
|
|
98
|
+
xCustomerGroupId: "x-customer-group-id",
|
|
99
99
|
});
|
|
100
100
|
});
|
|
101
101
|
|
|
@@ -65,7 +65,7 @@ export const LoginWithWhatsappRequestBody$inboundSchema: z.ZodType<
|
|
|
65
65
|
z.ZodTypeDef,
|
|
66
66
|
unknown
|
|
67
67
|
> = z.object({
|
|
68
|
-
country_code: z.literal("+91").optional(),
|
|
68
|
+
country_code: z.literal("+91").default("+91").optional(),
|
|
69
69
|
phone: z.string(),
|
|
70
70
|
register_if_not_exists: z.boolean().optional(),
|
|
71
71
|
}).transform((v) => {
|
|
@@ -10,13 +10,13 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type RetryOrderPaymentPaymentGatewayParams =
|
|
13
|
-
| (components.
|
|
14
|
-
| (components.
|
|
13
|
+
| (components.JuspayPaymentGatewayParams & { paymentGateway: "JUSPAY" })
|
|
14
|
+
| (components.PayuPaymentGatewayParams & { paymentGateway: "PAYU" });
|
|
15
15
|
|
|
16
16
|
export type RetryOrderPaymentRequestBody = {
|
|
17
17
|
paymentGatewayParams:
|
|
18
|
-
| (components.
|
|
19
|
-
| (components.
|
|
18
|
+
| (components.JuspayPaymentGatewayParams & { paymentGateway: "JUSPAY" })
|
|
19
|
+
| (components.PayuPaymentGatewayParams & { paymentGateway: "PAYU" });
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export type RetryOrderPaymentRequest = {
|
|
@@ -28,11 +28,11 @@ export type RetryOrderPaymentRequest = {
|
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
export type RetryOrderPaymentPaymentInfo =
|
|
31
|
-
| components.
|
|
32
|
-
| components.
|
|
31
|
+
| components.PayuPaymentInfo
|
|
32
|
+
| components.JuspayPaymentInfo;
|
|
33
33
|
|
|
34
34
|
export type RetryOrderPaymentContent = {
|
|
35
|
-
paymentInfo: components.
|
|
35
|
+
paymentInfo: components.PayuPaymentInfo | components.JuspayPaymentInfo;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
/**
|
|
@@ -50,13 +50,13 @@ export const RetryOrderPaymentPaymentGatewayParams$inboundSchema: z.ZodType<
|
|
|
50
50
|
z.ZodTypeDef,
|
|
51
51
|
unknown
|
|
52
52
|
> = z.union([
|
|
53
|
-
components.
|
|
54
|
-
z.object({ payment_gateway: z.literal("
|
|
53
|
+
components.JuspayPaymentGatewayParams$inboundSchema.and(
|
|
54
|
+
z.object({ payment_gateway: z.literal("JUSPAY") }).transform((v) => ({
|
|
55
55
|
paymentGateway: v.payment_gateway,
|
|
56
56
|
})),
|
|
57
57
|
),
|
|
58
|
-
components.
|
|
59
|
-
z.object({ payment_gateway: z.literal("
|
|
58
|
+
components.PayuPaymentGatewayParams$inboundSchema.and(
|
|
59
|
+
z.object({ payment_gateway: z.literal("PAYU") }).transform((v) => ({
|
|
60
60
|
paymentGateway: v.payment_gateway,
|
|
61
61
|
})),
|
|
62
62
|
),
|
|
@@ -64,9 +64,11 @@ export const RetryOrderPaymentPaymentGatewayParams$inboundSchema: z.ZodType<
|
|
|
64
64
|
|
|
65
65
|
/** @internal */
|
|
66
66
|
export type RetryOrderPaymentPaymentGatewayParams$Outbound =
|
|
67
|
-
| (components.PayuPaymentGatewayParams$Outbound & { payment_gateway: "PAYU" })
|
|
68
67
|
| (components.JuspayPaymentGatewayParams$Outbound & {
|
|
69
68
|
payment_gateway: "JUSPAY";
|
|
69
|
+
})
|
|
70
|
+
| (components.PayuPaymentGatewayParams$Outbound & {
|
|
71
|
+
payment_gateway: "PAYU";
|
|
70
72
|
});
|
|
71
73
|
|
|
72
74
|
/** @internal */
|
|
@@ -75,13 +77,13 @@ export const RetryOrderPaymentPaymentGatewayParams$outboundSchema: z.ZodType<
|
|
|
75
77
|
z.ZodTypeDef,
|
|
76
78
|
RetryOrderPaymentPaymentGatewayParams
|
|
77
79
|
> = z.union([
|
|
78
|
-
components.
|
|
79
|
-
z.object({ paymentGateway: z.literal("
|
|
80
|
+
components.JuspayPaymentGatewayParams$outboundSchema.and(
|
|
81
|
+
z.object({ paymentGateway: z.literal("JUSPAY") }).transform((v) => ({
|
|
80
82
|
payment_gateway: v.paymentGateway,
|
|
81
83
|
})),
|
|
82
84
|
),
|
|
83
|
-
components.
|
|
84
|
-
z.object({ paymentGateway: z.literal("
|
|
85
|
+
components.PayuPaymentGatewayParams$outboundSchema.and(
|
|
86
|
+
z.object({ paymentGateway: z.literal("PAYU") }).transform((v) => ({
|
|
85
87
|
payment_gateway: v.paymentGateway,
|
|
86
88
|
})),
|
|
87
89
|
),
|
|
@@ -130,13 +132,13 @@ export const RetryOrderPaymentRequestBody$inboundSchema: z.ZodType<
|
|
|
130
132
|
unknown
|
|
131
133
|
> = z.object({
|
|
132
134
|
payment_gateway_params: z.union([
|
|
133
|
-
components.
|
|
134
|
-
z.object({ payment_gateway: z.literal("
|
|
135
|
+
components.JuspayPaymentGatewayParams$inboundSchema.and(
|
|
136
|
+
z.object({ payment_gateway: z.literal("JUSPAY") }).transform((v) => ({
|
|
135
137
|
paymentGateway: v.payment_gateway,
|
|
136
138
|
})),
|
|
137
139
|
),
|
|
138
|
-
components.
|
|
139
|
-
z.object({ payment_gateway: z.literal("
|
|
140
|
+
components.PayuPaymentGatewayParams$inboundSchema.and(
|
|
141
|
+
z.object({ payment_gateway: z.literal("PAYU") }).transform((v) => ({
|
|
140
142
|
paymentGateway: v.payment_gateway,
|
|
141
143
|
})),
|
|
142
144
|
),
|
|
@@ -150,11 +152,11 @@ export const RetryOrderPaymentRequestBody$inboundSchema: z.ZodType<
|
|
|
150
152
|
/** @internal */
|
|
151
153
|
export type RetryOrderPaymentRequestBody$Outbound = {
|
|
152
154
|
payment_gateway_params:
|
|
153
|
-
| (components.PayuPaymentGatewayParams$Outbound & {
|
|
154
|
-
payment_gateway: "PAYU";
|
|
155
|
-
})
|
|
156
155
|
| (components.JuspayPaymentGatewayParams$Outbound & {
|
|
157
156
|
payment_gateway: "JUSPAY";
|
|
157
|
+
})
|
|
158
|
+
| (components.PayuPaymentGatewayParams$Outbound & {
|
|
159
|
+
payment_gateway: "PAYU";
|
|
158
160
|
});
|
|
159
161
|
};
|
|
160
162
|
|
|
@@ -165,13 +167,13 @@ export const RetryOrderPaymentRequestBody$outboundSchema: z.ZodType<
|
|
|
165
167
|
RetryOrderPaymentRequestBody
|
|
166
168
|
> = z.object({
|
|
167
169
|
paymentGatewayParams: z.union([
|
|
168
|
-
components.
|
|
169
|
-
z.object({ paymentGateway: z.literal("
|
|
170
|
+
components.JuspayPaymentGatewayParams$outboundSchema.and(
|
|
171
|
+
z.object({ paymentGateway: z.literal("JUSPAY") }).transform((v) => ({
|
|
170
172
|
payment_gateway: v.paymentGateway,
|
|
171
173
|
})),
|
|
172
174
|
),
|
|
173
|
-
components.
|
|
174
|
-
z.object({ paymentGateway: z.literal("
|
|
175
|
+
components.PayuPaymentGatewayParams$outboundSchema.and(
|
|
176
|
+
z.object({ paymentGateway: z.literal("PAYU") }).transform((v) => ({
|
|
175
177
|
payment_gateway: v.paymentGateway,
|
|
176
178
|
})),
|
|
177
179
|
),
|
|
@@ -288,14 +290,14 @@ export const RetryOrderPaymentPaymentInfo$inboundSchema: z.ZodType<
|
|
|
288
290
|
z.ZodTypeDef,
|
|
289
291
|
unknown
|
|
290
292
|
> = z.union([
|
|
291
|
-
components.JuspayPaymentInfo$inboundSchema,
|
|
292
293
|
components.PayuPaymentInfo$inboundSchema,
|
|
294
|
+
components.JuspayPaymentInfo$inboundSchema,
|
|
293
295
|
]);
|
|
294
296
|
|
|
295
297
|
/** @internal */
|
|
296
298
|
export type RetryOrderPaymentPaymentInfo$Outbound =
|
|
297
|
-
| components.
|
|
298
|
-
| components.
|
|
299
|
+
| components.PayuPaymentInfo$Outbound
|
|
300
|
+
| components.JuspayPaymentInfo$Outbound;
|
|
299
301
|
|
|
300
302
|
/** @internal */
|
|
301
303
|
export const RetryOrderPaymentPaymentInfo$outboundSchema: z.ZodType<
|
|
@@ -303,8 +305,8 @@ export const RetryOrderPaymentPaymentInfo$outboundSchema: z.ZodType<
|
|
|
303
305
|
z.ZodTypeDef,
|
|
304
306
|
RetryOrderPaymentPaymentInfo
|
|
305
307
|
> = z.union([
|
|
306
|
-
components.JuspayPaymentInfo$outboundSchema,
|
|
307
308
|
components.PayuPaymentInfo$outboundSchema,
|
|
309
|
+
components.JuspayPaymentInfo$outboundSchema,
|
|
308
310
|
]);
|
|
309
311
|
|
|
310
312
|
/**
|
|
@@ -347,8 +349,8 @@ export const RetryOrderPaymentContent$inboundSchema: z.ZodType<
|
|
|
347
349
|
unknown
|
|
348
350
|
> = z.object({
|
|
349
351
|
payment_info: z.union([
|
|
350
|
-
components.JuspayPaymentInfo$inboundSchema,
|
|
351
352
|
components.PayuPaymentInfo$inboundSchema,
|
|
353
|
+
components.JuspayPaymentInfo$inboundSchema,
|
|
352
354
|
]),
|
|
353
355
|
}).transform((v) => {
|
|
354
356
|
return remap$(v, {
|
|
@@ -359,8 +361,8 @@ export const RetryOrderPaymentContent$inboundSchema: z.ZodType<
|
|
|
359
361
|
/** @internal */
|
|
360
362
|
export type RetryOrderPaymentContent$Outbound = {
|
|
361
363
|
payment_info:
|
|
362
|
-
| components.
|
|
363
|
-
| components.
|
|
364
|
+
| components.PayuPaymentInfo$Outbound
|
|
365
|
+
| components.JuspayPaymentInfo$Outbound;
|
|
364
366
|
};
|
|
365
367
|
|
|
366
368
|
/** @internal */
|
|
@@ -370,8 +372,8 @@ export const RetryOrderPaymentContent$outboundSchema: z.ZodType<
|
|
|
370
372
|
RetryOrderPaymentContent
|
|
371
373
|
> = z.object({
|
|
372
374
|
paymentInfo: z.union([
|
|
373
|
-
components.JuspayPaymentInfo$outboundSchema,
|
|
374
375
|
components.PayuPaymentInfo$outboundSchema,
|
|
376
|
+
components.JuspayPaymentInfo$outboundSchema,
|
|
375
377
|
]),
|
|
376
378
|
}).transform((v) => {
|
|
377
379
|
return remap$(v, {
|