@moovio/sdk 26.4.0-dev.5 → 26.4.0-dev.7
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 +108 -50
- package/bin/mcp-server.js +2684 -820
- package/bin/mcp-server.js.map +232 -186
- package/examples/package-lock.json +1 -1
- package/funcs/cardsLink.d.ts +1 -1
- package/funcs/cardsLink.d.ts.map +1 -1
- package/funcs/cardsLink.js +1 -1
- package/funcs/cardsLink.js.map +1 -1
- package/funcs/invoicesCreateInvoice.d.ts +18 -0
- package/funcs/invoicesCreateInvoice.d.ts.map +1 -0
- package/funcs/invoicesCreateInvoice.js +139 -0
- package/funcs/invoicesCreateInvoice.js.map +1 -0
- package/funcs/invoicesCreateInvoicePayment.d.ts +19 -0
- package/funcs/invoicesCreateInvoicePayment.d.ts.map +1 -0
- package/funcs/invoicesCreateInvoicePayment.js +148 -0
- package/funcs/invoicesCreateInvoicePayment.js.map +1 -0
- package/funcs/invoicesGetInvoice.d.ts +17 -0
- package/funcs/invoicesGetInvoice.d.ts.map +1 -0
- package/funcs/invoicesGetInvoice.js +129 -0
- package/funcs/invoicesGetInvoice.js.map +1 -0
- package/funcs/invoicesListInvoicePayments.d.ts +17 -0
- package/funcs/invoicesListInvoicePayments.d.ts.map +1 -0
- package/funcs/invoicesListInvoicePayments.js +129 -0
- package/funcs/invoicesListInvoicePayments.js.map +1 -0
- package/funcs/invoicesListInvoices.d.ts +18 -0
- package/funcs/invoicesListInvoices.d.ts.map +1 -0
- package/funcs/invoicesListInvoices.js +139 -0
- package/funcs/invoicesListInvoices.js.map +1 -0
- package/funcs/invoicesUpdateInvoice.d.ts +18 -0
- package/funcs/invoicesUpdateInvoice.d.ts.map +1 -0
- package/funcs/invoicesUpdateInvoice.js +143 -0
- package/funcs/invoicesUpdateInvoice.js.map +1 -0
- package/funcs/paymentLinksList.js +1 -2
- package/funcs/paymentLinksList.js.map +1 -1
- 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/invoicesCreateInvoice.d.ts +8 -0
- package/mcp-server/tools/invoicesCreateInvoice.d.ts.map +1 -0
- package/mcp-server/tools/invoicesCreateInvoice.js +65 -0
- package/mcp-server/tools/invoicesCreateInvoice.js.map +1 -0
- package/mcp-server/tools/invoicesCreateInvoicePayment.d.ts +8 -0
- package/mcp-server/tools/invoicesCreateInvoicePayment.d.ts.map +1 -0
- package/mcp-server/tools/invoicesCreateInvoicePayment.js +66 -0
- package/mcp-server/tools/invoicesCreateInvoicePayment.js.map +1 -0
- package/mcp-server/tools/invoicesGetInvoice.d.ts +8 -0
- package/mcp-server/tools/invoicesGetInvoice.d.ts.map +1 -0
- package/mcp-server/tools/invoicesGetInvoice.js +65 -0
- package/mcp-server/tools/invoicesGetInvoice.js.map +1 -0
- package/mcp-server/tools/invoicesListInvoicePayments.d.ts +8 -0
- package/mcp-server/tools/invoicesListInvoicePayments.d.ts.map +1 -0
- package/mcp-server/tools/invoicesListInvoicePayments.js +65 -0
- package/mcp-server/tools/invoicesListInvoicePayments.js.map +1 -0
- package/mcp-server/tools/invoicesListInvoices.d.ts +8 -0
- package/mcp-server/tools/invoicesListInvoices.d.ts.map +1 -0
- package/mcp-server/tools/invoicesListInvoices.js +65 -0
- package/mcp-server/tools/invoicesListInvoices.js.map +1 -0
- package/mcp-server/tools/invoicesUpdateInvoice.d.ts +8 -0
- package/mcp-server/tools/invoicesUpdateInvoice.d.ts.map +1 -0
- package/mcp-server/tools/invoicesUpdateInvoice.js +65 -0
- package/mcp-server/tools/invoicesUpdateInvoice.js.map +1 -0
- package/models/components/amountdecimalupdate.d.ts +29 -0
- package/models/components/amountdecimalupdate.d.ts.map +1 -0
- package/models/components/amountdecimalupdate.js +60 -0
- package/models/components/amountdecimalupdate.js.map +1 -0
- package/models/components/createinvoice.d.ts +35 -0
- package/models/components/createinvoice.d.ts.map +1 -0
- package/models/components/createinvoice.js +72 -0
- package/models/components/createinvoice.js.map +1 -0
- package/models/components/createinvoicelineitem.d.ts +48 -0
- package/models/components/createinvoicelineitem.d.ts.map +1 -0
- package/models/components/createinvoicelineitem.js +68 -0
- package/models/components/createinvoicelineitem.js.map +1 -0
- package/models/components/createinvoicelineitemoption.d.ts +39 -0
- package/models/components/createinvoicelineitemoption.d.ts.map +1 -0
- package/models/components/createinvoicelineitemoption.js +65 -0
- package/models/components/createinvoicelineitemoption.js.map +1 -0
- package/models/components/createinvoicelineitemoptionvalidationerror.d.ts +24 -0
- package/models/components/createinvoicelineitemoptionvalidationerror.d.ts.map +1 -0
- package/models/components/createinvoicelineitemoptionvalidationerror.js +65 -0
- package/models/components/createinvoicelineitemoptionvalidationerror.js.map +1 -0
- package/models/components/createinvoicelineitems.d.ts +24 -0
- package/models/components/createinvoicelineitems.d.ts.map +1 -0
- package/models/components/createinvoicelineitems.js +59 -0
- package/models/components/createinvoicelineitems.js.map +1 -0
- package/models/components/createinvoicelineitemsupdate.d.ts +24 -0
- package/models/components/createinvoicelineitemsupdate.d.ts.map +1 -0
- package/models/components/createinvoicelineitemsupdate.js +59 -0
- package/models/components/createinvoicelineitemsupdate.js.map +1 -0
- package/models/components/createinvoicelineitemsvalidationerror.d.ts +22 -0
- package/models/components/createinvoicelineitemsvalidationerror.d.ts.map +1 -0
- package/models/components/createinvoicelineitemsvalidationerror.js +61 -0
- package/models/components/createinvoicelineitemsvalidationerror.js.map +1 -0
- package/models/components/createinvoicelineitemvalidationerror.d.ts +31 -0
- package/models/components/createinvoicelineitemvalidationerror.d.ts.map +1 -0
- package/models/components/createinvoicelineitemvalidationerror.js +70 -0
- package/models/components/createinvoicelineitemvalidationerror.js.map +1 -0
- package/models/components/createinvoicepayment.d.ts +24 -0
- package/models/components/createinvoicepayment.d.ts.map +1 -0
- package/models/components/createinvoicepayment.js +66 -0
- package/models/components/createinvoicepayment.js.map +1 -0
- package/models/components/index.d.ts +23 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +23 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invoice.d.ts +93 -0
- package/models/components/invoice.d.ts.map +1 -0
- package/models/components/invoice.js +107 -0
- package/models/components/invoice.js.map +1 -0
- package/models/components/invoiceexternalpayment.d.ts +21 -0
- package/models/components/invoiceexternalpayment.d.ts.map +1 -0
- package/models/components/invoiceexternalpayment.js +63 -0
- package/models/components/invoiceexternalpayment.js.map +1 -0
- package/models/components/invoicelineitem.d.ts +54 -0
- package/models/components/invoicelineitem.d.ts.map +1 -0
- package/models/components/invoicelineitem.js +71 -0
- package/models/components/invoicelineitem.js.map +1 -0
- package/models/components/invoicelineitemimagemetadata.d.ts +35 -0
- package/models/components/invoicelineitemimagemetadata.d.ts.map +1 -0
- package/models/components/invoicelineitemimagemetadata.js +64 -0
- package/models/components/invoicelineitemimagemetadata.js.map +1 -0
- package/models/components/invoicelineitemoption.d.ts +45 -0
- package/models/components/invoicelineitemoption.d.ts.map +1 -0
- package/models/components/invoicelineitemoption.js +68 -0
- package/models/components/invoicelineitemoption.js.map +1 -0
- package/models/components/invoicelineitemoptionvalidationerror.d.ts +24 -0
- package/models/components/invoicelineitemoptionvalidationerror.d.ts.map +1 -0
- package/models/components/invoicelineitemoptionvalidationerror.js +65 -0
- package/models/components/invoicelineitemoptionvalidationerror.js.map +1 -0
- package/models/components/invoicelineitems.d.ts +24 -0
- package/models/components/invoicelineitems.d.ts.map +1 -0
- package/models/components/invoicelineitems.js +59 -0
- package/models/components/invoicelineitems.js.map +1 -0
- package/models/components/invoicelineitemsvalidationerror.d.ts +22 -0
- package/models/components/invoicelineitemsvalidationerror.d.ts.map +1 -0
- package/models/components/invoicelineitemsvalidationerror.js +59 -0
- package/models/components/invoicelineitemsvalidationerror.js.map +1 -0
- package/models/components/invoicelineitemvalidationerror.d.ts +31 -0
- package/models/components/invoicelineitemvalidationerror.d.ts.map +1 -0
- package/models/components/invoicelineitemvalidationerror.js +70 -0
- package/models/components/invoicelineitemvalidationerror.js.map +1 -0
- package/models/components/invoicepayment.d.ts +35 -0
- package/models/components/invoicepayment.d.ts.map +1 -0
- package/models/components/invoicepayment.js +70 -0
- package/models/components/invoicepayment.js.map +1 -0
- package/models/components/invoicepaymenttype.d.ts +12 -0
- package/models/components/invoicepaymenttype.d.ts.map +1 -0
- package/models/components/invoicepaymenttype.js +49 -0
- package/models/components/invoicepaymenttype.js.map +1 -0
- package/models/components/invoicetransferpayment.d.ts +20 -0
- package/models/components/invoicetransferpayment.d.ts.map +1 -0
- package/models/components/invoicetransferpayment.js +58 -0
- package/models/components/invoicetransferpayment.js.map +1 -0
- 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/transfer.d.ts +5 -0
- package/models/components/transfer.d.ts.map +1 -1
- package/models/components/transfer.js +2 -0
- package/models/components/transfer.js.map +1 -1
- package/models/components/updateinvoice.d.ts +40 -0
- package/models/components/updateinvoice.d.ts.map +1 -0
- package/models/components/updateinvoice.js +71 -0
- package/models/components/updateinvoice.js.map +1 -0
- package/models/components/wallettransactiontype.d.ts +1 -0
- package/models/components/wallettransactiontype.d.ts.map +1 -1
- package/models/components/wallettransactiontype.js +1 -0
- package/models/components/wallettransactiontype.js.map +1 -1
- package/models/errors/createinvoiceerror.d.ts +40 -0
- package/models/errors/createinvoiceerror.d.ts.map +1 -0
- package/models/errors/createinvoiceerror.js +100 -0
- package/models/errors/createinvoiceerror.js.map +1 -0
- package/models/errors/createinvoicepaymenterror.d.ts +34 -0
- package/models/errors/createinvoicepaymenterror.d.ts.map +1 -0
- package/models/errors/createinvoicepaymenterror.js +88 -0
- package/models/errors/createinvoicepaymenterror.js.map +1 -0
- package/models/errors/duplicatecarderror.d.ts +45 -0
- package/models/errors/duplicatecarderror.d.ts.map +1 -0
- package/models/errors/duplicatecarderror.js +78 -0
- package/models/errors/duplicatecarderror.js.map +1 -0
- package/models/errors/index.d.ts +5 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +5 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/listinvoicesvalidationerror.d.ts +45 -0
- package/models/errors/listinvoicesvalidationerror.d.ts.map +1 -0
- package/models/errors/listinvoicesvalidationerror.js +107 -0
- package/models/errors/listinvoicesvalidationerror.js.map +1 -0
- package/models/errors/transfer.d.ts +9 -0
- package/models/errors/transfer.d.ts.map +1 -1
- package/models/errors/transfer.js +4 -0
- package/models/errors/transfer.js.map +1 -1
- package/models/errors/updateinvoiceerror.d.ts +40 -0
- package/models/errors/updateinvoiceerror.d.ts.map +1 -0
- package/models/errors/updateinvoiceerror.js +99 -0
- package/models/errors/updateinvoiceerror.js.map +1 -0
- package/models/operations/acceptdispute.d.ts +1 -1
- package/models/operations/assignaccountcountries.d.ts +1 -1
- package/models/operations/cancelschedule.d.ts +1 -1
- package/models/operations/completebankaccountverification.d.ts +1 -1
- package/models/operations/completemicrodeposits.d.ts +1 -1
- package/models/operations/connectaccount.d.ts +1 -1
- package/models/operations/createaccesstoken.d.ts +1 -1
- package/models/operations/createaccount.d.ts +1 -1
- package/models/operations/createapplepaysession.d.ts +1 -1
- package/models/operations/createbrand.d.ts +1 -1
- package/models/operations/createcancellation.d.ts +1 -1
- package/models/operations/createfeeplanagreements.d.ts +1 -1
- package/models/operations/createinvoice.d.ts +66 -0
- package/models/operations/createinvoice.d.ts.map +1 -0
- package/models/operations/createinvoice.js +122 -0
- package/models/operations/createinvoice.js.map +1 -0
- package/models/operations/createinvoicepayment.d.ts +68 -0
- package/models/operations/createinvoicepayment.d.ts.map +1 -0
- package/models/operations/createinvoicepayment.js +124 -0
- package/models/operations/createinvoicepayment.js.map +1 -0
- package/models/operations/createonboardinginvite.d.ts +1 -1
- package/models/operations/createpaymentlink.d.ts +1 -1
- package/models/operations/createproduct.d.ts +1 -1
- package/models/operations/createreceipts.d.ts +1 -1
- package/models/operations/createrepresentative.d.ts +1 -1
- package/models/operations/createreversal.d.ts +1 -1
- package/models/operations/createschedule.d.ts +1 -1
- package/models/operations/createsweepconfig.d.ts +1 -1
- package/models/operations/createterminalapplication.d.ts +1 -1
- package/models/operations/createterminalapplicationversion.d.ts +1 -1
- package/models/operations/createticket.d.ts +1 -1
- package/models/operations/createtransfer.d.ts +1 -1
- package/models/operations/createtransferoptions.d.ts +1 -1
- package/models/operations/createwallet.d.ts +1 -1
- package/models/operations/createwebhook.d.ts +1 -1
- package/models/operations/deletedisputeevidencefile.d.ts +1 -1
- package/models/operations/deleteimage.d.ts +1 -1
- package/models/operations/deleterepresentative.d.ts +1 -1
- package/models/operations/deleteterminalapplication.d.ts +1 -1
- package/models/operations/disablebankaccount.d.ts +1 -1
- package/models/operations/disablecapability.d.ts +1 -1
- package/models/operations/disablecard.d.ts +1 -1
- package/models/operations/disablepaymentlink.d.ts +1 -1
- package/models/operations/disableproduct.d.ts +1 -1
- package/models/operations/disablewebhook.d.ts +1 -1
- package/models/operations/disconnectaccount.d.ts +1 -1
- package/models/operations/generateendtoendkey.d.ts +1 -1
- package/models/operations/getaccount.d.ts +1 -1
- package/models/operations/getaccountcountries.d.ts +1 -1
- package/models/operations/getaccountterminalapplication.d.ts +1 -1
- package/models/operations/getadjustment.d.ts +1 -1
- package/models/operations/getapplepaymerchantdomains.d.ts +1 -1
- package/models/operations/getavatar.d.ts +1 -1
- package/models/operations/getbankaccount.d.ts +1 -1
- package/models/operations/getbankaccountverification.d.ts +1 -1
- package/models/operations/getbrand.d.ts +1 -1
- package/models/operations/getcancellation.d.ts +1 -1
- package/models/operations/getcapability.d.ts +1 -1
- package/models/operations/getcard.d.ts +1 -1
- package/models/operations/getdispute.d.ts +1 -1
- package/models/operations/getdisputeevidence.d.ts +1 -1
- package/models/operations/getdisputeevidencedata.d.ts +1 -1
- package/models/operations/getenrichmentaddress.d.ts +1 -1
- package/models/operations/getenrichmentprofile.d.ts +1 -1
- package/models/operations/getfiledetails.d.ts +1 -1
- package/models/operations/getfullissuedcard.d.ts +1 -1
- package/models/operations/getimagemetadata.d.ts +1 -1
- package/models/operations/getinvoice.d.ts +66 -0
- package/models/operations/getinvoice.d.ts.map +1 -0
- package/models/operations/getinvoice.js +114 -0
- package/models/operations/getinvoice.js.map +1 -0
- package/models/operations/getissuedcard.d.ts +1 -1
- package/models/operations/getissuedcardauthorization.d.ts +1 -1
- package/models/operations/getissuedcardtransaction.d.ts +1 -1
- package/models/operations/getmerchantprocessingagreement.d.ts +1 -1
- package/models/operations/getonboardinginvite.d.ts +1 -1
- package/models/operations/getpaymentlink.d.ts +1 -1
- package/models/operations/getpaymentlinkqrcode.d.ts +1 -1
- package/models/operations/getpaymentmethod.d.ts +1 -1
- package/models/operations/getproduct.d.ts +1 -1
- package/models/operations/getpublicimage.d.ts +2 -2
- package/models/operations/getpublicimage.d.ts.map +1 -1
- package/models/operations/getpublicimage.js +2 -2
- package/models/operations/getpublicimage.js.map +1 -1
- package/models/operations/getrefund.d.ts +1 -1
- package/models/operations/getrepresentative.d.ts +1 -1
- package/models/operations/getresidual.d.ts +1 -1
- package/models/operations/getscheduledoccurrence.d.ts +1 -1
- package/models/operations/getschedules.d.ts +1 -1
- package/models/operations/getstatement.d.ts +1 -1
- package/models/operations/getsweep.d.ts +1 -1
- package/models/operations/getsweepconfig.d.ts +1 -1
- package/models/operations/getterminalapplication.d.ts +1 -1
- package/models/operations/getterminalconfiguration.d.ts +1 -1
- package/models/operations/gettermsofservicetoken.d.ts +1 -1
- package/models/operations/getticket.d.ts +1 -1
- package/models/operations/gettransfer.d.ts +1 -1
- package/models/operations/getunderwriting.d.ts +1 -1
- package/models/operations/getwallet.d.ts +1 -1
- package/models/operations/getwallettransaction.d.ts +1 -1
- package/models/operations/getwebhook.d.ts +1 -1
- package/models/operations/getwebhooksecret.d.ts +1 -1
- 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/initiatebankaccountverification.d.ts +1 -1
- package/models/operations/initiatemicrodeposits.d.ts +1 -1
- package/models/operations/initiaterefund.d.ts +1 -1
- package/models/operations/linkaccountterminalapplication.d.ts +1 -1
- package/models/operations/linkapplepaytoken.d.ts +1 -1
- package/models/operations/linkbankaccount.d.ts +1 -1
- package/models/operations/linkcard.d.ts +1 -1
- package/models/operations/listaccounts.d.ts +1 -1
- package/models/operations/listaccountterminalapplications.d.ts +1 -1
- package/models/operations/listadjustments.d.ts +1 -1
- package/models/operations/listbankaccounts.d.ts +1 -1
- package/models/operations/listcapabilities.d.ts +1 -1
- package/models/operations/listcards.d.ts +1 -1
- package/models/operations/listconnectedaccountsforaccount.d.ts +1 -1
- package/models/operations/listdisputeevidence.d.ts +1 -1
- package/models/operations/listdisputes.d.ts +1 -1
- package/models/operations/listeventtypes.d.ts +1 -1
- package/models/operations/listfeeplanagreements.d.ts +1 -1
- package/models/operations/listfeeplans.d.ts +1 -1
- package/models/operations/listfeerevenue.d.ts +1 -1
- package/models/operations/listfeesfetch.d.ts +1 -1
- package/models/operations/listfiles.d.ts +1 -1
- package/models/operations/listimagemetadata.d.ts +1 -1
- package/models/operations/listindustries.d.ts +1 -1
- package/models/operations/listinstitutions.d.ts +1 -1
- package/models/operations/listinvoicepayments.d.ts +66 -0
- package/models/operations/listinvoicepayments.d.ts.map +1 -0
- package/models/operations/listinvoicepayments.js +114 -0
- package/models/operations/listinvoicepayments.js.map +1 -0
- package/models/operations/listinvoices.d.ts +80 -0
- package/models/operations/listinvoices.d.ts.map +1 -0
- package/models/operations/listinvoices.js +128 -0
- package/models/operations/listinvoices.js.map +1 -0
- package/models/operations/listissuedcardauthorizationevents.d.ts +1 -1
- package/models/operations/listissuedcardauthorizations.d.ts +1 -1
- package/models/operations/listissuedcards.d.ts +1 -1
- package/models/operations/listissuedcardtransactions.d.ts +1 -1
- package/models/operations/listonboardinginvites.d.ts +1 -1
- package/models/operations/listpartnerpricingagreements.d.ts +1 -1
- package/models/operations/listpaymentlinks.d.ts +6 -5
- package/models/operations/listpaymentlinks.d.ts.map +1 -1
- package/models/operations/listpaymentlinks.js +2 -4
- package/models/operations/listpaymentlinks.js.map +1 -1
- package/models/operations/listpaymentmethods.d.ts +1 -1
- package/models/operations/listproducts.d.ts +1 -1
- package/models/operations/listreceipts.d.ts +1 -1
- package/models/operations/listrefunds.d.ts +1 -1
- package/models/operations/listrepresentatives.d.ts +1 -1
- package/models/operations/listresidualfees.d.ts +1 -1
- package/models/operations/listresiduals.d.ts +1 -1
- package/models/operations/listschedules.d.ts +1 -1
- package/models/operations/liststatements.d.ts +1 -1
- package/models/operations/listsweepconfigs.d.ts +1 -1
- package/models/operations/listsweeps.d.ts +1 -1
- package/models/operations/listterminalapplications.d.ts +1 -1
- package/models/operations/listticketmessages.d.ts +1 -1
- package/models/operations/listtickets.d.ts +1 -1
- package/models/operations/listtransfers.d.ts +1 -1
- package/models/operations/listwallets.d.ts +1 -1
- package/models/operations/listwallettransactions.d.ts +1 -1
- package/models/operations/listwebhooks.d.ts +1 -1
- package/models/operations/ping.d.ts +1 -1
- package/models/operations/pingwebhook.d.ts +1 -1
- package/models/operations/registerapplepaymerchantdomains.d.ts +1 -1
- package/models/operations/requestcapabilities.d.ts +1 -1
- package/models/operations/requestcard.d.ts +1 -1
- package/models/operations/retrievefees.d.ts +1 -1
- package/models/operations/revokeaccesstoken.d.ts +1 -1
- package/models/operations/revokeonboardinginvite.d.ts +1 -1
- package/models/operations/saveunderwriting.d.ts +1 -1
- package/models/operations/searchinstitutions.d.ts +1 -1
- package/models/operations/submitdisputeevidence.d.ts +1 -1
- package/models/operations/testendtoendtoken.d.ts +1 -1
- package/models/operations/updateaccount.d.ts +1 -1
- package/models/operations/updateapplepaymerchantdomains.d.ts +1 -1
- package/models/operations/updatecard.d.ts +1 -1
- package/models/operations/updatedisputeevidence.d.ts +1 -1
- package/models/operations/updateimage.d.ts +1 -1
- package/models/operations/updateimagemetadata.d.ts +1 -1
- package/models/operations/updateinvoice.d.ts +68 -0
- package/models/operations/updateinvoice.d.ts.map +1 -0
- package/models/operations/updateinvoice.js +124 -0
- package/models/operations/updateinvoice.js.map +1 -0
- package/models/operations/updateissuedcard.d.ts +1 -1
- package/models/operations/updatepaymentlink.d.ts +1 -1
- package/models/operations/updateproduct.d.ts +1 -1
- package/models/operations/updaterepresentative.d.ts +1 -1
- package/models/operations/updateschedule.d.ts +1 -1
- package/models/operations/updatesweepconfig.d.ts +1 -1
- package/models/operations/updateticket.d.ts +1 -1
- package/models/operations/updatetransfer.d.ts +1 -1
- package/models/operations/updatewallet.d.ts +1 -1
- package/models/operations/updatewebhook.d.ts +1 -1
- package/models/operations/uploaddisputeevidencefile.d.ts +1 -1
- package/models/operations/uploaddisputeevidencetext.d.ts +1 -1
- package/models/operations/uploadfile.d.ts +1 -1
- package/models/operations/uploadimage.d.ts +1 -1
- package/models/operations/upsertbrand.d.ts +1 -1
- package/models/operations/upsertunderwriting.d.ts +1 -1
- package/package.json +1 -1
- package/sdk/invoices.d.ts +48 -0
- package/sdk/invoices.d.ts.map +1 -0
- package/sdk/invoices.js +73 -0
- package/sdk/invoices.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/cardsLink.ts +5 -1
- package/src/funcs/invoicesCreateInvoice.ts +201 -0
- package/src/funcs/invoicesCreateInvoicePayment.ts +213 -0
- package/src/funcs/invoicesGetInvoice.ts +185 -0
- package/src/funcs/invoicesListInvoicePayments.ts +186 -0
- package/src/funcs/invoicesListInvoices.ts +198 -0
- package/src/funcs/invoicesUpdateInvoice.ts +207 -0
- package/src/funcs/paymentLinksList.ts +1 -2
- 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/invoicesCreateInvoice.ts +38 -0
- package/src/mcp-server/tools/invoicesCreateInvoicePayment.ts +40 -0
- package/src/mcp-server/tools/invoicesGetInvoice.ts +38 -0
- package/src/mcp-server/tools/invoicesListInvoicePayments.ts +38 -0
- package/src/mcp-server/tools/invoicesListInvoices.ts +38 -0
- package/src/mcp-server/tools/invoicesUpdateInvoice.ts +38 -0
- package/src/models/components/amountdecimalupdate.ts +65 -0
- package/src/models/components/createinvoice.ts +87 -0
- package/src/models/components/createinvoicelineitem.ts +100 -0
- package/src/models/components/createinvoicelineitemoption.ts +86 -0
- package/src/models/components/createinvoicelineitemoptionvalidationerror.ts +77 -0
- package/src/models/components/createinvoicelineitems.ts +63 -0
- package/src/models/components/createinvoicelineitemsupdate.ts +65 -0
- package/src/models/components/createinvoicelineitemsvalidationerror.ts +64 -0
- package/src/models/components/createinvoicelineitemvalidationerror.ts +88 -0
- package/src/models/components/createinvoicepayment.ts +70 -0
- package/src/models/components/index.ts +23 -0
- package/src/models/components/invoice.ts +190 -0
- package/src/models/components/invoiceexternalpayment.ts +60 -0
- package/src/models/components/invoicelineitem.ts +111 -0
- package/src/models/components/invoicelineitemimagemetadata.ts +77 -0
- package/src/models/components/invoicelineitemoption.ts +97 -0
- package/src/models/components/invoicelineitemoptionvalidationerror.ts +72 -0
- package/src/models/components/invoicelineitems.ts +63 -0
- package/src/models/components/invoicelineitemsvalidationerror.ts +59 -0
- package/src/models/components/invoicelineitemvalidationerror.ts +85 -0
- package/src/models/components/invoicepayment.ts +92 -0
- package/src/models/components/invoicepaymenttype.ts +21 -0
- package/src/models/components/invoicetransferpayment.ts +54 -0
- package/src/models/components/paymentlinktype.ts +1 -0
- package/src/models/components/transfer.ts +7 -0
- package/src/models/components/updateinvoice.ts +98 -0
- package/src/models/components/wallettransactiontype.ts +1 -0
- package/src/models/errors/createinvoiceerror.ts +104 -0
- package/src/models/errors/createinvoicepaymenterror.ts +85 -0
- package/src/models/errors/duplicatecarderror.ts +90 -0
- package/src/models/errors/index.ts +5 -0
- package/src/models/errors/listinvoicesvalidationerror.ts +116 -0
- package/src/models/errors/transfer.ts +12 -0
- package/src/models/errors/updateinvoiceerror.ts +100 -0
- package/src/models/operations/acceptdispute.ts +1 -1
- package/src/models/operations/assignaccountcountries.ts +1 -1
- package/src/models/operations/cancelschedule.ts +1 -1
- package/src/models/operations/completebankaccountverification.ts +1 -1
- package/src/models/operations/completemicrodeposits.ts +1 -1
- package/src/models/operations/connectaccount.ts +1 -1
- package/src/models/operations/createaccesstoken.ts +1 -1
- package/src/models/operations/createaccount.ts +1 -1
- package/src/models/operations/createapplepaysession.ts +1 -1
- package/src/models/operations/createbrand.ts +1 -1
- package/src/models/operations/createcancellation.ts +1 -1
- package/src/models/operations/createfeeplanagreements.ts +1 -1
- package/src/models/operations/createinvoice.ts +187 -0
- package/src/models/operations/createinvoicepayment.ts +197 -0
- package/src/models/operations/createonboardinginvite.ts +1 -1
- package/src/models/operations/createpaymentlink.ts +1 -1
- package/src/models/operations/createproduct.ts +1 -1
- package/src/models/operations/createreceipts.ts +1 -1
- package/src/models/operations/createrepresentative.ts +1 -1
- package/src/models/operations/createreversal.ts +1 -1
- package/src/models/operations/createschedule.ts +1 -1
- package/src/models/operations/createsweepconfig.ts +1 -1
- package/src/models/operations/createterminalapplication.ts +1 -1
- package/src/models/operations/createterminalapplicationversion.ts +1 -1
- package/src/models/operations/createticket.ts +1 -1
- package/src/models/operations/createtransfer.ts +1 -1
- package/src/models/operations/createtransferoptions.ts +1 -1
- package/src/models/operations/createwallet.ts +1 -1
- package/src/models/operations/createwebhook.ts +1 -1
- package/src/models/operations/deletedisputeevidencefile.ts +1 -1
- package/src/models/operations/deleteimage.ts +1 -1
- package/src/models/operations/deleterepresentative.ts +1 -1
- package/src/models/operations/deleteterminalapplication.ts +1 -1
- package/src/models/operations/disablebankaccount.ts +1 -1
- package/src/models/operations/disablecapability.ts +1 -1
- package/src/models/operations/disablecard.ts +1 -1
- package/src/models/operations/disablepaymentlink.ts +1 -1
- package/src/models/operations/disableproduct.ts +1 -1
- package/src/models/operations/disablewebhook.ts +1 -1
- package/src/models/operations/disconnectaccount.ts +1 -1
- package/src/models/operations/generateendtoendkey.ts +1 -1
- package/src/models/operations/getaccount.ts +1 -1
- package/src/models/operations/getaccountcountries.ts +1 -1
- package/src/models/operations/getaccountterminalapplication.ts +1 -1
- package/src/models/operations/getadjustment.ts +1 -1
- package/src/models/operations/getapplepaymerchantdomains.ts +1 -1
- package/src/models/operations/getavatar.ts +1 -1
- package/src/models/operations/getbankaccount.ts +1 -1
- package/src/models/operations/getbankaccountverification.ts +1 -1
- package/src/models/operations/getbrand.ts +1 -1
- package/src/models/operations/getcancellation.ts +1 -1
- package/src/models/operations/getcapability.ts +1 -1
- package/src/models/operations/getcard.ts +1 -1
- package/src/models/operations/getdispute.ts +1 -1
- package/src/models/operations/getdisputeevidence.ts +1 -1
- package/src/models/operations/getdisputeevidencedata.ts +1 -1
- package/src/models/operations/getenrichmentaddress.ts +1 -1
- package/src/models/operations/getenrichmentprofile.ts +1 -1
- package/src/models/operations/getfiledetails.ts +1 -1
- package/src/models/operations/getfullissuedcard.ts +1 -1
- package/src/models/operations/getimagemetadata.ts +1 -1
- package/src/models/operations/getinvoice.ts +179 -0
- package/src/models/operations/getissuedcard.ts +1 -1
- package/src/models/operations/getissuedcardauthorization.ts +1 -1
- package/src/models/operations/getissuedcardtransaction.ts +1 -1
- package/src/models/operations/getmerchantprocessingagreement.ts +1 -1
- package/src/models/operations/getonboardinginvite.ts +1 -1
- package/src/models/operations/getpaymentlink.ts +1 -1
- package/src/models/operations/getpaymentlinkqrcode.ts +1 -1
- package/src/models/operations/getpaymentmethod.ts +1 -1
- package/src/models/operations/getproduct.ts +1 -1
- package/src/models/operations/getpublicimage.ts +8 -6
- package/src/models/operations/getrefund.ts +1 -1
- package/src/models/operations/getrepresentative.ts +1 -1
- package/src/models/operations/getresidual.ts +1 -1
- package/src/models/operations/getscheduledoccurrence.ts +1 -1
- package/src/models/operations/getschedules.ts +1 -1
- package/src/models/operations/getstatement.ts +1 -1
- package/src/models/operations/getsweep.ts +1 -1
- package/src/models/operations/getsweepconfig.ts +1 -1
- package/src/models/operations/getterminalapplication.ts +1 -1
- package/src/models/operations/getterminalconfiguration.ts +1 -1
- package/src/models/operations/gettermsofservicetoken.ts +1 -1
- package/src/models/operations/getticket.ts +1 -1
- package/src/models/operations/gettransfer.ts +1 -1
- package/src/models/operations/getunderwriting.ts +1 -1
- package/src/models/operations/getwallet.ts +1 -1
- package/src/models/operations/getwallettransaction.ts +1 -1
- package/src/models/operations/getwebhook.ts +1 -1
- package/src/models/operations/getwebhooksecret.ts +1 -1
- package/src/models/operations/index.ts +6 -0
- package/src/models/operations/initiatebankaccountverification.ts +1 -1
- package/src/models/operations/initiatemicrodeposits.ts +1 -1
- package/src/models/operations/initiaterefund.ts +1 -1
- package/src/models/operations/linkaccountterminalapplication.ts +1 -1
- package/src/models/operations/linkapplepaytoken.ts +1 -1
- package/src/models/operations/linkbankaccount.ts +1 -1
- package/src/models/operations/linkcard.ts +1 -1
- package/src/models/operations/listaccounts.ts +1 -1
- package/src/models/operations/listaccountterminalapplications.ts +1 -1
- package/src/models/operations/listadjustments.ts +1 -1
- package/src/models/operations/listbankaccounts.ts +1 -1
- package/src/models/operations/listcapabilities.ts +1 -1
- package/src/models/operations/listcards.ts +1 -1
- package/src/models/operations/listconnectedaccountsforaccount.ts +1 -1
- package/src/models/operations/listdisputeevidence.ts +1 -1
- package/src/models/operations/listdisputes.ts +1 -1
- package/src/models/operations/listeventtypes.ts +1 -1
- package/src/models/operations/listfeeplanagreements.ts +1 -1
- package/src/models/operations/listfeeplans.ts +1 -1
- package/src/models/operations/listfeerevenue.ts +1 -1
- package/src/models/operations/listfeesfetch.ts +1 -1
- package/src/models/operations/listfiles.ts +1 -1
- package/src/models/operations/listimagemetadata.ts +1 -1
- package/src/models/operations/listindustries.ts +1 -1
- package/src/models/operations/listinstitutions.ts +1 -1
- package/src/models/operations/listinvoicepayments.ts +181 -0
- package/src/models/operations/listinvoices.ts +215 -0
- package/src/models/operations/listissuedcardauthorizationevents.ts +1 -1
- package/src/models/operations/listissuedcardauthorizations.ts +1 -1
- package/src/models/operations/listissuedcards.ts +1 -1
- package/src/models/operations/listissuedcardtransactions.ts +1 -1
- package/src/models/operations/listonboardinginvites.ts +1 -1
- package/src/models/operations/listpartnerpricingagreements.ts +1 -1
- package/src/models/operations/listpaymentlinks.ts +8 -9
- package/src/models/operations/listpaymentmethods.ts +1 -1
- package/src/models/operations/listproducts.ts +1 -1
- package/src/models/operations/listreceipts.ts +1 -1
- package/src/models/operations/listrefunds.ts +1 -1
- package/src/models/operations/listrepresentatives.ts +1 -1
- package/src/models/operations/listresidualfees.ts +1 -1
- package/src/models/operations/listresiduals.ts +1 -1
- package/src/models/operations/listschedules.ts +1 -1
- package/src/models/operations/liststatements.ts +1 -1
- package/src/models/operations/listsweepconfigs.ts +1 -1
- package/src/models/operations/listsweeps.ts +1 -1
- package/src/models/operations/listterminalapplications.ts +1 -1
- package/src/models/operations/listticketmessages.ts +1 -1
- package/src/models/operations/listtickets.ts +1 -1
- package/src/models/operations/listtransfers.ts +1 -1
- package/src/models/operations/listwallets.ts +1 -1
- package/src/models/operations/listwallettransactions.ts +1 -1
- package/src/models/operations/listwebhooks.ts +1 -1
- package/src/models/operations/ping.ts +1 -1
- package/src/models/operations/pingwebhook.ts +1 -1
- package/src/models/operations/registerapplepaymerchantdomains.ts +1 -1
- package/src/models/operations/requestcapabilities.ts +1 -1
- package/src/models/operations/requestcard.ts +1 -1
- package/src/models/operations/retrievefees.ts +1 -1
- package/src/models/operations/revokeaccesstoken.ts +1 -1
- package/src/models/operations/revokeonboardinginvite.ts +1 -1
- package/src/models/operations/saveunderwriting.ts +1 -1
- package/src/models/operations/searchinstitutions.ts +1 -1
- package/src/models/operations/submitdisputeevidence.ts +1 -1
- package/src/models/operations/testendtoendtoken.ts +1 -1
- package/src/models/operations/updateaccount.ts +1 -1
- package/src/models/operations/updateapplepaymerchantdomains.ts +1 -1
- package/src/models/operations/updatecard.ts +1 -1
- package/src/models/operations/updatedisputeevidence.ts +1 -1
- package/src/models/operations/updateimage.ts +1 -1
- package/src/models/operations/updateimagemetadata.ts +1 -1
- package/src/models/operations/updateinvoice.ts +191 -0
- package/src/models/operations/updateissuedcard.ts +1 -1
- package/src/models/operations/updatepaymentlink.ts +1 -1
- package/src/models/operations/updateproduct.ts +1 -1
- package/src/models/operations/updaterepresentative.ts +1 -1
- package/src/models/operations/updateschedule.ts +1 -1
- package/src/models/operations/updatesweepconfig.ts +1 -1
- package/src/models/operations/updateticket.ts +1 -1
- package/src/models/operations/updatetransfer.ts +1 -1
- package/src/models/operations/updatewallet.ts +1 -1
- package/src/models/operations/updatewebhook.ts +1 -1
- package/src/models/operations/uploaddisputeevidencefile.ts +1 -1
- package/src/models/operations/uploaddisputeevidencetext.ts +1 -1
- package/src/models/operations/uploadfile.ts +1 -1
- package/src/models/operations/uploadimage.ts +1 -1
- package/src/models/operations/upsertbrand.ts +1 -1
- package/src/models/operations/upsertunderwriting.ts +1 -1
- package/src/sdk/invoices.ts +118 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -0,0 +1,54 @@
|
|
|
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 InvoiceTransferPayment = {
|
|
11
|
+
/**
|
|
12
|
+
* A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
|
|
13
|
+
*/
|
|
14
|
+
transferID: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const InvoiceTransferPayment$inboundSchema: z.ZodType<
|
|
19
|
+
InvoiceTransferPayment,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
transferID: z.string(),
|
|
24
|
+
});
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type InvoiceTransferPayment$Outbound = {
|
|
27
|
+
transferID: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const InvoiceTransferPayment$outboundSchema: z.ZodType<
|
|
32
|
+
InvoiceTransferPayment$Outbound,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
InvoiceTransferPayment
|
|
35
|
+
> = z.object({
|
|
36
|
+
transferID: z.string(),
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function invoiceTransferPaymentToJSON(
|
|
40
|
+
invoiceTransferPayment: InvoiceTransferPayment,
|
|
41
|
+
): string {
|
|
42
|
+
return JSON.stringify(
|
|
43
|
+
InvoiceTransferPayment$outboundSchema.parse(invoiceTransferPayment),
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
export function invoiceTransferPaymentFromJSON(
|
|
47
|
+
jsonString: string,
|
|
48
|
+
): SafeParseResult<InvoiceTransferPayment, SDKValidationError> {
|
|
49
|
+
return safeParse(
|
|
50
|
+
jsonString,
|
|
51
|
+
(x) => InvoiceTransferPayment$inboundSchema.parse(JSON.parse(x)),
|
|
52
|
+
`Failed to parse 'InvoiceTransferPayment' from JSON`,
|
|
53
|
+
);
|
|
54
|
+
}
|
|
@@ -151,6 +151,10 @@ export type Transfer = {
|
|
|
151
151
|
* When line items are provided, their total plus sales tax must equal the transfer amount.
|
|
152
152
|
*/
|
|
153
153
|
lineItems?: TransferLineItems | undefined;
|
|
154
|
+
/**
|
|
155
|
+
* ID of the invoice that the transfer is associated with.
|
|
156
|
+
*/
|
|
157
|
+
invoiceID?: string | undefined;
|
|
154
158
|
};
|
|
155
159
|
|
|
156
160
|
/** @internal */
|
|
@@ -188,6 +192,7 @@ export const Transfer$inboundSchema: z.ZodType<
|
|
|
188
192
|
salesTaxAmount: Amount$inboundSchema.optional(),
|
|
189
193
|
foreignID: z.string().optional(),
|
|
190
194
|
lineItems: TransferLineItems$inboundSchema.optional(),
|
|
195
|
+
invoiceID: z.string().optional(),
|
|
191
196
|
});
|
|
192
197
|
/** @internal */
|
|
193
198
|
export type Transfer$Outbound = {
|
|
@@ -219,6 +224,7 @@ export type Transfer$Outbound = {
|
|
|
219
224
|
salesTaxAmount?: Amount$Outbound | undefined;
|
|
220
225
|
foreignID?: string | undefined;
|
|
221
226
|
lineItems?: TransferLineItems$Outbound | undefined;
|
|
227
|
+
invoiceID?: string | undefined;
|
|
222
228
|
};
|
|
223
229
|
|
|
224
230
|
/** @internal */
|
|
@@ -255,6 +261,7 @@ export const Transfer$outboundSchema: z.ZodType<
|
|
|
255
261
|
salesTaxAmount: Amount$outboundSchema.optional(),
|
|
256
262
|
foreignID: z.string().optional(),
|
|
257
263
|
lineItems: TransferLineItems$outboundSchema.optional(),
|
|
264
|
+
invoiceID: z.string().optional(),
|
|
258
265
|
});
|
|
259
266
|
|
|
260
267
|
export function transferToJSON(transfer: Transfer): string {
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
AmountDecimalUpdate,
|
|
11
|
+
AmountDecimalUpdate$inboundSchema,
|
|
12
|
+
AmountDecimalUpdate$Outbound,
|
|
13
|
+
AmountDecimalUpdate$outboundSchema,
|
|
14
|
+
} from "./amountdecimalupdate.js";
|
|
15
|
+
import {
|
|
16
|
+
CreateInvoiceLineItemsUpdate,
|
|
17
|
+
CreateInvoiceLineItemsUpdate$inboundSchema,
|
|
18
|
+
CreateInvoiceLineItemsUpdate$Outbound,
|
|
19
|
+
CreateInvoiceLineItemsUpdate$outboundSchema,
|
|
20
|
+
} from "./createinvoicelineitemsupdate.js";
|
|
21
|
+
import {
|
|
22
|
+
InvoiceStatus,
|
|
23
|
+
InvoiceStatus$inboundSchema,
|
|
24
|
+
InvoiceStatus$outboundSchema,
|
|
25
|
+
} from "./invoicestatus.js";
|
|
26
|
+
|
|
27
|
+
export type UpdateInvoice = {
|
|
28
|
+
description?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* A collection of line items for an invoice.
|
|
31
|
+
*/
|
|
32
|
+
lineItems?: CreateInvoiceLineItemsUpdate | undefined;
|
|
33
|
+
invoiceDate?: Date | null | undefined;
|
|
34
|
+
dueDate?: Date | null | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The status can be updated to one of the following values under specific conditions:
|
|
37
|
+
*
|
|
38
|
+
* @remarks
|
|
39
|
+
* - `canceled`: Can only be set if the current status is `draft`, `unpaid`, or `overdue`.
|
|
40
|
+
* - `unpaid`: Can only be set if the current status is `draft`. Setting the status to `unpaid` finalizes the invoice and sends an email with a payment link to the customer.
|
|
41
|
+
*/
|
|
42
|
+
status?: InvoiceStatus | undefined;
|
|
43
|
+
taxAmount?: AmountDecimalUpdate | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const UpdateInvoice$inboundSchema: z.ZodType<
|
|
48
|
+
UpdateInvoice,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
unknown
|
|
51
|
+
> = z.object({
|
|
52
|
+
description: z.string().optional(),
|
|
53
|
+
lineItems: CreateInvoiceLineItemsUpdate$inboundSchema.optional(),
|
|
54
|
+
invoiceDate: z.nullable(
|
|
55
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
56
|
+
).optional(),
|
|
57
|
+
dueDate: z.nullable(
|
|
58
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
59
|
+
).optional(),
|
|
60
|
+
status: InvoiceStatus$inboundSchema.optional(),
|
|
61
|
+
taxAmount: AmountDecimalUpdate$inboundSchema.optional(),
|
|
62
|
+
});
|
|
63
|
+
/** @internal */
|
|
64
|
+
export type UpdateInvoice$Outbound = {
|
|
65
|
+
description?: string | undefined;
|
|
66
|
+
lineItems?: CreateInvoiceLineItemsUpdate$Outbound | undefined;
|
|
67
|
+
invoiceDate?: string | null | undefined;
|
|
68
|
+
dueDate?: string | null | undefined;
|
|
69
|
+
status?: string | undefined;
|
|
70
|
+
taxAmount?: AmountDecimalUpdate$Outbound | undefined;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const UpdateInvoice$outboundSchema: z.ZodType<
|
|
75
|
+
UpdateInvoice$Outbound,
|
|
76
|
+
z.ZodTypeDef,
|
|
77
|
+
UpdateInvoice
|
|
78
|
+
> = z.object({
|
|
79
|
+
description: z.string().optional(),
|
|
80
|
+
lineItems: CreateInvoiceLineItemsUpdate$outboundSchema.optional(),
|
|
81
|
+
invoiceDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
82
|
+
dueDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
83
|
+
status: InvoiceStatus$outboundSchema.optional(),
|
|
84
|
+
taxAmount: AmountDecimalUpdate$outboundSchema.optional(),
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
export function updateInvoiceToJSON(updateInvoice: UpdateInvoice): string {
|
|
88
|
+
return JSON.stringify(UpdateInvoice$outboundSchema.parse(updateInvoice));
|
|
89
|
+
}
|
|
90
|
+
export function updateInvoiceFromJSON(
|
|
91
|
+
jsonString: string,
|
|
92
|
+
): SafeParseResult<UpdateInvoice, SDKValidationError> {
|
|
93
|
+
return safeParse(
|
|
94
|
+
jsonString,
|
|
95
|
+
(x) => UpdateInvoice$inboundSchema.parse(JSON.parse(x)),
|
|
96
|
+
`Failed to parse 'UpdateInvoice' from JSON`,
|
|
97
|
+
);
|
|
98
|
+
}
|
|
@@ -33,6 +33,7 @@ export const WalletTransactionType = {
|
|
|
33
33
|
Adjustment: "adjustment",
|
|
34
34
|
FeeRevenue: "fee-revenue",
|
|
35
35
|
Residual: "residual",
|
|
36
|
+
InstantBankFailure: "instant-bank-failure",
|
|
36
37
|
} as const;
|
|
37
38
|
export type WalletTransactionType = ClosedEnum<typeof WalletTransactionType>;
|
|
38
39
|
|
|
@@ -0,0 +1,104 @@
|
|
|
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 CreateInvoiceErrorData = {
|
|
10
|
+
customerAccountID?: string | undefined;
|
|
11
|
+
description?: string | undefined;
|
|
12
|
+
lineItems?: components.CreateInvoiceLineItemsValidationError | undefined;
|
|
13
|
+
invoiceDate?: string | undefined;
|
|
14
|
+
dueDate?: string | undefined;
|
|
15
|
+
taxAmount?: components.AmountDecimalValidationError | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export class CreateInvoiceError extends MoovError {
|
|
19
|
+
customerAccountID?: string | undefined;
|
|
20
|
+
description?: string | undefined;
|
|
21
|
+
lineItems?: components.CreateInvoiceLineItemsValidationError | undefined;
|
|
22
|
+
invoiceDate?: string | undefined;
|
|
23
|
+
dueDate?: string | undefined;
|
|
24
|
+
taxAmount?: components.AmountDecimalValidationError | undefined;
|
|
25
|
+
|
|
26
|
+
/** The original data that was passed to this error instance. */
|
|
27
|
+
data$: CreateInvoiceErrorData;
|
|
28
|
+
|
|
29
|
+
constructor(
|
|
30
|
+
err: CreateInvoiceErrorData,
|
|
31
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
32
|
+
) {
|
|
33
|
+
const message = "message" in err && typeof err.message === "string"
|
|
34
|
+
? err.message
|
|
35
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
36
|
+
super(message, httpMeta);
|
|
37
|
+
this.data$ = err;
|
|
38
|
+
if (err.customerAccountID != null) {
|
|
39
|
+
this.customerAccountID = err.customerAccountID;
|
|
40
|
+
}
|
|
41
|
+
if (err.description != null) this.description = err.description;
|
|
42
|
+
if (err.lineItems != null) this.lineItems = err.lineItems;
|
|
43
|
+
if (err.invoiceDate != null) this.invoiceDate = err.invoiceDate;
|
|
44
|
+
if (err.dueDate != null) this.dueDate = err.dueDate;
|
|
45
|
+
if (err.taxAmount != null) this.taxAmount = err.taxAmount;
|
|
46
|
+
|
|
47
|
+
this.name = "CreateInvoiceError";
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const CreateInvoiceError$inboundSchema: z.ZodType<
|
|
53
|
+
CreateInvoiceError,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
unknown
|
|
56
|
+
> = z.object({
|
|
57
|
+
customerAccountID: z.string().optional(),
|
|
58
|
+
description: z.string().optional(),
|
|
59
|
+
lineItems: components.CreateInvoiceLineItemsValidationError$inboundSchema
|
|
60
|
+
.optional(),
|
|
61
|
+
invoiceDate: z.string().optional(),
|
|
62
|
+
dueDate: z.string().optional(),
|
|
63
|
+
taxAmount: components.AmountDecimalValidationError$inboundSchema.optional(),
|
|
64
|
+
request$: z.instanceof(Request),
|
|
65
|
+
response$: z.instanceof(Response),
|
|
66
|
+
body$: z.string(),
|
|
67
|
+
})
|
|
68
|
+
.transform((v) => {
|
|
69
|
+
return new CreateInvoiceError(v, {
|
|
70
|
+
request: v.request$,
|
|
71
|
+
response: v.response$,
|
|
72
|
+
body: v.body$,
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export type CreateInvoiceError$Outbound = {
|
|
78
|
+
customerAccountID?: string | undefined;
|
|
79
|
+
description?: string | undefined;
|
|
80
|
+
lineItems?:
|
|
81
|
+
| components.CreateInvoiceLineItemsValidationError$Outbound
|
|
82
|
+
| undefined;
|
|
83
|
+
invoiceDate?: string | undefined;
|
|
84
|
+
dueDate?: string | undefined;
|
|
85
|
+
taxAmount?: components.AmountDecimalValidationError$Outbound | undefined;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const CreateInvoiceError$outboundSchema: z.ZodType<
|
|
90
|
+
CreateInvoiceError$Outbound,
|
|
91
|
+
z.ZodTypeDef,
|
|
92
|
+
CreateInvoiceError
|
|
93
|
+
> = z.instanceof(CreateInvoiceError)
|
|
94
|
+
.transform(v => v.data$)
|
|
95
|
+
.pipe(z.object({
|
|
96
|
+
customerAccountID: z.string().optional(),
|
|
97
|
+
description: z.string().optional(),
|
|
98
|
+
lineItems: components.CreateInvoiceLineItemsValidationError$outboundSchema
|
|
99
|
+
.optional(),
|
|
100
|
+
invoiceDate: z.string().optional(),
|
|
101
|
+
dueDate: z.string().optional(),
|
|
102
|
+
taxAmount: components.AmountDecimalValidationError$outboundSchema
|
|
103
|
+
.optional(),
|
|
104
|
+
}));
|
|
@@ -0,0 +1,85 @@
|
|
|
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 CreateInvoicePaymentErrorData = {
|
|
10
|
+
amount?: components.AmountDecimalValidationError | undefined;
|
|
11
|
+
foreignID?: string | undefined;
|
|
12
|
+
description?: string | undefined;
|
|
13
|
+
paymentDate?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export class CreateInvoicePaymentError extends MoovError {
|
|
17
|
+
amount?: components.AmountDecimalValidationError | undefined;
|
|
18
|
+
foreignID?: string | undefined;
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
paymentDate?: string | undefined;
|
|
21
|
+
|
|
22
|
+
/** The original data that was passed to this error instance. */
|
|
23
|
+
data$: CreateInvoicePaymentErrorData;
|
|
24
|
+
|
|
25
|
+
constructor(
|
|
26
|
+
err: CreateInvoicePaymentErrorData,
|
|
27
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
28
|
+
) {
|
|
29
|
+
const message = "message" in err && typeof err.message === "string"
|
|
30
|
+
? err.message
|
|
31
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
32
|
+
super(message, httpMeta);
|
|
33
|
+
this.data$ = err;
|
|
34
|
+
if (err.amount != null) this.amount = err.amount;
|
|
35
|
+
if (err.foreignID != null) this.foreignID = err.foreignID;
|
|
36
|
+
if (err.description != null) this.description = err.description;
|
|
37
|
+
if (err.paymentDate != null) this.paymentDate = err.paymentDate;
|
|
38
|
+
|
|
39
|
+
this.name = "CreateInvoicePaymentError";
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const CreateInvoicePaymentError$inboundSchema: z.ZodType<
|
|
45
|
+
CreateInvoicePaymentError,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
unknown
|
|
48
|
+
> = z.object({
|
|
49
|
+
amount: components.AmountDecimalValidationError$inboundSchema.optional(),
|
|
50
|
+
foreignID: z.string().optional(),
|
|
51
|
+
description: z.string().optional(),
|
|
52
|
+
paymentDate: z.string().optional(),
|
|
53
|
+
request$: z.instanceof(Request),
|
|
54
|
+
response$: z.instanceof(Response),
|
|
55
|
+
body$: z.string(),
|
|
56
|
+
})
|
|
57
|
+
.transform((v) => {
|
|
58
|
+
return new CreateInvoicePaymentError(v, {
|
|
59
|
+
request: v.request$,
|
|
60
|
+
response: v.response$,
|
|
61
|
+
body: v.body$,
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export type CreateInvoicePaymentError$Outbound = {
|
|
67
|
+
amount?: components.AmountDecimalValidationError$Outbound | undefined;
|
|
68
|
+
foreignID?: string | undefined;
|
|
69
|
+
description?: string | undefined;
|
|
70
|
+
paymentDate?: string | undefined;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const CreateInvoicePaymentError$outboundSchema: z.ZodType<
|
|
75
|
+
CreateInvoicePaymentError$Outbound,
|
|
76
|
+
z.ZodTypeDef,
|
|
77
|
+
CreateInvoicePaymentError
|
|
78
|
+
> = z.instanceof(CreateInvoicePaymentError)
|
|
79
|
+
.transform(v => v.data$)
|
|
80
|
+
.pipe(z.object({
|
|
81
|
+
amount: components.AmountDecimalValidationError$outboundSchema.optional(),
|
|
82
|
+
foreignID: z.string().optional(),
|
|
83
|
+
description: z.string().optional(),
|
|
84
|
+
paymentDate: z.string().optional(),
|
|
85
|
+
}));
|
|
@@ -0,0 +1,90 @@
|
|
|
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 DuplicateCardErrorData = {
|
|
9
|
+
/**
|
|
10
|
+
* A human-readable description of the error.
|
|
11
|
+
*/
|
|
12
|
+
error: string;
|
|
13
|
+
/**
|
|
14
|
+
* The ID of the existing card that caused the conflict.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* This field is included when attempting to link a card that already exists on the account.
|
|
18
|
+
*/
|
|
19
|
+
existingCardID?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export class DuplicateCardError extends MoovError {
|
|
23
|
+
/**
|
|
24
|
+
* A human-readable description of the error.
|
|
25
|
+
*/
|
|
26
|
+
error: string;
|
|
27
|
+
/**
|
|
28
|
+
* The ID of the existing card that caused the conflict.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* This field is included when attempting to link a card that already exists on the account.
|
|
32
|
+
*/
|
|
33
|
+
existingCardID?: string | undefined;
|
|
34
|
+
|
|
35
|
+
/** The original data that was passed to this error instance. */
|
|
36
|
+
data$: DuplicateCardErrorData;
|
|
37
|
+
|
|
38
|
+
constructor(
|
|
39
|
+
err: DuplicateCardErrorData,
|
|
40
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
41
|
+
) {
|
|
42
|
+
const message = "message" in err && typeof err.message === "string"
|
|
43
|
+
? err.message
|
|
44
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
45
|
+
super(message, httpMeta);
|
|
46
|
+
this.data$ = err;
|
|
47
|
+
this.error = err.error;
|
|
48
|
+
if (err.existingCardID != null) this.existingCardID = err.existingCardID;
|
|
49
|
+
|
|
50
|
+
this.name = "DuplicateCardError";
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const DuplicateCardError$inboundSchema: z.ZodType<
|
|
56
|
+
DuplicateCardError,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
unknown
|
|
59
|
+
> = z.object({
|
|
60
|
+
error: z.string(),
|
|
61
|
+
existingCardID: z.string().optional(),
|
|
62
|
+
request$: z.instanceof(Request),
|
|
63
|
+
response$: z.instanceof(Response),
|
|
64
|
+
body$: z.string(),
|
|
65
|
+
})
|
|
66
|
+
.transform((v) => {
|
|
67
|
+
return new DuplicateCardError(v, {
|
|
68
|
+
request: v.request$,
|
|
69
|
+
response: v.response$,
|
|
70
|
+
body: v.body$,
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export type DuplicateCardError$Outbound = {
|
|
76
|
+
error: string;
|
|
77
|
+
existingCardID?: string | undefined;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const DuplicateCardError$outboundSchema: z.ZodType<
|
|
82
|
+
DuplicateCardError$Outbound,
|
|
83
|
+
z.ZodTypeDef,
|
|
84
|
+
DuplicateCardError
|
|
85
|
+
> = z.instanceof(DuplicateCardError)
|
|
86
|
+
.transform(v => v.data$)
|
|
87
|
+
.pipe(z.object({
|
|
88
|
+
error: z.string(),
|
|
89
|
+
existingCardID: z.string().optional(),
|
|
90
|
+
}));
|
|
@@ -12,11 +12,14 @@ export * from "./brandvalidationerror.js";
|
|
|
12
12
|
export * from "./cardacquiringrefund.js";
|
|
13
13
|
export * from "./connectaccountrequestvalidationerror.js";
|
|
14
14
|
export * from "./createaccounterror.js";
|
|
15
|
+
export * from "./createinvoiceerror.js";
|
|
16
|
+
export * from "./createinvoicepaymenterror.js";
|
|
15
17
|
export * from "./createpaymentlinkerror.js";
|
|
16
18
|
export * from "./createsweepconfigerror.js";
|
|
17
19
|
export * from "./createticketerror.js";
|
|
18
20
|
export * from "./createwalletvalidationerror.js";
|
|
19
21
|
export * from "./createwebhookvalidationerror.js";
|
|
22
|
+
export * from "./duplicatecarderror.js";
|
|
20
23
|
export * from "./feeplanagreementerror.js";
|
|
21
24
|
export * from "./fileuploadvalidationerror.js";
|
|
22
25
|
export * from "./filevalidationerror.js";
|
|
@@ -26,6 +29,7 @@ export * from "./imagemetadatavalidationerror.js";
|
|
|
26
29
|
export * from "./imagerequestvalidationerror.js";
|
|
27
30
|
export * from "./linkapplepayerror.js";
|
|
28
31
|
export * from "./linkcarderror.js";
|
|
32
|
+
export * from "./listinvoicesvalidationerror.js";
|
|
29
33
|
export * from "./listtransfersvalidationerror.js";
|
|
30
34
|
export * from "./listwalletsvalidationerror.js";
|
|
31
35
|
export * from "./listwallettransactionsvalidationerror.js";
|
|
@@ -50,6 +54,7 @@ export * from "./transfer.js";
|
|
|
50
54
|
export * from "./transferoptionsvalidationerror.js";
|
|
51
55
|
export * from "./transfervalidationerror.js";
|
|
52
56
|
export * from "./updatecarderror.js";
|
|
57
|
+
export * from "./updateinvoiceerror.js";
|
|
53
58
|
export * from "./updateissuedcarderror.js";
|
|
54
59
|
export * from "./updatepaymentlinkerror.js";
|
|
55
60
|
export * from "./updateticketerror.js";
|
|
@@ -0,0 +1,116 @@
|
|
|
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 ListInvoicesValidationErrorData = {
|
|
9
|
+
status?: string | undefined;
|
|
10
|
+
customerAccountID?: string | undefined;
|
|
11
|
+
createdStartDateTime?: string | undefined;
|
|
12
|
+
createdEndDateTime?: string | undefined;
|
|
13
|
+
dueStartDateTime?: string | undefined;
|
|
14
|
+
dueEndDateTime?: string | undefined;
|
|
15
|
+
skip?: string | undefined;
|
|
16
|
+
count?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export class ListInvoicesValidationError extends MoovError {
|
|
20
|
+
status?: string | undefined;
|
|
21
|
+
customerAccountID?: string | undefined;
|
|
22
|
+
createdStartDateTime?: string | undefined;
|
|
23
|
+
createdEndDateTime?: string | undefined;
|
|
24
|
+
dueStartDateTime?: string | undefined;
|
|
25
|
+
dueEndDateTime?: string | undefined;
|
|
26
|
+
skip?: string | undefined;
|
|
27
|
+
count?: string | undefined;
|
|
28
|
+
|
|
29
|
+
/** The original data that was passed to this error instance. */
|
|
30
|
+
data$: ListInvoicesValidationErrorData;
|
|
31
|
+
|
|
32
|
+
constructor(
|
|
33
|
+
err: ListInvoicesValidationErrorData,
|
|
34
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
35
|
+
) {
|
|
36
|
+
const message = "message" in err && typeof err.message === "string"
|
|
37
|
+
? err.message
|
|
38
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
39
|
+
super(message, httpMeta);
|
|
40
|
+
this.data$ = err;
|
|
41
|
+
if (err.status != null) this.status = err.status;
|
|
42
|
+
if (err.customerAccountID != null) {
|
|
43
|
+
this.customerAccountID = err.customerAccountID;
|
|
44
|
+
}
|
|
45
|
+
if (err.createdStartDateTime != null) {
|
|
46
|
+
this.createdStartDateTime = err.createdStartDateTime;
|
|
47
|
+
}
|
|
48
|
+
if (err.createdEndDateTime != null) {
|
|
49
|
+
this.createdEndDateTime = err.createdEndDateTime;
|
|
50
|
+
}
|
|
51
|
+
if (err.dueStartDateTime != null) {
|
|
52
|
+
this.dueStartDateTime = err.dueStartDateTime;
|
|
53
|
+
}
|
|
54
|
+
if (err.dueEndDateTime != null) this.dueEndDateTime = err.dueEndDateTime;
|
|
55
|
+
if (err.skip != null) this.skip = err.skip;
|
|
56
|
+
if (err.count != null) this.count = err.count;
|
|
57
|
+
|
|
58
|
+
this.name = "ListInvoicesValidationError";
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const ListInvoicesValidationError$inboundSchema: z.ZodType<
|
|
64
|
+
ListInvoicesValidationError,
|
|
65
|
+
z.ZodTypeDef,
|
|
66
|
+
unknown
|
|
67
|
+
> = z.object({
|
|
68
|
+
status: z.string().optional(),
|
|
69
|
+
customerAccountID: z.string().optional(),
|
|
70
|
+
createdStartDateTime: z.string().optional(),
|
|
71
|
+
createdEndDateTime: z.string().optional(),
|
|
72
|
+
dueStartDateTime: z.string().optional(),
|
|
73
|
+
dueEndDateTime: z.string().optional(),
|
|
74
|
+
skip: z.string().optional(),
|
|
75
|
+
count: z.string().optional(),
|
|
76
|
+
request$: z.instanceof(Request),
|
|
77
|
+
response$: z.instanceof(Response),
|
|
78
|
+
body$: z.string(),
|
|
79
|
+
})
|
|
80
|
+
.transform((v) => {
|
|
81
|
+
return new ListInvoicesValidationError(v, {
|
|
82
|
+
request: v.request$,
|
|
83
|
+
response: v.response$,
|
|
84
|
+
body: v.body$,
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export type ListInvoicesValidationError$Outbound = {
|
|
90
|
+
status?: string | undefined;
|
|
91
|
+
customerAccountID?: string | undefined;
|
|
92
|
+
createdStartDateTime?: string | undefined;
|
|
93
|
+
createdEndDateTime?: string | undefined;
|
|
94
|
+
dueStartDateTime?: string | undefined;
|
|
95
|
+
dueEndDateTime?: string | undefined;
|
|
96
|
+
skip?: string | undefined;
|
|
97
|
+
count?: string | undefined;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const ListInvoicesValidationError$outboundSchema: z.ZodType<
|
|
102
|
+
ListInvoicesValidationError$Outbound,
|
|
103
|
+
z.ZodTypeDef,
|
|
104
|
+
ListInvoicesValidationError
|
|
105
|
+
> = z.instanceof(ListInvoicesValidationError)
|
|
106
|
+
.transform(v => v.data$)
|
|
107
|
+
.pipe(z.object({
|
|
108
|
+
status: z.string().optional(),
|
|
109
|
+
customerAccountID: z.string().optional(),
|
|
110
|
+
createdStartDateTime: z.string().optional(),
|
|
111
|
+
createdEndDateTime: z.string().optional(),
|
|
112
|
+
dueStartDateTime: z.string().optional(),
|
|
113
|
+
dueEndDateTime: z.string().optional(),
|
|
114
|
+
skip: z.string().optional(),
|
|
115
|
+
count: z.string().optional(),
|
|
116
|
+
}));
|
|
@@ -80,6 +80,10 @@ export type TransferData = {
|
|
|
80
80
|
* When line items are provided, their total plus sales tax must equal the transfer amount.
|
|
81
81
|
*/
|
|
82
82
|
lineItems?: components.TransferLineItems | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* ID of the invoice that the transfer is associated with.
|
|
85
|
+
*/
|
|
86
|
+
invoiceID?: string | undefined;
|
|
83
87
|
};
|
|
84
88
|
|
|
85
89
|
/**
|
|
@@ -156,6 +160,10 @@ export class Transfer extends MoovError {
|
|
|
156
160
|
* When line items are provided, their total plus sales tax must equal the transfer amount.
|
|
157
161
|
*/
|
|
158
162
|
lineItems?: components.TransferLineItems | undefined;
|
|
163
|
+
/**
|
|
164
|
+
* ID of the invoice that the transfer is associated with.
|
|
165
|
+
*/
|
|
166
|
+
invoiceID?: string | undefined;
|
|
159
167
|
|
|
160
168
|
/** The original data that was passed to this error instance. */
|
|
161
169
|
data$: TransferData;
|
|
@@ -197,6 +205,7 @@ export class Transfer extends MoovError {
|
|
|
197
205
|
if (err.salesTaxAmount != null) this.salesTaxAmount = err.salesTaxAmount;
|
|
198
206
|
if (err.foreignID != null) this.foreignID = err.foreignID;
|
|
199
207
|
if (err.lineItems != null) this.lineItems = err.lineItems;
|
|
208
|
+
if (err.invoiceID != null) this.invoiceID = err.invoiceID;
|
|
200
209
|
|
|
201
210
|
this.name = "Transfer";
|
|
202
211
|
}
|
|
@@ -237,6 +246,7 @@ export const Transfer$inboundSchema: z.ZodType<
|
|
|
237
246
|
salesTaxAmount: components.Amount$inboundSchema.optional(),
|
|
238
247
|
foreignID: z.string().optional(),
|
|
239
248
|
lineItems: components.TransferLineItems$inboundSchema.optional(),
|
|
249
|
+
invoiceID: z.string().optional(),
|
|
240
250
|
request$: z.instanceof(Request),
|
|
241
251
|
response$: z.instanceof(Response),
|
|
242
252
|
body$: z.string(),
|
|
@@ -279,6 +289,7 @@ export type Transfer$Outbound = {
|
|
|
279
289
|
salesTaxAmount?: components.Amount$Outbound | undefined;
|
|
280
290
|
foreignID?: string | undefined;
|
|
281
291
|
lineItems?: components.TransferLineItems$Outbound | undefined;
|
|
292
|
+
invoiceID?: string | undefined;
|
|
282
293
|
};
|
|
283
294
|
|
|
284
295
|
/** @internal */
|
|
@@ -318,4 +329,5 @@ export const Transfer$outboundSchema: z.ZodType<
|
|
|
318
329
|
salesTaxAmount: components.Amount$outboundSchema.optional(),
|
|
319
330
|
foreignID: z.string().optional(),
|
|
320
331
|
lineItems: components.TransferLineItems$outboundSchema.optional(),
|
|
332
|
+
invoiceID: z.string().optional(),
|
|
321
333
|
}));
|