@moovio/sdk 0.10.11 → 0.10.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -19
- package/bin/mcp-server.js +1582 -1001
- package/bin/mcp-server.js.map +32 -21
- package/docs/sdks/accountterminalapplications/README.md +375 -0
- package/docs/sdks/terminalapplications/README.md +12 -12
- package/funcs/accountTerminalApplicationsGet.d.ts +16 -0
- package/funcs/accountTerminalApplicationsGet.d.ts.map +1 -0
- package/funcs/accountTerminalApplicationsGet.js +121 -0
- package/funcs/accountTerminalApplicationsGet.js.map +1 -0
- package/funcs/{terminalConfigurationsGet.d.ts → accountTerminalApplicationsGetConfiguration.d.ts} +3 -3
- package/funcs/accountTerminalApplicationsGetConfiguration.d.ts.map +1 -0
- package/funcs/{terminalConfigurationsGet.js → accountTerminalApplicationsGetConfiguration.js} +4 -4
- package/funcs/accountTerminalApplicationsGetConfiguration.js.map +1 -0
- package/funcs/accountTerminalApplicationsLink.d.ts +17 -0
- package/funcs/accountTerminalApplicationsLink.d.ts.map +1 -0
- package/funcs/accountTerminalApplicationsLink.js +138 -0
- package/funcs/accountTerminalApplicationsLink.js.map +1 -0
- package/funcs/accountTerminalApplicationsList.d.ts +16 -0
- package/funcs/accountTerminalApplicationsList.d.ts.map +1 -0
- package/funcs/accountTerminalApplicationsList.js +120 -0
- package/funcs/accountTerminalApplicationsList.js.map +1 -0
- package/funcs/terminalApplicationsCreate.d.ts +1 -1
- package/funcs/terminalApplicationsCreate.js +1 -1
- package/funcs/terminalApplicationsDelete.d.ts +1 -1
- package/funcs/terminalApplicationsDelete.js +1 -1
- package/funcs/terminalApplicationsGet.d.ts +1 -1
- package/funcs/terminalApplicationsGet.js +1 -1
- package/funcs/terminalApplicationsList.d.ts +1 -1
- package/funcs/terminalApplicationsList.js +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.d.ts.map +1 -1
- package/mcp-server/server.js +9 -3
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/accountTerminalApplicationsGet.d.ts +8 -0
- package/mcp-server/tools/accountTerminalApplicationsGet.d.ts.map +1 -0
- package/mcp-server/tools/accountTerminalApplicationsGet.js +65 -0
- package/mcp-server/tools/accountTerminalApplicationsGet.js.map +1 -0
- package/mcp-server/tools/{terminalConfigurationsGet.d.ts → accountTerminalApplicationsGetConfiguration.d.ts} +2 -2
- package/mcp-server/tools/accountTerminalApplicationsGetConfiguration.d.ts.map +1 -0
- package/mcp-server/tools/{terminalConfigurationsGet.js → accountTerminalApplicationsGetConfiguration.js} +7 -7
- package/mcp-server/tools/accountTerminalApplicationsGetConfiguration.js.map +1 -0
- package/mcp-server/tools/accountTerminalApplicationsLink.d.ts +8 -0
- package/mcp-server/tools/accountTerminalApplicationsLink.d.ts.map +1 -0
- package/mcp-server/tools/accountTerminalApplicationsLink.js +65 -0
- package/mcp-server/tools/accountTerminalApplicationsLink.js.map +1 -0
- package/mcp-server/tools/accountTerminalApplicationsList.d.ts +8 -0
- package/mcp-server/tools/accountTerminalApplicationsList.d.ts.map +1 -0
- package/mcp-server/tools/accountTerminalApplicationsList.js +65 -0
- package/mcp-server/tools/accountTerminalApplicationsList.js.map +1 -0
- package/mcp-server/tools/terminalApplicationsCreate.js +1 -1
- package/mcp-server/tools/terminalApplicationsCreate.js.map +1 -1
- package/mcp-server/tools/terminalApplicationsDelete.js +1 -1
- package/mcp-server/tools/terminalApplicationsDelete.js.map +1 -1
- package/mcp-server/tools/terminalApplicationsGet.js +1 -1
- package/mcp-server/tools/terminalApplicationsGet.js.map +1 -1
- package/mcp-server/tools/terminalApplicationsList.js +1 -1
- package/mcp-server/tools/terminalApplicationsList.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/linkaccountterminalapplication.d.ts +35 -0
- package/models/components/linkaccountterminalapplication.d.ts.map +1 -0
- package/models/components/linkaccountterminalapplication.js +69 -0
- package/models/components/linkaccountterminalapplication.js.map +1 -0
- package/models/errors/accountterminalapplicationerror.d.ts +31 -0
- package/models/errors/accountterminalapplicationerror.d.ts.map +1 -0
- package/models/errors/accountterminalapplicationerror.js +79 -0
- package/models/errors/accountterminalapplicationerror.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/createtransfer.d.ts +1 -1
- package/models/operations/getaccountterminalapplication.d.ts +101 -0
- package/models/operations/getaccountterminalapplication.d.ts.map +1 -0
- package/models/operations/getaccountterminalapplication.js +147 -0
- package/models/operations/getaccountterminalapplication.js.map +1 -0
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/initiaterefund.d.ts +1 -1
- package/models/operations/linkaccountterminalapplication.d.ts +101 -0
- package/models/operations/linkaccountterminalapplication.d.ts.map +1 -0
- package/models/operations/linkaccountterminalapplication.js +155 -0
- package/models/operations/linkaccountterminalapplication.js.map +1 -0
- package/models/operations/listaccountterminalapplications.d.ts +99 -0
- package/models/operations/listaccountterminalapplications.d.ts.map +1 -0
- package/models/operations/listaccountterminalapplications.js +145 -0
- package/models/operations/listaccountterminalapplications.js.map +1 -0
- package/package.json +3 -3
- package/sdk/accountterminalapplications.d.ts +33 -0
- package/sdk/accountterminalapplications.d.ts.map +1 -0
- package/sdk/accountterminalapplications.js +52 -0
- package/sdk/accountterminalapplications.js.map +1 -0
- package/sdk/sdk.d.ts +3 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -3
- package/sdk/sdk.js.map +1 -1
- package/sdk/terminalapplications.d.ts +4 -4
- package/sdk/terminalapplications.js +4 -4
- package/src/funcs/accountTerminalApplicationsGet.ts +184 -0
- package/src/funcs/{terminalConfigurationsGet.ts → accountTerminalApplicationsGetConfiguration.ts} +2 -2
- package/src/funcs/accountTerminalApplicationsLink.ts +205 -0
- package/src/funcs/accountTerminalApplicationsList.ts +179 -0
- package/src/funcs/terminalApplicationsCreate.ts +1 -1
- package/src/funcs/terminalApplicationsDelete.ts +1 -1
- package/src/funcs/terminalApplicationsGet.ts +1 -1
- package/src/funcs/terminalApplicationsList.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -3
- package/src/mcp-server/tools/accountTerminalApplicationsGet.ts +40 -0
- package/src/mcp-server/tools/{terminalConfigurationsGet.ts → accountTerminalApplicationsGetConfiguration.ts} +8 -5
- package/src/mcp-server/tools/accountTerminalApplicationsLink.ts +39 -0
- package/src/mcp-server/tools/accountTerminalApplicationsList.ts +40 -0
- package/src/mcp-server/tools/terminalApplicationsCreate.ts +1 -1
- package/src/mcp-server/tools/terminalApplicationsDelete.ts +1 -1
- package/src/mcp-server/tools/terminalApplicationsGet.ts +1 -1
- package/src/mcp-server/tools/terminalApplicationsList.ts +1 -1
- package/src/models/components/index.ts +1 -0
- package/src/models/components/linkaccountterminalapplication.ts +74 -0
- package/src/models/errors/accountterminalapplicationerror.ts +71 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/createtransfer.ts +1 -1
- package/src/models/operations/getaccountterminalapplication.ts +238 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/initiaterefund.ts +1 -1
- package/src/models/operations/linkaccountterminalapplication.ts +250 -0
- package/src/models/operations/listaccountterminalapplications.ts +242 -0
- package/src/sdk/accountterminalapplications.ts +81 -0
- package/src/sdk/sdk.ts +5 -6
- package/src/sdk/terminalapplications.ts +4 -4
- package/docs/sdks/terminalconfigurations/README.md +0 -98
- package/funcs/terminalConfigurationsGet.d.ts.map +0 -1
- package/funcs/terminalConfigurationsGet.js.map +0 -1
- package/mcp-server/tools/terminalConfigurationsGet.d.ts.map +0 -1
- package/mcp-server/tools/terminalConfigurationsGet.js.map +0 -1
- package/sdk/terminalconfigurations.d.ts +0 -12
- package/sdk/terminalconfigurations.d.ts.map +0 -1
- package/sdk/terminalconfigurations.js +0 -22
- package/sdk/terminalconfigurations.js.map +0 -1
- package/src/sdk/terminalconfigurations.ts +0 -27
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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 * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type GetAccountTerminalApplicationGlobals = {
|
|
13
|
+
/**
|
|
14
|
+
* Specify an API version.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
*
|
|
18
|
+
* API versioning follows the format `vYYYY.QQ.BB`, where
|
|
19
|
+
* - `YYYY` is the year
|
|
20
|
+
* - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
21
|
+
* - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
22
|
+
* - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
23
|
+
*
|
|
24
|
+
* The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
25
|
+
*/
|
|
26
|
+
xMoovVersion?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type GetAccountTerminalApplicationRequest = {
|
|
30
|
+
accountID: string;
|
|
31
|
+
terminalApplicationID: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type GetAccountTerminalApplicationResponse = {
|
|
35
|
+
headers: { [k: string]: Array<string> };
|
|
36
|
+
result: components.TerminalApplication;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const GetAccountTerminalApplicationGlobals$inboundSchema: z.ZodType<
|
|
41
|
+
GetAccountTerminalApplicationGlobals,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.object({
|
|
45
|
+
"x-moov-version": z.string().default("v2024.01.00"),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
"x-moov-version": "xMoovVersion",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type GetAccountTerminalApplicationGlobals$Outbound = {
|
|
54
|
+
"x-moov-version": string;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const GetAccountTerminalApplicationGlobals$outboundSchema: z.ZodType<
|
|
59
|
+
GetAccountTerminalApplicationGlobals$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
GetAccountTerminalApplicationGlobals
|
|
62
|
+
> = z.object({
|
|
63
|
+
xMoovVersion: z.string().default("v2024.01.00"),
|
|
64
|
+
}).transform((v) => {
|
|
65
|
+
return remap$(v, {
|
|
66
|
+
xMoovVersion: "x-moov-version",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
+
*/
|
|
74
|
+
export namespace GetAccountTerminalApplicationGlobals$ {
|
|
75
|
+
/** @deprecated use `GetAccountTerminalApplicationGlobals$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema =
|
|
77
|
+
GetAccountTerminalApplicationGlobals$inboundSchema;
|
|
78
|
+
/** @deprecated use `GetAccountTerminalApplicationGlobals$outboundSchema` instead. */
|
|
79
|
+
export const outboundSchema =
|
|
80
|
+
GetAccountTerminalApplicationGlobals$outboundSchema;
|
|
81
|
+
/** @deprecated use `GetAccountTerminalApplicationGlobals$Outbound` instead. */
|
|
82
|
+
export type Outbound = GetAccountTerminalApplicationGlobals$Outbound;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function getAccountTerminalApplicationGlobalsToJSON(
|
|
86
|
+
getAccountTerminalApplicationGlobals: GetAccountTerminalApplicationGlobals,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
GetAccountTerminalApplicationGlobals$outboundSchema.parse(
|
|
90
|
+
getAccountTerminalApplicationGlobals,
|
|
91
|
+
),
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function getAccountTerminalApplicationGlobalsFromJSON(
|
|
96
|
+
jsonString: string,
|
|
97
|
+
): SafeParseResult<GetAccountTerminalApplicationGlobals, SDKValidationError> {
|
|
98
|
+
return safeParse(
|
|
99
|
+
jsonString,
|
|
100
|
+
(x) =>
|
|
101
|
+
GetAccountTerminalApplicationGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
102
|
+
`Failed to parse 'GetAccountTerminalApplicationGlobals' from JSON`,
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const GetAccountTerminalApplicationRequest$inboundSchema: z.ZodType<
|
|
108
|
+
GetAccountTerminalApplicationRequest,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
unknown
|
|
111
|
+
> = z.object({
|
|
112
|
+
accountID: z.string(),
|
|
113
|
+
terminalApplicationID: z.string(),
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
/** @internal */
|
|
117
|
+
export type GetAccountTerminalApplicationRequest$Outbound = {
|
|
118
|
+
accountID: string;
|
|
119
|
+
terminalApplicationID: string;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/** @internal */
|
|
123
|
+
export const GetAccountTerminalApplicationRequest$outboundSchema: z.ZodType<
|
|
124
|
+
GetAccountTerminalApplicationRequest$Outbound,
|
|
125
|
+
z.ZodTypeDef,
|
|
126
|
+
GetAccountTerminalApplicationRequest
|
|
127
|
+
> = z.object({
|
|
128
|
+
accountID: z.string(),
|
|
129
|
+
terminalApplicationID: z.string(),
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @internal
|
|
134
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
135
|
+
*/
|
|
136
|
+
export namespace GetAccountTerminalApplicationRequest$ {
|
|
137
|
+
/** @deprecated use `GetAccountTerminalApplicationRequest$inboundSchema` instead. */
|
|
138
|
+
export const inboundSchema =
|
|
139
|
+
GetAccountTerminalApplicationRequest$inboundSchema;
|
|
140
|
+
/** @deprecated use `GetAccountTerminalApplicationRequest$outboundSchema` instead. */
|
|
141
|
+
export const outboundSchema =
|
|
142
|
+
GetAccountTerminalApplicationRequest$outboundSchema;
|
|
143
|
+
/** @deprecated use `GetAccountTerminalApplicationRequest$Outbound` instead. */
|
|
144
|
+
export type Outbound = GetAccountTerminalApplicationRequest$Outbound;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function getAccountTerminalApplicationRequestToJSON(
|
|
148
|
+
getAccountTerminalApplicationRequest: GetAccountTerminalApplicationRequest,
|
|
149
|
+
): string {
|
|
150
|
+
return JSON.stringify(
|
|
151
|
+
GetAccountTerminalApplicationRequest$outboundSchema.parse(
|
|
152
|
+
getAccountTerminalApplicationRequest,
|
|
153
|
+
),
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export function getAccountTerminalApplicationRequestFromJSON(
|
|
158
|
+
jsonString: string,
|
|
159
|
+
): SafeParseResult<GetAccountTerminalApplicationRequest, SDKValidationError> {
|
|
160
|
+
return safeParse(
|
|
161
|
+
jsonString,
|
|
162
|
+
(x) =>
|
|
163
|
+
GetAccountTerminalApplicationRequest$inboundSchema.parse(JSON.parse(x)),
|
|
164
|
+
`Failed to parse 'GetAccountTerminalApplicationRequest' from JSON`,
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/** @internal */
|
|
169
|
+
export const GetAccountTerminalApplicationResponse$inboundSchema: z.ZodType<
|
|
170
|
+
GetAccountTerminalApplicationResponse,
|
|
171
|
+
z.ZodTypeDef,
|
|
172
|
+
unknown
|
|
173
|
+
> = z.object({
|
|
174
|
+
Headers: z.record(z.array(z.string())),
|
|
175
|
+
Result: components.TerminalApplication$inboundSchema,
|
|
176
|
+
}).transform((v) => {
|
|
177
|
+
return remap$(v, {
|
|
178
|
+
"Headers": "headers",
|
|
179
|
+
"Result": "result",
|
|
180
|
+
});
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
/** @internal */
|
|
184
|
+
export type GetAccountTerminalApplicationResponse$Outbound = {
|
|
185
|
+
Headers: { [k: string]: Array<string> };
|
|
186
|
+
Result: components.TerminalApplication$Outbound;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
/** @internal */
|
|
190
|
+
export const GetAccountTerminalApplicationResponse$outboundSchema: z.ZodType<
|
|
191
|
+
GetAccountTerminalApplicationResponse$Outbound,
|
|
192
|
+
z.ZodTypeDef,
|
|
193
|
+
GetAccountTerminalApplicationResponse
|
|
194
|
+
> = z.object({
|
|
195
|
+
headers: z.record(z.array(z.string())),
|
|
196
|
+
result: components.TerminalApplication$outboundSchema,
|
|
197
|
+
}).transform((v) => {
|
|
198
|
+
return remap$(v, {
|
|
199
|
+
headers: "Headers",
|
|
200
|
+
result: "Result",
|
|
201
|
+
});
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* @internal
|
|
206
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
207
|
+
*/
|
|
208
|
+
export namespace GetAccountTerminalApplicationResponse$ {
|
|
209
|
+
/** @deprecated use `GetAccountTerminalApplicationResponse$inboundSchema` instead. */
|
|
210
|
+
export const inboundSchema =
|
|
211
|
+
GetAccountTerminalApplicationResponse$inboundSchema;
|
|
212
|
+
/** @deprecated use `GetAccountTerminalApplicationResponse$outboundSchema` instead. */
|
|
213
|
+
export const outboundSchema =
|
|
214
|
+
GetAccountTerminalApplicationResponse$outboundSchema;
|
|
215
|
+
/** @deprecated use `GetAccountTerminalApplicationResponse$Outbound` instead. */
|
|
216
|
+
export type Outbound = GetAccountTerminalApplicationResponse$Outbound;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export function getAccountTerminalApplicationResponseToJSON(
|
|
220
|
+
getAccountTerminalApplicationResponse: GetAccountTerminalApplicationResponse,
|
|
221
|
+
): string {
|
|
222
|
+
return JSON.stringify(
|
|
223
|
+
GetAccountTerminalApplicationResponse$outboundSchema.parse(
|
|
224
|
+
getAccountTerminalApplicationResponse,
|
|
225
|
+
),
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export function getAccountTerminalApplicationResponseFromJSON(
|
|
230
|
+
jsonString: string,
|
|
231
|
+
): SafeParseResult<GetAccountTerminalApplicationResponse, SDKValidationError> {
|
|
232
|
+
return safeParse(
|
|
233
|
+
jsonString,
|
|
234
|
+
(x) =>
|
|
235
|
+
GetAccountTerminalApplicationResponse$inboundSchema.parse(JSON.parse(x)),
|
|
236
|
+
`Failed to parse 'GetAccountTerminalApplicationResponse' from JSON`,
|
|
237
|
+
);
|
|
238
|
+
}
|
|
@@ -34,6 +34,7 @@ export * from "./disconnectaccount.js";
|
|
|
34
34
|
export * from "./generateendtoendkey.js";
|
|
35
35
|
export * from "./getaccount.js";
|
|
36
36
|
export * from "./getaccountcountries.js";
|
|
37
|
+
export * from "./getaccountterminalapplication.js";
|
|
37
38
|
export * from "./getadjustment.js";
|
|
38
39
|
export * from "./getapplepaymerchantdomains.js";
|
|
39
40
|
export * from "./getavatar.js";
|
|
@@ -74,10 +75,12 @@ export * from "./getwallettransaction.js";
|
|
|
74
75
|
export * from "./initiatebankaccountverification.js";
|
|
75
76
|
export * from "./initiatemicrodeposits.js";
|
|
76
77
|
export * from "./initiaterefund.js";
|
|
78
|
+
export * from "./linkaccountterminalapplication.js";
|
|
77
79
|
export * from "./linkapplepaytoken.js";
|
|
78
80
|
export * from "./linkbankaccount.js";
|
|
79
81
|
export * from "./linkcard.js";
|
|
80
82
|
export * from "./listaccounts.js";
|
|
83
|
+
export * from "./listaccountterminalapplications.js";
|
|
81
84
|
export * from "./listadjustments.js";
|
|
82
85
|
export * from "./listbankaccounts.js";
|
|
83
86
|
export * from "./listcapabilities.js";
|
|
@@ -35,7 +35,7 @@ export type InitiateRefundRequest = {
|
|
|
35
35
|
* Optional header that indicates whether to return a synchronous response that includes full transfer and rail-specific details or an
|
|
36
36
|
*
|
|
37
37
|
* @remarks
|
|
38
|
-
* asynchronous response indicating the transfer was created (this is the default response if the header is omitted).
|
|
38
|
+
* asynchronous response indicating the transfer was created (this is the default response if the header is omitted). A timeout will occur after 15 seconds.
|
|
39
39
|
*/
|
|
40
40
|
xWaitFor?: components.TransferWaitFor | undefined;
|
|
41
41
|
/**
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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 * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type LinkAccountTerminalApplicationGlobals = {
|
|
13
|
+
/**
|
|
14
|
+
* Specify an API version.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
*
|
|
18
|
+
* API versioning follows the format `vYYYY.QQ.BB`, where
|
|
19
|
+
* - `YYYY` is the year
|
|
20
|
+
* - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
21
|
+
* - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
22
|
+
* - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
23
|
+
*
|
|
24
|
+
* The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
25
|
+
*/
|
|
26
|
+
xMoovVersion?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type LinkAccountTerminalApplicationRequest = {
|
|
30
|
+
accountID: string;
|
|
31
|
+
linkAccountTerminalApplication: components.LinkAccountTerminalApplication;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type LinkAccountTerminalApplicationResponse = {
|
|
35
|
+
headers: { [k: string]: Array<string> };
|
|
36
|
+
result: components.TerminalApplication;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const LinkAccountTerminalApplicationGlobals$inboundSchema: z.ZodType<
|
|
41
|
+
LinkAccountTerminalApplicationGlobals,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.object({
|
|
45
|
+
"x-moov-version": z.string().default("v2024.01.00"),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
"x-moov-version": "xMoovVersion",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type LinkAccountTerminalApplicationGlobals$Outbound = {
|
|
54
|
+
"x-moov-version": string;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const LinkAccountTerminalApplicationGlobals$outboundSchema: z.ZodType<
|
|
59
|
+
LinkAccountTerminalApplicationGlobals$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
LinkAccountTerminalApplicationGlobals
|
|
62
|
+
> = z.object({
|
|
63
|
+
xMoovVersion: z.string().default("v2024.01.00"),
|
|
64
|
+
}).transform((v) => {
|
|
65
|
+
return remap$(v, {
|
|
66
|
+
xMoovVersion: "x-moov-version",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
+
*/
|
|
74
|
+
export namespace LinkAccountTerminalApplicationGlobals$ {
|
|
75
|
+
/** @deprecated use `LinkAccountTerminalApplicationGlobals$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema =
|
|
77
|
+
LinkAccountTerminalApplicationGlobals$inboundSchema;
|
|
78
|
+
/** @deprecated use `LinkAccountTerminalApplicationGlobals$outboundSchema` instead. */
|
|
79
|
+
export const outboundSchema =
|
|
80
|
+
LinkAccountTerminalApplicationGlobals$outboundSchema;
|
|
81
|
+
/** @deprecated use `LinkAccountTerminalApplicationGlobals$Outbound` instead. */
|
|
82
|
+
export type Outbound = LinkAccountTerminalApplicationGlobals$Outbound;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function linkAccountTerminalApplicationGlobalsToJSON(
|
|
86
|
+
linkAccountTerminalApplicationGlobals: LinkAccountTerminalApplicationGlobals,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
LinkAccountTerminalApplicationGlobals$outboundSchema.parse(
|
|
90
|
+
linkAccountTerminalApplicationGlobals,
|
|
91
|
+
),
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function linkAccountTerminalApplicationGlobalsFromJSON(
|
|
96
|
+
jsonString: string,
|
|
97
|
+
): SafeParseResult<LinkAccountTerminalApplicationGlobals, SDKValidationError> {
|
|
98
|
+
return safeParse(
|
|
99
|
+
jsonString,
|
|
100
|
+
(x) =>
|
|
101
|
+
LinkAccountTerminalApplicationGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
102
|
+
`Failed to parse 'LinkAccountTerminalApplicationGlobals' from JSON`,
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const LinkAccountTerminalApplicationRequest$inboundSchema: z.ZodType<
|
|
108
|
+
LinkAccountTerminalApplicationRequest,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
unknown
|
|
111
|
+
> = z.object({
|
|
112
|
+
accountID: z.string(),
|
|
113
|
+
LinkAccountTerminalApplication:
|
|
114
|
+
components.LinkAccountTerminalApplication$inboundSchema,
|
|
115
|
+
}).transform((v) => {
|
|
116
|
+
return remap$(v, {
|
|
117
|
+
"LinkAccountTerminalApplication": "linkAccountTerminalApplication",
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
/** @internal */
|
|
122
|
+
export type LinkAccountTerminalApplicationRequest$Outbound = {
|
|
123
|
+
accountID: string;
|
|
124
|
+
LinkAccountTerminalApplication:
|
|
125
|
+
components.LinkAccountTerminalApplication$Outbound;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
/** @internal */
|
|
129
|
+
export const LinkAccountTerminalApplicationRequest$outboundSchema: z.ZodType<
|
|
130
|
+
LinkAccountTerminalApplicationRequest$Outbound,
|
|
131
|
+
z.ZodTypeDef,
|
|
132
|
+
LinkAccountTerminalApplicationRequest
|
|
133
|
+
> = z.object({
|
|
134
|
+
accountID: z.string(),
|
|
135
|
+
linkAccountTerminalApplication:
|
|
136
|
+
components.LinkAccountTerminalApplication$outboundSchema,
|
|
137
|
+
}).transform((v) => {
|
|
138
|
+
return remap$(v, {
|
|
139
|
+
linkAccountTerminalApplication: "LinkAccountTerminalApplication",
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @internal
|
|
145
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
146
|
+
*/
|
|
147
|
+
export namespace LinkAccountTerminalApplicationRequest$ {
|
|
148
|
+
/** @deprecated use `LinkAccountTerminalApplicationRequest$inboundSchema` instead. */
|
|
149
|
+
export const inboundSchema =
|
|
150
|
+
LinkAccountTerminalApplicationRequest$inboundSchema;
|
|
151
|
+
/** @deprecated use `LinkAccountTerminalApplicationRequest$outboundSchema` instead. */
|
|
152
|
+
export const outboundSchema =
|
|
153
|
+
LinkAccountTerminalApplicationRequest$outboundSchema;
|
|
154
|
+
/** @deprecated use `LinkAccountTerminalApplicationRequest$Outbound` instead. */
|
|
155
|
+
export type Outbound = LinkAccountTerminalApplicationRequest$Outbound;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export function linkAccountTerminalApplicationRequestToJSON(
|
|
159
|
+
linkAccountTerminalApplicationRequest: LinkAccountTerminalApplicationRequest,
|
|
160
|
+
): string {
|
|
161
|
+
return JSON.stringify(
|
|
162
|
+
LinkAccountTerminalApplicationRequest$outboundSchema.parse(
|
|
163
|
+
linkAccountTerminalApplicationRequest,
|
|
164
|
+
),
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function linkAccountTerminalApplicationRequestFromJSON(
|
|
169
|
+
jsonString: string,
|
|
170
|
+
): SafeParseResult<LinkAccountTerminalApplicationRequest, SDKValidationError> {
|
|
171
|
+
return safeParse(
|
|
172
|
+
jsonString,
|
|
173
|
+
(x) =>
|
|
174
|
+
LinkAccountTerminalApplicationRequest$inboundSchema.parse(JSON.parse(x)),
|
|
175
|
+
`Failed to parse 'LinkAccountTerminalApplicationRequest' from JSON`,
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/** @internal */
|
|
180
|
+
export const LinkAccountTerminalApplicationResponse$inboundSchema: z.ZodType<
|
|
181
|
+
LinkAccountTerminalApplicationResponse,
|
|
182
|
+
z.ZodTypeDef,
|
|
183
|
+
unknown
|
|
184
|
+
> = z.object({
|
|
185
|
+
Headers: z.record(z.array(z.string())),
|
|
186
|
+
Result: components.TerminalApplication$inboundSchema,
|
|
187
|
+
}).transform((v) => {
|
|
188
|
+
return remap$(v, {
|
|
189
|
+
"Headers": "headers",
|
|
190
|
+
"Result": "result",
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
/** @internal */
|
|
195
|
+
export type LinkAccountTerminalApplicationResponse$Outbound = {
|
|
196
|
+
Headers: { [k: string]: Array<string> };
|
|
197
|
+
Result: components.TerminalApplication$Outbound;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
/** @internal */
|
|
201
|
+
export const LinkAccountTerminalApplicationResponse$outboundSchema: z.ZodType<
|
|
202
|
+
LinkAccountTerminalApplicationResponse$Outbound,
|
|
203
|
+
z.ZodTypeDef,
|
|
204
|
+
LinkAccountTerminalApplicationResponse
|
|
205
|
+
> = z.object({
|
|
206
|
+
headers: z.record(z.array(z.string())),
|
|
207
|
+
result: components.TerminalApplication$outboundSchema,
|
|
208
|
+
}).transform((v) => {
|
|
209
|
+
return remap$(v, {
|
|
210
|
+
headers: "Headers",
|
|
211
|
+
result: "Result",
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* @internal
|
|
217
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
218
|
+
*/
|
|
219
|
+
export namespace LinkAccountTerminalApplicationResponse$ {
|
|
220
|
+
/** @deprecated use `LinkAccountTerminalApplicationResponse$inboundSchema` instead. */
|
|
221
|
+
export const inboundSchema =
|
|
222
|
+
LinkAccountTerminalApplicationResponse$inboundSchema;
|
|
223
|
+
/** @deprecated use `LinkAccountTerminalApplicationResponse$outboundSchema` instead. */
|
|
224
|
+
export const outboundSchema =
|
|
225
|
+
LinkAccountTerminalApplicationResponse$outboundSchema;
|
|
226
|
+
/** @deprecated use `LinkAccountTerminalApplicationResponse$Outbound` instead. */
|
|
227
|
+
export type Outbound = LinkAccountTerminalApplicationResponse$Outbound;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export function linkAccountTerminalApplicationResponseToJSON(
|
|
231
|
+
linkAccountTerminalApplicationResponse:
|
|
232
|
+
LinkAccountTerminalApplicationResponse,
|
|
233
|
+
): string {
|
|
234
|
+
return JSON.stringify(
|
|
235
|
+
LinkAccountTerminalApplicationResponse$outboundSchema.parse(
|
|
236
|
+
linkAccountTerminalApplicationResponse,
|
|
237
|
+
),
|
|
238
|
+
);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export function linkAccountTerminalApplicationResponseFromJSON(
|
|
242
|
+
jsonString: string,
|
|
243
|
+
): SafeParseResult<LinkAccountTerminalApplicationResponse, SDKValidationError> {
|
|
244
|
+
return safeParse(
|
|
245
|
+
jsonString,
|
|
246
|
+
(x) =>
|
|
247
|
+
LinkAccountTerminalApplicationResponse$inboundSchema.parse(JSON.parse(x)),
|
|
248
|
+
`Failed to parse 'LinkAccountTerminalApplicationResponse' from JSON`,
|
|
249
|
+
);
|
|
250
|
+
}
|