ce-storefront 0.3.4 → 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 (233) 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 +2 -2
  55. package/esm/lib/config.js +2 -2
  56. package/esm/models/components/cart.d.ts +1 -1
  57. package/esm/models/components/cart.d.ts.map +1 -1
  58. package/esm/models/components/cart.js +1 -1
  59. package/esm/models/components/cart.js.map +1 -1
  60. package/esm/models/components/createcustomer.d.ts +1 -1
  61. package/esm/models/components/createcustomer.d.ts.map +1 -1
  62. package/esm/models/components/createcustomer.js +1 -1
  63. package/esm/models/components/createcustomer.js.map +1 -1
  64. package/esm/models/components/{customeraddressinput.d.ts → customeraddress.d.ts} +33 -33
  65. package/esm/models/components/customeraddress.d.ts.map +1 -0
  66. package/esm/models/components/{customeraddressinput.js → customeraddress.js} +37 -37
  67. package/esm/models/components/customeraddress.js.map +1 -0
  68. package/esm/models/components/freegoodspromotion.d.ts +2 -2
  69. package/esm/models/components/freegoodspromotion.d.ts.map +1 -1
  70. package/esm/models/components/freegoodspromotion.js +2 -2
  71. package/esm/models/components/freegoodspromotion.js.map +1 -1
  72. package/esm/models/components/index.d.ts +2 -3
  73. package/esm/models/components/index.d.ts.map +1 -1
  74. package/esm/models/components/index.js +2 -3
  75. package/esm/models/components/index.js.map +1 -1
  76. package/esm/models/components/orderdetail.d.ts +1 -1
  77. package/esm/models/components/orderdetail.d.ts.map +1 -1
  78. package/esm/models/components/orderdetail.js +1 -1
  79. package/esm/models/components/orderdetail.js.map +1 -1
  80. package/esm/models/components/{productlist.d.ts → product.d.ts} +14 -16
  81. package/esm/models/components/product.d.ts.map +1 -0
  82. package/esm/models/components/{productlist.js → product.js} +16 -20
  83. package/esm/models/components/product.js.map +1 -0
  84. package/esm/models/components/productdetail.d.ts +4 -4
  85. package/esm/models/components/productdetail.d.ts.map +1 -1
  86. package/esm/models/components/productdetail.js +4 -4
  87. package/esm/models/components/productdetail.js.map +1 -1
  88. package/esm/models/components/productlistresponse.d.ts +3 -3
  89. package/esm/models/components/productlistresponse.d.ts.map +1 -1
  90. package/esm/models/components/productlistresponse.js +3 -3
  91. package/esm/models/components/productlistresponse.js.map +1 -1
  92. package/esm/models/components/productpromotion.d.ts +11 -5
  93. package/esm/models/components/productpromotion.d.ts.map +1 -1
  94. package/esm/models/operations/getpaymentmethods.d.ts +143 -0
  95. package/esm/models/operations/getpaymentmethods.d.ts.map +1 -0
  96. package/esm/models/operations/{getpaymentspaymentmethods.js → getpaymentmethods.js} +42 -44
  97. package/esm/models/operations/getpaymentmethods.js.map +1 -0
  98. package/esm/models/operations/getsimilar.d.ts +2 -27
  99. package/esm/models/operations/getsimilar.d.ts.map +1 -1
  100. package/esm/models/operations/getsimilar.js +2 -27
  101. package/esm/models/operations/getsimilar.js.map +1 -1
  102. package/esm/models/operations/index.d.ts +1 -2
  103. package/esm/models/operations/index.d.ts.map +1 -1
  104. package/esm/models/operations/index.js +1 -2
  105. package/esm/models/operations/index.js.map +1 -1
  106. package/esm/models/operations/postcartitemid.d.ts +15 -15
  107. package/esm/models/operations/postcartitemid.d.ts.map +1 -1
  108. package/esm/models/operations/postcartitemid.js +15 -15
  109. package/esm/models/operations/postcartitemid.js.map +1 -1
  110. package/esm/sdk/{cestorefrontpayments.d.ts → cestorefrontorderspayments.d.ts} +2 -2
  111. package/esm/sdk/cestorefrontorderspayments.d.ts.map +1 -0
  112. package/esm/sdk/{cestorefrontpayments.js → cestorefrontorderspayments.js} +2 -2
  113. package/esm/sdk/cestorefrontorderspayments.js.map +1 -0
  114. package/esm/sdk/customers.d.ts +24 -1
  115. package/esm/sdk/customers.d.ts.map +1 -1
  116. package/esm/sdk/customers.js +31 -0
  117. package/esm/sdk/customers.js.map +1 -1
  118. package/esm/sdk/{paymentsapijuspay.d.ts → juspay.d.ts} +2 -2
  119. package/esm/sdk/juspay.d.ts.map +1 -0
  120. package/esm/sdk/{paymentsapijuspay.js → juspay.js} +8 -8
  121. package/esm/sdk/juspay.js.map +1 -0
  122. package/esm/sdk/orders.d.ts +9 -2
  123. package/esm/sdk/orders.d.ts.map +1 -1
  124. package/esm/sdk/orders.js +12 -2
  125. package/esm/sdk/orders.js.map +1 -1
  126. package/esm/sdk/payments.d.ts +23 -1
  127. package/esm/sdk/payments.d.ts.map +1 -1
  128. package/esm/sdk/payments.js +31 -0
  129. package/esm/sdk/payments.js.map +1 -1
  130. package/esm/sdk/products.d.ts +1 -1
  131. package/esm/sdk/products.js +1 -1
  132. package/esm/sdk/sdk.d.ts +3 -12
  133. package/esm/sdk/sdk.d.ts.map +1 -1
  134. package/esm/sdk/sdk.js +3 -15
  135. package/esm/sdk/sdk.js.map +1 -1
  136. package/jsr.json +1 -1
  137. package/package.json +1 -1
  138. package/src/funcs/catalogProductsGet.ts +1 -1
  139. package/src/funcs/{customersAPIGetCustomersId.ts → customersGetCustomersId.ts} +1 -1
  140. package/src/funcs/{customersAPIPostCustomers.ts → customersPostCustomers.ts} +1 -1
  141. package/src/funcs/{customersAPIPutCustomersId.ts → customersPutCustomersId.ts} +1 -1
  142. package/src/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.ts → juspayGetPaymentsJuspayCustomer.ts} +1 -1
  143. package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.ts → juspayPostPaymentsJuspayCreateCustomer.ts} +1 -1
  144. package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.ts → juspayPostPaymentsJuspayCreateOrder.ts} +1 -1
  145. package/src/funcs/{ordersAPIGetOrdersIdPaymentStatus.ts → ordersGetOrdersIdPaymentStatus.ts} +1 -1
  146. package/src/funcs/paymentsGetMethods.ts +6 -7
  147. package/src/funcs/{paymentsAPIGetPaymentsCards.ts → paymentsGetPaymentsCards.ts} +1 -1
  148. package/src/funcs/{paymentsAPIGetPaymentsVerifyVpa.ts → paymentsGetPaymentsVerifyVpa.ts} +1 -1
  149. package/src/funcs/{paymentsAPIPostPaymentsCards.ts → paymentsPostPaymentsCards.ts} +1 -1
  150. package/src/lib/config.ts +2 -2
  151. package/src/models/components/cart.ts +1 -1
  152. package/src/models/components/createcustomer.ts +1 -1
  153. package/src/models/components/freegoodspromotion.ts +4 -4
  154. package/src/models/components/index.ts +2 -3
  155. package/src/models/components/orderdetail.ts +1 -1
  156. package/src/models/components/{productlist.ts → product.ts} +73 -78
  157. package/src/models/components/productdetail.ts +8 -8
  158. package/src/models/components/productlistresponse.ts +9 -9
  159. package/src/models/operations/{getpaymentspaymentmethods.ts → getpaymentmethods.ts} +68 -77
  160. package/src/models/operations/getsimilar.ts +4 -62
  161. package/src/models/operations/index.ts +1 -2
  162. package/src/models/operations/postcartitemid.ts +27 -25
  163. package/src/sdk/{cestorefrontpayments.ts → cestorefrontorderspayments.ts} +1 -1
  164. package/src/sdk/customers.ts +58 -1
  165. package/src/sdk/{paymentsapijuspay.ts → juspay.ts} +7 -7
  166. package/src/sdk/orders.ts +22 -4
  167. package/src/sdk/payments.ts +57 -2
  168. package/src/sdk/products.ts +1 -1
  169. package/src/sdk/sdk.ts +4 -22
  170. package/docs/sdks/customersapi/README.md +0 -321
  171. package/docs/sdks/ordersapi/README.md +0 -86
  172. package/docs/sdks/paymentsapi/README.md +0 -247
  173. package/esm/funcs/customersAPIGetCustomersId.d.ts.map +0 -1
  174. package/esm/funcs/customersAPIGetCustomersId.js.map +0 -1
  175. package/esm/funcs/customersAPIGetRecommendedProducts.d.ts +0 -16
  176. package/esm/funcs/customersAPIGetRecommendedProducts.d.ts.map +0 -1
  177. package/esm/funcs/customersAPIGetRecommendedProducts.js +0 -80
  178. package/esm/funcs/customersAPIGetRecommendedProducts.js.map +0 -1
  179. package/esm/funcs/customersAPIPostCustomers.d.ts.map +0 -1
  180. package/esm/funcs/customersAPIPutCustomersId.d.ts.map +0 -1
  181. package/esm/funcs/customersAPIPutCustomersId.js.map +0 -1
  182. package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.d.ts.map +0 -1
  183. package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.js.map +0 -1
  184. package/esm/funcs/paymentsAPIGetPaymentsCards.d.ts.map +0 -1
  185. package/esm/funcs/paymentsAPIGetPaymentsCards.js.map +0 -1
  186. package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.d.ts.map +0 -1
  187. package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.js.map +0 -1
  188. package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.d.ts.map +0 -1
  189. package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.js.map +0 -1
  190. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.d.ts.map +0 -1
  191. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.js.map +0 -1
  192. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.d.ts.map +0 -1
  193. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.js.map +0 -1
  194. package/esm/funcs/paymentsAPIPostPaymentsCards.d.ts.map +0 -1
  195. package/esm/funcs/paymentsAPIPostPaymentsCards.js.map +0 -1
  196. package/esm/models/components/customeraddressinput.d.ts.map +0 -1
  197. package/esm/models/components/customeraddressinput.js.map +0 -1
  198. package/esm/models/components/productlist.d.ts.map +0 -1
  199. package/esm/models/components/productlist.js.map +0 -1
  200. package/esm/models/components/recommendedproduct.d.ts +0 -155
  201. package/esm/models/components/recommendedproduct.d.ts.map +0 -1
  202. package/esm/models/components/recommendedproduct.js +0 -193
  203. package/esm/models/components/recommendedproduct.js.map +0 -1
  204. package/esm/models/operations/getpaymentspaymentmethods.d.ts +0 -143
  205. package/esm/models/operations/getpaymentspaymentmethods.d.ts.map +0 -1
  206. package/esm/models/operations/getpaymentspaymentmethods.js.map +0 -1
  207. package/esm/models/operations/getrecommendedproducts.d.ts +0 -90
  208. package/esm/models/operations/getrecommendedproducts.d.ts.map +0 -1
  209. package/esm/models/operations/getrecommendedproducts.js +0 -87
  210. package/esm/models/operations/getrecommendedproducts.js.map +0 -1
  211. package/esm/sdk/cestorefrontpayments.d.ts.map +0 -1
  212. package/esm/sdk/cestorefrontpayments.js.map +0 -1
  213. package/esm/sdk/customersapi.d.ts +0 -34
  214. package/esm/sdk/customersapi.d.ts.map +0 -1
  215. package/esm/sdk/customersapi.js +0 -48
  216. package/esm/sdk/customersapi.js.map +0 -1
  217. package/esm/sdk/ordersapi.d.ts +0 -12
  218. package/esm/sdk/ordersapi.d.ts.map +0 -1
  219. package/esm/sdk/ordersapi.js +0 -18
  220. package/esm/sdk/ordersapi.js.map +0 -1
  221. package/esm/sdk/paymentsapi.d.ts +0 -27
  222. package/esm/sdk/paymentsapi.d.ts.map +0 -1
  223. package/esm/sdk/paymentsapi.js +0 -39
  224. package/esm/sdk/paymentsapi.js.map +0 -1
  225. package/esm/sdk/paymentsapijuspay.d.ts.map +0 -1
  226. package/esm/sdk/paymentsapijuspay.js.map +0 -1
  227. package/src/funcs/customersAPIGetRecommendedProducts.ts +0 -144
  228. package/src/models/components/recommendedproduct.ts +0 -385
  229. package/src/models/operations/getrecommendedproducts.ts +0 -206
  230. package/src/sdk/customersapi.ts +0 -82
  231. package/src/sdk/ordersapi.ts +0 -27
  232. package/src/sdk/paymentsapi.ts +0 -64
  233. package/src/models/components/{customeraddressinput.ts → customeraddress.ts} +60 -60
