ce-storefront 0.16.1 → 0.16.3
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 +2 -4
- package/docs/sdks/auth/README.md +10 -10
- package/docs/sdks/carts/README.md +16 -102
- package/docs/sdks/catalog/README.md +11 -11
- package/docs/sdks/common/README.md +1 -1
- package/docs/sdks/customers/README.md +7 -7
- package/docs/sdks/orders/README.md +7 -7
- package/docs/sdks/shipping/README.md +3 -3
- package/esm/funcs/authGenerateOtp.d.ts +1 -1
- package/esm/funcs/authGenerateOtp.js +1 -1
- package/esm/funcs/authGetAnonymousToken.d.ts +1 -1
- package/esm/funcs/authGetAnonymousToken.js +1 -1
- package/esm/funcs/authGetUserDetail.d.ts +1 -1
- package/esm/funcs/authGetUserDetail.js +1 -1
- package/esm/funcs/authLoginWithEmail.d.ts +1 -1
- package/esm/funcs/authLoginWithEmail.js +1 -1
- package/esm/funcs/authLoginWithPhone.d.ts +1 -1
- package/esm/funcs/authLoginWithPhone.js +1 -1
- package/esm/funcs/authLoginWithWhatsapp.d.ts +1 -1
- package/esm/funcs/authLoginWithWhatsapp.js +1 -1
- package/esm/funcs/authLogout.d.ts +1 -1
- package/esm/funcs/authLogout.js +1 -1
- package/esm/funcs/authRefreshToken.d.ts +1 -1
- package/esm/funcs/authRefreshToken.js +1 -1
- package/esm/funcs/authUpdateUser.d.ts +1 -1
- package/esm/funcs/authUpdateUser.js +1 -1
- package/esm/funcs/authVerifyOtp.d.ts +1 -1
- package/esm/funcs/authVerifyOtp.js +1 -1
- package/esm/funcs/cartsApplyCoupon.d.ts +1 -1
- package/esm/funcs/cartsApplyCoupon.js +1 -1
- package/esm/funcs/cartsCreateCart.d.ts +1 -1
- package/esm/funcs/cartsCreateCart.js +1 -1
- package/esm/funcs/cartsCreateCartAddress.d.ts +1 -1
- package/esm/funcs/cartsCreateCartAddress.js +1 -1
- package/esm/funcs/cartsDeleteCart.d.ts +1 -1
- package/esm/funcs/cartsDeleteCart.js +1 -1
- package/esm/funcs/cartsGetCart.d.ts +1 -1
- package/esm/funcs/cartsGetCart.js +1 -1
- package/esm/funcs/cartsGetUserCart.d.ts +1 -1
- package/esm/funcs/cartsGetUserCart.js +1 -1
- package/esm/funcs/cartsRedeemLoyaltyPoints.d.ts +1 -1
- package/esm/funcs/cartsRedeemLoyaltyPoints.js +1 -1
- package/esm/funcs/cartsRemoveCoupon.d.ts +1 -1
- package/esm/funcs/cartsRemoveCoupon.js +1 -1
- package/esm/funcs/cartsRemoveLoyaltyPoints.d.ts +1 -1
- package/esm/funcs/cartsRemoveLoyaltyPoints.js +1 -1
- package/esm/funcs/cartsRemoveUserCart.d.ts +1 -1
- package/esm/funcs/cartsRemoveUserCart.js +1 -1
- package/esm/funcs/cartsUpdateCart.d.ts +1 -1
- package/esm/funcs/cartsUpdateCart.js +1 -1
- package/esm/funcs/cartsUpdateFulfillmentPreference.d.ts +1 -1
- package/esm/funcs/cartsUpdateFulfillmentPreference.js +4 -2
- package/esm/funcs/cartsUpdateFulfillmentPreference.js.map +1 -1
- package/esm/funcs/catalogGetProductDetail.d.ts +1 -1
- package/esm/funcs/catalogGetProductDetail.js +1 -1
- package/esm/funcs/catalogGetVariantDetail.d.ts +1 -1
- package/esm/funcs/catalogGetVariantDetail.js +1 -1
- package/esm/funcs/catalogListCategories.d.ts +1 -1
- package/esm/funcs/catalogListCategories.js +1 -1
- package/esm/funcs/catalogListCrosssellProducts.d.ts +1 -1
- package/esm/funcs/catalogListCrosssellProducts.js +1 -1
- package/esm/funcs/catalogListProductReviews.d.ts +1 -1
- package/esm/funcs/catalogListProductReviews.js +1 -1
- package/esm/funcs/catalogListProductVariants.d.ts +1 -1
- package/esm/funcs/catalogListProductVariants.js +1 -1
- package/esm/funcs/catalogListProducts.d.ts +1 -1
- package/esm/funcs/catalogListProducts.js +1 -1
- package/esm/funcs/catalogListSimilarProducts.d.ts +1 -1
- package/esm/funcs/catalogListSimilarProducts.js +1 -1
- package/esm/funcs/catalogListSkus.d.ts +1 -1
- package/esm/funcs/catalogListSkus.js +1 -1
- package/esm/funcs/catalogListUpsellProducts.d.ts +1 -1
- package/esm/funcs/catalogListUpsellProducts.js +1 -1
- package/esm/funcs/catalogSearchProducts.d.ts +1 -1
- package/esm/funcs/catalogSearchProducts.js +1 -1
- package/esm/funcs/commonListCountryPincodes.d.ts +1 -1
- package/esm/funcs/commonListCountryPincodes.js +1 -1
- package/esm/funcs/customersCreateAddress.d.ts +1 -1
- package/esm/funcs/customersCreateAddress.js +1 -1
- package/esm/funcs/customersDeleteAddress.d.ts +1 -1
- package/esm/funcs/customersDeleteAddress.js +1 -1
- package/esm/funcs/customersGetAddressDetail.d.ts +1 -1
- package/esm/funcs/customersGetAddressDetail.js +1 -1
- package/esm/funcs/customersGetLoyaltyDetails.d.ts +1 -1
- package/esm/funcs/customersGetLoyaltyDetails.js +1 -1
- package/esm/funcs/customersListAddresses.d.ts +1 -1
- package/esm/funcs/customersListAddresses.js +1 -1
- package/esm/funcs/customersListUserReviews.d.ts +1 -1
- package/esm/funcs/customersListUserReviews.js +1 -1
- package/esm/funcs/customersUpdateAddressDetail.d.ts +1 -1
- package/esm/funcs/customersUpdateAddressDetail.js +1 -1
- package/esm/funcs/ordersCancelOrder.d.ts +1 -1
- package/esm/funcs/ordersCancelOrder.js +1 -1
- package/esm/funcs/ordersCreateOrder.d.ts +1 -1
- package/esm/funcs/ordersCreateOrder.js +1 -1
- package/esm/funcs/ordersGetOrderDetail.d.ts +1 -1
- package/esm/funcs/ordersGetOrderDetail.js +1 -1
- package/esm/funcs/ordersGetPaymentStatus.d.ts +1 -1
- package/esm/funcs/ordersGetPaymentStatus.js +1 -1
- package/esm/funcs/ordersListOrderShipments.d.ts +1 -1
- package/esm/funcs/ordersListOrderShipments.js +1 -1
- package/esm/funcs/ordersListOrders.d.ts +1 -1
- package/esm/funcs/ordersListOrders.js +1 -1
- package/esm/funcs/ordersRetryOrderPayment.d.ts +1 -1
- package/esm/funcs/ordersRetryOrderPayment.js +1 -1
- package/esm/funcs/shippingCheckServiceability.d.ts +1 -1
- package/esm/funcs/shippingCheckServiceability.js +1 -1
- package/esm/funcs/shippingFulfillmentOptions.d.ts +1 -1
- package/esm/funcs/shippingFulfillmentOptions.js +1 -1
- package/esm/funcs/shippingShippingMethods.d.ts +1 -1
- package/esm/funcs/shippingShippingMethods.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/components/anonymoususer.d.ts +1 -1
- package/esm/models/components/appliedcoupon.d.ts +1 -1
- package/esm/models/components/appliedpromotion.d.ts +1 -1
- package/esm/models/components/banktransfer.d.ts +1 -1
- package/esm/models/components/booleanattribute.d.ts +1 -1
- package/esm/models/components/cardpayment.d.ts +1 -1
- package/esm/models/components/cart.d.ts +1 -1
- package/esm/models/components/cartbasedserviceabilitycheck.d.ts +1 -1
- package/esm/models/components/cartitem.d.ts +1 -1
- package/esm/models/components/category.d.ts +1 -1
- package/esm/models/components/collectinstore.d.ts +1 -1
- package/esm/models/components/collectinstorefulfillment.d.ts +1 -1
- package/esm/models/components/colorattribute.d.ts +1 -1
- package/esm/models/components/coloroption.d.ts +1 -1
- package/esm/models/components/currency.d.ts +1 -1
- package/esm/models/components/customeraddress.d.ts +1 -1
- package/esm/models/components/customeraddressinput.d.ts +1 -1
- package/esm/models/components/customerloyalty.d.ts +1 -1
- package/esm/models/components/customerreadyforreview.d.ts +1 -1
- package/esm/models/components/customerreview.d.ts +1 -1
- package/esm/models/components/dateattribute.d.ts +1 -1
- package/esm/models/components/deliveryfulfillment.d.ts +3 -3
- package/esm/models/components/deliveryfulfillment.d.ts.map +1 -1
- package/esm/models/components/deliveryfulfillment.js +2 -2
- package/esm/models/components/deliveryfulfillment.js.map +1 -1
- package/esm/models/components/deliveryfulfillmentinput.d.ts +36 -0
- package/esm/models/components/deliveryfulfillmentinput.d.ts.map +1 -0
- package/esm/models/components/deliveryfulfillmentinput.js +48 -0
- package/esm/models/components/deliveryfulfillmentinput.js.map +1 -0
- package/esm/models/components/discountbasedpromotion.d.ts +1 -1
- package/esm/models/components/fixedpricepromotion.d.ts +1 -1
- package/esm/models/components/freegoodspromotion.d.ts +1 -1
- package/esm/models/components/fulfillmentitem.d.ts +1 -1
- package/esm/models/components/fulfillmentiteminput.d.ts +1 -1
- package/esm/models/components/fulfillmentpreference.d.ts +15 -3
- package/esm/models/components/fulfillmentpreference.d.ts.map +1 -1
- package/esm/models/components/fulfillmentpreference.js +12 -6
- package/esm/models/components/fulfillmentpreference.js.map +1 -1
- package/esm/models/components/fulfillmentpreferenceinput.d.ts +43 -0
- package/esm/models/components/fulfillmentpreferenceinput.d.ts.map +1 -0
- package/esm/models/components/fulfillmentpreferenceinput.js +44 -0
- package/esm/models/components/fulfillmentpreferenceinput.js.map +1 -0
- package/esm/models/components/generateotpwithemail.d.ts +1 -1
- package/esm/models/components/generateotpwithphone.d.ts +1 -1
- 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 +1 -1
- package/esm/models/components/juspaypaymentgatewayparams.d.ts +1 -1
- package/esm/models/components/juspaypaymentinfo.d.ts +1 -1
- package/esm/models/components/lotbatchdetail.d.ts +1 -1
- package/esm/models/components/multiselectattribute.d.ts +1 -1
- package/esm/models/components/netbankingpayment.d.ts +1 -1
- package/esm/models/components/notificationchannelpreferences.d.ts +1 -1
- package/esm/models/components/notificationpreferences.d.ts +1 -1
- package/esm/models/components/numberattribute.d.ts +1 -1
- package/esm/models/components/order.d.ts +1 -1
- package/esm/models/components/orderdetail.d.ts +1 -1
- package/esm/models/components/orderitem.d.ts +1 -1
- package/esm/models/components/orderlist.d.ts +1 -1
- package/esm/models/components/orderpayment.d.ts +1 -1
- package/esm/models/components/ordershipment.d.ts +1 -1
- package/esm/models/components/pagination.d.ts +1 -1
- package/esm/models/components/partialcollectanddelivery.d.ts +3 -3
- package/esm/models/components/partialcollectanddelivery.d.ts.map +1 -1
- package/esm/models/components/partialcollectanddelivery.js +2 -2
- package/esm/models/components/partialcollectanddelivery.js.map +1 -1
- package/esm/models/components/partialcollectanddeliveryinput.d.ts +1 -1
- package/esm/models/components/paymentgateway.d.ts +2 -2
- package/esm/models/components/paymentgateway.js +1 -1
- package/esm/models/components/paymentgatewayparams.d.ts +1 -1
- package/esm/models/components/payupaymentgatewayparams.d.ts +1 -1
- package/esm/models/components/payupaymentinfo.d.ts +1 -1
- package/esm/models/components/pincode.d.ts +1 -1
- package/esm/models/components/pincodeserviceability.d.ts +1 -1
- package/esm/models/components/product.d.ts +1 -1
- package/esm/models/components/productattribute.d.ts +1 -1
- package/esm/models/components/productbundleitem.d.ts +1 -1
- package/esm/models/components/productcategory.d.ts +1 -1
- package/esm/models/components/productdetail.d.ts +1 -1
- package/esm/models/components/productimage.d.ts +1 -1
- package/esm/models/components/productpricing.d.ts +1 -1
- package/esm/models/components/productpromotion.d.ts +1 -1
- package/esm/models/components/productreview.d.ts +1 -1
- package/esm/models/components/productshipping.d.ts +1 -1
- package/esm/models/components/productsubscription.d.ts +1 -1
- package/esm/models/components/productvideo.d.ts +1 -1
- package/esm/models/components/searchproduct.d.ts +1 -1
- package/esm/models/components/seo.d.ts +1 -1
- package/esm/models/components/shipmentitem.d.ts +1 -1
- package/esm/models/components/singleselectattribute.d.ts +1 -1
- package/esm/models/components/singleselectoption.d.ts +1 -1
- package/esm/models/components/textattribute.d.ts +1 -1
- package/esm/models/components/updatecartitem.d.ts +1 -1
- package/esm/models/components/upipayment.d.ts +1 -1
- package/esm/models/components/user.d.ts +2 -2
- package/esm/models/components/variant.d.ts +1 -1
- package/esm/models/components/variantdetail.d.ts +1 -1
- package/esm/models/components/variantoption.d.ts +1 -1
- package/esm/models/components/volumebasedpromotion.d.ts +1 -1
- package/esm/models/components/walletpayment.d.ts +1 -1
- package/esm/models/operations/createaddress.d.ts +1 -1
- package/esm/models/operations/getaddressdetail.d.ts +1 -1
- package/esm/models/operations/index.d.ts +0 -1
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +0 -1
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/listaddresses.d.ts +1 -1
- package/esm/models/operations/updateaddressdetail.d.ts +1 -1
- package/esm/models/operations/updatefulfillmentpreference.d.ts +32 -23
- package/esm/models/operations/updatefulfillmentpreference.d.ts.map +1 -1
- package/esm/models/operations/updatefulfillmentpreference.js +31 -41
- package/esm/models/operations/updatefulfillmentpreference.js.map +1 -1
- package/esm/sdk/auth.d.ts +10 -10
- package/esm/sdk/auth.js +10 -10
- package/esm/sdk/carts.d.ts +12 -21
- package/esm/sdk/carts.d.ts.map +1 -1
- package/esm/sdk/carts.js +12 -24
- package/esm/sdk/carts.js.map +1 -1
- package/esm/sdk/catalog.d.ts +11 -11
- package/esm/sdk/catalog.js +11 -11
- package/esm/sdk/common.d.ts +1 -1
- package/esm/sdk/common.js +1 -1
- package/esm/sdk/customers.d.ts +7 -7
- package/esm/sdk/customers.js +7 -7
- package/esm/sdk/orders.d.ts +7 -7
- package/esm/sdk/orders.js +7 -7
- package/esm/sdk/shipping.d.ts +3 -3
- package/esm/sdk/shipping.js +3 -3
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/authGenerateOtp.ts +1 -1
- package/src/funcs/authGetAnonymousToken.ts +1 -1
- package/src/funcs/authGetUserDetail.ts +1 -1
- package/src/funcs/authLoginWithEmail.ts +1 -1
- package/src/funcs/authLoginWithPhone.ts +1 -1
- package/src/funcs/authLoginWithWhatsapp.ts +1 -1
- 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/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 +4 -2
- 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 +2 -2
- package/src/models/components/anonymoususer.ts +1 -1
- package/src/models/components/appliedcoupon.ts +1 -1
- package/src/models/components/appliedpromotion.ts +1 -1
- package/src/models/components/banktransfer.ts +1 -1
- package/src/models/components/booleanattribute.ts +1 -1
- package/src/models/components/cardpayment.ts +1 -1
- package/src/models/components/cart.ts +1 -1
- package/src/models/components/cartbasedserviceabilitycheck.ts +1 -1
- package/src/models/components/cartitem.ts +1 -1
- package/src/models/components/category.ts +1 -1
- package/src/models/components/collectinstore.ts +1 -1
- package/src/models/components/collectinstorefulfillment.ts +1 -1
- package/src/models/components/colorattribute.ts +1 -1
- package/src/models/components/coloroption.ts +1 -1
- package/src/models/components/currency.ts +1 -1
- package/src/models/components/customeraddress.ts +1 -1
- package/src/models/components/customeraddressinput.ts +1 -1
- package/src/models/components/customerloyalty.ts +1 -1
- package/src/models/components/customerreadyforreview.ts +1 -1
- package/src/models/components/customerreview.ts +1 -1
- package/src/models/components/dateattribute.ts +1 -1
- package/src/models/components/deliveryfulfillment.ts +5 -5
- package/src/models/components/deliveryfulfillmentinput.ts +90 -0
- 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/fulfillmentitem.ts +1 -1
- package/src/models/components/fulfillmentiteminput.ts +1 -1
- package/src/models/components/fulfillmentpreference.ts +41 -13
- package/src/models/components/fulfillmentpreferenceinput.ts +121 -0
- package/src/models/components/generateotpwithemail.ts +1 -1
- package/src/models/components/generateotpwithphone.ts +1 -1
- package/src/models/components/index.ts +2 -0
- package/src/models/components/item.ts +1 -1
- package/src/models/components/juspaypaymentgatewayparams.ts +1 -1
- package/src/models/components/juspaypaymentinfo.ts +1 -1
- package/src/models/components/lotbatchdetail.ts +1 -1
- package/src/models/components/multiselectattribute.ts +1 -1
- package/src/models/components/netbankingpayment.ts +1 -1
- package/src/models/components/notificationchannelpreferences.ts +1 -1
- package/src/models/components/notificationpreferences.ts +1 -1
- package/src/models/components/numberattribute.ts +1 -1
- package/src/models/components/order.ts +1 -1
- package/src/models/components/orderdetail.ts +1 -1
- package/src/models/components/orderitem.ts +1 -1
- package/src/models/components/orderlist.ts +1 -1
- package/src/models/components/orderpayment.ts +1 -1
- package/src/models/components/ordershipment.ts +1 -1
- package/src/models/components/pagination.ts +1 -1
- package/src/models/components/partialcollectanddelivery.ts +5 -5
- package/src/models/components/partialcollectanddeliveryinput.ts +1 -1
- package/src/models/components/paymentgateway.ts +2 -2
- package/src/models/components/paymentgatewayparams.ts +1 -1
- package/src/models/components/payupaymentgatewayparams.ts +1 -1
- package/src/models/components/payupaymentinfo.ts +1 -1
- package/src/models/components/pincode.ts +1 -1
- package/src/models/components/pincodeserviceability.ts +1 -1
- package/src/models/components/product.ts +1 -1
- package/src/models/components/productattribute.ts +1 -1
- package/src/models/components/productbundleitem.ts +1 -1
- package/src/models/components/productcategory.ts +1 -1
- package/src/models/components/productdetail.ts +1 -1
- package/src/models/components/productimage.ts +1 -1
- package/src/models/components/productpricing.ts +1 -1
- package/src/models/components/productpromotion.ts +1 -1
- package/src/models/components/productreview.ts +1 -1
- package/src/models/components/productshipping.ts +1 -1
- package/src/models/components/productsubscription.ts +1 -1
- package/src/models/components/productvideo.ts +1 -1
- package/src/models/components/searchproduct.ts +1 -1
- package/src/models/components/seo.ts +1 -1
- package/src/models/components/shipmentitem.ts +1 -1
- package/src/models/components/singleselectattribute.ts +1 -1
- package/src/models/components/singleselectoption.ts +1 -1
- package/src/models/components/textattribute.ts +1 -1
- package/src/models/components/updatecartitem.ts +1 -1
- package/src/models/components/upipayment.ts +1 -1
- package/src/models/components/user.ts +2 -2
- package/src/models/components/variant.ts +1 -1
- package/src/models/components/variantdetail.ts +1 -1
- package/src/models/components/variantoption.ts +1 -1
- package/src/models/components/volumebasedpromotion.ts +1 -1
- package/src/models/components/walletpayment.ts +1 -1
- package/src/models/operations/createaddress.ts +1 -1
- package/src/models/operations/getaddressdetail.ts +1 -1
- package/src/models/operations/index.ts +0 -1
- package/src/models/operations/listaddresses.ts +1 -1
- package/src/models/operations/updateaddressdetail.ts +1 -1
- package/src/models/operations/updatefulfillmentpreference.ts +75 -90
- package/src/sdk/auth.ts +10 -10
- package/src/sdk/carts.ts +12 -32
- package/src/sdk/catalog.ts +11 -11
- package/src/sdk/common.ts +1 -1
- package/src/sdk/customers.ts +7 -7
- package/src/sdk/orders.ts +7 -7
- package/src/sdk/shipping.ts +3 -3
- package/esm/funcs/cartsAddShippingMethod.d.ts +0 -20
- package/esm/funcs/cartsAddShippingMethod.d.ts.map +0 -1
- package/esm/funcs/cartsAddShippingMethod.js +0 -90
- package/esm/funcs/cartsAddShippingMethod.js.map +0 -1
- package/esm/models/operations/updateshippingmethod.d.ts +0 -122
- package/esm/models/operations/updateshippingmethod.d.ts.map +0 -1
- package/esm/models/operations/updateshippingmethod.js +0 -134
- package/esm/models/operations/updateshippingmethod.js.map +0 -1
- package/src/funcs/cartsAddShippingMethod.ts +0 -187
- package/src/models/operations/updateshippingmethod.ts +0 -293
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { CeStorefrontCore } from "../core.js";
|
|
6
|
-
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
-
import * as M from "../lib/matchers.js";
|
|
8
|
-
import { compactMap } from "../lib/primitives.js";
|
|
9
|
-
import { safeParse } from "../lib/schemas.js";
|
|
10
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
-
import { pathToFunc } from "../lib/url.js";
|
|
13
|
-
import { CeStorefrontError } from "../models/errors/cestorefronterror.js";
|
|
14
|
-
import {
|
|
15
|
-
ConnectionError,
|
|
16
|
-
InvalidRequestError,
|
|
17
|
-
RequestAbortedError,
|
|
18
|
-
RequestTimeoutError,
|
|
19
|
-
UnexpectedClientError,
|
|
20
|
-
} from "../models/errors/httpclienterrors.js";
|
|
21
|
-
import * as errors from "../models/errors/index.js";
|
|
22
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
-
import * as operations from "../models/operations/index.js";
|
|
25
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
-
import { Result } from "../types/fp.js";
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Update shipping method
|
|
30
|
-
*
|
|
31
|
-
* @remarks
|
|
32
|
-
* Update preferred shipping method and courier.
|
|
33
|
-
*
|
|
34
|
-
* @see {@link https://llm-docs.commercengine.io/operations/update-shipping-method} - API reference for the update-shipping-method operation
|
|
35
|
-
*/
|
|
36
|
-
export function cartsAddShippingMethod(
|
|
37
|
-
client: CeStorefrontCore,
|
|
38
|
-
request: operations.UpdateShippingMethodRequest,
|
|
39
|
-
options?: RequestOptions,
|
|
40
|
-
): APIPromise<
|
|
41
|
-
Result<
|
|
42
|
-
operations.UpdateShippingMethodResponseBody,
|
|
43
|
-
| errors.BadRequest
|
|
44
|
-
| errors.Unauthorized
|
|
45
|
-
| errors.NotFound
|
|
46
|
-
| CeStorefrontError
|
|
47
|
-
| ResponseValidationError
|
|
48
|
-
| ConnectionError
|
|
49
|
-
| RequestAbortedError
|
|
50
|
-
| RequestTimeoutError
|
|
51
|
-
| InvalidRequestError
|
|
52
|
-
| UnexpectedClientError
|
|
53
|
-
| SDKValidationError
|
|
54
|
-
>
|
|
55
|
-
> {
|
|
56
|
-
return new APIPromise($do(
|
|
57
|
-
client,
|
|
58
|
-
request,
|
|
59
|
-
options,
|
|
60
|
-
));
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
async function $do(
|
|
64
|
-
client: CeStorefrontCore,
|
|
65
|
-
request: operations.UpdateShippingMethodRequest,
|
|
66
|
-
options?: RequestOptions,
|
|
67
|
-
): Promise<
|
|
68
|
-
[
|
|
69
|
-
Result<
|
|
70
|
-
operations.UpdateShippingMethodResponseBody,
|
|
71
|
-
| errors.BadRequest
|
|
72
|
-
| errors.Unauthorized
|
|
73
|
-
| errors.NotFound
|
|
74
|
-
| CeStorefrontError
|
|
75
|
-
| ResponseValidationError
|
|
76
|
-
| ConnectionError
|
|
77
|
-
| RequestAbortedError
|
|
78
|
-
| RequestTimeoutError
|
|
79
|
-
| InvalidRequestError
|
|
80
|
-
| UnexpectedClientError
|
|
81
|
-
| SDKValidationError
|
|
82
|
-
>,
|
|
83
|
-
APICall,
|
|
84
|
-
]
|
|
85
|
-
> {
|
|
86
|
-
const parsed = safeParse(
|
|
87
|
-
request,
|
|
88
|
-
(value) =>
|
|
89
|
-
operations.UpdateShippingMethodRequest$outboundSchema.parse(value),
|
|
90
|
-
"Input validation failed",
|
|
91
|
-
);
|
|
92
|
-
if (!parsed.ok) {
|
|
93
|
-
return [parsed, { status: "invalid" }];
|
|
94
|
-
}
|
|
95
|
-
const payload = parsed.value;
|
|
96
|
-
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
97
|
-
|
|
98
|
-
const pathParams = {
|
|
99
|
-
id: encodeSimple("id", payload.id, {
|
|
100
|
-
explode: false,
|
|
101
|
-
charEncoding: "percent",
|
|
102
|
-
}),
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
const path = pathToFunc("/carts/{id}/shipping-method")(pathParams);
|
|
106
|
-
|
|
107
|
-
const headers = new Headers(compactMap({
|
|
108
|
-
"Content-Type": "application/json",
|
|
109
|
-
Accept: "application/json",
|
|
110
|
-
}));
|
|
111
|
-
|
|
112
|
-
const secConfig = await extractSecurity(client._options.authorization);
|
|
113
|
-
const securityInput = secConfig == null ? {} : { authorization: secConfig };
|
|
114
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
115
|
-
|
|
116
|
-
const context = {
|
|
117
|
-
options: client._options,
|
|
118
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
119
|
-
operationID: "update-shipping-method",
|
|
120
|
-
oAuth2Scopes: null,
|
|
121
|
-
|
|
122
|
-
resolvedSecurity: requestSecurity,
|
|
123
|
-
|
|
124
|
-
securitySource: client._options.authorization,
|
|
125
|
-
retryConfig: options?.retries
|
|
126
|
-
|| client._options.retryConfig
|
|
127
|
-
|| { strategy: "none" },
|
|
128
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
const requestRes = client._createRequest(context, {
|
|
132
|
-
security: requestSecurity,
|
|
133
|
-
method: "POST",
|
|
134
|
-
baseURL: options?.serverURL,
|
|
135
|
-
path: path,
|
|
136
|
-
headers: headers,
|
|
137
|
-
body: body,
|
|
138
|
-
userAgent: client._options.userAgent,
|
|
139
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
140
|
-
}, options);
|
|
141
|
-
if (!requestRes.ok) {
|
|
142
|
-
return [requestRes, { status: "invalid" }];
|
|
143
|
-
}
|
|
144
|
-
const req = requestRes.value;
|
|
145
|
-
|
|
146
|
-
const doResult = await client._do(req, {
|
|
147
|
-
context,
|
|
148
|
-
errorCodes: ["400", "401", "404", "4XX", "5XX"],
|
|
149
|
-
retryConfig: context.retryConfig,
|
|
150
|
-
retryCodes: context.retryCodes,
|
|
151
|
-
});
|
|
152
|
-
if (!doResult.ok) {
|
|
153
|
-
return [doResult, { status: "request-error", request: req }];
|
|
154
|
-
}
|
|
155
|
-
const response = doResult.value;
|
|
156
|
-
|
|
157
|
-
const responseFields = {
|
|
158
|
-
HttpMeta: { Response: response, Request: req },
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
const [result] = await M.match<
|
|
162
|
-
operations.UpdateShippingMethodResponseBody,
|
|
163
|
-
| errors.BadRequest
|
|
164
|
-
| errors.Unauthorized
|
|
165
|
-
| errors.NotFound
|
|
166
|
-
| CeStorefrontError
|
|
167
|
-
| ResponseValidationError
|
|
168
|
-
| ConnectionError
|
|
169
|
-
| RequestAbortedError
|
|
170
|
-
| RequestTimeoutError
|
|
171
|
-
| InvalidRequestError
|
|
172
|
-
| UnexpectedClientError
|
|
173
|
-
| SDKValidationError
|
|
174
|
-
>(
|
|
175
|
-
M.json(200, operations.UpdateShippingMethodResponseBody$inboundSchema),
|
|
176
|
-
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
177
|
-
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
178
|
-
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
179
|
-
M.fail("4XX"),
|
|
180
|
-
M.fail("5XX"),
|
|
181
|
-
)(response, req, { extraFields: responseFields });
|
|
182
|
-
if (!result.ok) {
|
|
183
|
-
return [result, { status: "complete", request: req, response }];
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
return [result, { status: "complete", request: req, response }];
|
|
187
|
-
}
|
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import * as components from "../components/index.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type UpdateShippingMethodRequestBody = {
|
|
13
|
-
shippingProviderId: string;
|
|
14
|
-
courierCompanyId: string | null;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export type UpdateShippingMethodRequest = {
|
|
18
|
-
/**
|
|
19
|
-
* Cart ID
|
|
20
|
-
*/
|
|
21
|
-
id: string;
|
|
22
|
-
requestBody: UpdateShippingMethodRequestBody;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export type UpdateShippingMethodContent = {
|
|
26
|
-
/**
|
|
27
|
-
* 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.
|
|
28
|
-
*/
|
|
29
|
-
cart: components.Cart;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* OK
|
|
34
|
-
*/
|
|
35
|
-
export type UpdateShippingMethodResponseBody = {
|
|
36
|
-
message: string;
|
|
37
|
-
success: boolean;
|
|
38
|
-
content: UpdateShippingMethodContent;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
/** @internal */
|
|
42
|
-
export const UpdateShippingMethodRequestBody$inboundSchema: z.ZodType<
|
|
43
|
-
UpdateShippingMethodRequestBody,
|
|
44
|
-
z.ZodTypeDef,
|
|
45
|
-
unknown
|
|
46
|
-
> = z.object({
|
|
47
|
-
shipping_provider_id: z.string(),
|
|
48
|
-
courier_company_id: z.nullable(z.string()),
|
|
49
|
-
}).transform((v) => {
|
|
50
|
-
return remap$(v, {
|
|
51
|
-
"shipping_provider_id": "shippingProviderId",
|
|
52
|
-
"courier_company_id": "courierCompanyId",
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
/** @internal */
|
|
57
|
-
export type UpdateShippingMethodRequestBody$Outbound = {
|
|
58
|
-
shipping_provider_id: string;
|
|
59
|
-
courier_company_id: string | null;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export const UpdateShippingMethodRequestBody$outboundSchema: z.ZodType<
|
|
64
|
-
UpdateShippingMethodRequestBody$Outbound,
|
|
65
|
-
z.ZodTypeDef,
|
|
66
|
-
UpdateShippingMethodRequestBody
|
|
67
|
-
> = z.object({
|
|
68
|
-
shippingProviderId: z.string(),
|
|
69
|
-
courierCompanyId: z.nullable(z.string()),
|
|
70
|
-
}).transform((v) => {
|
|
71
|
-
return remap$(v, {
|
|
72
|
-
shippingProviderId: "shipping_provider_id",
|
|
73
|
-
courierCompanyId: "courier_company_id",
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* @internal
|
|
79
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
80
|
-
*/
|
|
81
|
-
export namespace UpdateShippingMethodRequestBody$ {
|
|
82
|
-
/** @deprecated use `UpdateShippingMethodRequestBody$inboundSchema` instead. */
|
|
83
|
-
export const inboundSchema = UpdateShippingMethodRequestBody$inboundSchema;
|
|
84
|
-
/** @deprecated use `UpdateShippingMethodRequestBody$outboundSchema` instead. */
|
|
85
|
-
export const outboundSchema = UpdateShippingMethodRequestBody$outboundSchema;
|
|
86
|
-
/** @deprecated use `UpdateShippingMethodRequestBody$Outbound` instead. */
|
|
87
|
-
export type Outbound = UpdateShippingMethodRequestBody$Outbound;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export function updateShippingMethodRequestBodyToJSON(
|
|
91
|
-
updateShippingMethodRequestBody: UpdateShippingMethodRequestBody,
|
|
92
|
-
): string {
|
|
93
|
-
return JSON.stringify(
|
|
94
|
-
UpdateShippingMethodRequestBody$outboundSchema.parse(
|
|
95
|
-
updateShippingMethodRequestBody,
|
|
96
|
-
),
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export function updateShippingMethodRequestBodyFromJSON(
|
|
101
|
-
jsonString: string,
|
|
102
|
-
): SafeParseResult<UpdateShippingMethodRequestBody, SDKValidationError> {
|
|
103
|
-
return safeParse(
|
|
104
|
-
jsonString,
|
|
105
|
-
(x) => UpdateShippingMethodRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
106
|
-
`Failed to parse 'UpdateShippingMethodRequestBody' from JSON`,
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/** @internal */
|
|
111
|
-
export const UpdateShippingMethodRequest$inboundSchema: z.ZodType<
|
|
112
|
-
UpdateShippingMethodRequest,
|
|
113
|
-
z.ZodTypeDef,
|
|
114
|
-
unknown
|
|
115
|
-
> = z.object({
|
|
116
|
-
id: z.string(),
|
|
117
|
-
RequestBody: z.lazy(() => UpdateShippingMethodRequestBody$inboundSchema),
|
|
118
|
-
}).transform((v) => {
|
|
119
|
-
return remap$(v, {
|
|
120
|
-
"RequestBody": "requestBody",
|
|
121
|
-
});
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
/** @internal */
|
|
125
|
-
export type UpdateShippingMethodRequest$Outbound = {
|
|
126
|
-
id: string;
|
|
127
|
-
RequestBody: UpdateShippingMethodRequestBody$Outbound;
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
/** @internal */
|
|
131
|
-
export const UpdateShippingMethodRequest$outboundSchema: z.ZodType<
|
|
132
|
-
UpdateShippingMethodRequest$Outbound,
|
|
133
|
-
z.ZodTypeDef,
|
|
134
|
-
UpdateShippingMethodRequest
|
|
135
|
-
> = z.object({
|
|
136
|
-
id: z.string(),
|
|
137
|
-
requestBody: z.lazy(() => UpdateShippingMethodRequestBody$outboundSchema),
|
|
138
|
-
}).transform((v) => {
|
|
139
|
-
return remap$(v, {
|
|
140
|
-
requestBody: "RequestBody",
|
|
141
|
-
});
|
|
142
|
-
});
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* @internal
|
|
146
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
147
|
-
*/
|
|
148
|
-
export namespace UpdateShippingMethodRequest$ {
|
|
149
|
-
/** @deprecated use `UpdateShippingMethodRequest$inboundSchema` instead. */
|
|
150
|
-
export const inboundSchema = UpdateShippingMethodRequest$inboundSchema;
|
|
151
|
-
/** @deprecated use `UpdateShippingMethodRequest$outboundSchema` instead. */
|
|
152
|
-
export const outboundSchema = UpdateShippingMethodRequest$outboundSchema;
|
|
153
|
-
/** @deprecated use `UpdateShippingMethodRequest$Outbound` instead. */
|
|
154
|
-
export type Outbound = UpdateShippingMethodRequest$Outbound;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export function updateShippingMethodRequestToJSON(
|
|
158
|
-
updateShippingMethodRequest: UpdateShippingMethodRequest,
|
|
159
|
-
): string {
|
|
160
|
-
return JSON.stringify(
|
|
161
|
-
UpdateShippingMethodRequest$outboundSchema.parse(
|
|
162
|
-
updateShippingMethodRequest,
|
|
163
|
-
),
|
|
164
|
-
);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export function updateShippingMethodRequestFromJSON(
|
|
168
|
-
jsonString: string,
|
|
169
|
-
): SafeParseResult<UpdateShippingMethodRequest, SDKValidationError> {
|
|
170
|
-
return safeParse(
|
|
171
|
-
jsonString,
|
|
172
|
-
(x) => UpdateShippingMethodRequest$inboundSchema.parse(JSON.parse(x)),
|
|
173
|
-
`Failed to parse 'UpdateShippingMethodRequest' from JSON`,
|
|
174
|
-
);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/** @internal */
|
|
178
|
-
export const UpdateShippingMethodContent$inboundSchema: z.ZodType<
|
|
179
|
-
UpdateShippingMethodContent,
|
|
180
|
-
z.ZodTypeDef,
|
|
181
|
-
unknown
|
|
182
|
-
> = z.object({
|
|
183
|
-
cart: components.Cart$inboundSchema,
|
|
184
|
-
});
|
|
185
|
-
|
|
186
|
-
/** @internal */
|
|
187
|
-
export type UpdateShippingMethodContent$Outbound = {
|
|
188
|
-
cart: components.Cart$Outbound;
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
/** @internal */
|
|
192
|
-
export const UpdateShippingMethodContent$outboundSchema: z.ZodType<
|
|
193
|
-
UpdateShippingMethodContent$Outbound,
|
|
194
|
-
z.ZodTypeDef,
|
|
195
|
-
UpdateShippingMethodContent
|
|
196
|
-
> = z.object({
|
|
197
|
-
cart: components.Cart$outboundSchema,
|
|
198
|
-
});
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* @internal
|
|
202
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
203
|
-
*/
|
|
204
|
-
export namespace UpdateShippingMethodContent$ {
|
|
205
|
-
/** @deprecated use `UpdateShippingMethodContent$inboundSchema` instead. */
|
|
206
|
-
export const inboundSchema = UpdateShippingMethodContent$inboundSchema;
|
|
207
|
-
/** @deprecated use `UpdateShippingMethodContent$outboundSchema` instead. */
|
|
208
|
-
export const outboundSchema = UpdateShippingMethodContent$outboundSchema;
|
|
209
|
-
/** @deprecated use `UpdateShippingMethodContent$Outbound` instead. */
|
|
210
|
-
export type Outbound = UpdateShippingMethodContent$Outbound;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export function updateShippingMethodContentToJSON(
|
|
214
|
-
updateShippingMethodContent: UpdateShippingMethodContent,
|
|
215
|
-
): string {
|
|
216
|
-
return JSON.stringify(
|
|
217
|
-
UpdateShippingMethodContent$outboundSchema.parse(
|
|
218
|
-
updateShippingMethodContent,
|
|
219
|
-
),
|
|
220
|
-
);
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
export function updateShippingMethodContentFromJSON(
|
|
224
|
-
jsonString: string,
|
|
225
|
-
): SafeParseResult<UpdateShippingMethodContent, SDKValidationError> {
|
|
226
|
-
return safeParse(
|
|
227
|
-
jsonString,
|
|
228
|
-
(x) => UpdateShippingMethodContent$inboundSchema.parse(JSON.parse(x)),
|
|
229
|
-
`Failed to parse 'UpdateShippingMethodContent' from JSON`,
|
|
230
|
-
);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/** @internal */
|
|
234
|
-
export const UpdateShippingMethodResponseBody$inboundSchema: z.ZodType<
|
|
235
|
-
UpdateShippingMethodResponseBody,
|
|
236
|
-
z.ZodTypeDef,
|
|
237
|
-
unknown
|
|
238
|
-
> = z.object({
|
|
239
|
-
message: z.string(),
|
|
240
|
-
success: z.boolean(),
|
|
241
|
-
content: z.lazy(() => UpdateShippingMethodContent$inboundSchema),
|
|
242
|
-
});
|
|
243
|
-
|
|
244
|
-
/** @internal */
|
|
245
|
-
export type UpdateShippingMethodResponseBody$Outbound = {
|
|
246
|
-
message: string;
|
|
247
|
-
success: boolean;
|
|
248
|
-
content: UpdateShippingMethodContent$Outbound;
|
|
249
|
-
};
|
|
250
|
-
|
|
251
|
-
/** @internal */
|
|
252
|
-
export const UpdateShippingMethodResponseBody$outboundSchema: z.ZodType<
|
|
253
|
-
UpdateShippingMethodResponseBody$Outbound,
|
|
254
|
-
z.ZodTypeDef,
|
|
255
|
-
UpdateShippingMethodResponseBody
|
|
256
|
-
> = z.object({
|
|
257
|
-
message: z.string(),
|
|
258
|
-
success: z.boolean(),
|
|
259
|
-
content: z.lazy(() => UpdateShippingMethodContent$outboundSchema),
|
|
260
|
-
});
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* @internal
|
|
264
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
265
|
-
*/
|
|
266
|
-
export namespace UpdateShippingMethodResponseBody$ {
|
|
267
|
-
/** @deprecated use `UpdateShippingMethodResponseBody$inboundSchema` instead. */
|
|
268
|
-
export const inboundSchema = UpdateShippingMethodResponseBody$inboundSchema;
|
|
269
|
-
/** @deprecated use `UpdateShippingMethodResponseBody$outboundSchema` instead. */
|
|
270
|
-
export const outboundSchema = UpdateShippingMethodResponseBody$outboundSchema;
|
|
271
|
-
/** @deprecated use `UpdateShippingMethodResponseBody$Outbound` instead. */
|
|
272
|
-
export type Outbound = UpdateShippingMethodResponseBody$Outbound;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
export function updateShippingMethodResponseBodyToJSON(
|
|
276
|
-
updateShippingMethodResponseBody: UpdateShippingMethodResponseBody,
|
|
277
|
-
): string {
|
|
278
|
-
return JSON.stringify(
|
|
279
|
-
UpdateShippingMethodResponseBody$outboundSchema.parse(
|
|
280
|
-
updateShippingMethodResponseBody,
|
|
281
|
-
),
|
|
282
|
-
);
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
export function updateShippingMethodResponseBodyFromJSON(
|
|
286
|
-
jsonString: string,
|
|
287
|
-
): SafeParseResult<UpdateShippingMethodResponseBody, SDKValidationError> {
|
|
288
|
-
return safeParse(
|
|
289
|
-
jsonString,
|
|
290
|
-
(x) => UpdateShippingMethodResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
291
|
-
`Failed to parse 'UpdateShippingMethodResponseBody' from JSON`,
|
|
292
|
-
);
|
|
293
|
-
}
|