@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
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { transfersListCancellations } from "../../funcs/transfersListCancellations.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.ListCancellationsRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$transfersListCancellations: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "transfers-list-cancellations",
|
|
15
|
+
description: ` Get a list of cancellations for a transfer.
|
|
16
|
+
|
|
17
|
+
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
18
|
+
to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
19
|
+
args,
|
|
20
|
+
tool: async (client, args, ctx) => {
|
|
21
|
+
const [result, apiCall] = await transfersListCancellations(
|
|
22
|
+
client,
|
|
23
|
+
args.request,
|
|
24
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
25
|
+
).$inspect();
|
|
26
|
+
|
|
27
|
+
if (!result.ok) {
|
|
28
|
+
return {
|
|
29
|
+
content: [{ type: "text", text: result.error.message }],
|
|
30
|
+
isError: true,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const value = result.value.result;
|
|
35
|
+
|
|
36
|
+
return formatResult(value, apiCall);
|
|
37
|
+
},
|
|
38
|
+
};
|
|
@@ -13,6 +13,15 @@ import {
|
|
|
13
13
|
} from "./capabilityid.js";
|
|
14
14
|
|
|
15
15
|
export type AddCapabilities = {
|
|
16
|
+
/**
|
|
17
|
+
* Capabilities to request for the account. Request granular capability IDs that match your use case.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
*
|
|
21
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
22
|
+
*
|
|
23
|
+
* The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Use granular values such as `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance` instead.
|
|
24
|
+
*/
|
|
16
25
|
capabilities: Array<CapabilityID>;
|
|
17
26
|
};
|
|
18
27
|
|
|
@@ -29,7 +29,13 @@ export type Capability = {
|
|
|
29
29
|
*
|
|
30
30
|
* @remarks
|
|
31
31
|
*
|
|
32
|
-
*
|
|
32
|
+
* **Deprecated capabilities**
|
|
33
|
+
*
|
|
34
|
+
* 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.
|
|
35
|
+
*
|
|
36
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
37
|
+
*
|
|
38
|
+
* 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.
|
|
33
39
|
*/
|
|
34
40
|
capability: CapabilityID;
|
|
35
41
|
accountID: string;
|
|
@@ -10,7 +10,13 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
10
10
|
*
|
|
11
11
|
* @remarks
|
|
12
12
|
*
|
|
13
|
-
*
|
|
13
|
+
* **Deprecated capabilities**
|
|
14
|
+
*
|
|
15
|
+
* 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.
|
|
16
|
+
*
|
|
17
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
18
|
+
*
|
|
19
|
+
* 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.
|
|
14
20
|
*/
|
|
15
21
|
export const CapabilityID = {
|
|
16
22
|
Transfers: "transfers",
|
|
@@ -27,6 +33,7 @@ export const CapabilityID = {
|
|
|
27
33
|
Wallet: "wallet",
|
|
28
34
|
WalletBalance: "wallet.balance",
|
|
29
35
|
CardIssuing: "card-issuing",
|
|
36
|
+
IssuingCardholder: "issuing.cardholder",
|
|
30
37
|
ProductionApp: "production-app",
|
|
31
38
|
PlatformProductionApp: "platform.production-app",
|
|
32
39
|
PlatformWalletTransfers: "platform.wallet-transfers",
|
|
@@ -36,7 +43,13 @@ export const CapabilityID = {
|
|
|
36
43
|
*
|
|
37
44
|
* @remarks
|
|
38
45
|
*
|
|
39
|
-
*
|
|
46
|
+
* **Deprecated capabilities**
|
|
47
|
+
*
|
|
48
|
+
* 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.
|
|
49
|
+
*
|
|
50
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
51
|
+
*
|
|
52
|
+
* 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.
|
|
40
53
|
*/
|
|
41
54
|
export type CapabilityID = ClosedEnum<typeof CapabilityID>;
|
|
42
55
|
|
|
@@ -35,6 +35,10 @@ export type CardTransactionDetails = {
|
|
|
35
35
|
* An optional override of the default card statement descriptor for a transfer. Accounts must be enabled by Moov to set this field.
|
|
36
36
|
*/
|
|
37
37
|
dynamicDescriptor?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* The scheduled date and time for the transfer to be delivered. This field is only valid for push-to-card transfers. Must be between 24 and 48 hours in the future in production. In sandbox mode, any future time up to 48 hours is accepted so integrations can test deferred delivery using the sandbox test cards with relaxed wait times.
|
|
40
|
+
*/
|
|
41
|
+
scheduledDeliveryOn?: Date | undefined;
|
|
38
42
|
/**
|
|
39
43
|
* Specifies the nature and initiator of a transaction.
|
|
40
44
|
*
|
|
@@ -50,6 +54,7 @@ export type CardTransactionDetails = {
|
|
|
50
54
|
failedOn?: Date | undefined;
|
|
51
55
|
canceledOn?: Date | undefined;
|
|
52
56
|
completedOn?: Date | undefined;
|
|
57
|
+
deferredOn?: Date | undefined;
|
|
53
58
|
/**
|
|
54
59
|
* The program assigned by the card network that determines the interchange rate for the transfer.
|
|
55
60
|
*
|
|
@@ -75,6 +80,9 @@ export const CardTransactionDetails$inboundSchema: z.ZodType<
|
|
|
75
80
|
status: CardTransactionStatus$inboundSchema.optional(),
|
|
76
81
|
failureCode: CardTransactionFailureCode$inboundSchema.optional(),
|
|
77
82
|
dynamicDescriptor: z.string().optional(),
|
|
83
|
+
scheduledDeliveryOn: z.string().datetime({ offset: true }).transform(v =>
|
|
84
|
+
new Date(v)
|
|
85
|
+
).optional(),
|
|
78
86
|
transactionSource: TransactionSource$inboundSchema.optional(),
|
|
79
87
|
initiatedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
80
88
|
.optional(),
|
|
@@ -88,6 +96,8 @@ export const CardTransactionDetails$inboundSchema: z.ZodType<
|
|
|
88
96
|
.optional(),
|
|
89
97
|
completedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
90
98
|
.optional(),
|
|
99
|
+
deferredOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
100
|
+
.optional(),
|
|
91
101
|
interchangeQualification: z.string().optional(),
|
|
92
102
|
feeProgram: z.string().optional(),
|
|
93
103
|
authorizationCode: z.string().optional(),
|
|
@@ -97,6 +107,7 @@ export type CardTransactionDetails$Outbound = {
|
|
|
97
107
|
status?: string | undefined;
|
|
98
108
|
failureCode?: string | undefined;
|
|
99
109
|
dynamicDescriptor?: string | undefined;
|
|
110
|
+
scheduledDeliveryOn?: string | undefined;
|
|
100
111
|
transactionSource?: string | undefined;
|
|
101
112
|
initiatedOn?: string | undefined;
|
|
102
113
|
confirmedOn?: string | undefined;
|
|
@@ -104,6 +115,7 @@ export type CardTransactionDetails$Outbound = {
|
|
|
104
115
|
failedOn?: string | undefined;
|
|
105
116
|
canceledOn?: string | undefined;
|
|
106
117
|
completedOn?: string | undefined;
|
|
118
|
+
deferredOn?: string | undefined;
|
|
107
119
|
interchangeQualification?: string | undefined;
|
|
108
120
|
feeProgram?: string | undefined;
|
|
109
121
|
authorizationCode?: string | undefined;
|
|
@@ -118,6 +130,7 @@ export const CardTransactionDetails$outboundSchema: z.ZodType<
|
|
|
118
130
|
status: CardTransactionStatus$outboundSchema.optional(),
|
|
119
131
|
failureCode: CardTransactionFailureCode$outboundSchema.optional(),
|
|
120
132
|
dynamicDescriptor: z.string().optional(),
|
|
133
|
+
scheduledDeliveryOn: z.date().transform(v => v.toISOString()).optional(),
|
|
121
134
|
transactionSource: TransactionSource$outboundSchema.optional(),
|
|
122
135
|
initiatedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
123
136
|
confirmedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -125,6 +138,7 @@ export const CardTransactionDetails$outboundSchema: z.ZodType<
|
|
|
125
138
|
failedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
126
139
|
canceledOn: z.date().transform(v => v.toISOString()).optional(),
|
|
127
140
|
completedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
141
|
+
deferredOn: z.date().transform(v => v.toISOString()).optional(),
|
|
128
142
|
interchangeQualification: z.string().optional(),
|
|
129
143
|
feeProgram: z.string().optional(),
|
|
130
144
|
authorizationCode: z.string().optional(),
|
|
@@ -65,6 +65,15 @@ export type CreateAccount = {
|
|
|
65
65
|
* User provided settings to manage an account.
|
|
66
66
|
*/
|
|
67
67
|
settings?: Settings | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Capabilities to request when the account is created. Request granular capability IDs that match your use case.
|
|
70
|
+
*
|
|
71
|
+
* @remarks
|
|
72
|
+
*
|
|
73
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
74
|
+
*
|
|
75
|
+
* The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Use granular values such as `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance` instead.
|
|
76
|
+
*/
|
|
68
77
|
capabilities?: Array<CapabilityID> | undefined;
|
|
69
78
|
/**
|
|
70
79
|
* The operating mode for an account.
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
*
|
|
49
49
|
* @remarks
|
|
50
50
|
*
|
|
51
|
-
* A payment link must include
|
|
51
|
+
* A payment link must include exactly one of `payment`, `payout`, or `customAmountPayment` details. For payout payment links,
|
|
52
52
|
* `maxUses` will automatically be set to 1, as these are intended for a one-time disbursement
|
|
53
53
|
* to a specific recipient.
|
|
54
54
|
*/
|
|
@@ -68,8 +68,8 @@ export type CreatePaymentLink = {
|
|
|
68
68
|
*
|
|
69
69
|
* In API versions before `2026.07.00`, this was a required field.
|
|
70
70
|
*
|
|
71
|
-
* In API version `2026.07.00` and beyond, this field is required for `
|
|
72
|
-
* for `
|
|
71
|
+
* In API version `2026.07.00` and beyond, this field is required for `payment` and `payout` links and must be
|
|
72
|
+
* omitted for `customAmountPayment` links, where the payor chooses the amount.
|
|
73
73
|
*/
|
|
74
74
|
amount: Amount;
|
|
75
75
|
/**
|
|
@@ -17,6 +17,10 @@ export type CreateTransferDestinationCard = {
|
|
|
17
17
|
* An optional override of the default card statement descriptor for a transfer. Accounts must be enabled by Moov to set this field.
|
|
18
18
|
*/
|
|
19
19
|
dynamicDescriptor?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* The scheduled date and time for the transfer to be delivered. This field is only valid for push-to-card transfers. Must be between 24 and 48 hours in the future in production. In sandbox mode, any future time up to 48 hours is accepted so integrations can test deferred delivery using the sandbox test cards with relaxed wait times.
|
|
22
|
+
*/
|
|
23
|
+
scheduledDeliveryOn?: Date | undefined;
|
|
20
24
|
/**
|
|
21
25
|
* An optional field to specify the type of card payout, used to route the transfer with the appropriate business application identifier (BAI).
|
|
22
26
|
*/
|
|
@@ -30,11 +34,15 @@ export const CreateTransferDestinationCard$inboundSchema: z.ZodType<
|
|
|
30
34
|
unknown
|
|
31
35
|
> = z.object({
|
|
32
36
|
dynamicDescriptor: z.string().optional(),
|
|
37
|
+
scheduledDeliveryOn: z.string().datetime({ offset: true }).transform(v =>
|
|
38
|
+
new Date(v)
|
|
39
|
+
).optional(),
|
|
33
40
|
payoutType: CardPayoutType$inboundSchema.optional(),
|
|
34
41
|
});
|
|
35
42
|
/** @internal */
|
|
36
43
|
export type CreateTransferDestinationCard$Outbound = {
|
|
37
44
|
dynamicDescriptor?: string | undefined;
|
|
45
|
+
scheduledDeliveryOn?: string | undefined;
|
|
38
46
|
payoutType?: string | undefined;
|
|
39
47
|
};
|
|
40
48
|
|
|
@@ -45,6 +53,7 @@ export const CreateTransferDestinationCard$outboundSchema: z.ZodType<
|
|
|
45
53
|
CreateTransferDestinationCard
|
|
46
54
|
> = z.object({
|
|
47
55
|
dynamicDescriptor: z.string().optional(),
|
|
56
|
+
scheduledDeliveryOn: z.date().transform(v => v.toISOString()).optional(),
|
|
48
57
|
payoutType: CardPayoutType$outboundSchema.optional(),
|
|
49
58
|
});
|
|
50
59
|
|
|
@@ -7,11 +7,11 @@ 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
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
10
|
+
Address,
|
|
11
|
+
Address$inboundSchema,
|
|
12
|
+
Address$Outbound,
|
|
13
|
+
Address$outboundSchema,
|
|
14
|
+
} from "./address.js";
|
|
15
15
|
import {
|
|
16
16
|
CardBrand,
|
|
17
17
|
CardBrand$inboundSchema,
|
|
@@ -55,26 +55,32 @@ export type FullIssuedCard = {
|
|
|
55
55
|
*/
|
|
56
56
|
expiration: CardExpiration;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Unique identifier for the wallet funding the card.
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
fundingWalletID: string;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Identifier for the account of the card's authorized user.
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
authorizedUserAccountID?: string | undefined;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* An optional descriptive name for the card.
|
|
67
67
|
*/
|
|
68
|
-
|
|
68
|
+
nickname?: string | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
|
|
71
|
+
*/
|
|
72
|
+
metadata?: { [k: string]: string } | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Billing address associated with the card.
|
|
75
|
+
*/
|
|
76
|
+
billingAddress?: Address | undefined;
|
|
69
77
|
/**
|
|
70
78
|
* The `state` represents the operational status of an issued card. A card can only approve incoming authorizations if it is in an active state.
|
|
71
79
|
*
|
|
72
80
|
* @remarks
|
|
73
81
|
*
|
|
74
|
-
* - `active`: The card is operational and
|
|
75
|
-
* - `inactive`: The card cannot approve authorizations. This is currently a temporary state assigned post-creation during the activation process.
|
|
82
|
+
* - `active`: The card is operational and can approve authorizations.
|
|
76
83
|
* - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
|
|
77
|
-
* - `pending-verification`: Awaiting additional authorized user verification before the card can be activated.
|
|
78
84
|
*/
|
|
79
85
|
state: IssuedCardState;
|
|
80
86
|
/**
|
|
@@ -83,6 +89,7 @@ export type FullIssuedCard = {
|
|
|
83
89
|
formFactor: IssuedCardFormFactor;
|
|
84
90
|
controls?: IssuingControls | undefined;
|
|
85
91
|
createdOn: Date;
|
|
92
|
+
updatedOn: Date;
|
|
86
93
|
/**
|
|
87
94
|
* The issued card's Primary Account Number (PAN)
|
|
88
95
|
*/
|
|
@@ -103,13 +110,16 @@ export const FullIssuedCard$inboundSchema: z.ZodType<
|
|
|
103
110
|
brand: CardBrand$inboundSchema,
|
|
104
111
|
lastFourCardNumber: z.string(),
|
|
105
112
|
expiration: CardExpiration$inboundSchema,
|
|
106
|
-
authorizedUser: AuthorizedUser$inboundSchema,
|
|
107
|
-
memo: z.string().optional(),
|
|
108
113
|
fundingWalletID: z.string(),
|
|
114
|
+
authorizedUserAccountID: z.string().optional(),
|
|
115
|
+
nickname: z.string().optional(),
|
|
116
|
+
metadata: z.record(z.string()).optional(),
|
|
117
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
109
118
|
state: IssuedCardState$inboundSchema,
|
|
110
119
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
111
120
|
controls: IssuingControls$inboundSchema.optional(),
|
|
112
121
|
createdOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
122
|
+
updatedOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
113
123
|
pan: z.string(),
|
|
114
124
|
cvv: z.string(),
|
|
115
125
|
});
|
|
@@ -119,13 +129,16 @@ export type FullIssuedCard$Outbound = {
|
|
|
119
129
|
brand: string;
|
|
120
130
|
lastFourCardNumber: string;
|
|
121
131
|
expiration: CardExpiration$Outbound;
|
|
122
|
-
authorizedUser: AuthorizedUser$Outbound;
|
|
123
|
-
memo?: string | undefined;
|
|
124
132
|
fundingWalletID: string;
|
|
133
|
+
authorizedUserAccountID?: string | undefined;
|
|
134
|
+
nickname?: string | undefined;
|
|
135
|
+
metadata?: { [k: string]: string } | undefined;
|
|
136
|
+
billingAddress?: Address$Outbound | undefined;
|
|
125
137
|
state: string;
|
|
126
138
|
formFactor: string;
|
|
127
139
|
controls?: IssuingControls$Outbound | undefined;
|
|
128
140
|
createdOn: string;
|
|
141
|
+
updatedOn: string;
|
|
129
142
|
pan: string;
|
|
130
143
|
cvv: string;
|
|
131
144
|
};
|
|
@@ -140,13 +153,16 @@ export const FullIssuedCard$outboundSchema: z.ZodType<
|
|
|
140
153
|
brand: CardBrand$outboundSchema,
|
|
141
154
|
lastFourCardNumber: z.string(),
|
|
142
155
|
expiration: CardExpiration$outboundSchema,
|
|
143
|
-
authorizedUser: AuthorizedUser$outboundSchema,
|
|
144
|
-
memo: z.string().optional(),
|
|
145
156
|
fundingWalletID: z.string(),
|
|
157
|
+
authorizedUserAccountID: z.string().optional(),
|
|
158
|
+
nickname: z.string().optional(),
|
|
159
|
+
metadata: z.record(z.string()).optional(),
|
|
160
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
146
161
|
state: IssuedCardState$outboundSchema,
|
|
147
162
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
148
163
|
controls: IssuingControls$outboundSchema.optional(),
|
|
149
164
|
createdOn: z.date().transform(v => v.toISOString()),
|
|
165
|
+
updatedOn: z.date().transform(v => v.toISOString()),
|
|
150
166
|
pan: z.string(),
|
|
151
167
|
cvv: z.string(),
|
|
152
168
|
});
|
|
@@ -52,7 +52,6 @@ export * from "./assignproductimage.js";
|
|
|
52
52
|
export * from "./assignproductimagevalidationerror.js";
|
|
53
53
|
export * from "./asynccreatedrefund.js";
|
|
54
54
|
export * from "./asynctransfer.js";
|
|
55
|
-
export * from "./authorizeduser.js";
|
|
56
55
|
export * from "./authtoken.js";
|
|
57
56
|
export * from "./authtokenrequest.js";
|
|
58
57
|
export * from "./bankaccount.js";
|
|
@@ -141,9 +140,6 @@ export * from "./createaccount.js";
|
|
|
141
140
|
export * from "./createaccountsettings.js";
|
|
142
141
|
export * from "./createaccounttype.js";
|
|
143
142
|
export * from "./createapplepaysession.js";
|
|
144
|
-
export * from "./createauthorizeduser.js";
|
|
145
|
-
export * from "./createauthorizedusererror.js";
|
|
146
|
-
export * from "./createauthorizeduserupdate.js";
|
|
147
143
|
export * from "./createbusinesserror.js";
|
|
148
144
|
export * from "./createbusinessprofile.js";
|
|
149
145
|
export * from "./createdtransfer.js";
|
|
@@ -416,6 +412,10 @@ export * from "./pullfromcardpaymentmethod.js";
|
|
|
416
412
|
export * from "./pullfromcardtransferpaymentmethod.js";
|
|
417
413
|
export * from "./pullfromgooglepaypaymentmethod.js";
|
|
418
414
|
export * from "./pullfromgooglepaytransferpaymentmethod.js";
|
|
415
|
+
export * from "./pushdeliveryspeed.js";
|
|
416
|
+
export * from "./pushoptions.js";
|
|
417
|
+
export * from "./pushoptionserror.js";
|
|
418
|
+
export * from "./pushoptionsupdate.js";
|
|
419
419
|
export * from "./pushtoapplepaypaymentmethod.js";
|
|
420
420
|
export * from "./pushtoapplepaytransferpaymentmethod.js";
|
|
421
421
|
export * from "./pushtocardpaymentmethod.js";
|
|
@@ -517,6 +517,7 @@ export * from "./transferaccount.js";
|
|
|
517
517
|
export * from "./transferachaddendarecord.js";
|
|
518
518
|
export * from "./transferamountdetails.js";
|
|
519
519
|
export * from "./transferconfig.js";
|
|
520
|
+
export * from "./transfercontrols.js";
|
|
520
521
|
export * from "./transferdestination.js";
|
|
521
522
|
export * from "./transferentrymode.js";
|
|
522
523
|
export * from "./transferfailurereason.js";
|
|
@@ -575,6 +576,7 @@ export * from "./webhookdata.js";
|
|
|
575
576
|
export * from "./webhookdataaccountcreated.js";
|
|
576
577
|
export * from "./webhookdataaccountdisconnected.js";
|
|
577
578
|
export * from "./webhookdataaccountupdated.js";
|
|
579
|
+
export * from "./webhookdataauthorizationexpiring.js";
|
|
578
580
|
export * from "./webhookdatabalanceupdated.js";
|
|
579
581
|
export * from "./webhookdatabankaccountcreated.js";
|
|
580
582
|
export * from "./webhookdatabankaccountdeleted.js";
|
|
@@ -61,7 +61,7 @@ export type Invoice = {
|
|
|
61
61
|
subtotalAmount: AmountDecimal;
|
|
62
62
|
taxAmount: AmountDecimal;
|
|
63
63
|
/**
|
|
64
|
-
* Total amount of the invoice,
|
|
64
|
+
* Total amount of the invoice, including subtotal, tax, and surcharge amounts.
|
|
65
65
|
*/
|
|
66
66
|
totalAmount: AmountDecimal;
|
|
67
67
|
/**
|
|
@@ -81,6 +81,10 @@ export type Invoice = {
|
|
|
81
81
|
*/
|
|
82
82
|
disputedAmount: AmountDecimal;
|
|
83
83
|
paymentLinkCode?: string | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* URL to the hosted payment link for the invoice.
|
|
86
|
+
*/
|
|
87
|
+
paymentLinkURL?: string | undefined;
|
|
84
88
|
/**
|
|
85
89
|
* Payment made towards an invoice, will be either a transfer or an external payment.
|
|
86
90
|
*/
|
|
@@ -114,6 +118,7 @@ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
|
|
|
114
118
|
refundedAmount: AmountDecimal$inboundSchema,
|
|
115
119
|
disputedAmount: AmountDecimal$inboundSchema,
|
|
116
120
|
paymentLinkCode: z.string().optional(),
|
|
121
|
+
paymentLinkURL: z.string().optional(),
|
|
117
122
|
invoicePayments: z.array(InvoicePayment$inboundSchema).optional(),
|
|
118
123
|
createdOn: z.string().datetime({ offset: true }).transform(v =>
|
|
119
124
|
new Date(v)
|
|
@@ -153,6 +158,7 @@ export type Invoice$Outbound = {
|
|
|
153
158
|
refundedAmount: AmountDecimal$Outbound;
|
|
154
159
|
disputedAmount: AmountDecimal$Outbound;
|
|
155
160
|
paymentLinkCode?: string | undefined;
|
|
161
|
+
paymentLinkURL?: string | undefined;
|
|
156
162
|
invoicePayments?: Array<InvoicePayment$Outbound> | undefined;
|
|
157
163
|
createdOn: string;
|
|
158
164
|
invoiceDate?: string | undefined;
|
|
@@ -186,6 +192,7 @@ export const Invoice$outboundSchema: z.ZodType<
|
|
|
186
192
|
refundedAmount: AmountDecimal$outboundSchema,
|
|
187
193
|
disputedAmount: AmountDecimal$outboundSchema,
|
|
188
194
|
paymentLinkCode: z.string().optional(),
|
|
195
|
+
paymentLinkURL: z.string().optional(),
|
|
189
196
|
invoicePayments: z.array(InvoicePayment$outboundSchema).optional(),
|
|
190
197
|
createdOn: z.date().transform(v => v.toISOString()),
|
|
191
198
|
invoiceDate: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -7,11 +7,11 @@ 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
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
10
|
+
Address,
|
|
11
|
+
Address$inboundSchema,
|
|
12
|
+
Address$Outbound,
|
|
13
|
+
Address$outboundSchema,
|
|
14
|
+
} from "./address.js";
|
|
15
15
|
import {
|
|
16
16
|
CardBrand,
|
|
17
17
|
CardBrand$inboundSchema,
|
|
@@ -52,26 +52,32 @@ export type IssuedCard = {
|
|
|
52
52
|
*/
|
|
53
53
|
expiration: CardExpiration;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Unique identifier for the wallet funding the card.
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
fundingWalletID: string;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Identifier for the account of the card's authorized user.
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
authorizedUserAccountID?: string | undefined;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* An optional descriptive name for the card.
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
nickname?: string | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
|
|
68
|
+
*/
|
|
69
|
+
metadata?: { [k: string]: string } | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Billing address associated with the card.
|
|
72
|
+
*/
|
|
73
|
+
billingAddress?: Address | undefined;
|
|
66
74
|
/**
|
|
67
75
|
* The `state` represents the operational status of an issued card. A card can only approve incoming authorizations if it is in an active state.
|
|
68
76
|
*
|
|
69
77
|
* @remarks
|
|
70
78
|
*
|
|
71
|
-
* - `active`: The card is operational and
|
|
72
|
-
* - `inactive`: The card cannot approve authorizations. This is currently a temporary state assigned post-creation during the activation process.
|
|
79
|
+
* - `active`: The card is operational and can approve authorizations.
|
|
73
80
|
* - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
|
|
74
|
-
* - `pending-verification`: Awaiting additional authorized user verification before the card can be activated.
|
|
75
81
|
*/
|
|
76
82
|
state: IssuedCardState;
|
|
77
83
|
/**
|
|
@@ -80,6 +86,7 @@ export type IssuedCard = {
|
|
|
80
86
|
formFactor: IssuedCardFormFactor;
|
|
81
87
|
controls?: IssuingControls | undefined;
|
|
82
88
|
createdOn: Date;
|
|
89
|
+
updatedOn: Date;
|
|
83
90
|
};
|
|
84
91
|
|
|
85
92
|
/** @internal */
|
|
@@ -92,13 +99,16 @@ export const IssuedCard$inboundSchema: z.ZodType<
|
|
|
92
99
|
brand: CardBrand$inboundSchema,
|
|
93
100
|
lastFourCardNumber: z.string(),
|
|
94
101
|
expiration: CardExpiration$inboundSchema,
|
|
95
|
-
authorizedUser: AuthorizedUser$inboundSchema,
|
|
96
|
-
memo: z.string().optional(),
|
|
97
102
|
fundingWalletID: z.string(),
|
|
103
|
+
authorizedUserAccountID: z.string().optional(),
|
|
104
|
+
nickname: z.string().optional(),
|
|
105
|
+
metadata: z.record(z.string()).optional(),
|
|
106
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
98
107
|
state: IssuedCardState$inboundSchema,
|
|
99
108
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
100
109
|
controls: IssuingControls$inboundSchema.optional(),
|
|
101
110
|
createdOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
111
|
+
updatedOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
102
112
|
});
|
|
103
113
|
/** @internal */
|
|
104
114
|
export type IssuedCard$Outbound = {
|
|
@@ -106,13 +116,16 @@ export type IssuedCard$Outbound = {
|
|
|
106
116
|
brand: string;
|
|
107
117
|
lastFourCardNumber: string;
|
|
108
118
|
expiration: CardExpiration$Outbound;
|
|
109
|
-
authorizedUser: AuthorizedUser$Outbound;
|
|
110
|
-
memo?: string | undefined;
|
|
111
119
|
fundingWalletID: string;
|
|
120
|
+
authorizedUserAccountID?: string | undefined;
|
|
121
|
+
nickname?: string | undefined;
|
|
122
|
+
metadata?: { [k: string]: string } | undefined;
|
|
123
|
+
billingAddress?: Address$Outbound | undefined;
|
|
112
124
|
state: string;
|
|
113
125
|
formFactor: string;
|
|
114
126
|
controls?: IssuingControls$Outbound | undefined;
|
|
115
127
|
createdOn: string;
|
|
128
|
+
updatedOn: string;
|
|
116
129
|
};
|
|
117
130
|
|
|
118
131
|
/** @internal */
|
|
@@ -125,13 +138,16 @@ export const IssuedCard$outboundSchema: z.ZodType<
|
|
|
125
138
|
brand: CardBrand$outboundSchema,
|
|
126
139
|
lastFourCardNumber: z.string(),
|
|
127
140
|
expiration: CardExpiration$outboundSchema,
|
|
128
|
-
authorizedUser: AuthorizedUser$outboundSchema,
|
|
129
|
-
memo: z.string().optional(),
|
|
130
141
|
fundingWalletID: z.string(),
|
|
142
|
+
authorizedUserAccountID: z.string().optional(),
|
|
143
|
+
nickname: z.string().optional(),
|
|
144
|
+
metadata: z.record(z.string()).optional(),
|
|
145
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
131
146
|
state: IssuedCardState$outboundSchema,
|
|
132
147
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
133
148
|
controls: IssuingControls$outboundSchema.optional(),
|
|
134
149
|
createdOn: z.date().transform(v => v.toISOString()),
|
|
150
|
+
updatedOn: z.date().transform(v => v.toISOString()),
|
|
135
151
|
});
|
|
136
152
|
|
|
137
153
|
export function issuedCardToJSON(issuedCard: IssuedCard): string {
|
|
@@ -10,15 +10,11 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
10
10
|
*
|
|
11
11
|
* @remarks
|
|
12
12
|
*
|
|
13
|
-
* - `active`: The card is operational and
|
|
14
|
-
* - `inactive`: The card cannot approve authorizations. This is currently a temporary state assigned post-creation during the activation process.
|
|
13
|
+
* - `active`: The card is operational and can approve authorizations.
|
|
15
14
|
* - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
|
|
16
|
-
* - `pending-verification`: Awaiting additional authorized user verification before the card can be activated.
|
|
17
15
|
*/
|
|
18
16
|
export const IssuedCardState = {
|
|
19
17
|
Active: "active",
|
|
20
|
-
Inactive: "inactive",
|
|
21
|
-
PendingVerification: "pending-verification",
|
|
22
18
|
Closed: "closed",
|
|
23
19
|
} as const;
|
|
24
20
|
/**
|
|
@@ -26,10 +22,8 @@ export const IssuedCardState = {
|
|
|
26
22
|
*
|
|
27
23
|
* @remarks
|
|
28
24
|
*
|
|
29
|
-
* - `active`: The card is operational and
|
|
30
|
-
* - `inactive`: The card cannot approve authorizations. This is currently a temporary state assigned post-creation during the activation process.
|
|
25
|
+
* - `active`: The card is operational and can approve authorizations.
|
|
31
26
|
* - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
|
|
32
|
-
* - `pending-verification`: Awaiting additional authorized user verification before the card can be activated.
|
|
33
27
|
*/
|
|
34
28
|
export type IssuedCardState = ClosedEnum<typeof IssuedCardState>;
|
|
35
29
|
|
|
@@ -16,7 +16,7 @@ export type ManualTermsOfServiceUpdate = {
|
|
|
16
16
|
*/
|
|
17
17
|
acceptedDate?: Date | undefined;
|
|
18
18
|
/**
|
|
19
|
-
* The IP address from which the terms of service were accepted.
|
|
19
|
+
* The IP address (IPv4 or IPv6) from which the terms of service were accepted.
|
|
20
20
|
*/
|
|
21
21
|
acceptedIP?: string | undefined;
|
|
22
22
|
/**
|
|
@@ -61,7 +61,7 @@ export type OnboardingInvite = {
|
|
|
61
61
|
*/
|
|
62
62
|
grantScopes?: Array<ApplicationScope> | undefined;
|
|
63
63
|
/**
|
|
64
|
-
* List of [capabilities](https://docs.moov.io/guides/accounts/capabilities/) you intend to request for this
|
|
64
|
+
* List of [capabilities](https://docs.moov.io/guides/accounts/capabilities/reference/) you intend to request for this
|
|
65
65
|
*
|
|
66
66
|
* @remarks
|
|
67
67
|
* account. These values are used to determine what information to collect from the user during onboarding.
|