ce-storefront 0.18.1 → 0.18.3

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.
Files changed (84) hide show
  1. package/docs/sdks/orders/README.md +0 -16
  2. package/esm/lib/config.d.ts +3 -3
  3. package/esm/lib/config.js +3 -3
  4. package/esm/models/components/index.d.ts +10 -2
  5. package/esm/models/components/index.d.ts.map +1 -1
  6. package/esm/models/components/index.js +10 -2
  7. package/esm/models/components/index.js.map +1 -1
  8. package/esm/models/components/juspayexpresscheckout.d.ts +33 -0
  9. package/esm/models/components/juspayexpresscheckout.d.ts.map +1 -0
  10. package/esm/models/components/juspayexpresscheckout.js +44 -0
  11. package/esm/models/components/juspayexpresscheckout.js.map +1 -0
  12. package/esm/models/components/juspayexpresscheckoutresponse.d.ts +187 -0
  13. package/esm/models/components/juspayexpresscheckoutresponse.d.ts.map +1 -0
  14. package/esm/models/components/juspayexpresscheckoutresponse.js +237 -0
  15. package/esm/models/components/juspayexpresscheckoutresponse.js.map +1 -0
  16. package/esm/models/components/juspayhypercheckout.d.ts +63 -0
  17. package/esm/models/components/juspayhypercheckout.d.ts.map +1 -0
  18. package/esm/models/components/juspayhypercheckout.js +74 -0
  19. package/esm/models/components/juspayhypercheckout.js.map +1 -0
  20. package/esm/models/components/{juspaypaymentinfo.d.ts → juspayhypercheckoutresponse.d.ts} +17 -15
  21. package/esm/models/components/juspayhypercheckoutresponse.d.ts.map +1 -0
  22. package/esm/models/components/{juspaypaymentinfo.js → juspayhypercheckoutresponse.js} +18 -14
  23. package/esm/models/components/juspayhypercheckoutresponse.js.map +1 -0
  24. package/esm/models/components/juspaynetbanking.d.ts +46 -0
  25. package/esm/models/components/juspaynetbanking.d.ts.map +1 -0
  26. package/esm/models/components/juspaynetbanking.js +69 -0
  27. package/esm/models/components/juspaynetbanking.js.map +1 -0
  28. package/esm/models/components/juspaynewcard.d.ts +88 -0
  29. package/esm/models/components/juspaynewcard.d.ts.map +1 -0
  30. package/esm/models/components/juspaynewcard.js +118 -0
  31. package/esm/models/components/juspaynewcard.js.map +1 -0
  32. package/esm/models/components/juspaypaymentgatewayparams.d.ts +8 -8
  33. package/esm/models/components/juspaypaymentgatewayparams.d.ts.map +1 -1
  34. package/esm/models/components/juspaypaymentgatewayparams.js +12 -13
  35. package/esm/models/components/juspaypaymentgatewayparams.js.map +1 -1
  36. package/esm/models/components/juspaysavedcardtoken.d.ts +82 -0
  37. package/esm/models/components/juspaysavedcardtoken.d.ts.map +1 -0
  38. package/esm/models/components/juspaysavedcardtoken.js +106 -0
  39. package/esm/models/components/juspaysavedcardtoken.js.map +1 -0
  40. package/esm/models/components/juspayupicollect.d.ts +48 -0
  41. package/esm/models/components/juspayupicollect.d.ts.map +1 -0
  42. package/esm/models/components/juspayupicollect.js +73 -0
  43. package/esm/models/components/juspayupicollect.js.map +1 -0
  44. package/esm/models/components/juspayupiintent.d.ts +50 -0
  45. package/esm/models/components/juspayupiintent.d.ts.map +1 -0
  46. package/esm/models/components/juspayupiintent.js +77 -0
  47. package/esm/models/components/juspayupiintent.js.map +1 -0
  48. package/esm/models/components/paymentmethodpayload.d.ts +30 -0
  49. package/esm/models/components/paymentmethodpayload.d.ts.map +1 -0
  50. package/esm/models/components/paymentmethodpayload.js +35 -0
  51. package/esm/models/components/paymentmethodpayload.js.map +1 -0
  52. package/esm/models/operations/createorder.d.ts +6 -8
  53. package/esm/models/operations/createorder.d.ts.map +1 -1
  54. package/esm/models/operations/createorder.js +12 -12
  55. package/esm/models/operations/createorder.js.map +1 -1
  56. package/esm/models/operations/retryorderpayment.d.ts +4 -4
  57. package/esm/models/operations/retryorderpayment.d.ts.map +1 -1
  58. package/esm/models/operations/retryorderpayment.js +8 -4
  59. package/esm/models/operations/retryorderpayment.js.map +1 -1
  60. package/examples/package-lock.json +1 -1
  61. package/jsr.json +1 -1
  62. package/package.json +1 -1
  63. package/src/lib/config.ts +3 -3
  64. package/src/models/components/index.ts +10 -2
  65. package/src/models/components/juspayexpresscheckout.ts +113 -0
  66. package/src/models/components/juspayexpresscheckoutresponse.ts +443 -0
  67. package/src/models/components/juspayhypercheckout.ts +126 -0
  68. package/src/models/components/{juspaypaymentinfo.ts → juspayhypercheckoutresponse.ts} +32 -22
  69. package/src/models/components/juspaynetbanking.ts +121 -0
  70. package/src/models/components/juspaynewcard.ts +191 -0
  71. package/src/models/components/juspaypaymentgatewayparams.ts +18 -14
  72. package/src/models/components/juspaysavedcardtoken.ts +180 -0
  73. package/src/models/components/juspayupicollect.ts +127 -0
  74. package/src/models/components/juspayupiintent.ts +131 -0
  75. package/src/models/components/paymentmethodpayload.ts +81 -0
  76. package/src/models/operations/createorder.ts +27 -23
  77. package/src/models/operations/retryorderpayment.ts +21 -11
  78. package/esm/models/components/juspaypaymentinfo.d.ts.map +0 -1
  79. package/esm/models/components/juspaypaymentinfo.js.map +0 -1
  80. package/esm/models/components/paymentgateway.d.ts +0 -34
  81. package/esm/models/components/paymentgateway.d.ts.map +0 -1
  82. package/esm/models/components/paymentgateway.js +0 -27
  83. package/esm/models/components/paymentgateway.js.map +0 -1
  84. package/src/models/components/paymentgateway.ts +0 -39
