@coin-voyage/shared 0.0.23 → 0.0.25

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.
@@ -1,7 +1,7 @@
1
- import { CurrencyWithBalance, PayOrder } from "../common/index";
2
- import { DepositPayOrderParams, PaymentDetails, PaymentDetailsParams, PayOrderQuoteParams, RefundOrderParams, SalePayOrderParams } from "../types/api";
3
- import { APIEnvironment } from "./config";
4
- import { APIResponse } from "./fetcher";
1
+ import { type CurrencyWithBalance, type PayOrder } from "../common/index";
2
+ import type { DepositPayOrderParams, PaymentDetails, PaymentDetailsParams, PayOrderQuoteParams, RefundOrderParams, SalePayOrderParams } from "../types/api";
3
+ import { type APIEnvironment } from "./config";
4
+ import { type APIResponse } from "./fetcher";
5
5
  export declare class ApiClient {
6
6
  private readonly apiKey;
7
7
  private readonly environment?;
@@ -1,5 +1,4 @@
1
1
  import { createHash } from "crypto";
2
- import { z } from "zod";
3
2
  import { PayOrderMode, zDepositPayOrder, zPayOrderMetadata } from "../common/index";
4
3
  import { fetchApi } from "./fetcher";
5
4
  export class ApiClient {
@@ -67,7 +66,7 @@ export class ApiClient {
67
66
  path: "pay-orders",
68
67
  statusCode: 400,
69
68
  status: "Bad Request",
70
- message: result.error.errors.map(e => e.message).join(", "),
69
+ message: result.error.issues.map(e => e.message).join(", "),
71
70
  }
72
71
  };
73
72
  }
@@ -113,23 +112,27 @@ export class ApiClient {
113
112
  * }
114
113
  */
