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.
Files changed (338) hide show
  1. package/README.md +26 -37
  2. package/docs/sdks/{cestorefrontpayments → cestorefrontorderspayments}/README.md +1 -1
  3. package/docs/sdks/customers/README.md +236 -0
  4. package/docs/sdks/{paymentsapijuspay → juspay}/README.md +12 -12
  5. package/docs/sdks/orders/README.md +80 -1
  6. package/docs/sdks/payments/README.md +242 -2
  7. package/docs/sdks/products/README.md +1 -1
  8. package/esm/funcs/catalogProductsGet.d.ts +1 -1
  9. package/esm/funcs/catalogProductsGet.js +1 -1
  10. package/esm/funcs/{customersAPIGetCustomersId.d.ts → customersGetCustomersId.d.ts} +2 -2
  11. package/esm/funcs/customersGetCustomersId.d.ts.map +1 -0
  12. package/esm/funcs/{customersAPIGetCustomersId.js → customersGetCustomersId.js} +2 -2
  13. package/esm/funcs/customersGetCustomersId.js.map +1 -0
  14. package/esm/funcs/{customersAPIPostCustomers.d.ts → customersPostCustomers.d.ts} +2 -2
  15. package/esm/funcs/customersPostCustomers.d.ts.map +1 -0
  16. package/esm/funcs/{customersAPIPostCustomers.js → customersPostCustomers.js} +2 -2
  17. package/esm/funcs/customersPostCustomers.js.map +1 -0
  18. package/esm/funcs/{customersAPIPutCustomersId.d.ts → customersPutCustomersId.d.ts} +2 -2
  19. package/esm/funcs/customersPutCustomersId.d.ts.map +1 -0
  20. package/esm/funcs/{customersAPIPutCustomersId.js → customersPutCustomersId.js} +2 -2
  21. package/esm/funcs/{customersAPIPostCustomers.js.map → customersPutCustomersId.js.map} +1 -1
  22. package/esm/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.d.ts → juspayGetPaymentsJuspayCustomer.d.ts} +2 -2
  23. package/esm/funcs/juspayGetPaymentsJuspayCustomer.d.ts.map +1 -0
  24. package/esm/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.js → juspayGetPaymentsJuspayCustomer.js} +2 -2
  25. package/esm/funcs/juspayGetPaymentsJuspayCustomer.js.map +1 -0
  26. package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.d.ts → juspayPostPaymentsJuspayCreateCustomer.d.ts} +2 -2
  27. package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.d.ts.map +1 -0
  28. package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.js → juspayPostPaymentsJuspayCreateCustomer.js} +2 -2
  29. package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.js.map +1 -0
  30. package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.d.ts → juspayPostPaymentsJuspayCreateOrder.d.ts} +2 -2
  31. package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.d.ts.map +1 -0
  32. package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.js → juspayPostPaymentsJuspayCreateOrder.js} +2 -2
  33. package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.js.map +1 -0
  34. package/esm/funcs/{ordersAPIGetOrdersIdPaymentStatus.d.ts → ordersGetOrdersIdPaymentStatus.d.ts} +2 -2
  35. package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts.map +1 -0
  36. package/esm/funcs/{ordersAPIGetOrdersIdPaymentStatus.js → ordersGetOrdersIdPaymentStatus.js} +2 -2
  37. package/esm/funcs/ordersGetOrdersIdPaymentStatus.js.map +1 -0
  38. package/esm/funcs/paymentsGetMethods.d.ts +1 -1
  39. package/esm/funcs/paymentsGetMethods.d.ts.map +1 -1
  40. package/esm/funcs/paymentsGetMethods.js +3 -3
  41. package/esm/funcs/paymentsGetMethods.js.map +1 -1
  42. package/esm/funcs/{paymentsAPIGetPaymentsCards.d.ts → paymentsGetPaymentsCards.d.ts} +2 -2
  43. package/esm/funcs/paymentsGetPaymentsCards.d.ts.map +1 -0
  44. package/esm/funcs/{paymentsAPIGetPaymentsCards.js → paymentsGetPaymentsCards.js} +2 -2
  45. package/esm/funcs/paymentsGetPaymentsCards.js.map +1 -0
  46. package/esm/funcs/{paymentsAPIGetPaymentsVerifyVpa.d.ts → paymentsGetPaymentsVerifyVpa.d.ts} +2 -2
  47. package/esm/funcs/paymentsGetPaymentsVerifyVpa.d.ts.map +1 -0
  48. package/esm/funcs/{paymentsAPIGetPaymentsVerifyVpa.js → paymentsGetPaymentsVerifyVpa.js} +2 -2
  49. package/esm/funcs/paymentsGetPaymentsVerifyVpa.js.map +1 -0
  50. package/esm/funcs/{paymentsAPIPostPaymentsCards.d.ts → paymentsPostPaymentsCards.d.ts} +2 -2
  51. package/esm/funcs/paymentsPostPaymentsCards.d.ts.map +1 -0
  52. package/esm/funcs/{paymentsAPIPostPaymentsCards.js → paymentsPostPaymentsCards.js} +2 -2
  53. package/esm/funcs/paymentsPostPaymentsCards.js.map +1 -0
  54. package/esm/lib/config.d.ts +3 -3
  55. package/esm/lib/config.js +3 -3
  56. package/esm/models/components/analyticsevent.d.ts +8 -8
  57. package/esm/models/components/analyticsevent.d.ts.map +1 -1
  58. package/esm/models/components/analyticsevent.js +12 -12
  59. package/esm/models/components/analyticsevent.js.map +1 -1
  60. package/esm/models/components/associatedoption.d.ts +125 -0
  61. package/esm/models/components/associatedoption.d.ts.map +1 -0
  62. package/esm/models/components/associatedoption.js +107 -0
  63. package/esm/models/components/associatedoption.js.map +1 -0
  64. package/esm/models/components/cart.d.ts +16 -16
  65. package/esm/models/components/cart.d.ts.map +1 -1
  66. package/esm/models/components/cart.js +16 -16
  67. package/esm/models/components/cart.js.map +1 -1
  68. package/esm/models/components/createcustomer.d.ts +1 -1
  69. package/esm/models/components/createcustomer.d.ts.map +1 -1
  70. package/esm/models/components/createcustomer.js +1 -1
  71. package/esm/models/components/createcustomer.js.map +1 -1
  72. package/esm/models/components/{customeraddressinput.d.ts → customeraddress.d.ts} +33 -33
  73. package/esm/models/components/customeraddress.d.ts.map +1 -0
  74. package/esm/models/components/{customeraddressinput.js → customeraddress.js} +37 -37
  75. package/esm/models/components/customeraddress.js.map +1 -0
  76. package/esm/models/components/discountbasedpromotion.d.ts +0 -2
  77. package/esm/models/components/discountbasedpromotion.d.ts.map +1 -1
  78. package/esm/models/components/discountbasedpromotion.js +0 -4
  79. package/esm/models/components/discountbasedpromotion.js.map +1 -1
  80. package/esm/models/components/fixedpricepromotion.d.ts +0 -2
  81. package/esm/models/components/fixedpricepromotion.d.ts.map +1 -1
  82. package/esm/models/components/fixedpricepromotion.js +0 -4
  83. package/esm/models/components/fixedpricepromotion.js.map +1 -1
  84. package/esm/models/components/freegoodspromotion.d.ts +2 -7
  85. package/esm/models/components/freegoodspromotion.d.ts.map +1 -1
  86. package/esm/models/components/freegoodspromotion.js +2 -6
  87. package/esm/models/components/freegoodspromotion.js.map +1 -1
  88. package/esm/models/components/index.d.ts +6 -8
  89. package/esm/models/components/index.d.ts.map +1 -1
  90. package/esm/models/components/index.js +6 -8
  91. package/esm/models/components/index.js.map +1 -1
  92. package/esm/models/components/orderdetail.d.ts +1 -1
  93. package/esm/models/components/orderdetail.d.ts.map +1 -1
  94. package/esm/models/components/orderdetail.js +1 -1
  95. package/esm/models/components/orderdetail.js.map +1 -1
  96. package/esm/models/components/{productlist.d.ts → product.d.ts} +38 -78
  97. package/esm/models/components/product.d.ts.map +1 -0
  98. package/esm/models/components/{productlist.js → product.js} +37 -98
  99. package/esm/models/components/product.js.map +1 -0
  100. package/esm/models/components/productattribute.d.ts +97 -64
  101. package/esm/models/components/productattribute.d.ts.map +1 -1
  102. package/esm/models/components/productattribute.js +67 -128
  103. package/esm/models/components/productattribute.js.map +1 -1
  104. package/esm/models/components/productcategory.d.ts +2 -2
  105. package/esm/models/components/productcategory.d.ts.map +1 -1
  106. package/esm/models/components/productcategory.js +2 -2
  107. package/esm/models/components/productcategory.js.map +1 -1
  108. package/esm/models/components/productdetail.d.ts +63 -165
  109. package/esm/models/components/productdetail.d.ts.map +1 -1
  110. package/esm/models/components/productdetail.js +70 -204
  111. package/esm/models/components/productdetail.js.map +1 -1
  112. package/esm/models/components/productlistresponse.d.ts +24 -3
  113. package/esm/models/components/productlistresponse.d.ts.map +1 -1
  114. package/esm/models/components/productlistresponse.js +24 -3
  115. package/esm/models/components/productlistresponse.js.map +1 -1
  116. package/esm/models/components/productpromotion.d.ts +11 -5
  117. package/esm/models/components/productpromotion.d.ts.map +1 -1
  118. package/esm/models/components/productshipping.d.ts +0 -2
  119. package/esm/models/components/productshipping.d.ts.map +1 -1
  120. package/esm/models/components/productshipping.js +0 -4
  121. package/esm/models/components/productshipping.js.map +1 -1
  122. package/esm/models/components/{promotion.d.ts → promotiondetail.d.ts} +29 -29
  123. package/esm/models/components/promotiondetail.d.ts.map +1 -0
  124. package/esm/models/components/{promotion.js → promotiondetail.js} +29 -29
  125. package/esm/models/components/promotiondetail.js.map +1 -0
  126. package/esm/models/components/seo.d.ts +6 -6
  127. package/esm/models/components/seo.d.ts.map +1 -1
  128. package/esm/models/components/seo.js +6 -19
  129. package/esm/models/components/seo.js.map +1 -1
  130. package/esm/models/components/{skuinfo.d.ts → sku.d.ts} +56 -48
  131. package/esm/models/components/sku.d.ts.map +1 -0
  132. package/esm/models/components/{skuinfo.js → sku.js} +65 -57
  133. package/esm/models/components/sku.js.map +1 -0
  134. package/esm/models/components/variant.d.ts +13 -52
  135. package/esm/models/components/variant.d.ts.map +1 -1
  136. package/esm/models/components/variant.js +5 -55
  137. package/esm/models/components/variant.js.map +1 -1
  138. package/esm/models/components/variantdetail.d.ts +31 -60
  139. package/esm/models/components/variantdetail.d.ts.map +1 -1
  140. package/esm/models/components/variantdetail.js +20 -57
  141. package/esm/models/components/variantdetail.js.map +1 -1
  142. package/esm/models/components/variantoption.d.ts +118 -0
  143. package/esm/models/components/variantoption.d.ts.map +1 -0
  144. package/esm/models/components/variantoption.js +114 -0
  145. package/esm/models/components/variantoption.js.map +1 -0
  146. package/esm/models/components/volumebasedpromotion.d.ts +0 -5
  147. package/esm/models/components/volumebasedpromotion.d.ts.map +1 -1
  148. package/esm/models/components/volumebasedpromotion.js +0 -4
  149. package/esm/models/components/volumebasedpromotion.js.map +1 -1
  150. package/esm/models/operations/getpaymentmethods.d.ts +143 -0
  151. package/esm/models/operations/getpaymentmethods.d.ts.map +1 -0
  152. package/esm/models/operations/{getpaymentspaymentmethods.js → getpaymentmethods.js} +42 -44
  153. package/esm/models/operations/getpaymentmethods.js.map +1 -0
  154. package/esm/models/operations/getpromotions.d.ts +2 -2
  155. package/esm/models/operations/getpromotions.d.ts.map +1 -1
  156. package/esm/models/operations/getpromotions.js +2 -2
  157. package/esm/models/operations/getpromotions.js.map +1 -1
  158. package/esm/models/operations/getsimilar.d.ts +2 -27
  159. package/esm/models/operations/getsimilar.d.ts.map +1 -1
  160. package/esm/models/operations/getsimilar.js +2 -27
  161. package/esm/models/operations/getsimilar.js.map +1 -1
  162. package/esm/models/operations/getskus.d.ts +2 -2
  163. package/esm/models/operations/getskus.d.ts.map +1 -1
  164. package/esm/models/operations/getskus.js +2 -2
  165. package/esm/models/operations/getskus.js.map +1 -1
  166. package/esm/models/operations/getwishtlist.d.ts +2 -2
  167. package/esm/models/operations/getwishtlist.d.ts.map +1 -1
  168. package/esm/models/operations/getwishtlist.js +2 -2
  169. package/esm/models/operations/getwishtlist.js.map +1 -1
  170. package/esm/models/operations/index.d.ts +1 -2
  171. package/esm/models/operations/index.d.ts.map +1 -1
  172. package/esm/models/operations/index.js +1 -2
  173. package/esm/models/operations/index.js.map +1 -1
  174. package/esm/models/operations/postcartitemid.d.ts +15 -15
  175. package/esm/models/operations/postcartitemid.d.ts.map +1 -1
  176. package/esm/models/operations/postcartitemid.js +15 -15
  177. package/esm/models/operations/postcartitemid.js.map +1 -1
  178. package/esm/sdk/{cestorefrontpayments.d.ts → cestorefrontorderspayments.d.ts} +2 -2
  179. package/esm/sdk/cestorefrontorderspayments.d.ts.map +1 -0
  180. package/esm/sdk/{cestorefrontpayments.js → cestorefrontorderspayments.js} +2 -2
  181. package/esm/sdk/cestorefrontorderspayments.js.map +1 -0
  182. package/esm/sdk/customers.d.ts +24 -1
  183. package/esm/sdk/customers.d.ts.map +1 -1
  184. package/esm/sdk/customers.js +31 -0
  185. package/esm/sdk/customers.js.map +1 -1
  186. package/esm/sdk/{paymentsapijuspay.d.ts → juspay.d.ts} +2 -2
  187. package/esm/sdk/juspay.d.ts.map +1 -0
  188. package/esm/sdk/{paymentsapijuspay.js → juspay.js} +8 -8
  189. package/esm/sdk/juspay.js.map +1 -0
  190. package/esm/sdk/orders.d.ts +9 -2
  191. package/esm/sdk/orders.d.ts.map +1 -1
  192. package/esm/sdk/orders.js +12 -2
  193. package/esm/sdk/orders.js.map +1 -1
  194. package/esm/sdk/payments.d.ts +23 -1
  195. package/esm/sdk/payments.d.ts.map +1 -1
  196. package/esm/sdk/payments.js +31 -0
  197. package/esm/sdk/payments.js.map +1 -1
  198. package/esm/sdk/products.d.ts +1 -1
  199. package/esm/sdk/products.js +1 -1
  200. package/esm/sdk/sdk.d.ts +3 -12
  201. package/esm/sdk/sdk.d.ts.map +1 -1
  202. package/esm/sdk/sdk.js +3 -15
  203. package/esm/sdk/sdk.js.map +1 -1
  204. package/jsr.json +1 -1
  205. package/package.json +1 -1
  206. package/src/funcs/catalogProductsGet.ts +1 -1
  207. package/src/funcs/{customersAPIGetCustomersId.ts → customersGetCustomersId.ts} +1 -1
  208. package/src/funcs/{customersAPIPostCustomers.ts → customersPostCustomers.ts} +1 -1
  209. package/src/funcs/{customersAPIPutCustomersId.ts → customersPutCustomersId.ts} +1 -1
  210. package/src/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.ts → juspayGetPaymentsJuspayCustomer.ts} +1 -1
  211. package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.ts → juspayPostPaymentsJuspayCreateCustomer.ts} +1 -1
  212. package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.ts → juspayPostPaymentsJuspayCreateOrder.ts} +1 -1
  213. package/src/funcs/{ordersAPIGetOrdersIdPaymentStatus.ts → ordersGetOrdersIdPaymentStatus.ts} +1 -1
  214. package/src/funcs/paymentsGetMethods.ts +6 -7
  215. package/src/funcs/{paymentsAPIGetPaymentsCards.ts → paymentsGetPaymentsCards.ts} +1 -1
  216. package/src/funcs/{paymentsAPIGetPaymentsVerifyVpa.ts → paymentsGetPaymentsVerifyVpa.ts} +1 -1
  217. package/src/funcs/{paymentsAPIPostPaymentsCards.ts → paymentsPostPaymentsCards.ts} +1 -1
  218. package/src/lib/config.ts +3 -3
  219. package/src/models/components/analyticsevent.ts +16 -15
  220. package/src/models/components/associatedoption.ts +217 -0
  221. package/src/models/components/cart.ts +25 -25
  222. package/src/models/components/createcustomer.ts +1 -1
  223. package/src/models/components/discountbasedpromotion.ts +0 -6
  224. package/src/models/components/fixedpricepromotion.ts +0 -6
  225. package/src/models/components/freegoodspromotion.ts +4 -13
  226. package/src/models/components/index.ts +6 -8
  227. package/src/models/components/orderdetail.ts +1 -1
  228. package/src/models/components/{skuinfo.ts → product.ts} +111 -96
  229. package/src/models/components/productattribute.ts +162 -188
  230. package/src/models/components/productcategory.ts +4 -4
  231. package/src/models/components/productdetail.ts +143 -418
  232. package/src/models/components/productlistresponse.ts +55 -9
  233. package/src/models/components/productshipping.ts +0 -6
  234. package/src/models/components/{promotion.ts → promotiondetail.ts} +47 -45
  235. package/src/models/components/seo.ts +12 -25
  236. package/src/models/components/sku.ts +244 -0
  237. package/src/models/components/variant.ts +14 -119
  238. package/src/models/components/variantdetail.ts +51 -143
  239. package/src/models/components/variantoption.ts +214 -0
  240. package/src/models/components/volumebasedpromotion.ts +0 -9
  241. package/src/models/operations/{getpaymentspaymentmethods.ts → getpaymentmethods.ts} +68 -77
  242. package/src/models/operations/getpromotions.ts +4 -4
  243. package/src/models/operations/getsimilar.ts +4 -62
  244. package/src/models/operations/getskus.ts +4 -4
  245. package/src/models/operations/getwishtlist.ts +4 -4
  246. package/src/models/operations/index.ts +1 -2
  247. package/src/models/operations/postcartitemid.ts +27 -25
  248. package/src/sdk/{cestorefrontpayments.ts → cestorefrontorderspayments.ts} +1 -1
  249. package/src/sdk/customers.ts +58 -1
  250. package/src/sdk/{paymentsapijuspay.ts → juspay.ts} +7 -7
  251. package/src/sdk/orders.ts +22 -4
  252. package/src/sdk/payments.ts +57 -2
  253. package/src/sdk/products.ts +1 -1
  254. package/src/sdk/sdk.ts +4 -22
  255. package/docs/sdks/customersapi/README.md +0 -321
  256. package/docs/sdks/ordersapi/README.md +0 -86
  257. package/docs/sdks/paymentsapi/README.md +0 -247
  258. package/esm/funcs/customersAPIGetCustomersId.d.ts.map +0 -1
  259. package/esm/funcs/customersAPIGetCustomersId.js.map +0 -1
  260. package/esm/funcs/customersAPIGetRecommendedProducts.d.ts +0 -16
  261. package/esm/funcs/customersAPIGetRecommendedProducts.d.ts.map +0 -1
  262. package/esm/funcs/customersAPIGetRecommendedProducts.js +0 -80
  263. package/esm/funcs/customersAPIGetRecommendedProducts.js.map +0 -1
  264. package/esm/funcs/customersAPIPostCustomers.d.ts.map +0 -1
  265. package/esm/funcs/customersAPIPutCustomersId.d.ts.map +0 -1
  266. package/esm/funcs/customersAPIPutCustomersId.js.map +0 -1
  267. package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.d.ts.map +0 -1
  268. package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.js.map +0 -1
  269. package/esm/funcs/paymentsAPIGetPaymentsCards.d.ts.map +0 -1
  270. package/esm/funcs/paymentsAPIGetPaymentsCards.js.map +0 -1
  271. package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.d.ts.map +0 -1
  272. package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.js.map +0 -1
  273. package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.d.ts.map +0 -1
  274. package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.js.map +0 -1
  275. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.d.ts.map +0 -1
  276. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.js.map +0 -1
  277. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.d.ts.map +0 -1
  278. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.js.map +0 -1
  279. package/esm/funcs/paymentsAPIPostPaymentsCards.d.ts.map +0 -1
  280. package/esm/funcs/paymentsAPIPostPaymentsCards.js.map +0 -1
  281. package/esm/models/components/customeraddressinput.d.ts.map +0 -1
  282. package/esm/models/components/customeraddressinput.js.map +0 -1
  283. package/esm/models/components/productbundleitem.d.ts +0 -47
  284. package/esm/models/components/productbundleitem.d.ts.map +0 -1
  285. package/esm/models/components/productbundleitem.js +0 -66
  286. package/esm/models/components/productbundleitem.js.map +0 -1
  287. package/esm/models/components/productlist.d.ts.map +0 -1
  288. package/esm/models/components/productlist.js.map +0 -1
  289. package/esm/models/components/productpackaging.d.ts +0 -68
  290. package/esm/models/components/productpackaging.d.ts.map +0 -1
  291. package/esm/models/components/productpackaging.js +0 -88
  292. package/esm/models/components/productpackaging.js.map +0 -1
  293. package/esm/models/components/promotion.d.ts.map +0 -1
  294. package/esm/models/components/promotion.js.map +0 -1
  295. package/esm/models/components/recommendedproduct.d.ts +0 -155
  296. package/esm/models/components/recommendedproduct.d.ts.map +0 -1
  297. package/esm/models/components/recommendedproduct.js +0 -193
  298. package/esm/models/components/recommendedproduct.js.map +0 -1
  299. package/esm/models/components/saleschannel.d.ts +0 -39
  300. package/esm/models/components/saleschannel.d.ts.map +0 -1
  301. package/esm/models/components/saleschannel.js +0 -53
  302. package/esm/models/components/saleschannel.js.map +0 -1
  303. package/esm/models/components/skuinfo.d.ts.map +0 -1
  304. package/esm/models/components/skuinfo.js.map +0 -1
  305. package/esm/models/operations/getpaymentspaymentmethods.d.ts +0 -143
  306. package/esm/models/operations/getpaymentspaymentmethods.d.ts.map +0 -1
  307. package/esm/models/operations/getpaymentspaymentmethods.js.map +0 -1
  308. package/esm/models/operations/getrecommendedproducts.d.ts +0 -90
  309. package/esm/models/operations/getrecommendedproducts.d.ts.map +0 -1
  310. package/esm/models/operations/getrecommendedproducts.js +0 -87
  311. package/esm/models/operations/getrecommendedproducts.js.map +0 -1
  312. package/esm/sdk/cestorefrontpayments.d.ts.map +0 -1
  313. package/esm/sdk/cestorefrontpayments.js.map +0 -1
  314. package/esm/sdk/customersapi.d.ts +0 -34
  315. package/esm/sdk/customersapi.d.ts.map +0 -1
  316. package/esm/sdk/customersapi.js +0 -48
  317. package/esm/sdk/customersapi.js.map +0 -1
  318. package/esm/sdk/ordersapi.d.ts +0 -12
  319. package/esm/sdk/ordersapi.d.ts.map +0 -1
  320. package/esm/sdk/ordersapi.js +0 -18
  321. package/esm/sdk/ordersapi.js.map +0 -1
  322. package/esm/sdk/paymentsapi.d.ts +0 -27
  323. package/esm/sdk/paymentsapi.d.ts.map +0 -1
  324. package/esm/sdk/paymentsapi.js +0 -39
  325. package/esm/sdk/paymentsapi.js.map +0 -1
  326. package/esm/sdk/paymentsapijuspay.d.ts.map +0 -1
  327. package/esm/sdk/paymentsapijuspay.js.map +0 -1
  328. package/src/funcs/customersAPIGetRecommendedProducts.ts +0 -144
  329. package/src/models/components/productbundleitem.ts +0 -127
  330. package/src/models/components/productlist.ts +0 -368
  331. package/src/models/components/productpackaging.ts +0 -162
  332. package/src/models/components/recommendedproduct.ts +0 -385
  333. package/src/models/components/saleschannel.ts +0 -96
  334. package/src/models/operations/getrecommendedproducts.ts +0 -206
  335. package/src/sdk/customersapi.ts +0 -82
  336. package/src/sdk/ordersapi.ts +0 -27
  337. package/src/sdk/paymentsapi.ts +0 -64
  338. package/src/models/components/{customeraddressinput.ts → customeraddress.ts} +60 -60
