ce-storefront 0.3.3 → 0.3.5

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 (244) 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/lib/config.js.map +1 -1
  57. package/esm/models/components/anonymoususer.d.ts +87 -0
  58. package/esm/models/components/anonymoususer.d.ts.map +1 -0
  59. package/esm/models/components/anonymoususer.js +78 -0
  60. package/esm/models/components/anonymoususer.js.map +1 -0
  61. package/esm/models/components/cart.d.ts +1 -1
  62. package/esm/models/components/cart.d.ts.map +1 -1
  63. package/esm/models/components/cart.js +1 -1
  64. package/esm/models/components/cart.js.map +1 -1
  65. package/esm/models/components/createcustomer.d.ts +1 -1
  66. package/esm/models/components/createcustomer.d.ts.map +1 -1
  67. package/esm/models/components/createcustomer.js +1 -1
  68. package/esm/models/components/createcustomer.js.map +1 -1
  69. package/esm/models/components/{customeraddressinput.d.ts → customeraddress.d.ts} +33 -33
  70. package/esm/models/components/customeraddress.d.ts.map +1 -0
  71. package/esm/models/components/{customeraddressinput.js → customeraddress.js} +37 -37
  72. package/esm/models/components/customeraddress.js.map +1 -0
  73. package/esm/models/components/freegoodspromotion.d.ts +2 -2
  74. package/esm/models/components/freegoodspromotion.d.ts.map +1 -1
  75. package/esm/models/components/freegoodspromotion.js +2 -2
  76. package/esm/models/components/freegoodspromotion.js.map +1 -1
  77. package/esm/models/components/index.d.ts +3 -3
  78. package/esm/models/components/index.d.ts.map +1 -1
  79. package/esm/models/components/index.js +3 -3
  80. package/esm/models/components/index.js.map +1 -1
  81. package/esm/models/components/orderdetail.d.ts +1 -1
  82. package/esm/models/components/orderdetail.d.ts.map +1 -1
  83. package/esm/models/components/orderdetail.js +1 -1
  84. package/esm/models/components/orderdetail.js.map +1 -1
  85. package/esm/models/components/{productlist.d.ts → product.d.ts} +14 -16
  86. package/esm/models/components/product.d.ts.map +1 -0
  87. package/esm/models/components/{productlist.js → product.js} +16 -20
  88. package/esm/models/components/product.js.map +1 -0
  89. package/esm/models/components/productdetail.d.ts +4 -4
  90. package/esm/models/components/productdetail.d.ts.map +1 -1
  91. package/esm/models/components/productdetail.js +4 -4
  92. package/esm/models/components/productdetail.js.map +1 -1
  93. package/esm/models/components/productlistresponse.d.ts +3 -3
  94. package/esm/models/components/productlistresponse.d.ts.map +1 -1
  95. package/esm/models/components/productlistresponse.js +3 -3
  96. package/esm/models/components/productlistresponse.js.map +1 -1
  97. package/esm/models/components/productpromotion.d.ts +11 -5
  98. package/esm/models/components/productpromotion.d.ts.map +1 -1
  99. package/esm/models/operations/getpaymentmethods.d.ts +143 -0
  100. package/esm/models/operations/getpaymentmethods.d.ts.map +1 -0
  101. package/esm/models/operations/{getpaymentspaymentmethods.js → getpaymentmethods.js} +42 -44
  102. package/esm/models/operations/getpaymentmethods.js.map +1 -0
  103. package/esm/models/operations/getsimilar.d.ts +2 -27
  104. package/esm/models/operations/getsimilar.d.ts.map +1 -1
  105. package/esm/models/operations/getsimilar.js +2 -27
  106. package/esm/models/operations/getsimilar.js.map +1 -1
  107. package/esm/models/operations/index.d.ts +1 -2
  108. package/esm/models/operations/index.d.ts.map +1 -1
  109. package/esm/models/operations/index.js +1 -2
  110. package/esm/models/operations/index.js.map +1 -1
  111. package/esm/models/operations/postauthanonymous.d.ts +2 -2
  112. package/esm/models/operations/postauthanonymous.d.ts.map +1 -1
  113. package/esm/models/operations/postauthanonymous.js +2 -2
  114. package/esm/models/operations/postauthanonymous.js.map +1 -1
  115. package/esm/models/operations/postcartitemid.d.ts +15 -15
  116. package/esm/models/operations/postcartitemid.d.ts.map +1 -1
  117. package/esm/models/operations/postcartitemid.js +15 -15
  118. package/esm/models/operations/postcartitemid.js.map +1 -1
  119. package/esm/sdk/{cestorefrontpayments.d.ts → cestorefrontorderspayments.d.ts} +2 -2
  120. package/esm/sdk/cestorefrontorderspayments.d.ts.map +1 -0
  121. package/esm/sdk/{cestorefrontpayments.js → cestorefrontorderspayments.js} +2 -2
  122. package/esm/sdk/cestorefrontorderspayments.js.map +1 -0
  123. package/esm/sdk/customers.d.ts +24 -1
  124. package/esm/sdk/customers.d.ts.map +1 -1
  125. package/esm/sdk/customers.js +31 -0
  126. package/esm/sdk/customers.js.map +1 -1
  127. package/esm/sdk/{paymentsapijuspay.d.ts → juspay.d.ts} +2 -2
  128. package/esm/sdk/juspay.d.ts.map +1 -0
  129. package/esm/sdk/{paymentsapijuspay.js → juspay.js} +8 -8
  130. package/esm/sdk/juspay.js.map +1 -0
  131. package/esm/sdk/orders.d.ts +9 -2
  132. package/esm/sdk/orders.d.ts.map +1 -1
  133. package/esm/sdk/orders.js +12 -2
  134. package/esm/sdk/orders.js.map +1 -1
  135. package/esm/sdk/payments.d.ts +23 -1
  136. package/esm/sdk/payments.d.ts.map +1 -1
  137. package/esm/sdk/payments.js +31 -0
  138. package/esm/sdk/payments.js.map +1 -1
  139. package/esm/sdk/products.d.ts +1 -1
  140. package/esm/sdk/products.js +1 -1
  141. package/esm/sdk/sdk.d.ts +3 -12
  142. package/esm/sdk/sdk.d.ts.map +1 -1
  143. package/esm/sdk/sdk.js +3 -15
  144. package/esm/sdk/sdk.js.map +1 -1
  145. package/jsr.json +1 -1
  146. package/package.json +1 -1
  147. package/src/funcs/catalogProductsGet.ts +1 -1
  148. package/src/funcs/{customersAPIGetCustomersId.ts → customersGetCustomersId.ts} +1 -1
  149. package/src/funcs/{customersAPIPostCustomers.ts → customersPostCustomers.ts} +1 -1
  150. package/src/funcs/{customersAPIPutCustomersId.ts → customersPutCustomersId.ts} +1 -1
  151. package/src/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.ts → juspayGetPaymentsJuspayCustomer.ts} +1 -1
  152. package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.ts → juspayPostPaymentsJuspayCreateCustomer.ts} +1 -1
  153. package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.ts → juspayPostPaymentsJuspayCreateOrder.ts} +1 -1
  154. package/src/funcs/{ordersAPIGetOrdersIdPaymentStatus.ts → ordersGetOrdersIdPaymentStatus.ts} +1 -1
  155. package/src/funcs/paymentsGetMethods.ts +6 -7
  156. package/src/funcs/{paymentsAPIGetPaymentsCards.ts → paymentsGetPaymentsCards.ts} +1 -1
  157. package/src/funcs/{paymentsAPIGetPaymentsVerifyVpa.ts → paymentsGetPaymentsVerifyVpa.ts} +1 -1
  158. package/src/funcs/{paymentsAPIPostPaymentsCards.ts → paymentsPostPaymentsCards.ts} +1 -1
  159. package/src/lib/config.ts +3 -3
  160. package/src/models/components/anonymoususer.ts +167 -0
  161. package/src/models/components/cart.ts +1 -1
  162. package/src/models/components/createcustomer.ts +1 -1
  163. package/src/models/components/freegoodspromotion.ts +4 -4
  164. package/src/models/components/index.ts +3 -3
  165. package/src/models/components/orderdetail.ts +1 -1
  166. package/src/models/components/{productlist.ts → product.ts} +73 -78
  167. package/src/models/components/productdetail.ts +8 -8
  168. package/src/models/components/productlistresponse.ts +9 -9
  169. package/src/models/operations/{getpaymentspaymentmethods.ts → getpaymentmethods.ts} +68 -77
  170. package/src/models/operations/getsimilar.ts +4 -62
  171. package/src/models/operations/index.ts +1 -2
  172. package/src/models/operations/postauthanonymous.ts +4 -4
  173. package/src/models/operations/postcartitemid.ts +27 -25
  174. package/src/sdk/{cestorefrontpayments.ts → cestorefrontorderspayments.ts} +1 -1
  175. package/src/sdk/customers.ts +58 -1
  176. package/src/sdk/{paymentsapijuspay.ts → juspay.ts} +7 -7
  177. package/src/sdk/orders.ts +22 -4
  178. package/src/sdk/payments.ts +57 -2
  179. package/src/sdk/products.ts +1 -1
  180. package/src/sdk/sdk.ts +4 -22
  181. package/docs/sdks/customersapi/README.md +0 -321
  182. package/docs/sdks/ordersapi/README.md +0 -86
  183. package/docs/sdks/paymentsapi/README.md +0 -247
  184. package/esm/funcs/customersAPIGetCustomersId.d.ts.map +0 -1
  185. package/esm/funcs/customersAPIGetCustomersId.js.map +0 -1
  186. package/esm/funcs/customersAPIGetRecommendedProducts.d.ts +0 -16
  187. package/esm/funcs/customersAPIGetRecommendedProducts.d.ts.map +0 -1
  188. package/esm/funcs/customersAPIGetRecommendedProducts.js +0 -80
  189. package/esm/funcs/customersAPIGetRecommendedProducts.js.map +0 -1
  190. package/esm/funcs/customersAPIPostCustomers.d.ts.map +0 -1
  191. package/esm/funcs/customersAPIPutCustomersId.d.ts.map +0 -1
  192. package/esm/funcs/customersAPIPutCustomersId.js.map +0 -1
  193. package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.d.ts.map +0 -1
  194. package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.js.map +0 -1
  195. package/esm/funcs/paymentsAPIGetPaymentsCards.d.ts.map +0 -1
  196. package/esm/funcs/paymentsAPIGetPaymentsCards.js.map +0 -1
  197. package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.d.ts.map +0 -1
  198. package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.js.map +0 -1
  199. package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.d.ts.map +0 -1
  200. package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.js.map +0 -1
  201. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.d.ts.map +0 -1
  202. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.js.map +0 -1
  203. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.d.ts.map +0 -1
  204. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.js.map +0 -1
  205. package/esm/funcs/paymentsAPIPostPaymentsCards.d.ts.map +0 -1
  206. package/esm/funcs/paymentsAPIPostPaymentsCards.js.map +0 -1
  207. package/esm/models/components/customeraddressinput.d.ts.map +0 -1
  208. package/esm/models/components/customeraddressinput.js.map +0 -1
  209. package/esm/models/components/productlist.d.ts.map +0 -1
  210. package/esm/models/components/productlist.js.map +0 -1
  211. package/esm/models/components/recommendedproduct.d.ts +0 -155
  212. package/esm/models/components/recommendedproduct.d.ts.map +0 -1
  213. package/esm/models/components/recommendedproduct.js +0 -193
  214. package/esm/models/components/recommendedproduct.js.map +0 -1
  215. package/esm/models/operations/getpaymentspaymentmethods.d.ts +0 -143
  216. package/esm/models/operations/getpaymentspaymentmethods.d.ts.map +0 -1
  217. package/esm/models/operations/getpaymentspaymentmethods.js.map +0 -1
  218. package/esm/models/operations/getrecommendedproducts.d.ts +0 -90
  219. package/esm/models/operations/getrecommendedproducts.d.ts.map +0 -1
  220. package/esm/models/operations/getrecommendedproducts.js +0 -87
  221. package/esm/models/operations/getrecommendedproducts.js.map +0 -1
  222. package/esm/sdk/cestorefrontpayments.d.ts.map +0 -1
  223. package/esm/sdk/cestorefrontpayments.js.map +0 -1
  224. package/esm/sdk/customersapi.d.ts +0 -34
  225. package/esm/sdk/customersapi.d.ts.map +0 -1
  226. package/esm/sdk/customersapi.js +0 -48
  227. package/esm/sdk/customersapi.js.map +0 -1
  228. package/esm/sdk/ordersapi.d.ts +0 -12
  229. package/esm/sdk/ordersapi.d.ts.map +0 -1
  230. package/esm/sdk/ordersapi.js +0 -18
  231. package/esm/sdk/ordersapi.js.map +0 -1
  232. package/esm/sdk/paymentsapi.d.ts +0 -27
  233. package/esm/sdk/paymentsapi.d.ts.map +0 -1
  234. package/esm/sdk/paymentsapi.js +0 -39
  235. package/esm/sdk/paymentsapi.js.map +0 -1
  236. package/esm/sdk/paymentsapijuspay.d.ts.map +0 -1
  237. package/esm/sdk/paymentsapijuspay.js.map +0 -1
  238. package/src/funcs/customersAPIGetRecommendedProducts.ts +0 -144
  239. package/src/models/components/recommendedproduct.ts +0 -385
  240. package/src/models/operations/getrecommendedproducts.ts +0 -206
  241. package/src/sdk/customersapi.ts +0 -82
  242. package/src/sdk/ordersapi.ts +0 -27
  243. package/src/sdk/paymentsapi.ts +0 -64
  244. package/src/models/components/{customeraddressinput.ts → customeraddress.ts} +60 -60
