@moovio/sdk 0.12.5 → 0.13.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 +1194 -69
- package/bin/mcp-server.js.map +64 -24
- 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/capability.d.ts +1 -1
- package/models/components/capabilityid.d.ts +32 -2
- package/models/components/capabilityid.d.ts.map +1 -1
- package/models/components/capabilityid.js +11 -1
- package/models/components/capabilityid.js.map +1 -1
- 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/webhookdatacapabilityrequested.d.ts +1 -1
- package/models/components/webhookdatacapabilityupdated.d.ts +1 -1
- 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/disablecapability.d.ts +1 -1
- package/models/operations/getcapability.d.ts +1 -1
- 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/__tests__/mockserver/README.md +52 -0
- 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/capability.ts +1 -1
- package/src/models/components/capabilityid.ts +12 -2
- 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/webhookdatacapabilityrequested.ts +1 -1
- package/src/models/components/webhookdatacapabilityupdated.ts +1 -1
- 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/disablecapability.ts +1 -1
- package/src/models/operations/getcapability.ts +1 -1
- 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,70 @@
|
|
|
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
|
+
|
|
10
|
+
export type FulfillmentError = {
|
|
11
|
+
method?: string | undefined;
|
|
12
|
+
timeframe?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const FulfillmentError$inboundSchema: z.ZodType<
|
|
17
|
+
FulfillmentError,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
method: z.string().optional(),
|
|
22
|
+
timeframe: z.string().optional(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type FulfillmentError$Outbound = {
|
|
27
|
+
method?: string | undefined;
|
|
28
|
+
timeframe?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const FulfillmentError$outboundSchema: z.ZodType<
|
|
33
|
+
FulfillmentError$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
FulfillmentError
|
|
36
|
+
> = z.object({
|
|
37
|
+
method: z.string().optional(),
|
|
38
|
+
timeframe: z.string().optional(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
+
*/
|
|
45
|
+
export namespace FulfillmentError$ {
|
|
46
|
+
/** @deprecated use `FulfillmentError$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = FulfillmentError$inboundSchema;
|
|
48
|
+
/** @deprecated use `FulfillmentError$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = FulfillmentError$outboundSchema;
|
|
50
|
+
/** @deprecated use `FulfillmentError$Outbound` instead. */
|
|
51
|
+
export type Outbound = FulfillmentError$Outbound;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function fulfillmentErrorToJSON(
|
|
55
|
+
fulfillmentError: FulfillmentError,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
FulfillmentError$outboundSchema.parse(fulfillmentError),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function fulfillmentErrorFromJSON(
|
|
63
|
+
jsonString: string,
|
|
64
|
+
): SafeParseResult<FulfillmentError, SDKValidationError> {
|
|
65
|
+
return safeParse(
|
|
66
|
+
jsonString,
|
|
67
|
+
(x) => FulfillmentError$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
+
`Failed to parse 'FulfillmentError' from JSON`,
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -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
|
+
export const FulfillmentMethod = {
|
|
9
|
+
BillOrDebtPayment: "bill-or-debt-payment",
|
|
10
|
+
DigitalContent: "digital-content",
|
|
11
|
+
Donation: "donation",
|
|
12
|
+
InPersonService: "in-person-service",
|
|
13
|
+
LocalPickupOrDelivery: "local-pickup-or-delivery",
|
|
14
|
+
Other: "other",
|
|
15
|
+
RemoteService: "remote-service",
|
|
16
|
+
ShippedPhysicalGoods: "shipped-physical-goods",
|
|
17
|
+
SubscriptionOrMembership: "subscription-or-membership",
|
|
18
|
+
} as const;
|
|
19
|
+
export type FulfillmentMethod = ClosedEnum<typeof FulfillmentMethod>;
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const FulfillmentMethod$inboundSchema: z.ZodNativeEnum<
|
|
23
|
+
typeof FulfillmentMethod
|
|
24
|
+
> = z.nativeEnum(FulfillmentMethod);
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const FulfillmentMethod$outboundSchema: z.ZodNativeEnum<
|
|
28
|
+
typeof FulfillmentMethod
|
|
29
|
+
> = FulfillmentMethod$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 FulfillmentMethod$ {
|
|
36
|
+
/** @deprecated use `FulfillmentMethod$inboundSchema` instead. */
|
|
37
|
+
export const inboundSchema = FulfillmentMethod$inboundSchema;
|
|
38
|
+
/** @deprecated use `FulfillmentMethod$outboundSchema` instead. */
|
|
39
|
+
export const outboundSchema = FulfillmentMethod$outboundSchema;
|
|
40
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
export const FulfillmentTimeframe = {
|
|
9
|
+
Immediate: "immediate",
|
|
10
|
+
Other: "other",
|
|
11
|
+
Over30Days: "over-30-days",
|
|
12
|
+
PreOrder: "pre-order",
|
|
13
|
+
RecurringSchedule: "recurring-schedule",
|
|
14
|
+
ScheduledEvent: "scheduled-event",
|
|
15
|
+
Within30Days: "within-30-days",
|
|
16
|
+
Within7Days: "within-7-days",
|
|
17
|
+
} as const;
|
|
18
|
+
export type FulfillmentTimeframe = ClosedEnum<typeof FulfillmentTimeframe>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const FulfillmentTimeframe$inboundSchema: z.ZodNativeEnum<
|
|
22
|
+
typeof FulfillmentTimeframe
|
|
23
|
+
> = z.nativeEnum(FulfillmentTimeframe);
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const FulfillmentTimeframe$outboundSchema: z.ZodNativeEnum<
|
|
27
|
+
typeof FulfillmentTimeframe
|
|
28
|
+
> = FulfillmentTimeframe$inboundSchema;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
33
|
+
*/
|
|
34
|
+
export namespace FulfillmentTimeframe$ {
|
|
35
|
+
/** @deprecated use `FulfillmentTimeframe$inboundSchema` instead. */
|
|
36
|
+
export const inboundSchema = FulfillmentTimeframe$inboundSchema;
|
|
37
|
+
/** @deprecated use `FulfillmentTimeframe$outboundSchema` instead. */
|
|
38
|
+
export const outboundSchema = FulfillmentTimeframe$outboundSchema;
|
|
39
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
export const GeographicReach = {
|
|
9
|
+
InternationalOnly: "international-only",
|
|
10
|
+
UsAndInternational: "us-and-international",
|
|
11
|
+
UsOnly: "us-only",
|
|
12
|
+
} as const;
|
|
13
|
+
export type GeographicReach = ClosedEnum<typeof GeographicReach>;
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const GeographicReach$inboundSchema: z.ZodNativeEnum<
|
|
17
|
+
typeof GeographicReach
|
|
18
|
+
> = z.nativeEnum(GeographicReach);
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const GeographicReach$outboundSchema: z.ZodNativeEnum<
|
|
22
|
+
typeof GeographicReach
|
|
23
|
+
> = GeographicReach$inboundSchema;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
28
|
+
*/
|
|
29
|
+
export namespace GeographicReach$ {
|
|
30
|
+
/** @deprecated use `GeographicReach$inboundSchema` instead. */
|
|
31
|
+
export const inboundSchema = GeographicReach$inboundSchema;
|
|
32
|
+
/** @deprecated use `GeographicReach$outboundSchema` instead. */
|
|
33
|
+
export const outboundSchema = GeographicReach$outboundSchema;
|
|
34
|
+
}
|
|
@@ -66,6 +66,7 @@ export * from "./brandcolor.js";
|
|
|
66
66
|
export * from "./brandcolors.js";
|
|
67
67
|
export * from "./brandcolorvalidationerror.js";
|
|
68
68
|
export * from "./brandproperties.js";
|
|
69
|
+
export * from "./businesspresence.js";
|
|
69
70
|
export * from "./businessprofile.js";
|
|
70
71
|
export * from "./businesstype.js";
|
|
71
72
|
export * from "./calltoaction.js";
|
|
@@ -77,6 +78,8 @@ export * from "./capabilityid.js";
|
|
|
77
78
|
export * from "./capabilityrequirement.js";
|
|
78
79
|
export * from "./capabilitystatus.js";
|
|
79
80
|
export * from "./card.js";
|
|
81
|
+
export * from "./cardacceptancemethods.js";
|
|
82
|
+
export * from "./cardacceptancemethodserror.js";
|
|
80
83
|
export * from "./cardaccountupdater.js";
|
|
81
84
|
export * from "./cardacquiringdispute.js";
|
|
82
85
|
export * from "./cardacquiringmodel.js";
|
|
@@ -100,6 +103,12 @@ export * from "./cardverification.js";
|
|
|
100
103
|
export * from "./cardverificationresult.js";
|
|
101
104
|
export * from "./cardvolumedistribution.js";
|
|
102
105
|
export * from "./cardvolumedistributionerror.js";
|
|
106
|
+
export * from "./collectfunds.js";
|
|
107
|
+
export * from "./collectfundsach.js";
|
|
108
|
+
export * from "./collectfundsacherror.js";
|
|
109
|
+
export * from "./collectfundscardpayments.js";
|
|
110
|
+
export * from "./collectfundscardpaymentserror.js";
|
|
111
|
+
export * from "./collectfundserror.js";
|
|
103
112
|
export * from "./collectionpaymentmethodtype.js";
|
|
104
113
|
export * from "./colorsvalidationerror.js";
|
|
105
114
|
export * from "./completebankaccountverification.js";
|
|
@@ -163,6 +172,8 @@ export * from "./enrichedbusinessresponse.js";
|
|
|
163
172
|
export * from "./enrichedindustries.js";
|
|
164
173
|
export * from "./enrichedindustrycodes.js";
|
|
165
174
|
export * from "./entrymode.js";
|
|
175
|
+
export * from "./estimatedactivity.js";
|
|
176
|
+
export * from "./estimatedactivityerror.js";
|
|
166
177
|
export * from "./evidencetextresponse.js";
|
|
167
178
|
export * from "./evidencetype.js";
|
|
168
179
|
export * from "./evidenceuploadresponse.js";
|
|
@@ -178,8 +189,12 @@ export * from "./filepurpose.js";
|
|
|
178
189
|
export * from "./filestatus.js";
|
|
179
190
|
export * from "./fileuploadrequestmultipart.js";
|
|
180
191
|
export * from "./financialinstitutions.js";
|
|
192
|
+
export * from "./fulfillment.js";
|
|
181
193
|
export * from "./fulfillmentdetails.js";
|
|
182
194
|
export * from "./fulfillmentdetailserror.js";
|
|
195
|
+
export * from "./fulfillmenterror.js";
|
|
196
|
+
export * from "./fulfillmentmethod.js";
|
|
197
|
+
export * from "./fulfillmenttimeframe.js";
|
|
183
198
|
export * from "./fullissuedcard.js";
|
|
184
199
|
export * from "./generatedby.js";
|
|
185
200
|
export * from "./generatedbyaccountid.js";
|
|
@@ -187,6 +202,7 @@ export * from "./generatedbybankaccountid.js";
|
|
|
187
202
|
export * from "./generatedbycardid.js";
|
|
188
203
|
export * from "./generatedbydisputeid.js";
|
|
189
204
|
export * from "./generatedbytransferid.js";
|
|
205
|
+
export * from "./geographicreach.js";
|
|
190
206
|
export * from "./governmentid.js";
|
|
191
207
|
export * from "./governmentiderror.js";
|
|
192
208
|
export * from "./granttype.js";
|
|
@@ -230,7 +246,14 @@ export * from "./manualtermsofserviceupdate.js";
|
|
|
230
246
|
export * from "./microdepositstatus.js";
|
|
231
247
|
export * from "./minimumcommitment.js";
|
|
232
248
|
export * from "./mode.js";
|
|
249
|
+
export * from "./moneytransfer.js";
|
|
250
|
+
export * from "./moneytransfererror.js";
|
|
251
|
+
export * from "./moneytransferpullfromcard.js";
|
|
252
|
+
export * from "./moneytransferpullfromcarderror.js";
|
|
253
|
+
export * from "./moneytransferpushtocard.js";
|
|
254
|
+
export * from "./moneytransferpushtocarderror.js";
|
|
233
255
|
export * from "./monthlyplatformfee.js";
|
|
256
|
+
export * from "./monthlyvolumerange.js";
|
|
234
257
|
export * from "./moovfee.js";
|
|
235
258
|
export * from "./moovfeedetails.js";
|
|
236
259
|
export * from "./moovwalletpaymentmethod.js";
|
|
@@ -271,6 +294,7 @@ export * from "./payoutdetailserror.js";
|
|
|
271
294
|
export * from "./payoutrecipient.js";
|
|
272
295
|
export * from "./payoutrecipienterror.js";
|
|
273
296
|
export * from "./payoutrecipientupdate.js";
|
|
297
|
+
export * from "./pendinglitigation.js";
|
|
274
298
|
export * from "./phonenumber.js";
|
|
275
299
|
export * from "./phonenumbererror.js";
|
|
276
300
|
export * from "./plaidintegration.js";
|
|
@@ -288,6 +312,7 @@ export * from "./receiptresponse.js";
|
|
|
288
312
|
export * from "./recur.js";
|
|
289
313
|
export * from "./refundcarddetails.js";
|
|
290
314
|
export * from "./refundcardstatus.js";
|
|
315
|
+
export * from "./refundpolicy.js";
|
|
291
316
|
export * from "./refundstatus.js";
|
|
292
317
|
export * from "./registerapplepaymerchantdomains.js";
|
|
293
318
|
export * from "./representative.js";
|
|
@@ -315,6 +340,14 @@ export * from "./schedulepaymentmethod.js";
|
|
|
315
340
|
export * from "./scheduleresponse.js";
|
|
316
341
|
export * from "./seccode.js";
|
|
317
342
|
export * from "./security.js";
|
|
343
|
+
export * from "./sendfunds.js";
|
|
344
|
+
export * from "./sendfundsach.js";
|
|
345
|
+
export * from "./sendfundsacherror.js";
|
|
346
|
+
export * from "./sendfundserror.js";
|
|
347
|
+
export * from "./sendfundspushtocard.js";
|
|
348
|
+
export * from "./sendfundspushtocarderror.js";
|
|
349
|
+
export * from "./sendfundsrtp.js";
|
|
350
|
+
export * from "./sendfundsrtperror.js";
|
|
318
351
|
export * from "./sentreceipt.js";
|
|
319
352
|
export * from "./settings.js";
|
|
320
353
|
export * from "./sourcedestinationoptions.js";
|
|
@@ -361,11 +394,14 @@ export * from "./updatepaymentlink.js";
|
|
|
361
394
|
export * from "./updaterepresentative.js";
|
|
362
395
|
export * from "./updateunderwriting.js";
|
|
363
396
|
export * from "./upsertschedule.js";
|
|
397
|
+
export * from "./upsertunderwriting.js";
|
|
364
398
|
export * from "./verification.js";
|
|
365
399
|
export * from "./verificationstatus.js";
|
|
366
400
|
export * from "./verificationstatusdetail.js";
|
|
367
401
|
export * from "./volumebycustomertype.js";
|
|
368
402
|
export * from "./volumebycustomertypeerror.js";
|
|
403
|
+
export * from "./volumesharebycustomertype.js";
|
|
404
|
+
export * from "./volumesharebycustomertypeerror.js";
|
|
369
405
|
export * from "./wallet.js";
|
|
370
406
|
export * from "./walletavailablebalance.js";
|
|
371
407
|
export * from "./wallettransaction.js";
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
MoneyTransferPullFromCard,
|
|
11
|
+
MoneyTransferPullFromCard$inboundSchema,
|
|
12
|
+
MoneyTransferPullFromCard$Outbound,
|
|
13
|
+
MoneyTransferPullFromCard$outboundSchema,
|
|
14
|
+
} from "./moneytransferpullfromcard.js";
|
|
15
|
+
import {
|
|
16
|
+
MoneyTransferPushToCard,
|
|
17
|
+
MoneyTransferPushToCard$inboundSchema,
|
|
18
|
+
MoneyTransferPushToCard$Outbound,
|
|
19
|
+
MoneyTransferPushToCard$outboundSchema,
|
|
20
|
+
} from "./moneytransferpushtocard.js";
|
|
21
|
+
|
|
22
|
+
export type MoneyTransfer = {
|
|
23
|
+
pullFromCard?: MoneyTransferPullFromCard | undefined;
|
|
24
|
+
pushToCard?: MoneyTransferPushToCard | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const MoneyTransfer$inboundSchema: z.ZodType<
|
|
29
|
+
MoneyTransfer,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
pullFromCard: MoneyTransferPullFromCard$inboundSchema.optional(),
|
|
34
|
+
pushToCard: MoneyTransferPushToCard$inboundSchema.optional(),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type MoneyTransfer$Outbound = {
|
|
39
|
+
pullFromCard?: MoneyTransferPullFromCard$Outbound | undefined;
|
|
40
|
+
pushToCard?: MoneyTransferPushToCard$Outbound | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const MoneyTransfer$outboundSchema: z.ZodType<
|
|
45
|
+
MoneyTransfer$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
MoneyTransfer
|
|
48
|
+
> = z.object({
|
|
49
|
+
pullFromCard: MoneyTransferPullFromCard$outboundSchema.optional(),
|
|
50
|
+
pushToCard: MoneyTransferPushToCard$outboundSchema.optional(),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
+
*/
|
|
57
|
+
export namespace MoneyTransfer$ {
|
|
58
|
+
/** @deprecated use `MoneyTransfer$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema = MoneyTransfer$inboundSchema;
|
|
60
|
+
/** @deprecated use `MoneyTransfer$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema = MoneyTransfer$outboundSchema;
|
|
62
|
+
/** @deprecated use `MoneyTransfer$Outbound` instead. */
|
|
63
|
+
export type Outbound = MoneyTransfer$Outbound;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function moneyTransferToJSON(moneyTransfer: MoneyTransfer): string {
|
|
67
|
+
return JSON.stringify(MoneyTransfer$outboundSchema.parse(moneyTransfer));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function moneyTransferFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<MoneyTransfer, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) => MoneyTransfer$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'MoneyTransfer' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
MoneyTransferPullFromCardError,
|
|
11
|
+
MoneyTransferPullFromCardError$inboundSchema,
|
|
12
|
+
MoneyTransferPullFromCardError$Outbound,
|
|
13
|
+
MoneyTransferPullFromCardError$outboundSchema,
|
|
14
|
+
} from "./moneytransferpullfromcarderror.js";
|
|
15
|
+
import {
|
|
16
|
+
MoneyTransferPushToCardError,
|
|
17
|
+
MoneyTransferPushToCardError$inboundSchema,
|
|
18
|
+
MoneyTransferPushToCardError$Outbound,
|
|
19
|
+
MoneyTransferPushToCardError$outboundSchema,
|
|
20
|
+
} from "./moneytransferpushtocarderror.js";
|
|
21
|
+
|
|
22
|
+
export type MoneyTransferError = {
|
|
23
|
+
pullFromCard?: MoneyTransferPullFromCardError | undefined;
|
|
24
|
+
pushToCard?: MoneyTransferPushToCardError | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const MoneyTransferError$inboundSchema: z.ZodType<
|
|
29
|
+
MoneyTransferError,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
pullFromCard: MoneyTransferPullFromCardError$inboundSchema.optional(),
|
|
34
|
+
pushToCard: MoneyTransferPushToCardError$inboundSchema.optional(),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type MoneyTransferError$Outbound = {
|
|
39
|
+
pullFromCard?: MoneyTransferPullFromCardError$Outbound | undefined;
|
|
40
|
+
pushToCard?: MoneyTransferPushToCardError$Outbound | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const MoneyTransferError$outboundSchema: z.ZodType<
|
|
45
|
+
MoneyTransferError$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
MoneyTransferError
|
|
48
|
+
> = z.object({
|
|
49
|
+
pullFromCard: MoneyTransferPullFromCardError$outboundSchema.optional(),
|
|
50
|
+
pushToCard: MoneyTransferPushToCardError$outboundSchema.optional(),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
+
*/
|
|
57
|
+
export namespace MoneyTransferError$ {
|
|
58
|
+
/** @deprecated use `MoneyTransferError$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema = MoneyTransferError$inboundSchema;
|
|
60
|
+
/** @deprecated use `MoneyTransferError$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema = MoneyTransferError$outboundSchema;
|
|
62
|
+
/** @deprecated use `MoneyTransferError$Outbound` instead. */
|
|
63
|
+
export type Outbound = MoneyTransferError$Outbound;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function moneyTransferErrorToJSON(
|
|
67
|
+
moneyTransferError: MoneyTransferError,
|
|
68
|
+
): string {
|
|
69
|
+
return JSON.stringify(
|
|
70
|
+
MoneyTransferError$outboundSchema.parse(moneyTransferError),
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function moneyTransferErrorFromJSON(
|
|
75
|
+
jsonString: string,
|
|
76
|
+
): SafeParseResult<MoneyTransferError, SDKValidationError> {
|
|
77
|
+
return safeParse(
|
|
78
|
+
jsonString,
|
|
79
|
+
(x) => MoneyTransferError$inboundSchema.parse(JSON.parse(x)),
|
|
80
|
+
`Failed to parse 'MoneyTransferError' from JSON`,
|
|
81
|
+
);
|
|
82
|
+
}
|
|
@@ -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 MoneyTransferPullFromCard = {
|
|
17
|
+
estimatedActivity?: EstimatedActivity | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const MoneyTransferPullFromCard$inboundSchema: z.ZodType<
|
|
22
|
+
MoneyTransferPullFromCard,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
estimatedActivity: EstimatedActivity$inboundSchema.optional(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type MoneyTransferPullFromCard$Outbound = {
|
|
31
|
+
estimatedActivity?: EstimatedActivity$Outbound | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const MoneyTransferPullFromCard$outboundSchema: z.ZodType<
|
|
36
|
+
MoneyTransferPullFromCard$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
MoneyTransferPullFromCard
|
|
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 MoneyTransferPullFromCard$ {
|
|
48
|
+
/** @deprecated use `MoneyTransferPullFromCard$inboundSchema` instead. */
|
|
49
|
+
export const inboundSchema = MoneyTransferPullFromCard$inboundSchema;
|
|
50
|
+
/** @deprecated use `MoneyTransferPullFromCard$outboundSchema` instead. */
|
|
51
|
+
export const outboundSchema = MoneyTransferPullFromCard$outboundSchema;
|
|
52
|
+
/** @deprecated use `MoneyTransferPullFromCard$Outbound` instead. */
|
|
53
|
+
export type Outbound = MoneyTransferPullFromCard$Outbound;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function moneyTransferPullFromCardToJSON(
|
|
57
|
+
moneyTransferPullFromCard: MoneyTransferPullFromCard,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
MoneyTransferPullFromCard$outboundSchema.parse(moneyTransferPullFromCard),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function moneyTransferPullFromCardFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<MoneyTransferPullFromCard, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => MoneyTransferPullFromCard$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'MoneyTransferPullFromCard' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 MoneyTransferPullFromCardError = {
|
|
17
|
+
estimatedActivity?: EstimatedActivityError | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const MoneyTransferPullFromCardError$inboundSchema: z.ZodType<
|
|
22
|
+
MoneyTransferPullFromCardError,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
estimatedActivity: EstimatedActivityError$inboundSchema.optional(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type MoneyTransferPullFromCardError$Outbound = {
|
|
31
|
+
estimatedActivity?: EstimatedActivityError$Outbound | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const MoneyTransferPullFromCardError$outboundSchema: z.ZodType<
|
|
36
|
+
MoneyTransferPullFromCardError$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
MoneyTransferPullFromCardError
|
|
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 MoneyTransferPullFromCardError$ {
|
|
48
|
+
/** @deprecated use `MoneyTransferPullFromCardError$inboundSchema` instead. */
|
|
49
|
+
export const inboundSchema = MoneyTransferPullFromCardError$inboundSchema;
|
|
50
|
+
/** @deprecated use `MoneyTransferPullFromCardError$outboundSchema` instead. */
|
|
51
|
+
export const outboundSchema = MoneyTransferPullFromCardError$outboundSchema;
|
|
52
|
+
/** @deprecated use `MoneyTransferPullFromCardError$Outbound` instead. */
|
|
53
|
+
export type Outbound = MoneyTransferPullFromCardError$Outbound;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function moneyTransferPullFromCardErrorToJSON(
|
|
57
|
+
moneyTransferPullFromCardError: MoneyTransferPullFromCardError,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
MoneyTransferPullFromCardError$outboundSchema.parse(
|
|
61
|
+
moneyTransferPullFromCardError,
|
|
62
|
+
),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function moneyTransferPullFromCardErrorFromJSON(
|
|
67
|
+
jsonString: string,
|
|
68
|
+
): SafeParseResult<MoneyTransferPullFromCardError, SDKValidationError> {
|
|
69
|
+
return safeParse(
|
|
70
|
+
jsonString,
|
|
71
|
+
(x) => MoneyTransferPullFromCardError$inboundSchema.parse(JSON.parse(x)),
|
|
72
|
+
`Failed to parse 'MoneyTransferPullFromCardError' from JSON`,
|
|
73
|
+
);
|
|
74
|
+
}
|
|
@@ -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 MoneyTransferPushToCard = {
|
|
17
|
+
estimatedActivity?: EstimatedActivity | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const MoneyTransferPushToCard$inboundSchema: z.ZodType<
|
|
22
|
+
MoneyTransferPushToCard,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
estimatedActivity: EstimatedActivity$inboundSchema.optional(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type MoneyTransferPushToCard$Outbound = {
|
|
31
|
+
estimatedActivity?: EstimatedActivity$Outbound | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const MoneyTransferPushToCard$outboundSchema: z.ZodType<
|
|
36
|
+
MoneyTransferPushToCard$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
MoneyTransferPushToCard
|
|
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 MoneyTransferPushToCard$ {
|
|
48
|
+
/** @deprecated use `MoneyTransferPushToCard$inboundSchema` instead. */
|
|
49
|
+
export const inboundSchema = MoneyTransferPushToCard$inboundSchema;
|
|
50
|
+
/** @deprecated use `MoneyTransferPushToCard$outboundSchema` instead. */
|
|
51
|
+
export const outboundSchema = MoneyTransferPushToCard$outboundSchema;
|
|
52
|
+
/** @deprecated use `MoneyTransferPushToCard$Outbound` instead. */
|
|
53
|
+
export type Outbound = MoneyTransferPushToCard$Outbound;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function moneyTransferPushToCardToJSON(
|
|
57
|
+
moneyTransferPushToCard: MoneyTransferPushToCard,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
MoneyTransferPushToCard$outboundSchema.parse(moneyTransferPushToCard),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function moneyTransferPushToCardFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<MoneyTransferPushToCard, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => MoneyTransferPushToCard$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'MoneyTransferPushToCard' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|