@@ -1,87 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod";
5
- import { safeParse } from "../../lib/schemas.js";
6
- import * as components from "../components/index.js";
7
- /** @internal */
8
- export const GetRecommendedProductsRequest$inboundSchema = z.object({
9
- id: z.string(),
10
- });
11
- /** @internal */
12
- export const GetRecommendedProductsRequest$outboundSchema = z.object({
13
- id: z.string(),
14
- });
15
- /**
16
- * @internal
17
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
18
- */
19
- export var GetRecommendedProductsRequest$;
20
- (function (GetRecommendedProductsRequest$) {
21
- /** @deprecated use `GetRecommendedProductsRequest$inboundSchema` instead. */
22
- GetRecommendedProductsRequest$.inboundSchema = GetRecommendedProductsRequest$inboundSchema;
23
- /** @deprecated use `GetRecommendedProductsRequest$outboundSchema` instead. */
24
- GetRecommendedProductsRequest$.outboundSchema = GetRecommendedProductsRequest$outboundSchema;
25
- })(GetRecommendedProductsRequest$ || (GetRecommendedProductsRequest$ = {}));
26
- export function getRecommendedProductsRequestToJSON(getRecommendedProductsRequest) {
27
- return JSON.stringify(GetRecommendedProductsRequest$outboundSchema.parse(getRecommendedProductsRequest));
28
- }
29
- export function getRecommendedProductsRequestFromJSON(jsonString) {
30
- return safeParse(jsonString, (x) => GetRecommendedProductsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetRecommendedProductsRequest' from JSON`);
31
- }
32
- /** @internal */
33
- export const GetRecommendedProductsContent$inboundSchema = z.object({
34
- products: z.array(components.RecommendedProduct$inboundSchema).optional(),
35
- });
36
- /** @internal */
37
- export const GetRecommendedProductsContent$outboundSchema = z.object({
38
- products: z.array(components.RecommendedProduct$outboundSchema).optional(),
39
- });
40
- /**
41
- * @internal
42
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
43
- */
44
- export var GetRecommendedProductsContent$;
45
- (function (GetRecommendedProductsContent$) {
46
- /** @deprecated use `GetRecommendedProductsContent$inboundSchema` instead. */
47
- GetRecommendedProductsContent$.inboundSchema = GetRecommendedProductsContent$inboundSchema;
48
- /** @deprecated use `GetRecommendedProductsContent$outboundSchema` instead. */
49
- GetRecommendedProductsContent$.outboundSchema = GetRecommendedProductsContent$outboundSchema;
50
- })(GetRecommendedProductsContent$ || (GetRecommendedProductsContent$ = {}));
51
- export function getRecommendedProductsContentToJSON(getRecommendedProductsContent) {
52
- return JSON.stringify(GetRecommendedProductsContent$outboundSchema.parse(getRecommendedProductsContent));
53
- }
54
- export function getRecommendedProductsContentFromJSON(jsonString) {
55
- return safeParse(jsonString, (x) => GetRecommendedProductsContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetRecommendedProductsContent' from JSON`);
56
- }
57
- /** @internal */
58
- export const GetRecommendedProductsResponseBody$inboundSchema = z.object({
59
- message: z.string().optional(),
60
- success: z.boolean().optional(),
61
- content: z.lazy(() => GetRecommendedProductsContent$inboundSchema).optional(),
62
- });
63
- /** @internal */
64
- export const GetRecommendedProductsResponseBody$outboundSchema = z.object({
65
- message: z.string().optional(),
66
- success: z.boolean().optional(),
67
- content: z.lazy(() => GetRecommendedProductsContent$outboundSchema)
68
- .optional(),
69
- });
70
- /**
71
- * @internal
72
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
73
- */
74
- export var GetRecommendedProductsResponseBody$;
75
- (function (GetRecommendedProductsResponseBody$) {
76
- /** @deprecated use `GetRecommendedProductsResponseBody$inboundSchema` instead. */
77
- GetRecommendedProductsResponseBody$.inboundSchema = GetRecommendedProductsResponseBody$inboundSchema;
78
- /** @deprecated use `GetRecommendedProductsResponseBody$outboundSchema` instead. */
79
- GetRecommendedProductsResponseBody$.outboundSchema = GetRecommendedProductsResponseBody$outboundSchema;
80
- })(GetRecommendedProductsResponseBody$ || (GetRecommendedProductsResponseBody$ = {}));
81
- export function getRecommendedProductsResponseBodyToJSON(getRecommendedProductsResponseBody) {
82
- return JSON.stringify(GetRecommendedProductsResponseBody$outboundSchema.parse(getRecommendedProductsResponseBody));
83
- }
84
- export function getRecommendedProductsResponseBodyFromJSON(jsonString) {
85
- return safeParse(jsonString, (x) => GetRecommendedProductsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetRecommendedProductsResponseBody' from JSON`);
86
- }
87
- //# sourceMappingURL=getrecommendedproducts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getrecommendedproducts.js","sourceRoot":"","sources":["../../../src/models/operations/getrecommendedproducts.ts"],"names":[],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"cestorefrontpayments.d.ts","sourceRoot":"","sources":["../../src/sdk/cestorefrontpayments.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,oBAAqB,SAAQ,SAAS;IACjD;;;;;OAKG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;CAOvD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"cestorefrontpayments.js","sourceRoot":"","sources":["../../src/sdk/cestorefrontpayments.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,oBAAqB,SAAQ,SAAS;IACjD;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAA8C,EAC9C,OAAwB;QAExB,OAAO,WAAW,CAAC,kBAAkB,CACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,34 +0,0 @@
1
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
- import * as components from "../models/components/index.js";
3
- import * as operations from "../models/operations/index.js";
4
- export declare class CustomersAPI extends ClientSDK {
5
- /**
6
- * List all recommended products
7
- *
8
- * @remarks
9
- * Retrieves a list of recommended products for a specified user based on their browsing history, past purchases, and indicated preferences. The recommended products are returned sorted by relevance, providing a personalized shopping experience for each user.
10
- */
11
- getRecommendedProducts(request: operations.GetRecommendedProductsRequest, options?: RequestOptions): Promise<operations.GetRecommendedProductsResponseBody>;
12
- /**
13
- * Create customer
14
- *
15
- * @remarks
16
- * Create customer
17
- */
18
- postCustomers(request: components.CreateCustomer, options?: RequestOptions): Promise<operations.PostCustomersResponseBody>;
19
- /**
20
- * Retrieve customer detail
21
- *
22
- * @remarks
23
- * Retrieve customer detail.
24
- */
25
- getCustomersId(request: operations.GetCustomersIdRequest, options?: RequestOptions): Promise<operations.GetCustomersIdResponseBody>;
26
- /**
27
- * Update customer detail
28
- *
29
- * @remarks
30
- * Update customer detail
31
- */
32
- putCustomersId(request: operations.PutCustomersIdRequest, options?: RequestOptions): Promise<operations.PutCustomersIdResponseBody>;
33
- }
34
- //# sourceMappingURL=customersapi.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"customersapi.d.ts","sourceRoot":"","sources":["../../src/sdk/customersapi.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,YAAa,SAAQ,SAAS;IACzC;;;;;OAKG;IACG,sBAAsB,CAC1B,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;IAQzD;;;;;OAKG;IACG,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,cAAc,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;IAQhD;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAQjD;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;CAOlD"}
@@ -1,48 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import { customersAPIGetCustomersId } from "../funcs/customersAPIGetCustomersId.js";
5
- import { customersAPIGetRecommendedProducts } from "../funcs/customersAPIGetRecommendedProducts.js";
6
- import { customersAPIPostCustomers } from "../funcs/customersAPIPostCustomers.js";
7
- import { customersAPIPutCustomersId } from "../funcs/customersAPIPutCustomersId.js";
8
- import { ClientSDK } from "../lib/sdks.js";
9
- import { unwrapAsync } from "../types/fp.js";
10
- export class CustomersAPI extends ClientSDK {
11
- /**
12
- * List all recommended products
13
- *
14
- * @remarks
15
- * Retrieves a list of recommended products for a specified user based on their browsing history, past purchases, and indicated preferences. The recommended products are returned sorted by relevance, providing a personalized shopping experience for each user.
16
- */
17
- async getRecommendedProducts(request, options) {
18
- return unwrapAsync(customersAPIGetRecommendedProducts(this, request, options));
19
- }
20
- /**
21
- * Create customer
22
- *
23
- * @remarks
24
- * Create customer
25
- */
26
- async postCustomers(request, options) {
27
- return unwrapAsync(customersAPIPostCustomers(this, request, options));
28
- }
29
- /**
30
- * Retrieve customer detail
31
- *
32
- * @remarks
33
- * Retrieve customer detail.
34
- */
35
- async getCustomersId(request, options) {
36
- return unwrapAsync(customersAPIGetCustomersId(this, request, options));
37
- }
38
- /**
39
- * Update customer detail
40
- *
41
- * @remarks
42
- * Update customer detail
43
- */
44
- async putCustomersId(request, options) {
45
- return unwrapAsync(customersAPIPutCustomersId(this, request, options));
46
- }
47
- }
48
- //# sourceMappingURL=customersapi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"customersapi.js","sourceRoot":"","sources":["../../src/sdk/customersapi.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACpG,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,YAAa,SAAQ,SAAS;IACzC;;;;;OAKG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAAiD,EACjD,OAAwB;QAExB,OAAO,WAAW,CAAC,kCAAkC,CACnD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACjB,OAAkC,EAClC,OAAwB;QAExB,OAAO,WAAW,CAAC,yBAAyB,CAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,WAAW,CAAC,0BAA0B,CAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,WAAW,CAAC,0BAA0B,CAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,12 +0,0 @@
1
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
- import * as operations from "../models/operations/index.js";
3
- export declare class OrdersAPI extends ClientSDK {
4
- /**
5
- * Retrieve payment status
6
- *
7
- * @remarks
8
- * Retrieve payment status of a paricular order.
9
- */
10
- getOrdersIdPaymentStatus(request: operations.GetOrdersIdPaymentStatusRequest, options?: RequestOptions): Promise<operations.GetOrdersIdPaymentStatusResponseBody>;
11
- }
12
- //# sourceMappingURL=ordersapi.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ordersapi.d.ts","sourceRoot":"","sources":["../../src/sdk/ordersapi.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,SAAU,SAAQ,SAAS;IACtC;;;;;OAKG;IACG,wBAAwB,CAC5B,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oCAAoC,CAAC;CAO5D"}
@@ -1,18 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import { ordersAPIGetOrdersIdPaymentStatus } from "../funcs/ordersAPIGetOrdersIdPaymentStatus.js";
5
- import { ClientSDK } from "../lib/sdks.js";
6
- import { unwrapAsync } from "../types/fp.js";
7
- export class OrdersAPI extends ClientSDK {
8
- /**
9
- * Retrieve payment status
10
- *
11
- * @remarks
12
- * Retrieve payment status of a paricular order.
13
- */
14
- async getOrdersIdPaymentStatus(request, options) {
15
- return unwrapAsync(ordersAPIGetOrdersIdPaymentStatus(this, request, options));
16
- }
17
- }
18
- //# sourceMappingURL=ordersapi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ordersapi.js","sourceRoot":"","sources":["../../src/sdk/ordersapi.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iCAAiC,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,SAAU,SAAQ,SAAS;IACtC;;;;;OAKG;IACH,KAAK,CAAC,wBAAwB,CAC5B,OAAmD,EACnD,OAAwB;QAExB,OAAO,WAAW,CAAC,iCAAiC,CAClD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,27 +0,0 @@
1
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
- import * as operations from "../models/operations/index.js";
3
- export declare class PaymentsAPI extends ClientSDK {
4
- /**
5
- * List all saved cards
6
- *
7
- * @remarks
8
- * List all saved cards.
9
- */
10
- getPaymentsCards(request: operations.GetPaymentsCardsRequest, options?: RequestOptions): Promise<operations.GetPaymentsCardsResponseBody>;
11
- /**
12
- * Add card
13
- *
14
- * @remarks
15
- * Add a new card
16
- */
17
- postPaymentsCards(request: operations.PostPaymentsCardsRequestBody, options?: RequestOptions): Promise<operations.PostPaymentsCardsResponseBody>;
18
- /**
19
- * Verify VPA
20
- *
21
- * @remarks
22
- * The Virtual Payment Address or VPA is a unique ID given to an individual using the Unified Payment Interface (UPI) service to send or receive money. In the case of UPI collect VPA is the mandatory param and merchants are always advised to check if the VPA is valid or not.
23
- * Validating the VPA will help in reducing the failure rate due to incorrect vpa.
24
- */
25
- getPaymentsVerifyVpa(request: operations.GetPaymentsVerifyVpaRequest, options?: RequestOptions): Promise<operations.GetPaymentsVerifyVpaResponseBody>;
26
- }
27
- //# sourceMappingURL=paymentsapi.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"paymentsapi.d.ts","sourceRoot":"","sources":["../../src/sdk/paymentsapi.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,WAAY,SAAQ,SAAS;IACxC;;;;;OAKG;IACG,gBAAgB,CACpB,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC;IAQnD;;;;;OAKG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;;OAMG;IACG,oBAAoB,CACxB,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC;CAOxD"}
@@ -1,39 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import { paymentsAPIGetPaymentsCards } from "../funcs/paymentsAPIGetPaymentsCards.js";
5
- import { paymentsAPIGetPaymentsVerifyVpa } from "../funcs/paymentsAPIGetPaymentsVerifyVpa.js";
6
- import { paymentsAPIPostPaymentsCards } from "../funcs/paymentsAPIPostPaymentsCards.js";
7
- import { ClientSDK } from "../lib/sdks.js";
8
- import { unwrapAsync } from "../types/fp.js";
9
- export class PaymentsAPI extends ClientSDK {
10
- /**
11
- * List all saved cards
12
- *
13
- * @remarks
14
- * List all saved cards.
15
- */
16
- async getPaymentsCards(request, options) {
17
- return unwrapAsync(paymentsAPIGetPaymentsCards(this, request, options));
18
- }
19
- /**
20
- * Add card
21
- *
22
- * @remarks
23
- * Add a new card
24
- */
25
- async postPaymentsCards(request, options) {
26
- return unwrapAsync(paymentsAPIPostPaymentsCards(this, request, options));
27
- }
28
- /**
29
- * Verify VPA
30
- *
31
- * @remarks
32
- * The Virtual Payment Address or VPA is a unique ID given to an individual using the Unified Payment Interface (UPI) service to send or receive money. In the case of UPI collect VPA is the mandatory param and merchants are always advised to check if the VPA is valid or not.
33
- * Validating the VPA will help in reducing the failure rate due to incorrect vpa.
34
- */
35
- async getPaymentsVerifyVpa(request, options) {
36
- return unwrapAsync(paymentsAPIGetPaymentsVerifyVpa(this, request, options));
37
- }
38
- }
39
- //# sourceMappingURL=paymentsapi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"paymentsapi.js","sourceRoot":"","sources":["../../src/sdk/paymentsapi.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,WAAY,SAAQ,SAAS;IACxC;;;;;OAKG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAA2C,EAC3C,OAAwB;QAExB,OAAO,WAAW,CAAC,2BAA2B,CAC5C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAAgD,EAChD,OAAwB;QAExB,OAAO,WAAW,CAAC,4BAA4B,CAC7C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,oBAAoB,CACxB,OAA+C,EAC/C,OAAwB;QAExB,OAAO,WAAW,CAAC,+BAA+B,CAChD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"paymentsapijuspay.d.ts","sourceRoot":"","sources":["../../src/sdk/paymentsapijuspay.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,iBAAkB,SAAQ,SAAS;IAC9C;;;;;;OAMG;IACG,6BAA6B,CACjC,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yCAAyC,CAAC;IAQhE;;;;;OAKG;IACG,gCAAgC,CACpC,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4CAA4C,CAAC;IAQnE;;;;;OAKG;IACG,yBAAyB,CAC7B,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qCAAqC,CAAC;CAO7D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"paymentsapijuspay.js","sourceRoot":"","sources":["../../src/sdk/paymentsapijuspay.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,0CAA0C,EAAE,MAAM,wDAAwD,CAAC;AACpH,OAAO,EAAE,iDAAiD,EAAE,MAAM,+DAA+D,CAAC;AAClI,OAAO,EAAE,8CAA8C,EAAE,MAAM,4DAA4D,CAAC;AAC5H,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAC9C;;;;;;OAMG;IACH,KAAK,CAAC,6BAA6B,CACjC,OAA4C,EAC5C,OAAwB;QAExB,OAAO,WAAW,CAAC,8CAA8C,CAC/D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,gCAAgC,CACpC,OAA+C,EAC/C,OAAwB;QAExB,OAAO,WAAW,CAAC,iDAAiD,CAClE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,yBAAyB,CAC7B,OAAoD,EACpD,OAAwB;QAExB,OAAO,WAAW,CAAC,0CAA0C,CAC3D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,144 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { CeStorefrontCore } from "../core.js";
6
- import { encodeSimple } from "../lib/encodings.js";
7
- import * as M from "../lib/matchers.js";
8
- import { compactMap } from "../lib/primitives.js";
9
- import { safeParse } from "../lib/schemas.js";
10
- import { RequestOptions } from "../lib/sdks.js";
11
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
- import { pathToFunc } from "../lib/url.js";
13
- import { CeError } from "../models/errors/ceerror.js";
14
- import {
15
- ConnectionError,
16
- InvalidRequestError,
17
- RequestAbortedError,
18
- RequestTimeoutError,
19
- UnexpectedClientError,
20
- } from "../models/errors/httpclienterrors.js";
21
- import * as errors from "../models/errors/index.js";
22
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
- import * as operations from "../models/operations/index.js";
24
- import { Result } from "../types/fp.js";
25
-
26
- /**
27
- * List all recommended products
28
- *
29
- * @remarks
30
- * Retrieves a list of recommended products for a specified user based on their browsing history, past purchases, and indicated preferences. The recommended products are returned sorted by relevance, providing a personalized shopping experience for each user.
31
- */
32
- export async function customersAPIGetRecommendedProducts(
33
- client: CeStorefrontCore,
34
- request: operations.GetRecommendedProductsRequest,
35
- options?: RequestOptions,
36
- ): Promise<
37
- Result<
38
- operations.GetRecommendedProductsResponseBody,
39
- | errors.Unauthorized
40
- | errors.NotFound
41
- | CeError
42
- | SDKValidationError
43
- | UnexpectedClientError
44
- | InvalidRequestError
45
- | RequestAbortedError
46
- | RequestTimeoutError
47
- | ConnectionError
48
- >
49
- > {
50
- const parsed = safeParse(
51
- request,
52
- (value) =>
53
- operations.GetRecommendedProductsRequest$outboundSchema.parse(value),
54
- "Input validation failed",
55
- );
56
- if (!parsed.ok) {
57
- return parsed;
58
- }
59
- const payload = parsed.value;
60
- const body = null;
61
-
62
- const pathParams = {
63
- id: encodeSimple("id", payload.id, {
64
- explode: false,
65
- charEncoding: "percent",
66
- }),
67
- };
68
-
69
- const path = pathToFunc("/customer/{id}/recommended-products")(pathParams);
70
-
71
- const headers = new Headers(compactMap({
72
- Accept: "application/json",
73
- }));
74
-
75
- const secConfig = await extractSecurity(client._options.authorization);
76
- const securityInput = secConfig == null ? {} : { authorization: secConfig };
77
- const requestSecurity = resolveGlobalSecurity(securityInput);
78
-
79
- const context = {
80
- operationID: "get-recommended-products",
81
- oAuth2Scopes: [],
82
-
83
- resolvedSecurity: requestSecurity,
84
-
85
- securitySource: client._options.authorization,
86
- retryConfig: options?.retries
87
- || client._options.retryConfig
88
- || { strategy: "none" },
89
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
90
- };
91
-
92
- const requestRes = client._createRequest(context, {
93
- security: requestSecurity,
94
- method: "GET",
95
- baseURL: options?.serverURL,
96
- path: path,
97
- headers: headers,
98
- body: body,
99
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
100
- }, options);
101
- if (!requestRes.ok) {
102
- return requestRes;
103
- }
104
- const req = requestRes.value;
105
-
106
- const doResult = await client._do(req, {
107
- context,
108
- errorCodes: ["401", "404", "4XX", "5XX"],
109
- retryConfig: context.retryConfig,
110
- retryCodes: context.retryCodes,
111
- });
112
- if (!doResult.ok) {
113
- return doResult;
114
- }
115
- const response = doResult.value;
116
-
117
- const responseFields = {
118
- HttpMeta: { Response: response, Request: req },
119
- };
120
-
121
- const [result] = await M.match<
122
- operations.GetRecommendedProductsResponseBody,
123
- | errors.Unauthorized
124
- | errors.NotFound
125
- | CeError
126
- | SDKValidationError
127
- | UnexpectedClientError
128
- | InvalidRequestError
129
- | RequestAbortedError
130
- | RequestTimeoutError
131
- | ConnectionError
132
- >(
133
- M.json(200, operations.GetRecommendedProductsResponseBody$inboundSchema),
134
- M.jsonErr(401, errors.Unauthorized$inboundSchema),
135
- M.jsonErr(404, errors.NotFound$inboundSchema),
136
- M.fail("4XX"),
137
- M.fail("5XX"),
138
- )(response, { extraFields: responseFields });
139
- if (!result.ok) {
140
- return result;
141
- }
142
-
143
- return result;
144
- }
@@ -1,127 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
- import {
11
- ProductImage,
12
- ProductImage$inboundSchema,
13
- ProductImage$Outbound,
14
- ProductImage$outboundSchema,
15
- } from "./productimage.js";
16
- import {
17
- ProductPricing,
18
- ProductPricing$inboundSchema,
19
- ProductPricing$Outbound,
20
- ProductPricing$outboundSchema,
21
- } from "./productpricing.js";
22
-
23
- export type ProductBundleItem = {
24
- productId: string;
25
- productName: string;
26
- quantity: number;
27
- sku?: string | undefined;
28
- stockAvailable?: boolean | undefined;
29
- pricing?: ProductPricing | undefined;
30
- images?: Array<ProductImage> | undefined;
31
- reviewsRatingSum?: number | undefined;
32
- reviewsCount?: number | undefined;
33
- };
34
-
35
- /** @internal */
36
- export const ProductBundleItem$inboundSchema: z.ZodType<
37
- ProductBundleItem,
38
- z.ZodTypeDef,
39
- unknown
40
- > = z.object({
41
- product_id: z.string(),
42
- product_name: z.string(),
43
- quantity: z.number().int(),
44
- sku: z.string().optional(),
45
- stock_available: z.boolean().optional(),
46
- pricing: ProductPricing$inboundSchema.optional(),
47
- images: z.array(ProductImage$inboundSchema).optional(),
48
- reviews_rating_sum: z.number().optional(),
49
- reviews_count: z.number().int().optional(),
50
- }).transform((v) => {
51
- return remap$(v, {
52
- "product_id": "productId",
53
- "product_name": "productName",
54
- "stock_available": "stockAvailable",
55
- "reviews_rating_sum": "reviewsRatingSum",
56
- "reviews_count": "reviewsCount",
57
- });
58
- });
59
-
60
- /** @internal */
61
- export type ProductBundleItem$Outbound = {
62
- product_id: string;
63
- product_name: string;
64
- quantity: number;
65
- sku?: string | undefined;
66
- stock_available?: boolean | undefined;
67
- pricing?: ProductPricing$Outbound | undefined;
68
- images?: Array<ProductImage$Outbound> | undefined;
69
- reviews_rating_sum?: number | undefined;
70
- reviews_count?: number | undefined;
71
- };
72
-
73
- /** @internal */
74
- export const ProductBundleItem$outboundSchema: z.ZodType<
75
- ProductBundleItem$Outbound,
76
- z.ZodTypeDef,
77
- ProductBundleItem
78
- > = z.object({
79
- productId: z.string(),
80
- productName: z.string(),
81
- quantity: z.number().int(),
82
- sku: z.string().optional(),
83
- stockAvailable: z.boolean().optional(),
84
- pricing: ProductPricing$outboundSchema.optional(),
85
- images: z.array(ProductImage$outboundSchema).optional(),
86
- reviewsRatingSum: z.number().optional(),
87
- reviewsCount: z.number().int().optional(),
88
- }).transform((v) => {
89
- return remap$(v, {
90
- productId: "product_id",
91
- productName: "product_name",
92
- stockAvailable: "stock_available",
93
- reviewsRatingSum: "reviews_rating_sum",
94
- reviewsCount: "reviews_count",
95
- });
96
- });
97
-
98
- /**
99
- * @internal
100
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
101
- */
102
- export namespace ProductBundleItem$ {
103
- /** @deprecated use `ProductBundleItem$inboundSchema` instead. */
104
- export const inboundSchema = ProductBundleItem$inboundSchema;
105
- /** @deprecated use `ProductBundleItem$outboundSchema` instead. */
106
- export const outboundSchema = ProductBundleItem$outboundSchema;
107
- /** @deprecated use `ProductBundleItem$Outbound` instead. */
108
- export type Outbound = ProductBundleItem$Outbound;
109
- }
110
-
111
- export function productBundleItemToJSON(
112
- productBundleItem: ProductBundleItem,
113
- ): string {
114
- return JSON.stringify(
115
- ProductBundleItem$outboundSchema.parse(productBundleItem),
116
- );
117
- }
118
-
119
- export function productBundleItemFromJSON(
120
- jsonString: string,
121
- ): SafeParseResult<ProductBundleItem, SDKValidationError> {
122
- return safeParse(
123
- jsonString,
124
- (x) => ProductBundleItem$inboundSchema.parse(JSON.parse(x)),
125
- `Failed to parse 'ProductBundleItem' from JSON`,
126
- );
127
- }