ce-storefront 0.3.4 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -37
- package/docs/sdks/{cestorefrontpayments → cestorefrontorderspayments}/README.md +1 -1
- package/docs/sdks/customers/README.md +236 -0
- package/docs/sdks/{paymentsapijuspay → juspay}/README.md +12 -12
- package/docs/sdks/orders/README.md +80 -1
- package/docs/sdks/payments/README.md +242 -2
- package/docs/sdks/products/README.md +1 -1
- package/esm/funcs/catalogProductsGet.d.ts +1 -1
- package/esm/funcs/catalogProductsGet.js +1 -1
- package/esm/funcs/{customersAPIGetCustomersId.d.ts → customersGetCustomersId.d.ts} +2 -2
- package/esm/funcs/customersGetCustomersId.d.ts.map +1 -0
- package/esm/funcs/{customersAPIGetCustomersId.js → customersGetCustomersId.js} +2 -2
- package/esm/funcs/customersGetCustomersId.js.map +1 -0
- package/esm/funcs/{customersAPIPostCustomers.d.ts → customersPostCustomers.d.ts} +2 -2
- package/esm/funcs/customersPostCustomers.d.ts.map +1 -0
- package/esm/funcs/{customersAPIPostCustomers.js → customersPostCustomers.js} +2 -2
- package/esm/funcs/customersPostCustomers.js.map +1 -0
- package/esm/funcs/{customersAPIPutCustomersId.d.ts → customersPutCustomersId.d.ts} +2 -2
- package/esm/funcs/customersPutCustomersId.d.ts.map +1 -0
- package/esm/funcs/{customersAPIPutCustomersId.js → customersPutCustomersId.js} +2 -2
- package/esm/funcs/{customersAPIPostCustomers.js.map → customersPutCustomersId.js.map} +1 -1
- package/esm/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.d.ts → juspayGetPaymentsJuspayCustomer.d.ts} +2 -2
- package/esm/funcs/juspayGetPaymentsJuspayCustomer.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.js → juspayGetPaymentsJuspayCustomer.js} +2 -2
- package/esm/funcs/juspayGetPaymentsJuspayCustomer.js.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.d.ts → juspayPostPaymentsJuspayCreateCustomer.d.ts} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.js → juspayPostPaymentsJuspayCreateCustomer.js} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.js.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.d.ts → juspayPostPaymentsJuspayCreateOrder.d.ts} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.js → juspayPostPaymentsJuspayCreateOrder.js} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.js.map +1 -0
- package/esm/funcs/{ordersAPIGetOrdersIdPaymentStatus.d.ts → ordersGetOrdersIdPaymentStatus.d.ts} +2 -2
- package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts.map +1 -0
- package/esm/funcs/{ordersAPIGetOrdersIdPaymentStatus.js → ordersGetOrdersIdPaymentStatus.js} +2 -2
- package/esm/funcs/ordersGetOrdersIdPaymentStatus.js.map +1 -0
- package/esm/funcs/paymentsGetMethods.d.ts +1 -1
- package/esm/funcs/paymentsGetMethods.d.ts.map +1 -1
- package/esm/funcs/paymentsGetMethods.js +3 -3
- package/esm/funcs/paymentsGetMethods.js.map +1 -1
- package/esm/funcs/{paymentsAPIGetPaymentsCards.d.ts → paymentsGetPaymentsCards.d.ts} +2 -2
- package/esm/funcs/paymentsGetPaymentsCards.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIGetPaymentsCards.js → paymentsGetPaymentsCards.js} +2 -2
- package/esm/funcs/paymentsGetPaymentsCards.js.map +1 -0
- package/esm/funcs/{paymentsAPIGetPaymentsVerifyVpa.d.ts → paymentsGetPaymentsVerifyVpa.d.ts} +2 -2
- package/esm/funcs/paymentsGetPaymentsVerifyVpa.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIGetPaymentsVerifyVpa.js → paymentsGetPaymentsVerifyVpa.js} +2 -2
- package/esm/funcs/paymentsGetPaymentsVerifyVpa.js.map +1 -0
- package/esm/funcs/{paymentsAPIPostPaymentsCards.d.ts → paymentsPostPaymentsCards.d.ts} +2 -2
- package/esm/funcs/paymentsPostPaymentsCards.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIPostPaymentsCards.js → paymentsPostPaymentsCards.js} +2 -2
- package/esm/funcs/paymentsPostPaymentsCards.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/components/analyticsevent.d.ts +8 -8
- package/esm/models/components/analyticsevent.d.ts.map +1 -1
- package/esm/models/components/analyticsevent.js +12 -12
- package/esm/models/components/analyticsevent.js.map +1 -1
- package/esm/models/components/associatedoption.d.ts +125 -0
- package/esm/models/components/associatedoption.d.ts.map +1 -0
- package/esm/models/components/associatedoption.js +107 -0
- package/esm/models/components/associatedoption.js.map +1 -0
- package/esm/models/components/cart.d.ts +16 -16
- package/esm/models/components/cart.d.ts.map +1 -1
- package/esm/models/components/cart.js +16 -16
- package/esm/models/components/cart.js.map +1 -1
- package/esm/models/components/createcustomer.d.ts +1 -1
- package/esm/models/components/createcustomer.d.ts.map +1 -1
- package/esm/models/components/createcustomer.js +1 -1
- package/esm/models/components/createcustomer.js.map +1 -1
- package/esm/models/components/{customeraddressinput.d.ts → customeraddress.d.ts} +33 -33
- package/esm/models/components/customeraddress.d.ts.map +1 -0
- package/esm/models/components/{customeraddressinput.js → customeraddress.js} +37 -37
- package/esm/models/components/customeraddress.js.map +1 -0
- package/esm/models/components/discountbasedpromotion.d.ts +0 -2
- package/esm/models/components/discountbasedpromotion.d.ts.map +1 -1
- package/esm/models/components/discountbasedpromotion.js +0 -4
- package/esm/models/components/discountbasedpromotion.js.map +1 -1
- package/esm/models/components/fixedpricepromotion.d.ts +0 -2
- package/esm/models/components/fixedpricepromotion.d.ts.map +1 -1
- package/esm/models/components/fixedpricepromotion.js +0 -4
- package/esm/models/components/fixedpricepromotion.js.map +1 -1
- package/esm/models/components/freegoodspromotion.d.ts +2 -7
- package/esm/models/components/freegoodspromotion.d.ts.map +1 -1
- package/esm/models/components/freegoodspromotion.js +2 -6
- package/esm/models/components/freegoodspromotion.js.map +1 -1
- package/esm/models/components/index.d.ts +6 -8
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +6 -8
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/orderdetail.d.ts +1 -1
- package/esm/models/components/orderdetail.d.ts.map +1 -1
- package/esm/models/components/orderdetail.js +1 -1
- package/esm/models/components/orderdetail.js.map +1 -1
- package/esm/models/components/{productlist.d.ts → product.d.ts} +38 -78
- package/esm/models/components/product.d.ts.map +1 -0
- package/esm/models/components/{productlist.js → product.js} +37 -98
- package/esm/models/components/product.js.map +1 -0
- package/esm/models/components/productattribute.d.ts +97 -64
- package/esm/models/components/productattribute.d.ts.map +1 -1
- package/esm/models/components/productattribute.js +67 -128
- package/esm/models/components/productattribute.js.map +1 -1
- package/esm/models/components/productcategory.d.ts +2 -2
- package/esm/models/components/productcategory.d.ts.map +1 -1
- package/esm/models/components/productcategory.js +2 -2
- package/esm/models/components/productcategory.js.map +1 -1
- package/esm/models/components/productdetail.d.ts +63 -165
- package/esm/models/components/productdetail.d.ts.map +1 -1
- package/esm/models/components/productdetail.js +70 -204
- package/esm/models/components/productdetail.js.map +1 -1
- package/esm/models/components/productlistresponse.d.ts +24 -3
- package/esm/models/components/productlistresponse.d.ts.map +1 -1
- package/esm/models/components/productlistresponse.js +24 -3
- package/esm/models/components/productlistresponse.js.map +1 -1
- package/esm/models/components/productpromotion.d.ts +11 -5
- package/esm/models/components/productpromotion.d.ts.map +1 -1
- package/esm/models/components/productshipping.d.ts +0 -2
- package/esm/models/components/productshipping.d.ts.map +1 -1
- package/esm/models/components/productshipping.js +0 -4
- package/esm/models/components/productshipping.js.map +1 -1
- package/esm/models/components/{promotion.d.ts → promotiondetail.d.ts} +29 -29
- package/esm/models/components/promotiondetail.d.ts.map +1 -0
- package/esm/models/components/{promotion.js → promotiondetail.js} +29 -29
- package/esm/models/components/promotiondetail.js.map +1 -0
- package/esm/models/components/seo.d.ts +6 -6
- package/esm/models/components/seo.d.ts.map +1 -1
- package/esm/models/components/seo.js +6 -19
- package/esm/models/components/seo.js.map +1 -1
- package/esm/models/components/{skuinfo.d.ts → sku.d.ts} +56 -48
- package/esm/models/components/sku.d.ts.map +1 -0
- package/esm/models/components/{skuinfo.js → sku.js} +65 -57
- package/esm/models/components/sku.js.map +1 -0
- package/esm/models/components/variant.d.ts +13 -52
- package/esm/models/components/variant.d.ts.map +1 -1
- package/esm/models/components/variant.js +5 -55
- package/esm/models/components/variant.js.map +1 -1
- package/esm/models/components/variantdetail.d.ts +31 -60
- package/esm/models/components/variantdetail.d.ts.map +1 -1
- package/esm/models/components/variantdetail.js +20 -57
- package/esm/models/components/variantdetail.js.map +1 -1
- package/esm/models/components/variantoption.d.ts +118 -0
- package/esm/models/components/variantoption.d.ts.map +1 -0
- package/esm/models/components/variantoption.js +114 -0
- package/esm/models/components/variantoption.js.map +1 -0
- package/esm/models/components/volumebasedpromotion.d.ts +0 -5
- package/esm/models/components/volumebasedpromotion.d.ts.map +1 -1
- package/esm/models/components/volumebasedpromotion.js +0 -4
- package/esm/models/components/volumebasedpromotion.js.map +1 -1
- package/esm/models/operations/getpaymentmethods.d.ts +143 -0
- package/esm/models/operations/getpaymentmethods.d.ts.map +1 -0
- package/esm/models/operations/{getpaymentspaymentmethods.js → getpaymentmethods.js} +42 -44
- package/esm/models/operations/getpaymentmethods.js.map +1 -0
- package/esm/models/operations/getpromotions.d.ts +2 -2
- package/esm/models/operations/getpromotions.d.ts.map +1 -1
- package/esm/models/operations/getpromotions.js +2 -2
- package/esm/models/operations/getpromotions.js.map +1 -1
- package/esm/models/operations/getsimilar.d.ts +2 -27
- package/esm/models/operations/getsimilar.d.ts.map +1 -1
- package/esm/models/operations/getsimilar.js +2 -27
- package/esm/models/operations/getsimilar.js.map +1 -1
- package/esm/models/operations/getskus.d.ts +2 -2
- package/esm/models/operations/getskus.d.ts.map +1 -1
- package/esm/models/operations/getskus.js +2 -2
- package/esm/models/operations/getskus.js.map +1 -1
- package/esm/models/operations/getwishtlist.d.ts +2 -2
- package/esm/models/operations/getwishtlist.d.ts.map +1 -1
- package/esm/models/operations/getwishtlist.js +2 -2
- package/esm/models/operations/getwishtlist.js.map +1 -1
- package/esm/models/operations/index.d.ts +1 -2
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +1 -2
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/postcartitemid.d.ts +15 -15
- package/esm/models/operations/postcartitemid.d.ts.map +1 -1
- package/esm/models/operations/postcartitemid.js +15 -15
- package/esm/models/operations/postcartitemid.js.map +1 -1
- package/esm/sdk/{cestorefrontpayments.d.ts → cestorefrontorderspayments.d.ts} +2 -2
- package/esm/sdk/cestorefrontorderspayments.d.ts.map +1 -0
- package/esm/sdk/{cestorefrontpayments.js → cestorefrontorderspayments.js} +2 -2
- package/esm/sdk/cestorefrontorderspayments.js.map +1 -0
- package/esm/sdk/customers.d.ts +24 -1
- package/esm/sdk/customers.d.ts.map +1 -1
- package/esm/sdk/customers.js +31 -0
- package/esm/sdk/customers.js.map +1 -1
- package/esm/sdk/{paymentsapijuspay.d.ts → juspay.d.ts} +2 -2
- package/esm/sdk/juspay.d.ts.map +1 -0
- package/esm/sdk/{paymentsapijuspay.js → juspay.js} +8 -8
- package/esm/sdk/juspay.js.map +1 -0
- package/esm/sdk/orders.d.ts +9 -2
- package/esm/sdk/orders.d.ts.map +1 -1
- package/esm/sdk/orders.js +12 -2
- package/esm/sdk/orders.js.map +1 -1
- package/esm/sdk/payments.d.ts +23 -1
- package/esm/sdk/payments.d.ts.map +1 -1
- package/esm/sdk/payments.js +31 -0
- package/esm/sdk/payments.js.map +1 -1
- package/esm/sdk/products.d.ts +1 -1
- package/esm/sdk/products.js +1 -1
- package/esm/sdk/sdk.d.ts +3 -12
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +3 -15
- package/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/catalogProductsGet.ts +1 -1
- package/src/funcs/{customersAPIGetCustomersId.ts → customersGetCustomersId.ts} +1 -1
- package/src/funcs/{customersAPIPostCustomers.ts → customersPostCustomers.ts} +1 -1
- package/src/funcs/{customersAPIPutCustomersId.ts → customersPutCustomersId.ts} +1 -1
- package/src/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.ts → juspayGetPaymentsJuspayCustomer.ts} +1 -1
- package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.ts → juspayPostPaymentsJuspayCreateCustomer.ts} +1 -1
- package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.ts → juspayPostPaymentsJuspayCreateOrder.ts} +1 -1
- package/src/funcs/{ordersAPIGetOrdersIdPaymentStatus.ts → ordersGetOrdersIdPaymentStatus.ts} +1 -1
- package/src/funcs/paymentsGetMethods.ts +6 -7
- package/src/funcs/{paymentsAPIGetPaymentsCards.ts → paymentsGetPaymentsCards.ts} +1 -1
- package/src/funcs/{paymentsAPIGetPaymentsVerifyVpa.ts → paymentsGetPaymentsVerifyVpa.ts} +1 -1
- package/src/funcs/{paymentsAPIPostPaymentsCards.ts → paymentsPostPaymentsCards.ts} +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/analyticsevent.ts +16 -15
- package/src/models/components/associatedoption.ts +217 -0
- package/src/models/components/cart.ts +25 -25
- package/src/models/components/createcustomer.ts +1 -1
- package/src/models/components/discountbasedpromotion.ts +0 -6
- package/src/models/components/fixedpricepromotion.ts +0 -6
- package/src/models/components/freegoodspromotion.ts +4 -13
- package/src/models/components/index.ts +6 -8
- package/src/models/components/orderdetail.ts +1 -1
- package/src/models/components/{skuinfo.ts → product.ts} +111 -96
- package/src/models/components/productattribute.ts +162 -188
- package/src/models/components/productcategory.ts +4 -4
- package/src/models/components/productdetail.ts +143 -418
- package/src/models/components/productlistresponse.ts +55 -9
- package/src/models/components/productshipping.ts +0 -6
- package/src/models/components/{promotion.ts → promotiondetail.ts} +47 -45
- package/src/models/components/seo.ts +12 -25
- package/src/models/components/sku.ts +244 -0
- package/src/models/components/variant.ts +14 -119
- package/src/models/components/variantdetail.ts +51 -143
- package/src/models/components/variantoption.ts +214 -0
- package/src/models/components/volumebasedpromotion.ts +0 -9
- package/src/models/operations/{getpaymentspaymentmethods.ts → getpaymentmethods.ts} +68 -77
- package/src/models/operations/getpromotions.ts +4 -4
- package/src/models/operations/getsimilar.ts +4 -62
- package/src/models/operations/getskus.ts +4 -4
- package/src/models/operations/getwishtlist.ts +4 -4
- package/src/models/operations/index.ts +1 -2
- package/src/models/operations/postcartitemid.ts +27 -25
- package/src/sdk/{cestorefrontpayments.ts → cestorefrontorderspayments.ts} +1 -1
- package/src/sdk/customers.ts +58 -1
- package/src/sdk/{paymentsapijuspay.ts → juspay.ts} +7 -7
- package/src/sdk/orders.ts +22 -4
- package/src/sdk/payments.ts +57 -2
- package/src/sdk/products.ts +1 -1
- package/src/sdk/sdk.ts +4 -22
- package/docs/sdks/customersapi/README.md +0 -321
- package/docs/sdks/ordersapi/README.md +0 -86
- package/docs/sdks/paymentsapi/README.md +0 -247
- package/esm/funcs/customersAPIGetCustomersId.d.ts.map +0 -1
- package/esm/funcs/customersAPIGetCustomersId.js.map +0 -1
- package/esm/funcs/customersAPIGetRecommendedProducts.d.ts +0 -16
- package/esm/funcs/customersAPIGetRecommendedProducts.d.ts.map +0 -1
- package/esm/funcs/customersAPIGetRecommendedProducts.js +0 -80
- package/esm/funcs/customersAPIGetRecommendedProducts.js.map +0 -1
- package/esm/funcs/customersAPIPostCustomers.d.ts.map +0 -1
- package/esm/funcs/customersAPIPutCustomersId.d.ts.map +0 -1
- package/esm/funcs/customersAPIPutCustomersId.js.map +0 -1
- package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.d.ts.map +0 -1
- package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.js.map +0 -1
- package/esm/funcs/paymentsAPIGetPaymentsCards.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIGetPaymentsCards.js.map +0 -1
- package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.js.map +0 -1
- package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.js.map +0 -1
- package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.js.map +0 -1
- package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.js.map +0 -1
- package/esm/funcs/paymentsAPIPostPaymentsCards.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIPostPaymentsCards.js.map +0 -1
- package/esm/models/components/customeraddressinput.d.ts.map +0 -1
- package/esm/models/components/customeraddressinput.js.map +0 -1
- package/esm/models/components/productbundleitem.d.ts +0 -47
- package/esm/models/components/productbundleitem.d.ts.map +0 -1
- package/esm/models/components/productbundleitem.js +0 -66
- package/esm/models/components/productbundleitem.js.map +0 -1
- package/esm/models/components/productlist.d.ts.map +0 -1
- package/esm/models/components/productlist.js.map +0 -1
- package/esm/models/components/productpackaging.d.ts +0 -68
- package/esm/models/components/productpackaging.d.ts.map +0 -1
- package/esm/models/components/productpackaging.js +0 -88
- package/esm/models/components/productpackaging.js.map +0 -1
- package/esm/models/components/promotion.d.ts.map +0 -1
- package/esm/models/components/promotion.js.map +0 -1
- package/esm/models/components/recommendedproduct.d.ts +0 -155
- package/esm/models/components/recommendedproduct.d.ts.map +0 -1
- package/esm/models/components/recommendedproduct.js +0 -193
- package/esm/models/components/recommendedproduct.js.map +0 -1
- package/esm/models/components/saleschannel.d.ts +0 -39
- package/esm/models/components/saleschannel.d.ts.map +0 -1
- package/esm/models/components/saleschannel.js +0 -53
- package/esm/models/components/saleschannel.js.map +0 -1
- package/esm/models/components/skuinfo.d.ts.map +0 -1
- package/esm/models/components/skuinfo.js.map +0 -1
- package/esm/models/operations/getpaymentspaymentmethods.d.ts +0 -143
- package/esm/models/operations/getpaymentspaymentmethods.d.ts.map +0 -1
- package/esm/models/operations/getpaymentspaymentmethods.js.map +0 -1
- package/esm/models/operations/getrecommendedproducts.d.ts +0 -90
- package/esm/models/operations/getrecommendedproducts.d.ts.map +0 -1
- package/esm/models/operations/getrecommendedproducts.js +0 -87
- package/esm/models/operations/getrecommendedproducts.js.map +0 -1
- package/esm/sdk/cestorefrontpayments.d.ts.map +0 -1
- package/esm/sdk/cestorefrontpayments.js.map +0 -1
- package/esm/sdk/customersapi.d.ts +0 -34
- package/esm/sdk/customersapi.d.ts.map +0 -1
- package/esm/sdk/customersapi.js +0 -48
- package/esm/sdk/customersapi.js.map +0 -1
- package/esm/sdk/ordersapi.d.ts +0 -12
- package/esm/sdk/ordersapi.d.ts.map +0 -1
- package/esm/sdk/ordersapi.js +0 -18
- package/esm/sdk/ordersapi.js.map +0 -1
- package/esm/sdk/paymentsapi.d.ts +0 -27
- package/esm/sdk/paymentsapi.d.ts.map +0 -1
- package/esm/sdk/paymentsapi.js +0 -39
- package/esm/sdk/paymentsapi.js.map +0 -1
- package/esm/sdk/paymentsapijuspay.d.ts.map +0 -1
- package/esm/sdk/paymentsapijuspay.js.map +0 -1
- package/src/funcs/customersAPIGetRecommendedProducts.ts +0 -144
- package/src/models/components/productbundleitem.ts +0 -127
- package/src/models/components/productlist.ts +0 -368
- package/src/models/components/productpackaging.ts +0 -162
- package/src/models/components/recommendedproduct.ts +0 -385
- package/src/models/components/saleschannel.ts +0 -96
- package/src/models/operations/getrecommendedproducts.ts +0 -206
- package/src/sdk/customersapi.ts +0 -82
- package/src/sdk/ordersapi.ts +0 -27
- package/src/sdk/paymentsapi.ts +0 -64
- package/src/models/components/{customeraddressinput.ts → customeraddress.ts} +60 -60
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export const OptionType = {
|
|
13
|
+
SingleSelect: "single-select",
|
|
14
|
+
Color: "color",
|
|
15
|
+
} as const;
|
|
16
|
+
export type OptionType = ClosedEnum<typeof OptionType>;
|
|
17
|
+
|
|
18
|
+
export type Two = {};
|
|
19
|
+
|
|
20
|
+
export type OptionValue = Two | string;
|
|
21
|
+
|
|
22
|
+
export type VariantOption = {
|
|
23
|
+
optionName?: string | undefined;
|
|
24
|
+
optionType?: OptionType | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* When option_type is color, value will contain an array of objects like:
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* ```json
|
|
30
|
+
* [
|
|
31
|
+
* {
|
|
32
|
+
* "name": "first_color",
|
|
33
|
+
* "hexcode": "#000000"
|
|
34
|
+
* },
|
|
35
|
+
* {
|
|
36
|
+
* "name": "second_color",
|
|
37
|
+
* "hexcode": "#FFFFFF"
|
|
38
|
+
* }
|
|
39
|
+
* ]
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
optionValue?: Array<Two | string> | undefined;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const OptionType$inboundSchema: z.ZodNativeEnum<typeof OptionType> = z
|
|
47
|
+
.nativeEnum(OptionType);
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const OptionType$outboundSchema: z.ZodNativeEnum<typeof OptionType> =
|
|
51
|
+
OptionType$inboundSchema;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
+
*/
|
|
57
|
+
export namespace OptionType$ {
|
|
58
|
+
/** @deprecated use `OptionType$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema = OptionType$inboundSchema;
|
|
60
|
+
/** @deprecated use `OptionType$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema = OptionType$outboundSchema;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z
|
|
66
|
+
.object({});
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export type Two$Outbound = {};
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
|
|
73
|
+
.object({});
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
78
|
+
*/
|
|
79
|
+
export namespace Two$ {
|
|
80
|
+
/** @deprecated use `Two$inboundSchema` instead. */
|
|
81
|
+
export const inboundSchema = Two$inboundSchema;
|
|
82
|
+
/** @deprecated use `Two$outboundSchema` instead. */
|
|
83
|
+
export const outboundSchema = Two$outboundSchema;
|
|
84
|
+
/** @deprecated use `Two$Outbound` instead. */
|
|
85
|
+
export type Outbound = Two$Outbound;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function twoToJSON(two: Two): string {
|
|
89
|
+
return JSON.stringify(Two$outboundSchema.parse(two));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function twoFromJSON(
|
|
93
|
+
jsonString: string,
|
|
94
|
+
): SafeParseResult<Two, SDKValidationError> {
|
|
95
|
+
return safeParse(
|
|
96
|
+
jsonString,
|
|
97
|
+
(x) => Two$inboundSchema.parse(JSON.parse(x)),
|
|
98
|
+
`Failed to parse 'Two' from JSON`,
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/** @internal */
|
|
103
|
+
export const OptionValue$inboundSchema: z.ZodType<
|
|
104
|
+
OptionValue,
|
|
105
|
+
z.ZodTypeDef,
|
|
106
|
+
unknown
|
|
107
|
+
> = z.union([z.lazy(() => Two$inboundSchema), z.string()]);
|
|
108
|
+
|
|
109
|
+
/** @internal */
|
|
110
|
+
export type OptionValue$Outbound = Two$Outbound | string;
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
export const OptionValue$outboundSchema: z.ZodType<
|
|
114
|
+
OptionValue$Outbound,
|
|
115
|
+
z.ZodTypeDef,
|
|
116
|
+
OptionValue
|
|
117
|
+
> = z.union([z.lazy(() => Two$outboundSchema), z.string()]);
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @internal
|
|
121
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
122
|
+
*/
|
|
123
|
+
export namespace OptionValue$ {
|
|
124
|
+
/** @deprecated use `OptionValue$inboundSchema` instead. */
|
|
125
|
+
export const inboundSchema = OptionValue$inboundSchema;
|
|
126
|
+
/** @deprecated use `OptionValue$outboundSchema` instead. */
|
|
127
|
+
export const outboundSchema = OptionValue$outboundSchema;
|
|
128
|
+
/** @deprecated use `OptionValue$Outbound` instead. */
|
|
129
|
+
export type Outbound = OptionValue$Outbound;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function optionValueToJSON(optionValue: OptionValue): string {
|
|
133
|
+
return JSON.stringify(OptionValue$outboundSchema.parse(optionValue));
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function optionValueFromJSON(
|
|
137
|
+
jsonString: string,
|
|
138
|
+
): SafeParseResult<OptionValue, SDKValidationError> {
|
|
139
|
+
return safeParse(
|
|
140
|
+
jsonString,
|
|
141
|
+
(x) => OptionValue$inboundSchema.parse(JSON.parse(x)),
|
|
142
|
+
`Failed to parse 'OptionValue' from JSON`,
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/** @internal */
|
|
147
|
+
export const VariantOption$inboundSchema: z.ZodType<
|
|
148
|
+
VariantOption,
|
|
149
|
+
z.ZodTypeDef,
|
|
150
|
+
unknown
|
|
151
|
+
> = z.object({
|
|
152
|
+
option_name: z.string().optional(),
|
|
153
|
+
option_type: OptionType$inboundSchema.optional(),
|
|
154
|
+
option_value: z.array(z.union([z.lazy(() => Two$inboundSchema), z.string()]))
|
|
155
|
+
.optional(),
|
|
156
|
+
}).transform((v) => {
|
|
157
|
+
return remap$(v, {
|
|
158
|
+
"option_name": "optionName",
|
|
159
|
+
"option_type": "optionType",
|
|
160
|
+
"option_value": "optionValue",
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
/** @internal */
|
|
165
|
+
export type VariantOption$Outbound = {
|
|
166
|
+
option_name?: string | undefined;
|
|
167
|
+
option_type?: string | undefined;
|
|
168
|
+
option_value?: Array<Two$Outbound | string> | undefined;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
/** @internal */
|
|
172
|
+
export const VariantOption$outboundSchema: z.ZodType<
|
|
173
|
+
VariantOption$Outbound,
|
|
174
|
+
z.ZodTypeDef,
|
|
175
|
+
VariantOption
|
|
176
|
+
> = z.object({
|
|
177
|
+
optionName: z.string().optional(),
|
|
178
|
+
optionType: OptionType$outboundSchema.optional(),
|
|
179
|
+
optionValue: z.array(z.union([z.lazy(() => Two$outboundSchema), z.string()]))
|
|
180
|
+
.optional(),
|
|
181
|
+
}).transform((v) => {
|
|
182
|
+
return remap$(v, {
|
|
183
|
+
optionName: "option_name",
|
|
184
|
+
optionType: "option_type",
|
|
185
|
+
optionValue: "option_value",
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @internal
|
|
191
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
192
|
+
*/
|
|
193
|
+
export namespace VariantOption$ {
|
|
194
|
+
/** @deprecated use `VariantOption$inboundSchema` instead. */
|
|
195
|
+
export const inboundSchema = VariantOption$inboundSchema;
|
|
196
|
+
/** @deprecated use `VariantOption$outboundSchema` instead. */
|
|
197
|
+
export const outboundSchema = VariantOption$outboundSchema;
|
|
198
|
+
/** @deprecated use `VariantOption$Outbound` instead. */
|
|
199
|
+
export type Outbound = VariantOption$Outbound;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export function variantOptionToJSON(variantOption: VariantOption): string {
|
|
203
|
+
return JSON.stringify(VariantOption$outboundSchema.parse(variantOption));
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export function variantOptionFromJSON(
|
|
207
|
+
jsonString: string,
|
|
208
|
+
): SafeParseResult<VariantOption, SDKValidationError> {
|
|
209
|
+
return safeParse(
|
|
210
|
+
jsonString,
|
|
211
|
+
(x) => VariantOption$inboundSchema.parse(JSON.parse(x)),
|
|
212
|
+
`Failed to parse 'VariantOption' from JSON`,
|
|
213
|
+
);
|
|
214
|
+
}
|
|
@@ -21,10 +21,6 @@ export type Slabs = {
|
|
|
21
21
|
|
|
22
22
|
export type VolumeBasedPromotion = {
|
|
23
23
|
promotionType?: "discount" | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* Optional ID for a specific customer group.
|
|
26
|
-
*/
|
|
27
|
-
customerGroupId?: string | null | undefined;
|
|
28
24
|
slabs: Array<Slabs>;
|
|
29
25
|
};
|
|
30
26
|
|
|
@@ -95,19 +91,16 @@ export const VolumeBasedPromotion$inboundSchema: z.ZodType<
|
|
|
95
91
|
unknown
|
|
96
92
|
> = z.object({
|
|
97
93
|
promotion_type: z.literal("discount").optional(),
|
|
98
|
-
customer_group_id: z.nullable(z.string()).optional(),
|
|
99
94
|
slabs: z.array(z.lazy(() => Slabs$inboundSchema)),
|
|
100
95
|
}).transform((v) => {
|
|
101
96
|
return remap$(v, {
|
|
102
97
|
"promotion_type": "promotionType",
|
|
103
|
-
"customer_group_id": "customerGroupId",
|
|
104
98
|
});
|
|
105
99
|
});
|
|
106
100
|
|
|
107
101
|
/** @internal */
|
|
108
102
|
export type VolumeBasedPromotion$Outbound = {
|
|
109
103
|
promotion_type: "discount";
|
|
110
|
-
customer_group_id?: string | null | undefined;
|
|
111
104
|
slabs: Array<Slabs$Outbound>;
|
|
112
105
|
};
|
|
113
106
|
|
|
@@ -118,12 +111,10 @@ export const VolumeBasedPromotion$outboundSchema: z.ZodType<
|
|
|
118
111
|
VolumeBasedPromotion
|
|
119
112
|
> = z.object({
|
|
120
113
|
promotionType: z.literal("discount").default("discount" as const),
|
|
121
|
-
customerGroupId: z.nullable(z.string()).optional(),
|
|
122
114
|
slabs: z.array(z.lazy(() => Slabs$outboundSchema)),
|
|
123
115
|
}).transform((v) => {
|
|
124
116
|
return remap$(v, {
|
|
125
117
|
promotionType: "promotion_type",
|
|
126
|
-
customerGroupId: "customer_group_id",
|
|
127
118
|
});
|
|
128
119
|
});
|
|
129
120
|
|
|
@@ -24,7 +24,7 @@ export type QueryParamPaymentGateway = ClosedEnum<
|
|
|
24
24
|
typeof QueryParamPaymentGateway
|
|
25
25
|
>;
|
|
26
26
|
|
|
27
|
-
export type
|
|
27
|
+
export type GetPaymentMethodsRequest = {
|
|
28
28
|
/**
|
|
29
29
|
* payment gateway code
|
|
30
30
|
*/
|
|
@@ -35,7 +35,7 @@ export type PaymentMethods =
|
|
|
35
35
|
| components.JuspayPaymentMethod
|
|
36
36
|
| components.PayuPaymentMethod;
|
|
37
37
|
|
|
38
|
-
export type
|
|
38
|
+
export type GetPaymentMethodsContent = {
|
|
39
39
|
paymentMethods?:
|
|
40
40
|
| Array<components.JuspayPaymentMethod | components.PayuPaymentMethod>
|
|
41
41
|
| undefined;
|
|
@@ -44,10 +44,10 @@ export type GetPaymentsPaymentMethodsContent = {
|
|
|
44
44
|
/**
|
|
45
45
|
* OK
|
|
46
46
|
*/
|
|
47
|
-
export type
|
|
47
|
+
export type GetPaymentMethodsResponseBody = {
|
|
48
48
|
message?: string | undefined;
|
|
49
49
|
success?: boolean | undefined;
|
|
50
|
-
content?:
|
|
50
|
+
content?: GetPaymentMethodsContent | undefined;
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
/** @internal */
|
|
@@ -72,8 +72,8 @@ export namespace QueryParamPaymentGateway$ {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/** @internal */
|
|
75
|
-
export const
|
|
76
|
-
|
|
75
|
+
export const GetPaymentMethodsRequest$inboundSchema: z.ZodType<
|
|
76
|
+
GetPaymentMethodsRequest,
|
|
77
77
|
z.ZodTypeDef,
|
|
78
78
|
unknown
|
|
79
79
|
> = z.object({
|
|
@@ -85,15 +85,15 @@ export const GetPaymentsPaymentMethodsRequest$inboundSchema: z.ZodType<
|
|
|
85
85
|
});
|
|
86
86
|
|
|
87
87
|
/** @internal */
|
|
88
|
-
export type
|
|
88
|
+
export type GetPaymentMethodsRequest$Outbound = {
|
|
89
89
|
payment_gateway: string;
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
/** @internal */
|
|
93
|
-
export const
|
|
94
|
-
|
|
93
|
+
export const GetPaymentMethodsRequest$outboundSchema: z.ZodType<
|
|
94
|
+
GetPaymentMethodsRequest$Outbound,
|
|
95
95
|
z.ZodTypeDef,
|
|
96
|
-
|
|
96
|
+
GetPaymentMethodsRequest
|
|
97
97
|
> = z.object({
|
|
98
98
|
paymentGateway: QueryParamPaymentGateway$outboundSchema,
|
|
99
99
|
}).transform((v) => {
|
|
@@ -106,32 +106,30 @@ export const GetPaymentsPaymentMethodsRequest$outboundSchema: z.ZodType<
|
|
|
106
106
|
* @internal
|
|
107
107
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
108
108
|
*/
|
|
109
|
-
export namespace
|
|
110
|
-
/** @deprecated use `
|
|
111
|
-
export const inboundSchema =
|
|
112
|
-
/** @deprecated use `
|
|
113
|
-
export const outboundSchema =
|
|
114
|
-
/** @deprecated use `
|
|
115
|
-
export type Outbound =
|
|
109
|
+
export namespace GetPaymentMethodsRequest$ {
|
|
110
|
+
/** @deprecated use `GetPaymentMethodsRequest$inboundSchema` instead. */
|
|
111
|
+
export const inboundSchema = GetPaymentMethodsRequest$inboundSchema;
|
|
112
|
+
/** @deprecated use `GetPaymentMethodsRequest$outboundSchema` instead. */
|
|
113
|
+
export const outboundSchema = GetPaymentMethodsRequest$outboundSchema;
|
|
114
|
+
/** @deprecated use `GetPaymentMethodsRequest$Outbound` instead. */
|
|
115
|
+
export type Outbound = GetPaymentMethodsRequest$Outbound;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
export function
|
|
119
|
-
|
|
118
|
+
export function getPaymentMethodsRequestToJSON(
|
|
119
|
+
getPaymentMethodsRequest: GetPaymentMethodsRequest,
|
|
120
120
|
): string {
|
|
121
121
|
return JSON.stringify(
|
|
122
|
-
|
|
123
|
-
getPaymentsPaymentMethodsRequest,
|
|
124
|
-
),
|
|
122
|
+
GetPaymentMethodsRequest$outboundSchema.parse(getPaymentMethodsRequest),
|
|
125
123
|
);
|
|
126
124
|
}
|
|
127
125
|
|
|
128
|
-
export function
|
|
126
|
+
export function getPaymentMethodsRequestFromJSON(
|
|
129
127
|
jsonString: string,
|
|
130
|
-
): SafeParseResult<
|
|
128
|
+
): SafeParseResult<GetPaymentMethodsRequest, SDKValidationError> {
|
|
131
129
|
return safeParse(
|
|
132
130
|
jsonString,
|
|
133
|
-
(x) =>
|
|
134
|
-
`Failed to parse '
|
|
131
|
+
(x) => GetPaymentMethodsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
132
|
+
`Failed to parse 'GetPaymentMethodsRequest' from JSON`,
|
|
135
133
|
);
|
|
136
134
|
}
|
|
137
135
|
|
|
@@ -188,8 +186,8 @@ export function paymentMethodsFromJSON(
|
|
|
188
186
|
}
|
|
189
187
|
|
|
190
188
|
/** @internal */
|
|
191
|
-
export const
|
|
192
|
-
|
|
189
|
+
export const GetPaymentMethodsContent$inboundSchema: z.ZodType<
|
|
190
|
+
GetPaymentMethodsContent,
|
|
193
191
|
z.ZodTypeDef,
|
|
194
192
|
unknown
|
|
195
193
|
> = z.object({
|
|
@@ -206,7 +204,7 @@ export const GetPaymentsPaymentMethodsContent$inboundSchema: z.ZodType<
|
|
|
206
204
|
});
|
|
207
205
|
|
|
208
206
|
/** @internal */
|
|
209
|
-
export type
|
|
207
|
+
export type GetPaymentMethodsContent$Outbound = {
|
|
210
208
|
payment_methods?:
|
|
211
209
|
| Array<
|
|
212
210
|
| components.JuspayPaymentMethod$Outbound
|
|
@@ -216,10 +214,10 @@ export type GetPaymentsPaymentMethodsContent$Outbound = {
|
|
|
216
214
|
};
|
|
217
215
|
|
|
218
216
|
/** @internal */
|
|
219
|
-
export const
|
|
220
|
-
|
|
217
|
+
export const GetPaymentMethodsContent$outboundSchema: z.ZodType<
|
|
218
|
+
GetPaymentMethodsContent$Outbound,
|
|
221
219
|
z.ZodTypeDef,
|
|
222
|
-
|
|
220
|
+
GetPaymentMethodsContent
|
|
223
221
|
> = z.object({
|
|
224
222
|
paymentMethods: z.array(
|
|
225
223
|
z.union([
|
|
@@ -237,98 +235,91 @@ export const GetPaymentsPaymentMethodsContent$outboundSchema: z.ZodType<
|
|
|
237
235
|
* @internal
|
|
238
236
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
239
237
|
*/
|
|
240
|
-
export namespace
|
|
241
|
-
/** @deprecated use `
|
|
242
|
-
export const inboundSchema =
|
|
243
|
-
/** @deprecated use `
|
|
244
|
-
export const outboundSchema =
|
|
245
|
-
/** @deprecated use `
|
|
246
|
-
export type Outbound =
|
|
238
|
+
export namespace GetPaymentMethodsContent$ {
|
|
239
|
+
/** @deprecated use `GetPaymentMethodsContent$inboundSchema` instead. */
|
|
240
|
+
export const inboundSchema = GetPaymentMethodsContent$inboundSchema;
|
|
241
|
+
/** @deprecated use `GetPaymentMethodsContent$outboundSchema` instead. */
|
|
242
|
+
export const outboundSchema = GetPaymentMethodsContent$outboundSchema;
|
|
243
|
+
/** @deprecated use `GetPaymentMethodsContent$Outbound` instead. */
|
|
244
|
+
export type Outbound = GetPaymentMethodsContent$Outbound;
|
|
247
245
|
}
|
|
248
246
|
|
|
249
|
-
export function
|
|
250
|
-
|
|
247
|
+
export function getPaymentMethodsContentToJSON(
|
|
248
|
+
getPaymentMethodsContent: GetPaymentMethodsContent,
|
|
251
249
|
): string {
|
|
252
250
|
return JSON.stringify(
|
|
253
|
-
|
|
254
|
-
getPaymentsPaymentMethodsContent,
|
|
255
|
-
),
|
|
251
|
+
GetPaymentMethodsContent$outboundSchema.parse(getPaymentMethodsContent),
|
|
256
252
|
);
|
|
257
253
|
}
|
|
258
254
|
|
|
259
|
-
export function
|
|
255
|
+
export function getPaymentMethodsContentFromJSON(
|
|
260
256
|
jsonString: string,
|
|
261
|
-
): SafeParseResult<
|
|
257
|
+
): SafeParseResult<GetPaymentMethodsContent, SDKValidationError> {
|
|
262
258
|
return safeParse(
|
|
263
259
|
jsonString,
|
|
264
|
-
(x) =>
|
|
265
|
-
`Failed to parse '
|
|
260
|
+
(x) => GetPaymentMethodsContent$inboundSchema.parse(JSON.parse(x)),
|
|
261
|
+
`Failed to parse 'GetPaymentMethodsContent' from JSON`,
|
|
266
262
|
);
|
|
267
263
|
}
|
|
268
264
|
|
|
269
265
|
/** @internal */
|
|
270
|
-
export const
|
|
271
|
-
|
|
266
|
+
export const GetPaymentMethodsResponseBody$inboundSchema: z.ZodType<
|
|
267
|
+
GetPaymentMethodsResponseBody,
|
|
272
268
|
z.ZodTypeDef,
|
|
273
269
|
unknown
|
|
274
270
|
> = z.object({
|
|
275
271
|
message: z.string().optional(),
|
|
276
272
|
success: z.boolean().optional(),
|
|
277
|
-
content: z.lazy(() =>
|
|
278
|
-
.optional(),
|
|
273
|
+
content: z.lazy(() => GetPaymentMethodsContent$inboundSchema).optional(),
|
|
279
274
|
});
|
|
280
275
|
|
|
281
276
|
/** @internal */
|
|
282
|
-
export type
|
|
277
|
+
export type GetPaymentMethodsResponseBody$Outbound = {
|
|
283
278
|
message?: string | undefined;
|
|
284
279
|
success?: boolean | undefined;
|
|
285
|
-
content?:
|
|
280
|
+
content?: GetPaymentMethodsContent$Outbound | undefined;
|
|
286
281
|
};
|
|
287
282
|
|
|
288
283
|
/** @internal */
|
|
289
|
-
export const
|
|
290
|
-
|
|
284
|
+
export const GetPaymentMethodsResponseBody$outboundSchema: z.ZodType<
|
|
285
|
+
GetPaymentMethodsResponseBody$Outbound,
|
|
291
286
|
z.ZodTypeDef,
|
|
292
|
-
|
|
287
|
+
GetPaymentMethodsResponseBody
|
|
293
288
|
> = z.object({
|
|
294
289
|
message: z.string().optional(),
|
|
295
290
|
success: z.boolean().optional(),
|
|
296
|
-
content: z.lazy(() =>
|
|
297
|
-
.optional(),
|
|
291
|
+
content: z.lazy(() => GetPaymentMethodsContent$outboundSchema).optional(),
|
|
298
292
|
});
|
|
299
293
|
|
|
300
294
|
/**
|
|
301
295
|
* @internal
|
|
302
296
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
303
297
|
*/
|
|
304
|
-
export namespace
|
|
305
|
-
/** @deprecated use `
|
|
306
|
-
export const inboundSchema =
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
/** @deprecated use `GetPaymentsPaymentMethodsResponseBody$Outbound` instead. */
|
|
312
|
-
export type Outbound = GetPaymentsPaymentMethodsResponseBody$Outbound;
|
|
298
|
+
export namespace GetPaymentMethodsResponseBody$ {
|
|
299
|
+
/** @deprecated use `GetPaymentMethodsResponseBody$inboundSchema` instead. */
|
|
300
|
+
export const inboundSchema = GetPaymentMethodsResponseBody$inboundSchema;
|
|
301
|
+
/** @deprecated use `GetPaymentMethodsResponseBody$outboundSchema` instead. */
|
|
302
|
+
export const outboundSchema = GetPaymentMethodsResponseBody$outboundSchema;
|
|
303
|
+
/** @deprecated use `GetPaymentMethodsResponseBody$Outbound` instead. */
|
|
304
|
+
export type Outbound = GetPaymentMethodsResponseBody$Outbound;
|
|
313
305
|
}
|
|
314
306
|
|
|
315
|
-
export function
|
|
316
|
-
|
|
307
|
+
export function getPaymentMethodsResponseBodyToJSON(
|
|
308
|
+
getPaymentMethodsResponseBody: GetPaymentMethodsResponseBody,
|
|
317
309
|
): string {
|
|
318
310
|
return JSON.stringify(
|
|
319
|
-
|
|
320
|
-
|
|
311
|
+
GetPaymentMethodsResponseBody$outboundSchema.parse(
|
|
312
|
+
getPaymentMethodsResponseBody,
|
|
321
313
|
),
|
|
322
314
|
);
|
|
323
315
|
}
|
|
324
316
|
|
|
325
|
-
export function
|
|
317
|
+
export function getPaymentMethodsResponseBodyFromJSON(
|
|
326
318
|
jsonString: string,
|
|
327
|
-
): SafeParseResult<
|
|
319
|
+
): SafeParseResult<GetPaymentMethodsResponseBody, SDKValidationError> {
|
|
328
320
|
return safeParse(
|
|
329
321
|
jsonString,
|
|
330
|
-
(x) =>
|
|
331
|
-
|
|
332
|
-
`Failed to parse 'GetPaymentsPaymentMethodsResponseBody' from JSON`,
|
|
322
|
+
(x) => GetPaymentMethodsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
323
|
+
`Failed to parse 'GetPaymentMethodsResponseBody' from JSON`,
|
|
333
324
|
);
|
|
334
325
|
}
|
|
@@ -9,7 +9,7 @@ import * as components from "../components/index.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type GetPromotionsContent = {
|
|
12
|
-
promotions?: Array<components.
|
|
12
|
+
promotions?: Array<components.PromotionDetail> | undefined;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -27,12 +27,12 @@ export const GetPromotionsContent$inboundSchema: z.ZodType<
|
|
|
27
27
|
z.ZodTypeDef,
|
|
28
28
|
unknown
|
|
29
29
|
> = z.object({
|
|
30
|
-
promotions: z.array(components.
|
|
30
|
+
promotions: z.array(components.PromotionDetail$inboundSchema).optional(),
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
/** @internal */
|
|
34
34
|
export type GetPromotionsContent$Outbound = {
|
|
35
|
-
promotions?: Array<components.
|
|
35
|
+
promotions?: Array<components.PromotionDetail$Outbound> | undefined;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
/** @internal */
|
|
@@ -41,7 +41,7 @@ export const GetPromotionsContent$outboundSchema: z.ZodType<
|
|
|
41
41
|
z.ZodTypeDef,
|
|
42
42
|
GetPromotionsContent
|
|
43
43
|
> = z.object({
|
|
44
|
-
promotions: z.array(components.
|
|
44
|
+
promotions: z.array(components.PromotionDetail$outboundSchema).optional(),
|
|
45
45
|
});
|
|
46
46
|
|
|
47
47
|
/**
|
|
@@ -28,17 +28,13 @@ export type GetSimilarRequest = {
|
|
|
28
28
|
sortBy?: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
export type GetSimilarContent = {
|
|
32
|
-
products?: Array<components.ProductList> | undefined;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
31
|
/**
|
|
36
32
|
* Success response
|
|
37
33
|
*/
|
|
38
34
|
export type GetSimilarResponseBody = {
|
|
39
35
|
message?: string | undefined;
|
|
40
36
|
success?: boolean | undefined;
|
|
41
|
-
content?:
|
|
37
|
+
content?: components.ProductListResponse | undefined;
|
|
42
38
|
};
|
|
43
39
|
|
|
44
40
|
/** @internal */
|
|
@@ -114,60 +110,6 @@ export function getSimilarRequestFromJSON(
|
|
|
114
110
|
);
|
|
115
111
|
}
|
|
116
112
|
|
|
117
|
-
/** @internal */
|
|
118
|
-
export const GetSimilarContent$inboundSchema: z.ZodType<
|
|
119
|
-
GetSimilarContent,
|
|
120
|
-
z.ZodTypeDef,
|
|
121
|
-
unknown
|
|
122
|
-
> = z.object({
|
|
123
|
-
products: z.array(components.ProductList$inboundSchema).optional(),
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
/** @internal */
|
|
127
|
-
export type GetSimilarContent$Outbound = {
|
|
128
|
-
products?: Array<components.ProductList$Outbound> | undefined;
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
/** @internal */
|
|
132
|
-
export const GetSimilarContent$outboundSchema: z.ZodType<
|
|
133
|
-
GetSimilarContent$Outbound,
|
|
134
|
-
z.ZodTypeDef,
|
|
135
|
-
GetSimilarContent
|
|
136
|
-
> = z.object({
|
|
137
|
-
products: z.array(components.ProductList$outboundSchema).optional(),
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* @internal
|
|
142
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
143
|
-
*/
|
|
144
|
-
export namespace GetSimilarContent$ {
|
|
145
|
-
/** @deprecated use `GetSimilarContent$inboundSchema` instead. */
|
|
146
|
-
export const inboundSchema = GetSimilarContent$inboundSchema;
|
|
147
|
-
/** @deprecated use `GetSimilarContent$outboundSchema` instead. */
|
|
148
|
-
export const outboundSchema = GetSimilarContent$outboundSchema;
|
|
149
|
-
/** @deprecated use `GetSimilarContent$Outbound` instead. */
|
|
150
|
-
export type Outbound = GetSimilarContent$Outbound;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export function getSimilarContentToJSON(
|
|
154
|
-
getSimilarContent: GetSimilarContent,
|
|
155
|
-
): string {
|
|
156
|
-
return JSON.stringify(
|
|
157
|
-
GetSimilarContent$outboundSchema.parse(getSimilarContent),
|
|
158
|
-
);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export function getSimilarContentFromJSON(
|
|
162
|
-
jsonString: string,
|
|
163
|
-
): SafeParseResult<GetSimilarContent, SDKValidationError> {
|
|
164
|
-
return safeParse(
|
|
165
|
-
jsonString,
|
|
166
|
-
(x) => GetSimilarContent$inboundSchema.parse(JSON.parse(x)),
|
|
167
|
-
`Failed to parse 'GetSimilarContent' from JSON`,
|
|
168
|
-
);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
113
|
/** @internal */
|
|
172
114
|
export const GetSimilarResponseBody$inboundSchema: z.ZodType<
|
|
173
115
|
GetSimilarResponseBody,
|
|
@@ -176,14 +118,14 @@ export const GetSimilarResponseBody$inboundSchema: z.ZodType<
|
|
|
176
118
|
> = z.object({
|
|
177
119
|
message: z.string().optional(),
|
|
178
120
|
success: z.boolean().optional(),
|
|
179
|
-
content:
|
|
121
|
+
content: components.ProductListResponse$inboundSchema.optional(),
|
|
180
122
|
});
|
|
181
123
|
|
|
182
124
|
/** @internal */
|
|
183
125
|
export type GetSimilarResponseBody$Outbound = {
|
|
184
126
|
message?: string | undefined;
|
|
185
127
|
success?: boolean | undefined;
|
|
186
|
-
content?:
|
|
128
|
+
content?: components.ProductListResponse$Outbound | undefined;
|
|
187
129
|
};
|
|
188
130
|
|
|
189
131
|
/** @internal */
|
|
@@ -194,7 +136,7 @@ export const GetSimilarResponseBody$outboundSchema: z.ZodType<
|
|
|
194
136
|
> = z.object({
|
|
195
137
|
message: z.string().optional(),
|
|
196
138
|
success: z.boolean().optional(),
|
|
197
|
-
content:
|
|
139
|
+
content: components.ProductListResponse$outboundSchema.optional(),
|
|
198
140
|
});
|
|
199
141
|
|
|
200
142
|
/**
|