@@ -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;AAgCrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,sBAAsB,EAAE,UAAU,CAAC,kCAAkC;CACtE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EA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AA8B;IAC7C,6EAA6E;IAChE,4CAAa,GAAG,2CAA2C,CAAC;IACzE,8EAA8E;IACjE,6CAAc,GAAG,4CAA4C,CAAC;AAG7E,CAAC,EAPgB,8BAA8B,KAA9B,8BAA8B,QAO9C;AAED,MAAM,UAAU,mCAAmC,CACjD,6BAA4D;IAE5D,OAAO,IAAI,CAAC,SAAS,CACnB,4CAA4C,CAAC,KAAK,CAChD,6BAA6B,CAC9B,CACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,qCAAqC,CACnD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAA2C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvE,2DAA2D,CAC5D,CAAC;AACJ,CAAC"}
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,CAAC,CAAC,MAAM,CAAC;IACX,sBAAsB,EAAE,UAAU,CAAC,kCAAkC;CACtE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,wBAAwB,EAAE,sBAAsB;KACjD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AAChB,MAAM,CAAC,MAAM,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,oBAAoB,EAAE,UAAU,CAAC,mCAAmC;CACrE,CAAC,CAAC,SAAS,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,CAAC,EAPgB,8BAA8B,KAA9B,8BAA8B,QAO9C;AAED,MAAM,UAAU,mCAAmC,CACjD,6BAA4D;IAE5D,OAAO,IAAI,CAAC,SAAS,CACnB,4CAA4C,CAAC,KAAK,CAChD,6BAA6B,CAC9B,CACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,qCAAqC,CACnD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAA2C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvE,2DAA2D,CAC5D,CAAC;AACJ,CAAC"}
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "..": {
20
20
  "name": "ce-storefront",
21
- "version": "0.18.1",
21
+ "version": "0.18.3",
22
22
  "dependencies": {
23
23
  "zod": "^3.25.0 || ^4.0.0"
24
24
  },
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "ce-storefront",
5
- "version": "0.18.1",
5
+ "version": "0.18.3",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ce-storefront",
3
- "version": "0.18.1",
3
+ "version": "0.18.3",
4
4
  "author": "TarkAI",
5
5
  "type": "module",
6
6
  "main": "./esm/index.js",
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.18.1",
84
- genVersion: "2.730.5",
85
- userAgent: "speakeasy-sdk/typescript 0.18.1 2.730.5 1.0 ce-storefront",
83
+ sdkVersion: "0.18.3",
84
+ genVersion: "2.731.9",
85
+ userAgent: "speakeasy-sdk/typescript 0.18.3 2.731.9 1.0 ce-storefront",
86
86
  } as const;
