@moovio/sdk 0.12.6 → 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 +1183 -68
- package/bin/mcp-server.js.map +58 -18
- package/docs/sdks/underwriting/README.md +95 -0
- package/funcs/transfersList.js +1 -0
- package/funcs/transfersList.js.map +1 -1
- package/funcs/underwritingSave.d.ts +20 -0
- package/funcs/underwritingSave.d.ts.map +1 -0
- package/funcs/underwritingSave.js +145 -0
- package/funcs/underwritingSave.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/underwritingSave.d.ts +8 -0
- package/mcp-server/tools/underwritingSave.d.ts.map +1 -0
- package/mcp-server/tools/underwritingSave.js +67 -0
- package/mcp-server/tools/underwritingSave.js.map +1 -0
- package/models/components/businesspresence.d.ts +40 -0
- package/models/components/businesspresence.d.ts.map +1 -0
- package/models/components/businesspresence.js +64 -0
- package/models/components/businesspresence.js.map +1 -0
- package/models/components/cardacceptancemethods.d.ts +45 -0
- package/models/components/cardacceptancemethods.d.ts.map +1 -0
- package/models/components/cardacceptancemethods.js +73 -0
- package/models/components/cardacceptancemethods.js.map +1 -0
- package/models/components/cardacceptancemethodserror.d.ts +33 -0
- package/models/components/cardacceptancemethodserror.d.ts.map +1 -0
- package/models/components/cardacceptancemethodserror.js +73 -0
- package/models/components/cardacceptancemethodserror.js.map +1 -0
- package/models/components/collectfunds.d.ts +33 -0
- package/models/components/collectfunds.d.ts.map +1 -0
- package/models/components/collectfunds.js +73 -0
- package/models/components/collectfunds.js.map +1 -0
- package/models/components/collectfundsach.d.ts +30 -0
- package/models/components/collectfundsach.d.ts.map +1 -0
- package/models/components/collectfundsach.js +70 -0
- package/models/components/collectfundsach.js.map +1 -0
- package/models/components/collectfundsacherror.d.ts +30 -0
- package/models/components/collectfundsacherror.d.ts.map +1 -0
- package/models/components/collectfundsacherror.js +70 -0
- package/models/components/collectfundsacherror.js.map +1 -0
- package/models/components/collectfundscardpayments.d.ts +44 -0
- package/models/components/collectfundscardpayments.d.ts.map +1 -0
- package/models/components/collectfundscardpayments.js +81 -0
- package/models/components/collectfundscardpayments.js.map +1 -0
- package/models/components/collectfundscardpaymentserror.d.ts +40 -0
- package/models/components/collectfundscardpaymentserror.d.ts.map +1 -0
- package/models/components/collectfundscardpaymentserror.js +80 -0
- package/models/components/collectfundscardpaymentserror.js.map +1 -0
- package/models/components/collectfundserror.d.ts +33 -0
- package/models/components/collectfundserror.d.ts.map +1 -0
- package/models/components/collectfundserror.js +73 -0
- package/models/components/collectfundserror.js.map +1 -0
- package/models/components/createdtransfer.d.ts +5 -0
- package/models/components/createdtransfer.d.ts.map +1 -1
- package/models/components/createdtransfer.js +2 -0
- package/models/components/createdtransfer.js.map +1 -1
- package/models/components/createtransfer.d.ts +5 -0
- package/models/components/createtransfer.d.ts.map +1 -1
- package/models/components/createtransfer.js +2 -0
- package/models/components/createtransfer.js.map +1 -1
- package/models/components/estimatedactivity.d.ts +37 -0
- package/models/components/estimatedactivity.d.ts.map +1 -0
- package/models/components/estimatedactivity.js +74 -0
- package/models/components/estimatedactivity.js.map +1 -0
- package/models/components/estimatedactivityerror.d.ts +33 -0
- package/models/components/estimatedactivityerror.d.ts.map +1 -0
- package/models/components/estimatedactivityerror.js +73 -0
- package/models/components/estimatedactivityerror.js.map +1 -0
- package/models/components/fulfillment.d.ts +33 -0
- package/models/components/fulfillment.d.ts.map +1 -0
- package/models/components/fulfillment.js +73 -0
- package/models/components/fulfillment.js.map +1 -0
- package/models/components/fulfillmenterror.d.ts +31 -0
- package/models/components/fulfillmenterror.d.ts.map +1 -0
- package/models/components/fulfillmenterror.js +71 -0
- package/models/components/fulfillmenterror.js.map +1 -0
- package/models/components/fulfillmentmethod.d.ts +49 -0
- package/models/components/fulfillmentmethod.d.ts.map +1 -0
- package/models/components/fulfillmentmethod.js +67 -0
- package/models/components/fulfillmentmethod.js.map +1 -0
- package/models/components/fulfillmenttimeframe.d.ts +46 -0
- package/models/components/fulfillmenttimeframe.d.ts.map +1 -0
- package/models/components/fulfillmenttimeframe.js +66 -0
- package/models/components/fulfillmenttimeframe.js.map +1 -0
- package/models/components/geographicreach.d.ts +31 -0
- package/models/components/geographicreach.d.ts.map +1 -0
- package/models/components/geographicreach.js +61 -0
- package/models/components/geographicreach.js.map +1 -0
- package/models/components/index.d.ts +36 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +36 -0
- package/models/components/index.js.map +1 -1
- package/models/components/moneytransfer.d.ts +33 -0
- package/models/components/moneytransfer.d.ts.map +1 -0
- package/models/components/moneytransfer.js +73 -0
- package/models/components/moneytransfer.js.map +1 -0
- package/models/components/moneytransfererror.d.ts +33 -0
- package/models/components/moneytransfererror.d.ts.map +1 -0
- package/models/components/moneytransfererror.js +73 -0
- package/models/components/moneytransfererror.js.map +1 -0
- package/models/components/moneytransferpullfromcard.d.ts +30 -0
- package/models/components/moneytransferpullfromcard.d.ts.map +1 -0
- package/models/components/moneytransferpullfromcard.js +70 -0
- package/models/components/moneytransferpullfromcard.js.map +1 -0
- package/models/components/moneytransferpullfromcarderror.d.ts +30 -0
- package/models/components/moneytransferpullfromcarderror.d.ts.map +1 -0
- package/models/components/moneytransferpullfromcarderror.js +70 -0
- package/models/components/moneytransferpullfromcarderror.js.map +1 -0
- package/models/components/moneytransferpushtocard.d.ts +30 -0
- package/models/components/moneytransferpushtocard.d.ts.map +1 -0
- package/models/components/moneytransferpushtocard.js +70 -0
- package/models/components/moneytransferpushtocard.js.map +1 -0
- package/models/components/moneytransferpushtocarderror.d.ts +30 -0
- package/models/components/moneytransferpushtocarderror.d.ts.map +1 -0
- package/models/components/moneytransferpushtocarderror.js +70 -0
- package/models/components/moneytransferpushtocarderror.js.map +1 -0
- package/models/components/monthlyvolumerange.d.ts +52 -0
- package/models/components/monthlyvolumerange.d.ts.map +1 -0
- package/models/components/monthlyvolumerange.js +69 -0
- package/models/components/monthlyvolumerange.js.map +1 -0
- package/models/components/pendinglitigation.d.ts +52 -0
- package/models/components/pendinglitigation.d.ts.map +1 -0
- package/models/components/pendinglitigation.js +68 -0
- package/models/components/pendinglitigation.js.map +1 -0
- package/models/components/refundpolicy.d.ts +49 -0
- package/models/components/refundpolicy.d.ts.map +1 -0
- package/models/components/refundpolicy.js +67 -0
- package/models/components/refundpolicy.js.map +1 -0
- package/models/components/sendfunds.d.ts +36 -0
- package/models/components/sendfunds.d.ts.map +1 -0
- package/models/components/sendfunds.js +76 -0
- package/models/components/sendfunds.js.map +1 -0
- package/models/components/sendfundsach.d.ts +30 -0
- package/models/components/sendfundsach.d.ts.map +1 -0
- package/models/components/sendfundsach.js +70 -0
- package/models/components/sendfundsach.js.map +1 -0
- package/models/components/sendfundsacherror.d.ts +30 -0
- package/models/components/sendfundsacherror.d.ts.map +1 -0
- package/models/components/sendfundsacherror.js +70 -0
- package/models/components/sendfundsacherror.js.map +1 -0
- package/models/components/sendfundserror.d.ts +36 -0
- package/models/components/sendfundserror.d.ts.map +1 -0
- package/models/components/sendfundserror.js +76 -0
- package/models/components/sendfundserror.js.map +1 -0
- package/models/components/sendfundspushtocard.d.ts +30 -0
- package/models/components/sendfundspushtocard.d.ts.map +1 -0
- package/models/components/sendfundspushtocard.js +70 -0
- package/models/components/sendfundspushtocard.js.map +1 -0
- package/models/components/sendfundspushtocarderror.d.ts +30 -0
- package/models/components/sendfundspushtocarderror.d.ts.map +1 -0
- package/models/components/sendfundspushtocarderror.js +70 -0
- package/models/components/sendfundspushtocarderror.js.map +1 -0
- package/models/components/sendfundsrtp.d.ts +30 -0
- package/models/components/sendfundsrtp.d.ts.map +1 -0
- package/models/components/sendfundsrtp.js +70 -0
- package/models/components/sendfundsrtp.js.map +1 -0
- package/models/components/sendfundsrtperror.d.ts +30 -0
- package/models/components/sendfundsrtperror.d.ts.map +1 -0
- package/models/components/sendfundsrtperror.js +70 -0
- package/models/components/sendfundsrtperror.js.map +1 -0
- package/models/components/transfer.d.ts +5 -0
- package/models/components/transfer.d.ts.map +1 -1
- package/models/components/transfer.js +2 -0
- package/models/components/transfer.js.map +1 -1
- package/models/components/underwriting.d.ts +35 -14
- package/models/components/underwriting.d.ts.map +1 -1
- package/models/components/underwriting.js +36 -14
- package/models/components/underwriting.js.map +1 -1
- package/models/components/upsertunderwriting.d.ts +48 -0
- package/models/components/upsertunderwriting.d.ts.map +1 -0
- package/models/components/upsertunderwriting.js +89 -0
- package/models/components/upsertunderwriting.js.map +1 -0
- package/models/components/volumesharebycustomertype.d.ts +33 -0
- package/models/components/volumesharebycustomertype.d.ts.map +1 -0
- package/models/components/volumesharebycustomertype.js +73 -0
- package/models/components/volumesharebycustomertype.js.map +1 -0
- package/models/components/volumesharebycustomertypeerror.d.ts +33 -0
- package/models/components/volumesharebycustomertypeerror.d.ts.map +1 -0
- package/models/components/volumesharebycustomertypeerror.js +73 -0
- package/models/components/volumesharebycustomertypeerror.js.map +1 -0
- package/models/components/webhookdatatransfercreated.d.ts +2 -0
- package/models/components/webhookdatatransfercreated.d.ts.map +1 -1
- package/models/components/webhookdatatransfercreated.js +2 -0
- package/models/components/webhookdatatransfercreated.js.map +1 -1
- package/models/components/webhookdatatransferupdated.d.ts +2 -0
- package/models/components/webhookdatatransferupdated.d.ts.map +1 -1
- package/models/components/webhookdatatransferupdated.js +2 -0
- package/models/components/webhookdatatransferupdated.js.map +1 -1
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/transfer.d.ts +9 -0
- package/models/errors/transfer.d.ts.map +1 -1
- package/models/errors/transfer.js +4 -0
- package/models/errors/transfer.js.map +1 -1
- package/models/errors/upsertunderwritingerror.d.ts +73 -0
- package/models/errors/upsertunderwritingerror.d.ts.map +1 -0
- package/models/errors/upsertunderwritingerror.js +150 -0
- package/models/errors/upsertunderwritingerror.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listtransfers.d.ts +5 -0
- package/models/operations/listtransfers.d.ts.map +1 -1
- package/models/operations/listtransfers.js +2 -0
- package/models/operations/listtransfers.js.map +1 -1
- package/models/operations/saveunderwriting.d.ts +101 -0
- package/models/operations/saveunderwriting.d.ts.map +1 -0
- package/models/operations/saveunderwriting.js +155 -0
- package/models/operations/saveunderwriting.js.map +1 -0
- package/package.json +1 -1
- package/sdk/underwriting.d.ts +9 -0
- package/sdk/underwriting.d.ts.map +1 -1
- package/sdk/underwriting.js +12 -0
- package/sdk/underwriting.js.map +1 -1
- package/src/__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/cardacceptancemethods.ts +86 -0
- package/src/models/components/cardacceptancemethodserror.ts +74 -0
- package/src/models/components/collectfunds.ts +78 -0
- package/src/models/components/collectfundsach.ts +70 -0
- package/src/models/components/collectfundsacherror.ts +72 -0
- package/src/models/components/collectfundscardpayments.ts +108 -0
- package/src/models/components/collectfundscardpaymentserror.ts +102 -0
- package/src/models/components/collectfundserror.ts +82 -0
- package/src/models/components/createdtransfer.ts +7 -0
- package/src/models/components/createtransfer.ts +7 -0
- package/src/models/components/estimatedactivity.ts +82 -0
- package/src/models/components/estimatedactivityerror.ts +74 -0
- package/src/models/components/fulfillment.ts +76 -0
- package/src/models/components/fulfillmenterror.ts +70 -0
- package/src/models/components/fulfillmentmethod.ts +40 -0
- package/src/models/components/fulfillmenttimeframe.ts +39 -0
- package/src/models/components/geographicreach.ts +34 -0
- package/src/models/components/index.ts +36 -0
- package/src/models/components/moneytransfer.ts +78 -0
- package/src/models/components/moneytransfererror.ts +82 -0
- package/src/models/components/moneytransferpullfromcard.ts +72 -0
- package/src/models/components/moneytransferpullfromcarderror.ts +74 -0
- package/src/models/components/moneytransferpushtocard.ts +72 -0
- package/src/models/components/moneytransferpushtocarderror.ts +74 -0
- package/src/models/components/monthlyvolumerange.ts +45 -0
- package/src/models/components/pendinglitigation.ts +42 -0
- package/src/models/components/refundpolicy.ts +38 -0
- package/src/models/components/sendfunds.ts +88 -0
- package/src/models/components/sendfundsach.ts +68 -0
- package/src/models/components/sendfundsacherror.ts +72 -0
- package/src/models/components/sendfundserror.ts +88 -0
- package/src/models/components/sendfundspushtocard.ts +72 -0
- package/src/models/components/sendfundspushtocarderror.ts +72 -0
- package/src/models/components/sendfundsrtp.ts +68 -0
- package/src/models/components/sendfundsrtperror.ts +72 -0
- package/src/models/components/transfer.ts +7 -0
- package/src/models/components/underwriting.ts +96 -28
- package/src/models/components/upsertunderwriting.ts +130 -0
- package/src/models/components/volumesharebycustomertype.ts +74 -0
- package/src/models/components/volumesharebycustomertypeerror.ts +76 -0
- package/src/models/components/webhookdatatransfercreated.ts +4 -0
- package/src/models/components/webhookdatatransferupdated.ts +4 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/transfer.ts +12 -0
- package/src/models/errors/upsertunderwritingerror.ts +185 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listtransfers.ts +7 -0
- package/src/models/operations/saveunderwriting.ts +231 -0
- package/src/sdk/underwriting.ts +20 -0
|
@@ -6,18 +6,51 @@ import * as z from "zod";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
BusinessPresence,
|
|
11
|
+
BusinessPresence$inboundSchema,
|
|
12
|
+
BusinessPresence$outboundSchema,
|
|
13
|
+
} from "./businesspresence.js";
|
|
9
14
|
import {
|
|
10
15
|
CardVolumeDistribution,
|
|
11
16
|
CardVolumeDistribution$inboundSchema,
|
|
12
17
|
CardVolumeDistribution$Outbound,
|
|
13
18
|
CardVolumeDistribution$outboundSchema,
|
|
14
19
|
} from "./cardvolumedistribution.js";
|
|
20
|
+
import {
|
|
21
|
+
CollectFunds,
|
|
22
|
+
CollectFunds$inboundSchema,
|
|
23
|
+
CollectFunds$Outbound,
|
|
24
|
+
CollectFunds$outboundSchema,
|
|
25
|
+
} from "./collectfunds.js";
|
|
15
26
|
import {
|
|
16
27
|
FulfillmentDetails,
|
|
17
28
|
FulfillmentDetails$inboundSchema,
|
|
18
29
|
FulfillmentDetails$Outbound,
|
|
19
30
|
FulfillmentDetails$outboundSchema,
|
|
20
31
|
} from "./fulfillmentdetails.js";
|
|
32
|
+
import {
|
|
33
|
+
GeographicReach,
|
|
34
|
+
GeographicReach$inboundSchema,
|
|
35
|
+
GeographicReach$outboundSchema,
|
|
36
|
+
} from "./geographicreach.js";
|
|
37
|
+
import {
|
|
38
|
+
MoneyTransfer,
|
|
39
|
+
MoneyTransfer$inboundSchema,
|
|
40
|
+
MoneyTransfer$Outbound,
|
|
41
|
+
MoneyTransfer$outboundSchema,
|
|
42
|
+
} from "./moneytransfer.js";
|
|
43
|
+
import {
|
|
44
|
+
PendingLitigation,
|
|
45
|
+
PendingLitigation$inboundSchema,
|
|
46
|
+
PendingLitigation$outboundSchema,
|
|
47
|
+
} from "./pendinglitigation.js";
|
|
48
|
+
import {
|
|
49
|
+
SendFunds,
|
|
50
|
+
SendFunds$inboundSchema,
|
|
51
|
+
SendFunds$Outbound,
|
|
52
|
+
SendFunds$outboundSchema,
|
|
53
|
+
} from "./sendfunds.js";
|
|
21
54
|
import {
|
|
22
55
|
UnderwritingStatus,
|
|
23
56
|
UnderwritingStatus$inboundSchema,
|
|
@@ -29,21 +62,34 @@ import {
|
|
|
29
62
|
VolumeByCustomerType$Outbound,
|
|
30
63
|
VolumeByCustomerType$outboundSchema,
|
|
31
64
|
} from "./volumebycustomertype.js";
|
|
65
|
+
import {
|
|
66
|
+
VolumeShareByCustomerType,
|
|
67
|
+
VolumeShareByCustomerType$inboundSchema,
|
|
68
|
+
VolumeShareByCustomerType$Outbound,
|
|
69
|
+
VolumeShareByCustomerType$outboundSchema,
|
|
70
|
+
} from "./volumesharebycustomertype.js";
|
|
32
71
|
|
|
33
72
|
/**
|
|
34
73
|
* Describes underwriting values (in USD) used for card payment acceptance.
|
|
35
74
|
*/
|
|
36
75
|
export type Underwriting = {
|
|
37
|
-
averageTransactionSize
|
|
38
|
-
maxTransactionSize
|
|
39
|
-
averageMonthlyTransactionVolume
|
|
76
|
+
averageTransactionSize?: number | undefined;
|
|
77
|
+
maxTransactionSize?: number | undefined;
|
|
78
|
+
averageMonthlyTransactionVolume?: number | undefined;
|
|
40
79
|
/**
|
|
41
80
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
42
81
|
*/
|
|
43
|
-
status
|
|
44
|
-
volumeByCustomerType
|
|
45
|
-
cardVolumeDistribution
|
|
46
|
-
fulfillment
|
|
82
|
+
status?: UnderwritingStatus | undefined;
|
|
83
|
+
volumeByCustomerType?: VolumeByCustomerType | undefined;
|
|
84
|
+
cardVolumeDistribution?: CardVolumeDistribution | undefined;
|
|
85
|
+
fulfillment?: FulfillmentDetails | undefined;
|
|
86
|
+
geographicReach?: GeographicReach | undefined;
|
|
87
|
+
businessPresence?: BusinessPresence | undefined;
|
|
88
|
+
pendingLitigation?: PendingLitigation | undefined;
|
|
89
|
+
volumeShareByCustomerType?: VolumeShareByCustomerType | undefined;
|
|
90
|
+
collectFunds?: CollectFunds | undefined;
|
|
91
|
+
moneyTransfer?: MoneyTransfer | undefined;
|
|
92
|
+
sendFunds?: SendFunds | undefined;
|
|
47
93
|
};
|
|
48
94
|
|
|
49
95
|
/** @internal */
|
|
@@ -52,24 +98,38 @@ export const Underwriting$inboundSchema: z.ZodType<
|
|
|
52
98
|
z.ZodTypeDef,
|
|
53
99
|
unknown
|
|
54
100
|
> = z.object({
|
|
55
|
-
averageTransactionSize: z.number().int(),
|
|
56
|
-
maxTransactionSize: z.number().int(),
|
|
57
|
-
averageMonthlyTransactionVolume: z.number().int(),
|
|
58
|
-
status: UnderwritingStatus$inboundSchema,
|
|
59
|
-
volumeByCustomerType: VolumeByCustomerType$inboundSchema,
|
|
60
|
-
cardVolumeDistribution: CardVolumeDistribution$inboundSchema,
|
|
61
|
-
fulfillment: FulfillmentDetails$inboundSchema,
|
|
101
|
+
averageTransactionSize: z.number().int().optional(),
|
|
102
|
+
maxTransactionSize: z.number().int().optional(),
|
|
103
|
+
averageMonthlyTransactionVolume: z.number().int().optional(),
|
|
104
|
+
status: UnderwritingStatus$inboundSchema.optional(),
|
|
105
|
+
volumeByCustomerType: VolumeByCustomerType$inboundSchema.optional(),
|
|
106
|
+
cardVolumeDistribution: CardVolumeDistribution$inboundSchema.optional(),
|
|
107
|
+
fulfillment: FulfillmentDetails$inboundSchema.optional(),
|
|
108
|
+
geographicReach: GeographicReach$inboundSchema.optional(),
|
|
109
|
+
businessPresence: BusinessPresence$inboundSchema.optional(),
|
|
110
|
+
pendingLitigation: PendingLitigation$inboundSchema.optional(),
|
|
111
|
+
volumeShareByCustomerType: VolumeShareByCustomerType$inboundSchema.optional(),
|
|
112
|
+
collectFunds: CollectFunds$inboundSchema.optional(),
|
|
113
|
+
moneyTransfer: MoneyTransfer$inboundSchema.optional(),
|
|
114
|
+
sendFunds: SendFunds$inboundSchema.optional(),
|
|
62
115
|
});
|
|
63
116
|
|
|
64
117
|
/** @internal */
|
|
65
118
|
export type Underwriting$Outbound = {
|
|
66
|
-
averageTransactionSize
|
|
67
|
-
maxTransactionSize
|
|
68
|
-
averageMonthlyTransactionVolume
|
|
69
|
-
status
|
|
70
|
-
volumeByCustomerType
|
|
71
|
-
cardVolumeDistribution
|
|
72
|
-
fulfillment
|
|
119
|
+
averageTransactionSize?: number | undefined;
|
|
120
|
+
maxTransactionSize?: number | undefined;
|
|
121
|
+
averageMonthlyTransactionVolume?: number | undefined;
|
|
122
|
+
status?: string | undefined;
|
|
123
|
+
volumeByCustomerType?: VolumeByCustomerType$Outbound | undefined;
|
|
124
|
+
cardVolumeDistribution?: CardVolumeDistribution$Outbound | undefined;
|
|
125
|
+
fulfillment?: FulfillmentDetails$Outbound | undefined;
|
|
126
|
+
geographicReach?: string | undefined;
|
|
127
|
+
businessPresence?: string | undefined;
|
|
128
|
+
pendingLitigation?: string | undefined;
|
|
129
|
+
volumeShareByCustomerType?: VolumeShareByCustomerType$Outbound | undefined;
|
|
130
|
+
collectFunds?: CollectFunds$Outbound | undefined;
|
|
131
|
+
moneyTransfer?: MoneyTransfer$Outbound | undefined;
|
|
132
|
+
sendFunds?: SendFunds$Outbound | undefined;
|
|
73
133
|
};
|
|
74
134
|
|
|
75
135
|
/** @internal */
|
|
@@ -78,13 +138,21 @@ export const Underwriting$outboundSchema: z.ZodType<
|
|
|
78
138
|
z.ZodTypeDef,
|
|
79
139
|
Underwriting
|
|
80
140
|
> = z.object({
|
|
81
|
-
averageTransactionSize: z.number().int(),
|
|
82
|
-
maxTransactionSize: z.number().int(),
|
|
83
|
-
averageMonthlyTransactionVolume: z.number().int(),
|
|
84
|
-
status: UnderwritingStatus$outboundSchema,
|
|
85
|
-
volumeByCustomerType: VolumeByCustomerType$outboundSchema,
|
|
86
|
-
cardVolumeDistribution: CardVolumeDistribution$outboundSchema,
|
|
87
|
-
fulfillment: FulfillmentDetails$outboundSchema,
|
|
141
|
+
averageTransactionSize: z.number().int().optional(),
|
|
142
|
+
maxTransactionSize: z.number().int().optional(),
|
|
143
|
+
averageMonthlyTransactionVolume: z.number().int().optional(),
|
|
144
|
+
status: UnderwritingStatus$outboundSchema.optional(),
|
|
145
|
+
volumeByCustomerType: VolumeByCustomerType$outboundSchema.optional(),
|
|
146
|
+
cardVolumeDistribution: CardVolumeDistribution$outboundSchema.optional(),
|
|
147
|
+
fulfillment: FulfillmentDetails$outboundSchema.optional(),
|
|
148
|
+
geographicReach: GeographicReach$outboundSchema.optional(),
|
|
149
|
+
businessPresence: BusinessPresence$outboundSchema.optional(),
|
|
150
|
+
pendingLitigation: PendingLitigation$outboundSchema.optional(),
|
|
151
|
+
volumeShareByCustomerType: VolumeShareByCustomerType$outboundSchema
|
|
152
|
+
.optional(),
|
|
153
|
+
collectFunds: CollectFunds$outboundSchema.optional(),
|
|
154
|
+
moneyTransfer: MoneyTransfer$outboundSchema.optional(),
|
|
155
|
+
sendFunds: SendFunds$outboundSchema.optional(),
|
|
88
156
|
});
|
|
89
157
|
|
|
90
158
|
/**
|
|
@@ -0,0 +1,130 @@
|
|
|
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
|
+
BusinessPresence,
|
|
11
|
+
BusinessPresence$inboundSchema,
|
|
12
|
+
BusinessPresence$outboundSchema,
|
|
13
|
+
} from "./businesspresence.js";
|
|
14
|
+
import {
|
|
15
|
+
CollectFunds,
|
|
16
|
+
CollectFunds$inboundSchema,
|
|
17
|
+
CollectFunds$Outbound,
|
|
18
|
+
CollectFunds$outboundSchema,
|
|
19
|
+
} from "./collectfunds.js";
|
|
20
|
+
import {
|
|
21
|
+
GeographicReach,
|
|
22
|
+
GeographicReach$inboundSchema,
|
|
23
|
+
GeographicReach$outboundSchema,
|
|
24
|
+
} from "./geographicreach.js";
|
|
25
|
+
import {
|
|
26
|
+
MoneyTransfer,
|
|
27
|
+
MoneyTransfer$inboundSchema,
|
|
28
|
+
MoneyTransfer$Outbound,
|
|
29
|
+
MoneyTransfer$outboundSchema,
|
|
30
|
+
} from "./moneytransfer.js";
|
|
31
|
+
import {
|
|
32
|
+
PendingLitigation,
|
|
33
|
+
PendingLitigation$inboundSchema,
|
|
34
|
+
PendingLitigation$outboundSchema,
|
|
35
|
+
} from "./pendinglitigation.js";
|
|
36
|
+
import {
|
|
37
|
+
SendFunds,
|
|
38
|
+
SendFunds$inboundSchema,
|
|
39
|
+
SendFunds$Outbound,
|
|
40
|
+
SendFunds$outboundSchema,
|
|
41
|
+
} from "./sendfunds.js";
|
|
42
|
+
import {
|
|
43
|
+
VolumeShareByCustomerType,
|
|
44
|
+
VolumeShareByCustomerType$inboundSchema,
|
|
45
|
+
VolumeShareByCustomerType$Outbound,
|
|
46
|
+
VolumeShareByCustomerType$outboundSchema,
|
|
47
|
+
} from "./volumesharebycustomertype.js";
|
|
48
|
+
|
|
49
|
+
export type UpsertUnderwriting = {
|
|
50
|
+
geographicReach?: GeographicReach | undefined;
|
|
51
|
+
businessPresence?: BusinessPresence | undefined;
|
|
52
|
+
pendingLitigation?: PendingLitigation | undefined;
|
|
53
|
+
volumeShareByCustomerType?: VolumeShareByCustomerType | undefined;
|
|
54
|
+
collectFunds?: CollectFunds | undefined;
|
|
55
|
+
moneyTransfer?: MoneyTransfer | undefined;
|
|
56
|
+
sendFunds?: SendFunds | undefined;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export const UpsertUnderwriting$inboundSchema: z.ZodType<
|
|
61
|
+
UpsertUnderwriting,
|
|
62
|
+
z.ZodTypeDef,
|
|
63
|
+
unknown
|
|
64
|
+
> = z.object({
|
|
65
|
+
geographicReach: GeographicReach$inboundSchema.optional(),
|
|
66
|
+
businessPresence: BusinessPresence$inboundSchema.optional(),
|
|
67
|
+
pendingLitigation: PendingLitigation$inboundSchema.optional(),
|
|
68
|
+
volumeShareByCustomerType: VolumeShareByCustomerType$inboundSchema.optional(),
|
|
69
|
+
collectFunds: CollectFunds$inboundSchema.optional(),
|
|
70
|
+
moneyTransfer: MoneyTransfer$inboundSchema.optional(),
|
|
71
|
+
sendFunds: SendFunds$inboundSchema.optional(),
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export type UpsertUnderwriting$Outbound = {
|
|
76
|
+
geographicReach?: string | undefined;
|
|
77
|
+
businessPresence?: string | undefined;
|
|
78
|
+
pendingLitigation?: string | undefined;
|
|
79
|
+
volumeShareByCustomerType?: VolumeShareByCustomerType$Outbound | undefined;
|
|
80
|
+
collectFunds?: CollectFunds$Outbound | undefined;
|
|
81
|
+
moneyTransfer?: MoneyTransfer$Outbound | undefined;
|
|
82
|
+
sendFunds?: SendFunds$Outbound | undefined;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export const UpsertUnderwriting$outboundSchema: z.ZodType<
|
|
87
|
+
UpsertUnderwriting$Outbound,
|
|
88
|
+
z.ZodTypeDef,
|
|
89
|
+
UpsertUnderwriting
|
|
90
|
+
> = z.object({
|
|
91
|
+
geographicReach: GeographicReach$outboundSchema.optional(),
|
|
92
|
+
businessPresence: BusinessPresence$outboundSchema.optional(),
|
|
93
|
+
pendingLitigation: PendingLitigation$outboundSchema.optional(),
|
|
94
|
+
volumeShareByCustomerType: VolumeShareByCustomerType$outboundSchema
|
|
95
|
+
.optional(),
|
|
96
|
+
collectFunds: CollectFunds$outboundSchema.optional(),
|
|
97
|
+
moneyTransfer: MoneyTransfer$outboundSchema.optional(),
|
|
98
|
+
sendFunds: SendFunds$outboundSchema.optional(),
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
104
|
+
*/
|
|
105
|
+
export namespace UpsertUnderwriting$ {
|
|
106
|
+
/** @deprecated use `UpsertUnderwriting$inboundSchema` instead. */
|
|
107
|
+
export const inboundSchema = UpsertUnderwriting$inboundSchema;
|
|
108
|
+
/** @deprecated use `UpsertUnderwriting$outboundSchema` instead. */
|
|
109
|
+
export const outboundSchema = UpsertUnderwriting$outboundSchema;
|
|
110
|
+
/** @deprecated use `UpsertUnderwriting$Outbound` instead. */
|
|
111
|
+
export type Outbound = UpsertUnderwriting$Outbound;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function upsertUnderwritingToJSON(
|
|
115
|
+
upsertUnderwriting: UpsertUnderwriting,
|
|
116
|
+
): string {
|
|
117
|
+
return JSON.stringify(
|
|
118
|
+
UpsertUnderwriting$outboundSchema.parse(upsertUnderwriting),
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function upsertUnderwritingFromJSON(
|
|
123
|
+
jsonString: string,
|
|
124
|
+
): SafeParseResult<UpsertUnderwriting, SDKValidationError> {
|
|
125
|
+
return safeParse(
|
|
126
|
+
jsonString,
|
|
127
|
+
(x) => UpsertUnderwriting$inboundSchema.parse(JSON.parse(x)),
|
|
128
|
+
`Failed to parse 'UpsertUnderwriting' from JSON`,
|
|
129
|
+
);
|
|
130
|
+
}
|
|
@@ -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 VolumeShareByCustomerType = {
|
|
11
|
+
business?: number | undefined;
|
|
12
|
+
consumer?: number | undefined;
|
|
13
|
+
p2p?: number | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const VolumeShareByCustomerType$inboundSchema: z.ZodType<
|
|
18
|
+
VolumeShareByCustomerType,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
business: z.number().int().optional(),
|
|
23
|
+
consumer: z.number().int().optional(),
|
|
24
|
+
p2p: z.number().int().optional(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type VolumeShareByCustomerType$Outbound = {
|
|
29
|
+
business?: number | undefined;
|
|
30
|
+
consumer?: number | undefined;
|
|
31
|
+
p2p?: number | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const VolumeShareByCustomerType$outboundSchema: z.ZodType<
|
|
36
|
+
VolumeShareByCustomerType$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
VolumeShareByCustomerType
|
|
39
|
+
> = z.object({
|
|
40
|
+
business: z.number().int().optional(),
|
|
41
|
+
consumer: z.number().int().optional(),
|
|
42
|
+
p2p: z.number().int().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 VolumeShareByCustomerType$ {
|
|
50
|
+
/** @deprecated use `VolumeShareByCustomerType$inboundSchema` instead. */
|
|
51
|
+
export const inboundSchema = VolumeShareByCustomerType$inboundSchema;
|
|
52
|
+
/** @deprecated use `VolumeShareByCustomerType$outboundSchema` instead. */
|
|
53
|
+
export const outboundSchema = VolumeShareByCustomerType$outboundSchema;
|
|
54
|
+
/** @deprecated use `VolumeShareByCustomerType$Outbound` instead. */
|
|
55
|
+
export type Outbound = VolumeShareByCustomerType$Outbound;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function volumeShareByCustomerTypeToJSON(
|
|
59
|
+
volumeShareByCustomerType: VolumeShareByCustomerType,
|
|
60
|
+
): string {
|
|
61
|
+
return JSON.stringify(
|
|
62
|
+
VolumeShareByCustomerType$outboundSchema.parse(volumeShareByCustomerType),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function volumeShareByCustomerTypeFromJSON(
|
|
67
|
+
jsonString: string,
|
|
68
|
+
): SafeParseResult<VolumeShareByCustomerType, SDKValidationError> {
|
|
69
|
+
return safeParse(
|
|
70
|
+
jsonString,
|
|
71
|
+
(x) => VolumeShareByCustomerType$inboundSchema.parse(JSON.parse(x)),
|
|
72
|
+
`Failed to parse 'VolumeShareByCustomerType' 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
|
+
|
|
10
|
+
export type VolumeShareByCustomerTypeError = {
|
|
11
|
+
business?: string | undefined;
|
|
12
|
+
consumer?: string | undefined;
|
|
13
|
+
p2p?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const VolumeShareByCustomerTypeError$inboundSchema: z.ZodType<
|
|
18
|
+
VolumeShareByCustomerTypeError,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
business: z.string().optional(),
|
|
23
|
+
consumer: z.string().optional(),
|
|
24
|
+
p2p: z.string().optional(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type VolumeShareByCustomerTypeError$Outbound = {
|
|
29
|
+
business?: string | undefined;
|
|
30
|
+
consumer?: string | undefined;
|
|
31
|
+
p2p?: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const VolumeShareByCustomerTypeError$outboundSchema: z.ZodType<
|
|
36
|
+
VolumeShareByCustomerTypeError$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
VolumeShareByCustomerTypeError
|
|
39
|
+
> = z.object({
|
|
40
|
+
business: z.string().optional(),
|
|
41
|
+
consumer: z.string().optional(),
|
|
42
|
+
p2p: 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 VolumeShareByCustomerTypeError$ {
|
|
50
|
+
/** @deprecated use `VolumeShareByCustomerTypeError$inboundSchema` instead. */
|
|
51
|
+
export const inboundSchema = VolumeShareByCustomerTypeError$inboundSchema;
|
|
52
|
+
/** @deprecated use `VolumeShareByCustomerTypeError$outboundSchema` instead. */
|
|
53
|
+
export const outboundSchema = VolumeShareByCustomerTypeError$outboundSchema;
|
|
54
|
+
/** @deprecated use `VolumeShareByCustomerTypeError$Outbound` instead. */
|
|
55
|
+
export type Outbound = VolumeShareByCustomerTypeError$Outbound;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function volumeShareByCustomerTypeErrorToJSON(
|
|
59
|
+
volumeShareByCustomerTypeError: VolumeShareByCustomerTypeError,
|
|
60
|
+
): string {
|
|
61
|
+
return JSON.stringify(
|
|
62
|
+
VolumeShareByCustomerTypeError$outboundSchema.parse(
|
|
63
|
+
volumeShareByCustomerTypeError,
|
|
64
|
+
),
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function volumeShareByCustomerTypeErrorFromJSON(
|
|
69
|
+
jsonString: string,
|
|
70
|
+
): SafeParseResult<VolumeShareByCustomerTypeError, SDKValidationError> {
|
|
71
|
+
return safeParse(
|
|
72
|
+
jsonString,
|
|
73
|
+
(x) => VolumeShareByCustomerTypeError$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
+
`Failed to parse 'VolumeShareByCustomerTypeError' from JSON`,
|
|
75
|
+
);
|
|
76
|
+
}
|
|
@@ -19,6 +19,7 @@ export type WebhookDataTransferCreated = {
|
|
|
19
19
|
accountID: string;
|
|
20
20
|
transferID: string;
|
|
21
21
|
status: WebhookDataTransferStatus;
|
|
22
|
+
foreignID?: string | undefined;
|
|
22
23
|
};
|
|
23
24
|
|
|
24
25
|
/** @internal */
|
|
@@ -30,6 +31,7 @@ export const WebhookDataTransferCreated$inboundSchema: z.ZodType<
|
|
|
30
31
|
accountID: z.string(),
|
|
31
32
|
transferID: z.string(),
|
|
32
33
|
status: WebhookDataTransferStatus$inboundSchema,
|
|
34
|
+
foreignID: z.string().optional(),
|
|
33
35
|
});
|
|
34
36
|
|
|
35
37
|
/** @internal */
|
|
@@ -37,6 +39,7 @@ export type WebhookDataTransferCreated$Outbound = {
|
|
|
37
39
|
accountID: string;
|
|
38
40
|
transferID: string;
|
|
39
41
|
status: string;
|
|
42
|
+
foreignID?: string | undefined;
|
|
40
43
|
};
|
|
41
44
|
|
|
42
45
|
/** @internal */
|
|
@@ -48,6 +51,7 @@ export const WebhookDataTransferCreated$outboundSchema: z.ZodType<
|
|
|
48
51
|
accountID: z.string(),
|
|
49
52
|
transferID: z.string(),
|
|
50
53
|
status: WebhookDataTransferStatus$outboundSchema,
|
|
54
|
+
foreignID: z.string().optional(),
|
|
51
55
|
});
|
|
52
56
|
|
|
53
57
|
/**
|
|
@@ -33,6 +33,7 @@ export type WebhookDataTransferUpdated = {
|
|
|
33
33
|
* Payment method details for the source or destination of a transfer.
|
|
34
34
|
*/
|
|
35
35
|
destination: WebhookTransferPaymentMethodDetails;
|
|
36
|
+
foreignID?: string | undefined;
|
|
36
37
|
};
|
|
37
38
|
|
|
38
39
|
/** @internal */
|
|
@@ -46,6 +47,7 @@ export const WebhookDataTransferUpdated$inboundSchema: z.ZodType<
|
|
|
46
47
|
status: WebhookDataTransferStatus$inboundSchema,
|
|
47
48
|
source: WebhookTransferPaymentMethodDetails$inboundSchema,
|
|
48
49
|
destination: WebhookTransferPaymentMethodDetails$inboundSchema,
|
|
50
|
+
foreignID: z.string().optional(),
|
|
49
51
|
});
|
|
50
52
|
|
|
51
53
|
/** @internal */
|
|
@@ -55,6 +57,7 @@ export type WebhookDataTransferUpdated$Outbound = {
|
|
|
55
57
|
status: string;
|
|
56
58
|
source: WebhookTransferPaymentMethodDetails$Outbound;
|
|
57
59
|
destination: WebhookTransferPaymentMethodDetails$Outbound;
|
|
60
|
+
foreignID?: string | undefined;
|
|
58
61
|
};
|
|
59
62
|
|
|
60
63
|
/** @internal */
|
|
@@ -68,6 +71,7 @@ export const WebhookDataTransferUpdated$outboundSchema: z.ZodType<
|
|
|
68
71
|
status: WebhookDataTransferStatus$outboundSchema,
|
|
69
72
|
source: WebhookTransferPaymentMethodDetails$outboundSchema,
|
|
70
73
|
destination: WebhookTransferPaymentMethodDetails$outboundSchema,
|
|
74
|
+
foreignID: z.string().optional(),
|
|
71
75
|
});
|
|
72
76
|
|
|
73
77
|
/**
|
|
@@ -66,6 +66,10 @@ export type TransferData = {
|
|
|
66
66
|
* Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
|
|
67
67
|
*/
|
|
68
68
|
salesTaxAmount?: components.Amount | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Optional alias from a foreign/external system which can be used to reference this resource.
|
|
71
|
+
*/
|
|
72
|
+
foreignID?: string | undefined;
|
|
69
73
|
};
|
|
70
74
|
|
|
71
75
|
/**
|
|
@@ -128,6 +132,10 @@ export class Transfer extends MoovError {
|
|
|
128
132
|
* Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
|
|
129
133
|
*/
|
|
130
134
|
salesTaxAmount?: components.Amount | undefined;
|
|
135
|
+
/**
|
|
136
|
+
* Optional alias from a foreign/external system which can be used to reference this resource.
|
|
137
|
+
*/
|
|
138
|
+
foreignID?: string | undefined;
|
|
131
139
|
|
|
132
140
|
/** The original data that was passed to this error instance. */
|
|
133
141
|
data$: TransferData;
|
|
@@ -167,6 +175,7 @@ export class Transfer extends MoovError {
|
|
|
167
175
|
if (err.occurrenceID != null) this.occurrenceID = err.occurrenceID;
|
|
168
176
|
if (err.paymentLinkCode != null) this.paymentLinkCode = err.paymentLinkCode;
|
|
169
177
|
if (err.salesTaxAmount != null) this.salesTaxAmount = err.salesTaxAmount;
|
|
178
|
+
if (err.foreignID != null) this.foreignID = err.foreignID;
|
|
170
179
|
|
|
171
180
|
this.name = "Transfer";
|
|
172
181
|
}
|
|
@@ -205,6 +214,7 @@ export const Transfer$inboundSchema: z.ZodType<
|
|
|
205
214
|
occurrenceID: z.string().optional(),
|
|
206
215
|
paymentLinkCode: z.string().optional(),
|
|
207
216
|
salesTaxAmount: components.Amount$inboundSchema.optional(),
|
|
217
|
+
foreignID: z.string().optional(),
|
|
208
218
|
request$: z.instanceof(Request),
|
|
209
219
|
response$: z.instanceof(Response),
|
|
210
220
|
body$: z.string(),
|
|
@@ -245,6 +255,7 @@ export type Transfer$Outbound = {
|
|
|
245
255
|
occurrenceID?: string | undefined;
|
|
246
256
|
paymentLinkCode?: string | undefined;
|
|
247
257
|
salesTaxAmount?: components.Amount$Outbound | undefined;
|
|
258
|
+
foreignID?: string | undefined;
|
|
248
259
|
};
|
|
249
260
|
|
|
250
261
|
/** @internal */
|
|
@@ -282,6 +293,7 @@ export const Transfer$outboundSchema: z.ZodType<
|
|
|
282
293
|
occurrenceID: z.string().optional(),
|
|
283
294
|
paymentLinkCode: z.string().optional(),
|
|
284
295
|
salesTaxAmount: components.Amount$outboundSchema.optional(),
|
|
296
|
+
foreignID: z.string().optional(),
|
|
285
297
|
}));
|
|
286
298
|
|
|
287
299
|
/**
|