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.
- 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 +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/models/components/anonymoususer.d.ts +87 -0
- package/esm/models/components/anonymoususer.d.ts.map +1 -0
- package/esm/models/components/anonymoususer.js +78 -0
- package/esm/models/components/anonymoususer.js.map +1 -0
- 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 +3 -3
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +3 -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/postauthanonymous.d.ts +2 -2
- package/esm/models/operations/postauthanonymous.d.ts.map +1 -1
- package/esm/models/operations/postauthanonymous.js +2 -2
- package/esm/models/operations/postauthanonymous.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 +3 -3
- package/src/models/components/anonymoususer.ts +167 -0
- 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 +3 -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/postauthanonymous.ts +4 -4
- 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
|
@@ -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
|
}
|
|
@@ -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?:
|
|
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:
|
|
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?:
|
|
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:
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
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:
|
|
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
|
|
46
|
-
|
|
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
|
|
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
|
|
74
|
-
|
|
73
|
+
export const PostCartItemIdAddToCartItem$outboundSchema: z.ZodType<
|
|
74
|
+
PostCartItemIdAddToCartItem$Outbound,
|
|
75
75
|
z.ZodTypeDef,
|
|
76
|
-
|
|
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
|
|
96
|
-
/** @deprecated use `
|
|
97
|
-
export const inboundSchema =
|
|
98
|
-
/** @deprecated use `
|
|
99
|
-
export const outboundSchema =
|
|
100
|
-
/** @deprecated use `
|
|
101
|
-
export type 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
|
|
105
|
-
|
|
104
|
+
export function postCartItemIdAddToCartItemToJSON(
|
|
105
|
+
postCartItemIdAddToCartItem: PostCartItemIdAddToCartItem,
|
|
106
106
|
): string {
|
|
107
107
|
return JSON.stringify(
|
|
108
|
-
|
|
108
|
+
PostCartItemIdAddToCartItem$outboundSchema.parse(
|
|
109
|
+
postCartItemIdAddToCartItem,
|
|
110
|
+
),
|
|
109
111
|
);
|
|
110
112
|
}
|
|
111
113
|
|
|
112
|
-
export function
|
|
114
|
+
export function postCartItemIdAddToCartItemFromJSON(
|
|
113
115
|
jsonString: string,
|
|
114
|
-
): SafeParseResult<
|
|
116
|
+
): SafeParseResult<PostCartItemIdAddToCartItem, SDKValidationError> {
|
|
115
117
|
return safeParse(
|
|
116
118
|
jsonString,
|
|
117
|
-
(x) =>
|
|
118
|
-
`Failed to parse '
|
|
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(() =>
|
|
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:
|
|
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(() =>
|
|
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
|
|
10
|
+
export class CeStorefrontOrdersPayments extends ClientSDK {
|
|
11
11
|
/**
|
|
12
12
|
* Retrieve order payments
|
|
13
13
|
*
|