@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
|
@@ -41,6 +41,9 @@ export * from "./amountdecimalrange.js";
|
|
|
41
41
|
export * from "./amountdecimalrangeupdate.js";
|
|
42
42
|
export * from "./amountdecimalupdate.js";
|
|
43
43
|
export * from "./amountdecimalvalidationerror.js";
|
|
44
|
+
export * from "./amountdetails.js";
|
|
45
|
+
export * from "./amountdetailsupdate.js";
|
|
46
|
+
export * from "./amountdetailsvalidationerror.js";
|
|
44
47
|
export * from "./amountupdate.js";
|
|
45
48
|
export * from "./amountvalidationerror.js";
|
|
46
49
|
export * from "./applebillingcontact.js";
|
|
@@ -54,7 +57,6 @@ export * from "./assignproductimage.js";
|
|
|
54
57
|
export * from "./assignproductimagevalidationerror.js";
|
|
55
58
|
export * from "./asynccreatedrefund.js";
|
|
56
59
|
export * from "./asynctransfer.js";
|
|
57
|
-
export * from "./authorizeduser.js";
|
|
58
60
|
export * from "./authtoken.js";
|
|
59
61
|
export * from "./authtokenrequest.js";
|
|
60
62
|
export * from "./bankaccount.js";
|
|
@@ -145,9 +147,6 @@ export * from "./createaccount.js";
|
|
|
145
147
|
export * from "./createaccountsettings.js";
|
|
146
148
|
export * from "./createaccounttype.js";
|
|
147
149
|
export * from "./createapplepaysession.js";
|
|
148
|
-
export * from "./createauthorizeduser.js";
|
|
149
|
-
export * from "./createauthorizedusererror.js";
|
|
150
|
-
export * from "./createauthorizeduserupdate.js";
|
|
151
150
|
export * from "./createbusinesserror.js";
|
|
152
151
|
export * from "./createbusinessprofile.js";
|
|
153
152
|
export * from "./createdtransfer.js";
|
|
@@ -213,6 +212,7 @@ export * from "./createtransfersourceach.js";
|
|
|
213
212
|
export * from "./createtransfersourcecard.js";
|
|
214
213
|
export * from "./createwallet.js";
|
|
215
214
|
export * from "./createwebhook.js";
|
|
215
|
+
export * from "./customamountpaymentdetailserror.js";
|
|
216
216
|
export * from "./customersupport.js";
|
|
217
217
|
export * from "./customersupporterror.js";
|
|
218
218
|
export * from "./debitholdperiod.js";
|
|
@@ -378,6 +378,8 @@ export * from "./patchwallet.js";
|
|
|
378
378
|
export * from "./paymentdetailserror.js";
|
|
379
379
|
export * from "./paymentlink.js";
|
|
380
380
|
export * from "./paymentlinkamountdetails.js";
|
|
381
|
+
export * from "./paymentlinkcustomamountpaymentdetails.js";
|
|
382
|
+
export * from "./paymentlinkcustomamountpaymentdetailsupdate.js";
|
|
381
383
|
export * from "./paymentlinkcustomeroptions.js";
|
|
382
384
|
export * from "./paymentlinkdisplayoptions.js";
|
|
383
385
|
export * from "./paymentlinkdisplayoptionsupdate.js";
|
|
@@ -526,6 +528,7 @@ export * from "./transferachaddendarecord.js";
|
|
|
526
528
|
export * from "./transferamountdetails.js";
|
|
527
529
|
export * from "./transfercapture.js";
|
|
528
530
|
export * from "./transferconfig.js";
|
|
531
|
+
export * from "./transfercontrols.js";
|
|
529
532
|
export * from "./transferdestination.js";
|
|
530
533
|
export * from "./transferentrymode.js";
|
|
531
534
|
export * from "./transferfailurereason.js";
|
|
@@ -586,6 +589,7 @@ export * from "./webhookdata.js";
|
|
|
586
589
|
export * from "./webhookdataaccountcreated.js";
|
|
587
590
|
export * from "./webhookdataaccountdisconnected.js";
|
|
588
591
|
export * from "./webhookdataaccountupdated.js";
|
|
592
|
+
export * from "./webhookdataauthorizationexpiring.js";
|
|
589
593
|
export * from "./webhookdatabalanceupdated.js";
|
|
590
594
|
export * from "./webhookdatabankaccountcreated.js";
|
|
591
595
|
export * from "./webhookdatabankaccountdeleted.js";
|
|
@@ -13,6 +13,12 @@ import {
|
|
|
13
13
|
AmountDecimal$Outbound,
|
|
14
14
|
AmountDecimal$outboundSchema,
|
|
15
15
|
} from "./amountdecimal.js";
|
|
16
|
+
import {
|
|
17
|
+
AmountDetails,
|
|
18
|
+
AmountDetails$inboundSchema,
|
|
19
|
+
AmountDetails$Outbound,
|
|
20
|
+
AmountDetails$outboundSchema,
|
|
21
|
+
} from "./amountdetails.js";
|
|
16
22
|
import {
|
|
17
23
|
InvoiceLineItems,
|
|
18
24
|
InvoiceLineItems$inboundSchema,
|
|
@@ -60,9 +66,9 @@ export type Invoice = {
|
|
|
60
66
|
*/
|
|
61
67
|
lineItems: InvoiceLineItems;
|
|
62
68
|
subtotalAmount: AmountDecimal;
|
|
63
|
-
|
|
69
|
+
amountDetails?: AmountDetails | undefined;
|
|
64
70
|
/**
|
|
65
|
-
* Total amount of the invoice,
|
|
71
|
+
* Total amount of the invoice, including subtotal, tax, and surcharge amounts.
|
|
66
72
|
*/
|
|
67
73
|
totalAmount: AmountDecimal;
|
|
68
74
|
/**
|
|
@@ -108,7 +114,7 @@ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
|
|
|
108
114
|
status: InvoiceStatus$inboundSchema,
|
|
109
115
|
lineItems: InvoiceLineItems$inboundSchema,
|
|
110
116
|
subtotalAmount: AmountDecimal$inboundSchema,
|
|
111
|
-
|
|
117
|
+
amountDetails: types.optional(AmountDetails$inboundSchema),
|
|
112
118
|
totalAmount: AmountDecimal$inboundSchema,
|
|
113
119
|
pendingAmount: AmountDecimal$inboundSchema,
|
|
114
120
|
paidAmount: AmountDecimal$inboundSchema,
|
|
@@ -136,7 +142,7 @@ export type Invoice$Outbound = {
|
|
|
136
142
|
status: string;
|
|
137
143
|
lineItems: InvoiceLineItems$Outbound;
|
|
138
144
|
subtotalAmount: AmountDecimal$Outbound;
|
|
139
|
-
|
|
145
|
+
amountDetails?: AmountDetails$Outbound | undefined;
|
|
140
146
|
totalAmount: AmountDecimal$Outbound;
|
|
141
147
|
pendingAmount: AmountDecimal$Outbound;
|
|
142
148
|
paidAmount: AmountDecimal$Outbound;
|
|
@@ -169,7 +175,7 @@ export const Invoice$outboundSchema: z.ZodType<
|
|
|
169
175
|
status: InvoiceStatus$outboundSchema,
|
|
170
176
|
lineItems: InvoiceLineItems$outboundSchema,
|
|
171
177
|
subtotalAmount: AmountDecimal$outboundSchema,
|
|
172
|
-
|
|
178
|
+
amountDetails: AmountDetails$outboundSchema.optional(),
|
|
173
179
|
totalAmount: AmountDecimal$outboundSchema,
|
|
174
180
|
pendingAmount: AmountDecimal$outboundSchema,
|
|
175
181
|
paidAmount: AmountDecimal$outboundSchema,
|
|
@@ -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,
|
|
@@ -53,17 +53,25 @@ export type IssuedCard = {
|
|
|
53
53
|
*/
|
|
54
54
|
expiration: CardExpiration;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Unique identifier for the wallet funding the card.
|
|
57
57
|
*/
|
|
58
|
-
|
|
58
|
+
fundingWalletID: string;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* Identifier for the account of the card's authorized user.
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
authorizedUserAccountID?: string | undefined;
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
* An optional descriptive name for the card.
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
nickname?: string | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
|
|
69
|
+
*/
|
|
70
|
+
metadata?: { [k: string]: string } | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Billing address associated with the card.
|
|
73
|
+
*/
|
|
74
|
+
billingAddress?: Address | undefined;
|
|
67
75
|
/**
|
|
68
76
|
* The `state` represents the operational status of an issued card. A card can only approve incoming authorizations if it is in an active state.
|
|
69
77
|
*
|
|
@@ -81,6 +89,7 @@ export type IssuedCard = {
|
|
|
81
89
|
formFactor: IssuedCardFormFactor;
|
|
82
90
|
controls?: IssuingControls | undefined;
|
|
83
91
|
createdOn: Date;
|
|
92
|
+
updatedOn: Date;
|
|
84
93
|
};
|
|
85
94
|
|
|
86
95
|
/** @internal */
|
|
@@ -93,13 +102,16 @@ export const IssuedCard$inboundSchema: z.ZodType<
|
|
|
93
102
|
brand: CardBrand$inboundSchema,
|
|
94
103
|
lastFourCardNumber: types.string(),
|
|
95
104
|
expiration: CardExpiration$inboundSchema,
|
|
96
|
-
authorizedUser: AuthorizedUser$inboundSchema,
|
|
97
|
-
memo: types.optional(types.string()),
|
|
98
105
|
fundingWalletID: types.string(),
|
|
106
|
+
authorizedUserAccountID: types.optional(types.string()),
|
|
107
|
+
nickname: types.optional(types.string()),
|
|
108
|
+
metadata: types.optional(z.record(types.string())),
|
|
109
|
+
billingAddress: types.optional(Address$inboundSchema),
|
|
99
110
|
state: IssuedCardState$inboundSchema,
|
|
100
111
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
101
112
|
controls: types.optional(IssuingControls$inboundSchema),
|
|
102
113
|
createdOn: types.date(),
|
|
114
|
+
updatedOn: types.date(),
|
|
103
115
|
});
|
|
104
116
|
/** @internal */
|
|
105
117
|
export type IssuedCard$Outbound = {
|
|
@@ -107,13 +119,16 @@ export type IssuedCard$Outbound = {
|
|
|
107
119
|
brand: string;
|
|
108
120
|
lastFourCardNumber: string;
|
|
109
121
|
expiration: CardExpiration$Outbound;
|
|
110
|
-
authorizedUser: AuthorizedUser$Outbound;
|
|
111
|
-
memo?: string | undefined;
|
|
112
122
|
fundingWalletID: string;
|
|
123
|
+
authorizedUserAccountID?: string | undefined;
|
|
124
|
+
nickname?: string | undefined;
|
|
125
|
+
metadata?: { [k: string]: string } | undefined;
|
|
126
|
+
billingAddress?: Address$Outbound | undefined;
|
|
113
127
|
state: string;
|
|
114
128
|
formFactor: string;
|
|
115
129
|
controls?: IssuingControls$Outbound | undefined;
|
|
116
130
|
createdOn: string;
|
|
131
|
+
updatedOn: string;
|
|
117
132
|
};
|
|
118
133
|
|
|
119
134
|
/** @internal */
|
|
@@ -126,13 +141,16 @@ export const IssuedCard$outboundSchema: z.ZodType<
|
|
|
126
141
|
brand: CardBrand$outboundSchema,
|
|
127
142
|
lastFourCardNumber: z.string(),
|
|
128
143
|
expiration: CardExpiration$outboundSchema,
|
|
129
|
-
authorizedUser: AuthorizedUser$outboundSchema,
|
|
130
|
-
memo: z.string().optional(),
|
|
131
144
|
fundingWalletID: z.string(),
|
|
145
|
+
authorizedUserAccountID: z.string().optional(),
|
|
146
|
+
nickname: z.string().optional(),
|
|
147
|
+
metadata: z.record(z.string()).optional(),
|
|
148
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
132
149
|
state: IssuedCardState$outboundSchema,
|
|
133
150
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
134
151
|
controls: IssuingControls$outboundSchema.optional(),
|
|
135
152
|
createdOn: z.date().transform(v => v.toISOString()),
|
|
153
|
+
updatedOn: z.date().transform(v => v.toISOString()),
|
|
136
154
|
});
|
|
137
155
|
|
|
138
156
|
export function issuedCardToJSON(issuedCard: IssuedCard): string {
|
|
@@ -62,7 +62,7 @@ export type OnboardingInvite = {
|
|
|
62
62
|
*/
|
|
63
63
|
grantScopes?: Array<ApplicationScope> | undefined;
|
|
64
64
|
/**
|
|
65
|
-
* List of [capabilities](https://docs.moov.io/guides/accounts/capabilities/) you intend to request for this
|
|
65
|
+
* List of [capabilities](https://docs.moov.io/guides/accounts/capabilities/reference/) you intend to request for this
|
|
66
66
|
*
|
|
67
67
|
* @remarks
|
|
68
68
|
* account. These values are used to determine what information to collect from the user during onboarding.
|
|
@@ -51,7 +51,7 @@ export type OnboardingInviteRequest = {
|
|
|
51
51
|
*/
|
|
52
52
|
grantScopes?: Array<ApplicationScope> | undefined;
|
|
53
53
|
/**
|
|
54
|
-
* List of [capabilities](https://docs.moov.io/guides/accounts/capabilities/) you intend to request for this
|
|
54
|
+
* List of [capabilities](https://docs.moov.io/guides/accounts/capabilities/reference/) you intend to request for this
|
|
55
55
|
*
|
|
56
56
|
* @remarks
|
|
57
57
|
* account. These values are used to determine what information to collect from the user during onboarding.
|
|
@@ -20,6 +20,12 @@ import {
|
|
|
20
20
|
PaymentLinkAmountDetails$Outbound,
|
|
21
21
|
PaymentLinkAmountDetails$outboundSchema,
|
|
22
22
|
} from "./paymentlinkamountdetails.js";
|
|
23
|
+
import {
|
|
24
|
+
PaymentLinkCustomAmountPaymentDetails,
|
|
25
|
+
PaymentLinkCustomAmountPaymentDetails$inboundSchema,
|
|
26
|
+
PaymentLinkCustomAmountPaymentDetails$Outbound,
|
|
27
|
+
PaymentLinkCustomAmountPaymentDetails$outboundSchema,
|
|
28
|
+
} from "./paymentlinkcustomamountpaymentdetails.js";
|
|
23
29
|
import {
|
|
24
30
|
PaymentLinkCustomerOptions,
|
|
25
31
|
PaymentLinkCustomerOptions$inboundSchema,
|
|
@@ -99,8 +105,8 @@ export type PaymentLink = {
|
|
|
99
105
|
*
|
|
100
106
|
* In API versions before `2026.07.00`, this was a required field.
|
|
101
107
|
*
|
|
102
|
-
* In API version `2026.07.00` and beyond, this field is
|
|
103
|
-
* for `
|
|
108
|
+
* In API version `2026.07.00` and beyond, this field is present for `payment` and `payout` links and omitted
|
|
109
|
+
* for `customAmountPayment` links, where the payor chooses the amount.
|
|
104
110
|
*/
|
|
105
111
|
amount?: Amount | undefined;
|
|
106
112
|
/**
|
|
@@ -133,6 +139,15 @@ export type PaymentLink = {
|
|
|
133
139
|
*/
|
|
134
140
|
payment?: PaymentLinkPaymentDetails | undefined;
|
|
135
141
|
payout?: PaymentLinkPayoutDetails | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* Options for custom amount payment links.
|
|
144
|
+
*
|
|
145
|
+
* @remarks
|
|
146
|
+
*
|
|
147
|
+
* A custom amount payment link shares all the options of a `payment` link, but the payor chooses how much to
|
|
148
|
+
* pay rather than the merchant fixing the amount. The amount may optionally be constrained to a range.
|
|
149
|
+
*/
|
|
150
|
+
customAmountPayment?: PaymentLinkCustomAmountPaymentDetails | undefined;
|
|
136
151
|
/**
|
|
137
152
|
* An optional collection of line items for a payment link.
|
|
138
153
|
*
|
|
@@ -170,6 +185,9 @@ export const PaymentLink$inboundSchema: z.ZodType<
|
|
|
170
185
|
customer: PaymentLinkCustomerOptions$inboundSchema,
|
|
171
186
|
payment: types.optional(PaymentLinkPaymentDetails$inboundSchema),
|
|
172
187
|
payout: types.optional(PaymentLinkPayoutDetails$inboundSchema),
|
|
188
|
+
customAmountPayment: types.optional(
|
|
189
|
+
PaymentLinkCustomAmountPaymentDetails$inboundSchema,
|
|
190
|
+
),
|
|
173
191
|
lineItems: types.optional(PaymentLinkLineItems$inboundSchema),
|
|
174
192
|
createdOn: types.date(),
|
|
175
193
|
updatedOn: types.date(),
|
|
@@ -196,6 +214,9 @@ export type PaymentLink$Outbound = {
|
|
|
196
214
|
customer: PaymentLinkCustomerOptions$Outbound;
|
|
197
215
|
payment?: PaymentLinkPaymentDetails$Outbound | undefined;
|
|
198
216
|
payout?: PaymentLinkPayoutDetails$Outbound | undefined;
|
|
217
|
+
customAmountPayment?:
|
|
218
|
+
| PaymentLinkCustomAmountPaymentDetails$Outbound
|
|
219
|
+
| undefined;
|
|
199
220
|
lineItems?: PaymentLinkLineItems$Outbound | undefined;
|
|
200
221
|
createdOn: string;
|
|
201
222
|
updatedOn: string;
|
|
@@ -227,6 +248,8 @@ export const PaymentLink$outboundSchema: z.ZodType<
|
|
|
227
248
|
customer: PaymentLinkCustomerOptions$outboundSchema,
|
|
228
249
|
payment: PaymentLinkPaymentDetails$outboundSchema.optional(),
|
|
229
250
|
payout: PaymentLinkPayoutDetails$outboundSchema.optional(),
|
|
251
|
+
customAmountPayment: PaymentLinkCustomAmountPaymentDetails$outboundSchema
|
|
252
|
+
.optional(),
|
|
230
253
|
lineItems: PaymentLinkLineItems$outboundSchema.optional(),
|
|
231
254
|
createdOn: z.date().transform(v => v.toISOString()),
|
|
232
255
|
updatedOn: z.date().transform(v => v.toISOString()),
|
|
@@ -0,0 +1,138 @@
|
|
|
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
|
+
ACHPaymentDetails,
|
|
12
|
+
ACHPaymentDetails$inboundSchema,
|
|
13
|
+
ACHPaymentDetails$Outbound,
|
|
14
|
+
ACHPaymentDetails$outboundSchema,
|
|
15
|
+
} from "./achpaymentdetails.js";
|
|
16
|
+
import {
|
|
17
|
+
AmountDecimal,
|
|
18
|
+
AmountDecimal$inboundSchema,
|
|
19
|
+
AmountDecimal$Outbound,
|
|
20
|
+
AmountDecimal$outboundSchema,
|
|
21
|
+
} from "./amountdecimal.js";
|
|
22
|
+
import {
|
|
23
|
+
AmountDecimalRange,
|
|
24
|
+
AmountDecimalRange$inboundSchema,
|
|
25
|
+
AmountDecimalRange$Outbound,
|
|
26
|
+
AmountDecimalRange$outboundSchema,
|
|
27
|
+
} from "./amountdecimalrange.js";
|
|
28
|
+
import {
|
|
29
|
+
CardPaymentDetails,
|
|
30
|
+
CardPaymentDetails$inboundSchema,
|
|
31
|
+
CardPaymentDetails$Outbound,
|
|
32
|
+
CardPaymentDetails$outboundSchema,
|
|
33
|
+
} from "./cardpaymentdetails.js";
|
|
34
|
+
import {
|
|
35
|
+
CollectionPaymentMethodType,
|
|
36
|
+
CollectionPaymentMethodType$inboundSchema,
|
|
37
|
+
CollectionPaymentMethodType$outboundSchema,
|
|
38
|
+
} from "./collectionpaymentmethodtype.js";
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Options for custom amount payment links.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
*
|
|
45
|
+
* A custom amount payment link shares all the options of a `payment` link, but the payor chooses how much to
|
|
46
|
+
* pay rather than the merchant fixing the amount. The amount may optionally be constrained to a range.
|
|
47
|
+
*/
|
|
48
|
+
export type PaymentLinkCustomAmountPaymentDetails = {
|
|
49
|
+
/**
|
|
50
|
+
* A list of payment methods that should be supported for this payment link.
|
|
51
|
+
*/
|
|
52
|
+
allowedMethods: Array<CollectionPaymentMethodType>;
|
|
53
|
+
/**
|
|
54
|
+
* Options for payment links used to collect a card payment.
|
|
55
|
+
*/
|
|
56
|
+
cardDetails?: CardPaymentDetails | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Options for payment links used to collect an ACH payment.
|
|
59
|
+
*/
|
|
60
|
+
achDetails?: ACHPaymentDetails | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Optional free-form metadata for the transfer.
|
|
63
|
+
*/
|
|
64
|
+
metadata?: { [k: string]: string } | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* The minimum and maximum amounts the payor can specify.
|
|
67
|
+
*
|
|
68
|
+
* @remarks
|
|
69
|
+
*
|
|
70
|
+
* When omitted, the payor may enter any amount. Both bounds must use USD.
|
|
71
|
+
*/
|
|
72
|
+
amountRange?: AmountDecimalRange | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Optional preset amounts displayed to the payor.
|
|
75
|
+
*
|
|
76
|
+
* @remarks
|
|
77
|
+
*
|
|
78
|
+
* Each suggested amount must use USD and, when an `amountRange` is set, fall within it.
|
|
79
|
+
*/
|
|
80
|
+
suggestedAmounts?: Array<AmountDecimal> | undefined;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/** @internal */
|
|
84
|
+
export const PaymentLinkCustomAmountPaymentDetails$inboundSchema: z.ZodType<
|
|
85
|
+
PaymentLinkCustomAmountPaymentDetails,
|
|
86
|
+
z.ZodTypeDef,
|
|
87
|
+
unknown
|
|
88
|
+
> = z.object({
|
|
89
|
+
allowedMethods: z.array(CollectionPaymentMethodType$inboundSchema),
|
|
90
|
+
cardDetails: types.optional(CardPaymentDetails$inboundSchema),
|
|
91
|
+
achDetails: types.optional(ACHPaymentDetails$inboundSchema),
|
|
92
|
+
metadata: types.optional(z.record(types.string())),
|
|
93
|
+
amountRange: types.optional(AmountDecimalRange$inboundSchema),
|
|
94
|
+
suggestedAmounts: types.optional(z.array(AmountDecimal$inboundSchema)),
|
|
95
|
+
});
|
|
96
|
+
/** @internal */
|
|
97
|
+
export type PaymentLinkCustomAmountPaymentDetails$Outbound = {
|
|
98
|
+
allowedMethods: Array<string>;
|
|
99
|
+
cardDetails?: CardPaymentDetails$Outbound | undefined;
|
|
100
|
+
achDetails?: ACHPaymentDetails$Outbound | undefined;
|
|
101
|
+
metadata?: { [k: string]: string } | undefined;
|
|
102
|
+
amountRange?: AmountDecimalRange$Outbound | undefined;
|
|
103
|
+
suggestedAmounts?: Array<AmountDecimal$Outbound> | undefined;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const PaymentLinkCustomAmountPaymentDetails$outboundSchema: z.ZodType<
|
|
108
|
+
PaymentLinkCustomAmountPaymentDetails$Outbound,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
PaymentLinkCustomAmountPaymentDetails
|
|
111
|
+
> = z.object({
|
|
112
|
+
allowedMethods: z.array(CollectionPaymentMethodType$outboundSchema),
|
|
113
|
+
cardDetails: CardPaymentDetails$outboundSchema.optional(),
|
|
114
|
+
achDetails: ACHPaymentDetails$outboundSchema.optional(),
|
|
115
|
+
metadata: z.record(z.string()).optional(),
|
|
116
|
+
amountRange: AmountDecimalRange$outboundSchema.optional(),
|
|
117
|
+
suggestedAmounts: z.array(AmountDecimal$outboundSchema).optional(),
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
export function paymentLinkCustomAmountPaymentDetailsToJSON(
|
|
121
|
+
paymentLinkCustomAmountPaymentDetails: PaymentLinkCustomAmountPaymentDetails,
|
|
122
|
+
): string {
|
|
123
|
+
return JSON.stringify(
|
|
124
|
+
PaymentLinkCustomAmountPaymentDetails$outboundSchema.parse(
|
|
125
|
+
paymentLinkCustomAmountPaymentDetails,
|
|
126
|
+
),
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
export function paymentLinkCustomAmountPaymentDetailsFromJSON(
|
|
130
|
+
jsonString: string,
|
|
131
|
+
): SafeParseResult<PaymentLinkCustomAmountPaymentDetails, SDKValidationError> {
|
|
132
|
+
return safeParse(
|
|
133
|
+
jsonString,
|
|
134
|
+
(x) =>
|
|
135
|
+
PaymentLinkCustomAmountPaymentDetails$inboundSchema.parse(JSON.parse(x)),
|
|
136
|
+
`Failed to parse 'PaymentLinkCustomAmountPaymentDetails' from JSON`,
|
|
137
|
+
);
|
|
138
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
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
|
+
ACHPaymentDetails,
|
|
12
|
+
ACHPaymentDetails$inboundSchema,
|
|
13
|
+
ACHPaymentDetails$Outbound,
|
|
14
|
+
ACHPaymentDetails$outboundSchema,
|
|
15
|
+
} from "./achpaymentdetails.js";
|
|
16
|
+
import {
|
|
17
|
+
AmountDecimal,
|
|
18
|
+
AmountDecimal$inboundSchema,
|
|
19
|
+
AmountDecimal$Outbound,
|
|
20
|
+
AmountDecimal$outboundSchema,
|
|
21
|
+
} from "./amountdecimal.js";
|
|
22
|
+
import {
|
|
23
|
+
AmountDecimalRangeUpdate,
|
|
24
|
+
AmountDecimalRangeUpdate$inboundSchema,
|
|
25
|
+
AmountDecimalRangeUpdate$Outbound,
|
|
26
|
+
AmountDecimalRangeUpdate$outboundSchema,
|
|
27
|
+
} from "./amountdecimalrangeupdate.js";
|
|
28
|
+
import {
|
|
29
|
+
CardPaymentDetails,
|
|
30
|
+
CardPaymentDetails$inboundSchema,
|
|
31
|
+
CardPaymentDetails$Outbound,
|
|
32
|
+
CardPaymentDetails$outboundSchema,
|
|
33
|
+
} from "./cardpaymentdetails.js";
|
|
34
|
+
import {
|
|
35
|
+
CollectionPaymentMethodType,
|
|
36
|
+
CollectionPaymentMethodType$inboundSchema,
|
|
37
|
+
CollectionPaymentMethodType$outboundSchema,
|
|
38
|
+
} from "./collectionpaymentmethodtype.js";
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Options for custom amount payment links.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
*
|
|
45
|
+
* A custom amount payment link shares all the options of a `payment` link, but the payor chooses how much to
|
|
46
|
+
* pay rather than the merchant fixing the amount. The amount may optionally be constrained to a range.
|
|
47
|
+
*/
|
|
48
|
+
export type PaymentLinkCustomAmountPaymentDetailsUpdate = {
|
|
49
|
+
/**
|
|
50
|
+
* A list of payment methods that should be supported for this payment link.
|
|
51
|
+
*/
|
|
52
|
+
allowedMethods?: Array<CollectionPaymentMethodType> | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Options for payment links used to collect a card payment.
|
|
55
|
+
*/
|
|
56
|
+
cardDetails?: CardPaymentDetails | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Options for payment links used to collect an ACH payment.
|
|
59
|
+
*/
|
|
60
|
+
achDetails?: ACHPaymentDetails | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Optional free-form metadata for the transfer.
|
|
63
|
+
*/
|
|
64
|
+
metadata?: { [k: string]: string } | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* The minimum and maximum amounts the payor can specify.
|
|
67
|
+
*
|
|
68
|
+
* @remarks
|
|
69
|
+
*
|
|
70
|
+
* When omitted, the payor may enter any amount. Both bounds must use USD.
|
|
71
|
+
*/
|
|
72
|
+
amountRange?: AmountDecimalRangeUpdate | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Optional preset amounts displayed to the payor.
|
|
75
|
+
*
|
|
76
|
+
* @remarks
|
|
77
|
+
*
|
|
78
|
+
* Each suggested amount must use USD and, when an `amountRange` is set, fall within it.
|
|
79
|
+
*/
|
|
80
|
+
suggestedAmounts?: Array<AmountDecimal> | undefined;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/** @internal */
|
|
84
|
+
export const PaymentLinkCustomAmountPaymentDetailsUpdate$inboundSchema:
|
|
85
|
+
z.ZodType<
|
|
86
|
+
PaymentLinkCustomAmountPaymentDetailsUpdate,
|
|
87
|
+
z.ZodTypeDef,
|
|
88
|
+
unknown
|
|
89
|
+
> = z.object({
|
|
90
|
+
allowedMethods: types.optional(
|
|
91
|
+
z.array(CollectionPaymentMethodType$inboundSchema),
|
|
92
|
+
),
|
|
93
|
+
cardDetails: types.optional(CardPaymentDetails$inboundSchema),
|
|
94
|
+
achDetails: types.optional(ACHPaymentDetails$inboundSchema),
|
|
95
|
+
metadata: types.optional(z.record(types.string())),
|
|
96
|
+
amountRange: types.optional(AmountDecimalRangeUpdate$inboundSchema),
|
|
97
|
+
suggestedAmounts: types.optional(z.array(AmountDecimal$inboundSchema)),
|
|
98
|
+
});
|
|
99
|
+
/** @internal */
|
|
100
|
+
export type PaymentLinkCustomAmountPaymentDetailsUpdate$Outbound = {
|
|
101
|
+
allowedMethods?: Array<string> | undefined;
|
|
102
|
+
cardDetails?: CardPaymentDetails$Outbound | undefined;
|
|
103
|
+
achDetails?: ACHPaymentDetails$Outbound | undefined;
|
|
104
|
+
metadata?: { [k: string]: string } | undefined;
|
|
105
|
+
amountRange?: AmountDecimalRangeUpdate$Outbound | undefined;
|
|
106
|
+
suggestedAmounts?: Array<AmountDecimal$Outbound> | undefined;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/** @internal */
|
|
110
|
+
export const PaymentLinkCustomAmountPaymentDetailsUpdate$outboundSchema:
|
|
111
|
+
z.ZodType<
|
|
112
|
+
PaymentLinkCustomAmountPaymentDetailsUpdate$Outbound,
|
|
113
|
+
z.ZodTypeDef,
|
|
114
|
+
PaymentLinkCustomAmountPaymentDetailsUpdate
|
|
115
|
+
> = z.object({
|
|
116
|
+
allowedMethods: z.array(CollectionPaymentMethodType$outboundSchema)
|
|
117
|
+
.optional(),
|
|
118
|
+
cardDetails: CardPaymentDetails$outboundSchema.optional(),
|
|
119
|
+
achDetails: ACHPaymentDetails$outboundSchema.optional(),
|
|
120
|
+
metadata: z.record(z.string()).optional(),
|
|
121
|
+
amountRange: AmountDecimalRangeUpdate$outboundSchema.optional(),
|
|
122
|
+
suggestedAmounts: z.array(AmountDecimal$outboundSchema).optional(),
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
export function paymentLinkCustomAmountPaymentDetailsUpdateToJSON(
|
|
126
|
+
paymentLinkCustomAmountPaymentDetailsUpdate:
|
|
127
|
+
PaymentLinkCustomAmountPaymentDetailsUpdate,
|
|
128
|
+
): string {
|
|
129
|
+
return JSON.stringify(
|
|
130
|
+
PaymentLinkCustomAmountPaymentDetailsUpdate$outboundSchema.parse(
|
|
131
|
+
paymentLinkCustomAmountPaymentDetailsUpdate,
|
|
132
|
+
),
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
export function paymentLinkCustomAmountPaymentDetailsUpdateFromJSON(
|
|
136
|
+
jsonString: string,
|
|
137
|
+
): SafeParseResult<
|
|
138
|
+
PaymentLinkCustomAmountPaymentDetailsUpdate,
|
|
139
|
+
SDKValidationError
|
|
140
|
+
> {
|
|
141
|
+
return safeParse(
|
|
142
|
+
jsonString,
|
|
143
|
+
(x) =>
|
|
144
|
+
PaymentLinkCustomAmountPaymentDetailsUpdate$inboundSchema.parse(
|
|
145
|
+
JSON.parse(x),
|
|
146
|
+
),
|
|
147
|
+
`Failed to parse 'PaymentLinkCustomAmountPaymentDetailsUpdate' from JSON`,
|
|
148
|
+
);
|
|
149
|
+
}
|