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
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
export declare const PaymentMethod: {
|
|
4
|
-
readonly Visa: "VISA";
|
|
5
|
-
readonly Master: "MASTER";
|
|
6
|
-
};
|
|
7
|
-
export type PaymentMethod = ClosedEnum<typeof PaymentMethod>;
|
|
8
2
|
/**
|
|
9
3
|
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/JusPayNewCard} - API reference for the JusPayNewCard schema
|
|
10
4
|
*/
|
|
11
5
|
export type JusPayNewCard = {
|
|
6
|
+
/**
|
|
7
|
+
* The slug of the payment provider in Commerce Engine.
|
|
8
|
+
*/
|
|
12
9
|
paymentProviderSlug: string;
|
|
13
10
|
integrationType: "express-checkout";
|
|
11
|
+
/**
|
|
12
|
+
* The reference ID of the payment gateway. When provided, payments will always be routed through this gateway.
|
|
13
|
+
*/
|
|
14
14
|
gatewayReferenceId: string;
|
|
15
|
+
/**
|
|
16
|
+
* The URL to which the customer will be redirected after the payment is complete.
|
|
17
|
+
*/
|
|
15
18
|
returnUrl: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Whether to save the card to the locker. If true, the card will be saved to the locker and can be used for future payments as per RBI regulations.
|
|
21
|
+
*/
|
|
19
22
|
saveToLocker: boolean;
|
|
20
23
|
paymentMethodType: "CARD";
|
|
21
|
-
paymentMethod: PaymentMethod;
|
|
22
24
|
cardNumber: string;
|
|
23
25
|
cardExpMonth: string;
|
|
24
26
|
cardExpYear: string;
|
|
@@ -26,19 +28,13 @@ export type JusPayNewCard = {
|
|
|
26
28
|
cardSecurityCode: string;
|
|
27
29
|
};
|
|
28
30
|
/** @internal */
|
|
29
|
-
export declare const PaymentMethod$outboundSchema: z.ZodNativeEnum<typeof PaymentMethod>;
|
|
30
|
-
/** @internal */
|
|
31
31
|
export type JusPayNewCard$Outbound = {
|
|
32
32
|
payment_provider_slug: string;
|
|
33
33
|
integration_type: "express-checkout";
|
|
34
34
|
gateway_reference_id: string;
|
|
35
35
|
return_url: string;
|
|
36
|
-
redirect_after_payment?: boolean | undefined;
|
|
37
|
-
get_client_auth_token?: boolean | undefined;
|
|
38
|
-
auth_type: "OTP";
|
|
39
36
|
save_to_locker: boolean;
|
|
40
37
|
payment_method_type: "CARD";
|
|
41
|
-
payment_method: string;
|
|
42
38
|
card_number: string;
|
|
43
39
|
card_exp_month: string;
|
|
44
40
|
card_exp_year: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"juspaynewcard.d.ts","sourceRoot":"","sources":["../../../src/models/components/juspaynewcard.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"juspaynewcard.d.ts","sourceRoot":"","sources":["../../../src/models/components/juspaynewcard.ts"],"names":[],"mappings":"AAIA,OAAO,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7
|
-
Visa: "VISA",
|
|
8
|
-
Master: "MASTER",
|
|
9
|
-
};
|
|
10
|
-
/** @internal */
|
|
11
|
-
export const PaymentMethod$outboundSchema = z.nativeEnum(PaymentMethod);
|
|
12
6
|
/** @internal */
|
|
13
7
|
export const JusPayNewCard$outboundSchema = z.object({
|
|
14
8
|
paymentProviderSlug: z.string(),
|
|
15
9
|
integrationType: z.literal("express-checkout"),
|
|
16
10
|
gatewayReferenceId: z.string(),
|
|
17
11
|
returnUrl: z.string(),
|
|
18
|
-
redirectAfterPayment: z.boolean().optional(),
|
|
19
|
-
getClientAuthToken: z.boolean().optional(),
|
|
20
|
-
authType: z.literal("OTP"),
|
|
21
12
|
saveToLocker: z.boolean(),
|
|
22
13
|
paymentMethodType: z.literal("CARD"),
|
|
23
|
-
paymentMethod: PaymentMethod$outboundSchema,
|
|
24
14
|
cardNumber: z.string(),
|
|
25
15
|
cardExpMonth: z.string(),
|
|
26
16
|
cardExpYear: z.string(),
|
|
@@ -32,12 +22,8 @@ export const JusPayNewCard$outboundSchema = z.object({
|
|
|
32
22
|
integrationType: "integration_type",
|
|
33
23
|
gatewayReferenceId: "gateway_reference_id",
|
|
34
24
|
returnUrl: "return_url",
|
|
35
|
-
redirectAfterPayment: "redirect_after_payment",
|
|
36
|
-
getClientAuthToken: "get_client_auth_token",
|
|
37
|
-
authType: "auth_type",
|
|
38
25
|
saveToLocker: "save_to_locker",
|
|
39
26
|
paymentMethodType: "payment_method_type",
|
|
40
|
-
paymentMethod: "payment_method",
|
|
41
27
|
cardNumber: "card_number",
|
|
42
28
|
cardExpMonth: "card_exp_month",
|
|
43
29
|
cardExpYear: "card_exp_year",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"juspaynewcard.js","sourceRoot":"","sources":["../../../src/models/components/juspaynewcard.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MA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ACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,mBAAmB,CAAC,aAA4B;IAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,4BAA4B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC"}
|
|
@@ -1,38 +1,65 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
2
|
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Payment method of the card. Please check which payment method is supported by the gateway.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PaymentMethod: {
|
|
4
7
|
readonly Visa: "VISA";
|
|
5
8
|
readonly Master: "MASTER";
|
|
9
|
+
readonly Rupay: "RUPAY";
|
|
10
|
+
readonly Amex: "AMEX";
|
|
11
|
+
readonly Diners: "DINERS";
|
|
12
|
+
readonly Discover: "DISCOVER";
|
|
13
|
+
readonly Jcb: "JCB";
|
|
14
|
+
readonly Maestro: "MAESTRO";
|
|
6
15
|
};
|
|
7
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Payment method of the card. Please check which payment method is supported by the gateway.
|
|
18
|
+
*/
|
|
19
|
+
export type PaymentMethod = ClosedEnum<typeof PaymentMethod>;
|
|
8
20
|
/**
|
|
9
21
|
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/JusPaySavedCardToken} - API reference for the JusPaySavedCardToken schema
|
|
10
22
|
*/
|
|
11
23
|
export type JusPaySavedCardToken = {
|
|
24
|
+
/**
|
|
25
|
+
* The slug of the payment provider in Commerce Engine.
|
|
26
|
+
*/
|
|
12
27
|
paymentProviderSlug: string;
|
|
13
28
|
integrationType: "express-checkout";
|
|
29
|
+
/**
|
|
30
|
+
* The reference ID of the payment gateway. When provided, payments will always be routed through this gateway.
|
|
31
|
+
*/
|
|
14
32
|
gatewayReferenceId: string;
|
|
33
|
+
/**
|
|
34
|
+
* The URL to which the customer will be redirected after the payment is complete.
|
|
35
|
+
*/
|
|
15
36
|
returnUrl: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Whether to save the card to the locker. If true, the card will be saved to the locker and can be used for future payments as per RBI regulations.
|
|
39
|
+
*/
|
|
19
40
|
saveToLocker: boolean;
|
|
20
41
|
paymentMethodType: "CARD";
|
|
21
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Payment method of the card. Please check which payment method is supported by the gateway.
|
|
44
|
+
*/
|
|
45
|
+
paymentMethod: PaymentMethod;
|
|
46
|
+
/**
|
|
47
|
+
* Token of the card. This is the token that is used to identify the card in the gateway.
|
|
48
|
+
*/
|
|
22
49
|
cardToken: string;
|
|
50
|
+
/**
|
|
51
|
+
* Security code of the card. This is the security code that is used to identify the card in the gateway.
|
|
52
|
+
*/
|
|
23
53
|
cardSecurityCode: string;
|
|
24
54
|
};
|
|
25
55
|
/** @internal */
|
|
26
|
-
export declare const
|
|
56
|
+
export declare const PaymentMethod$outboundSchema: z.ZodNativeEnum<typeof PaymentMethod>;
|
|
27
57
|
/** @internal */
|
|
28
58
|
export type JusPaySavedCardToken$Outbound = {
|
|
29
59
|
payment_provider_slug: string;
|
|
30
60
|
integration_type: "express-checkout";
|
|
31
61
|
gateway_reference_id: string;
|
|
32
62
|
return_url: string;
|
|
33
|
-
redirect_after_payment?: boolean | undefined;
|
|
34
|
-
get_client_auth_token?: boolean | undefined;
|
|
35
|
-
auth_type: "OTP";
|
|
36
63
|
save_to_locker: boolean;
|
|
37
64
|
payment_method_type: "CARD";
|
|
38
65
|
payment_method: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"juspaysavedcardtoken.d.ts","sourceRoot":"","sources":["../../../src/models/components/juspaysavedcardtoken.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"juspaysavedcardtoken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AAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAuBpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR"}
|
|
@@ -3,24 +3,30 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod/v3";
|
|
5
5
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Payment method of the card. Please check which payment method is supported by the gateway.
|
|
8
|
+
*/
|
|
9
|
+
export const PaymentMethod = {
|
|
7
10
|
Visa: "VISA",
|
|
8
11
|
Master: "MASTER",
|
|
12
|
+
Rupay: "RUPAY",
|
|
13
|
+
Amex: "AMEX",
|
|
14
|
+
Diners: "DINERS",
|
|
15
|
+
Discover: "DISCOVER",
|
|
16
|
+
Jcb: "JCB",
|
|
17
|
+
Maestro: "MAESTRO",
|
|
9
18
|
};
|
|
10
19
|
/** @internal */
|
|
11
|
-
export const
|
|
20
|
+
export const PaymentMethod$outboundSchema = z.nativeEnum(PaymentMethod);
|
|
12
21
|
/** @internal */
|
|
13
22
|
export const JusPaySavedCardToken$outboundSchema = z.object({
|
|
14
23
|
paymentProviderSlug: z.string(),
|
|
15
24
|
integrationType: z.literal("express-checkout"),
|
|
16
25
|
gatewayReferenceId: z.string(),
|
|
17
26
|
returnUrl: z.string(),
|
|
18
|
-
redirectAfterPayment: z.boolean().optional(),
|
|
19
|
-
getClientAuthToken: z.boolean().optional(),
|
|
20
|
-
authType: z.literal("OTP"),
|
|
21
27
|
saveToLocker: z.boolean(),
|
|
22
28
|
paymentMethodType: z.literal("CARD"),
|
|
23
|
-
paymentMethod:
|
|
29
|
+
paymentMethod: PaymentMethod$outboundSchema,
|
|
24
30
|
cardToken: z.string(),
|
|
25
31
|
cardSecurityCode: z.string(),
|
|
26
32
|
}).transform((v) => {
|
|
@@ -29,9 +35,6 @@ export const JusPaySavedCardToken$outboundSchema = z.object({
|
|
|
29
35
|
integrationType: "integration_type",
|
|
30
36
|
gatewayReferenceId: "gateway_reference_id",
|
|
31
37
|
returnUrl: "return_url",
|
|
32
|
-
redirectAfterPayment: "redirect_after_payment",
|
|
33
|
-
getClientAuthToken: "get_client_auth_token",
|
|
34
|
-
authType: "auth_type",
|
|
35
38
|
saveToLocker: "save_to_locker",
|
|
36
39
|
paymentMethodType: "payment_method_type",
|
|
37
40
|
paymentMethod: "payment_method",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"juspaysavedcardtoken.js","sourceRoot":"","sources":["../../../src/models/components/juspaysavedcardtoken.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAG1D,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"juspaysavedcardtoken.js","sourceRoot":"","sources":["../../../src/models/components/juspaysavedcardtoken.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAG1D;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,SAAS;CACV,CAAC;AA0CX,gBAAgB;AAChB,MAAM,CAAC,MAAM,4BAA4B,GAErC,CAAC,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AAehC,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC/B,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;IAC9C,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;IACzB,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACpC,aAAa,EAAE,4BAA4B;IAC3C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;CAC7B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,mBAAmB,EAAE,uBAAuB;QAC5C,eAAe,EAAE,kBAAkB;QACnC,kBAAkB,EAAE,sBAAsB;QAC1C,SAAS,EAAE,YAAY;QACvB,YAAY,EAAE,gBAAgB;QAC9B,iBAAiB,EAAE,qBAAqB;QACxC,aAAa,EAAE,gBAAgB;QAC/B,SAAS,EAAE,YAAY;QACvB,gBAAgB,EAAE,oBAAoB;KACvC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,mCAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC"}
|
|
@@ -3,12 +3,19 @@ import * as z from "zod/v3";
|
|
|
3
3
|
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/JuspayUpiCollect} - API reference for the JuspayUpiCollect schema
|
|
4
4
|
*/
|
|
5
5
|
export type JuspayUpiCollect = {
|
|
6
|
+
/**
|
|
7
|
+
* The slug of the payment provider in Commerce Engine.
|
|
8
|
+
*/
|
|
6
9
|
paymentProviderSlug: string;
|
|
7
10
|
integrationType: "express-checkout";
|
|
11
|
+
/**
|
|
12
|
+
* The reference ID of the payment gateway. When provided, payments will always be routed through this gateway.
|
|
13
|
+
*/
|
|
8
14
|
gatewayReferenceId: string;
|
|
15
|
+
/**
|
|
16
|
+
* The URL to which the customer will be redirected after the payment is complete.
|
|
17
|
+
*/
|
|
9
18
|
returnUrl: string;
|
|
10
|
-
redirectAfterPayment?: boolean | undefined;
|
|
11
|
-
getClientAuthToken?: boolean | undefined;
|
|
12
19
|
paymentMethodType: "UPI";
|
|
13
20
|
paymentMethod: "UPI_COLLECT";
|
|
14
21
|
upiVpa: string;
|
|
@@ -19,8 +26,6 @@ export type JuspayUpiCollect$Outbound = {
|
|
|
19
26
|
integration_type: "express-checkout";
|
|
20
27
|
gateway_reference_id: string;
|
|
21
28
|
return_url: string;
|
|
22
|
-
redirect_after_payment?: boolean | undefined;
|
|
23
|
-
get_client_auth_token?: boolean | undefined;
|
|
24
29
|
payment_method_type: "UPI";
|
|
25
30
|
payment_method: "UPI_COLLECT";
|
|
26
31
|
upi_vpa: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"juspayupicollect.d.ts","sourceRoot":"","sources":["../../../src/models/components/juspayupicollect.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,EAAE,kBAAkB,CAAC;IACpC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,
|
|
1
|
+
{"version":3,"file":"juspayupicollect.d.ts","sourceRoot":"","sources":["../../../src/models/components/juspayupicollect.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,EAAE,kBAAkB,CAAC;IACpC;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,KAAK,CAAC;IACzB,aAAa,EAAE,aAAa,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GAAG;IACtC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAgB,EAAE,kBAAkB,CAAC;IACrC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,KAAK,CAAC;IAC3B,cAAc,EAAE,aAAa,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CAmBhB,CAAC;AAEH,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR"}
|
|
@@ -9,8 +9,6 @@ export const JuspayUpiCollect$outboundSchema = z.object({
|
|
|
9
9
|
integrationType: z.literal("express-checkout"),
|
|
10
10
|
gatewayReferenceId: z.string(),
|
|
11
11
|
returnUrl: z.string(),
|
|
12
|
-
redirectAfterPayment: z.boolean().optional(),
|
|
13
|
-
getClientAuthToken: z.boolean().optional(),
|
|
14
12
|
paymentMethodType: z.literal("UPI"),
|
|
15
13
|
paymentMethod: z.literal("UPI_COLLECT"),
|
|
16
14
|
upiVpa: z.string(),
|
|
@@ -20,8 +18,6 @@ export const JuspayUpiCollect$outboundSchema = z.object({
|
|
|
20
18
|
integrationType: "integration_type",
|
|
21
19
|
gatewayReferenceId: "gateway_reference_id",
|
|
22
20
|
returnUrl: "return_url",
|
|
23
|
-
redirectAfterPayment: "redirect_after_payment",
|
|
24
|
-
getClientAuthToken: "get_client_auth_token",
|
|
25
21
|
paymentMethodType: "payment_method_type",
|
|
26
22
|
paymentMethod: "payment_method",
|
|
27
23
|
upiVpa: "upi_vpa",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"juspayupicollect.js","sourceRoot":"","sources":["../../../src/models/components/juspayupicollect.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"juspayupicollect.js","sourceRoot":"","sources":["../../../src/models/components/juspayupicollect.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAmC1D,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC/B,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;IAC9C,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IACnC,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACvC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,mBAAmB,EAAE,uBAAuB;QAC5C,eAAe,EAAE,kBAAkB;QACnC,kBAAkB,EAAE,sBAAsB;QAC1C,SAAS,EAAE,YAAY;QACvB,iBAAiB,EAAE,qBAAqB;QACxC,aAAa,EAAE,gBAAgB;QAC/B,MAAM,EAAE,SAAS;KAClB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,sBAAsB,CACpC,gBAAkC;IAElC,OAAO,IAAI,CAAC,SAAS,CACnB,+BAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AACJ,CAAC"}
|
|
@@ -3,15 +3,21 @@ import * as z from "zod/v3";
|
|
|
3
3
|
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/JuspayUpiIntent} - API reference for the JuspayUpiIntent schema
|
|
4
4
|
*/
|
|
5
5
|
export type JuspayUpiIntent = {
|
|
6
|
+
/**
|
|
7
|
+
* The slug of the payment provider in Commerce Engine.
|
|
8
|
+
*/
|
|
6
9
|
paymentProviderSlug: string;
|
|
7
10
|
integrationType: "express-checkout";
|
|
11
|
+
/**
|
|
12
|
+
* The reference ID of the payment gateway. When provided, payments will always be routed through this gateway.
|
|
13
|
+
*/
|
|
8
14
|
gatewayReferenceId: string;
|
|
15
|
+
/**
|
|
16
|
+
* The URL to which the customer will be redirected after the payment is complete.
|
|
17
|
+
*/
|
|
9
18
|
returnUrl: string;
|
|
10
|
-
redirectAfterPayment?: boolean | undefined;
|
|
11
|
-
getClientAuthToken?: boolean | undefined;
|
|
12
19
|
paymentMethodType: "UPI";
|
|
13
20
|
paymentMethod: "UPI_PAY";
|
|
14
|
-
sdkParams: boolean;
|
|
15
21
|
upiApp: string;
|
|
16
22
|
};
|
|
17
23
|
/** @internal */
|
|
@@ -20,11 +26,8 @@ export type JuspayUpiIntent$Outbound = {
|
|
|
20
26
|
integration_type: "express-checkout";
|
|
21
27
|
gateway_reference_id: string;
|
|
22
28
|
return_url: string;
|
|
23
|
-
redirect_after_payment?: boolean | undefined;
|
|
24
|
-
get_client_auth_token?: boolean | undefined;
|
|
25
29
|
payment_method_type: "UPI";
|
|
26
30
|
payment_method: "UPI_PAY";
|
|
27
|
-
sdk_params: boolean;
|
|
28
31
|
upi_app: string;
|
|
29
32
|
};
|
|
30
33
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"juspayupiintent.d.ts","sourceRoot":"","sources":["../../../src/models/components/juspayupiintent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,EAAE,kBAAkB,CAAC;IACpC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,
|
|
1
|
+
{"version":3,"file":"juspayupiintent.d.ts","sourceRoot":"","sources":["../../../src/models/components/juspayupiintent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,EAAE,kBAAkB,CAAC;IACpC;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,KAAK,CAAC;IACzB,aAAa,EAAE,SAAS,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAgB,EAAE,kBAAkB,CAAC;IACrC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,KAAK,CAAC;IAC3B,cAAc,EAAE,SAAS,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAmBf,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER"}
|
|
@@ -9,11 +9,8 @@ export const JuspayUpiIntent$outboundSchema = z.object({
|
|
|
9
9
|
integrationType: z.literal("express-checkout"),
|
|
10
10
|
gatewayReferenceId: z.string(),
|
|
11
11
|
returnUrl: z.string(),
|
|
12
|
-
redirectAfterPayment: z.boolean().optional(),
|
|
13
|
-
getClientAuthToken: z.boolean().optional(),
|
|
14
12
|
paymentMethodType: z.literal("UPI"),
|
|
15
13
|
paymentMethod: z.literal("UPI_PAY"),
|
|
16
|
-
sdkParams: z.boolean(),
|
|
17
14
|
upiApp: z.string(),
|
|
18
15
|
}).transform((v) => {
|
|
19
16
|
return remap$(v, {
|
|
@@ -21,11 +18,8 @@ export const JuspayUpiIntent$outboundSchema = z.object({
|
|
|
21
18
|
integrationType: "integration_type",
|
|
22
19
|
gatewayReferenceId: "gateway_reference_id",
|
|
23
20
|
returnUrl: "return_url",
|
|
24
|
-
redirectAfterPayment: "redirect_after_payment",
|
|
25
|
-
getClientAuthToken: "get_client_auth_token",
|
|
26
21
|
paymentMethodType: "payment_method_type",
|
|
27
22
|
paymentMethod: "payment_method",
|
|
28
|
-
sdkParams: "sdk_params",
|
|
29
23
|
upiApp: "upi_app",
|
|
30
24
|
});
|
|
31
25
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"juspayupiintent.js","sourceRoot":"","sources":["../../../src/models/components/juspayupiintent.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"juspayupiintent.js","sourceRoot":"","sources":["../../../src/models/components/juspayupiintent.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAmC1D,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC/B,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;IAC9C,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IACnC,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IACnC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,mBAAmB,EAAE,uBAAuB;QAC5C,eAAe,EAAE,kBAAkB;QACnC,kBAAkB,EAAE,sBAAsB;QAC1C,SAAS,EAAE,YAAY;QACvB,iBAAiB,EAAE,qBAAqB;QACxC,aAAa,EAAE,gBAAgB;QAC/B,MAAM,EAAE,SAAS;KAClB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,8BAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -80,7 +80,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
80
80
|
export const SDK_METADATA = {
|
|
81
81
|
language: "typescript",
|
|
82
82
|
openapiDocVersion: "1.0",
|
|
83
|
-
sdkVersion: "0.22.
|
|
84
|
-
genVersion: "2.
|
|
85
|
-
userAgent: "speakeasy-sdk/typescript 0.22.
|
|
83
|
+
sdkVersion: "0.22.4",
|
|
84
|
+
genVersion: "2.793.0",
|
|
85
|
+
userAgent: "speakeasy-sdk/typescript 0.22.4 2.793.0 1.0 ce-storefront",
|
|
86
86
|
} as const;
|
package/src/lib/sdks.ts
CHANGED
|
@@ -304,9 +304,9 @@ export class ClientSDK {
|
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
-
const jsonLikeContentTypeRE = /(application|text)
|
|
307
|
+
const jsonLikeContentTypeRE = /(application|text)\/([^+]+\+)*json.*/;
|
|
308
308
|
const jsonlLikeContentTypeRE =
|
|
309
|
-
/(application|text)\/(
|
|
309
|
+
/(application|text)\/(([^+]+\+)*jsonl\b.*|([^+]+\+)*x-ndjson\b.*)/;
|
|
310
310
|
async function logRequest(logger: Logger | undefined, req: Request) {
|
|
311
311
|
if (!logger) {
|
|
312
312
|
return;
|