ce-storefront 0.3.11 → 0.3.17

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 (438) hide show
  1. package/FUNCTIONS.md +2 -2
  2. package/README.md +129 -108
  3. package/docs/sdks/addresses/README.md +4 -363
  4. package/docs/sdks/auth/README.md +72 -0
  5. package/docs/sdks/authuser/README.md +80 -0
  6. package/docs/sdks/{refunds → cards}/README.md +12 -11
  7. package/docs/sdks/catalogproductreviews/README.md +97 -0
  8. package/docs/sdks/{shipments → catalogproducts}/README.md +12 -12
  9. package/docs/sdks/{skus → catalogskus}/README.md +3 -3
  10. package/docs/sdks/{cestorefrontreviews → cestorefrontaddresses}/README.md +123 -34
  11. package/docs/sdks/cestorefrontproducts/README.md +6 -0
  12. package/docs/sdks/cestorefrontuser/README.md +6 -735
  13. package/docs/sdks/cestorefrontusers/README.md +92 -0
  14. package/docs/sdks/countries/README.md +79 -0
  15. package/docs/sdks/customers/README.md +192 -18
  16. package/docs/sdks/juspay/README.md +15 -15
  17. package/docs/sdks/loyalty/README.md +0 -81
  18. package/docs/sdks/loyaltypoints/README.md +88 -0
  19. package/docs/sdks/notificationpreferences/README.md +4 -162
  20. package/docs/sdks/orders/README.md +163 -5
  21. package/docs/sdks/payments/README.md +15 -95
  22. package/docs/sdks/products/README.md +15 -94
  23. package/docs/sdks/reviews/README.md +17 -13
  24. package/docs/sdks/{shipping → shipment}/README.md +5 -5
  25. package/docs/sdks/user/README.md +425 -0
  26. package/docs/sdks/users/README.md +240 -0
  27. package/docs/sdks/utils/README.md +0 -72
  28. package/docs/sdks/wishlist/README.md +5 -5
  29. package/esm/funcs/{catalogProductsGetCrossSells.d.ts → addressesGet.d.ts} +4 -4
  30. package/esm/funcs/addressesGet.d.ts.map +1 -0
  31. package/esm/funcs/{customersAddressesGet.js → addressesGet.js} +2 -2
  32. package/esm/funcs/addressesGet.js.map +1 -0
  33. package/esm/funcs/{authUserLogout.d.ts → authLogout.d.ts} +2 -2
  34. package/esm/funcs/authLogout.d.ts.map +1 -0
  35. package/esm/funcs/{authUserLogout.js → authLogout.js} +2 -2
  36. package/esm/funcs/authLogout.js.map +1 -0
  37. package/esm/funcs/{authUserDeactivateAccount.d.ts → authUserDeactivate.d.ts} +2 -2
  38. package/esm/funcs/{paymentsGetMethods.d.ts.map → authUserDeactivate.d.ts.map} +1 -1
  39. package/esm/funcs/{authUserDeactivateAccount.js → authUserDeactivate.js} +2 -2
  40. package/esm/funcs/authUserDeactivate.js.map +1 -0
  41. package/esm/funcs/{userNotificationPreferencesGet.d.ts → authUserNotificationPreferencesGet.d.ts} +2 -2
  42. package/esm/funcs/authUserNotificationPreferencesGet.d.ts.map +1 -0
  43. package/esm/funcs/{userNotificationPreferencesGet.js → authUserNotificationPreferencesGet.js} +2 -2
  44. package/esm/funcs/authUserNotificationPreferencesGet.js.map +1 -0
  45. package/esm/funcs/{authUserAddProfileImage.d.ts → authUsersAddProfileImage.d.ts} +2 -2
  46. package/esm/funcs/authUsersAddProfileImage.d.ts.map +1 -0
  47. package/esm/funcs/{authUserAddProfileImage.js → authUsersAddProfileImage.js} +2 -2
  48. package/esm/funcs/authUsersAddProfileImage.js.map +1 -0
  49. package/esm/funcs/{catalogProductsReviewsCreate.d.ts → catalogProductReviewsCreate.d.ts} +2 -2
  50. package/esm/funcs/catalogProductReviewsCreate.d.ts.map +1 -0
  51. package/esm/funcs/{catalogProductsReviewsCreate.js → catalogProductReviewsCreate.js} +2 -2
  52. package/esm/funcs/catalogProductReviewsCreate.js.map +1 -0
  53. package/esm/funcs/customersAddAddress.d.ts +16 -0
  54. package/esm/funcs/{catalogProductsList.d.ts.map → customersAddAddress.d.ts.map} +1 -1
  55. package/esm/funcs/{customersAddressesAdd.js → customersAddAddress.js} +2 -2
  56. package/esm/funcs/customersAddAddress.js.map +1 -0
  57. package/esm/funcs/{customersPostCustomers.d.ts → customersCreate.d.ts} +2 -2
  58. package/esm/funcs/customersCreate.d.ts.map +1 -0
  59. package/esm/funcs/{customersPostCustomers.js → customersCreate.js} +2 -2
  60. package/esm/funcs/customersCreate.js.map +1 -0
  61. package/esm/funcs/{customersGetCustomersId.d.ts → customersGet.d.ts} +2 -2
  62. package/esm/funcs/customersGet.d.ts.map +1 -0
  63. package/esm/funcs/{customersGetCustomersId.js → customersGet.js} +2 -2
  64. package/esm/funcs/customersGet.js.map +1 -0
  65. package/esm/funcs/customersGetReviews.d.ts +15 -0
  66. package/esm/funcs/customersGetReviews.d.ts.map +1 -0
  67. package/esm/funcs/{customersReviewsList.js → customersGetReviews.js} +2 -2
  68. package/esm/funcs/customersGetReviews.js.map +1 -0
  69. package/esm/funcs/{customersAddressesAdd.d.ts → customersUpdate.d.ts} +4 -4
  70. package/esm/funcs/customersUpdate.d.ts.map +1 -0
  71. package/esm/funcs/{customersPutCustomersId.js → customersUpdate.js} +2 -2
  72. package/esm/funcs/customersUpdate.js.map +1 -0
  73. package/esm/funcs/juspayCreateCustomer.d.ts +17 -0
  74. package/esm/funcs/juspayCreateCustomer.d.ts.map +1 -0
  75. package/esm/funcs/{juspayPostPaymentsJuspayCreateCustomer.js → juspayCreateCustomer.js} +2 -2
  76. package/esm/funcs/juspayCreateCustomer.js.map +1 -0
  77. package/esm/funcs/{juspayPostPaymentsJuspayCreateOrder.d.ts → juspayCreateOrder.d.ts} +2 -2
  78. package/esm/funcs/juspayCreateOrder.d.ts.map +1 -0
  79. package/esm/funcs/{juspayPostPaymentsJuspayCreateOrder.js → juspayCreateOrder.js} +2 -2
  80. package/esm/funcs/{juspayGetPaymentsJuspayCustomer.js.map → juspayCreateOrder.js.map} +1 -1
  81. package/esm/funcs/{juspayGetPaymentsJuspayCustomer.d.ts → juspayGetCustomer.d.ts} +2 -2
  82. package/esm/funcs/juspayGetCustomer.d.ts.map +1 -0
  83. package/esm/funcs/{juspayGetPaymentsJuspayCustomer.js → juspayGetCustomer.js} +2 -2
  84. package/esm/funcs/{juspayPostPaymentsJuspayCreateOrder.js.map → juspayGetCustomer.js.map} +1 -1
  85. package/esm/funcs/{customersLoyaltyListActivities.d.ts → loyaltyPointsListActivities.d.ts} +2 -2
  86. package/esm/funcs/loyaltyPointsListActivities.d.ts.map +1 -0
  87. package/esm/funcs/{customersLoyaltyListActivities.js → loyaltyPointsListActivities.js} +2 -2
  88. package/esm/funcs/loyaltyPointsListActivities.js.map +1 -0
  89. package/esm/funcs/{customersReviewsList.d.ts → ordersGetPaymentStatus.d.ts} +4 -4
  90. package/esm/funcs/ordersGetPaymentStatus.d.ts.map +1 -0
  91. package/esm/funcs/{ordersGetOrdersIdPaymentStatus.js → ordersGetPaymentStatus.js} +2 -2
  92. package/esm/funcs/ordersGetPaymentStatus.js.map +1 -0
  93. package/esm/funcs/{ordersRefundsList.d.ts → ordersGetRefunds.d.ts} +2 -2
  94. package/esm/funcs/ordersGetRefunds.d.ts.map +1 -0
  95. package/esm/funcs/{ordersRefundsList.js → ordersGetRefunds.js} +2 -2
  96. package/esm/funcs/ordersGetRefunds.js.map +1 -0
  97. package/esm/funcs/{ordersShipmentsList.d.ts → ordersGetShipments.d.ts} +2 -2
  98. package/esm/funcs/ordersGetShipments.d.ts.map +1 -0
  99. package/esm/funcs/{ordersShipmentsList.js → ordersGetShipments.js} +2 -2
  100. package/esm/funcs/ordersGetShipments.js.map +1 -0
  101. package/esm/funcs/{paymentsPostPaymentsCards.d.ts → paymentsAddCard.d.ts} +2 -2
  102. package/esm/funcs/paymentsAddCard.d.ts.map +1 -0
  103. package/esm/funcs/{paymentsPostPaymentsCards.js → paymentsAddCard.js} +2 -2
  104. package/esm/funcs/paymentsAddCard.js.map +1 -0
  105. package/esm/funcs/{paymentsGetPaymentsCards.d.ts → paymentsCardsList.d.ts} +2 -2
  106. package/esm/funcs/paymentsCardsList.d.ts.map +1 -0
  107. package/esm/funcs/{paymentsGetPaymentsCards.js → paymentsCardsList.js} +2 -2
  108. package/esm/funcs/paymentsCardsList.js.map +1 -0
  109. package/esm/funcs/{paymentsGetMethods.d.ts → paymentsListMethods.d.ts} +2 -2
  110. package/esm/funcs/paymentsListMethods.d.ts.map +1 -0
  111. package/esm/funcs/{paymentsGetMethods.js → paymentsListMethods.js} +2 -2
  112. package/esm/funcs/paymentsListMethods.js.map +1 -0
  113. package/esm/funcs/{paymentsGetPaymentsVerifyVpa.d.ts → paymentsVerifyVpa.d.ts} +2 -2
  114. package/esm/funcs/paymentsVerifyVpa.d.ts.map +1 -0
  115. package/esm/funcs/{paymentsGetPaymentsVerifyVpa.js → paymentsVerifyVpa.js} +2 -2
  116. package/esm/funcs/paymentsVerifyVpa.js.map +1 -0
  117. package/esm/funcs/{catalogProductsGetSimilar.d.ts → productsGetSimilar.d.ts} +2 -2
  118. package/esm/funcs/productsGetSimilar.d.ts.map +1 -0
  119. package/esm/funcs/{catalogProductsGetSimilar.js → productsGetSimilar.js} +2 -2
  120. package/esm/funcs/productsGetSimilar.js.map +1 -0
  121. package/esm/funcs/{catalogProductsGetUpsells.d.ts → productsGetUpsells.d.ts} +2 -2
  122. package/esm/funcs/productsGetUpsells.d.ts.map +1 -0
  123. package/esm/funcs/{catalogProductsGetUpsells.js → productsGetUpsells.js} +2 -2
  124. package/esm/funcs/productsGetUpsells.js.map +1 -0
  125. package/esm/funcs/{catalogProductsList.d.ts → productsList.d.ts} +2 -2
  126. package/esm/funcs/productsList.d.ts.map +1 -0
  127. package/esm/funcs/{catalogProductsList.js → productsList.js} +2 -2
  128. package/esm/funcs/productsList.js.map +1 -0
  129. package/esm/funcs/{juspayPostPaymentsJuspayCreateCustomer.d.ts → productsListCrossSells.d.ts} +4 -5
  130. package/esm/funcs/productsListCrossSells.d.ts.map +1 -0
  131. package/esm/funcs/{catalogProductsGetCrossSells.js → productsListCrossSells.js} +2 -2
  132. package/esm/funcs/productsListCrossSells.js.map +1 -0
  133. package/esm/funcs/{shippingCheckPincodeServiceability.d.ts → shipmentCheckPincodeServiceability.d.ts} +2 -2
  134. package/esm/funcs/{shippingCheckPincodeServiceability.d.ts.map → shipmentCheckPincodeServiceability.d.ts.map} +1 -1
  135. package/esm/funcs/{shippingCheckPincodeServiceability.js → shipmentCheckPincodeServiceability.js} +2 -2
  136. package/esm/funcs/{shippingCheckPincodeServiceability.js.map → shipmentCheckPincodeServiceability.js.map} +1 -1
  137. package/esm/funcs/{authUserDeleteProfileImage.d.ts → userDeleteProfileImage.d.ts} +2 -2
  138. package/esm/funcs/userDeleteProfileImage.d.ts.map +1 -0
  139. package/esm/funcs/{authUserDeleteProfileImage.js → userDeleteProfileImage.js} +2 -2
  140. package/esm/funcs/userDeleteProfileImage.js.map +1 -0
  141. package/esm/funcs/{authUserResetPassword.d.ts → userResetPassword.d.ts} +2 -2
  142. package/esm/funcs/{ordersRefundsList.d.ts.map → userResetPassword.d.ts.map} +1 -1
  143. package/esm/funcs/{authUserResetPassword.js → userResetPassword.js} +2 -2
  144. package/esm/funcs/userResetPassword.js.map +1 -0
  145. package/esm/funcs/{authUserUpdate.d.ts → userUpdate.d.ts} +2 -2
  146. package/esm/funcs/userUpdate.d.ts.map +1 -0
  147. package/esm/funcs/{authUserUpdate.js → userUpdate.js} +2 -2
  148. package/esm/funcs/userUpdate.js.map +1 -0
  149. package/esm/funcs/{userNotificationPreferencesUpdate.d.ts → userUpdateNotificationPreferences.d.ts} +2 -2
  150. package/esm/funcs/{userNotificationPreferencesUpdate.d.ts.map → userUpdateNotificationPreferences.d.ts.map} +1 -1
  151. package/esm/funcs/{userNotificationPreferencesUpdate.js → userUpdateNotificationPreferences.js} +2 -2
  152. package/esm/funcs/{userNotificationPreferencesUpdate.js.map → userUpdateNotificationPreferences.js.map} +1 -1
  153. package/esm/funcs/{authUserUpdateProfileImage.d.ts → userUpdateProfileImage.d.ts} +2 -2
  154. package/esm/funcs/userUpdateProfileImage.d.ts.map +1 -0
  155. package/esm/funcs/{authUserUpdateProfileImage.js → userUpdateProfileImage.js} +2 -2
  156. package/esm/funcs/userUpdateProfileImage.js.map +1 -0
  157. package/esm/funcs/{userNotificationPreferencesCreate.d.ts → usersCreateNotificationPreferences.d.ts} +2 -2
  158. package/esm/funcs/usersCreateNotificationPreferences.d.ts.map +1 -0
  159. package/esm/funcs/{userNotificationPreferencesCreate.js → usersCreateNotificationPreferences.js} +2 -2
  160. package/esm/funcs/usersCreateNotificationPreferences.js.map +1 -0
  161. package/esm/funcs/{authUserGet.d.ts → usersGet.d.ts} +2 -2
  162. package/esm/funcs/usersGet.d.ts.map +1 -0
  163. package/esm/funcs/{authUserGet.js → usersGet.js} +2 -2
  164. package/esm/funcs/usersGet.js.map +1 -0
  165. package/esm/funcs/{authUserGetProfileImage.d.ts → usersGetProfileImage.d.ts} +2 -2
  166. package/esm/funcs/{customersReviewsList.d.ts.map → usersGetProfileImage.d.ts.map} +1 -1
  167. package/esm/funcs/{authUserGetProfileImage.js → usersGetProfileImage.js} +2 -2
  168. package/esm/funcs/{customersReviewsList.js.map → usersGetProfileImage.js.map} +1 -1
  169. package/esm/funcs/{utilsGetCountries.d.ts → utilsCountriesGet.d.ts} +2 -2
  170. package/esm/funcs/{utilsGetCountries.d.ts.map → utilsCountriesGet.d.ts.map} +1 -1
  171. package/esm/funcs/{utilsGetCountries.js → utilsCountriesGet.js} +2 -2
  172. package/esm/funcs/{utilsGetCountries.js.map → utilsCountriesGet.js.map} +1 -1
  173. package/esm/funcs/{wishlistDelete.d.ts → wishlistRemoveItem.d.ts} +2 -2
  174. package/esm/funcs/wishlistRemoveItem.d.ts.map +1 -0
  175. package/esm/funcs/{wishlistDelete.js → wishlistRemoveItem.js} +2 -2
  176. package/esm/funcs/wishlistRemoveItem.js.map +1 -0
  177. package/esm/lib/config.d.ts +2 -2
  178. package/esm/lib/config.js +2 -2
  179. package/esm/sdk/addresses.d.ts +0 -28
  180. package/esm/sdk/addresses.d.ts.map +1 -1
  181. package/esm/sdk/addresses.js +2 -42
  182. package/esm/sdk/addresses.js.map +1 -1
  183. package/esm/sdk/auth.d.ts +10 -0
  184. package/esm/sdk/auth.d.ts.map +1 -1
  185. package/esm/sdk/auth.js +14 -0
  186. package/esm/sdk/auth.js.map +1 -1
  187. package/esm/sdk/authuser.d.ts +12 -0
  188. package/esm/sdk/authuser.d.ts.map +1 -0
  189. package/esm/sdk/authuser.js +18 -0
  190. package/esm/sdk/authuser.js.map +1 -0
  191. package/esm/sdk/cards.d.ts +12 -0
  192. package/esm/sdk/cards.d.ts.map +1 -0
  193. package/esm/sdk/cards.js +18 -0
  194. package/esm/sdk/cards.js.map +1 -0
  195. package/esm/sdk/catalog.d.ts +2 -5
  196. package/esm/sdk/catalog.d.ts.map +1 -1
  197. package/esm/sdk/catalog.js +2 -6
  198. package/esm/sdk/catalog.js.map +1 -1
  199. package/esm/sdk/catalogproductreviews.d.ts +12 -0
  200. package/esm/sdk/catalogproductreviews.d.ts.map +1 -0
  201. package/esm/sdk/catalogproductreviews.js +18 -0
  202. package/esm/sdk/catalogproductreviews.js.map +1 -0
  203. package/esm/sdk/catalogproducts.d.ts +12 -0
  204. package/esm/sdk/catalogproducts.d.ts.map +1 -0
  205. package/esm/sdk/catalogproducts.js +18 -0
  206. package/esm/sdk/catalogproducts.js.map +1 -0
  207. package/esm/sdk/{skus.d.ts → catalogskus.d.ts} +2 -2
  208. package/esm/sdk/catalogskus.d.ts.map +1 -0
  209. package/esm/sdk/{skus.js → catalogskus.js} +2 -2
  210. package/esm/sdk/catalogskus.js.map +1 -0
  211. package/esm/sdk/cestorefrontaddresses.d.ts +26 -0
  212. package/esm/sdk/cestorefrontaddresses.d.ts.map +1 -0
  213. package/esm/sdk/cestorefrontaddresses.js +38 -0
  214. package/esm/sdk/cestorefrontaddresses.js.map +1 -0
  215. package/esm/sdk/cestorefrontproducts.d.ts +10 -0
  216. package/esm/sdk/cestorefrontproducts.d.ts.map +1 -0
  217. package/esm/sdk/cestorefrontproducts.js +15 -0
  218. package/esm/sdk/cestorefrontproducts.js.map +1 -0
  219. package/esm/sdk/cestorefrontuser.d.ts +4 -64
  220. package/esm/sdk/cestorefrontuser.d.ts.map +1 -1
  221. package/esm/sdk/cestorefrontuser.js +6 -92
  222. package/esm/sdk/cestorefrontuser.js.map +1 -1
  223. package/esm/sdk/cestorefrontusers.d.ts +12 -0
  224. package/esm/sdk/cestorefrontusers.d.ts.map +1 -0
  225. package/esm/sdk/cestorefrontusers.js +18 -0
  226. package/esm/sdk/cestorefrontusers.js.map +1 -0
  227. package/esm/sdk/countries.d.ts +12 -0
  228. package/esm/sdk/countries.d.ts.map +1 -0
  229. package/esm/sdk/countries.js +18 -0
  230. package/esm/sdk/countries.js.map +1 -0
  231. package/esm/sdk/customers.d.ts +19 -8
  232. package/esm/sdk/customers.d.ts.map +1 -1
  233. package/esm/sdk/customers.js +31 -15
  234. package/esm/sdk/customers.js.map +1 -1
  235. package/esm/sdk/juspay.d.ts +3 -3
  236. package/esm/sdk/juspay.d.ts.map +1 -1
  237. package/esm/sdk/juspay.js +9 -9
  238. package/esm/sdk/juspay.js.map +1 -1
  239. package/esm/sdk/loyalty.d.ts +0 -7
  240. package/esm/sdk/loyalty.d.ts.map +1 -1
  241. package/esm/sdk/loyalty.js +0 -10
  242. package/esm/sdk/loyalty.js.map +1 -1
  243. package/esm/sdk/loyaltypoints.d.ts +12 -0
  244. package/esm/sdk/loyaltypoints.d.ts.map +1 -0
  245. package/esm/sdk/loyaltypoints.js +18 -0
  246. package/esm/sdk/loyaltypoints.js.map +1 -0
  247. package/esm/sdk/notificationpreferences.d.ts +0 -14
  248. package/esm/sdk/notificationpreferences.d.ts.map +1 -1
  249. package/esm/sdk/notificationpreferences.js +2 -22
  250. package/esm/sdk/notificationpreferences.js.map +1 -1
  251. package/esm/sdk/orders.d.ts +15 -7
  252. package/esm/sdk/orders.d.ts.map +1 -1
  253. package/esm/sdk/orders.js +23 -11
  254. package/esm/sdk/orders.js.map +1 -1
  255. package/esm/sdk/payments.d.ts +6 -10
  256. package/esm/sdk/payments.d.ts.map +1 -1
  257. package/esm/sdk/payments.js +13 -19
  258. package/esm/sdk/payments.js.map +1 -1
  259. package/esm/sdk/products.d.ts +1 -14
  260. package/esm/sdk/products.d.ts.map +1 -1
  261. package/esm/sdk/products.js +9 -27
  262. package/esm/sdk/products.js.map +1 -1
  263. package/esm/sdk/reviews.d.ts +3 -3
  264. package/esm/sdk/reviews.d.ts.map +1 -1
  265. package/esm/sdk/reviews.js +4 -4
  266. package/esm/sdk/reviews.js.map +1 -1
  267. package/esm/sdk/sdk.d.ts +27 -3
  268. package/esm/sdk/sdk.d.ts.map +1 -1
  269. package/esm/sdk/sdk.js +35 -3
  270. package/esm/sdk/sdk.js.map +1 -1
  271. package/esm/sdk/{shipping.d.ts → shipment.d.ts} +2 -2
  272. package/esm/sdk/{shipping.d.ts.map → shipment.d.ts.map} +1 -1
  273. package/esm/sdk/{shipping.js → shipment.js} +4 -4
  274. package/esm/sdk/{shipping.js.map → shipment.js.map} +1 -1
  275. package/esm/sdk/user.d.ts +37 -4
  276. package/esm/sdk/user.d.ts.map +1 -1
  277. package/esm/sdk/user.js +50 -3
  278. package/esm/sdk/user.js.map +1 -1
  279. package/esm/sdk/users.d.ts +26 -0
  280. package/esm/sdk/users.d.ts.map +1 -0
  281. package/esm/sdk/users.js +38 -0
  282. package/esm/sdk/users.js.map +1 -0
  283. package/esm/sdk/utils.d.ts +3 -7
  284. package/esm/sdk/utils.d.ts.map +1 -1
  285. package/esm/sdk/utils.js +3 -9
  286. package/esm/sdk/utils.js.map +1 -1
  287. package/esm/sdk/wishlist.d.ts +1 -1
  288. package/esm/sdk/wishlist.d.ts.map +1 -1
  289. package/esm/sdk/wishlist.js +3 -3
  290. package/esm/sdk/wishlist.js.map +1 -1
  291. package/jsr.json +1 -1
  292. package/package.json +1 -1
  293. package/src/funcs/{customersAddressesGet.ts → addressesGet.ts} +1 -1
  294. package/src/funcs/{authUserLogout.ts → authLogout.ts} +1 -1
  295. package/src/funcs/{authUserDeactivateAccount.ts → authUserDeactivate.ts} +1 -1
  296. package/src/funcs/{userNotificationPreferencesGet.ts → authUserNotificationPreferencesGet.ts} +1 -1
  297. package/src/funcs/{authUserAddProfileImage.ts → authUsersAddProfileImage.ts} +1 -1
  298. package/src/funcs/{catalogProductsReviewsCreate.ts → catalogProductReviewsCreate.ts} +1 -1
  299. package/src/funcs/{customersAddressesAdd.ts → customersAddAddress.ts} +1 -1
  300. package/src/funcs/{customersPostCustomers.ts → customersCreate.ts} +1 -1
  301. package/src/funcs/{customersGetCustomersId.ts → customersGet.ts} +1 -1
  302. package/src/funcs/{customersReviewsList.ts → customersGetReviews.ts} +1 -1
  303. package/src/funcs/{customersPutCustomersId.ts → customersUpdate.ts} +1 -1
  304. package/src/funcs/{juspayPostPaymentsJuspayCreateCustomer.ts → juspayCreateCustomer.ts} +1 -1
  305. package/src/funcs/{juspayPostPaymentsJuspayCreateOrder.ts → juspayCreateOrder.ts} +1 -1
  306. package/src/funcs/{juspayGetPaymentsJuspayCustomer.ts → juspayGetCustomer.ts} +1 -1
  307. package/src/funcs/{customersLoyaltyListActivities.ts → loyaltyPointsListActivities.ts} +1 -1
  308. package/src/funcs/{ordersGetOrdersIdPaymentStatus.ts → ordersGetPaymentStatus.ts} +1 -1
  309. package/src/funcs/{ordersRefundsList.ts → ordersGetRefunds.ts} +1 -1
  310. package/src/funcs/{ordersShipmentsList.ts → ordersGetShipments.ts} +1 -1
  311. package/src/funcs/{paymentsPostPaymentsCards.ts → paymentsAddCard.ts} +1 -1
  312. package/src/funcs/{paymentsGetPaymentsCards.ts → paymentsCardsList.ts} +1 -1
  313. package/src/funcs/{paymentsGetMethods.ts → paymentsListMethods.ts} +1 -1
  314. package/src/funcs/{paymentsGetPaymentsVerifyVpa.ts → paymentsVerifyVpa.ts} +1 -1
  315. package/src/funcs/{catalogProductsGetSimilar.ts → productsGetSimilar.ts} +1 -1
  316. package/src/funcs/{catalogProductsGetUpsells.ts → productsGetUpsells.ts} +1 -1
  317. package/src/funcs/{catalogProductsList.ts → productsList.ts} +1 -1
  318. package/src/funcs/{catalogProductsGetCrossSells.ts → productsListCrossSells.ts} +1 -1
  319. package/src/funcs/{shippingCheckPincodeServiceability.ts → shipmentCheckPincodeServiceability.ts} +1 -1
  320. package/src/funcs/{authUserDeleteProfileImage.ts → userDeleteProfileImage.ts} +1 -1
  321. package/src/funcs/{authUserResetPassword.ts → userResetPassword.ts} +1 -1
  322. package/src/funcs/{authUserUpdate.ts → userUpdate.ts} +1 -1
  323. package/src/funcs/{userNotificationPreferencesUpdate.ts → userUpdateNotificationPreferences.ts} +1 -1
  324. package/src/funcs/{authUserUpdateProfileImage.ts → userUpdateProfileImage.ts} +1 -1
  325. package/src/funcs/{userNotificationPreferencesCreate.ts → usersCreateNotificationPreferences.ts} +1 -1
  326. package/src/funcs/{authUserGet.ts → usersGet.ts} +1 -1
  327. package/src/funcs/{authUserGetProfileImage.ts → usersGetProfileImage.ts} +1 -1
  328. package/src/funcs/{utilsGetCountries.ts → utilsCountriesGet.ts} +1 -1
  329. package/src/funcs/{wishlistDelete.ts → wishlistRemoveItem.ts} +1 -1
  330. package/src/lib/config.ts +2 -2
  331. package/src/sdk/addresses.ts +2 -74
  332. package/src/sdk/auth.ts +22 -0
  333. package/src/sdk/authuser.ts +27 -0
  334. package/src/sdk/{refunds.ts → cards.ts} +7 -7
  335. package/src/sdk/catalog.ts +4 -10
  336. package/src/sdk/catalogproductreviews.ts +27 -0
  337. package/src/sdk/catalogproducts.ts +27 -0
  338. package/src/sdk/{skus.ts → catalogskus.ts} +1 -1
  339. package/src/sdk/cestorefrontaddresses.ts +63 -0
  340. package/src/sdk/cestorefrontproducts.ts +19 -0
  341. package/src/sdk/cestorefrontuser.ts +8 -160
  342. package/src/sdk/cestorefrontusers.ts +27 -0
  343. package/src/sdk/countries.ts +25 -0
  344. package/src/sdk/customers.ts +49 -19
  345. package/src/sdk/juspay.ts +9 -9
  346. package/src/sdk/loyalty.ts +0 -18
  347. package/src/sdk/loyaltypoints.ts +27 -0
  348. package/src/sdk/notificationpreferences.ts +2 -38
  349. package/src/sdk/orders.ts +39 -15
  350. package/src/sdk/payments.ts +15 -27
  351. package/src/sdk/products.ts +9 -39
  352. package/src/sdk/reviews.ts +6 -6
  353. package/src/sdk/sdk.ts +54 -4
  354. package/src/sdk/{shipping.ts → shipment.ts} +3 -3
  355. package/src/sdk/user.ts +90 -6
  356. package/src/sdk/users.ts +63 -0
  357. package/src/sdk/utils.ts +4 -14
  358. package/src/sdk/wishlist.ts +3 -3
  359. package/esm/funcs/authUserAddProfileImage.d.ts.map +0 -1
  360. package/esm/funcs/authUserAddProfileImage.js.map +0 -1
  361. package/esm/funcs/authUserDeactivateAccount.d.ts.map +0 -1
  362. package/esm/funcs/authUserDeactivateAccount.js.map +0 -1
  363. package/esm/funcs/authUserDeleteProfileImage.d.ts.map +0 -1
  364. package/esm/funcs/authUserDeleteProfileImage.js.map +0 -1
  365. package/esm/funcs/authUserGet.d.ts.map +0 -1
  366. package/esm/funcs/authUserGet.js.map +0 -1
  367. package/esm/funcs/authUserGetProfileImage.d.ts.map +0 -1
  368. package/esm/funcs/authUserGetProfileImage.js.map +0 -1
  369. package/esm/funcs/authUserLogout.d.ts.map +0 -1
  370. package/esm/funcs/authUserLogout.js.map +0 -1
  371. package/esm/funcs/authUserResetPassword.d.ts.map +0 -1
  372. package/esm/funcs/authUserResetPassword.js.map +0 -1
  373. package/esm/funcs/authUserUpdate.d.ts.map +0 -1
  374. package/esm/funcs/authUserUpdate.js.map +0 -1
  375. package/esm/funcs/authUserUpdateProfileImage.d.ts.map +0 -1
  376. package/esm/funcs/authUserUpdateProfileImage.js.map +0 -1
  377. package/esm/funcs/catalogProductsGetCrossSells.d.ts.map +0 -1
  378. package/esm/funcs/catalogProductsGetCrossSells.js.map +0 -1
  379. package/esm/funcs/catalogProductsGetSimilar.d.ts.map +0 -1
  380. package/esm/funcs/catalogProductsGetSimilar.js.map +0 -1
  381. package/esm/funcs/catalogProductsGetUpsells.d.ts.map +0 -1
  382. package/esm/funcs/catalogProductsGetUpsells.js.map +0 -1
  383. package/esm/funcs/catalogProductsList.js.map +0 -1
  384. package/esm/funcs/catalogProductsReviewsCreate.d.ts.map +0 -1
  385. package/esm/funcs/catalogProductsReviewsCreate.js.map +0 -1
  386. package/esm/funcs/customersAddressesAdd.d.ts.map +0 -1
  387. package/esm/funcs/customersAddressesAdd.js.map +0 -1
  388. package/esm/funcs/customersAddressesGet.d.ts +0 -16
  389. package/esm/funcs/customersAddressesGet.d.ts.map +0 -1
  390. package/esm/funcs/customersAddressesGet.js.map +0 -1
  391. package/esm/funcs/customersGetCustomersId.d.ts.map +0 -1
  392. package/esm/funcs/customersGetCustomersId.js.map +0 -1
  393. package/esm/funcs/customersLoyaltyListActivities.d.ts.map +0 -1
  394. package/esm/funcs/customersLoyaltyListActivities.js.map +0 -1
  395. package/esm/funcs/customersPostCustomers.d.ts.map +0 -1
  396. package/esm/funcs/customersPostCustomers.js.map +0 -1
  397. package/esm/funcs/customersPutCustomersId.d.ts +0 -16
  398. package/esm/funcs/customersPutCustomersId.d.ts.map +0 -1
  399. package/esm/funcs/customersPutCustomersId.js.map +0 -1
  400. package/esm/funcs/juspayGetPaymentsJuspayCustomer.d.ts.map +0 -1
  401. package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.d.ts.map +0 -1
  402. package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.js.map +0 -1
  403. package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.d.ts.map +0 -1
  404. package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts +0 -15
  405. package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts.map +0 -1
  406. package/esm/funcs/ordersGetOrdersIdPaymentStatus.js.map +0 -1
  407. package/esm/funcs/ordersRefundsList.js.map +0 -1
  408. package/esm/funcs/ordersShipmentsList.d.ts.map +0 -1
  409. package/esm/funcs/ordersShipmentsList.js.map +0 -1
  410. package/esm/funcs/paymentsGetMethods.js.map +0 -1
  411. package/esm/funcs/paymentsGetPaymentsCards.d.ts.map +0 -1
  412. package/esm/funcs/paymentsGetPaymentsCards.js.map +0 -1
  413. package/esm/funcs/paymentsGetPaymentsVerifyVpa.d.ts.map +0 -1
  414. package/esm/funcs/paymentsGetPaymentsVerifyVpa.js.map +0 -1
  415. package/esm/funcs/paymentsPostPaymentsCards.d.ts.map +0 -1
  416. package/esm/funcs/paymentsPostPaymentsCards.js.map +0 -1
  417. package/esm/funcs/userNotificationPreferencesCreate.d.ts.map +0 -1
  418. package/esm/funcs/userNotificationPreferencesCreate.js.map +0 -1
  419. package/esm/funcs/userNotificationPreferencesGet.d.ts.map +0 -1
  420. package/esm/funcs/userNotificationPreferencesGet.js.map +0 -1
  421. package/esm/funcs/wishlistDelete.d.ts.map +0 -1
  422. package/esm/funcs/wishlistDelete.js.map +0 -1
  423. package/esm/sdk/cestorefrontreviews.d.ts +0 -19
  424. package/esm/sdk/cestorefrontreviews.d.ts.map +0 -1
  425. package/esm/sdk/cestorefrontreviews.js +0 -28
  426. package/esm/sdk/cestorefrontreviews.js.map +0 -1
  427. package/esm/sdk/refunds.d.ts +0 -12
  428. package/esm/sdk/refunds.d.ts.map +0 -1
  429. package/esm/sdk/refunds.js +0 -18
  430. package/esm/sdk/refunds.js.map +0 -1
  431. package/esm/sdk/shipments.d.ts +0 -12
  432. package/esm/sdk/shipments.d.ts.map +0 -1
  433. package/esm/sdk/shipments.js +0 -18
  434. package/esm/sdk/shipments.js.map +0 -1
  435. package/esm/sdk/skus.d.ts.map +0 -1
  436. package/esm/sdk/skus.js.map +0 -1
  437. package/src/sdk/cestorefrontreviews.ts +0 -45
  438. package/src/sdk/shipments.ts +0 -27
