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.
- package/README.md +26 -37
- package/docs/sdks/{cestorefrontpayments → cestorefrontorderspayments}/README.md +1 -1
- package/docs/sdks/customers/README.md +236 -0
- package/docs/sdks/{paymentsapijuspay → juspay}/README.md +12 -12
- package/docs/sdks/orders/README.md +80 -1
- package/docs/sdks/payments/README.md +242 -2
- package/docs/sdks/products/README.md +1 -1
- package/esm/funcs/catalogProductsGet.d.ts +1 -1
- package/esm/funcs/catalogProductsGet.js +1 -1
- package/esm/funcs/{customersAPIGetCustomersId.d.ts → customersGetCustomersId.d.ts} +2 -2
- package/esm/funcs/customersGetCustomersId.d.ts.map +1 -0
- package/esm/funcs/{customersAPIGetCustomersId.js → customersGetCustomersId.js} +2 -2
- package/esm/funcs/customersGetCustomersId.js.map +1 -0
- package/esm/funcs/{customersAPIPostCustomers.d.ts → customersPostCustomers.d.ts} +2 -2
- package/esm/funcs/customersPostCustomers.d.ts.map +1 -0
- package/esm/funcs/{customersAPIPostCustomers.js → customersPostCustomers.js} +2 -2
- package/esm/funcs/customersPostCustomers.js.map +1 -0
- package/esm/funcs/{customersAPIPutCustomersId.d.ts → customersPutCustomersId.d.ts} +2 -2
- package/esm/funcs/customersPutCustomersId.d.ts.map +1 -0
- package/esm/funcs/{customersAPIPutCustomersId.js → customersPutCustomersId.js} +2 -2
- package/esm/funcs/{customersAPIPostCustomers.js.map → customersPutCustomersId.js.map} +1 -1
- package/esm/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.d.ts → juspayGetPaymentsJuspayCustomer.d.ts} +2 -2
- package/esm/funcs/juspayGetPaymentsJuspayCustomer.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.js → juspayGetPaymentsJuspayCustomer.js} +2 -2
- package/esm/funcs/juspayGetPaymentsJuspayCustomer.js.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.d.ts → juspayPostPaymentsJuspayCreateCustomer.d.ts} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.js → juspayPostPaymentsJuspayCreateCustomer.js} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.js.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.d.ts → juspayPostPaymentsJuspayCreateOrder.d.ts} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.js → juspayPostPaymentsJuspayCreateOrder.js} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.js.map +1 -0
- package/esm/funcs/{ordersAPIGetOrdersIdPaymentStatus.d.ts → ordersGetOrdersIdPaymentStatus.d.ts} +2 -2
- package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts.map +1 -0
- package/esm/funcs/{ordersAPIGetOrdersIdPaymentStatus.js → ordersGetOrdersIdPaymentStatus.js} +2 -2
- package/esm/funcs/ordersGetOrdersIdPaymentStatus.js.map +1 -0
- package/esm/funcs/paymentsGetMethods.d.ts +1 -1
- package/esm/funcs/paymentsGetMethods.d.ts.map +1 -1
- package/esm/funcs/paymentsGetMethods.js +3 -3
- package/esm/funcs/paymentsGetMethods.js.map +1 -1
- package/esm/funcs/{paymentsAPIGetPaymentsCards.d.ts → paymentsGetPaymentsCards.d.ts} +2 -2
- package/esm/funcs/paymentsGetPaymentsCards.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIGetPaymentsCards.js → paymentsGetPaymentsCards.js} +2 -2
- package/esm/funcs/paymentsGetPaymentsCards.js.map +1 -0
- package/esm/funcs/{paymentsAPIGetPaymentsVerifyVpa.d.ts → paymentsGetPaymentsVerifyVpa.d.ts} +2 -2
- package/esm/funcs/paymentsGetPaymentsVerifyVpa.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIGetPaymentsVerifyVpa.js → paymentsGetPaymentsVerifyVpa.js} +2 -2
- package/esm/funcs/paymentsGetPaymentsVerifyVpa.js.map +1 -0
- package/esm/funcs/{paymentsAPIPostPaymentsCards.d.ts → paymentsPostPaymentsCards.d.ts} +2 -2
- package/esm/funcs/paymentsPostPaymentsCards.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIPostPaymentsCards.js → paymentsPostPaymentsCards.js} +2 -2
- package/esm/funcs/paymentsPostPaymentsCards.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/components/cart.d.ts +1 -1
- package/esm/models/components/cart.d.ts.map +1 -1
- package/esm/models/components/cart.js +1 -1
- package/esm/models/components/cart.js.map +1 -1
- package/esm/models/components/createcustomer.d.ts +1 -1
- package/esm/models/components/createcustomer.d.ts.map +1 -1
- package/esm/models/components/createcustomer.js +1 -1
- package/esm/models/components/createcustomer.js.map +1 -1
- package/esm/models/components/{customeraddressinput.d.ts → customeraddress.d.ts} +33 -33
- package/esm/models/components/customeraddress.d.ts.map +1 -0
- package/esm/models/components/{customeraddressinput.js → customeraddress.js} +37 -37
- package/esm/models/components/customeraddress.js.map +1 -0
- package/esm/models/components/freegoodspromotion.d.ts +2 -2
- package/esm/models/components/freegoodspromotion.d.ts.map +1 -1
- package/esm/models/components/freegoodspromotion.js +2 -2
- package/esm/models/components/freegoodspromotion.js.map +1 -1
- package/esm/models/components/index.d.ts +2 -3
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +2 -3
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/orderdetail.d.ts +1 -1
- package/esm/models/components/orderdetail.d.ts.map +1 -1
- package/esm/models/components/orderdetail.js +1 -1
- package/esm/models/components/orderdetail.js.map +1 -1
- package/esm/models/components/{productlist.d.ts → product.d.ts} +14 -16
- package/esm/models/components/product.d.ts.map +1 -0
- package/esm/models/components/{productlist.js → product.js} +16 -20
- package/esm/models/components/product.js.map +1 -0
- package/esm/models/components/productdetail.d.ts +4 -4
- package/esm/models/components/productdetail.d.ts.map +1 -1
- package/esm/models/components/productdetail.js +4 -4
- package/esm/models/components/productdetail.js.map +1 -1
- package/esm/models/components/productlistresponse.d.ts +3 -3
- package/esm/models/components/productlistresponse.d.ts.map +1 -1
- package/esm/models/components/productlistresponse.js +3 -3
- package/esm/models/components/productlistresponse.js.map +1 -1
- package/esm/models/components/productpromotion.d.ts +11 -5
- package/esm/models/components/productpromotion.d.ts.map +1 -1
- package/esm/models/operations/getpaymentmethods.d.ts +143 -0
- package/esm/models/operations/getpaymentmethods.d.ts.map +1 -0
- package/esm/models/operations/{getpaymentspaymentmethods.js → getpaymentmethods.js} +42 -44
- package/esm/models/operations/getpaymentmethods.js.map +1 -0
- package/esm/models/operations/getsimilar.d.ts +2 -27
- package/esm/models/operations/getsimilar.d.ts.map +1 -1
- package/esm/models/operations/getsimilar.js +2 -27
- package/esm/models/operations/getsimilar.js.map +1 -1
- package/esm/models/operations/index.d.ts +1 -2
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +1 -2
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/postcartitemid.d.ts +15 -15
- package/esm/models/operations/postcartitemid.d.ts.map +1 -1
- package/esm/models/operations/postcartitemid.js +15 -15
- package/esm/models/operations/postcartitemid.js.map +1 -1
- package/esm/sdk/{cestorefrontpayments.d.ts → cestorefrontorderspayments.d.ts} +2 -2
- package/esm/sdk/cestorefrontorderspayments.d.ts.map +1 -0
- package/esm/sdk/{cestorefrontpayments.js → cestorefrontorderspayments.js} +2 -2
- package/esm/sdk/cestorefrontorderspayments.js.map +1 -0
- package/esm/sdk/customers.d.ts +24 -1
- package/esm/sdk/customers.d.ts.map +1 -1
- package/esm/sdk/customers.js +31 -0
- package/esm/sdk/customers.js.map +1 -1
- package/esm/sdk/{paymentsapijuspay.d.ts → juspay.d.ts} +2 -2
- package/esm/sdk/juspay.d.ts.map +1 -0
- package/esm/sdk/{paymentsapijuspay.js → juspay.js} +8 -8
- package/esm/sdk/juspay.js.map +1 -0
- package/esm/sdk/orders.d.ts +9 -2
- package/esm/sdk/orders.d.ts.map +1 -1
- package/esm/sdk/orders.js +12 -2
- package/esm/sdk/orders.js.map +1 -1
- package/esm/sdk/payments.d.ts +23 -1
- package/esm/sdk/payments.d.ts.map +1 -1
- package/esm/sdk/payments.js +31 -0
- package/esm/sdk/payments.js.map +1 -1
- package/esm/sdk/products.d.ts +1 -1
- package/esm/sdk/products.js +1 -1
- package/esm/sdk/sdk.d.ts +3 -12
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +3 -15
- package/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/catalogProductsGet.ts +1 -1
- package/src/funcs/{customersAPIGetCustomersId.ts → customersGetCustomersId.ts} +1 -1
- package/src/funcs/{customersAPIPostCustomers.ts → customersPostCustomers.ts} +1 -1
- package/src/funcs/{customersAPIPutCustomersId.ts → customersPutCustomersId.ts} +1 -1
- package/src/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.ts → juspayGetPaymentsJuspayCustomer.ts} +1 -1
- package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.ts → juspayPostPaymentsJuspayCreateCustomer.ts} +1 -1
- package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.ts → juspayPostPaymentsJuspayCreateOrder.ts} +1 -1
- package/src/funcs/{ordersAPIGetOrdersIdPaymentStatus.ts → ordersGetOrdersIdPaymentStatus.ts} +1 -1
- package/src/funcs/paymentsGetMethods.ts +6 -7
- package/src/funcs/{paymentsAPIGetPaymentsCards.ts → paymentsGetPaymentsCards.ts} +1 -1
- package/src/funcs/{paymentsAPIGetPaymentsVerifyVpa.ts → paymentsGetPaymentsVerifyVpa.ts} +1 -1
- package/src/funcs/{paymentsAPIPostPaymentsCards.ts → paymentsPostPaymentsCards.ts} +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/cart.ts +1 -1
- package/src/models/components/createcustomer.ts +1 -1
- package/src/models/components/freegoodspromotion.ts +4 -4
- package/src/models/components/index.ts +2 -3
- package/src/models/components/orderdetail.ts +1 -1
- package/src/models/components/{productlist.ts → product.ts} +73 -78
- package/src/models/components/productdetail.ts +8 -8
- package/src/models/components/productlistresponse.ts +9 -9
- package/src/models/operations/{getpaymentspaymentmethods.ts → getpaymentmethods.ts} +68 -77
- package/src/models/operations/getsimilar.ts +4 -62
- package/src/models/operations/index.ts +1 -2
- package/src/models/operations/postcartitemid.ts +27 -25
- package/src/sdk/{cestorefrontpayments.ts → cestorefrontorderspayments.ts} +1 -1
- package/src/sdk/customers.ts +58 -1
- package/src/sdk/{paymentsapijuspay.ts → juspay.ts} +7 -7
- package/src/sdk/orders.ts +22 -4
- package/src/sdk/payments.ts +57 -2
- package/src/sdk/products.ts +1 -1
- package/src/sdk/sdk.ts +4 -22
- package/docs/sdks/customersapi/README.md +0 -321
- package/docs/sdks/ordersapi/README.md +0 -86
- package/docs/sdks/paymentsapi/README.md +0 -247
- package/esm/funcs/customersAPIGetCustomersId.d.ts.map +0 -1
- package/esm/funcs/customersAPIGetCustomersId.js.map +0 -1
- package/esm/funcs/customersAPIGetRecommendedProducts.d.ts +0 -16
- package/esm/funcs/customersAPIGetRecommendedProducts.d.ts.map +0 -1
- package/esm/funcs/customersAPIGetRecommendedProducts.js +0 -80
- package/esm/funcs/customersAPIGetRecommendedProducts.js.map +0 -1
- package/esm/funcs/customersAPIPostCustomers.d.ts.map +0 -1
- package/esm/funcs/customersAPIPutCustomersId.d.ts.map +0 -1
- package/esm/funcs/customersAPIPutCustomersId.js.map +0 -1
- package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.d.ts.map +0 -1
- package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.js.map +0 -1
- package/esm/funcs/paymentsAPIGetPaymentsCards.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIGetPaymentsCards.js.map +0 -1
- package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.js.map +0 -1
- package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.js.map +0 -1
- package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.js.map +0 -1
- package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.js.map +0 -1
- package/esm/funcs/paymentsAPIPostPaymentsCards.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIPostPaymentsCards.js.map +0 -1
- package/esm/models/components/customeraddressinput.d.ts.map +0 -1
- package/esm/models/components/customeraddressinput.js.map +0 -1
- package/esm/models/components/productlist.d.ts.map +0 -1
- package/esm/models/components/productlist.js.map +0 -1
- package/esm/models/components/recommendedproduct.d.ts +0 -155
- package/esm/models/components/recommendedproduct.d.ts.map +0 -1
- package/esm/models/components/recommendedproduct.js +0 -193
- package/esm/models/components/recommendedproduct.js.map +0 -1
- package/esm/models/operations/getpaymentspaymentmethods.d.ts +0 -143
- package/esm/models/operations/getpaymentspaymentmethods.d.ts.map +0 -1
- package/esm/models/operations/getpaymentspaymentmethods.js.map +0 -1
- package/esm/models/operations/getrecommendedproducts.d.ts +0 -90
- package/esm/models/operations/getrecommendedproducts.d.ts.map +0 -1
- package/esm/models/operations/getrecommendedproducts.js +0 -87
- package/esm/models/operations/getrecommendedproducts.js.map +0 -1
- package/esm/sdk/cestorefrontpayments.d.ts.map +0 -1
- package/esm/sdk/cestorefrontpayments.js.map +0 -1
- package/esm/sdk/customersapi.d.ts +0 -34
- package/esm/sdk/customersapi.d.ts.map +0 -1
- package/esm/sdk/customersapi.js +0 -48
- package/esm/sdk/customersapi.js.map +0 -1
- package/esm/sdk/ordersapi.d.ts +0 -12
- package/esm/sdk/ordersapi.d.ts.map +0 -1
- package/esm/sdk/ordersapi.js +0 -18
- package/esm/sdk/ordersapi.js.map +0 -1
- package/esm/sdk/paymentsapi.d.ts +0 -27
- package/esm/sdk/paymentsapi.d.ts.map +0 -1
- package/esm/sdk/paymentsapi.js +0 -39
- package/esm/sdk/paymentsapi.js.map +0 -1
- package/esm/sdk/paymentsapijuspay.d.ts.map +0 -1
- package/esm/sdk/paymentsapijuspay.js.map +0 -1
- package/src/funcs/customersAPIGetRecommendedProducts.ts +0 -144
- package/src/models/components/recommendedproduct.ts +0 -385
- package/src/models/operations/getrecommendedproducts.ts +0 -206
- package/src/sdk/customersapi.ts +0 -82
- package/src/sdk/ordersapi.ts +0 -27
- package/src/sdk/paymentsapi.ts +0 -64
- 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
|
|
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
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
.optional(),
|
|
225
|
-
|
|
226
|
-
.optional(),
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
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
|
|
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
|
|
287
|
-
|
|
282
|
+
export const Product$outboundSchema: z.ZodType<
|
|
283
|
+
Product$Outbound,
|
|
288
284
|
z.ZodTypeDef,
|
|
289
|
-
|
|
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
|
|
348
|
-
/** @deprecated use `
|
|
349
|
-
export const inboundSchema =
|
|
350
|
-
/** @deprecated use `
|
|
351
|
-
export const outboundSchema =
|
|
352
|
-
/** @deprecated use `
|
|
353
|
-
export type 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
|
|
357
|
-
return JSON.stringify(
|
|
351
|
+
export function productToJSON(product: Product): string {
|
|
352
|
+
return JSON.stringify(Product$outboundSchema.parse(product));
|
|
358
353
|
}
|
|
359
354
|
|
|
360
|
-
export function
|
|
355
|
+
export function productFromJSON(
|
|
361
356
|
jsonString: string,
|
|
362
|
-
): SafeParseResult<
|
|
357
|
+
): SafeParseResult<Product, SDKValidationError> {
|
|
363
358
|
return safeParse(
|
|
364
359
|
jsonString,
|
|
365
|
-
(x) =>
|
|
366
|
-
`Failed to parse '
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
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<
|
|
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(
|
|
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<
|
|
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(
|
|
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
|
|
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
|
|
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
|
|
47
|
+
export type GetPaymentMethodsResponseBody = {
|
|
48
48
|
message?: string | undefined;
|
|
49
49
|
success?: boolean | undefined;
|
|
50
|
-
content?:
|
|
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
|
|
76
|
-
|
|
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
|
|
88
|
+
export type GetPaymentMethodsRequest$Outbound = {
|
|
89
89
|
payment_gateway: string;
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
/** @internal */
|
|
93
|
-
export const
|
|
94
|
-
|
|
93
|
+
export const GetPaymentMethodsRequest$outboundSchema: z.ZodType<
|
|
94
|
+
GetPaymentMethodsRequest$Outbound,
|
|
95
95
|
z.ZodTypeDef,
|
|
96
|
-
|
|
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
|
|
110
|
-
/** @deprecated use `
|
|
111
|
-
export const inboundSchema =
|
|
112
|
-
/** @deprecated use `
|
|
113
|
-
export const outboundSchema =
|
|
114
|
-
/** @deprecated use `
|
|
115
|
-
export type 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
|
|
119
|
-
|
|
118
|
+
export function getPaymentMethodsRequestToJSON(
|
|
119
|
+
getPaymentMethodsRequest: GetPaymentMethodsRequest,
|
|
120
120
|
): string {
|
|
121
121
|
return JSON.stringify(
|
|
122
|
-
|
|
123
|
-
getPaymentsPaymentMethodsRequest,
|
|
124
|
-
),
|
|
122
|
+
GetPaymentMethodsRequest$outboundSchema.parse(getPaymentMethodsRequest),
|
|
125
123
|
);
|
|
126
124
|
}
|
|
127
125
|
|
|
128
|
-
export function
|
|
126
|
+
export function getPaymentMethodsRequestFromJSON(
|
|
129
127
|
jsonString: string,
|
|
130
|
-
): SafeParseResult<
|
|
128
|
+
): SafeParseResult<GetPaymentMethodsRequest, SDKValidationError> {
|
|
131
129
|
return safeParse(
|
|
132
130
|
jsonString,
|
|
133
|
-
(x) =>
|
|
134
|
-
`Failed to parse '
|
|
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
|
|
192
|
-
|
|
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
|
|
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
|
|
220
|
-
|
|
217
|
+
export const GetPaymentMethodsContent$outboundSchema: z.ZodType<
|
|
218
|
+
GetPaymentMethodsContent$Outbound,
|
|
221
219
|
z.ZodTypeDef,
|
|
222
|
-
|
|
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
|
|
241
|
-
/** @deprecated use `
|
|
242
|
-
export const inboundSchema =
|
|
243
|
-
/** @deprecated use `
|
|
244
|
-
export const outboundSchema =
|
|
245
|
-
/** @deprecated use `
|
|
246
|
-
export type 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
|
|
250
|
-
|
|
247
|
+
export function getPaymentMethodsContentToJSON(
|
|
248
|
+
getPaymentMethodsContent: GetPaymentMethodsContent,
|
|
251
249
|
): string {
|
|
252
250
|
return JSON.stringify(
|
|
253
|
-
|
|
254
|
-
getPaymentsPaymentMethodsContent,
|
|
255
|
-
),
|
|
251
|
+
GetPaymentMethodsContent$outboundSchema.parse(getPaymentMethodsContent),
|
|
256
252
|
);
|
|
257
253
|
}
|
|
258
254
|
|
|
259
|
-
export function
|
|
255
|
+
export function getPaymentMethodsContentFromJSON(
|
|
260
256
|
jsonString: string,
|
|
261
|
-
): SafeParseResult<
|
|
257
|
+
): SafeParseResult<GetPaymentMethodsContent, SDKValidationError> {
|
|
262
258
|
return safeParse(
|
|
263
259
|
jsonString,
|
|
264
|
-
(x) =>
|
|
265
|
-
`Failed to parse '
|
|
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
|
|
271
|
-
|
|
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(() =>
|
|
278
|
-
.optional(),
|
|
273
|
+
content: z.lazy(() => GetPaymentMethodsContent$inboundSchema).optional(),
|
|
279
274
|
});
|
|
280
275
|
|
|
281
276
|
/** @internal */
|
|
282
|
-
export type
|
|
277
|
+
export type GetPaymentMethodsResponseBody$Outbound = {
|
|
283
278
|
message?: string | undefined;
|
|
284
279
|
success?: boolean | undefined;
|
|
285
|
-
content?:
|
|
280
|
+
content?: GetPaymentMethodsContent$Outbound | undefined;
|
|
286
281
|
};
|
|
287
282
|
|
|
288
283
|
/** @internal */
|
|
289
|
-
export const
|
|
290
|
-
|
|
284
|
+
export const GetPaymentMethodsResponseBody$outboundSchema: z.ZodType<
|
|
285
|
+
GetPaymentMethodsResponseBody$Outbound,
|
|
291
286
|
z.ZodTypeDef,
|
|
292
|
-
|
|
287
|
+
GetPaymentMethodsResponseBody
|
|
293
288
|
> = z.object({
|
|
294
289
|
message: z.string().optional(),
|
|
295
290
|
success: z.boolean().optional(),
|
|
296
|
-
content: z.lazy(() =>
|
|
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
|
|
305
|
-
/** @deprecated use `
|
|
306
|
-
export const inboundSchema =
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
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
|
|
316
|
-
|
|
307
|
+
export function getPaymentMethodsResponseBodyToJSON(
|
|
308
|
+
getPaymentMethodsResponseBody: GetPaymentMethodsResponseBody,
|
|
317
309
|
): string {
|
|
318
310
|
return JSON.stringify(
|
|
319
|
-
|
|
320
|
-
|
|
311
|
+
GetPaymentMethodsResponseBody$outboundSchema.parse(
|
|
312
|
+
getPaymentMethodsResponseBody,
|
|
321
313
|
),
|
|
322
314
|
);
|
|
323
315
|
}
|
|
324
316
|
|
|
325
|
-
export function
|
|
317
|
+
export function getPaymentMethodsResponseBodyFromJSON(
|
|
326
318
|
jsonString: string,
|
|
327
|
-
): SafeParseResult<
|
|
319
|
+
): SafeParseResult<GetPaymentMethodsResponseBody, SDKValidationError> {
|
|
328
320
|
return safeParse(
|
|
329
321
|
jsonString,
|
|
330
|
-
(x) =>
|
|
331
|
-
|
|
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
|
}
|