ce-storefront 0.22.2 → 0.22.4
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/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/sdks.js +2 -2
- package/esm/lib/sdks.js.map +1 -1
- package/esm/models/components/juspaycarddetail.d.ts +13 -0
- package/esm/models/components/juspaycarddetail.d.ts.map +1 -1
- package/esm/models/components/juspaycarddetail.js +10 -10
- package/esm/models/components/juspaycarddetail.js.map +1 -1
- package/esm/models/components/juspayexpresscheckout.d.ts +2 -2
- package/esm/models/components/juspayexpresscheckout.d.ts.map +1 -1
- package/esm/models/components/juspayexpresscheckout.js +1 -1
- package/esm/models/components/juspayexpresscheckout.js.map +1 -1
- package/esm/models/components/juspayexpresscheckoutresponse.d.ts +29 -0
- package/esm/models/components/juspayexpresscheckoutresponse.d.ts.map +1 -1
- package/esm/models/components/juspayexpresscheckoutresponse.js +27 -0
- package/esm/models/components/juspayexpresscheckoutresponse.js.map +1 -1
- package/esm/models/components/juspayhypercheckout.d.ts +18 -0
- package/esm/models/components/juspayhypercheckout.d.ts.map +1 -1
- package/esm/models/components/juspayhypercheckout.js +3 -0
- package/esm/models/components/juspayhypercheckout.js.map +1 -1
- package/esm/models/components/juspaynetbanking.d.ts +9 -4
- package/esm/models/components/juspaynetbanking.d.ts.map +1 -1
- package/esm/models/components/juspaynetbanking.js +0 -4
- package/esm/models/components/juspaynetbanking.js.map +1 -1
- package/esm/models/components/juspaynewcard.d.ts +12 -16
- package/esm/models/components/juspaynewcard.d.ts.map +1 -1
- package/esm/models/components/juspaynewcard.js +0 -14
- package/esm/models/components/juspaynewcard.js.map +1 -1
- package/esm/models/components/juspaysavedcardtoken.d.ts +37 -10
- package/esm/models/components/juspaysavedcardtoken.d.ts.map +1 -1
- package/esm/models/components/juspaysavedcardtoken.js +12 -9
- package/esm/models/components/juspaysavedcardtoken.js.map +1 -1
- package/esm/models/components/juspayupicollect.d.ts +9 -4
- package/esm/models/components/juspayupicollect.d.ts.map +1 -1
- package/esm/models/components/juspayupicollect.js +0 -4
- package/esm/models/components/juspayupicollect.js.map +1 -1
- package/esm/models/components/juspayupiintent.d.ts +9 -6
- package/esm/models/components/juspayupiintent.d.ts.map +1 -1
- package/esm/models/components/juspayupiintent.js +0 -6
- package/esm/models/components/juspayupiintent.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +2 -2
- package/src/models/components/juspaycarddetail.ts +92 -69
- package/src/models/components/juspayexpresscheckout.ts +3 -3
- package/src/models/components/juspayexpresscheckoutresponse.ts +66 -0
- package/src/models/components/juspayhypercheckout.ts +18 -0
- package/src/models/components/juspaynetbanking.ts +9 -8
- package/src/models/components/juspaynewcard.ts +12 -28
- package/src/models/components/juspaysavedcardtoken.ts +40 -21
- package/src/models/components/juspayupicollect.ts +9 -8
- package/src/models/components/juspayupiintent.ts +9 -12
|
@@ -9,12 +9,19 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
9
9
|
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/JuspayUpiCollect} - API reference for the JuspayUpiCollect schema
|
|
10
10
|
*/
|
|
11
11
|
export type JuspayUpiCollect = {
|
|
12
|
+
/**
|
|
13
|
+
* The slug of the payment provider in Commerce Engine.
|
|
14
|
+
*/
|
|
12
15
|
paymentProviderSlug: string;
|
|
13
16
|
integrationType: "express-checkout";
|
|
17
|
+
/**
|
|
18
|
+
* The reference ID of the payment gateway. When provided, payments will always be routed through this gateway.
|
|
19
|
+
*/
|
|
14
20
|
gatewayReferenceId: string;
|
|
21
|
+
/**
|
|
22
|
+
* The URL to which the customer will be redirected after the payment is complete.
|
|
23
|
+
*/
|
|
15
24
|
returnUrl: string;
|
|
16
|
-
redirectAfterPayment?: boolean | undefined;
|
|
17
|
-
getClientAuthToken?: boolean | undefined;
|
|
18
25
|
paymentMethodType: "UPI";
|
|
19
26
|
paymentMethod: "UPI_COLLECT";
|
|
20
27
|
upiVpa: string;
|
|
@@ -26,8 +33,6 @@ export type JuspayUpiCollect$Outbound = {
|
|
|
26
33
|
integration_type: "express-checkout";
|
|
27
34
|
gateway_reference_id: string;
|
|
28
35
|
return_url: string;
|
|
29
|
-
redirect_after_payment?: boolean | undefined;
|
|
30
|
-
get_client_auth_token?: boolean | undefined;
|
|
31
36
|
payment_method_type: "UPI";
|
|
32
37
|
payment_method: "UPI_COLLECT";
|
|
33
38
|
upi_vpa: string;
|
|
@@ -43,8 +48,6 @@ export const JuspayUpiCollect$outboundSchema: z.ZodType<
|
|
|
43
48
|
integrationType: z.literal("express-checkout"),
|
|
44
49
|
gatewayReferenceId: z.string(),
|
|
45
50
|
returnUrl: z.string(),
|
|
46
|
-
redirectAfterPayment: z.boolean().optional(),
|
|
47
|
-
getClientAuthToken: z.boolean().optional(),
|
|
48
51
|
paymentMethodType: z.literal("UPI"),
|
|
49
52
|
paymentMethod: z.literal("UPI_COLLECT"),
|
|
50
53
|
upiVpa: z.string(),
|
|
@@ -54,8 +57,6 @@ export const JuspayUpiCollect$outboundSchema: z.ZodType<
|
|
|
54
57
|
integrationType: "integration_type",
|
|
55
58
|
gatewayReferenceId: "gateway_reference_id",
|
|
56
59
|
returnUrl: "return_url",
|
|
57
|
-
redirectAfterPayment: "redirect_after_payment",
|
|
58
|
-
getClientAuthToken: "get_client_auth_token",
|
|
59
60
|
paymentMethodType: "payment_method_type",
|
|
60
61
|
paymentMethod: "payment_method",
|
|
61
62
|
upiVpa: "upi_vpa",
|
|
@@ -9,15 +9,21 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
9
9
|
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/JuspayUpiIntent} - API reference for the JuspayUpiIntent schema
|
|
10
10
|
*/
|
|
11
11
|
export type JuspayUpiIntent = {
|
|
12
|
+
/**
|
|
13
|
+
* The slug of the payment provider in Commerce Engine.
|
|
14
|
+
*/
|
|
12
15
|
paymentProviderSlug: string;
|
|
13
16
|
integrationType: "express-checkout";
|
|
17
|
+
/**
|
|
18
|
+
* The reference ID of the payment gateway. When provided, payments will always be routed through this gateway.
|
|
19
|
+
*/
|
|
14
20
|
gatewayReferenceId: string;
|
|
21
|
+
/**
|
|
22
|
+
* The URL to which the customer will be redirected after the payment is complete.
|
|
23
|
+
*/
|
|
15
24
|
returnUrl: string;
|
|
16
|
-
redirectAfterPayment?: boolean | undefined;
|
|
17
|
-
getClientAuthToken?: boolean | undefined;
|
|
18
25
|
paymentMethodType: "UPI";
|
|
19
26
|
paymentMethod: "UPI_PAY";
|
|
20
|
-
sdkParams: boolean;
|
|
21
27
|
upiApp: string;
|
|
22
28
|
};
|
|
23
29
|
|
|
@@ -27,11 +33,8 @@ export type JuspayUpiIntent$Outbound = {
|
|
|
27
33
|
integration_type: "express-checkout";
|
|
28
34
|
gateway_reference_id: string;
|
|
29
35
|
return_url: string;
|
|
30
|
-
redirect_after_payment?: boolean | undefined;
|
|
31
|
-
get_client_auth_token?: boolean | undefined;
|
|
32
36
|
payment_method_type: "UPI";
|
|
33
37
|
payment_method: "UPI_PAY";
|
|
34
|
-
sdk_params: boolean;
|
|
35
38
|
upi_app: string;
|
|
36
39
|
};
|
|
37
40
|
|
|
@@ -45,11 +48,8 @@ export const JuspayUpiIntent$outboundSchema: z.ZodType<
|
|
|
45
48
|
integrationType: z.literal("express-checkout"),
|
|
46
49
|
gatewayReferenceId: z.string(),
|
|
47
50
|
returnUrl: z.string(),
|
|
48
|
-
redirectAfterPayment: z.boolean().optional(),
|
|
49
|
-
getClientAuthToken: z.boolean().optional(),
|
|
50
51
|
paymentMethodType: z.literal("UPI"),
|
|
51
52
|
paymentMethod: z.literal("UPI_PAY"),
|
|
52
|
-
sdkParams: z.boolean(),
|
|
53
53
|
upiApp: z.string(),
|
|
54
54
|
}).transform((v) => {
|
|
55
55
|
return remap$(v, {
|
|
@@ -57,11 +57,8 @@ export const JuspayUpiIntent$outboundSchema: z.ZodType<
|
|
|
57
57
|
integrationType: "integration_type",
|
|
58
58
|
gatewayReferenceId: "gateway_reference_id",
|
|
59
59
|
returnUrl: "return_url",
|
|
60
|
-
redirectAfterPayment: "redirect_after_payment",
|
|
61
|
-
getClientAuthToken: "get_client_auth_token",
|
|
62
60
|
paymentMethodType: "payment_method_type",
|
|
63
61
|
paymentMethod: "payment_method",
|
|
64
|
-
sdkParams: "sdk_params",
|
|
65
62
|
upiApp: "upi_app",
|
|
66
63
|
});
|
|
67
64
|
});
|