@moovio/sdk 0.0.0-dev.23 → 0.0.0-dev.25
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 +90 -86
- package/bin/mcp-server.js +772 -380
- package/bin/mcp-server.js.map +80 -74
- package/funcs/accountsCreate.d.ts +8 -10
- package/funcs/accountsCreate.d.ts.map +1 -1
- package/funcs/accountsCreate.js +8 -10
- package/funcs/accountsCreate.js.map +1 -1
- package/funcs/capabilitiesDisable.d.ts +1 -1
- package/funcs/capabilitiesDisable.js +1 -1
- package/funcs/capabilitiesGet.d.ts +1 -1
- package/funcs/capabilitiesGet.js +1 -1
- package/funcs/capabilitiesList.d.ts +1 -1
- package/funcs/capabilitiesList.js +1 -1
- package/funcs/capabilitiesRequest.d.ts +1 -1
- package/funcs/capabilitiesRequest.js +1 -1
- package/funcs/cardIssuingGet.js +1 -1
- package/funcs/cardIssuingGet.js.map +1 -1
- package/funcs/cardIssuingGetFull.js +1 -1
- package/funcs/cardIssuingGetFull.js.map +1 -1
- package/funcs/cardIssuingList.js +1 -1
- package/funcs/cardIssuingList.js.map +1 -1
- package/funcs/cardIssuingRequest.js +1 -1
- package/funcs/cardIssuingRequest.js.map +1 -1
- package/funcs/cardIssuingUpdate.js +1 -1
- package/funcs/cardIssuingUpdate.js.map +1 -1
- package/funcs/transfersListCancellations.d.ts +17 -0
- package/funcs/transfersListCancellations.d.ts.map +1 -0
- package/funcs/transfersListCancellations.js +129 -0
- package/funcs/transfersListCancellations.js.map +1 -0
- package/hooks/types.d.ts +1 -0
- package/hooks/types.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/encodings.js +12 -12
- package/lib/encodings.js.map +1 -1
- package/lib/matchers.js +3 -3
- package/lib/matchers.js.map +1 -1
- package/lib/primitives.d.ts +1 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +18 -0
- package/lib/primitives.js.map +1 -1
- package/lib/retries.js +7 -0
- package/lib/retries.js.map +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +50 -16
- package/lib/sdks.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/accountsCreate.d.ts.map +1 -1
- package/mcp-server/tools/accountsCreate.js +8 -10
- package/mcp-server/tools/accountsCreate.js.map +1 -1
- package/mcp-server/tools/capabilitiesDisable.js +1 -1
- package/mcp-server/tools/capabilitiesGet.js +1 -1
- package/mcp-server/tools/capabilitiesList.js +1 -1
- package/mcp-server/tools/capabilitiesRequest.js +1 -1
- package/mcp-server/tools/transfersListCancellations.d.ts +8 -0
- package/mcp-server/tools/transfersListCancellations.d.ts.map +1 -0
- package/mcp-server/tools/transfersListCancellations.js +65 -0
- package/mcp-server/tools/transfersListCancellations.js.map +1 -0
- package/models/components/addcapabilities.d.ts +9 -0
- package/models/components/addcapabilities.d.ts.map +1 -1
- package/models/components/addcapabilities.js.map +1 -1
- package/models/components/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/amountdetails.d.ts +26 -0
- package/models/components/amountdetails.d.ts.map +1 -0
- package/models/components/{authorizeduser.js → amountdetails.js} +15 -14
- package/models/components/amountdetails.js.map +1 -0
- package/models/components/amountdetailsupdate.d.ts +26 -0
- package/models/components/amountdetailsupdate.d.ts.map +1 -0
- package/models/components/{createauthorizedusererror.js → amountdetailsupdate.js} +15 -17
- package/models/components/amountdetailsupdate.js.map +1 -0
- package/models/components/amountdetailsvalidationerror.d.ts +19 -0
- package/models/components/amountdetailsvalidationerror.d.ts.map +1 -0
- package/models/components/{createauthorizeduser.js → amountdetailsvalidationerror.js} +14 -17
- package/models/components/amountdetailsvalidationerror.js.map +1 -0
- 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 +14 -2
- package/models/components/capabilityid.d.ts.map +1 -1
- package/models/components/capabilityid.js +7 -1
- package/models/components/capabilityid.js.map +1 -1
- package/models/components/cardtransactiondetails.d.ts +5 -0
- package/models/components/cardtransactiondetails.d.ts.map +1 -1
- package/models/components/cardtransactiondetails.js +2 -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/createinvoice.d.ts +3 -3
- package/models/components/createinvoice.d.ts.map +1 -1
- package/models/components/createinvoice.js +3 -3
- package/models/components/createinvoice.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/fullissuedcard.d.ts +25 -9
- 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 +8 -4
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -4
- package/models/components/index.js.map +1 -1
- package/models/components/invoice.d.ts +4 -3
- package/models/components/invoice.d.ts.map +1 -1
- package/models/components/invoice.js +3 -2
- package/models/components/invoice.js.map +1 -1
- package/models/components/issuedcard.d.ts +25 -9
- 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/onboardinginvite.d.ts +1 -1
- package/models/components/onboardinginviterequest.d.ts +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/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/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/transferconfig.d.ts +3 -0
- package/models/components/transferconfig.d.ts.map +1 -1
- package/models/components/transferconfig.js +3 -0
- package/models/components/transferconfig.js.map +1 -1
- package/models/components/transfercontrols.d.ts +43 -0
- package/models/components/transfercontrols.d.ts.map +1 -0
- package/models/components/{createauthorizeduserupdate.js → transfercontrols.js} +20 -17
- package/models/components/transfercontrols.js.map +1 -0
- package/models/components/updateinvoice.d.ts +9 -9
- package/models/components/updateinvoice.d.ts.map +1 -1
- package/models/components/updateinvoice.js +3 -3
- package/models/components/updateinvoice.js.map +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/webhookdata.d.ts +3 -2
- package/models/components/webhookdata.d.ts.map +1 -1
- package/models/components/webhookdata.js +7 -4
- package/models/components/webhookdata.js.map +1 -1
- package/models/components/webhookdataauthorizationexpiring.d.ts +23 -0
- package/models/components/webhookdataauthorizationexpiring.d.ts.map +1 -0
- package/models/components/webhookdataauthorizationexpiring.js +65 -0
- package/models/components/webhookdataauthorizationexpiring.js.map +1 -0
- package/models/components/webhookdatacapabilityrequested.d.ts +7 -1
- package/models/components/webhookdatacapabilityrequested.d.ts.map +1 -1
- package/models/components/webhookdatacapabilityrequested.js.map +1 -1
- package/models/components/webhookdatacapabilityupdated.d.ts +7 -1
- package/models/components/webhookdatacapabilityupdated.d.ts.map +1 -1
- package/models/components/webhookdatacapabilityupdated.js.map +1 -1
- package/models/components/webhookdatasweepcreated.d.ts +5 -0
- package/models/components/webhookdatasweepcreated.d.ts.map +1 -1
- package/models/components/webhookdatasweepcreated.js +2 -0
- package/models/components/webhookdatasweepcreated.js.map +1 -1
- package/models/components/webhookdatasweepupdated.d.ts +5 -0
- package/models/components/webhookdatasweepupdated.d.ts.map +1 -1
- package/models/components/webhookdatasweepupdated.js +2 -0
- package/models/components/webhookdatasweepupdated.js.map +1 -1
- package/models/components/webhookeventtype.d.ts +1 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +1 -0
- package/models/components/webhookeventtype.js.map +1 -1
- package/models/errors/createinvoiceerror.d.ts +3 -3
- package/models/errors/createinvoiceerror.d.ts.map +1 -1
- package/models/errors/createinvoiceerror.js +4 -4
- package/models/errors/createinvoiceerror.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/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/updateinvoiceerror.d.ts +3 -3
- package/models/errors/updateinvoiceerror.d.ts.map +1 -1
- package/models/errors/updateinvoiceerror.js +4 -4
- package/models/errors/updateinvoiceerror.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/disablecapability.d.ts +7 -1
- package/models/operations/disablecapability.d.ts.map +1 -1
- package/models/operations/disablecapability.js.map +1 -1
- package/models/operations/getcapability.d.ts +7 -1
- package/models/operations/getcapability.d.ts.map +1 -1
- package/models/operations/getcapability.js.map +1 -1
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/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/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/capabilities.d.ts +4 -4
- package/sdk/capabilities.js +4 -4
- package/sdk/transfers.d.ts +7 -0
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +10 -0
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/accountsCreate.ts +8 -10
- package/src/funcs/capabilitiesDisable.ts +1 -1
- package/src/funcs/capabilitiesGet.ts +1 -1
- package/src/funcs/capabilitiesList.ts +1 -1
- package/src/funcs/capabilitiesRequest.ts +1 -1
- package/src/funcs/cardIssuingGet.ts +1 -1
- package/src/funcs/cardIssuingGetFull.ts +3 -3
- package/src/funcs/cardIssuingList.ts +1 -1
- package/src/funcs/cardIssuingRequest.ts +1 -1
- package/src/funcs/cardIssuingUpdate.ts +1 -1
- package/src/funcs/transfersListCancellations.ts +181 -0
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +1 -1
- package/src/lib/matchers.ts +1 -1
- package/src/lib/primitives.ts +16 -0
- package/src/lib/retries.ts +8 -0
- package/src/lib/sdks.ts +54 -17
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/accountsCreate.ts +8 -10
- package/src/mcp-server/tools/capabilitiesDisable.ts +1 -1
- package/src/mcp-server/tools/capabilitiesGet.ts +1 -1
- package/src/mcp-server/tools/capabilitiesList.ts +1 -1
- package/src/mcp-server/tools/capabilitiesRequest.ts +1 -1
- package/src/mcp-server/tools/transfersListCancellations.ts +38 -0
- package/src/models/components/addcapabilities.ts +9 -0
- package/src/models/components/amountdecimalrange.ts +20 -8
- package/src/models/components/amountdecimalrangeupdate.ts +11 -0
- package/src/models/components/amountdetails.ts +64 -0
- package/src/models/components/amountdetailsupdate.ts +68 -0
- package/src/models/components/amountdetailsvalidationerror.ts +58 -0
- package/src/models/components/capability.ts +7 -1
- package/src/models/components/capabilityid.ts +14 -2
- package/src/models/components/cardtransactiondetails.ts +7 -0
- package/src/models/components/cardtransactionstatus.ts +1 -0
- package/src/models/components/createaccount.ts +9 -0
- package/src/models/components/createinvoice.ts +9 -9
- 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/fullissuedcard.ts +35 -17
- package/src/models/components/index.ts +8 -4
- package/src/models/components/invoice.ts +11 -5
- package/src/models/components/issuedcard.ts +35 -17
- package/src/models/components/onboardinginvite.ts +1 -1
- package/src/models/components/onboardinginviterequest.ts +1 -1
- 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/paymentlinktype.ts +1 -0
- package/src/models/components/requestcard.ts +23 -34
- package/src/models/components/transferconfig.ts +10 -0
- package/src/models/components/transfercontrols.ts +86 -0
- package/src/models/components/updateinvoice.ts +15 -15
- package/src/models/components/updateissuedcard.ts +73 -17
- package/src/models/components/updatepaymentlink.ts +18 -0
- 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/createinvoiceerror.ts +7 -7
- package/src/models/errors/createpaymentlinkerror.ts +13 -0
- package/src/models/errors/requestcarderror.ts +26 -27
- package/src/models/errors/updateinvoiceerror.ts +7 -7
- package/src/models/errors/updateissuedcarderror.ts +18 -15
- package/src/models/errors/updatepaymentlinkerror.ts +13 -0
- package/src/models/operations/disablecapability.ts +7 -1
- package/src/models/operations/getcapability.ts +7 -1
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listcancellations.ts +121 -0
- package/src/sdk/accounts.ts +8 -10
- package/src/sdk/capabilities.ts +4 -4
- package/src/sdk/transfers.ts +18 -0
- package/src/types/async.ts +8 -7
- package/src/types/primitives.ts +0 -24
- package/types/async.d.ts.map +1 -1
- package/types/async.js +8 -7
- package/types/async.js.map +1 -1
- package/types/primitives.d.ts +0 -2
- package/types/primitives.d.ts.map +1 -1
- package/types/primitives.js +0 -23
- package/types/primitives.js.map +1 -1
- package/lib/dlv.d.ts +0 -14
- package/lib/dlv.d.ts.map +0 -1
- package/lib/dlv.js +0 -49
- package/lib/dlv.js.map +0 -1
- package/lib/is-plain-object.d.ts +0 -2
- package/lib/is-plain-object.d.ts.map +0 -1
- package/lib/is-plain-object.js +0 -41
- package/lib/is-plain-object.js.map +0 -1
- package/models/components/authorizeduser.d.ts +0 -22
- package/models/components/authorizeduser.d.ts.map +0 -1
- package/models/components/authorizeduser.js.map +0 -1
- package/models/components/createauthorizeduser.d.ts +0 -25
- package/models/components/createauthorizeduser.d.ts.map +0 -1
- package/models/components/createauthorizeduser.js.map +0 -1
- package/models/components/createauthorizedusererror.d.ts +0 -22
- package/models/components/createauthorizedusererror.d.ts.map +0 -1
- package/models/components/createauthorizedusererror.js.map +0 -1
- package/models/components/createauthorizeduserupdate.d.ts +0 -25
- package/models/components/createauthorizeduserupdate.d.ts.map +0 -1
- package/models/components/createauthorizeduserupdate.js.map +0 -1
- package/src/lib/dlv.ts +0 -53
- package/src/lib/is-plain-object.ts +0 -43
- package/src/models/components/authorizeduser.ts +0 -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
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
AmountDecimal,
|
|
12
|
+
AmountDecimal$inboundSchema,
|
|
13
|
+
AmountDecimal$Outbound,
|
|
14
|
+
AmountDecimal$outboundSchema,
|
|
15
|
+
} from "./amountdecimal.js";
|
|
16
|
+
|
|
17
|
+
export type AmountDetails = {
|
|
18
|
+
/**
|
|
19
|
+
* The amount of tax applied to the invoice.
|
|
20
|
+
*/
|
|
21
|
+
tax?: AmountDecimal | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* The amount of surcharge applied to the invoice.
|
|
24
|
+
*/
|
|
25
|
+
surcharge?: AmountDecimal | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const AmountDetails$inboundSchema: z.ZodType<
|
|
30
|
+
AmountDetails,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
tax: types.optional(AmountDecimal$inboundSchema),
|
|
35
|
+
surcharge: types.optional(AmountDecimal$inboundSchema),
|
|
36
|
+
});
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type AmountDetails$Outbound = {
|
|
39
|
+
tax?: AmountDecimal$Outbound | undefined;
|
|
40
|
+
surcharge?: AmountDecimal$Outbound | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const AmountDetails$outboundSchema: z.ZodType<
|
|
45
|
+
AmountDetails$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
AmountDetails
|
|
48
|
+
> = z.object({
|
|
49
|
+
tax: AmountDecimal$outboundSchema.optional(),
|
|
50
|
+
surcharge: AmountDecimal$outboundSchema.optional(),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export function amountDetailsToJSON(amountDetails: AmountDetails): string {
|
|
54
|
+
return JSON.stringify(AmountDetails$outboundSchema.parse(amountDetails));
|
|
55
|
+
}
|
|
56
|
+
export function amountDetailsFromJSON(
|
|
57
|
+
jsonString: string,
|
|
58
|
+
): SafeParseResult<AmountDetails, SDKValidationError> {
|
|
59
|
+
return safeParse(
|
|
60
|
+
jsonString,
|
|
61
|
+
(x) => AmountDetails$inboundSchema.parse(JSON.parse(x)),
|
|
62
|
+
`Failed to parse 'AmountDetails' from JSON`,
|
|
63
|
+
);
|
|
64
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
AmountDecimalUpdate,
|
|
12
|
+
AmountDecimalUpdate$inboundSchema,
|
|
13
|
+
AmountDecimalUpdate$Outbound,
|
|
14
|
+
AmountDecimalUpdate$outboundSchema,
|
|
15
|
+
} from "./amountdecimalupdate.js";
|
|
16
|
+
|
|
17
|
+
export type AmountDetailsUpdate = {
|
|
18
|
+
/**
|
|
19
|
+
* The amount of tax applied to the invoice.
|
|
20
|
+
*/
|
|
21
|
+
tax?: AmountDecimalUpdate | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* The amount of surcharge applied to the invoice.
|
|
24
|
+
*/
|
|
25
|
+
surcharge?: AmountDecimalUpdate | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const AmountDetailsUpdate$inboundSchema: z.ZodType<
|
|
30
|
+
AmountDetailsUpdate,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
tax: types.optional(AmountDecimalUpdate$inboundSchema),
|
|
35
|
+
surcharge: types.optional(AmountDecimalUpdate$inboundSchema),
|
|
36
|
+
});
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type AmountDetailsUpdate$Outbound = {
|
|
39
|
+
tax?: AmountDecimalUpdate$Outbound | undefined;
|
|
40
|
+
surcharge?: AmountDecimalUpdate$Outbound | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const AmountDetailsUpdate$outboundSchema: z.ZodType<
|
|
45
|
+
AmountDetailsUpdate$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
AmountDetailsUpdate
|
|
48
|
+
> = z.object({
|
|
49
|
+
tax: AmountDecimalUpdate$outboundSchema.optional(),
|
|
50
|
+
surcharge: AmountDecimalUpdate$outboundSchema.optional(),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export function amountDetailsUpdateToJSON(
|
|
54
|
+
amountDetailsUpdate: AmountDetailsUpdate,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
AmountDetailsUpdate$outboundSchema.parse(amountDetailsUpdate),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
export function amountDetailsUpdateFromJSON(
|
|
61
|
+
jsonString: string,
|
|
62
|
+
): SafeParseResult<AmountDetailsUpdate, SDKValidationError> {
|
|
63
|
+
return safeParse(
|
|
64
|
+
jsonString,
|
|
65
|
+
(x) => AmountDetailsUpdate$inboundSchema.parse(JSON.parse(x)),
|
|
66
|
+
`Failed to parse 'AmountDetailsUpdate' from JSON`,
|
|
67
|
+
);
|
|
68
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 AmountDetailsValidationError = {
|
|
12
|
+
tax?: string | undefined;
|
|
13
|
+
surcharge?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const AmountDetailsValidationError$inboundSchema: z.ZodType<
|
|
18
|
+
AmountDetailsValidationError,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
tax: types.optional(types.string()),
|
|
23
|
+
surcharge: types.optional(types.string()),
|
|
24
|
+
});
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type AmountDetailsValidationError$Outbound = {
|
|
27
|
+
tax?: string | undefined;
|
|
28
|
+
surcharge?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const AmountDetailsValidationError$outboundSchema: z.ZodType<
|
|
33
|
+
AmountDetailsValidationError$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
AmountDetailsValidationError
|
|
36
|
+
> = z.object({
|
|
37
|
+
tax: z.string().optional(),
|
|
38
|
+
surcharge: z.string().optional(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export function amountDetailsValidationErrorToJSON(
|
|
42
|
+
amountDetailsValidationError: AmountDetailsValidationError,
|
|
43
|
+
): string {
|
|
44
|
+
return JSON.stringify(
|
|
45
|
+
AmountDetailsValidationError$outboundSchema.parse(
|
|
46
|
+
amountDetailsValidationError,
|
|
47
|
+
),
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
export function amountDetailsValidationErrorFromJSON(
|
|
51
|
+
jsonString: string,
|
|
52
|
+
): SafeParseResult<AmountDetailsValidationError, SDKValidationError> {
|
|
53
|
+
return safeParse(
|
|
54
|
+
jsonString,
|
|
55
|
+
(x) => AmountDetailsValidationError$inboundSchema.parse(JSON.parse(x)),
|
|
56
|
+
`Failed to parse 'AmountDetailsValidationError' from JSON`,
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -30,7 +30,13 @@ export type Capability = {
|
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
*
|
|
33
|
-
*
|
|
33
|
+
* **Deprecated capabilities**
|
|
34
|
+
*
|
|
35
|
+
* 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.
|
|
36
|
+
*
|
|
37
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
38
|
+
*
|
|
39
|
+
* 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.
|
|
34
40
|
*/
|
|
35
41
|
capability: CapabilityID;
|
|
36
42
|
accountID: string;
|
|
@@ -11,7 +11,13 @@ import { OpenEnum } from "../../types/enums.js";
|
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
13
|
*
|
|
14
|
-
*
|
|
14
|
+
* **Deprecated capabilities**
|
|
15
|
+
*
|
|
16
|
+
* 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.
|
|
17
|
+
*
|
|
18
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
19
|
+
*
|
|
20
|
+
* 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.
|
|
15
21
|
*/
|
|
16
22
|
export const CapabilityID = {
|
|
17
23
|
Transfers: "transfers",
|
|
@@ -37,7 +43,13 @@ export const CapabilityID = {
|
|
|
37
43
|
*
|
|
38
44
|
* @remarks
|
|
39
45
|
*
|
|
40
|
-
*
|
|
46
|
+
* **Deprecated capabilities**
|
|
47
|
+
*
|
|
48
|
+
* The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Request granular capabilities instead (for example, `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance`). Deprecated values will be removed in a future API version.
|
|
49
|
+
*
|
|
50
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
51
|
+
*
|
|
52
|
+
* The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in the list for your Partner account. These are read-only capabilities that Moov requests. These capabilities remain active with your account and require no additional action.
|
|
41
53
|
*/
|
|
42
54
|
export type CapabilityID = OpenEnum<typeof CapabilityID>;
|
|
43
55
|
|
|
@@ -36,6 +36,10 @@ export type CardTransactionDetails = {
|
|
|
36
36
|
* An optional override of the default card statement descriptor for a transfer. Accounts must be enabled by Moov to set this field.
|
|
37
37
|
*/
|
|
38
38
|
dynamicDescriptor?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* The scheduled date and time for the transfer to be delivered. This field is only valid for push-to-card transfers. Must be between 24 and 48 hours in the future.
|
|
41
|
+
*/
|
|
42
|
+
scheduledDeliveryOn?: Date | undefined;
|
|
39
43
|
/**
|
|
40
44
|
* Specifies the nature and initiator of a transaction.
|
|
41
45
|
*
|
|
@@ -76,6 +80,7 @@ export const CardTransactionDetails$inboundSchema: z.ZodType<
|
|
|
76
80
|
status: types.optional(CardTransactionStatus$inboundSchema),
|
|
77
81
|
failureCode: types.optional(CardTransactionFailureCode$inboundSchema),
|
|
78
82
|
dynamicDescriptor: types.optional(types.string()),
|
|
83
|
+
scheduledDeliveryOn: types.optional(types.date()),
|
|
79
84
|
transactionSource: types.optional(TransactionSource$inboundSchema),
|
|
80
85
|
initiatedOn: types.optional(types.date()),
|
|
81
86
|
confirmedOn: types.optional(types.date()),
|
|
@@ -92,6 +97,7 @@ export type CardTransactionDetails$Outbound = {
|
|
|
92
97
|
status?: string | undefined;
|
|
93
98
|
failureCode?: string | undefined;
|
|
94
99
|
dynamicDescriptor?: string | undefined;
|
|
100
|
+
scheduledDeliveryOn?: string | undefined;
|
|
95
101
|
transactionSource?: string | undefined;
|
|
96
102
|
initiatedOn?: string | undefined;
|
|
97
103
|
confirmedOn?: string | undefined;
|
|
@@ -113,6 +119,7 @@ export const CardTransactionDetails$outboundSchema: z.ZodType<
|
|
|
113
119
|
status: CardTransactionStatus$outboundSchema.optional(),
|
|
114
120
|
failureCode: CardTransactionFailureCode$outboundSchema.optional(),
|
|
115
121
|
dynamicDescriptor: z.string().optional(),
|
|
122
|
+
scheduledDeliveryOn: z.date().transform(v => v.toISOString()).optional(),
|
|
116
123
|
transactionSource: TransactionSource$outboundSchema.optional(),
|
|
117
124
|
initiatedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
118
125
|
confirmedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -66,6 +66,15 @@ export type CreateAccount = {
|
|
|
66
66
|
* User provided settings to manage an account.
|
|
67
67
|
*/
|
|
68
68
|
settings?: Settings | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Capabilities to request when the account is created. Request granular capability IDs that match your use case.
|
|
71
|
+
*
|
|
72
|
+
* @remarks
|
|
73
|
+
*
|
|
74
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
75
|
+
*
|
|
76
|
+
* The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Use granular values such as `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance` instead.
|
|
77
|
+
*/
|
|
69
78
|
capabilities?: Array<CapabilityID> | undefined;
|
|
70
79
|
/**
|
|
71
80
|
* The operating mode for an account.
|
|
@@ -8,11 +8,11 @@ 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
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
11
|
+
AmountDetails,
|
|
12
|
+
AmountDetails$inboundSchema,
|
|
13
|
+
AmountDetails$Outbound,
|
|
14
|
+
AmountDetails$outboundSchema,
|
|
15
|
+
} from "./amountdetails.js";
|
|
16
16
|
import {
|
|
17
17
|
CreateInvoiceLineItems,
|
|
18
18
|
CreateInvoiceLineItems$inboundSchema,
|
|
@@ -32,7 +32,7 @@ export type CreateInvoice = {
|
|
|
32
32
|
lineItems: CreateInvoiceLineItems;
|
|
33
33
|
invoiceDate?: Date | undefined;
|
|
34
34
|
dueDate?: Date | undefined;
|
|
35
|
-
|
|
35
|
+
amountDetails?: AmountDetails | undefined;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
/** @internal */
|
|
@@ -46,7 +46,7 @@ export const CreateInvoice$inboundSchema: z.ZodType<
|
|
|
46
46
|
lineItems: CreateInvoiceLineItems$inboundSchema,
|
|
47
47
|
invoiceDate: types.optional(types.date()),
|
|
48
48
|
dueDate: types.optional(types.date()),
|
|
49
|
-
|
|
49
|
+
amountDetails: types.optional(AmountDetails$inboundSchema),
|
|
50
50
|
});
|
|
51
51
|
/** @internal */
|
|
52
52
|
export type CreateInvoice$Outbound = {
|
|
@@ -55,7 +55,7 @@ export type CreateInvoice$Outbound = {
|
|
|
55
55
|
lineItems: CreateInvoiceLineItems$Outbound;
|
|
56
56
|
invoiceDate?: string | undefined;
|
|
57
57
|
dueDate?: string | undefined;
|
|
58
|
-
|
|
58
|
+
amountDetails?: AmountDetails$Outbound | undefined;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
/** @internal */
|
|
@@ -69,7 +69,7 @@ export const CreateInvoice$outboundSchema: z.ZodType<
|
|
|
69
69
|
lineItems: CreateInvoiceLineItems$outboundSchema,
|
|
70
70
|
invoiceDate: z.date().transform(v => v.toISOString()).optional(),
|
|
71
71
|
dueDate: z.date().transform(v => v.toISOString()).optional(),
|
|
72
|
-
|
|
72
|
+
amountDetails: AmountDetails$outboundSchema.optional(),
|
|
73
73
|
});
|
|
74
74
|
|
|
75
75
|
export function createInvoiceToJSON(createInvoice: CreateInvoice): string {
|
|
@@ -25,6 +25,12 @@ import {
|
|
|
25
25
|
CreatePaymentLinkLineItems$Outbound,
|
|
26
26
|
CreatePaymentLinkLineItems$outboundSchema,
|
|
27
27
|
} from "./createpaymentlinklineitems.js";
|
|
28
|
+
import {
|
|
29
|
+
PaymentLinkCustomAmountPaymentDetails,
|
|
30
|
+
PaymentLinkCustomAmountPaymentDetails$inboundSchema,
|
|
31
|
+
PaymentLinkCustomAmountPaymentDetails$Outbound,
|
|
32
|
+
PaymentLinkCustomAmountPaymentDetails$outboundSchema,
|
|
33
|
+
} from "./paymentlinkcustomamountpaymentdetails.js";
|
|
28
34
|
import {
|
|
29
35
|
PaymentLinkCustomerOptions,
|
|
30
36
|
PaymentLinkCustomerOptions$inboundSchema,
|
|
@@ -55,7 +61,7 @@ import {
|
|
|
55
61
|
*
|
|
56
62
|
* @remarks
|
|
57
63
|
*
|
|
58
|
-
* A payment link must include
|
|
64
|
+
* A payment link must include exactly one of `payment`, `payout`, or `customAmountPayment` details. For payout payment links,
|
|
59
65
|
* `maxUses` will automatically be set to 1, as these are intended for a one-time disbursement
|
|
60
66
|
* to a specific recipient.
|
|
61
67
|
*/
|
|
@@ -75,8 +81,8 @@ export type CreatePaymentLink = {
|
|
|
75
81
|
*
|
|
76
82
|
* In API versions before `2026.07.00`, this was a required field.
|
|
77
83
|
*
|
|
78
|
-
* In API version `2026.07.00` and beyond, this field is required for `
|
|
79
|
-
* for `
|
|
84
|
+
* In API version `2026.07.00` and beyond, this field is required for `payment` and `payout` links and must be
|
|
85
|
+
* omitted for `customAmountPayment` links, where the payor chooses the amount.
|
|
80
86
|
*/
|
|
81
87
|
amount?: Amount | undefined;
|
|
82
88
|
/**
|
|
@@ -101,6 +107,10 @@ export type CreatePaymentLink = {
|
|
|
101
107
|
*/
|
|
102
108
|
payment?: PaymentLinkPaymentDetails | undefined;
|
|
103
109
|
payout?: PaymentLinkPayoutDetails | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Options for a custom amount payment link. Mutually exclusive with `payment` and `payout`.
|
|
112
|
+
*/
|
|
113
|
+
customAmountPayment?: PaymentLinkCustomAmountPaymentDetails | undefined;
|
|
104
114
|
/**
|
|
105
115
|
* An optional collection of line items for a payment link.
|
|
106
116
|
*
|
|
@@ -126,6 +136,9 @@ export const CreatePaymentLink$inboundSchema: z.ZodType<
|
|
|
126
136
|
customer: types.optional(PaymentLinkCustomerOptions$inboundSchema),
|
|
127
137
|
payment: types.optional(PaymentLinkPaymentDetails$inboundSchema),
|
|
128
138
|
payout: types.optional(PaymentLinkPayoutDetails$inboundSchema),
|
|
139
|
+
customAmountPayment: types.optional(
|
|
140
|
+
PaymentLinkCustomAmountPaymentDetails$inboundSchema,
|
|
141
|
+
),
|
|
129
142
|
lineItems: types.optional(CreatePaymentLinkLineItems$inboundSchema),
|
|
130
143
|
amountDetails: types.optional(CreatePaymentLinkAmountDetails$inboundSchema),
|
|
131
144
|
});
|
|
@@ -140,6 +153,9 @@ export type CreatePaymentLink$Outbound = {
|
|
|
140
153
|
customer?: PaymentLinkCustomerOptions$Outbound | undefined;
|
|
141
154
|
payment?: PaymentLinkPaymentDetails$Outbound | undefined;
|
|
142
155
|
payout?: PaymentLinkPayoutDetails$Outbound | undefined;
|
|
156
|
+
customAmountPayment?:
|
|
157
|
+
| PaymentLinkCustomAmountPaymentDetails$Outbound
|
|
158
|
+
| undefined;
|
|
143
159
|
lineItems?: CreatePaymentLinkLineItems$Outbound | undefined;
|
|
144
160
|
amountDetails?: CreatePaymentLinkAmountDetails$Outbound | undefined;
|
|
145
161
|
};
|
|
@@ -159,6 +175,8 @@ export const CreatePaymentLink$outboundSchema: z.ZodType<
|
|
|
159
175
|
customer: PaymentLinkCustomerOptions$outboundSchema.optional(),
|
|
160
176
|
payment: PaymentLinkPaymentDetails$outboundSchema.optional(),
|
|
161
177
|
payout: PaymentLinkPayoutDetails$outboundSchema.optional(),
|
|
178
|
+
customAmountPayment: PaymentLinkCustomAmountPaymentDetails$outboundSchema
|
|
179
|
+
.optional(),
|
|
162
180
|
lineItems: CreatePaymentLinkLineItems$outboundSchema.optional(),
|
|
163
181
|
amountDetails: CreatePaymentLinkAmountDetails$outboundSchema.optional(),
|
|
164
182
|
});
|
|
@@ -18,6 +18,10 @@ export type CreateTransferDestinationCard = {
|
|
|
18
18
|
* An optional override of the default card statement descriptor for a transfer. Accounts must be enabled by Moov to set this field.
|
|
19
19
|
*/
|
|
20
20
|
dynamicDescriptor?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* The scheduled date and time for the transfer to be delivered. This field is only valid for push-to-card transfers. Must be between 24 and 48 hours in the future.
|
|
23
|
+
*/
|
|
24
|
+
scheduledDeliveryOn?: Date | undefined;
|
|
21
25
|
/**
|
|
22
26
|
* An optional field to specify the type of card payout, used to route the transfer with the appropriate business application identifier (BAI).
|
|
23
27
|
*/
|
|
@@ -31,11 +35,13 @@ export const CreateTransferDestinationCard$inboundSchema: z.ZodType<
|
|
|
31
35
|
unknown
|
|
32
36
|
> = z.object({
|
|
33
37
|
dynamicDescriptor: types.optional(types.string()),
|
|
38
|
+
scheduledDeliveryOn: types.optional(types.date()),
|
|
34
39
|
payoutType: types.optional(CardPayoutType$inboundSchema),
|
|
35
40
|
});
|
|
36
41
|
/** @internal */
|
|
37
42
|
export type CreateTransferDestinationCard$Outbound = {
|
|
38
43
|
dynamicDescriptor?: string | undefined;
|
|
44
|
+
scheduledDeliveryOn?: string | undefined;
|
|
39
45
|
payoutType?: string | undefined;
|
|
40
46
|
};
|
|
41
47
|
|
|
@@ -46,6 +52,7 @@ export const CreateTransferDestinationCard$outboundSchema: z.ZodType<
|
|
|
46
52
|
CreateTransferDestinationCard
|
|
47
53
|
> = z.object({
|
|
48
54
|
dynamicDescriptor: z.string().optional(),
|
|
55
|
+
scheduledDeliveryOn: z.date().transform(v => v.toISOString()).optional(),
|
|
49
56
|
payoutType: CardPayoutType$outboundSchema.optional(),
|
|
50
57
|
});
|
|
51
58
|
|
|
@@ -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 { 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
|
+
ACHPaymentDetailsError,
|
|
12
|
+
ACHPaymentDetailsError$inboundSchema,
|
|
13
|
+
ACHPaymentDetailsError$Outbound,
|
|
14
|
+
ACHPaymentDetailsError$outboundSchema,
|
|
15
|
+
} from "./achpaymentdetailserror.js";
|
|
16
|
+
import {
|
|
17
|
+
CardPaymentDetailsError,
|
|
18
|
+
CardPaymentDetailsError$inboundSchema,
|
|
19
|
+
CardPaymentDetailsError$Outbound,
|
|
20
|
+
CardPaymentDetailsError$outboundSchema,
|
|
21
|
+
} from "./cardpaymentdetailserror.js";
|
|
22
|
+
|
|
23
|
+
export type CustomAmountPaymentDetailsError = {
|
|
24
|
+
allowedMethods?: string | undefined;
|
|
25
|
+
cardDetails?: CardPaymentDetailsError | undefined;
|
|
26
|
+
achDetails?: ACHPaymentDetailsError | undefined;
|
|
27
|
+
metadata?: string | undefined;
|
|
28
|
+
amountRange?: string | undefined;
|
|
29
|
+
suggestedAmounts?: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const CustomAmountPaymentDetailsError$inboundSchema: z.ZodType<
|
|
34
|
+
CustomAmountPaymentDetailsError,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
unknown
|
|
37
|
+
> = z.object({
|
|
38
|
+
allowedMethods: types.optional(types.string()),
|
|
39
|
+
cardDetails: types.optional(CardPaymentDetailsError$inboundSchema),
|
|
40
|
+
achDetails: types.optional(ACHPaymentDetailsError$inboundSchema),
|
|
41
|
+
metadata: types.optional(types.string()),
|
|
42
|
+
amountRange: types.optional(types.string()),
|
|
43
|
+
suggestedAmounts: types.optional(types.string()),
|
|
44
|
+
});
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type CustomAmountPaymentDetailsError$Outbound = {
|
|
47
|
+
allowedMethods?: string | undefined;
|
|
48
|
+
cardDetails?: CardPaymentDetailsError$Outbound | undefined;
|
|
49
|
+
achDetails?: ACHPaymentDetailsError$Outbound | undefined;
|
|
50
|
+
metadata?: string | undefined;
|
|
51
|
+
amountRange?: string | undefined;
|
|
52
|
+
suggestedAmounts?: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const CustomAmountPaymentDetailsError$outboundSchema: z.ZodType<
|
|
57
|
+
CustomAmountPaymentDetailsError$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
CustomAmountPaymentDetailsError
|
|
60
|
+
> = z.object({
|
|
61
|
+
allowedMethods: z.string().optional(),
|
|
62
|
+
cardDetails: CardPaymentDetailsError$outboundSchema.optional(),
|
|
63
|
+
achDetails: ACHPaymentDetailsError$outboundSchema.optional(),
|
|
64
|
+
metadata: z.string().optional(),
|
|
65
|
+
amountRange: z.string().optional(),
|
|
66
|
+
suggestedAmounts: z.string().optional(),
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
export function customAmountPaymentDetailsErrorToJSON(
|
|
70
|
+
customAmountPaymentDetailsError: CustomAmountPaymentDetailsError,
|
|
71
|
+
): string {
|
|
72
|
+
return JSON.stringify(
|
|
73
|
+
CustomAmountPaymentDetailsError$outboundSchema.parse(
|
|
74
|
+
customAmountPaymentDetailsError,
|
|
75
|
+
),
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
export function customAmountPaymentDetailsErrorFromJSON(
|
|
79
|
+
jsonString: string,
|
|
80
|
+
): SafeParseResult<CustomAmountPaymentDetailsError, SDKValidationError> {
|
|
81
|
+
return safeParse(
|
|
82
|
+
jsonString,
|
|
83
|
+
(x) => CustomAmountPaymentDetailsError$inboundSchema.parse(JSON.parse(x)),
|
|
84
|
+
`Failed to parse 'CustomAmountPaymentDetailsError' from JSON`,
|
|
85
|
+
);
|
|
86
|
+
}
|
|
@@ -8,11 +8,11 @@ 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
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
11
|
+
Address,
|
|
12
|
+
Address$inboundSchema,
|
|
13
|
+
Address$Outbound,
|
|
14
|
+
Address$outboundSchema,
|
|
15
|
+
} from "./address.js";
|
|
16
16
|
import {
|
|
17
17
|
CardBrand,
|
|
18
18
|
CardBrand$inboundSchema,
|
|
@@ -56,17 +56,25 @@ export type FullIssuedCard = {
|
|
|
56
56
|
*/
|
|
57
57
|
expiration: CardExpiration;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Unique identifier for the wallet funding the card.
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
fundingWalletID: string;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Identifier for the account of the card's authorized user.
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
authorizedUserAccountID?: string | undefined;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* An optional descriptive name for the card.
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
nickname?: string | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
|
|
72
|
+
*/
|
|
73
|
+
metadata?: { [k: string]: string } | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Billing address associated with the card.
|
|
76
|
+
*/
|
|
77
|
+
billingAddress?: Address | undefined;
|
|
70
78
|
/**
|
|
71
79
|
* The `state` represents the operational status of an issued card. A card can only approve incoming authorizations if it is in an active state.
|
|
72
80
|
*
|
|
@@ -84,6 +92,7 @@ export type FullIssuedCard = {
|
|
|
84
92
|
formFactor: IssuedCardFormFactor;
|
|
85
93
|
controls?: IssuingControls | undefined;
|
|
86
94
|
createdOn: Date;
|
|
95
|
+
updatedOn: Date;
|
|
87
96
|
/**
|
|
88
97
|
* The issued card's Primary Account Number (PAN)
|
|
89
98
|
*/
|
|
@@ -104,13 +113,16 @@ export const FullIssuedCard$inboundSchema: z.ZodType<
|
|
|
104
113
|
brand: CardBrand$inboundSchema,
|
|
105
114
|
lastFourCardNumber: types.string(),
|
|
106
115
|
expiration: CardExpiration$inboundSchema,
|
|
107
|
-
authorizedUser: AuthorizedUser$inboundSchema,
|
|
108
|
-
memo: types.optional(types.string()),
|
|
109
116
|
fundingWalletID: types.string(),
|
|
117
|
+
authorizedUserAccountID: types.optional(types.string()),
|
|
118
|
+
nickname: types.optional(types.string()),
|
|
119
|
+
metadata: types.optional(z.record(types.string())),
|
|
120
|
+
billingAddress: types.optional(Address$inboundSchema),
|
|
110
121
|
state: IssuedCardState$inboundSchema,
|
|
111
122
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
112
123
|
controls: types.optional(IssuingControls$inboundSchema),
|
|
113
124
|
createdOn: types.date(),
|
|
125
|
+
updatedOn: types.date(),
|
|
114
126
|
pan: types.string(),
|
|
115
127
|
cvv: types.string(),
|
|
116
128
|
});
|
|
@@ -120,13 +132,16 @@ export type FullIssuedCard$Outbound = {
|
|
|
120
132
|
brand: string;
|
|
121
133
|
lastFourCardNumber: string;
|
|
122
134
|
expiration: CardExpiration$Outbound;
|
|
123
|
-
authorizedUser: AuthorizedUser$Outbound;
|
|
124
|
-
memo?: string | undefined;
|
|
125
135
|
fundingWalletID: string;
|
|
136
|
+
authorizedUserAccountID?: string | undefined;
|
|
137
|
+
nickname?: string | undefined;
|
|
138
|
+
metadata?: { [k: string]: string } | undefined;
|
|
139
|
+
billingAddress?: Address$Outbound | undefined;
|
|
126
140
|
state: string;
|
|
127
141
|
formFactor: string;
|
|
128
142
|
controls?: IssuingControls$Outbound | undefined;
|
|
129
143
|
createdOn: string;
|
|
144
|
+
updatedOn: string;
|
|
130
145
|
pan: string;
|
|
131
146
|
cvv: string;
|
|
132
147
|
};
|
|
@@ -141,13 +156,16 @@ export const FullIssuedCard$outboundSchema: z.ZodType<
|
|
|
141
156
|
brand: CardBrand$outboundSchema,
|
|
142
157
|
lastFourCardNumber: z.string(),
|
|
143
158
|
expiration: CardExpiration$outboundSchema,
|
|
144
|
-
authorizedUser: AuthorizedUser$outboundSchema,
|
|
145
|
-
memo: z.string().optional(),
|
|
146
159
|
fundingWalletID: z.string(),
|
|
160
|
+
authorizedUserAccountID: z.string().optional(),
|
|
161
|
+
nickname: z.string().optional(),
|
|
162
|
+
metadata: z.record(z.string()).optional(),
|
|
163
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
147
164
|
state: IssuedCardState$outboundSchema,
|
|
148
165
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
149
166
|
controls: IssuingControls$outboundSchema.optional(),
|
|
150
167
|
createdOn: z.date().transform(v => v.toISOString()),
|
|
168
|
+
updatedOn: z.date().transform(v => v.toISOString()),
|
|
151
169
|
pan: z.string(),
|
|
152
170
|
cvv: z.string(),
|
|
153
171
|
});
|