ce-storefront 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/components/anonymoususer.d.ts +0 -30
- package/esm/models/components/anonymoususer.d.ts.map +1 -1
- package/esm/models/components/anonymoususer.js +0 -41
- package/esm/models/components/anonymoususer.js.map +1 -1
- package/esm/models/components/appliedcoupon.d.ts +0 -53
- package/esm/models/components/appliedcoupon.d.ts.map +1 -1
- package/esm/models/components/appliedcoupon.js +0 -46
- package/esm/models/components/appliedcoupon.js.map +1 -1
- package/esm/models/components/appliedpromotion.d.ts +0 -51
- package/esm/models/components/appliedpromotion.d.ts.map +1 -1
- package/esm/models/components/appliedpromotion.js +0 -49
- package/esm/models/components/appliedpromotion.js.map +1 -1
- package/esm/models/components/associatedoption.d.ts +2 -19
- package/esm/models/components/associatedoption.d.ts.map +1 -1
- package/esm/models/components/associatedoption.js +2 -18
- package/esm/models/components/associatedoption.js.map +1 -1
- package/esm/models/components/banktransfer.d.ts +0 -70
- package/esm/models/components/banktransfer.d.ts.map +1 -1
- package/esm/models/components/banktransfer.js +0 -65
- package/esm/models/components/banktransfer.js.map +1 -1
- package/esm/models/components/booleanattribute.d.ts +0 -23
- package/esm/models/components/booleanattribute.d.ts.map +1 -1
- package/esm/models/components/booleanattribute.js +0 -22
- package/esm/models/components/booleanattribute.js.map +1 -1
- package/esm/models/components/cardpayment.d.ts +0 -92
- package/esm/models/components/cardpayment.d.ts.map +1 -1
- package/esm/models/components/cardpayment.js +0 -78
- package/esm/models/components/cardpayment.js.map +1 -1
- package/esm/models/components/cart.d.ts +6 -69
- package/esm/models/components/cart.d.ts.map +1 -1
- package/esm/models/components/cart.js +6 -107
- package/esm/models/components/cart.js.map +1 -1
- package/esm/models/components/cartbasedserviceabilitycheck.d.ts +0 -17
- package/esm/models/components/cartbasedserviceabilitycheck.d.ts.map +1 -1
- package/esm/models/components/cartbasedserviceabilitycheck.js +0 -25
- package/esm/models/components/cartbasedserviceabilitycheck.js.map +1 -1
- package/esm/models/components/cartitem.d.ts +3 -76
- package/esm/models/components/cartitem.d.ts.map +1 -1
- package/esm/models/components/cartitem.js +3 -96
- package/esm/models/components/cartitem.js.map +1 -1
- package/esm/models/components/category.d.ts +0 -25
- package/esm/models/components/category.d.ts.map +1 -1
- package/esm/models/components/category.js +0 -29
- package/esm/models/components/category.js.map +1 -1
- package/esm/models/components/collectinstore.d.ts +0 -23
- package/esm/models/components/collectinstore.d.ts.map +1 -1
- package/esm/models/components/collectinstore.js +0 -28
- package/esm/models/components/collectinstore.js.map +1 -1
- package/esm/models/components/collectinstorefulfillment.d.ts +0 -40
- package/esm/models/components/collectinstorefulfillment.d.ts.map +1 -1
- package/esm/models/components/collectinstorefulfillment.js +0 -41
- package/esm/models/components/collectinstorefulfillment.js.map +1 -1
- package/esm/models/components/collectinstorefulfillmentinput.d.ts +0 -17
- package/esm/models/components/collectinstorefulfillmentinput.d.ts.map +1 -1
- package/esm/models/components/collectinstorefulfillmentinput.js +0 -26
- package/esm/models/components/collectinstorefulfillmentinput.js.map +1 -1
- package/esm/models/components/colorattribute.d.ts +0 -43
- package/esm/models/components/colorattribute.d.ts.map +1 -1
- package/esm/models/components/colorattribute.js +0 -41
- package/esm/models/components/colorattribute.js.map +1 -1
- package/esm/models/components/coloroption.d.ts +0 -41
- package/esm/models/components/coloroption.d.ts.map +1 -1
- package/esm/models/components/coloroption.js +0 -39
- package/esm/models/components/coloroption.js.map +1 -1
- package/esm/models/components/currency.d.ts +0 -21
- package/esm/models/components/currency.d.ts.map +1 -1
- package/esm/models/components/currency.js +0 -20
- package/esm/models/components/currency.js.map +1 -1
- package/esm/models/components/customeraddress.d.ts +0 -35
- package/esm/models/components/customeraddress.d.ts.map +1 -1
- package/esm/models/components/customeraddress.js +0 -46
- package/esm/models/components/customeraddress.js.map +1 -1
- package/esm/models/components/customeraddressinput.d.ts +0 -17
- package/esm/models/components/customeraddressinput.d.ts.map +1 -1
- package/esm/models/components/customeraddressinput.js +0 -43
- package/esm/models/components/customeraddressinput.js.map +1 -1
- package/esm/models/components/customerloyalty.d.ts +0 -27
- package/esm/models/components/customerloyalty.d.ts.map +1 -1
- package/esm/models/components/customerloyalty.js +0 -38
- package/esm/models/components/customerloyalty.js.map +1 -1
- package/esm/models/components/customerreadyforreview.d.ts +0 -24
- package/esm/models/components/customerreadyforreview.d.ts.map +1 -1
- package/esm/models/components/customerreadyforreview.js +0 -32
- package/esm/models/components/customerreadyforreview.js.map +1 -1
- package/esm/models/components/customerreview.d.ts +0 -99
- package/esm/models/components/customerreview.d.ts.map +1 -1
- package/esm/models/components/customerreview.js +0 -121
- package/esm/models/components/customerreview.js.map +1 -1
- package/esm/models/components/dateattribute.d.ts +0 -23
- package/esm/models/components/dateattribute.d.ts.map +1 -1
- package/esm/models/components/dateattribute.js +0 -22
- package/esm/models/components/dateattribute.js.map +1 -1
- package/esm/models/components/deliveryfulfillment.d.ts +0 -42
- package/esm/models/components/deliveryfulfillment.d.ts.map +1 -1
- package/esm/models/components/deliveryfulfillment.js +0 -45
- package/esm/models/components/deliveryfulfillment.js.map +1 -1
- package/esm/models/components/deliveryfulfillmentinput.d.ts +0 -17
- package/esm/models/components/deliveryfulfillmentinput.d.ts.map +1 -1
- package/esm/models/components/deliveryfulfillmentinput.js +0 -27
- package/esm/models/components/deliveryfulfillmentinput.js.map +1 -1
- package/esm/models/components/discountbasedpromotion.d.ts +0 -62
- package/esm/models/components/discountbasedpromotion.d.ts.map +1 -1
- package/esm/models/components/discountbasedpromotion.js +0 -54
- package/esm/models/components/discountbasedpromotion.js.map +1 -1
- package/esm/models/components/fixedpricepromotion.d.ts +0 -42
- package/esm/models/components/fixedpricepromotion.d.ts.map +1 -1
- package/esm/models/components/fixedpricepromotion.js +0 -37
- package/esm/models/components/fixedpricepromotion.js.map +1 -1
- package/esm/models/components/freegoodspromotion.d.ts +0 -43
- package/esm/models/components/freegoodspromotion.d.ts.map +1 -1
- package/esm/models/components/freegoodspromotion.js +0 -39
- package/esm/models/components/freegoodspromotion.js.map +1 -1
- package/esm/models/components/fulfillmentitem.d.ts +0 -23
- package/esm/models/components/fulfillmentitem.d.ts.map +1 -1
- package/esm/models/components/fulfillmentitem.js +0 -29
- package/esm/models/components/fulfillmentitem.js.map +1 -1
- package/esm/models/components/fulfillmentiteminput.d.ts +0 -17
- package/esm/models/components/fulfillmentiteminput.d.ts.map +1 -1
- package/esm/models/components/fulfillmentiteminput.js +0 -26
- package/esm/models/components/fulfillmentiteminput.js.map +1 -1
- package/esm/models/components/fulfillmentpreference.d.ts +3 -26
- package/esm/models/components/fulfillmentpreference.d.ts.map +1 -1
- package/esm/models/components/fulfillmentpreference.js +3 -26
- package/esm/models/components/fulfillmentpreference.js.map +1 -1
- package/esm/models/components/fulfillmentpreferenceinput.d.ts +0 -17
- package/esm/models/components/fulfillmentpreferenceinput.d.ts.map +1 -1
- package/esm/models/components/fulfillmentpreferenceinput.js +3 -27
- package/esm/models/components/fulfillmentpreferenceinput.js.map +1 -1
- package/esm/models/components/generateotpwithemail.d.ts +0 -39
- package/esm/models/components/generateotpwithemail.d.ts.map +1 -1
- package/esm/models/components/generateotpwithemail.js +1 -39
- package/esm/models/components/generateotpwithemail.js.map +1 -1
- package/esm/models/components/generateotpwithphone.d.ts +0 -57
- package/esm/models/components/generateotpwithphone.d.ts.map +1 -1
- package/esm/models/components/generateotpwithphone.js +2 -55
- package/esm/models/components/generateotpwithphone.js.map +1 -1
- package/esm/models/components/item.d.ts +8 -73
- package/esm/models/components/item.d.ts.map +1 -1
- package/esm/models/components/item.js +8 -79
- package/esm/models/components/item.js.map +1 -1
- package/esm/models/components/juspayexpresscheckout.d.ts +0 -17
- package/esm/models/components/juspayexpresscheckout.d.ts.map +1 -1
- package/esm/models/components/juspayexpresscheckout.js +5 -28
- package/esm/models/components/juspayexpresscheckout.js.map +1 -1
- package/esm/models/components/juspayexpresscheckoutresponse.d.ts +0 -129
- package/esm/models/components/juspayexpresscheckoutresponse.d.ts.map +1 -1
- package/esm/models/components/juspayexpresscheckoutresponse.js +0 -147
- package/esm/models/components/juspayexpresscheckoutresponse.js.map +1 -1
- package/esm/models/components/juspayhypercheckout.d.ts +0 -33
- package/esm/models/components/juspayhypercheckout.d.ts.map +1 -1
- package/esm/models/components/juspayhypercheckout.js +1 -45
- package/esm/models/components/juspayhypercheckout.js.map +1 -1
- package/esm/models/components/juspayhypercheckoutresponse.d.ts +0 -125
- package/esm/models/components/juspayhypercheckoutresponse.d.ts.map +1 -1
- package/esm/models/components/juspayhypercheckoutresponse.js +0 -130
- package/esm/models/components/juspayhypercheckoutresponse.js.map +1 -1
- package/esm/models/components/juspaynetbanking.d.ts +2 -19
- package/esm/models/components/juspaynetbanking.d.ts.map +1 -1
- package/esm/models/components/juspaynetbanking.js +1 -39
- package/esm/models/components/juspaynetbanking.js.map +1 -1
- package/esm/models/components/juspaynewcard.d.ts +2 -39
- package/esm/models/components/juspaynewcard.d.ts.map +1 -1
- package/esm/models/components/juspaynewcard.js +2 -69
- package/esm/models/components/juspaynewcard.js.map +1 -1
- package/esm/models/components/juspaysavedcardtoken.d.ts +2 -39
- package/esm/models/components/juspaysavedcardtoken.d.ts.map +1 -1
- package/esm/models/components/juspaysavedcardtoken.js +2 -63
- package/esm/models/components/juspaysavedcardtoken.js.map +1 -1
- package/esm/models/components/juspayupicollect.d.ts +2 -19
- package/esm/models/components/juspayupicollect.d.ts.map +1 -1
- package/esm/models/components/juspayupicollect.js +1 -41
- package/esm/models/components/juspayupicollect.js.map +1 -1
- package/esm/models/components/juspayupiintent.d.ts +2 -19
- package/esm/models/components/juspayupiintent.d.ts.map +1 -1
- package/esm/models/components/juspayupiintent.js +1 -43
- package/esm/models/components/juspayupiintent.js.map +1 -1
- package/esm/models/components/lotbatchdetail.d.ts +0 -23
- package/esm/models/components/lotbatchdetail.d.ts.map +1 -1
- package/esm/models/components/lotbatchdetail.js +0 -29
- package/esm/models/components/lotbatchdetail.js.map +1 -1
- package/esm/models/components/multiselectattribute.d.ts +0 -23
- package/esm/models/components/multiselectattribute.d.ts.map +1 -1
- package/esm/models/components/multiselectattribute.js +0 -22
- package/esm/models/components/multiselectattribute.js.map +1 -1
- package/esm/models/components/netbankingpayment.d.ts +0 -69
- package/esm/models/components/netbankingpayment.d.ts.map +1 -1
- package/esm/models/components/netbankingpayment.js +0 -63
- package/esm/models/components/netbankingpayment.js.map +1 -1
- package/esm/models/components/notificationchannelpreferences.d.ts +0 -12
- package/esm/models/components/notificationchannelpreferences.d.ts.map +1 -1
- package/esm/models/components/notificationchannelpreferences.js +0 -11
- package/esm/models/components/notificationchannelpreferences.js.map +1 -1
- package/esm/models/components/notificationpreferences.d.ts +0 -12
- package/esm/models/components/notificationpreferences.d.ts.map +1 -1
- package/esm/models/components/notificationpreferences.js +0 -11
- package/esm/models/components/notificationpreferences.js.map +1 -1
- package/esm/models/components/numberattribute.d.ts +0 -23
- package/esm/models/components/numberattribute.d.ts.map +1 -1
- package/esm/models/components/numberattribute.js +0 -22
- package/esm/models/components/numberattribute.js.map +1 -1
- package/esm/models/components/order.d.ts +5 -202
- package/esm/models/components/order.d.ts.map +1 -1
- package/esm/models/components/order.js +5 -207
- package/esm/models/components/order.js.map +1 -1
- package/esm/models/components/orderdetail.d.ts +6 -204
- package/esm/models/components/orderdetail.d.ts.map +1 -1
- package/esm/models/components/orderdetail.js +6 -209
- package/esm/models/components/orderdetail.js.map +1 -1
- package/esm/models/components/orderitem.d.ts +2 -73
- package/esm/models/components/orderitem.d.ts.map +1 -1
- package/esm/models/components/orderitem.js +2 -93
- package/esm/models/components/orderitem.js.map +1 -1
- package/esm/models/components/orderlist.d.ts +1 -122
- package/esm/models/components/orderlist.d.ts.map +1 -1
- package/esm/models/components/orderlist.js +1 -101
- package/esm/models/components/orderlist.js.map +1 -1
- package/esm/models/components/orderpayment.d.ts +5 -22
- package/esm/models/components/orderpayment.d.ts.map +1 -1
- package/esm/models/components/orderpayment.js +5 -27
- package/esm/models/components/orderpayment.js.map +1 -1
- package/esm/models/components/ordershipment.d.ts +1 -76
- package/esm/models/components/ordershipment.d.ts.map +1 -1
- package/esm/models/components/ordershipment.js +1 -71
- package/esm/models/components/ordershipment.js.map +1 -1
- package/esm/models/components/pagination.d.ts +0 -23
- package/esm/models/components/pagination.d.ts.map +1 -1
- package/esm/models/components/pagination.js +0 -29
- package/esm/models/components/pagination.js.map +1 -1
- package/esm/models/components/partialcollectanddelivery.d.ts +1 -85
- package/esm/models/components/partialcollectanddelivery.d.ts.map +1 -1
- package/esm/models/components/partialcollectanddelivery.js +1 -96
- package/esm/models/components/partialcollectanddelivery.js.map +1 -1
- package/esm/models/components/partialcollectanddeliveryinput.d.ts +0 -47
- package/esm/models/components/partialcollectanddeliveryinput.d.ts.map +1 -1
- package/esm/models/components/partialcollectanddeliveryinput.js +1 -75
- package/esm/models/components/partialcollectanddeliveryinput.js.map +1 -1
- package/esm/models/components/paymentmethodpayload.d.ts +0 -17
- package/esm/models/components/paymentmethodpayload.d.ts.map +1 -1
- package/esm/models/components/paymentmethodpayload.js +2 -22
- package/esm/models/components/paymentmethodpayload.js.map +1 -1
- package/esm/models/components/payupaymentinfo.d.ts +0 -55
- package/esm/models/components/payupaymentinfo.d.ts.map +1 -1
- package/esm/models/components/payupaymentinfo.js +0 -58
- package/esm/models/components/payupaymentinfo.js.map +1 -1
- package/esm/models/components/pincode.d.ts +0 -23
- package/esm/models/components/pincode.d.ts.map +1 -1
- package/esm/models/components/pincode.js +0 -28
- package/esm/models/components/pincode.js.map +1 -1
- package/esm/models/components/pincodeserviceability.d.ts +0 -123
- package/esm/models/components/pincodeserviceability.d.ts.map +1 -1
- package/esm/models/components/pincodeserviceability.js +0 -130
- package/esm/models/components/pincodeserviceability.js.map +1 -1
- package/esm/models/components/product.d.ts +10 -74
- package/esm/models/components/product.d.ts.map +1 -1
- package/esm/models/components/product.js +10 -80
- package/esm/models/components/product.js.map +1 -1
- package/esm/models/components/productattribute.d.ts +7 -38
- package/esm/models/components/productattribute.d.ts.map +1 -1
- package/esm/models/components/productattribute.js +7 -39
- package/esm/models/components/productattribute.js.map +1 -1
- package/esm/models/components/productbundleitem.d.ts +8 -74
- package/esm/models/components/productbundleitem.d.ts.map +1 -1
- package/esm/models/components/productbundleitem.js +8 -80
- package/esm/models/components/productbundleitem.js.map +1 -1
- package/esm/models/components/productcategory.d.ts +1 -27
- package/esm/models/components/productcategory.d.ts.map +1 -1
- package/esm/models/components/productcategory.js +1 -32
- package/esm/models/components/productcategory.js.map +1 -1
- package/esm/models/components/productdetail.d.ts +13 -87
- package/esm/models/components/productdetail.d.ts.map +1 -1
- package/esm/models/components/productdetail.js +13 -94
- package/esm/models/components/productdetail.js.map +1 -1
- package/esm/models/components/productimage.d.ts +0 -26
- package/esm/models/components/productimage.d.ts.map +1 -1
- package/esm/models/components/productimage.js +0 -34
- package/esm/models/components/productimage.js.map +1 -1
- package/esm/models/components/productpricing.d.ts +0 -28
- package/esm/models/components/productpricing.d.ts.map +1 -1
- package/esm/models/components/productpricing.js +0 -39
- package/esm/models/components/productpricing.js.map +1 -1
- package/esm/models/components/productpromotion.d.ts +4 -59
- package/esm/models/components/productpromotion.d.ts.map +1 -1
- package/esm/models/components/productpromotion.js +4 -72
- package/esm/models/components/productpromotion.js.map +1 -1
- package/esm/models/components/productreview.d.ts +0 -110
- package/esm/models/components/productreview.d.ts.map +1 -1
- package/esm/models/components/productreview.js +0 -122
- package/esm/models/components/productreview.js.map +1 -1
- package/esm/models/components/productshipping.d.ts +0 -22
- package/esm/models/components/productshipping.d.ts.map +1 -1
- package/esm/models/components/productshipping.js +0 -28
- package/esm/models/components/productshipping.js.map +1 -1
- package/esm/models/components/productsubscription.d.ts +0 -70
- package/esm/models/components/productsubscription.d.ts.map +1 -1
- package/esm/models/components/productsubscription.js +0 -69
- package/esm/models/components/productsubscription.js.map +1 -1
- package/esm/models/components/productvideo.d.ts +0 -26
- package/esm/models/components/productvideo.d.ts.map +1 -1
- package/esm/models/components/productvideo.js +0 -35
- package/esm/models/components/productvideo.js.map +1 -1
- package/esm/models/components/savedpaymentmethod.d.ts +0 -172
- package/esm/models/components/savedpaymentmethod.d.ts.map +1 -1
- package/esm/models/components/savedpaymentmethod.js +0 -227
- package/esm/models/components/savedpaymentmethod.js.map +1 -1
- package/esm/models/components/searchproduct.d.ts +0 -17
- package/esm/models/components/searchproduct.d.ts.map +1 -1
- package/esm/models/components/searchproduct.js +0 -22
- package/esm/models/components/searchproduct.js.map +1 -1
- package/esm/models/components/security.d.ts +0 -17
- package/esm/models/components/security.d.ts.map +1 -1
- package/esm/models/components/security.js +0 -23
- package/esm/models/components/security.js.map +1 -1
- package/esm/models/components/seo.d.ts +0 -22
- package/esm/models/components/seo.d.ts.map +1 -1
- package/esm/models/components/seo.js +0 -22
- package/esm/models/components/seo.js.map +1 -1
- package/esm/models/components/shipmentitem.d.ts +0 -25
- package/esm/models/components/shipmentitem.d.ts.map +1 -1
- package/esm/models/components/shipmentitem.js +0 -32
- package/esm/models/components/shipmentitem.js.map +1 -1
- package/esm/models/components/singleselectattribute.d.ts +0 -23
- package/esm/models/components/singleselectattribute.d.ts.map +1 -1
- package/esm/models/components/singleselectattribute.js +0 -22
- package/esm/models/components/singleselectattribute.js.map +1 -1
- package/esm/models/components/singleselectoption.d.ts +0 -21
- package/esm/models/components/singleselectoption.d.ts.map +1 -1
- package/esm/models/components/singleselectoption.js +0 -20
- package/esm/models/components/singleselectoption.js.map +1 -1
- package/esm/models/components/textattribute.d.ts +0 -23
- package/esm/models/components/textattribute.d.ts.map +1 -1
- package/esm/models/components/textattribute.js +0 -22
- package/esm/models/components/textattribute.js.map +1 -1
- package/esm/models/components/updatecartitem.d.ts +0 -17
- package/esm/models/components/updatecartitem.d.ts.map +1 -1
- package/esm/models/components/updatecartitem.js +0 -26
- package/esm/models/components/updatecartitem.js.map +1 -1
- package/esm/models/components/upipayment.d.ts +0 -69
- package/esm/models/components/upipayment.d.ts.map +1 -1
- package/esm/models/components/upipayment.js +0 -63
- package/esm/models/components/upipayment.js.map +1 -1
- package/esm/models/components/user.d.ts +0 -68
- package/esm/models/components/user.d.ts.map +1 -1
- package/esm/models/components/user.js +0 -92
- package/esm/models/components/user.js.map +1 -1
- package/esm/models/components/variant.d.ts +6 -45
- package/esm/models/components/variant.d.ts.map +1 -1
- package/esm/models/components/variant.js +6 -53
- package/esm/models/components/variant.js.map +1 -1
- package/esm/models/components/variantdetail.d.ts +11 -86
- package/esm/models/components/variantdetail.d.ts.map +1 -1
- package/esm/models/components/variantdetail.js +11 -93
- package/esm/models/components/variantdetail.js.map +1 -1
- package/esm/models/components/variantoption.d.ts +0 -74
- package/esm/models/components/variantoption.d.ts.map +1 -1
- package/esm/models/components/variantoption.js +0 -67
- package/esm/models/components/variantoption.js.map +1 -1
- package/esm/models/components/volumebasedpromotion.d.ts +0 -62
- package/esm/models/components/volumebasedpromotion.d.ts.map +1 -1
- package/esm/models/components/volumebasedpromotion.js +0 -60
- package/esm/models/components/volumebasedpromotion.js.map +1 -1
- package/esm/models/components/walletpayment.d.ts +0 -69
- package/esm/models/components/walletpayment.d.ts.map +1 -1
- package/esm/models/components/walletpayment.js +0 -63
- package/esm/models/components/walletpayment.js.map +1 -1
- package/esm/models/errors/badrequest.d.ts +0 -38
- package/esm/models/errors/badrequest.d.ts.map +1 -1
- package/esm/models/errors/badrequest.js +0 -36
- package/esm/models/errors/badrequest.js.map +1 -1
- package/esm/models/errors/notfound.d.ts +0 -20
- package/esm/models/errors/notfound.d.ts.map +1 -1
- package/esm/models/errors/notfound.js +0 -19
- package/esm/models/errors/notfound.js.map +1 -1
- package/esm/models/errors/unauthorized.d.ts +0 -20
- package/esm/models/errors/unauthorized.d.ts.map +1 -1
- package/esm/models/errors/unauthorized.js +0 -19
- package/esm/models/errors/unauthorized.js.map +1 -1
- package/esm/models/operations/applycoupon.d.ts +0 -70
- package/esm/models/operations/applycoupon.d.ts.map +1 -1
- package/esm/models/operations/applycoupon.js +0 -83
- package/esm/models/operations/applycoupon.js.map +1 -1
- package/esm/models/operations/cancelorder.d.ts +0 -88
- package/esm/models/operations/cancelorder.d.ts.map +1 -1
- package/esm/models/operations/cancelorder.js +1 -103
- package/esm/models/operations/cancelorder.js.map +1 -1
- package/esm/models/operations/checkpincodeserviceability.d.ts +0 -55
- package/esm/models/operations/checkpincodeserviceability.d.ts.map +1 -1
- package/esm/models/operations/checkpincodeserviceability.js +0 -60
- package/esm/models/operations/checkpincodeserviceability.js.map +1 -1
- package/esm/models/operations/createaddress.d.ts +0 -70
- package/esm/models/operations/createaddress.d.ts.map +1 -1
- package/esm/models/operations/createaddress.js +0 -108
- package/esm/models/operations/createaddress.js.map +1 -1
- package/esm/models/operations/createcart.d.ts +0 -55
- package/esm/models/operations/createcart.d.ts.map +1 -1
- package/esm/models/operations/createcart.js +0 -57
- package/esm/models/operations/createcart.js.map +1 -1
- package/esm/models/operations/createcartaddress.d.ts +0 -100
- package/esm/models/operations/createcartaddress.d.ts.map +1 -1
- package/esm/models/operations/createcartaddress.js +0 -131
- package/esm/models/operations/createcartaddress.js.map +1 -1
- package/esm/models/operations/createorder.d.ts +0 -74
- package/esm/models/operations/createorder.d.ts.map +1 -1
- package/esm/models/operations/createorder.js +0 -93
- package/esm/models/operations/createorder.js.map +1 -1
- package/esm/models/operations/deleteaddress.d.ts +0 -35
- package/esm/models/operations/deleteaddress.d.ts.map +1 -1
- package/esm/models/operations/deleteaddress.js +0 -43
- package/esm/models/operations/deleteaddress.js.map +1 -1
- package/esm/models/operations/deletecart.d.ts +0 -35
- package/esm/models/operations/deletecart.d.ts.map +1 -1
- package/esm/models/operations/deletecart.js +0 -37
- package/esm/models/operations/deletecart.js.map +1 -1
- package/esm/models/operations/deleteusercart.d.ts +0 -35
- package/esm/models/operations/deleteusercart.d.ts.map +1 -1
- package/esm/models/operations/deleteusercart.js +0 -41
- package/esm/models/operations/deleteusercart.js.map +1 -1
- package/esm/models/operations/generateotp.d.ts +0 -71
- package/esm/models/operations/generateotp.d.ts.map +1 -1
- package/esm/models/operations/generateotp.js +0 -90
- package/esm/models/operations/generateotp.js.map +1 -1
- package/esm/models/operations/getaddressdetail.d.ts +0 -92
- package/esm/models/operations/getaddressdetail.d.ts.map +1 -1
- package/esm/models/operations/getaddressdetail.js +0 -112
- package/esm/models/operations/getaddressdetail.js.map +1 -1
- package/esm/models/operations/getanonymoustoken.d.ts +0 -57
- package/esm/models/operations/getanonymoustoken.d.ts.map +1 -1
- package/esm/models/operations/getanonymoustoken.js +0 -67
- package/esm/models/operations/getanonymoustoken.js.map +1 -1
- package/esm/models/operations/getcart.d.ts +0 -55
- package/esm/models/operations/getcart.d.ts.map +1 -1
- package/esm/models/operations/getcart.js +0 -56
- package/esm/models/operations/getcart.js.map +1 -1
- package/esm/models/operations/getfulfillmentoptions.d.ts +0 -82
- package/esm/models/operations/getfulfillmentoptions.d.ts.map +1 -1
- package/esm/models/operations/getfulfillmentoptions.js +0 -81
- package/esm/models/operations/getfulfillmentoptions.js.map +1 -1
- package/esm/models/operations/getloyaltydetails.d.ts +0 -56
- package/esm/models/operations/getloyaltydetails.d.ts.map +1 -1
- package/esm/models/operations/getloyaltydetails.js +0 -65
- package/esm/models/operations/getloyaltydetails.js.map +1 -1
- package/esm/models/operations/getorderdetail.d.ts +0 -55
- package/esm/models/operations/getorderdetail.d.ts.map +1 -1
- package/esm/models/operations/getorderdetail.js +0 -60
- package/esm/models/operations/getorderdetail.js.map +1 -1
- package/esm/models/operations/getpaymentstatus.d.ts +0 -80
- package/esm/models/operations/getpaymentstatus.d.ts.map +1 -1
- package/esm/models/operations/getpaymentstatus.js +0 -82
- package/esm/models/operations/getpaymentstatus.js.map +1 -1
- package/esm/models/operations/getproductdetail.d.ts +0 -55
- package/esm/models/operations/getproductdetail.d.ts.map +1 -1
- package/esm/models/operations/getproductdetail.js +0 -63
- package/esm/models/operations/getproductdetail.js.map +1 -1
- package/esm/models/operations/getusercart.d.ts +0 -55
- package/esm/models/operations/getusercart.d.ts.map +1 -1
- package/esm/models/operations/getusercart.js +0 -60
- package/esm/models/operations/getusercart.js.map +1 -1
- package/esm/models/operations/getuserdetail.d.ts +0 -55
- package/esm/models/operations/getuserdetail.d.ts.map +1 -1
- package/esm/models/operations/getuserdetail.js +0 -56
- package/esm/models/operations/getuserdetail.js.map +1 -1
- package/esm/models/operations/getvariantdetail.d.ts +0 -55
- package/esm/models/operations/getvariantdetail.d.ts.map +1 -1
- package/esm/models/operations/getvariantdetail.js +0 -65
- package/esm/models/operations/getvariantdetail.js.map +1 -1
- package/esm/models/operations/listaddresses.d.ts +0 -93
- package/esm/models/operations/listaddresses.d.ts.map +1 -1
- package/esm/models/operations/listaddresses.js +0 -114
- package/esm/models/operations/listaddresses.js.map +1 -1
- package/esm/models/operations/listcategories.d.ts +0 -56
- package/esm/models/operations/listcategories.d.ts.map +1 -1
- package/esm/models/operations/listcategories.js +0 -68
- package/esm/models/operations/listcategories.js.map +1 -1
- package/esm/models/operations/listcountrypincodes.d.ts +0 -55
- package/esm/models/operations/listcountrypincodes.d.ts.map +1 -1
- package/esm/models/operations/listcountrypincodes.js +0 -63
- package/esm/models/operations/listcountrypincodes.js.map +1 -1
- package/esm/models/operations/listcrosssellproducts.d.ts +0 -56
- package/esm/models/operations/listcrosssellproducts.d.ts.map +1 -1
- package/esm/models/operations/listcrosssellproducts.js +0 -67
- package/esm/models/operations/listcrosssellproducts.js.map +1 -1
- package/esm/models/operations/listorders.d.ts +0 -56
- package/esm/models/operations/listorders.d.ts.map +1 -1
- package/esm/models/operations/listorders.js +0 -66
- package/esm/models/operations/listorders.js.map +1 -1
- package/esm/models/operations/listordershipments.d.ts +0 -55
- package/esm/models/operations/listordershipments.d.ts.map +1 -1
- package/esm/models/operations/listordershipments.js +0 -60
- package/esm/models/operations/listordershipments.js.map +1 -1
- package/esm/models/operations/listproductreviews.d.ts +0 -57
- package/esm/models/operations/listproductreviews.d.ts.map +1 -1
- package/esm/models/operations/listproductreviews.js +0 -73
- package/esm/models/operations/listproductreviews.js.map +1 -1
- package/esm/models/operations/listproducts.d.ts +0 -56
- package/esm/models/operations/listproducts.d.ts.map +1 -1
- package/esm/models/operations/listproducts.js +0 -70
- package/esm/models/operations/listproducts.js.map +1 -1
- package/esm/models/operations/listproductvariants.d.ts +0 -55
- package/esm/models/operations/listproductvariants.d.ts.map +1 -1
- package/esm/models/operations/listproductvariants.js +0 -63
- package/esm/models/operations/listproductvariants.js.map +1 -1
- package/esm/models/operations/listsavedpaymentmethods.d.ts +0 -55
- package/esm/models/operations/listsavedpaymentmethods.d.ts.map +1 -1
- package/esm/models/operations/listsavedpaymentmethods.js +0 -65
- package/esm/models/operations/listsavedpaymentmethods.js.map +1 -1
- package/esm/models/operations/listsimilarproducts.d.ts +0 -56
- package/esm/models/operations/listsimilarproducts.d.ts.map +1 -1
- package/esm/models/operations/listsimilarproducts.js +0 -67
- package/esm/models/operations/listsimilarproducts.js.map +1 -1
- package/esm/models/operations/listskus.d.ts +0 -56
- package/esm/models/operations/listskus.d.ts.map +1 -1
- package/esm/models/operations/listskus.js +0 -69
- package/esm/models/operations/listskus.js.map +1 -1
- package/esm/models/operations/listupsellproducts.d.ts +0 -56
- package/esm/models/operations/listupsellproducts.d.ts.map +1 -1
- package/esm/models/operations/listupsellproducts.js +0 -67
- package/esm/models/operations/listupsellproducts.js.map +1 -1
- package/esm/models/operations/listuserreviews.d.ts +0 -56
- package/esm/models/operations/listuserreviews.d.ts.map +1 -1
- package/esm/models/operations/listuserreviews.js +0 -66
- package/esm/models/operations/listuserreviews.js.map +1 -1
- package/esm/models/operations/loginwithemail.d.ts +0 -71
- package/esm/models/operations/loginwithemail.d.ts.map +1 -1
- package/esm/models/operations/loginwithemail.js +0 -91
- package/esm/models/operations/loginwithemail.js.map +1 -1
- package/esm/models/operations/loginwithphone.d.ts +0 -71
- package/esm/models/operations/loginwithphone.d.ts.map +1 -1
- package/esm/models/operations/loginwithphone.js +0 -93
- package/esm/models/operations/loginwithphone.js.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.d.ts +0 -71
- package/esm/models/operations/loginwithwhatsapp.d.ts.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.js +0 -93
- package/esm/models/operations/loginwithwhatsapp.js.map +1 -1
- package/esm/models/operations/logout.d.ts +0 -42
- package/esm/models/operations/logout.d.ts.map +1 -1
- package/esm/models/operations/logout.js +0 -45
- package/esm/models/operations/logout.js.map +1 -1
- package/esm/models/operations/redeemloyaltypoints.d.ts +0 -70
- package/esm/models/operations/redeemloyaltypoints.d.ts.map +1 -1
- package/esm/models/operations/redeemloyaltypoints.js +0 -83
- package/esm/models/operations/redeemloyaltypoints.js.map +1 -1
- package/esm/models/operations/refreshtoken.d.ts +0 -56
- package/esm/models/operations/refreshtoken.d.ts.map +1 -1
- package/esm/models/operations/refreshtoken.js +0 -66
- package/esm/models/operations/refreshtoken.js.map +1 -1
- package/esm/models/operations/removecoupon.d.ts +0 -55
- package/esm/models/operations/removecoupon.d.ts.map +1 -1
- package/esm/models/operations/removecoupon.js +0 -56
- package/esm/models/operations/removecoupon.js.map +1 -1
- package/esm/models/operations/removeloyaltypoints.d.ts +0 -55
- package/esm/models/operations/removeloyaltypoints.d.ts.map +1 -1
- package/esm/models/operations/removeloyaltypoints.js +0 -56
- package/esm/models/operations/removeloyaltypoints.js.map +1 -1
- package/esm/models/operations/retryorderpayment.d.ts +0 -87
- package/esm/models/operations/retryorderpayment.d.ts.map +1 -1
- package/esm/models/operations/retryorderpayment.js +0 -112
- package/esm/models/operations/retryorderpayment.js.map +1 -1
- package/esm/models/operations/searchproducts.d.ts +0 -84
- package/esm/models/operations/searchproducts.d.ts.map +1 -1
- package/esm/models/operations/searchproducts.js +0 -89
- package/esm/models/operations/searchproducts.js.map +1 -1
- package/esm/models/operations/updateaddressdetail.d.ts +0 -70
- package/esm/models/operations/updateaddressdetail.d.ts.map +1 -1
- package/esm/models/operations/updateaddressdetail.js +0 -110
- package/esm/models/operations/updateaddressdetail.js.map +1 -1
- package/esm/models/operations/updatecart.d.ts +0 -55
- package/esm/models/operations/updatecart.d.ts.map +1 -1
- package/esm/models/operations/updatecart.js +0 -61
- package/esm/models/operations/updatecart.js.map +1 -1
- package/esm/models/operations/updatefulfillmentpreference.d.ts +0 -55
- package/esm/models/operations/updatefulfillmentpreference.d.ts.map +1 -1
- package/esm/models/operations/updatefulfillmentpreference.js +0 -61
- package/esm/models/operations/updatefulfillmentpreference.js.map +1 -1
- package/esm/models/operations/updateuser.d.ts +0 -55
- package/esm/models/operations/updateuser.d.ts.map +1 -1
- package/esm/models/operations/updateuser.js +0 -61
- package/esm/models/operations/updateuser.js.map +1 -1
- package/esm/models/operations/verifyotp.d.ts +0 -85
- package/esm/models/operations/verifyotp.d.ts.map +1 -1
- package/esm/models/operations/verifyotp.js +1 -84
- package/esm/models/operations/verifyotp.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/anonymoususer.ts +0 -65
- package/src/models/components/appliedcoupon.ts +0 -67
- package/src/models/components/appliedpromotion.ts +0 -77
- package/src/models/components/associatedoption.ts +1 -41
- package/src/models/components/banktransfer.ts +0 -93
- package/src/models/components/booleanattribute.ts +0 -43
- package/src/models/components/cardpayment.ts +0 -108
- package/src/models/components/cart.ts +3 -177
- package/src/models/components/cartbasedserviceabilitycheck.ts +0 -41
- package/src/models/components/cartitem.ts +0 -146
- package/src/models/components/category.ts +0 -48
- package/src/models/components/collectinstore.ts +0 -45
- package/src/models/components/collectinstorefulfillment.ts +0 -64
- package/src/models/components/collectinstorefulfillmentinput.ts +0 -42
- package/src/models/components/colorattribute.ts +0 -76
- package/src/models/components/coloroption.ts +0 -68
- package/src/models/components/currency.ts +0 -35
- package/src/models/components/customeraddress.ts +0 -77
- package/src/models/components/customeraddressinput.ts +0 -59
- package/src/models/components/customerloyalty.ts +0 -61
- package/src/models/components/customerreadyforreview.ts +0 -54
- package/src/models/components/customerreview.ts +0 -208
- package/src/models/components/dateattribute.ts +0 -39
- package/src/models/components/deliveryfulfillment.ts +0 -71
- package/src/models/components/deliveryfulfillmentinput.ts +0 -43
- package/src/models/components/discountbasedpromotion.ts +0 -81
- package/src/models/components/fixedpricepromotion.ts +0 -58
- package/src/models/components/freegoodspromotion.ts +0 -61
- package/src/models/components/fulfillmentitem.ts +0 -48
- package/src/models/components/fulfillmentiteminput.ts +0 -42
- package/src/models/components/fulfillmentpreference.ts +0 -59
- package/src/models/components/fulfillmentpreferenceinput.ts +0 -51
- package/src/models/components/generateotpwithemail.ts +1 -58
- package/src/models/components/generateotpwithphone.ts +2 -75
- package/src/models/components/item.ts +1 -128
- package/src/models/components/juspayexpresscheckout.ts +0 -44
- package/src/models/components/juspayexpresscheckoutresponse.ts +0 -246
- package/src/models/components/juspayhypercheckout.ts +1 -63
- package/src/models/components/juspayhypercheckoutresponse.ts +0 -220
- package/src/models/components/juspaynetbanking.ts +3 -57
- package/src/models/components/juspaynewcard.ts +4 -92
- package/src/models/components/juspaysavedcardtoken.ts +4 -87
- package/src/models/components/juspayupicollect.ts +3 -59
- package/src/models/components/juspayupiintent.ts +3 -61
- package/src/models/components/lotbatchdetail.ts +0 -46
- package/src/models/components/multiselectattribute.ts +0 -43
- package/src/models/components/netbankingpayment.ts +0 -94
- package/src/models/components/notificationchannelpreferences.ts +0 -15
- package/src/models/components/notificationpreferences.ts +0 -15
- package/src/models/components/numberattribute.ts +0 -41
- package/src/models/components/order.ts +2 -327
- package/src/models/components/orderdetail.ts +3 -346
- package/src/models/components/orderitem.ts +0 -144
- package/src/models/components/orderlist.ts +1 -161
- package/src/models/components/orderpayment.ts +4 -64
- package/src/models/components/ordershipment.ts +1 -110
- package/src/models/components/pagination.ts +0 -46
- package/src/models/components/partialcollectanddelivery.ts +0 -165
- package/src/models/components/partialcollectanddeliveryinput.ts +0 -133
- package/src/models/components/paymentmethodpayload.ts +0 -38
- package/src/models/components/payupaymentinfo.ts +0 -103
- package/src/models/components/pincode.ts +0 -45
- package/src/models/components/pincodeserviceability.ts +0 -203
- package/src/models/components/product.ts +4 -147
- package/src/models/components/productattribute.ts +2 -90
- package/src/models/components/productbundleitem.ts +1 -137
- package/src/models/components/productcategory.ts +1 -59
- package/src/models/components/productdetail.ts +6 -180
- package/src/models/components/productimage.ts +0 -54
- package/src/models/components/productpricing.ts +0 -61
- package/src/models/components/productpromotion.ts +0 -131
- package/src/models/components/productreview.ts +0 -194
- package/src/models/components/productshipping.ts +0 -46
- package/src/models/components/productsubscription.ts +0 -103
- package/src/models/components/productvideo.ts +0 -55
- package/src/models/components/savedpaymentmethod.ts +0 -362
- package/src/models/components/searchproduct.ts +0 -38
- package/src/models/components/security.ts +0 -39
- package/src/models/components/seo.ts +0 -34
- package/src/models/components/shipmentitem.ts +0 -51
- package/src/models/components/singleselectattribute.ts +0 -43
- package/src/models/components/singleselectoption.ts +0 -39
- package/src/models/components/textattribute.ts +0 -39
- package/src/models/components/updatecartitem.ts +0 -42
- package/src/models/components/upipayment.ts +0 -90
- package/src/models/components/user.ts +0 -131
- package/src/models/components/variant.ts +1 -94
- package/src/models/components/variantdetail.ts +4 -168
- package/src/models/components/variantoption.ts +0 -107
- package/src/models/components/volumebasedpromotion.ts +0 -96
- package/src/models/components/walletpayment.ts +0 -90
- package/src/models/errors/badrequest.ts +0 -62
- package/src/models/errors/notfound.ts +0 -33
- package/src/models/errors/unauthorized.ts +0 -33
- package/src/models/operations/applycoupon.ts +0 -147
- package/src/models/operations/cancelorder.ts +1 -169
- package/src/models/operations/checkpincodeserviceability.ts +0 -119
- package/src/models/operations/createaddress.ts +0 -172
- package/src/models/operations/createcart.ts +0 -107
- package/src/models/operations/createcartaddress.ts +0 -225
- package/src/models/operations/createorder.ts +0 -162
- package/src/models/operations/deleteaddress.ts +0 -75
- package/src/models/operations/deletecart.ts +0 -69
- package/src/models/operations/deleteusercart.ts +0 -73
- package/src/models/operations/generateotp.ts +0 -155
- package/src/models/operations/getaddressdetail.ts +0 -195
- package/src/models/operations/getanonymoustoken.ts +0 -117
- package/src/models/operations/getcart.ts +0 -102
- package/src/models/operations/getfulfillmentoptions.ts +0 -143
- package/src/models/operations/getloyaltydetails.ts +0 -118
- package/src/models/operations/getorderdetail.ts +0 -110
- package/src/models/operations/getpaymentstatus.ts +0 -139
- package/src/models/operations/getproductdetail.ts +0 -115
- package/src/models/operations/getusercart.ts +0 -110
- package/src/models/operations/getuserdetail.ts +0 -106
- package/src/models/operations/getvariantdetail.ts +0 -117
- package/src/models/operations/listaddresses.ts +0 -196
- package/src/models/operations/listcategories.ts +0 -119
- package/src/models/operations/listcountrypincodes.ts +0 -115
- package/src/models/operations/listcrosssellproducts.ts +0 -123
- package/src/models/operations/listorders.ts +0 -117
- package/src/models/operations/listordershipments.ts +0 -112
- package/src/models/operations/listproductreviews.ts +0 -127
- package/src/models/operations/listproducts.ts +0 -121
- package/src/models/operations/listproductvariants.ts +0 -115
- package/src/models/operations/listsavedpaymentmethods.ts +0 -121
- package/src/models/operations/listsimilarproducts.ts +0 -120
- package/src/models/operations/listskus.ts +0 -118
- package/src/models/operations/listupsellproducts.ts +0 -120
- package/src/models/operations/listuserreviews.ts +0 -121
- package/src/models/operations/loginwithemail.ts +0 -156
- package/src/models/operations/loginwithphone.ts +0 -158
- package/src/models/operations/loginwithwhatsapp.ts +0 -160
- package/src/models/operations/logout.ts +0 -79
- package/src/models/operations/redeemloyaltypoints.ts +0 -149
- package/src/models/operations/refreshtoken.ts +0 -117
- package/src/models/operations/removecoupon.ts +0 -106
- package/src/models/operations/removeloyaltypoints.ts +0 -108
- package/src/models/operations/retryorderpayment.ts +0 -201
- package/src/models/operations/searchproducts.ts +0 -156
- package/src/models/operations/updateaddressdetail.ts +0 -178
- package/src/models/operations/updatecart.ts +0 -111
- package/src/models/operations/updatefulfillmentpreference.ts +0 -121
- package/src/models/operations/updateuser.ts +0 -111
- package/src/models/operations/verifyotp.ts +1 -138
- package/docs/sdks/auth/README.md +0 -874
- package/docs/sdks/carts/README.md +0 -1030
- package/docs/sdks/catalog/README.md +0 -876
- package/docs/sdks/common/README.md +0 -87
- package/docs/sdks/customers/README.md +0 -714
- package/docs/sdks/orders/README.md +0 -571
- package/docs/sdks/shipping/README.md +0 -169
- package/examples/README.md +0 -31
|
@@ -1,1030 +0,0 @@
|
|
|
1
|
-
# Carts
|
|
2
|
-
(*carts*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
### Available Operations
|
|
7
|
-
|
|
8
|
-
* [createCart](#createcart) - Create cart
|
|
9
|
-
* [getUserCart](#getusercart) - Retrieve cart using user id
|
|
10
|
-
* [removeUserCart](#removeusercart) - Delete cart using user id
|
|
11
|
-
* [getCart](#getcart) - Retrieve cart detail
|
|
12
|
-
* [deleteCart](#deletecart) - Delete cart
|
|
13
|
-
* [createCartAddress](#createcartaddress) - Update cart address
|
|
14
|
-
* [applyCoupon](#applycoupon) - Apply coupon
|
|
15
|
-
* [removeCoupon](#removecoupon) - Remove coupon
|
|
16
|
-
* [updateFulfillmentPreference](#updatefulfillmentpreference) - Update fulfillment preference
|
|
17
|
-
* [updateCart](#updatecart) - Add/delete cart item
|
|
18
|
-
* [redeemLoyaltyPoints](#redeemloyaltypoints) - Redeem loyalty points
|
|
19
|
-
* [removeLoyaltyPoints](#removeloyaltypoints) - Remove loyalty points
|
|
20
|
-
|
|
21
|
-
## createCart
|
|
22
|
-
|
|
23
|
-
Create cart
|
|
24
|
-
|
|
25
|
-
API reference for the create-cart operation
|
|
26
|
-
<https://llm-docs.commercengine.io/storefront/operations/create-cart>
|
|
27
|
-
|
|
28
|
-
### Example Usage
|
|
29
|
-
|
|
30
|
-
<!-- UsageSnippet language="typescript" operationID="create-cart" method="post" path="/carts" -->
|
|
31
|
-
```typescript
|
|
32
|
-
import { CeStorefront } from "ce-storefront";
|
|
33
|
-
|
|
34
|
-
const ceStorefront = new CeStorefront({
|
|
35
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
async function run() {
|
|
39
|
-
const result = await ceStorefront.carts.createCart({
|
|
40
|
-
items: [
|
|
41
|
-
{
|
|
42
|
-
productId: "01H9XYZ12345ABCDE",
|
|
43
|
-
variantId: null,
|
|
44
|
-
quantity: 1,
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
productId: "01H9XYZ12345ABCDE",
|
|
48
|
-
variantId: null,
|
|
49
|
-
quantity: 1,
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
productId: "01H9XYZ12345ABCDE",
|
|
53
|
-
variantId: null,
|
|
54
|
-
quantity: 1,
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
console.log(result);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
run();
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### Standalone function
|
|
66
|
-
|
|
67
|
-
The standalone function version of this method:
|
|
68
|
-
|
|
69
|
-
```typescript
|
|
70
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
71
|
-
import { cartsCreateCart } from "ce-storefront/funcs/cartsCreateCart.js";
|
|
72
|
-
|
|
73
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
74
|
-
// You can create one instance of it to use across an application.
|
|
75
|
-
const ceStorefront = new CeStorefrontCore({
|
|
76
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
async function run() {
|
|
80
|
-
const res = await cartsCreateCart(ceStorefront, {
|
|
81
|
-
items: [
|
|
82
|
-
{
|
|
83
|
-
productId: "01H9XYZ12345ABCDE",
|
|
84
|
-
variantId: null,
|
|
85
|
-
quantity: 1,
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
productId: "01H9XYZ12345ABCDE",
|
|
89
|
-
variantId: null,
|
|
90
|
-
quantity: 1,
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
productId: "01H9XYZ12345ABCDE",
|
|
94
|
-
variantId: null,
|
|
95
|
-
quantity: 1,
|
|
96
|
-
},
|
|
97
|
-
],
|
|
98
|
-
});
|
|
99
|
-
if (res.ok) {
|
|
100
|
-
const { value: result } = res;
|
|
101
|
-
console.log(result);
|
|
102
|
-
} else {
|
|
103
|
-
console.log("cartsCreateCart failed:", res.error);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
run();
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
### Parameters
|
|
111
|
-
|
|
112
|
-
| Parameter | Type | Required | Description |
|
|
113
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
114
|
-
| `request` | [operations.CreateCartRequestBody](../../models/operations/createcartrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
115
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
116
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
117
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
118
|
-
|
|
119
|
-
### Response
|
|
120
|
-
|
|
121
|
-
**Promise\<[operations.CreateCartResponseBody](../../models/operations/createcartresponsebody.md)\>**
|
|
122
|
-
|
|
123
|
-
### Errors
|
|
124
|
-
|
|
125
|
-
| Error Type | Status Code | Content Type |
|
|
126
|
-
| ------------------- | ------------------- | ------------------- |
|
|
127
|
-
| errors.BadRequest | 400 | application/json |
|
|
128
|
-
| errors.Unauthorized | 401 | application/json |
|
|
129
|
-
| errors.NotFound | 404 | application/json |
|
|
130
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
131
|
-
|
|
132
|
-
## getUserCart
|
|
133
|
-
|
|
134
|
-
Retrieve cart detail using user id
|
|
135
|
-
|
|
136
|
-
API reference for the get-user-cart operation
|
|
137
|
-
<https://llm-docs.commercengine.io/storefront/operations/get-user-cart>
|
|
138
|
-
|
|
139
|
-
### Example Usage
|
|
140
|
-
|
|
141
|
-
<!-- UsageSnippet language="typescript" operationID="get-user-cart" method="get" path="/carts/users/{user_id}" -->
|
|
142
|
-
```typescript
|
|
143
|
-
import { CeStorefront } from "ce-storefront";
|
|
144
|
-
|
|
145
|
-
const ceStorefront = new CeStorefront({
|
|
146
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
async function run() {
|
|
150
|
-
const result = await ceStorefront.carts.getUserCart({
|
|
151
|
-
userId: "<id>",
|
|
152
|
-
});
|
|
153
|
-
|
|
154
|
-
console.log(result);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
run();
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
### Standalone function
|
|
161
|
-
|
|
162
|
-
The standalone function version of this method:
|
|
163
|
-
|
|
164
|
-
```typescript
|
|
165
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
166
|
-
import { cartsGetUserCart } from "ce-storefront/funcs/cartsGetUserCart.js";
|
|
167
|
-
|
|
168
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
169
|
-
// You can create one instance of it to use across an application.
|
|
170
|
-
const ceStorefront = new CeStorefrontCore({
|
|
171
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
172
|
-
});
|
|
173
|
-
|
|
174
|
-
async function run() {
|
|
175
|
-
const res = await cartsGetUserCart(ceStorefront, {
|
|
176
|
-
userId: "<id>",
|
|
177
|
-
});
|
|
178
|
-
if (res.ok) {
|
|
179
|
-
const { value: result } = res;
|
|
180
|
-
console.log(result);
|
|
181
|
-
} else {
|
|
182
|
-
console.log("cartsGetUserCart failed:", res.error);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
run();
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
### Parameters
|
|
190
|
-
|
|
191
|
-
| Parameter | Type | Required | Description |
|
|
192
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
193
|
-
| `request` | [operations.GetUserCartRequest](../../models/operations/getusercartrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
194
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
195
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
196
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
197
|
-
|
|
198
|
-
### Response
|
|
199
|
-
|
|
200
|
-
**Promise\<[operations.GetUserCartResponseBody](../../models/operations/getusercartresponsebody.md)\>**
|
|
201
|
-
|
|
202
|
-
### Errors
|
|
203
|
-
|
|
204
|
-
| Error Type | Status Code | Content Type |
|
|
205
|
-
| ------------------- | ------------------- | ------------------- |
|
|
206
|
-
| errors.Unauthorized | 401 | application/json |
|
|
207
|
-
| errors.NotFound | 404 | application/json |
|
|
208
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
209
|
-
|
|
210
|
-
## removeUserCart
|
|
211
|
-
|
|
212
|
-
delete all items from the cart using user id.
|
|
213
|
-
|
|
214
|
-
API reference for the delete-user-cart operation
|
|
215
|
-
<https://llm-docs.commercengine.io/storefront/operations/delete-user-cart>
|
|
216
|
-
|
|
217
|
-
### Example Usage
|
|
218
|
-
|
|
219
|
-
<!-- UsageSnippet language="typescript" operationID="delete-user-cart" method="delete" path="/carts/users/{user_id}" -->
|
|
220
|
-
```typescript
|
|
221
|
-
import { CeStorefront } from "ce-storefront";
|
|
222
|
-
|
|
223
|
-
const ceStorefront = new CeStorefront({
|
|
224
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
225
|
-
});
|
|
226
|
-
|
|
227
|
-
async function run() {
|
|
228
|
-
const result = await ceStorefront.carts.removeUserCart({
|
|
229
|
-
userId: "<id>",
|
|
230
|
-
});
|
|
231
|
-
|
|
232
|
-
console.log(result);
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
run();
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
### Standalone function
|
|
239
|
-
|
|
240
|
-
The standalone function version of this method:
|
|
241
|
-
|
|
242
|
-
```typescript
|
|
243
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
244
|
-
import { cartsRemoveUserCart } from "ce-storefront/funcs/cartsRemoveUserCart.js";
|
|
245
|
-
|
|
246
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
247
|
-
// You can create one instance of it to use across an application.
|
|
248
|
-
const ceStorefront = new CeStorefrontCore({
|
|
249
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
250
|
-
});
|
|
251
|
-
|
|
252
|
-
async function run() {
|
|
253
|
-
const res = await cartsRemoveUserCart(ceStorefront, {
|
|
254
|
-
userId: "<id>",
|
|
255
|
-
});
|
|
256
|
-
if (res.ok) {
|
|
257
|
-
const { value: result } = res;
|
|
258
|
-
console.log(result);
|
|
259
|
-
} else {
|
|
260
|
-
console.log("cartsRemoveUserCart failed:", res.error);
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
run();
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
### Parameters
|
|
268
|
-
|
|
269
|
-
| Parameter | Type | Required | Description |
|
|
270
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
271
|
-
| `request` | [operations.DeleteUserCartRequest](../../models/operations/deleteusercartrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
272
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
273
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
274
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
275
|
-
|
|
276
|
-
### Response
|
|
277
|
-
|
|
278
|
-
**Promise\<[operations.DeleteUserCartResponseBody](../../models/operations/deleteusercartresponsebody.md)\>**
|
|
279
|
-
|
|
280
|
-
### Errors
|
|
281
|
-
|
|
282
|
-
| Error Type | Status Code | Content Type |
|
|
283
|
-
| ------------------- | ------------------- | ------------------- |
|
|
284
|
-
| errors.Unauthorized | 401 | application/json |
|
|
285
|
-
| errors.NotFound | 404 | application/json |
|
|
286
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
287
|
-
|
|
288
|
-
## getCart
|
|
289
|
-
|
|
290
|
-
Retrieve cart detail
|
|
291
|
-
|
|
292
|
-
API reference for the get-cart operation
|
|
293
|
-
<https://llm-docs.commercengine.io/storefront/operations/get-cart>
|
|
294
|
-
|
|
295
|
-
### Example Usage
|
|
296
|
-
|
|
297
|
-
<!-- UsageSnippet language="typescript" operationID="get-cart" method="get" path="/carts/{id}" -->
|
|
298
|
-
```typescript
|
|
299
|
-
import { CeStorefront } from "ce-storefront";
|
|
300
|
-
|
|
301
|
-
const ceStorefront = new CeStorefront({
|
|
302
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
303
|
-
});
|
|
304
|
-
|
|
305
|
-
async function run() {
|
|
306
|
-
const result = await ceStorefront.carts.getCart({
|
|
307
|
-
id: "<id>",
|
|
308
|
-
});
|
|
309
|
-
|
|
310
|
-
console.log(result);
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
run();
|
|
314
|
-
```
|
|
315
|
-
|
|
316
|
-
### Standalone function
|
|
317
|
-
|
|
318
|
-
The standalone function version of this method:
|
|
319
|
-
|
|
320
|
-
```typescript
|
|
321
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
322
|
-
import { cartsGetCart } from "ce-storefront/funcs/cartsGetCart.js";
|
|
323
|
-
|
|
324
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
325
|
-
// You can create one instance of it to use across an application.
|
|
326
|
-
const ceStorefront = new CeStorefrontCore({
|
|
327
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
328
|
-
});
|
|
329
|
-
|
|
330
|
-
async function run() {
|
|
331
|
-
const res = await cartsGetCart(ceStorefront, {
|
|
332
|
-
id: "<id>",
|
|
333
|
-
});
|
|
334
|
-
if (res.ok) {
|
|
335
|
-
const { value: result } = res;
|
|
336
|
-
console.log(result);
|
|
337
|
-
} else {
|
|
338
|
-
console.log("cartsGetCart failed:", res.error);
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
run();
|
|
343
|
-
```
|
|
344
|
-
|
|
345
|
-
### Parameters
|
|
346
|
-
|
|
347
|
-
| Parameter | Type | Required | Description |
|
|
348
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
349
|
-
| `request` | [operations.GetCartRequest](../../models/operations/getcartrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
350
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
351
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
352
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
353
|
-
|
|
354
|
-
### Response
|
|
355
|
-
|
|
356
|
-
**Promise\<[operations.GetCartResponseBody](../../models/operations/getcartresponsebody.md)\>**
|
|
357
|
-
|
|
358
|
-
### Errors
|
|
359
|
-
|
|
360
|
-
| Error Type | Status Code | Content Type |
|
|
361
|
-
| ------------------- | ------------------- | ------------------- |
|
|
362
|
-
| errors.Unauthorized | 401 | application/json |
|
|
363
|
-
| errors.NotFound | 404 | application/json |
|
|
364
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
365
|
-
|
|
366
|
-
## deleteCart
|
|
367
|
-
|
|
368
|
-
delete all items from the cart.
|
|
369
|
-
|
|
370
|
-
API reference for the delete-cart operation
|
|
371
|
-
<https://llm-docs.commercengine.io/storefront/operations/delete-cart>
|
|
372
|
-
|
|
373
|
-
### Example Usage
|
|
374
|
-
|
|
375
|
-
<!-- UsageSnippet language="typescript" operationID="delete-cart" method="delete" path="/carts/{id}" -->
|
|
376
|
-
```typescript
|
|
377
|
-
import { CeStorefront } from "ce-storefront";
|
|
378
|
-
|
|
379
|
-
const ceStorefront = new CeStorefront({
|
|
380
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
381
|
-
});
|
|
382
|
-
|
|
383
|
-
async function run() {
|
|
384
|
-
const result = await ceStorefront.carts.deleteCart({
|
|
385
|
-
id: "<id>",
|
|
386
|
-
});
|
|
387
|
-
|
|
388
|
-
console.log(result);
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
run();
|
|
392
|
-
```
|
|
393
|
-
|
|
394
|
-
### Standalone function
|
|
395
|
-
|
|
396
|
-
The standalone function version of this method:
|
|
397
|
-
|
|
398
|
-
```typescript
|
|
399
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
400
|
-
import { cartsDeleteCart } from "ce-storefront/funcs/cartsDeleteCart.js";
|
|
401
|
-
|
|
402
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
403
|
-
// You can create one instance of it to use across an application.
|
|
404
|
-
const ceStorefront = new CeStorefrontCore({
|
|
405
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
406
|
-
});
|
|
407
|
-
|
|
408
|
-
async function run() {
|
|
409
|
-
const res = await cartsDeleteCart(ceStorefront, {
|
|
410
|
-
id: "<id>",
|
|
411
|
-
});
|
|
412
|
-
if (res.ok) {
|
|
413
|
-
const { value: result } = res;
|
|
414
|
-
console.log(result);
|
|
415
|
-
} else {
|
|
416
|
-
console.log("cartsDeleteCart failed:", res.error);
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
run();
|
|
421
|
-
```
|
|
422
|
-
|
|
423
|
-
### Parameters
|
|
424
|
-
|
|
425
|
-
| Parameter | Type | Required | Description |
|
|
426
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
427
|
-
| `request` | [operations.DeleteCartRequest](../../models/operations/deletecartrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
428
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
429
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
430
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
431
|
-
|
|
432
|
-
### Response
|
|
433
|
-
|
|
434
|
-
**Promise\<[operations.DeleteCartResponseBody](../../models/operations/deletecartresponsebody.md)\>**
|
|
435
|
-
|
|
436
|
-
### Errors
|
|
437
|
-
|
|
438
|
-
| Error Type | Status Code | Content Type |
|
|
439
|
-
| ------------------- | ------------------- | ------------------- |
|
|
440
|
-
| errors.Unauthorized | 401 | application/json |
|
|
441
|
-
| errors.NotFound | 404 | application/json |
|
|
442
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
443
|
-
|
|
444
|
-
## createCartAddress
|
|
445
|
-
|
|
446
|
-
Update billing and shipping address
|
|
447
|
-
|
|
448
|
-
API reference for the create-cart-address operation
|
|
449
|
-
<https://llm-docs.commercengine.io/storefront/operations/create-cart-address>
|
|
450
|
-
|
|
451
|
-
### Example Usage
|
|
452
|
-
|
|
453
|
-
<!-- UsageSnippet language="typescript" operationID="create-cart-address" method="post" path="/carts/{id}/address" -->
|
|
454
|
-
```typescript
|
|
455
|
-
import { CeStorefront } from "ce-storefront";
|
|
456
|
-
|
|
457
|
-
const ceStorefront = new CeStorefront({
|
|
458
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
459
|
-
});
|
|
460
|
-
|
|
461
|
-
async function run() {
|
|
462
|
-
const result = await ceStorefront.carts.createCartAddress({
|
|
463
|
-
id: "<id>",
|
|
464
|
-
requestBody: {
|
|
465
|
-
billingAddressId: "<id>",
|
|
466
|
-
shippingAddressId: "<id>",
|
|
467
|
-
},
|
|
468
|
-
});
|
|
469
|
-
|
|
470
|
-
console.log(result);
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
run();
|
|
474
|
-
```
|
|
475
|
-
|
|
476
|
-
### Standalone function
|
|
477
|
-
|
|
478
|
-
The standalone function version of this method:
|
|
479
|
-
|
|
480
|
-
```typescript
|
|
481
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
482
|
-
import { cartsCreateCartAddress } from "ce-storefront/funcs/cartsCreateCartAddress.js";
|
|
483
|
-
|
|
484
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
485
|
-
// You can create one instance of it to use across an application.
|
|
486
|
-
const ceStorefront = new CeStorefrontCore({
|
|
487
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
488
|
-
});
|
|
489
|
-
|
|
490
|
-
async function run() {
|
|
491
|
-
const res = await cartsCreateCartAddress(ceStorefront, {
|
|
492
|
-
id: "<id>",
|
|
493
|
-
requestBody: {
|
|
494
|
-
billingAddressId: "<id>",
|
|
495
|
-
shippingAddressId: "<id>",
|
|
496
|
-
},
|
|
497
|
-
});
|
|
498
|
-
if (res.ok) {
|
|
499
|
-
const { value: result } = res;
|
|
500
|
-
console.log(result);
|
|
501
|
-
} else {
|
|
502
|
-
console.log("cartsCreateCartAddress failed:", res.error);
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
run();
|
|
507
|
-
```
|
|
508
|
-
|
|
509
|
-
### Parameters
|
|
510
|
-
|
|
511
|
-
| Parameter | Type | Required | Description |
|
|
512
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
513
|
-
| `request` | [operations.CreateCartAddressRequest](../../models/operations/createcartaddressrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
514
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
515
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
516
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
517
|
-
|
|
518
|
-
### Response
|
|
519
|
-
|
|
520
|
-
**Promise\<[operations.CreateCartAddressResponseBody](../../models/operations/createcartaddressresponsebody.md)\>**
|
|
521
|
-
|
|
522
|
-
### Errors
|
|
523
|
-
|
|
524
|
-
| Error Type | Status Code | Content Type |
|
|
525
|
-
| ------------------- | ------------------- | ------------------- |
|
|
526
|
-
| errors.BadRequest | 400 | application/json |
|
|
527
|
-
| errors.Unauthorized | 401 | application/json |
|
|
528
|
-
| errors.NotFound | 404 | application/json |
|
|
529
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
530
|
-
|
|
531
|
-
## applyCoupon
|
|
532
|
-
|
|
533
|
-
Apply coupon
|
|
534
|
-
|
|
535
|
-
API reference for the apply-coupon operation
|
|
536
|
-
<https://llm-docs.commercengine.io/storefront/operations/apply-coupon>
|
|
537
|
-
|
|
538
|
-
### Example Usage
|
|
539
|
-
|
|
540
|
-
<!-- UsageSnippet language="typescript" operationID="apply-coupon" method="post" path="/carts/{id}/coupon" -->
|
|
541
|
-
```typescript
|
|
542
|
-
import { CeStorefront } from "ce-storefront";
|
|
543
|
-
|
|
544
|
-
const ceStorefront = new CeStorefront({
|
|
545
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
546
|
-
});
|
|
547
|
-
|
|
548
|
-
async function run() {
|
|
549
|
-
const result = await ceStorefront.carts.applyCoupon({
|
|
550
|
-
id: "<id>",
|
|
551
|
-
requestBody: {
|
|
552
|
-
couponCode: "FLAT100OFF",
|
|
553
|
-
},
|
|
554
|
-
});
|
|
555
|
-
|
|
556
|
-
console.log(result);
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
run();
|
|
560
|
-
```
|
|
561
|
-
|
|
562
|
-
### Standalone function
|
|
563
|
-
|
|
564
|
-
The standalone function version of this method:
|
|
565
|
-
|
|
566
|
-
```typescript
|
|
567
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
568
|
-
import { cartsApplyCoupon } from "ce-storefront/funcs/cartsApplyCoupon.js";
|
|
569
|
-
|
|
570
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
571
|
-
// You can create one instance of it to use across an application.
|
|
572
|
-
const ceStorefront = new CeStorefrontCore({
|
|
573
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
574
|
-
});
|
|
575
|
-
|
|
576
|
-
async function run() {
|
|
577
|
-
const res = await cartsApplyCoupon(ceStorefront, {
|
|
578
|
-
id: "<id>",
|
|
579
|
-
requestBody: {
|
|
580
|
-
couponCode: "FLAT100OFF",
|
|
581
|
-
},
|
|
582
|
-
});
|
|
583
|
-
if (res.ok) {
|
|
584
|
-
const { value: result } = res;
|
|
585
|
-
console.log(result);
|
|
586
|
-
} else {
|
|
587
|
-
console.log("cartsApplyCoupon failed:", res.error);
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
run();
|
|
592
|
-
```
|
|
593
|
-
|
|
594
|
-
### Parameters
|
|
595
|
-
|
|
596
|
-
| Parameter | Type | Required | Description |
|
|
597
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
598
|
-
| `request` | [operations.ApplyCouponRequest](../../models/operations/applycouponrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
599
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
600
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
601
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
602
|
-
|
|
603
|
-
### Response
|
|
604
|
-
|
|
605
|
-
**Promise\<[operations.ApplyCouponResponseBody](../../models/operations/applycouponresponsebody.md)\>**
|
|
606
|
-
|
|
607
|
-
### Errors
|
|
608
|
-
|
|
609
|
-
| Error Type | Status Code | Content Type |
|
|
610
|
-
| ------------------- | ------------------- | ------------------- |
|
|
611
|
-
| errors.BadRequest | 400 | application/json |
|
|
612
|
-
| errors.Unauthorized | 401 | application/json |
|
|
613
|
-
| errors.NotFound | 404 | application/json |
|
|
614
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
615
|
-
|
|
616
|
-
## removeCoupon
|
|
617
|
-
|
|
618
|
-
remove coupon from cart
|
|
619
|
-
|
|
620
|
-
API reference for the remove-coupon operation
|
|
621
|
-
<https://llm-docs.commercengine.io/storefront/operations/remove-coupon>
|
|
622
|
-
|
|
623
|
-
### Example Usage
|
|
624
|
-
|
|
625
|
-
<!-- UsageSnippet language="typescript" operationID="remove-coupon" method="delete" path="/carts/{id}/coupon" -->
|
|
626
|
-
```typescript
|
|
627
|
-
import { CeStorefront } from "ce-storefront";
|
|
628
|
-
|
|
629
|
-
const ceStorefront = new CeStorefront({
|
|
630
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
631
|
-
});
|
|
632
|
-
|
|
633
|
-
async function run() {
|
|
634
|
-
const result = await ceStorefront.carts.removeCoupon({
|
|
635
|
-
id: "<id>",
|
|
636
|
-
});
|
|
637
|
-
|
|
638
|
-
console.log(result);
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
run();
|
|
642
|
-
```
|
|
643
|
-
|
|
644
|
-
### Standalone function
|
|
645
|
-
|
|
646
|
-
The standalone function version of this method:
|
|
647
|
-
|
|
648
|
-
```typescript
|
|
649
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
650
|
-
import { cartsRemoveCoupon } from "ce-storefront/funcs/cartsRemoveCoupon.js";
|
|
651
|
-
|
|
652
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
653
|
-
// You can create one instance of it to use across an application.
|
|
654
|
-
const ceStorefront = new CeStorefrontCore({
|
|
655
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
656
|
-
});
|
|
657
|
-
|
|
658
|
-
async function run() {
|
|
659
|
-
const res = await cartsRemoveCoupon(ceStorefront, {
|
|
660
|
-
id: "<id>",
|
|
661
|
-
});
|
|
662
|
-
if (res.ok) {
|
|
663
|
-
const { value: result } = res;
|
|
664
|
-
console.log(result);
|
|
665
|
-
} else {
|
|
666
|
-
console.log("cartsRemoveCoupon failed:", res.error);
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
run();
|
|
671
|
-
```
|
|
672
|
-
|
|
673
|
-
### Parameters
|
|
674
|
-
|
|
675
|
-
| Parameter | Type | Required | Description |
|
|
676
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
677
|
-
| `request` | [operations.RemoveCouponRequest](../../models/operations/removecouponrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
678
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
679
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
680
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
681
|
-
|
|
682
|
-
### Response
|
|
683
|
-
|
|
684
|
-
**Promise\<[operations.RemoveCouponResponseBody](../../models/operations/removecouponresponsebody.md)\>**
|
|
685
|
-
|
|
686
|
-
### Errors
|
|
687
|
-
|
|
688
|
-
| Error Type | Status Code | Content Type |
|
|
689
|
-
| ------------------- | ------------------- | ------------------- |
|
|
690
|
-
| errors.BadRequest | 400 | application/json |
|
|
691
|
-
| errors.Unauthorized | 401 | application/json |
|
|
692
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
693
|
-
|
|
694
|
-
## updateFulfillmentPreference
|
|
695
|
-
|
|
696
|
-
Update fulfillment preference
|
|
697
|
-
|
|
698
|
-
API reference for the update-fulfillment-preference operation
|
|
699
|
-
<https://llm-docs.commercengine.io/storefront/operations/update-fulfillment-preference>
|
|
700
|
-
|
|
701
|
-
### Example Usage
|
|
702
|
-
|
|
703
|
-
<!-- UsageSnippet language="typescript" operationID="update-fulfillment-preference" method="post" path="/carts/{id}/fulfillment-preference" -->
|
|
704
|
-
```typescript
|
|
705
|
-
import { CeStorefront } from "ce-storefront";
|
|
706
|
-
|
|
707
|
-
const ceStorefront = new CeStorefront({
|
|
708
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
709
|
-
});
|
|
710
|
-
|
|
711
|
-
async function run() {
|
|
712
|
-
const result = await ceStorefront.carts.updateFulfillmentPreference({
|
|
713
|
-
id: "<id>",
|
|
714
|
-
fulfillmentPreference: {
|
|
715
|
-
fulfillmentType: "delivery",
|
|
716
|
-
shippingProviderId: "<id>",
|
|
717
|
-
},
|
|
718
|
-
});
|
|
719
|
-
|
|
720
|
-
console.log(result);
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
run();
|
|
724
|
-
```
|
|
725
|
-
|
|
726
|
-
### Standalone function
|
|
727
|
-
|
|
728
|
-
The standalone function version of this method:
|
|
729
|
-
|
|
730
|
-
```typescript
|
|
731
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
732
|
-
import { cartsUpdateFulfillmentPreference } from "ce-storefront/funcs/cartsUpdateFulfillmentPreference.js";
|
|
733
|
-
|
|
734
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
735
|
-
// You can create one instance of it to use across an application.
|
|
736
|
-
const ceStorefront = new CeStorefrontCore({
|
|
737
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
738
|
-
});
|
|
739
|
-
|
|
740
|
-
async function run() {
|
|
741
|
-
const res = await cartsUpdateFulfillmentPreference(ceStorefront, {
|
|
742
|
-
id: "<id>",
|
|
743
|
-
fulfillmentPreference: {
|
|
744
|
-
fulfillmentType: "delivery",
|
|
745
|
-
shippingProviderId: "<id>",
|
|
746
|
-
},
|
|
747
|
-
});
|
|
748
|
-
if (res.ok) {
|
|
749
|
-
const { value: result } = res;
|
|
750
|
-
console.log(result);
|
|
751
|
-
} else {
|
|
752
|
-
console.log("cartsUpdateFulfillmentPreference failed:", res.error);
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
run();
|
|
757
|
-
```
|
|
758
|
-
|
|
759
|
-
### Parameters
|
|
760
|
-
|
|
761
|
-
| Parameter | Type | Required | Description |
|
|
762
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
763
|
-
| `request` | [operations.UpdateFulfillmentPreferenceRequest](../../models/operations/updatefulfillmentpreferencerequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
764
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
765
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
766
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
767
|
-
|
|
768
|
-
### Response
|
|
769
|
-
|
|
770
|
-
**Promise\<[operations.UpdateFulfillmentPreferenceResponseBody](../../models/operations/updatefulfillmentpreferenceresponsebody.md)\>**
|
|
771
|
-
|
|
772
|
-
### Errors
|
|
773
|
-
|
|
774
|
-
| Error Type | Status Code | Content Type |
|
|
775
|
-
| ------------------- | ------------------- | ------------------- |
|
|
776
|
-
| errors.BadRequest | 400 | application/json |
|
|
777
|
-
| errors.Unauthorized | 401 | application/json |
|
|
778
|
-
| errors.NotFound | 404 | application/json |
|
|
779
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
780
|
-
|
|
781
|
-
## updateCart
|
|
782
|
-
|
|
783
|
-
Add Item to cart. To delete item from cart, pass quantity = 0
|
|
784
|
-
|
|
785
|
-
API reference for the update-cart operation
|
|
786
|
-
<https://llm-docs.commercengine.io/storefront/operations/update-cart>
|
|
787
|
-
|
|
788
|
-
### Example Usage
|
|
789
|
-
|
|
790
|
-
<!-- UsageSnippet language="typescript" operationID="update-cart" method="post" path="/carts/{id}/items" -->
|
|
791
|
-
```typescript
|
|
792
|
-
import { CeStorefront } from "ce-storefront";
|
|
793
|
-
|
|
794
|
-
const ceStorefront = new CeStorefront({
|
|
795
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
796
|
-
});
|
|
797
|
-
|
|
798
|
-
async function run() {
|
|
799
|
-
const result = await ceStorefront.carts.updateCart({
|
|
800
|
-
id: "<id>",
|
|
801
|
-
updateCartItem: {
|
|
802
|
-
productId: "01H9XYZ12345ABCDE",
|
|
803
|
-
variantId: null,
|
|
804
|
-
quantity: 1,
|
|
805
|
-
},
|
|
806
|
-
});
|
|
807
|
-
|
|
808
|
-
console.log(result);
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
run();
|
|
812
|
-
```
|
|
813
|
-
|
|
814
|
-
### Standalone function
|
|
815
|
-
|
|
816
|
-
The standalone function version of this method:
|
|
817
|
-
|
|
818
|
-
```typescript
|
|
819
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
820
|
-
import { cartsUpdateCart } from "ce-storefront/funcs/cartsUpdateCart.js";
|
|
821
|
-
|
|
822
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
823
|
-
// You can create one instance of it to use across an application.
|
|
824
|
-
const ceStorefront = new CeStorefrontCore({
|
|
825
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
826
|
-
});
|
|
827
|
-
|
|
828
|
-
async function run() {
|
|
829
|
-
const res = await cartsUpdateCart(ceStorefront, {
|
|
830
|
-
id: "<id>",
|
|
831
|
-
updateCartItem: {
|
|
832
|
-
productId: "01H9XYZ12345ABCDE",
|
|
833
|
-
variantId: null,
|
|
834
|
-
quantity: 1,
|
|
835
|
-
},
|
|
836
|
-
});
|
|
837
|
-
if (res.ok) {
|
|
838
|
-
const { value: result } = res;
|
|
839
|
-
console.log(result);
|
|
840
|
-
} else {
|
|
841
|
-
console.log("cartsUpdateCart failed:", res.error);
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
run();
|
|
846
|
-
```
|
|
847
|
-
|
|
848
|
-
### Parameters
|
|
849
|
-
|
|
850
|
-
| Parameter | Type | Required | Description |
|
|
851
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
852
|
-
| `request` | [operations.UpdateCartRequest](../../models/operations/updatecartrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
853
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
854
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
855
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
856
|
-
|
|
857
|
-
### Response
|
|
858
|
-
|
|
859
|
-
**Promise\<[operations.UpdateCartResponseBody](../../models/operations/updatecartresponsebody.md)\>**
|
|
860
|
-
|
|
861
|
-
### Errors
|
|
862
|
-
|
|
863
|
-
| Error Type | Status Code | Content Type |
|
|
864
|
-
| ------------------- | ------------------- | ------------------- |
|
|
865
|
-
| errors.BadRequest | 400 | application/json |
|
|
866
|
-
| errors.Unauthorized | 401 | application/json |
|
|
867
|
-
| errors.NotFound | 404 | application/json |
|
|
868
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
869
|
-
|
|
870
|
-
## redeemLoyaltyPoints
|
|
871
|
-
|
|
872
|
-
Redeem loyalty points
|
|
873
|
-
|
|
874
|
-
API reference for the redeem-loyalty-points operation
|
|
875
|
-
<https://llm-docs.commercengine.io/storefront/operations/redeem-loyalty-points>
|
|
876
|
-
|
|
877
|
-
### Example Usage
|
|
878
|
-
|
|
879
|
-
<!-- UsageSnippet language="typescript" operationID="redeem-loyalty-points" method="post" path="/carts/{id}/loyalty-points" -->
|
|
880
|
-
```typescript
|
|
881
|
-
import { CeStorefront } from "ce-storefront";
|
|
882
|
-
|
|
883
|
-
const ceStorefront = new CeStorefront({
|
|
884
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
885
|
-
});
|
|
886
|
-
|
|
887
|
-
async function run() {
|
|
888
|
-
const result = await ceStorefront.carts.redeemLoyaltyPoints({
|
|
889
|
-
id: "<id>",
|
|
890
|
-
requestBody: {
|
|
891
|
-
loyaltyPointRedeemed: 1000,
|
|
892
|
-
},
|
|
893
|
-
});
|
|
894
|
-
|
|
895
|
-
console.log(result);
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
run();
|
|
899
|
-
```
|
|
900
|
-
|
|
901
|
-
### Standalone function
|
|
902
|
-
|
|
903
|
-
The standalone function version of this method:
|
|
904
|
-
|
|
905
|
-
```typescript
|
|
906
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
907
|
-
import { cartsRedeemLoyaltyPoints } from "ce-storefront/funcs/cartsRedeemLoyaltyPoints.js";
|
|
908
|
-
|
|
909
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
910
|
-
// You can create one instance of it to use across an application.
|
|
911
|
-
const ceStorefront = new CeStorefrontCore({
|
|
912
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
913
|
-
});
|
|
914
|
-
|
|
915
|
-
async function run() {
|
|
916
|
-
const res = await cartsRedeemLoyaltyPoints(ceStorefront, {
|
|
917
|
-
id: "<id>",
|
|
918
|
-
requestBody: {
|
|
919
|
-
loyaltyPointRedeemed: 1000,
|
|
920
|
-
},
|
|
921
|
-
});
|
|
922
|
-
if (res.ok) {
|
|
923
|
-
const { value: result } = res;
|
|
924
|
-
console.log(result);
|
|
925
|
-
} else {
|
|
926
|
-
console.log("cartsRedeemLoyaltyPoints failed:", res.error);
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
run();
|
|
931
|
-
```
|
|
932
|
-
|
|
933
|
-
### Parameters
|
|
934
|
-
|
|
935
|
-
| Parameter | Type | Required | Description |
|
|
936
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
937
|
-
| `request` | [operations.RedeemLoyaltyPointsRequest](../../models/operations/redeemloyaltypointsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
938
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
939
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
940
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
941
|
-
|
|
942
|
-
### Response
|
|
943
|
-
|
|
944
|
-
**Promise\<[operations.RedeemLoyaltyPointsResponseBody](../../models/operations/redeemloyaltypointsresponsebody.md)\>**
|
|
945
|
-
|
|
946
|
-
### Errors
|
|
947
|
-
|
|
948
|
-
| Error Type | Status Code | Content Type |
|
|
949
|
-
| ------------------- | ------------------- | ------------------- |
|
|
950
|
-
| errors.BadRequest | 400 | application/json |
|
|
951
|
-
| errors.Unauthorized | 401 | application/json |
|
|
952
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
953
|
-
|
|
954
|
-
## removeLoyaltyPoints
|
|
955
|
-
|
|
956
|
-
Remove loyalty points applied in cart
|
|
957
|
-
|
|
958
|
-
API reference for the remove-loyalty-points operation
|
|
959
|
-
<https://llm-docs.commercengine.io/storefront/operations/remove-loyalty-points>
|
|
960
|
-
|
|
961
|
-
### Example Usage
|
|
962
|
-
|
|
963
|
-
<!-- UsageSnippet language="typescript" operationID="remove-loyalty-points" method="delete" path="/carts/{id}/loyalty-points" -->
|
|
964
|
-
```typescript
|
|
965
|
-
import { CeStorefront } from "ce-storefront";
|
|
966
|
-
|
|
967
|
-
const ceStorefront = new CeStorefront({
|
|
968
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
969
|
-
});
|
|
970
|
-
|
|
971
|
-
async function run() {
|
|
972
|
-
const result = await ceStorefront.carts.removeLoyaltyPoints({
|
|
973
|
-
id: "<id>",
|
|
974
|
-
});
|
|
975
|
-
|
|
976
|
-
console.log(result);
|
|
977
|
-
}
|
|
978
|
-
|
|
979
|
-
run();
|
|
980
|
-
```
|
|
981
|
-
|
|
982
|
-
### Standalone function
|
|
983
|
-
|
|
984
|
-
The standalone function version of this method:
|
|
985
|
-
|
|
986
|
-
```typescript
|
|
987
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
988
|
-
import { cartsRemoveLoyaltyPoints } from "ce-storefront/funcs/cartsRemoveLoyaltyPoints.js";
|
|
989
|
-
|
|
990
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
991
|
-
// You can create one instance of it to use across an application.
|
|
992
|
-
const ceStorefront = new CeStorefrontCore({
|
|
993
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
994
|
-
});
|
|
995
|
-
|
|
996
|
-
async function run() {
|
|
997
|
-
const res = await cartsRemoveLoyaltyPoints(ceStorefront, {
|
|
998
|
-
id: "<id>",
|
|
999
|
-
});
|
|
1000
|
-
if (res.ok) {
|
|
1001
|
-
const { value: result } = res;
|
|
1002
|
-
console.log(result);
|
|
1003
|
-
} else {
|
|
1004
|
-
console.log("cartsRemoveLoyaltyPoints failed:", res.error);
|
|
1005
|
-
}
|
|
1006
|
-
}
|
|
1007
|
-
|
|
1008
|
-
run();
|
|
1009
|
-
```
|
|
1010
|
-
|
|
1011
|
-
### Parameters
|
|
1012
|
-
|
|
1013
|
-
| Parameter | Type | Required | Description |
|
|
1014
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1015
|
-
| `request` | [operations.RemoveLoyaltyPointsRequest](../../models/operations/removeloyaltypointsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1016
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1017
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1018
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1019
|
-
|
|
1020
|
-
### Response
|
|
1021
|
-
|
|
1022
|
-
**Promise\<[operations.RemoveLoyaltyPointsResponseBody](../../models/operations/removeloyaltypointsresponsebody.md)\>**
|
|
1023
|
-
|
|
1024
|
-
### Errors
|
|
1025
|
-
|
|
1026
|
-
| Error Type | Status Code | Content Type |
|
|
1027
|
-
| ------------------- | ------------------- | ------------------- |
|
|
1028
|
-
| errors.BadRequest | 400 | application/json |
|
|
1029
|
-
| errors.Unauthorized | 401 | application/json |
|
|
1030
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|