@moovio/sdk 0.12.6 → 0.14.0
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 +48 -35
- package/bin/mcp-server.js +1183 -68
- package/bin/mcp-server.js.map +58 -18
- package/docs/sdks/underwriting/README.md +95 -0
- package/funcs/transfersList.js +1 -0
- package/funcs/transfersList.js.map +1 -1
- package/funcs/underwritingSave.d.ts +20 -0
- package/funcs/underwritingSave.d.ts.map +1 -0
- package/funcs/underwritingSave.js +145 -0
- package/funcs/underwritingSave.js.map +1 -0
- 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 +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/underwritingSave.d.ts +8 -0
- package/mcp-server/tools/underwritingSave.d.ts.map +1 -0
- package/mcp-server/tools/underwritingSave.js +67 -0
- package/mcp-server/tools/underwritingSave.js.map +1 -0
- package/models/components/businesspresence.d.ts +40 -0
- package/models/components/businesspresence.d.ts.map +1 -0
- package/models/components/businesspresence.js +64 -0
- package/models/components/businesspresence.js.map +1 -0
- package/models/components/cardacceptancemethods.d.ts +45 -0
- package/models/components/cardacceptancemethods.d.ts.map +1 -0
- package/models/components/cardacceptancemethods.js +73 -0
- package/models/components/cardacceptancemethods.js.map +1 -0
- package/models/components/cardacceptancemethodserror.d.ts +33 -0
- package/models/components/cardacceptancemethodserror.d.ts.map +1 -0
- package/models/components/cardacceptancemethodserror.js +73 -0
- package/models/components/cardacceptancemethodserror.js.map +1 -0
- package/models/components/collectfunds.d.ts +33 -0
- package/models/components/collectfunds.d.ts.map +1 -0
- package/models/components/collectfunds.js +73 -0
- package/models/components/collectfunds.js.map +1 -0
- package/models/components/collectfundsach.d.ts +30 -0
- package/models/components/collectfundsach.d.ts.map +1 -0
- package/models/components/collectfundsach.js +70 -0
- package/models/components/collectfundsach.js.map +1 -0
- package/models/components/collectfundsacherror.d.ts +30 -0
- package/models/components/collectfundsacherror.d.ts.map +1 -0
- package/models/components/collectfundsacherror.js +70 -0
- package/models/components/collectfundsacherror.js.map +1 -0
- package/models/components/collectfundscardpayments.d.ts +44 -0
- package/models/components/collectfundscardpayments.d.ts.map +1 -0
- package/models/components/collectfundscardpayments.js +81 -0
- package/models/components/collectfundscardpayments.js.map +1 -0
- package/models/components/collectfundscardpaymentserror.d.ts +40 -0
- package/models/components/collectfundscardpaymentserror.d.ts.map +1 -0
- package/models/components/collectfundscardpaymentserror.js +80 -0
- package/models/components/collectfundscardpaymentserror.js.map +1 -0
- package/models/components/collectfundserror.d.ts +33 -0
- package/models/components/collectfundserror.d.ts.map +1 -0
- package/models/components/collectfundserror.js +73 -0
- package/models/components/collectfundserror.js.map +1 -0
- package/models/components/createdtransfer.d.ts +5 -0
- package/models/components/createdtransfer.d.ts.map +1 -1
- package/models/components/createdtransfer.js +2 -0
- package/models/components/createdtransfer.js.map +1 -1
- package/models/components/createtransfer.d.ts +5 -0
- package/models/components/createtransfer.d.ts.map +1 -1
- package/models/components/createtransfer.js +2 -0
- package/models/components/createtransfer.js.map +1 -1
- package/models/components/estimatedactivity.d.ts +37 -0
- package/models/components/estimatedactivity.d.ts.map +1 -0
- package/models/components/estimatedactivity.js +74 -0
- package/models/components/estimatedactivity.js.map +1 -0
- package/models/components/estimatedactivityerror.d.ts +33 -0
- package/models/components/estimatedactivityerror.d.ts.map +1 -0
- package/models/components/estimatedactivityerror.js +73 -0
- package/models/components/estimatedactivityerror.js.map +1 -0
- package/models/components/fulfillment.d.ts +33 -0
- package/models/components/fulfillment.d.ts.map +1 -0
- package/models/components/fulfillment.js +73 -0
- package/models/components/fulfillment.js.map +1 -0
- package/models/components/fulfillmenterror.d.ts +31 -0
- package/models/components/fulfillmenterror.d.ts.map +1 -0
- package/models/components/fulfillmenterror.js +71 -0
- package/models/components/fulfillmenterror.js.map +1 -0
- package/models/components/fulfillmentmethod.d.ts +49 -0
- package/models/components/fulfillmentmethod.d.ts.map +1 -0
- package/models/components/fulfillmentmethod.js +67 -0
- package/models/components/fulfillmentmethod.js.map +1 -0
- package/models/components/fulfillmenttimeframe.d.ts +46 -0
- package/models/components/fulfillmenttimeframe.d.ts.map +1 -0
- package/models/components/fulfillmenttimeframe.js +66 -0
- package/models/components/fulfillmenttimeframe.js.map +1 -0
- package/models/components/geographicreach.d.ts +31 -0
- package/models/components/geographicreach.d.ts.map +1 -0
- package/models/components/geographicreach.js +61 -0
- package/models/components/geographicreach.js.map +1 -0
- package/models/components/index.d.ts +36 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +36 -0
- package/models/components/index.js.map +1 -1
- package/models/components/moneytransfer.d.ts +33 -0
- package/models/components/moneytransfer.d.ts.map +1 -0
- package/models/components/moneytransfer.js +73 -0
- package/models/components/moneytransfer.js.map +1 -0
- package/models/components/moneytransfererror.d.ts +33 -0
- package/models/components/moneytransfererror.d.ts.map +1 -0
- package/models/components/moneytransfererror.js +73 -0
- package/models/components/moneytransfererror.js.map +1 -0
- package/models/components/moneytransferpullfromcard.d.ts +30 -0
- package/models/components/moneytransferpullfromcard.d.ts.map +1 -0
- package/models/components/moneytransferpullfromcard.js +70 -0
- package/models/components/moneytransferpullfromcard.js.map +1 -0
- package/models/components/moneytransferpullfromcarderror.d.ts +30 -0
- package/models/components/moneytransferpullfromcarderror.d.ts.map +1 -0
- package/models/components/moneytransferpullfromcarderror.js +70 -0
- package/models/components/moneytransferpullfromcarderror.js.map +1 -0
- package/models/components/moneytransferpushtocard.d.ts +30 -0
- package/models/components/moneytransferpushtocard.d.ts.map +1 -0
- package/models/components/moneytransferpushtocard.js +70 -0
- package/models/components/moneytransferpushtocard.js.map +1 -0
- package/models/components/moneytransferpushtocarderror.d.ts +30 -0
- package/models/components/moneytransferpushtocarderror.d.ts.map +1 -0
- package/models/components/moneytransferpushtocarderror.js +70 -0
- package/models/components/moneytransferpushtocarderror.js.map +1 -0
- package/models/components/monthlyvolumerange.d.ts +52 -0
- package/models/components/monthlyvolumerange.d.ts.map +1 -0
- package/models/components/monthlyvolumerange.js +69 -0
- package/models/components/monthlyvolumerange.js.map +1 -0
- package/models/components/pendinglitigation.d.ts +52 -0
- package/models/components/pendinglitigation.d.ts.map +1 -0
- package/models/components/pendinglitigation.js +68 -0
- package/models/components/pendinglitigation.js.map +1 -0
- package/models/components/refundpolicy.d.ts +49 -0
- package/models/components/refundpolicy.d.ts.map +1 -0
- package/models/components/refundpolicy.js +67 -0
- package/models/components/refundpolicy.js.map +1 -0
- package/models/components/sendfunds.d.ts +36 -0
- package/models/components/sendfunds.d.ts.map +1 -0
- package/models/components/sendfunds.js +76 -0
- package/models/components/sendfunds.js.map +1 -0
- package/models/components/sendfundsach.d.ts +30 -0
- package/models/components/sendfundsach.d.ts.map +1 -0
- package/models/components/sendfundsach.js +70 -0
- package/models/components/sendfundsach.js.map +1 -0
- package/models/components/sendfundsacherror.d.ts +30 -0
- package/models/components/sendfundsacherror.d.ts.map +1 -0
- package/models/components/sendfundsacherror.js +70 -0
- package/models/components/sendfundsacherror.js.map +1 -0
- package/models/components/sendfundserror.d.ts +36 -0
- package/models/components/sendfundserror.d.ts.map +1 -0
- package/models/components/sendfundserror.js +76 -0
- package/models/components/sendfundserror.js.map +1 -0
- package/models/components/sendfundspushtocard.d.ts +30 -0
- package/models/components/sendfundspushtocard.d.ts.map +1 -0
- package/models/components/sendfundspushtocard.js +70 -0
- package/models/components/sendfundspushtocard.js.map +1 -0
- package/models/components/sendfundspushtocarderror.d.ts +30 -0
- package/models/components/sendfundspushtocarderror.d.ts.map +1 -0
- package/models/components/sendfundspushtocarderror.js +70 -0
- package/models/components/sendfundspushtocarderror.js.map +1 -0
- package/models/components/sendfundsrtp.d.ts +30 -0
- package/models/components/sendfundsrtp.d.ts.map +1 -0
- package/models/components/sendfundsrtp.js +70 -0
- package/models/components/sendfundsrtp.js.map +1 -0
- package/models/components/sendfundsrtperror.d.ts +30 -0
- package/models/components/sendfundsrtperror.d.ts.map +1 -0
- package/models/components/sendfundsrtperror.js +70 -0
- package/models/components/sendfundsrtperror.js.map +1 -0
- package/models/components/transfer.d.ts +5 -0
- package/models/components/transfer.d.ts.map +1 -1
- package/models/components/transfer.js +2 -0
- package/models/components/transfer.js.map +1 -1
- package/models/components/underwriting.d.ts +35 -14
- package/models/components/underwriting.d.ts.map +1 -1
- package/models/components/underwriting.js +36 -14
- package/models/components/underwriting.js.map +1 -1
- package/models/components/upsertunderwriting.d.ts +48 -0
- package/models/components/upsertunderwriting.d.ts.map +1 -0
- package/models/components/upsertunderwriting.js +89 -0
- package/models/components/upsertunderwriting.js.map +1 -0
- package/models/components/volumesharebycustomertype.d.ts +33 -0
- package/models/components/volumesharebycustomertype.d.ts.map +1 -0
- package/models/components/volumesharebycustomertype.js +73 -0
- package/models/components/volumesharebycustomertype.js.map +1 -0
- package/models/components/volumesharebycustomertypeerror.d.ts +33 -0
- package/models/components/volumesharebycustomertypeerror.d.ts.map +1 -0
- package/models/components/volumesharebycustomertypeerror.js +73 -0
- package/models/components/volumesharebycustomertypeerror.js.map +1 -0
- package/models/components/webhookdatatransfercreated.d.ts +2 -0
- package/models/components/webhookdatatransfercreated.d.ts.map +1 -1
- package/models/components/webhookdatatransfercreated.js +2 -0
- package/models/components/webhookdatatransfercreated.js.map +1 -1
- package/models/components/webhookdatatransferupdated.d.ts +2 -0
- package/models/components/webhookdatatransferupdated.d.ts.map +1 -1
- package/models/components/webhookdatatransferupdated.js +2 -0
- package/models/components/webhookdatatransferupdated.js.map +1 -1
- 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/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/errors/upsertunderwritingerror.d.ts +73 -0
- package/models/errors/upsertunderwritingerror.d.ts.map +1 -0
- package/models/errors/upsertunderwritingerror.js +150 -0
- package/models/errors/upsertunderwritingerror.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listtransfers.d.ts +5 -0
- package/models/operations/listtransfers.d.ts.map +1 -1
- package/models/operations/listtransfers.js +2 -0
- package/models/operations/listtransfers.js.map +1 -1
- package/models/operations/saveunderwriting.d.ts +101 -0
- package/models/operations/saveunderwriting.d.ts.map +1 -0
- package/models/operations/saveunderwriting.js +155 -0
- package/models/operations/saveunderwriting.js.map +1 -0
- package/package.json +1 -1
- package/sdk/underwriting.d.ts +9 -0
- package/sdk/underwriting.d.ts.map +1 -1
- package/sdk/underwriting.js +12 -0
- package/sdk/underwriting.js.map +1 -1
- package/src/funcs/transfersList.ts +1 -0
- package/src/funcs/underwritingSave.ts +207 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/underwritingSave.ts +40 -0
- package/src/models/components/businesspresence.ts +37 -0
- package/src/models/components/cardacceptancemethods.ts +86 -0
- package/src/models/components/cardacceptancemethodserror.ts +74 -0
- package/src/models/components/collectfunds.ts +78 -0
- package/src/models/components/collectfundsach.ts +70 -0
- package/src/models/components/collectfundsacherror.ts +72 -0
- package/src/models/components/collectfundscardpayments.ts +108 -0
- package/src/models/components/collectfundscardpaymentserror.ts +102 -0
- package/src/models/components/collectfundserror.ts +82 -0
- package/src/models/components/createdtransfer.ts +7 -0
- package/src/models/components/createtransfer.ts +7 -0
- package/src/models/components/estimatedactivity.ts +82 -0
- package/src/models/components/estimatedactivityerror.ts +74 -0
- package/src/models/components/fulfillment.ts +76 -0
- package/src/models/components/fulfillmenterror.ts +70 -0
- package/src/models/components/fulfillmentmethod.ts +40 -0
- package/src/models/components/fulfillmenttimeframe.ts +39 -0
- package/src/models/components/geographicreach.ts +34 -0
- package/src/models/components/index.ts +36 -0
- package/src/models/components/moneytransfer.ts +78 -0
- package/src/models/components/moneytransfererror.ts +82 -0
- package/src/models/components/moneytransferpullfromcard.ts +72 -0
- package/src/models/components/moneytransferpullfromcarderror.ts +74 -0
- package/src/models/components/moneytransferpushtocard.ts +72 -0
- package/src/models/components/moneytransferpushtocarderror.ts +74 -0
- package/src/models/components/monthlyvolumerange.ts +45 -0
- package/src/models/components/pendinglitigation.ts +42 -0
- package/src/models/components/refundpolicy.ts +38 -0
- package/src/models/components/sendfunds.ts +88 -0
- package/src/models/components/sendfundsach.ts +68 -0
- package/src/models/components/sendfundsacherror.ts +72 -0
- package/src/models/components/sendfundserror.ts +88 -0
- package/src/models/components/sendfundspushtocard.ts +72 -0
- package/src/models/components/sendfundspushtocarderror.ts +72 -0
- package/src/models/components/sendfundsrtp.ts +68 -0
- package/src/models/components/sendfundsrtperror.ts +72 -0
- package/src/models/components/transfer.ts +7 -0
- package/src/models/components/underwriting.ts +96 -28
- package/src/models/components/upsertunderwriting.ts +130 -0
- package/src/models/components/volumesharebycustomertype.ts +74 -0
- package/src/models/components/volumesharebycustomertypeerror.ts +76 -0
- package/src/models/components/webhookdatatransfercreated.ts +4 -0
- package/src/models/components/webhookdatatransferupdated.ts +4 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/transfer.ts +12 -0
- package/src/models/errors/upsertunderwritingerror.ts +185 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listtransfers.ts +7 -0
- package/src/models/operations/saveunderwriting.ts +231 -0
- package/src/sdk/underwriting.ts +20 -0
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
EstimatedActivity,
|
|
11
|
+
EstimatedActivity$inboundSchema,
|
|
12
|
+
EstimatedActivity$Outbound,
|
|
13
|
+
EstimatedActivity$outboundSchema,
|
|
14
|
+
} from "./estimatedactivity.js";
|
|
15
|
+
|
|
16
|
+
export type SendFundsAch = {
|
|
17
|
+
estimatedActivity?: EstimatedActivity | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const SendFundsAch$inboundSchema: z.ZodType<
|
|
22
|
+
SendFundsAch,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
estimatedActivity: EstimatedActivity$inboundSchema.optional(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type SendFundsAch$Outbound = {
|
|
31
|
+
estimatedActivity?: EstimatedActivity$Outbound | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const SendFundsAch$outboundSchema: z.ZodType<
|
|
36
|
+
SendFundsAch$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
SendFundsAch
|
|
39
|
+
> = z.object({
|
|
40
|
+
estimatedActivity: EstimatedActivity$outboundSchema.optional(),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
export namespace SendFundsAch$ {
|
|
48
|
+
/** @deprecated use `SendFundsAch$inboundSchema` instead. */
|
|
49
|
+
export const inboundSchema = SendFundsAch$inboundSchema;
|
|
50
|
+
/** @deprecated use `SendFundsAch$outboundSchema` instead. */
|
|
51
|
+
export const outboundSchema = SendFundsAch$outboundSchema;
|
|
52
|
+
/** @deprecated use `SendFundsAch$Outbound` instead. */
|
|
53
|
+
export type Outbound = SendFundsAch$Outbound;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function sendFundsAchToJSON(sendFundsAch: SendFundsAch): string {
|
|
57
|
+
return JSON.stringify(SendFundsAch$outboundSchema.parse(sendFundsAch));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function sendFundsAchFromJSON(
|
|
61
|
+
jsonString: string,
|
|
62
|
+
): SafeParseResult<SendFundsAch, SDKValidationError> {
|
|
63
|
+
return safeParse(
|
|
64
|
+
jsonString,
|
|
65
|
+
(x) => SendFundsAch$inboundSchema.parse(JSON.parse(x)),
|
|
66
|
+
`Failed to parse 'SendFundsAch' from JSON`,
|
|
67
|
+
);
|
|
68
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
EstimatedActivityError,
|
|
11
|
+
EstimatedActivityError$inboundSchema,
|
|
12
|
+
EstimatedActivityError$Outbound,
|
|
13
|
+
EstimatedActivityError$outboundSchema,
|
|
14
|
+
} from "./estimatedactivityerror.js";
|
|
15
|
+
|
|
16
|
+
export type SendFundsAchError = {
|
|
17
|
+
estimatedActivity?: EstimatedActivityError | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const SendFundsAchError$inboundSchema: z.ZodType<
|
|
22
|
+
SendFundsAchError,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
estimatedActivity: EstimatedActivityError$inboundSchema.optional(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type SendFundsAchError$Outbound = {
|
|
31
|
+
estimatedActivity?: EstimatedActivityError$Outbound | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const SendFundsAchError$outboundSchema: z.ZodType<
|
|
36
|
+
SendFundsAchError$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
SendFundsAchError
|
|
39
|
+
> = z.object({
|
|
40
|
+
estimatedActivity: EstimatedActivityError$outboundSchema.optional(),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
export namespace SendFundsAchError$ {
|
|
48
|
+
/** @deprecated use `SendFundsAchError$inboundSchema` instead. */
|
|
49
|
+
export const inboundSchema = SendFundsAchError$inboundSchema;
|
|
50
|
+
/** @deprecated use `SendFundsAchError$outboundSchema` instead. */
|
|
51
|
+
export const outboundSchema = SendFundsAchError$outboundSchema;
|
|
52
|
+
/** @deprecated use `SendFundsAchError$Outbound` instead. */
|
|
53
|
+
export type Outbound = SendFundsAchError$Outbound;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function sendFundsAchErrorToJSON(
|
|
57
|
+
sendFundsAchError: SendFundsAchError,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
SendFundsAchError$outboundSchema.parse(sendFundsAchError),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function sendFundsAchErrorFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<SendFundsAchError, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => SendFundsAchError$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'SendFundsAchError' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
SendFundsAchError,
|
|
11
|
+
SendFundsAchError$inboundSchema,
|
|
12
|
+
SendFundsAchError$Outbound,
|
|
13
|
+
SendFundsAchError$outboundSchema,
|
|
14
|
+
} from "./sendfundsacherror.js";
|
|
15
|
+
import {
|
|
16
|
+
SendFundsPushToCardError,
|
|
17
|
+
SendFundsPushToCardError$inboundSchema,
|
|
18
|
+
SendFundsPushToCardError$Outbound,
|
|
19
|
+
SendFundsPushToCardError$outboundSchema,
|
|
20
|
+
} from "./sendfundspushtocarderror.js";
|
|
21
|
+
import {
|
|
22
|
+
SendFundsRtpError,
|
|
23
|
+
SendFundsRtpError$inboundSchema,
|
|
24
|
+
SendFundsRtpError$Outbound,
|
|
25
|
+
SendFundsRtpError$outboundSchema,
|
|
26
|
+
} from "./sendfundsrtperror.js";
|
|
27
|
+
|
|
28
|
+
export type SendFundsError = {
|
|
29
|
+
ach?: SendFundsAchError | undefined;
|
|
30
|
+
pushToCard?: SendFundsPushToCardError | undefined;
|
|
31
|
+
rtp?: SendFundsRtpError | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const SendFundsError$inboundSchema: z.ZodType<
|
|
36
|
+
SendFundsError,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
unknown
|
|
39
|
+
> = z.object({
|
|
40
|
+
ach: SendFundsAchError$inboundSchema.optional(),
|
|
41
|
+
pushToCard: SendFundsPushToCardError$inboundSchema.optional(),
|
|
42
|
+
rtp: SendFundsRtpError$inboundSchema.optional(),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type SendFundsError$Outbound = {
|
|
47
|
+
ach?: SendFundsAchError$Outbound | undefined;
|
|
48
|
+
pushToCard?: SendFundsPushToCardError$Outbound | undefined;
|
|
49
|
+
rtp?: SendFundsRtpError$Outbound | undefined;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const SendFundsError$outboundSchema: z.ZodType<
|
|
54
|
+
SendFundsError$Outbound,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
SendFundsError
|
|
57
|
+
> = z.object({
|
|
58
|
+
ach: SendFundsAchError$outboundSchema.optional(),
|
|
59
|
+
pushToCard: SendFundsPushToCardError$outboundSchema.optional(),
|
|
60
|
+
rtp: SendFundsRtpError$outboundSchema.optional(),
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
+
*/
|
|
67
|
+
export namespace SendFundsError$ {
|
|
68
|
+
/** @deprecated use `SendFundsError$inboundSchema` instead. */
|
|
69
|
+
export const inboundSchema = SendFundsError$inboundSchema;
|
|
70
|
+
/** @deprecated use `SendFundsError$outboundSchema` instead. */
|
|
71
|
+
export const outboundSchema = SendFundsError$outboundSchema;
|
|
72
|
+
/** @deprecated use `SendFundsError$Outbound` instead. */
|
|
73
|
+
export type Outbound = SendFundsError$Outbound;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function sendFundsErrorToJSON(sendFundsError: SendFundsError): string {
|
|
77
|
+
return JSON.stringify(SendFundsError$outboundSchema.parse(sendFundsError));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function sendFundsErrorFromJSON(
|
|
81
|
+
jsonString: string,
|
|
82
|
+
): SafeParseResult<SendFundsError, SDKValidationError> {
|
|
83
|
+
return safeParse(
|
|
84
|
+
jsonString,
|
|
85
|
+
(x) => SendFundsError$inboundSchema.parse(JSON.parse(x)),
|
|
86
|
+
`Failed to parse 'SendFundsError' from JSON`,
|
|
87
|
+
);
|
|
88
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
EstimatedActivity,
|
|
11
|
+
EstimatedActivity$inboundSchema,
|
|
12
|
+
EstimatedActivity$Outbound,
|
|
13
|
+
EstimatedActivity$outboundSchema,
|
|
14
|
+
} from "./estimatedactivity.js";
|
|
15
|
+
|
|
16
|
+
export type SendFundsPushToCard = {
|
|
17
|
+
estimatedActivity?: EstimatedActivity | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const SendFundsPushToCard$inboundSchema: z.ZodType<
|
|
22
|
+
SendFundsPushToCard,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
estimatedActivity: EstimatedActivity$inboundSchema.optional(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type SendFundsPushToCard$Outbound = {
|
|
31
|
+
estimatedActivity?: EstimatedActivity$Outbound | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const SendFundsPushToCard$outboundSchema: z.ZodType<
|
|
36
|
+
SendFundsPushToCard$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
SendFundsPushToCard
|
|
39
|
+
> = z.object({
|
|
40
|
+
estimatedActivity: EstimatedActivity$outboundSchema.optional(),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
export namespace SendFundsPushToCard$ {
|
|
48
|
+
/** @deprecated use `SendFundsPushToCard$inboundSchema` instead. */
|
|
49
|
+
export const inboundSchema = SendFundsPushToCard$inboundSchema;
|
|
50
|
+
/** @deprecated use `SendFundsPushToCard$outboundSchema` instead. */
|
|
51
|
+
export const outboundSchema = SendFundsPushToCard$outboundSchema;
|
|
52
|
+
/** @deprecated use `SendFundsPushToCard$Outbound` instead. */
|
|
53
|
+
export type Outbound = SendFundsPushToCard$Outbound;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function sendFundsPushToCardToJSON(
|
|
57
|
+
sendFundsPushToCard: SendFundsPushToCard,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
SendFundsPushToCard$outboundSchema.parse(sendFundsPushToCard),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function sendFundsPushToCardFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<SendFundsPushToCard, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => SendFundsPushToCard$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'SendFundsPushToCard' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
EstimatedActivityError,
|
|
11
|
+
EstimatedActivityError$inboundSchema,
|
|
12
|
+
EstimatedActivityError$Outbound,
|
|
13
|
+
EstimatedActivityError$outboundSchema,
|
|
14
|
+
} from "./estimatedactivityerror.js";
|
|
15
|
+
|
|
16
|
+
export type SendFundsPushToCardError = {
|
|
17
|
+
estimatedActivity?: EstimatedActivityError | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const SendFundsPushToCardError$inboundSchema: z.ZodType<
|
|
22
|
+
SendFundsPushToCardError,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
estimatedActivity: EstimatedActivityError$inboundSchema.optional(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type SendFundsPushToCardError$Outbound = {
|
|
31
|
+
estimatedActivity?: EstimatedActivityError$Outbound | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const SendFundsPushToCardError$outboundSchema: z.ZodType<
|
|
36
|
+
SendFundsPushToCardError$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
SendFundsPushToCardError
|
|
39
|
+
> = z.object({
|
|
40
|
+
estimatedActivity: EstimatedActivityError$outboundSchema.optional(),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
export namespace SendFundsPushToCardError$ {
|
|
48
|
+
/** @deprecated use `SendFundsPushToCardError$inboundSchema` instead. */
|
|
49
|
+
export const inboundSchema = SendFundsPushToCardError$inboundSchema;
|
|
50
|
+
/** @deprecated use `SendFundsPushToCardError$outboundSchema` instead. */
|
|
51
|
+
export const outboundSchema = SendFundsPushToCardError$outboundSchema;
|
|
52
|
+
/** @deprecated use `SendFundsPushToCardError$Outbound` instead. */
|
|
53
|
+
export type Outbound = SendFundsPushToCardError$Outbound;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function sendFundsPushToCardErrorToJSON(
|
|
57
|
+
sendFundsPushToCardError: SendFundsPushToCardError,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
SendFundsPushToCardError$outboundSchema.parse(sendFundsPushToCardError),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function sendFundsPushToCardErrorFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<SendFundsPushToCardError, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => SendFundsPushToCardError$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'SendFundsPushToCardError' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
EstimatedActivity,
|
|
11
|
+
EstimatedActivity$inboundSchema,
|
|
12
|
+
EstimatedActivity$Outbound,
|
|
13
|
+
EstimatedActivity$outboundSchema,
|
|
14
|
+
} from "./estimatedactivity.js";
|
|
15
|
+
|
|
16
|
+
export type SendFundsRtp = {
|
|
17
|
+
estimatedActivity?: EstimatedActivity | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const SendFundsRtp$inboundSchema: z.ZodType<
|
|
22
|
+
SendFundsRtp,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
estimatedActivity: EstimatedActivity$inboundSchema.optional(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type SendFundsRtp$Outbound = {
|
|
31
|
+
estimatedActivity?: EstimatedActivity$Outbound | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const SendFundsRtp$outboundSchema: z.ZodType<
|
|
36
|
+
SendFundsRtp$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
SendFundsRtp
|
|
39
|
+
> = z.object({
|
|
40
|
+
estimatedActivity: EstimatedActivity$outboundSchema.optional(),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
export namespace SendFundsRtp$ {
|
|
48
|
+
/** @deprecated use `SendFundsRtp$inboundSchema` instead. */
|
|
49
|
+
export const inboundSchema = SendFundsRtp$inboundSchema;
|
|
50
|
+
/** @deprecated use `SendFundsRtp$outboundSchema` instead. */
|
|
51
|
+
export const outboundSchema = SendFundsRtp$outboundSchema;
|
|
52
|
+
/** @deprecated use `SendFundsRtp$Outbound` instead. */
|
|
53
|
+
export type Outbound = SendFundsRtp$Outbound;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function sendFundsRtpToJSON(sendFundsRtp: SendFundsRtp): string {
|
|
57
|
+
return JSON.stringify(SendFundsRtp$outboundSchema.parse(sendFundsRtp));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function sendFundsRtpFromJSON(
|
|
61
|
+
jsonString: string,
|
|
62
|
+
): SafeParseResult<SendFundsRtp, SDKValidationError> {
|
|
63
|
+
return safeParse(
|
|
64
|
+
jsonString,
|
|
65
|
+
(x) => SendFundsRtp$inboundSchema.parse(JSON.parse(x)),
|
|
66
|
+
`Failed to parse 'SendFundsRtp' from JSON`,
|
|
67
|
+
);
|
|
68
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
EstimatedActivityError,
|
|
11
|
+
EstimatedActivityError$inboundSchema,
|
|
12
|
+
EstimatedActivityError$Outbound,
|
|
13
|
+
EstimatedActivityError$outboundSchema,
|
|
14
|
+
} from "./estimatedactivityerror.js";
|
|
15
|
+
|
|
16
|
+
export type SendFundsRtpError = {
|
|
17
|
+
estimatedActivity?: EstimatedActivityError | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const SendFundsRtpError$inboundSchema: z.ZodType<
|
|
22
|
+
SendFundsRtpError,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
estimatedActivity: EstimatedActivityError$inboundSchema.optional(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type SendFundsRtpError$Outbound = {
|
|
31
|
+
estimatedActivity?: EstimatedActivityError$Outbound | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const SendFundsRtpError$outboundSchema: z.ZodType<
|
|
36
|
+
SendFundsRtpError$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
SendFundsRtpError
|
|
39
|
+
> = z.object({
|
|
40
|
+
estimatedActivity: EstimatedActivityError$outboundSchema.optional(),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
export namespace SendFundsRtpError$ {
|
|
48
|
+
/** @deprecated use `SendFundsRtpError$inboundSchema` instead. */
|
|
49
|
+
export const inboundSchema = SendFundsRtpError$inboundSchema;
|
|
50
|
+
/** @deprecated use `SendFundsRtpError$outboundSchema` instead. */
|
|
51
|
+
export const outboundSchema = SendFundsRtpError$outboundSchema;
|
|
52
|
+
/** @deprecated use `SendFundsRtpError$Outbound` instead. */
|
|
53
|
+
export type Outbound = SendFundsRtpError$Outbound;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function sendFundsRtpErrorToJSON(
|
|
57
|
+
sendFundsRtpError: SendFundsRtpError,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
SendFundsRtpError$outboundSchema.parse(sendFundsRtpError),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function sendFundsRtpErrorFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<SendFundsRtpError, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => SendFundsRtpError$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'SendFundsRtpError' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -131,6 +131,10 @@ export type Transfer = {
|
|
|
131
131
|
* Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
|
|
132
132
|
*/
|
|
133
133
|
salesTaxAmount?: Amount | undefined;
|
|
134
|
+
/**
|
|
135
|
+
* Optional alias from a foreign/external system which can be used to reference this resource.
|
|
136
|
+
*/
|
|
137
|
+
foreignID?: string | undefined;
|
|
134
138
|
};
|
|
135
139
|
|
|
136
140
|
/** @internal */
|
|
@@ -166,6 +170,7 @@ export const Transfer$inboundSchema: z.ZodType<
|
|
|
166
170
|
occurrenceID: z.string().optional(),
|
|
167
171
|
paymentLinkCode: z.string().optional(),
|
|
168
172
|
salesTaxAmount: Amount$inboundSchema.optional(),
|
|
173
|
+
foreignID: z.string().optional(),
|
|
169
174
|
});
|
|
170
175
|
|
|
171
176
|
/** @internal */
|
|
@@ -196,6 +201,7 @@ export type Transfer$Outbound = {
|
|
|
196
201
|
occurrenceID?: string | undefined;
|
|
197
202
|
paymentLinkCode?: string | undefined;
|
|
198
203
|
salesTaxAmount?: Amount$Outbound | undefined;
|
|
204
|
+
foreignID?: string | undefined;
|
|
199
205
|
};
|
|
200
206
|
|
|
201
207
|
/** @internal */
|
|
@@ -230,6 +236,7 @@ export const Transfer$outboundSchema: z.ZodType<
|
|
|
230
236
|
occurrenceID: z.string().optional(),
|
|
231
237
|
paymentLinkCode: z.string().optional(),
|
|
232
238
|
salesTaxAmount: Amount$outboundSchema.optional(),
|
|
239
|
+
foreignID: z.string().optional(),
|
|
233
240
|
});
|
|
234
241
|
|
|
235
242
|
/**
|