ce-storefront 0.19.0 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/index.d.ts +1 -0
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +1 -0
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/item.d.ts +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 +3 -95
- package/esm/models/components/ordershipment.d.ts.map +1 -1
- package/esm/models/components/ordershipment.js +3 -88
- 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/shipmentstatus.d.ts +27 -0
- package/esm/models/components/shipmentstatus.d.ts.map +1 -0
- package/esm/models/components/shipmentstatus.js +25 -0
- package/esm/models/components/shipmentstatus.js.map +1 -0
- 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/index.ts +1 -0
- 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 +6 -133
- 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/shipmentstatus.ts +34 -0
- 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
|
@@ -8,42 +8,21 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
import {
|
|
12
|
-
AppliedCoupon,
|
|
13
|
-
AppliedCoupon$inboundSchema,
|
|
14
|
-
AppliedCoupon$Outbound,
|
|
15
|
-
AppliedCoupon$outboundSchema,
|
|
16
|
-
} from "./appliedcoupon.js";
|
|
11
|
+
import { AppliedCoupon, AppliedCoupon$inboundSchema } from "./appliedcoupon.js";
|
|
17
12
|
import {
|
|
18
13
|
AppliedPromotion,
|
|
19
14
|
AppliedPromotion$inboundSchema,
|
|
20
|
-
AppliedPromotion$Outbound,
|
|
21
|
-
AppliedPromotion$outboundSchema,
|
|
22
15
|
} from "./appliedpromotion.js";
|
|
23
16
|
import {
|
|
24
17
|
CustomerAddress,
|
|
25
18
|
CustomerAddress$inboundSchema,
|
|
26
|
-
CustomerAddress$Outbound,
|
|
27
|
-
CustomerAddress$outboundSchema,
|
|
28
19
|
} from "./customeraddress.js";
|
|
29
20
|
import {
|
|
30
21
|
FulfillmentPreference,
|
|
31
22
|
FulfillmentPreference$inboundSchema,
|
|
32
|
-
FulfillmentPreference$Outbound,
|
|
33
|
-
FulfillmentPreference$outboundSchema,
|
|
34
23
|
} from "./fulfillmentpreference.js";
|
|
35
|
-
import {
|
|
36
|
-
|
|
37
|
-
OrderItem$inboundSchema,
|
|
38
|
-
OrderItem$Outbound,
|
|
39
|
-
OrderItem$outboundSchema,
|
|
40
|
-
} from "./orderitem.js";
|
|
41
|
-
import {
|
|
42
|
-
OrderPayment,
|
|
43
|
-
OrderPayment$inboundSchema,
|
|
44
|
-
OrderPayment$Outbound,
|
|
45
|
-
OrderPayment$outboundSchema,
|
|
46
|
-
} from "./orderpayment.js";
|
|
24
|
+
import { OrderItem, OrderItem$inboundSchema } from "./orderitem.js";
|
|
25
|
+
import { OrderPayment, OrderPayment$inboundSchema } from "./orderpayment.js";
|
|
47
26
|
|
|
48
27
|
export const OrderDetailStatus = {
|
|
49
28
|
Draft: "draft",
|
|
@@ -194,43 +173,11 @@ export const OrderDetailStatus$inboundSchema: z.ZodNativeEnum<
|
|
|
194
173
|
typeof OrderDetailStatus
|
|
195
174
|
> = z.nativeEnum(OrderDetailStatus);
|
|
196
175
|
|
|
197
|
-
/** @internal */
|
|
198
|
-
export const OrderDetailStatus$outboundSchema: z.ZodNativeEnum<
|
|
199
|
-
typeof OrderDetailStatus
|
|
200
|
-
> = OrderDetailStatus$inboundSchema;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* @internal
|
|
204
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
205
|
-
*/
|
|
206
|
-
export namespace OrderDetailStatus$ {
|
|
207
|
-
/** @deprecated use `OrderDetailStatus$inboundSchema` instead. */
|
|
208
|
-
export const inboundSchema = OrderDetailStatus$inboundSchema;
|
|
209
|
-
/** @deprecated use `OrderDetailStatus$outboundSchema` instead. */
|
|
210
|
-
export const outboundSchema = OrderDetailStatus$outboundSchema;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
176
|
/** @internal */
|
|
214
177
|
export const OrderDetailPaymentStatus$inboundSchema: z.ZodNativeEnum<
|
|
215
178
|
typeof OrderDetailPaymentStatus
|
|
216
179
|
> = z.nativeEnum(OrderDetailPaymentStatus);
|
|
217
180
|
|
|
218
|
-
/** @internal */
|
|
219
|
-
export const OrderDetailPaymentStatus$outboundSchema: z.ZodNativeEnum<
|
|
220
|
-
typeof OrderDetailPaymentStatus
|
|
221
|
-
> = OrderDetailPaymentStatus$inboundSchema;
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* @internal
|
|
225
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
226
|
-
*/
|
|
227
|
-
export namespace OrderDetailPaymentStatus$ {
|
|
228
|
-
/** @deprecated use `OrderDetailPaymentStatus$inboundSchema` instead. */
|
|
229
|
-
export const inboundSchema = OrderDetailPaymentStatus$inboundSchema;
|
|
230
|
-
/** @deprecated use `OrderDetailPaymentStatus$outboundSchema` instead. */
|
|
231
|
-
export const outboundSchema = OrderDetailPaymentStatus$outboundSchema;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
181
|
/** @internal */
|
|
235
182
|
export const OrderDetailCurrency$inboundSchema: z.ZodType<
|
|
236
183
|
OrderDetailCurrency,
|
|
@@ -242,45 +189,6 @@ export const OrderDetailCurrency$inboundSchema: z.ZodType<
|
|
|
242
189
|
symbol: z.string().optional(),
|
|
243
190
|
});
|
|
244
191
|
|
|
245
|
-
/** @internal */
|
|
246
|
-
export type OrderDetailCurrency$Outbound = {
|
|
247
|
-
name?: string | undefined;
|
|
248
|
-
code?: string | undefined;
|
|
249
|
-
symbol?: string | undefined;
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
/** @internal */
|
|
253
|
-
export const OrderDetailCurrency$outboundSchema: z.ZodType<
|
|
254
|
-
OrderDetailCurrency$Outbound,
|
|
255
|
-
z.ZodTypeDef,
|
|
256
|
-
OrderDetailCurrency
|
|
257
|
-
> = z.object({
|
|
258
|
-
name: z.string().optional(),
|
|
259
|
-
code: z.string().optional(),
|
|
260
|
-
symbol: z.string().optional(),
|
|
261
|
-
});
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* @internal
|
|
265
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
266
|
-
*/
|
|
267
|
-
export namespace OrderDetailCurrency$ {
|
|
268
|
-
/** @deprecated use `OrderDetailCurrency$inboundSchema` instead. */
|
|
269
|
-
export const inboundSchema = OrderDetailCurrency$inboundSchema;
|
|
270
|
-
/** @deprecated use `OrderDetailCurrency$outboundSchema` instead. */
|
|
271
|
-
export const outboundSchema = OrderDetailCurrency$outboundSchema;
|
|
272
|
-
/** @deprecated use `OrderDetailCurrency$Outbound` instead. */
|
|
273
|
-
export type Outbound = OrderDetailCurrency$Outbound;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
export function orderDetailCurrencyToJSON(
|
|
277
|
-
orderDetailCurrency: OrderDetailCurrency,
|
|
278
|
-
): string {
|
|
279
|
-
return JSON.stringify(
|
|
280
|
-
OrderDetailCurrency$outboundSchema.parse(orderDetailCurrency),
|
|
281
|
-
);
|
|
282
|
-
}
|
|
283
|
-
|
|
284
192
|
export function orderDetailCurrencyFromJSON(
|
|
285
193
|
jsonString: string,
|
|
286
194
|
): SafeParseResult<OrderDetailCurrency, SDKValidationError> {
|
|
@@ -296,22 +204,6 @@ export const OrderDetailPaymentMode$inboundSchema: z.ZodNativeEnum<
|
|
|
296
204
|
typeof OrderDetailPaymentMode
|
|
297
205
|
> = z.nativeEnum(OrderDetailPaymentMode);
|
|
298
206
|
|
|
299
|
-
/** @internal */
|
|
300
|
-
export const OrderDetailPaymentMode$outboundSchema: z.ZodNativeEnum<
|
|
301
|
-
typeof OrderDetailPaymentMode
|
|
302
|
-
> = OrderDetailPaymentMode$inboundSchema;
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* @internal
|
|
306
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
307
|
-
*/
|
|
308
|
-
export namespace OrderDetailPaymentMode$ {
|
|
309
|
-
/** @deprecated use `OrderDetailPaymentMode$inboundSchema` instead. */
|
|
310
|
-
export const inboundSchema = OrderDetailPaymentMode$inboundSchema;
|
|
311
|
-
/** @deprecated use `OrderDetailPaymentMode$outboundSchema` instead. */
|
|
312
|
-
export const outboundSchema = OrderDetailPaymentMode$outboundSchema;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
207
|
/** @internal */
|
|
316
208
|
export const OrderDetailCancellationRefundDetails$inboundSchema: z.ZodType<
|
|
317
209
|
OrderDetailCancellationRefundDetails,
|
|
@@ -333,61 +225,6 @@ export const OrderDetailCancellationRefundDetails$inboundSchema: z.ZodType<
|
|
|
333
225
|
});
|
|
334
226
|
});
|
|
335
227
|
|
|
336
|
-
/** @internal */
|
|
337
|
-
export type OrderDetailCancellationRefundDetails$Outbound = {
|
|
338
|
-
loyalty_point?: number | undefined;
|
|
339
|
-
refundable_amount?: number | undefined;
|
|
340
|
-
cancellation_charges?: number | undefined;
|
|
341
|
-
cancellation_charges_reason?: string | undefined;
|
|
342
|
-
payment_mode?: string | undefined;
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
/** @internal */
|
|
346
|
-
export const OrderDetailCancellationRefundDetails$outboundSchema: z.ZodType<
|
|
347
|
-
OrderDetailCancellationRefundDetails$Outbound,
|
|
348
|
-
z.ZodTypeDef,
|
|
349
|
-
OrderDetailCancellationRefundDetails
|
|
350
|
-
> = z.object({
|
|
351
|
-
loyaltyPoint: z.number().int().optional(),
|
|
352
|
-
refundableAmount: z.number().optional(),
|
|
353
|
-
cancellationCharges: z.number().optional(),
|
|
354
|
-
cancellationChargesReason: z.string().optional(),
|
|
355
|
-
paymentMode: OrderDetailPaymentMode$outboundSchema.optional(),
|
|
356
|
-
}).transform((v) => {
|
|
357
|
-
return remap$(v, {
|
|
358
|
-
loyaltyPoint: "loyalty_point",
|
|
359
|
-
refundableAmount: "refundable_amount",
|
|
360
|
-
cancellationCharges: "cancellation_charges",
|
|
361
|
-
cancellationChargesReason: "cancellation_charges_reason",
|
|
362
|
-
paymentMode: "payment_mode",
|
|
363
|
-
});
|
|
364
|
-
});
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* @internal
|
|
368
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
369
|
-
*/
|
|
370
|
-
export namespace OrderDetailCancellationRefundDetails$ {
|
|
371
|
-
/** @deprecated use `OrderDetailCancellationRefundDetails$inboundSchema` instead. */
|
|
372
|
-
export const inboundSchema =
|
|
373
|
-
OrderDetailCancellationRefundDetails$inboundSchema;
|
|
374
|
-
/** @deprecated use `OrderDetailCancellationRefundDetails$outboundSchema` instead. */
|
|
375
|
-
export const outboundSchema =
|
|
376
|
-
OrderDetailCancellationRefundDetails$outboundSchema;
|
|
377
|
-
/** @deprecated use `OrderDetailCancellationRefundDetails$Outbound` instead. */
|
|
378
|
-
export type Outbound = OrderDetailCancellationRefundDetails$Outbound;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
export function orderDetailCancellationRefundDetailsToJSON(
|
|
382
|
-
orderDetailCancellationRefundDetails: OrderDetailCancellationRefundDetails,
|
|
383
|
-
): string {
|
|
384
|
-
return JSON.stringify(
|
|
385
|
-
OrderDetailCancellationRefundDetails$outboundSchema.parse(
|
|
386
|
-
orderDetailCancellationRefundDetails,
|
|
387
|
-
),
|
|
388
|
-
);
|
|
389
|
-
}
|
|
390
|
-
|
|
391
228
|
export function orderDetailCancellationRefundDetailsFromJSON(
|
|
392
229
|
jsonString: string,
|
|
393
230
|
): SafeParseResult<OrderDetailCancellationRefundDetails, SDKValidationError> {
|
|
@@ -507,186 +344,6 @@ export const OrderDetail$inboundSchema: z.ZodType<
|
|
|
507
344
|
});
|
|
508
345
|
});
|
|
509
346
|
|
|
510
|
-
/** @internal */
|
|
511
|
-
export type OrderDetail$Outbound = {
|
|
512
|
-
order_number?: string | undefined;
|
|
513
|
-
order_date?: string | undefined;
|
|
514
|
-
status?: string | undefined;
|
|
515
|
-
payment_status?: string | undefined;
|
|
516
|
-
payment_success_date?: string | null | undefined;
|
|
517
|
-
customer_note?: string | null | undefined;
|
|
518
|
-
is_promotion_applied?: boolean | undefined;
|
|
519
|
-
promotion_discount_amount?: number | undefined;
|
|
520
|
-
promotion_discount_percent?: number | undefined;
|
|
521
|
-
is_coupon_applied?: boolean | undefined;
|
|
522
|
-
coupon_code?: string | null | undefined;
|
|
523
|
-
coupon_discount_amount?: number | undefined;
|
|
524
|
-
coupon_discount_percent?: number | undefined;
|
|
525
|
-
applied_promotions: Array<AppliedPromotion$Outbound>;
|
|
526
|
-
applied_coupons: Array<AppliedCoupon$Outbound>;
|
|
527
|
-
promotion_savings?: number | undefined;
|
|
528
|
-
coupon_savings?: number | undefined;
|
|
529
|
-
other_savings?: number | undefined;
|
|
530
|
-
total_savings?: number | undefined;
|
|
531
|
-
on_subscription?: boolean | undefined;
|
|
532
|
-
subtotal?: number | undefined;
|
|
533
|
-
item_total_tax?: number | undefined;
|
|
534
|
-
subtotal_including_tax?: number | undefined;
|
|
535
|
-
shipping_estimated_cost?: number | undefined;
|
|
536
|
-
shipping_discount_amount?: number | undefined;
|
|
537
|
-
shipping_amount?: number | undefined;
|
|
538
|
-
shipping_tax_rate?: number | undefined;
|
|
539
|
-
shipping_tax_amount?: number | undefined;
|
|
540
|
-
shipping_amount_including_tax?: number | undefined;
|
|
541
|
-
fulfillment_preference?: FulfillmentPreference$Outbound | undefined;
|
|
542
|
-
estimated_delivery_days?: number | null | undefined;
|
|
543
|
-
handling_charge_excluding_tax?: number | undefined;
|
|
544
|
-
handling_charge_tax_amount?: number | undefined;
|
|
545
|
-
handling_charge_including_tax?: number | undefined;
|
|
546
|
-
total_tax?: number | undefined;
|
|
547
|
-
grand_total?: number | undefined;
|
|
548
|
-
loyalty_points_earned?: number | undefined;
|
|
549
|
-
loyalty_points_redeemed?: number | undefined;
|
|
550
|
-
credit_balance_used?: number | undefined;
|
|
551
|
-
to_be_paid?: number | undefined;
|
|
552
|
-
order_items_count?: number | undefined;
|
|
553
|
-
order_items?: Array<OrderItem$Outbound> | undefined;
|
|
554
|
-
billing_address?: CustomerAddress$Outbound | null | undefined;
|
|
555
|
-
shipping_address?: CustomerAddress$Outbound | null | undefined;
|
|
556
|
-
currency?: OrderDetailCurrency$Outbound | undefined;
|
|
557
|
-
metadata?: { [k: string]: string } | null | undefined;
|
|
558
|
-
is_cancellation_allowed?: boolean | undefined;
|
|
559
|
-
cancellation_refund_details?:
|
|
560
|
-
| OrderDetailCancellationRefundDetails$Outbound
|
|
561
|
-
| undefined;
|
|
562
|
-
feedback?: string | null | undefined;
|
|
563
|
-
payments?: Array<OrderPayment$Outbound> | undefined;
|
|
564
|
-
};
|
|
565
|
-
|
|
566
|
-
/** @internal */
|
|
567
|
-
export const OrderDetail$outboundSchema: z.ZodType<
|
|
568
|
-
OrderDetail$Outbound,
|
|
569
|
-
z.ZodTypeDef,
|
|
570
|
-
OrderDetail
|
|
571
|
-
> = z.object({
|
|
572
|
-
orderNumber: z.string().optional(),
|
|
573
|
-
orderDate: z.date().transform(v => v.toISOString()).optional(),
|
|
574
|
-
status: OrderDetailStatus$outboundSchema.optional(),
|
|
575
|
-
paymentStatus: OrderDetailPaymentStatus$outboundSchema.optional(),
|
|
576
|
-
paymentSuccessDate: z.nullable(z.string()).optional(),
|
|
577
|
-
customerNote: z.nullable(z.string()).optional(),
|
|
578
|
-
isPromotionApplied: z.boolean().optional(),
|
|
579
|
-
promotionDiscountAmount: z.number().optional(),
|
|
580
|
-
promotionDiscountPercent: z.number().optional(),
|
|
581
|
-
isCouponApplied: z.boolean().optional(),
|
|
582
|
-
couponCode: z.nullable(z.string()).optional(),
|
|
583
|
-
couponDiscountAmount: z.number().optional(),
|
|
584
|
-
couponDiscountPercent: z.number().optional(),
|
|
585
|
-
appliedPromotions: z.array(AppliedPromotion$outboundSchema),
|
|
586
|
-
appliedCoupons: z.array(AppliedCoupon$outboundSchema),
|
|
587
|
-
promotionSavings: z.number().optional(),
|
|
588
|
-
couponSavings: z.number().optional(),
|
|
589
|
-
otherSavings: z.number().optional(),
|
|
590
|
-
totalSavings: z.number().optional(),
|
|
591
|
-
onSubscription: z.boolean().optional(),
|
|
592
|
-
subtotal: z.number().optional(),
|
|
593
|
-
itemTotalTax: z.number().optional(),
|
|
594
|
-
subtotalIncludingTax: z.number().optional(),
|
|
595
|
-
shippingEstimatedCost: z.number().optional(),
|
|
596
|
-
shippingDiscountAmount: z.number().optional(),
|
|
597
|
-
shippingAmount: z.number().optional(),
|
|
598
|
-
shippingTaxRate: z.number().optional(),
|
|
599
|
-
shippingTaxAmount: z.number().optional(),
|
|
600
|
-
shippingAmountIncludingTax: z.number().optional(),
|
|
601
|
-
fulfillmentPreference: FulfillmentPreference$outboundSchema.optional(),
|
|
602
|
-
estimatedDeliveryDays: z.nullable(z.number().int()).optional(),
|
|
603
|
-
handlingChargeExcludingTax: z.number().optional(),
|
|
604
|
-
handlingChargeTaxAmount: z.number().optional(),
|
|
605
|
-
handlingChargeIncludingTax: z.number().optional(),
|
|
606
|
-
totalTax: z.number().optional(),
|
|
607
|
-
grandTotal: z.number().optional(),
|
|
608
|
-
loyaltyPointsEarned: z.number().int().optional(),
|
|
609
|
-
loyaltyPointsRedeemed: z.number().int().optional(),
|
|
610
|
-
creditBalanceUsed: z.number().int().optional(),
|
|
611
|
-
toBePaid: z.number().optional(),
|
|
612
|
-
orderItemsCount: z.number().int().optional(),
|
|
613
|
-
orderItems: z.array(OrderItem$outboundSchema).optional(),
|
|
614
|
-
billingAddress: z.nullable(CustomerAddress$outboundSchema).optional(),
|
|
615
|
-
shippingAddress: z.nullable(CustomerAddress$outboundSchema).optional(),
|
|
616
|
-
currency: z.lazy(() => OrderDetailCurrency$outboundSchema).optional(),
|
|
617
|
-
metadata: z.nullable(z.record(z.string())).optional(),
|
|
618
|
-
isCancellationAllowed: z.boolean().optional(),
|
|
619
|
-
cancellationRefundDetails: z.lazy(() =>
|
|
620
|
-
OrderDetailCancellationRefundDetails$outboundSchema
|
|
621
|
-
).optional(),
|
|
622
|
-
feedback: z.nullable(z.string()).optional(),
|
|
623
|
-
payments: z.array(OrderPayment$outboundSchema).optional(),
|
|
624
|
-
}).transform((v) => {
|
|
625
|
-
return remap$(v, {
|
|
626
|
-
orderNumber: "order_number",
|
|
627
|
-
orderDate: "order_date",
|
|
628
|
-
paymentStatus: "payment_status",
|
|
629
|
-
paymentSuccessDate: "payment_success_date",
|
|
630
|
-
customerNote: "customer_note",
|
|
631
|
-
isPromotionApplied: "is_promotion_applied",
|
|
632
|
-
promotionDiscountAmount: "promotion_discount_amount",
|
|
633
|
-
promotionDiscountPercent: "promotion_discount_percent",
|
|
634
|
-
isCouponApplied: "is_coupon_applied",
|
|
635
|
-
couponCode: "coupon_code",
|
|
636
|
-
couponDiscountAmount: "coupon_discount_amount",
|
|
637
|
-
couponDiscountPercent: "coupon_discount_percent",
|
|
638
|
-
appliedPromotions: "applied_promotions",
|
|
639
|
-
appliedCoupons: "applied_coupons",
|
|
640
|
-
promotionSavings: "promotion_savings",
|
|
641
|
-
couponSavings: "coupon_savings",
|
|
642
|
-
otherSavings: "other_savings",
|
|
643
|
-
totalSavings: "total_savings",
|
|
644
|
-
onSubscription: "on_subscription",
|
|
645
|
-
itemTotalTax: "item_total_tax",
|
|
646
|
-
subtotalIncludingTax: "subtotal_including_tax",
|
|
647
|
-
shippingEstimatedCost: "shipping_estimated_cost",
|
|
648
|
-
shippingDiscountAmount: "shipping_discount_amount",
|
|
649
|
-
shippingAmount: "shipping_amount",
|
|
650
|
-
shippingTaxRate: "shipping_tax_rate",
|
|
651
|
-
shippingTaxAmount: "shipping_tax_amount",
|
|
652
|
-
shippingAmountIncludingTax: "shipping_amount_including_tax",
|
|
653
|
-
fulfillmentPreference: "fulfillment_preference",
|
|
654
|
-
estimatedDeliveryDays: "estimated_delivery_days",
|
|
655
|
-
handlingChargeExcludingTax: "handling_charge_excluding_tax",
|
|
656
|
-
handlingChargeTaxAmount: "handling_charge_tax_amount",
|
|
657
|
-
handlingChargeIncludingTax: "handling_charge_including_tax",
|
|
658
|
-
totalTax: "total_tax",
|
|
659
|
-
grandTotal: "grand_total",
|
|
660
|
-
loyaltyPointsEarned: "loyalty_points_earned",
|
|
661
|
-
loyaltyPointsRedeemed: "loyalty_points_redeemed",
|
|
662
|
-
creditBalanceUsed: "credit_balance_used",
|
|
663
|
-
toBePaid: "to_be_paid",
|
|
664
|
-
orderItemsCount: "order_items_count",
|
|
665
|
-
orderItems: "order_items",
|
|
666
|
-
billingAddress: "billing_address",
|
|
667
|
-
shippingAddress: "shipping_address",
|
|
668
|
-
isCancellationAllowed: "is_cancellation_allowed",
|
|
669
|
-
cancellationRefundDetails: "cancellation_refund_details",
|
|
670
|
-
});
|
|
671
|
-
});
|
|
672
|
-
|
|
673
|
-
/**
|
|
674
|
-
* @internal
|
|
675
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
676
|
-
*/
|
|
677
|
-
export namespace OrderDetail$ {
|
|
678
|
-
/** @deprecated use `OrderDetail$inboundSchema` instead. */
|
|
679
|
-
export const inboundSchema = OrderDetail$inboundSchema;
|
|
680
|
-
/** @deprecated use `OrderDetail$outboundSchema` instead. */
|
|
681
|
-
export const outboundSchema = OrderDetail$outboundSchema;
|
|
682
|
-
/** @deprecated use `OrderDetail$Outbound` instead. */
|
|
683
|
-
export type Outbound = OrderDetail$Outbound;
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
export function orderDetailToJSON(orderDetail: OrderDetail): string {
|
|
687
|
-
return JSON.stringify(OrderDetail$outboundSchema.parse(orderDetail));
|
|
688
|
-
}
|
|
689
|
-
|
|
690
347
|
export function orderDetailFromJSON(
|
|
691
348
|
jsonString: string,
|
|
692
349
|
): SafeParseResult<OrderDetail, SDKValidationError> {
|
|
@@ -11,14 +11,10 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
import {
|
|
12
12
|
AssociatedOption,
|
|
13
13
|
AssociatedOption$inboundSchema,
|
|
14
|
-
AssociatedOption$Outbound,
|
|
15
|
-
AssociatedOption$outboundSchema,
|
|
16
14
|
} from "./associatedoption.js";
|
|
17
15
|
import {
|
|
18
16
|
ProductAttribute,
|
|
19
17
|
ProductAttribute$inboundSchema,
|
|
20
|
-
ProductAttribute$Outbound,
|
|
21
|
-
ProductAttribute$outboundSchema,
|
|
22
18
|
} from "./productattribute.js";
|
|
23
19
|
|
|
24
20
|
export const OrderItemProductType = {
|
|
@@ -77,22 +73,6 @@ export const OrderItemProductType$inboundSchema: z.ZodNativeEnum<
|
|
|
77
73
|
typeof OrderItemProductType
|
|
78
74
|
> = z.nativeEnum(OrderItemProductType);
|
|
79
75
|
|
|
80
|
-
/** @internal */
|
|
81
|
-
export const OrderItemProductType$outboundSchema: z.ZodNativeEnum<
|
|
82
|
-
typeof OrderItemProductType
|
|
83
|
-
> = OrderItemProductType$inboundSchema;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
88
|
-
*/
|
|
89
|
-
export namespace OrderItemProductType$ {
|
|
90
|
-
/** @deprecated use `OrderItemProductType$inboundSchema` instead. */
|
|
91
|
-
export const inboundSchema = OrderItemProductType$inboundSchema;
|
|
92
|
-
/** @deprecated use `OrderItemProductType$outboundSchema` instead. */
|
|
93
|
-
export const outboundSchema = OrderItemProductType$outboundSchema;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
76
|
/** @internal */
|
|
97
77
|
export const OrderItem$inboundSchema: z.ZodType<
|
|
98
78
|
OrderItem,
|
|
@@ -162,130 +142,6 @@ export const OrderItem$inboundSchema: z.ZodType<
|
|
|
162
142
|
});
|
|
163
143
|
});
|
|
164
144
|
|
|
165
|
-
/** @internal */
|
|
166
|
-
export type OrderItem$Outbound = {
|
|
167
|
-
product_id: string;
|
|
168
|
-
product_name: string;
|
|
169
|
-
product_image_url: string | null;
|
|
170
|
-
product_type: string;
|
|
171
|
-
sku: string;
|
|
172
|
-
slug: string;
|
|
173
|
-
variant_id: string | null;
|
|
174
|
-
variant_name: string | null;
|
|
175
|
-
backorder: boolean;
|
|
176
|
-
on_promotion: boolean;
|
|
177
|
-
on_subscription: boolean;
|
|
178
|
-
subscription_plan: string | null;
|
|
179
|
-
subscription_interval: number | null;
|
|
180
|
-
subscription_frequency: string | null;
|
|
181
|
-
quantity: number;
|
|
182
|
-
free_quantity: number;
|
|
183
|
-
is_free_item: boolean;
|
|
184
|
-
price_including_tax: boolean;
|
|
185
|
-
selling_price: number;
|
|
186
|
-
listing_price: number;
|
|
187
|
-
selling_price_excluding_tax: number;
|
|
188
|
-
promotion_discount_amount: number;
|
|
189
|
-
coupon_discount_amount: number;
|
|
190
|
-
tax_type: "GST";
|
|
191
|
-
tax_rate: number;
|
|
192
|
-
tax_amount: number;
|
|
193
|
-
handling_charge_excluding_tax: number;
|
|
194
|
-
handling_charge_tax_rate: number;
|
|
195
|
-
handling_charge_including_tax: number;
|
|
196
|
-
associated_options?:
|
|
197
|
-
| { [k: string]: AssociatedOption$Outbound }
|
|
198
|
-
| null
|
|
199
|
-
| undefined;
|
|
200
|
-
attributes?: Array<ProductAttribute$Outbound> | undefined;
|
|
201
|
-
};
|
|
202
|
-
|
|
203
|
-
/** @internal */
|
|
204
|
-
export const OrderItem$outboundSchema: z.ZodType<
|
|
205
|
-
OrderItem$Outbound,
|
|
206
|
-
z.ZodTypeDef,
|
|
207
|
-
OrderItem
|
|
208
|
-
> = z.object({
|
|
209
|
-
productId: z.string(),
|
|
210
|
-
productName: z.string(),
|
|
211
|
-
productImageUrl: z.nullable(z.string()),
|
|
212
|
-
productType: OrderItemProductType$outboundSchema,
|
|
213
|
-
sku: z.string(),
|
|
214
|
-
slug: z.string(),
|
|
215
|
-
variantId: z.nullable(z.string()),
|
|
216
|
-
variantName: z.nullable(z.string()),
|
|
217
|
-
backorder: z.boolean(),
|
|
218
|
-
onPromotion: z.boolean(),
|
|
219
|
-
onSubscription: z.boolean(),
|
|
220
|
-
subscriptionPlan: z.nullable(z.string()),
|
|
221
|
-
subscriptionInterval: z.nullable(z.number().int()),
|
|
222
|
-
subscriptionFrequency: z.nullable(z.string()),
|
|
223
|
-
quantity: z.number().int(),
|
|
224
|
-
freeQuantity: z.number().int(),
|
|
225
|
-
isFreeItem: z.boolean(),
|
|
226
|
-
priceIncludingTax: z.boolean(),
|
|
227
|
-
sellingPrice: z.number(),
|
|
228
|
-
listingPrice: z.number(),
|
|
229
|
-
sellingPriceExcludingTax: z.number(),
|
|
230
|
-
promotionDiscountAmount: z.number(),
|
|
231
|
-
couponDiscountAmount: z.number(),
|
|
232
|
-
taxType: z.literal("GST").default("GST" as const),
|
|
233
|
-
taxRate: z.number(),
|
|
234
|
-
taxAmount: z.number(),
|
|
235
|
-
handlingChargeExcludingTax: z.number(),
|
|
236
|
-
handlingChargeTaxRate: z.number(),
|
|
237
|
-
handlingChargeIncludingTax: z.number(),
|
|
238
|
-
associatedOptions: z.nullable(z.record(AssociatedOption$outboundSchema))
|
|
239
|
-
.optional(),
|
|
240
|
-
attributes: z.array(ProductAttribute$outboundSchema).optional(),
|
|
241
|
-
}).transform((v) => {
|
|
242
|
-
return remap$(v, {
|
|
243
|
-
productId: "product_id",
|
|
244
|
-
productName: "product_name",
|
|
245
|
-
productImageUrl: "product_image_url",
|
|
246
|
-
productType: "product_type",
|
|
247
|
-
variantId: "variant_id",
|
|
248
|
-
variantName: "variant_name",
|
|
249
|
-
onPromotion: "on_promotion",
|
|
250
|
-
onSubscription: "on_subscription",
|
|
251
|
-
subscriptionPlan: "subscription_plan",
|
|
252
|
-
subscriptionInterval: "subscription_interval",
|
|
253
|
-
subscriptionFrequency: "subscription_frequency",
|
|
254
|
-
freeQuantity: "free_quantity",
|
|
255
|
-
isFreeItem: "is_free_item",
|
|
256
|
-
priceIncludingTax: "price_including_tax",
|
|
257
|
-
sellingPrice: "selling_price",
|
|
258
|
-
listingPrice: "listing_price",
|
|
259
|
-
sellingPriceExcludingTax: "selling_price_excluding_tax",
|
|
260
|
-
promotionDiscountAmount: "promotion_discount_amount",
|
|
261
|
-
couponDiscountAmount: "coupon_discount_amount",
|
|
262
|
-
taxType: "tax_type",
|
|
263
|
-
taxRate: "tax_rate",
|
|
264
|
-
taxAmount: "tax_amount",
|
|
265
|
-
handlingChargeExcludingTax: "handling_charge_excluding_tax",
|
|
266
|
-
handlingChargeTaxRate: "handling_charge_tax_rate",
|
|
267
|
-
handlingChargeIncludingTax: "handling_charge_including_tax",
|
|
268
|
-
associatedOptions: "associated_options",
|
|
269
|
-
});
|
|
270
|
-
});
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* @internal
|
|
274
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
275
|
-
*/
|
|
276
|
-
export namespace OrderItem$ {
|
|
277
|
-
/** @deprecated use `OrderItem$inboundSchema` instead. */
|
|
278
|
-
export const inboundSchema = OrderItem$inboundSchema;
|
|
279
|
-
/** @deprecated use `OrderItem$outboundSchema` instead. */
|
|
280
|
-
export const outboundSchema = OrderItem$outboundSchema;
|
|
281
|
-
/** @deprecated use `OrderItem$Outbound` instead. */
|
|
282
|
-
export type Outbound = OrderItem$Outbound;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
export function orderItemToJSON(orderItem: OrderItem): string {
|
|
286
|
-
return JSON.stringify(OrderItem$outboundSchema.parse(orderItem));
|
|
287
|
-
}
|
|
288
|
-
|
|
289
145
|
export function orderItemFromJSON(
|
|
290
146
|
jsonString: string,
|
|
291
147
|
): SafeParseResult<OrderItem, SDKValidationError> {
|