ce-storefront 0.18.2 → 0.19.0
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 +2 -2
- package/docs/sdks/orders/README.md +2 -14
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/components/index.d.ts +3 -5
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +3 -5
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/juspayexpresscheckout.d.ts +3 -3
- package/esm/models/components/juspayexpresscheckout.d.ts.map +1 -1
- package/esm/models/components/juspayexpresscheckout.js +3 -3
- package/esm/models/components/juspayexpresscheckout.js.map +1 -1
- package/esm/models/components/juspayexpresscheckoutresponse.d.ts +187 -0
- package/esm/models/components/juspayexpresscheckoutresponse.d.ts.map +1 -0
- package/esm/models/components/juspayexpresscheckoutresponse.js +237 -0
- package/esm/models/components/juspayexpresscheckoutresponse.js.map +1 -0
- package/esm/models/components/juspayhypercheckout.d.ts +2 -2
- package/esm/models/components/juspayhypercheckout.d.ts.map +1 -1
- package/esm/models/components/juspayhypercheckout.js +4 -4
- package/esm/models/components/juspayhypercheckout.js.map +1 -1
- package/esm/models/components/{juspaypaymentinfo.d.ts → juspayhypercheckoutresponse.d.ts} +17 -15
- package/esm/models/components/juspayhypercheckoutresponse.d.ts.map +1 -0
- package/esm/models/components/{juspaypaymentinfo.js → juspayhypercheckoutresponse.js} +18 -14
- package/esm/models/components/juspayhypercheckoutresponse.js.map +1 -0
- package/esm/models/components/juspaynetbanking.d.ts +6 -4
- package/esm/models/components/juspaynetbanking.d.ts.map +1 -1
- package/esm/models/components/juspaynetbanking.js +10 -6
- package/esm/models/components/juspaynetbanking.js.map +1 -1
- package/esm/models/components/{juspaycard.d.ts → juspaynewcard.d.ts} +21 -19
- package/esm/models/components/juspaynewcard.d.ts.map +1 -0
- package/esm/models/components/{juspaycard.js → juspaynewcard.js} +24 -20
- package/esm/models/components/juspaynewcard.js.map +1 -0
- package/esm/models/components/juspaysavedcardtoken.d.ts +6 -4
- package/esm/models/components/juspaysavedcardtoken.d.ts.map +1 -1
- package/esm/models/components/juspaysavedcardtoken.js +10 -6
- package/esm/models/components/juspaysavedcardtoken.js.map +1 -1
- package/esm/models/components/juspayupicollect.d.ts +6 -4
- package/esm/models/components/juspayupicollect.d.ts.map +1 -1
- package/esm/models/components/juspayupicollect.js +10 -6
- package/esm/models/components/juspayupicollect.js.map +1 -1
- package/esm/models/components/juspayupiintent.d.ts +6 -4
- package/esm/models/components/juspayupiintent.d.ts.map +1 -1
- package/esm/models/components/juspayupiintent.js +10 -6
- package/esm/models/components/juspayupiintent.js.map +1 -1
- package/esm/models/operations/createorder.d.ts +4 -4
- package/esm/models/operations/createorder.d.ts.map +1 -1
- package/esm/models/operations/createorder.js +8 -4
- package/esm/models/operations/createorder.js.map +1 -1
- package/esm/models/operations/retryorderpayment.d.ts +6 -6
- package/esm/models/operations/retryorderpayment.d.ts.map +1 -1
- package/esm/models/operations/retryorderpayment.js +12 -8
- package/esm/models/operations/retryorderpayment.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/models/components/index.ts +3 -5
- package/src/models/components/juspayexpresscheckout.ts +10 -10
- package/src/models/components/juspayexpresscheckoutresponse.ts +443 -0
- package/src/models/components/juspayhypercheckout.ts +6 -6
- package/src/models/components/{juspaypaymentinfo.ts → juspayhypercheckoutresponse.ts} +32 -22
- package/src/models/components/juspaynetbanking.ts +16 -10
- package/src/models/components/{juspaycard.ts → juspaynewcard.ts} +37 -31
- package/src/models/components/juspaysavedcardtoken.ts +16 -10
- package/src/models/components/juspayupicollect.ts +16 -10
- package/src/models/components/juspayupiintent.ts +16 -10
- package/src/models/operations/createorder.ts +21 -11
- package/src/models/operations/retryorderpayment.ts +27 -17
- package/esm/models/components/juspaycard.d.ts.map +0 -1
- package/esm/models/components/juspaycard.js.map +0 -1
- package/esm/models/components/juspaypaymentgatewayparams.d.ts +0 -115
- package/esm/models/components/juspaypaymentgatewayparams.d.ts.map +0 -1
- package/esm/models/components/juspaypaymentgatewayparams.js +0 -98
- package/esm/models/components/juspaypaymentgatewayparams.js.map +0 -1
- package/esm/models/components/juspaypaymentinfo.d.ts.map +0 -1
- package/esm/models/components/juspaypaymentinfo.js.map +0 -1
- package/esm/models/components/paymentgatewayparams.d.ts +0 -38
- package/esm/models/components/paymentgatewayparams.d.ts.map +0 -1
- package/esm/models/components/paymentgatewayparams.js +0 -43
- package/esm/models/components/paymentgatewayparams.js.map +0 -1
- package/esm/models/components/payupaymentgatewayparams.d.ts +0 -36
- package/esm/models/components/payupaymentgatewayparams.d.ts.map +0 -1
- package/esm/models/components/payupaymentgatewayparams.js +0 -44
- package/esm/models/components/payupaymentgatewayparams.js.map +0 -1
- package/src/models/components/juspaypaymentgatewayparams.ts +0 -181
- package/src/models/components/paymentgatewayparams.ts +0 -99
- package/src/models/components/payupaymentgatewayparams.ts +0 -86
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
10
|
-
JuspayPaymentGatewayParams,
|
|
11
|
-
JuspayPaymentGatewayParams$inboundSchema,
|
|
12
|
-
JuspayPaymentGatewayParams$Outbound,
|
|
13
|
-
JuspayPaymentGatewayParams$outboundSchema,
|
|
14
|
-
} from "./juspaypaymentgatewayparams.js";
|
|
15
|
-
import {
|
|
16
|
-
PayuPaymentGatewayParams,
|
|
17
|
-
PayuPaymentGatewayParams$inboundSchema,
|
|
18
|
-
PayuPaymentGatewayParams$Outbound,
|
|
19
|
-
PayuPaymentGatewayParams$outboundSchema,
|
|
20
|
-
} from "./payupaymentgatewayparams.js";
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/PaymentGatewayParams} - API reference for the PaymentGatewayParams schema
|
|
24
|
-
*/
|
|
25
|
-
export type PaymentGatewayParams =
|
|
26
|
-
| (JuspayPaymentGatewayParams & { paymentGateway: "JUSPAY" })
|
|
27
|
-
| (PayuPaymentGatewayParams & { paymentGateway: "PAYU" });
|
|
28
|
-
|
|
29
|
-
/** @internal */
|
|
30
|
-
export const PaymentGatewayParams$inboundSchema: z.ZodType<
|
|
31
|
-
PaymentGatewayParams,
|
|
32
|
-
z.ZodTypeDef,
|
|
33
|
-
unknown
|
|
34
|
-
> = z.union([
|
|
35
|
-
JuspayPaymentGatewayParams$inboundSchema.and(
|
|
36
|
-
z.object({ payment_gateway: z.literal("JUSPAY") }).transform((v) => ({
|
|
37
|
-
paymentGateway: v.payment_gateway,
|
|
38
|
-
})),
|
|
39
|
-
),
|
|
40
|
-
PayuPaymentGatewayParams$inboundSchema.and(
|
|
41
|
-
z.object({ payment_gateway: z.literal("PAYU") }).transform((v) => ({
|
|
42
|
-
paymentGateway: v.payment_gateway,
|
|
43
|
-
})),
|
|
44
|
-
),
|
|
45
|
-
]);
|
|
46
|
-
|
|
47
|
-
/** @internal */
|
|
48
|
-
export type PaymentGatewayParams$Outbound =
|
|
49
|
-
| (JuspayPaymentGatewayParams$Outbound & { payment_gateway: "JUSPAY" })
|
|
50
|
-
| (PayuPaymentGatewayParams$Outbound & { payment_gateway: "PAYU" });
|
|
51
|
-
|
|
52
|
-
/** @internal */
|
|
53
|
-
export const PaymentGatewayParams$outboundSchema: z.ZodType<
|
|
54
|
-
PaymentGatewayParams$Outbound,
|
|
55
|
-
z.ZodTypeDef,
|
|
56
|
-
PaymentGatewayParams
|
|
57
|
-
> = z.union([
|
|
58
|
-
JuspayPaymentGatewayParams$outboundSchema.and(
|
|
59
|
-
z.object({ paymentGateway: z.literal("JUSPAY") }).transform((v) => ({
|
|
60
|
-
payment_gateway: v.paymentGateway,
|
|
61
|
-
})),
|
|
62
|
-
),
|
|
63
|
-
PayuPaymentGatewayParams$outboundSchema.and(
|
|
64
|
-
z.object({ paymentGateway: z.literal("PAYU") }).transform((v) => ({
|
|
65
|
-
payment_gateway: v.paymentGateway,
|
|
66
|
-
})),
|
|
67
|
-
),
|
|
68
|
-
]);
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @internal
|
|
72
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
-
*/
|
|
74
|
-
export namespace PaymentGatewayParams$ {
|
|
75
|
-
/** @deprecated use `PaymentGatewayParams$inboundSchema` instead. */
|
|
76
|
-
export const inboundSchema = PaymentGatewayParams$inboundSchema;
|
|
77
|
-
/** @deprecated use `PaymentGatewayParams$outboundSchema` instead. */
|
|
78
|
-
export const outboundSchema = PaymentGatewayParams$outboundSchema;
|
|
79
|
-
/** @deprecated use `PaymentGatewayParams$Outbound` instead. */
|
|
80
|
-
export type Outbound = PaymentGatewayParams$Outbound;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export function paymentGatewayParamsToJSON(
|
|
84
|
-
paymentGatewayParams: PaymentGatewayParams,
|
|
85
|
-
): string {
|
|
86
|
-
return JSON.stringify(
|
|
87
|
-
PaymentGatewayParams$outboundSchema.parse(paymentGatewayParams),
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export function paymentGatewayParamsFromJSON(
|
|
92
|
-
jsonString: string,
|
|
93
|
-
): SafeParseResult<PaymentGatewayParams, SDKValidationError> {
|
|
94
|
-
return safeParse(
|
|
95
|
-
jsonString,
|
|
96
|
-
(x) => PaymentGatewayParams$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
-
`Failed to parse 'PaymentGatewayParams' from JSON`,
|
|
98
|
-
);
|
|
99
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/PayuPaymentGatewayParams} - API reference for the PayuPaymentGatewayParams schema
|
|
13
|
-
*/
|
|
14
|
-
export type PayuPaymentGatewayParams = {
|
|
15
|
-
paymentGateway?: "PAYU" | undefined;
|
|
16
|
-
furl: string;
|
|
17
|
-
surl: string;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
/** @internal */
|
|
21
|
-
export const PayuPaymentGatewayParams$inboundSchema: z.ZodType<
|
|
22
|
-
PayuPaymentGatewayParams,
|
|
23
|
-
z.ZodTypeDef,
|
|
24
|
-
unknown
|
|
25
|
-
> = z.object({
|
|
26
|
-
payment_gateway: z.literal("PAYU").default("PAYU"),
|
|
27
|
-
furl: z.string(),
|
|
28
|
-
surl: z.string(),
|
|
29
|
-
}).transform((v) => {
|
|
30
|
-
return remap$(v, {
|
|
31
|
-
"payment_gateway": "paymentGateway",
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
/** @internal */
|
|
36
|
-
export type PayuPaymentGatewayParams$Outbound = {
|
|
37
|
-
payment_gateway: "PAYU";
|
|
38
|
-
furl: string;
|
|
39
|
-
surl: string;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export const PayuPaymentGatewayParams$outboundSchema: z.ZodType<
|
|
44
|
-
PayuPaymentGatewayParams$Outbound,
|
|
45
|
-
z.ZodTypeDef,
|
|
46
|
-
PayuPaymentGatewayParams
|
|
47
|
-
> = z.object({
|
|
48
|
-
paymentGateway: z.literal("PAYU").default("PAYU" as const),
|
|
49
|
-
furl: z.string(),
|
|
50
|
-
surl: z.string(),
|
|
51
|
-
}).transform((v) => {
|
|
52
|
-
return remap$(v, {
|
|
53
|
-
paymentGateway: "payment_gateway",
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
-
*/
|
|
61
|
-
export namespace PayuPaymentGatewayParams$ {
|
|
62
|
-
/** @deprecated use `PayuPaymentGatewayParams$inboundSchema` instead. */
|
|
63
|
-
export const inboundSchema = PayuPaymentGatewayParams$inboundSchema;
|
|
64
|
-
/** @deprecated use `PayuPaymentGatewayParams$outboundSchema` instead. */
|
|
65
|
-
export const outboundSchema = PayuPaymentGatewayParams$outboundSchema;
|
|
66
|
-
/** @deprecated use `PayuPaymentGatewayParams$Outbound` instead. */
|
|
67
|
-
export type Outbound = PayuPaymentGatewayParams$Outbound;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function payuPaymentGatewayParamsToJSON(
|
|
71
|
-
payuPaymentGatewayParams: PayuPaymentGatewayParams,
|
|
72
|
-
): string {
|
|
73
|
-
return JSON.stringify(
|
|
74
|
-
PayuPaymentGatewayParams$outboundSchema.parse(payuPaymentGatewayParams),
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export function payuPaymentGatewayParamsFromJSON(
|
|
79
|
-
jsonString: string,
|
|
80
|
-
): SafeParseResult<PayuPaymentGatewayParams, SDKValidationError> {
|
|
81
|
-
return safeParse(
|
|
82
|
-
jsonString,
|
|
83
|
-
(x) => PayuPaymentGatewayParams$inboundSchema.parse(JSON.parse(x)),
|
|
84
|
-
`Failed to parse 'PayuPaymentGatewayParams' from JSON`,
|
|
85
|
-
);
|
|
86
|
-
}
|