@moovio/sdk 0.5.1 → 0.5.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.
- package/bin/mcp-server.js +89 -36
- package/bin/mcp-server.js.map +14 -14
- package/funcs/walletTransactionsList.js +1 -0
- package/funcs/walletTransactionsList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/achtransactiondetails.d.ts +2 -0
- package/models/components/achtransactiondetails.d.ts.map +1 -1
- package/models/components/achtransactiondetails.js +3 -0
- package/models/components/achtransactiondetails.js.map +1 -1
- package/models/components/cancellationstatus.d.ts +3 -0
- package/models/components/cancellationstatus.d.ts.map +1 -1
- package/models/components/cancellationstatus.js +1 -0
- package/models/components/cancellationstatus.js.map +1 -1
- package/models/components/patchsweepconfig.d.ts +162 -20
- package/models/components/patchsweepconfig.d.ts.map +1 -1
- package/models/components/patchsweepconfig.js +169 -12
- package/models/components/patchsweepconfig.js.map +1 -1
- package/models/components/transfer.d.ts +4 -4
- package/models/components/transfer.d.ts.map +1 -1
- package/models/components/transfer.js +4 -4
- package/models/components/transfer.js.map +1 -1
- package/models/components/transferdestination.d.ts +5 -1
- package/models/components/transferdestination.d.ts.map +1 -1
- package/models/components/transferdestination.js +3 -2
- package/models/components/transferdestination.js.map +1 -1
- package/models/components/transfersource.d.ts +10 -1
- package/models/components/transfersource.d.ts.map +1 -1
- package/models/components/transfersource.js +5 -2
- package/models/components/transfersource.js.map +1 -1
- package/models/errors/transfer.d.ts +6 -6
- package/models/errors/transfer.d.ts.map +1 -1
- package/models/errors/transfer.js +6 -8
- package/models/errors/transfer.js.map +1 -1
- package/models/operations/listwallettransactions.d.ts +5 -0
- package/models/operations/listwallettransactions.d.ts.map +1 -1
- package/models/operations/listwallettransactions.js +4 -0
- package/models/operations/listwallettransactions.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/walletTransactionsList.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/achtransactiondetails.ts +5 -0
- package/src/models/components/cancellationstatus.ts +1 -0
- package/src/models/components/patchsweepconfig.ts +376 -34
- package/src/models/components/transfer.ts +8 -8
- package/src/models/components/transferdestination.ts +11 -3
- package/src/models/components/transfersource.ts +18 -3
- package/src/models/errors/transfer.ts +12 -12
- package/src/models/operations/listwallettransactions.ts +9 -0
|
@@ -4,51 +4,387 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
10
|
+
|
|
11
|
+
export const Status = {
|
|
12
|
+
Enabled: "enabled",
|
|
13
|
+
Disabled: "disabled",
|
|
14
|
+
} as const;
|
|
15
|
+
export type Status = ClosedEnum<typeof Status>;
|
|
16
|
+
|
|
17
|
+
export type PushPaymentMethodId2 = {};
|
|
18
|
+
|
|
19
|
+
export type PushPaymentMethodID = PushPaymentMethodId2 | string;
|
|
20
|
+
|
|
21
|
+
export type PullPaymentMethodId2 = {};
|
|
22
|
+
|
|
23
|
+
export type PullPaymentMethodID = PullPaymentMethodId2 | string;
|
|
24
|
+
|
|
25
|
+
export type StatementDescriptor2 = {};
|
|
26
|
+
|
|
27
|
+
export type StatementDescriptor = StatementDescriptor2 | string;
|
|
14
28
|
|
|
15
29
|
export type PatchSweepConfig = {
|
|
16
|
-
status?:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* ID of the payment method.
|
|
23
|
-
*/
|
|
24
|
-
pullPaymentMethodID?: string | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* The text that appears on the banking statement. The default descriptor is a 10 character ID if an override is not set in the sweep configs statementDescriptor.
|
|
27
|
-
*/
|
|
28
|
-
statementDescriptor?: string | undefined;
|
|
29
|
-
minimumBalance?: string | undefined;
|
|
30
|
+
status?: Status | null | undefined;
|
|
31
|
+
pushPaymentMethodID?: PushPaymentMethodId2 | string | null | undefined;
|
|
32
|
+
pullPaymentMethodID?: PullPaymentMethodId2 | string | null | undefined;
|
|
33
|
+
statementDescriptor?: StatementDescriptor2 | string | null | undefined;
|
|
34
|
+
minimumBalance?: string | null | undefined;
|
|
30
35
|
};
|
|
31
36
|
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const Status$inboundSchema: z.ZodNativeEnum<typeof Status> = z
|
|
39
|
+
.nativeEnum(Status);
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const Status$outboundSchema: z.ZodNativeEnum<typeof Status> =
|
|
43
|
+
Status$inboundSchema;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
+
*/
|
|
49
|
+
export namespace Status$ {
|
|
50
|
+
/** @deprecated use `Status$inboundSchema` instead. */
|
|
51
|
+
export const inboundSchema = Status$inboundSchema;
|
|
52
|
+
/** @deprecated use `Status$outboundSchema` instead. */
|
|
53
|
+
export const outboundSchema = Status$outboundSchema;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const PushPaymentMethodId2$inboundSchema: z.ZodType<
|
|
58
|
+
PushPaymentMethodId2,
|
|
59
|
+
z.ZodTypeDef,
|
|
60
|
+
unknown
|
|
61
|
+
> = z.object({});
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export type PushPaymentMethodId2$Outbound = {};
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const PushPaymentMethodId2$outboundSchema: z.ZodType<
|
|
68
|
+
PushPaymentMethodId2$Outbound,
|
|
69
|
+
z.ZodTypeDef,
|
|
70
|
+
PushPaymentMethodId2
|
|
71
|
+
> = z.object({});
|
|
72
|
+
|
|
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 namespace PushPaymentMethodId2$ {
|
|
78
|
+
/** @deprecated use `PushPaymentMethodId2$inboundSchema` instead. */
|
|
79
|
+
export const inboundSchema = PushPaymentMethodId2$inboundSchema;
|
|
80
|
+
/** @deprecated use `PushPaymentMethodId2$outboundSchema` instead. */
|
|
81
|
+
export const outboundSchema = PushPaymentMethodId2$outboundSchema;
|
|
82
|
+
/** @deprecated use `PushPaymentMethodId2$Outbound` instead. */
|
|
83
|
+
export type Outbound = PushPaymentMethodId2$Outbound;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function pushPaymentMethodID2ToJSON(
|
|
87
|
+
pushPaymentMethodId2: PushPaymentMethodId2,
|
|
88
|
+
): string {
|
|
89
|
+
return JSON.stringify(
|
|
90
|
+
PushPaymentMethodId2$outboundSchema.parse(pushPaymentMethodId2),
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function pushPaymentMethodID2FromJSON(
|
|
95
|
+
jsonString: string,
|
|
96
|
+
): SafeParseResult<PushPaymentMethodId2, SDKValidationError> {
|
|
97
|
+
return safeParse(
|
|
98
|
+
jsonString,
|
|
99
|
+
(x) => PushPaymentMethodId2$inboundSchema.parse(JSON.parse(x)),
|
|
100
|
+
`Failed to parse 'PushPaymentMethodId2' from JSON`,
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** @internal */
|
|
105
|
+
export const PushPaymentMethodID$inboundSchema: z.ZodType<
|
|
106
|
+
PushPaymentMethodID,
|
|
107
|
+
z.ZodTypeDef,
|
|
108
|
+
unknown
|
|
109
|
+
> = z.union([z.lazy(() => PushPaymentMethodId2$inboundSchema), z.string()]);
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export type PushPaymentMethodID$Outbound =
|
|
113
|
+
| PushPaymentMethodId2$Outbound
|
|
114
|
+
| string;
|
|
115
|
+
|
|
116
|
+
/** @internal */
|
|
117
|
+
export const PushPaymentMethodID$outboundSchema: z.ZodType<
|
|
118
|
+
PushPaymentMethodID$Outbound,
|
|
119
|
+
z.ZodTypeDef,
|
|
120
|
+
PushPaymentMethodID
|
|
121
|
+
> = z.union([z.lazy(() => PushPaymentMethodId2$outboundSchema), z.string()]);
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @internal
|
|
125
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
126
|
+
*/
|
|
127
|
+
export namespace PushPaymentMethodID$ {
|
|
128
|
+
/** @deprecated use `PushPaymentMethodID$inboundSchema` instead. */
|
|
129
|
+
export const inboundSchema = PushPaymentMethodID$inboundSchema;
|
|
130
|
+
/** @deprecated use `PushPaymentMethodID$outboundSchema` instead. */
|
|
131
|
+
export const outboundSchema = PushPaymentMethodID$outboundSchema;
|
|
132
|
+
/** @deprecated use `PushPaymentMethodID$Outbound` instead. */
|
|
133
|
+
export type Outbound = PushPaymentMethodID$Outbound;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function pushPaymentMethodIDToJSON(
|
|
137
|
+
pushPaymentMethodID: PushPaymentMethodID,
|
|
138
|
+
): string {
|
|
139
|
+
return JSON.stringify(
|
|
140
|
+
PushPaymentMethodID$outboundSchema.parse(pushPaymentMethodID),
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function pushPaymentMethodIDFromJSON(
|
|
145
|
+
jsonString: string,
|
|
146
|
+
): SafeParseResult<PushPaymentMethodID, SDKValidationError> {
|
|
147
|
+
return safeParse(
|
|
148
|
+
jsonString,
|
|
149
|
+
(x) => PushPaymentMethodID$inboundSchema.parse(JSON.parse(x)),
|
|
150
|
+
`Failed to parse 'PushPaymentMethodID' from JSON`,
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/** @internal */
|
|
155
|
+
export const PullPaymentMethodId2$inboundSchema: z.ZodType<
|
|
156
|
+
PullPaymentMethodId2,
|
|
157
|
+
z.ZodTypeDef,
|
|
158
|
+
unknown
|
|
159
|
+
> = z.object({});
|
|
160
|
+
|
|
161
|
+
/** @internal */
|
|
162
|
+
export type PullPaymentMethodId2$Outbound = {};
|
|
163
|
+
|
|
164
|
+
/** @internal */
|
|
165
|
+
export const PullPaymentMethodId2$outboundSchema: z.ZodType<
|
|
166
|
+
PullPaymentMethodId2$Outbound,
|
|
167
|
+
z.ZodTypeDef,
|
|
168
|
+
PullPaymentMethodId2
|
|
169
|
+
> = z.object({});
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @internal
|
|
173
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
174
|
+
*/
|
|
175
|
+
export namespace PullPaymentMethodId2$ {
|
|
176
|
+
/** @deprecated use `PullPaymentMethodId2$inboundSchema` instead. */
|
|
177
|
+
export const inboundSchema = PullPaymentMethodId2$inboundSchema;
|
|
178
|
+
/** @deprecated use `PullPaymentMethodId2$outboundSchema` instead. */
|
|
179
|
+
export const outboundSchema = PullPaymentMethodId2$outboundSchema;
|
|
180
|
+
/** @deprecated use `PullPaymentMethodId2$Outbound` instead. */
|
|
181
|
+
export type Outbound = PullPaymentMethodId2$Outbound;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export function pullPaymentMethodID2ToJSON(
|
|
185
|
+
pullPaymentMethodId2: PullPaymentMethodId2,
|
|
186
|
+
): string {
|
|
187
|
+
return JSON.stringify(
|
|
188
|
+
PullPaymentMethodId2$outboundSchema.parse(pullPaymentMethodId2),
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export function pullPaymentMethodID2FromJSON(
|
|
193
|
+
jsonString: string,
|
|
194
|
+
): SafeParseResult<PullPaymentMethodId2, SDKValidationError> {
|
|
195
|
+
return safeParse(
|
|
196
|
+
jsonString,
|
|
197
|
+
(x) => PullPaymentMethodId2$inboundSchema.parse(JSON.parse(x)),
|
|
198
|
+
`Failed to parse 'PullPaymentMethodId2' from JSON`,
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/** @internal */
|
|
203
|
+
export const PullPaymentMethodID$inboundSchema: z.ZodType<
|
|
204
|
+
PullPaymentMethodID,
|
|
205
|
+
z.ZodTypeDef,
|
|
206
|
+
unknown
|
|
207
|
+
> = z.union([z.lazy(() => PullPaymentMethodId2$inboundSchema), z.string()]);
|
|
208
|
+
|
|
209
|
+
/** @internal */
|
|
210
|
+
export type PullPaymentMethodID$Outbound =
|
|
211
|
+
| PullPaymentMethodId2$Outbound
|
|
212
|
+
| string;
|
|
213
|
+
|
|
214
|
+
/** @internal */
|
|
215
|
+
export const PullPaymentMethodID$outboundSchema: z.ZodType<
|
|
216
|
+
PullPaymentMethodID$Outbound,
|
|
217
|
+
z.ZodTypeDef,
|
|
218
|
+
PullPaymentMethodID
|
|
219
|
+
> = z.union([z.lazy(() => PullPaymentMethodId2$outboundSchema), z.string()]);
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @internal
|
|
223
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
224
|
+
*/
|
|
225
|
+
export namespace PullPaymentMethodID$ {
|
|
226
|
+
/** @deprecated use `PullPaymentMethodID$inboundSchema` instead. */
|
|
227
|
+
export const inboundSchema = PullPaymentMethodID$inboundSchema;
|
|
228
|
+
/** @deprecated use `PullPaymentMethodID$outboundSchema` instead. */
|
|
229
|
+
export const outboundSchema = PullPaymentMethodID$outboundSchema;
|
|
230
|
+
/** @deprecated use `PullPaymentMethodID$Outbound` instead. */
|
|
231
|
+
export type Outbound = PullPaymentMethodID$Outbound;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export function pullPaymentMethodIDToJSON(
|
|
235
|
+
pullPaymentMethodID: PullPaymentMethodID,
|
|
236
|
+
): string {
|
|
237
|
+
return JSON.stringify(
|
|
238
|
+
PullPaymentMethodID$outboundSchema.parse(pullPaymentMethodID),
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export function pullPaymentMethodIDFromJSON(
|
|
243
|
+
jsonString: string,
|
|
244
|
+
): SafeParseResult<PullPaymentMethodID, SDKValidationError> {
|
|
245
|
+
return safeParse(
|
|
246
|
+
jsonString,
|
|
247
|
+
(x) => PullPaymentMethodID$inboundSchema.parse(JSON.parse(x)),
|
|
248
|
+
`Failed to parse 'PullPaymentMethodID' from JSON`,
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/** @internal */
|
|
253
|
+
export const StatementDescriptor2$inboundSchema: z.ZodType<
|
|
254
|
+
StatementDescriptor2,
|
|
255
|
+
z.ZodTypeDef,
|
|
256
|
+
unknown
|
|
257
|
+
> = z.object({});
|
|
258
|
+
|
|
259
|
+
/** @internal */
|
|
260
|
+
export type StatementDescriptor2$Outbound = {};
|
|
261
|
+
|
|
262
|
+
/** @internal */
|
|
263
|
+
export const StatementDescriptor2$outboundSchema: z.ZodType<
|
|
264
|
+
StatementDescriptor2$Outbound,
|
|
265
|
+
z.ZodTypeDef,
|
|
266
|
+
StatementDescriptor2
|
|
267
|
+
> = z.object({});
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* @internal
|
|
271
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
272
|
+
*/
|
|
273
|
+
export namespace StatementDescriptor2$ {
|
|
274
|
+
/** @deprecated use `StatementDescriptor2$inboundSchema` instead. */
|
|
275
|
+
export const inboundSchema = StatementDescriptor2$inboundSchema;
|
|
276
|
+
/** @deprecated use `StatementDescriptor2$outboundSchema` instead. */
|
|
277
|
+
export const outboundSchema = StatementDescriptor2$outboundSchema;
|
|
278
|
+
/** @deprecated use `StatementDescriptor2$Outbound` instead. */
|
|
279
|
+
export type Outbound = StatementDescriptor2$Outbound;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export function statementDescriptor2ToJSON(
|
|
283
|
+
statementDescriptor2: StatementDescriptor2,
|
|
284
|
+
): string {
|
|
285
|
+
return JSON.stringify(
|
|
286
|
+
StatementDescriptor2$outboundSchema.parse(statementDescriptor2),
|
|
287
|
+
);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export function statementDescriptor2FromJSON(
|
|
291
|
+
jsonString: string,
|
|
292
|
+
): SafeParseResult<StatementDescriptor2, SDKValidationError> {
|
|
293
|
+
return safeParse(
|
|
294
|
+
jsonString,
|
|
295
|
+
(x) => StatementDescriptor2$inboundSchema.parse(JSON.parse(x)),
|
|
296
|
+
`Failed to parse 'StatementDescriptor2' from JSON`,
|
|
297
|
+
);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/** @internal */
|
|
301
|
+
export const StatementDescriptor$inboundSchema: z.ZodType<
|
|
302
|
+
StatementDescriptor,
|
|
303
|
+
z.ZodTypeDef,
|
|
304
|
+
unknown
|
|
305
|
+
> = z.union([z.lazy(() => StatementDescriptor2$inboundSchema), z.string()]);
|
|
306
|
+
|
|
307
|
+
/** @internal */
|
|
308
|
+
export type StatementDescriptor$Outbound =
|
|
309
|
+
| StatementDescriptor2$Outbound
|
|
310
|
+
| string;
|
|
311
|
+
|
|
312
|
+
/** @internal */
|
|
313
|
+
export const StatementDescriptor$outboundSchema: z.ZodType<
|
|
314
|
+
StatementDescriptor$Outbound,
|
|
315
|
+
z.ZodTypeDef,
|
|
316
|
+
StatementDescriptor
|
|
317
|
+
> = z.union([z.lazy(() => StatementDescriptor2$outboundSchema), z.string()]);
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* @internal
|
|
321
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
322
|
+
*/
|
|
323
|
+
export namespace StatementDescriptor$ {
|
|
324
|
+
/** @deprecated use `StatementDescriptor$inboundSchema` instead. */
|
|
325
|
+
export const inboundSchema = StatementDescriptor$inboundSchema;
|
|
326
|
+
/** @deprecated use `StatementDescriptor$outboundSchema` instead. */
|
|
327
|
+
export const outboundSchema = StatementDescriptor$outboundSchema;
|
|
328
|
+
/** @deprecated use `StatementDescriptor$Outbound` instead. */
|
|
329
|
+
export type Outbound = StatementDescriptor$Outbound;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export function statementDescriptorToJSON(
|
|
333
|
+
statementDescriptor: StatementDescriptor,
|
|
334
|
+
): string {
|
|
335
|
+
return JSON.stringify(
|
|
336
|
+
StatementDescriptor$outboundSchema.parse(statementDescriptor),
|
|
337
|
+
);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export function statementDescriptorFromJSON(
|
|
341
|
+
jsonString: string,
|
|
342
|
+
): SafeParseResult<StatementDescriptor, SDKValidationError> {
|
|
343
|
+
return safeParse(
|
|
344
|
+
jsonString,
|
|
345
|
+
(x) => StatementDescriptor$inboundSchema.parse(JSON.parse(x)),
|
|
346
|
+
`Failed to parse 'StatementDescriptor' from JSON`,
|
|
347
|
+
);
|
|
348
|
+
}
|
|
349
|
+
|
|
32
350
|
/** @internal */
|
|
33
351
|
export const PatchSweepConfig$inboundSchema: z.ZodType<
|
|
34
352
|
PatchSweepConfig,
|
|
35
353
|
z.ZodTypeDef,
|
|
36
354
|
unknown
|
|
37
355
|
> = z.object({
|
|
38
|
-
status:
|
|
39
|
-
pushPaymentMethodID: z.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
356
|
+
status: z.nullable(Status$inboundSchema).optional(),
|
|
357
|
+
pushPaymentMethodID: z.nullable(
|
|
358
|
+
z.union([z.lazy(() => PushPaymentMethodId2$inboundSchema), z.string()]),
|
|
359
|
+
).optional(),
|
|
360
|
+
pullPaymentMethodID: z.nullable(
|
|
361
|
+
z.union([z.lazy(() => PullPaymentMethodId2$inboundSchema), z.string()]),
|
|
362
|
+
).optional(),
|
|
363
|
+
statementDescriptor: z.nullable(
|
|
364
|
+
z.union([z.lazy(() => StatementDescriptor2$inboundSchema), z.string()]),
|
|
365
|
+
).optional(),
|
|
366
|
+
minimumBalance: z.nullable(z.string()).optional(),
|
|
43
367
|
});
|
|
44
368
|
|
|
45
369
|
/** @internal */
|
|
46
370
|
export type PatchSweepConfig$Outbound = {
|
|
47
|
-
status?: string | undefined;
|
|
48
|
-
pushPaymentMethodID?:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
371
|
+
status?: string | null | undefined;
|
|
372
|
+
pushPaymentMethodID?:
|
|
373
|
+
| PushPaymentMethodId2$Outbound
|
|
374
|
+
| string
|
|
375
|
+
| null
|
|
376
|
+
| undefined;
|
|
377
|
+
pullPaymentMethodID?:
|
|
378
|
+
| PullPaymentMethodId2$Outbound
|
|
379
|
+
| string
|
|
380
|
+
| null
|
|
381
|
+
| undefined;
|
|
382
|
+
statementDescriptor?:
|
|
383
|
+
| StatementDescriptor2$Outbound
|
|
384
|
+
| string
|
|
385
|
+
| null
|
|
386
|
+
| undefined;
|
|
387
|
+
minimumBalance?: string | null | undefined;
|
|
52
388
|
};
|
|
53
389
|
|
|
54
390
|
/** @internal */
|
|
@@ -57,11 +393,17 @@ export const PatchSweepConfig$outboundSchema: z.ZodType<
|
|
|
57
393
|
z.ZodTypeDef,
|
|
58
394
|
PatchSweepConfig
|
|
59
395
|
> = z.object({
|
|
60
|
-
status:
|
|
61
|
-
pushPaymentMethodID: z.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
396
|
+
status: z.nullable(Status$outboundSchema).optional(),
|
|
397
|
+
pushPaymentMethodID: z.nullable(
|
|
398
|
+
z.union([z.lazy(() => PushPaymentMethodId2$outboundSchema), z.string()]),
|
|
399
|
+
).optional(),
|
|
400
|
+
pullPaymentMethodID: z.nullable(
|
|
401
|
+
z.union([z.lazy(() => PullPaymentMethodId2$outboundSchema), z.string()]),
|
|
402
|
+
).optional(),
|
|
403
|
+
statementDescriptor: z.nullable(
|
|
404
|
+
z.union([z.lazy(() => StatementDescriptor2$outboundSchema), z.string()]),
|
|
405
|
+
).optional(),
|
|
406
|
+
minimumBalance: z.nullable(z.string()).optional(),
|
|
65
407
|
});
|
|
66
408
|
|
|
67
409
|
/**
|
|
@@ -65,8 +65,8 @@ import {
|
|
|
65
65
|
export type Transfer = {
|
|
66
66
|
transferID: string;
|
|
67
67
|
createdOn: Date;
|
|
68
|
-
source
|
|
69
|
-
destination
|
|
68
|
+
source: TransferSource;
|
|
69
|
+
destination: TransferDestination;
|
|
70
70
|
completedOn?: Date | undefined;
|
|
71
71
|
/**
|
|
72
72
|
* Status of a transfer.
|
|
@@ -119,8 +119,8 @@ export const Transfer$inboundSchema: z.ZodType<
|
|
|
119
119
|
> = z.object({
|
|
120
120
|
transferID: z.string(),
|
|
121
121
|
createdOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
122
|
-
source: TransferSource$inboundSchema
|
|
123
|
-
destination: TransferDestination$inboundSchema
|
|
122
|
+
source: TransferSource$inboundSchema,
|
|
123
|
+
destination: TransferDestination$inboundSchema,
|
|
124
124
|
completedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
125
125
|
.optional(),
|
|
126
126
|
status: TransferStatus$inboundSchema,
|
|
@@ -146,8 +146,8 @@ export const Transfer$inboundSchema: z.ZodType<
|
|
|
146
146
|
export type Transfer$Outbound = {
|
|
147
147
|
transferID: string;
|
|
148
148
|
createdOn: string;
|
|
149
|
-
source
|
|
150
|
-
destination
|
|
149
|
+
source: TransferSource$Outbound;
|
|
150
|
+
destination: TransferDestination$Outbound;
|
|
151
151
|
completedOn?: string | undefined;
|
|
152
152
|
status: string;
|
|
153
153
|
failureReason?: string | undefined;
|
|
@@ -176,8 +176,8 @@ export const Transfer$outboundSchema: z.ZodType<
|
|
|
176
176
|
> = z.object({
|
|
177
177
|
transferID: z.string(),
|
|
178
178
|
createdOn: z.date().transform(v => v.toISOString()),
|
|
179
|
-
source: TransferSource$outboundSchema
|
|
180
|
-
destination: TransferDestination$outboundSchema
|
|
179
|
+
source: TransferSource$outboundSchema,
|
|
180
|
+
destination: TransferDestination$outboundSchema,
|
|
181
181
|
completedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
182
182
|
status: TransferStatus$outboundSchema,
|
|
183
183
|
failureReason: TransferFailureReason$outboundSchema.optional(),
|
|
@@ -42,6 +42,11 @@ import {
|
|
|
42
42
|
PaymentMethodsWallet$Outbound,
|
|
43
43
|
PaymentMethodsWallet$outboundSchema,
|
|
44
44
|
} from "./paymentmethodswallet.js";
|
|
45
|
+
import {
|
|
46
|
+
PaymentMethodType,
|
|
47
|
+
PaymentMethodType$inboundSchema,
|
|
48
|
+
PaymentMethodType$outboundSchema,
|
|
49
|
+
} from "./paymentmethodtype.js";
|
|
45
50
|
import {
|
|
46
51
|
RTPTransactionDetails,
|
|
47
52
|
RTPTransactionDetails$inboundSchema,
|
|
@@ -57,7 +62,10 @@ import {
|
|
|
57
62
|
|
|
58
63
|
export type TransferDestination = {
|
|
59
64
|
paymentMethodID: string;
|
|
60
|
-
|
|
65
|
+
/**
|
|
66
|
+
* The payment method type that represents a payment rail and directionality
|
|
67
|
+
*/
|
|
68
|
+
paymentMethodType: PaymentMethodType;
|
|
61
69
|
account: TransferAccount;
|
|
62
70
|
/**
|
|
63
71
|
* A bank account as contained within a payment method.
|
|
@@ -93,7 +101,7 @@ export const TransferDestination$inboundSchema: z.ZodType<
|
|
|
93
101
|
unknown
|
|
94
102
|
> = z.object({
|
|
95
103
|
paymentMethodID: z.string(),
|
|
96
|
-
paymentMethodType:
|
|
104
|
+
paymentMethodType: PaymentMethodType$inboundSchema,
|
|
97
105
|
account: TransferAccount$inboundSchema,
|
|
98
106
|
bankAccount: PaymentMethodsBankAccount$inboundSchema.optional(),
|
|
99
107
|
wallet: PaymentMethodsWallet$inboundSchema.optional(),
|
|
@@ -125,7 +133,7 @@ export const TransferDestination$outboundSchema: z.ZodType<
|
|
|
125
133
|
TransferDestination
|
|
126
134
|
> = z.object({
|
|
127
135
|
paymentMethodID: z.string(),
|
|
128
|
-
paymentMethodType:
|
|
136
|
+
paymentMethodType: PaymentMethodType$outboundSchema,
|
|
129
137
|
account: TransferAccount$outboundSchema,
|
|
130
138
|
bankAccount: PaymentMethodsBankAccount$outboundSchema.optional(),
|
|
131
139
|
wallet: PaymentMethodsWallet$outboundSchema.optional(),
|
|
@@ -42,6 +42,11 @@ import {
|
|
|
42
42
|
PaymentMethodsWallet$Outbound,
|
|
43
43
|
PaymentMethodsWallet$outboundSchema,
|
|
44
44
|
} from "./paymentmethodswallet.js";
|
|
45
|
+
import {
|
|
46
|
+
PaymentMethodType,
|
|
47
|
+
PaymentMethodType$inboundSchema,
|
|
48
|
+
PaymentMethodType$outboundSchema,
|
|
49
|
+
} from "./paymentmethodtype.js";
|
|
45
50
|
import {
|
|
46
51
|
TransferAccount,
|
|
47
52
|
TransferAccount$inboundSchema,
|
|
@@ -50,8 +55,15 @@ import {
|
|
|
50
55
|
} from "./transferaccount.js";
|
|
51
56
|
|
|
52
57
|
export type TransferSource = {
|
|
58
|
+
/**
|
|
59
|
+
* UUID present only if the transfer is part of a transfer group.
|
|
60
|
+
*/
|
|
61
|
+
transferID?: string | undefined;
|
|
53
62
|
paymentMethodID: string;
|
|
54
|
-
|
|
63
|
+
/**
|
|
64
|
+
* The payment method type that represents a payment rail and directionality
|
|
65
|
+
*/
|
|
66
|
+
paymentMethodType: PaymentMethodType;
|
|
55
67
|
account: TransferAccount;
|
|
56
68
|
/**
|
|
57
69
|
* A bank account as contained within a payment method.
|
|
@@ -82,8 +94,9 @@ export const TransferSource$inboundSchema: z.ZodType<
|
|
|
82
94
|
z.ZodTypeDef,
|
|
83
95
|
unknown
|
|
84
96
|
> = z.object({
|
|
97
|
+
transferID: z.string().optional(),
|
|
85
98
|
paymentMethodID: z.string(),
|
|
86
|
-
paymentMethodType:
|
|
99
|
+
paymentMethodType: PaymentMethodType$inboundSchema,
|
|
87
100
|
account: TransferAccount$inboundSchema,
|
|
88
101
|
bankAccount: PaymentMethodsBankAccount$inboundSchema.optional(),
|
|
89
102
|
wallet: PaymentMethodsWallet$inboundSchema.optional(),
|
|
@@ -95,6 +108,7 @@ export const TransferSource$inboundSchema: z.ZodType<
|
|
|
95
108
|
|
|
96
109
|
/** @internal */
|
|
97
110
|
export type TransferSource$Outbound = {
|
|
111
|
+
transferID?: string | undefined;
|
|
98
112
|
paymentMethodID: string;
|
|
99
113
|
paymentMethodType: string;
|
|
100
114
|
account: TransferAccount$Outbound;
|
|
@@ -112,8 +126,9 @@ export const TransferSource$outboundSchema: z.ZodType<
|
|
|
112
126
|
z.ZodTypeDef,
|
|
113
127
|
TransferSource
|
|
114
128
|
> = z.object({
|
|
129
|
+
transferID: z.string().optional(),
|
|
115
130
|
paymentMethodID: z.string(),
|
|
116
|
-
paymentMethodType:
|
|
131
|
+
paymentMethodType: PaymentMethodType$outboundSchema,
|
|
117
132
|
account: TransferAccount$outboundSchema,
|
|
118
133
|
bankAccount: PaymentMethodsBankAccount$outboundSchema.optional(),
|
|
119
134
|
wallet: PaymentMethodsWallet$outboundSchema.optional(),
|
|
@@ -11,8 +11,8 @@ import * as components from "../components/index.js";
|
|
|
11
11
|
export type TransferData = {
|
|
12
12
|
transferID: string;
|
|
13
13
|
createdOn: Date;
|
|
14
|
-
source
|
|
15
|
-
destination
|
|
14
|
+
source: components.TransferSource;
|
|
15
|
+
destination: components.TransferDestination;
|
|
16
16
|
completedOn?: Date | undefined;
|
|
17
17
|
/**
|
|
18
18
|
* Status of a transfer.
|
|
@@ -63,8 +63,8 @@ export type TransferData = {
|
|
|
63
63
|
export class Transfer extends Error {
|
|
64
64
|
transferID: string;
|
|
65
65
|
createdOn: Date;
|
|
66
|
-
source
|
|
67
|
-
destination
|
|
66
|
+
source: components.TransferSource;
|
|
67
|
+
destination: components.TransferDestination;
|
|
68
68
|
completedOn?: Date | undefined;
|
|
69
69
|
/**
|
|
70
70
|
* Status of a transfer.
|
|
@@ -120,8 +120,8 @@ export class Transfer extends Error {
|
|
|
120
120
|
|
|
121
121
|
this.transferID = err.transferID;
|
|
122
122
|
this.createdOn = err.createdOn;
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
this.source = err.source;
|
|
124
|
+
this.destination = err.destination;
|
|
125
125
|
if (err.completedOn != null) this.completedOn = err.completedOn;
|
|
126
126
|
this.status = err.status;
|
|
127
127
|
if (err.failureReason != null) this.failureReason = err.failureReason;
|
|
@@ -153,8 +153,8 @@ export const Transfer$inboundSchema: z.ZodType<
|
|
|
153
153
|
> = z.object({
|
|
154
154
|
transferID: z.string(),
|
|
155
155
|
createdOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
156
|
-
source: components.TransferSource$inboundSchema
|
|
157
|
-
destination: components.TransferDestination$inboundSchema
|
|
156
|
+
source: components.TransferSource$inboundSchema,
|
|
157
|
+
destination: components.TransferDestination$inboundSchema,
|
|
158
158
|
completedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
159
159
|
.optional(),
|
|
160
160
|
status: components.TransferStatus$inboundSchema,
|
|
@@ -183,8 +183,8 @@ export const Transfer$inboundSchema: z.ZodType<
|
|
|
183
183
|
export type Transfer$Outbound = {
|
|
184
184
|
transferID: string;
|
|
185
185
|
createdOn: string;
|
|
186
|
-
source
|
|
187
|
-
destination
|
|
186
|
+
source: components.TransferSource$Outbound;
|
|
187
|
+
destination: components.TransferDestination$Outbound;
|
|
188
188
|
completedOn?: string | undefined;
|
|
189
189
|
status: string;
|
|
190
190
|
failureReason?: string | undefined;
|
|
@@ -215,8 +215,8 @@ export const Transfer$outboundSchema: z.ZodType<
|
|
|
215
215
|
.pipe(z.object({
|
|
216
216
|
transferID: z.string(),
|
|
217
217
|
createdOn: z.date().transform(v => v.toISOString()),
|
|
218
|
-
source: components.TransferSource$outboundSchema
|
|
219
|
-
destination: components.TransferDestination$outboundSchema
|
|
218
|
+
source: components.TransferSource$outboundSchema,
|
|
219
|
+
destination: components.TransferDestination$outboundSchema,
|
|
220
220
|
completedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
221
221
|
status: components.TransferStatus$outboundSchema,
|
|
222
222
|
failureReason: components.TransferFailureReason$outboundSchema.optional(),
|
|
@@ -35,6 +35,10 @@ export type ListWalletTransactionsRequest = {
|
|
|
35
35
|
* Optional parameter to filter by transaction type.
|
|
36
36
|
*/
|
|
37
37
|
transactionType?: components.WalletTransactionType | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Optional, comma-separated parameter to filter by transaction types.
|
|
40
|
+
*/
|
|
41
|
+
transactionTypes?: Array<components.WalletTransactionType> | undefined;
|
|
38
42
|
/**
|
|
39
43
|
* Optional parameter to filter by source type (i.e. transfer, dispute, issuing-transaction).
|
|
40
44
|
*/
|
|
@@ -149,6 +153,8 @@ export const ListWalletTransactionsRequest$inboundSchema: z.ZodType<
|
|
|
149
153
|
count: z.number().int().optional(),
|
|
150
154
|
walletID: z.string(),
|
|
151
155
|
transactionType: components.WalletTransactionType$inboundSchema.optional(),
|
|
156
|
+
transactionTypes: z.array(components.WalletTransactionType$inboundSchema)
|
|
157
|
+
.optional(),
|
|
152
158
|
sourceType: components.WalletTransactionSourceType$inboundSchema.optional(),
|
|
153
159
|
sourceID: z.string().optional(),
|
|
154
160
|
status: components.WalletTransactionStatus$inboundSchema.optional(),
|
|
@@ -174,6 +180,7 @@ export type ListWalletTransactionsRequest$Outbound = {
|
|
|
174
180
|
count?: number | undefined;
|
|
175
181
|
walletID: string;
|
|
176
182
|
transactionType?: string | undefined;
|
|
183
|
+
transactionTypes?: Array<string> | undefined;
|
|
177
184
|
sourceType?: string | undefined;
|
|
178
185
|
sourceID?: string | undefined;
|
|
179
186
|
status?: string | undefined;
|
|
@@ -195,6 +202,8 @@ export const ListWalletTransactionsRequest$outboundSchema: z.ZodType<
|
|
|
195
202
|
count: z.number().int().optional(),
|
|
196
203
|
walletID: z.string(),
|
|
197
204
|
transactionType: components.WalletTransactionType$outboundSchema.optional(),
|
|
205
|
+
transactionTypes: z.array(components.WalletTransactionType$outboundSchema)
|
|
206
|
+
.optional(),
|
|
198
207
|
sourceType: components.WalletTransactionSourceType$outboundSchema.optional(),
|
|
199
208
|
sourceID: z.string().optional(),
|
|
200
209
|
status: components.WalletTransactionStatus$outboundSchema.optional(),
|