@@ -1,32 +1,30 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
- import { customersGetCustomersId } from "../funcs/customersGetCustomersId.js";
5
- import { customersPostCustomers } from "../funcs/customersPostCustomers.js";
6
- import { customersPutCustomersId } from "../funcs/customersPutCustomersId.js";
4
+ import { customersAddAddress } from "../funcs/customersAddAddress.js";
5
+ import { customersCreate } from "../funcs/customersCreate.js";
6
+ import { customersGet } from "../funcs/customersGet.js";
7
+ import { customersGetReviews } from "../funcs/customersGetReviews.js";
8
+ import { customersUpdate } from "../funcs/customersUpdate.js";
7
9
  import { ClientSDK } from "../lib/sdks.js";
8
10
  import { unwrapAsync } from "../types/fp.js";
9
- import { Addresses } from "./addresses.js";
11
+ import { CeStorefrontAddresses } from "./cestorefrontaddresses.js";
10
12
  import { Loyalty } from "./loyalty.js";
11
- import { Reviews } from "./reviews.js";
12
13
  export class Customers extends ClientSDK {
13
14
  get addresses() {
14
- return (this._addresses ?? (this._addresses = new Addresses(this._options)));
15
+ return (this._addresses ?? (this._addresses = new CeStorefrontAddresses(this._options)));
15
16
  }
16
17
  get loyalty() {
17
18
  return (this._loyalty ?? (this._loyalty = new Loyalty(this._options)));
18
19
  }
19
- get reviews() {
20
- return (this._reviews ?? (this._reviews = new Reviews(this._options)));
21
- }
22
20
  /**
23
21
  * Create customer
24
22
  *
25
23
  * @remarks
26
24
  * Create customer
27
25
  */
28
- async postCustomers(request, options) {
29
- return unwrapAsync(customersPostCustomers(this, request, options));
26
+ async create(request, options) {
27
+ return unwrapAsync(customersCreate(this, request, options));
30
28
  }
31
29
  /**
32
30
  * Retrieve customer detail
@@ -34,8 +32,8 @@ export class Customers extends ClientSDK {
34
32
  * @remarks
35
33
  * Retrieve customer detail.
36
34
  */
37
- async getCustomersId(request, options) {
38
- return unwrapAsync(customersGetCustomersId(this, request, options));
35
+ async get(request, options) {
36
+ return unwrapAsync(customersGet(this, request, options));
39
37
  }
40
38
  /**
41
39
  * Update customer detail
@@ -43,8 +41,26 @@ export class Customers extends ClientSDK {
43
41
  * @remarks
44
42
  * Update customer detail
45
43
  */
46
- async putCustomersId(request, options) {
47
- return unwrapAsync(customersPutCustomersId(this, request, options));
44
+ async update(request, options) {
45
+ return unwrapAsync(customersUpdate(this, request, options));
46
+ }
47
+ /**
48
+ * Add address
49
+ *
50
+ * @remarks
51
+ * Add new address
52
+ */
53
+ async addAddress(request, options) {
54
+ return unwrapAsync(customersAddAddress(this, request, options));
55
+ }
56
+ /**
57
+ * Retrieve all reviews
58
+ *
59
+ * @remarks
60
+ * Retrieve all reviews
61
+ */
62
+ async getReviews(request, options) {
63
+ return unwrapAsync(customersGetReviews(this, request, options));
48
64
  }
49
65
  }
50
66
  //# sourceMappingURL=customers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"customers.js","sourceRoot":"","sources":["../../src/sdk/customers.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,OAAO,SAAU,SAAQ,SAAS;IAEtC,IAAI,SAAS;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,KAAf,IAAI,CAAC,UAAU,GAAK,IAAI,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC5D,CAAC;IAGD,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,KAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;IAGD,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,KAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;IAED;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AI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,KAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAkC,EAClC,OAAwB;QAExB,OAAO,WAAW,CAAC,eAAe,CAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,OAAyC,EACzC,OAAwB;QAExB,OAAO,WAAW,CAAC,YAAY,CAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAyC,EACzC,OAAwB;QAExB,OAAO,WAAW,CAAC,eAAe,CAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CACd,OAAsC,EACtC,OAAwB;QAExB,OAAO,WAAW,CAAC,mBAAmB,CACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CACd,OAAoD,EACpD,OAAwB;QAExB,OAAO,WAAW,CAAC,mBAAmB,CACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -9,20 +9,20 @@ export declare class Juspay extends ClientSDK {
9
9
  * Creates an order in the Juspay system and fetches the corresponding client_auth_token.
10
10
  * To be used for Express Checkout integration.
11
11
  */
12
- postPaymentsJuspayCreateOrder(request: components.JuspayCreateOrderPayload, options?: RequestOptions): Promise<operations.PostPaymentsJuspayCreateOrderResponseBody>;
12
+ createOrder(request: components.JuspayCreateOrderPayload, options?: RequestOptions): Promise<operations.PostPaymentsJuspayCreateOrderResponseBody>;
13
13
  /**
14
14
  * Create customer in juspay
15
15
  *
16
16
  * @remarks
17
17
  * Create customer in juspay.
18
18
  */
19
- postPaymentsJuspayCreateCustomer(request: components.JuspayCreateCustomerPayload, options?: RequestOptions): Promise<operations.PostPaymentsJuspayCreateCustomerResponseBody>;
19
+ createCustomer(request: components.JuspayCreateCustomerPayload, options?: RequestOptions): Promise<operations.PostPaymentsJuspayCreateCustomerResponseBody>;
20
20
  /**
21
21
  * Retrieve customer from juspay
22
22
  *
23
23
  * @remarks
24
24
  * Retrieve customer from juspay.
25
25
  */
26
- getPaymentsJuspayCustomer(request: operations.GetPaymentsJuspayCustomerRequest, options?: RequestOptions): Promise<operations.GetPaymentsJuspayCustomerResponseBody>;
26
+ getCustomer(request: operations.GetPaymentsJuspayCustomerRequest, options?: RequestOptions): Promise<operations.GetPaymentsJuspayCustomerResponseBody>;
27
27
  }
28
28
  //# sourceMappingURL=juspay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"juspay.d.ts","sourceRoot":"","sources":["../../src/sdk/juspay.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,MAAO,SAAQ,SAAS;IACnC;;;;;;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
+ {"version":3,"file":"juspay.d.ts","sourceRoot":"","sources":["../../src/sdk/juspay.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,MAAO,SAAQ,SAAS;IACnC;;;;;;OAMG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yCAAyC,CAAC;IAQhE;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4CAA4C,CAAC;IAQnE;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qCAAqC,CAAC;CAO7D"}
package/esm/sdk/juspay.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
- import { juspayGetPaymentsJuspayCustomer } from "../funcs/juspayGetPaymentsJuspayCustomer.js";
5
- import { juspayPostPaymentsJuspayCreateCustomer } from "../funcs/juspayPostPaymentsJuspayCreateCustomer.js";
6
- import { juspayPostPaymentsJuspayCreateOrder } from "../funcs/juspayPostPaymentsJuspayCreateOrder.js";
4
+ import { juspayCreateCustomer } from "../funcs/juspayCreateCustomer.js";
5
+ import { juspayCreateOrder } from "../funcs/juspayCreateOrder.js";
6
+ import { juspayGetCustomer } from "../funcs/juspayGetCustomer.js";
7
7
  import { ClientSDK } from "../lib/sdks.js";
8
8
  import { unwrapAsync } from "../types/fp.js";
9
9
  export class Juspay extends ClientSDK {
@@ -14,8 +14,8 @@ export class Juspay extends ClientSDK {
14
14
  * Creates an order in the Juspay system and fetches the corresponding client_auth_token.
15
15
  * To be used for Express Checkout integration.
16
16
  */
17
- async postPaymentsJuspayCreateOrder(request, options) {
18
- return unwrapAsync(juspayPostPaymentsJuspayCreateOrder(this, request, options));
17
+ async createOrder(request, options) {
18
+ return unwrapAsync(juspayCreateOrder(this, request, options));
19
19
  }
20
20
  /**
21
21
  * Create customer in juspay
@@ -23,8 +23,8 @@ export class Juspay extends ClientSDK {
23
23
  * @remarks
24
24
  * Create customer in juspay.
25
25
  */
26
- async postPaymentsJuspayCreateCustomer(request, options) {
27
- return unwrapAsync(juspayPostPaymentsJuspayCreateCustomer(this, request, options));
26
+ async createCustomer(request, options) {
27
+ return unwrapAsync(juspayCreateCustomer(this, request, options));
28
28
  }
29
29
  /**
30
30
  * Retrieve customer from juspay
@@ -32,8 +32,8 @@ export class Juspay extends ClientSDK {
32
32
  * @remarks
33
33
  * Retrieve customer from juspay.
34
34
  */
35
- async getPaymentsJuspayCustomer(request, options) {
36
- return unwrapAsync(juspayGetPaymentsJuspayCustomer(this, request, options));
35
+ async getCustomer(request, options) {
36
+ return unwrapAsync(juspayGetCustomer(this, request, options));
37
37
  }
38
38
  }
39
39
  //# sourceMappingURL=juspay.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"juspay.js","sourceRoot":"","sources":["../../src/sdk/juspay.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,EAAE,sCAAsC,EAAE,MAAM,oDAAoD,CAAC;AAC5G,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB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,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,OAAoD,EACpD,OAAwB;QAExB,OAAO,WAAW,CAAC,iBAAiB,CAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -8,12 +8,5 @@ export declare class Loyalty extends ClientSDK {
8
8
  * Retrieve loyalty details
9
9
  */
10
10
  get(request: operations.GetLoyaltyPointRequest, options?: RequestOptions): Promise<operations.GetLoyaltyPointResponseBody>;
11
- /**
12
- * List all loyalty points activity
13
- *
14
- * @remarks
15
- * List all loyalty points activity
16
- */
17
- listActivities(request: operations.GetLoyaltyPointActivityRequest, options?: RequestOptions): Promise<operations.GetLoyaltyPointActivityResponseBody>;
18
11
  }
19
12
  //# sourceMappingURL=loyalty.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"loyalty.d.ts","sourceRoot":"","sources":["../../src/sdk/loyalty.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,2BAA2B,CAAC;IAQlD;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mCAAmC,CAAC;CAO3D"}
1
+ {"version":3,"file":"loyalty.d.ts","sourceRoot":"","sources":["../../src/sdk/loyalty.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,2BAA2B,CAAC;CAOnD"}
@@ -2,7 +2,6 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
  import { customersLoyaltyGet } from "../funcs/customersLoyaltyGet.js";
5
- import { customersLoyaltyListActivities } from "../funcs/customersLoyaltyListActivities.js";
6
5
  import { ClientSDK } from "../lib/sdks.js";
7
6
  import { unwrapAsync } from "../types/fp.js";
8
7
  export class Loyalty extends ClientSDK {
@@ -15,14 +14,5 @@ export class Loyalty extends ClientSDK {
15
14
  async get(request, options) {
16
15
  return unwrapAsync(customersLoyaltyGet(this, request, options));
17
16
  }
18
- /**
19
- * List all loyalty points activity
20
- *
21
- * @remarks
22
- * List all loyalty points activity
23
- */
24
- async listActivities(request, options) {
25
- return unwrapAsync(customersLoyaltyListActivities(this, request, options));
26
- }
27
17
  }
28
18
  //# sourceMappingURL=loyalty.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"loyalty.js","sourceRoot":"","sources":["../../src/sdk/loyalty.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAC5F,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,OAA0C,EAC1C,OAAwB;QAExB,OAAO,WAAW,CAAC,mBAAmB,CACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAAkD,EAClD,OAAwB;QAExB,OAAO,WAAW,CAAC,8BAA8B,CAC/C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"loyalty.js","sourceRoot":"","sources":["../../src/sdk/loyalty.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,OAA0C,EAC1C,OAAwB;QAExB,OAAO,WAAW,CAAC,mBAAmB,CACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,12 @@
1
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ import * as operations from "../models/operations/index.js";
3
+ export declare class LoyaltyPoints extends ClientSDK {
4
+ /**
5
+ * List all loyalty points activity
6
+ *
7
+ * @remarks
8
+ * List all loyalty points activity
9
+ */
10
+ listActivities(request: operations.GetLoyaltyPointActivityRequest, options?: RequestOptions): Promise<operations.GetLoyaltyPointActivityResponseBody>;
11
+ }
12
+ //# sourceMappingURL=loyaltypoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loyaltypoints.d.ts","sourceRoot":"","sources":["../../src/sdk/loyaltypoints.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,aAAc,SAAQ,SAAS;IAC1C;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mCAAmC,CAAC;CAO3D"}
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { loyaltyPointsListActivities } from "../funcs/loyaltyPointsListActivities.js";
5
+ import { ClientSDK } from "../lib/sdks.js";
6
+ import { unwrapAsync } from "../types/fp.js";
7
+ export class LoyaltyPoints extends ClientSDK {
8
+ /**
9
+ * List all loyalty points activity
10
+ *
11
+ * @remarks
12
+ * List all loyalty points activity
13
+ */
14
+ async listActivities(request, options) {
15
+ return unwrapAsync(loyaltyPointsListActivities(this, request, options));
16
+ }
17
+ }
18
+ //# sourceMappingURL=loyaltypoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loyaltypoints.js","sourceRoot":"","sources":["../../src/sdk/loyaltypoints.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1C;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAAkD,EAClD,OAAwB;QAExB,OAAO,WAAW,CAAC,2BAA2B,CAC5C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -8,19 +8,5 @@ export declare class NotificationPreferences extends ClientSDK {
8
8
  * The Retrieve Notification Preferences API allows clients to fetch a user's notification preferences based on their unique user identifier (user_id).
9
9
  */
10
10
  get(request: operations.GetAuthUserIdNotificationPreferencesRequest, options?: RequestOptions): Promise<operations.GetAuthUserIdNotificationPreferencesResponseBody>;
11
- /**
12
- * Create user notification preferences
13
- *
14
- * @remarks
15
- * Create user notification preferences API allows clients to create a user's notification preferences based on their unique user identifier (user_id).
16
- */
17
- create(request: operations.PostAuthUserIdNotificationPreferencesRequest, options?: RequestOptions): Promise<operations.PostAuthUserIdNotificationPreferencesResponseBody>;
18
- /**
19
- * Update user notification preferences
20
- *
21
- * @remarks
22
- * Update Notification Preferences API allows clients to update a user's notification preferences based on their unique user identifier (user_id).
23
- */
24
- update(request: operations.PutAuthUserIdNotificationPreferencesRequest, options?: RequestOptions): Promise<operations.PutAuthUserIdNotificationPreferencesResponseBody>;
25
11
  }
26
12
  //# sourceMappingURL=notificationpreferences.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"notificationpreferences.d.ts","sourceRoot":"","sources":["../../src/sdk/notificationpreferences.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,uBAAwB,SAAQ,SAAS;IACpD;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,2CAA2C,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gDAAgD,CAAC;IAQvE;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,4CAA4C,EAChE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iDAAiD,CAAC;IAQxE;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,2CAA2C,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gDAAgD,CAAC;CAOxE"}
1
+ {"version":3,"file":"notificationpreferences.d.ts","sourceRoot":"","sources":["../../src/sdk/notificationpreferences.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,uBAAwB,SAAQ,SAAS;IACpD;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,2CAA2C,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gDAAgD,CAAC;CAOxE"}
@@ -1,9 +1,7 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
- import { userNotificationPreferencesCreate } from "../funcs/userNotificationPreferencesCreate.js";
5
- import { userNotificationPreferencesGet } from "../funcs/userNotificationPreferencesGet.js";
6
- import { userNotificationPreferencesUpdate } from "../funcs/userNotificationPreferencesUpdate.js";
4
+ import { authUserNotificationPreferencesGet } from "../funcs/authUserNotificationPreferencesGet.js";
7
5
  import { ClientSDK } from "../lib/sdks.js";
8
6
  import { unwrapAsync } from "../types/fp.js";
9
7
  export class NotificationPreferences extends ClientSDK {
@@ -14,25 +12,7 @@ export class NotificationPreferences extends ClientSDK {
14
12
  * The Retrieve Notification Preferences API allows clients to fetch a user's notification preferences based on their unique user identifier (user_id).
15
13
  */
16
14
  async get(request, options) {
17
- return unwrapAsync(userNotificationPreferencesGet(this, request, options));
18
- }
19
- /**
20
- * Create user notification preferences
21
- *
22
- * @remarks
23
- * Create user notification preferences API allows clients to create a user's notification preferences based on their unique user identifier (user_id).
24
- */
25
- async create(request, options) {
26
- return unwrapAsync(userNotificationPreferencesCreate(this, request, options));
27
- }
28
- /**
29
- * Update user notification preferences
30
- *
31
- * @remarks
32
- * Update Notification Preferences API allows clients to update a user's notification preferences based on their unique user identifier (user_id).
33
- */
34
- async update(request, options) {
35
- return unwrapAsync(userNotificationPreferencesUpdate(this, request, options));
15
+ return unwrapAsync(authUserNotificationPreferencesGet(this, request, options));
36
16
  }
37
17
  }
38
18
  //# sourceMappingURL=notificationpreferences.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"notificationpreferences.js","sourceRoot":"","sources":["../../src/sdk/notificationpreferences.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iCAAiC,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAC5F,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,uBAAwB,SAAQ,SAAS;IACpD;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,OAA+D,EAC/D,OAAwB;QAExB,OAAO,WAAW,CAAC,8BAA8B,CAC/C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAgE,EAChE,OAAwB;QAExB,OAAO,WAAW,CAAC,iCAAiC,CAClD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAA+D,EAC/D,OAAwB;QAExB,OAAO,WAAW,CAAC,iCAAiC,CAClD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"notificationpreferences.js","sourceRoot":"","sources":["../../src/sdk/notificationpreferences.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACpG,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,uBAAwB,SAAQ,SAAS;IACpD;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,OAA+D,EAC/D,OAAwB;QAExB,OAAO,WAAW,CAAC,kCAAkC,CACnD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,13 +1,7 @@
1
1
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
2
  import * as operations from "../models/operations/index.js";
3
3
  import { CeStorefrontOrdersPayments } from "./cestorefrontorderspayments.js";
4
- import { Refunds } from "./refunds.js";
5
- import { Shipments } from "./shipments.js";
6
4
  export declare class Orders extends ClientSDK {
7
- private _shipments?;
8
- get shipments(): Shipments;
9
- private _refunds?;
10
- get refunds(): Refunds;
11
5
  private _payments?;
12
6
  get payments(): CeStorefrontOrdersPayments;
13
7
  /**
@@ -31,6 +25,20 @@ export declare class Orders extends ClientSDK {
31
25
  * view particular order details
32
26
  */
33
27
  get(request: operations.GetOrdersIdRequest, options?: RequestOptions): Promise<operations.GetOrdersIdResponseBody>;
28
+ /**
29
+ * Retrieve order shipments
30
+ *
31
+ * @remarks
32
+ * Retrieve order shipments
33
+ */
34
+ getShipments(request: operations.GetOrdersIdShipmentsRequest, options?: RequestOptions): Promise<operations.GetOrdersIdShipmentsResponseBody>;
35
+ /**
36
+ * Retrieve order refunds
37
+ *
38
+ * @remarks
39
+ * Retrieve order refunds
40
+ */
41
+ getRefunds(request: operations.GetOrdersIdRefundsRequest, options?: RequestOptions): Promise<operations.GetOrdersIdRefundsResponseBody>;
34
42
  /**
35
43
  * Cancel order
36
44
  *
@@ -51,6 +59,6 @@ export declare class Orders extends ClientSDK {
51
59
  * @remarks
52
60
  * Retrieve payment status of a paricular order.
53
61
  */
54
- getOrdersIdPaymentStatus(request: operations.GetOrdersIdPaymentStatusRequest, options?: RequestOptions): Promise<operations.GetOrdersIdPaymentStatusResponseBody>;
62
+ getPaymentStatus(request: operations.GetOrdersIdPaymentStatusRequest, options?: RequestOptions): Promise<operations.GetOrdersIdPaymentStatusResponseBody>;
55
63
  }
56
64
  //# sourceMappingURL=orders.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"orders.d.ts","sourceRoot":"","sources":["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8B,CAAC;IAQrD;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iCAAiC,CAAC;IAQxD;;;;;OAKG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mCAAmC,CAAC;IAQ1D;;;;;OAKG;IACG,gBAAgB,CACpB,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oCAAoC,CAAC;CAO5D"}
package/esm/sdk/orders.js CHANGED
@@ -4,21 +4,15 @@
4
4
  import { ordersCancel } from "../funcs/ordersCancel.js";
5
5
  import { ordersCreate } from "../funcs/ordersCreate.js";
6
6
  import { ordersGet } from "../funcs/ordersGet.js";
7
- import { ordersGetOrdersIdPaymentStatus } from "../funcs/ordersGetOrdersIdPaymentStatus.js";
7
+ import { ordersGetPaymentStatus } from "../funcs/ordersGetPaymentStatus.js";
8
+ import { ordersGetRefunds } from "../funcs/ordersGetRefunds.js";
9
+ import { ordersGetShipments } from "../funcs/ordersGetShipments.js";
8
10
  import { ordersList } from "../funcs/ordersList.js";
9
11
  import { ordersRetryPayment } from "../funcs/ordersRetryPayment.js";
10
12
  import { ClientSDK } from "../lib/sdks.js";
11
13
  import { unwrapAsync } from "../types/fp.js";
12
14
  import { CeStorefrontOrdersPayments } from "./cestorefrontorderspayments.js";
13
- import { Refunds } from "./refunds.js";
14
- import { Shipments } from "./shipments.js";
15
15
  export class Orders extends ClientSDK {
16
- get shipments() {
17
- return (this._shipments ?? (this._shipments = new Shipments(this._options)));
18
- }
19
- get refunds() {
20
- return (this._refunds ?? (this._refunds = new Refunds(this._options)));
21
- }
22
16
  get payments() {
23
17
  return (this._payments ?? (this._payments = new CeStorefrontOrdersPayments(this._options)));
24
18
  }
@@ -49,6 +43,24 @@ export class Orders extends ClientSDK {
49
43
  async get(request, options) {
50
44
  return unwrapAsync(ordersGet(this, request, options));
51
45
  }
46
+ /**
47
+ * Retrieve order shipments
48
+ *
49
+ * @remarks
50
+ * Retrieve order shipments
51
+ */
52
+ async getShipments(request, options) {
53
+ return unwrapAsync(ordersGetShipments(this, request, options));
54
+ }
55
+ /**
56
+ * Retrieve order refunds
57
+ *
58
+ * @remarks
59
+ * Retrieve order refunds
60
+ */
61
+ async getRefunds(request, options) {
62
+ return unwrapAsync(ordersGetRefunds(this, request, options));
63
+ }
52
64
  /**
53
65
  * Cancel order
54
66
  *
@@ -73,8 +85,8 @@ export class Orders extends ClientSDK {
73
85
  * @remarks
74
86
  * Retrieve payment status of a paricular order.
75
87
  */
76
- async getOrdersIdPaymentStatus(request, options) {
77
- return unwrapAsync(ordersGetOrdersIdPaymentStatus(this, request, options));
88
+ async getPaymentStatus(request, options) {
89
+ return unwrapAsync(ordersGetPaymentStatus(this, request, options));
78
90
  }
79
91
  }
80
92
  //# sourceMappingURL=orders.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"orders.js","sourceRoot":"","sources":["../../src/sdk/orders.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC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F"}
@@ -1,6 +1,9 @@
1
1
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
2
  import * as operations from "../models/operations/index.js";
3
+ import { Cards } from "./cards.js";
3
4
  export declare class Payments extends ClientSDK {
5
+ private _cards?;
6
+ get cards(): Cards;
4
7
  /**
5
8
  * Generate hash
6
9
  *
@@ -14,21 +17,14 @@ export declare class Payments extends ClientSDK {
14
17
  * @remarks
15
18
  * List all payment methods
16
19
  */
17
- getMethods(request: operations.GetPaymentMethodsRequest, options?: RequestOptions): Promise<operations.GetPaymentMethodsResponseBody>;
18
- /**
19
- * List all saved cards
20
- *
21
- * @remarks
22
- * List all saved cards.
23
- */
24
- getPaymentsCards(request: operations.GetPaymentsCardsRequest, options?: RequestOptions): Promise<operations.GetPaymentsCardsResponseBody>;
20
+ listMethods(request: operations.GetPaymentMethodsRequest, options?: RequestOptions): Promise<operations.GetPaymentMethodsResponseBody>;
25
21
  /**
26
22
  * Add card
27
23
  *
28
24
  * @remarks
29
25
  * Add a new card
30
26
  */
31
- postPaymentsCards(request: operations.PostPaymentsCardsRequestBody, options?: RequestOptions): Promise<operations.PostPaymentsCardsResponseBody>;
27
+ addCard(request: operations.PostPaymentsCardsRequestBody, options?: RequestOptions): Promise<operations.PostPaymentsCardsResponseBody>;
32
28
  /**
33
29
  * Verify VPA
34
30
  *
@@ -36,6 +32,6 @@ export declare class Payments extends ClientSDK {
36
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.
37
33
  * Validating the VPA will help in reducing the failure rate due to incorrect vpa.
38
34
  */
39
- getPaymentsVerifyVpa(request: operations.GetPaymentsVerifyVpaRequest, options?: RequestOptions): Promise<operations.GetPaymentsVerifyVpaResponseBody>;
35
+ verifyVpa(request: operations.GetPaymentsVerifyVpaRequest, options?: RequestOptions): Promise<operations.GetPaymentsVerifyVpaResponseBody>;
40
36
  }
41
37
  //# sourceMappingURL=payments.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../src/sdk/payments.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,QAAS,SAAQ,SAAS;IACrC;;;;;OAKG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mCAAmC,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oCAAoC,CAAC;IAQ3D;;;;;OAKG;IACG,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;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
+ {"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../src/sdk/payments.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,qBAAa,QAAS,SAAQ,SAAS;IACrC,OAAO,CAAC,MAAM,CAAC,CAAQ;IACvB,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED;;;;;OAKG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mCAAmC,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oCAAoC,CAAC;IAQ3D;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;OAKG;IACG,OAAO,CACX,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;;OAMG;IACG,SAAS,CACb,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC;CAOxD"}
@@ -1,14 +1,17 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
+ import { paymentsAddCard } from "../funcs/paymentsAddCard.js";
4
5
  import { paymentsGenerateHash } from "../funcs/paymentsGenerateHash.js";
5
- import { paymentsGetMethods } from "../funcs/paymentsGetMethods.js";
6
- import { paymentsGetPaymentsCards } from "../funcs/paymentsGetPaymentsCards.js";
7
- import { paymentsGetPaymentsVerifyVpa } from "../funcs/paymentsGetPaymentsVerifyVpa.js";
8
- import { paymentsPostPaymentsCards } from "../funcs/paymentsPostPaymentsCards.js";
6
+ import { paymentsListMethods } from "../funcs/paymentsListMethods.js";
7
+ import { paymentsVerifyVpa } from "../funcs/paymentsVerifyVpa.js";
9
8
  import { ClientSDK } from "../lib/sdks.js";
10
9
  import { unwrapAsync } from "../types/fp.js";
10
+ import { Cards } from "./cards.js";
11
11
  export class Payments extends ClientSDK {
12
+ get cards() {
13
+ return (this._cards ?? (this._cards = new Cards(this._options)));
14
+ }
12
15
  /**
13
16
  * Generate hash
14
17
  *
@@ -24,17 +27,8 @@ export class Payments extends ClientSDK {
24
27
  * @remarks
25
28
  * List all payment methods
26
29
  */
27
- async getMethods(request, options) {
28
- return unwrapAsync(paymentsGetMethods(this, request, options));
29
- }
30
- /**
31
- * List all saved cards
32
- *
33
- * @remarks
34
- * List all saved cards.
35
- */
36
- async getPaymentsCards(request, options) {
37
- return unwrapAsync(paymentsGetPaymentsCards(this, request, options));
30
+ async listMethods(request, options) {
31
+ return unwrapAsync(paymentsListMethods(this, request, options));
38
32
  }
39
33
  /**
40
34
  * Add card
@@ -42,8 +36,8 @@ export class Payments extends ClientSDK {
42
36
  * @remarks
43
37
  * Add a new card
44
38
  */
45
- async postPaymentsCards(request, options) {
46
- return unwrapAsync(paymentsPostPaymentsCards(this, request, options));
39
+ async addCard(request, options) {
40
+ return unwrapAsync(paymentsAddCard(this, request, options));
47
41
  }
48
42
  /**
49
43
  * Verify VPA
@@ -52,8 +46,8 @@ export class Payments extends ClientSDK {
52
46
  * 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.
53
47
  * Validating the VPA will help in reducing the failure rate due to incorrect vpa.
54
48
  */
55
- async getPaymentsVerifyVpa(request, options) {
56
- return unwrapAsync(paymentsGetPaymentsVerifyVpa(this, request, options));
49
+ async verifyVpa(request, options) {
50
+ return unwrapAsync(paymentsVerifyVpa(this, request, options));
57
51
  }
58
52
  }
59
53
  //# sourceMappingURL=payments.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"payments.js","sourceRoot":"","sources":["../../src/sdk/payments.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,QAAS,SAAQ,SAAS;IACrC;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CAChB,OAAuD,EACvD,OAAwB;QAExB,OAAO,WAAW,CAAC,oBAAoB,CACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CACd,OAA4C,EAC5C,OAAwB;QAExB,OAAO,WAAW,CAAC,kBAAkB,CACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAA2C,EAC3C,OAAwB;QAExB,OAAO,WAAW,CAAC,wBAAwB,CACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAAgD,EAChD,OAAwB;QAExB,OAAO,WAAW,CAAC,yBAAyB,CAC1C,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,4BAA4B,CAC7C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"payments.js","sourceRoot":"","sources":["../../src/sdk/payments.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO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