115
114
  async createSalePayOrder(params, signature) {
116
- try {
117
- if (params.metadata)
118
- zPayOrderMetadata.parse(params.metadata);
119
- return this.request({
120
- path: "pay-orders", options: {
121
- method: "POST",
122
- body: JSON.stringify({ mode: PayOrderMode.SALE, ...params }),
123
- headers: { Authorization: signature },
124
- },
125
- });
126
- }
127
- catch (err) {
128
- if (err instanceof z.ZodError) {
129
- throw new Error(err.errors.map(e => e.message).join(", "));
115
+ if (params.metadata) {
116
+ const result = zPayOrderMetadata.safeParse(params.metadata);
117
+ if (!result.success) {
118
+ return {
119
+ error: {
120
+ path: "pay-orders",
121
+ statusCode: 400,
122
+ status: "Bad Request",
123
+ message: result.error.issues.map(e => e.message).join(", "),
124
+ }
125
+ };
130
126
  }
131
- throw err;
132
127
  }
128
+ return this.request({
129
+ path: "pay-orders",
130
+ options: {
131
+ method: "POST",
132
+ body: JSON.stringify({ mode: PayOrderMode.SALE, ...params }),
133
+ headers: { Authorization: signature },
134
+ },
135
+ });
133
136
  }
134
137
  /**
135
138
  * Creates a `REFUND` PayOrder.
@@ -170,24 +173,27 @@ export class ApiClient {
170
173
  * }
171
174
  */
172
175
  async createRefundPayOrder(payOrderId, params, signature) {
173
- try {
174
- if (params.metadata)
175
- zPayOrderMetadata.parse(params.metadata);
176
- return this.request({
177
- path: `pay-orders/${payOrderId}/refund`,
178
- options: {
179
- method: "POST",
180
- body: JSON.stringify(params),
181
- headers: { Authorization: signature },
182
- },
183
- });
184
- }
185
- catch (err) {
186
- if (err instanceof z.ZodError) {
187
- throw new Error(err.errors.map(e => e.message).join(", "));
176
+ if (params.metadata) {
177
+ const result = zPayOrderMetadata.safeParse(params.metadata);
178
+ if (!result.success) {
179
+ return {
180
+ error: {
181
+ path: `pay-orders/${payOrderId}/refund`,
182
+ statusCode: 400,
183
+ status: "Bad Request",
184
+ message: result.error.issues.map(e => e.message).join(", "),
185
+ }
186
+ };
188
187
  }
189
- throw err;
190
188
  }
189
+ return this.request({
190
+ path: `pay-orders/${payOrderId}/refund`,
191
+ options: {
192
+ method: "POST",
193
+ body: JSON.stringify(params),
194
+ headers: { Authorization: signature },
195
+ },
196
+ });
191
197
  }
192
198
  /**
193
199
  * Generates a PayOrder Quote.
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/api/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EA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const data = await response.json();
25
+ return { data };
25
26
  }
26
27
  catch (error) {
27
28
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"fetcher.js","sourceRoot":"","sources":["../../src/api/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAkB,MAAM,UAAU,CAAC;AAqBnD,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAI,IAAqB;IACnD,IAAI,CAAC;QACD,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,WAAW,IAAI,YAAY,CAAC,CAAC;QAC1D,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,OAAO,IAAI,IAAI,CAAC,IAAI,EAAE,EAAE;YACpD,GAAG,IAAI,CAAC,OAAO;YACf,OAAO,EAAE;gBACL,GAAG,IAAI,CAAC,OAAO,EAAE,OAAO;gBACxB,cAAc,EAAE,kBAAkB;gBAClC,iBAAiB,EAAE,mBAAmB;aACzC;SACJ,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACf,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;YACtC,OAAO;gBACH,KAAK,EAAE;oBACH,IAAI,EAAE,IAAI,CAAC,IAAI;oBACf,UAAU,EAAE,QAAQ,CAAC,MAAM;oBAC3B,MAAM,EAAE,QAAQ,CAAC,UAAU;oBAC3B,OAAO;iBACV;aACJ,CAAC;QACN,CAAC;QACD,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACjC,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QAClB,OAAO;YACH,KAAK,EAAE;gBACH,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,UAAU,EAAE,GAAG;gBACf,MAAM,EAAE,uBAAuB;gBAC/B,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,2BAA2B;aACxD;SACJ,CAAC;IACN,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"fetcher.js","sourceRoot":"","sources":["../../src/api/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAkB,MAAM,UAAU,CAAC;AAqBnD,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAI,IAAqB;IACnD,IAAI,CAAC;QACD,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,WAAW,IAAI,YAAY,CAAC,CAAC;QAC1D,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,OAAO,IAAI,IAAI,CAAC,IAAI,EAAE,EAAE;YACpD,GAAG,IAAI,CAAC,OAAO;YACf,OAAO,EAAE;gBACL,GAAG,IAAI,CAAC,OAAO,EAAE,OAAO;gBACxB,cAAc,EAAE,kBAAkB;gBAClC,iBAAiB,EAAE,mBAAmB;aACzC;SACJ,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACf,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;YACtC,OAAO;gBACH,KAAK,EAAE;oBACH,IAAI,EAAE,IAAI,CAAC,IAAI;oBACf,UAAU,EAAE,QAAQ,CAAC,MAAM;oBAC3B,MAAM,EAAE,QAAQ,CAAC,UAAU;oBAC3B,OAAO;iBACV;aACJ,CAAC;QACN,CAAC;QACD,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACnC,OAAO,EAAE,IAAI,EAAE,CAAC;IACpB,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QAClB,OAAO;YACH,KAAK,EAAE;gBACH,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,UAAU,EAAE,GAAG;gBACf,MAAM,EAAE,uBAAuB;gBAC/B,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,2BAA2B;aACxD;SACJ,CAAC;IACN,CAAC;AACL,CAAC"}
@@ -1,6 +1,6 @@
1
- import { z } from "zod";
1
+ import * as z from "zod/mini";
2
2
  import { ChainId } from "./chains";
3
- export declare const zSolanaPublicKey: z.ZodString;
3
+ export declare const zSolanaPublicKey: z.ZodMiniString<string>;
4
4
  export type SolanaPublicKey = z.infer<typeof zSolanaPublicKey>;
5
5
  export interface Currency extends CurrencyBase {
6
6
  id?: string;
@@ -14,8 +14,8 @@ export interface CurrencyBase {
14
14
  chain_id: ChainId;
15
15
  address: string | null;
16
16
  }
17
- export declare const zAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
18
- export declare const zBigIntStr: z.ZodEffects<z.ZodString, `${bigint}`, string>;
17
+ export declare const zAddress: z.ZodMiniString<string>;
18
+ export declare const zBigIntStr: z.ZodMiniString<string>;
19
19
  export type BigIntStr = `${bigint}`;
20
20
  export type PlatformType = "ios" | "android" | "other";
21
21
  export declare function dateToUnix(d: Date): number;
@@ -1,13 +1,9 @@
1
- import { z } from "zod";
2
- export const zSolanaPublicKey = z.string().regex(/^[1-9A-HJ-NP-Za-km-z]+$/);
1
+ import * as z from "zod/mini";
2
+ export const zSolanaPublicKey = z.string().check(z.regex(/^[1-9A-HJ-NP-Za-km-z]+$/));
3
3
  export const zAddress = z
4
- .string()
5
- .regex(/^0x[0-9a-f]{40}$/i)
6
- .refine((s) => true);
4
+ .string().check(z.regex(/^0x[0-9a-f]{40}$/i), z.refine((s) => true));
7
5
  export const zBigIntStr = z
8
- .string()
9
- .regex(/^[0-9]+$/i)
10
- .refine((s) => true);
6
+ .string().check(z.regex(/^[0-9]+$/i), z.refine((s) => true));
11
7
  export function dateToUnix(d) {
12
8
  return Math.floor(d.getTime() / 1000);
13
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/common/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAA;AAkB3E,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC;KAC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,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAA;AACvC,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,IAAY;IACrC,OAAO,IAAI,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,CAAA;AAC9B,CAAC"}
@@ -7,7 +7,7 @@ export declare enum PayOrderMode {
7
7
  DEPOSIT = "DEPOSIT",
8
8
  REFUND = "REFUND"
9
9
  }
10
- export declare const zPayOrderMetadata: z.ZodEffects<z.ZodEffects<z.ZodObject<{
10
+ export declare const zPayOrderMetadata: z.ZodObject<{
11
11
  items: z.ZodOptional<z.ZodArray<z.ZodObject<{
12
12
  name: z.ZodString;
13
13
  description: z.ZodOptional<z.ZodString>;
@@ -15,547 +15,17 @@ export declare const zPayOrderMetadata: z.ZodEffects<z.ZodEffects<z.ZodObject<{
15
15
  quantity: z.ZodOptional<z.ZodNumber>;
16
16
  unit_price: z.ZodOptional<z.ZodNumber>;
17
17
  currency: z.ZodOptional<z.ZodString>;
18
- }, "strip", z.ZodTypeAny, {
19
- name: string;
20
- currency?: string | undefined;
21
- description?: string | undefined;
22
- image?: string | undefined;
23
- quantity?: number | undefined;
24
- unit_price?: number | undefined;
25
- }, {
26
- name: string;
27
- currency?: string | undefined;
28
- description?: string | undefined;
29
- image?: string | undefined;
30
- quantity?: number | undefined;
31
- unit_price?: number | undefined;
32
- }>, "many">>;
18
+ }, z.core.$strip>>>;
33
19
  refund: z.ZodOptional<z.ZodObject<{
34
20
  name: z.ZodOptional<z.ZodString>;
35
21
  reason: z.ZodOptional<z.ZodString>;
36
22
  additional_info: z.ZodOptional<z.ZodString>;
37
23
  refund_amount: z.ZodOptional<z.ZodNumber>;
38
24
  currency: z.ZodOptional<z.ZodString>;
39
- }, "strip", z.ZodTypeAny, {
40
- name?: string | undefined;
41
- currency?: string | undefined;
42
- reason?: string | undefined;
43
- additional_info?: string | undefined;
44
- refund_amount?: number | undefined;
45
- }, {
46
- name?: string | undefined;
47
- currency?: string | undefined;
48
- reason?: string | undefined;
49
- additional_info?: string | undefined;
50
- refund_amount?: number | undefined;
51
- }>>;
52
- }, "strip", z.ZodAny, z.objectOutputType<{
53
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
54
- name: z.ZodString;
55
- description: z.ZodOptional<z.ZodString>;
56
- image: z.ZodOptional<z.ZodString>;
57
- quantity: z.ZodOptional<z.ZodNumber>;
58
- unit_price: z.ZodOptional<z.ZodNumber>;
59
- currency: z.ZodOptional<z.ZodString>;
60
- }, "strip", z.ZodTypeAny, {
61
- name: string;
62
- currency?: string | undefined;
63
- description?: string | undefined;
64
- image?: string | undefined;
65
- quantity?: number | undefined;
66
- unit_price?: number | undefined;
67
- }, {
68
- name: string;
69
- currency?: string | undefined;
70
- description?: string | undefined;
71
- image?: string | undefined;
72
- quantity?: number | undefined;
73
- unit_price?: number | undefined;
74
- }>, "many">>;
75
- refund: z.ZodOptional<z.ZodObject<{
76
- name: z.ZodOptional<z.ZodString>;
77
- reason: z.ZodOptional<z.ZodString>;
78
- additional_info: z.ZodOptional<z.ZodString>;
79
- refund_amount: z.ZodOptional<z.ZodNumber>;
80
- currency: z.ZodOptional<z.ZodString>;
81
- }, "strip", z.ZodTypeAny, {
82
- name?: string | undefined;
83
- currency?: string | undefined;
84
- reason?: string | undefined;
85
- additional_info?: string | undefined;
86
- refund_amount?: number | undefined;
87
- }, {
88
- name?: string | undefined;
89
- currency?: string | undefined;
90
- reason?: string | undefined;
91
- additional_info?: string | undefined;
92
- refund_amount?: number | undefined;
93
- }>>;
94
- }, z.ZodAny, "strip">, z.objectInputType<{
95
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
96
- name: z.ZodString;
97
- description: z.ZodOptional<z.ZodString>;
98
- image: z.ZodOptional<z.ZodString>;
99
- quantity: z.ZodOptional<z.ZodNumber>;
100
- unit_price: z.ZodOptional<z.ZodNumber>;
101
- currency: z.ZodOptional<z.ZodString>;
102
- }, "strip", z.ZodTypeAny, {
103
- name: string;
104
- currency?: string | undefined;
105
- description?: string | undefined;
106
- image?: string | undefined;
107
- quantity?: number | undefined;
108
- unit_price?: number | undefined;
109
- }, {
110
- name: string;
111
- currency?: string | undefined;
112
- description?: string | undefined;
113
- image?: string | undefined;
114
- quantity?: number | undefined;
115
- unit_price?: number | undefined;
116
- }>, "many">>;
117
- refund: z.ZodOptional<z.ZodObject<{
118
- name: z.ZodOptional<z.ZodString>;
119
- reason: z.ZodOptional<z.ZodString>;
120
- additional_info: z.ZodOptional<z.ZodString>;
121
- refund_amount: z.ZodOptional<z.ZodNumber>;
122
- currency: z.ZodOptional<z.ZodString>;
123
- }, "strip", z.ZodTypeAny, {
124
- name?: string | undefined;
125
- currency?: string | undefined;
126
- reason?: string | undefined;
127
- additional_info?: string | undefined;
128
- refund_amount?: number | undefined;
129
- }, {
130
- name?: string | undefined;
131
- currency?: string | undefined;
132
- reason?: string | undefined;
133
- additional_info?: string | undefined;
134
- refund_amount?: number | undefined;
135
- }>>;
136
- }, z.ZodAny, "strip">>, z.objectOutputType<{
137
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
138
- name: z.ZodString;
139
- description: z.ZodOptional<z.ZodString>;
140
- image: z.ZodOptional<z.ZodString>;
141
- quantity: z.ZodOptional<z.ZodNumber>;
142
- unit_price: z.ZodOptional<z.ZodNumber>;
143
- currency: z.ZodOptional<z.ZodString>;
144
- }, "strip", z.ZodTypeAny, {
145
- name: string;
146
- currency?: string | undefined;
147
- description?: string | undefined;
148
- image?: string | undefined;
149
- quantity?: number | undefined;
150
- unit_price?: number | undefined;
151
- }, {
152
- name: string;
153
- currency?: string | undefined;
154
- description?: string | undefined;
155
- image?: string | undefined;
156
- quantity?: number | undefined;
157
- unit_price?: number | undefined;
158
- }>, "many">>;
159
- refund: z.ZodOptional<z.ZodObject<{
160
- name: z.ZodOptional<z.ZodString>;
161
- reason: z.ZodOptional<z.ZodString>;
162
- additional_info: z.ZodOptional<z.ZodString>;
163
- refund_amount: z.ZodOptional<z.ZodNumber>;
164
- currency: z.ZodOptional<z.ZodString>;
165
- }, "strip", z.ZodTypeAny, {
166
- name?: string | undefined;
167
- currency?: string | undefined;
168
- reason?: string | undefined;
169
- additional_info?: string | undefined;
170
- refund_amount?: number | undefined;
171
- }, {
172
- name?: string | undefined;
173
- currency?: string | undefined;
174
- reason?: string | undefined;
175
- additional_info?: string | undefined;
176
- refund_amount?: number | undefined;
177
- }>>;
178
- }, z.ZodAny, "strip">, z.objectInputType<{
179
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
180
- name: z.ZodString;
181
- description: z.ZodOptional<z.ZodString>;
182
- image: z.ZodOptional<z.ZodString>;
183
- quantity: z.ZodOptional<z.ZodNumber>;
184
- unit_price: z.ZodOptional<z.ZodNumber>;
185
- currency: z.ZodOptional<z.ZodString>;
186
- }, "strip", z.ZodTypeAny, {
187
- name: string;
188
- currency?: string | undefined;
189
- description?: string | undefined;
190
- image?: string | undefined;
191
- quantity?: number | undefined;
192
- unit_price?: number | undefined;
193
- }, {
194
- name: string;
195
- currency?: string | undefined;
196
- description?: string | undefined;
197
- image?: string | undefined;
198
- quantity?: number | undefined;
199
- unit_price?: number | undefined;
200
- }>, "many">>;
201
- refund: z.ZodOptional<z.ZodObject<{
202
- name: z.ZodOptional<z.ZodString>;
203
- reason: z.ZodOptional<z.ZodString>;
204
- additional_info: z.ZodOptional<z.ZodString>;
205
- refund_amount: z.ZodOptional<z.ZodNumber>;
206
- currency: z.ZodOptional<z.ZodString>;
207
- }, "strip", z.ZodTypeAny, {
208
- name?: string | undefined;
209
- currency?: string | undefined;
210
- reason?: string | undefined;
211
- additional_info?: string | undefined;
212
- refund_amount?: number | undefined;
213
- }, {
214
- name?: string | undefined;
215
- currency?: string | undefined;
216
- reason?: string | undefined;
217
- additional_info?: string | undefined;
218
- refund_amount?: number | undefined;
219
- }>>;
220
- }, z.ZodAny, "strip">>, z.objectOutputType<{
221
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
222
- name: z.ZodString;
223
- description: z.ZodOptional<z.ZodString>;
224
- image: z.ZodOptional<z.ZodString>;
225
- quantity: z.ZodOptional<z.ZodNumber>;
226
- unit_price: z.ZodOptional<z.ZodNumber>;
227
- currency: z.ZodOptional<z.ZodString>;
228
- }, "strip", z.ZodTypeAny, {
229
- name: string;
230
- currency?: string | undefined;
231
- description?: string | undefined;
232
- image?: string | undefined;
233
- quantity?: number | undefined;
234
- unit_price?: number | undefined;
235
- }, {
236
- name: string;
237
- currency?: string | undefined;
238
- description?: string | undefined;
239
- image?: string | undefined;
240
- quantity?: number | undefined;
241
- unit_price?: number | undefined;
242
- }>, "many">>;
243
- refund: z.ZodOptional<z.ZodObject<{
244
- name: z.ZodOptional<z.ZodString>;
245
- reason: z.ZodOptional<z.ZodString>;
246
- additional_info: z.ZodOptional<z.ZodString>;
247
- refund_amount: z.ZodOptional<z.ZodNumber>;
248
- currency: z.ZodOptional<z.ZodString>;
249
- }, "strip", z.ZodTypeAny, {
250
- name?: string | undefined;
251
- currency?: string | undefined;
252
- reason?: string | undefined;
253
- additional_info?: string | undefined;
254
- refund_amount?: number | undefined;
255
- }, {
256
- name?: string | undefined;
257
- currency?: string | undefined;
258
- reason?: string | undefined;
259
- additional_info?: string | undefined;
260
- refund_amount?: number | undefined;
261
- }>>;
262
- }, z.ZodAny, "strip">, z.objectInputType<{
263
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
264
- name: z.ZodString;
265
- description: z.ZodOptional<z.ZodString>;
266
- image: z.ZodOptional<z.ZodString>;
267
- quantity: z.ZodOptional<z.ZodNumber>;
268
- unit_price: z.ZodOptional<z.ZodNumber>;
269
- currency: z.ZodOptional<z.ZodString>;
270
- }, "strip", z.ZodTypeAny, {
271
- name: string;
272
- currency?: string | undefined;
273
- description?: string | undefined;
274
- image?: string | undefined;
275
- quantity?: number | undefined;
276
- unit_price?: number | undefined;
277
- }, {
278
- name: string;
279
- currency?: string | undefined;
280
- description?: string | undefined;
281
- image?: string | undefined;
282
- quantity?: number | undefined;
283
- unit_price?: number | undefined;
284
- }>, "many">>;
285
- refund: z.ZodOptional<z.ZodObject<{
286
- name: z.ZodOptional<z.ZodString>;
287
- reason: z.ZodOptional<z.ZodString>;
288
- additional_info: z.ZodOptional<z.ZodString>;
289
- refund_amount: z.ZodOptional<z.ZodNumber>;
290
- currency: z.ZodOptional<z.ZodString>;
291
- }, "strip", z.ZodTypeAny, {
292
- name?: string | undefined;
293
- currency?: string | undefined;
294
- reason?: string | undefined;
295
- additional_info?: string | undefined;
296
- refund_amount?: number | undefined;
297
- }, {
298
- name?: string | undefined;
299
- currency?: string | undefined;
300
- reason?: string | undefined;
301
- additional_info?: string | undefined;
302
- refund_amount?: number | undefined;
303
- }>>;
304
- }, z.ZodAny, "strip">>;
305
- export declare const zDepositPayOrder: z.ZodEffects<z.ZodEffects<z.ZodObject<{
306
- metadata: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
307
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
308
- name: z.ZodString;
309
- description: z.ZodOptional<z.ZodString>;
310
- image: z.ZodOptional<z.ZodString>;
311
- quantity: z.ZodOptional<z.ZodNumber>;
312
- unit_price: z.ZodOptional<z.ZodNumber>;
313
- currency: z.ZodOptional<z.ZodString>;
314
- }, "strip", z.ZodTypeAny, {
315
- name: string;
316
- currency?: string | undefined;
317
- description?: string | undefined;
318
- image?: string | undefined;
319
- quantity?: number | undefined;
320
- unit_price?: number | undefined;
321
- }, {
322
- name: string;
323
- currency?: string | undefined;
324
- description?: string | undefined;
325
- image?: string | undefined;
326
- quantity?: number | undefined;
327
- unit_price?: number | undefined;
328
- }>, "many">>;
329
- refund: z.ZodOptional<z.ZodObject<{
330
- name: z.ZodOptional<z.ZodString>;
331
- reason: z.ZodOptional<z.ZodString>;
332
- additional_info: z.ZodOptional<z.ZodString>;
333
- refund_amount: z.ZodOptional<z.ZodNumber>;
334
- currency: z.ZodOptional<z.ZodString>;
335
- }, "strip", z.ZodTypeAny, {
336
- name?: string | undefined;
337
- currency?: string | undefined;
338
- reason?: string | undefined;
339
- additional_info?: string | undefined;
340
- refund_amount?: number | undefined;
341
- }, {
342
- name?: string | undefined;
343
- currency?: string | undefined;
344
- reason?: string | undefined;
345
- additional_info?: string | undefined;
346
- refund_amount?: number | undefined;
347
- }>>;
348
- }, "strip", z.ZodAny, z.objectOutputType<{
349
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
350
- name: z.ZodString;
351
- description: z.ZodOptional<z.ZodString>;
352
- image: z.ZodOptional<z.ZodString>;
353
- quantity: z.ZodOptional<z.ZodNumber>;
354
- unit_price: z.ZodOptional<z.ZodNumber>;
355
- currency: z.ZodOptional<z.ZodString>;
356
- }, "strip", z.ZodTypeAny, {
357
- name: string;
358
- currency?: string | undefined;
359
- description?: string | undefined;
360
- image?: string | undefined;
361
- quantity?: number | undefined;
362
- unit_price?: number | undefined;
363
- }, {
364
- name: string;
365
- currency?: string | undefined;
366
- description?: string | undefined;
367
- image?: string | undefined;
368
- quantity?: number | undefined;
369
- unit_price?: number | undefined;
370
- }>, "many">>;
371
- refund: z.ZodOptional<z.ZodObject<{
372
- name: z.ZodOptional<z.ZodString>;
373
- reason: z.ZodOptional<z.ZodString>;
374
- additional_info: z.ZodOptional<z.ZodString>;
375
- refund_amount: z.ZodOptional<z.ZodNumber>;
376
- currency: z.ZodOptional<z.ZodString>;
377
- }, "strip", z.ZodTypeAny, {
378
- name?: string | undefined;
379
- currency?: string | undefined;
380
- reason?: string | undefined;
381
- additional_info?: string | undefined;
382
- refund_amount?: number | undefined;
383
- }, {
384
- name?: string | undefined;
385
- currency?: string | undefined;
386
- reason?: string | undefined;
387
- additional_info?: string | undefined;
388
- refund_amount?: number | undefined;
389
- }>>;
390
- }, z.ZodAny, "strip">, z.objectInputType<{
391
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
392
- name: z.ZodString;
393
- description: z.ZodOptional<z.ZodString>;
394
- image: z.ZodOptional<z.ZodString>;
395
- quantity: z.ZodOptional<z.ZodNumber>;
396
- unit_price: z.ZodOptional<z.ZodNumber>;
397
- currency: z.ZodOptional<z.ZodString>;
398
- }, "strip", z.ZodTypeAny, {
399
- name: string;
400
- currency?: string | undefined;
401
- description?: string | undefined;
402
- image?: string | undefined;
403
- quantity?: number | undefined;
404
- unit_price?: number | undefined;
405
- }, {
406
- name: string;
407
- currency?: string | undefined;
408
- description?: string | undefined;
409
- image?: string | undefined;
410
- quantity?: number | undefined;
411
- unit_price?: number | undefined;
412
- }>, "many">>;
413
- refund: z.ZodOptional<z.ZodObject<{
414
- name: z.ZodOptional<z.ZodString>;
415
- reason: z.ZodOptional<z.ZodString>;
416
- additional_info: z.ZodOptional<z.ZodString>;
417
- refund_amount: z.ZodOptional<z.ZodNumber>;
418
- currency: z.ZodOptional<z.ZodString>;
419
- }, "strip", z.ZodTypeAny, {
420
- name?: string | undefined;
421
- currency?: string | undefined;
422
- reason?: string | undefined;
423
- additional_info?: string | undefined;
424
- refund_amount?: number | undefined;
425
- }, {
426
- name?: string | undefined;
427
- currency?: string | undefined;
428
- reason?: string | undefined;
429
- additional_info?: string | undefined;
430
- refund_amount?: number | undefined;
431
- }>>;
432
- }, z.ZodAny, "strip">>, z.objectOutputType<{
433
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
434
- name: z.ZodString;
435
- description: z.ZodOptional<z.ZodString>;
436
- image: z.ZodOptional<z.ZodString>;
437
- quantity: z.ZodOptional<z.ZodNumber>;
438
- unit_price: z.ZodOptional<z.ZodNumber>;
439
- currency: z.ZodOptional<z.ZodString>;
440
- }, "strip", z.ZodTypeAny, {
441
- name: string;
442
- currency?: string | undefined;
443
- description?: string | undefined;
444
- image?: string | undefined;
445
- quantity?: number | undefined;
446
- unit_price?: number | undefined;
447
- }, {
448
- name: string;
449
- currency?: string | undefined;
450
- description?: string | undefined;
451
- image?: string | undefined;
452
- quantity?: number | undefined;
453
- unit_price?: number | undefined;
454
- }>, "many">>;
455
- refund: z.ZodOptional<z.ZodObject<{
456
- name: z.ZodOptional<z.ZodString>;
457
- reason: z.ZodOptional<z.ZodString>;
458
- additional_info: z.ZodOptional<z.ZodString>;
459
- refund_amount: z.ZodOptional<z.ZodNumber>;
460
- currency: z.ZodOptional<z.ZodString>;
461
- }, "strip", z.ZodTypeAny, {
462
- name?: string | undefined;
463
- currency?: string | undefined;
464
- reason?: string | undefined;
465
- additional_info?: string | undefined;
466
- refund_amount?: number | undefined;
467
- }, {
468
- name?: string | undefined;
469
- currency?: string | undefined;
470
- reason?: string | undefined;
471
- additional_info?: string | undefined;
472
- refund_amount?: number | undefined;
473
- }>>;
474
- }, z.ZodAny, "strip">, z.objectInputType<{
475
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
476
- name: z.ZodString;
477
- description: z.ZodOptional<z.ZodString>;
478
- image: z.ZodOptional<z.ZodString>;
479
- quantity: z.ZodOptional<z.ZodNumber>;
480
- unit_price: z.ZodOptional<z.ZodNumber>;
481
- currency: z.ZodOptional<z.ZodString>;
482
- }, "strip", z.ZodTypeAny, {
483
- name: string;
484
- currency?: string | undefined;
485
- description?: string | undefined;
486
- image?: string | undefined;
487
- quantity?: number | undefined;
488
- unit_price?: number | undefined;
489
- }, {
490
- name: string;
491
- currency?: string | undefined;
492
- description?: string | undefined;
493
- image?: string | undefined;
494
- quantity?: number | undefined;
495
- unit_price?: number | undefined;
496
- }>, "many">>;
497
- refund: z.ZodOptional<z.ZodObject<{
498
- name: z.ZodOptional<z.ZodString>;
499
- reason: z.ZodOptional<z.ZodString>;
500
- additional_info: z.ZodOptional<z.ZodString>;
501
- refund_amount: z.ZodOptional<z.ZodNumber>;
502
- currency: z.ZodOptional<z.ZodString>;
503
- }, "strip", z.ZodTypeAny, {
504
- name?: string | undefined;
505
- currency?: string | undefined;
506
- reason?: string | undefined;
507
- additional_info?: string | undefined;
508
- refund_amount?: number | undefined;
509
- }, {
510
- name?: string | undefined;
511
- currency?: string | undefined;
512
- reason?: string | undefined;
513
- additional_info?: string | undefined;
514
- refund_amount?: number | undefined;
515
- }>>;
516
- }, z.ZodAny, "strip">>, z.objectOutputType<{
517
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
518
- name: z.ZodString;
519
- description: z.ZodOptional<z.ZodString>;
520
- image: z.ZodOptional<z.ZodString>;
521
- quantity: z.ZodOptional<z.ZodNumber>;
522
- unit_price: z.ZodOptional<z.ZodNumber>;
523
- currency: z.ZodOptional<z.ZodString>;
524
- }, "strip", z.ZodTypeAny, {
525
- name: string;
526
- currency?: string | undefined;
527
- description?: string | undefined;
528
- image?: string | undefined;
529
- quantity?: number | undefined;
530
- unit_price?: number | undefined;
531
- }, {
532
- name: string;
533
- currency?: string | undefined;
534
- description?: string | undefined;
535
- image?: string | undefined;
536
- quantity?: number | undefined;
537
- unit_price?: number | undefined;
538
- }>, "many">>;
539
- refund: z.ZodOptional<z.ZodObject<{
540
- name: z.ZodOptional<z.ZodString>;
541
- reason: z.ZodOptional<z.ZodString>;
542
- additional_info: z.ZodOptional<z.ZodString>;
543
- refund_amount: z.ZodOptional<z.ZodNumber>;
544
- currency: z.ZodOptional<z.ZodString>;
545
- }, "strip", z.ZodTypeAny, {
546
- name?: string | undefined;
547
- currency?: string | undefined;
548
- reason?: string | undefined;
549
- additional_info?: string | undefined;
550
- refund_amount?: number | undefined;
551
- }, {
552
- name?: string | undefined;
553
- currency?: string | undefined;
554
- reason?: string | undefined;
555
- additional_info?: string | undefined;
556
- refund_amount?: number | undefined;
557
- }>>;
558
- }, z.ZodAny, "strip">, z.objectInputType<{
25
+ }, z.core.$strip>>;
26
+ }, z.core.$catchall<z.ZodAny>>;
27
+ export declare const zDepositPayOrder: z.ZodObject<{
28
+ metadata: z.ZodOptional<z.ZodObject<{
559
29
  items: z.ZodOptional<z.ZodArray<z.ZodObject<{
560
30
  name: z.ZodString;
561
31
  description: z.ZodOptional<z.ZodString>;
@@ -563,361 +33,23 @@ export declare const zDepositPayOrder: z.ZodEffects<z.ZodEffects<z.ZodObject<{
563
33
  quantity: z.ZodOptional<z.ZodNumber>;
564
34
  unit_price: z.ZodOptional<z.ZodNumber>;
565
35
  currency: z.ZodOptional<z.ZodString>;
566
- }, "strip", z.ZodTypeAny, {
567
- name: string;
568
- currency?: string | undefined;
569
- description?: string | undefined;
570
- image?: string | undefined;
571
- quantity?: number | undefined;
572
- unit_price?: number | undefined;
573
- }, {
574
- name: string;
575
- currency?: string | undefined;
576
- description?: string | undefined;
577
- image?: string | undefined;
578
- quantity?: number | undefined;
579
- unit_price?: number | undefined;
580
- }>, "many">>;
36
+ }, z.core.$strip>>>;
581
37
  refund: z.ZodOptional<z.ZodObject<{
582
38
  name: z.ZodOptional<z.ZodString>;
583
39
  reason: z.ZodOptional<z.ZodString>;
584
40
  additional_info: z.ZodOptional<z.ZodString>;
585
41
  refund_amount: z.ZodOptional<z.ZodNumber>;
586
42
  currency: z.ZodOptional<z.ZodString>;
587
- }, "strip", z.ZodTypeAny, {
588
- name?: string | undefined;
589
- currency?: string | undefined;
590
- reason?: string | undefined;
591
- additional_info?: string | undefined;
592
- refund_amount?: number | undefined;
593
- }, {
594
- name?: string | undefined;
595
- currency?: string | undefined;
596
- reason?: string | undefined;
597
- additional_info?: string | undefined;
598
- refund_amount?: number | undefined;
599
- }>>;
600
- }, z.ZodAny, "strip">>>;
601
- destination_value_usd: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, number | undefined>;
43
+ }, z.core.$strip>>;
44
+ }, z.core.$catchall<z.ZodAny>>>;
45
+ destination_value_usd: z.ZodOptional<z.ZodNumber>;
602
46
  destination_currency: z.ZodObject<{
603
47
  chain_id: z.ZodNumber;
604
48
  address: z.ZodNullable<z.ZodString>;
605
- }, "strip", z.ZodTypeAny, {
606
- chain_id: number;
607
- address: string | null;
608
- }, {
609
- chain_id: number;
610
- address: string | null;
611
- }>;
612
- destination_amount: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
49
+ }, z.core.$strip>;
50
+ destination_amount: z.ZodOptional<z.ZodString>;
613
51
  receiving_address: z.ZodString;
614
- }, "strip", z.ZodTypeAny, {
615
- destination_currency: {
616
- chain_id: number;
617
- address: string | null;
618
- };
619
- receiving_address: string;
620
- metadata?: z.objectOutputType<{
621
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
622
- name: z.ZodString;
623
- description: z.ZodOptional<z.ZodString>;
624
- image: z.ZodOptional<z.ZodString>;
625
- quantity: z.ZodOptional<z.ZodNumber>;
626
- unit_price: z.ZodOptional<z.ZodNumber>;
627
- currency: z.ZodOptional<z.ZodString>;
628
- }, "strip", z.ZodTypeAny, {
629
- name: string;
630
- currency?: string | undefined;
631
- description?: string | undefined;
632
- image?: string | undefined;
633
- quantity?: number | undefined;
634
- unit_price?: number | undefined;
635
- }, {
636
- name: string;
637
- currency?: string | undefined;
638
- description?: string | undefined;
639
- image?: string | undefined;
640
- quantity?: number | undefined;
641
- unit_price?: number | undefined;
642
- }>, "many">>;
643
- refund: z.ZodOptional<z.ZodObject<{
644
- name: z.ZodOptional<z.ZodString>;
645
- reason: z.ZodOptional<z.ZodString>;
646
- additional_info: z.ZodOptional<z.ZodString>;
647
- refund_amount: z.ZodOptional<z.ZodNumber>;
648
- currency: z.ZodOptional<z.ZodString>;
649
- }, "strip", z.ZodTypeAny, {
650
- name?: string | undefined;
651
- currency?: string | undefined;
652
- reason?: string | undefined;
653
- additional_info?: string | undefined;
654
- refund_amount?: number | undefined;
655
- }, {
656
- name?: string | undefined;
657
- currency?: string | undefined;
658
- reason?: string | undefined;
659
- additional_info?: string | undefined;
660
- refund_amount?: number | undefined;
661
- }>>;
662
- }, z.ZodAny, "strip"> | undefined;
663
- destination_value_usd?: number | undefined;
664
- destination_amount?: string | undefined;
665
- }, {
666
- destination_currency: {
667
- chain_id: number;
668
- address: string | null;
669
- };
670
- receiving_address: string;
671
- metadata?: z.objectInputType<{
672
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
673
- name: z.ZodString;
674
- description: z.ZodOptional<z.ZodString>;
675
- image: z.ZodOptional<z.ZodString>;
676
- quantity: z.ZodOptional<z.ZodNumber>;
677
- unit_price: z.ZodOptional<z.ZodNumber>;
678
- currency: z.ZodOptional<z.ZodString>;
679
- }, "strip", z.ZodTypeAny, {
680
- name: string;
681
- currency?: string | undefined;
682
- description?: string | undefined;
683
- image?: string | undefined;
684
- quantity?: number | undefined;
685
- unit_price?: number | undefined;
686
- }, {
687
- name: string;
688
- currency?: string | undefined;
689
- description?: string | undefined;
690
- image?: string | undefined;
691
- quantity?: number | undefined;
692
- unit_price?: number | undefined;
693
- }>, "many">>;
694
- refund: z.ZodOptional<z.ZodObject<{
695
- name: z.ZodOptional<z.ZodString>;
696
- reason: z.ZodOptional<z.ZodString>;
697
- additional_info: z.ZodOptional<z.ZodString>;
698
- refund_amount: z.ZodOptional<z.ZodNumber>;
699
- currency: z.ZodOptional<z.ZodString>;
700
- }, "strip", z.ZodTypeAny, {
701
- name?: string | undefined;
702
- currency?: string | undefined;
703
- reason?: string | undefined;
704
- additional_info?: string | undefined;
705
- refund_amount?: number | undefined;
706
- }, {
707
- name?: string | undefined;
708
- currency?: string | undefined;
709
- reason?: string | undefined;
710
- additional_info?: string | undefined;
711
- refund_amount?: number | undefined;
712
- }>>;
713
- }, z.ZodAny, "strip"> | undefined;
714
- destination_value_usd?: number | undefined;
715
- destination_amount?: string | undefined;
716
- }>, {
717
- destination_currency: {
718
- chain_id: number;
719
- address: string | null;
720
- };
721
- receiving_address: string;
722
- metadata?: z.objectOutputType<{
723
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
724
- name: z.ZodString;
725
- description: z.ZodOptional<z.ZodString>;
726
- image: z.ZodOptional<z.ZodString>;
727
- quantity: z.ZodOptional<z.ZodNumber>;
728
- unit_price: z.ZodOptional<z.ZodNumber>;
729
- currency: z.ZodOptional<z.ZodString>;
730
- }, "strip", z.ZodTypeAny, {
731
- name: string;
732
- currency?: string | undefined;
733
- description?: string | undefined;
734
- image?: string | undefined;
735
- quantity?: number | undefined;
736
- unit_price?: number | undefined;
737
- }, {
738
- name: string;
739
- currency?: string | undefined;
740
- description?: string | undefined;
741
- image?: string | undefined;
742
- quantity?: number | undefined;
743
- unit_price?: number | undefined;
744
- }>, "many">>;
745
- refund: z.ZodOptional<z.ZodObject<{
746
- name: z.ZodOptional<z.ZodString>;
747
- reason: z.ZodOptional<z.ZodString>;
748
- additional_info: z.ZodOptional<z.ZodString>;
749
- refund_amount: z.ZodOptional<z.ZodNumber>;
750
- currency: z.ZodOptional<z.ZodString>;
751
- }, "strip", z.ZodTypeAny, {
752
- name?: string | undefined;
753
- currency?: string | undefined;
754
- reason?: string | undefined;
755
- additional_info?: string | undefined;
756
- refund_amount?: number | undefined;
757
- }, {
758
- name?: string | undefined;
759
- currency?: string | undefined;
760
- reason?: string | undefined;
761
- additional_info?: string | undefined;
762
- refund_amount?: number | undefined;
763
- }>>;
764
- }, z.ZodAny, "strip"> | undefined;
765
- destination_value_usd?: number | undefined;
766
- destination_amount?: string | undefined;
767
- }, {
768
- destination_currency: {
769
- chain_id: number;
770
- address: string | null;
771
- };
772
- receiving_address: string;
773
- metadata?: z.objectInputType<{
774
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
775
- name: z.ZodString;
776
- description: z.ZodOptional<z.ZodString>;
777
- image: z.ZodOptional<z.ZodString>;
778
- quantity: z.ZodOptional<z.ZodNumber>;
779
- unit_price: z.ZodOptional<z.ZodNumber>;
780
- currency: z.ZodOptional<z.ZodString>;
781
- }, "strip", z.ZodTypeAny, {
782
- name: string;
783
- currency?: string | undefined;
784
- description?: string | undefined;
785
- image?: string | undefined;
786
- quantity?: number | undefined;
787
- unit_price?: number | undefined;
788
- }, {
789
- name: string;
790
- currency?: string | undefined;
791
- description?: string | undefined;
792
- image?: string | undefined;
793
- quantity?: number | undefined;
794
- unit_price?: number | undefined;
795
- }>, "many">>;
796
- refund: z.ZodOptional<z.ZodObject<{
797
- name: z.ZodOptional<z.ZodString>;
798
- reason: z.ZodOptional<z.ZodString>;
799
- additional_info: z.ZodOptional<z.ZodString>;
800
- refund_amount: z.ZodOptional<z.ZodNumber>;
801
- currency: z.ZodOptional<z.ZodString>;
802
- }, "strip", z.ZodTypeAny, {
803
- name?: string | undefined;
804
- currency?: string | undefined;
805
- reason?: string | undefined;
806
- additional_info?: string | undefined;
807
- refund_amount?: number | undefined;
808
- }, {
809
- name?: string | undefined;
810
- currency?: string | undefined;
811
- reason?: string | undefined;
812
- additional_info?: string | undefined;
813
- refund_amount?: number | undefined;
814
- }>>;
815
- }, z.ZodAny, "strip"> | undefined;
816
- destination_value_usd?: number | undefined;
817
- destination_amount?: string | undefined;
818
- }>, {
819
- destination_currency: {
820
- chain_id: number;
821
- address: string | null;
822
- };
823
- receiving_address: string;
824
- metadata?: z.objectOutputType<{
825
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
826
- name: z.ZodString;
827
- description: z.ZodOptional<z.ZodString>;
828
- image: z.ZodOptional<z.ZodString>;
829
- quantity: z.ZodOptional<z.ZodNumber>;
830
- unit_price: z.ZodOptional<z.ZodNumber>;
831
- currency: z.ZodOptional<z.ZodString>;
832
- }, "strip", z.ZodTypeAny, {
833
- name: string;
834
- currency?: string | undefined;
835
- description?: string | undefined;
836
- image?: string | undefined;
837
- quantity?: number | undefined;
838
- unit_price?: number | undefined;
839
- }, {
840
- name: string;
841
- currency?: string | undefined;
842
- description?: string | undefined;
843
- image?: string | undefined;
844
- quantity?: number | undefined;
845
- unit_price?: number | undefined;
846
- }>, "many">>;
847
- refund: z.ZodOptional<z.ZodObject<{
848
- name: z.ZodOptional<z.ZodString>;
849
- reason: z.ZodOptional<z.ZodString>;
850
- additional_info: z.ZodOptional<z.ZodString>;
851
- refund_amount: z.ZodOptional<z.ZodNumber>;
852
- currency: z.ZodOptional<z.ZodString>;
853
- }, "strip", z.ZodTypeAny, {
854
- name?: string | undefined;
855
- currency?: string | undefined;
856
- reason?: string | undefined;
857
- additional_info?: string | undefined;
858
- refund_amount?: number | undefined;
859
- }, {
860
- name?: string | undefined;
861
- currency?: string | undefined;
862
- reason?: string | undefined;
863
- additional_info?: string | undefined;
864
- refund_amount?: number | undefined;
865
- }>>;
866
- }, z.ZodAny, "strip"> | undefined;
867
- destination_value_usd?: number | undefined;
868
- destination_amount?: string | undefined;
869
- }, {
870
- destination_currency: {
871
- chain_id: number;
872
- address: string | null;
873
- };
874
- receiving_address: string;
875
- metadata?: z.objectInputType<{
876
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
877
- name: z.ZodString;
878
- description: z.ZodOptional<z.ZodString>;
879
- image: z.ZodOptional<z.ZodString>;
880
- quantity: z.ZodOptional<z.ZodNumber>;
881
- unit_price: z.ZodOptional<z.ZodNumber>;
882
- currency: z.ZodOptional<z.ZodString>;
883
- }, "strip", z.ZodTypeAny, {
884
- name: string;
885
- currency?: string | undefined;
886
- description?: string | undefined;
887
- image?: string | undefined;
888
- quantity?: number | undefined;
889
- unit_price?: number | undefined;
890
- }, {
891
- name: string;
892
- currency?: string | undefined;
893
- description?: string | undefined;
894
- image?: string | undefined;
895
- quantity?: number | undefined;
896
- unit_price?: number | undefined;
897
- }>, "many">>;
898
- refund: z.ZodOptional<z.ZodObject<{
899
- name: z.ZodOptional<z.ZodString>;
900
- reason: z.ZodOptional<z.ZodString>;
901
- additional_info: z.ZodOptional<z.ZodString>;
902
- refund_amount: z.ZodOptional<z.ZodNumber>;
903
- currency: z.ZodOptional<z.ZodString>;
904
- }, "strip", z.ZodTypeAny, {
905
- name?: string | undefined;
906
- currency?: string | undefined;
907
- reason?: string | undefined;
908
- additional_info?: string | undefined;
909
- refund_amount?: number | undefined;
910
- }, {
911
- name?: string | undefined;
912
- currency?: string | undefined;
913
- reason?: string | undefined;
914
- additional_info?: string | undefined;
915
- refund_amount?: number | undefined;
916
- }>>;
917
- }, z.ZodAny, "strip"> | undefined;
918
- destination_value_usd?: number | undefined;
919
- destination_amount?: string | undefined;
920
- }>;
52
+ }, z.core.$strip>;
921
53
  export type PayOrderMetadata = z.infer<typeof zPayOrderMetadata>;
922
54
  export declare enum PayOrderStatus {
923
55
  PENDING = "PENDING",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coin-voyage/shared",
3
3
  "description": "Shared utilities for Coin Voyage",
4
- "version": "0.0.23",
4
+ "version": "0.0.25",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {
@@ -21,10 +21,8 @@
21
21
  }
22
22
  },
23
23
  "dependencies": {
24
- "detect-browser": "^5.3.0"
25
- },
26
- "peerDependencies": {
27
- "zod": "^3.22.4"
24
+ "detect-browser": "^5.3.0",
25
+ "zod": "4.1.12"
28
26
  },
29
27
  "scripts": {
30
28
  "watch": "tsc -w -p ./tsconfig.json",