@@ -37,8 +37,16 @@ export * from "./fulfillmentpreferenceinput.js";
37
37
  export * from "./generateotpwithemail.js";
38
38
  export * from "./generateotpwithphone.js";
39
39
  export * from "./item.js";
40
+ export * from "./juspayexpresscheckout.js";
41
+ export * from "./juspayexpresscheckoutresponse.js";
42
+ export * from "./juspayhypercheckout.js";
43
+ export * from "./juspayhypercheckoutresponse.js";
44
+ export * from "./juspaynetbanking.js";
45
+ export * from "./juspaynewcard.js";
40
46
  export * from "./juspaypaymentgatewayparams.js";
41
- export * from "./juspaypaymentinfo.js";
47
+ export * from "./juspaysavedcardtoken.js";
48
+ export * from "./juspayupicollect.js";
49
+ export * from "./juspayupiintent.js";
42
50
  export * from "./lotbatchdetail.js";
43
51
  export * from "./multiselectattribute.js";
44
52
  export * from "./netbankingpayment.js";
@@ -54,8 +62,8 @@ export * from "./ordershipment.js";
54
62
  export * from "./pagination.js";
55
63
  export * from "./partialcollectanddelivery.js";
56
64
  export * from "./partialcollectanddeliveryinput.js";
57
- export * from "./paymentgateway.js";
58
65
  export * from "./paymentgatewayparams.js";
66
+ export * from "./paymentmethodpayload.js";
59
67
  export * from "./payupaymentgatewayparams.js";
60
68
  export * from "./payupaymentinfo.js";
61
69
  export * from "./pincode.js";
