@moovio/sdk 26.7.0-dev.2 → 26.7.0-dev.4
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 +892 -402
- package/bin/mcp-server.js.map +96 -86
- 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/{createauthorizedusererror.js → amountdetails.js} +15 -17
- 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/{createauthorizeduserupdate.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/asynccreatedrefund.d.ts +3 -0
- package/models/components/asynccreatedrefund.d.ts.map +1 -1
- package/models/components/asynccreatedrefund.js +3 -0
- package/models/components/asynccreatedrefund.js.map +1 -1
- package/models/components/capability.d.ts +7 -1
- package/models/components/capability.d.ts.map +1 -1
- package/models/components/capability.js.map +1 -1
- package/models/components/capabilityid.d.ts +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/cardacquiringrefund.d.ts +3 -0
- package/models/components/cardacquiringrefund.d.ts.map +1 -1
- package/models/components/cardacquiringrefund.js +3 -0
- package/models/components/cardacquiringrefund.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/createpaymentlinkamountdetails.d.ts +5 -0
- package/models/components/createpaymentlinkamountdetails.d.ts.map +1 -1
- package/models/components/createpaymentlinkamountdetails.js +2 -0
- package/models/components/createpaymentlinkamountdetails.js.map +1 -1
- package/models/components/createpaymentlinkamountdetailsvalidationerror.d.ts +2 -0
- package/models/components/createpaymentlinkamountdetailsvalidationerror.d.ts.map +1 -1
- package/models/components/createpaymentlinkamountdetailsvalidationerror.js +2 -0
- package/models/components/createpaymentlinkamountdetailsvalidationerror.js.map +1 -1
- package/models/components/createrefund.d.ts +6 -0
- package/models/components/createrefund.d.ts.map +1 -1
- package/models/components/createrefund.js +3 -0
- package/models/components/createrefund.js.map +1 -1
- package/models/components/createreversal.d.ts +6 -0
- package/models/components/createreversal.d.ts.map +1 -1
- package/models/components/createreversal.js +3 -0
- package/models/components/createreversal.js.map +1 -1
- package/models/components/createtransferamountdetails.d.ts +5 -0
- package/models/components/createtransferamountdetails.d.ts.map +1 -1
- package/models/components/createtransferamountdetails.js +2 -0
- package/models/components/createtransferamountdetails.js.map +1 -1
- package/models/components/createtransferamountdetailsvalidationerror.d.ts +2 -0
- package/models/components/createtransferamountdetailsvalidationerror.d.ts.map +1 -1
- package/models/components/createtransferamountdetailsvalidationerror.js +2 -0
- package/models/components/createtransferamountdetailsvalidationerror.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 +12 -4
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +12 -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/paymentlinkamountdetails.d.ts +5 -0
- package/models/components/paymentlinkamountdetails.d.ts.map +1 -1
- package/models/components/paymentlinkamountdetails.js +2 -0
- package/models/components/paymentlinkamountdetails.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/refundamountdetails.d.ts +21 -0
- package/models/components/refundamountdetails.d.ts.map +1 -0
- package/models/components/{authorizeduser.js → refundamountdetails.js} +13 -14
- package/models/components/refundamountdetails.js.map +1 -0
- package/models/components/refundamountdetailsvalidationerror.d.ts +17 -0
- package/models/components/refundamountdetailsvalidationerror.d.ts.map +1 -0
- package/models/components/refundamountdetailsvalidationerror.js +59 -0
- package/models/components/refundamountdetailsvalidationerror.js.map +1 -0
- package/models/components/requestcard.d.ts +14 -17
- package/models/components/requestcard.d.ts.map +1 -1
- package/models/components/requestcard.js +9 -10
- package/models/components/requestcard.js.map +1 -1
- package/models/components/reversalamountdetails.d.ts +21 -0
- package/models/components/reversalamountdetails.d.ts.map +1 -0
- package/models/components/reversalamountdetails.js +60 -0
- package/models/components/reversalamountdetails.js.map +1 -0
- package/models/components/reversalamountdetailsvalidationerror.d.ts +17 -0
- package/models/components/reversalamountdetailsvalidationerror.d.ts.map +1 -0
- package/models/components/reversalamountdetailsvalidationerror.js +59 -0
- package/models/components/reversalamountdetailsvalidationerror.js.map +1 -0
- package/models/components/transferamountdetails.d.ts +5 -0
- package/models/components/transferamountdetails.d.ts.map +1 -1
- package/models/components/transferamountdetails.js +2 -0
- package/models/components/transferamountdetails.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/transfercontrols.js +67 -0
- 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/updatepaymentlinkamountdetails.d.ts +5 -0
- package/models/components/updatepaymentlinkamountdetails.d.ts.map +1 -1
- package/models/components/updatepaymentlinkamountdetails.js +2 -0
- package/models/components/updatepaymentlinkamountdetails.js.map +1 -1
- package/models/components/updatepaymentlinkamountdetailsvalidationerror.d.ts +2 -0
- package/models/components/updatepaymentlinkamountdetailsvalidationerror.d.ts.map +1 -1
- package/models/components/updatepaymentlinkamountdetailsvalidationerror.js +2 -0
- package/models/components/updatepaymentlinkamountdetailsvalidationerror.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/cardacquiringrefund.d.ts +3 -0
- package/models/errors/cardacquiringrefund.d.ts.map +1 -1
- package/models/errors/cardacquiringrefund.js +4 -0
- package/models/errors/cardacquiringrefund.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/refundvalidationerror.d.ts +4 -0
- package/models/errors/refundvalidationerror.d.ts.map +1 -1
- package/models/errors/refundvalidationerror.js +6 -0
- package/models/errors/refundvalidationerror.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/reversalvalidationerror.d.ts +4 -0
- package/models/errors/reversalvalidationerror.d.ts.map +1 -1
- package/models/errors/reversalvalidationerror.js +6 -0
- package/models/errors/reversalvalidationerror.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/asynccreatedrefund.ts +10 -0
- package/src/models/components/capability.ts +7 -1
- package/src/models/components/capabilityid.ts +14 -2
- package/src/models/components/cardacquiringrefund.ts +10 -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/createpaymentlinkamountdetails.ts +7 -0
- package/src/models/components/createpaymentlinkamountdetailsvalidationerror.ts +4 -0
- package/src/models/components/createrefund.ts +13 -0
- package/src/models/components/createreversal.ts +13 -0
- package/src/models/components/createtransferamountdetails.ts +7 -0
- package/src/models/components/createtransferamountdetailsvalidationerror.ts +4 -0
- package/src/models/components/customamountpaymentdetailserror.ts +86 -0
- package/src/models/components/fullissuedcard.ts +35 -17
- package/src/models/components/index.ts +12 -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/paymentlinkamountdetails.ts +7 -0
- 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/refundamountdetails.ts +61 -0
- package/src/models/components/refundamountdetailsvalidationerror.ts +55 -0
- package/src/models/components/requestcard.ts +23 -34
- package/src/models/components/reversalamountdetails.ts +61 -0
- package/src/models/components/reversalamountdetailsvalidationerror.ts +55 -0
- package/src/models/components/transferamountdetails.ts +7 -0
- 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/updatepaymentlinkamountdetails.ts +7 -0
- package/src/models/components/updatepaymentlinkamountdetailsvalidationerror.ts +4 -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/cardacquiringrefund.ts +6 -0
- package/src/models/errors/createinvoiceerror.ts +7 -7
- package/src/models/errors/createpaymentlinkerror.ts +13 -0
- package/src/models/errors/refundvalidationerror.ts +12 -0
- package/src/models/errors/requestcarderror.ts +26 -27
- package/src/models/errors/reversalvalidationerror.ts +12 -0
- 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,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ListCancellationsResponse$outboundSchema = exports.ListCancellationsResponse$inboundSchema = exports.ListCancellationsRequest$outboundSchema = exports.ListCancellationsRequest$inboundSchema = void 0;
|
|
40
|
+
exports.listCancellationsRequestToJSON = listCancellationsRequestToJSON;
|
|
41
|
+
exports.listCancellationsRequestFromJSON = listCancellationsRequestFromJSON;
|
|
42
|
+
exports.listCancellationsResponseToJSON = listCancellationsResponseToJSON;
|
|
43
|
+
exports.listCancellationsResponseFromJSON = listCancellationsResponseFromJSON;
|
|
44
|
+
const z = __importStar(require("zod/v3"));
|
|
45
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
46
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
47
|
+
const types = __importStar(require("../../types/primitives.js"));
|
|
48
|
+
const components = __importStar(require("../components/index.js"));
|
|
49
|
+
/** @internal */
|
|
50
|
+
exports.ListCancellationsRequest$inboundSchema = z.object({
|
|
51
|
+
accountID: types.string(),
|
|
52
|
+
transferID: types.string(),
|
|
53
|
+
});
|
|
54
|
+
/** @internal */
|
|
55
|
+
exports.ListCancellationsRequest$outboundSchema = z.object({
|
|
56
|
+
accountID: z.string(),
|
|
57
|
+
transferID: z.string(),
|
|
58
|
+
});
|
|
59
|
+
function listCancellationsRequestToJSON(listCancellationsRequest) {
|
|
60
|
+
return JSON.stringify(exports.ListCancellationsRequest$outboundSchema.parse(listCancellationsRequest));
|
|
61
|
+
}
|
|
62
|
+
function listCancellationsRequestFromJSON(jsonString) {
|
|
63
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListCancellationsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCancellationsRequest' from JSON`);
|
|
64
|
+
}
|
|
65
|
+
/** @internal */
|
|
66
|
+
exports.ListCancellationsResponse$inboundSchema = z.object({
|
|
67
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
68
|
+
Result: z.array(components.Cancellation$inboundSchema),
|
|
69
|
+
}).transform((v) => {
|
|
70
|
+
return (0, primitives_js_1.remap)(v, {
|
|
71
|
+
"Headers": "headers",
|
|
72
|
+
"Result": "result",
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
/** @internal */
|
|
76
|
+
exports.ListCancellationsResponse$outboundSchema = z.object({
|
|
77
|
+
headers: z.record(z.array(z.string())),
|
|
78
|
+
result: z.array(components.Cancellation$outboundSchema),
|
|
79
|
+
}).transform((v) => {
|
|
80
|
+
return (0, primitives_js_1.remap)(v, {
|
|
81
|
+
headers: "Headers",
|
|
82
|
+
result: "Result",
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
function listCancellationsResponseToJSON(listCancellationsResponse) {
|
|
86
|
+
return JSON.stringify(exports.ListCancellationsResponse$outboundSchema.parse(listCancellationsResponse));
|
|
87
|
+
}
|
|
88
|
+
function listCancellationsResponseFromJSON(jsonString) {
|
|
89
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListCancellationsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCancellationsResponse' from JSON`);
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=listcancellations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listcancellations.js","sourceRoot":"","sources":["../../src/models/operations/listcancellations.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDH,wEAMC;AACD,4EAQC;AAqCD,0EAMC;AACD,8EAQC;AApHD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAEjD,iEAAmD;AACnD,mEAAqD;AAmBrD,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,KAAK,CAAC,MAAM,EAAE;IACzB,UAAU,EAAE,KAAK,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAEH,SAAgB,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC;AACD,SAAgB,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAClD,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,0BAA0B,CAAC;CACvD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACtC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,2BAA2B,CAAC;CACxD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,QAAQ;KACjB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,+BAA+B,CAC7C,yBAAoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,gDAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AACJ,CAAC;AACD,SAAgB,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+CAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
package/sdk/accounts.d.ts
CHANGED
|
@@ -3,21 +3,19 @@ import * as components from "../models/components/index.js";
|
|
|
3
3
|
import * as operations from "../models/operations/index.js";
|
|
4
4
|
export declare class Accounts extends ClientSDK {
|
|
5
5
|
/**
|
|
6
|
-
* You can create
|
|
7
|
-
* information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
|
|
6
|
+
* You can create business or individual accounts for your users (i.e., customers, merchants) by passing the required information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/reference/).
|
|
8
7
|
*
|
|
9
|
-
* If you
|
|
10
|
-
* + Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
|
|
11
|
-
*
|
|
12
|
-
*
|
|
8
|
+
* The `transfers` capability is automatically requested for every account. If you request any capability beyond `transfers` (for example, `send-funds.ach`, `collect-funds.card-payments`), you'll need to:
|
|
9
|
+
* + Send Moov the user's [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance. This can be done at account creation, or by [patching](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account using the `termsOfService` field.
|
|
10
|
+
* + Fulfill the [verification and underwriting requirements](https://docs.moov.io/guides/accounts/requirements/) for each requested capability. A capability isn't enabled until its requirements pass — check the capability's status to see what's still outstanding.
|
|
11
|
+
*
|
|
12
|
+
* If you're creating a business account, depending on the business type, you'll also need to:
|
|
13
13
|
* + Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
|
|
14
14
|
* + [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
|
|
15
15
|
*
|
|
16
|
-
* Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/).
|
|
17
|
-
* Note that the `mode` field (for production or sandbox) is only required when creating a _facilitator_ account. All non-facilitator account requests will ignore the mode field and be set to the calling facilitator's mode.
|
|
16
|
+
* Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/). Note that the `mode` field (for production or sandbox) is only required when creating a Partner account. All other account requests will ignore the mode field and be set to the calling Partner account's mode.
|
|
18
17
|
*
|
|
19
|
-
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
20
|
-
* to specify the `/accounts.write` scope.
|
|
18
|
+
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts.write` scope.
|
|
21
19
|
*/
|
|
22
20
|
create(request: components.CreateAccount, options?: RequestOptions): Promise<operations.CreateAccountResponse>;
|
|
23
21
|
/**
|
package/sdk/accounts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../src/sdk/accounts.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,QAAS,SAAQ,SAAS;IACrC
|
|
1
|
+
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../src/sdk/accounts.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,QAAS,SAAQ,SAAS;IACrC;;;;;;;;;;;;;;OAcG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,aAAa,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAQ5C;;;;;;;;;OASG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oB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B,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC;CAOtD"}
|
package/sdk/accounts.js
CHANGED
|
@@ -19,21 +19,19 @@ const sdks_js_1 = require("../lib/sdks.js");
|
|
|
19
19
|
const fp_js_1 = require("../types/fp.js");
|
|
20
20
|
class Accounts extends sdks_js_1.ClientSDK {
|
|
21
21
|
/**
|
|
22
|
-
* You can create
|
|
23
|
-
* information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
|
|
22
|
+
* You can create business or individual accounts for your users (i.e., customers, merchants) by passing the required information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/reference/).
|
|
24
23
|
*
|
|
25
|
-
* If you
|
|
26
|
-
* + Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
|
|
27
|
-
*
|
|
28
|
-
*
|
|
24
|
+
* The `transfers` capability is automatically requested for every account. If you request any capability beyond `transfers` (for example, `send-funds.ach`, `collect-funds.card-payments`), you'll need to:
|
|
25
|
+
* + Send Moov the user's [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance. This can be done at account creation, or by [patching](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account using the `termsOfService` field.
|
|
26
|
+
* + Fulfill the [verification and underwriting requirements](https://docs.moov.io/guides/accounts/requirements/) for each requested capability. A capability isn't enabled until its requirements pass — check the capability's status to see what's still outstanding.
|
|
27
|
+
*
|
|
28
|
+
* If you're creating a business account, depending on the business type, you'll also need to:
|
|
29
29
|
* + Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
|
|
30
30
|
* + [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
|
|
31
31
|
*
|
|
32
|
-
* Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/).
|
|
33
|
-
* Note that the `mode` field (for production or sandbox) is only required when creating a _facilitator_ account. All non-facilitator account requests will ignore the mode field and be set to the calling facilitator's mode.
|
|
32
|
+
* Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/). Note that the `mode` field (for production or sandbox) is only required when creating a Partner account. All other account requests will ignore the mode field and be set to the calling Partner account's mode.
|
|
34
33
|
*
|
|
35
|
-
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
36
|
-
* to specify the `/accounts.write` scope.
|
|
34
|
+
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts.write` scope.
|
|
37
35
|
*/
|
|
38
36
|
async create(request, options) {
|
|
39
37
|
return (0, fp_js_1.unwrapAsync)((0, accountsCreate_js_1.accountsCreate)(this, request, options));
|
package/sdk/accounts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../src/sdk/accounts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oFAA8E;AAC9E,oEAA8D;AAC9D,kEAA4D;AAC5D,0EAAoE;AACpE,4DAAsD;AACtD,8EAAwE;AACxE,kHAA4G;AAC5G,kGAA4F;AAC5F,8DAAwD;AACxD,gFAA0E;AAC1E,kEAA4D;AAC5D,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,QAAS,SAAQ,mBAAS;IACrC
|
|
1
|
+
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../src/sdk/accounts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oFAA8E;AAC9E,oEAA8D;AAC9D,kEAA4D;AAC5D,0EAAoE;AACpE,4DAAsD;AACtD,8EAAwE;AACxE,kHAA4G;AAC5G,kGAA4F;AAC5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B;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oCAAe,EAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CAChB,OAA8C,EAC9C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,eAAe,CACnB,OAAiD,EACjD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,8BAA8B,CAClC,OAAyD,EACzD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kFAAsC,EACvD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAAiD,EACjD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kEAA8B,EAC/C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAvND,4BAuNC"}
|
package/sdk/capabilities.d.ts
CHANGED
|
@@ -4,28 +4,28 @@ export declare class Capabilities extends ClientSDK {
|
|
|
4
4
|
/**
|
|
5
5
|
* Retrieve all the capabilities an account has requested.
|
|
6
6
|
*
|
|
7
|
-
* Read our [capabilities
|
|
7
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
8
8
|
*
|
|
9
9
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
10
10
|
* you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
|
|
11
11
|
*/
|
|
12
12
|
list(request: operations.ListCapabilitiesRequest, options?: RequestOptions): Promise<operations.ListCapabilitiesResponse>;
|
|
13
13
|
/**
|
|
14
|
-
* Request capabilities for a specific account. Read our [capabilities
|
|
14
|
+
* Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
15
15
|
*
|
|
16
16
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
17
17
|
* you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
|
|
18
18
|
*/
|
|
19
19
|
request(request: operations.RequestCapabilitiesRequest, options?: RequestOptions): Promise<operations.RequestCapabilitiesResponse>;
|
|
20
20
|
/**
|
|
21
|
-
* Retrieve a specific capability that an account has requested. Read our [capabilities
|
|
21
|
+
* Retrieve a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
22
22
|
*
|
|
23
23
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
24
24
|
* you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
|
|
25
25
|
*/
|
|
26
26
|
get(request: operations.GetCapabilityRequest, options?: RequestOptions): Promise<operations.GetCapabilityResponse>;
|
|
27
27
|
/**
|
|
28
|
-
* Disable a specific capability that an account has requested. Read our [capabilities
|
|
28
|
+
* Disable a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
29
29
|
*
|
|
30
30
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
31
31
|
* you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
|
package/sdk/capabilities.js
CHANGED
|
@@ -14,7 +14,7 @@ class Capabilities extends sdks_js_1.ClientSDK {
|
|
|
14
14
|
/**
|
|
15
15
|
* Retrieve all the capabilities an account has requested.
|
|
16
16
|
*
|
|
17
|
-
* Read our [capabilities
|
|
17
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
18
18
|
*
|
|
19
19
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
20
20
|
* you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
|
|
@@ -23,7 +23,7 @@ class Capabilities extends sdks_js_1.ClientSDK {
|
|
|
23
23
|
return (0, fp_js_1.unwrapAsync)((0, capabilitiesList_js_1.capabilitiesList)(this, request, options));
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
* Request capabilities for a specific account. Read our [capabilities
|
|
26
|
+
* Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
27
27
|
*
|
|
28
28
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
29
29
|
* you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
|
|
@@ -32,7 +32,7 @@ class Capabilities extends sdks_js_1.ClientSDK {
|
|
|
32
32
|
return (0, fp_js_1.unwrapAsync)((0, capabilitiesRequest_js_1.capabilitiesRequest)(this, request, options));
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
|
-
* Retrieve a specific capability that an account has requested. Read our [capabilities
|
|
35
|
+
* Retrieve a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
36
36
|
*
|
|
37
37
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
38
38
|
* you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
|
|
@@ -41,7 +41,7 @@ class Capabilities extends sdks_js_1.ClientSDK {
|
|
|
41
41
|
return (0, fp_js_1.unwrapAsync)((0, capabilitiesGet_js_1.capabilitiesGet)(this, request, options));
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* Disable a specific capability that an account has requested. Read our [capabilities
|
|
44
|
+
* Disable a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
45
45
|
*
|
|
46
46
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
47
47
|
* you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
|
package/sdk/transfers.d.ts
CHANGED
|
@@ -73,6 +73,13 @@ export declare class Transfers extends ClientSDK {
|
|
|
73
73
|
* to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
74
74
|
*/
|
|
75
75
|
createCancellation(request: operations.CreateCancellationRequest, options?: RequestOptions): Promise<operations.CreateCancellationResponse>;
|
|
76
|
+
/**
|
|
77
|
+
* Get a list of cancellations for a transfer.
|
|
78
|
+
*
|
|
79
|
+
* To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
80
|
+
* to specify the `/accounts/{accountID}/transfers.read` scope.
|
|
81
|
+
*/
|
|
82
|
+
listCancellations(request: operations.ListCancellationsRequest, options?: RequestOptions): Promise<operations.ListCancellationsResponse>;
|
|
76
83
|
/**
|
|
77
84
|
* Get details of a cancellation for a transfer.
|
|
78
85
|
*
|
package/sdk/transfers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfers.d.ts","sourceRoot":"","sources":["../src/sdk/transfers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transfers.d.ts","sourceRoot":"","sources":["../src/sdk/transfers.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,SAAU,SAAQ,SAAS;IACtC;;;;;;;;;;OAUG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;;;OAOG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC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sB,CAAC;IAQ7C;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAQ1C;;;;;OAKG;IACG,SAAS,CACb,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAQxC;;;;;;;OAOG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;CAO9C"}
|
package/sdk/transfers.js
CHANGED
|
@@ -14,6 +14,7 @@ const transfersGetCancellation_js_1 = require("../funcs/transfersGetCancellation
|
|
|
14
14
|
const transfersGetRefund_js_1 = require("../funcs/transfersGetRefund.js");
|
|
15
15
|
const transfersInitiateRefund_js_1 = require("../funcs/transfersInitiateRefund.js");
|
|
16
16
|
const transfersList_js_1 = require("../funcs/transfersList.js");
|
|
17
|
+
const transfersListCancellations_js_1 = require("../funcs/transfersListCancellations.js");
|
|
17
18
|
const transfersListRefunds_js_1 = require("../funcs/transfersListRefunds.js");
|
|
18
19
|
const transfersUpdate_js_1 = require("../funcs/transfersUpdate.js");
|
|
19
20
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
@@ -105,6 +106,15 @@ class Transfers extends sdks_js_1.ClientSDK {
|
|
|
105
106
|
async createCancellation(request, options) {
|
|
106
107
|
return (0, fp_js_1.unwrapAsync)((0, transfersCreateCancellation_js_1.transfersCreateCancellation)(this, request, options));
|
|
107
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* Get a list of cancellations for a transfer.
|
|
111
|
+
*
|
|
112
|
+
* To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
113
|
+
* to specify the `/accounts/{accountID}/transfers.read` scope.
|
|
114
|
+
*/
|
|
115
|
+
async listCancellations(request, options) {
|
|
116
|
+
return (0, fp_js_1.unwrapAsync)((0, transfersListCancellations_js_1.transfersListCancellations)(this, request, options));
|
|
117
|
+
}
|
|
108
118
|
/**
|
|
109
119
|
* Get details of a cancellation for a transfer.
|
|
110
120
|
*
|
package/sdk/transfers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfers.js","sourceRoot":"","sources":["../src/sdk/transfers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0FAAoF;AACpF,oEAA8D;AAC9D,4FAAsF;AACtF,oFAA8E;AAC9E,sFAAgF;AAChF,8DAAwD;AACxD,sFAAgF;AAChF,0EAAoE;AACpE,oFAA8E;AAC9E,gEAA0D;AAC1D,8EAAwE;AACxE,oEAA8D;AAC9D,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,SAAU,SAAQ,mBAAS;IACtC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,eAAe,CACnB,OAAgD,EAChD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CACV,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oCAAe,EAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,IAAI,CACR,OAAwC,EACxC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gCAAa,EAC9B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAC3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ACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"transfers.js","sourceRoot":"","sources":["../src/sdk/transfers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0FAAoF;AACpF,oEAA8D;AAC9D,4FAAsF;AACtF,oFAA8E;AAC9E,sFAAgF;AAChF,8DAAwD;AACxD,sFAAgF;AAChF,0EAAoE;AACpE,oFAA8E;AAC9E,gEAA0D;AAC1D,0FAAoF;AACpF,8EAAwE;AACxE,oEAA8D;AAC9D,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,SAAU,SAAQ,mBAAS;IACtC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,eAAe,CACnB,OAAgD,EAChD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CACV,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oCAAe,EAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,IAAI,CACR,OAAwC,EACxC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gCAAa,EAC9B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0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EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,SAAS,CACb,OAAoC,EACpC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAzPD,8BAyPC"}
|
|
@@ -28,21 +28,19 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
28
28
|
import { Result } from "../types/fp.js";
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* You can create
|
|
32
|
-
* information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
|
|
31
|
+
* You can create business or individual accounts for your users (i.e., customers, merchants) by passing the required information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/reference/).
|
|
33
32
|
*
|
|
34
|
-
* If you
|
|
35
|
-
* + Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
|
|
36
|
-
*
|
|
37
|
-
*
|
|
33
|
+
* The `transfers` capability is automatically requested for every account. If you request any capability beyond `transfers` (for example, `send-funds.ach`, `collect-funds.card-payments`), you'll need to:
|
|
34
|
+
* + Send Moov the user's [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance. This can be done at account creation, or by [patching](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account using the `termsOfService` field.
|
|
35
|
+
* + Fulfill the [verification and underwriting requirements](https://docs.moov.io/guides/accounts/requirements/) for each requested capability. A capability isn't enabled until its requirements pass — check the capability's status to see what's still outstanding.
|
|
36
|
+
*
|
|
37
|
+
* If you're creating a business account, depending on the business type, you'll also need to:
|
|
38
38
|
* + Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
|
|
39
39
|
* + [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
|
|
40
40
|
*
|
|
41
|
-
* Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/).
|
|
42
|
-
* Note that the `mode` field (for production or sandbox) is only required when creating a _facilitator_ account. All non-facilitator account requests will ignore the mode field and be set to the calling facilitator's mode.
|
|
41
|
+
* Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/). Note that the `mode` field (for production or sandbox) is only required when creating a Partner account. All other account requests will ignore the mode field and be set to the calling Partner account's mode.
|
|
43
42
|
*
|
|
44
|
-
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
45
|
-
* to specify the `/accounts.write` scope.
|
|
43
|
+
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts.write` scope.
|
|
46
44
|
*/
|
|
47
45
|
export function accountsCreate(
|
|
48
46
|
client: MoovCore,
|
|
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
import * as types$ from "../types/primitives.js";
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Disable a specific capability that an account has requested. Read our [capabilities
|
|
31
|
+
* Disable a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
32
32
|
*
|
|
33
33
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
34
34
|
* you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
|
|
@@ -26,7 +26,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Retrieve a specific capability that an account has requested. Read our [capabilities
|
|
29
|
+
* Retrieve a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
30
30
|
*
|
|
31
31
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
32
32
|
* you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
|
|
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
/**
|
|
29
29
|
* Retrieve all the capabilities an account has requested.
|
|
30
30
|
*
|
|
31
|
-
* Read our [capabilities
|
|
31
|
+
* Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
32
32
|
*
|
|
33
33
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
34
34
|
* you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
|
|
@@ -27,7 +27,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Request capabilities for a specific account. Read our [capabilities
|
|
30
|
+
* Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
31
31
|
*
|
|
32
32
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
33
33
|
* you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
|
|
@@ -98,9 +98,9 @@ async function $do(
|
|
|
98
98
|
charEncoding: "percent",
|
|
99
99
|
}),
|
|
100
100
|
};
|
|
101
|
-
const path = pathToFunc(
|
|
102
|
-
|
|
103
|
-
)
|
|
101
|
+
const path = pathToFunc("/issuing/{accountID}/cards/{issuedCardID}/details")(
|
|
102
|
+
pathParams,
|
|
103
|
+
);
|
|
104
104
|
|
|
105
105
|
const headers = new Headers(compactMap({
|
|
106
106
|
Accept: "application/json",
|
|
@@ -92,7 +92,7 @@ async function $do(
|
|
|
92
92
|
charEncoding: "percent",
|
|
93
93
|
}),
|
|
94
94
|
};
|
|
95
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
95
|
+
const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
|
|
96
96
|
|
|
97
97
|
const query = encodeFormQuery({
|
|
98
98
|
"count": payload.count,
|
|
@@ -97,7 +97,7 @@ async function $do(
|
|
|
97
97
|
charEncoding: "percent",
|
|
98
98
|
}),
|
|
99
99
|
};
|
|
100
|
-
const path = pathToFunc("/issuing/{accountID}/
|
|
100
|
+
const path = pathToFunc("/issuing/{accountID}/cards")(pathParams);
|
|
101
101
|
|
|
102
102
|
const headers = new Headers(compactMap({
|
|
103
103
|
"Content-Type": "application/json",
|