@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
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
CreatePaymentLinkLineItemsUpdate$Outbound,
|
|
20
20
|
CreatePaymentLinkLineItemsUpdate$outboundSchema,
|
|
21
21
|
} from "./createpaymentlinklineitemsupdate.js";
|
|
22
|
+
import {
|
|
23
|
+
PaymentLinkCustomAmountPaymentDetailsUpdate,
|
|
24
|
+
PaymentLinkCustomAmountPaymentDetailsUpdate$inboundSchema,
|
|
25
|
+
PaymentLinkCustomAmountPaymentDetailsUpdate$Outbound,
|
|
26
|
+
PaymentLinkCustomAmountPaymentDetailsUpdate$outboundSchema,
|
|
27
|
+
} from "./paymentlinkcustomamountpaymentdetailsupdate.js";
|
|
22
28
|
import {
|
|
23
29
|
PaymentLinkCustomerOptions,
|
|
24
30
|
PaymentLinkCustomerOptions$inboundSchema,
|
|
@@ -63,6 +69,10 @@ export type UpdatePaymentLink = {
|
|
|
63
69
|
*/
|
|
64
70
|
payment?: PaymentLinkPaymentDetailsUpdate | undefined;
|
|
65
71
|
payout?: PaymentLinkPayoutDetailsUpdate | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Options for a custom amount payment link. A payment link's type cannot be changed after creation.
|
|
74
|
+
*/
|
|
75
|
+
customAmountPayment?: PaymentLinkCustomAmountPaymentDetailsUpdate | undefined;
|
|
66
76
|
/**
|
|
67
77
|
* An optional collection of line items for a payment link.
|
|
68
78
|
*
|
|
@@ -85,6 +95,9 @@ export const UpdatePaymentLink$inboundSchema: z.ZodType<
|
|
|
85
95
|
customer: types.optional(PaymentLinkCustomerOptions$inboundSchema),
|
|
86
96
|
payment: types.optional(PaymentLinkPaymentDetailsUpdate$inboundSchema),
|
|
87
97
|
payout: types.optional(PaymentLinkPayoutDetailsUpdate$inboundSchema),
|
|
98
|
+
customAmountPayment: types.optional(
|
|
99
|
+
PaymentLinkCustomAmountPaymentDetailsUpdate$inboundSchema,
|
|
100
|
+
),
|
|
88
101
|
lineItems: types.optional(CreatePaymentLinkLineItemsUpdate$inboundSchema),
|
|
89
102
|
amountDetails: types.optional(UpdatePaymentLinkAmountDetails$inboundSchema),
|
|
90
103
|
});
|
|
@@ -96,6 +109,9 @@ export type UpdatePaymentLink$Outbound = {
|
|
|
96
109
|
customer?: PaymentLinkCustomerOptions$Outbound | undefined;
|
|
97
110
|
payment?: PaymentLinkPaymentDetailsUpdate$Outbound | undefined;
|
|
98
111
|
payout?: PaymentLinkPayoutDetailsUpdate$Outbound | undefined;
|
|
112
|
+
customAmountPayment?:
|
|
113
|
+
| PaymentLinkCustomAmountPaymentDetailsUpdate$Outbound
|
|
114
|
+
| undefined;
|
|
99
115
|
lineItems?: CreatePaymentLinkLineItemsUpdate$Outbound | undefined;
|
|
100
116
|
amountDetails?: UpdatePaymentLinkAmountDetails$Outbound | undefined;
|
|
101
117
|
};
|
|
@@ -112,6 +128,8 @@ export const UpdatePaymentLink$outboundSchema: z.ZodType<
|
|
|
112
128
|
customer: PaymentLinkCustomerOptions$outboundSchema.optional(),
|
|
113
129
|
payment: PaymentLinkPaymentDetailsUpdate$outboundSchema.optional(),
|
|
114
130
|
payout: PaymentLinkPayoutDetailsUpdate$outboundSchema.optional(),
|
|
131
|
+
customAmountPayment:
|
|
132
|
+
PaymentLinkCustomAmountPaymentDetailsUpdate$outboundSchema.optional(),
|
|
115
133
|
lineItems: CreatePaymentLinkLineItemsUpdate$outboundSchema.optional(),
|
|
116
134
|
amountDetails: UpdatePaymentLinkAmountDetails$outboundSchema.optional(),
|
|
117
135
|
});
|
|
@@ -7,37 +7,137 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import * as types from "../../types/primitives.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The amount of tax applied to the payment link.
|
|
13
|
+
*/
|
|
14
|
+
export type Tax = {
|
|
15
|
+
/**
|
|
16
|
+
* A 3-letter ISO 4217 currency code.
|
|
17
|
+
*/
|
|
18
|
+
currency?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* A decimal-formatted numerical string that represents up to 9 decimal place precision.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
*
|
|
24
|
+
* For example, $12.987654321 is '12.987654321'.
|
|
25
|
+
*/
|
|
26
|
+
valueDecimal?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The amount of surcharge applied to the payment link.
|
|
31
|
+
*/
|
|
32
|
+
export type Surcharge = {
|
|
33
|
+
/**
|
|
34
|
+
* A 3-letter ISO 4217 currency code.
|
|
35
|
+
*/
|
|
36
|
+
currency?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* A decimal-formatted numerical string that represents up to 9 decimal place precision.
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
*
|
|
42
|
+
* For example, $12.987654321 is '12.987654321'.
|
|
43
|
+
*/
|
|
44
|
+
valueDecimal?: string | undefined;
|
|
45
|
+
};
|
|
16
46
|
|
|
17
47
|
export type UpdatePaymentLinkAmountDetails = {
|
|
18
48
|
/**
|
|
19
49
|
* The amount of tax applied to the payment link.
|
|
20
50
|
*/
|
|
21
|
-
tax?:
|
|
51
|
+
tax?: Tax | null | undefined;
|
|
22
52
|
/**
|
|
23
53
|
* The amount of surcharge applied to the payment link.
|
|
24
54
|
*/
|
|
25
|
-
surcharge?:
|
|
55
|
+
surcharge?: Surcharge | null | undefined;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const Tax$inboundSchema: z.ZodType<Tax, z.ZodTypeDef, unknown> = z
|
|
60
|
+
.object({
|
|
61
|
+
currency: types.optional(types.string()),
|
|
62
|
+
valueDecimal: types.optional(types.string()),
|
|
63
|
+
});
|
|
64
|
+
/** @internal */
|
|
65
|
+
export type Tax$Outbound = {
|
|
66
|
+
currency?: string | undefined;
|
|
67
|
+
valueDecimal?: string | undefined;
|
|
26
68
|
};
|
|
27
69
|
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const Tax$outboundSchema: z.ZodType<Tax$Outbound, z.ZodTypeDef, Tax> = z
|
|
72
|
+
.object({
|
|
73
|
+
currency: z.string().optional(),
|
|
74
|
+
valueDecimal: z.string().optional(),
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
export function taxToJSON(tax: Tax): string {
|
|
78
|
+
return JSON.stringify(Tax$outboundSchema.parse(tax));
|
|
79
|
+
}
|
|
80
|
+
export function taxFromJSON(
|
|
81
|
+
jsonString: string,
|
|
82
|
+
): SafeParseResult<Tax, SDKValidationError> {
|
|
83
|
+
return safeParse(
|
|
84
|
+
jsonString,
|
|
85
|
+
(x) => Tax$inboundSchema.parse(JSON.parse(x)),
|
|
86
|
+
`Failed to parse 'Tax' from JSON`,
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/** @internal */
|
|
91
|
+
export const Surcharge$inboundSchema: z.ZodType<
|
|
92
|
+
Surcharge,
|
|
93
|
+
z.ZodTypeDef,
|
|
94
|
+
unknown
|
|
95
|
+
> = z.object({
|
|
96
|
+
currency: types.optional(types.string()),
|
|
97
|
+
valueDecimal: types.optional(types.string()),
|
|
98
|
+
});
|
|
99
|
+
/** @internal */
|
|
100
|
+
export type Surcharge$Outbound = {
|
|
101
|
+
currency?: string | undefined;
|
|
102
|
+
valueDecimal?: string | undefined;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
/** @internal */
|
|
106
|
+
export const Surcharge$outboundSchema: z.ZodType<
|
|
107
|
+
Surcharge$Outbound,
|
|
108
|
+
z.ZodTypeDef,
|
|
109
|
+
Surcharge
|
|
110
|
+
> = z.object({
|
|
111
|
+
currency: z.string().optional(),
|
|
112
|
+
valueDecimal: z.string().optional(),
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
export function surchargeToJSON(surcharge: Surcharge): string {
|
|
116
|
+
return JSON.stringify(Surcharge$outboundSchema.parse(surcharge));
|
|
117
|
+
}
|
|
118
|
+
export function surchargeFromJSON(
|
|
119
|
+
jsonString: string,
|
|
120
|
+
): SafeParseResult<Surcharge, SDKValidationError> {
|
|
121
|
+
return safeParse(
|
|
122
|
+
jsonString,
|
|
123
|
+
(x) => Surcharge$inboundSchema.parse(JSON.parse(x)),
|
|
124
|
+
`Failed to parse 'Surcharge' from JSON`,
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
|
|
28
128
|
/** @internal */
|
|
29
129
|
export const UpdatePaymentLinkAmountDetails$inboundSchema: z.ZodType<
|
|
30
130
|
UpdatePaymentLinkAmountDetails,
|
|
31
131
|
z.ZodTypeDef,
|
|
32
132
|
unknown
|
|
33
133
|
> = z.object({
|
|
34
|
-
tax:
|
|
35
|
-
surcharge:
|
|
134
|
+
tax: z.nullable(z.lazy(() => Tax$inboundSchema)).optional(),
|
|
135
|
+
surcharge: z.nullable(z.lazy(() => Surcharge$inboundSchema)).optional(),
|
|
36
136
|
});
|
|
37
137
|
/** @internal */
|
|
38
138
|
export type UpdatePaymentLinkAmountDetails$Outbound = {
|
|
39
|
-
tax?:
|
|
40
|
-
surcharge?:
|
|
139
|
+
tax?: Tax$Outbound | null | undefined;
|
|
140
|
+
surcharge?: Surcharge$Outbound | null | undefined;
|
|
41
141
|
};
|
|
42
142
|
|
|
43
143
|
/** @internal */
|
|
@@ -46,8 +146,8 @@ export const UpdatePaymentLinkAmountDetails$outboundSchema: z.ZodType<
|
|
|
46
146
|
z.ZodTypeDef,
|
|
47
147
|
UpdatePaymentLinkAmountDetails
|
|
48
148
|
> = z.object({
|
|
49
|
-
tax:
|
|
50
|
-
surcharge:
|
|
149
|
+
tax: z.nullable(z.lazy(() => Tax$outboundSchema)).optional(),
|
|
150
|
+
surcharge: z.nullable(z.lazy(() => Surcharge$outboundSchema)).optional(),
|
|
51
151
|
});
|
|
52
152
|
|
|
53
153
|
export function updatePaymentLinkAmountDetailsToJSON(
|
|
@@ -31,6 +31,12 @@ import {
|
|
|
31
31
|
WebhookDataAccountUpdated$Outbound,
|
|
32
32
|
WebhookDataAccountUpdated$outboundSchema,
|
|
33
33
|
} from "./webhookdataaccountupdated.js";
|
|
34
|
+
import {
|
|
35
|
+
WebhookDataAuthorizationExpiring,
|
|
36
|
+
WebhookDataAuthorizationExpiring$inboundSchema,
|
|
37
|
+
WebhookDataAuthorizationExpiring$Outbound,
|
|
38
|
+
WebhookDataAuthorizationExpiring$outboundSchema,
|
|
39
|
+
} from "./webhookdataauthorizationexpiring.js";
|
|
34
40
|
import {
|
|
35
41
|
WebhookDataBalanceUpdated,
|
|
36
42
|
WebhookDataBalanceUpdated$inboundSchema,
|
|
@@ -239,7 +245,9 @@ export type WebhookData =
|
|
|
239
245
|
| WebhookDataTransferUpdated
|
|
240
246
|
| WebhookDataBankAccountUpdated
|
|
241
247
|
| WebhookDataRefundUpdated
|
|
248
|
+
| WebhookDataSweepUpdated
|
|
242
249
|
| WebhookDataWalletTransactionUpdated
|
|
250
|
+
| WebhookDataAuthorizationExpiring
|
|
243
251
|
| WebhookDataBankAccountCreated
|
|
244
252
|
| WebhookDataBankAccountDeleted
|
|
245
253
|
| WebhookDataCancellationCreated
|
|
@@ -250,7 +258,7 @@ export type WebhookData =
|
|
|
250
258
|
| WebhookDataPaymentMethodEnabled
|
|
251
259
|
| WebhookDataPaymentMethodDisabled
|
|
252
260
|
| WebhookDataRefundCreated
|
|
253
|
-
|
|
|
261
|
+
| WebhookDataSweepCreated
|
|
254
262
|
| WebhookDataTicketUpdated
|
|
255
263
|
| WebhookDataTransferCreated
|
|
256
264
|
| WebhookDataWalletUpdated
|
|
@@ -260,7 +268,6 @@ export type WebhookData =
|
|
|
260
268
|
| WebhookDataRepresentativeCreated
|
|
261
269
|
| WebhookDataRepresentativeUpdated
|
|
262
270
|
| WebhookDataRepresentativeDisabled
|
|
263
|
-
| WebhookDataSweepCreated
|
|
264
271
|
| WebhookDataTerminalApplicationCreated
|
|
265
272
|
| WebhookDataTerminalApplicationUpdated
|
|
266
273
|
| WebhookDataTicketCreated
|
|
@@ -283,7 +290,9 @@ export const WebhookData$inboundSchema: z.ZodType<
|
|
|
283
290
|
WebhookDataTransferUpdated$inboundSchema,
|
|
284
291
|
WebhookDataBankAccountUpdated$inboundSchema,
|
|
285
292
|
WebhookDataRefundUpdated$inboundSchema,
|
|
293
|
+
WebhookDataSweepUpdated$inboundSchema,
|
|
286
294
|
WebhookDataWalletTransactionUpdated$inboundSchema,
|
|
295
|
+
WebhookDataAuthorizationExpiring$inboundSchema,
|
|
287
296
|
WebhookDataBankAccountCreated$inboundSchema,
|
|
288
297
|
WebhookDataBankAccountDeleted$inboundSchema,
|
|
289
298
|
WebhookDataCancellationCreated$inboundSchema,
|
|
@@ -294,7 +303,7 @@ export const WebhookData$inboundSchema: z.ZodType<
|
|
|
294
303
|
WebhookDataPaymentMethodEnabled$inboundSchema,
|
|
295
304
|
WebhookDataPaymentMethodDisabled$inboundSchema,
|
|
296
305
|
WebhookDataRefundCreated$inboundSchema,
|
|
297
|
-
|
|
306
|
+
WebhookDataSweepCreated$inboundSchema,
|
|
298
307
|
WebhookDataTicketUpdated$inboundSchema,
|
|
299
308
|
WebhookDataTransferCreated$inboundSchema,
|
|
300
309
|
WebhookDataWalletUpdated$inboundSchema,
|
|
@@ -304,7 +313,6 @@ export const WebhookData$inboundSchema: z.ZodType<
|
|
|
304
313
|
WebhookDataRepresentativeCreated$inboundSchema,
|
|
305
314
|
WebhookDataRepresentativeUpdated$inboundSchema,
|
|
306
315
|
WebhookDataRepresentativeDisabled$inboundSchema,
|
|
307
|
-
WebhookDataSweepCreated$inboundSchema,
|
|
308
316
|
WebhookDataTerminalApplicationCreated$inboundSchema,
|
|
309
317
|
WebhookDataTerminalApplicationUpdated$inboundSchema,
|
|
310
318
|
WebhookDataTicketCreated$inboundSchema,
|
|
@@ -323,7 +331,9 @@ export type WebhookData$Outbound =
|
|
|
323
331
|
| WebhookDataTransferUpdated$Outbound
|
|
324
332
|
| WebhookDataBankAccountUpdated$Outbound
|
|
325
333
|
| WebhookDataRefundUpdated$Outbound
|
|
334
|
+
| WebhookDataSweepUpdated$Outbound
|
|
326
335
|
| WebhookDataWalletTransactionUpdated$Outbound
|
|
336
|
+
| WebhookDataAuthorizationExpiring$Outbound
|
|
327
337
|
| WebhookDataBankAccountCreated$Outbound
|
|
328
338
|
| WebhookDataBankAccountDeleted$Outbound
|
|
329
339
|
| WebhookDataCancellationCreated$Outbound
|
|
@@ -334,7 +344,7 @@ export type WebhookData$Outbound =
|
|
|
334
344
|
| WebhookDataPaymentMethodEnabled$Outbound
|
|
335
345
|
| WebhookDataPaymentMethodDisabled$Outbound
|
|
336
346
|
| WebhookDataRefundCreated$Outbound
|
|
337
|
-
|
|
|
347
|
+
| WebhookDataSweepCreated$Outbound
|
|
338
348
|
| WebhookDataTicketUpdated$Outbound
|
|
339
349
|
| WebhookDataTransferCreated$Outbound
|
|
340
350
|
| WebhookDataWalletUpdated$Outbound
|
|
@@ -344,7 +354,6 @@ export type WebhookData$Outbound =
|
|
|
344
354
|
| WebhookDataRepresentativeCreated$Outbound
|
|
345
355
|
| WebhookDataRepresentativeUpdated$Outbound
|
|
346
356
|
| WebhookDataRepresentativeDisabled$Outbound
|
|
347
|
-
| WebhookDataSweepCreated$Outbound
|
|
348
357
|
| WebhookDataTerminalApplicationCreated$Outbound
|
|
349
358
|
| WebhookDataTerminalApplicationUpdated$Outbound
|
|
350
359
|
| WebhookDataTicketCreated$Outbound
|
|
@@ -367,7 +376,9 @@ export const WebhookData$outboundSchema: z.ZodType<
|
|
|
367
376
|
WebhookDataTransferUpdated$outboundSchema,
|
|
368
377
|
WebhookDataBankAccountUpdated$outboundSchema,
|
|
369
378
|
WebhookDataRefundUpdated$outboundSchema,
|
|
379
|
+
WebhookDataSweepUpdated$outboundSchema,
|
|
370
380
|
WebhookDataWalletTransactionUpdated$outboundSchema,
|
|
381
|
+
WebhookDataAuthorizationExpiring$outboundSchema,
|
|
371
382
|
WebhookDataBankAccountCreated$outboundSchema,
|
|
372
383
|
WebhookDataBankAccountDeleted$outboundSchema,
|
|
373
384
|
WebhookDataCancellationCreated$outboundSchema,
|
|
@@ -378,7 +389,7 @@ export const WebhookData$outboundSchema: z.ZodType<
|
|
|
378
389
|
WebhookDataPaymentMethodEnabled$outboundSchema,
|
|
379
390
|
WebhookDataPaymentMethodDisabled$outboundSchema,
|
|
380
391
|
WebhookDataRefundCreated$outboundSchema,
|
|
381
|
-
|
|
392
|
+
WebhookDataSweepCreated$outboundSchema,
|
|
382
393
|
WebhookDataTicketUpdated$outboundSchema,
|
|
383
394
|
WebhookDataTransferCreated$outboundSchema,
|
|
384
395
|
WebhookDataWalletUpdated$outboundSchema,
|
|
@@ -388,7 +399,6 @@ export const WebhookData$outboundSchema: z.ZodType<
|
|
|
388
399
|
WebhookDataRepresentativeCreated$outboundSchema,
|
|
389
400
|
WebhookDataRepresentativeUpdated$outboundSchema,
|
|
390
401
|
WebhookDataRepresentativeDisabled$outboundSchema,
|
|
391
|
-
WebhookDataSweepCreated$outboundSchema,
|
|
392
402
|
WebhookDataTerminalApplicationCreated$outboundSchema,
|
|
393
403
|
WebhookDataTerminalApplicationUpdated$outboundSchema,
|
|
394
404
|
WebhookDataTicketCreated$outboundSchema,
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type WebhookDataAuthorizationExpiring = {
|
|
12
|
+
merchantAccountID: string;
|
|
13
|
+
partnerAccountID: string;
|
|
14
|
+
authorizationID: string;
|
|
15
|
+
expiresOn: Date;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const WebhookDataAuthorizationExpiring$inboundSchema: z.ZodType<
|
|
20
|
+
WebhookDataAuthorizationExpiring,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
merchantAccountID: types.string(),
|
|
25
|
+
partnerAccountID: types.string(),
|
|
26
|
+
authorizationID: types.string(),
|
|
27
|
+
expiresOn: types.date(),
|
|
28
|
+
});
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type WebhookDataAuthorizationExpiring$Outbound = {
|
|
31
|
+
merchantAccountID: string;
|
|
32
|
+
partnerAccountID: string;
|
|
33
|
+
authorizationID: string;
|
|
34
|
+
expiresOn: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const WebhookDataAuthorizationExpiring$outboundSchema: z.ZodType<
|
|
39
|
+
WebhookDataAuthorizationExpiring$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
WebhookDataAuthorizationExpiring
|
|
42
|
+
> = z.object({
|
|
43
|
+
merchantAccountID: z.string(),
|
|
44
|
+
partnerAccountID: z.string(),
|
|
45
|
+
authorizationID: z.string(),
|
|
46
|
+
expiresOn: z.date().transform(v => v.toISOString()),
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export function webhookDataAuthorizationExpiringToJSON(
|
|
50
|
+
webhookDataAuthorizationExpiring: WebhookDataAuthorizationExpiring,
|
|
51
|
+
): string {
|
|
52
|
+
return JSON.stringify(
|
|
53
|
+
WebhookDataAuthorizationExpiring$outboundSchema.parse(
|
|
54
|
+
webhookDataAuthorizationExpiring,
|
|
55
|
+
),
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
export function webhookDataAuthorizationExpiringFromJSON(
|
|
59
|
+
jsonString: string,
|
|
60
|
+
): SafeParseResult<WebhookDataAuthorizationExpiring, SDKValidationError> {
|
|
61
|
+
return safeParse(
|
|
62
|
+
jsonString,
|
|
63
|
+
(x) => WebhookDataAuthorizationExpiring$inboundSchema.parse(JSON.parse(x)),
|
|
64
|
+
`Failed to parse 'WebhookDataAuthorizationExpiring' from JSON`,
|
|
65
|
+
);
|
|
66
|
+
}
|
|
@@ -21,7 +21,13 @@ export type WebhookDataCapabilityRequested = {
|
|
|
21
21
|
*
|
|
22
22
|
* @remarks
|
|
23
23
|
*
|
|
24
|
-
*
|
|
24
|
+
* **Deprecated capabilities**
|
|
25
|
+
*
|
|
26
|
+
* The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Request granular capabilities instead (for example, `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance`). Deprecated values will be removed in a future API version.
|
|
27
|
+
*
|
|
28
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
29
|
+
*
|
|
30
|
+
* The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in the list for your Partner account. These are read-only capabilities that Moov requests. These capabilities remain active with your account and require no additional action.
|
|
25
31
|
*/
|
|
26
32
|
capabilityID: CapabilityID;
|
|
27
33
|
};
|
|
@@ -26,7 +26,13 @@ export type WebhookDataCapabilityUpdated = {
|
|
|
26
26
|
*
|
|
27
27
|
* @remarks
|
|
28
28
|
*
|
|
29
|
-
*
|
|
29
|
+
* **Deprecated capabilities**
|
|
30
|
+
*
|
|
31
|
+
* The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Request granular capabilities instead (for example, `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance`). Deprecated values will be removed in a future API version.
|
|
32
|
+
*
|
|
33
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
34
|
+
*
|
|
35
|
+
* The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in the list for your Partner account. These are read-only capabilities that Moov requests. These capabilities remain active with your account and require no additional action.
|
|
30
36
|
*/
|
|
31
37
|
capabilityID: CapabilityID;
|
|
32
38
|
/**
|
|
@@ -9,6 +9,10 @@ import * as types from "../../types/primitives.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type WebhookDataSweepCreated = {
|
|
12
|
+
/**
|
|
13
|
+
* The accountID associated with the wallet being swept.
|
|
14
|
+
*/
|
|
15
|
+
accountID: string;
|
|
12
16
|
walletID: string;
|
|
13
17
|
sweepID: string;
|
|
14
18
|
};
|
|
@@ -19,11 +23,13 @@ export const WebhookDataSweepCreated$inboundSchema: z.ZodType<
|
|
|
19
23
|
z.ZodTypeDef,
|
|
20
24
|
unknown
|
|
21
25
|
> = z.object({
|
|
26
|
+
accountID: types.string(),
|
|
22
27
|
walletID: types.string(),
|
|
23
28
|
sweepID: types.string(),
|
|
24
29
|
});
|
|
25
30
|
/** @internal */
|
|
26
31
|
export type WebhookDataSweepCreated$Outbound = {
|
|
32
|
+
accountID: string;
|
|
27
33
|
walletID: string;
|
|
28
34
|
sweepID: string;
|
|
29
35
|
};
|
|
@@ -34,6 +40,7 @@ export const WebhookDataSweepCreated$outboundSchema: z.ZodType<
|
|
|
34
40
|
z.ZodTypeDef,
|
|
35
41
|
WebhookDataSweepCreated
|
|
36
42
|
> = z.object({
|
|
43
|
+
accountID: z.string(),
|
|
37
44
|
walletID: z.string(),
|
|
38
45
|
sweepID: z.string(),
|
|
39
46
|
});
|
|
@@ -14,6 +14,10 @@ import {
|
|
|
14
14
|
} from "./sweepstatus.js";
|
|
15
15
|
|
|
16
16
|
export type WebhookDataSweepUpdated = {
|
|
17
|
+
/**
|
|
18
|
+
* The accountID associated with the wallet being swept.
|
|
19
|
+
*/
|
|
20
|
+
accountID: string;
|
|
17
21
|
walletID: string;
|
|
18
22
|
sweepID: string;
|
|
19
23
|
transferID?: string | undefined;
|
|
@@ -26,6 +30,7 @@ export const WebhookDataSweepUpdated$inboundSchema: z.ZodType<
|
|
|
26
30
|
z.ZodTypeDef,
|
|
27
31
|
unknown
|
|
28
32
|
> = z.object({
|
|
33
|
+
accountID: types.string(),
|
|
29
34
|
walletID: types.string(),
|
|
30
35
|
sweepID: types.string(),
|
|
31
36
|
transferID: types.optional(types.string()),
|
|
@@ -33,6 +38,7 @@ export const WebhookDataSweepUpdated$inboundSchema: z.ZodType<
|
|
|
33
38
|
});
|
|
34
39
|
/** @internal */
|
|
35
40
|
export type WebhookDataSweepUpdated$Outbound = {
|
|
41
|
+
accountID: string;
|
|
36
42
|
walletID: string;
|
|
37
43
|
sweepID: string;
|
|
38
44
|
transferID?: string | undefined;
|
|
@@ -45,6 +51,7 @@ export const WebhookDataSweepUpdated$outboundSchema: z.ZodType<
|
|
|
45
51
|
z.ZodTypeDef,
|
|
46
52
|
WebhookDataSweepUpdated
|
|
47
53
|
> = z.object({
|
|
54
|
+
accountID: z.string(),
|
|
48
55
|
walletID: z.string(),
|
|
49
56
|
sweepID: z.string(),
|
|
50
57
|
transferID: z.string().optional(),
|
|
@@ -48,6 +48,7 @@ export const WebhookEventType = {
|
|
|
48
48
|
WalletUpdated: "wallet.updated",
|
|
49
49
|
WalletTransactionUpdated: "walletTransaction.updated",
|
|
50
50
|
BillingStatementCreated: "billingStatement.created",
|
|
51
|
+
AuthorizationExpiring: "authorization.expiring",
|
|
51
52
|
} as const;
|
|
52
53
|
/**
|
|
53
54
|
* The type of event that occurred.
|
|
@@ -16,6 +16,7 @@ export type CreatePaymentLinkErrorData = {
|
|
|
16
16
|
display?: components.DisplayOptionsError | undefined;
|
|
17
17
|
payment?: components.PaymentDetailsError | undefined;
|
|
18
18
|
payout?: components.PayoutDetailsError | undefined;
|
|
19
|
+
customAmountPayment?: components.CustomAmountPaymentDetailsError | undefined;
|
|
19
20
|
lineItems?: components.CreatePaymentLinkLineItemsValidationError | undefined;
|
|
20
21
|
amountDetails?:
|
|
21
22
|
| components.CreatePaymentLinkAmountDetailsValidationError
|
|
@@ -31,6 +32,7 @@ export class CreatePaymentLinkError extends MoovError {
|
|
|
31
32
|
display?: components.DisplayOptionsError | undefined;
|
|
32
33
|
payment?: components.PaymentDetailsError | undefined;
|
|
33
34
|
payout?: components.PayoutDetailsError | undefined;
|
|
35
|
+
customAmountPayment?: components.CustomAmountPaymentDetailsError | undefined;
|
|
34
36
|
lineItems?: components.CreatePaymentLinkLineItemsValidationError | undefined;
|
|
35
37
|
amountDetails?:
|
|
36
38
|
| components.CreatePaymentLinkAmountDetailsValidationError
|
|
@@ -60,6 +62,9 @@ export class CreatePaymentLinkError extends MoovError {
|
|
|
60
62
|
if (err.display != null) this.display = err.display;
|
|
61
63
|
if (err.payment != null) this.payment = err.payment;
|
|
62
64
|
if (err.payout != null) this.payout = err.payout;
|
|
65
|
+
if (err.customAmountPayment != null) {
|
|
66
|
+
this.customAmountPayment = err.customAmountPayment;
|
|
67
|
+
}
|
|
63
68
|
if (err.lineItems != null) this.lineItems = err.lineItems;
|
|
64
69
|
if (err.amountDetails != null) this.amountDetails = err.amountDetails;
|
|
65
70
|
|
|
@@ -81,6 +86,9 @@ export const CreatePaymentLinkError$inboundSchema: z.ZodType<
|
|
|
81
86
|
display: types.optional(components.DisplayOptionsError$inboundSchema),
|
|
82
87
|
payment: types.optional(components.PaymentDetailsError$inboundSchema),
|
|
83
88
|
payout: types.optional(components.PayoutDetailsError$inboundSchema),
|
|
89
|
+
customAmountPayment: types.optional(
|
|
90
|
+
components.CustomAmountPaymentDetailsError$inboundSchema,
|
|
91
|
+
),
|
|
84
92
|
lineItems: types.optional(
|
|
85
93
|
components.CreatePaymentLinkLineItemsValidationError$inboundSchema,
|
|
86
94
|
),
|
|
@@ -109,6 +117,9 @@ export type CreatePaymentLinkError$Outbound = {
|
|
|
109
117
|
display?: components.DisplayOptionsError$Outbound | undefined;
|
|
110
118
|
payment?: components.PaymentDetailsError$Outbound | undefined;
|
|
111
119
|
payout?: components.PayoutDetailsError$Outbound | undefined;
|
|
120
|
+
customAmountPayment?:
|
|
121
|
+
| components.CustomAmountPaymentDetailsError$Outbound
|
|
122
|
+
| undefined;
|
|
112
123
|
lineItems?:
|
|
113
124
|
| components.CreatePaymentLinkLineItemsValidationError$Outbound
|
|
114
125
|
| undefined;
|
|
@@ -133,6 +144,8 @@ export const CreatePaymentLinkError$outboundSchema: z.ZodType<
|
|
|
133
144
|
display: components.DisplayOptionsError$outboundSchema.optional(),
|
|
134
145
|
payment: components.PaymentDetailsError$outboundSchema.optional(),
|
|
135
146
|
payout: components.PayoutDetailsError$outboundSchema.optional(),
|
|
147
|
+
customAmountPayment: components
|
|
148
|
+
.CustomAmountPaymentDetailsError$outboundSchema.optional(),
|
|
136
149
|
lineItems: components
|
|
137
150
|
.CreatePaymentLinkLineItemsValidationError$outboundSchema.optional(),
|
|
138
151
|
amountDetails: components
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as types from "../../types/primitives.js";
|
|
7
|
+
import { MoovError } from "./mooverror.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Descriptions of any field validations that failed while parsing the deposit account payload.
|
|
11
|
+
*/
|
|
12
|
+
export type DepositAccountValidationErrorData = {
|
|
13
|
+
/**
|
|
14
|
+
* An error describing why the X-Source-System header was missing or unsupported.
|
|
15
|
+
*/
|
|
16
|
+
sourceSystem?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* An error describing why the request body could not be parsed for the given source system.
|
|
19
|
+
*/
|
|
20
|
+
body?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Descriptions of any field validations that failed while parsing the deposit account payload.
|
|
25
|
+
*/
|
|
26
|
+
export class DepositAccountValidationError extends MoovError {
|
|
27
|
+
/**
|
|
28
|
+
* An error describing why the X-Source-System header was missing or unsupported.
|
|
29
|
+
*/
|
|
30
|
+
sourceSystem?: string | undefined;
|
|
31
|
+
|
|
32
|
+
/** The original data that was passed to this error instance. */
|
|
33
|
+
data$: DepositAccountValidationErrorData;
|
|
34
|
+
|
|
35
|
+
constructor(
|
|
36
|
+
err: DepositAccountValidationErrorData,
|
|
37
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
38
|
+
) {
|
|
39
|
+
const message = "message" in err && typeof err.message === "string"
|
|
40
|
+
? err.message
|
|
41
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
42
|
+
super(message, httpMeta);
|
|
43
|
+
this.data$ = err;
|
|
44
|
+
if (err.sourceSystem != null) this.sourceSystem = err.sourceSystem;
|
|
45
|
+
|
|
46
|
+
this.name = "DepositAccountValidationError";
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const DepositAccountValidationError$inboundSchema: z.ZodType<
|
|
52
|
+
DepositAccountValidationError,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
unknown
|
|
55
|
+
> = z.object({
|
|
56
|
+
sourceSystem: types.optional(types.string()),
|
|
57
|
+
body: types.optional(types.string()),
|
|
58
|
+
request$: z.instanceof(Request),
|
|
59
|
+
response$: z.instanceof(Response),
|
|
60
|
+
body$: z.string(),
|
|
61
|
+
})
|
|
62
|
+
.transform((v) => {
|
|
63
|
+
return new DepositAccountValidationError(v, {
|
|
64
|
+
request: v.request$,
|
|
65
|
+
response: v.response$,
|
|
66
|
+
body: v.body$,
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export type DepositAccountValidationError$Outbound = {
|
|
72
|
+
sourceSystem?: string | undefined;
|
|
73
|
+
body?: string | undefined;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const DepositAccountValidationError$outboundSchema: z.ZodType<
|
|
78
|
+
DepositAccountValidationError$Outbound,
|
|
79
|
+
z.ZodTypeDef,
|
|
80
|
+
DepositAccountValidationError
|
|
81
|
+
> = z.instanceof(DepositAccountValidationError)
|
|
82
|
+
.transform(v => v.data$)
|
|
83
|
+
.pipe(z.object({
|
|
84
|
+
sourceSystem: z.string().optional(),
|
|
85
|
+
body: z.string().optional(),
|
|
86
|
+
}));
|
|
@@ -21,6 +21,7 @@ export * from "./createsweepconfigerror.js";
|
|
|
21
21
|
export * from "./createticketerror.js";
|
|
22
22
|
export * from "./createwalletvalidationerror.js";
|
|
23
23
|
export * from "./createwebhookvalidationerror.js";
|
|
24
|
+
export * from "./depositaccountvalidationerror.js";
|
|
24
25
|
export * from "./duplicatecarderror.js";
|
|
25
26
|
export * from "./feeplanagreementerror.js";
|
|
26
27
|
export * from "./fileuploadvalidationerror.js";
|