@@ -0,0 +1,113 @@
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
+ JuspayNetBanking,
11
+ JuspayNetBanking$inboundSchema,
12
+ JuspayNetBanking$Outbound,
13
+ JuspayNetBanking$outboundSchema,
14
+ } from "./juspaynetbanking.js";
15
+ import {
16
+ JusPayNewCard,
17
+ JusPayNewCard$inboundSchema,
18
+ JusPayNewCard$Outbound,
19
+ JusPayNewCard$outboundSchema,
20
+ } from "./juspaynewcard.js";
21
+ import {
22
+ JusPaySavedCardToken,
23
+ JusPaySavedCardToken$inboundSchema,
24
+ JusPaySavedCardToken$Outbound,
25
+ JusPaySavedCardToken$outboundSchema,
26
+ } from "./juspaysavedcardtoken.js";
27
+ import {
28
+ JuspayUpiCollect,
29
+ JuspayUpiCollect$inboundSchema,
30
+ JuspayUpiCollect$Outbound,
31
+ JuspayUpiCollect$outboundSchema,
32
+ } from "./juspayupicollect.js";
33
+ import {
34
+ JuspayUpiIntent,
35
+ JuspayUpiIntent$inboundSchema,
36
+ JuspayUpiIntent$Outbound,
37
+ JuspayUpiIntent$outboundSchema,
38
+ } from "./juspayupiintent.js";
39
+
40
+ /**
41
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/JusPayExpressCheckout} - API reference for the JusPayExpressCheckout schema
42
+ */
43
+ export type JusPayExpressCheckout =
44
+ | JusPayNewCard
45
+ | JusPaySavedCardToken
46
+ | JuspayUpiIntent
47
+ | JuspayUpiCollect
48
+ | JuspayNetBanking;
49
+
50
+ /** @internal */
51
+ export const JusPayExpressCheckout$inboundSchema: z.ZodType<
52
+ JusPayExpressCheckout,
53
+ z.ZodTypeDef,
54
+ unknown
55
+ > = z.union([
56
+ JusPayNewCard$inboundSchema,
57
+ JusPaySavedCardToken$inboundSchema,
58
+ JuspayUpiIntent$inboundSchema,
59
+ JuspayUpiCollect$inboundSchema,
60
+ JuspayNetBanking$inboundSchema,
61
+ ]);
62
+
63
+ /** @internal */
64
+ export type JusPayExpressCheckout$Outbound =
65
+ | JusPayNewCard$Outbound
66
+ | JusPaySavedCardToken$Outbound
67
+ | JuspayUpiIntent$Outbound
68
+ | JuspayUpiCollect$Outbound
69
+ | JuspayNetBanking$Outbound;
70
+
71
+ /** @internal */
72
+ export const JusPayExpressCheckout$outboundSchema: z.ZodType<
73
+ JusPayExpressCheckout$Outbound,
74
+ z.ZodTypeDef,
75
+ JusPayExpressCheckout
76
+ > = z.union([
77
+ JusPayNewCard$outboundSchema,
78
+ JusPaySavedCardToken$outboundSchema,
79
+ JuspayUpiIntent$outboundSchema,
80
+ JuspayUpiCollect$outboundSchema,
81
+ JuspayNetBanking$outboundSchema,
82
+ ]);
83
+
84
+ /**
85
+ * @internal
86
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
87
+ */
88
+ export namespace JusPayExpressCheckout$ {
89
+ /** @deprecated use `JusPayExpressCheckout$inboundSchema` instead. */
90
+ export const inboundSchema = JusPayExpressCheckout$inboundSchema;
91
+ /** @deprecated use `JusPayExpressCheckout$outboundSchema` instead. */
92
+ export const outboundSchema = JusPayExpressCheckout$outboundSchema;
93
+ /** @deprecated use `JusPayExpressCheckout$Outbound` instead. */
94
+ export type Outbound = JusPayExpressCheckout$Outbound;
95
+ }
96
+
97
+ export function jusPayExpressCheckoutToJSON(
98
+ jusPayExpressCheckout: JusPayExpressCheckout,
99
+ ): string {
100
+ return JSON.stringify(
101
+ JusPayExpressCheckout$outboundSchema.parse(jusPayExpressCheckout),
102
+ );
103
+ }
104
+
105
+ export function jusPayExpressCheckoutFromJSON(
106
+ jsonString: string,
107
+ ): SafeParseResult<JusPayExpressCheckout, SDKValidationError> {
108
+ return safeParse(
109
+ jsonString,
110
+ (x) => JusPayExpressCheckout$inboundSchema.parse(JSON.parse(x)),
111
+ `Failed to parse 'JusPayExpressCheckout' from JSON`,
112
+ );
113
+ }
@@ -0,0 +1,443 @@
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
+ export type Juspay = {
12
+ clientAuthToken?: string | undefined;
13
+ clientAuthTokenExpiry?: string | undefined;
14
+ };
15
+
16
+ export type Offers = {};
17
+
18
+ export type OfferDetails = {
19
+ offers?: Array<Offers> | undefined;
20
+ };
21
+
22
+ export type SDKParams = {
23
+ mam?: string | undefined;
24
+ tr?: string | undefined;
25
+ merchantVpa?: string | undefined;
26
+ customerFirstName?: string | undefined;
27
+ customerLastName?: string | undefined;
28
+ tn?: string | undefined;
29
+ mcc?: string | undefined;
30
+ merchantName?: string | undefined;
31
+ currency?: string | undefined;
32
+ amount?: string | undefined;
33
+ };
34
+
35
+ export type Payment = {
36
+ sdkParams?: SDKParams | undefined;
37
+ };
38
+
39
+ /**
40
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/JusPayExpressCheckoutResponse} - API reference for the JusPayExpressCheckoutResponse schema
41
+ */
42
+ export type JusPayExpressCheckoutResponse = {
43
+ txnId?: string | undefined;
44
+ txnUuid?: string | undefined;
45
+ status?: string | undefined;
46
+ orderId?: string | undefined;
47
+ juspay?: Juspay | undefined;
48
+ offerDetails?: OfferDetails | undefined;
49
+ payment?: Payment | null | undefined;
50
+ orderExpiry?: Date | undefined;
51
+ };
52
+
53
+ /** @internal */
54
+ export const Juspay$inboundSchema: z.ZodType<Juspay, z.ZodTypeDef, unknown> = z
55
+ .object({
56
+ client_auth_token: z.string().optional(),
57
+ client_auth_token_expiry: z.string().optional(),
58
+ }).transform((v) => {
59
+ return remap$(v, {
60
+ "client_auth_token": "clientAuthToken",
61
+ "client_auth_token_expiry": "clientAuthTokenExpiry",
62
+ });
63
+ });
64
+
65
+ /** @internal */
66
+ export type Juspay$Outbound = {
67
+ client_auth_token?: string | undefined;
68
+ client_auth_token_expiry?: string | undefined;
69
+ };
70
+
71
+ /** @internal */
72
+ export const Juspay$outboundSchema: z.ZodType<
73
+ Juspay$Outbound,
74
+ z.ZodTypeDef,
75
+ Juspay
76
+ > = z.object({
77
+ clientAuthToken: z.string().optional(),
78
+ clientAuthTokenExpiry: z.string().optional(),
79
+ }).transform((v) => {
80
+ return remap$(v, {
81
+ clientAuthToken: "client_auth_token",
82
+ clientAuthTokenExpiry: "client_auth_token_expiry",
83
+ });
84
+ });
85
+
86
+ /**
87
+ * @internal
88
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
89
+ */
90
+ export namespace Juspay$ {
91
+ /** @deprecated use `Juspay$inboundSchema` instead. */
92
+ export const inboundSchema = Juspay$inboundSchema;
93
+ /** @deprecated use `Juspay$outboundSchema` instead. */
94
+ export const outboundSchema = Juspay$outboundSchema;
95
+ /** @deprecated use `Juspay$Outbound` instead. */
96
+ export type Outbound = Juspay$Outbound;
97
+ }
98
+
99
+ export function juspayToJSON(juspay: Juspay): string {
100
+ return JSON.stringify(Juspay$outboundSchema.parse(juspay));
101
+ }
102
+
103
+ export function juspayFromJSON(
104
+ jsonString: string,
105
+ ): SafeParseResult<Juspay, SDKValidationError> {
106
+ return safeParse(
107
+ jsonString,
108
+ (x) => Juspay$inboundSchema.parse(JSON.parse(x)),
109
+ `Failed to parse 'Juspay' from JSON`,
110
+ );
111
+ }
112
+
113
+ /** @internal */
114
+ export const Offers$inboundSchema: z.ZodType<Offers, z.ZodTypeDef, unknown> = z
115
+ .object({});
116
+
117
+ /** @internal */
118
+ export type Offers$Outbound = {};
119
+
120
+ /** @internal */
121
+ export const Offers$outboundSchema: z.ZodType<
122
+ Offers$Outbound,
123
+ z.ZodTypeDef,
124
+ Offers
125
+ > = z.object({});
126
+
127
+ /**
128
+ * @internal
129
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
130
+ */
131
+ export namespace Offers$ {
132
+ /** @deprecated use `Offers$inboundSchema` instead. */
133
+ export const inboundSchema = Offers$inboundSchema;
134
+ /** @deprecated use `Offers$outboundSchema` instead. */
135
+ export const outboundSchema = Offers$outboundSchema;
136
+ /** @deprecated use `Offers$Outbound` instead. */
137
+ export type Outbound = Offers$Outbound;
138
+ }
139
+
140
+ export function offersToJSON(offers: Offers): string {
141
+ return JSON.stringify(Offers$outboundSchema.parse(offers));
142
+ }
143
+
144
+ export function offersFromJSON(
145
+ jsonString: string,
146
+ ): SafeParseResult<Offers, SDKValidationError> {
147
+ return safeParse(
148
+ jsonString,
149
+ (x) => Offers$inboundSchema.parse(JSON.parse(x)),
150
+ `Failed to parse 'Offers' from JSON`,
151
+ );
152
+ }
153
+
154
+ /** @internal */
155
+ export const OfferDetails$inboundSchema: z.ZodType<
156
+ OfferDetails,
157
+ z.ZodTypeDef,
158
+ unknown
159
+ > = z.object({
160
+ offers: z.array(z.lazy(() => Offers$inboundSchema)).optional(),
161
+ });
162
+
163
+ /** @internal */
164
+ export type OfferDetails$Outbound = {
165
+ offers?: Array<Offers$Outbound> | undefined;
166
+ };
167
+
168
+ /** @internal */
169
+ export const OfferDetails$outboundSchema: z.ZodType<
170
+ OfferDetails$Outbound,
171
+ z.ZodTypeDef,
172
+ OfferDetails
173
+ > = z.object({
174
+ offers: z.array(z.lazy(() => Offers$outboundSchema)).optional(),
175
+ });
176
+
177
+ /**
178
+ * @internal
179
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
180
+ */
181
+ export namespace OfferDetails$ {
182
+ /** @deprecated use `OfferDetails$inboundSchema` instead. */
183
+ export const inboundSchema = OfferDetails$inboundSchema;
184
+ /** @deprecated use `OfferDetails$outboundSchema` instead. */
185
+ export const outboundSchema = OfferDetails$outboundSchema;
186
+ /** @deprecated use `OfferDetails$Outbound` instead. */
187
+ export type Outbound = OfferDetails$Outbound;
188
+ }
189
+
190
+ export function offerDetailsToJSON(offerDetails: OfferDetails): string {
191
+ return JSON.stringify(OfferDetails$outboundSchema.parse(offerDetails));
192
+ }
193
+
194
+ export function offerDetailsFromJSON(
195
+ jsonString: string,
196
+ ): SafeParseResult<OfferDetails, SDKValidationError> {
197
+ return safeParse(
198
+ jsonString,
199
+ (x) => OfferDetails$inboundSchema.parse(JSON.parse(x)),
200
+ `Failed to parse 'OfferDetails' from JSON`,
201
+ );
202
+ }
203
+
204
+ /** @internal */
205
+ export const SDKParams$inboundSchema: z.ZodType<
206
+ SDKParams,
207
+ z.ZodTypeDef,
208
+ unknown
209
+ > = z.object({
210
+ mam: z.string().optional(),
211
+ tr: z.string().optional(),
212
+ merchant_vpa: z.string().optional(),
213
+ customer_first_name: z.string().optional(),
214
+ customer_last_name: z.string().optional(),
215
+ tn: z.string().optional(),
216
+ mcc: z.string().optional(),
217
+ merchant_name: z.string().optional(),
218
+ currency: z.string().optional(),
219
+ amount: z.string().optional(),
220
+ }).transform((v) => {
221
+ return remap$(v, {
222
+ "merchant_vpa": "merchantVpa",
223
+ "customer_first_name": "customerFirstName",
224
+ "customer_last_name": "customerLastName",
225
+ "merchant_name": "merchantName",
226
+ });
227
+ });
228
+
229
+ /** @internal */
230
+ export type SDKParams$Outbound = {
231
+ mam?: string | undefined;
232
+ tr?: string | undefined;
233
+ merchant_vpa?: string | undefined;
234
+ customer_first_name?: string | undefined;
235
+ customer_last_name?: string | undefined;
236
+ tn?: string | undefined;
237
+ mcc?: string | undefined;
238
+ merchant_name?: string | undefined;
239
+ currency?: string | undefined;
240
+ amount?: string | undefined;
241
+ };
242
+
243
+ /** @internal */
244
+ export const SDKParams$outboundSchema: z.ZodType<
245
+ SDKParams$Outbound,
246
+ z.ZodTypeDef,
247
+ SDKParams
248
+ > = z.object({
249
+ mam: z.string().optional(),
250
+ tr: z.string().optional(),
251
+ merchantVpa: z.string().optional(),
252
+ customerFirstName: z.string().optional(),
253
+ customerLastName: z.string().optional(),
254
+ tn: z.string().optional(),
255
+ mcc: z.string().optional(),
256
+ merchantName: z.string().optional(),
257
+ currency: z.string().optional(),
258
+ amount: z.string().optional(),
259
+ }).transform((v) => {
260
+ return remap$(v, {
261
+ merchantVpa: "merchant_vpa",
262
+ customerFirstName: "customer_first_name",
263
+ customerLastName: "customer_last_name",
264
+ merchantName: "merchant_name",
265
+ });
266
+ });
267
+
268
+ /**
269
+ * @internal
270
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
271
+ */
272
+ export namespace SDKParams$ {
273
+ /** @deprecated use `SDKParams$inboundSchema` instead. */
274
+ export const inboundSchema = SDKParams$inboundSchema;
275
+ /** @deprecated use `SDKParams$outboundSchema` instead. */
276
+ export const outboundSchema = SDKParams$outboundSchema;
277
+ /** @deprecated use `SDKParams$Outbound` instead. */
278
+ export type Outbound = SDKParams$Outbound;
279
+ }
280
+
281
+ export function sdkParamsToJSON(sdkParams: SDKParams): string {
282
+ return JSON.stringify(SDKParams$outboundSchema.parse(sdkParams));
283
+ }
284
+
285
+ export function sdkParamsFromJSON(
286
+ jsonString: string,
287
+ ): SafeParseResult<SDKParams, SDKValidationError> {
288
+ return safeParse(
289
+ jsonString,
290
+ (x) => SDKParams$inboundSchema.parse(JSON.parse(x)),
291
+ `Failed to parse 'SDKParams' from JSON`,
292
+ );
293
+ }
294
+
295
+ /** @internal */
296
+ export const Payment$inboundSchema: z.ZodType<Payment, z.ZodTypeDef, unknown> =
297
+ z.object({
298
+ sdk_params: z.lazy(() => SDKParams$inboundSchema).optional(),
299
+ }).transform((v) => {
300
+ return remap$(v, {
301
+ "sdk_params": "sdkParams",
302
+ });
303
+ });
304
+
305
+ /** @internal */
306
+ export type Payment$Outbound = {
307
+ sdk_params?: SDKParams$Outbound | undefined;
308
+ };
309
+
310
+ /** @internal */
311
+ export const Payment$outboundSchema: z.ZodType<
312
+ Payment$Outbound,
313
+ z.ZodTypeDef,
314
+ Payment
315
+ > = z.object({
316
+ sdkParams: z.lazy(() => SDKParams$outboundSchema).optional(),
317
+ }).transform((v) => {
318
+ return remap$(v, {
319
+ sdkParams: "sdk_params",
320
+ });
321
+ });
322
+
323
+ /**
324
+ * @internal
325
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
326
+ */
327
+ export namespace Payment$ {
328
+ /** @deprecated use `Payment$inboundSchema` instead. */
329
+ export const inboundSchema = Payment$inboundSchema;
330
+ /** @deprecated use `Payment$outboundSchema` instead. */
331
+ export const outboundSchema = Payment$outboundSchema;
332
+ /** @deprecated use `Payment$Outbound` instead. */
333
+ export type Outbound = Payment$Outbound;
334
+ }
335
+
336
+ export function paymentToJSON(payment: Payment): string {
337
+ return JSON.stringify(Payment$outboundSchema.parse(payment));
338
+ }
339
+
340
+ export function paymentFromJSON(
341
+ jsonString: string,
342
+ ): SafeParseResult<Payment, SDKValidationError> {
343
+ return safeParse(
344
+ jsonString,
345
+ (x) => Payment$inboundSchema.parse(JSON.parse(x)),
346
+ `Failed to parse 'Payment' from JSON`,
347
+ );
348
+ }
349
+
350
+ /** @internal */
351
+ export const JusPayExpressCheckoutResponse$inboundSchema: z.ZodType<
352
+ JusPayExpressCheckoutResponse,
353
+ z.ZodTypeDef,
354
+ unknown
355
+ > = z.object({
356
+ txn_id: z.string().optional(),
357
+ txn_uuid: z.string().optional(),
358
+ status: z.string().optional(),
359
+ order_id: z.string().optional(),
360
+ juspay: z.lazy(() => Juspay$inboundSchema).optional(),
361
+ offer_details: z.lazy(() => OfferDetails$inboundSchema).optional(),
362
+ payment: z.nullable(z.lazy(() => Payment$inboundSchema)).optional(),
363
+ order_expiry: z.string().datetime({ offset: true }).transform(v =>
364
+ new Date(v)
365
+ ).optional(),
366
+ }).transform((v) => {
367
+ return remap$(v, {
368
+ "txn_id": "txnId",
369
+ "txn_uuid": "txnUuid",
370
+ "order_id": "orderId",
371
+ "offer_details": "offerDetails",
372
+ "order_expiry": "orderExpiry",
373
+ });
374
+ });
375
+
376
+ /** @internal */
377
+ export type JusPayExpressCheckoutResponse$Outbound = {
378
+ txn_id?: string | undefined;
379
+ txn_uuid?: string | undefined;
380
+ status?: string | undefined;
381
+ order_id?: string | undefined;
382
+ juspay?: Juspay$Outbound | undefined;
383
+ offer_details?: OfferDetails$Outbound | undefined;
384
+ payment?: Payment$Outbound | null | undefined;
385
+ order_expiry?: string | undefined;
386
+ };
387
+
388
+ /** @internal */
389
+ export const JusPayExpressCheckoutResponse$outboundSchema: z.ZodType<
390
+ JusPayExpressCheckoutResponse$Outbound,
391
+ z.ZodTypeDef,
392
+ JusPayExpressCheckoutResponse
393
+ > = z.object({
394
+ txnId: z.string().optional(),
395
+ txnUuid: z.string().optional(),
396
+ status: z.string().optional(),
397
+ orderId: z.string().optional(),
398
+ juspay: z.lazy(() => Juspay$outboundSchema).optional(),
399
+ offerDetails: z.lazy(() => OfferDetails$outboundSchema).optional(),
400
+ payment: z.nullable(z.lazy(() => Payment$outboundSchema)).optional(),
401
+ orderExpiry: z.date().transform(v => v.toISOString()).optional(),
402
+ }).transform((v) => {
403
+ return remap$(v, {
404
+ txnId: "txn_id",
405
+ txnUuid: "txn_uuid",
406
+ orderId: "order_id",
407
+ offerDetails: "offer_details",
408
+ orderExpiry: "order_expiry",
409
+ });
410
+ });
411
+
412
+ /**
413
+ * @internal
414
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
415
+ */
416
+ export namespace JusPayExpressCheckoutResponse$ {
417
+ /** @deprecated use `JusPayExpressCheckoutResponse$inboundSchema` instead. */
418
+ export const inboundSchema = JusPayExpressCheckoutResponse$inboundSchema;
419
+ /** @deprecated use `JusPayExpressCheckoutResponse$outboundSchema` instead. */
420
+ export const outboundSchema = JusPayExpressCheckoutResponse$outboundSchema;
421
+ /** @deprecated use `JusPayExpressCheckoutResponse$Outbound` instead. */
422
+ export type Outbound = JusPayExpressCheckoutResponse$Outbound;
423
+ }
424
+
425
+ export function jusPayExpressCheckoutResponseToJSON(
426
+ jusPayExpressCheckoutResponse: JusPayExpressCheckoutResponse,
427
+ ): string {
428
+ return JSON.stringify(
429
+ JusPayExpressCheckoutResponse$outboundSchema.parse(
430
+ jusPayExpressCheckoutResponse,
431
+ ),
432
+ );
433
+ }
434
+
435
+ export function jusPayExpressCheckoutResponseFromJSON(
436
+ jsonString: string,
437
+ ): SafeParseResult<JusPayExpressCheckoutResponse, SDKValidationError> {
438
+ return safeParse(
439
+ jsonString,
440
+ (x) => JusPayExpressCheckoutResponse$inboundSchema.parse(JSON.parse(x)),
441
+ `Failed to parse 'JusPayExpressCheckoutResponse' from JSON`,
442
+ );
443
+ }