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
package/README.md CHANGED
@@ -163,7 +163,7 @@ run();
163
163
  #### [catalog.products](docs/sdks/products/README.md)
164
164
 
165
165
  * [list](docs/sdks/products/README.md#list) - List all products
166
- * [get](docs/sdks/products/README.md#get) - Retrieve a product
166
+ * [get](docs/sdks/products/README.md#get) - Retrieve a product detail
167
167
  * [getSimilar](docs/sdks/products/README.md#getsimilar) - Retrieve similar products
168
168
  * [getUpsells](docs/sdks/products/README.md#getupsells) - Retrieve up-sell products
169
169
  * [getCrossSells](docs/sdks/products/README.md#getcrosssells) - Retrieve cross-sell products
@@ -196,6 +196,9 @@ run();
196
196
 
197
197
  ### [customers](docs/sdks/customers/README.md)
198
198
 
199
+ * [postCustomers](docs/sdks/customers/README.md#postcustomers) - Create customer
200
+ * [getCustomersId](docs/sdks/customers/README.md#getcustomersid) - Retrieve customer detail
201
+ * [putCustomersId](docs/sdks/customers/README.md#putcustomersid) - Update customer detail
199
202
 
200
203
  #### [customers.addresses](docs/sdks/addresses/README.md)
201
204
 
@@ -214,12 +217,11 @@ run();
214
217
 
215
218
  * [list](docs/sdks/reviews/README.md#list) - Retrieve all reviews
216
219
 
217
- ### [customersAPI](docs/sdks/customersapi/README.md)
220
+ ### [juspay](docs/sdks/juspay/README.md)
218
221
 
219
- * [getRecommendedProducts](docs/sdks/customersapi/README.md#getrecommendedproducts) - List all recommended products
220
- * [postCustomers](docs/sdks/customersapi/README.md#postcustomers) - Create customer
221
- * [getCustomersId](docs/sdks/customersapi/README.md#getcustomersid) - Retrieve customer detail
222
- * [putCustomersId](docs/sdks/customersapi/README.md#putcustomersid) - Update customer detail
222
+ * [postPaymentsJuspayCreateOrder](docs/sdks/juspay/README.md#postpaymentsjuspaycreateorder) - Create order in juspay
223
+ * [postPaymentsJuspayCreateCustomer](docs/sdks/juspay/README.md#postpaymentsjuspaycreatecustomer) - Create customer in juspay
224
+ * [getPaymentsJuspayCustomer](docs/sdks/juspay/README.md#getpaymentsjuspaycustomer) - Retrieve customer from juspay
223
225
 
224
226
  ### [offers](docs/sdks/offers/README.md)
225
227
 
@@ -239,10 +241,11 @@ run();
239
241
  * [get](docs/sdks/orders/README.md#get) - Retrieve order detail
240
242
  * [cancel](docs/sdks/orders/README.md#cancel) - Cancel order
241
243
  * [retryPayment](docs/sdks/orders/README.md#retrypayment) - Retry payment
244
+ * [getOrdersIdPaymentStatus](docs/sdks/orders/README.md#getordersidpaymentstatus) - Retrieve payment status
242
245
 
243
- #### [orders.payments](docs/sdks/cestorefrontpayments/README.md)
246
+ #### [orders.payments](docs/sdks/cestorefrontorderspayments/README.md)
244
247
 
245
- * [list](docs/sdks/cestorefrontpayments/README.md#list) - Retrieve order payments
248
+ * [list](docs/sdks/cestorefrontorderspayments/README.md#list) - Retrieve order payments
246
249
 
247
250
  #### [orders.refunds](docs/sdks/refunds/README.md)
248
251
 
@@ -252,26 +255,13 @@ run();
252
255
 
253
256
  * [list](docs/sdks/shipments/README.md#list) - Retrieve order shipments
254
257
 
255
- ### [ordersAPI](docs/sdks/ordersapi/README.md)
256
-
257
- * [getOrdersIdPaymentStatus](docs/sdks/ordersapi/README.md#getordersidpaymentstatus) - Retrieve payment status
258
-
259
258
  ### [payments](docs/sdks/payments/README.md)
260
259
 
261
260
  * [generateHash](docs/sdks/payments/README.md#generatehash) - Generate hash
262
261
  * [getMethods](docs/sdks/payments/README.md#getmethods) - List all payment methods
263
-
264
- ### [paymentsAPI](docs/sdks/paymentsapi/README.md)
265
-
266
- * [getPaymentsCards](docs/sdks/paymentsapi/README.md#getpaymentscards) - List all saved cards
267
- * [postPaymentsCards](docs/sdks/paymentsapi/README.md#postpaymentscards) - Add card
268
- * [getPaymentsVerifyVpa](docs/sdks/paymentsapi/README.md#getpaymentsverifyvpa) - Verify VPA
269
-
270
- ### [paymentsAPIJuspay](docs/sdks/paymentsapijuspay/README.md)
271
-
272
- * [postPaymentsJuspayCreateOrder](docs/sdks/paymentsapijuspay/README.md#postpaymentsjuspaycreateorder) - Create order in juspay
273
- * [postPaymentsJuspayCreateCustomer](docs/sdks/paymentsapijuspay/README.md#postpaymentsjuspaycreatecustomer) - Create customer in juspay
274
- * [getPaymentsJuspayCustomer](docs/sdks/paymentsapijuspay/README.md#getpaymentsjuspaycustomer) - Retrieve customer from juspay
262
+ * [getPaymentsCards](docs/sdks/payments/README.md#getpaymentscards) - List all saved cards
263
+ * [postPaymentsCards](docs/sdks/payments/README.md#postpaymentscards) - Add card
264
+ * [getPaymentsVerifyVpa](docs/sdks/payments/README.md#getpaymentsverifyvpa) - Verify VPA
275
265
 
276
266
  ### [shipping](docs/sdks/shipping/README.md)
277
267
 
@@ -347,7 +337,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
347
337
  - [`cartsDelete`](docs/sdks/carts/README.md#delete) - Delete cart
348
338
  - [`cartsGet`](docs/sdks/carts/README.md#get) - Retrieve cart details
349
339
  - [`catalogCategoriesList`](docs/sdks/categories/README.md#list) - List all categories
350
- - [`catalogProductsGet`](docs/sdks/products/README.md#get) - Retrieve a product
340
+ - [`catalogProductsGet`](docs/sdks/products/README.md#get) - Retrieve a product detail
351
341
  - [`catalogProductsGetCrossSells`](docs/sdks/products/README.md#getcrosssells) - Retrieve cross-sell products
352
342
  - [`catalogProductsGetSimilar`](docs/sdks/products/README.md#getsimilar) - Retrieve similar products
353
343
  - [`catalogProductsGetUpsells`](docs/sdks/products/README.md#getupsells) - Retrieve up-sell products
@@ -370,32 +360,31 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
370
360
  - [`customersAddressesGet`](docs/sdks/addresses/README.md#get) - Retrieve particular address
371
361
  - [`customersAddressesList`](docs/sdks/addresses/README.md#list) - Retrieve all addresses
372
362
  - [`customersAddressesUpdate`](docs/sdks/addresses/README.md#update) - Update particular address
373
- - [`customersAPIGetCustomersId`](docs/sdks/customersapi/README.md#getcustomersid) - Retrieve customer detail
374
- - [`customersAPIGetRecommendedProducts`](docs/sdks/customersapi/README.md#getrecommendedproducts) - List all recommended products
375
- - [`customersAPIPostCustomers`](docs/sdks/customersapi/README.md#postcustomers) - Create customer
376
- - [`customersAPIPutCustomersId`](docs/sdks/customersapi/README.md#putcustomersid) - Update customer detail
363
+ - [`customersGetCustomersId`](docs/sdks/customers/README.md#getcustomersid) - Retrieve customer detail
377
364
  - [`customersLoyaltyGet`](docs/sdks/loyalty/README.md#get) - Retrieve loyalty details
378
365
  - [`customersLoyaltyListActivities`](docs/sdks/loyalty/README.md#listactivities) - List all loyalty points activity
366
+ - [`customersPostCustomers`](docs/sdks/customers/README.md#postcustomers) - Create customer
367
+ - [`customersPutCustomersId`](docs/sdks/customers/README.md#putcustomersid) - Update customer detail
379
368
  - [`customersReviewsList`](docs/sdks/reviews/README.md#list) - Retrieve all reviews
369
+ - [`juspayGetPaymentsJuspayCustomer`](docs/sdks/juspay/README.md#getpaymentsjuspaycustomer) - Retrieve customer from juspay
370
+ - [`juspayPostPaymentsJuspayCreateCustomer`](docs/sdks/juspay/README.md#postpaymentsjuspaycreatecustomer) - Create customer in juspay
371
+ - [`juspayPostPaymentsJuspayCreateOrder`](docs/sdks/juspay/README.md#postpaymentsjuspaycreateorder) - Create order in juspay
380
372
  - [`offersCouponsList`](docs/sdks/coupons/README.md#list) - Retrieve all coupons
381
373
  - [`offersPromotionsList`](docs/sdks/promotions/README.md#list) - Retrieve all promotions
382
- - [`ordersAPIGetOrdersIdPaymentStatus`](docs/sdks/ordersapi/README.md#getordersidpaymentstatus) - Retrieve payment status
383
374
  - [`ordersCancel`](docs/sdks/orders/README.md#cancel) - Cancel order
384
375
  - [`ordersCreate`](docs/sdks/orders/README.md#create) - Create order
385
376
  - [`ordersGet`](docs/sdks/orders/README.md#get) - Retrieve order detail
377
+ - [`ordersGetOrdersIdPaymentStatus`](docs/sdks/orders/README.md#getordersidpaymentstatus) - Retrieve payment status
386
378
  - [`ordersList`](docs/sdks/orders/README.md#list) - Retrieve all orders
387
- - [`ordersPaymentsList`](docs/sdks/cestorefrontpayments/README.md#list) - Retrieve order payments
379
+ - [`ordersPaymentsList`](docs/sdks/cestorefrontorderspayments/README.md#list) - Retrieve order payments
388
380
  - [`ordersRefundsList`](docs/sdks/refunds/README.md#list) - Retrieve order refunds
389
381
  - [`ordersRetryPayment`](docs/sdks/orders/README.md#retrypayment) - Retry payment
390
382
  - [`ordersShipmentsList`](docs/sdks/shipments/README.md#list) - Retrieve order shipments
391
- - [`paymentsAPIGetPaymentsCards`](docs/sdks/paymentsapi/README.md#getpaymentscards) - List all saved cards
392
- - [`paymentsAPIGetPaymentsVerifyVpa`](docs/sdks/paymentsapi/README.md#getpaymentsverifyvpa) - Verify VPA
393
- - [`paymentsAPIJuspayGetPaymentsJuspayCustomer`](docs/sdks/paymentsapijuspay/README.md#getpaymentsjuspaycustomer) - Retrieve customer from juspay
394
- - [`paymentsAPIJuspayPostPaymentsJuspayCreateCustomer`](docs/sdks/paymentsapijuspay/README.md#postpaymentsjuspaycreatecustomer) - Create customer in juspay
395
- - [`paymentsAPIJuspayPostPaymentsJuspayCreateOrder`](docs/sdks/paymentsapijuspay/README.md#postpaymentsjuspaycreateorder) - Create order in juspay
396
- - [`paymentsAPIPostPaymentsCards`](docs/sdks/paymentsapi/README.md#postpaymentscards) - Add card
397
383
  - [`paymentsGenerateHash`](docs/sdks/payments/README.md#generatehash) - Generate hash
398
384
  - [`paymentsGetMethods`](docs/sdks/payments/README.md#getmethods) - List all payment methods
385
+ - [`paymentsGetPaymentsCards`](docs/sdks/payments/README.md#getpaymentscards) - List all saved cards
386
+ - [`paymentsGetPaymentsVerifyVpa`](docs/sdks/payments/README.md#getpaymentsverifyvpa) - Verify VPA
387
+ - [`paymentsPostPaymentsCards`](docs/sdks/payments/README.md#postpaymentscards) - Add card
399
388
  - [`shippingCheckPincodeServiceability`](docs/sdks/shipping/README.md#checkpincodeserviceability) - Check pincode serviceability
400
389
  - [`userNotificationPreferencesCreate`](docs/sdks/notificationpreferences/README.md#create) - Create user notification preferences
401
390
  - [`userNotificationPreferencesGet`](docs/sdks/notificationpreferences/README.md#get) - Retrieve user notification preferences
@@ -1,4 +1,4 @@
1
- # CeStorefrontPayments
1
+ # CeStorefrontOrdersPayments
2
2
  (*orders.payments*)
3
3
 
4
4
  ## Overview
@@ -3,4 +3,240 @@
3
3
 
4
4
  ## Overview
5
5
 
6
+ Customers
7
+
6
8
  ### Available Operations
9
+
10
+ * [postCustomers](#postcustomers) - Create customer
11
+ * [getCustomersId](#getcustomersid) - Retrieve customer detail
12
+ * [putCustomersId](#putcustomersid) - Update customer detail
13
+
14
+ ## postCustomers
15
+
16
+ Create customer
17
+
18
+ ### Example Usage
19
+
20
+ ```typescript
21
+ import { CeStorefront } from "ce-storefront";
22
+
23
+ const ceStorefront = new CeStorefront({
24
+ authorization: "<YOUR_BEARER_TOKEN_HERE>",
25
+ });
26
+
27
+ async function run() {
28
+ const result = await ceStorefront.customers.postCustomers({});
29
+
30
+ // Handle the result
31
+ console.log(result);
32
+ }
33
+
34
+ run();
35
+ ```
36
+
37
+ ### Standalone function
38
+
39
+ The standalone function version of this method:
40
+
41
+ ```typescript
42
+ import { CeStorefrontCore } from "ce-storefront/core.js";
43
+ import { customersPostCustomers } from "ce-storefront/funcs/customersPostCustomers.js";
44
+
45
+ // Use `CeStorefrontCore` for best tree-shaking performance.
46
+ // You can create one instance of it to use across an application.
47
+ const ceStorefront = new CeStorefrontCore({
48
+ authorization: "<YOUR_BEARER_TOKEN_HERE>",
49
+ });
50
+
51
+ async function run() {
52
+ const res = await customersPostCustomers(ceStorefront, {});
53
+
54
+ if (!res.ok) {
55
+ throw res.error;
56
+ }
57
+
58
+ const { value: result } = res;
59
+
60
+ // Handle the result
61
+ console.log(result);
62
+ }
63
+
64
+ run();
65
+ ```
66
+
67
+ ### Parameters
68
+
69
+ | Parameter | Type | Required | Description |
70
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
71
+ | `request` | [components.CreateCustomer](../../models/components/createcustomer.md) | :heavy_check_mark: | The request object to use for the request. |
72
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
73
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
74
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
75
+
76
+ ### Response
77
+
78
+ **Promise\<[operations.PostCustomersResponseBody](../../models/operations/postcustomersresponsebody.md)\>**
79
+
80
+ ### Errors
81
+
82
+ | Error Type | Status Code | Content Type |
83
+ | ------------------- | ------------------- | ------------------- |
84
+ | errors.BadRequest | 400 | application/json |
85
+ | errors.Unauthorized | 401 | application/json |
86
+ | errors.CeError | 4XX, 5XX | \*/\* |
87
+
88
+ ## getCustomersId
89
+
90
+ Retrieve customer detail.
91
+
92
+ ### Example Usage
93
+
94
+ ```typescript
95
+ import { CeStorefront } from "ce-storefront";
96
+
97
+ const ceStorefront = new CeStorefront({
98
+ authorization: "<YOUR_BEARER_TOKEN_HERE>",
99
+ });
100
+
101
+ async function run() {
102
+ const result = await ceStorefront.customers.getCustomersId({
103
+ id: "<id>",
104
+ });
105
+
106
+ // Handle the result
107
+ console.log(result);
108
+ }
109
+
110
+ run();
111
+ ```
112
+
113
+ ### Standalone function
114
+
115
+ The standalone function version of this method:
116
+
117
+ ```typescript
118
+ import { CeStorefrontCore } from "ce-storefront/core.js";
119
+ import { customersGetCustomersId } from "ce-storefront/funcs/customersGetCustomersId.js";
120
+
121
+ // Use `CeStorefrontCore` for best tree-shaking performance.
122
+ // You can create one instance of it to use across an application.
123
+ const ceStorefront = new CeStorefrontCore({
124
+ authorization: "<YOUR_BEARER_TOKEN_HERE>",
125
+ });
126
+
127
+ async function run() {
128
+ const res = await customersGetCustomersId(ceStorefront, {
129
+ id: "<id>",
130
+ });
131
+
132
+ if (!res.ok) {
133
+ throw res.error;
134
+ }
135
+
136
+ const { value: result } = res;
137
+
138
+ // Handle the result
139
+ console.log(result);
140
+ }
141
+
142
+ run();
143
+ ```
144
+
145
+ ### Parameters
146
+
147
+ | Parameter | Type | Required | Description |
148
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
149
+ | `request` | [operations.GetCustomersIdRequest](../../models/operations/getcustomersidrequest.md) | :heavy_check_mark: | The request object to use for the request. |
150
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
151
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
152
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
153
+
154
+ ### Response
155
+
156
+ **Promise\<[operations.GetCustomersIdResponseBody](../../models/operations/getcustomersidresponsebody.md)\>**
157
+
158
+ ### Errors
159
+
160
+ | Error Type | Status Code | Content Type |
161
+ | -------------- | -------------- | -------------- |
162
+ | errors.CeError | 4XX, 5XX | \*/\* |
163
+
164
+ ## putCustomersId
165
+
166
+ Update customer detail
167
+
168
+ ### Example Usage
169
+
170
+ ```typescript
171
+ import { CeStorefront } from "ce-storefront";
172
+
173
+ const ceStorefront = new CeStorefront({
174
+ authorization: "<YOUR_BEARER_TOKEN_HERE>",
175
+ });
176
+
177
+ async function run() {
178
+ const result = await ceStorefront.customers.putCustomersId({
179
+ id: "<id>",
180
+ updateCustomer: {},
181
+ });
182
+
183
+ // Handle the result
184
+ console.log(result);
185
+ }
186
+
187
+ run();
188
+ ```
189
+
190
+ ### Standalone function
191
+
192
+ The standalone function version of this method:
193
+
194
+ ```typescript
195
+ import { CeStorefrontCore } from "ce-storefront/core.js";
196
+ import { customersPutCustomersId } from "ce-storefront/funcs/customersPutCustomersId.js";
197
+
198
+ // Use `CeStorefrontCore` for best tree-shaking performance.
199
+ // You can create one instance of it to use across an application.
200
+ const ceStorefront = new CeStorefrontCore({
201
+ authorization: "<YOUR_BEARER_TOKEN_HERE>",
202
+ });
203
+
204
+ async function run() {
205
+ const res = await customersPutCustomersId(ceStorefront, {
206
+ id: "<id>",
207
+ updateCustomer: {},
208
+ });
209
+
210
+ if (!res.ok) {
211
+ throw res.error;
212
+ }
213
+
214
+ const { value: result } = res;
215
+
216
+ // Handle the result
217
+ console.log(result);
218
+ }
219
+
220
+ run();
221
+ ```
222
+
223
+ ### Parameters
224
+
225
+ | Parameter | Type | Required | Description |
226
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
227
+ | `request` | [operations.PutCustomersIdRequest](../../models/operations/putcustomersidrequest.md) | :heavy_check_mark: | The request object to use for the request. |
228
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
229
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
230
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
231
+
232
+ ### Response
233
+
234
+ **Promise\<[operations.PutCustomersIdResponseBody](../../models/operations/putcustomersidresponsebody.md)\>**
235
+
236
+ ### Errors
237
+
238
+ | Error Type | Status Code | Content Type |
239
+ | ------------------- | ------------------- | ------------------- |
240
+ | errors.BadRequest | 400 | application/json |
241
+ | errors.Unauthorized | 401 | application/json |
242
+ | errors.CeError | 4XX, 5XX | \*/\* |
@@ -1,9 +1,9 @@
1
- # PaymentsAPIJuspay
2
- (*paymentsAPIJuspay*)
1
+ # Juspay
2
+ (*juspay*)
3
3
 
4
4
  ## Overview
5
5
 
6
- Juspay Payments API
6
+ Juspay Payments
7
7
 
8
8
  ### Available Operations
9
9
 
@@ -26,7 +26,7 @@ const ceStorefront = new CeStorefront({
26
26
  });
27
27
 
28
28
  async function run() {
29
- const result = await ceStorefront.paymentsAPIJuspay.postPaymentsJuspayCreateOrder({});
29
+ const result = await ceStorefront.juspay.postPaymentsJuspayCreateOrder({});
30
30
 
31
31
  // Handle the result
32
32
  console.log(result);
@@ -41,7 +41,7 @@ The standalone function version of this method:
41
41
 
42
42
  ```typescript
43
43
  import { CeStorefrontCore } from "ce-storefront/core.js";
44
- import { paymentsAPIJuspayPostPaymentsJuspayCreateOrder } from "ce-storefront/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.js";
44
+ import { juspayPostPaymentsJuspayCreateOrder } from "ce-storefront/funcs/juspayPostPaymentsJuspayCreateOrder.js";
45
45
 
46
46
  // Use `CeStorefrontCore` for best tree-shaking performance.
47
47
  // You can create one instance of it to use across an application.
@@ -50,7 +50,7 @@ const ceStorefront = new CeStorefrontCore({
50
50
  });
51
51
 
52
52
  async function run() {
53
- const res = await paymentsAPIJuspayPostPaymentsJuspayCreateOrder(ceStorefront, {});
53
+ const res = await juspayPostPaymentsJuspayCreateOrder(ceStorefront, {});
54
54
 
55
55
  if (!res.ok) {
56
56
  throw res.error;
@@ -101,7 +101,7 @@ const ceStorefront = new CeStorefront({
101
101
  });
102
102
 
103
103
  async function run() {
104
- const result = await ceStorefront.paymentsAPIJuspay.postPaymentsJuspayCreateCustomer({});
104
+ const result = await ceStorefront.juspay.postPaymentsJuspayCreateCustomer({});
105
105
 
106
106
  // Handle the result
107
107
  console.log(result);
@@ -116,7 +116,7 @@ The standalone function version of this method:
116
116
 
117
117
  ```typescript
118
118
  import { CeStorefrontCore } from "ce-storefront/core.js";
119
- import { paymentsAPIJuspayPostPaymentsJuspayCreateCustomer } from "ce-storefront/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.js";
119
+ import { juspayPostPaymentsJuspayCreateCustomer } from "ce-storefront/funcs/juspayPostPaymentsJuspayCreateCustomer.js";
120
120
 
121
121
  // Use `CeStorefrontCore` for best tree-shaking performance.
122
122
  // You can create one instance of it to use across an application.
@@ -125,7 +125,7 @@ const ceStorefront = new CeStorefrontCore({
125
125
  });
126
126
 
127
127
  async function run() {
128
- const res = await paymentsAPIJuspayPostPaymentsJuspayCreateCustomer(ceStorefront, {});
128
+ const res = await juspayPostPaymentsJuspayCreateCustomer(ceStorefront, {});
129
129
 
130
130
  if (!res.ok) {
131
131
  throw res.error;
@@ -176,7 +176,7 @@ const ceStorefront = new CeStorefront({
176
176
  });
177
177
 
178
178
  async function run() {
179
- const result = await ceStorefront.paymentsAPIJuspay.getPaymentsJuspayCustomer({
179
+ const result = await ceStorefront.juspay.getPaymentsJuspayCustomer({
180
180
  userId: "<id>",
181
181
  });
182
182
 
@@ -193,7 +193,7 @@ The standalone function version of this method:
193
193
 
194
194
  ```typescript
195
195
  import { CeStorefrontCore } from "ce-storefront/core.js";
196
- import { paymentsAPIJuspayGetPaymentsJuspayCustomer } from "ce-storefront/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.js";
196
+ import { juspayGetPaymentsJuspayCustomer } from "ce-storefront/funcs/juspayGetPaymentsJuspayCustomer.js";
197
197
 
198
198
  // Use `CeStorefrontCore` for best tree-shaking performance.
199
199
  // You can create one instance of it to use across an application.
@@ -202,7 +202,7 @@ const ceStorefront = new CeStorefrontCore({
202
202
  });
203
203
 
204
204
  async function run() {
205
- const res = await paymentsAPIJuspayGetPaymentsJuspayCustomer(ceStorefront, {
205
+ const res = await juspayGetPaymentsJuspayCustomer(ceStorefront, {
206
206
  userId: "<id>",
207
207
  });
208
208
 
@@ -3,6 +3,8 @@
3
3
 
4
4
  ## Overview
5
5
 
6
+ Orders
7
+
6
8
  ### Available Operations
7
9
 
8
10
  * [create](#create) - Create order
@@ -10,6 +12,7 @@
10
12
  * [get](#get) - Retrieve order detail
11
13
  * [cancel](#cancel) - Cancel order
12
14
  * [retryPayment](#retrypayment) - Retry payment
15
+ * [getOrdersIdPaymentStatus](#getordersidpaymentstatus) - Retrieve payment status
13
16
 
14
17
  ## create
15
18
 
@@ -433,4 +436,80 @@ run();
433
436
  | errors.BadRequest | 400 | application/json |
434
437
  | errors.Unauthorized | 401 | application/json |
435
438
  | errors.NotFound | 404 | application/json |
436
- | errors.CeError | 4XX, 5XX | \*/\* |
439
+ | errors.CeError | 4XX, 5XX | \*/\* |
440
+
441
+ ## getOrdersIdPaymentStatus
442
+
443
+ Retrieve payment status of a paricular order.
444
+
445
+ ### Example Usage
446
+
447
+ ```typescript
448
+ import { CeStorefront } from "ce-storefront";
449
+
450
+ const ceStorefront = new CeStorefront({
451
+ authorization: "<YOUR_BEARER_TOKEN_HERE>",
452
+ });
453
+
454
+ async function run() {
455
+ const result = await ceStorefront.orders.getOrdersIdPaymentStatus({
456
+ orderNumber: "<value>",
457
+ });
458
+
459
+ // Handle the result
460
+ console.log(result);
461
+ }
462
+
463
+ run();
464
+ ```
465
+
466
+ ### Standalone function
467
+
468
+ The standalone function version of this method:
469
+
470
+ ```typescript
471
+ import { CeStorefrontCore } from "ce-storefront/core.js";
472
+ import { ordersGetOrdersIdPaymentStatus } from "ce-storefront/funcs/ordersGetOrdersIdPaymentStatus.js";
473
+
474
+ // Use `CeStorefrontCore` for best tree-shaking performance.
475
+ // You can create one instance of it to use across an application.
476
+ const ceStorefront = new CeStorefrontCore({
477
+ authorization: "<YOUR_BEARER_TOKEN_HERE>",
478
+ });
479
+
480
+ async function run() {
481
+ const res = await ordersGetOrdersIdPaymentStatus(ceStorefront, {
482
+ orderNumber: "<value>",
483
+ });
484
+
485
+ if (!res.ok) {
486
+ throw res.error;
487
+ }
488
+
489
+ const { value: result } = res;
490
+
491
+ // Handle the result
492
+ console.log(result);
493
+ }
494
+
495
+ run();
496
+ ```
497
+
498
+ ### Parameters
499
+
500
+ | Parameter | Type | Required | Description |
501
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
502
+ | `request` | [operations.GetOrdersIdPaymentStatusRequest](../../models/operations/getordersidpaymentstatusrequest.md) | :heavy_check_mark: | The request object to use for the request. |
503
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
504
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
505
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
506
+
507
+ ### Response
508
+
509
+ **Promise\<[operations.GetOrdersIdPaymentStatusResponseBody](../../models/operations/getordersidpaymentstatusresponsebody.md)\>**
510
+
511
+ ### Errors
512
+
513
+ | Error Type | Status Code | Content Type |
514
+ | -------------- | -------------- | -------------- |
515
+ | errors.CeError | 4XX, 5XX | \*/\* |