@moovio/sdk 0.10.7 → 0.10.9
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 +441 -326
- package/bin/mcp-server.js.map +30 -28
- 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/prompts.d.ts.map +1 -1
- package/mcp-server/prompts.js +5 -1
- package/mcp-server/prompts.js.map +1 -1
- package/mcp-server/resources.d.ts.map +1 -1
- package/mcp-server/resources.js +10 -2
- package/mcp-server/resources.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +2 -3
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools.d.ts.map +1 -1
- package/mcp-server/tools.js +4 -3
- package/mcp-server/tools.js.map +1 -1
- package/models/components/createdtransfer.d.ts +116 -0
- package/models/components/createdtransfer.d.ts.map +1 -0
- package/models/components/createdtransfer.js +126 -0
- package/models/components/createdtransfer.js.map +1 -0
- package/models/components/index.d.ts +3 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -1
- package/models/components/index.js.map +1 -1
- package/models/components/moovfee.d.ts +52 -0
- package/models/components/moovfee.d.ts.map +1 -0
- package/models/components/{transferresponse.js → moovfee.js} +29 -19
- package/models/components/moovfee.js.map +1 -0
- package/models/components/receiptresponse.d.ts +2 -2
- package/models/components/receiptresponse.d.ts.map +1 -1
- package/models/components/receiptresponse.js +2 -2
- package/models/components/receiptresponse.js.map +1 -1
- package/models/components/transfer.d.ts +6 -0
- package/models/components/transfer.d.ts.map +1 -1
- package/models/components/transfer.js +3 -0
- package/models/components/transfer.js.map +1 -1
- package/models/components/transferparty.d.ts +37 -0
- package/models/components/transferparty.d.ts.map +1 -0
- package/models/components/transferparty.js +64 -0
- package/models/components/transferparty.js.map +1 -0
- package/models/errors/transfer.d.ts +9 -0
- package/models/errors/transfer.d.ts.map +1 -1
- package/models/errors/transfer.js +4 -0
- package/models/errors/transfer.js.map +1 -1
- package/models/operations/createtransfer.d.ts +4 -4
- package/models/operations/createtransfer.d.ts.map +1 -1
- package/models/operations/createtransfer.js +4 -4
- package/models/operations/createtransfer.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/prompts.ts +8 -1
- package/src/mcp-server/resources.ts +16 -2
- package/src/mcp-server/server.ts +3 -3
- package/src/mcp-server/tools.ts +6 -3
- package/src/models/components/createdtransfer.ts +242 -0
- package/src/models/components/index.ts +3 -1
- package/src/models/components/moovfee.ts +97 -0
- package/src/models/components/receiptresponse.ts +4 -4
- package/src/models/components/transfer.ts +13 -0
- package/src/models/components/transferparty.ts +40 -0
- package/src/models/errors/transfer.ts +12 -0
- package/src/models/operations/createtransfer.ts +12 -12
- package/models/components/transferresponse.d.ts +0 -27
- package/models/components/transferresponse.d.ts.map +0 -1
- package/models/components/transferresponse.js.map +0 -1
- package/src/models/components/transferresponse.ts +0 -72
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createtransfer.js","sourceRoot":"","sources":["../../src/models/operations/createtransfer.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsGH,kEAMC;AAED,sEAQC;AA2DD,kEAMC;AAED,sEAQC;AA2CD,gFAQC;AAED,oFAQC;AA8DD,oEAMC;AAED,wEAQC;AA1UD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAoDrD,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC;CACpD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;Q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AC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,2BAA2B;IACtC,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"createtransfer.js","sourceRoot":"","sources":["../../src/models/operations/createtransfer.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsGH,kEAMC;AAED,sEAQC;AA2DD,kEAMC;AAED,sEAQC;AA2CD,gFAQC;AAED,oFAQC;AA8DD,oEAMC;AAED,wEAQC;AA1UD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAoDrD,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC;CACpD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,cAAc;KACjC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC;CAChD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,gBAAgB;KAC/B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,2CAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,4CAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,sCAAtB,sBAAsB,QAOtC;AAED,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5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OvC;AAPD,WAAiB,uBAAuB;IACtC,sEAAsE;IACzD,qCAAa,GAAG,4CAAoC,CAAC;IAClE,uEAAuE;IAC1D,sCAAc,GAAG,6CAAqC,CAAC;AAGtE,CAAC,EAPgB,uBAAuB,uCAAvB,uBAAuB,QAOvC;AAED,SAAgB,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,6CAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC;AAED,SAAgB,8BAA8B,CAC5C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4CAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -69,7 +69,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
69
69
|
export const SDK_METADATA = {
|
|
70
70
|
language: "typescript",
|
|
71
71
|
openapiDocVersion: "latest",
|
|
72
|
-
sdkVersion: "0.10.
|
|
73
|
-
genVersion: "2.
|
|
74
|
-
userAgent: "speakeasy-sdk/typescript 0.10.
|
|
72
|
+
sdkVersion: "0.10.9",
|
|
73
|
+
genVersion: "2.568.2",
|
|
74
|
+
userAgent: "speakeasy-sdk/typescript 0.10.9 2.568.2 latest @moovio/sdk",
|
|
75
75
|
} as const;
|
|
@@ -74,7 +74,14 @@ export function createRegisterPrompt(
|
|
|
74
74
|
prompt: PromptDefinition<A>,
|
|
75
75
|
): void => {
|
|
76
76
|
const scopes = prompt.scopes ?? [];
|
|
77
|
-
if (
|
|
77
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (
|
|
82
|
+
allowedScopes.size > 0
|
|
83
|
+
&& !scopes.every((s: MCPScope) => allowedScopes.has(s))
|
|
84
|
+
) {
|
|
78
85
|
return;
|
|
79
86
|
}
|
|
80
87
|
|
|
@@ -109,7 +109,14 @@ export function createRegisterResource(
|
|
|
109
109
|
): (resource: ResourceDefinition) => void {
|
|
110
110
|
return (resource: ResourceDefinition): void => {
|
|
111
111
|
const scopes = resource.scopes ?? [];
|
|
112
|
-
if (
|
|
112
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
if (
|
|
117
|
+
allowedScopes.size > 0
|
|
118
|
+
&& !scopes.every((s: MCPScope) => allowedScopes.has(s))
|
|
119
|
+
) {
|
|
113
120
|
return;
|
|
114
121
|
}
|
|
115
122
|
|
|
@@ -137,7 +144,14 @@ export function createRegisterResourceTemplate(
|
|
|
137
144
|
): (resource: ResourceTemplateDefinition) => void {
|
|
138
145
|
return (resource: ResourceTemplateDefinition): void => {
|
|
139
146
|
const scopes = resource.scopes ?? [];
|
|
140
|
-
if (
|
|
147
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if (
|
|
152
|
+
allowedScopes.size > 0
|
|
153
|
+
&& !scopes.every((s: MCPScope) => allowedScopes.has(s))
|
|
154
|
+
) {
|
|
141
155
|
return;
|
|
142
156
|
}
|
|
143
157
|
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
createRegisterResource,
|
|
12
12
|
createRegisterResourceTemplate,
|
|
13
13
|
} from "./resources.js";
|
|
14
|
-
import { MCPScope
|
|
14
|
+
import { MCPScope } from "./scopes.js";
|
|
15
15
|
import { createRegisterTool } from "./tools.js";
|
|
16
16
|
import { tool$accountsAssignCountries } from "./tools/accountsAssignCountries.js";
|
|
17
17
|
import { tool$accountsCreate } from "./tools/accountsCreate.js";
|
|
@@ -157,7 +157,7 @@ export function createMCPServer(deps: {
|
|
|
157
157
|
}) {
|
|
158
158
|
const server = new McpServer({
|
|
159
159
|
name: "Moov",
|
|
160
|
-
version: "0.10.
|
|
160
|
+
version: "0.10.9",
|
|
161
161
|
});
|
|
162
162
|
|
|
163
163
|
const client = new MoovCore({
|
|
@@ -167,7 +167,7 @@ export function createMCPServer(deps: {
|
|
|
167
167
|
serverIdx: deps.serverIdx,
|
|
168
168
|
});
|
|
169
169
|
|
|
170
|
-
const scopes = new Set(deps.scopes
|
|
170
|
+
const scopes = new Set(deps.scopes);
|
|
171
171
|
|
|
172
172
|
const allowedTools = deps.allowedTools && new Set(deps.allowedTools);
|
|
173
173
|
const tool = createRegisterTool(
|
package/src/mcp-server/tools.ts
CHANGED
|
@@ -102,12 +102,15 @@ export function createRegisterTool(
|
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
const
|
|
106
|
-
if (allowedScopes.size > 0 &&
|
|
105
|
+
const scopes = tool.scopes ?? [];
|
|
106
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
if (
|
|
110
|
+
if (
|
|
111
|
+
allowedScopes.size > 0
|
|
112
|
+
&& !scopes.every((s: MCPScope) => allowedScopes.has(s))
|
|
113
|
+
) {
|
|
111
114
|
return;
|
|
112
115
|
}
|
|
113
116
|
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
Amount,
|
|
11
|
+
Amount$inboundSchema,
|
|
12
|
+
Amount$Outbound,
|
|
13
|
+
Amount$outboundSchema,
|
|
14
|
+
} from "./amount.js";
|
|
15
|
+
import {
|
|
16
|
+
Cancellation,
|
|
17
|
+
Cancellation$inboundSchema,
|
|
18
|
+
Cancellation$Outbound,
|
|
19
|
+
Cancellation$outboundSchema,
|
|
20
|
+
} from "./cancellation.js";
|
|
21
|
+
import {
|
|
22
|
+
CardAcquiringDispute,
|
|
23
|
+
CardAcquiringDispute$inboundSchema,
|
|
24
|
+
CardAcquiringDispute$Outbound,
|
|
25
|
+
CardAcquiringDispute$outboundSchema,
|
|
26
|
+
} from "./cardacquiringdispute.js";
|
|
27
|
+
import {
|
|
28
|
+
CardAcquiringRefund,
|
|
29
|
+
CardAcquiringRefund$inboundSchema,
|
|
30
|
+
CardAcquiringRefund$Outbound,
|
|
31
|
+
CardAcquiringRefund$outboundSchema,
|
|
32
|
+
} from "./cardacquiringrefund.js";
|
|
33
|
+
import {
|
|
34
|
+
FacilitatorFee,
|
|
35
|
+
FacilitatorFee$inboundSchema,
|
|
36
|
+
FacilitatorFee$Outbound,
|
|
37
|
+
FacilitatorFee$outboundSchema,
|
|
38
|
+
} from "./facilitatorfee.js";
|
|
39
|
+
import {
|
|
40
|
+
MoovFeeDetails,
|
|
41
|
+
MoovFeeDetails$inboundSchema,
|
|
42
|
+
MoovFeeDetails$Outbound,
|
|
43
|
+
MoovFeeDetails$outboundSchema,
|
|
44
|
+
} from "./moovfeedetails.js";
|
|
45
|
+
import {
|
|
46
|
+
TransferDestination,
|
|
47
|
+
TransferDestination$inboundSchema,
|
|
48
|
+
TransferDestination$Outbound,
|
|
49
|
+
TransferDestination$outboundSchema,
|
|
50
|
+
} from "./transferdestination.js";
|
|
51
|
+
import {
|
|
52
|
+
TransferFailureReason,
|
|
53
|
+
TransferFailureReason$inboundSchema,
|
|
54
|
+
TransferFailureReason$outboundSchema,
|
|
55
|
+
} from "./transferfailurereason.js";
|
|
56
|
+
import {
|
|
57
|
+
TransferSource,
|
|
58
|
+
TransferSource$inboundSchema,
|
|
59
|
+
TransferSource$Outbound,
|
|
60
|
+
TransferSource$outboundSchema,
|
|
61
|
+
} from "./transfersource.js";
|
|
62
|
+
import {
|
|
63
|
+
TransferStatus,
|
|
64
|
+
TransferStatus$inboundSchema,
|
|
65
|
+
TransferStatus$outboundSchema,
|
|
66
|
+
} from "./transferstatus.js";
|
|
67
|
+
|
|
68
|
+
export type CreatedTransfer = {
|
|
69
|
+
transferID: string;
|
|
70
|
+
createdOn: Date;
|
|
71
|
+
source?: TransferSource | undefined;
|
|
72
|
+
destination?: TransferDestination | undefined;
|
|
73
|
+
completedOn?: Date | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Status of a transfer.
|
|
76
|
+
*/
|
|
77
|
+
status?: TransferStatus | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Reason for a transfer's failure.
|
|
80
|
+
*/
|
|
81
|
+
failureReason?: TransferFailureReason | undefined;
|
|
82
|
+
amount?: Amount | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* An optional description of the transfer that is used on receipts and for your own internal use.
|
|
85
|
+
*/
|
|
86
|
+
description?: string | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
|
|
89
|
+
*/
|
|
90
|
+
metadata?: { [k: string]: string } | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Total or markup fee.
|
|
93
|
+
*/
|
|
94
|
+
facilitatorFee?: FacilitatorFee | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* Fees charged to your platform account for transfers.
|
|
97
|
+
*/
|
|
98
|
+
moovFee?: number | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* Same as `moovFee`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.
|
|
101
|
+
*/
|
|
102
|
+
moovFeeDecimal?: string | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* Processing and pass-through costs that add up to the moovFee.
|
|
105
|
+
*/
|
|
106
|
+
moovFeeDetails?: MoovFeeDetails | undefined;
|
|
107
|
+
groupID?: string | undefined;
|
|
108
|
+
cancellations?: Array<Cancellation> | undefined;
|
|
109
|
+
refundedAmount?: Amount | undefined;
|
|
110
|
+
refunds?: Array<CardAcquiringRefund> | undefined;
|
|
111
|
+
disputedAmount?: Amount | undefined;
|
|
112
|
+
disputes?: Array<CardAcquiringDispute> | undefined;
|
|
113
|
+
sweepID?: string | undefined;
|
|
114
|
+
scheduleID?: string | undefined;
|
|
115
|
+
occurrenceID?: string | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
|
|
118
|
+
*/
|
|
119
|
+
salesTaxAmount?: Amount | undefined;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/** @internal */
|
|
123
|
+
export const CreatedTransfer$inboundSchema: z.ZodType<
|
|
124
|
+
CreatedTransfer,
|
|
125
|
+
z.ZodTypeDef,
|
|
126
|
+
unknown
|
|
127
|
+
> = z.object({
|
|
128
|
+
transferID: z.string(),
|
|
129
|
+
createdOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
130
|
+
source: TransferSource$inboundSchema.optional(),
|
|
131
|
+
destination: TransferDestination$inboundSchema.optional(),
|
|
132
|
+
completedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
133
|
+
.optional(),
|
|
134
|
+
status: TransferStatus$inboundSchema.optional(),
|
|
135
|
+
failureReason: TransferFailureReason$inboundSchema.optional(),
|
|
136
|
+
amount: Amount$inboundSchema.optional(),
|
|
137
|
+
description: z.string().optional(),
|
|
138
|
+
metadata: z.record(z.string()).optional(),
|
|
139
|
+
facilitatorFee: FacilitatorFee$inboundSchema.optional(),
|
|
140
|
+
moovFee: z.number().int().optional(),
|
|
141
|
+
moovFeeDecimal: z.string().optional(),
|
|
142
|
+
moovFeeDetails: MoovFeeDetails$inboundSchema.optional(),
|
|
143
|
+
groupID: z.string().optional(),
|
|
144
|
+
cancellations: z.array(Cancellation$inboundSchema).optional(),
|
|
145
|
+
refundedAmount: Amount$inboundSchema.optional(),
|
|
146
|
+
refunds: z.array(CardAcquiringRefund$inboundSchema).optional(),
|
|
147
|
+
disputedAmount: Amount$inboundSchema.optional(),
|
|
148
|
+
disputes: z.array(CardAcquiringDispute$inboundSchema).optional(),
|
|
149
|
+
sweepID: z.string().optional(),
|
|
150
|
+
scheduleID: z.string().optional(),
|
|
151
|
+
occurrenceID: z.string().optional(),
|
|
152
|
+
salesTaxAmount: Amount$inboundSchema.optional(),
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
/** @internal */
|
|
156
|
+
export type CreatedTransfer$Outbound = {
|
|
157
|
+
transferID: string;
|
|
158
|
+
createdOn: string;
|
|
159
|
+
source?: TransferSource$Outbound | undefined;
|
|
160
|
+
destination?: TransferDestination$Outbound | undefined;
|
|
161
|
+
completedOn?: string | undefined;
|
|
162
|
+
status?: string | undefined;
|
|
163
|
+
failureReason?: string | undefined;
|
|
164
|
+
amount?: Amount$Outbound | undefined;
|
|
165
|
+
description?: string | undefined;
|
|
166
|
+
metadata?: { [k: string]: string } | undefined;
|
|
167
|
+
facilitatorFee?: FacilitatorFee$Outbound | undefined;
|
|
168
|
+
moovFee?: number | undefined;
|
|
169
|
+
moovFeeDecimal?: string | undefined;
|
|
170
|
+
moovFeeDetails?: MoovFeeDetails$Outbound | undefined;
|
|
171
|
+
groupID?: string | undefined;
|
|
172
|
+
cancellations?: Array<Cancellation$Outbound> | undefined;
|
|
173
|
+
refundedAmount?: Amount$Outbound | undefined;
|
|
174
|
+
refunds?: Array<CardAcquiringRefund$Outbound> | undefined;
|
|
175
|
+
disputedAmount?: Amount$Outbound | undefined;
|
|
176
|
+
disputes?: Array<CardAcquiringDispute$Outbound> | undefined;
|
|
177
|
+
sweepID?: string | undefined;
|
|
178
|
+
scheduleID?: string | undefined;
|
|
179
|
+
occurrenceID?: string | undefined;
|
|
180
|
+
salesTaxAmount?: Amount$Outbound | undefined;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
/** @internal */
|
|
184
|
+
export const CreatedTransfer$outboundSchema: z.ZodType<
|
|
185
|
+
CreatedTransfer$Outbound,
|
|
186
|
+
z.ZodTypeDef,
|
|
187
|
+
CreatedTransfer
|
|
188
|
+
> = z.object({
|
|
189
|
+
transferID: z.string(),
|
|
190
|
+
createdOn: z.date().transform(v => v.toISOString()),
|
|
191
|
+
source: TransferSource$outboundSchema.optional(),
|
|
192
|
+
destination: TransferDestination$outboundSchema.optional(),
|
|
193
|
+
completedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
194
|
+
status: TransferStatus$outboundSchema.optional(),
|
|
195
|
+
failureReason: TransferFailureReason$outboundSchema.optional(),
|
|
196
|
+
amount: Amount$outboundSchema.optional(),
|
|
197
|
+
description: z.string().optional(),
|
|
198
|
+
metadata: z.record(z.string()).optional(),
|
|
199
|
+
facilitatorFee: FacilitatorFee$outboundSchema.optional(),
|
|
200
|
+
moovFee: z.number().int().optional(),
|
|
201
|
+
moovFeeDecimal: z.string().optional(),
|
|
202
|
+
moovFeeDetails: MoovFeeDetails$outboundSchema.optional(),
|
|
203
|
+
groupID: z.string().optional(),
|
|
204
|
+
cancellations: z.array(Cancellation$outboundSchema).optional(),
|
|
205
|
+
refundedAmount: Amount$outboundSchema.optional(),
|
|
206
|
+
refunds: z.array(CardAcquiringRefund$outboundSchema).optional(),
|
|
207
|
+
disputedAmount: Amount$outboundSchema.optional(),
|
|
208
|
+
disputes: z.array(CardAcquiringDispute$outboundSchema).optional(),
|
|
209
|
+
sweepID: z.string().optional(),
|
|
210
|
+
scheduleID: z.string().optional(),
|
|
211
|
+
occurrenceID: z.string().optional(),
|
|
212
|
+
salesTaxAmount: Amount$outboundSchema.optional(),
|
|
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 CreatedTransfer$ {
|
|
220
|
+
/** @deprecated use `CreatedTransfer$inboundSchema` instead. */
|
|
221
|
+
export const inboundSchema = CreatedTransfer$inboundSchema;
|
|
222
|
+
/** @deprecated use `CreatedTransfer$outboundSchema` instead. */
|
|
223
|
+
export const outboundSchema = CreatedTransfer$outboundSchema;
|
|
224
|
+
/** @deprecated use `CreatedTransfer$Outbound` instead. */
|
|
225
|
+
export type Outbound = CreatedTransfer$Outbound;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export function createdTransferToJSON(
|
|
229
|
+
createdTransfer: CreatedTransfer,
|
|
230
|
+
): string {
|
|
231
|
+
return JSON.stringify(CreatedTransfer$outboundSchema.parse(createdTransfer));
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export function createdTransferFromJSON(
|
|
235
|
+
jsonString: string,
|
|
236
|
+
): SafeParseResult<CreatedTransfer, SDKValidationError> {
|
|
237
|
+
return safeParse(
|
|
238
|
+
jsonString,
|
|
239
|
+
(x) => CreatedTransfer$inboundSchema.parse(JSON.parse(x)),
|
|
240
|
+
`Failed to parse 'CreatedTransfer' from JSON`,
|
|
241
|
+
);
|
|
242
|
+
}
|
|
@@ -114,6 +114,7 @@ export * from "./createauthorizedusererror.js";
|
|
|
114
114
|
export * from "./createauthorizeduserupdate.js";
|
|
115
115
|
export * from "./createbusinesserror.js";
|
|
116
116
|
export * from "./createbusinessprofile.js";
|
|
117
|
+
export * from "./createdtransfer.js";
|
|
117
118
|
export * from "./createevidencefilemultipart.js";
|
|
118
119
|
export * from "./createevidencetext.js";
|
|
119
120
|
export * from "./createfeeplanagreement.js";
|
|
@@ -224,6 +225,7 @@ export * from "./microdepositstatus.js";
|
|
|
224
225
|
export * from "./minimumcommitment.js";
|
|
225
226
|
export * from "./mode.js";
|
|
226
227
|
export * from "./monthlyplatformfee.js";
|
|
228
|
+
export * from "./moovfee.js";
|
|
227
229
|
export * from "./moovfeedetails.js";
|
|
228
230
|
export * from "./moovwalletpaymentmethod.js";
|
|
229
231
|
export * from "./mxauthorizationcode.js";
|
|
@@ -331,7 +333,7 @@ export * from "./transferaccount.js";
|
|
|
331
333
|
export * from "./transferdestination.js";
|
|
332
334
|
export * from "./transferfailurereason.js";
|
|
333
335
|
export * from "./transferoptions.js";
|
|
334
|
-
export * from "./
|
|
336
|
+
export * from "./transferparty.js";
|
|
335
337
|
export * from "./transfersource.js";
|
|
336
338
|
export * from "./transferstatus.js";
|
|
337
339
|
export * from "./transferwaitfor.js";
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
AmountDecimal,
|
|
11
|
+
AmountDecimal$inboundSchema,
|
|
12
|
+
AmountDecimal$Outbound,
|
|
13
|
+
AmountDecimal$outboundSchema,
|
|
14
|
+
} from "./amountdecimal.js";
|
|
15
|
+
import {
|
|
16
|
+
TransferParty,
|
|
17
|
+
TransferParty$inboundSchema,
|
|
18
|
+
TransferParty$outboundSchema,
|
|
19
|
+
} from "./transferparty.js";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Moov fee charged to an account involved in a transfer.
|
|
23
|
+
*/
|
|
24
|
+
export type MoovFee = {
|
|
25
|
+
/**
|
|
26
|
+
* ID of the account that fees were charged to.
|
|
27
|
+
*/
|
|
28
|
+
accountID: string;
|
|
29
|
+
/**
|
|
30
|
+
* Indicates whether the account charged is the source, destination, or partner account.
|
|
31
|
+
*/
|
|
32
|
+
transferParty: TransferParty;
|
|
33
|
+
/**
|
|
34
|
+
* The total amount of fees charged to the account.
|
|
35
|
+
*/
|
|
36
|
+
totalAmount: AmountDecimal;
|
|
37
|
+
/**
|
|
38
|
+
* List of fee IDs that sum to the totalAmount.
|
|
39
|
+
*/
|
|
40
|
+
feeIDs: Array<string>;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const MoovFee$inboundSchema: z.ZodType<MoovFee, z.ZodTypeDef, unknown> =
|
|
45
|
+
z.object({
|
|
46
|
+
accountID: z.string(),
|
|
47
|
+
transferParty: TransferParty$inboundSchema,
|
|
48
|
+
totalAmount: AmountDecimal$inboundSchema,
|
|
49
|
+
feeIDs: z.array(z.string()),
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type MoovFee$Outbound = {
|
|
54
|
+
accountID: string;
|
|
55
|
+
transferParty: string;
|
|
56
|
+
totalAmount: AmountDecimal$Outbound;
|
|
57
|
+
feeIDs: Array<string>;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const MoovFee$outboundSchema: z.ZodType<
|
|
62
|
+
MoovFee$Outbound,
|
|
63
|
+
z.ZodTypeDef,
|
|
64
|
+
MoovFee
|
|
65
|
+
> = z.object({
|
|
66
|
+
accountID: z.string(),
|
|
67
|
+
transferParty: TransferParty$outboundSchema,
|
|
68
|
+
totalAmount: AmountDecimal$outboundSchema,
|
|
69
|
+
feeIDs: z.array(z.string()),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
+
*/
|
|
76
|
+
export namespace MoovFee$ {
|
|
77
|
+
/** @deprecated use `MoovFee$inboundSchema` instead. */
|
|
78
|
+
export const inboundSchema = MoovFee$inboundSchema;
|
|
79
|
+
/** @deprecated use `MoovFee$outboundSchema` instead. */
|
|
80
|
+
export const outboundSchema = MoovFee$outboundSchema;
|
|
81
|
+
/** @deprecated use `MoovFee$Outbound` instead. */
|
|
82
|
+
export type Outbound = MoovFee$Outbound;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function moovFeeToJSON(moovFee: MoovFee): string {
|
|
86
|
+
return JSON.stringify(MoovFee$outboundSchema.parse(moovFee));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function moovFeeFromJSON(
|
|
90
|
+
jsonString: string,
|
|
91
|
+
): SafeParseResult<MoovFee, SDKValidationError> {
|
|
92
|
+
return safeParse(
|
|
93
|
+
jsonString,
|
|
94
|
+
(x) => MoovFee$inboundSchema.parse(JSON.parse(x)),
|
|
95
|
+
`Failed to parse 'MoovFee' from JSON`,
|
|
96
|
+
);
|
|
97
|
+
}
|
|
@@ -73,7 +73,7 @@ export type ReceiptResponse = {
|
|
|
73
73
|
/**
|
|
74
74
|
* The list of receipts that have been sent.
|
|
75
75
|
*/
|
|
76
|
-
sentFor
|
|
76
|
+
sentFor?: Array<SentReceipt> | undefined;
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
/** @internal */
|
|
@@ -92,7 +92,7 @@ export const ReceiptResponse$inboundSchema: z.ZodType<
|
|
|
92
92
|
forTransferID: z.string().optional(),
|
|
93
93
|
forScheduleID: z.string().optional(),
|
|
94
94
|
forOccurrenceID: z.string().optional(),
|
|
95
|
-
sentFor: z.array(SentReceipt$inboundSchema),
|
|
95
|
+
sentFor: z.array(SentReceipt$inboundSchema).optional(),
|
|
96
96
|
});
|
|
97
97
|
|
|
98
98
|
/** @internal */
|
|
@@ -106,7 +106,7 @@ export type ReceiptResponse$Outbound = {
|
|
|
106
106
|
forTransferID?: string | undefined;
|
|
107
107
|
forScheduleID?: string | undefined;
|
|
108
108
|
forOccurrenceID?: string | undefined;
|
|
109
|
-
sentFor
|
|
109
|
+
sentFor?: Array<SentReceipt$Outbound> | undefined;
|
|
110
110
|
};
|
|
111
111
|
|
|
112
112
|
/** @internal */
|
|
@@ -124,7 +124,7 @@ export const ReceiptResponse$outboundSchema: z.ZodType<
|
|
|
124
124
|
forTransferID: z.string().optional(),
|
|
125
125
|
forScheduleID: z.string().optional(),
|
|
126
126
|
forOccurrenceID: z.string().optional(),
|
|
127
|
-
sentFor: z.array(SentReceipt$outboundSchema),
|
|
127
|
+
sentFor: z.array(SentReceipt$outboundSchema).optional(),
|
|
128
128
|
});
|
|
129
129
|
|
|
130
130
|
/**
|
|
@@ -36,6 +36,12 @@ import {
|
|
|
36
36
|
FacilitatorFee$Outbound,
|
|
37
37
|
FacilitatorFee$outboundSchema,
|
|
38
38
|
} from "./facilitatorfee.js";
|
|
39
|
+
import {
|
|
40
|
+
MoovFee,
|
|
41
|
+
MoovFee$inboundSchema,
|
|
42
|
+
MoovFee$Outbound,
|
|
43
|
+
MoovFee$outboundSchema,
|
|
44
|
+
} from "./moovfee.js";
|
|
39
45
|
import {
|
|
40
46
|
MoovFeeDetails,
|
|
41
47
|
MoovFeeDetails$inboundSchema,
|
|
@@ -107,6 +113,10 @@ export type Transfer = {
|
|
|
107
113
|
* Processing and pass-through costs that add up to the moovFee.
|
|
108
114
|
*/
|
|
109
115
|
moovFeeDetails?: MoovFeeDetails | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* Fees charged to accounts involved in the transfer.
|
|
118
|
+
*/
|
|
119
|
+
moovFees?: Array<MoovFee> | undefined;
|
|
110
120
|
groupID?: string | undefined;
|
|
111
121
|
cancellations?: Array<Cancellation> | undefined;
|
|
112
122
|
refundedAmount?: Amount | undefined;
|
|
@@ -143,6 +153,7 @@ export const Transfer$inboundSchema: z.ZodType<
|
|
|
143
153
|
moovFee: z.number().int().optional(),
|
|
144
154
|
moovFeeDecimal: z.string().optional(),
|
|
145
155
|
moovFeeDetails: MoovFeeDetails$inboundSchema.optional(),
|
|
156
|
+
moovFees: z.array(MoovFee$inboundSchema).optional(),
|
|
146
157
|
groupID: z.string().optional(),
|
|
147
158
|
cancellations: z.array(Cancellation$inboundSchema).optional(),
|
|
148
159
|
refundedAmount: Amount$inboundSchema.optional(),
|
|
@@ -171,6 +182,7 @@ export type Transfer$Outbound = {
|
|
|
171
182
|
moovFee?: number | undefined;
|
|
172
183
|
moovFeeDecimal?: string | undefined;
|
|
173
184
|
moovFeeDetails?: MoovFeeDetails$Outbound | undefined;
|
|
185
|
+
moovFees?: Array<MoovFee$Outbound> | undefined;
|
|
174
186
|
groupID?: string | undefined;
|
|
175
187
|
cancellations?: Array<Cancellation$Outbound> | undefined;
|
|
176
188
|
refundedAmount?: Amount$Outbound | undefined;
|
|
@@ -203,6 +215,7 @@ export const Transfer$outboundSchema: z.ZodType<
|
|
|
203
215
|
moovFee: z.number().int().optional(),
|
|
204
216
|
moovFeeDecimal: z.string().optional(),
|
|
205
217
|
moovFeeDetails: MoovFeeDetails$outboundSchema.optional(),
|
|
218
|
+
moovFees: z.array(MoovFee$outboundSchema).optional(),
|
|
206
219
|
groupID: z.string().optional(),
|
|
207
220
|
cancellations: z.array(Cancellation$outboundSchema).optional(),
|
|
208
221
|
refundedAmount: Amount$outboundSchema.optional(),
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Indicates whether an account was the source or destination of a transfer.
|
|
10
|
+
*/
|
|
11
|
+
export const TransferParty = {
|
|
12
|
+
Source: "source",
|
|
13
|
+
Destination: "destination",
|
|
14
|
+
Partner: "partner",
|
|
15
|
+
} as const;
|
|
16
|
+
/**
|
|
17
|
+
* Indicates whether an account was the source or destination of a transfer.
|
|
18
|
+
*/
|
|
19
|
+
export type TransferParty = ClosedEnum<typeof TransferParty>;
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const TransferParty$inboundSchema: z.ZodNativeEnum<
|
|
23
|
+
typeof TransferParty
|
|
24
|
+
> = z.nativeEnum(TransferParty);
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const TransferParty$outboundSchema: z.ZodNativeEnum<
|
|
28
|
+
typeof TransferParty
|
|
29
|
+
> = TransferParty$inboundSchema;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
34
|
+
*/
|
|
35
|
+
export namespace TransferParty$ {
|
|
36
|
+
/** @deprecated use `TransferParty$inboundSchema` instead. */
|
|
37
|
+
export const inboundSchema = TransferParty$inboundSchema;
|
|
38
|
+
/** @deprecated use `TransferParty$outboundSchema` instead. */
|
|
39
|
+
export const outboundSchema = TransferParty$outboundSchema;
|
|
40
|
+
}
|