@moovio/sdk 25.4.1 → 25.7.1
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 +135 -47
- package/bin/mcp-server.js +2711 -483
- package/bin/mcp-server.js.map +90 -20
- package/examples/package-lock.json +1 -1
- package/funcs/supportCreateTicket.d.ts +21 -0
- package/funcs/supportCreateTicket.d.ts.map +1 -0
- package/funcs/supportCreateTicket.js +142 -0
- package/funcs/supportCreateTicket.js.map +1 -0
- package/funcs/supportGetTicket.d.ts +20 -0
- package/funcs/supportGetTicket.d.ts.map +1 -0
- package/funcs/supportGetTicket.js +132 -0
- package/funcs/supportGetTicket.js.map +1 -0
- package/funcs/supportListTicketMessages.d.ts +20 -0
- package/funcs/supportListTicketMessages.d.ts.map +1 -0
- package/funcs/supportListTicketMessages.js +132 -0
- package/funcs/supportListTicketMessages.js.map +1 -0
- package/funcs/supportListTickets.d.ts +20 -0
- package/funcs/supportListTickets.d.ts.map +1 -0
- package/funcs/supportListTickets.js +135 -0
- package/funcs/supportListTickets.js.map +1 -0
- package/funcs/supportUpdateTicket.d.ts +21 -0
- package/funcs/supportUpdateTicket.d.ts.map +1 -0
- package/funcs/supportUpdateTicket.js +146 -0
- package/funcs/supportUpdateTicket.js.map +1 -0
- package/funcs/underwritingSave.d.ts +20 -0
- package/funcs/underwritingSave.d.ts.map +1 -0
- package/funcs/underwritingSave.js +145 -0
- package/funcs/underwritingSave.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +13 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/supportCreateTicket.d.ts +8 -0
- package/mcp-server/tools/supportCreateTicket.d.ts.map +1 -0
- package/mcp-server/tools/supportCreateTicket.js +68 -0
- package/mcp-server/tools/supportCreateTicket.js.map +1 -0
- package/mcp-server/tools/supportGetTicket.d.ts +8 -0
- package/mcp-server/tools/supportGetTicket.d.ts.map +1 -0
- package/mcp-server/tools/supportGetTicket.js +68 -0
- package/mcp-server/tools/supportGetTicket.js.map +1 -0
- package/mcp-server/tools/supportListTicketMessages.d.ts +8 -0
- package/mcp-server/tools/supportListTicketMessages.d.ts.map +1 -0
- package/mcp-server/tools/supportListTicketMessages.js +68 -0
- package/mcp-server/tools/supportListTicketMessages.js.map +1 -0
- package/mcp-server/tools/supportListTickets.d.ts +8 -0
- package/mcp-server/tools/supportListTickets.d.ts.map +1 -0
- package/mcp-server/tools/supportListTickets.js +68 -0
- package/mcp-server/tools/supportListTickets.js.map +1 -0
- package/mcp-server/tools/supportUpdateTicket.d.ts +8 -0
- package/mcp-server/tools/supportUpdateTicket.d.ts.map +1 -0
- package/mcp-server/tools/supportUpdateTicket.js +68 -0
- package/mcp-server/tools/supportUpdateTicket.js.map +1 -0
- package/mcp-server/tools/underwritingSave.d.ts +8 -0
- package/mcp-server/tools/underwritingSave.d.ts.map +1 -0
- package/mcp-server/tools/underwritingSave.js +67 -0
- package/mcp-server/tools/underwritingSave.js.map +1 -0
- package/models/components/accounttype.d.ts +1 -0
- package/models/components/accounttype.d.ts.map +1 -1
- package/models/components/accounttype.js +1 -0
- package/models/components/accounttype.js.map +1 -1
- package/models/components/bankaccountholdertype.d.ts +1 -0
- package/models/components/bankaccountholdertype.d.ts.map +1 -1
- package/models/components/bankaccountholdertype.js +1 -0
- package/models/components/bankaccountholdertype.js.map +1 -1
- package/models/components/businesspresence.d.ts +16 -0
- package/models/components/businesspresence.d.ts.map +1 -0
- package/models/components/businesspresence.js +53 -0
- package/models/components/businesspresence.js.map +1 -0
- package/models/components/capabilityid.d.ts +11 -0
- package/models/components/capabilityid.d.ts.map +1 -1
- package/models/components/capabilityid.js +11 -0
- package/models/components/capabilityid.js.map +1 -1
- package/models/components/cardacceptancemethods.d.ts +33 -0
- package/models/components/cardacceptancemethods.d.ts.map +1 -0
- package/models/components/cardacceptancemethods.js +62 -0
- package/models/components/cardacceptancemethods.js.map +1 -0
- package/models/components/cardacceptancemethodserror.d.ts +21 -0
- package/models/components/cardacceptancemethodserror.d.ts.map +1 -0
- package/models/components/cardacceptancemethodserror.js +62 -0
- package/models/components/cardacceptancemethodserror.js.map +1 -0
- package/models/components/collectfunds.d.ts +21 -0
- package/models/components/collectfunds.d.ts.map +1 -0
- package/models/components/collectfunds.js +62 -0
- package/models/components/collectfunds.js.map +1 -0
- package/models/components/collectfundsach.d.ts +18 -0
- package/models/components/collectfundsach.d.ts.map +1 -0
- package/models/components/collectfundsach.js +59 -0
- package/models/components/collectfundsach.js.map +1 -0
- package/models/components/collectfundsacherror.d.ts +18 -0
- package/models/components/collectfundsacherror.d.ts.map +1 -0
- package/models/components/collectfundsacherror.js +59 -0
- package/models/components/collectfundsacherror.js.map +1 -0
- package/models/components/collectfundscardpayments.d.ts +32 -0
- package/models/components/collectfundscardpayments.d.ts.map +1 -0
- package/models/components/collectfundscardpayments.js +70 -0
- package/models/components/collectfundscardpayments.js.map +1 -0
- package/models/components/collectfundscardpaymentserror.d.ts +28 -0
- package/models/components/collectfundscardpaymentserror.d.ts.map +1 -0
- package/models/components/collectfundscardpaymentserror.js +69 -0
- package/models/components/collectfundscardpaymentserror.js.map +1 -0
- package/models/components/collectfundserror.d.ts +21 -0
- package/models/components/collectfundserror.d.ts.map +1 -0
- package/models/components/collectfundserror.js +62 -0
- package/models/components/collectfundserror.js.map +1 -0
- package/models/components/createaccount.d.ts +2 -5
- package/models/components/createaccount.d.ts.map +1 -1
- package/models/components/createaccount.js +3 -3
- package/models/components/createaccount.js.map +1 -1
- package/models/components/createaccounttype.d.ts +12 -0
- package/models/components/createaccounttype.d.ts.map +1 -0
- package/models/components/createaccounttype.js +49 -0
- package/models/components/createaccounttype.js.map +1 -0
- package/models/components/createticket.d.ts +29 -0
- package/models/components/createticket.d.ts.map +1 -0
- package/models/components/createticket.js +67 -0
- package/models/components/createticket.js.map +1 -0
- package/models/components/createticketcontacterror.d.ts +19 -0
- package/models/components/createticketcontacterror.d.ts.map +1 -0
- package/models/components/createticketcontacterror.js +60 -0
- package/models/components/createticketcontacterror.js.map +1 -0
- package/models/components/enrichedindustries.d.ts +3 -3
- package/models/components/enrichedindustries.js +3 -3
- package/models/components/estimatedactivity.d.ts +25 -0
- package/models/components/estimatedactivity.d.ts.map +1 -0
- package/models/components/estimatedactivity.js +63 -0
- package/models/components/estimatedactivity.js.map +1 -0
- package/models/components/estimatedactivityerror.d.ts +21 -0
- package/models/components/estimatedactivityerror.d.ts.map +1 -0
- package/models/components/estimatedactivityerror.js +62 -0
- package/models/components/estimatedactivityerror.js.map +1 -0
- package/models/components/fulfillment.d.ts +21 -0
- package/models/components/fulfillment.d.ts.map +1 -0
- package/models/components/fulfillment.js +62 -0
- package/models/components/fulfillment.js.map +1 -0
- package/models/components/fulfillmenterror.d.ts +19 -0
- package/models/components/fulfillmenterror.d.ts.map +1 -0
- package/models/components/{enrichedindustry.js → fulfillmenterror.js} +14 -18
- package/models/components/fulfillmenterror.js.map +1 -0
- package/models/components/fulfillmentmethod.d.ts +19 -0
- package/models/components/fulfillmentmethod.d.ts.map +1 -0
- package/models/components/fulfillmentmethod.js +56 -0
- package/models/components/fulfillmentmethod.js.map +1 -0
- package/models/components/fulfillmenttimeframe.d.ts +18 -0
- package/models/components/fulfillmenttimeframe.d.ts.map +1 -0
- package/models/components/fulfillmenttimeframe.js +55 -0
- package/models/components/fulfillmenttimeframe.js.map +1 -0
- package/models/components/geographicreach.d.ts +13 -0
- package/models/components/geographicreach.d.ts.map +1 -0
- package/models/components/geographicreach.js +50 -0
- package/models/components/geographicreach.js.map +1 -0
- package/models/components/guestprofile.d.ts +31 -0
- package/models/components/guestprofile.d.ts.map +1 -0
- package/models/components/guestprofile.js +63 -0
- package/models/components/guestprofile.js.map +1 -0
- package/models/components/index.d.ts +50 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +50 -1
- package/models/components/index.js.map +1 -1
- package/models/components/industrytaxonomy.d.ts +43 -0
- package/models/components/industrytaxonomy.d.ts.map +1 -0
- package/models/components/industrytaxonomy.js +66 -0
- package/models/components/industrytaxonomy.js.map +1 -0
- package/models/components/itemlistnextpage.d.ts +20 -0
- package/models/components/itemlistnextpage.d.ts.map +1 -0
- package/models/components/itemlistnextpage.js +58 -0
- package/models/components/itemlistnextpage.js.map +1 -0
- package/models/components/moneytransfer.d.ts +21 -0
- package/models/components/moneytransfer.d.ts.map +1 -0
- package/models/components/moneytransfer.js +62 -0
- package/models/components/moneytransfer.js.map +1 -0
- package/models/components/moneytransfererror.d.ts +21 -0
- package/models/components/moneytransfererror.d.ts.map +1 -0
- package/models/components/moneytransfererror.js +62 -0
- package/models/components/moneytransfererror.js.map +1 -0
- package/models/components/moneytransferpullfromcard.d.ts +18 -0
- package/models/components/moneytransferpullfromcard.d.ts.map +1 -0
- package/models/components/moneytransferpullfromcard.js +59 -0
- package/models/components/moneytransferpullfromcard.js.map +1 -0
- package/models/components/moneytransferpullfromcarderror.d.ts +18 -0
- package/models/components/moneytransferpullfromcarderror.d.ts.map +1 -0
- package/models/components/moneytransferpullfromcarderror.js +59 -0
- package/models/components/moneytransferpullfromcarderror.js.map +1 -0
- package/models/components/moneytransferpushtocard.d.ts +18 -0
- package/models/components/moneytransferpushtocard.d.ts.map +1 -0
- package/models/components/moneytransferpushtocard.js +59 -0
- package/models/components/moneytransferpushtocard.js.map +1 -0
- package/models/components/moneytransferpushtocarderror.d.ts +18 -0
- package/models/components/moneytransferpushtocarderror.d.ts.map +1 -0
- package/models/components/moneytransferpushtocarderror.js +59 -0
- package/models/components/moneytransferpushtocarderror.js.map +1 -0
- package/models/components/monthlyvolumerange.d.ts +24 -0
- package/models/components/monthlyvolumerange.d.ts.map +1 -0
- package/models/components/monthlyvolumerange.js +58 -0
- package/models/components/monthlyvolumerange.js.map +1 -0
- package/models/components/pendinglitigation.d.ts +20 -0
- package/models/components/pendinglitigation.d.ts.map +1 -0
- package/models/components/pendinglitigation.js +57 -0
- package/models/components/pendinglitigation.js.map +1 -0
- package/models/components/profile.d.ts +6 -0
- package/models/components/profile.d.ts.map +1 -1
- package/models/components/profile.js +3 -0
- package/models/components/profile.js.map +1 -1
- package/models/components/refundpolicy.d.ts +19 -0
- package/models/components/refundpolicy.d.ts.map +1 -0
- package/models/components/refundpolicy.js +56 -0
- package/models/components/refundpolicy.js.map +1 -0
- package/models/components/requirementid.d.ts +54 -0
- package/models/components/requirementid.d.ts.map +1 -1
- package/models/components/requirementid.js +54 -0
- package/models/components/requirementid.js.map +1 -1
- package/models/components/sendfunds.d.ts +27 -0
- package/models/components/sendfunds.d.ts.map +1 -0
- package/models/components/sendfunds.js +68 -0
- package/models/components/sendfunds.js.map +1 -0
- package/models/components/sendfundsach.d.ts +18 -0
- package/models/components/sendfundsach.d.ts.map +1 -0
- package/models/components/sendfundsach.js +59 -0
- package/models/components/sendfundsach.js.map +1 -0
- package/models/components/sendfundsacherror.d.ts +18 -0
- package/models/components/sendfundsacherror.d.ts.map +1 -0
- package/models/components/sendfundsacherror.js +59 -0
- package/models/components/sendfundsacherror.js.map +1 -0
- package/models/components/sendfundserror.d.ts +27 -0
- package/models/components/sendfundserror.d.ts.map +1 -0
- package/models/components/sendfundserror.js +68 -0
- package/models/components/sendfundserror.js.map +1 -0
- package/models/components/sendfundsinstantbank.d.ts +18 -0
- package/models/components/sendfundsinstantbank.d.ts.map +1 -0
- package/models/components/sendfundsinstantbank.js +59 -0
- package/models/components/sendfundsinstantbank.js.map +1 -0
- package/models/components/sendfundsinstantbankerror.d.ts +18 -0
- package/models/components/sendfundsinstantbankerror.d.ts.map +1 -0
- package/models/components/sendfundsinstantbankerror.js +59 -0
- package/models/components/sendfundsinstantbankerror.js.map +1 -0
- package/models/components/sendfundspushtocard.d.ts +18 -0
- package/models/components/sendfundspushtocard.d.ts.map +1 -0
- package/models/components/sendfundspushtocard.js +59 -0
- package/models/components/sendfundspushtocard.js.map +1 -0
- package/models/components/sendfundspushtocarderror.d.ts +18 -0
- package/models/components/sendfundspushtocarderror.d.ts.map +1 -0
- package/models/components/sendfundspushtocarderror.js +59 -0
- package/models/components/sendfundspushtocarderror.js.map +1 -0
- package/models/components/sendfundsrtp.d.ts +18 -0
- package/models/components/sendfundsrtp.d.ts.map +1 -0
- package/models/components/sendfundsrtp.js +59 -0
- package/models/components/sendfundsrtp.js.map +1 -0
- package/models/components/sendfundsrtperror.d.ts +18 -0
- package/models/components/sendfundsrtperror.d.ts.map +1 -0
- package/models/components/sendfundsrtperror.js +59 -0
- package/models/components/sendfundsrtperror.js.map +1 -0
- package/models/components/submissionintent.d.ts +12 -0
- package/models/components/submissionintent.d.ts.map +1 -0
- package/models/components/submissionintent.js +49 -0
- package/models/components/submissionintent.js.map +1 -0
- package/models/components/ticket.d.ts +37 -0
- package/models/components/ticket.d.ts.map +1 -0
- package/models/components/ticket.js +80 -0
- package/models/components/ticket.js.map +1 -0
- package/models/components/ticketcontact.d.ts +19 -0
- package/models/components/ticketcontact.d.ts.map +1 -0
- package/models/components/ticketcontact.js +60 -0
- package/models/components/ticketcontact.js.map +1 -0
- package/models/components/ticketmessage.d.ts +21 -0
- package/models/components/ticketmessage.d.ts.map +1 -0
- package/models/components/ticketmessage.js +62 -0
- package/models/components/ticketmessage.js.map +1 -0
- package/models/components/underwriting.d.ts +35 -14
- package/models/components/underwriting.d.ts.map +1 -1
- package/models/components/underwriting.js +36 -14
- package/models/components/underwriting.js.map +1 -1
- package/models/components/updateticket.d.ts +21 -0
- package/models/components/updateticket.d.ts.map +1 -0
- package/models/components/updateticket.js +59 -0
- package/models/components/updateticket.js.map +1 -0
- package/models/components/updateticketstatus.d.ts +11 -0
- package/models/components/updateticketstatus.d.ts.map +1 -0
- package/models/components/updateticketstatus.js +48 -0
- package/models/components/updateticketstatus.js.map +1 -0
- package/models/components/upsertunderwriting.d.ts +39 -0
- package/models/components/upsertunderwriting.d.ts.map +1 -0
- package/models/components/upsertunderwriting.js +81 -0
- package/models/components/upsertunderwriting.js.map +1 -0
- package/models/components/volumesharebycustomertype.d.ts +21 -0
- package/models/components/volumesharebycustomertype.d.ts.map +1 -0
- package/models/components/volumesharebycustomertype.js +62 -0
- package/models/components/volumesharebycustomertype.js.map +1 -0
- package/models/components/volumesharebycustomertypeerror.d.ts +21 -0
- package/models/components/volumesharebycustomertypeerror.d.ts.map +1 -0
- package/models/components/volumesharebycustomertypeerror.js +62 -0
- package/models/components/volumesharebycustomertypeerror.js.map +1 -0
- package/models/errors/createticketerror.d.ts +36 -0
- package/models/errors/createticketerror.d.ts.map +1 -0
- package/models/errors/createticketerror.js +90 -0
- package/models/errors/createticketerror.js.map +1 -0
- package/models/errors/index.d.ts +3 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +3 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/updateticketerror.d.ts +24 -0
- package/models/errors/updateticketerror.d.ts.map +1 -0
- package/models/errors/updateticketerror.js +75 -0
- package/models/errors/updateticketerror.js.map +1 -0
- package/models/errors/upsertunderwritingerror.d.ts +64 -0
- package/models/errors/upsertunderwritingerror.d.ts.map +1 -0
- package/models/errors/upsertunderwritingerror.js +143 -0
- package/models/errors/upsertunderwritingerror.js.map +1 -0
- package/models/operations/createticket.d.ts +66 -0
- package/models/operations/createticket.d.ts.map +1 -0
- package/models/operations/createticket.js +122 -0
- package/models/operations/createticket.js.map +1 -0
- package/models/operations/getticket.d.ts +66 -0
- package/models/operations/getticket.d.ts.map +1 -0
- package/models/operations/getticket.js +114 -0
- package/models/operations/getticket.js.map +1 -0
- package/models/operations/index.d.ts +6 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +6 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listaccounts.d.ts +1 -1
- package/models/operations/listaccounts.d.ts.map +1 -1
- package/models/operations/listaccounts.js +2 -2
- package/models/operations/listaccounts.js.map +1 -1
- package/models/operations/listconnectedaccountsforaccount.d.ts +1 -1
- package/models/operations/listconnectedaccountsforaccount.d.ts.map +1 -1
- package/models/operations/listconnectedaccountsforaccount.js +2 -2
- package/models/operations/listconnectedaccountsforaccount.js.map +1 -1
- package/models/operations/listticketmessages.d.ts +66 -0
- package/models/operations/listticketmessages.d.ts.map +1 -0
- package/models/operations/listticketmessages.js +114 -0
- package/models/operations/listticketmessages.js.map +1 -0
- package/models/operations/listtickets.d.ts +90 -0
- package/models/operations/listtickets.d.ts.map +1 -0
- package/models/operations/listtickets.js +138 -0
- package/models/operations/listtickets.js.map +1 -0
- package/models/operations/saveunderwriting.d.ts +66 -0
- package/models/operations/saveunderwriting.d.ts.map +1 -0
- package/models/operations/saveunderwriting.js +122 -0
- package/models/operations/saveunderwriting.js.map +1 -0
- package/models/operations/updateticket.d.ts +68 -0
- package/models/operations/updateticket.d.ts.map +1 -0
- package/models/operations/updateticket.js +124 -0
- package/models/operations/updateticket.js.map +1 -0
- package/package.json +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/support.d.ts +55 -0
- package/sdk/support.d.ts.map +1 -0
- package/sdk/support.js +77 -0
- package/sdk/support.js.map +1 -0
- package/sdk/underwriting.d.ts +9 -0
- package/sdk/underwriting.d.ts.map +1 -1
- package/sdk/underwriting.js +12 -0
- package/sdk/underwriting.js.map +1 -1
- package/src/funcs/supportCreateTicket.ts +204 -0
- package/src/funcs/supportGetTicket.ts +188 -0
- package/src/funcs/supportListTicketMessages.ts +188 -0
- package/src/funcs/supportListTickets.ts +190 -0
- package/src/funcs/supportUpdateTicket.ts +210 -0
- package/src/funcs/underwritingSave.ts +207 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +13 -1
- package/src/mcp-server/tools/supportCreateTicket.ts +41 -0
- package/src/mcp-server/tools/supportGetTicket.ts +41 -0
- package/src/mcp-server/tools/supportListTicketMessages.ts +41 -0
- package/src/mcp-server/tools/supportListTickets.ts +41 -0
- package/src/mcp-server/tools/supportUpdateTicket.ts +41 -0
- package/src/mcp-server/tools/underwritingSave.ts +40 -0
- package/src/models/components/accounttype.ts +1 -0
- package/src/models/components/bankaccountholdertype.ts +1 -0
- package/src/models/components/businesspresence.ts +25 -0
- package/src/models/components/capabilityid.ts +11 -0
- package/src/models/components/cardacceptancemethods.ts +71 -0
- package/src/models/components/cardacceptancemethodserror.ts +59 -0
- package/src/models/components/collectfunds.ts +63 -0
- package/src/models/components/collectfundsach.ts +55 -0
- package/src/models/components/collectfundsacherror.ts +57 -0
- package/src/models/components/collectfundscardpayments.ts +93 -0
- package/src/models/components/collectfundscardpaymentserror.ts +87 -0
- package/src/models/components/collectfundserror.ts +67 -0
- package/src/models/components/createaccount.ts +8 -11
- package/src/models/components/createaccounttype.ts +21 -0
- package/src/models/components/createticket.ts +72 -0
- package/src/models/components/createticketcontacterror.ts +55 -0
- package/src/models/components/enrichedindustries.ts +9 -9
- package/src/models/components/estimatedactivity.ts +67 -0
- package/src/models/components/estimatedactivityerror.ts +59 -0
- package/src/models/components/fulfillment.ts +61 -0
- package/src/models/components/fulfillmenterror.ts +55 -0
- package/src/models/components/fulfillmentmethod.ts +28 -0
- package/src/models/components/fulfillmenttimeframe.ts +27 -0
- package/src/models/components/geographicreach.ts +22 -0
- package/src/models/components/guestprofile.ts +70 -0
- package/src/models/components/index.ts +50 -1
- package/src/models/components/industrytaxonomy.ts +85 -0
- package/src/models/components/itemlistnextpage.ts +54 -0
- package/src/models/components/moneytransfer.ts +63 -0
- package/src/models/components/moneytransfererror.ts +67 -0
- package/src/models/components/moneytransferpullfromcard.ts +57 -0
- package/src/models/components/moneytransferpullfromcarderror.ts +59 -0
- package/src/models/components/moneytransferpushtocard.ts +57 -0
- package/src/models/components/moneytransferpushtocarderror.ts +59 -0
- package/src/models/components/monthlyvolumerange.ts +33 -0
- package/src/models/components/pendinglitigation.ts +30 -0
- package/src/models/components/profile.ts +13 -0
- package/src/models/components/refundpolicy.ts +26 -0
- package/src/models/components/requirementid.ts +103 -0
- package/src/models/components/sendfunds.ts +83 -0
- package/src/models/components/sendfundsach.ts +53 -0
- package/src/models/components/sendfundsacherror.ts +57 -0
- package/src/models/components/sendfundserror.ts +83 -0
- package/src/models/components/sendfundsinstantbank.ts +57 -0
- package/src/models/components/sendfundsinstantbankerror.ts +57 -0
- package/src/models/components/sendfundspushtocard.ts +57 -0
- package/src/models/components/sendfundspushtocarderror.ts +57 -0
- package/src/models/components/sendfundsrtp.ts +53 -0
- package/src/models/components/sendfundsrtperror.ts +57 -0
- package/src/models/components/submissionintent.ts +21 -0
- package/src/models/components/ticket.ts +98 -0
- package/src/models/components/ticketcontact.ts +51 -0
- package/src/models/components/ticketmessage.ts +55 -0
- package/src/models/components/underwriting.ts +96 -28
- package/src/models/components/updateticket.ts +55 -0
- package/src/models/components/updateticketstatus.ts +20 -0
- package/src/models/components/upsertunderwriting.ts +124 -0
- package/src/models/components/volumesharebycustomertype.ts +59 -0
- package/src/models/components/volumesharebycustomertypeerror.ts +61 -0
- package/src/models/errors/createticketerror.ts +89 -0
- package/src/models/errors/index.ts +3 -0
- package/src/models/errors/updateticketerror.ts +66 -0
- package/src/models/errors/upsertunderwritingerror.ts +178 -0
- package/src/models/operations/createticket.ts +187 -0
- package/src/models/operations/getticket.ts +179 -0
- package/src/models/operations/index.ts +6 -0
- package/src/models/operations/listaccounts.ts +3 -3
- package/src/models/operations/listconnectedaccountsforaccount.ts +3 -3
- package/src/models/operations/listticketmessages.ts +179 -0
- package/src/models/operations/listtickets.ts +241 -0
- package/src/models/operations/saveunderwriting.ts +187 -0
- package/src/models/operations/updateticket.ts +191 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/support.ts +114 -0
- package/src/sdk/underwriting.ts +20 -0
- package/models/components/enrichedindustry.d.ts +0 -35
- package/models/components/enrichedindustry.d.ts.map +0 -1
- package/models/components/enrichedindustry.js.map +0 -1
- package/src/models/components/enrichedindustry.ts +0 -75
|
@@ -6,18 +6,51 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
BusinessPresence,
|
|
11
|
+
BusinessPresence$inboundSchema,
|
|
12
|
+
BusinessPresence$outboundSchema,
|
|
13
|
+
} from "./businesspresence.js";
|
|
9
14
|
import {
|
|
10
15
|
CardVolumeDistribution,
|
|
11
16
|
CardVolumeDistribution$inboundSchema,
|
|
12
17
|
CardVolumeDistribution$Outbound,
|
|
13
18
|
CardVolumeDistribution$outboundSchema,
|
|
14
19
|
} from "./cardvolumedistribution.js";
|
|
20
|
+
import {
|
|
21
|
+
CollectFunds,
|
|
22
|
+
CollectFunds$inboundSchema,
|
|
23
|
+
CollectFunds$Outbound,
|
|
24
|
+
CollectFunds$outboundSchema,
|
|
25
|
+
} from "./collectfunds.js";
|
|
15
26
|
import {
|
|
16
27
|
FulfillmentDetails,
|
|
17
28
|
FulfillmentDetails$inboundSchema,
|
|
18
29
|
FulfillmentDetails$Outbound,
|
|
19
30
|
FulfillmentDetails$outboundSchema,
|
|
20
31
|
} from "./fulfillmentdetails.js";
|
|
32
|
+
import {
|
|
33
|
+
GeographicReach,
|
|
34
|
+
GeographicReach$inboundSchema,
|
|
35
|
+
GeographicReach$outboundSchema,
|
|
36
|
+
} from "./geographicreach.js";
|
|
37
|
+
import {
|
|
38
|
+
MoneyTransfer,
|
|
39
|
+
MoneyTransfer$inboundSchema,
|
|
40
|
+
MoneyTransfer$Outbound,
|
|
41
|
+
MoneyTransfer$outboundSchema,
|
|
42
|
+
} from "./moneytransfer.js";
|
|
43
|
+
import {
|
|
44
|
+
PendingLitigation,
|
|
45
|
+
PendingLitigation$inboundSchema,
|
|
46
|
+
PendingLitigation$outboundSchema,
|
|
47
|
+
} from "./pendinglitigation.js";
|
|
48
|
+
import {
|
|
49
|
+
SendFunds,
|
|
50
|
+
SendFunds$inboundSchema,
|
|
51
|
+
SendFunds$Outbound,
|
|
52
|
+
SendFunds$outboundSchema,
|
|
53
|
+
} from "./sendfunds.js";
|
|
21
54
|
import {
|
|
22
55
|
UnderwritingStatus,
|
|
23
56
|
UnderwritingStatus$inboundSchema,
|
|
@@ -29,21 +62,34 @@ import {
|
|
|
29
62
|
VolumeByCustomerType$Outbound,
|
|
30
63
|
VolumeByCustomerType$outboundSchema,
|
|
31
64
|
} from "./volumebycustomertype.js";
|
|
65
|
+
import {
|
|
66
|
+
VolumeShareByCustomerType,
|
|
67
|
+
VolumeShareByCustomerType$inboundSchema,
|
|
68
|
+
VolumeShareByCustomerType$Outbound,
|
|
69
|
+
VolumeShareByCustomerType$outboundSchema,
|
|
70
|
+
} from "./volumesharebycustomertype.js";
|
|
32
71
|
|
|
33
72
|
/**
|
|
34
73
|
* Describes underwriting values (in USD) used for card payment acceptance.
|
|
35
74
|
*/
|
|
36
75
|
export type Underwriting = {
|
|
37
|
-
averageTransactionSize
|
|
38
|
-
maxTransactionSize
|
|
39
|
-
averageMonthlyTransactionVolume
|
|
76
|
+
averageTransactionSize?: number | undefined;
|
|
77
|
+
maxTransactionSize?: number | undefined;
|
|
78
|
+
averageMonthlyTransactionVolume?: number | undefined;
|
|
40
79
|
/**
|
|
41
80
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
42
81
|
*/
|
|
43
|
-
status
|
|
44
|
-
volumeByCustomerType
|
|
45
|
-
cardVolumeDistribution
|
|
46
|
-
fulfillment
|
|
82
|
+
status?: UnderwritingStatus | undefined;
|
|
83
|
+
volumeByCustomerType?: VolumeByCustomerType | undefined;
|
|
84
|
+
cardVolumeDistribution?: CardVolumeDistribution | undefined;
|
|
85
|
+
fulfillment?: FulfillmentDetails | undefined;
|
|
86
|
+
geographicReach?: GeographicReach | undefined;
|
|
87
|
+
businessPresence?: BusinessPresence | undefined;
|
|
88
|
+
pendingLitigation?: PendingLitigation | undefined;
|
|
89
|
+
volumeShareByCustomerType?: VolumeShareByCustomerType | undefined;
|
|
90
|
+
collectFunds?: CollectFunds | undefined;
|
|
91
|
+
moneyTransfer?: MoneyTransfer | undefined;
|
|
92
|
+
sendFunds?: SendFunds | undefined;
|
|
47
93
|
};
|
|
48
94
|
|
|
49
95
|
/** @internal */
|
|
@@ -52,23 +98,37 @@ export const Underwriting$inboundSchema: z.ZodType<
|
|
|
52
98
|
z.ZodTypeDef,
|
|
53
99
|
unknown
|
|
54
100
|
> = z.object({
|
|
55
|
-
averageTransactionSize: z.number().int(),
|
|
56
|
-
maxTransactionSize: z.number().int(),
|
|
57
|
-
averageMonthlyTransactionVolume: z.number().int(),
|
|
58
|
-
status: UnderwritingStatus$inboundSchema,
|
|
59
|
-
volumeByCustomerType: VolumeByCustomerType$inboundSchema,
|
|
60
|
-
cardVolumeDistribution: CardVolumeDistribution$inboundSchema,
|
|
61
|
-
fulfillment: FulfillmentDetails$inboundSchema,
|
|
101
|
+
averageTransactionSize: z.number().int().optional(),
|
|
102
|
+
maxTransactionSize: z.number().int().optional(),
|
|
103
|
+
averageMonthlyTransactionVolume: z.number().int().optional(),
|
|
104
|
+
status: UnderwritingStatus$inboundSchema.optional(),
|
|
105
|
+
volumeByCustomerType: VolumeByCustomerType$inboundSchema.optional(),
|
|
106
|
+
cardVolumeDistribution: CardVolumeDistribution$inboundSchema.optional(),
|
|
107
|
+
fulfillment: FulfillmentDetails$inboundSchema.optional(),
|
|
108
|
+
geographicReach: GeographicReach$inboundSchema.optional(),
|
|
109
|
+
businessPresence: BusinessPresence$inboundSchema.optional(),
|
|
110
|
+
pendingLitigation: PendingLitigation$inboundSchema.optional(),
|
|
111
|
+
volumeShareByCustomerType: VolumeShareByCustomerType$inboundSchema.optional(),
|
|
112
|
+
collectFunds: CollectFunds$inboundSchema.optional(),
|
|
113
|
+
moneyTransfer: MoneyTransfer$inboundSchema.optional(),
|
|
114
|
+
sendFunds: SendFunds$inboundSchema.optional(),
|
|
62
115
|
});
|
|
63
116
|
/** @internal */
|
|
64
117
|
export type Underwriting$Outbound = {
|
|
65
|
-
averageTransactionSize
|
|
66
|
-
maxTransactionSize
|
|
67
|
-
averageMonthlyTransactionVolume
|
|
68
|
-
status
|
|
69
|
-
volumeByCustomerType
|
|
70
|
-
cardVolumeDistribution
|
|
71
|
-
fulfillment
|
|
118
|
+
averageTransactionSize?: number | undefined;
|
|
119
|
+
maxTransactionSize?: number | undefined;
|
|
120
|
+
averageMonthlyTransactionVolume?: number | undefined;
|
|
121
|
+
status?: string | undefined;
|
|
122
|
+
volumeByCustomerType?: VolumeByCustomerType$Outbound | undefined;
|
|
123
|
+
cardVolumeDistribution?: CardVolumeDistribution$Outbound | undefined;
|
|
124
|
+
fulfillment?: FulfillmentDetails$Outbound | undefined;
|
|
125
|
+
geographicReach?: string | undefined;
|
|
126
|
+
businessPresence?: string | undefined;
|
|
127
|
+
pendingLitigation?: string | undefined;
|
|
128
|
+
volumeShareByCustomerType?: VolumeShareByCustomerType$Outbound | undefined;
|
|
129
|
+
collectFunds?: CollectFunds$Outbound | undefined;
|
|
130
|
+
moneyTransfer?: MoneyTransfer$Outbound | undefined;
|
|
131
|
+
sendFunds?: SendFunds$Outbound | undefined;
|
|
72
132
|
};
|
|
73
133
|
|
|
74
134
|
/** @internal */
|
|
@@ -77,13 +137,21 @@ export const Underwriting$outboundSchema: z.ZodType<
|
|
|
77
137
|
z.ZodTypeDef,
|
|
78
138
|
Underwriting
|
|
79
139
|
> = z.object({
|
|
80
|
-
averageTransactionSize: z.number().int(),
|
|
81
|
-
maxTransactionSize: z.number().int(),
|
|
82
|
-
averageMonthlyTransactionVolume: z.number().int(),
|
|
83
|
-
status: UnderwritingStatus$outboundSchema,
|
|
84
|
-
volumeByCustomerType: VolumeByCustomerType$outboundSchema,
|
|
85
|
-
cardVolumeDistribution: CardVolumeDistribution$outboundSchema,
|
|
86
|
-
fulfillment: FulfillmentDetails$outboundSchema,
|
|
140
|
+
averageTransactionSize: z.number().int().optional(),
|
|
141
|
+
maxTransactionSize: z.number().int().optional(),
|
|
142
|
+
averageMonthlyTransactionVolume: z.number().int().optional(),
|
|
143
|
+
status: UnderwritingStatus$outboundSchema.optional(),
|
|
144
|
+
volumeByCustomerType: VolumeByCustomerType$outboundSchema.optional(),
|
|
145
|
+
cardVolumeDistribution: CardVolumeDistribution$outboundSchema.optional(),
|
|
146
|
+
fulfillment: FulfillmentDetails$outboundSchema.optional(),
|
|
147
|
+
geographicReach: GeographicReach$outboundSchema.optional(),
|
|
148
|
+
businessPresence: BusinessPresence$outboundSchema.optional(),
|
|
149
|
+
pendingLitigation: PendingLitigation$outboundSchema.optional(),
|
|
150
|
+
volumeShareByCustomerType: VolumeShareByCustomerType$outboundSchema
|
|
151
|
+
.optional(),
|
|
152
|
+
collectFunds: CollectFunds$outboundSchema.optional(),
|
|
153
|
+
moneyTransfer: MoneyTransfer$outboundSchema.optional(),
|
|
154
|
+
sendFunds: SendFunds$outboundSchema.optional(),
|
|
87
155
|
});
|
|
88
156
|
|
|
89
157
|
export function underwritingToJSON(underwriting: Underwriting): string {
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
UpdateTicketStatus,
|
|
11
|
+
UpdateTicketStatus$inboundSchema,
|
|
12
|
+
UpdateTicketStatus$outboundSchema,
|
|
13
|
+
} from "./updateticketstatus.js";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Request to update a support ticket.
|
|
17
|
+
*/
|
|
18
|
+
export type UpdateTicket = {
|
|
19
|
+
status?: UpdateTicketStatus | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const UpdateTicket$inboundSchema: z.ZodType<
|
|
24
|
+
UpdateTicket,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
status: UpdateTicketStatus$inboundSchema.optional(),
|
|
29
|
+
});
|
|
30
|
+
/** @internal */
|
|
31
|
+
export type UpdateTicket$Outbound = {
|
|
32
|
+
status?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const UpdateTicket$outboundSchema: z.ZodType<
|
|
37
|
+
UpdateTicket$Outbound,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
UpdateTicket
|
|
40
|
+
> = z.object({
|
|
41
|
+
status: UpdateTicketStatus$outboundSchema.optional(),
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export function updateTicketToJSON(updateTicket: UpdateTicket): string {
|
|
45
|
+
return JSON.stringify(UpdateTicket$outboundSchema.parse(updateTicket));
|
|
46
|
+
}
|
|
47
|
+
export function updateTicketFromJSON(
|
|
48
|
+
jsonString: string,
|
|
49
|
+
): SafeParseResult<UpdateTicket, SDKValidationError> {
|
|
50
|
+
return safeParse(
|
|
51
|
+
jsonString,
|
|
52
|
+
(x) => UpdateTicket$inboundSchema.parse(JSON.parse(x)),
|
|
53
|
+
`Failed to parse 'UpdateTicket' from JSON`,
|
|
54
|
+
);
|
|
55
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const UpdateTicketStatus = {
|
|
9
|
+
Closed: "closed",
|
|
10
|
+
} as const;
|
|
11
|
+
export type UpdateTicketStatus = ClosedEnum<typeof UpdateTicketStatus>;
|
|
12
|
+
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const UpdateTicketStatus$inboundSchema: z.ZodNativeEnum<
|
|
15
|
+
typeof UpdateTicketStatus
|
|
16
|
+
> = z.nativeEnum(UpdateTicketStatus);
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const UpdateTicketStatus$outboundSchema: z.ZodNativeEnum<
|
|
19
|
+
typeof UpdateTicketStatus
|
|
20
|
+
> = UpdateTicketStatus$inboundSchema;
|
|
@@ -0,0 +1,124 @@
|
|
|
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
BusinessPresence,
|
|
11
|
+
BusinessPresence$inboundSchema,
|
|
12
|
+
BusinessPresence$outboundSchema,
|
|
13
|
+
} from "./businesspresence.js";
|
|
14
|
+
import {
|
|
15
|
+
CollectFunds,
|
|
16
|
+
CollectFunds$inboundSchema,
|
|
17
|
+
CollectFunds$Outbound,
|
|
18
|
+
CollectFunds$outboundSchema,
|
|
19
|
+
} from "./collectfunds.js";
|
|
20
|
+
import {
|
|
21
|
+
GeographicReach,
|
|
22
|
+
GeographicReach$inboundSchema,
|
|
23
|
+
GeographicReach$outboundSchema,
|
|
24
|
+
} from "./geographicreach.js";
|
|
25
|
+
import {
|
|
26
|
+
MoneyTransfer,
|
|
27
|
+
MoneyTransfer$inboundSchema,
|
|
28
|
+
MoneyTransfer$Outbound,
|
|
29
|
+
MoneyTransfer$outboundSchema,
|
|
30
|
+
} from "./moneytransfer.js";
|
|
31
|
+
import {
|
|
32
|
+
PendingLitigation,
|
|
33
|
+
PendingLitigation$inboundSchema,
|
|
34
|
+
PendingLitigation$outboundSchema,
|
|
35
|
+
} from "./pendinglitigation.js";
|
|
36
|
+
import {
|
|
37
|
+
SendFunds,
|
|
38
|
+
SendFunds$inboundSchema,
|
|
39
|
+
SendFunds$Outbound,
|
|
40
|
+
SendFunds$outboundSchema,
|
|
41
|
+
} from "./sendfunds.js";
|
|
42
|
+
import {
|
|
43
|
+
SubmissionIntent,
|
|
44
|
+
SubmissionIntent$inboundSchema,
|
|
45
|
+
SubmissionIntent$outboundSchema,
|
|
46
|
+
} from "./submissionintent.js";
|
|
47
|
+
import {
|
|
48
|
+
VolumeShareByCustomerType,
|
|
49
|
+
VolumeShareByCustomerType$inboundSchema,
|
|
50
|
+
VolumeShareByCustomerType$Outbound,
|
|
51
|
+
VolumeShareByCustomerType$outboundSchema,
|
|
52
|
+
} from "./volumesharebycustomertype.js";
|
|
53
|
+
|
|
54
|
+
export type UpsertUnderwriting = {
|
|
55
|
+
geographicReach?: GeographicReach | undefined;
|
|
56
|
+
businessPresence?: BusinessPresence | undefined;
|
|
57
|
+
pendingLitigation?: PendingLitigation | undefined;
|
|
58
|
+
volumeShareByCustomerType?: VolumeShareByCustomerType | undefined;
|
|
59
|
+
collectFunds?: CollectFunds | undefined;
|
|
60
|
+
moneyTransfer?: MoneyTransfer | undefined;
|
|
61
|
+
sendFunds?: SendFunds | undefined;
|
|
62
|
+
submissionIntent?: SubmissionIntent | undefined;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const UpsertUnderwriting$inboundSchema: z.ZodType<
|
|
67
|
+
UpsertUnderwriting,
|
|
68
|
+
z.ZodTypeDef,
|
|
69
|
+
unknown
|
|
70
|
+
> = z.object({
|
|
71
|
+
geographicReach: GeographicReach$inboundSchema.optional(),
|
|
72
|
+
businessPresence: BusinessPresence$inboundSchema.optional(),
|
|
73
|
+
pendingLitigation: PendingLitigation$inboundSchema.optional(),
|
|
74
|
+
volumeShareByCustomerType: VolumeShareByCustomerType$inboundSchema.optional(),
|
|
75
|
+
collectFunds: CollectFunds$inboundSchema.optional(),
|
|
76
|
+
moneyTransfer: MoneyTransfer$inboundSchema.optional(),
|
|
77
|
+
sendFunds: SendFunds$inboundSchema.optional(),
|
|
78
|
+
submissionIntent: SubmissionIntent$inboundSchema.optional(),
|
|
79
|
+
});
|
|
80
|
+
/** @internal */
|
|
81
|
+
export type UpsertUnderwriting$Outbound = {
|
|
82
|
+
geographicReach?: string | undefined;
|
|
83
|
+
businessPresence?: string | undefined;
|
|
84
|
+
pendingLitigation?: string | undefined;
|
|
85
|
+
volumeShareByCustomerType?: VolumeShareByCustomerType$Outbound | undefined;
|
|
86
|
+
collectFunds?: CollectFunds$Outbound | undefined;
|
|
87
|
+
moneyTransfer?: MoneyTransfer$Outbound | undefined;
|
|
88
|
+
sendFunds?: SendFunds$Outbound | undefined;
|
|
89
|
+
submissionIntent?: string | undefined;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
/** @internal */
|
|
93
|
+
export const UpsertUnderwriting$outboundSchema: z.ZodType<
|
|
94
|
+
UpsertUnderwriting$Outbound,
|
|
95
|
+
z.ZodTypeDef,
|
|
96
|
+
UpsertUnderwriting
|
|
97
|
+
> = z.object({
|
|
98
|
+
geographicReach: GeographicReach$outboundSchema.optional(),
|
|
99
|
+
businessPresence: BusinessPresence$outboundSchema.optional(),
|
|
100
|
+
pendingLitigation: PendingLitigation$outboundSchema.optional(),
|
|
101
|
+
volumeShareByCustomerType: VolumeShareByCustomerType$outboundSchema
|
|
102
|
+
.optional(),
|
|
103
|
+
collectFunds: CollectFunds$outboundSchema.optional(),
|
|
104
|
+
moneyTransfer: MoneyTransfer$outboundSchema.optional(),
|
|
105
|
+
sendFunds: SendFunds$outboundSchema.optional(),
|
|
106
|
+
submissionIntent: SubmissionIntent$outboundSchema.optional(),
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
export function upsertUnderwritingToJSON(
|
|
110
|
+
upsertUnderwriting: UpsertUnderwriting,
|
|
111
|
+
): string {
|
|
112
|
+
return JSON.stringify(
|
|
113
|
+
UpsertUnderwriting$outboundSchema.parse(upsertUnderwriting),
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
export function upsertUnderwritingFromJSON(
|
|
117
|
+
jsonString: string,
|
|
118
|
+
): SafeParseResult<UpsertUnderwriting, SDKValidationError> {
|
|
119
|
+
return safeParse(
|
|
120
|
+
jsonString,
|
|
121
|
+
(x) => UpsertUnderwriting$inboundSchema.parse(JSON.parse(x)),
|
|
122
|
+
`Failed to parse 'UpsertUnderwriting' from JSON`,
|
|
123
|
+
);
|
|
124
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type VolumeShareByCustomerType = {
|
|
11
|
+
business?: number | undefined;
|
|
12
|
+
consumer?: number | undefined;
|
|
13
|
+
p2p?: number | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const VolumeShareByCustomerType$inboundSchema: z.ZodType<
|
|
18
|
+
VolumeShareByCustomerType,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
business: z.number().int().optional(),
|
|
23
|
+
consumer: z.number().int().optional(),
|
|
24
|
+
p2p: z.number().int().optional(),
|
|
25
|
+
});
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type VolumeShareByCustomerType$Outbound = {
|
|
28
|
+
business?: number | undefined;
|
|
29
|
+
consumer?: number | undefined;
|
|
30
|
+
p2p?: number | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const VolumeShareByCustomerType$outboundSchema: z.ZodType<
|
|
35
|
+
VolumeShareByCustomerType$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
VolumeShareByCustomerType
|
|
38
|
+
> = z.object({
|
|
39
|
+
business: z.number().int().optional(),
|
|
40
|
+
consumer: z.number().int().optional(),
|
|
41
|
+
p2p: z.number().int().optional(),
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export function volumeShareByCustomerTypeToJSON(
|
|
45
|
+
volumeShareByCustomerType: VolumeShareByCustomerType,
|
|
46
|
+
): string {
|
|
47
|
+
return JSON.stringify(
|
|
48
|
+
VolumeShareByCustomerType$outboundSchema.parse(volumeShareByCustomerType),
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
export function volumeShareByCustomerTypeFromJSON(
|
|
52
|
+
jsonString: string,
|
|
53
|
+
): SafeParseResult<VolumeShareByCustomerType, SDKValidationError> {
|
|
54
|
+
return safeParse(
|
|
55
|
+
jsonString,
|
|
56
|
+
(x) => VolumeShareByCustomerType$inboundSchema.parse(JSON.parse(x)),
|
|
57
|
+
`Failed to parse 'VolumeShareByCustomerType' from JSON`,
|
|
58
|
+
);
|
|
59
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type VolumeShareByCustomerTypeError = {
|
|
11
|
+
business?: string | undefined;
|
|
12
|
+
consumer?: string | undefined;
|
|
13
|
+
p2p?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const VolumeShareByCustomerTypeError$inboundSchema: z.ZodType<
|
|
18
|
+
VolumeShareByCustomerTypeError,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
business: z.string().optional(),
|
|
23
|
+
consumer: z.string().optional(),
|
|
24
|
+
p2p: z.string().optional(),
|
|
25
|
+
});
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type VolumeShareByCustomerTypeError$Outbound = {
|
|
28
|
+
business?: string | undefined;
|
|
29
|
+
consumer?: string | undefined;
|
|
30
|
+
p2p?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const VolumeShareByCustomerTypeError$outboundSchema: z.ZodType<
|
|
35
|
+
VolumeShareByCustomerTypeError$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
VolumeShareByCustomerTypeError
|
|
38
|
+
> = z.object({
|
|
39
|
+
business: z.string().optional(),
|
|
40
|
+
consumer: z.string().optional(),
|
|
41
|
+
p2p: z.string().optional(),
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export function volumeShareByCustomerTypeErrorToJSON(
|
|
45
|
+
volumeShareByCustomerTypeError: VolumeShareByCustomerTypeError,
|
|
46
|
+
): string {
|
|
47
|
+
return JSON.stringify(
|
|
48
|
+
VolumeShareByCustomerTypeError$outboundSchema.parse(
|
|
49
|
+
volumeShareByCustomerTypeError,
|
|
50
|
+
),
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
export function volumeShareByCustomerTypeErrorFromJSON(
|
|
54
|
+
jsonString: string,
|
|
55
|
+
): SafeParseResult<VolumeShareByCustomerTypeError, SDKValidationError> {
|
|
56
|
+
return safeParse(
|
|
57
|
+
jsonString,
|
|
58
|
+
(x) => VolumeShareByCustomerTypeError$inboundSchema.parse(JSON.parse(x)),
|
|
59
|
+
`Failed to parse 'VolumeShareByCustomerTypeError' from JSON`,
|
|
60
|
+
);
|
|
61
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as components from "../components/index.js";
|
|
7
|
+
import { MoovError } from "./mooverror.js";
|
|
8
|
+
|
|
9
|
+
export type CreateTicketErrorData = {
|
|
10
|
+
title?: string | undefined;
|
|
11
|
+
body?: string | undefined;
|
|
12
|
+
author?: string | undefined;
|
|
13
|
+
contact?: components.CreateTicketContactError | undefined;
|
|
14
|
+
foreignID?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export class CreateTicketError extends MoovError {
|
|
18
|
+
title?: string | undefined;
|
|
19
|
+
author?: string | undefined;
|
|
20
|
+
contact?: components.CreateTicketContactError | undefined;
|
|
21
|
+
foreignID?: string | undefined;
|
|
22
|
+
|
|
23
|
+
/** The original data that was passed to this error instance. */
|
|
24
|
+
data$: CreateTicketErrorData;
|
|
25
|
+
|
|
26
|
+
constructor(
|
|
27
|
+
err: CreateTicketErrorData,
|
|
28
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
29
|
+
) {
|
|
30
|
+
const message = "message" in err && typeof err.message === "string"
|
|
31
|
+
? err.message
|
|
32
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
33
|
+
super(message, httpMeta);
|
|
34
|
+
this.data$ = err;
|
|
35
|
+
if (err.title != null) this.title = err.title;
|
|
36
|
+
if (err.author != null) this.author = err.author;
|
|
37
|
+
if (err.contact != null) this.contact = err.contact;
|
|
38
|
+
if (err.foreignID != null) this.foreignID = err.foreignID;
|
|
39
|
+
|
|
40
|
+
this.name = "CreateTicketError";
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const CreateTicketError$inboundSchema: z.ZodType<
|
|
46
|
+
CreateTicketError,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
unknown
|
|
49
|
+
> = z.object({
|
|
50
|
+
title: z.string().optional(),
|
|
51
|
+
body: z.string().optional(),
|
|
52
|
+
author: z.string().optional(),
|
|
53
|
+
contact: components.CreateTicketContactError$inboundSchema.optional(),
|
|
54
|
+
foreignID: z.string().optional(),
|
|
55
|
+
request$: z.instanceof(Request),
|
|
56
|
+
response$: z.instanceof(Response),
|
|
57
|
+
body$: z.string(),
|
|
58
|
+
})
|
|
59
|
+
.transform((v) => {
|
|
60
|
+
return new CreateTicketError(v, {
|
|
61
|
+
request: v.request$,
|
|
62
|
+
response: v.response$,
|
|
63
|
+
body: v.body$,
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export type CreateTicketError$Outbound = {
|
|
69
|
+
title?: string | undefined;
|
|
70
|
+
body?: string | undefined;
|
|
71
|
+
author?: string | undefined;
|
|
72
|
+
contact?: components.CreateTicketContactError$Outbound | undefined;
|
|
73
|
+
foreignID?: string | undefined;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const CreateTicketError$outboundSchema: z.ZodType<
|
|
78
|
+
CreateTicketError$Outbound,
|
|
79
|
+
z.ZodTypeDef,
|
|
80
|
+
CreateTicketError
|
|
81
|
+
> = z.instanceof(CreateTicketError)
|
|
82
|
+
.transform(v => v.data$)
|
|
83
|
+
.pipe(z.object({
|
|
84
|
+
title: z.string().optional(),
|
|
85
|
+
body: z.string().optional(),
|
|
86
|
+
author: z.string().optional(),
|
|
87
|
+
contact: components.CreateTicketContactError$outboundSchema.optional(),
|
|
88
|
+
foreignID: z.string().optional(),
|
|
89
|
+
}));
|
|
@@ -14,6 +14,7 @@ export * from "./connectaccountrequestvalidationerror.js";
|
|
|
14
14
|
export * from "./createaccounterror.js";
|
|
15
15
|
export * from "./createpaymentlinkerror.js";
|
|
16
16
|
export * from "./createsweepconfigerror.js";
|
|
17
|
+
export * from "./createticketerror.js";
|
|
17
18
|
export * from "./createwalletvalidationerror.js";
|
|
18
19
|
export * from "./createwebhookvalidationerror.js";
|
|
19
20
|
export * from "./feeplanagreementerror.js";
|
|
@@ -51,5 +52,7 @@ export * from "./transfervalidationerror.js";
|
|
|
51
52
|
export * from "./updatecarderror.js";
|
|
52
53
|
export * from "./updateissuedcarderror.js";
|
|
53
54
|
export * from "./updatepaymentlinkerror.js";
|
|
55
|
+
export * from "./updateticketerror.js";
|
|
54
56
|
export * from "./updateunderwritingerror.js";
|
|
55
57
|
export * from "./updatewebhookvalidationerror.js";
|
|
58
|
+
export * from "./upsertunderwritingerror.js";
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { MoovError } from "./mooverror.js";
|
|
7
|
+
|
|
8
|
+
export type UpdateTicketErrorData = {
|
|
9
|
+
status?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export class UpdateTicketError extends MoovError {
|
|
13
|
+
status?: string | undefined;
|
|
14
|
+
|
|
15
|
+
/** The original data that was passed to this error instance. */
|
|
16
|
+
data$: UpdateTicketErrorData;
|
|
17
|
+
|
|
18
|
+
constructor(
|
|
19
|
+
err: UpdateTicketErrorData,
|
|
20
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
21
|
+
) {
|
|
22
|
+
const message = "message" in err && typeof err.message === "string"
|
|
23
|
+
? err.message
|
|
24
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
25
|
+
super(message, httpMeta);
|
|
26
|
+
this.data$ = err;
|
|
27
|
+
if (err.status != null) this.status = err.status;
|
|
28
|
+
|
|
29
|
+
this.name = "UpdateTicketError";
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const UpdateTicketError$inboundSchema: z.ZodType<
|
|
35
|
+
UpdateTicketError,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
unknown
|
|
38
|
+
> = z.object({
|
|
39
|
+
status: z.string().optional(),
|
|
40
|
+
request$: z.instanceof(Request),
|
|
41
|
+
response$: z.instanceof(Response),
|
|
42
|
+
body$: z.string(),
|
|
43
|
+
})
|
|
44
|
+
.transform((v) => {
|
|
45
|
+
return new UpdateTicketError(v, {
|
|
46
|
+
request: v.request$,
|
|
47
|
+
response: v.response$,
|
|
48
|
+
body: v.body$,
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type UpdateTicketError$Outbound = {
|
|
54
|
+
status?: string | undefined;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const UpdateTicketError$outboundSchema: z.ZodType<
|
|
59
|
+
UpdateTicketError$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
UpdateTicketError
|
|
62
|
+
> = z.instanceof(UpdateTicketError)
|
|
63
|
+
.transform(v => v.data$)
|
|
64
|
+
.pipe(z.object({
|
|
65
|
+
status: z.string().optional(),
|
|
66
|
+
}));
|