@moovio/sdk 26.7.0-dev.3 → 26.7.0-dev.4
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 +90 -86
- package/bin/mcp-server.js +664 -356
- package/bin/mcp-server.js.map +65 -63
- package/funcs/accountsCreate.d.ts +8 -10
- package/funcs/accountsCreate.d.ts.map +1 -1
- package/funcs/accountsCreate.js +8 -10
- package/funcs/accountsCreate.js.map +1 -1
- package/funcs/capabilitiesDisable.d.ts +1 -1
- package/funcs/capabilitiesDisable.js +1 -1
- package/funcs/capabilitiesGet.d.ts +1 -1
- package/funcs/capabilitiesGet.js +1 -1
- package/funcs/capabilitiesList.d.ts +1 -1
- package/funcs/capabilitiesList.js +1 -1
- package/funcs/capabilitiesRequest.d.ts +1 -1
- package/funcs/capabilitiesRequest.js +1 -1
- package/funcs/cardIssuingGet.js +1 -1
- package/funcs/cardIssuingGet.js.map +1 -1
- package/funcs/cardIssuingGetFull.js +1 -1
- package/funcs/cardIssuingGetFull.js.map +1 -1
- package/funcs/cardIssuingList.js +1 -1
- package/funcs/cardIssuingList.js.map +1 -1
- package/funcs/cardIssuingRequest.js +1 -1
- package/funcs/cardIssuingRequest.js.map +1 -1
- package/funcs/cardIssuingUpdate.js +1 -1
- package/funcs/cardIssuingUpdate.js.map +1 -1
- package/funcs/transfersListCancellations.d.ts +17 -0
- package/funcs/transfersListCancellations.d.ts.map +1 -0
- package/funcs/transfersListCancellations.js +129 -0
- package/funcs/transfersListCancellations.js.map +1 -0
- package/hooks/types.d.ts +1 -0
- package/hooks/types.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/encodings.js +12 -12
- package/lib/encodings.js.map +1 -1
- package/lib/matchers.js +3 -3
- package/lib/matchers.js.map +1 -1
- package/lib/primitives.d.ts +1 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +18 -0
- package/lib/primitives.js.map +1 -1
- package/lib/retries.js +7 -0
- package/lib/retries.js.map +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +50 -16
- package/lib/sdks.js.map +1 -1
- 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/accountsCreate.d.ts.map +1 -1
- package/mcp-server/tools/accountsCreate.js +8 -10
- package/mcp-server/tools/accountsCreate.js.map +1 -1
- package/mcp-server/tools/capabilitiesDisable.js +1 -1
- package/mcp-server/tools/capabilitiesGet.js +1 -1
- package/mcp-server/tools/capabilitiesList.js +1 -1
- package/mcp-server/tools/capabilitiesRequest.js +1 -1
- package/mcp-server/tools/transfersListCancellations.d.ts +8 -0
- package/mcp-server/tools/transfersListCancellations.d.ts.map +1 -0
- package/{models/components/authorizeduser.js → mcp-server/tools/transfersListCancellations.js} +27 -23
- package/mcp-server/tools/transfersListCancellations.js.map +1 -0
- package/models/components/addcapabilities.d.ts +9 -0
- package/models/components/addcapabilities.d.ts.map +1 -1
- package/models/components/addcapabilities.js.map +1 -1
- package/models/components/amountdecimalrange.d.ts +15 -4
- package/models/components/amountdecimalrange.d.ts.map +1 -1
- package/models/components/amountdecimalrange.js +5 -4
- package/models/components/amountdecimalrange.js.map +1 -1
- package/models/components/amountdecimalrangeupdate.d.ts +11 -0
- package/models/components/amountdecimalrangeupdate.d.ts.map +1 -1
- package/models/components/amountdecimalrangeupdate.js.map +1 -1
- package/models/components/capability.d.ts +7 -1
- package/models/components/capability.d.ts.map +1 -1
- package/models/components/capability.js.map +1 -1
- package/models/components/capabilityid.d.ts +14 -2
- package/models/components/capabilityid.d.ts.map +1 -1
- package/models/components/capabilityid.js +7 -1
- package/models/components/capabilityid.js.map +1 -1
- package/models/components/createaccount.d.ts +9 -0
- package/models/components/createaccount.d.ts.map +1 -1
- package/models/components/createaccount.js.map +1 -1
- package/models/components/createpaymentlink.d.ts +9 -3
- package/models/components/createpaymentlink.d.ts.map +1 -1
- package/models/components/createpaymentlink.js +4 -0
- package/models/components/createpaymentlink.js.map +1 -1
- package/models/components/customamountpaymentdetailserror.d.ts +29 -0
- package/models/components/customamountpaymentdetailserror.d.ts.map +1 -0
- package/models/components/customamountpaymentdetailserror.js +71 -0
- package/models/components/customamountpaymentdetailserror.js.map +1 -0
- package/models/components/fullissuedcard.d.ts +25 -9
- package/models/components/fullissuedcard.d.ts.map +1 -1
- package/models/components/fullissuedcard.js +11 -5
- package/models/components/fullissuedcard.js.map +1 -1
- package/models/components/index.d.ts +4 -4
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -4
- package/models/components/index.js.map +1 -1
- package/models/components/issuedcard.d.ts +25 -9
- package/models/components/issuedcard.d.ts.map +1 -1
- package/models/components/issuedcard.js +11 -5
- package/models/components/issuedcard.js.map +1 -1
- package/models/components/onboardinginvite.d.ts +1 -1
- package/models/components/onboardinginviterequest.d.ts +1 -1
- package/models/components/paymentlink.d.ts +13 -2
- package/models/components/paymentlink.d.ts.map +1 -1
- package/models/components/paymentlink.js +4 -0
- package/models/components/paymentlink.js.map +1 -1
- package/models/components/paymentlinkcustomamountpaymentdetails.d.ts +70 -0
- package/models/components/paymentlinkcustomamountpaymentdetails.d.ts.map +1 -0
- package/models/components/paymentlinkcustomamountpaymentdetails.js +74 -0
- package/models/components/paymentlinkcustomamountpaymentdetails.js.map +1 -0
- package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts +70 -0
- package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts.map +1 -0
- package/models/components/paymentlinkcustomamountpaymentdetailsupdate.js +75 -0
- package/models/components/paymentlinkcustomamountpaymentdetailsupdate.js.map +1 -0
- package/models/components/paymentlinkpaymentdetails.d.ts +0 -33
- package/models/components/paymentlinkpaymentdetails.d.ts.map +1 -1
- package/models/components/paymentlinkpaymentdetails.js +1 -21
- package/models/components/paymentlinkpaymentdetails.js.map +1 -1
- package/models/components/paymentlinkpaymentdetailsupdate.d.ts +0 -33
- package/models/components/paymentlinkpaymentdetailsupdate.d.ts.map +1 -1
- package/models/components/paymentlinkpaymentdetailsupdate.js +1 -21
- package/models/components/paymentlinkpaymentdetailsupdate.js.map +1 -1
- package/models/components/paymentlinktype.d.ts +1 -0
- package/models/components/paymentlinktype.d.ts.map +1 -1
- package/models/components/paymentlinktype.js +1 -0
- package/models/components/paymentlinktype.js.map +1 -1
- package/models/components/requestcard.d.ts +14 -17
- package/models/components/requestcard.d.ts.map +1 -1
- package/models/components/requestcard.js +9 -10
- package/models/components/requestcard.js.map +1 -1
- package/models/components/updateissuedcard.d.ts +33 -8
- package/models/components/updateissuedcard.d.ts.map +1 -1
- package/models/components/updateissuedcard.js +35 -6
- package/models/components/updateissuedcard.js.map +1 -1
- package/models/components/updatepaymentlink.d.ts +6 -0
- package/models/components/updatepaymentlink.d.ts.map +1 -1
- package/models/components/updatepaymentlink.js +3 -0
- package/models/components/updatepaymentlink.js.map +1 -1
- package/models/components/webhookdata.d.ts +3 -2
- package/models/components/webhookdata.d.ts.map +1 -1
- package/models/components/webhookdata.js +7 -4
- package/models/components/webhookdata.js.map +1 -1
- package/models/components/webhookdataauthorizationexpiring.d.ts +23 -0
- package/models/components/webhookdataauthorizationexpiring.d.ts.map +1 -0
- package/models/components/{createauthorizedusererror.js → webhookdataauthorizationexpiring.js} +18 -17
- package/models/components/webhookdataauthorizationexpiring.js.map +1 -0
- package/models/components/webhookdatacapabilityrequested.d.ts +7 -1
- package/models/components/webhookdatacapabilityrequested.d.ts.map +1 -1
- package/models/components/webhookdatacapabilityrequested.js.map +1 -1
- package/models/components/webhookdatacapabilityupdated.d.ts +7 -1
- package/models/components/webhookdatacapabilityupdated.d.ts.map +1 -1
- package/models/components/webhookdatacapabilityupdated.js.map +1 -1
- package/models/components/webhookdatasweepcreated.d.ts +5 -0
- package/models/components/webhookdatasweepcreated.d.ts.map +1 -1
- package/models/components/webhookdatasweepcreated.js +2 -0
- package/models/components/webhookdatasweepcreated.js.map +1 -1
- package/models/components/webhookdatasweepupdated.d.ts +5 -0
- package/models/components/webhookdatasweepupdated.d.ts.map +1 -1
- package/models/components/webhookdatasweepupdated.js +2 -0
- package/models/components/webhookdatasweepupdated.js.map +1 -1
- package/models/components/webhookeventtype.d.ts +1 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +1 -0
- package/models/components/webhookeventtype.js.map +1 -1
- package/models/errors/createpaymentlinkerror.d.ts +3 -0
- package/models/errors/createpaymentlinkerror.d.ts.map +1 -1
- package/models/errors/createpaymentlinkerror.js +6 -0
- package/models/errors/createpaymentlinkerror.js.map +1 -1
- package/models/errors/requestcarderror.d.ts +12 -12
- package/models/errors/requestcarderror.d.ts.map +1 -1
- package/models/errors/requestcarderror.js +17 -17
- package/models/errors/requestcarderror.js.map +1 -1
- package/models/errors/updateissuedcarderror.d.ts +9 -6
- package/models/errors/updateissuedcarderror.d.ts.map +1 -1
- package/models/errors/updateissuedcarderror.js +12 -9
- package/models/errors/updateissuedcarderror.js.map +1 -1
- package/models/errors/updatepaymentlinkerror.d.ts +3 -0
- package/models/errors/updatepaymentlinkerror.d.ts.map +1 -1
- package/models/errors/updatepaymentlinkerror.js +6 -0
- package/models/errors/updatepaymentlinkerror.js.map +1 -1
- package/models/operations/disablecapability.d.ts +7 -1
- package/models/operations/disablecapability.d.ts.map +1 -1
- package/models/operations/disablecapability.js.map +1 -1
- package/models/operations/getcapability.d.ts +7 -1
- package/models/operations/getcapability.d.ts.map +1 -1
- package/models/operations/getcapability.js.map +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/listcancellations.d.ts +45 -0
- package/models/operations/listcancellations.d.ts.map +1 -0
- package/models/operations/listcancellations.js +91 -0
- package/models/operations/listcancellations.js.map +1 -0
- package/package.json +1 -1
- package/sdk/accounts.d.ts +8 -10
- package/sdk/accounts.d.ts.map +1 -1
- package/sdk/accounts.js +8 -10
- package/sdk/accounts.js.map +1 -1
- package/sdk/capabilities.d.ts +4 -4
- package/sdk/capabilities.js +4 -4
- package/sdk/transfers.d.ts +7 -0
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +10 -0
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/accountsCreate.ts +8 -10
- package/src/funcs/capabilitiesDisable.ts +1 -1
- package/src/funcs/capabilitiesGet.ts +1 -1
- package/src/funcs/capabilitiesList.ts +1 -1
- package/src/funcs/capabilitiesRequest.ts +1 -1
- package/src/funcs/cardIssuingGet.ts +1 -1
- package/src/funcs/cardIssuingGetFull.ts +3 -3
- package/src/funcs/cardIssuingList.ts +1 -1
- package/src/funcs/cardIssuingRequest.ts +1 -1
- package/src/funcs/cardIssuingUpdate.ts +1 -1
- package/src/funcs/transfersListCancellations.ts +181 -0
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +1 -1
- package/src/lib/matchers.ts +1 -1
- package/src/lib/primitives.ts +16 -0
- package/src/lib/retries.ts +8 -0
- package/src/lib/sdks.ts +54 -17
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/accountsCreate.ts +8 -10
- package/src/mcp-server/tools/capabilitiesDisable.ts +1 -1
- package/src/mcp-server/tools/capabilitiesGet.ts +1 -1
- package/src/mcp-server/tools/capabilitiesList.ts +1 -1
- package/src/mcp-server/tools/capabilitiesRequest.ts +1 -1
- package/src/mcp-server/tools/transfersListCancellations.ts +38 -0
- package/src/models/components/addcapabilities.ts +9 -0
- package/src/models/components/amountdecimalrange.ts +20 -8
- package/src/models/components/amountdecimalrangeupdate.ts +11 -0
- package/src/models/components/capability.ts +7 -1
- package/src/models/components/capabilityid.ts +14 -2
- package/src/models/components/createaccount.ts +9 -0
- package/src/models/components/createpaymentlink.ts +21 -3
- package/src/models/components/customamountpaymentdetailserror.ts +86 -0
- package/src/models/components/fullissuedcard.ts +35 -17
- package/src/models/components/index.ts +4 -4
- package/src/models/components/issuedcard.ts +35 -17
- package/src/models/components/onboardinginvite.ts +1 -1
- package/src/models/components/onboardinginviterequest.ts +1 -1
- package/src/models/components/paymentlink.ts +25 -2
- package/src/models/components/paymentlinkcustomamountpaymentdetails.ts +138 -0
- package/src/models/components/paymentlinkcustomamountpaymentdetailsupdate.ts +149 -0
- package/src/models/components/paymentlinkpaymentdetails.ts +0 -60
- package/src/models/components/paymentlinkpaymentdetailsupdate.ts +0 -61
- package/src/models/components/paymentlinktype.ts +1 -0
- package/src/models/components/requestcard.ts +23 -34
- package/src/models/components/updateissuedcard.ts +73 -17
- package/src/models/components/updatepaymentlink.ts +18 -0
- package/src/models/components/webhookdata.ts +18 -8
- package/src/models/components/webhookdataauthorizationexpiring.ts +66 -0
- package/src/models/components/webhookdatacapabilityrequested.ts +7 -1
- package/src/models/components/webhookdatacapabilityupdated.ts +7 -1
- package/src/models/components/webhookdatasweepcreated.ts +7 -0
- package/src/models/components/webhookdatasweepupdated.ts +7 -0
- package/src/models/components/webhookeventtype.ts +1 -0
- package/src/models/errors/createpaymentlinkerror.ts +13 -0
- package/src/models/errors/requestcarderror.ts +26 -27
- package/src/models/errors/updateissuedcarderror.ts +18 -15
- package/src/models/errors/updatepaymentlinkerror.ts +13 -0
- package/src/models/operations/disablecapability.ts +7 -1
- package/src/models/operations/getcapability.ts +7 -1
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listcancellations.ts +121 -0
- package/src/sdk/accounts.ts +8 -10
- package/src/sdk/capabilities.ts +4 -4
- package/src/sdk/transfers.ts +18 -0
- package/lib/dlv.d.ts +0 -14
- package/lib/dlv.d.ts.map +0 -1
- package/lib/dlv.js +0 -49
- package/lib/dlv.js.map +0 -1
- package/lib/is-plain-object.d.ts +0 -2
- package/lib/is-plain-object.d.ts.map +0 -1
- package/lib/is-plain-object.js +0 -41
- package/lib/is-plain-object.js.map +0 -1
- package/models/components/authorizeduser.d.ts +0 -22
- package/models/components/authorizeduser.d.ts.map +0 -1
- package/models/components/authorizeduser.js.map +0 -1
- package/models/components/createauthorizeduser.d.ts +0 -25
- package/models/components/createauthorizeduser.d.ts.map +0 -1
- package/models/components/createauthorizeduser.js +0 -64
- package/models/components/createauthorizeduser.js.map +0 -1
- package/models/components/createauthorizedusererror.d.ts +0 -22
- package/models/components/createauthorizedusererror.d.ts.map +0 -1
- package/models/components/createauthorizedusererror.js.map +0 -1
- package/models/components/createauthorizeduserupdate.d.ts +0 -25
- package/models/components/createauthorizeduserupdate.d.ts.map +0 -1
- package/models/components/createauthorizeduserupdate.js +0 -64
- package/models/components/createauthorizeduserupdate.js.map +0 -1
- package/src/lib/dlv.ts +0 -53
- package/src/lib/is-plain-object.ts +0 -43
- package/src/models/components/authorizeduser.ts +0 -55
- package/src/models/components/createauthorizeduser.ts +0 -69
- package/src/models/components/createauthorizedusererror.ts +0 -66
- package/src/models/components/createauthorizeduserupdate.ts +0 -69
|
@@ -7,18 +7,21 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import * as types from "../../types/primitives.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
CreateAuthorizedUserUpdate,
|
|
12
|
-
CreateAuthorizedUserUpdate$inboundSchema,
|
|
13
|
-
CreateAuthorizedUserUpdate$Outbound,
|
|
14
|
-
CreateAuthorizedUserUpdate$outboundSchema,
|
|
15
|
-
} from "./createauthorizeduserupdate.js";
|
|
16
10
|
import {
|
|
17
11
|
UpdateIssuedCardState,
|
|
18
12
|
UpdateIssuedCardState$inboundSchema,
|
|
19
13
|
UpdateIssuedCardState$outboundSchema,
|
|
20
14
|
} from "./updateissuedcardstate.js";
|
|
21
15
|
|
|
16
|
+
export type BillingAddress = {
|
|
17
|
+
addressLine1?: string | undefined;
|
|
18
|
+
addressLine2?: string | undefined;
|
|
19
|
+
city?: string | undefined;
|
|
20
|
+
stateOrProvince?: string | undefined;
|
|
21
|
+
postalCode?: string | undefined;
|
|
22
|
+
country?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
22
25
|
export type UpdateIssuedCard = {
|
|
23
26
|
/**
|
|
24
27
|
* Updates the state of a Moov issued card.
|
|
@@ -27,13 +30,61 @@ export type UpdateIssuedCard = {
|
|
|
27
30
|
* - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
|
|
28
31
|
*/
|
|
29
32
|
state?: UpdateIssuedCardState | undefined;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
nickname?: string | null | undefined;
|
|
34
|
+
metadata?: { [k: string]: string } | null | undefined;
|
|
35
|
+
billingAddress?: BillingAddress | null | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const BillingAddress$inboundSchema: z.ZodType<
|
|
40
|
+
BillingAddress,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
unknown
|
|
43
|
+
> = z.object({
|
|
44
|
+
addressLine1: types.optional(types.string()),
|
|
45
|
+
addressLine2: types.optional(types.string()),
|
|
46
|
+
city: types.optional(types.string()),
|
|
47
|
+
stateOrProvince: types.optional(types.string()),
|
|
48
|
+
postalCode: types.optional(types.string()),
|
|
49
|
+
country: types.optional(types.string()),
|
|
50
|
+
});
|
|
51
|
+
/** @internal */
|
|
52
|
+
export type BillingAddress$Outbound = {
|
|
53
|
+
addressLine1?: string | undefined;
|
|
54
|
+
addressLine2?: string | undefined;
|
|
55
|
+
city?: string | undefined;
|
|
56
|
+
stateOrProvince?: string | undefined;
|
|
57
|
+
postalCode?: string | undefined;
|
|
58
|
+
country?: string | undefined;
|
|
35
59
|
};
|
|
36
60
|
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const BillingAddress$outboundSchema: z.ZodType<
|
|
63
|
+
BillingAddress$Outbound,
|
|
64
|
+
z.ZodTypeDef,
|
|
65
|
+
BillingAddress
|
|
66
|
+
> = z.object({
|
|
67
|
+
addressLine1: z.string().optional(),
|
|
68
|
+
addressLine2: z.string().optional(),
|
|
69
|
+
city: z.string().optional(),
|
|
70
|
+
stateOrProvince: z.string().optional(),
|
|
71
|
+
postalCode: z.string().optional(),
|
|
72
|
+
country: z.string().optional(),
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export function billingAddressToJSON(billingAddress: BillingAddress): string {
|
|
76
|
+
return JSON.stringify(BillingAddress$outboundSchema.parse(billingAddress));
|
|
77
|
+
}
|
|
78
|
+
export function billingAddressFromJSON(
|
|
79
|
+
jsonString: string,
|
|
80
|
+
): SafeParseResult<BillingAddress, SDKValidationError> {
|
|
81
|
+
return safeParse(
|
|
82
|
+
jsonString,
|
|
83
|
+
(x) => BillingAddress$inboundSchema.parse(JSON.parse(x)),
|
|
84
|
+
`Failed to parse 'BillingAddress' from JSON`,
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
37
88
|
/** @internal */
|
|
38
89
|
export const UpdateIssuedCard$inboundSchema: z.ZodType<
|
|
39
90
|
UpdateIssuedCard,
|
|
@@ -41,14 +92,17 @@ export const UpdateIssuedCard$inboundSchema: z.ZodType<
|
|
|
41
92
|
unknown
|
|
42
93
|
> = z.object({
|
|
43
94
|
state: types.optional(UpdateIssuedCardState$inboundSchema),
|
|
44
|
-
|
|
45
|
-
|
|
95
|
+
nickname: z.nullable(types.string()).optional(),
|
|
96
|
+
metadata: z.nullable(z.record(types.string())).optional(),
|
|
97
|
+
billingAddress: z.nullable(z.lazy(() => BillingAddress$inboundSchema))
|
|
98
|
+
.optional(),
|
|
46
99
|
});
|
|
47
100
|
/** @internal */
|
|
48
101
|
export type UpdateIssuedCard$Outbound = {
|
|
49
102
|
state?: string | undefined;
|
|
50
|
-
|
|
51
|
-
|
|
103
|
+
nickname?: string | null | undefined;
|
|
104
|
+
metadata?: { [k: string]: string } | null | undefined;
|
|
105
|
+
billingAddress?: BillingAddress$Outbound | null | undefined;
|
|
52
106
|
};
|
|
53
107
|
|
|
54
108
|
/** @internal */
|
|
@@ -58,8 +112,10 @@ export const UpdateIssuedCard$outboundSchema: z.ZodType<
|
|
|
58
112
|
UpdateIssuedCard
|
|
59
113
|
> = z.object({
|
|
60
114
|
state: UpdateIssuedCardState$outboundSchema.optional(),
|
|
61
|
-
|
|
62
|
-
|
|
115
|
+
nickname: z.nullable(z.string()).optional(),
|
|
116
|
+
metadata: z.nullable(z.record(z.string())).optional(),
|
|
117
|
+
billingAddress: z.nullable(z.lazy(() => BillingAddress$outboundSchema))
|
|
118
|
+
.optional(),
|
|
63
119
|
});
|
|
64
120
|
|
|
65
121
|
export function updateIssuedCardToJSON(
|
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
CreatePaymentLinkLineItemsUpdate$Outbound,
|
|
20
20
|
CreatePaymentLinkLineItemsUpdate$outboundSchema,
|
|
21
21
|
} from "./createpaymentlinklineitemsupdate.js";
|
|
22
|
+
import {
|
|
23
|
+
PaymentLinkCustomAmountPaymentDetailsUpdate,
|
|
24
|
+
PaymentLinkCustomAmountPaymentDetailsUpdate$inboundSchema,
|
|
25
|
+
PaymentLinkCustomAmountPaymentDetailsUpdate$Outbound,
|
|
26
|
+
PaymentLinkCustomAmountPaymentDetailsUpdate$outboundSchema,
|
|
27
|
+
} from "./paymentlinkcustomamountpaymentdetailsupdate.js";
|
|
22
28
|
import {
|
|
23
29
|
PaymentLinkCustomerOptions,
|
|
24
30
|
PaymentLinkCustomerOptions$inboundSchema,
|
|
@@ -63,6 +69,10 @@ export type UpdatePaymentLink = {
|
|
|
63
69
|
*/
|
|
64
70
|
payment?: PaymentLinkPaymentDetailsUpdate | undefined;
|
|
65
71
|
payout?: PaymentLinkPayoutDetailsUpdate | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Options for a custom amount payment link. A payment link's type cannot be changed after creation.
|
|
74
|
+
*/
|
|
75
|
+
customAmountPayment?: PaymentLinkCustomAmountPaymentDetailsUpdate | undefined;
|
|
66
76
|
/**
|
|
67
77
|
* An optional collection of line items for a payment link.
|
|
68
78
|
*
|
|
@@ -85,6 +95,9 @@ export const UpdatePaymentLink$inboundSchema: z.ZodType<
|
|
|
85
95
|
customer: types.optional(PaymentLinkCustomerOptions$inboundSchema),
|
|
86
96
|
payment: types.optional(PaymentLinkPaymentDetailsUpdate$inboundSchema),
|
|
87
97
|
payout: types.optional(PaymentLinkPayoutDetailsUpdate$inboundSchema),
|
|
98
|
+
customAmountPayment: types.optional(
|
|
99
|
+
PaymentLinkCustomAmountPaymentDetailsUpdate$inboundSchema,
|
|
100
|
+
),
|
|
88
101
|
lineItems: types.optional(CreatePaymentLinkLineItemsUpdate$inboundSchema),
|
|
89
102
|
amountDetails: types.optional(UpdatePaymentLinkAmountDetails$inboundSchema),
|
|
90
103
|
});
|
|
@@ -96,6 +109,9 @@ export type UpdatePaymentLink$Outbound = {
|
|
|
96
109
|
customer?: PaymentLinkCustomerOptions$Outbound | undefined;
|
|
97
110
|
payment?: PaymentLinkPaymentDetailsUpdate$Outbound | undefined;
|
|
98
111
|
payout?: PaymentLinkPayoutDetailsUpdate$Outbound | undefined;
|
|
112
|
+
customAmountPayment?:
|
|
113
|
+
| PaymentLinkCustomAmountPaymentDetailsUpdate$Outbound
|
|
114
|
+
| undefined;
|
|
99
115
|
lineItems?: CreatePaymentLinkLineItemsUpdate$Outbound | undefined;
|
|
100
116
|
amountDetails?: UpdatePaymentLinkAmountDetails$Outbound | undefined;
|
|
101
117
|
};
|
|
@@ -112,6 +128,8 @@ export const UpdatePaymentLink$outboundSchema: z.ZodType<
|
|
|
112
128
|
customer: PaymentLinkCustomerOptions$outboundSchema.optional(),
|
|
113
129
|
payment: PaymentLinkPaymentDetailsUpdate$outboundSchema.optional(),
|
|
114
130
|
payout: PaymentLinkPayoutDetailsUpdate$outboundSchema.optional(),
|
|
131
|
+
customAmountPayment:
|
|
132
|
+
PaymentLinkCustomAmountPaymentDetailsUpdate$outboundSchema.optional(),
|
|
115
133
|
lineItems: CreatePaymentLinkLineItemsUpdate$outboundSchema.optional(),
|
|
116
134
|
amountDetails: UpdatePaymentLinkAmountDetails$outboundSchema.optional(),
|
|
117
135
|
});
|
|
@@ -31,6 +31,12 @@ import {
|
|
|
31
31
|
WebhookDataAccountUpdated$Outbound,
|
|
32
32
|
WebhookDataAccountUpdated$outboundSchema,
|
|
33
33
|
} from "./webhookdataaccountupdated.js";
|
|
34
|
+
import {
|
|
35
|
+
WebhookDataAuthorizationExpiring,
|
|
36
|
+
WebhookDataAuthorizationExpiring$inboundSchema,
|
|
37
|
+
WebhookDataAuthorizationExpiring$Outbound,
|
|
38
|
+
WebhookDataAuthorizationExpiring$outboundSchema,
|
|
39
|
+
} from "./webhookdataauthorizationexpiring.js";
|
|
34
40
|
import {
|
|
35
41
|
WebhookDataBalanceUpdated,
|
|
36
42
|
WebhookDataBalanceUpdated$inboundSchema,
|
|
@@ -239,7 +245,9 @@ export type WebhookData =
|
|
|
239
245
|
| WebhookDataTransferUpdated
|
|
240
246
|
| WebhookDataBankAccountUpdated
|
|
241
247
|
| WebhookDataRefundUpdated
|
|
248
|
+
| WebhookDataSweepUpdated
|
|
242
249
|
| WebhookDataWalletTransactionUpdated
|
|
250
|
+
| WebhookDataAuthorizationExpiring
|
|
243
251
|
| WebhookDataBankAccountCreated
|
|
244
252
|
| WebhookDataBankAccountDeleted
|
|
245
253
|
| WebhookDataCancellationCreated
|
|
@@ -250,7 +258,7 @@ export type WebhookData =
|
|
|
250
258
|
| WebhookDataPaymentMethodEnabled
|
|
251
259
|
| WebhookDataPaymentMethodDisabled
|
|
252
260
|
| WebhookDataRefundCreated
|
|
253
|
-
|
|
|
261
|
+
| WebhookDataSweepCreated
|
|
254
262
|
| WebhookDataTicketUpdated
|
|
255
263
|
| WebhookDataTransferCreated
|
|
256
264
|
| WebhookDataWalletUpdated
|
|
@@ -260,7 +268,6 @@ export type WebhookData =
|
|
|
260
268
|
| WebhookDataRepresentativeCreated
|
|
261
269
|
| WebhookDataRepresentativeUpdated
|
|
262
270
|
| WebhookDataRepresentativeDisabled
|
|
263
|
-
| WebhookDataSweepCreated
|
|
264
271
|
| WebhookDataTerminalApplicationCreated
|
|
265
272
|
| WebhookDataTerminalApplicationUpdated
|
|
266
273
|
| WebhookDataTicketCreated
|
|
@@ -283,7 +290,9 @@ export const WebhookData$inboundSchema: z.ZodType<
|
|
|
283
290
|
WebhookDataTransferUpdated$inboundSchema,
|
|
284
291
|
WebhookDataBankAccountUpdated$inboundSchema,
|
|
285
292
|
WebhookDataRefundUpdated$inboundSchema,
|
|
293
|
+
WebhookDataSweepUpdated$inboundSchema,
|
|
286
294
|
WebhookDataWalletTransactionUpdated$inboundSchema,
|
|
295
|
+
WebhookDataAuthorizationExpiring$inboundSchema,
|
|
287
296
|
WebhookDataBankAccountCreated$inboundSchema,
|
|
288
297
|
WebhookDataBankAccountDeleted$inboundSchema,
|
|
289
298
|
WebhookDataCancellationCreated$inboundSchema,
|
|
@@ -294,7 +303,7 @@ export const WebhookData$inboundSchema: z.ZodType<
|
|
|
294
303
|
WebhookDataPaymentMethodEnabled$inboundSchema,
|
|
295
304
|
WebhookDataPaymentMethodDisabled$inboundSchema,
|
|
296
305
|
WebhookDataRefundCreated$inboundSchema,
|
|
297
|
-
|
|
306
|
+
WebhookDataSweepCreated$inboundSchema,
|
|
298
307
|
WebhookDataTicketUpdated$inboundSchema,
|
|
299
308
|
WebhookDataTransferCreated$inboundSchema,
|
|
300
309
|
WebhookDataWalletUpdated$inboundSchema,
|
|
@@ -304,7 +313,6 @@ export const WebhookData$inboundSchema: z.ZodType<
|
|
|
304
313
|
WebhookDataRepresentativeCreated$inboundSchema,
|
|
305
314
|
WebhookDataRepresentativeUpdated$inboundSchema,
|
|
306
315
|
WebhookDataRepresentativeDisabled$inboundSchema,
|
|
307
|
-
WebhookDataSweepCreated$inboundSchema,
|
|
308
316
|
WebhookDataTerminalApplicationCreated$inboundSchema,
|
|
309
317
|
WebhookDataTerminalApplicationUpdated$inboundSchema,
|
|
310
318
|
WebhookDataTicketCreated$inboundSchema,
|
|
@@ -323,7 +331,9 @@ export type WebhookData$Outbound =
|
|
|
323
331
|
| WebhookDataTransferUpdated$Outbound
|
|
324
332
|
| WebhookDataBankAccountUpdated$Outbound
|
|
325
333
|
| WebhookDataRefundUpdated$Outbound
|
|
334
|
+
| WebhookDataSweepUpdated$Outbound
|
|
326
335
|
| WebhookDataWalletTransactionUpdated$Outbound
|
|
336
|
+
| WebhookDataAuthorizationExpiring$Outbound
|
|
327
337
|
| WebhookDataBankAccountCreated$Outbound
|
|
328
338
|
| WebhookDataBankAccountDeleted$Outbound
|
|
329
339
|
| WebhookDataCancellationCreated$Outbound
|
|
@@ -334,7 +344,7 @@ export type WebhookData$Outbound =
|
|
|
334
344
|
| WebhookDataPaymentMethodEnabled$Outbound
|
|
335
345
|
| WebhookDataPaymentMethodDisabled$Outbound
|
|
336
346
|
| WebhookDataRefundCreated$Outbound
|
|
337
|
-
|
|
|
347
|
+
| WebhookDataSweepCreated$Outbound
|
|
338
348
|
| WebhookDataTicketUpdated$Outbound
|
|
339
349
|
| WebhookDataTransferCreated$Outbound
|
|
340
350
|
| WebhookDataWalletUpdated$Outbound
|
|
@@ -344,7 +354,6 @@ export type WebhookData$Outbound =
|
|
|
344
354
|
| WebhookDataRepresentativeCreated$Outbound
|
|
345
355
|
| WebhookDataRepresentativeUpdated$Outbound
|
|
346
356
|
| WebhookDataRepresentativeDisabled$Outbound
|
|
347
|
-
| WebhookDataSweepCreated$Outbound
|
|
348
357
|
| WebhookDataTerminalApplicationCreated$Outbound
|
|
349
358
|
| WebhookDataTerminalApplicationUpdated$Outbound
|
|
350
359
|
| WebhookDataTicketCreated$Outbound
|
|
@@ -367,7 +376,9 @@ export const WebhookData$outboundSchema: z.ZodType<
|
|
|
367
376
|
WebhookDataTransferUpdated$outboundSchema,
|
|
368
377
|
WebhookDataBankAccountUpdated$outboundSchema,
|
|
369
378
|
WebhookDataRefundUpdated$outboundSchema,
|
|
379
|
+
WebhookDataSweepUpdated$outboundSchema,
|
|
370
380
|
WebhookDataWalletTransactionUpdated$outboundSchema,
|
|
381
|
+
WebhookDataAuthorizationExpiring$outboundSchema,
|
|
371
382
|
WebhookDataBankAccountCreated$outboundSchema,
|
|
372
383
|
WebhookDataBankAccountDeleted$outboundSchema,
|
|
373
384
|
WebhookDataCancellationCreated$outboundSchema,
|
|
@@ -378,7 +389,7 @@ export const WebhookData$outboundSchema: z.ZodType<
|
|
|
378
389
|
WebhookDataPaymentMethodEnabled$outboundSchema,
|
|
379
390
|
WebhookDataPaymentMethodDisabled$outboundSchema,
|
|
380
391
|
WebhookDataRefundCreated$outboundSchema,
|
|
381
|
-
|
|
392
|
+
WebhookDataSweepCreated$outboundSchema,
|
|
382
393
|
WebhookDataTicketUpdated$outboundSchema,
|
|
383
394
|
WebhookDataTransferCreated$outboundSchema,
|
|
384
395
|
WebhookDataWalletUpdated$outboundSchema,
|
|
@@ -388,7 +399,6 @@ export const WebhookData$outboundSchema: z.ZodType<
|
|
|
388
399
|
WebhookDataRepresentativeCreated$outboundSchema,
|
|
389
400
|
WebhookDataRepresentativeUpdated$outboundSchema,
|
|
390
401
|
WebhookDataRepresentativeDisabled$outboundSchema,
|
|
391
|
-
WebhookDataSweepCreated$outboundSchema,
|
|
392
402
|
WebhookDataTerminalApplicationCreated$outboundSchema,
|
|
393
403
|
WebhookDataTerminalApplicationUpdated$outboundSchema,
|
|
394
404
|
WebhookDataTicketCreated$outboundSchema,
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type WebhookDataAuthorizationExpiring = {
|
|
12
|
+
merchantAccountID: string;
|
|
13
|
+
partnerAccountID: string;
|
|
14
|
+
authorizationID: string;
|
|
15
|
+
expiresOn: Date;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const WebhookDataAuthorizationExpiring$inboundSchema: z.ZodType<
|
|
20
|
+
WebhookDataAuthorizationExpiring,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
merchantAccountID: types.string(),
|
|
25
|
+
partnerAccountID: types.string(),
|
|
26
|
+
authorizationID: types.string(),
|
|
27
|
+
expiresOn: types.date(),
|
|
28
|
+
});
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type WebhookDataAuthorizationExpiring$Outbound = {
|
|
31
|
+
merchantAccountID: string;
|
|
32
|
+
partnerAccountID: string;
|
|
33
|
+
authorizationID: string;
|
|
34
|
+
expiresOn: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const WebhookDataAuthorizationExpiring$outboundSchema: z.ZodType<
|
|
39
|
+
WebhookDataAuthorizationExpiring$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
WebhookDataAuthorizationExpiring
|
|
42
|
+
> = z.object({
|
|
43
|
+
merchantAccountID: z.string(),
|
|
44
|
+
partnerAccountID: z.string(),
|
|
45
|
+
authorizationID: z.string(),
|
|
46
|
+
expiresOn: z.date().transform(v => v.toISOString()),
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export function webhookDataAuthorizationExpiringToJSON(
|
|
50
|
+
webhookDataAuthorizationExpiring: WebhookDataAuthorizationExpiring,
|
|
51
|
+
): string {
|
|
52
|
+
return JSON.stringify(
|
|
53
|
+
WebhookDataAuthorizationExpiring$outboundSchema.parse(
|
|
54
|
+
webhookDataAuthorizationExpiring,
|
|
55
|
+
),
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
export function webhookDataAuthorizationExpiringFromJSON(
|
|
59
|
+
jsonString: string,
|
|
60
|
+
): SafeParseResult<WebhookDataAuthorizationExpiring, SDKValidationError> {
|
|
61
|
+
return safeParse(
|
|
62
|
+
jsonString,
|
|
63
|
+
(x) => WebhookDataAuthorizationExpiring$inboundSchema.parse(JSON.parse(x)),
|
|
64
|
+
`Failed to parse 'WebhookDataAuthorizationExpiring' from JSON`,
|
|
65
|
+
);
|
|
66
|
+
}
|
|
@@ -21,7 +21,13 @@ export type WebhookDataCapabilityRequested = {
|
|
|
21
21
|
*
|
|
22
22
|
* @remarks
|
|
23
23
|
*
|
|
24
|
-
*
|
|
24
|
+
* **Deprecated capabilities**
|
|
25
|
+
*
|
|
26
|
+
* The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Request granular capabilities instead (for example, `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance`). Deprecated values will be removed in a future API version.
|
|
27
|
+
*
|
|
28
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
29
|
+
*
|
|
30
|
+
* The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in the list for your Partner account. These are read-only capabilities that Moov requests. These capabilities remain active with your account and require no additional action.
|
|
25
31
|
*/
|
|
26
32
|
capabilityID: CapabilityID;
|
|
27
33
|
};
|
|
@@ -26,7 +26,13 @@ export type WebhookDataCapabilityUpdated = {
|
|
|
26
26
|
*
|
|
27
27
|
* @remarks
|
|
28
28
|
*
|
|
29
|
-
*
|
|
29
|
+
* **Deprecated capabilities**
|
|
30
|
+
*
|
|
31
|
+
* The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Request granular capabilities instead (for example, `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance`). Deprecated values will be removed in a future API version.
|
|
32
|
+
*
|
|
33
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
34
|
+
*
|
|
35
|
+
* The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in the list for your Partner account. These are read-only capabilities that Moov requests. These capabilities remain active with your account and require no additional action.
|
|
30
36
|
*/
|
|
31
37
|
capabilityID: CapabilityID;
|
|
32
38
|
/**
|
|
@@ -9,6 +9,10 @@ import * as types from "../../types/primitives.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type WebhookDataSweepCreated = {
|
|
12
|
+
/**
|
|
13
|
+
* The accountID associated with the wallet being swept.
|
|
14
|
+
*/
|
|
15
|
+
accountID: string;
|
|
12
16
|
walletID: string;
|
|
13
17
|
sweepID: string;
|
|
14
18
|
};
|
|
@@ -19,11 +23,13 @@ export const WebhookDataSweepCreated$inboundSchema: z.ZodType<
|
|
|
19
23
|
z.ZodTypeDef,
|
|
20
24
|
unknown
|
|
21
25
|
> = z.object({
|
|
26
|
+
accountID: types.string(),
|
|
22
27
|
walletID: types.string(),
|
|
23
28
|
sweepID: types.string(),
|
|
24
29
|
});
|
|
25
30
|
/** @internal */
|
|
26
31
|
export type WebhookDataSweepCreated$Outbound = {
|
|
32
|
+
accountID: string;
|
|
27
33
|
walletID: string;
|
|
28
34
|
sweepID: string;
|
|
29
35
|
};
|
|
@@ -34,6 +40,7 @@ export const WebhookDataSweepCreated$outboundSchema: z.ZodType<
|
|
|
34
40
|
z.ZodTypeDef,
|
|
35
41
|
WebhookDataSweepCreated
|
|
36
42
|
> = z.object({
|
|
43
|
+
accountID: z.string(),
|
|
37
44
|
walletID: z.string(),
|
|
38
45
|
sweepID: z.string(),
|
|
39
46
|
});
|
|
@@ -14,6 +14,10 @@ import {
|
|
|
14
14
|
} from "./sweepstatus.js";
|
|
15
15
|
|
|
16
16
|
export type WebhookDataSweepUpdated = {
|
|
17
|
+
/**
|
|
18
|
+
* The accountID associated with the wallet being swept.
|
|
19
|
+
*/
|
|
20
|
+
accountID: string;
|
|
17
21
|
walletID: string;
|
|
18
22
|
sweepID: string;
|
|
19
23
|
transferID?: string | undefined;
|
|
@@ -26,6 +30,7 @@ export const WebhookDataSweepUpdated$inboundSchema: z.ZodType<
|
|
|
26
30
|
z.ZodTypeDef,
|
|
27
31
|
unknown
|
|
28
32
|
> = z.object({
|
|
33
|
+
accountID: types.string(),
|
|
29
34
|
walletID: types.string(),
|
|
30
35
|
sweepID: types.string(),
|
|
31
36
|
transferID: types.optional(types.string()),
|
|
@@ -33,6 +38,7 @@ export const WebhookDataSweepUpdated$inboundSchema: z.ZodType<
|
|
|
33
38
|
});
|
|
34
39
|
/** @internal */
|
|
35
40
|
export type WebhookDataSweepUpdated$Outbound = {
|
|
41
|
+
accountID: string;
|
|
36
42
|
walletID: string;
|
|
37
43
|
sweepID: string;
|
|
38
44
|
transferID?: string | undefined;
|
|
@@ -45,6 +51,7 @@ export const WebhookDataSweepUpdated$outboundSchema: z.ZodType<
|
|
|
45
51
|
z.ZodTypeDef,
|
|
46
52
|
WebhookDataSweepUpdated
|
|
47
53
|
> = z.object({
|
|
54
|
+
accountID: z.string(),
|
|
48
55
|
walletID: z.string(),
|
|
49
56
|
sweepID: z.string(),
|
|
50
57
|
transferID: z.string().optional(),
|
|
@@ -48,6 +48,7 @@ export const WebhookEventType = {
|
|
|
48
48
|
WalletUpdated: "wallet.updated",
|
|
49
49
|
WalletTransactionUpdated: "walletTransaction.updated",
|
|
50
50
|
BillingStatementCreated: "billingStatement.created",
|
|
51
|
+
AuthorizationExpiring: "authorization.expiring",
|
|
51
52
|
} as const;
|
|
52
53
|
/**
|
|
53
54
|
* The type of event that occurred.
|
|
@@ -16,6 +16,7 @@ export type CreatePaymentLinkErrorData = {
|
|
|
16
16
|
display?: components.DisplayOptionsError | undefined;
|
|
17
17
|
payment?: components.PaymentDetailsError | undefined;
|
|
18
18
|
payout?: components.PayoutDetailsError | undefined;
|
|
19
|
+
customAmountPayment?: components.CustomAmountPaymentDetailsError | undefined;
|
|
19
20
|
lineItems?: components.CreatePaymentLinkLineItemsValidationError | undefined;
|
|
20
21
|
amountDetails?:
|
|
21
22
|
| components.CreatePaymentLinkAmountDetailsValidationError
|
|
@@ -31,6 +32,7 @@ export class CreatePaymentLinkError extends MoovError {
|
|
|
31
32
|
display?: components.DisplayOptionsError | undefined;
|
|
32
33
|
payment?: components.PaymentDetailsError | undefined;
|
|
33
34
|
payout?: components.PayoutDetailsError | undefined;
|
|
35
|
+
customAmountPayment?: components.CustomAmountPaymentDetailsError | undefined;
|
|
34
36
|
lineItems?: components.CreatePaymentLinkLineItemsValidationError | undefined;
|
|
35
37
|
amountDetails?:
|
|
36
38
|
| components.CreatePaymentLinkAmountDetailsValidationError
|
|
@@ -60,6 +62,9 @@ export class CreatePaymentLinkError extends MoovError {
|
|
|
60
62
|
if (err.display != null) this.display = err.display;
|
|
61
63
|
if (err.payment != null) this.payment = err.payment;
|
|
62
64
|
if (err.payout != null) this.payout = err.payout;
|
|
65
|
+
if (err.customAmountPayment != null) {
|
|
66
|
+
this.customAmountPayment = err.customAmountPayment;
|
|
67
|
+
}
|
|
63
68
|
if (err.lineItems != null) this.lineItems = err.lineItems;
|
|
64
69
|
if (err.amountDetails != null) this.amountDetails = err.amountDetails;
|
|
65
70
|
|
|
@@ -81,6 +86,9 @@ export const CreatePaymentLinkError$inboundSchema: z.ZodType<
|
|
|
81
86
|
display: types.optional(components.DisplayOptionsError$inboundSchema),
|
|
82
87
|
payment: types.optional(components.PaymentDetailsError$inboundSchema),
|
|
83
88
|
payout: types.optional(components.PayoutDetailsError$inboundSchema),
|
|
89
|
+
customAmountPayment: types.optional(
|
|
90
|
+
components.CustomAmountPaymentDetailsError$inboundSchema,
|
|
91
|
+
),
|
|
84
92
|
lineItems: types.optional(
|
|
85
93
|
components.CreatePaymentLinkLineItemsValidationError$inboundSchema,
|
|
86
94
|
),
|
|
@@ -109,6 +117,9 @@ export type CreatePaymentLinkError$Outbound = {
|
|
|
109
117
|
display?: components.DisplayOptionsError$Outbound | undefined;
|
|
110
118
|
payment?: components.PaymentDetailsError$Outbound | undefined;
|
|
111
119
|
payout?: components.PayoutDetailsError$Outbound | undefined;
|
|
120
|
+
customAmountPayment?:
|
|
121
|
+
| components.CustomAmountPaymentDetailsError$Outbound
|
|
122
|
+
| undefined;
|
|
112
123
|
lineItems?:
|
|
113
124
|
| components.CreatePaymentLinkLineItemsValidationError$Outbound
|
|
114
125
|
| undefined;
|
|
@@ -133,6 +144,8 @@ export const CreatePaymentLinkError$outboundSchema: z.ZodType<
|
|
|
133
144
|
display: components.DisplayOptionsError$outboundSchema.optional(),
|
|
134
145
|
payment: components.PaymentDetailsError$outboundSchema.optional(),
|
|
135
146
|
payout: components.PayoutDetailsError$outboundSchema.optional(),
|
|
147
|
+
customAmountPayment: components
|
|
148
|
+
.CustomAmountPaymentDetailsError$outboundSchema.optional(),
|
|
136
149
|
lineItems: components
|
|
137
150
|
.CreatePaymentLinkLineItemsValidationError$outboundSchema.optional(),
|
|
138
151
|
amountDetails: components
|
|
@@ -8,19 +8,19 @@ import * as components from "../components/index.js";
|
|
|
8
8
|
import { MoovError } from "./mooverror.js";
|
|
9
9
|
|
|
10
10
|
export type RequestCardErrorData = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
authorizedUserAccountID?: string | undefined;
|
|
12
|
+
nickname?: string | undefined;
|
|
13
|
+
metadata?: string | undefined;
|
|
14
|
+
billingAddress?: components.AddressError | undefined;
|
|
15
15
|
expiration?: components.CardExpirationError | undefined;
|
|
16
16
|
controls?: components.IssuingControlsError | undefined;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
export class RequestCardError extends MoovError {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
authorizedUserAccountID?: string | undefined;
|
|
21
|
+
nickname?: string | undefined;
|
|
22
|
+
metadata?: string | undefined;
|
|
23
|
+
billingAddress?: components.AddressError | undefined;
|
|
24
24
|
expiration?: components.CardExpirationError | undefined;
|
|
25
25
|
controls?: components.IssuingControlsError | undefined;
|
|
26
26
|
|
|
@@ -36,10 +36,12 @@ export class RequestCardError extends MoovError {
|
|
|
36
36
|
: `API error occurred: ${JSON.stringify(err)}`;
|
|
37
37
|
super(message, httpMeta);
|
|
38
38
|
this.data$ = err;
|
|
39
|
-
if (err.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
if (err.
|
|
39
|
+
if (err.authorizedUserAccountID != null) {
|
|
40
|
+
this.authorizedUserAccountID = err.authorizedUserAccountID;
|
|
41
|
+
}
|
|
42
|
+
if (err.nickname != null) this.nickname = err.nickname;
|
|
43
|
+
if (err.metadata != null) this.metadata = err.metadata;
|
|
44
|
+
if (err.billingAddress != null) this.billingAddress = err.billingAddress;
|
|
43
45
|
if (err.expiration != null) this.expiration = err.expiration;
|
|
44
46
|
if (err.controls != null) this.controls = err.controls;
|
|
45
47
|
|
|
@@ -53,12 +55,10 @@ export const RequestCardError$inboundSchema: z.ZodType<
|
|
|
53
55
|
z.ZodTypeDef,
|
|
54
56
|
unknown
|
|
55
57
|
> = z.object({
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
),
|
|
61
|
-
memo: types.optional(types.string()),
|
|
58
|
+
authorizedUserAccountID: types.optional(types.string()),
|
|
59
|
+
nickname: types.optional(types.string()),
|
|
60
|
+
metadata: types.optional(types.string()),
|
|
61
|
+
billingAddress: types.optional(components.AddressError$inboundSchema),
|
|
62
62
|
expiration: types.optional(components.CardExpirationError$inboundSchema),
|
|
63
63
|
controls: types.optional(components.IssuingControlsError$inboundSchema),
|
|
64
64
|
request$: z.instanceof(Request),
|
|
@@ -75,10 +75,10 @@ export const RequestCardError$inboundSchema: z.ZodType<
|
|
|
75
75
|
|
|
76
76
|
/** @internal */
|
|
77
77
|
export type RequestCardError$Outbound = {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
authorizedUserAccountID?: string | undefined;
|
|
79
|
+
nickname?: string | undefined;
|
|
80
|
+
metadata?: string | undefined;
|
|
81
|
+
billingAddress?: components.AddressError$Outbound | undefined;
|
|
82
82
|
expiration?: components.CardExpirationError$Outbound | undefined;
|
|
83
83
|
controls?: components.IssuingControlsError$Outbound | undefined;
|
|
84
84
|
};
|
|
@@ -91,11 +91,10 @@ export const RequestCardError$outboundSchema: z.ZodType<
|
|
|
91
91
|
> = z.instanceof(RequestCardError)
|
|
92
92
|
.transform(v => v.data$)
|
|
93
93
|
.pipe(z.object({
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
memo: z.string().optional(),
|
|
94
|
+
authorizedUserAccountID: z.string().optional(),
|
|
95
|
+
nickname: z.string().optional(),
|
|
96
|
+
metadata: z.string().optional(),
|
|
97
|
+
billingAddress: components.AddressError$outboundSchema.optional(),
|
|
99
98
|
expiration: components.CardExpirationError$outboundSchema.optional(),
|
|
100
99
|
controls: components.IssuingControlsError$outboundSchema.optional(),
|
|
101
100
|
}));
|