ce-storefront 0.17.0 → 0.18.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 +3 -3
- package/docs/sdks/customers/README.md +85 -0
- package/docs/sdks/shipping/README.md +0 -82
- package/esm/funcs/customersListSavedPaymentMethods.d.ts +26 -0
- package/esm/funcs/customersListSavedPaymentMethods.d.ts.map +1 -0
- package/esm/funcs/{shippingShippingMethods.js → customersListSavedPaymentMethods.js} +25 -15
- package/esm/funcs/customersListSavedPaymentMethods.js.map +1 -0
- package/esm/lib/base64.d.ts +1 -1
- package/esm/lib/base64.d.ts.map +1 -1
- package/esm/lib/base64.js +1 -1
- package/esm/lib/base64.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/schemas.d.ts +1 -1
- package/esm/lib/schemas.d.ts.map +1 -1
- package/esm/lib/schemas.js +1 -1
- package/esm/lib/schemas.js.map +1 -1
- package/esm/models/components/anonymoususer.d.ts +1 -1
- package/esm/models/components/anonymoususer.d.ts.map +1 -1
- package/esm/models/components/anonymoususer.js +1 -1
- package/esm/models/components/anonymoususer.js.map +1 -1
- package/esm/models/components/appliedcoupon.d.ts +1 -1
- package/esm/models/components/appliedcoupon.d.ts.map +1 -1
- package/esm/models/components/appliedcoupon.js +1 -1
- package/esm/models/components/appliedcoupon.js.map +1 -1
- package/esm/models/components/appliedpromotion.d.ts +1 -1
- package/esm/models/components/appliedpromotion.d.ts.map +1 -1
- package/esm/models/components/appliedpromotion.js +1 -1
- package/esm/models/components/appliedpromotion.js.map +1 -1
- package/esm/models/components/associatedoption.d.ts +1 -1
- package/esm/models/components/associatedoption.d.ts.map +1 -1
- package/esm/models/components/associatedoption.js +1 -1
- package/esm/models/components/associatedoption.js.map +1 -1
- package/esm/models/components/banktransfer.d.ts +1 -1
- package/esm/models/components/banktransfer.d.ts.map +1 -1
- package/esm/models/components/banktransfer.js +1 -1
- package/esm/models/components/banktransfer.js.map +1 -1
- package/esm/models/components/booleanattribute.d.ts +1 -1
- package/esm/models/components/booleanattribute.d.ts.map +1 -1
- package/esm/models/components/booleanattribute.js +1 -1
- package/esm/models/components/booleanattribute.js.map +1 -1
- package/esm/models/components/cardpayment.d.ts +1 -1
- package/esm/models/components/cardpayment.d.ts.map +1 -1
- package/esm/models/components/cardpayment.js +1 -1
- package/esm/models/components/cardpayment.js.map +1 -1
- package/esm/models/components/cart.d.ts +1 -1
- package/esm/models/components/cart.d.ts.map +1 -1
- package/esm/models/components/cart.js +1 -1
- package/esm/models/components/cart.js.map +1 -1
- package/esm/models/components/cartbasedserviceabilitycheck.d.ts +1 -1
- package/esm/models/components/cartbasedserviceabilitycheck.d.ts.map +1 -1
- package/esm/models/components/cartbasedserviceabilitycheck.js +1 -1
- package/esm/models/components/cartbasedserviceabilitycheck.js.map +1 -1
- package/esm/models/components/cartitem.d.ts +1 -1
- package/esm/models/components/cartitem.d.ts.map +1 -1
- package/esm/models/components/cartitem.js +1 -1
- package/esm/models/components/cartitem.js.map +1 -1
- package/esm/models/components/category.d.ts +1 -1
- package/esm/models/components/category.d.ts.map +1 -1
- package/esm/models/components/category.js +1 -1
- package/esm/models/components/category.js.map +1 -1
- package/esm/models/components/collectinstore.d.ts +1 -1
- package/esm/models/components/collectinstore.d.ts.map +1 -1
- package/esm/models/components/collectinstore.js +1 -1
- package/esm/models/components/collectinstore.js.map +1 -1
- package/esm/models/components/collectinstorefulfillment.d.ts +1 -1
- package/esm/models/components/collectinstorefulfillment.d.ts.map +1 -1
- package/esm/models/components/collectinstorefulfillment.js +2 -2
- package/esm/models/components/collectinstorefulfillment.js.map +1 -1
- package/esm/models/components/collectinstorefulfillmentinput.d.ts +1 -1
- package/esm/models/components/collectinstorefulfillmentinput.d.ts.map +1 -1
- package/esm/models/components/collectinstorefulfillmentinput.js +2 -2
- package/esm/models/components/collectinstorefulfillmentinput.js.map +1 -1
- package/esm/models/components/colorattribute.d.ts +1 -1
- package/esm/models/components/colorattribute.d.ts.map +1 -1
- package/esm/models/components/colorattribute.js +1 -1
- package/esm/models/components/colorattribute.js.map +1 -1
- package/esm/models/components/coloroption.d.ts +1 -1
- package/esm/models/components/coloroption.d.ts.map +1 -1
- package/esm/models/components/coloroption.js +2 -2
- package/esm/models/components/coloroption.js.map +1 -1
- package/esm/models/components/currency.d.ts +1 -1
- package/esm/models/components/currency.d.ts.map +1 -1
- package/esm/models/components/currency.js +1 -1
- package/esm/models/components/currency.js.map +1 -1
- package/esm/models/components/customeraddress.d.ts +1 -1
- package/esm/models/components/customeraddress.d.ts.map +1 -1
- package/esm/models/components/customeraddress.js +2 -2
- package/esm/models/components/customeraddress.js.map +1 -1
- package/esm/models/components/customeraddressinput.d.ts +1 -1
- package/esm/models/components/customeraddressinput.d.ts.map +1 -1
- package/esm/models/components/customeraddressinput.js +2 -2
- package/esm/models/components/customeraddressinput.js.map +1 -1
- package/esm/models/components/customerloyalty.d.ts +1 -1
- package/esm/models/components/customerloyalty.d.ts.map +1 -1
- package/esm/models/components/customerloyalty.js +1 -1
- package/esm/models/components/customerloyalty.js.map +1 -1
- package/esm/models/components/customerreadyforreview.d.ts +1 -1
- package/esm/models/components/customerreadyforreview.d.ts.map +1 -1
- package/esm/models/components/customerreadyforreview.js +1 -1
- package/esm/models/components/customerreadyforreview.js.map +1 -1
- package/esm/models/components/customerreview.d.ts +1 -1
- package/esm/models/components/customerreview.d.ts.map +1 -1
- package/esm/models/components/customerreview.js +1 -1
- package/esm/models/components/customerreview.js.map +1 -1
- package/esm/models/components/dateattribute.d.ts +1 -1
- package/esm/models/components/dateattribute.d.ts.map +1 -1
- package/esm/models/components/dateattribute.js +1 -1
- package/esm/models/components/dateattribute.js.map +1 -1
- package/esm/models/components/deliveryfulfillment.d.ts +1 -1
- 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 +1 -1
- package/esm/models/components/deliveryfulfillmentinput.d.ts.map +1 -1
- package/esm/models/components/deliveryfulfillmentinput.js +2 -2
- package/esm/models/components/deliveryfulfillmentinput.js.map +1 -1
- package/esm/models/components/discountbasedpromotion.d.ts +1 -1
- package/esm/models/components/discountbasedpromotion.d.ts.map +1 -1
- package/esm/models/components/discountbasedpromotion.js +2 -2
- package/esm/models/components/discountbasedpromotion.js.map +1 -1
- package/esm/models/components/fixedpricepromotion.d.ts +1 -1
- package/esm/models/components/fixedpricepromotion.d.ts.map +1 -1
- package/esm/models/components/fixedpricepromotion.js +2 -2
- package/esm/models/components/fixedpricepromotion.js.map +1 -1
- package/esm/models/components/freegoodspromotion.d.ts +1 -1
- package/esm/models/components/freegoodspromotion.d.ts.map +1 -1
- package/esm/models/components/freegoodspromotion.js +2 -2
- package/esm/models/components/freegoodspromotion.js.map +1 -1
- package/esm/models/components/fulfillmentitem.d.ts +1 -1
- package/esm/models/components/fulfillmentitem.d.ts.map +1 -1
- package/esm/models/components/fulfillmentitem.js +1 -1
- package/esm/models/components/fulfillmentitem.js.map +1 -1
- package/esm/models/components/fulfillmentiteminput.d.ts +1 -1
- package/esm/models/components/fulfillmentiteminput.d.ts.map +1 -1
- package/esm/models/components/fulfillmentiteminput.js +1 -1
- package/esm/models/components/fulfillmentiteminput.js.map +1 -1
- package/esm/models/components/fulfillmentpreference.d.ts +1 -1
- package/esm/models/components/fulfillmentpreference.d.ts.map +1 -1
- package/esm/models/components/fulfillmentpreference.js +1 -1
- package/esm/models/components/fulfillmentpreference.js.map +1 -1
- package/esm/models/components/fulfillmentpreferenceinput.d.ts +1 -1
- package/esm/models/components/fulfillmentpreferenceinput.d.ts.map +1 -1
- package/esm/models/components/fulfillmentpreferenceinput.js +1 -1
- package/esm/models/components/fulfillmentpreferenceinput.js.map +1 -1
- package/esm/models/components/generateotpwithemail.d.ts +1 -1
- package/esm/models/components/generateotpwithemail.d.ts.map +1 -1
- package/esm/models/components/generateotpwithemail.js +2 -2
- package/esm/models/components/generateotpwithemail.js.map +1 -1
- package/esm/models/components/generateotpwithphone.d.ts +1 -1
- package/esm/models/components/generateotpwithphone.d.ts.map +1 -1
- package/esm/models/components/generateotpwithphone.js +1 -1
- package/esm/models/components/generateotpwithphone.js.map +1 -1
- package/esm/models/components/index.d.ts +1 -0
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +1 -0
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/item.d.ts +1 -1
- package/esm/models/components/item.d.ts.map +1 -1
- package/esm/models/components/item.js +1 -1
- package/esm/models/components/item.js.map +1 -1
- package/esm/models/components/juspaypaymentgatewayparams.d.ts +1 -1
- package/esm/models/components/juspaypaymentgatewayparams.d.ts.map +1 -1
- package/esm/models/components/juspaypaymentgatewayparams.js +1 -1
- package/esm/models/components/juspaypaymentgatewayparams.js.map +1 -1
- package/esm/models/components/juspaypaymentinfo.d.ts +1 -1
- package/esm/models/components/juspaypaymentinfo.d.ts.map +1 -1
- package/esm/models/components/juspaypaymentinfo.js +3 -3
- package/esm/models/components/juspaypaymentinfo.js.map +1 -1
- package/esm/models/components/lotbatchdetail.d.ts +1 -1
- package/esm/models/components/lotbatchdetail.d.ts.map +1 -1
- package/esm/models/components/lotbatchdetail.js +1 -1
- package/esm/models/components/lotbatchdetail.js.map +1 -1
- package/esm/models/components/multiselectattribute.d.ts +1 -1
- package/esm/models/components/multiselectattribute.d.ts.map +1 -1
- package/esm/models/components/multiselectattribute.js +1 -1
- package/esm/models/components/multiselectattribute.js.map +1 -1
- package/esm/models/components/netbankingpayment.d.ts +1 -1
- package/esm/models/components/netbankingpayment.d.ts.map +1 -1
- package/esm/models/components/netbankingpayment.js +1 -1
- package/esm/models/components/netbankingpayment.js.map +1 -1
- package/esm/models/components/notificationchannelpreferences.d.ts +1 -1
- package/esm/models/components/notificationchannelpreferences.d.ts.map +1 -1
- package/esm/models/components/notificationchannelpreferences.js +1 -1
- package/esm/models/components/notificationchannelpreferences.js.map +1 -1
- package/esm/models/components/notificationpreferences.d.ts +1 -1
- package/esm/models/components/notificationpreferences.d.ts.map +1 -1
- package/esm/models/components/notificationpreferences.js +1 -1
- package/esm/models/components/notificationpreferences.js.map +1 -1
- package/esm/models/components/numberattribute.d.ts +1 -1
- package/esm/models/components/numberattribute.d.ts.map +1 -1
- package/esm/models/components/numberattribute.js +1 -1
- package/esm/models/components/numberattribute.js.map +1 -1
- package/esm/models/components/order.d.ts +1 -1
- package/esm/models/components/order.d.ts.map +1 -1
- package/esm/models/components/order.js +1 -1
- package/esm/models/components/order.js.map +1 -1
- package/esm/models/components/orderdetail.d.ts +1 -1
- package/esm/models/components/orderdetail.d.ts.map +1 -1
- package/esm/models/components/orderdetail.js +1 -1
- package/esm/models/components/orderdetail.js.map +1 -1
- package/esm/models/components/orderitem.d.ts +1 -1
- package/esm/models/components/orderitem.d.ts.map +1 -1
- package/esm/models/components/orderitem.js +1 -1
- package/esm/models/components/orderitem.js.map +1 -1
- package/esm/models/components/orderlist.d.ts +1 -1
- package/esm/models/components/orderlist.d.ts.map +1 -1
- package/esm/models/components/orderlist.js +1 -1
- package/esm/models/components/orderlist.js.map +1 -1
- package/esm/models/components/orderpayment.d.ts +1 -1
- package/esm/models/components/orderpayment.d.ts.map +1 -1
- package/esm/models/components/orderpayment.js +1 -1
- package/esm/models/components/orderpayment.js.map +1 -1
- package/esm/models/components/ordershipment.d.ts +1 -1
- package/esm/models/components/ordershipment.d.ts.map +1 -1
- package/esm/models/components/ordershipment.js +1 -1
- package/esm/models/components/ordershipment.js.map +1 -1
- package/esm/models/components/pagination.d.ts +1 -1
- package/esm/models/components/pagination.d.ts.map +1 -1
- package/esm/models/components/pagination.js +1 -1
- package/esm/models/components/pagination.js.map +1 -1
- package/esm/models/components/partialcollectanddelivery.d.ts +1 -1
- 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/partialcollectanddeliveryinput.d.ts.map +1 -1
- package/esm/models/components/partialcollectanddeliveryinput.js +2 -2
- package/esm/models/components/partialcollectanddeliveryinput.js.map +1 -1
- package/esm/models/components/paymentgateway.d.ts +1 -1
- package/esm/models/components/paymentgateway.d.ts.map +1 -1
- package/esm/models/components/paymentgateway.js +1 -1
- package/esm/models/components/paymentgateway.js.map +1 -1
- package/esm/models/components/paymentgatewayparams.d.ts +1 -1
- package/esm/models/components/paymentgatewayparams.d.ts.map +1 -1
- package/esm/models/components/paymentgatewayparams.js +1 -1
- package/esm/models/components/paymentgatewayparams.js.map +1 -1
- package/esm/models/components/payupaymentgatewayparams.d.ts +1 -1
- package/esm/models/components/payupaymentgatewayparams.d.ts.map +1 -1
- package/esm/models/components/payupaymentgatewayparams.js +1 -1
- package/esm/models/components/payupaymentgatewayparams.js.map +1 -1
- package/esm/models/components/payupaymentinfo.d.ts +1 -1
- package/esm/models/components/payupaymentinfo.d.ts.map +1 -1
- package/esm/models/components/payupaymentinfo.js +4 -4
- package/esm/models/components/payupaymentinfo.js.map +1 -1
- package/esm/models/components/pincode.d.ts +1 -1
- package/esm/models/components/pincode.d.ts.map +1 -1
- package/esm/models/components/pincode.js +1 -1
- package/esm/models/components/pincode.js.map +1 -1
- package/esm/models/components/pincodeserviceability.d.ts +1 -1
- package/esm/models/components/pincodeserviceability.d.ts.map +1 -1
- package/esm/models/components/pincodeserviceability.js +1 -1
- package/esm/models/components/pincodeserviceability.js.map +1 -1
- package/esm/models/components/product.d.ts +1 -1
- package/esm/models/components/product.d.ts.map +1 -1
- package/esm/models/components/product.js +1 -1
- package/esm/models/components/product.js.map +1 -1
- package/esm/models/components/productattribute.d.ts +1 -1
- package/esm/models/components/productattribute.d.ts.map +1 -1
- package/esm/models/components/productattribute.js +1 -1
- package/esm/models/components/productattribute.js.map +1 -1
- package/esm/models/components/productbundleitem.d.ts +1 -1
- package/esm/models/components/productbundleitem.d.ts.map +1 -1
- package/esm/models/components/productbundleitem.js +1 -1
- package/esm/models/components/productbundleitem.js.map +1 -1
- package/esm/models/components/productcategory.d.ts +1 -1
- package/esm/models/components/productcategory.d.ts.map +1 -1
- package/esm/models/components/productcategory.js +1 -1
- package/esm/models/components/productcategory.js.map +1 -1
- package/esm/models/components/productdetail.d.ts +1 -1
- package/esm/models/components/productdetail.d.ts.map +1 -1
- package/esm/models/components/productdetail.js +1 -1
- package/esm/models/components/productdetail.js.map +1 -1
- package/esm/models/components/productimage.d.ts +1 -1
- package/esm/models/components/productimage.d.ts.map +1 -1
- package/esm/models/components/productimage.js +1 -1
- package/esm/models/components/productimage.js.map +1 -1
- package/esm/models/components/productpricing.d.ts +1 -1
- package/esm/models/components/productpricing.d.ts.map +1 -1
- package/esm/models/components/productpricing.js +1 -1
- package/esm/models/components/productpricing.js.map +1 -1
- package/esm/models/components/productpromotion.d.ts +1 -1
- package/esm/models/components/productpromotion.d.ts.map +1 -1
- package/esm/models/components/productpromotion.js +1 -1
- package/esm/models/components/productpromotion.js.map +1 -1
- package/esm/models/components/productreview.d.ts +1 -1
- package/esm/models/components/productreview.d.ts.map +1 -1
- package/esm/models/components/productreview.js +1 -1
- package/esm/models/components/productreview.js.map +1 -1
- package/esm/models/components/productshipping.d.ts +1 -1
- package/esm/models/components/productshipping.d.ts.map +1 -1
- package/esm/models/components/productshipping.js +1 -1
- package/esm/models/components/productshipping.js.map +1 -1
- package/esm/models/components/productsubscription.d.ts +1 -1
- package/esm/models/components/productsubscription.d.ts.map +1 -1
- package/esm/models/components/productsubscription.js +1 -1
- package/esm/models/components/productsubscription.js.map +1 -1
- package/esm/models/components/productvideo.d.ts +1 -1
- package/esm/models/components/productvideo.d.ts.map +1 -1
- package/esm/models/components/productvideo.js +1 -1
- package/esm/models/components/productvideo.js.map +1 -1
- package/esm/models/components/savedpaymentmethod.d.ts +260 -0
- package/esm/models/components/savedpaymentmethod.d.ts.map +1 -0
- package/esm/models/components/savedpaymentmethod.js +385 -0
- package/esm/models/components/savedpaymentmethod.js.map +1 -0
- package/esm/models/components/searchproduct.d.ts +1 -1
- package/esm/models/components/searchproduct.d.ts.map +1 -1
- package/esm/models/components/searchproduct.js +1 -1
- package/esm/models/components/searchproduct.js.map +1 -1
- package/esm/models/components/security.d.ts +1 -1
- package/esm/models/components/security.d.ts.map +1 -1
- package/esm/models/components/security.js +1 -1
- package/esm/models/components/security.js.map +1 -1
- package/esm/models/components/seo.d.ts +1 -1
- package/esm/models/components/seo.d.ts.map +1 -1
- package/esm/models/components/seo.js +1 -1
- package/esm/models/components/seo.js.map +1 -1
- package/esm/models/components/shipmentitem.d.ts +1 -1
- package/esm/models/components/shipmentitem.d.ts.map +1 -1
- package/esm/models/components/shipmentitem.js +1 -1
- package/esm/models/components/shipmentitem.js.map +1 -1
- package/esm/models/components/singleselectattribute.d.ts +1 -1
- package/esm/models/components/singleselectattribute.d.ts.map +1 -1
- package/esm/models/components/singleselectattribute.js +1 -1
- package/esm/models/components/singleselectattribute.js.map +1 -1
- package/esm/models/components/singleselectoption.d.ts +1 -1
- package/esm/models/components/singleselectoption.d.ts.map +1 -1
- package/esm/models/components/singleselectoption.js +2 -2
- package/esm/models/components/singleselectoption.js.map +1 -1
- package/esm/models/components/textattribute.d.ts +1 -1
- package/esm/models/components/textattribute.d.ts.map +1 -1
- package/esm/models/components/textattribute.js +1 -1
- package/esm/models/components/textattribute.js.map +1 -1
- package/esm/models/components/updatecartitem.d.ts +1 -1
- package/esm/models/components/updatecartitem.d.ts.map +1 -1
- package/esm/models/components/updatecartitem.js +1 -1
- package/esm/models/components/updatecartitem.js.map +1 -1
- package/esm/models/components/upipayment.d.ts +1 -1
- package/esm/models/components/upipayment.d.ts.map +1 -1
- package/esm/models/components/upipayment.js +1 -1
- package/esm/models/components/upipayment.js.map +1 -1
- package/esm/models/components/user.d.ts +1 -1
- package/esm/models/components/user.d.ts.map +1 -1
- package/esm/models/components/user.js +1 -1
- package/esm/models/components/user.js.map +1 -1
- package/esm/models/components/variant.d.ts +1 -1
- package/esm/models/components/variant.d.ts.map +1 -1
- package/esm/models/components/variant.js +1 -1
- package/esm/models/components/variant.js.map +1 -1
- package/esm/models/components/variantdetail.d.ts +1 -1
- package/esm/models/components/variantdetail.d.ts.map +1 -1
- package/esm/models/components/variantdetail.js +1 -1
- package/esm/models/components/variantdetail.js.map +1 -1
- package/esm/models/components/variantoption.d.ts +1 -1
- package/esm/models/components/variantoption.d.ts.map +1 -1
- package/esm/models/components/variantoption.js +1 -1
- package/esm/models/components/variantoption.js.map +1 -1
- package/esm/models/components/volumebasedpromotion.d.ts +1 -1
- package/esm/models/components/volumebasedpromotion.d.ts.map +1 -1
- package/esm/models/components/volumebasedpromotion.js +2 -2
- package/esm/models/components/volumebasedpromotion.js.map +1 -1
- package/esm/models/components/walletpayment.d.ts +1 -1
- package/esm/models/components/walletpayment.d.ts.map +1 -1
- package/esm/models/components/walletpayment.js +1 -1
- package/esm/models/components/walletpayment.js.map +1 -1
- package/esm/models/errors/badrequest.d.ts +1 -1
- package/esm/models/errors/badrequest.d.ts.map +1 -1
- package/esm/models/errors/badrequest.js +1 -1
- package/esm/models/errors/badrequest.js.map +1 -1
- package/esm/models/errors/notfound.d.ts +1 -1
- package/esm/models/errors/notfound.d.ts.map +1 -1
- package/esm/models/errors/notfound.js +1 -1
- package/esm/models/errors/notfound.js.map +1 -1
- package/esm/models/errors/responsevalidationerror.js +1 -1
- package/esm/models/errors/responsevalidationerror.js.map +1 -1
- package/esm/models/errors/sdkvalidationerror.d.ts +1 -1
- package/esm/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/esm/models/errors/sdkvalidationerror.js +1 -1
- package/esm/models/errors/sdkvalidationerror.js.map +1 -1
- package/esm/models/errors/unauthorized.d.ts +3 -3
- package/esm/models/errors/unauthorized.d.ts.map +1 -1
- package/esm/models/errors/unauthorized.js +1 -1
- package/esm/models/errors/unauthorized.js.map +1 -1
- package/esm/models/operations/applycoupon.d.ts +1 -1
- package/esm/models/operations/applycoupon.d.ts.map +1 -1
- package/esm/models/operations/applycoupon.js +1 -1
- package/esm/models/operations/applycoupon.js.map +1 -1
- package/esm/models/operations/cancelorder.d.ts +1 -1
- package/esm/models/operations/cancelorder.d.ts.map +1 -1
- package/esm/models/operations/cancelorder.js +1 -1
- package/esm/models/operations/cancelorder.js.map +1 -1
- package/esm/models/operations/checkpincodeserviceability.d.ts +1 -1
- package/esm/models/operations/checkpincodeserviceability.d.ts.map +1 -1
- package/esm/models/operations/checkpincodeserviceability.js +1 -1
- package/esm/models/operations/checkpincodeserviceability.js.map +1 -1
- package/esm/models/operations/createaddress.d.ts +1 -1
- package/esm/models/operations/createaddress.d.ts.map +1 -1
- package/esm/models/operations/createaddress.js +2 -2
- package/esm/models/operations/createaddress.js.map +1 -1
- package/esm/models/operations/createcart.d.ts +1 -1
- package/esm/models/operations/createcart.d.ts.map +1 -1
- package/esm/models/operations/createcart.js +1 -1
- package/esm/models/operations/createcart.js.map +1 -1
- package/esm/models/operations/createcartaddress.d.ts +1 -1
- package/esm/models/operations/createcartaddress.d.ts.map +1 -1
- package/esm/models/operations/createcartaddress.js +1 -1
- package/esm/models/operations/createcartaddress.js.map +1 -1
- package/esm/models/operations/createorder.d.ts +1 -1
- package/esm/models/operations/createorder.d.ts.map +1 -1
- package/esm/models/operations/createorder.js +1 -1
- package/esm/models/operations/createorder.js.map +1 -1
- package/esm/models/operations/deleteaddress.d.ts +1 -1
- package/esm/models/operations/deleteaddress.d.ts.map +1 -1
- package/esm/models/operations/deleteaddress.js +1 -1
- package/esm/models/operations/deleteaddress.js.map +1 -1
- package/esm/models/operations/deletecart.d.ts +1 -1
- package/esm/models/operations/deletecart.d.ts.map +1 -1
- package/esm/models/operations/deletecart.js +1 -1
- package/esm/models/operations/deletecart.js.map +1 -1
- package/esm/models/operations/deleteusercart.d.ts +1 -1
- package/esm/models/operations/deleteusercart.d.ts.map +1 -1
- package/esm/models/operations/deleteusercart.js +1 -1
- package/esm/models/operations/deleteusercart.js.map +1 -1
- package/esm/models/operations/generateotp.d.ts +1 -1
- package/esm/models/operations/generateotp.d.ts.map +1 -1
- package/esm/models/operations/generateotp.js +1 -1
- package/esm/models/operations/generateotp.js.map +1 -1
- package/esm/models/operations/getaddressdetail.d.ts +1 -1
- package/esm/models/operations/getaddressdetail.d.ts.map +1 -1
- package/esm/models/operations/getaddressdetail.js +2 -2
- package/esm/models/operations/getaddressdetail.js.map +1 -1
- package/esm/models/operations/getanonymoustoken.d.ts +1 -1
- package/esm/models/operations/getanonymoustoken.d.ts.map +1 -1
- package/esm/models/operations/getanonymoustoken.js +1 -1
- package/esm/models/operations/getanonymoustoken.js.map +1 -1
- package/esm/models/operations/getcart.d.ts +1 -1
- package/esm/models/operations/getcart.d.ts.map +1 -1
- package/esm/models/operations/getcart.js +1 -1
- package/esm/models/operations/getcart.js.map +1 -1
- package/esm/models/operations/getfulfillmentoptions.d.ts +1 -1
- package/esm/models/operations/getfulfillmentoptions.d.ts.map +1 -1
- package/esm/models/operations/getfulfillmentoptions.js +1 -1
- package/esm/models/operations/getfulfillmentoptions.js.map +1 -1
- package/esm/models/operations/getloyaltydetails.d.ts +1 -1
- package/esm/models/operations/getloyaltydetails.d.ts.map +1 -1
- package/esm/models/operations/getloyaltydetails.js +1 -1
- package/esm/models/operations/getloyaltydetails.js.map +1 -1
- package/esm/models/operations/getorderdetail.d.ts +1 -1
- package/esm/models/operations/getorderdetail.d.ts.map +1 -1
- package/esm/models/operations/getorderdetail.js +1 -1
- package/esm/models/operations/getorderdetail.js.map +1 -1
- package/esm/models/operations/getpaymentstatus.d.ts +1 -1
- package/esm/models/operations/getpaymentstatus.d.ts.map +1 -1
- package/esm/models/operations/getpaymentstatus.js +1 -1
- package/esm/models/operations/getpaymentstatus.js.map +1 -1
- package/esm/models/operations/getproductdetail.d.ts +1 -1
- package/esm/models/operations/getproductdetail.d.ts.map +1 -1
- package/esm/models/operations/getproductdetail.js +1 -1
- package/esm/models/operations/getproductdetail.js.map +1 -1
- package/esm/models/operations/getusercart.d.ts +1 -1
- package/esm/models/operations/getusercart.d.ts.map +1 -1
- package/esm/models/operations/getusercart.js +1 -1
- package/esm/models/operations/getusercart.js.map +1 -1
- package/esm/models/operations/getuserdetail.d.ts +1 -1
- package/esm/models/operations/getuserdetail.d.ts.map +1 -1
- package/esm/models/operations/getuserdetail.js +1 -1
- package/esm/models/operations/getuserdetail.js.map +1 -1
- package/esm/models/operations/getvariantdetail.d.ts +1 -1
- package/esm/models/operations/getvariantdetail.d.ts.map +1 -1
- package/esm/models/operations/getvariantdetail.js +1 -1
- package/esm/models/operations/getvariantdetail.js.map +1 -1
- package/esm/models/operations/index.d.ts +1 -1
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +1 -1
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/listaddresses.d.ts +1 -1
- package/esm/models/operations/listaddresses.d.ts.map +1 -1
- package/esm/models/operations/listaddresses.js +2 -2
- package/esm/models/operations/listaddresses.js.map +1 -1
- package/esm/models/operations/listcategories.d.ts +1 -1
- package/esm/models/operations/listcategories.d.ts.map +1 -1
- package/esm/models/operations/listcategories.js +1 -1
- package/esm/models/operations/listcategories.js.map +1 -1
- package/esm/models/operations/listcountrypincodes.d.ts +1 -1
- package/esm/models/operations/listcountrypincodes.d.ts.map +1 -1
- package/esm/models/operations/listcountrypincodes.js +1 -1
- package/esm/models/operations/listcountrypincodes.js.map +1 -1
- package/esm/models/operations/listcrosssellproducts.d.ts +1 -1
- package/esm/models/operations/listcrosssellproducts.d.ts.map +1 -1
- package/esm/models/operations/listcrosssellproducts.js +1 -1
- package/esm/models/operations/listcrosssellproducts.js.map +1 -1
- package/esm/models/operations/listorders.d.ts +1 -1
- package/esm/models/operations/listorders.d.ts.map +1 -1
- package/esm/models/operations/listorders.js +1 -1
- package/esm/models/operations/listorders.js.map +1 -1
- package/esm/models/operations/listordershipments.d.ts +1 -1
- package/esm/models/operations/listordershipments.d.ts.map +1 -1
- package/esm/models/operations/listordershipments.js +1 -1
- package/esm/models/operations/listordershipments.js.map +1 -1
- package/esm/models/operations/listproductreviews.d.ts +1 -1
- package/esm/models/operations/listproductreviews.d.ts.map +1 -1
- package/esm/models/operations/listproductreviews.js +1 -1
- package/esm/models/operations/listproductreviews.js.map +1 -1
- package/esm/models/operations/listproducts.d.ts +1 -1
- package/esm/models/operations/listproducts.d.ts.map +1 -1
- package/esm/models/operations/listproducts.js +1 -1
- package/esm/models/operations/listproducts.js.map +1 -1
- package/esm/models/operations/listproductvariants.d.ts +1 -1
- package/esm/models/operations/listproductvariants.d.ts.map +1 -1
- package/esm/models/operations/listproductvariants.js +1 -1
- package/esm/models/operations/listproductvariants.js.map +1 -1
- package/esm/models/operations/listsavedpaymentmethods.d.ts +90 -0
- package/esm/models/operations/listsavedpaymentmethods.d.ts.map +1 -0
- package/esm/models/operations/listsavedpaymentmethods.js +105 -0
- package/esm/models/operations/listsavedpaymentmethods.js.map +1 -0
- package/esm/models/operations/listsimilarproducts.d.ts +1 -1
- package/esm/models/operations/listsimilarproducts.d.ts.map +1 -1
- package/esm/models/operations/listsimilarproducts.js +1 -1
- package/esm/models/operations/listsimilarproducts.js.map +1 -1
- package/esm/models/operations/listskus.d.ts +1 -1
- package/esm/models/operations/listskus.d.ts.map +1 -1
- package/esm/models/operations/listskus.js +1 -1
- package/esm/models/operations/listskus.js.map +1 -1
- package/esm/models/operations/listupsellproducts.d.ts +1 -1
- package/esm/models/operations/listupsellproducts.d.ts.map +1 -1
- package/esm/models/operations/listupsellproducts.js +1 -1
- package/esm/models/operations/listupsellproducts.js.map +1 -1
- package/esm/models/operations/listuserreviews.d.ts +1 -1
- package/esm/models/operations/listuserreviews.d.ts.map +1 -1
- package/esm/models/operations/listuserreviews.js +1 -1
- package/esm/models/operations/listuserreviews.js.map +1 -1
- package/esm/models/operations/loginwithemail.d.ts +1 -1
- package/esm/models/operations/loginwithemail.d.ts.map +1 -1
- package/esm/models/operations/loginwithemail.js +1 -1
- package/esm/models/operations/loginwithemail.js.map +1 -1
- package/esm/models/operations/loginwithphone.d.ts +1 -1
- package/esm/models/operations/loginwithphone.d.ts.map +1 -1
- package/esm/models/operations/loginwithphone.js +1 -1
- package/esm/models/operations/loginwithphone.js.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.d.ts +1 -1
- package/esm/models/operations/loginwithwhatsapp.d.ts.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.js +2 -2
- package/esm/models/operations/loginwithwhatsapp.js.map +1 -1
- package/esm/models/operations/logout.d.ts +1 -1
- package/esm/models/operations/logout.d.ts.map +1 -1
- package/esm/models/operations/logout.js +1 -1
- package/esm/models/operations/logout.js.map +1 -1
- package/esm/models/operations/redeemloyaltypoints.d.ts +1 -1
- package/esm/models/operations/redeemloyaltypoints.d.ts.map +1 -1
- package/esm/models/operations/redeemloyaltypoints.js +1 -1
- package/esm/models/operations/redeemloyaltypoints.js.map +1 -1
- package/esm/models/operations/refreshtoken.d.ts +1 -1
- package/esm/models/operations/refreshtoken.d.ts.map +1 -1
- package/esm/models/operations/refreshtoken.js +1 -1
- package/esm/models/operations/refreshtoken.js.map +1 -1
- package/esm/models/operations/removecoupon.d.ts +1 -1
- package/esm/models/operations/removecoupon.d.ts.map +1 -1
- package/esm/models/operations/removecoupon.js +1 -1
- package/esm/models/operations/removecoupon.js.map +1 -1
- package/esm/models/operations/removeloyaltypoints.d.ts +1 -1
- package/esm/models/operations/removeloyaltypoints.d.ts.map +1 -1
- package/esm/models/operations/removeloyaltypoints.js +1 -1
- package/esm/models/operations/removeloyaltypoints.js.map +1 -1
- package/esm/models/operations/retryorderpayment.d.ts +1 -1
- package/esm/models/operations/retryorderpayment.d.ts.map +1 -1
- package/esm/models/operations/retryorderpayment.js +1 -1
- package/esm/models/operations/retryorderpayment.js.map +1 -1
- package/esm/models/operations/searchproducts.d.ts +1 -1
- package/esm/models/operations/searchproducts.d.ts.map +1 -1
- package/esm/models/operations/searchproducts.js +1 -1
- package/esm/models/operations/searchproducts.js.map +1 -1
- package/esm/models/operations/updateaddressdetail.d.ts +1 -1
- package/esm/models/operations/updateaddressdetail.d.ts.map +1 -1
- package/esm/models/operations/updateaddressdetail.js +2 -2
- package/esm/models/operations/updateaddressdetail.js.map +1 -1
- package/esm/models/operations/updatecart.d.ts +1 -1
- package/esm/models/operations/updatecart.d.ts.map +1 -1
- package/esm/models/operations/updatecart.js +1 -1
- package/esm/models/operations/updatecart.js.map +1 -1
- package/esm/models/operations/updatefulfillmentpreference.d.ts +1 -1
- package/esm/models/operations/updatefulfillmentpreference.d.ts.map +1 -1
- package/esm/models/operations/updatefulfillmentpreference.js +1 -1
- package/esm/models/operations/updatefulfillmentpreference.js.map +1 -1
- package/esm/models/operations/updateuser.d.ts +1 -1
- package/esm/models/operations/updateuser.d.ts.map +1 -1
- package/esm/models/operations/updateuser.js +1 -1
- package/esm/models/operations/updateuser.js.map +1 -1
- package/esm/models/operations/verifyotp.d.ts +1 -1
- package/esm/models/operations/verifyotp.d.ts.map +1 -1
- package/esm/models/operations/verifyotp.js +1 -1
- package/esm/models/operations/verifyotp.js.map +1 -1
- package/esm/sdk/customers.d.ts +15 -0
- package/esm/sdk/customers.d.ts.map +1 -1
- package/esm/sdk/customers.js +18 -0
- package/esm/sdk/customers.js.map +1 -1
- package/esm/sdk/shipping.d.ts +0 -9
- package/esm/sdk/shipping.d.ts.map +1 -1
- package/esm/sdk/shipping.js +0 -12
- package/esm/sdk/shipping.js.map +1 -1
- package/esm/types/blobs.d.ts +1 -1
- package/esm/types/blobs.d.ts.map +1 -1
- package/esm/types/blobs.js +1 -1
- package/esm/types/blobs.js.map +1 -1
- package/esm/types/constdatetime.d.ts +1 -1
- package/esm/types/constdatetime.d.ts.map +1 -1
- package/esm/types/constdatetime.js +1 -1
- package/esm/types/constdatetime.js.map +1 -1
- package/examples/package-lock.json +2 -2
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/funcs/{shippingShippingMethods.ts → customersListSavedPaymentMethods.ts} +32 -23
- package/src/lib/base64.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/schemas.ts +1 -1
- 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/associatedoption.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 +2 -4
- package/src/models/components/collectinstorefulfillmentinput.ts +2 -4
- package/src/models/components/colorattribute.ts +1 -1
- package/src/models/components/coloroption.ts +2 -2
- package/src/models/components/currency.ts +1 -1
- package/src/models/components/customeraddress.ts +2 -2
- package/src/models/components/customeraddressinput.ts +2 -2
- 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 +2 -2
- package/src/models/components/deliveryfulfillmentinput.ts +2 -2
- package/src/models/components/discountbasedpromotion.ts +2 -2
- package/src/models/components/fixedpricepromotion.ts +2 -2
- package/src/models/components/freegoodspromotion.ts +2 -2
- package/src/models/components/fulfillmentitem.ts +1 -1
- package/src/models/components/fulfillmentiteminput.ts +1 -1
- package/src/models/components/fulfillmentpreference.ts +1 -1
- package/src/models/components/fulfillmentpreferenceinput.ts +1 -1
- package/src/models/components/generateotpwithemail.ts +2 -2
- package/src/models/components/generateotpwithphone.ts +1 -1
- package/src/models/components/index.ts +1 -0
- package/src/models/components/item.ts +1 -1
- package/src/models/components/juspaypaymentgatewayparams.ts +1 -1
- package/src/models/components/juspaypaymentinfo.ts +3 -3
- 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 +2 -4
- package/src/models/components/partialcollectanddeliveryinput.ts +2 -4
- package/src/models/components/paymentgateway.ts +1 -1
- package/src/models/components/paymentgatewayparams.ts +1 -1
- package/src/models/components/payupaymentgatewayparams.ts +1 -1
- package/src/models/components/payupaymentinfo.ts +4 -4
- 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/savedpaymentmethod.ts +668 -0
- package/src/models/components/searchproduct.ts +1 -1
- package/src/models/components/security.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 +2 -2
- 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 +1 -1
- 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 +2 -2
- package/src/models/components/walletpayment.ts +1 -1
- package/src/models/errors/badrequest.ts +1 -1
- package/src/models/errors/notfound.ts +1 -1
- package/src/models/errors/responsevalidationerror.ts +1 -1
- package/src/models/errors/sdkvalidationerror.ts +1 -1
- package/src/models/errors/unauthorized.ts +3 -3
- package/src/models/operations/applycoupon.ts +1 -1
- package/src/models/operations/cancelorder.ts +1 -1
- package/src/models/operations/checkpincodeserviceability.ts +1 -1
- package/src/models/operations/createaddress.ts +2 -2
- package/src/models/operations/createcart.ts +1 -1
- package/src/models/operations/createcartaddress.ts +1 -1
- package/src/models/operations/createorder.ts +1 -1
- package/src/models/operations/deleteaddress.ts +1 -1
- package/src/models/operations/deletecart.ts +1 -1
- package/src/models/operations/deleteusercart.ts +1 -1
- package/src/models/operations/generateotp.ts +1 -1
- package/src/models/operations/getaddressdetail.ts +2 -2
- package/src/models/operations/getanonymoustoken.ts +1 -1
- package/src/models/operations/getcart.ts +1 -1
- package/src/models/operations/getfulfillmentoptions.ts +1 -1
- package/src/models/operations/getloyaltydetails.ts +1 -1
- package/src/models/operations/getorderdetail.ts +1 -1
- package/src/models/operations/getpaymentstatus.ts +1 -1
- package/src/models/operations/getproductdetail.ts +1 -1
- package/src/models/operations/getusercart.ts +1 -1
- package/src/models/operations/getuserdetail.ts +1 -1
- package/src/models/operations/getvariantdetail.ts +1 -1
- package/src/models/operations/index.ts +1 -1
- package/src/models/operations/listaddresses.ts +2 -2
- package/src/models/operations/listcategories.ts +1 -1
- package/src/models/operations/listcountrypincodes.ts +1 -1
- package/src/models/operations/listcrosssellproducts.ts +1 -1
- package/src/models/operations/listorders.ts +1 -1
- package/src/models/operations/listordershipments.ts +1 -1
- package/src/models/operations/listproductreviews.ts +1 -1
- package/src/models/operations/listproducts.ts +1 -1
- package/src/models/operations/listproductvariants.ts +1 -1
- package/src/models/operations/listsavedpaymentmethods.ts +225 -0
- package/src/models/operations/listsimilarproducts.ts +1 -1
- package/src/models/operations/listskus.ts +1 -1
- package/src/models/operations/listupsellproducts.ts +1 -1
- package/src/models/operations/listuserreviews.ts +1 -1
- package/src/models/operations/loginwithemail.ts +1 -1
- package/src/models/operations/loginwithphone.ts +1 -1
- package/src/models/operations/loginwithwhatsapp.ts +2 -2
- package/src/models/operations/logout.ts +1 -1
- package/src/models/operations/redeemloyaltypoints.ts +1 -1
- package/src/models/operations/refreshtoken.ts +1 -1
- package/src/models/operations/removecoupon.ts +1 -1
- package/src/models/operations/removeloyaltypoints.ts +1 -1
- package/src/models/operations/retryorderpayment.ts +1 -1
- package/src/models/operations/searchproducts.ts +1 -1
- package/src/models/operations/updateaddressdetail.ts +2 -2
- package/src/models/operations/updatecart.ts +1 -1
- package/src/models/operations/updatefulfillmentpreference.ts +1 -1
- package/src/models/operations/updateuser.ts +1 -1
- package/src/models/operations/verifyotp.ts +1 -1
- package/src/sdk/customers.ts +26 -0
- package/src/sdk/shipping.ts +0 -20
- package/src/types/blobs.ts +7 -6
- package/src/types/constdatetime.ts +1 -1
- package/esm/funcs/shippingShippingMethods.d.ts +0 -21
- package/esm/funcs/shippingShippingMethods.d.ts.map +0 -1
- package/esm/funcs/shippingShippingMethods.js.map +0 -1
- package/esm/models/operations/getshippingmethods.d.ts +0 -37
- package/esm/models/operations/getshippingmethods.d.ts.map +0 -1
- package/esm/models/operations/getshippingmethods.js +0 -36
- package/esm/models/operations/getshippingmethods.js.map +0 -1
- package/src/models/operations/getshippingmethods.ts +0 -80
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { CeStorefrontCore } from "../core.js";
|
|
6
|
-
import {
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
10
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
11
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
12
|
import { pathToFunc } from "../lib/url.js";
|
|
13
|
-
import * as components from "../models/components/index.js";
|
|
14
13
|
import { CeStorefrontError } from "../models/errors/cestorefronterror.js";
|
|
15
14
|
import {
|
|
16
15
|
ConnectionError,
|
|
@@ -27,21 +26,26 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
26
|
import { Result } from "../types/fp.js";
|
|
28
27
|
|
|
29
28
|
/**
|
|
30
|
-
* List
|
|
29
|
+
* List all saved payment methods
|
|
31
30
|
*
|
|
32
31
|
* @remarks
|
|
33
|
-
*
|
|
32
|
+
* This endpoint acts as a proxy for JusPay’s “Fetch Saved Payment Methods” API. It enables to securely retrieve a list of payment methods (such as saved cards, UPI handles, wallets) that have been previously stored for a given customer.
|
|
34
33
|
*
|
|
35
|
-
*
|
|
34
|
+
* The operation helps streamline the checkout flow by allowing users to quickly select from existing payment methods, reducing input friction and improving conversion.
|
|
35
|
+
*
|
|
36
|
+
* API documentation of JusPay can be found at below link:
|
|
37
|
+
*
|
|
38
|
+
* https://juspay.io/in/docs/api-reference/docs/express-checkout/fetch-saved-payment-methods
|
|
39
|
+
*
|
|
40
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/operations/list-saved-payment-methods} - API reference for the list-saved-payment-methods operation
|
|
36
41
|
*/
|
|
37
|
-
export function
|
|
42
|
+
export function customersListSavedPaymentMethods(
|
|
38
43
|
client: CeStorefrontCore,
|
|
39
|
-
request:
|
|
44
|
+
request: operations.ListSavedPaymentMethodsRequest,
|
|
40
45
|
options?: RequestOptions,
|
|
41
46
|
): APIPromise<
|
|
42
47
|
Result<
|
|
43
|
-
operations.
|
|
44
|
-
| errors.BadRequest
|
|
48
|
+
operations.ListSavedPaymentMethodsResponseBody,
|
|
45
49
|
| errors.Unauthorized
|
|
46
50
|
| errors.NotFound
|
|
47
51
|
| CeStorefrontError
|
|
@@ -63,13 +67,12 @@ export function shippingShippingMethods(
|
|
|
63
67
|
|
|
64
68
|
async function $do(
|
|
65
69
|
client: CeStorefrontCore,
|
|
66
|
-
request:
|
|
70
|
+
request: operations.ListSavedPaymentMethodsRequest,
|
|
67
71
|
options?: RequestOptions,
|
|
68
72
|
): Promise<
|
|
69
73
|
[
|
|
70
74
|
Result<
|
|
71
|
-
operations.
|
|
72
|
-
| errors.BadRequest
|
|
75
|
+
operations.ListSavedPaymentMethodsResponseBody,
|
|
73
76
|
| errors.Unauthorized
|
|
74
77
|
| errors.NotFound
|
|
75
78
|
| CeStorefrontError
|
|
@@ -87,19 +90,27 @@ async function $do(
|
|
|
87
90
|
const parsed = safeParse(
|
|
88
91
|
request,
|
|
89
92
|
(value) =>
|
|
90
|
-
|
|
93
|
+
operations.ListSavedPaymentMethodsRequest$outboundSchema.parse(value),
|
|
91
94
|
"Input validation failed",
|
|
92
95
|
);
|
|
93
96
|
if (!parsed.ok) {
|
|
94
97
|
return [parsed, { status: "invalid" }];
|
|
95
98
|
}
|
|
96
99
|
const payload = parsed.value;
|
|
97
|
-
const body =
|
|
100
|
+
const body = null;
|
|
98
101
|
|
|
99
|
-
const
|
|
102
|
+
const pathParams = {
|
|
103
|
+
customer_id: encodeSimple("customer_id", payload.customer_id, {
|
|
104
|
+
explode: false,
|
|
105
|
+
charEncoding: "percent",
|
|
106
|
+
}),
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
const path = pathToFunc("/customers/{customer_id}/payment-methods")(
|
|
110
|
+
pathParams,
|
|
111
|
+
);
|
|
100
112
|
|
|
101
113
|
const headers = new Headers(compactMap({
|
|
102
|
-
"Content-Type": "application/json",
|
|
103
114
|
Accept: "application/json",
|
|
104
115
|
}));
|
|
105
116
|
|
|
@@ -110,7 +121,7 @@ async function $do(
|
|
|
110
121
|
const context = {
|
|
111
122
|
options: client._options,
|
|
112
123
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
113
|
-
operationID: "
|
|
124
|
+
operationID: "list-saved-payment-methods",
|
|
114
125
|
oAuth2Scopes: null,
|
|
115
126
|
|
|
116
127
|
resolvedSecurity: requestSecurity,
|
|
@@ -124,7 +135,7 @@ async function $do(
|
|
|
124
135
|
|
|
125
136
|
const requestRes = client._createRequest(context, {
|
|
126
137
|
security: requestSecurity,
|
|
127
|
-
method: "
|
|
138
|
+
method: "GET",
|
|
128
139
|
baseURL: options?.serverURL,
|
|
129
140
|
path: path,
|
|
130
141
|
headers: headers,
|
|
@@ -139,7 +150,7 @@ async function $do(
|
|
|
139
150
|
|
|
140
151
|
const doResult = await client._do(req, {
|
|
141
152
|
context,
|
|
142
|
-
errorCodes: ["
|
|
153
|
+
errorCodes: ["401", "404", "4XX", "5XX"],
|
|
143
154
|
retryConfig: context.retryConfig,
|
|
144
155
|
retryCodes: context.retryCodes,
|
|
145
156
|
});
|
|
@@ -153,8 +164,7 @@ async function $do(
|
|
|
153
164
|
};
|
|
154
165
|
|
|
155
166
|
const [result] = await M.match<
|
|
156
|
-
operations.
|
|
157
|
-
| errors.BadRequest
|
|
167
|
+
operations.ListSavedPaymentMethodsResponseBody,
|
|
158
168
|
| errors.Unauthorized
|
|
159
169
|
| errors.NotFound
|
|
160
170
|
| CeStorefrontError
|
|
@@ -166,8 +176,7 @@ async function $do(
|
|
|
166
176
|
| UnexpectedClientError
|
|
167
177
|
| SDKValidationError
|
|
168
178
|
>(
|
|
169
|
-
M.json(200, operations.
|
|
170
|
-
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
179
|
+
M.json(200, operations.ListSavedPaymentMethodsResponseBody$inboundSchema),
|
|
171
180
|
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
172
181
|
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
173
182
|
M.fail("4XX"),
|
package/src/lib/base64.ts
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -80,7 +80,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
80
80
|
export const SDK_METADATA = {
|
|
81
81
|
language: "typescript",
|
|
82
82
|
openapiDocVersion: "1.0",
|
|
83
|
-
sdkVersion: "0.
|
|
84
|
-
genVersion: "2.
|
|
85
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
83
|
+
sdkVersion: "0.18.1",
|
|
84
|
+
genVersion: "2.730.5",
|
|
85
|
+
userAgent: "speakeasy-sdk/typescript 0.18.1 2.730.5 1.0 ce-storefront",
|
|
86
86
|
} as const;
|
package/src/lib/schemas.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
@@ -80,9 +80,7 @@ export const CollectInStoreFulfillment$outboundSchema: z.ZodType<
|
|
|
80
80
|
z.ZodTypeDef,
|
|
81
81
|
CollectInStoreFulfillment
|
|
82
82
|
> = z.object({
|
|
83
|
-
fulfillmentType: z.literal("collect-in-store")
|
|
84
|
-
"collect-in-store" as const,
|
|
85
|
-
),
|
|
83
|
+
fulfillmentType: z.literal("collect-in-store"),
|
|
86
84
|
preferenceType: PreferenceType$outboundSchema.optional(),
|
|
87
85
|
pickupLocationId: z.string(),
|
|
88
86
|
pickupLocationName: z.string().optional(),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
@@ -44,9 +44,7 @@ export const CollectInStoreFulfillmentInput$outboundSchema: z.ZodType<
|
|
|
44
44
|
z.ZodTypeDef,
|
|
45
45
|
CollectInStoreFulfillmentInput
|
|
46
46
|
> = z.object({
|
|
47
|
-
fulfillmentType: z.literal("collect-in-store")
|
|
48
|
-
"collect-in-store" as const,
|
|
49
|
-
),
|
|
47
|
+
fulfillmentType: z.literal("collect-in-store"),
|
|
50
48
|
pickupLocationId: z.string(),
|
|
51
49
|
}).transform((v) => {
|
|
52
50
|
return remap$(v, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -108,7 +108,7 @@ export const ColorOption$outboundSchema: z.ZodType<
|
|
|
108
108
|
ColorOption
|
|
109
109
|
> = z.object({
|
|
110
110
|
name: z.string(),
|
|
111
|
-
type: z.literal("color")
|
|
111
|
+
type: z.literal("color"),
|
|
112
112
|
value: z.lazy(() => Value$outboundSchema),
|
|
113
113
|
});
|
|
114
114
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
@@ -124,7 +124,7 @@ export const CustomerAddress$outboundSchema: z.ZodType<
|
|
|
124
124
|
pincode: z.string(),
|
|
125
125
|
city: z.string(),
|
|
126
126
|
state: z.string(),
|
|
127
|
-
country: z.literal("India")
|
|
127
|
+
country: z.literal("India"),
|
|
128
128
|
taxIdentificationNumber: z.nullable(z.string()),
|
|
129
129
|
businessName: z.nullable(z.string()),
|
|
130
130
|
isPhoneVerified: z.boolean(),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
@@ -116,7 +116,7 @@ export const CustomerAddressInput$outboundSchema: z.ZodType<
|
|
|
116
116
|
pincode: z.string(),
|
|
117
117
|
city: z.string(),
|
|
118
118
|
state: z.string(),
|
|
119
|
-
country: z.literal("India")
|
|
119
|
+
country: z.literal("India"),
|
|
120
120
|
taxIdentificationNumber: z.nullable(z.string()),
|
|
121
121
|
businessName: z.nullable(z.string()),
|
|
122
122
|
}).transform((v) => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
@@ -90,7 +90,7 @@ export const DeliveryFulfillment$outboundSchema: z.ZodType<
|
|
|
90
90
|
z.ZodTypeDef,
|
|
91
91
|
DeliveryFulfillment
|
|
92
92
|
> = z.object({
|
|
93
|
-
fulfillmentType: z.literal("delivery")
|
|
93
|
+
fulfillmentType: z.literal("delivery"),
|
|
94
94
|
preferenceType: DeliveryFulfillmentPreferenceType$outboundSchema.optional(),
|
|
95
95
|
shippingProviderId: z.nullable(z.string()),
|
|
96
96
|
shippingProviderName: z.nullable(z.string()).optional(),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
@@ -47,7 +47,7 @@ export const DeliveryFulfillmentInput$outboundSchema: z.ZodType<
|
|
|
47
47
|
z.ZodTypeDef,
|
|
48
48
|
DeliveryFulfillmentInput
|
|
49
49
|
> = z.object({
|
|
50
|
-
fulfillmentType: z.literal("delivery")
|
|
50
|
+
fulfillmentType: z.literal("delivery"),
|
|
51
51
|
shippingProviderId: z.nullable(z.string()),
|
|
52
52
|
courierCompanyId: z.nullable(z.string()).optional(),
|
|
53
53
|
}).transform((v) => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
@@ -116,7 +116,7 @@ export const DiscountBasedPromotion$outboundSchema: z.ZodType<
|
|
|
116
116
|
z.ZodTypeDef,
|
|
117
117
|
DiscountBasedPromotion
|
|
118
118
|
> = z.object({
|
|
119
|
-
promotionType: z.literal("discount")
|
|
119
|
+
promotionType: z.literal("discount"),
|
|
120
120
|
discountType: DiscountType$outboundSchema,
|
|
121
121
|
discountPercent: z.number().optional(),
|
|
122
122
|
discountFixedAmount: z.number().int().optional(),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
@@ -75,7 +75,7 @@ export const FixedPricePromotion$outboundSchema: z.ZodType<
|
|
|
75
75
|
z.ZodTypeDef,
|
|
76
76
|
FixedPricePromotion
|
|
77
77
|
> = z.object({
|
|
78
|
-
promotionType: z.literal("fixed-price")
|
|
78
|
+
promotionType: z.literal("fixed-price"),
|
|
79
79
|
offerPrice: z.number(),
|
|
80
80
|
}).transform((v) => {
|
|
81
81
|
return remap$(v, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
@@ -85,7 +85,7 @@ export const FreeGoodsPromotion$outboundSchema: z.ZodType<
|
|
|
85
85
|
z.ZodTypeDef,
|
|
86
86
|
FreeGoodsPromotion
|
|
87
87
|
> = z.object({
|
|
88
|
-
promotionType: z.literal("free-goods")
|
|
88
|
+
promotionType: z.literal("free-goods"),
|
|
89
89
|
buyQuantity: z.number().int(),
|
|
90
90
|
getQuantity: z.number().int(),
|
|
91
91
|
}).transform((v) => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
@@ -77,7 +77,7 @@ export const GenerateOtpWithEmail$outboundSchema: z.ZodType<
|
|
|
77
77
|
z.ZodTypeDef,
|
|
78
78
|
GenerateOtpWithEmail
|
|
79
79
|
> = z.object({
|
|
80
|
-
channel: z.literal("email")
|
|
80
|
+
channel: z.literal("email"),
|
|
81
81
|
email: z.string(),
|
|
82
82
|
otpAction: GenerateOtpWithEmailOtpAction$outboundSchema,
|
|
83
83
|
}).transform((v) => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
@@ -72,6 +72,7 @@ export * from "./productreview.js";
|
|
|
72
72
|
export * from "./productshipping.js";
|
|
73
73
|
export * from "./productsubscription.js";
|
|
74
74
|
export * from "./productvideo.js";
|
|
75
|
+
export * from "./savedpaymentmethod.js";
|
|
75
76
|
export * from "./searchproduct.js";
|
|
76
77
|
export * from "./security.js";
|
|
77
78
|
export * from "./seo.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|