@@ -13,14 +13,14 @@ import {
13
13
  Pagination$outboundSchema,
14
14
  } from "./pagination.js";
15
15
  import {
16
- ProductList,
17
- ProductList$inboundSchema,
18
- ProductList$Outbound,
19
- ProductList$outboundSchema,
20
- } from "./productlist.js";
16
+ Product,
17
+ Product$inboundSchema,
18
+ Product$Outbound,
19
+ Product$outboundSchema,
20
+ } from "./product.js";
21
21
 
22
22
  export type ProductListResponse = {
23
- products?: Array<ProductList> | undefined;
23
+ products?: Array<Product> | undefined;
24
24
  /**
25
25
  * pagination metadata structure
26
26
  */
@@ -33,13 +33,13 @@ export const ProductListResponse$inboundSchema: z.ZodType<
33
33
  z.ZodTypeDef,
34
34
  unknown
35
35
  > = z.object({
36
- products: z.array(ProductList$inboundSchema).optional(),
36
+ products: z.array(Product$inboundSchema).optional(),
37
37
  pagination: Pagination$inboundSchema.optional(),
38
38
  });
39
39
 
40
40
  /** @internal */
41
41
  export type ProductListResponse$Outbound = {
42
- products?: Array<ProductList$Outbound> | undefined;
42
+ products?: Array<Product$Outbound> | undefined;
43
43
  pagination?: Pagination$Outbound | undefined;
44
44
  };
45
45
 
@@ -49,7 +49,7 @@ export const ProductListResponse$outboundSchema: z.ZodType<
49
49
  z.ZodTypeDef,
50
50
  ProductListResponse
51
51
  > = z.object({
52
- products: z.array(ProductList$outboundSchema).optional(),
52
+ products: z.array(Product$outboundSchema).optional(),
53
53
  pagination: Pagination$outboundSchema.optional(),
54
54
  });
55
55
 
@@ -24,7 +24,7 @@ export type QueryParamPaymentGateway = ClosedEnum<
24
24
  typeof QueryParamPaymentGateway
25
25
  >;
26
26
 
27
- export type GetPaymentsPaymentMethodsRequest = {
27
+ export type GetPaymentMethodsRequest = {
28
28
  /**
29
29
  * payment gateway code
30
30
  */
@@ -35,7 +35,7 @@ export type PaymentMethods =
35
35
  | components.JuspayPaymentMethod
36
36
  | components.PayuPaymentMethod;
37
37
 
38
- export type GetPaymentsPaymentMethodsContent = {
38
+ export type GetPaymentMethodsContent = {
39
39
  paymentMethods?:
40
40
  | Array<components.JuspayPaymentMethod | components.PayuPaymentMethod>
41
41
  | undefined;
@@ -44,10 +44,10 @@ export type GetPaymentsPaymentMethodsContent = {
44
44
  /**
45
45
  * OK
46
46
  */
47
- export type GetPaymentsPaymentMethodsResponseBody = {
47
+ export type GetPaymentMethodsResponseBody = {
48
48
  message?: string | undefined;
49
49
  success?: boolean | undefined;
50
- content?: GetPaymentsPaymentMethodsContent | undefined;
50
+ content?: GetPaymentMethodsContent | undefined;
51
51
  };
52
52
 
53
53
  /** @internal */
@@ -72,8 +72,8 @@ export namespace QueryParamPaymentGateway$ {
72
72
  }
73
73
 
74
74
  /** @internal */
75
- export const GetPaymentsPaymentMethodsRequest$inboundSchema: z.ZodType<
76
- GetPaymentsPaymentMethodsRequest,
75
+ export const GetPaymentMethodsRequest$inboundSchema: z.ZodType<
76
+ GetPaymentMethodsRequest,
77
77
  z.ZodTypeDef,
78
78
  unknown
79
79
  > = z.object({
@@ -85,15 +85,15 @@ export const GetPaymentsPaymentMethodsRequest$inboundSchema: z.ZodType<
85
85
  });
86
86
 
87
87
  /** @internal */
88
- export type GetPaymentsPaymentMethodsRequest$Outbound = {
88
+ export type GetPaymentMethodsRequest$Outbound = {
89
89
  payment_gateway: string;
90
90
  };
91
91
 
92
92
  /** @internal */
93
- export const GetPaymentsPaymentMethodsRequest$outboundSchema: z.ZodType<
94
- GetPaymentsPaymentMethodsRequest$Outbound,
93
+ export const GetPaymentMethodsRequest$outboundSchema: z.ZodType<
94
+ GetPaymentMethodsRequest$Outbound,
95
95
  z.ZodTypeDef,
96
- GetPaymentsPaymentMethodsRequest
96
+ GetPaymentMethodsRequest
97
97
  > = z.object({
98
98
  paymentGateway: QueryParamPaymentGateway$outboundSchema,
99
99
  }).transform((v) => {
@@ -106,32 +106,30 @@ export const GetPaymentsPaymentMethodsRequest$outboundSchema: z.ZodType<
106
106
  * @internal
107
107
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
108
108
  */
109
- export namespace GetPaymentsPaymentMethodsRequest$ {
110
- /** @deprecated use `GetPaymentsPaymentMethodsRequest$inboundSchema` instead. */
111
- export const inboundSchema = GetPaymentsPaymentMethodsRequest$inboundSchema;
112
- /** @deprecated use `GetPaymentsPaymentMethodsRequest$outboundSchema` instead. */
113
- export const outboundSchema = GetPaymentsPaymentMethodsRequest$outboundSchema;
114
- /** @deprecated use `GetPaymentsPaymentMethodsRequest$Outbound` instead. */
115
- export type Outbound = GetPaymentsPaymentMethodsRequest$Outbound;
109
+ export namespace GetPaymentMethodsRequest$ {
110
+ /** @deprecated use `GetPaymentMethodsRequest$inboundSchema` instead. */
111
+ export const inboundSchema = GetPaymentMethodsRequest$inboundSchema;
112
+ /** @deprecated use `GetPaymentMethodsRequest$outboundSchema` instead. */
113
+ export const outboundSchema = GetPaymentMethodsRequest$outboundSchema;
114
+ /** @deprecated use `GetPaymentMethodsRequest$Outbound` instead. */
115
+ export type Outbound = GetPaymentMethodsRequest$Outbound;
116
116
  }
117
117
 
118
- export function getPaymentsPaymentMethodsRequestToJSON(
119
- getPaymentsPaymentMethodsRequest: GetPaymentsPaymentMethodsRequest,
118
+ export function getPaymentMethodsRequestToJSON(
119
+ getPaymentMethodsRequest: GetPaymentMethodsRequest,
120
120
  ): string {
121
121
  return JSON.stringify(
122
- GetPaymentsPaymentMethodsRequest$outboundSchema.parse(
123
- getPaymentsPaymentMethodsRequest,
124
- ),
122
+ GetPaymentMethodsRequest$outboundSchema.parse(getPaymentMethodsRequest),
125
123
  );
126
124
  }
127
125
 
128
- export function getPaymentsPaymentMethodsRequestFromJSON(
126
+ export function getPaymentMethodsRequestFromJSON(
129
127
  jsonString: string,
130
- ): SafeParseResult<GetPaymentsPaymentMethodsRequest, SDKValidationError> {
128
+ ): SafeParseResult<GetPaymentMethodsRequest, SDKValidationError> {
131
129
  return safeParse(
132
130
  jsonString,
133
- (x) => GetPaymentsPaymentMethodsRequest$inboundSchema.parse(JSON.parse(x)),
134
- `Failed to parse 'GetPaymentsPaymentMethodsRequest' from JSON`,
131
+ (x) => GetPaymentMethodsRequest$inboundSchema.parse(JSON.parse(x)),
132
+ `Failed to parse 'GetPaymentMethodsRequest' from JSON`,
135
133
  );
136
134
  }
137
135
 
@@ -188,8 +186,8 @@ export function paymentMethodsFromJSON(
188
186
  }
189
187
 
190
188
  /** @internal */
191
- export const GetPaymentsPaymentMethodsContent$inboundSchema: z.ZodType<
192
- GetPaymentsPaymentMethodsContent,
189
+ export const GetPaymentMethodsContent$inboundSchema: z.ZodType<
190
+ GetPaymentMethodsContent,
193
191
  z.ZodTypeDef,
194
192
  unknown
195
193
  > = z.object({
@@ -206,7 +204,7 @@ export const GetPaymentsPaymentMethodsContent$inboundSchema: z.ZodType<
206
204
  });
207
205
 
208
206
  /** @internal */
209
- export type GetPaymentsPaymentMethodsContent$Outbound = {
207
+ export type GetPaymentMethodsContent$Outbound = {
210
208
  payment_methods?:
211
209
  | Array<
212
210
  | components.JuspayPaymentMethod$Outbound
@@ -216,10 +214,10 @@ export type GetPaymentsPaymentMethodsContent$Outbound = {
216
214
  };
217
215
 
218
216
  /** @internal */
219
- export const GetPaymentsPaymentMethodsContent$outboundSchema: z.ZodType<
220
- GetPaymentsPaymentMethodsContent$Outbound,
217
+ export const GetPaymentMethodsContent$outboundSchema: z.ZodType<
218
+ GetPaymentMethodsContent$Outbound,
221
219
  z.ZodTypeDef,
222
- GetPaymentsPaymentMethodsContent
220
+ GetPaymentMethodsContent
223
221
  > = z.object({
224
222
  paymentMethods: z.array(
225
223
  z.union([
@@ -237,98 +235,91 @@ export const GetPaymentsPaymentMethodsContent$outboundSchema: z.ZodType<
237
235
  * @internal
238
236
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
239
237
  */
240
- export namespace GetPaymentsPaymentMethodsContent$ {
241
- /** @deprecated use `GetPaymentsPaymentMethodsContent$inboundSchema` instead. */
242
- export const inboundSchema = GetPaymentsPaymentMethodsContent$inboundSchema;
243
- /** @deprecated use `GetPaymentsPaymentMethodsContent$outboundSchema` instead. */
244
- export const outboundSchema = GetPaymentsPaymentMethodsContent$outboundSchema;
245
- /** @deprecated use `GetPaymentsPaymentMethodsContent$Outbound` instead. */
246
- export type Outbound = GetPaymentsPaymentMethodsContent$Outbound;
238
+ export namespace GetPaymentMethodsContent$ {
239
+ /** @deprecated use `GetPaymentMethodsContent$inboundSchema` instead. */
240
+ export const inboundSchema = GetPaymentMethodsContent$inboundSchema;
241
+ /** @deprecated use `GetPaymentMethodsContent$outboundSchema` instead. */
242
+ export const outboundSchema = GetPaymentMethodsContent$outboundSchema;
243
+ /** @deprecated use `GetPaymentMethodsContent$Outbound` instead. */
244
+ export type Outbound = GetPaymentMethodsContent$Outbound;
247
245
  }
248
246
 
249
- export function getPaymentsPaymentMethodsContentToJSON(
250
- getPaymentsPaymentMethodsContent: GetPaymentsPaymentMethodsContent,
247
+ export function getPaymentMethodsContentToJSON(
248
+ getPaymentMethodsContent: GetPaymentMethodsContent,
251
249
  ): string {
252
250
  return JSON.stringify(
253
- GetPaymentsPaymentMethodsContent$outboundSchema.parse(
254
- getPaymentsPaymentMethodsContent,
255
- ),
251
+ GetPaymentMethodsContent$outboundSchema.parse(getPaymentMethodsContent),
256
252
  );
257
253
  }
258
254
 
259
- export function getPaymentsPaymentMethodsContentFromJSON(
255
+ export function getPaymentMethodsContentFromJSON(
260
256
  jsonString: string,
261
- ): SafeParseResult<GetPaymentsPaymentMethodsContent, SDKValidationError> {
257
+ ): SafeParseResult<GetPaymentMethodsContent, SDKValidationError> {
262
258
  return safeParse(
263
259
  jsonString,
264
- (x) => GetPaymentsPaymentMethodsContent$inboundSchema.parse(JSON.parse(x)),
265
- `Failed to parse 'GetPaymentsPaymentMethodsContent' from JSON`,
260
+ (x) => GetPaymentMethodsContent$inboundSchema.parse(JSON.parse(x)),
261
+ `Failed to parse 'GetPaymentMethodsContent' from JSON`,
266
262
  );
267
263
  }
268
264
 
269
265
  /** @internal */
270
- export const GetPaymentsPaymentMethodsResponseBody$inboundSchema: z.ZodType<
271
- GetPaymentsPaymentMethodsResponseBody,
266
+ export const GetPaymentMethodsResponseBody$inboundSchema: z.ZodType<
267
+ GetPaymentMethodsResponseBody,
272
268
  z.ZodTypeDef,
273
269
  unknown
274
270
  > = z.object({
275
271
  message: z.string().optional(),
276
272
  success: z.boolean().optional(),
277
- content: z.lazy(() => GetPaymentsPaymentMethodsContent$inboundSchema)
278
- .optional(),
273
+ content: z.lazy(() => GetPaymentMethodsContent$inboundSchema).optional(),
279
274
  });
280
275
 
281
276
  /** @internal */
282
- export type GetPaymentsPaymentMethodsResponseBody$Outbound = {
277
+ export type GetPaymentMethodsResponseBody$Outbound = {
283
278
  message?: string | undefined;
284
279
  success?: boolean | undefined;
285
- content?: GetPaymentsPaymentMethodsContent$Outbound | undefined;
280
+ content?: GetPaymentMethodsContent$Outbound | undefined;
286
281
  };
287
282
 
288
283
  /** @internal */
289
- export const GetPaymentsPaymentMethodsResponseBody$outboundSchema: z.ZodType<
290
- GetPaymentsPaymentMethodsResponseBody$Outbound,
284
+ export const GetPaymentMethodsResponseBody$outboundSchema: z.ZodType<
285
+ GetPaymentMethodsResponseBody$Outbound,
291
286
  z.ZodTypeDef,
292
- GetPaymentsPaymentMethodsResponseBody
287
+ GetPaymentMethodsResponseBody
293
288
  > = z.object({
294
289
  message: z.string().optional(),
295
290
  success: z.boolean().optional(),
296
- content: z.lazy(() => GetPaymentsPaymentMethodsContent$outboundSchema)
297
- .optional(),
291
+ content: z.lazy(() => GetPaymentMethodsContent$outboundSchema).optional(),
298
292
  });
299
293
 
300
294
  /**
301
295
  * @internal
302
296
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
303
297
  */
304
- export namespace GetPaymentsPaymentMethodsResponseBody$ {
305
- /** @deprecated use `GetPaymentsPaymentMethodsResponseBody$inboundSchema` instead. */
306
- export const inboundSchema =
307
- GetPaymentsPaymentMethodsResponseBody$inboundSchema;
308
- /** @deprecated use `GetPaymentsPaymentMethodsResponseBody$outboundSchema` instead. */
309
- export const outboundSchema =
310
- GetPaymentsPaymentMethodsResponseBody$outboundSchema;
311
- /** @deprecated use `GetPaymentsPaymentMethodsResponseBody$Outbound` instead. */
312
- export type Outbound = GetPaymentsPaymentMethodsResponseBody$Outbound;
298
+ export namespace GetPaymentMethodsResponseBody$ {
299
+ /** @deprecated use `GetPaymentMethodsResponseBody$inboundSchema` instead. */
300
+ export const inboundSchema = GetPaymentMethodsResponseBody$inboundSchema;
301
+ /** @deprecated use `GetPaymentMethodsResponseBody$outboundSchema` instead. */
302
+ export const outboundSchema = GetPaymentMethodsResponseBody$outboundSchema;
303
+ /** @deprecated use `GetPaymentMethodsResponseBody$Outbound` instead. */
304
+ export type Outbound = GetPaymentMethodsResponseBody$Outbound;
313
305
  }
314
306
 
315
- export function getPaymentsPaymentMethodsResponseBodyToJSON(
316
- getPaymentsPaymentMethodsResponseBody: GetPaymentsPaymentMethodsResponseBody,
307
+ export function getPaymentMethodsResponseBodyToJSON(
308
+ getPaymentMethodsResponseBody: GetPaymentMethodsResponseBody,
317
309
  ): string {
318
310
  return JSON.stringify(
319
- GetPaymentsPaymentMethodsResponseBody$outboundSchema.parse(
320
- getPaymentsPaymentMethodsResponseBody,
311
+ GetPaymentMethodsResponseBody$outboundSchema.parse(
312
+ getPaymentMethodsResponseBody,
321
313
  ),
322
314
  );
323
315
  }
324
316
 
325
- export function getPaymentsPaymentMethodsResponseBodyFromJSON(
317
+ export function getPaymentMethodsResponseBodyFromJSON(
326
318
  jsonString: string,
327
- ): SafeParseResult<GetPaymentsPaymentMethodsResponseBody, SDKValidationError> {
319
+ ): SafeParseResult<GetPaymentMethodsResponseBody, SDKValidationError> {
328
320
  return safeParse(
329
321
  jsonString,
330
- (x) =>
331
- GetPaymentsPaymentMethodsResponseBody$inboundSchema.parse(JSON.parse(x)),
332
- `Failed to parse 'GetPaymentsPaymentMethodsResponseBody' from JSON`,
322
+ (x) => GetPaymentMethodsResponseBody$inboundSchema.parse(JSON.parse(x)),
323
+ `Failed to parse 'GetPaymentMethodsResponseBody' from JSON`,
333
324
  );
334
325
  }
@@ -28,17 +28,13 @@ export type GetSimilarRequest = {
28
28
  sortBy?: string | undefined;
29
29
  };
30
30
 
31
- export type GetSimilarContent = {
32
- products?: Array<components.ProductList> | undefined;
33
- };
34
-
35
31
  /**
36
32
  * Success response
37
33
  */
38
34
  export type GetSimilarResponseBody = {
39
35
  message?: string | undefined;
40
36
  success?: boolean | undefined;
41
- content?: GetSimilarContent | undefined;
37
+ content?: components.ProductListResponse | undefined;
42
38
  };
43
39
 
44
40
  /** @internal */
@@ -114,60 +110,6 @@ export function getSimilarRequestFromJSON(
114
110
  );
115
111
  }
116
112
 
117
- /** @internal */
118
- export const GetSimilarContent$inboundSchema: z.ZodType<
119
- GetSimilarContent,
120
- z.ZodTypeDef,
121
- unknown
122
- > = z.object({
123
- products: z.array(components.ProductList$inboundSchema).optional(),
124
- });
125
-
126
- /** @internal */
127
- export type GetSimilarContent$Outbound = {
128
- products?: Array<components.ProductList$Outbound> | undefined;
129
- };
130
-
131
- /** @internal */
132
- export const GetSimilarContent$outboundSchema: z.ZodType<
133
- GetSimilarContent$Outbound,
134
- z.ZodTypeDef,
135
- GetSimilarContent
136
- > = z.object({
137
- products: z.array(components.ProductList$outboundSchema).optional(),
138
- });
139
-
140
- /**
141
- * @internal
142
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
143
- */
144
- export namespace GetSimilarContent$ {
145
- /** @deprecated use `GetSimilarContent$inboundSchema` instead. */
146
- export const inboundSchema = GetSimilarContent$inboundSchema;
147
- /** @deprecated use `GetSimilarContent$outboundSchema` instead. */
148
- export const outboundSchema = GetSimilarContent$outboundSchema;
149
- /** @deprecated use `GetSimilarContent$Outbound` instead. */
150
- export type Outbound = GetSimilarContent$Outbound;
151
- }
152
-
153
- export function getSimilarContentToJSON(
154
- getSimilarContent: GetSimilarContent,
155
- ): string {
156
- return JSON.stringify(
157
- GetSimilarContent$outboundSchema.parse(getSimilarContent),
158
- );
159
- }
160
-
161
- export function getSimilarContentFromJSON(
162
- jsonString: string,
163
- ): SafeParseResult<GetSimilarContent, SDKValidationError> {
164
- return safeParse(
165
- jsonString,
166
- (x) => GetSimilarContent$inboundSchema.parse(JSON.parse(x)),
167
- `Failed to parse 'GetSimilarContent' from JSON`,
168
- );
169
- }
170
-
171
113
  /** @internal */
172
114
  export const GetSimilarResponseBody$inboundSchema: z.ZodType<
173
115
  GetSimilarResponseBody,
@@ -176,14 +118,14 @@ export const GetSimilarResponseBody$inboundSchema: z.ZodType<
176
118
  > = z.object({
177
119
  message: z.string().optional(),
178
120
  success: z.boolean().optional(),
179
- content: z.lazy(() => GetSimilarContent$inboundSchema).optional(),
121
+ content: components.ProductListResponse$inboundSchema.optional(),
180
122
  });
181
123
 
182
124
  /** @internal */
183
125
  export type GetSimilarResponseBody$Outbound = {
184
126
  message?: string | undefined;
185
127
  success?: boolean | undefined;
186
- content?: GetSimilarContent$Outbound | undefined;
128
+ content?: components.ProductListResponse$Outbound | undefined;
187
129
  };
188
130
 
189
131
  /** @internal */
@@ -194,7 +136,7 @@ export const GetSimilarResponseBody$outboundSchema: z.ZodType<
194
136
  > = z.object({
195
137
  message: z.string().optional(),
196
138
  success: z.boolean().optional(),
197
- content: z.lazy(() => GetSimilarContent$outboundSchema).optional(),
139
+ content: components.ProductListResponse$outboundSchema.optional(),
198
140
  });
199
141
 
200
142
  /**
@@ -31,9 +31,9 @@ export * from "./getordersidpayments.js";
31
31
  export * from "./getordersidpaymentstatus.js";
32
32
  export * from "./getordersidrefunds.js";
33
33
  export * from "./getordersidshipments.js";
34
+ export * from "./getpaymentmethods.js";
34
35
  export * from "./getpaymentscards.js";
35
36
  export * from "./getpaymentsjuspaycustomer.js";
36
- export * from "./getpaymentspaymentmethods.js";
37
37
  export * from "./getpaymentsverifyvpa.js";
38
38
  export * from "./getproductdetails.js";
39
39
  export * from "./getproducts.js";
@@ -42,7 +42,6 @@ export * from "./getproductsidreviews.js";
42
42
  export * from "./getproductvariantdetail.js";
43
43
  export * from "./getproductvariants.js";
44
44
  export * from "./getpromotions.js";
45
- export * from "./getrecommendedproducts.js";
46
45
  export * from "./getshipmentpincodeserviceability.js";
47
46
  export * from "./getsimilar.js";
48
47
  export * from "./getskus.js";
@@ -17,7 +17,7 @@ export type PostAuthAnonymousSecurity = {
17
17
  * An object containing the response content.
18
18
  */
19
19
  export type PostAuthAnonymousContent = {
20
- user?: components.User | undefined;
20
+ user?: components.AnonymousUser | undefined;
21
21
  /**
22
22
  * It is a string-based token utilized for authentication and authorization.
23
23
  */
@@ -114,7 +114,7 @@ export const PostAuthAnonymousContent$inboundSchema: z.ZodType<
114
114
  z.ZodTypeDef,
115
115
  unknown
116
116
  > = z.object({
117
- user: components.User$inboundSchema.optional(),
117
+ user: components.AnonymousUser$inboundSchema.optional(),
118
118
  access_token: z.string().optional(),
119
119
  refresh_token: z.string().optional(),
120
120
  }).transform((v) => {
@@ -126,7 +126,7 @@ export const PostAuthAnonymousContent$inboundSchema: z.ZodType<
126
126
 
127
127
  /** @internal */
128
128
  export type PostAuthAnonymousContent$Outbound = {
129
- user?: components.User$Outbound | undefined;
129
+ user?: components.AnonymousUser$Outbound | undefined;
130
130
  access_token?: string | undefined;
131
131
  refresh_token?: string | undefined;
132
132
  };
@@ -137,7 +137,7 @@ export const PostAuthAnonymousContent$outboundSchema: z.ZodType<
137
137
  z.ZodTypeDef,
138
138
  PostAuthAnonymousContent
139
139
  > = z.object({
140
- user: components.User$outboundSchema.optional(),
140
+ user: components.AnonymousUser$outboundSchema.optional(),
141
141
  accessToken: z.string().optional(),
142
142
  refreshToken: z.string().optional(),
143
143
  }).transform((v) => {
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as components from "../components/index.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- export type PostCartItemIdRequestBody = {
12
+ export type PostCartItemIdAddToCartItem = {
13
13
  productId: string;
14
14
  sku: string;
15
15
  quantity: number;
@@ -22,7 +22,7 @@ export type PostCartItemIdRequest = {
22
22
  * cart id
23
23
  */
24
24
  id: string;
25
- requestBody: PostCartItemIdRequestBody;
25
+ requestBody: PostCartItemIdAddToCartItem;
26
26
  };
27
27
 
28
28
  export type PostCartItemIdContent = {
@@ -42,8 +42,8 @@ export type PostCartItemIdResponseBody = {
42
42
  };
43
43
 
44
44
  /** @internal */
45
- export const PostCartItemIdRequestBody$inboundSchema: z.ZodType<
46
- PostCartItemIdRequestBody,
45
+ export const PostCartItemIdAddToCartItem$inboundSchema: z.ZodType<
46
+ PostCartItemIdAddToCartItem,
47
47
  z.ZodTypeDef,
48
48
  unknown
49
49
  > = z.object({
@@ -61,7 +61,7 @@ export const PostCartItemIdRequestBody$inboundSchema: z.ZodType<
61
61
  });
62
62
 
63
63
  /** @internal */
64
- export type PostCartItemIdRequestBody$Outbound = {
64
+ export type PostCartItemIdAddToCartItem$Outbound = {
65
65
  product_id: string;
66
66
  sku: string;
67
67
  quantity: number;
@@ -70,10 +70,10 @@ export type PostCartItemIdRequestBody$Outbound = {
70
70
  };
71
71
 
72
72
  /** @internal */
73
- export const PostCartItemIdRequestBody$outboundSchema: z.ZodType<
74
- PostCartItemIdRequestBody$Outbound,
73
+ export const PostCartItemIdAddToCartItem$outboundSchema: z.ZodType<
74
+ PostCartItemIdAddToCartItem$Outbound,
75
75
  z.ZodTypeDef,
76
- PostCartItemIdRequestBody
76
+ PostCartItemIdAddToCartItem
77
77
  > = z.object({
78
78
  productId: z.string(),
79
79
  sku: z.string(),
@@ -92,30 +92,32 @@ export const PostCartItemIdRequestBody$outboundSchema: z.ZodType<
92
92
  * @internal
93
93
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
94
94
  */
95
- export namespace PostCartItemIdRequestBody$ {
96
- /** @deprecated use `PostCartItemIdRequestBody$inboundSchema` instead. */
97
- export const inboundSchema = PostCartItemIdRequestBody$inboundSchema;
98
- /** @deprecated use `PostCartItemIdRequestBody$outboundSchema` instead. */
99
- export const outboundSchema = PostCartItemIdRequestBody$outboundSchema;
100
- /** @deprecated use `PostCartItemIdRequestBody$Outbound` instead. */
101
- export type Outbound = PostCartItemIdRequestBody$Outbound;
95
+ export namespace PostCartItemIdAddToCartItem$ {
96
+ /** @deprecated use `PostCartItemIdAddToCartItem$inboundSchema` instead. */
97
+ export const inboundSchema = PostCartItemIdAddToCartItem$inboundSchema;
98
+ /** @deprecated use `PostCartItemIdAddToCartItem$outboundSchema` instead. */
99
+ export const outboundSchema = PostCartItemIdAddToCartItem$outboundSchema;
100
+ /** @deprecated use `PostCartItemIdAddToCartItem$Outbound` instead. */
101
+ export type Outbound = PostCartItemIdAddToCartItem$Outbound;
102
102
  }
103
103
 
104
- export function postCartItemIdRequestBodyToJSON(
105
- postCartItemIdRequestBody: PostCartItemIdRequestBody,
104
+ export function postCartItemIdAddToCartItemToJSON(
105
+ postCartItemIdAddToCartItem: PostCartItemIdAddToCartItem,
106
106
  ): string {
107
107
  return JSON.stringify(
108
- PostCartItemIdRequestBody$outboundSchema.parse(postCartItemIdRequestBody),
108
+ PostCartItemIdAddToCartItem$outboundSchema.parse(
109
+ postCartItemIdAddToCartItem,
110
+ ),
109
111
  );
110
112
  }
111
113
 
112
- export function postCartItemIdRequestBodyFromJSON(
114
+ export function postCartItemIdAddToCartItemFromJSON(
113
115
  jsonString: string,
114
- ): SafeParseResult<PostCartItemIdRequestBody, SDKValidationError> {
116
+ ): SafeParseResult<PostCartItemIdAddToCartItem, SDKValidationError> {
115
117
  return safeParse(
116
118
  jsonString,
117
- (x) => PostCartItemIdRequestBody$inboundSchema.parse(JSON.parse(x)),
118
- `Failed to parse 'PostCartItemIdRequestBody' from JSON`,
119
+ (x) => PostCartItemIdAddToCartItem$inboundSchema.parse(JSON.parse(x)),
120
+ `Failed to parse 'PostCartItemIdAddToCartItem' from JSON`,
119
121
  );
120
122
  }
121
123
 
@@ -126,7 +128,7 @@ export const PostCartItemIdRequest$inboundSchema: z.ZodType<
126
128
  unknown
127
129
  > = z.object({
128
130
  id: z.string(),
129
- RequestBody: z.lazy(() => PostCartItemIdRequestBody$inboundSchema),
131
+ RequestBody: z.lazy(() => PostCartItemIdAddToCartItem$inboundSchema),
130
132
  }).transform((v) => {
131
133
  return remap$(v, {
132
134
  "RequestBody": "requestBody",
@@ -136,7 +138,7 @@ export const PostCartItemIdRequest$inboundSchema: z.ZodType<
136
138
  /** @internal */
137
139
  export type PostCartItemIdRequest$Outbound = {
138
140
  id: string;
139
- RequestBody: PostCartItemIdRequestBody$Outbound;
141
+ RequestBody: PostCartItemIdAddToCartItem$Outbound;
140
142
  };
141
143
 
142
144
  /** @internal */
@@ -146,7 +148,7 @@ export const PostCartItemIdRequest$outboundSchema: z.ZodType<
146
148
  PostCartItemIdRequest
147
149
  > = z.object({
148
150
  id: z.string(),
149
- requestBody: z.lazy(() => PostCartItemIdRequestBody$outboundSchema),
151
+ requestBody: z.lazy(() => PostCartItemIdAddToCartItem$outboundSchema),
150
152
  }).transform((v) => {
151
153
  return remap$(v, {
152
154
  requestBody: "RequestBody",
@@ -7,7 +7,7 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
7
  import * as operations from "../models/operations/index.js";
8
8
  import { unwrapAsync } from "../types/fp.js";
9
9
 
10
- export class CeStorefrontPayments extends ClientSDK {
10
+ export class CeStorefrontOrdersPayments extends ClientSDK {
11
11
  /**
12
12
  * Retrieve order payments
13
13
  *