@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
|
@@ -18,6 +18,12 @@ import {
|
|
|
18
18
|
PayoutRecipient$Outbound,
|
|
19
19
|
PayoutRecipient$outboundSchema,
|
|
20
20
|
} from "./payoutrecipient.js";
|
|
21
|
+
import {
|
|
22
|
+
PushOptionsUpdate,
|
|
23
|
+
PushOptionsUpdate$inboundSchema,
|
|
24
|
+
PushOptionsUpdate$Outbound,
|
|
25
|
+
PushOptionsUpdate$outboundSchema,
|
|
26
|
+
} from "./pushoptionsupdate.js";
|
|
21
27
|
|
|
22
28
|
export type PaymentLinkPayoutDetailsUpdate = {
|
|
23
29
|
/**
|
|
@@ -37,6 +43,15 @@ export type PaymentLinkPayoutDetailsUpdate = {
|
|
|
37
43
|
* Optional free-form metadata for the transfer.
|
|
38
44
|
*/
|
|
39
45
|
metadata?: { [k: string]: string } | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Delivery options for push-to-card payouts. Only applies when `allowedMethods` includes `push-to-card`.
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
*
|
|
51
|
+
* The `deferred` speed and `deferredBy` apply to `push-to-card` only. Other push methods
|
|
52
|
+
* (`push-to-apple-pay`, `push-to-google-pay`) are always delivered instantly regardless of these options.
|
|
53
|
+
*/
|
|
54
|
+
pushOptions?: PushOptionsUpdate | undefined;
|
|
40
55
|
};
|
|
41
56
|
|
|
42
57
|
/** @internal */
|
|
@@ -50,12 +65,14 @@ export const PaymentLinkPayoutDetailsUpdate$inboundSchema: z.ZodType<
|
|
|
50
65
|
),
|
|
51
66
|
recipient: types.optional(PayoutRecipient$inboundSchema),
|
|
52
67
|
metadata: types.optional(z.record(types.string())),
|
|
68
|
+
pushOptions: types.optional(PushOptionsUpdate$inboundSchema),
|
|
53
69
|
});
|
|
54
70
|
/** @internal */
|
|
55
71
|
export type PaymentLinkPayoutDetailsUpdate$Outbound = {
|
|
56
72
|
allowedMethods?: Array<string> | undefined;
|
|
57
73
|
recipient?: PayoutRecipient$Outbound | undefined;
|
|
58
74
|
metadata?: { [k: string]: string } | undefined;
|
|
75
|
+
pushOptions?: PushOptionsUpdate$Outbound | undefined;
|
|
59
76
|
};
|
|
60
77
|
|
|
61
78
|
/** @internal */
|
|
@@ -68,6 +85,7 @@ export const PaymentLinkPayoutDetailsUpdate$outboundSchema: z.ZodType<
|
|
|
68
85
|
.optional(),
|
|
69
86
|
recipient: PayoutRecipient$outboundSchema.optional(),
|
|
70
87
|
metadata: z.record(z.string()).optional(),
|
|
88
|
+
pushOptions: PushOptionsUpdate$outboundSchema.optional(),
|
|
71
89
|
});
|
|
72
90
|
|
|
73
91
|
export function paymentLinkPayoutDetailsUpdateToJSON(
|
|
@@ -131,6 +131,13 @@ export type PaymentMethodsCard = {
|
|
|
131
131
|
* Indicates if the card supports domestic pull-from-card transfer.
|
|
132
132
|
*/
|
|
133
133
|
domesticPullFromCard?: DomesticPullFromCard | undefined;
|
|
134
|
+
/**
|
|
135
|
+
* The category or level of the card defined by the issuer.
|
|
136
|
+
*
|
|
137
|
+
* @remarks
|
|
138
|
+
* Examples include, but not limited to, "REWARDS", "TRADITIONAL REWARDS", "CLASSIC", and "CORPORATE PURCHASING".
|
|
139
|
+
*/
|
|
140
|
+
cardCategory?: string | undefined;
|
|
134
141
|
};
|
|
135
142
|
|
|
136
143
|
/** @internal */
|
|
@@ -156,6 +163,7 @@ export const PaymentMethodsCard$inboundSchema: z.ZodType<
|
|
|
156
163
|
cardAccountUpdater: types.optional(CardAccountUpdater$inboundSchema),
|
|
157
164
|
domesticPushToCard: types.optional(DomesticPushToCard$inboundSchema),
|
|
158
165
|
domesticPullFromCard: types.optional(DomesticPullFromCard$inboundSchema),
|
|
166
|
+
cardCategory: types.optional(types.string()),
|
|
159
167
|
});
|
|
160
168
|
/** @internal */
|
|
161
169
|
export type PaymentMethodsCard$Outbound = {
|
|
@@ -176,6 +184,7 @@ export type PaymentMethodsCard$Outbound = {
|
|
|
176
184
|
cardAccountUpdater?: CardAccountUpdater$Outbound | undefined;
|
|
177
185
|
domesticPushToCard?: string | undefined;
|
|
178
186
|
domesticPullFromCard?: string | undefined;
|
|
187
|
+
cardCategory?: string | undefined;
|
|
179
188
|
};
|
|
180
189
|
|
|
181
190
|
/** @internal */
|
|
@@ -201,6 +210,7 @@ export const PaymentMethodsCard$outboundSchema: z.ZodType<
|
|
|
201
210
|
cardAccountUpdater: CardAccountUpdater$outboundSchema.optional(),
|
|
202
211
|
domesticPushToCard: DomesticPushToCard$outboundSchema.optional(),
|
|
203
212
|
domesticPullFromCard: DomesticPullFromCard$outboundSchema.optional(),
|
|
213
|
+
cardCategory: z.string().optional(),
|
|
204
214
|
});
|
|
205
215
|
|
|
206
216
|
export function paymentMethodsCardToJSON(
|
|
@@ -13,11 +13,18 @@ import {
|
|
|
13
13
|
PayoutRecipientError$Outbound,
|
|
14
14
|
PayoutRecipientError$outboundSchema,
|
|
15
15
|
} from "./payoutrecipienterror.js";
|
|
16
|
+
import {
|
|
17
|
+
PushOptionsError,
|
|
18
|
+
PushOptionsError$inboundSchema,
|
|
19
|
+
PushOptionsError$Outbound,
|
|
20
|
+
PushOptionsError$outboundSchema,
|
|
21
|
+
} from "./pushoptionserror.js";
|
|
16
22
|
|
|
17
23
|
export type PayoutDetailsError = {
|
|
18
24
|
allowedMethods?: string | undefined;
|
|
19
25
|
recipient?: PayoutRecipientError | undefined;
|
|
20
26
|
metadata?: string | undefined;
|
|
27
|
+
pushOptions?: PushOptionsError | undefined;
|
|
21
28
|
};
|
|
22
29
|
|
|
23
30
|
/** @internal */
|
|
@@ -29,12 +36,14 @@ export const PayoutDetailsError$inboundSchema: z.ZodType<
|
|
|
29
36
|
allowedMethods: types.optional(types.string()),
|
|
30
37
|
recipient: types.optional(PayoutRecipientError$inboundSchema),
|
|
31
38
|
metadata: types.optional(types.string()),
|
|
39
|
+
pushOptions: types.optional(PushOptionsError$inboundSchema),
|
|
32
40
|
});
|
|
33
41
|
/** @internal */
|
|
34
42
|
export type PayoutDetailsError$Outbound = {
|
|
35
43
|
allowedMethods?: string | undefined;
|
|
36
44
|
recipient?: PayoutRecipientError$Outbound | undefined;
|
|
37
45
|
metadata?: string | undefined;
|
|
46
|
+
pushOptions?: PushOptionsError$Outbound | undefined;
|
|
38
47
|
};
|
|
39
48
|
|
|
40
49
|
/** @internal */
|
|
@@ -46,6 +55,7 @@ export const PayoutDetailsError$outboundSchema: z.ZodType<
|
|
|
46
55
|
allowedMethods: z.string().optional(),
|
|
47
56
|
recipient: PayoutRecipientError$outboundSchema.optional(),
|
|
48
57
|
metadata: z.string().optional(),
|
|
58
|
+
pushOptions: PushOptionsError$outboundSchema.optional(),
|
|
49
59
|
});
|
|
50
60
|
|
|
51
61
|
export function payoutDetailsErrorToJSON(
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Delivery speed options for push-to-card payouts.
|
|
11
|
+
*/
|
|
12
|
+
export const PushDeliverySpeed = {
|
|
13
|
+
Instant: "instant",
|
|
14
|
+
Deferred: "deferred",
|
|
15
|
+
} as const;
|
|
16
|
+
/**
|
|
17
|
+
* Delivery speed options for push-to-card payouts.
|
|
18
|
+
*/
|
|
19
|
+
export type PushDeliverySpeed = OpenEnum<typeof PushDeliverySpeed>;
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const PushDeliverySpeed$inboundSchema: z.ZodType<
|
|
23
|
+
PushDeliverySpeed,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = openEnums.inboundSchema(PushDeliverySpeed);
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const PushDeliverySpeed$outboundSchema: z.ZodType<
|
|
29
|
+
string,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
PushDeliverySpeed
|
|
32
|
+
> = openEnums.outboundSchema(PushDeliverySpeed);
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
import {
|
|
11
|
+
PushDeliverySpeed,
|
|
12
|
+
PushDeliverySpeed$inboundSchema,
|
|
13
|
+
PushDeliverySpeed$outboundSchema,
|
|
14
|
+
} from "./pushdeliveryspeed.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Delivery options for push-to-card payouts.
|
|
18
|
+
*/
|
|
19
|
+
export type PushOptions = {
|
|
20
|
+
/**
|
|
21
|
+
* Delivery speeds the recipient may choose from for `push-to-card`. Include `instant` to allow immediate
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* delivery, `deferred` to allow delayed delivery, or both to let the recipient choose at checkout.
|
|
25
|
+
*/
|
|
26
|
+
allowedSpeeds: Array<PushDeliverySpeed>;
|
|
27
|
+
/**
|
|
28
|
+
* Delay before delivering a deferred `push-to-card` payout. Required when `allowedSpeeds` includes `deferred`.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* Accepted values are `24h` or `48h`.
|
|
32
|
+
*/
|
|
33
|
+
deferredBy?: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const PushOptions$inboundSchema: z.ZodType<
|
|
38
|
+
PushOptions,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
unknown
|
|
41
|
+
> = z.object({
|
|
42
|
+
allowedSpeeds: z.array(PushDeliverySpeed$inboundSchema),
|
|
43
|
+
deferredBy: types.optional(types.string()),
|
|
44
|
+
});
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type PushOptions$Outbound = {
|
|
47
|
+
allowedSpeeds: Array<string>;
|
|
48
|
+
deferredBy?: string | undefined;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const PushOptions$outboundSchema: z.ZodType<
|
|
53
|
+
PushOptions$Outbound,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
PushOptions
|
|
56
|
+
> = z.object({
|
|
57
|
+
allowedSpeeds: z.array(PushDeliverySpeed$outboundSchema),
|
|
58
|
+
deferredBy: z.string().optional(),
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export function pushOptionsToJSON(pushOptions: PushOptions): string {
|
|
62
|
+
return JSON.stringify(PushOptions$outboundSchema.parse(pushOptions));
|
|
63
|
+
}
|
|
64
|
+
export function pushOptionsFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<PushOptions, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => PushOptions$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'PushOptions' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 PushOptionsError = {
|
|
12
|
+
allowedSpeeds?: string | undefined;
|
|
13
|
+
deferredBy?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const PushOptionsError$inboundSchema: z.ZodType<
|
|
18
|
+
PushOptionsError,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
allowedSpeeds: types.optional(types.string()),
|
|
23
|
+
deferredBy: types.optional(types.string()),
|
|
24
|
+
});
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type PushOptionsError$Outbound = {
|
|
27
|
+
allowedSpeeds?: string | undefined;
|
|
28
|
+
deferredBy?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const PushOptionsError$outboundSchema: z.ZodType<
|
|
33
|
+
PushOptionsError$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
PushOptionsError
|
|
36
|
+
> = z.object({
|
|
37
|
+
allowedSpeeds: z.string().optional(),
|
|
38
|
+
deferredBy: z.string().optional(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export function pushOptionsErrorToJSON(
|
|
42
|
+
pushOptionsError: PushOptionsError,
|
|
43
|
+
): string {
|
|
44
|
+
return JSON.stringify(
|
|
45
|
+
PushOptionsError$outboundSchema.parse(pushOptionsError),
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
export function pushOptionsErrorFromJSON(
|
|
49
|
+
jsonString: string,
|
|
50
|
+
): SafeParseResult<PushOptionsError, SDKValidationError> {
|
|
51
|
+
return safeParse(
|
|
52
|
+
jsonString,
|
|
53
|
+
(x) => PushOptionsError$inboundSchema.parse(JSON.parse(x)),
|
|
54
|
+
`Failed to parse 'PushOptionsError' from JSON`,
|
|
55
|
+
);
|
|
56
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
import {
|
|
11
|
+
PushDeliverySpeed,
|
|
12
|
+
PushDeliverySpeed$inboundSchema,
|
|
13
|
+
PushDeliverySpeed$outboundSchema,
|
|
14
|
+
} from "./pushdeliveryspeed.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Delivery options for push-to-card payouts.
|
|
18
|
+
*/
|
|
19
|
+
export type PushOptionsUpdate = {
|
|
20
|
+
/**
|
|
21
|
+
* Delivery speeds the recipient may choose from for `push-to-card`. Include `instant` to allow immediate
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* delivery, `deferred` to allow delayed delivery, or both to let the recipient choose at checkout.
|
|
25
|
+
*/
|
|
26
|
+
allowedSpeeds?: Array<PushDeliverySpeed> | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Delay before delivering a deferred `push-to-card` payout. Required when `allowedSpeeds` includes `deferred`.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* Accepted values are `24h` or `48h`.
|
|
32
|
+
*/
|
|
33
|
+
deferredBy?: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const PushOptionsUpdate$inboundSchema: z.ZodType<
|
|
38
|
+
PushOptionsUpdate,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
unknown
|
|
41
|
+
> = z.object({
|
|
42
|
+
allowedSpeeds: types.optional(z.array(PushDeliverySpeed$inboundSchema)),
|
|
43
|
+
deferredBy: types.optional(types.string()),
|
|
44
|
+
});
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type PushOptionsUpdate$Outbound = {
|
|
47
|
+
allowedSpeeds?: Array<string> | undefined;
|
|
48
|
+
deferredBy?: string | undefined;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const PushOptionsUpdate$outboundSchema: z.ZodType<
|
|
53
|
+
PushOptionsUpdate$Outbound,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
PushOptionsUpdate
|
|
56
|
+
> = z.object({
|
|
57
|
+
allowedSpeeds: z.array(PushDeliverySpeed$outboundSchema).optional(),
|
|
58
|
+
deferredBy: z.string().optional(),
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export function pushOptionsUpdateToJSON(
|
|
62
|
+
pushOptionsUpdate: PushOptionsUpdate,
|
|
63
|
+
): string {
|
|
64
|
+
return JSON.stringify(
|
|
65
|
+
PushOptionsUpdate$outboundSchema.parse(pushOptionsUpdate),
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
export function pushOptionsUpdateFromJSON(
|
|
69
|
+
jsonString: string,
|
|
70
|
+
): SafeParseResult<PushOptionsUpdate, SDKValidationError> {
|
|
71
|
+
return safeParse(
|
|
72
|
+
jsonString,
|
|
73
|
+
(x) => PushOptionsUpdate$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
+
`Failed to parse 'PushOptionsUpdate' from JSON`,
|
|
75
|
+
);
|
|
76
|
+
}
|
|
@@ -7,23 +7,18 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import * as types from "../../types/primitives.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
Address,
|
|
12
|
+
Address$inboundSchema,
|
|
13
|
+
Address$Outbound,
|
|
14
|
+
Address$outboundSchema,
|
|
15
|
+
} from "./address.js";
|
|
10
16
|
import {
|
|
11
17
|
CardExpiration,
|
|
12
18
|
CardExpiration$inboundSchema,
|
|
13
19
|
CardExpiration$Outbound,
|
|
14
20
|
CardExpiration$outboundSchema,
|
|
15
21
|
} from "./cardexpiration.js";
|
|
16
|
-
import {
|
|
17
|
-
CreateAuthorizedUser,
|
|
18
|
-
CreateAuthorizedUser$inboundSchema,
|
|
19
|
-
CreateAuthorizedUser$Outbound,
|
|
20
|
-
CreateAuthorizedUser$outboundSchema,
|
|
21
|
-
} from "./createauthorizeduser.js";
|
|
22
|
-
import {
|
|
23
|
-
IssuedCardFormFactor,
|
|
24
|
-
IssuedCardFormFactor$inboundSchema,
|
|
25
|
-
IssuedCardFormFactor$outboundSchema,
|
|
26
|
-
} from "./issuedcardformfactor.js";
|
|
27
22
|
import {
|
|
28
23
|
IssuingControls,
|
|
29
24
|
IssuingControls$inboundSchema,
|
|
@@ -32,19 +27,13 @@ import {
|
|
|
32
27
|
} from "./issuingcontrols.js";
|
|
33
28
|
|
|
34
29
|
export type RequestCard = {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
* Fields for identifying an authorized individual.
|
|
38
|
-
*/
|
|
39
|
-
authorizedUser: CreateAuthorizedUser;
|
|
40
|
-
/**
|
|
41
|
-
* Specifies the type of spend card to be issued. Presently supports virtual only, providing a digital number without a physical card.
|
|
42
|
-
*/
|
|
43
|
-
formFactor: IssuedCardFormFactor;
|
|
30
|
+
authorizedUserAccountID?: string | undefined;
|
|
31
|
+
nickname?: string | undefined;
|
|
44
32
|
/**
|
|
45
|
-
*
|
|
33
|
+
* Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
|
|
46
34
|
*/
|
|
47
|
-
|
|
35
|
+
metadata?: { [k: string]: string } | undefined;
|
|
36
|
+
billingAddress?: Address | undefined;
|
|
48
37
|
/**
|
|
49
38
|
* The expiration date of the card or token.
|
|
50
39
|
*/
|
|
@@ -58,19 +47,19 @@ export const RequestCard$inboundSchema: z.ZodType<
|
|
|
58
47
|
z.ZodTypeDef,
|
|
59
48
|
unknown
|
|
60
49
|
> = z.object({
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
50
|
+
authorizedUserAccountID: types.optional(types.string()),
|
|
51
|
+
nickname: types.optional(types.string()),
|
|
52
|
+
metadata: types.optional(z.record(types.string())),
|
|
53
|
+
billingAddress: types.optional(Address$inboundSchema),
|
|
65
54
|
expiration: types.optional(CardExpiration$inboundSchema),
|
|
66
55
|
controls: types.optional(IssuingControls$inboundSchema),
|
|
67
56
|
});
|
|
68
57
|
/** @internal */
|
|
69
58
|
export type RequestCard$Outbound = {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
59
|
+
authorizedUserAccountID?: string | undefined;
|
|
60
|
+
nickname?: string | undefined;
|
|
61
|
+
metadata?: { [k: string]: string } | undefined;
|
|
62
|
+
billingAddress?: Address$Outbound | undefined;
|
|
74
63
|
expiration?: CardExpiration$Outbound | undefined;
|
|
75
64
|
controls?: IssuingControls$Outbound | undefined;
|
|
76
65
|
};
|
|
@@ -81,10 +70,10 @@ export const RequestCard$outboundSchema: z.ZodType<
|
|
|
81
70
|
z.ZodTypeDef,
|
|
82
71
|
RequestCard
|
|
83
72
|
> = z.object({
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
73
|
+
authorizedUserAccountID: z.string().optional(),
|
|
74
|
+
nickname: z.string().optional(),
|
|
75
|
+
metadata: z.record(z.string()).optional(),
|
|
76
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
88
77
|
expiration: CardExpiration$outboundSchema.optional(),
|
|
89
78
|
controls: IssuingControls$outboundSchema.optional(),
|
|
90
79
|
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Identifies the core banking source system that produced the deposit account payload.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
*
|
|
14
|
+
* The expected format of the request body depends on this value, so it must be supplied
|
|
15
|
+
* in the `X-Source-System` header on every request.
|
|
16
|
+
*/
|
|
17
|
+
export const SourceSystem = {
|
|
18
|
+
JhSilverlake: "jh_silverlake",
|
|
19
|
+
JhCif2020: "jh_cif2020",
|
|
20
|
+
JhCoredirector: "jh_coredirector",
|
|
21
|
+
} as const;
|
|
22
|
+
/**
|
|
23
|
+
* Identifies the core banking source system that produced the deposit account payload.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
*
|
|
27
|
+
* The expected format of the request body depends on this value, so it must be supplied
|
|
28
|
+
* in the `X-Source-System` header on every request.
|
|
29
|
+
*/
|
|
30
|
+
export type SourceSystem = OpenEnum<typeof SourceSystem>;
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const SourceSystem$inboundSchema: z.ZodType<
|
|
34
|
+
SourceSystem,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
unknown
|
|
37
|
+
> = openEnums.inboundSchema(SourceSystem);
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const SourceSystem$outboundSchema: z.ZodType<
|
|
40
|
+
string,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
SourceSystem
|
|
43
|
+
> = openEnums.outboundSchema(SourceSystem);
|
|
@@ -7,18 +7,21 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import * as types from "../../types/primitives.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
CreateAuthorizedUserUpdate,
|
|
12
|
-
CreateAuthorizedUserUpdate$inboundSchema,
|
|
13
|
-
CreateAuthorizedUserUpdate$Outbound,
|
|
14
|
-
CreateAuthorizedUserUpdate$outboundSchema,
|
|
15
|
-
} from "./createauthorizeduserupdate.js";
|
|
16
10
|
import {
|
|
17
11
|
UpdateIssuedCardState,
|
|
18
12
|
UpdateIssuedCardState$inboundSchema,
|
|
19
13
|
UpdateIssuedCardState$outboundSchema,
|
|
20
14
|
} from "./updateissuedcardstate.js";
|
|
21
15
|
|
|
16
|
+
export type BillingAddress = {
|
|
17
|
+
addressLine1?: string | undefined;
|
|
18
|
+
addressLine2?: string | undefined;
|
|
19
|
+
city?: string | undefined;
|
|
20
|
+
stateOrProvince?: string | undefined;
|
|
21
|
+
postalCode?: string | undefined;
|
|
22
|
+
country?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
22
25
|
export type UpdateIssuedCard = {
|
|
23
26
|
/**
|
|
24
27
|
* Updates the state of a Moov issued card.
|
|
@@ -27,13 +30,61 @@ export type UpdateIssuedCard = {
|
|
|
27
30
|
* - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
|
|
28
31
|
*/
|
|
29
32
|
state?: UpdateIssuedCardState | undefined;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
nickname?: string | null | undefined;
|
|
34
|
+
metadata?: { [k: string]: string } | null | undefined;
|
|
35
|
+
billingAddress?: BillingAddress | null | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const BillingAddress$inboundSchema: z.ZodType<
|
|
40
|
+
BillingAddress,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
unknown
|
|
43
|
+
> = z.object({
|
|
44
|
+
addressLine1: types.optional(types.string()),
|
|
45
|
+
addressLine2: types.optional(types.string()),
|
|
46
|
+
city: types.optional(types.string()),
|
|
47
|
+
stateOrProvince: types.optional(types.string()),
|
|
48
|
+
postalCode: types.optional(types.string()),
|
|
49
|
+
country: types.optional(types.string()),
|
|
50
|
+
});
|
|
51
|
+
/** @internal */
|
|
52
|
+
export type BillingAddress$Outbound = {
|
|
53
|
+
addressLine1?: string | undefined;
|
|
54
|
+
addressLine2?: string | undefined;
|
|
55
|
+
city?: string | undefined;
|
|
56
|
+
stateOrProvince?: string | undefined;
|
|
57
|
+
postalCode?: string | undefined;
|
|
58
|
+
country?: string | undefined;
|
|
35
59
|
};
|
|
36
60
|
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const BillingAddress$outboundSchema: z.ZodType<
|
|
63
|
+
BillingAddress$Outbound,
|
|
64
|
+
z.ZodTypeDef,
|
|
65
|
+
BillingAddress
|
|
66
|
+
> = z.object({
|
|
67
|
+
addressLine1: z.string().optional(),
|
|
68
|
+
addressLine2: z.string().optional(),
|
|
69
|
+
city: z.string().optional(),
|
|
70
|
+
stateOrProvince: z.string().optional(),
|
|
71
|
+
postalCode: z.string().optional(),
|
|
72
|
+
country: z.string().optional(),
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export function billingAddressToJSON(billingAddress: BillingAddress): string {
|
|
76
|
+
return JSON.stringify(BillingAddress$outboundSchema.parse(billingAddress));
|
|
77
|
+
}
|
|
78
|
+
export function billingAddressFromJSON(
|
|
79
|
+
jsonString: string,
|
|
80
|
+
): SafeParseResult<BillingAddress, SDKValidationError> {
|
|
81
|
+
return safeParse(
|
|
82
|
+
jsonString,
|
|
83
|
+
(x) => BillingAddress$inboundSchema.parse(JSON.parse(x)),
|
|
84
|
+
`Failed to parse 'BillingAddress' from JSON`,
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
37
88
|
/** @internal */
|
|
38
89
|
export const UpdateIssuedCard$inboundSchema: z.ZodType<
|
|
39
90
|
UpdateIssuedCard,
|
|
@@ -41,14 +92,17 @@ export const UpdateIssuedCard$inboundSchema: z.ZodType<
|
|
|
41
92
|
unknown
|
|
42
93
|
> = z.object({
|
|
43
94
|
state: types.optional(UpdateIssuedCardState$inboundSchema),
|
|
44
|
-
|
|
45
|
-
|
|
95
|
+
nickname: z.nullable(types.string()).optional(),
|
|
96
|
+
metadata: z.nullable(z.record(types.string())).optional(),
|
|
97
|
+
billingAddress: z.nullable(z.lazy(() => BillingAddress$inboundSchema))
|
|
98
|
+
.optional(),
|
|
46
99
|
});
|
|
47
100
|
/** @internal */
|
|
48
101
|
export type UpdateIssuedCard$Outbound = {
|
|
49
102
|
state?: string | undefined;
|
|
50
|
-
|
|
51
|
-
|
|
103
|
+
nickname?: string | null | undefined;
|
|
104
|
+
metadata?: { [k: string]: string } | null | undefined;
|
|
105
|
+
billingAddress?: BillingAddress$Outbound | null | undefined;
|
|
52
106
|
};
|
|
53
107
|
|
|
54
108
|
/** @internal */
|
|
@@ -58,8 +112,10 @@ export const UpdateIssuedCard$outboundSchema: z.ZodType<
|
|
|
58
112
|
UpdateIssuedCard
|
|
59
113
|
> = z.object({
|
|
60
114
|
state: UpdateIssuedCardState$outboundSchema.optional(),
|
|
61
|
-
|
|
62
|
-
|
|
115
|
+
nickname: z.nullable(z.string()).optional(),
|
|
116
|
+
metadata: z.nullable(z.record(z.string())).optional(),
|
|
117
|
+
billingAddress: z.nullable(z.lazy(() => BillingAddress$outboundSchema))
|
|
118
|
+
.optional(),
|
|
63
119
|
});
|
|
64
120
|
|
|
65
121
|
export function updateIssuedCardToJSON(
|