@@ -69,13 +69,12 @@ export type VariantOptions = {
69
69
  optionValue?: Array<string> | undefined;
70
70
  };
71
71
 
72
- export type ProductList = {
72
+ export type Product = {
73
73
  /**
74
74
  * The ULID of the product
75
75
  */
76
76
  id?: string | undefined;
77
77
  name?: string | undefined;
78
- description?: string | undefined;
79
78
  shortDescription?: string | undefined;
80
79
  productType?: ProductType | undefined;
81
80
  active?: boolean | undefined;
@@ -190,70 +189,67 @@ export function variantOptionsFromJSON(
190
189
  }
191
190
 
192
191
  /** @internal */
193
- export const ProductList$inboundSchema: z.ZodType<
194
- ProductList,
195
- z.ZodTypeDef,
196
- unknown
197
- > = z.object({
198
- id: z.string().optional(),
199
- name: z.string().optional(),
200
- description: z.string().optional(),
201
- short_description: z.string().optional(),
202
- product_type: ProductType$inboundSchema.optional(),
203
- active: z.boolean().default(true),
204
- sku: z.string().optional(),
205
- stock_available: z.boolean().default(true),
206
- is_featured: z.boolean().default(false),
207
- on_offer: z.boolean().default(false),
208
- on_subscription: z.boolean().default(false),
209
- on_promotion: z.boolean().default(false),
210
- has_variant: z.boolean().default(false),
211
- variant_options: z.nullable(
212
- z.array(z.lazy(() => VariantOptions$inboundSchema)),
213
- ).optional(),
214
- attributes: z.array(ProductAttribute$inboundSchema).optional(),
215
- images: z.array(ProductImage$inboundSchema).optional(),
216
- pricing: ProductPricing$inboundSchema.optional(),
217
- shipping: ProductShipping$inboundSchema.optional(),
218
- tags: z.nullable(z.array(z.string())).optional(),
219
- category_ids: z.array(z.string()).optional(),
220
- reviews_rating_sum: z.number().optional(),
221
- reviews_count: z.number().int().optional(),
222
- hsn_code: z.string().optional(),
223
- created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
224
- .optional(),
225
- modified_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
226
- .optional(),
227
- promotion: z.array(ProductPromotion$inboundSchema).optional(),
228
- subscription: z.array(ProductSubscription$inboundSchema).optional(),
229
- bundle_items: z.array(ProductBundleItem$inboundSchema).optional(),
230
- variants: z.array(Variant$inboundSchema).optional(),
231
- }).transform((v) => {
232
- return remap$(v, {
233
- "short_description": "shortDescription",
234
- "product_type": "productType",
235
- "stock_available": "stockAvailable",
236
- "is_featured": "isFeatured",
237
- "on_offer": "onOffer",
238
- "on_subscription": "onSubscription",
239
- "on_promotion": "onPromotion",
240
- "has_variant": "hasVariant",
241
- "variant_options": "variantOptions",
242
- "category_ids": "categoryIds",
243
- "reviews_rating_sum": "reviewsRatingSum",
244
- "reviews_count": "reviewsCount",
245
- "hsn_code": "hsnCode",
246
- "created_at": "createdAt",
247
- "modified_at": "modifiedAt",
248
- "bundle_items": "bundleItems",
192
+ export const Product$inboundSchema: z.ZodType<Product, z.ZodTypeDef, unknown> =
193
+ z.object({
194
+ id: z.string().optional(),
195
+ name: z.string().optional(),
196
+ short_description: z.string().optional(),
197
+ product_type: ProductType$inboundSchema.optional(),
198
+ active: z.boolean().default(true),
199
+ sku: z.string().optional(),
200
+ stock_available: z.boolean().default(true),
201
+ is_featured: z.boolean().default(false),
202
+ on_offer: z.boolean().default(false),
203
+ on_subscription: z.boolean().default(false),
204
+ on_promotion: z.boolean().default(false),
205
+ has_variant: z.boolean().default(false),
206
+ variant_options: z.nullable(
207
+ z.array(z.lazy(() => VariantOptions$inboundSchema)),
208
+ ).optional(),
209
+ attributes: z.array(ProductAttribute$inboundSchema).optional(),
210
+ images: z.array(ProductImage$inboundSchema).optional(),
211
+ pricing: ProductPricing$inboundSchema.optional(),
212
+ shipping: ProductShipping$inboundSchema.optional(),
213
+ tags: z.nullable(z.array(z.string())).optional(),
214
+ category_ids: z.array(z.string()).optional(),
215
+ reviews_rating_sum: z.number().optional(),
216
+ reviews_count: z.number().int().optional(),
217
+ hsn_code: z.string().optional(),
218
+ created_at: z.string().datetime({ offset: true }).transform(v =>
219
+ new Date(v)
220
+ ).optional(),
221
+ modified_at: z.string().datetime({ offset: true }).transform(v =>
222
+ new Date(v)
223
+ ).optional(),
224
+ promotion: z.array(ProductPromotion$inboundSchema).optional(),
225
+ subscription: z.array(ProductSubscription$inboundSchema).optional(),
226
+ bundle_items: z.array(ProductBundleItem$inboundSchema).optional(),
227
+ variants: z.array(Variant$inboundSchema).optional(),
228
+ }).transform((v) => {
229
+ return remap$(v, {
230
+ "short_description": "shortDescription",
231
+ "product_type": "productType",
232
+ "stock_available": "stockAvailable",
233
+ "is_featured": "isFeatured",
234
+ "on_offer": "onOffer",
235
+ "on_subscription": "onSubscription",
236
+ "on_promotion": "onPromotion",
237
+ "has_variant": "hasVariant",
238
+ "variant_options": "variantOptions",
239
+ "category_ids": "categoryIds",
240
+ "reviews_rating_sum": "reviewsRatingSum",
241
+ "reviews_count": "reviewsCount",
242
+ "hsn_code": "hsnCode",
243
+ "created_at": "createdAt",
244
+ "modified_at": "modifiedAt",
245
+ "bundle_items": "bundleItems",
246
+ });
249
247
  });
250
- });
251
248
 
252
249
  /** @internal */
253
- export type ProductList$Outbound = {
250
+ export type Product$Outbound = {
254
251
  id?: string | undefined;
255
252
  name?: string | undefined;
256
- description?: string | undefined;
257
253
  short_description?: string | undefined;
258
254
  product_type?: string | undefined;
259
255
  active: boolean;
@@ -283,14 +279,13 @@ export type ProductList$Outbound = {
283
279
  };
284
280
 
285
281
  /** @internal */
286
- export const ProductList$outboundSchema: z.ZodType<
287
- ProductList$Outbound,
282
+ export const Product$outboundSchema: z.ZodType<
283
+ Product$Outbound,
288
284
  z.ZodTypeDef,
289
- ProductList
285
+ Product
290
286
  > = z.object({
291
287
  id: z.string().optional(),
292
288
  name: z.string().optional(),
293
- description: z.string().optional(),
294
289
  shortDescription: z.string().optional(),
295
290
  productType: ProductType$outboundSchema.optional(),
296
291
  active: z.boolean().default(true),
@@ -344,25 +339,25 @@ export const ProductList$outboundSchema: z.ZodType<
344
339
  * @internal
345
340
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
346
341
  */
347
- export namespace ProductList$ {
348
- /** @deprecated use `ProductList$inboundSchema` instead. */
349
- export const inboundSchema = ProductList$inboundSchema;
350
- /** @deprecated use `ProductList$outboundSchema` instead. */
351
- export const outboundSchema = ProductList$outboundSchema;
352
- /** @deprecated use `ProductList$Outbound` instead. */
353
- export type Outbound = ProductList$Outbound;
342
+ export namespace Product$ {
343
+ /** @deprecated use `Product$inboundSchema` instead. */
344
+ export const inboundSchema = Product$inboundSchema;
345
+ /** @deprecated use `Product$outboundSchema` instead. */
346
+ export const outboundSchema = Product$outboundSchema;
347
+ /** @deprecated use `Product$Outbound` instead. */
348
+ export type Outbound = Product$Outbound;
354
349
  }
355
350
 
356
- export function productListToJSON(productList: ProductList): string {
357
- return JSON.stringify(ProductList$outboundSchema.parse(productList));
351
+ export function productToJSON(product: Product): string {
352
+ return JSON.stringify(Product$outboundSchema.parse(product));
358
353
  }
359
354
 
360
- export function productListFromJSON(
355
+ export function productFromJSON(
361
356
  jsonString: string,
362
- ): SafeParseResult<ProductList, SDKValidationError> {
357
+ ): SafeParseResult<Product, SDKValidationError> {
363
358
  return safeParse(
364
359
  jsonString,
365
- (x) => ProductList$inboundSchema.parse(JSON.parse(x)),
366
- `Failed to parse 'ProductList' from JSON`,
360
+ (x) => Product$inboundSchema.parse(JSON.parse(x)),
361
+ `Failed to parse 'Product' from JSON`,
367
362
  );
368
363
  }
@@ -112,7 +112,6 @@ export type ProductDetail = {
112
112
  */
113
113
  id?: string | undefined;
114
114
  name?: string | undefined;
115
- description?: string | undefined;
116
115
  shortDescription?: string | undefined;
117
116
  productType?: ProductDetailProductType | undefined;
118
117
  active?: boolean | undefined;
@@ -138,6 +137,7 @@ export type ProductDetail = {
138
137
  hsnCode?: string | undefined;
139
138
  createdAt?: Date | undefined;
140
139
  modifiedAt?: Date | undefined;
140
+ description?: string | undefined;
141
141
  videos?: Array<ProductVideo> | undefined;
142
142
  promotion?: Array<ProductPromotion> | undefined;
143
143
  subscription?: Array<ProductSubscription> | undefined;
@@ -156,7 +156,7 @@ export type ProductDetail = {
156
156
  salesChannels?: Array<SalesChannel> | undefined;
157
157
  metadata?: Array<ProductDetailMetadata> | null | undefined;
158
158
  seo?: Seo | undefined;
159
- reviewsTags?: Array<string> | undefined;
159
+ reviewsTags?: Array<string> | null | undefined;
160
160
  };
161
161
 
162
162
  /** @internal */
@@ -314,7 +314,6 @@ export const ProductDetail$inboundSchema: z.ZodType<
314
314
  > = z.object({
315
315
  id: z.string().optional(),
316
316
  name: z.string().optional(),
317
- description: z.string().optional(),
318
317
  short_description: z.string().optional(),
319
318
  product_type: ProductDetailProductType$inboundSchema.optional(),
320
319
  active: z.boolean().default(true),
@@ -341,6 +340,7 @@ export const ProductDetail$inboundSchema: z.ZodType<
341
340
  .optional(),
342
341
  modified_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
343
342
  .optional(),
343
+ description: z.string().optional(),
344
344
  videos: z.array(ProductVideo$inboundSchema).optional(),
345
345
  promotion: z.array(ProductPromotion$inboundSchema).optional(),
346
346
  subscription: z.array(ProductSubscription$inboundSchema).optional(),
@@ -355,7 +355,7 @@ export const ProductDetail$inboundSchema: z.ZodType<
355
355
  z.array(z.lazy(() => ProductDetailMetadata$inboundSchema)),
356
356
  ).optional(),
357
357
  seo: Seo$inboundSchema.optional(),
358
- reviews_tags: z.array(z.string()).optional(),
358
+ reviews_tags: z.nullable(z.array(z.string())).optional(),
359
359
  }).transform((v) => {
360
360
  return remap$(v, {
361
361
  "short_description": "shortDescription",
@@ -385,7 +385,6 @@ export const ProductDetail$inboundSchema: z.ZodType<
385
385
  export type ProductDetail$Outbound = {
386
386
  id?: string | undefined;
387
387
  name?: string | undefined;
388
- description?: string | undefined;
389
388
  short_description?: string | undefined;
390
389
  product_type?: string | undefined;
391
390
  active: boolean;
@@ -411,6 +410,7 @@ export type ProductDetail$Outbound = {
411
410
  hsn_code?: string | undefined;
412
411
  created_at?: string | undefined;
413
412
  modified_at?: string | undefined;
413
+ description?: string | undefined;
414
414
  videos?: Array<ProductVideo$Outbound> | undefined;
415
415
  promotion?: Array<ProductPromotion$Outbound> | undefined;
416
416
  subscription?: Array<ProductSubscription$Outbound> | undefined;
@@ -423,7 +423,7 @@ export type ProductDetail$Outbound = {
423
423
  sales_channels?: Array<SalesChannel$Outbound> | undefined;
424
424
  metadata?: Array<ProductDetailMetadata$Outbound> | null | undefined;
425
425
  seo?: Seo$Outbound | undefined;
426
- reviews_tags?: Array<string> | undefined;
426
+ reviews_tags?: Array<string> | null | undefined;
427
427
  };
428
428
 
429
429
  /** @internal */
@@ -434,7 +434,6 @@ export const ProductDetail$outboundSchema: z.ZodType<
434
434
  > = z.object({
435
435
  id: z.string().optional(),
436
436
  name: z.string().optional(),
437
- description: z.string().optional(),
438
437
  shortDescription: z.string().optional(),
439
438
  productType: ProductDetailProductType$outboundSchema.optional(),
440
439
  active: z.boolean().default(true),
@@ -459,6 +458,7 @@ export const ProductDetail$outboundSchema: z.ZodType<
459
458
  hsnCode: z.string().optional(),
460
459
  createdAt: z.date().transform(v => v.toISOString()).optional(),
461
460
  modifiedAt: z.date().transform(v => v.toISOString()).optional(),
461
+ description: z.string().optional(),
462
462
  videos: z.array(ProductVideo$outboundSchema).optional(),
463
463
  promotion: z.array(ProductPromotion$outboundSchema).optional(),
464
464
  subscription: z.array(ProductSubscription$outboundSchema).optional(),
@@ -473,7 +473,7 @@ export const ProductDetail$outboundSchema: z.ZodType<
473
473
  z.array(z.lazy(() => ProductDetailMetadata$outboundSchema)),
474
474
  ).optional(),
475
475
  seo: Seo$outboundSchema.optional(),
476
- reviewsTags: z.array(z.string()).optional(),
476
+ reviewsTags: z.nullable(z.array(z.string())).optional(),
477
477
  }).transform((v) => {
478
478
  return remap$(v, {
479
479
  shortDescription: "short_description",
@@ -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
  }