@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,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 CollectFundsAchError = {
|
|
17
|
+
estimatedActivity?: EstimatedActivityError | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const CollectFundsAchError$inboundSchema: z.ZodType<
|
|
22
|
+
CollectFundsAchError,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
estimatedActivity: EstimatedActivityError$inboundSchema.optional(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type CollectFundsAchError$Outbound = {
|
|
31
|
+
estimatedActivity?: EstimatedActivityError$Outbound | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const CollectFundsAchError$outboundSchema: z.ZodType<
|
|
36
|
+
CollectFundsAchError$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
CollectFundsAchError
|
|
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 CollectFundsAchError$ {
|
|
48
|
+
/** @deprecated use `CollectFundsAchError$inboundSchema` instead. */
|
|
49
|
+
export const inboundSchema = CollectFundsAchError$inboundSchema;
|
|
50
|
+
/** @deprecated use `CollectFundsAchError$outboundSchema` instead. */
|
|
51
|
+
export const outboundSchema = CollectFundsAchError$outboundSchema;
|
|
52
|
+
/** @deprecated use `CollectFundsAchError$Outbound` instead. */
|
|
53
|
+
export type Outbound = CollectFundsAchError$Outbound;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function collectFundsAchErrorToJSON(
|
|
57
|
+
collectFundsAchError: CollectFundsAchError,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
CollectFundsAchError$outboundSchema.parse(collectFundsAchError),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function collectFundsAchErrorFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<CollectFundsAchError, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => CollectFundsAchError$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'CollectFundsAchError' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
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
|
+
CardAcceptanceMethods,
|
|
11
|
+
CardAcceptanceMethods$inboundSchema,
|
|
12
|
+
CardAcceptanceMethods$Outbound,
|
|
13
|
+
CardAcceptanceMethods$outboundSchema,
|
|
14
|
+
} from "./cardacceptancemethods.js";
|
|
15
|
+
import {
|
|
16
|
+
EstimatedActivity,
|
|
17
|
+
EstimatedActivity$inboundSchema,
|
|
18
|
+
EstimatedActivity$Outbound,
|
|
19
|
+
EstimatedActivity$outboundSchema,
|
|
20
|
+
} from "./estimatedactivity.js";
|
|
21
|
+
import {
|
|
22
|
+
Fulfillment,
|
|
23
|
+
Fulfillment$inboundSchema,
|
|
24
|
+
Fulfillment$Outbound,
|
|
25
|
+
Fulfillment$outboundSchema,
|
|
26
|
+
} from "./fulfillment.js";
|
|
27
|
+
import {
|
|
28
|
+
RefundPolicy,
|
|
29
|
+
RefundPolicy$inboundSchema,
|
|
30
|
+
RefundPolicy$outboundSchema,
|
|
31
|
+
} from "./refundpolicy.js";
|
|
32
|
+
|
|
33
|
+
export type CollectFundsCardPayments = {
|
|
34
|
+
/**
|
|
35
|
+
* Describes the distribution of card transactions by payment method.
|
|
36
|
+
*/
|
|
37
|
+
cardAcceptanceMethods?: CardAcceptanceMethods | undefined;
|
|
38
|
+
currentlyAcceptsCards?: boolean | undefined;
|
|
39
|
+
estimatedActivity?: EstimatedActivity | undefined;
|
|
40
|
+
fulfillment?: Fulfillment | undefined;
|
|
41
|
+
refundPolicy?: RefundPolicy | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const CollectFundsCardPayments$inboundSchema: z.ZodType<
|
|
46
|
+
CollectFundsCardPayments,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
unknown
|
|
49
|
+
> = z.object({
|
|
50
|
+
cardAcceptanceMethods: CardAcceptanceMethods$inboundSchema.optional(),
|
|
51
|
+
currentlyAcceptsCards: z.boolean().optional(),
|
|
52
|
+
estimatedActivity: EstimatedActivity$inboundSchema.optional(),
|
|
53
|
+
fulfillment: Fulfillment$inboundSchema.optional(),
|
|
54
|
+
refundPolicy: RefundPolicy$inboundSchema.optional(),
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export type CollectFundsCardPayments$Outbound = {
|
|
59
|
+
cardAcceptanceMethods?: CardAcceptanceMethods$Outbound | undefined;
|
|
60
|
+
currentlyAcceptsCards?: boolean | undefined;
|
|
61
|
+
estimatedActivity?: EstimatedActivity$Outbound | undefined;
|
|
62
|
+
fulfillment?: Fulfillment$Outbound | undefined;
|
|
63
|
+
refundPolicy?: string | undefined;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const CollectFundsCardPayments$outboundSchema: z.ZodType<
|
|
68
|
+
CollectFundsCardPayments$Outbound,
|
|
69
|
+
z.ZodTypeDef,
|
|
70
|
+
CollectFundsCardPayments
|
|
71
|
+
> = z.object({
|
|
72
|
+
cardAcceptanceMethods: CardAcceptanceMethods$outboundSchema.optional(),
|
|
73
|
+
currentlyAcceptsCards: z.boolean().optional(),
|
|
74
|
+
estimatedActivity: EstimatedActivity$outboundSchema.optional(),
|
|
75
|
+
fulfillment: Fulfillment$outboundSchema.optional(),
|
|
76
|
+
refundPolicy: RefundPolicy$outboundSchema.optional(),
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
82
|
+
*/
|
|
83
|
+
export namespace CollectFundsCardPayments$ {
|
|
84
|
+
/** @deprecated use `CollectFundsCardPayments$inboundSchema` instead. */
|
|
85
|
+
export const inboundSchema = CollectFundsCardPayments$inboundSchema;
|
|
86
|
+
/** @deprecated use `CollectFundsCardPayments$outboundSchema` instead. */
|
|
87
|
+
export const outboundSchema = CollectFundsCardPayments$outboundSchema;
|
|
88
|
+
/** @deprecated use `CollectFundsCardPayments$Outbound` instead. */
|
|
89
|
+
export type Outbound = CollectFundsCardPayments$Outbound;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function collectFundsCardPaymentsToJSON(
|
|
93
|
+
collectFundsCardPayments: CollectFundsCardPayments,
|
|
94
|
+
): string {
|
|
95
|
+
return JSON.stringify(
|
|
96
|
+
CollectFundsCardPayments$outboundSchema.parse(collectFundsCardPayments),
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function collectFundsCardPaymentsFromJSON(
|
|
101
|
+
jsonString: string,
|
|
102
|
+
): SafeParseResult<CollectFundsCardPayments, SDKValidationError> {
|
|
103
|
+
return safeParse(
|
|
104
|
+
jsonString,
|
|
105
|
+
(x) => CollectFundsCardPayments$inboundSchema.parse(JSON.parse(x)),
|
|
106
|
+
`Failed to parse 'CollectFundsCardPayments' from JSON`,
|
|
107
|
+
);
|
|
108
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
CardAcceptanceMethodsError,
|
|
11
|
+
CardAcceptanceMethodsError$inboundSchema,
|
|
12
|
+
CardAcceptanceMethodsError$Outbound,
|
|
13
|
+
CardAcceptanceMethodsError$outboundSchema,
|
|
14
|
+
} from "./cardacceptancemethodserror.js";
|
|
15
|
+
import {
|
|
16
|
+
EstimatedActivityError,
|
|
17
|
+
EstimatedActivityError$inboundSchema,
|
|
18
|
+
EstimatedActivityError$Outbound,
|
|
19
|
+
EstimatedActivityError$outboundSchema,
|
|
20
|
+
} from "./estimatedactivityerror.js";
|
|
21
|
+
import {
|
|
22
|
+
FulfillmentError,
|
|
23
|
+
FulfillmentError$inboundSchema,
|
|
24
|
+
FulfillmentError$Outbound,
|
|
25
|
+
FulfillmentError$outboundSchema,
|
|
26
|
+
} from "./fulfillmenterror.js";
|
|
27
|
+
|
|
28
|
+
export type CollectFundsCardPaymentsError = {
|
|
29
|
+
cardAcceptanceMethods?: CardAcceptanceMethodsError | undefined;
|
|
30
|
+
currentlyAcceptsCards?: string | undefined;
|
|
31
|
+
estimatedActivity?: EstimatedActivityError | undefined;
|
|
32
|
+
fulfillment?: FulfillmentError | undefined;
|
|
33
|
+
refundPolicy?: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const CollectFundsCardPaymentsError$inboundSchema: z.ZodType<
|
|
38
|
+
CollectFundsCardPaymentsError,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
unknown
|
|
41
|
+
> = z.object({
|
|
42
|
+
cardAcceptanceMethods: CardAcceptanceMethodsError$inboundSchema.optional(),
|
|
43
|
+
currentlyAcceptsCards: z.string().optional(),
|
|
44
|
+
estimatedActivity: EstimatedActivityError$inboundSchema.optional(),
|
|
45
|
+
fulfillment: FulfillmentError$inboundSchema.optional(),
|
|
46
|
+
refundPolicy: z.string().optional(),
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export type CollectFundsCardPaymentsError$Outbound = {
|
|
51
|
+
cardAcceptanceMethods?: CardAcceptanceMethodsError$Outbound | undefined;
|
|
52
|
+
currentlyAcceptsCards?: string | undefined;
|
|
53
|
+
estimatedActivity?: EstimatedActivityError$Outbound | undefined;
|
|
54
|
+
fulfillment?: FulfillmentError$Outbound | undefined;
|
|
55
|
+
refundPolicy?: string | undefined;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const CollectFundsCardPaymentsError$outboundSchema: z.ZodType<
|
|
60
|
+
CollectFundsCardPaymentsError$Outbound,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
CollectFundsCardPaymentsError
|
|
63
|
+
> = z.object({
|
|
64
|
+
cardAcceptanceMethods: CardAcceptanceMethodsError$outboundSchema.optional(),
|
|
65
|
+
currentlyAcceptsCards: z.string().optional(),
|
|
66
|
+
estimatedActivity: EstimatedActivityError$outboundSchema.optional(),
|
|
67
|
+
fulfillment: FulfillmentError$outboundSchema.optional(),
|
|
68
|
+
refundPolicy: z.string().optional(),
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @internal
|
|
73
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
74
|
+
*/
|
|
75
|
+
export namespace CollectFundsCardPaymentsError$ {
|
|
76
|
+
/** @deprecated use `CollectFundsCardPaymentsError$inboundSchema` instead. */
|
|
77
|
+
export const inboundSchema = CollectFundsCardPaymentsError$inboundSchema;
|
|
78
|
+
/** @deprecated use `CollectFundsCardPaymentsError$outboundSchema` instead. */
|
|
79
|
+
export const outboundSchema = CollectFundsCardPaymentsError$outboundSchema;
|
|
80
|
+
/** @deprecated use `CollectFundsCardPaymentsError$Outbound` instead. */
|
|
81
|
+
export type Outbound = CollectFundsCardPaymentsError$Outbound;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function collectFundsCardPaymentsErrorToJSON(
|
|
85
|
+
collectFundsCardPaymentsError: CollectFundsCardPaymentsError,
|
|
86
|
+
): string {
|
|
87
|
+
return JSON.stringify(
|
|
88
|
+
CollectFundsCardPaymentsError$outboundSchema.parse(
|
|
89
|
+
collectFundsCardPaymentsError,
|
|
90
|
+
),
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function collectFundsCardPaymentsErrorFromJSON(
|
|
95
|
+
jsonString: string,
|
|
96
|
+
): SafeParseResult<CollectFundsCardPaymentsError, SDKValidationError> {
|
|
97
|
+
return safeParse(
|
|
98
|
+
jsonString,
|
|
99
|
+
(x) => CollectFundsCardPaymentsError$inboundSchema.parse(JSON.parse(x)),
|
|
100
|
+
`Failed to parse 'CollectFundsCardPaymentsError' from JSON`,
|
|
101
|
+
);
|
|
102
|
+
}
|
|
@@ -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
|
+
CollectFundsAchError,
|
|
11
|
+
CollectFundsAchError$inboundSchema,
|
|
12
|
+
CollectFundsAchError$Outbound,
|
|
13
|
+
CollectFundsAchError$outboundSchema,
|
|
14
|
+
} from "./collectfundsacherror.js";
|
|
15
|
+
import {
|
|
16
|
+
CollectFundsCardPaymentsError,
|
|
17
|
+
CollectFundsCardPaymentsError$inboundSchema,
|
|
18
|
+
CollectFundsCardPaymentsError$Outbound,
|
|
19
|
+
CollectFundsCardPaymentsError$outboundSchema,
|
|
20
|
+
} from "./collectfundscardpaymentserror.js";
|
|
21
|
+
|
|
22
|
+
export type CollectFundsError = {
|
|
23
|
+
ach?: CollectFundsAchError | undefined;
|
|
24
|
+
cardPayments?: CollectFundsCardPaymentsError | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const CollectFundsError$inboundSchema: z.ZodType<
|
|
29
|
+
CollectFundsError,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
ach: CollectFundsAchError$inboundSchema.optional(),
|
|
34
|
+
cardPayments: CollectFundsCardPaymentsError$inboundSchema.optional(),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type CollectFundsError$Outbound = {
|
|
39
|
+
ach?: CollectFundsAchError$Outbound | undefined;
|
|
40
|
+
cardPayments?: CollectFundsCardPaymentsError$Outbound | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const CollectFundsError$outboundSchema: z.ZodType<
|
|
45
|
+
CollectFundsError$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
CollectFundsError
|
|
48
|
+
> = z.object({
|
|
49
|
+
ach: CollectFundsAchError$outboundSchema.optional(),
|
|
50
|
+
cardPayments: CollectFundsCardPaymentsError$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 CollectFundsError$ {
|
|
58
|
+
/** @deprecated use `CollectFundsError$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema = CollectFundsError$inboundSchema;
|
|
60
|
+
/** @deprecated use `CollectFundsError$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema = CollectFundsError$outboundSchema;
|
|
62
|
+
/** @deprecated use `CollectFundsError$Outbound` instead. */
|
|
63
|
+
export type Outbound = CollectFundsError$Outbound;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function collectFundsErrorToJSON(
|
|
67
|
+
collectFundsError: CollectFundsError,
|
|
68
|
+
): string {
|
|
69
|
+
return JSON.stringify(
|
|
70
|
+
CollectFundsError$outboundSchema.parse(collectFundsError),
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function collectFundsErrorFromJSON(
|
|
75
|
+
jsonString: string,
|
|
76
|
+
): SafeParseResult<CollectFundsError, SDKValidationError> {
|
|
77
|
+
return safeParse(
|
|
78
|
+
jsonString,
|
|
79
|
+
(x) => CollectFundsError$inboundSchema.parse(JSON.parse(x)),
|
|
80
|
+
`Failed to parse 'CollectFundsError' from JSON`,
|
|
81
|
+
);
|
|
82
|
+
}
|
|
@@ -118,6 +118,10 @@ export type CreatedTransfer = {
|
|
|
118
118
|
* Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
|
|
119
119
|
*/
|
|
120
120
|
salesTaxAmount?: Amount | undefined;
|
|
121
|
+
/**
|
|
122
|
+
* Optional alias from a foreign/external system which can be used to reference this resource.
|
|
123
|
+
*/
|
|
124
|
+
foreignID?: string | undefined;
|
|
121
125
|
};
|
|
122
126
|
|
|
123
127
|
/** @internal */
|
|
@@ -152,6 +156,7 @@ export const CreatedTransfer$inboundSchema: z.ZodType<
|
|
|
152
156
|
occurrenceID: z.string().optional(),
|
|
153
157
|
paymentLinkCode: z.string().optional(),
|
|
154
158
|
salesTaxAmount: Amount$inboundSchema.optional(),
|
|
159
|
+
foreignID: z.string().optional(),
|
|
155
160
|
});
|
|
156
161
|
|
|
157
162
|
/** @internal */
|
|
@@ -181,6 +186,7 @@ export type CreatedTransfer$Outbound = {
|
|
|
181
186
|
occurrenceID?: string | undefined;
|
|
182
187
|
paymentLinkCode?: string | undefined;
|
|
183
188
|
salesTaxAmount?: Amount$Outbound | undefined;
|
|
189
|
+
foreignID?: string | undefined;
|
|
184
190
|
};
|
|
185
191
|
|
|
186
192
|
/** @internal */
|
|
@@ -214,6 +220,7 @@ export const CreatedTransfer$outboundSchema: z.ZodType<
|
|
|
214
220
|
occurrenceID: z.string().optional(),
|
|
215
221
|
paymentLinkCode: z.string().optional(),
|
|
216
222
|
salesTaxAmount: Amount$outboundSchema.optional(),
|
|
223
|
+
foreignID: z.string().optional(),
|
|
217
224
|
});
|
|
218
225
|
|
|
219
226
|
/**
|
|
@@ -57,6 +57,10 @@ export type CreateTransfer = {
|
|
|
57
57
|
* Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
|
|
58
58
|
*/
|
|
59
59
|
salesTaxAmount?: Amount | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Optional alias from a foreign/external system which can be used to reference this resource.
|
|
62
|
+
*/
|
|
63
|
+
foreignID?: string | undefined;
|
|
60
64
|
};
|
|
61
65
|
|
|
62
66
|
/** @internal */
|
|
@@ -72,6 +76,7 @@ export const CreateTransfer$inboundSchema: z.ZodType<
|
|
|
72
76
|
description: z.string().optional(),
|
|
73
77
|
metadata: z.record(z.string()).optional(),
|
|
74
78
|
salesTaxAmount: Amount$inboundSchema.optional(),
|
|
79
|
+
foreignID: z.string().optional(),
|
|
75
80
|
});
|
|
76
81
|
|
|
77
82
|
/** @internal */
|
|
@@ -83,6 +88,7 @@ export type CreateTransfer$Outbound = {
|
|
|
83
88
|
description?: string | undefined;
|
|
84
89
|
metadata?: { [k: string]: string } | undefined;
|
|
85
90
|
salesTaxAmount?: Amount$Outbound | undefined;
|
|
91
|
+
foreignID?: string | undefined;
|
|
86
92
|
};
|
|
87
93
|
|
|
88
94
|
/** @internal */
|
|
@@ -98,6 +104,7 @@ export const CreateTransfer$outboundSchema: z.ZodType<
|
|
|
98
104
|
description: z.string().optional(),
|
|
99
105
|
metadata: z.record(z.string()).optional(),
|
|
100
106
|
salesTaxAmount: Amount$outboundSchema.optional(),
|
|
107
|
+
foreignID: z.string().optional(),
|
|
101
108
|
});
|
|
102
109
|
|
|
103
110
|
/**
|
|
@@ -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
|
+
MonthlyVolumeRange,
|
|
11
|
+
MonthlyVolumeRange$inboundSchema,
|
|
12
|
+
MonthlyVolumeRange$outboundSchema,
|
|
13
|
+
} from "./monthlyvolumerange.js";
|
|
14
|
+
|
|
15
|
+
export type EstimatedActivity = {
|
|
16
|
+
averageTransactionAmount?: number | undefined;
|
|
17
|
+
maximumTransactionAmount?: number | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* The low value in each range is included. The high value in each range is excluded.
|
|
20
|
+
*/
|
|
21
|
+
monthlyVolumeRange?: MonthlyVolumeRange | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const EstimatedActivity$inboundSchema: z.ZodType<
|
|
26
|
+
EstimatedActivity,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
averageTransactionAmount: z.number().int().optional(),
|
|
31
|
+
maximumTransactionAmount: z.number().int().optional(),
|
|
32
|
+
monthlyVolumeRange: MonthlyVolumeRange$inboundSchema.optional(),
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type EstimatedActivity$Outbound = {
|
|
37
|
+
averageTransactionAmount?: number | undefined;
|
|
38
|
+
maximumTransactionAmount?: number | undefined;
|
|
39
|
+
monthlyVolumeRange?: string | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const EstimatedActivity$outboundSchema: z.ZodType<
|
|
44
|
+
EstimatedActivity$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
EstimatedActivity
|
|
47
|
+
> = z.object({
|
|
48
|
+
averageTransactionAmount: z.number().int().optional(),
|
|
49
|
+
maximumTransactionAmount: z.number().int().optional(),
|
|
50
|
+
monthlyVolumeRange: MonthlyVolumeRange$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 EstimatedActivity$ {
|
|
58
|
+
/** @deprecated use `EstimatedActivity$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema = EstimatedActivity$inboundSchema;
|
|
60
|
+
/** @deprecated use `EstimatedActivity$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema = EstimatedActivity$outboundSchema;
|
|
62
|
+
/** @deprecated use `EstimatedActivity$Outbound` instead. */
|
|
63
|
+
export type Outbound = EstimatedActivity$Outbound;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function estimatedActivityToJSON(
|
|
67
|
+
estimatedActivity: EstimatedActivity,
|
|
68
|
+
): string {
|
|
69
|
+
return JSON.stringify(
|
|
70
|
+
EstimatedActivity$outboundSchema.parse(estimatedActivity),
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function estimatedActivityFromJSON(
|
|
75
|
+
jsonString: string,
|
|
76
|
+
): SafeParseResult<EstimatedActivity, SDKValidationError> {
|
|
77
|
+
return safeParse(
|
|
78
|
+
jsonString,
|
|
79
|
+
(x) => EstimatedActivity$inboundSchema.parse(JSON.parse(x)),
|
|
80
|
+
`Failed to parse 'EstimatedActivity' from JSON`,
|
|
81
|
+
);
|
|
82
|
+
}
|
|
@@ -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
|
+
|
|
10
|
+
export type EstimatedActivityError = {
|
|
11
|
+
averageTransactionAmount?: string | undefined;
|
|
12
|
+
maximumTransactionAmount?: string | undefined;
|
|
13
|
+
monthlyVolumeRange?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const EstimatedActivityError$inboundSchema: z.ZodType<
|
|
18
|
+
EstimatedActivityError,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
averageTransactionAmount: z.string().optional(),
|
|
23
|
+
maximumTransactionAmount: z.string().optional(),
|
|
24
|
+
monthlyVolumeRange: z.string().optional(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type EstimatedActivityError$Outbound = {
|
|
29
|
+
averageTransactionAmount?: string | undefined;
|
|
30
|
+
maximumTransactionAmount?: string | undefined;
|
|
31
|
+
monthlyVolumeRange?: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const EstimatedActivityError$outboundSchema: z.ZodType<
|
|
36
|
+
EstimatedActivityError$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
EstimatedActivityError
|
|
39
|
+
> = z.object({
|
|
40
|
+
averageTransactionAmount: z.string().optional(),
|
|
41
|
+
maximumTransactionAmount: z.string().optional(),
|
|
42
|
+
monthlyVolumeRange: z.string().optional(),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
+
*/
|
|
49
|
+
export namespace EstimatedActivityError$ {
|
|
50
|
+
/** @deprecated use `EstimatedActivityError$inboundSchema` instead. */
|
|
51
|
+
export const inboundSchema = EstimatedActivityError$inboundSchema;
|
|
52
|
+
/** @deprecated use `EstimatedActivityError$outboundSchema` instead. */
|
|
53
|
+
export const outboundSchema = EstimatedActivityError$outboundSchema;
|
|
54
|
+
/** @deprecated use `EstimatedActivityError$Outbound` instead. */
|
|
55
|
+
export type Outbound = EstimatedActivityError$Outbound;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function estimatedActivityErrorToJSON(
|
|
59
|
+
estimatedActivityError: EstimatedActivityError,
|
|
60
|
+
): string {
|
|
61
|
+
return JSON.stringify(
|
|
62
|
+
EstimatedActivityError$outboundSchema.parse(estimatedActivityError),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function estimatedActivityErrorFromJSON(
|
|
67
|
+
jsonString: string,
|
|
68
|
+
): SafeParseResult<EstimatedActivityError, SDKValidationError> {
|
|
69
|
+
return safeParse(
|
|
70
|
+
jsonString,
|
|
71
|
+
(x) => EstimatedActivityError$inboundSchema.parse(JSON.parse(x)),
|
|
72
|
+
`Failed to parse 'EstimatedActivityError' from JSON`,
|
|
73
|
+
);
|
|
74
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
FulfillmentMethod,
|
|
11
|
+
FulfillmentMethod$inboundSchema,
|
|
12
|
+
FulfillmentMethod$outboundSchema,
|
|
13
|
+
} from "./fulfillmentmethod.js";
|
|
14
|
+
import {
|
|
15
|
+
FulfillmentTimeframe,
|
|
16
|
+
FulfillmentTimeframe$inboundSchema,
|
|
17
|
+
FulfillmentTimeframe$outboundSchema,
|
|
18
|
+
} from "./fulfillmenttimeframe.js";
|
|
19
|
+
|
|
20
|
+
export type Fulfillment = {
|
|
21
|
+
method?: FulfillmentMethod | undefined;
|
|
22
|
+
timeframe?: FulfillmentTimeframe | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const Fulfillment$inboundSchema: z.ZodType<
|
|
27
|
+
Fulfillment,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
method: FulfillmentMethod$inboundSchema.optional(),
|
|
32
|
+
timeframe: FulfillmentTimeframe$inboundSchema.optional(),
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type Fulfillment$Outbound = {
|
|
37
|
+
method?: string | undefined;
|
|
38
|
+
timeframe?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const Fulfillment$outboundSchema: z.ZodType<
|
|
43
|
+
Fulfillment$Outbound,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
Fulfillment
|
|
46
|
+
> = z.object({
|
|
47
|
+
method: FulfillmentMethod$outboundSchema.optional(),
|
|
48
|
+
timeframe: FulfillmentTimeframe$outboundSchema.optional(),
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
+
*/
|
|
55
|
+
export namespace Fulfillment$ {
|
|
56
|
+
/** @deprecated use `Fulfillment$inboundSchema` instead. */
|
|
57
|
+
export const inboundSchema = Fulfillment$inboundSchema;
|
|
58
|
+
/** @deprecated use `Fulfillment$outboundSchema` instead. */
|
|
59
|
+
export const outboundSchema = Fulfillment$outboundSchema;
|
|
60
|
+
/** @deprecated use `Fulfillment$Outbound` instead. */
|
|
61
|
+
export type Outbound = Fulfillment$Outbound;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function fulfillmentToJSON(fulfillment: Fulfillment): string {
|
|
65
|
+
return JSON.stringify(Fulfillment$outboundSchema.parse(fulfillment));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function fulfillmentFromJSON(
|
|
69
|
+
jsonString: string,
|
|
70
|
+
): SafeParseResult<Fulfillment, SDKValidationError> {
|
|
71
|
+
return safeParse(
|
|
72
|
+
jsonString,
|
|
73
|
+
(x) => Fulfillment$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
+
`Failed to parse 'Fulfillment' from JSON`,
|
|
75
|
+
);
|
|
76
|
+
}
|