@moovio/sdk 26.7.0-dev.3 → 26.7.0-dev.5
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 +113 -89
- package/bin/mcp-server.js +1832 -1174
- package/bin/mcp-server.js.map +95 -83
- 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/depositViewCreate.d.ts +22 -0
- package/funcs/depositViewCreate.d.ts.map +1 -0
- package/funcs/depositViewCreate.js +136 -0
- package/funcs/depositViewCreate.js.map +1 -0
- 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 +5 -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/depositViewCreate.d.ts +8 -0
- package/mcp-server/tools/depositViewCreate.d.ts.map +1 -0
- package/mcp-server/tools/depositViewCreate.js +69 -0
- package/mcp-server/tools/depositViewCreate.js.map +1 -0
- 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/amountdecimalrange.d.ts +15 -4
- package/models/components/amountdecimalrange.d.ts.map +1 -1
- package/models/components/amountdecimalrange.js +5 -4
- package/models/components/amountdecimalrange.js.map +1 -1
- package/models/components/amountdecimalrangeupdate.d.ts +11 -0
- package/models/components/amountdecimalrangeupdate.d.ts.map +1 -1
- package/models/components/amountdecimalrangeupdate.js.map +1 -1
- package/models/components/capability.d.ts +7 -1
- package/models/components/capability.d.ts.map +1 -1
- package/models/components/capability.js.map +1 -1
- package/models/components/capabilityid.d.ts +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 +4 -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 +9 -3
- package/models/components/createpaymentlink.d.ts.map +1 -1
- package/models/components/createpaymentlink.js +4 -0
- package/models/components/createpaymentlink.js.map +1 -1
- package/models/components/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/customamountpaymentdetailserror.d.ts +29 -0
- package/models/components/customamountpaymentdetailserror.d.ts.map +1 -0
- package/models/components/customamountpaymentdetailserror.js +71 -0
- package/models/components/customamountpaymentdetailserror.js.map +1 -0
- package/models/components/depositaccountingestedresponse.d.ts +39 -0
- package/models/components/depositaccountingestedresponse.d.ts.map +1 -0
- package/models/components/depositaccountingestedresponse.js +66 -0
- package/models/components/depositaccountingestedresponse.js.map +1 -0
- 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 +10 -4
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +10 -4
- package/models/components/index.js.map +1 -1
- package/models/components/invoice.d.ts +5 -0
- 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 +5 -2
- package/models/components/patchtransfer.d.ts.map +1 -1
- package/models/components/patchtransfer.js +2 -2
- package/models/components/patchtransfer.js.map +1 -1
- package/models/components/patchwallet.d.ts +4 -7
- package/models/components/patchwallet.d.ts.map +1 -1
- package/models/components/patchwallet.js +4 -4
- package/models/components/patchwallet.js.map +1 -1
- package/models/components/paymentlink.d.ts +13 -2
- package/models/components/paymentlink.d.ts.map +1 -1
- package/models/components/paymentlink.js +4 -0
- package/models/components/paymentlink.js.map +1 -1
- package/models/components/paymentlinkcustomamountpaymentdetails.d.ts +70 -0
- package/models/components/paymentlinkcustomamountpaymentdetails.d.ts.map +1 -0
- package/models/components/paymentlinkcustomamountpaymentdetails.js +74 -0
- package/models/components/paymentlinkcustomamountpaymentdetails.js.map +1 -0
- package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts +70 -0
- package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts.map +1 -0
- package/models/components/paymentlinkcustomamountpaymentdetailsupdate.js +75 -0
- package/models/components/paymentlinkcustomamountpaymentdetailsupdate.js.map +1 -0
- package/models/components/paymentlinkpaymentdetails.d.ts +0 -33
- package/models/components/paymentlinkpaymentdetails.d.ts.map +1 -1
- package/models/components/paymentlinkpaymentdetails.js +1 -21
- package/models/components/paymentlinkpaymentdetails.js.map +1 -1
- package/models/components/paymentlinkpaymentdetailsupdate.d.ts +0 -33
- package/models/components/paymentlinkpaymentdetailsupdate.d.ts.map +1 -1
- package/models/components/paymentlinkpaymentdetailsupdate.js +1 -21
- package/models/components/paymentlinkpaymentdetailsupdate.js.map +1 -1
- package/models/components/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/paymentlinktype.d.ts +1 -0
- package/models/components/paymentlinktype.d.ts.map +1 -1
- package/models/components/paymentlinktype.js +1 -0
- package/models/components/paymentlinktype.js.map +1 -1
- package/models/components/paymentmethodscard.d.ts +8 -0
- package/models/components/paymentmethodscard.d.ts.map +1 -1
- package/models/components/paymentmethodscard.js +2 -0
- package/models/components/paymentmethodscard.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/sourcesystem.d.ts +29 -0
- package/models/components/sourcesystem.d.ts.map +1 -0
- package/models/components/sourcesystem.js +58 -0
- package/models/components/sourcesystem.js.map +1 -0
- package/models/components/termsofservice.d.ts +1 -1
- package/models/components/updateissuedcard.d.ts +33 -8
- package/models/components/updateissuedcard.d.ts.map +1 -1
- package/models/components/updateissuedcard.js +35 -6
- package/models/components/updateissuedcard.js.map +1 -1
- package/models/components/updatepaymentlink.d.ts +6 -0
- package/models/components/updatepaymentlink.d.ts.map +1 -1
- package/models/components/updatepaymentlink.js +3 -0
- package/models/components/updatepaymentlink.js.map +1 -1
- package/models/components/updatepaymentlinkamountdetails.d.ts +60 -5
- package/models/components/updatepaymentlinkamountdetails.d.ts.map +1 -1
- package/models/components/updatepaymentlinkamountdetails.js +43 -6
- package/models/components/updatepaymentlinkamountdetails.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/{createauthorizeduserupdate.js → webhookdataauthorizationexpiring.js} +18 -17
- package/models/components/webhookdataauthorizationexpiring.js.map +1 -0
- package/models/components/webhookdatacapabilityrequested.d.ts +7 -1
- package/models/components/webhookdatacapabilityrequested.d.ts.map +1 -1
- package/models/components/webhookdatacapabilityrequested.js.map +1 -1
- package/models/components/webhookdatacapabilityupdated.d.ts +7 -1
- package/models/components/webhookdatacapabilityupdated.d.ts.map +1 -1
- package/models/components/webhookdatacapabilityupdated.js.map +1 -1
- package/models/components/webhookdatasweepcreated.d.ts +5 -0
- package/models/components/webhookdatasweepcreated.d.ts.map +1 -1
- package/models/components/webhookdatasweepcreated.js +2 -0
- package/models/components/webhookdatasweepcreated.js.map +1 -1
- package/models/components/webhookdatasweepupdated.d.ts +5 -0
- package/models/components/webhookdatasweepupdated.d.ts.map +1 -1
- package/models/components/webhookdatasweepupdated.js +2 -0
- package/models/components/webhookdatasweepupdated.js.map +1 -1
- package/models/components/webhookeventtype.d.ts +1 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +1 -0
- package/models/components/webhookeventtype.js.map +1 -1
- package/models/errors/createpaymentlinkerror.d.ts +3 -0
- package/models/errors/createpaymentlinkerror.d.ts.map +1 -1
- package/models/errors/createpaymentlinkerror.js +6 -0
- package/models/errors/createpaymentlinkerror.js.map +1 -1
- package/models/errors/depositaccountvalidationerror.d.ts +41 -0
- package/models/errors/depositaccountvalidationerror.d.ts.map +1 -0
- package/models/errors/depositaccountvalidationerror.js +81 -0
- package/models/errors/depositaccountvalidationerror.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/requestcarderror.d.ts +12 -12
- package/models/errors/requestcarderror.d.ts.map +1 -1
- package/models/errors/requestcarderror.js +17 -17
- package/models/errors/requestcarderror.js.map +1 -1
- package/models/errors/updateissuedcarderror.d.ts +9 -6
- package/models/errors/updateissuedcarderror.d.ts.map +1 -1
- package/models/errors/updateissuedcarderror.js +12 -9
- package/models/errors/updateissuedcarderror.js.map +1 -1
- package/models/errors/updatepaymentlinkerror.d.ts +3 -0
- package/models/errors/updatepaymentlinkerror.d.ts.map +1 -1
- package/models/errors/updatepaymentlinkerror.js +6 -0
- package/models/errors/updatepaymentlinkerror.js.map +1 -1
- package/models/operations/createdepositaccount.d.ts +44 -0
- package/models/operations/createdepositaccount.d.ts.map +1 -0
- package/models/operations/createdepositaccount.js +113 -0
- package/models/operations/createdepositaccount.js.map +1 -0
- 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 +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -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 +91 -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/depositview.d.ts +16 -0
- package/sdk/depositview.d.ts.map +1 -0
- package/sdk/depositview.js +26 -0
- package/sdk/depositview.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- 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/depositViewCreate.ts +201 -0
- 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 +5 -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/depositViewCreate.ts +43 -0
- package/src/mcp-server/tools/transfersListCancellations.ts +38 -0
- package/src/models/components/addcapabilities.ts +9 -0
- package/src/models/components/amountdecimalrange.ts +20 -8
- package/src/models/components/amountdecimalrangeupdate.ts +11 -0
- package/src/models/components/capability.ts +7 -1
- package/src/models/components/capabilityid.ts +15 -2
- package/src/models/components/cardtransactiondetails.ts +11 -0
- package/src/models/components/cardtransactionstatus.ts +1 -0
- package/src/models/components/createaccount.ts +9 -0
- package/src/models/components/createpaymentlink.ts +21 -3
- package/src/models/components/createtransferdestinationcard.ts +7 -0
- package/src/models/components/customamountpaymentdetailserror.ts +86 -0
- package/src/models/components/depositaccountingestedresponse.ts +86 -0
- package/src/models/components/fullissuedcard.ts +36 -20
- package/src/models/components/index.ts +10 -4
- package/src/models/components/invoice.ts +7 -0
- 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 +7 -4
- package/src/models/components/patchwallet.ts +8 -11
- package/src/models/components/paymentlink.ts +25 -2
- package/src/models/components/paymentlinkcustomamountpaymentdetails.ts +138 -0
- package/src/models/components/paymentlinkcustomamountpaymentdetailsupdate.ts +149 -0
- package/src/models/components/paymentlinkpaymentdetails.ts +0 -60
- package/src/models/components/paymentlinkpaymentdetailsupdate.ts +0 -61
- package/src/models/components/paymentlinkpayoutdetails.ts +18 -0
- package/src/models/components/paymentlinkpayoutdetailsupdate.ts +18 -0
- package/src/models/components/paymentlinktype.ts +1 -0
- package/src/models/components/paymentmethodscard.ts +10 -0
- package/src/models/components/payoutdetailserror.ts +10 -0
- package/src/models/components/pushdeliveryspeed.ts +32 -0
- package/src/models/components/pushoptions.ts +72 -0
- package/src/models/components/pushoptionserror.ts +56 -0
- package/src/models/components/pushoptionsupdate.ts +76 -0
- package/src/models/components/requestcard.ts +23 -34
- package/src/models/components/sourcesystem.ts +43 -0
- package/src/models/components/termsofservice.ts +1 -1
- package/src/models/components/updateissuedcard.ts +73 -17
- package/src/models/components/updatepaymentlink.ts +18 -0
- package/src/models/components/updatepaymentlinkamountdetails.ts +114 -14
- package/src/models/components/webhookdata.ts +18 -8
- package/src/models/components/webhookdataauthorizationexpiring.ts +66 -0
- package/src/models/components/webhookdatacapabilityrequested.ts +7 -1
- package/src/models/components/webhookdatacapabilityupdated.ts +7 -1
- package/src/models/components/webhookdatasweepcreated.ts +7 -0
- package/src/models/components/webhookdatasweepupdated.ts +7 -0
- package/src/models/components/webhookeventtype.ts +1 -0
- package/src/models/errors/createpaymentlinkerror.ts +13 -0
- package/src/models/errors/depositaccountvalidationerror.ts +86 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/requestcarderror.ts +26 -27
- package/src/models/errors/updateissuedcarderror.ts +18 -15
- package/src/models/errors/updatepaymentlinkerror.ts +13 -0
- package/src/models/operations/createdepositaccount.ts +146 -0
- package/src/models/operations/disablecapability.ts +7 -1
- package/src/models/operations/getcapability.ts +7 -1
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/linkbankaccount.ts +1 -1
- package/src/models/operations/listcancellations.ts +121 -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/depositview.ts +31 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/transfers.ts +18 -0
- package/lib/dlv.d.ts +0 -14
- package/lib/dlv.d.ts.map +0 -1
- package/lib/dlv.js +0 -49
- package/lib/dlv.js.map +0 -1
- package/lib/is-plain-object.d.ts +0 -2
- package/lib/is-plain-object.d.ts.map +0 -1
- package/lib/is-plain-object.js +0 -41
- package/lib/is-plain-object.js.map +0 -1
- package/models/components/authorizeduser.d.ts +0 -22
- package/models/components/authorizeduser.d.ts.map +0 -1
- package/models/components/authorizeduser.js.map +0 -1
- package/models/components/createauthorizeduser.d.ts +0 -25
- package/models/components/createauthorizeduser.d.ts.map +0 -1
- package/models/components/createauthorizeduser.js.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 -55
- package/src/models/components/createauthorizeduser.ts +0 -69
- package/src/models/components/createauthorizedusererror.ts +0 -66
- package/src/models/components/createauthorizeduserupdate.ts +0 -69
|
@@ -8,19 +8,19 @@ import * as components from "../components/index.js";
|
|
|
8
8
|
import { MoovError } from "./mooverror.js";
|
|
9
9
|
|
|
10
10
|
export type RequestCardErrorData = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
authorizedUserAccountID?: string | undefined;
|
|
12
|
+
nickname?: string | undefined;
|
|
13
|
+
metadata?: string | undefined;
|
|
14
|
+
billingAddress?: components.AddressError | undefined;
|
|
15
15
|
expiration?: components.CardExpirationError | undefined;
|
|
16
16
|
controls?: components.IssuingControlsError | undefined;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
export class RequestCardError extends MoovError {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
authorizedUserAccountID?: string | undefined;
|
|
21
|
+
nickname?: string | undefined;
|
|
22
|
+
metadata?: string | undefined;
|
|
23
|
+
billingAddress?: components.AddressError | undefined;
|
|
24
24
|
expiration?: components.CardExpirationError | undefined;
|
|
25
25
|
controls?: components.IssuingControlsError | undefined;
|
|
26
26
|
|
|
@@ -36,10 +36,12 @@ export class RequestCardError extends MoovError {
|
|
|
36
36
|
: `API error occurred: ${JSON.stringify(err)}`;
|
|
37
37
|
super(message, httpMeta);
|
|
38
38
|
this.data$ = err;
|
|
39
|
-
if (err.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
if (err.
|
|
39
|
+
if (err.authorizedUserAccountID != null) {
|
|
40
|
+
this.authorizedUserAccountID = err.authorizedUserAccountID;
|
|
41
|
+
}
|
|
42
|
+
if (err.nickname != null) this.nickname = err.nickname;
|
|
43
|
+
if (err.metadata != null) this.metadata = err.metadata;
|
|
44
|
+
if (err.billingAddress != null) this.billingAddress = err.billingAddress;
|
|
43
45
|
if (err.expiration != null) this.expiration = err.expiration;
|
|
44
46
|
if (err.controls != null) this.controls = err.controls;
|
|
45
47
|
|
|
@@ -53,12 +55,10 @@ export const RequestCardError$inboundSchema: z.ZodType<
|
|
|
53
55
|
z.ZodTypeDef,
|
|
54
56
|
unknown
|
|
55
57
|
> = z.object({
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
),
|
|
61
|
-
memo: types.optional(types.string()),
|
|
58
|
+
authorizedUserAccountID: types.optional(types.string()),
|
|
59
|
+
nickname: types.optional(types.string()),
|
|
60
|
+
metadata: types.optional(types.string()),
|
|
61
|
+
billingAddress: types.optional(components.AddressError$inboundSchema),
|
|
62
62
|
expiration: types.optional(components.CardExpirationError$inboundSchema),
|
|
63
63
|
controls: types.optional(components.IssuingControlsError$inboundSchema),
|
|
64
64
|
request$: z.instanceof(Request),
|
|
@@ -75,10 +75,10 @@ export const RequestCardError$inboundSchema: z.ZodType<
|
|
|
75
75
|
|
|
76
76
|
/** @internal */
|
|
77
77
|
export type RequestCardError$Outbound = {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
authorizedUserAccountID?: string | undefined;
|
|
79
|
+
nickname?: string | undefined;
|
|
80
|
+
metadata?: string | undefined;
|
|
81
|
+
billingAddress?: components.AddressError$Outbound | undefined;
|
|
82
82
|
expiration?: components.CardExpirationError$Outbound | undefined;
|
|
83
83
|
controls?: components.IssuingControlsError$Outbound | undefined;
|
|
84
84
|
};
|
|
@@ -91,11 +91,10 @@ export const RequestCardError$outboundSchema: z.ZodType<
|
|
|
91
91
|
> = z.instanceof(RequestCardError)
|
|
92
92
|
.transform(v => v.data$)
|
|
93
93
|
.pipe(z.object({
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
memo: z.string().optional(),
|
|
94
|
+
authorizedUserAccountID: z.string().optional(),
|
|
95
|
+
nickname: z.string().optional(),
|
|
96
|
+
metadata: z.string().optional(),
|
|
97
|
+
billingAddress: components.AddressError$outboundSchema.optional(),
|
|
99
98
|
expiration: components.CardExpirationError$outboundSchema.optional(),
|
|
100
99
|
controls: components.IssuingControlsError$outboundSchema.optional(),
|
|
101
100
|
}));
|
|
@@ -9,14 +9,16 @@ import { MoovError } from "./mooverror.js";
|
|
|
9
9
|
|
|
10
10
|
export type UpdateIssuedCardErrorData = {
|
|
11
11
|
state?: string | undefined;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
nickname?: string | undefined;
|
|
13
|
+
metadata?: string | undefined;
|
|
14
|
+
billingAddress?: components.AddressError | undefined;
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
export class UpdateIssuedCardError extends MoovError {
|
|
17
18
|
state?: string | undefined;
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
nickname?: string | undefined;
|
|
20
|
+
metadata?: string | undefined;
|
|
21
|
+
billingAddress?: components.AddressError | undefined;
|
|
20
22
|
|
|
21
23
|
/** The original data that was passed to this error instance. */
|
|
22
24
|
data$: UpdateIssuedCardErrorData;
|
|
@@ -31,8 +33,9 @@ export class UpdateIssuedCardError extends MoovError {
|
|
|
31
33
|
super(message, httpMeta);
|
|
32
34
|
this.data$ = err;
|
|
33
35
|
if (err.state != null) this.state = err.state;
|
|
34
|
-
if (err.
|
|
35
|
-
if (err.
|
|
36
|
+
if (err.nickname != null) this.nickname = err.nickname;
|
|
37
|
+
if (err.metadata != null) this.metadata = err.metadata;
|
|
38
|
+
if (err.billingAddress != null) this.billingAddress = err.billingAddress;
|
|
36
39
|
|
|
37
40
|
this.name = "UpdateIssuedCardError";
|
|
38
41
|
}
|
|
@@ -45,10 +48,9 @@ export const UpdateIssuedCardError$inboundSchema: z.ZodType<
|
|
|
45
48
|
unknown
|
|
46
49
|
> = z.object({
|
|
47
50
|
state: types.optional(types.string()),
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
),
|
|
51
|
+
nickname: types.optional(types.string()),
|
|
52
|
+
metadata: types.optional(types.string()),
|
|
53
|
+
billingAddress: types.optional(components.AddressError$inboundSchema),
|
|
52
54
|
request$: z.instanceof(Request),
|
|
53
55
|
response$: z.instanceof(Response),
|
|
54
56
|
body$: z.string(),
|
|
@@ -64,8 +66,9 @@ export const UpdateIssuedCardError$inboundSchema: z.ZodType<
|
|
|
64
66
|
/** @internal */
|
|
65
67
|
export type UpdateIssuedCardError$Outbound = {
|
|
66
68
|
state?: string | undefined;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
nickname?: string | undefined;
|
|
70
|
+
metadata?: string | undefined;
|
|
71
|
+
billingAddress?: components.AddressError$Outbound | undefined;
|
|
69
72
|
};
|
|
70
73
|
|
|
71
74
|
/** @internal */
|
|
@@ -77,7 +80,7 @@ export const UpdateIssuedCardError$outboundSchema: z.ZodType<
|
|
|
77
80
|
.transform(v => v.data$)
|
|
78
81
|
.pipe(z.object({
|
|
79
82
|
state: z.string().optional(),
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
nickname: z.string().optional(),
|
|
84
|
+
metadata: z.string().optional(),
|
|
85
|
+
billingAddress: components.AddressError$outboundSchema.optional(),
|
|
83
86
|
}));
|
|
@@ -13,6 +13,7 @@ export type UpdatePaymentLinkErrorData = {
|
|
|
13
13
|
display?: components.DisplayOptionsError | undefined;
|
|
14
14
|
payment?: components.PaymentDetailsError | undefined;
|
|
15
15
|
payout?: components.PayoutDetailsError | undefined;
|
|
16
|
+
customAmountPayment?: components.CustomAmountPaymentDetailsError | undefined;
|
|
16
17
|
lineItems?: components.CreatePaymentLinkLineItemsValidationError | undefined;
|
|
17
18
|
amountDetails?:
|
|
18
19
|
| components.UpdatePaymentLinkAmountDetailsValidationError
|
|
@@ -25,6 +26,7 @@ export class UpdatePaymentLinkError extends MoovError {
|
|
|
25
26
|
display?: components.DisplayOptionsError | undefined;
|
|
26
27
|
payment?: components.PaymentDetailsError | undefined;
|
|
27
28
|
payout?: components.PayoutDetailsError | undefined;
|
|
29
|
+
customAmountPayment?: components.CustomAmountPaymentDetailsError | undefined;
|
|
28
30
|
lineItems?: components.CreatePaymentLinkLineItemsValidationError | undefined;
|
|
29
31
|
amountDetails?:
|
|
30
32
|
| components.UpdatePaymentLinkAmountDetailsValidationError
|
|
@@ -47,6 +49,9 @@ export class UpdatePaymentLinkError extends MoovError {
|
|
|
47
49
|
if (err.display != null) this.display = err.display;
|
|
48
50
|
if (err.payment != null) this.payment = err.payment;
|
|
49
51
|
if (err.payout != null) this.payout = err.payout;
|
|
52
|
+
if (err.customAmountPayment != null) {
|
|
53
|
+
this.customAmountPayment = err.customAmountPayment;
|
|
54
|
+
}
|
|
50
55
|
if (err.lineItems != null) this.lineItems = err.lineItems;
|
|
51
56
|
if (err.amountDetails != null) this.amountDetails = err.amountDetails;
|
|
52
57
|
|
|
@@ -65,6 +70,9 @@ export const UpdatePaymentLinkError$inboundSchema: z.ZodType<
|
|
|
65
70
|
display: types.optional(components.DisplayOptionsError$inboundSchema),
|
|
66
71
|
payment: types.optional(components.PaymentDetailsError$inboundSchema),
|
|
67
72
|
payout: types.optional(components.PayoutDetailsError$inboundSchema),
|
|
73
|
+
customAmountPayment: types.optional(
|
|
74
|
+
components.CustomAmountPaymentDetailsError$inboundSchema,
|
|
75
|
+
),
|
|
68
76
|
lineItems: types.optional(
|
|
69
77
|
components.CreatePaymentLinkLineItemsValidationError$inboundSchema,
|
|
70
78
|
),
|
|
@@ -90,6 +98,9 @@ export type UpdatePaymentLinkError$Outbound = {
|
|
|
90
98
|
display?: components.DisplayOptionsError$Outbound | undefined;
|
|
91
99
|
payment?: components.PaymentDetailsError$Outbound | undefined;
|
|
92
100
|
payout?: components.PayoutDetailsError$Outbound | undefined;
|
|
101
|
+
customAmountPayment?:
|
|
102
|
+
| components.CustomAmountPaymentDetailsError$Outbound
|
|
103
|
+
| undefined;
|
|
93
104
|
lineItems?:
|
|
94
105
|
| components.CreatePaymentLinkLineItemsValidationError$Outbound
|
|
95
106
|
| undefined;
|
|
@@ -111,6 +122,8 @@ export const UpdatePaymentLinkError$outboundSchema: z.ZodType<
|
|
|
111
122
|
display: components.DisplayOptionsError$outboundSchema.optional(),
|
|
112
123
|
payment: components.PaymentDetailsError$outboundSchema.optional(),
|
|
113
124
|
payout: components.PayoutDetailsError$outboundSchema.optional(),
|
|
125
|
+
customAmountPayment: components
|
|
126
|
+
.CustomAmountPaymentDetailsError$outboundSchema.optional(),
|
|
114
127
|
lineItems: components
|
|
115
128
|
.CreatePaymentLinkLineItemsValidationError$outboundSchema.optional(),
|
|
116
129
|
amountDetails: components
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import * as components from "../components/index.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
|
|
13
|
+
export type CreateDepositAccountRequest = {
|
|
14
|
+
accountID: string;
|
|
15
|
+
/**
|
|
16
|
+
* Identifies the core banking source system that produced the request body.
|
|
17
|
+
*/
|
|
18
|
+
xSourceSystem: components.SourceSystem;
|
|
19
|
+
requestBody: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type CreateDepositAccountResponse = {
|
|
23
|
+
headers: { [k: string]: Array<string> };
|
|
24
|
+
result: components.DepositAccountIngestedResponse;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const CreateDepositAccountRequest$inboundSchema: z.ZodType<
|
|
29
|
+
CreateDepositAccountRequest,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
accountID: types.string(),
|
|
34
|
+
"X-Source-System": components.SourceSystem$inboundSchema,
|
|
35
|
+
RequestBody: z.union([
|
|
36
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
37
|
+
z.instanceof(Blob),
|
|
38
|
+
z.instanceof(ArrayBuffer),
|
|
39
|
+
z.instanceof(Uint8Array),
|
|
40
|
+
]),
|
|
41
|
+
}).transform((v) => {
|
|
42
|
+
return remap$(v, {
|
|
43
|
+
"X-Source-System": "xSourceSystem",
|
|
44
|
+
"RequestBody": "requestBody",
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
/** @internal */
|
|
48
|
+
export type CreateDepositAccountRequest$Outbound = {
|
|
49
|
+
accountID: string;
|
|
50
|
+
"X-Source-System": string;
|
|
51
|
+
RequestBody: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const CreateDepositAccountRequest$outboundSchema: z.ZodType<
|
|
56
|
+
CreateDepositAccountRequest$Outbound,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
CreateDepositAccountRequest
|
|
59
|
+
> = z.object({
|
|
60
|
+
accountID: z.string(),
|
|
61
|
+
xSourceSystem: components.SourceSystem$outboundSchema,
|
|
62
|
+
requestBody: z.union([
|
|
63
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
64
|
+
z.instanceof(Blob),
|
|
65
|
+
z.instanceof(ArrayBuffer),
|
|
66
|
+
z.instanceof(Uint8Array),
|
|
67
|
+
]),
|
|
68
|
+
}).transform((v) => {
|
|
69
|
+
return remap$(v, {
|
|
70
|
+
xSourceSystem: "X-Source-System",
|
|
71
|
+
requestBody: "RequestBody",
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export function createDepositAccountRequestToJSON(
|
|
76
|
+
createDepositAccountRequest: CreateDepositAccountRequest,
|
|
77
|
+
): string {
|
|
78
|
+
return JSON.stringify(
|
|
79
|
+
CreateDepositAccountRequest$outboundSchema.parse(
|
|
80
|
+
createDepositAccountRequest,
|
|
81
|
+
),
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
export function createDepositAccountRequestFromJSON(
|
|
85
|
+
jsonString: string,
|
|
86
|
+
): SafeParseResult<CreateDepositAccountRequest, SDKValidationError> {
|
|
87
|
+
return safeParse(
|
|
88
|
+
jsonString,
|
|
89
|
+
(x) => CreateDepositAccountRequest$inboundSchema.parse(JSON.parse(x)),
|
|
90
|
+
`Failed to parse 'CreateDepositAccountRequest' from JSON`,
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const CreateDepositAccountResponse$inboundSchema: z.ZodType<
|
|
96
|
+
CreateDepositAccountResponse,
|
|
97
|
+
z.ZodTypeDef,
|
|
98
|
+
unknown
|
|
99
|
+
> = z.object({
|
|
100
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
101
|
+
Result: components.DepositAccountIngestedResponse$inboundSchema,
|
|
102
|
+
}).transform((v) => {
|
|
103
|
+
return remap$(v, {
|
|
104
|
+
"Headers": "headers",
|
|
105
|
+
"Result": "result",
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
/** @internal */
|
|
109
|
+
export type CreateDepositAccountResponse$Outbound = {
|
|
110
|
+
Headers: { [k: string]: Array<string> };
|
|
111
|
+
Result: components.DepositAccountIngestedResponse$Outbound;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
/** @internal */
|
|
115
|
+
export const CreateDepositAccountResponse$outboundSchema: z.ZodType<
|
|
116
|
+
CreateDepositAccountResponse$Outbound,
|
|
117
|
+
z.ZodTypeDef,
|
|
118
|
+
CreateDepositAccountResponse
|
|
119
|
+
> = z.object({
|
|
120
|
+
headers: z.record(z.array(z.string())),
|
|
121
|
+
result: components.DepositAccountIngestedResponse$outboundSchema,
|
|
122
|
+
}).transform((v) => {
|
|
123
|
+
return remap$(v, {
|
|
124
|
+
headers: "Headers",
|
|
125
|
+
result: "Result",
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
export function createDepositAccountResponseToJSON(
|
|
130
|
+
createDepositAccountResponse: CreateDepositAccountResponse,
|
|
131
|
+
): string {
|
|
132
|
+
return JSON.stringify(
|
|
133
|
+
CreateDepositAccountResponse$outboundSchema.parse(
|
|
134
|
+
createDepositAccountResponse,
|
|
135
|
+
),
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
export function createDepositAccountResponseFromJSON(
|
|
139
|
+
jsonString: string,
|
|
140
|
+
): SafeParseResult<CreateDepositAccountResponse, SDKValidationError> {
|
|
141
|
+
return safeParse(
|
|
142
|
+
jsonString,
|
|
143
|
+
(x) => CreateDepositAccountResponse$inboundSchema.parse(JSON.parse(x)),
|
|
144
|
+
`Failed to parse 'CreateDepositAccountResponse' from JSON`,
|
|
145
|
+
);
|
|
146
|
+
}
|
|
@@ -17,7 +17,13 @@ export type DisableCapabilityRequest = {
|
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* **Deprecated capabilities**
|
|
21
|
+
*
|
|
22
|
+
* 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.
|
|
23
|
+
*
|
|
24
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
25
|
+
*
|
|
26
|
+
* 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.
|
|
21
27
|
*/
|
|
22
28
|
capabilityID: components.CapabilityID;
|
|
23
29
|
};
|
|
@@ -17,7 +17,13 @@ export type GetCapabilityRequest = {
|
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* **Deprecated capabilities**
|
|
21
|
+
*
|
|
22
|
+
* 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.
|
|
23
|
+
*
|
|
24
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
25
|
+
*
|
|
26
|
+
* 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.
|
|
21
27
|
*/
|
|
22
28
|
capabilityID: components.CapabilityID;
|
|
23
29
|
};
|
|
@@ -14,6 +14,7 @@ export * from "./createaccount.js";
|
|
|
14
14
|
export * from "./createapplepaysession.js";
|
|
15
15
|
export * from "./createbrand.js";
|
|
16
16
|
export * from "./createcancellation.js";
|
|
17
|
+
export * from "./createdepositaccount.js";
|
|
17
18
|
export * from "./createfeeplanagreements.js";
|
|
18
19
|
export * from "./createinvoice.js";
|
|
19
20
|
export * from "./createinvoicepayment.js";
|
|
@@ -112,6 +113,7 @@ export * from "./listaccounts.js";
|
|
|
112
113
|
export * from "./listaccountterminalapplications.js";
|
|
113
114
|
export * from "./listadjustments.js";
|
|
114
115
|
export * from "./listbankaccounts.js";
|
|
116
|
+
export * from "./listcancellations.js";
|
|
115
117
|
export * from "./listcapabilities.js";
|
|
116
118
|
export * from "./listcards.js";
|
|
117
119
|
export * from "./listconnectedaccountsforaccount.js";
|
|
@@ -17,7 +17,7 @@ export type LinkBankAccountRequest = {
|
|
|
17
17
|
* @remarks
|
|
18
18
|
*
|
|
19
19
|
* When this header is set to `payment-method`, the response will include any payment methods that were created for the newly
|
|
20
|
-
* linked
|
|
20
|
+
* linked bank account in the `paymentMethods` field. Otherwise, the `paymentMethods` field will be omitted from the response.
|
|
21
21
|
*/
|
|
22
22
|
xWaitFor?: components.BankAccountWaitFor | undefined;
|
|
23
23
|
accountID: string;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import * as components from "../components/index.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
|
|
13
|
+
export type ListCancellationsRequest = {
|
|
14
|
+
/**
|
|
15
|
+
* Moov account ID of the partner or transfer's source or destination.
|
|
16
|
+
*/
|
|
17
|
+
accountID: string;
|
|
18
|
+
/**
|
|
19
|
+
* Identifier for the transfer.
|
|
20
|
+
*/
|
|
21
|
+
transferID: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type ListCancellationsResponse = {
|
|
25
|
+
headers: { [k: string]: Array<string> };
|
|
26
|
+
result: Array<components.Cancellation>;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const ListCancellationsRequest$inboundSchema: z.ZodType<
|
|
31
|
+
ListCancellationsRequest,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
unknown
|
|
34
|
+
> = z.object({
|
|
35
|
+
accountID: types.string(),
|
|
36
|
+
transferID: types.string(),
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type ListCancellationsRequest$Outbound = {
|
|
40
|
+
accountID: string;
|
|
41
|
+
transferID: string;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const ListCancellationsRequest$outboundSchema: z.ZodType<
|
|
46
|
+
ListCancellationsRequest$Outbound,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
ListCancellationsRequest
|
|
49
|
+
> = z.object({
|
|
50
|
+
accountID: z.string(),
|
|
51
|
+
transferID: z.string(),
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export function listCancellationsRequestToJSON(
|
|
55
|
+
listCancellationsRequest: ListCancellationsRequest,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
ListCancellationsRequest$outboundSchema.parse(listCancellationsRequest),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
export function listCancellationsRequestFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<ListCancellationsRequest, SDKValidationError> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) => ListCancellationsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
67
|
+
`Failed to parse 'ListCancellationsRequest' from JSON`,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const ListCancellationsResponse$inboundSchema: z.ZodType<
|
|
73
|
+
ListCancellationsResponse,
|
|
74
|
+
z.ZodTypeDef,
|
|
75
|
+
unknown
|
|
76
|
+
> = z.object({
|
|
77
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
78
|
+
Result: z.array(components.Cancellation$inboundSchema),
|
|
79
|
+
}).transform((v) => {
|
|
80
|
+
return remap$(v, {
|
|
81
|
+
"Headers": "headers",
|
|
82
|
+
"Result": "result",
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
/** @internal */
|
|
86
|
+
export type ListCancellationsResponse$Outbound = {
|
|
87
|
+
Headers: { [k: string]: Array<string> };
|
|
88
|
+
Result: Array<components.Cancellation$Outbound>;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const ListCancellationsResponse$outboundSchema: z.ZodType<
|
|
93
|
+
ListCancellationsResponse$Outbound,
|
|
94
|
+
z.ZodTypeDef,
|
|
95
|
+
ListCancellationsResponse
|
|
96
|
+
> = z.object({
|
|
97
|
+
headers: z.record(z.array(z.string())),
|
|
98
|
+
result: z.array(components.Cancellation$outboundSchema),
|
|
99
|
+
}).transform((v) => {
|
|
100
|
+
return remap$(v, {
|
|
101
|
+
headers: "Headers",
|
|
102
|
+
result: "Result",
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
export function listCancellationsResponseToJSON(
|
|
107
|
+
listCancellationsResponse: ListCancellationsResponse,
|
|
108
|
+
): string {
|
|
109
|
+
return JSON.stringify(
|
|
110
|
+
ListCancellationsResponse$outboundSchema.parse(listCancellationsResponse),
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
export function listCancellationsResponseFromJSON(
|
|
114
|
+
jsonString: string,
|
|
115
|
+
): SafeParseResult<ListCancellationsResponse, SDKValidationError> {
|
|
116
|
+
return safeParse(
|
|
117
|
+
jsonString,
|
|
118
|
+
(x) => ListCancellationsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
119
|
+
`Failed to parse 'ListCancellationsResponse' from JSON`,
|
|
120
|
+
);
|
|
121
|
+
}
|
|
@@ -18,7 +18,7 @@ export type ListIssuedCardsRequest = {
|
|
|
18
18
|
skip?: number | undefined;
|
|
19
19
|
count?: number | undefined;
|
|
20
20
|
/**
|
|
21
|
-
* Optional, comma-separated states to filter the Moov list issued cards response. For example `active,
|
|
21
|
+
* Optional, comma-separated states to filter the Moov list issued cards response. For example `active,closed`
|
|
22
22
|
*/
|
|
23
23
|
states?: Array<components.IssuedCardState> | undefined;
|
|
24
24
|
};
|
package/src/sdk/accounts.ts
CHANGED
|
@@ -20,21 +20,19 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
20
20
|
|
|
21
21
|
export class Accounts extends ClientSDK {
|
|
22
22
|
/**
|
|
23
|
-
* You can create
|
|
24
|
-
* information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
|
|
23
|
+
* You can create business or individual accounts for your users (i.e., customers, merchants) by passing the required information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/reference/).
|
|
25
24
|
*
|
|
26
|
-
* If you
|
|
27
|
-
* + Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
|
|
28
|
-
*
|
|
29
|
-
*
|
|
25
|
+
* The `transfers` capability is automatically requested for every account. If you request any capability beyond `transfers` (for example, `send-funds.ach`, `collect-funds.card-payments`), you'll need to:
|
|
26
|
+
* + Send Moov the user's [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance. This can be done at account creation, or by [patching](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account using the `termsOfService` field.
|
|
27
|
+
* + Fulfill the [verification and underwriting requirements](https://docs.moov.io/guides/accounts/requirements/) for each requested capability. A capability isn't enabled until its requirements pass — check the capability's status to see what's still outstanding.
|
|
28
|
+
*
|
|
29
|
+
* If you're creating a business account, depending on the business type, you'll also need to:
|
|
30
30
|
* + Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
|
|
31
31
|
* + [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
|
|
32
32
|
*
|
|
33
|
-
* Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/).
|
|
34
|
-
* Note that the `mode` field (for production or sandbox) is only required when creating a _facilitator_ account. All non-facilitator account requests will ignore the mode field and be set to the calling facilitator's mode.
|
|
33
|
+
* Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/). Note that the `mode` field (for production or sandbox) is only required when creating a Partner account. All other account requests will ignore the mode field and be set to the calling Partner account's mode.
|
|
35
34
|
*
|
|
36
|
-
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
37
|
-
* to specify the `/accounts.write` scope.
|
|
35
|
+
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts.write` scope.
|
|
38
36
|
*/
|
|
39
37
|
async create(
|
|
40
38
|
request: components.CreateAccount,
|
package/src/sdk/bankaccounts.ts
CHANGED
|
@@ -20,7 +20,7 @@ export class BankAccounts extends ClientSDK {
|
|
|
20
20
|
* Link a bank account to an existing Moov account. Read our [bank accounts guide](https://docs.moov.io/guides/sources/bank-accounts/) to learn more.
|
|
21
21
|
*
|
|
22
22
|
* It is strongly recommended that callers include the `X-Wait-For` header, set to `payment-method`, if the newly linked
|
|
23
|
-
* bank
|
|
23
|
+
* bank account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
|
|
24
24
|
* Methods](https://docs.moov.io/api/sources/payment-methods/list/)
|
|
25
25
|
* endpoint to wait for the new payment methods to be available for use.
|
|
26
26
|
*
|
package/src/sdk/capabilities.ts
CHANGED
|
@@ -14,7 +14,7 @@ export class Capabilities extends ClientSDK {
|
|
|
14
14
|
/**
|
|
15
15
|
* Retrieve all the capabilities an account has requested.
|
|
16
16
|
*
|
|
17
|
-
* Read our [capabilities
|
|
17
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
18
18
|
*
|
|
19
19
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
20
20
|
* you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
|
|
@@ -31,7 +31,7 @@ export class Capabilities extends ClientSDK {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
* Request capabilities for a specific account. Read our [capabilities
|
|
34
|
+
* Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
35
35
|
*
|
|
36
36
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
37
37
|
* you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
|
|
@@ -48,7 +48,7 @@ export class Capabilities extends ClientSDK {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* Retrieve a specific capability that an account has requested. Read our [capabilities
|
|
51
|
+
* Retrieve a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
52
52
|
*
|
|
53
53
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
54
54
|
* you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
|
|
@@ -65,7 +65,7 @@ export class Capabilities extends ClientSDK {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
* Disable a specific capability that an account has requested. Read our [capabilities
|
|
68
|
+
* Disable a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
69
69
|
*
|
|
70
70
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
71
71
|
* you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { depositViewCreate } from "../funcs/depositViewCreate.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export class DepositView extends ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* Ingest a deposit account into the deposit view from a core banking source system.
|
|
13
|
+
*
|
|
14
|
+
* The request body is a raw byte payload whose format depends on the core banking
|
|
15
|
+
* system that produced it. Set the `X-Source-System` header to identify that system
|
|
16
|
+
* so the payload can be parsed correctly.
|
|
17
|
+
*
|
|
18
|
+
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
19
|
+
* you'll need to specify the `/accounts/{accountID}/profile.write` scope.
|
|
20
|
+
*/
|
|
21
|
+
async create(
|
|
22
|
+
request: operations.CreateDepositAccountRequest,
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): Promise<operations.CreateDepositAccountResponse> {
|
|
25
|
+
return unwrapAsync(depositViewCreate(
|
|
26
|
+
this,
|
|
27
|
+
request,
|
|
28
|
+
options,
|
|
29
|
+
));
|
|
30
|
+
}
|
|
31
|
+
}
|