ce-storefront 0.18.3 → 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 +0 -3
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +0 -3
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/operations/retryorderpayment.d.ts +2 -2
- package/esm/models/operations/retryorderpayment.d.ts.map +1 -1
- package/esm/models/operations/retryorderpayment.js +4 -4
- 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 +0 -3
- package/src/models/operations/retryorderpayment.ts +6 -6
- 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/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
package/README.md
CHANGED
|
@@ -411,8 +411,8 @@ If the selected server has variables, you may override its default values throug
|
|
|
411
411
|
import { CeStorefront } from "ce-storefront";
|
|
412
412
|
|
|
413
413
|
const ceStorefront = new CeStorefront({
|
|
414
|
-
server: "
|
|
415
|
-
storeId: "
|
|
414
|
+
server: "staging",
|
|
415
|
+
storeId: "store_id",
|
|
416
416
|
});
|
|
417
417
|
|
|
418
418
|
async function run() {
|
|
@@ -431,13 +431,7 @@ const ceStorefront = new CeStorefront({
|
|
|
431
431
|
async function run() {
|
|
432
432
|
const result = await ceStorefront.orders.retryOrderPayment({
|
|
433
433
|
orderNumber: "<value>",
|
|
434
|
-
requestBody: {
|
|
435
|
-
paymentGatewayParams: {
|
|
436
|
-
paymentGateway: "PAYU",
|
|
437
|
-
furl: "https://runny-epic.net",
|
|
438
|
-
surl: "https://worst-climb.com",
|
|
439
|
-
},
|
|
440
|
-
},
|
|
434
|
+
requestBody: {},
|
|
441
435
|
});
|
|
442
436
|
|
|
443
437
|
console.log(result);
|
|
@@ -463,13 +457,7 @@ const ceStorefront = new CeStorefrontCore({
|
|
|
463
457
|
async function run() {
|
|
464
458
|
const res = await ordersRetryOrderPayment(ceStorefront, {
|
|
465
459
|
orderNumber: "<value>",
|
|
466
|
-
requestBody: {
|
|
467
|
-
paymentGatewayParams: {
|
|
468
|
-
paymentGateway: "PAYU",
|
|
469
|
-
furl: "https://runny-epic.net",
|
|
470
|
-
surl: "https://worst-climb.com",
|
|
471
|
-
},
|
|
472
|
-
},
|
|
460
|
+
requestBody: {},
|
|
473
461
|
});
|
|
474
462
|
if (res.ok) {
|
|
475
463
|
const { value: result } = res;
|
package/esm/lib/config.d.ts
CHANGED
|
@@ -46,8 +46,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
46
46
|
export declare const SDK_METADATA: {
|
|
47
47
|
readonly language: "typescript";
|
|
48
48
|
readonly openapiDocVersion: "1.0";
|
|
49
|
-
readonly sdkVersion: "0.
|
|
50
|
-
readonly genVersion: "2.
|
|
51
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.
|
|
49
|
+
readonly sdkVersion: "0.19.0";
|
|
50
|
+
readonly genVersion: "2.735.1";
|
|
51
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.19.0 2.735.1 1.0 ce-storefront";
|
|
52
52
|
};
|
|
53
53
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -39,8 +39,8 @@ export function serverURLFromOptions(options) {
|
|
|
39
39
|
export const SDK_METADATA = {
|
|
40
40
|
language: "typescript",
|
|
41
41
|
openapiDocVersion: "1.0",
|
|
42
|
-
sdkVersion: "0.
|
|
43
|
-
genVersion: "2.
|
|
44
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
42
|
+
sdkVersion: "0.19.0",
|
|
43
|
+
genVersion: "2.735.1",
|
|
44
|
+
userAgent: "speakeasy-sdk/typescript 0.19.0 2.735.1 1.0 ce-storefront",
|
|
45
45
|
};
|
|
46
46
|
//# sourceMappingURL=config.js.map
|
|
@@ -39,7 +39,6 @@ export * from "./juspayhypercheckout.js";
|
|
|
39
39
|
export * from "./juspayhypercheckoutresponse.js";
|
|
40
40
|
export * from "./juspaynetbanking.js";
|
|
41
41
|
export * from "./juspaynewcard.js";
|
|
42
|
-
export * from "./juspaypaymentgatewayparams.js";
|
|
43
42
|
export * from "./juspaysavedcardtoken.js";
|
|
44
43
|
export * from "./juspayupicollect.js";
|
|
45
44
|
export * from "./juspayupiintent.js";
|
|
@@ -58,9 +57,7 @@ export * from "./ordershipment.js";
|
|
|
58
57
|
export * from "./pagination.js";
|
|
59
58
|
export * from "./partialcollectanddelivery.js";
|
|
60
59
|
export * from "./partialcollectanddeliveryinput.js";
|
|
61
|
-
export * from "./paymentgatewayparams.js";
|
|
62
60
|
export * from "./paymentmethodpayload.js";
|
|
63
|
-
export * from "./payupaymentgatewayparams.js";
|
|
64
61
|
export * from "./payupaymentinfo.js";
|
|
65
62
|
export * from "./pincode.js";
|
|
66
63
|
export * from "./pincodeserviceability.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,mCAAmC,CAAC;AAClD,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,WAAW,CAAC;AAC1B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAA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
42
|
export * from "./juspayhypercheckoutresponse.js";
|
|
43
43
|
export * from "./juspaynetbanking.js";
|
|
44
44
|
export * from "./juspaynewcard.js";
|
|
45
|
-
export * from "./juspaypaymentgatewayparams.js";
|
|
46
45
|
export * from "./juspaysavedcardtoken.js";
|
|
47
46
|
export * from "./juspayupicollect.js";
|
|
48
47
|
export * from "./juspayupiintent.js";
|
|
@@ -61,9 +60,7 @@ export * from "./ordershipment.js";
|
|
|
61
60
|
export * from "./pagination.js";
|
|
62
61
|
export * from "./partialcollectanddelivery.js";
|
|
63
62
|
export * from "./partialcollectanddeliveryinput.js";
|
|
64
|
-
export * from "./paymentgatewayparams.js";
|
|
65
63
|
export * from "./paymentmethodpayload.js";
|
|
66
|
-
export * from "./payupaymentgatewayparams.js";
|
|
67
64
|
export * from "./payupaymentinfo.js";
|
|
68
65
|
export * from "./pincode.js";
|
|
69
66
|
export * from "./pincodeserviceability.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,mCAAmC,CAAC;AAClD,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CA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Ac,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
3
3
|
import * as components from "../components/index.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
5
|
export type RetryOrderPaymentRequestBody = {
|
|
6
|
-
|
|
6
|
+
paymentMethod?: components.PaymentMethodPayload | undefined;
|
|
7
7
|
};
|
|
8
8
|
export type RetryOrderPaymentRequest = {
|
|
9
9
|
/**
|
|
@@ -28,7 +28,7 @@ export type RetryOrderPaymentResponseBody = {
|
|
|
28
28
|
export declare const RetryOrderPaymentRequestBody$inboundSchema: z.ZodType<RetryOrderPaymentRequestBody, z.ZodTypeDef, unknown>;
|
|
29
29
|
/** @internal */
|
|
30
30
|
export type RetryOrderPaymentRequestBody$Outbound = {
|
|
31
|
-
|
|
31
|
+
payment_method?: components.PaymentMethodPayload$Outbound | undefined;
|
|
32
32
|
};
|
|
33
33
|
/** @internal */
|
|
34
34
|
export declare const RetryOrderPaymentRequestBody$outboundSchema: z.ZodType<RetryOrderPaymentRequestBody$Outbound, z.ZodTypeDef, RetryOrderPaymentRequestBody>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retryorderpayment.d.ts","sourceRoot":"","sources":["../../../src/models/operations/retryorderpayment.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,4BAA4B,GAAG;IACzC,
|
|
1
|
+
{"version":3,"file":"retryorderpayment.d.ts","sourceRoot":"","sources":["../../../src/models/operations/retryorderpayment.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,4BAA4B,GAAG;IACzC,aAAa,CAAC,EAAE,UAAU,CAAC,oBAAoB,GAAG,SAAS,CAAC;CAC7D,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,4BAA4B,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,4BAA4B,GACpC,UAAU,CAAC,2BAA2B,GACtC,UAAU,CAAC,6BAA6B,GACxC,UAAU,CAAC,eAAe,CAAC;AAE/B,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EACP,UAAU,CAAC,2BAA2B,GACtC,UAAU,CAAC,6BAA6B,GACxC,UAAU,CAAC,eAAe,CAAC;CAChC,CAAC;AAEF;;GAEG;AACH,MAAM,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Ac,gGAA+C,CAAC;IAC3E,wEAAwE;IACxE,KAAY,QAAQ,GAAG,sCAAsC,CAAC;CAC/D;AAED,wBAAgB,mCAAmC,CACjD,6BAA6B,EAAE,6BAA6B,GAC3D,MAAM,CAMR;AAED,wBAAgB,qCAAqC,CACnD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,6BAA6B,EAAE,kBAAkB,CAAC,CAMpE"}
|
|
@@ -7,18 +7,18 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import * as components from "../components/index.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const RetryOrderPaymentRequestBody$inboundSchema = z.object({
|
|
10
|
-
|
|
10
|
+
payment_method: components.PaymentMethodPayload$inboundSchema.optional(),
|
|
11
11
|
}).transform((v) => {
|
|
12
12
|
return remap$(v, {
|
|
13
|
-
"
|
|
13
|
+
"payment_method": "paymentMethod",
|
|
14
14
|
});
|
|
15
15
|
});
|
|
16
16
|
/** @internal */
|
|
17
17
|
export const RetryOrderPaymentRequestBody$outboundSchema = z.object({
|
|
18
|
-
|
|
18
|
+
paymentMethod: components.PaymentMethodPayload$outboundSchema.optional(),
|
|
19
19
|
}).transform((v) => {
|
|
20
20
|
return remap$(v, {
|
|
21
|
-
|
|
21
|
+
paymentMethod: "payment_method",
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
24
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retryorderpayment.js","sourceRoot":"","sources":["../../../src/models/operations/retryorderpayment.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAoCrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAInD,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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.
|
|
84
|
-
genVersion: "2.
|
|
85
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
83
|
+
sdkVersion: "0.19.0",
|
|
84
|
+
genVersion: "2.735.1",
|
|
85
|
+
userAgent: "speakeasy-sdk/typescript 0.19.0 2.735.1 1.0 ce-storefront",
|
|
86
86
|
} as const;
|
|
@@ -43,7 +43,6 @@ export * from "./juspayhypercheckout.js";
|
|
|
43
43
|
export * from "./juspayhypercheckoutresponse.js";
|
|
44
44
|
export * from "./juspaynetbanking.js";
|
|
45
45
|
export * from "./juspaynewcard.js";
|
|
46
|
-
export * from "./juspaypaymentgatewayparams.js";
|
|
47
46
|
export * from "./juspaysavedcardtoken.js";
|
|
48
47
|
export * from "./juspayupicollect.js";
|
|
49
48
|
export * from "./juspayupiintent.js";
|
|
@@ -62,9 +61,7 @@ export * from "./ordershipment.js";
|
|
|
62
61
|
export * from "./pagination.js";
|
|
63
62
|
export * from "./partialcollectanddelivery.js";
|
|
64
63
|
export * from "./partialcollectanddeliveryinput.js";
|
|
65
|
-
export * from "./paymentgatewayparams.js";
|
|
66
64
|
export * from "./paymentmethodpayload.js";
|
|
67
|
-
export * from "./payupaymentgatewayparams.js";
|
|
68
65
|
export * from "./payupaymentinfo.js";
|
|
69
66
|
export * from "./pincode.js";
|
|
70
67
|
export * from "./pincodeserviceability.js";
|
|
@@ -10,7 +10,7 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type RetryOrderPaymentRequestBody = {
|
|
13
|
-
|
|
13
|
+
paymentMethod?: components.PaymentMethodPayload | undefined;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
export type RetryOrderPaymentRequest = {
|
|
@@ -48,16 +48,16 @@ export const RetryOrderPaymentRequestBody$inboundSchema: z.ZodType<
|
|
|
48
48
|
z.ZodTypeDef,
|
|
49
49
|
unknown
|
|
50
50
|
> = z.object({
|
|
51
|
-
|
|
51
|
+
payment_method: components.PaymentMethodPayload$inboundSchema.optional(),
|
|
52
52
|
}).transform((v) => {
|
|
53
53
|
return remap$(v, {
|
|
54
|
-
"
|
|
54
|
+
"payment_method": "paymentMethod",
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
/** @internal */
|
|
59
59
|
export type RetryOrderPaymentRequestBody$Outbound = {
|
|
60
|
-
|
|
60
|
+
payment_method?: components.PaymentMethodPayload$Outbound | undefined;
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
/** @internal */
|
|
@@ -66,10 +66,10 @@ export const RetryOrderPaymentRequestBody$outboundSchema: z.ZodType<
|
|
|
66
66
|
z.ZodTypeDef,
|
|
67
67
|
RetryOrderPaymentRequestBody
|
|
68
68
|
> = z.object({
|
|
69
|
-
|
|
69
|
+
paymentMethod: components.PaymentMethodPayload$outboundSchema.optional(),
|
|
70
70
|
}).transform((v) => {
|
|
71
71
|
return remap$(v, {
|
|
72
|
-
|
|
72
|
+
paymentMethod: "payment_method",
|
|
73
73
|
});
|
|
74
74
|
});
|
|
75
75
|
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
/**
|
|
6
|
-
* `paymentPage` is the default option that you should select when using hyper-checkout
|
|
7
|
-
*/
|
|
8
|
-
export declare const JuspayPaymentGatewayParamsAction: {
|
|
9
|
-
readonly PaymentPage: "paymentPage";
|
|
10
|
-
readonly PaymentManagement: "paymentManagement";
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* `paymentPage` is the default option that you should select when using hyper-checkout
|
|
14
|
-
*/
|
|
15
|
-
export type JuspayPaymentGatewayParamsAction = ClosedEnum<typeof JuspayPaymentGatewayParamsAction>;
|
|
16
|
-
/**
|
|
17
|
-
* Use `hyper-checkout` for Juspay hosted checkout
|
|
18
|
-
*/
|
|
19
|
-
export declare const IntegrationType: {
|
|
20
|
-
readonly HyperCheckout: "hyper-checkout";
|
|
21
|
-
readonly ExpressCheckout: "express-checkout";
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Use `hyper-checkout` for Juspay hosted checkout
|
|
25
|
-
*/
|
|
26
|
-
export type IntegrationType = ClosedEnum<typeof IntegrationType>;
|
|
27
|
-
/**
|
|
28
|
-
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/JuspayPaymentGatewayParams} - API reference for the JuspayPaymentGatewayParams schema
|
|
29
|
-
*/
|
|
30
|
-
export type JuspayPaymentGatewayParams = {
|
|
31
|
-
paymentGateway?: "JUSPAY" | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* `paymentPage` is the default option that you should select when using hyper-checkout
|
|
34
|
-
*/
|
|
35
|
-
action: JuspayPaymentGatewayParamsAction;
|
|
36
|
-
/**
|
|
37
|
-
* Use `hyper-checkout` for Juspay hosted checkout
|
|
38
|
-
*/
|
|
39
|
-
integrationType: IntegrationType;
|
|
40
|
-
/**
|
|
41
|
-
* This is the URL that the gateway will redirect to once payment processing is complete. This will be a GET request by default
|
|
42
|
-
*/
|
|
43
|
-
returnUrl: string;
|
|
44
|
-
/**
|
|
45
|
-
* The exact gateway reference ID that was set up in the integration
|
|
46
|
-
*/
|
|
47
|
-
gatewayReferenceId: string;
|
|
48
|
-
};
|
|
49
|
-
/** @internal */
|
|
50
|
-
export declare const JuspayPaymentGatewayParamsAction$inboundSchema: z.ZodNativeEnum<typeof JuspayPaymentGatewayParamsAction>;
|
|
51
|
-
/** @internal */
|
|
52
|
-
export declare const JuspayPaymentGatewayParamsAction$outboundSchema: z.ZodNativeEnum<typeof JuspayPaymentGatewayParamsAction>;
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
-
*/
|
|
57
|
-
export declare namespace JuspayPaymentGatewayParamsAction$ {
|
|
58
|
-
/** @deprecated use `JuspayPaymentGatewayParamsAction$inboundSchema` instead. */
|
|
59
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
60
|
-
readonly PaymentPage: "paymentPage";
|
|
61
|
-
readonly PaymentManagement: "paymentManagement";
|
|
62
|
-
}>;
|
|
63
|
-
/** @deprecated use `JuspayPaymentGatewayParamsAction$outboundSchema` instead. */
|
|
64
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
65
|
-
readonly PaymentPage: "paymentPage";
|
|
66
|
-
readonly PaymentManagement: "paymentManagement";
|
|
67
|
-
}>;
|
|
68
|
-
}
|
|
69
|
-
/** @internal */
|
|
70
|
-
export declare const IntegrationType$inboundSchema: z.ZodNativeEnum<typeof IntegrationType>;
|
|
71
|
-
/** @internal */
|
|
72
|
-
export declare const IntegrationType$outboundSchema: z.ZodNativeEnum<typeof IntegrationType>;
|
|
73
|
-
/**
|
|
74
|
-
* @internal
|
|
75
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
76
|
-
*/
|
|
77
|
-
export declare namespace IntegrationType$ {
|
|
78
|
-
/** @deprecated use `IntegrationType$inboundSchema` instead. */
|
|
79
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
80
|
-
readonly HyperCheckout: "hyper-checkout";
|
|
81
|
-
readonly ExpressCheckout: "express-checkout";
|
|
82
|
-
}>;
|
|
83
|
-
/** @deprecated use `IntegrationType$outboundSchema` instead. */
|
|
84
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
85
|
-
readonly HyperCheckout: "hyper-checkout";
|
|
86
|
-
readonly ExpressCheckout: "express-checkout";
|
|
87
|
-
}>;
|
|
88
|
-
}
|
|
89
|
-
/** @internal */
|
|
90
|
-
export declare const JuspayPaymentGatewayParams$inboundSchema: z.ZodType<JuspayPaymentGatewayParams, z.ZodTypeDef, unknown>;
|
|
91
|
-
/** @internal */
|
|
92
|
-
export type JuspayPaymentGatewayParams$Outbound = {
|
|
93
|
-
payment_gateway: "JUSPAY";
|
|
94
|
-
action: string;
|
|
95
|
-
integration_type: string;
|
|
96
|
-
return_url: string;
|
|
97
|
-
gateway_reference_id: string;
|
|
98
|
-
};
|
|
99
|
-
/** @internal */
|
|
100
|
-
export declare const JuspayPaymentGatewayParams$outboundSchema: z.ZodType<JuspayPaymentGatewayParams$Outbound, z.ZodTypeDef, JuspayPaymentGatewayParams>;
|
|
101
|
-
/**
|
|
102
|
-
* @internal
|
|
103
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
104
|
-
*/
|
|
105
|
-
export declare namespace JuspayPaymentGatewayParams$ {
|
|
106
|
-
/** @deprecated use `JuspayPaymentGatewayParams$inboundSchema` instead. */
|
|
107
|
-
const inboundSchema: z.ZodType<JuspayPaymentGatewayParams, z.ZodTypeDef, unknown>;
|
|
108
|
-
/** @deprecated use `JuspayPaymentGatewayParams$outboundSchema` instead. */
|
|
109
|
-
const outboundSchema: z.ZodType<JuspayPaymentGatewayParams$Outbound, z.ZodTypeDef, JuspayPaymentGatewayParams>;
|
|
110
|
-
/** @deprecated use `JuspayPaymentGatewayParams$Outbound` instead. */
|
|
111
|
-
type Outbound = JuspayPaymentGatewayParams$Outbound;
|
|
112
|
-
}
|
|
113
|
-
export declare function juspayPaymentGatewayParamsToJSON(juspayPaymentGatewayParams: JuspayPaymentGatewayParams): string;
|
|
114
|
-
export declare function juspayPaymentGatewayParamsFromJSON(jsonString: string): SafeParseResult<JuspayPaymentGatewayParams, SDKValidationError>;
|
|
115
|
-
//# sourceMappingURL=juspaypaymentgatewayparams.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"juspaypaymentgatewayparams.d.ts","sourceRoot":"","sources":["../../../src/models/components/juspaypaymentgatewayparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;CAGnC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,UAAU,CACvD,OAAO,gCAAgC,CACxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe;;;CAGlB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,cAAc,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,MAAM,EAAE,gCAAgC,CAAC;IACzC;;OAEG;IACH,eAAe,EAAE,eAAe,CAAC;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,aAAa,CAC1E,OAAO,gCAAgC,CACS,CAAC;AAEnD,gBAAgB;AAChB,eAAO,MAAM,+CAA+C,EAAE,CAAC,CAAC,aAAa,CAC3E,OAAO,gCAAgC,CACS,CAAC;AAEnD;;;GAGG;AACH,yBAAiB,iCAAiC,CAAC;IACjD,gFAAgF;IACzE,MAAM,aAAa;;;MAAiD,CAAC;IAC5E,iFAAiF;IAC1E,MAAM,cAAc;;;MAAkD,CAAC;CAC/E;AAED,gBAAgB;AA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easy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v3";
|
|
5
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
/**
|
|
8
|
-
* `paymentPage` is the default option that you should select when using hyper-checkout
|
|
9
|
-
*/
|
|
10
|
-
export const JuspayPaymentGatewayParamsAction = {
|
|
11
|
-
PaymentPage: "paymentPage",
|
|
12
|
-
PaymentManagement: "paymentManagement",
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Use `hyper-checkout` for Juspay hosted checkout
|
|
16
|
-
*/
|
|
17
|
-
export const IntegrationType = {
|
|
18
|
-
HyperCheckout: "hyper-checkout",
|
|
19
|
-
ExpressCheckout: "express-checkout",
|
|
20
|
-
};
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const JuspayPaymentGatewayParamsAction$inboundSchema = z.nativeEnum(JuspayPaymentGatewayParamsAction);
|
|
23
|
-
/** @internal */
|
|
24
|
-
export const JuspayPaymentGatewayParamsAction$outboundSchema = JuspayPaymentGatewayParamsAction$inboundSchema;
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
28
|
-
*/
|
|
29
|
-
export var JuspayPaymentGatewayParamsAction$;
|
|
30
|
-
(function (JuspayPaymentGatewayParamsAction$) {
|
|
31
|
-
/** @deprecated use `JuspayPaymentGatewayParamsAction$inboundSchema` instead. */
|
|
32
|
-
JuspayPaymentGatewayParamsAction$.inboundSchema = JuspayPaymentGatewayParamsAction$inboundSchema;
|
|
33
|
-
/** @deprecated use `JuspayPaymentGatewayParamsAction$outboundSchema` instead. */
|
|
34
|
-
JuspayPaymentGatewayParamsAction$.outboundSchema = JuspayPaymentGatewayParamsAction$outboundSchema;
|
|
35
|
-
})(JuspayPaymentGatewayParamsAction$ || (JuspayPaymentGatewayParamsAction$ = {}));
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const IntegrationType$inboundSchema = z.nativeEnum(IntegrationType);
|
|
38
|
-
/** @internal */
|
|
39
|
-
export const IntegrationType$outboundSchema = IntegrationType$inboundSchema;
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
-
*/
|
|
44
|
-
export var IntegrationType$;
|
|
45
|
-
(function (IntegrationType$) {
|
|
46
|
-
/** @deprecated use `IntegrationType$inboundSchema` instead. */
|
|
47
|
-
IntegrationType$.inboundSchema = IntegrationType$inboundSchema;
|
|
48
|
-
/** @deprecated use `IntegrationType$outboundSchema` instead. */
|
|
49
|
-
IntegrationType$.outboundSchema = IntegrationType$outboundSchema;
|
|
50
|
-
})(IntegrationType$ || (IntegrationType$ = {}));
|
|
51
|
-
/** @internal */
|
|
52
|
-
export const JuspayPaymentGatewayParams$inboundSchema = z.object({
|
|
53
|
-
payment_gateway: z.literal("JUSPAY").default("JUSPAY"),
|
|
54
|
-
action: JuspayPaymentGatewayParamsAction$inboundSchema,
|
|
55
|
-
integration_type: IntegrationType$inboundSchema,
|
|
56
|
-
return_url: z.string(),
|
|
57
|
-
gateway_reference_id: z.string(),
|
|
58
|
-
}).transform((v) => {
|
|
59
|
-
return remap$(v, {
|
|
60
|
-
"payment_gateway": "paymentGateway",
|
|
61
|
-
"integration_type": "integrationType",
|
|
62
|
-
"return_url": "returnUrl",
|
|
63
|
-
"gateway_reference_id": "gatewayReferenceId",
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
/** @internal */
|
|
67
|
-
export const JuspayPaymentGatewayParams$outboundSchema = z.object({
|
|
68
|
-
paymentGateway: z.literal("JUSPAY").default("JUSPAY"),
|
|
69
|
-
action: JuspayPaymentGatewayParamsAction$outboundSchema,
|
|
70
|
-
integrationType: IntegrationType$outboundSchema,
|
|
71
|
-
returnUrl: z.string(),
|
|
72
|
-
gatewayReferenceId: z.string(),
|
|
73
|
-
}).transform((v) => {
|
|
74
|
-
return remap$(v, {
|
|
75
|
-
paymentGateway: "payment_gateway",
|
|
76
|
-
integrationType: "integration_type",
|
|
77
|
-
returnUrl: "return_url",
|
|
78
|
-
gatewayReferenceId: "gateway_reference_id",
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
-
*/
|
|
85
|
-
export var JuspayPaymentGatewayParams$;
|
|
86
|
-
(function (JuspayPaymentGatewayParams$) {
|
|
87
|
-
/** @deprecated use `JuspayPaymentGatewayParams$inboundSchema` instead. */
|
|
88
|
-
JuspayPaymentGatewayParams$.inboundSchema = JuspayPaymentGatewayParams$inboundSchema;
|
|
89
|
-
/** @deprecated use `JuspayPaymentGatewayParams$outboundSchema` instead. */
|
|
90
|
-
JuspayPaymentGatewayParams$.outboundSchema = JuspayPaymentGatewayParams$outboundSchema;
|
|
91
|
-
})(JuspayPaymentGatewayParams$ || (JuspayPaymentGatewayParams$ = {}));
|
|
92
|
-
export function juspayPaymentGatewayParamsToJSON(juspayPaymentGatewayParams) {
|
|
93
|
-
return JSON.stringify(JuspayPaymentGatewayParams$outboundSchema.parse(juspayPaymentGatewayParams));
|
|
94
|
-
}
|
|
95
|
-
export function juspayPaymentGatewayParamsFromJSON(jsonString) {
|
|
96
|
-
return safeParse(jsonString, (x) => JuspayPaymentGatewayParams$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JuspayPaymentGatewayParams' from JSON`);
|
|
97
|
-
}
|
|
98
|
-
//# sourceMappingURL=juspaypaymentgatewayparams.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"juspaypaymentgatewayparams.js","sourceRoot":"","sources":["../../../src/models/components/juspaypaymentgatewayparams.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,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C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { JuspayPaymentGatewayParams, JuspayPaymentGatewayParams$Outbound } from "./juspaypaymentgatewayparams.js";
|
|
5
|
-
import { PayuPaymentGatewayParams, PayuPaymentGatewayParams$Outbound } from "./payupaymentgatewayparams.js";
|
|
6
|
-
/**
|
|
7
|
-
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/PaymentGatewayParams} - API reference for the PaymentGatewayParams schema
|
|
8
|
-
*/
|
|
9
|
-
export type PaymentGatewayParams = (JuspayPaymentGatewayParams & {
|
|
10
|
-
paymentGateway: "JUSPAY";
|
|
11
|
-
}) | (PayuPaymentGatewayParams & {
|
|
12
|
-
paymentGateway: "PAYU";
|
|
13
|
-
});
|
|
14
|
-
/** @internal */
|
|
15
|
-
export declare const PaymentGatewayParams$inboundSchema: z.ZodType<PaymentGatewayParams, z.ZodTypeDef, unknown>;
|
|
16
|
-
/** @internal */
|
|
17
|
-
export type PaymentGatewayParams$Outbound = (JuspayPaymentGatewayParams$Outbound & {
|
|
18
|
-
payment_gateway: "JUSPAY";
|
|
19
|
-
}) | (PayuPaymentGatewayParams$Outbound & {
|
|
20
|
-
payment_gateway: "PAYU";
|
|
21
|
-
});
|
|
22
|
-
/** @internal */
|
|
23
|
-
export declare const PaymentGatewayParams$outboundSchema: z.ZodType<PaymentGatewayParams$Outbound, z.ZodTypeDef, PaymentGatewayParams>;
|
|
24
|
-
/**
|
|
25
|
-
* @internal
|
|
26
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
-
*/
|
|
28
|
-
export declare namespace PaymentGatewayParams$ {
|
|
29
|
-
/** @deprecated use `PaymentGatewayParams$inboundSchema` instead. */
|
|
30
|
-
const inboundSchema: z.ZodType<PaymentGatewayParams, z.ZodTypeDef, unknown>;
|
|
31
|
-
/** @deprecated use `PaymentGatewayParams$outboundSchema` instead. */
|
|
32
|
-
const outboundSchema: z.ZodType<PaymentGatewayParams$Outbound, z.ZodTypeDef, PaymentGatewayParams>;
|
|
33
|
-
/** @deprecated use `PaymentGatewayParams$Outbound` instead. */
|
|
34
|
-
type Outbound = PaymentGatewayParams$Outbound;
|
|
35
|
-
}
|
|
36
|
-
export declare function paymentGatewayParamsToJSON(paymentGatewayParams: PaymentGatewayParams): string;
|
|
37
|
-
export declare function paymentGatewayParamsFromJSON(jsonString: string): SafeParseResult<PaymentGatewayParams, SDKValidationError>;
|
|
38
|
-
//# sourceMappingURL=paymentgatewayparams.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paymentgatewayparams.d.ts","sourceRoot":"","sources":["../../../src/models/components/paymentgatewayparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,wBAAwB,EAExB,iCAAiC,EAElC,MAAM,+BAA+B,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B,CAAC,0BAA0B,GAAG;IAAE,cAAc,EAAE,QAAQ,CAAA;CAAE,CAAC,GAC3D,CAAC,wBAAwB,GAAG;IAAE,cAAc,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE5D,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GACrC,CAAC,mCAAmC,GAAG;IAAE,eAAe,EAAE,QAAQ,CAAA;CAAE,CAAC,GACrE,CAAC,iCAAiC,GAAG;IAAE,eAAe,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEtE,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAYpB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,qBAAqB,CAAC;IACrC,oEAAoE;IAC7D,MAAM,aAAa,wDAAqC,CAAC;IAChE,qEAAqE;IAC9D,MAAM,cAAc,8EAAsC,CAAC;IAClE,+DAA+D;IAC/D,KAAY,QAAQ,GAAG,6BAA6B,CAAC;CACtD;AAED,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AAED,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v3";
|
|
5
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
-
import { JuspayPaymentGatewayParams$inboundSchema, JuspayPaymentGatewayParams$outboundSchema, } from "./juspaypaymentgatewayparams.js";
|
|
7
|
-
import { PayuPaymentGatewayParams$inboundSchema, PayuPaymentGatewayParams$outboundSchema, } from "./payupaymentgatewayparams.js";
|
|
8
|
-
/** @internal */
|
|
9
|
-
export const PaymentGatewayParams$inboundSchema = z.union([
|
|
10
|
-
JuspayPaymentGatewayParams$inboundSchema.and(z.object({ payment_gateway: z.literal("JUSPAY") }).transform((v) => ({
|
|
11
|
-
paymentGateway: v.payment_gateway,
|
|
12
|
-
}))),
|
|
13
|
-
PayuPaymentGatewayParams$inboundSchema.and(z.object({ payment_gateway: z.literal("PAYU") }).transform((v) => ({
|
|
14
|
-
paymentGateway: v.payment_gateway,
|
|
15
|
-
}))),
|
|
16
|
-
]);
|
|
17
|
-
/** @internal */
|
|
18
|
-
export const PaymentGatewayParams$outboundSchema = z.union([
|
|
19
|
-
JuspayPaymentGatewayParams$outboundSchema.and(z.object({ paymentGateway: z.literal("JUSPAY") }).transform((v) => ({
|
|
20
|
-
payment_gateway: v.paymentGateway,
|
|
21
|
-
}))),
|
|
22
|
-
PayuPaymentGatewayParams$outboundSchema.and(z.object({ paymentGateway: z.literal("PAYU") }).transform((v) => ({
|
|
23
|
-
payment_gateway: v.paymentGateway,
|
|
24
|
-
}))),
|
|
25
|
-
]);
|
|
26
|
-
/**
|
|
27
|
-
* @internal
|
|
28
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
29
|
-
*/
|
|
30
|
-
export var PaymentGatewayParams$;
|
|
31
|
-
(function (PaymentGatewayParams$) {
|
|
32
|
-
/** @deprecated use `PaymentGatewayParams$inboundSchema` instead. */
|
|
33
|
-
PaymentGatewayParams$.inboundSchema = PaymentGatewayParams$inboundSchema;
|
|
34
|
-
/** @deprecated use `PaymentGatewayParams$outboundSchema` instead. */
|
|
35
|
-
PaymentGatewayParams$.outboundSchema = PaymentGatewayParams$outboundSchema;
|
|
36
|
-
})(PaymentGatewayParams$ || (PaymentGatewayParams$ = {}));
|
|
37
|
-
export function paymentGatewayParamsToJSON(paymentGatewayParams) {
|
|
38
|
-
return JSON.stringify(PaymentGatewayParams$outboundSchema.parse(paymentGatewayParams));
|
|
39
|
-
}
|
|
40
|
-
export function paymentGatewayParamsFromJSON(jsonString) {
|
|
41
|
-
return safeParse(jsonString, (x) => PaymentGatewayParams$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PaymentGatewayParams' from JSON`);
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=paymentgatewayparams.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paymentgatewayparams.js","sourceRoot":"","sources":["../../../src/models/components/paymentgatewayparams.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,wCAAwC,EAExC,yCAAyC,GAC1C,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEL,sCAAsC,EAEtC,uCAAuC,GACxC,MAAM,+BAA+B,CAAC;AASvC,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAI3C,CAAC,CAAC,KAAK,CAAC;IACV,wCAAwC,CAAC,GAAG,CAC1C,CAAC,CAAC,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACnE,cAAc,EAAE,CAAC,CAAC,eAAe;KAClC,CAAC,CAAC,CACJ;IACD,sCAAsC,CAAC,GAAG,CACxC,CAAC,CAAC,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACjE,cAAc,EAAE,CAAC,CAAC,eAAe;KAClC,CAAC,CAAC,CACJ;CACF,CAAC,CAAC;AAOH,gBAAgB;AA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import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
/**
|
|
5
|
-
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/PayuPaymentGatewayParams} - API reference for the PayuPaymentGatewayParams schema
|
|
6
|
-
*/
|
|
7
|
-
export type PayuPaymentGatewayParams = {
|
|
8
|
-
paymentGateway?: "PAYU" | undefined;
|
|
9
|
-
furl: string;
|
|
10
|
-
surl: string;
|
|
11
|
-
};
|
|
12
|
-
/** @internal */
|
|
13
|
-
export declare const PayuPaymentGatewayParams$inboundSchema: z.ZodType<PayuPaymentGatewayParams, z.ZodTypeDef, unknown>;
|
|
14
|
-
/** @internal */
|
|
15
|
-
export type PayuPaymentGatewayParams$Outbound = {
|
|
16
|
-
payment_gateway: "PAYU";
|
|
17
|
-
furl: string;
|
|
18
|
-
surl: string;
|
|
19
|
-
};
|
|
20
|
-
/** @internal */
|
|
21
|
-
export declare const PayuPaymentGatewayParams$outboundSchema: z.ZodType<PayuPaymentGatewayParams$Outbound, z.ZodTypeDef, PayuPaymentGatewayParams>;
|
|
22
|
-
/**
|
|
23
|
-
* @internal
|
|
24
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
25
|
-
*/
|
|
26
|
-
export declare namespace PayuPaymentGatewayParams$ {
|
|
27
|
-
/** @deprecated use `PayuPaymentGatewayParams$inboundSchema` instead. */
|
|
28
|
-
const inboundSchema: z.ZodType<PayuPaymentGatewayParams, z.ZodTypeDef, unknown>;
|
|
29
|
-
/** @deprecated use `PayuPaymentGatewayParams$outboundSchema` instead. */
|
|
30
|
-
const outboundSchema: z.ZodType<PayuPaymentGatewayParams$Outbound, z.ZodTypeDef, PayuPaymentGatewayParams>;
|
|
31
|
-
/** @deprecated use `PayuPaymentGatewayParams$Outbound` instead. */
|
|
32
|
-
type Outbound = PayuPaymentGatewayParams$Outbound;
|
|
33
|
-
}
|
|
34
|
-
export declare function payuPaymentGatewayParamsToJSON(payuPaymentGatewayParams: PayuPaymentGatewayParams): string;
|
|
35
|
-
export declare function payuPaymentGatewayParamsFromJSON(jsonString: string): SafeParseResult<PayuPaymentGatewayParams, SDKValidationError>;
|
|
36
|
-
//# sourceMappingURL=payupaymentgatewayparams.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payupaymentgatewayparams.d.ts","sourceRoot":"","sources":["../../../src/models/components/payupaymentgatewayparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,iCAAiC,GAAG;IAC9C,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,wBAAwB,CASxB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,yBAAyB,CAAC;IACzC,wEAAwE;IACjE,MAAM,aAAa,4DAAyC,CAAC;IACpE,yEAAyE;IAClE,MAAM,cAAc,sFAA0C,CAAC;IACtE,mEAAmE;IACnE,KAAY,QAAQ,GAAG,iCAAiC,CAAC;CAC1D;AAED,wBAAgB,8BAA8B,CAC5C,wBAAwB,EAAE,wBAAwB,GACjD,MAAM,CAIR;AAED,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v3";
|
|
5
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export const PayuPaymentGatewayParams$inboundSchema = z.object({
|
|
9
|
-
payment_gateway: z.literal("PAYU").default("PAYU"),
|
|
10
|
-
furl: z.string(),
|
|
11
|
-
surl: z.string(),
|
|
12
|
-
}).transform((v) => {
|
|
13
|
-
return remap$(v, {
|
|
14
|
-
"payment_gateway": "paymentGateway",
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
/** @internal */
|
|
18
|
-
export const PayuPaymentGatewayParams$outboundSchema = z.object({
|
|
19
|
-
paymentGateway: z.literal("PAYU").default("PAYU"),
|
|
20
|
-
furl: z.string(),
|
|
21
|
-
surl: z.string(),
|
|
22
|
-
}).transform((v) => {
|
|
23
|
-
return remap$(v, {
|
|
24
|
-
paymentGateway: "payment_gateway",
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
/**
|
|
28
|
-
* @internal
|
|
29
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
30
|
-
*/
|
|
31
|
-
export var PayuPaymentGatewayParams$;
|
|
32
|
-
(function (PayuPaymentGatewayParams$) {
|
|
33
|
-
/** @deprecated use `PayuPaymentGatewayParams$inboundSchema` instead. */
|
|
34
|
-
PayuPaymentGatewayParams$.inboundSchema = PayuPaymentGatewayParams$inboundSchema;
|
|
35
|
-
/** @deprecated use `PayuPaymentGatewayParams$outboundSchema` instead. */
|
|
36
|
-
PayuPaymentGatewayParams$.outboundSchema = PayuPaymentGatewayParams$outboundSchema;
|
|
37
|
-
})(PayuPaymentGatewayParams$ || (PayuPaymentGatewayParams$ = {}));
|
|
38
|
-
export function payuPaymentGatewayParamsToJSON(payuPaymentGatewayParams) {
|
|
39
|
-
return JSON.stringify(PayuPaymentGatewayParams$outboundSchema.parse(payuPaymentGatewayParams));
|
|
40
|
-
}
|
|
41
|
-
export function payuPaymentGatewayParamsFromJSON(jsonString) {
|
|
42
|
-
return safeParse(jsonString, (x) => PayuPaymentGatewayParams$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PayuPaymentGatewayParams' from JSON`);
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=payupaymentgatewayparams.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payupaymentgatewayparams.js","sourceRoot":"","sources":["../../../src/models/components/payupaymentgatewayparams.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAajD,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,iBAAiB,EAAE,gBAAgB;KACpC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AASH,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,MAAe,CAAC;IAC1D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,yBAAyB,CAOzC;AAPD,WAAiB,yBAAyB;IACxC,wEAAwE;IAC3D,uCAAa,GAAG,sCAAsC,CAAC;IACpE,yEAAyE;IAC5D,wCAAc,GAAG,uCAAuC,CAAC;AAGxE,CAAC,EAPgB,yBAAyB,KAAzB,yBAAyB,QAOzC;AAED,MAAM,UAAU,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,uCAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
|
|
@@ -1,181 +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 { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* `paymentPage` is the default option that you should select when using hyper-checkout
|
|
14
|
-
*/
|
|
15
|
-
export const JuspayPaymentGatewayParamsAction = {
|
|
16
|
-
PaymentPage: "paymentPage",
|
|
17
|
-
PaymentManagement: "paymentManagement",
|
|
18
|
-
} as const;
|
|
19
|
-
/**
|
|
20
|
-
* `paymentPage` is the default option that you should select when using hyper-checkout
|
|
21
|
-
*/
|
|
22
|
-
export type JuspayPaymentGatewayParamsAction = ClosedEnum<
|
|
23
|
-
typeof JuspayPaymentGatewayParamsAction
|
|
24
|
-
>;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Use `hyper-checkout` for Juspay hosted checkout
|
|
28
|
-
*/
|
|
29
|
-
export const IntegrationType = {
|
|
30
|
-
HyperCheckout: "hyper-checkout",
|
|
31
|
-
ExpressCheckout: "express-checkout",
|
|
32
|
-
} as const;
|
|
33
|
-
/**
|
|
34
|
-
* Use `hyper-checkout` for Juspay hosted checkout
|
|
35
|
-
*/
|
|
36
|
-
export type IntegrationType = ClosedEnum<typeof IntegrationType>;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/JuspayPaymentGatewayParams} - API reference for the JuspayPaymentGatewayParams schema
|
|
40
|
-
*/
|
|
41
|
-
export type JuspayPaymentGatewayParams = {
|
|
42
|
-
paymentGateway?: "JUSPAY" | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* `paymentPage` is the default option that you should select when using hyper-checkout
|
|
45
|
-
*/
|
|
46
|
-
action: JuspayPaymentGatewayParamsAction;
|
|
47
|
-
/**
|
|
48
|
-
* Use `hyper-checkout` for Juspay hosted checkout
|
|
49
|
-
*/
|
|
50
|
-
integrationType: IntegrationType;
|
|
51
|
-
/**
|
|
52
|
-
* This is the URL that the gateway will redirect to once payment processing is complete. This will be a GET request by default
|
|
53
|
-
*/
|
|
54
|
-
returnUrl: string;
|
|
55
|
-
/**
|
|
56
|
-
* The exact gateway reference ID that was set up in the integration
|
|
57
|
-
*/
|
|
58
|
-
gatewayReferenceId: string;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
/** @internal */
|
|
62
|
-
export const JuspayPaymentGatewayParamsAction$inboundSchema: z.ZodNativeEnum<
|
|
63
|
-
typeof JuspayPaymentGatewayParamsAction
|
|
64
|
-
> = z.nativeEnum(JuspayPaymentGatewayParamsAction);
|
|
65
|
-
|
|
66
|
-
/** @internal */
|
|
67
|
-
export const JuspayPaymentGatewayParamsAction$outboundSchema: z.ZodNativeEnum<
|
|
68
|
-
typeof JuspayPaymentGatewayParamsAction
|
|
69
|
-
> = JuspayPaymentGatewayParamsAction$inboundSchema;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @internal
|
|
73
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
74
|
-
*/
|
|
75
|
-
export namespace JuspayPaymentGatewayParamsAction$ {
|
|
76
|
-
/** @deprecated use `JuspayPaymentGatewayParamsAction$inboundSchema` instead. */
|
|
77
|
-
export const inboundSchema = JuspayPaymentGatewayParamsAction$inboundSchema;
|
|
78
|
-
/** @deprecated use `JuspayPaymentGatewayParamsAction$outboundSchema` instead. */
|
|
79
|
-
export const outboundSchema = JuspayPaymentGatewayParamsAction$outboundSchema;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/** @internal */
|
|
83
|
-
export const IntegrationType$inboundSchema: z.ZodNativeEnum<
|
|
84
|
-
typeof IntegrationType
|
|
85
|
-
> = z.nativeEnum(IntegrationType);
|
|
86
|
-
|
|
87
|
-
/** @internal */
|
|
88
|
-
export const IntegrationType$outboundSchema: z.ZodNativeEnum<
|
|
89
|
-
typeof IntegrationType
|
|
90
|
-
> = IntegrationType$inboundSchema;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* @internal
|
|
94
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
95
|
-
*/
|
|
96
|
-
export namespace IntegrationType$ {
|
|
97
|
-
/** @deprecated use `IntegrationType$inboundSchema` instead. */
|
|
98
|
-
export const inboundSchema = IntegrationType$inboundSchema;
|
|
99
|
-
/** @deprecated use `IntegrationType$outboundSchema` instead. */
|
|
100
|
-
export const outboundSchema = IntegrationType$outboundSchema;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/** @internal */
|
|
104
|
-
export const JuspayPaymentGatewayParams$inboundSchema: z.ZodType<
|
|
105
|
-
JuspayPaymentGatewayParams,
|
|
106
|
-
z.ZodTypeDef,
|
|
107
|
-
unknown
|
|
108
|
-
> = z.object({
|
|
109
|
-
payment_gateway: z.literal("JUSPAY").default("JUSPAY"),
|
|
110
|
-
action: JuspayPaymentGatewayParamsAction$inboundSchema,
|
|
111
|
-
integration_type: IntegrationType$inboundSchema,
|
|
112
|
-
return_url: z.string(),
|
|
113
|
-
gateway_reference_id: z.string(),
|
|
114
|
-
}).transform((v) => {
|
|
115
|
-
return remap$(v, {
|
|
116
|
-
"payment_gateway": "paymentGateway",
|
|
117
|
-
"integration_type": "integrationType",
|
|
118
|
-
"return_url": "returnUrl",
|
|
119
|
-
"gateway_reference_id": "gatewayReferenceId",
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
/** @internal */
|
|
124
|
-
export type JuspayPaymentGatewayParams$Outbound = {
|
|
125
|
-
payment_gateway: "JUSPAY";
|
|
126
|
-
action: string;
|
|
127
|
-
integration_type: string;
|
|
128
|
-
return_url: string;
|
|
129
|
-
gateway_reference_id: string;
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
/** @internal */
|
|
133
|
-
export const JuspayPaymentGatewayParams$outboundSchema: z.ZodType<
|
|
134
|
-
JuspayPaymentGatewayParams$Outbound,
|
|
135
|
-
z.ZodTypeDef,
|
|
136
|
-
JuspayPaymentGatewayParams
|
|
137
|
-
> = z.object({
|
|
138
|
-
paymentGateway: z.literal("JUSPAY").default("JUSPAY" as const),
|
|
139
|
-
action: JuspayPaymentGatewayParamsAction$outboundSchema,
|
|
140
|
-
integrationType: IntegrationType$outboundSchema,
|
|
141
|
-
returnUrl: z.string(),
|
|
142
|
-
gatewayReferenceId: z.string(),
|
|
143
|
-
}).transform((v) => {
|
|
144
|
-
return remap$(v, {
|
|
145
|
-
paymentGateway: "payment_gateway",
|
|
146
|
-
integrationType: "integration_type",
|
|
147
|
-
returnUrl: "return_url",
|
|
148
|
-
gatewayReferenceId: "gateway_reference_id",
|
|
149
|
-
});
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* @internal
|
|
154
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
155
|
-
*/
|
|
156
|
-
export namespace JuspayPaymentGatewayParams$ {
|
|
157
|
-
/** @deprecated use `JuspayPaymentGatewayParams$inboundSchema` instead. */
|
|
158
|
-
export const inboundSchema = JuspayPaymentGatewayParams$inboundSchema;
|
|
159
|
-
/** @deprecated use `JuspayPaymentGatewayParams$outboundSchema` instead. */
|
|
160
|
-
export const outboundSchema = JuspayPaymentGatewayParams$outboundSchema;
|
|
161
|
-
/** @deprecated use `JuspayPaymentGatewayParams$Outbound` instead. */
|
|
162
|
-
export type Outbound = JuspayPaymentGatewayParams$Outbound;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export function juspayPaymentGatewayParamsToJSON(
|
|
166
|
-
juspayPaymentGatewayParams: JuspayPaymentGatewayParams,
|
|
167
|
-
): string {
|
|
168
|
-
return JSON.stringify(
|
|
169
|
-
JuspayPaymentGatewayParams$outboundSchema.parse(juspayPaymentGatewayParams),
|
|
170
|
-
);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
export function juspayPaymentGatewayParamsFromJSON(
|
|
174
|
-
jsonString: string,
|
|
175
|
-
): SafeParseResult<JuspayPaymentGatewayParams, SDKValidationError> {
|
|
176
|
-
return safeParse(
|
|
177
|
-
jsonString,
|
|
178
|
-
(x) => JuspayPaymentGatewayParams$inboundSchema.parse(JSON.parse(x)),
|
|
179
|
-
`Failed to parse 'JuspayPaymentGatewayParams' from JSON`,
|
|
180
|
-
);
|
|
181
|
-
}
|
|
@@ -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
|
-
}
|