@moovio/sdk 26.5.0 → 26.5.3
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 +91 -87
- package/bin/mcp-server.js +667 -331
- package/bin/mcp-server.js.map +78 -74
- 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/bankAccountsLink.d.ts +1 -1
- package/funcs/bankAccountsLink.js +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/bankAccountsLink.js +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/mcp-server/tools/transfersListCancellations.js +65 -0
- 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/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 +15 -2
- package/models/components/capabilityid.d.ts.map +1 -1
- package/models/components/capabilityid.js +8 -1
- package/models/components/capabilityid.js.map +1 -1
- package/models/components/cardtransactiondetails.d.ts +7 -0
- package/models/components/cardtransactiondetails.d.ts.map +1 -1
- package/models/components/cardtransactiondetails.js +5 -0
- package/models/components/cardtransactiondetails.js.map +1 -1
- package/models/components/cardtransactionstatus.d.ts +1 -0
- package/models/components/cardtransactionstatus.d.ts.map +1 -1
- package/models/components/cardtransactionstatus.js +1 -0
- package/models/components/cardtransactionstatus.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 +3 -3
- package/models/components/createtransferdestinationcard.d.ts +5 -0
- package/models/components/createtransferdestinationcard.d.ts.map +1 -1
- package/models/components/createtransferdestinationcard.js +2 -0
- package/models/components/createtransferdestinationcard.js.map +1 -1
- package/models/components/fullissuedcard.d.ts +26 -12
- 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 +6 -4
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +6 -4
- package/models/components/index.js.map +1 -1
- package/models/components/invoice.d.ts +6 -1
- package/models/components/invoice.d.ts.map +1 -1
- package/models/components/invoice.js +2 -0
- package/models/components/invoice.js.map +1 -1
- package/models/components/issuedcard.d.ts +26 -12
- 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/issuedcardstate.d.ts +2 -8
- package/models/components/issuedcardstate.d.ts.map +1 -1
- package/models/components/issuedcardstate.js +1 -5
- package/models/components/issuedcardstate.js.map +1 -1
- package/models/components/manualtermsofservice.d.ts +1 -1
- package/models/components/manualtermsofserviceupdate.d.ts +1 -1
- package/models/components/onboardinginvite.d.ts +1 -1
- package/models/components/onboardinginviterequest.d.ts +1 -1
- package/models/components/patchtransfer.d.ts +3 -0
- package/models/components/patchtransfer.d.ts.map +1 -1
- package/models/components/patchtransfer.js.map +1 -1
- package/models/components/paymentlink.d.ts +2 -2
- package/models/components/paymentlinkpayoutdetails.d.ts +11 -0
- package/models/components/paymentlinkpayoutdetails.d.ts.map +1 -1
- package/models/components/paymentlinkpayoutdetails.js +3 -0
- package/models/components/paymentlinkpayoutdetails.js.map +1 -1
- package/models/components/paymentlinkpayoutdetailsupdate.d.ts +11 -0
- package/models/components/paymentlinkpayoutdetailsupdate.d.ts.map +1 -1
- package/models/components/paymentlinkpayoutdetailsupdate.js +3 -0
- package/models/components/paymentlinkpayoutdetailsupdate.js.map +1 -1
- package/models/components/payoutdetailserror.d.ts +3 -0
- package/models/components/payoutdetailserror.d.ts.map +1 -1
- package/models/components/payoutdetailserror.js +3 -0
- package/models/components/payoutdetailserror.js.map +1 -1
- package/models/components/pushdeliveryspeed.d.ts +18 -0
- package/models/components/pushdeliveryspeed.d.ts.map +1 -0
- package/models/components/pushdeliveryspeed.js +52 -0
- package/models/components/pushdeliveryspeed.js.map +1 -0
- package/models/components/pushoptions.d.ts +35 -0
- package/models/components/pushoptions.d.ts.map +1 -0
- package/models/components/{createauthorizeduser.js → pushoptions.js} +15 -17
- package/models/components/pushoptions.js.map +1 -0
- package/models/components/pushoptionserror.d.ts +19 -0
- package/models/components/pushoptionserror.d.ts.map +1 -0
- package/models/components/{authorizeduser.js → pushoptionserror.js} +14 -14
- package/models/components/pushoptionserror.js.map +1 -0
- package/models/components/pushoptionsupdate.d.ts +35 -0
- package/models/components/pushoptionsupdate.d.ts.map +1 -0
- package/models/components/{createauthorizedusererror.js → pushoptionsupdate.js} +15 -17
- package/models/components/pushoptionsupdate.js.map +1 -0
- 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/termsofservice.d.ts +1 -1
- package/models/components/transferconfig.d.ts +3 -0
- package/models/components/transferconfig.d.ts.map +1 -1
- package/models/components/transferconfig.js +3 -0
- package/models/components/transferconfig.js.map +1 -1
- package/models/components/transfercontrols.d.ts +43 -0
- package/models/components/transfercontrols.d.ts.map +1 -0
- package/models/components/{createauthorizeduserupdate.js → transfercontrols.js} +20 -17
- package/models/components/transfercontrols.js.map +1 -0
- package/models/components/updateinvoice.d.ts +6 -6
- 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/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/webhookdataauthorizationexpiring.js +64 -0
- 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/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/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/linkbankaccount.d.ts +1 -1
- package/models/operations/listcancellations.d.ts +45 -0
- package/models/operations/listcancellations.d.ts.map +1 -0
- package/models/operations/listcancellations.js +90 -0
- package/models/operations/listcancellations.js.map +1 -0
- package/models/operations/listissuedcards.d.ts +1 -1
- 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/bankaccounts.d.ts +1 -1
- package/sdk/bankaccounts.js +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/bankAccountsLink.ts +1 -1
- 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/bankAccountsLink.ts +1 -1
- 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/capability.ts +7 -1
- package/src/models/components/capabilityid.ts +15 -2
- package/src/models/components/cardtransactiondetails.ts +14 -0
- package/src/models/components/cardtransactionstatus.ts +1 -0
- package/src/models/components/createaccount.ts +9 -0
- package/src/models/components/createpaymentlink.ts +3 -3
- package/src/models/components/createtransferdestinationcard.ts +9 -0
- package/src/models/components/fullissuedcard.ts +36 -20
- package/src/models/components/index.ts +6 -4
- package/src/models/components/invoice.ts +8 -1
- package/src/models/components/issuedcard.ts +36 -20
- package/src/models/components/issuedcardstate.ts +2 -8
- package/src/models/components/manualtermsofservice.ts +1 -1
- package/src/models/components/manualtermsofserviceupdate.ts +1 -1
- package/src/models/components/onboardinginvite.ts +1 -1
- package/src/models/components/onboardinginviterequest.ts +1 -1
- package/src/models/components/patchtransfer.ts +3 -0
- package/src/models/components/paymentlink.ts +2 -2
- package/src/models/components/paymentlinkpayoutdetails.ts +18 -0
- package/src/models/components/paymentlinkpayoutdetailsupdate.ts +18 -0
- package/src/models/components/payoutdetailserror.ts +10 -0
- package/src/models/components/pushdeliveryspeed.ts +27 -0
- package/src/models/components/pushoptions.ts +71 -0
- package/src/models/components/pushoptionserror.ts +55 -0
- package/src/models/components/pushoptionsupdate.ts +75 -0
- package/src/models/components/requestcard.ts +23 -34
- package/src/models/components/termsofservice.ts +1 -1
- package/src/models/components/transferconfig.ts +10 -0
- package/src/models/components/transfercontrols.ts +85 -0
- package/src/models/components/updateinvoice.ts +6 -6
- package/src/models/components/updateissuedcard.ts +73 -17
- package/src/models/components/webhookdata.ts +18 -8
- package/src/models/components/webhookdataauthorizationexpiring.ts +65 -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/requestcarderror.ts +26 -25
- package/src/models/errors/updateissuedcarderror.ts +18 -13
- 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/linkbankaccount.ts +1 -1
- package/src/models/operations/listcancellations.ts +120 -0
- package/src/models/operations/listissuedcards.ts +1 -1
- package/src/sdk/accounts.ts +8 -10
- package/src/sdk/bankaccounts.ts +1 -1
- package/src/sdk/capabilities.ts +4 -4
- package/src/sdk/transfers.ts +18 -0
- package/src/types/async.ts +8 -7
- package/types/async.d.ts.map +1 -1
- package/types/async.js +8 -7
- package/types/async.js.map +1 -1
- 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.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.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 -54
- package/src/models/components/createauthorizeduser.ts +0 -68
- package/src/models/components/createauthorizedusererror.ts +0 -65
- package/src/models/components/createauthorizeduserupdate.ts +0 -68
|
@@ -6,18 +6,21 @@ import * as z from "zod/v3";
|
|
|
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
|
-
CreateAuthorizedUserUpdate,
|
|
11
|
-
CreateAuthorizedUserUpdate$inboundSchema,
|
|
12
|
-
CreateAuthorizedUserUpdate$Outbound,
|
|
13
|
-
CreateAuthorizedUserUpdate$outboundSchema,
|
|
14
|
-
} from "./createauthorizeduserupdate.js";
|
|
15
9
|
import {
|
|
16
10
|
UpdateIssuedCardState,
|
|
17
11
|
UpdateIssuedCardState$inboundSchema,
|
|
18
12
|
UpdateIssuedCardState$outboundSchema,
|
|
19
13
|
} from "./updateissuedcardstate.js";
|
|
20
14
|
|
|
15
|
+
export type BillingAddress = {
|
|
16
|
+
addressLine1?: string | undefined;
|
|
17
|
+
addressLine2?: string | undefined;
|
|
18
|
+
city?: string | undefined;
|
|
19
|
+
stateOrProvince?: string | undefined;
|
|
20
|
+
postalCode?: string | undefined;
|
|
21
|
+
country?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
21
24
|
export type UpdateIssuedCard = {
|
|
22
25
|
/**
|
|
23
26
|
* Updates the state of a Moov issued card.
|
|
@@ -26,13 +29,61 @@ export type UpdateIssuedCard = {
|
|
|
26
29
|
* - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
|
|
27
30
|
*/
|
|
28
31
|
state?: UpdateIssuedCardState | undefined;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
nickname?: string | null | undefined;
|
|
33
|
+
metadata?: { [k: string]: string } | null | undefined;
|
|
34
|
+
billingAddress?: BillingAddress | null | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const BillingAddress$inboundSchema: z.ZodType<
|
|
39
|
+
BillingAddress,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.object({
|
|
43
|
+
addressLine1: z.string().optional(),
|
|
44
|
+
addressLine2: z.string().optional(),
|
|
45
|
+
city: z.string().optional(),
|
|
46
|
+
stateOrProvince: z.string().optional(),
|
|
47
|
+
postalCode: z.string().optional(),
|
|
48
|
+
country: z.string().optional(),
|
|
49
|
+
});
|
|
50
|
+
/** @internal */
|
|
51
|
+
export type BillingAddress$Outbound = {
|
|
52
|
+
addressLine1?: string | undefined;
|
|
53
|
+
addressLine2?: string | undefined;
|
|
54
|
+
city?: string | undefined;
|
|
55
|
+
stateOrProvince?: string | undefined;
|
|
56
|
+
postalCode?: string | undefined;
|
|
57
|
+
country?: string | undefined;
|
|
34
58
|
};
|
|
35
59
|
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const BillingAddress$outboundSchema: z.ZodType<
|
|
62
|
+
BillingAddress$Outbound,
|
|
63
|
+
z.ZodTypeDef,
|
|
64
|
+
BillingAddress
|
|
65
|
+
> = z.object({
|
|
66
|
+
addressLine1: z.string().optional(),
|
|
67
|
+
addressLine2: z.string().optional(),
|
|
68
|
+
city: z.string().optional(),
|
|
69
|
+
stateOrProvince: z.string().optional(),
|
|
70
|
+
postalCode: z.string().optional(),
|
|
71
|
+
country: z.string().optional(),
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export function billingAddressToJSON(billingAddress: BillingAddress): string {
|
|
75
|
+
return JSON.stringify(BillingAddress$outboundSchema.parse(billingAddress));
|
|
76
|
+
}
|
|
77
|
+
export function billingAddressFromJSON(
|
|
78
|
+
jsonString: string,
|
|
79
|
+
): SafeParseResult<BillingAddress, SDKValidationError> {
|
|
80
|
+
return safeParse(
|
|
81
|
+
jsonString,
|
|
82
|
+
(x) => BillingAddress$inboundSchema.parse(JSON.parse(x)),
|
|
83
|
+
`Failed to parse 'BillingAddress' from JSON`,
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
36
87
|
/** @internal */
|
|
37
88
|
export const UpdateIssuedCard$inboundSchema: z.ZodType<
|
|
38
89
|
UpdateIssuedCard,
|
|
@@ -40,14 +91,17 @@ export const UpdateIssuedCard$inboundSchema: z.ZodType<
|
|
|
40
91
|
unknown
|
|
41
92
|
> = z.object({
|
|
42
93
|
state: UpdateIssuedCardState$inboundSchema.optional(),
|
|
43
|
-
|
|
44
|
-
|
|
94
|
+
nickname: z.nullable(z.string()).optional(),
|
|
95
|
+
metadata: z.nullable(z.record(z.string())).optional(),
|
|
96
|
+
billingAddress: z.nullable(z.lazy(() => BillingAddress$inboundSchema))
|
|
97
|
+
.optional(),
|
|
45
98
|
});
|
|
46
99
|
/** @internal */
|
|
47
100
|
export type UpdateIssuedCard$Outbound = {
|
|
48
101
|
state?: string | undefined;
|
|
49
|
-
|
|
50
|
-
|
|
102
|
+
nickname?: string | null | undefined;
|
|
103
|
+
metadata?: { [k: string]: string } | null | undefined;
|
|
104
|
+
billingAddress?: BillingAddress$Outbound | null | undefined;
|
|
51
105
|
};
|
|
52
106
|
|
|
53
107
|
/** @internal */
|
|
@@ -57,8 +111,10 @@ export const UpdateIssuedCard$outboundSchema: z.ZodType<
|
|
|
57
111
|
UpdateIssuedCard
|
|
58
112
|
> = z.object({
|
|
59
113
|
state: UpdateIssuedCardState$outboundSchema.optional(),
|
|
60
|
-
|
|
61
|
-
|
|
114
|
+
nickname: z.nullable(z.string()).optional(),
|
|
115
|
+
metadata: z.nullable(z.record(z.string())).optional(),
|
|
116
|
+
billingAddress: z.nullable(z.lazy(() => BillingAddress$outboundSchema))
|
|
117
|
+
.optional(),
|
|
62
118
|
});
|
|
63
119
|
|
|
64
120
|
export function updateIssuedCardToJSON(
|
|
@@ -30,6 +30,12 @@ import {
|
|
|
30
30
|
WebhookDataAccountUpdated$Outbound,
|
|
31
31
|
WebhookDataAccountUpdated$outboundSchema,
|
|
32
32
|
} from "./webhookdataaccountupdated.js";
|
|
33
|
+
import {
|
|
34
|
+
WebhookDataAuthorizationExpiring,
|
|
35
|
+
WebhookDataAuthorizationExpiring$inboundSchema,
|
|
36
|
+
WebhookDataAuthorizationExpiring$Outbound,
|
|
37
|
+
WebhookDataAuthorizationExpiring$outboundSchema,
|
|
38
|
+
} from "./webhookdataauthorizationexpiring.js";
|
|
33
39
|
import {
|
|
34
40
|
WebhookDataBalanceUpdated,
|
|
35
41
|
WebhookDataBalanceUpdated$inboundSchema,
|
|
@@ -238,7 +244,9 @@ export type WebhookData =
|
|
|
238
244
|
| WebhookDataTransferUpdated
|
|
239
245
|
| WebhookDataBankAccountUpdated
|
|
240
246
|
| WebhookDataRefundUpdated
|
|
247
|
+
| WebhookDataSweepUpdated
|
|
241
248
|
| WebhookDataWalletTransactionUpdated
|
|
249
|
+
| WebhookDataAuthorizationExpiring
|
|
242
250
|
| WebhookDataBankAccountCreated
|
|
243
251
|
| WebhookDataBankAccountDeleted
|
|
244
252
|
| WebhookDataCancellationCreated
|
|
@@ -249,7 +257,7 @@ export type WebhookData =
|
|
|
249
257
|
| WebhookDataPaymentMethodEnabled
|
|
250
258
|
| WebhookDataPaymentMethodDisabled
|
|
251
259
|
| WebhookDataRefundCreated
|
|
252
|
-
|
|
|
260
|
+
| WebhookDataSweepCreated
|
|
253
261
|
| WebhookDataTicketUpdated
|
|
254
262
|
| WebhookDataTransferCreated
|
|
255
263
|
| WebhookDataWalletUpdated
|
|
@@ -259,7 +267,6 @@ export type WebhookData =
|
|
|
259
267
|
| WebhookDataRepresentativeCreated
|
|
260
268
|
| WebhookDataRepresentativeUpdated
|
|
261
269
|
| WebhookDataRepresentativeDisabled
|
|
262
|
-
| WebhookDataSweepCreated
|
|
263
270
|
| WebhookDataTerminalApplicationCreated
|
|
264
271
|
| WebhookDataTerminalApplicationUpdated
|
|
265
272
|
| WebhookDataTicketCreated
|
|
@@ -282,7 +289,9 @@ export const WebhookData$inboundSchema: z.ZodType<
|
|
|
282
289
|
WebhookDataTransferUpdated$inboundSchema,
|
|
283
290
|
WebhookDataBankAccountUpdated$inboundSchema,
|
|
284
291
|
WebhookDataRefundUpdated$inboundSchema,
|
|
292
|
+
WebhookDataSweepUpdated$inboundSchema,
|
|
285
293
|
WebhookDataWalletTransactionUpdated$inboundSchema,
|
|
294
|
+
WebhookDataAuthorizationExpiring$inboundSchema,
|
|
286
295
|
WebhookDataBankAccountCreated$inboundSchema,
|
|
287
296
|
WebhookDataBankAccountDeleted$inboundSchema,
|
|
288
297
|
WebhookDataCancellationCreated$inboundSchema,
|
|
@@ -293,7 +302,7 @@ export const WebhookData$inboundSchema: z.ZodType<
|
|
|
293
302
|
WebhookDataPaymentMethodEnabled$inboundSchema,
|
|
294
303
|
WebhookDataPaymentMethodDisabled$inboundSchema,
|
|
295
304
|
WebhookDataRefundCreated$inboundSchema,
|
|
296
|
-
|
|
305
|
+
WebhookDataSweepCreated$inboundSchema,
|
|
297
306
|
WebhookDataTicketUpdated$inboundSchema,
|
|
298
307
|
WebhookDataTransferCreated$inboundSchema,
|
|
299
308
|
WebhookDataWalletUpdated$inboundSchema,
|
|
@@ -303,7 +312,6 @@ export const WebhookData$inboundSchema: z.ZodType<
|
|
|
303
312
|
WebhookDataRepresentativeCreated$inboundSchema,
|
|
304
313
|
WebhookDataRepresentativeUpdated$inboundSchema,
|
|
305
314
|
WebhookDataRepresentativeDisabled$inboundSchema,
|
|
306
|
-
WebhookDataSweepCreated$inboundSchema,
|
|
307
315
|
WebhookDataTerminalApplicationCreated$inboundSchema,
|
|
308
316
|
WebhookDataTerminalApplicationUpdated$inboundSchema,
|
|
309
317
|
WebhookDataTicketCreated$inboundSchema,
|
|
@@ -322,7 +330,9 @@ export type WebhookData$Outbound =
|
|
|
322
330
|
| WebhookDataTransferUpdated$Outbound
|
|
323
331
|
| WebhookDataBankAccountUpdated$Outbound
|
|
324
332
|
| WebhookDataRefundUpdated$Outbound
|
|
333
|
+
| WebhookDataSweepUpdated$Outbound
|
|
325
334
|
| WebhookDataWalletTransactionUpdated$Outbound
|
|
335
|
+
| WebhookDataAuthorizationExpiring$Outbound
|
|
326
336
|
| WebhookDataBankAccountCreated$Outbound
|
|
327
337
|
| WebhookDataBankAccountDeleted$Outbound
|
|
328
338
|
| WebhookDataCancellationCreated$Outbound
|
|
@@ -333,7 +343,7 @@ export type WebhookData$Outbound =
|
|
|
333
343
|
| WebhookDataPaymentMethodEnabled$Outbound
|
|
334
344
|
| WebhookDataPaymentMethodDisabled$Outbound
|
|
335
345
|
| WebhookDataRefundCreated$Outbound
|
|
336
|
-
|
|
|
346
|
+
| WebhookDataSweepCreated$Outbound
|
|
337
347
|
| WebhookDataTicketUpdated$Outbound
|
|
338
348
|
| WebhookDataTransferCreated$Outbound
|
|
339
349
|
| WebhookDataWalletUpdated$Outbound
|
|
@@ -343,7 +353,6 @@ export type WebhookData$Outbound =
|
|
|
343
353
|
| WebhookDataRepresentativeCreated$Outbound
|
|
344
354
|
| WebhookDataRepresentativeUpdated$Outbound
|
|
345
355
|
| WebhookDataRepresentativeDisabled$Outbound
|
|
346
|
-
| WebhookDataSweepCreated$Outbound
|
|
347
356
|
| WebhookDataTerminalApplicationCreated$Outbound
|
|
348
357
|
| WebhookDataTerminalApplicationUpdated$Outbound
|
|
349
358
|
| WebhookDataTicketCreated$Outbound
|
|
@@ -366,7 +375,9 @@ export const WebhookData$outboundSchema: z.ZodType<
|
|
|
366
375
|
WebhookDataTransferUpdated$outboundSchema,
|
|
367
376
|
WebhookDataBankAccountUpdated$outboundSchema,
|
|
368
377
|
WebhookDataRefundUpdated$outboundSchema,
|
|
378
|
+
WebhookDataSweepUpdated$outboundSchema,
|
|
369
379
|
WebhookDataWalletTransactionUpdated$outboundSchema,
|
|
380
|
+
WebhookDataAuthorizationExpiring$outboundSchema,
|
|
370
381
|
WebhookDataBankAccountCreated$outboundSchema,
|
|
371
382
|
WebhookDataBankAccountDeleted$outboundSchema,
|
|
372
383
|
WebhookDataCancellationCreated$outboundSchema,
|
|
@@ -377,7 +388,7 @@ export const WebhookData$outboundSchema: z.ZodType<
|
|
|
377
388
|
WebhookDataPaymentMethodEnabled$outboundSchema,
|
|
378
389
|
WebhookDataPaymentMethodDisabled$outboundSchema,
|
|
379
390
|
WebhookDataRefundCreated$outboundSchema,
|
|
380
|
-
|
|
391
|
+
WebhookDataSweepCreated$outboundSchema,
|
|
381
392
|
WebhookDataTicketUpdated$outboundSchema,
|
|
382
393
|
WebhookDataTransferCreated$outboundSchema,
|
|
383
394
|
WebhookDataWalletUpdated$outboundSchema,
|
|
@@ -387,7 +398,6 @@ export const WebhookData$outboundSchema: z.ZodType<
|
|
|
387
398
|
WebhookDataRepresentativeCreated$outboundSchema,
|
|
388
399
|
WebhookDataRepresentativeUpdated$outboundSchema,
|
|
389
400
|
WebhookDataRepresentativeDisabled$outboundSchema,
|
|
390
|
-
WebhookDataSweepCreated$outboundSchema,
|
|
391
401
|
WebhookDataTerminalApplicationCreated$outboundSchema,
|
|
392
402
|
WebhookDataTerminalApplicationUpdated$outboundSchema,
|
|
393
403
|
WebhookDataTicketCreated$outboundSchema,
|
|
@@ -0,0 +1,65 @@
|
|
|
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type WebhookDataAuthorizationExpiring = {
|
|
11
|
+
merchantAccountID: string;
|
|
12
|
+
partnerAccountID: string;
|
|
13
|
+
authorizationID: string;
|
|
14
|
+
expiresOn: Date;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const WebhookDataAuthorizationExpiring$inboundSchema: z.ZodType<
|
|
19
|
+
WebhookDataAuthorizationExpiring,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
merchantAccountID: z.string(),
|
|
24
|
+
partnerAccountID: z.string(),
|
|
25
|
+
authorizationID: z.string(),
|
|
26
|
+
expiresOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
27
|
+
});
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type WebhookDataAuthorizationExpiring$Outbound = {
|
|
30
|
+
merchantAccountID: string;
|
|
31
|
+
partnerAccountID: string;
|
|
32
|
+
authorizationID: string;
|
|
33
|
+
expiresOn: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const WebhookDataAuthorizationExpiring$outboundSchema: z.ZodType<
|
|
38
|
+
WebhookDataAuthorizationExpiring$Outbound,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
WebhookDataAuthorizationExpiring
|
|
41
|
+
> = z.object({
|
|
42
|
+
merchantAccountID: z.string(),
|
|
43
|
+
partnerAccountID: z.string(),
|
|
44
|
+
authorizationID: z.string(),
|
|
45
|
+
expiresOn: z.date().transform(v => v.toISOString()),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export function webhookDataAuthorizationExpiringToJSON(
|
|
49
|
+
webhookDataAuthorizationExpiring: WebhookDataAuthorizationExpiring,
|
|
50
|
+
): string {
|
|
51
|
+
return JSON.stringify(
|
|
52
|
+
WebhookDataAuthorizationExpiring$outboundSchema.parse(
|
|
53
|
+
webhookDataAuthorizationExpiring,
|
|
54
|
+
),
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
export function webhookDataAuthorizationExpiringFromJSON(
|
|
58
|
+
jsonString: string,
|
|
59
|
+
): SafeParseResult<WebhookDataAuthorizationExpiring, SDKValidationError> {
|
|
60
|
+
return safeParse(
|
|
61
|
+
jsonString,
|
|
62
|
+
(x) => WebhookDataAuthorizationExpiring$inboundSchema.parse(JSON.parse(x)),
|
|
63
|
+
`Failed to parse 'WebhookDataAuthorizationExpiring' from JSON`,
|
|
64
|
+
);
|
|
65
|
+
}
|
|
@@ -20,7 +20,13 @@ export type WebhookDataCapabilityRequested = {
|
|
|
20
20
|
*
|
|
21
21
|
* @remarks
|
|
22
22
|
*
|
|
23
|
-
*
|
|
23
|
+
* **Deprecated capabilities**
|
|
24
|
+
*
|
|
25
|
+
* 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.
|
|
26
|
+
*
|
|
27
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
28
|
+
*
|
|
29
|
+
* 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.
|
|
24
30
|
*/
|
|
25
31
|
capabilityID: CapabilityID;
|
|
26
32
|
};
|
|
@@ -25,7 +25,13 @@ export type WebhookDataCapabilityUpdated = {
|
|
|
25
25
|
*
|
|
26
26
|
* @remarks
|
|
27
27
|
*
|
|
28
|
-
*
|
|
28
|
+
* **Deprecated capabilities**
|
|
29
|
+
*
|
|
30
|
+
* 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.
|
|
31
|
+
*
|
|
32
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
33
|
+
*
|
|
34
|
+
* 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.
|
|
29
35
|
*/
|
|
30
36
|
capabilityID: CapabilityID;
|
|
31
37
|
/**
|
|
@@ -8,6 +8,10 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type WebhookDataSweepCreated = {
|
|
11
|
+
/**
|
|
12
|
+
* The accountID associated with the wallet being swept.
|
|
13
|
+
*/
|
|
14
|
+
accountID: string;
|
|
11
15
|
walletID: string;
|
|
12
16
|
sweepID: string;
|
|
13
17
|
};
|
|
@@ -18,11 +22,13 @@ export const WebhookDataSweepCreated$inboundSchema: z.ZodType<
|
|
|
18
22
|
z.ZodTypeDef,
|
|
19
23
|
unknown
|
|
20
24
|
> = z.object({
|
|
25
|
+
accountID: z.string(),
|
|
21
26
|
walletID: z.string(),
|
|
22
27
|
sweepID: z.string(),
|
|
23
28
|
});
|
|
24
29
|
/** @internal */
|
|
25
30
|
export type WebhookDataSweepCreated$Outbound = {
|
|
31
|
+
accountID: string;
|
|
26
32
|
walletID: string;
|
|
27
33
|
sweepID: string;
|
|
28
34
|
};
|
|
@@ -33,6 +39,7 @@ export const WebhookDataSweepCreated$outboundSchema: z.ZodType<
|
|
|
33
39
|
z.ZodTypeDef,
|
|
34
40
|
WebhookDataSweepCreated
|
|
35
41
|
> = z.object({
|
|
42
|
+
accountID: z.string(),
|
|
36
43
|
walletID: z.string(),
|
|
37
44
|
sweepID: z.string(),
|
|
38
45
|
});
|
|
@@ -13,6 +13,10 @@ import {
|
|
|
13
13
|
} from "./sweepstatus.js";
|
|
14
14
|
|
|
15
15
|
export type WebhookDataSweepUpdated = {
|
|
16
|
+
/**
|
|
17
|
+
* The accountID associated with the wallet being swept.
|
|
18
|
+
*/
|
|
19
|
+
accountID: string;
|
|
16
20
|
walletID: string;
|
|
17
21
|
sweepID: string;
|
|
18
22
|
transferID?: string | undefined;
|
|
@@ -25,6 +29,7 @@ export const WebhookDataSweepUpdated$inboundSchema: z.ZodType<
|
|
|
25
29
|
z.ZodTypeDef,
|
|
26
30
|
unknown
|
|
27
31
|
> = z.object({
|
|
32
|
+
accountID: z.string(),
|
|
28
33
|
walletID: z.string(),
|
|
29
34
|
sweepID: z.string(),
|
|
30
35
|
transferID: z.string().optional(),
|
|
@@ -32,6 +37,7 @@ export const WebhookDataSweepUpdated$inboundSchema: z.ZodType<
|
|
|
32
37
|
});
|
|
33
38
|
/** @internal */
|
|
34
39
|
export type WebhookDataSweepUpdated$Outbound = {
|
|
40
|
+
accountID: string;
|
|
35
41
|
walletID: string;
|
|
36
42
|
sweepID: string;
|
|
37
43
|
transferID?: string | undefined;
|
|
@@ -44,6 +50,7 @@ export const WebhookDataSweepUpdated$outboundSchema: z.ZodType<
|
|
|
44
50
|
z.ZodTypeDef,
|
|
45
51
|
WebhookDataSweepUpdated
|
|
46
52
|
> = z.object({
|
|
53
|
+
accountID: z.string(),
|
|
47
54
|
walletID: z.string(),
|
|
48
55
|
sweepID: z.string(),
|
|
49
56
|
transferID: z.string().optional(),
|
|
@@ -47,6 +47,7 @@ export const WebhookEventType = {
|
|
|
47
47
|
WalletUpdated: "wallet.updated",
|
|
48
48
|
WalletTransactionUpdated: "walletTransaction.updated",
|
|
49
49
|
BillingStatementCreated: "billingStatement.created",
|
|
50
|
+
AuthorizationExpiring: "authorization.expiring",
|
|
50
51
|
} as const;
|
|
51
52
|
/**
|
|
52
53
|
* The type of event that occurred.
|
|
@@ -7,19 +7,19 @@ import * as components from "../components/index.js";
|
|
|
7
7
|
import { MoovError } from "./mooverror.js";
|
|
8
8
|
|
|
9
9
|
export type RequestCardErrorData = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
authorizedUserAccountID?: string | undefined;
|
|
11
|
+
nickname?: string | undefined;
|
|
12
|
+
metadata?: string | undefined;
|
|
13
|
+
billingAddress?: components.AddressError | undefined;
|
|
14
14
|
expiration?: components.CardExpirationError | undefined;
|
|
15
15
|
controls?: components.IssuingControlsError | undefined;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
export class RequestCardError extends MoovError {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
authorizedUserAccountID?: string | undefined;
|
|
20
|
+
nickname?: string | undefined;
|
|
21
|
+
metadata?: string | undefined;
|
|
22
|
+
billingAddress?: components.AddressError | undefined;
|
|
23
23
|
expiration?: components.CardExpirationError | undefined;
|
|
24
24
|
controls?: components.IssuingControlsError | undefined;
|
|
25
25
|
|
|
@@ -35,10 +35,12 @@ export class RequestCardError extends MoovError {
|
|
|
35
35
|
: `API error occurred: ${JSON.stringify(err)}`;
|
|
36
36
|
super(message, httpMeta);
|
|
37
37
|
this.data$ = err;
|
|
38
|
-
if (err.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
if (err.
|
|
38
|
+
if (err.authorizedUserAccountID != null) {
|
|
39
|
+
this.authorizedUserAccountID = err.authorizedUserAccountID;
|
|
40
|
+
}
|
|
41
|
+
if (err.nickname != null) this.nickname = err.nickname;
|
|
42
|
+
if (err.metadata != null) this.metadata = err.metadata;
|
|
43
|
+
if (err.billingAddress != null) this.billingAddress = err.billingAddress;
|
|
42
44
|
if (err.expiration != null) this.expiration = err.expiration;
|
|
43
45
|
if (err.controls != null) this.controls = err.controls;
|
|
44
46
|
|
|
@@ -52,10 +54,10 @@ export const RequestCardError$inboundSchema: z.ZodType<
|
|
|
52
54
|
z.ZodTypeDef,
|
|
53
55
|
unknown
|
|
54
56
|
> = z.object({
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
authorizedUserAccountID: z.string().optional(),
|
|
58
|
+
nickname: z.string().optional(),
|
|
59
|
+
metadata: z.string().optional(),
|
|
60
|
+
billingAddress: components.AddressError$inboundSchema.optional(),
|
|
59
61
|
expiration: components.CardExpirationError$inboundSchema.optional(),
|
|
60
62
|
controls: components.IssuingControlsError$inboundSchema.optional(),
|
|
61
63
|
request$: z.instanceof(Request),
|
|
@@ -72,10 +74,10 @@ export const RequestCardError$inboundSchema: z.ZodType<
|
|
|
72
74
|
|
|
73
75
|
/** @internal */
|
|
74
76
|
export type RequestCardError$Outbound = {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
authorizedUserAccountID?: string | undefined;
|
|
78
|
+
nickname?: string | undefined;
|
|
79
|
+
metadata?: string | undefined;
|
|
80
|
+
billingAddress?: components.AddressError$Outbound | undefined;
|
|
79
81
|
expiration?: components.CardExpirationError$Outbound | undefined;
|
|
80
82
|
controls?: components.IssuingControlsError$Outbound | undefined;
|
|
81
83
|
};
|
|
@@ -88,11 +90,10 @@ export const RequestCardError$outboundSchema: z.ZodType<
|
|
|
88
90
|
> = z.instanceof(RequestCardError)
|
|
89
91
|
.transform(v => v.data$)
|
|
90
92
|
.pipe(z.object({
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
memo: z.string().optional(),
|
|
93
|
+
authorizedUserAccountID: z.string().optional(),
|
|
94
|
+
nickname: z.string().optional(),
|
|
95
|
+
metadata: z.string().optional(),
|
|
96
|
+
billingAddress: components.AddressError$outboundSchema.optional(),
|
|
96
97
|
expiration: components.CardExpirationError$outboundSchema.optional(),
|
|
97
98
|
controls: components.IssuingControlsError$outboundSchema.optional(),
|
|
98
99
|
}));
|
|
@@ -8,14 +8,16 @@ import { MoovError } from "./mooverror.js";
|
|
|
8
8
|
|
|
9
9
|
export type UpdateIssuedCardErrorData = {
|
|
10
10
|
state?: string | undefined;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
nickname?: string | undefined;
|
|
12
|
+
metadata?: string | undefined;
|
|
13
|
+
billingAddress?: components.AddressError | undefined;
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
export class UpdateIssuedCardError extends MoovError {
|
|
16
17
|
state?: string | undefined;
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
nickname?: string | undefined;
|
|
19
|
+
metadata?: string | undefined;
|
|
20
|
+
billingAddress?: components.AddressError | undefined;
|
|
19
21
|
|
|
20
22
|
/** The original data that was passed to this error instance. */
|
|
21
23
|
data$: UpdateIssuedCardErrorData;
|
|
@@ -30,8 +32,9 @@ export class UpdateIssuedCardError extends MoovError {
|
|
|
30
32
|
super(message, httpMeta);
|
|
31
33
|
this.data$ = err;
|
|
32
34
|
if (err.state != null) this.state = err.state;
|
|
33
|
-
if (err.
|
|
34
|
-
if (err.
|
|
35
|
+
if (err.nickname != null) this.nickname = err.nickname;
|
|
36
|
+
if (err.metadata != null) this.metadata = err.metadata;
|
|
37
|
+
if (err.billingAddress != null) this.billingAddress = err.billingAddress;
|
|
35
38
|
|
|
36
39
|
this.name = "UpdateIssuedCardError";
|
|
37
40
|
}
|
|
@@ -44,8 +47,9 @@ export const UpdateIssuedCardError$inboundSchema: z.ZodType<
|
|
|
44
47
|
unknown
|
|
45
48
|
> = z.object({
|
|
46
49
|
state: z.string().optional(),
|
|
47
|
-
|
|
48
|
-
|
|
50
|
+
nickname: z.string().optional(),
|
|
51
|
+
metadata: z.string().optional(),
|
|
52
|
+
billingAddress: components.AddressError$inboundSchema.optional(),
|
|
49
53
|
request$: z.instanceof(Request),
|
|
50
54
|
response$: z.instanceof(Response),
|
|
51
55
|
body$: z.string(),
|
|
@@ -61,8 +65,9 @@ export const UpdateIssuedCardError$inboundSchema: z.ZodType<
|
|
|
61
65
|
/** @internal */
|
|
62
66
|
export type UpdateIssuedCardError$Outbound = {
|
|
63
67
|
state?: string | undefined;
|
|
64
|
-
|
|
65
|
-
|
|
68
|
+
nickname?: string | undefined;
|
|
69
|
+
metadata?: string | undefined;
|
|
70
|
+
billingAddress?: components.AddressError$Outbound | undefined;
|
|
66
71
|
};
|
|
67
72
|
|
|
68
73
|
/** @internal */
|
|
@@ -74,7 +79,7 @@ export const UpdateIssuedCardError$outboundSchema: z.ZodType<
|
|
|
74
79
|
.transform(v => v.data$)
|
|
75
80
|
.pipe(z.object({
|
|
76
81
|
state: z.string().optional(),
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
82
|
+
nickname: z.string().optional(),
|
|
83
|
+
metadata: z.string().optional(),
|
|
84
|
+
billingAddress: components.AddressError$outboundSchema.optional(),
|
|
80
85
|
}));
|
|
@@ -16,7 +16,13 @@ export type DisableCapabilityRequest = {
|
|
|
16
16
|
*
|
|
17
17
|
* @remarks
|
|
18
18
|
*
|
|
19
|
-
*
|
|
19
|
+
* **Deprecated capabilities**
|
|
20
|
+
*
|
|
21
|
+
* 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.
|
|
22
|
+
*
|
|
23
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
24
|
+
*
|
|
25
|
+
* 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.
|
|
20
26
|
*/
|
|
21
27
|
capabilityID: components.CapabilityID;
|
|
22
28
|
};
|
|
@@ -16,7 +16,13 @@ export type GetCapabilityRequest = {
|
|
|
16
16
|
*
|
|
17
17
|
* @remarks
|
|
18
18
|
*
|
|
19
|
-
*
|
|
19
|
+
* **Deprecated capabilities**
|
|
20
|
+
*
|
|
21
|
+
* 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.
|
|
22
|
+
*
|
|
23
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
24
|
+
*
|
|
25
|
+
* 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.
|
|
20
26
|
*/
|
|
21
27
|
capabilityID: components.CapabilityID;
|
|
22
28
|
};
|
|
@@ -111,6 +111,7 @@ export * from "./listaccounts.js";
|
|
|
111
111
|
export * from "./listaccountterminalapplications.js";
|
|
112
112
|
export * from "./listadjustments.js";
|
|
113
113
|
export * from "./listbankaccounts.js";
|
|
114
|
+
export * from "./listcancellations.js";
|
|
114
115
|
export * from "./listcapabilities.js";
|
|
115
116
|
export * from "./listcards.js";
|
|
116
117
|
export * from "./listconnectedaccountsforaccount.js";
|
|
@@ -16,7 +16,7 @@ export type LinkBankAccountRequest = {
|
|
|
16
16
|
* @remarks
|
|
17
17
|
*
|
|
18
18
|
* When this header is set to `payment-method`, the response will include any payment methods that were created for the newly
|
|
19
|
-
* linked
|
|
19
|
+
* linked bank account in the `paymentMethods` field. Otherwise, the `paymentMethods` field will be omitted from the response.
|
|
20
20
|
*/
|
|
21
21
|
xWaitFor?: components.BankAccountWaitFor | undefined;
|
|
22
22
|
accountID: string;
|