From af9393044dcb6ed0f365732feca22bc86aa19275 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 6 Dec 2023 09:04:23 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc 3.0.0, Speakeasy CLI 1.125.2 --- sync-for-payables/.gitattributes | 0 sync-for-payables/README.md | 472 ++++++++-- sync-for-payables/RELEASES.md | 12 +- sync-for-payables/USAGE.md | 49 +- sync-for-payables/accounts.go | 96 +- sync-for-payables/billcreditnotes.go | 113 ++- sync-for-payables/billpayments.go | 128 ++- sync-for-payables/bills.go | 240 +++-- sync-for-payables/codatsyncpayables.go | 76 +- sync-for-payables/companies.go | 113 ++- sync-for-payables/companyinfo.go | 35 +- sync-for-payables/connections.go | 111 ++- .../models/operations/createaccountrequest.md | 11 - .../operations/createaccountresponse.md | 12 - .../operations/createbillcreditnoterequest.md | 11 - .../createbillcreditnoteresponse.md | 12 - .../operations/createbillpaymentresponse.md | 12 - .../models/operations/createbillresponse.md | 12 - .../operations/createcompanyresponse.md | 12 - .../operations/createconnectionrequest.md | 9 - .../operations/createconnectionresponse.md | 12 - .../operations/createjournalentryresponse.md | 12 - .../models/operations/createjournalrequest.md | 11 - .../operations/createjournalresponse.md | 12 - .../operations/createsupplierresponse.md | 12 - .../deletebillattachmentresponse.md | 12 - .../operations/deletebillpaymentresponse.md | 12 - .../models/operations/deletebillresponse.md | 12 - .../operations/deletecompanyresponse.md | 11 - .../operations/deleteconnectionresponse.md | 11 - .../downloadbillattachmentresponse.md | 12 - .../getaccountingprofileresponse.md | 12 - .../models/operations/getaccountresponse.md | 12 - .../operations/getbillattachmentresponse.md | 12 - .../operations/getbillcreditnoteresponse.md | 12 - .../operations/getbillpaymentsresponse.md | 12 - .../docs/models/operations/getbillresponse.md | 12 - .../models/operations/getcompanyresponse.md | 12 - .../operations/getconnectionresponse.md | 12 - .../getcreateaccountmodelresponse.md | 12 - .../getcreatebillpaymentmodelresponse.md | 12 - .../getcreatejournalentrymodelresponse.md | 12 - .../getcreatejournalmodelresponse.md | 12 - ...createupdatebillcreditnotemodelresponse.md | 12 - .../getcreateupdatebillmodelresponse.md | 12 - .../getcreateupdatesuppliermodelresponse.md | 12 - .../operations/getdatastatusresponse.md | 12 - .../models/operations/getjournalresponse.md | 12 - .../operations/getpaymentmethodresponse.md | 12 - .../operations/getpulloperationresponse.md | 12 - .../operations/getpushoperationresponse.md | 12 - .../models/operations/getsupplierresponse.md | 12 - .../models/operations/gettaxrateresponse.md | 12 - .../operations/gettrackingcategoryresponse.md | 12 - .../models/operations/listaccountsresponse.md | 12 - .../operations/listbillattachmentsresponse.md | 12 - .../operations/listbillcreditnotesresponse.md | 12 - .../operations/listbillpaymentsresponse.md | 12 - .../models/operations/listbillsresponse.md | 12 - .../operations/listcompaniesresponse.md | 12 - .../operations/listconnectionsresponse.md | 12 - .../models/operations/listjournalsresponse.md | 12 - .../operations/listpaymentmethodsresponse.md | 12 - .../operations/listpulloperationsresponse.md | 12 - .../operations/listpushoperationsresponse.md | 12 - .../operations/listsuppliersresponse.md | 12 - .../models/operations/listtaxratesresponse.md | 12 - .../listtrackingcategoriesresponse.md | 12 - .../operations/refreshalldatatypesresponse.md | 11 - .../operations/refreshdatatyperesponse.md | 12 - .../operations/unlinkconnectionrequest.md | 10 - .../operations/unlinkconnectionresponse.md | 12 - .../unlinkconnectionupdateconnection.md | 8 - .../updatebillcreditnoteresponse.md | 12 - .../models/operations/updatebillresponse.md | 12 - .../operations/updatecompanyresponse.md | 12 - .../operations/updatesupplierresponse.md | 12 - .../operations/uploadbillattachmentrequest.md | 11 - .../uploadbillattachmentresponse.md | 11 - .../docs/models/shared/accounts.md | 12 - .../docs/models/shared/address.md | 14 - .../docs/models/shared/attachments.md | 8 - .../shared/billcreditnotelineitemtracking.md | 14 - .../shared/billlineitemrecordlinereference.md | 12 - ...billlineitemrecordlinereferencedatatype.md | 10 - sync-for-payables/docs/models/shared/bills.md | 12 - .../shared/clientratelimitreachedwebhook.md | 16 - .../shared/clientratelimitresetwebhook.md | 16 - .../docs/models/shared/companies.md | 12 - .../docs/models/shared/connections.md | 12 - .../models/shared/connectionsourcetype.md | 14 - .../docs/models/shared/datastatusdatatypes.md | 51 - sync-for-payables/docs/models/shared/items.md | 9 - .../docs/models/shared/journallinetracking.md | 10 - .../docs/models/shared/journals.md | 12 - sync-for-payables/docs/models/shared/links.md | 11 - .../docs/models/shared/paymentmethod.md | 20 - .../docs/models/shared/paymentmethods.md | 12 - .../docs/models/shared/phonenumber.md | 9 - .../docs/models/shared/pulloperations.md | 12 - .../docs/models/shared/pushoperationchange.md | 10 - .../docs/models/shared/pushoperationref.md | 9 - .../docs/models/shared/pushoperations.md | 12 - .../docs/models/shared/pushoption.md | 14 - .../docs/models/shared/pushoptionchoice.md | 12 - .../docs/models/shared/pushoptionproperty.md | 14 - .../docs/models/shared/pushvalidationinfo.md | 9 - .../docs/models/shared/suppliers.md | 12 - .../docs/models/shared/taxrates.md | 12 - .../docs/models/shared/tracking.md | 14 - .../docs/models/shared/trackingcategories.md | 12 - .../models/shared/trackingcategorytree.md | 18 - .../docs/models/shared/validation.md | 11 - .../docs/models/shared/weblinktype.md | 12 - .../models/operations/createaccountrequest.md | 11 + .../operations/createaccountresponse.md | 11 + .../operations/createbillcreditnoterequest.md | 11 + .../createbillcreditnoteresponse.md | 11 + .../operations/createbillpaymentrequest.md | 2 +- .../operations/createbillpaymentresponse.md | 11 + .../models/operations/createbillrequest.md | 2 +- .../models/operations/createbillresponse.md | 11 + .../operations/createcompanyresponse.md | 11 + .../operations/createconnectionrequest.md | 9 + .../operations/createconnectionrequestbody.md | 0 .../operations/createconnectionresponse.md | 11 + .../operations/createjournalentryrequest.md | 2 +- .../operations/createjournalentryresponse.md | 11 + .../models/operations/createjournalrequest.md | 11 + .../operations/createjournalresponse.md | 11 + .../operations/createsupplierrequest.md | 2 +- .../operations/createsupplierresponse.md | 11 + .../operations/deletebillattachmentrequest.md | 0 .../deletebillattachmentresponse.md | 11 + .../operations/deletebillpaymentrequest.md | 3 +- .../operations/deletebillpaymentresponse.md | 11 + .../models/operations/deletebillrequest.md | 0 .../models/operations/deletebillresponse.md | 11 + .../models/operations/deletecompanyrequest.md | 0 .../operations/deletecompanyresponse.md | 10 + .../operations/deleteconnectionrequest.md | 0 .../operations/deleteconnectionresponse.md | 10 + .../downloadbillattachmentrequest.md | 0 .../downloadbillattachmentresponse.md | 11 + .../operations/getaccountingprofilerequest.md | 0 .../getaccountingprofileresponse.md | 11 + .../models/operations/getaccountrequest.md | 0 .../models/operations/getaccountresponse.md | 11 + .../operations/getbillattachmentrequest.md | 0 .../operations/getbillattachmentresponse.md | 11 + .../operations/getbillcreditnoterequest.md | 0 .../operations/getbillcreditnoteresponse.md | 11 + .../operations/getbillpaymentsrequest.md | 0 .../operations/getbillpaymentsresponse.md | 11 + .../models/operations/getbillrequest.md | 0 .../pkg/models/operations/getbillresponse.md | 11 + .../models/operations/getcompanyrequest.md | 0 .../models/operations/getcompanyresponse.md | 11 + .../models/operations/getconnectionrequest.md | 0 .../operations/getconnectionresponse.md | 11 + .../getcreateaccountmodelrequest.md | 0 .../getcreateaccountmodelresponse.md | 11 + .../getcreatebillpaymentmodelrequest.md | 0 .../getcreatebillpaymentmodelresponse.md | 11 + .../getcreatejournalentrymodelrequest.md | 0 .../getcreatejournalentrymodelresponse.md | 11 + .../getcreatejournalmodelrequest.md | 0 .../getcreatejournalmodelresponse.md | 11 + ...tcreateupdatebillcreditnotemodelrequest.md | 0 ...createupdatebillcreditnotemodelresponse.md | 11 + .../getcreateupdatebillmodelrequest.md | 0 .../getcreateupdatebillmodelresponse.md | 11 + .../getcreateupdatesuppliermodelrequest.md | 0 .../getcreateupdatesuppliermodelresponse.md | 11 + .../models/operations/getdatastatusrequest.md | 0 .../operations/getdatastatusresponse.md | 11 + .../models/operations/getjournalrequest.md | 0 .../models/operations/getjournalresponse.md | 11 + .../operations/getpaymentmethodrequest.md | 0 .../operations/getpaymentmethodresponse.md | 11 + .../operations/getpulloperationrequest.md | 0 .../operations/getpulloperationresponse.md | 11 + .../operations/getpushoperationrequest.md | 0 .../operations/getpushoperationresponse.md | 11 + .../models/operations/getsupplierrequest.md | 0 .../models/operations/getsupplierresponse.md | 11 + .../models/operations/gettaxraterequest.md | 0 .../models/operations/gettaxrateresponse.md | 11 + .../operations/gettrackingcategoryrequest.md | 0 .../operations/gettrackingcategoryresponse.md | 11 + .../models/operations/listaccountsrequest.md | 0 .../models/operations/listaccountsresponse.md | 11 + .../operations/listbillattachmentsrequest.md | 0 .../operations/listbillattachmentsresponse.md | 11 + .../operations/listbillcreditnotesrequest.md | 0 .../operations/listbillcreditnotesresponse.md | 11 + .../operations/listbillpaymentsrequest.md | 0 .../operations/listbillpaymentsresponse.md | 11 + .../models/operations/listbillsrequest.md | 0 .../models/operations/listbillsresponse.md | 11 + .../models/operations/listcompaniesrequest.md | 0 .../operations/listcompaniesresponse.md | 11 + .../operations/listconnectionsrequest.md | 0 .../operations/listconnectionsresponse.md | 11 + .../models/operations/listjournalsrequest.md | 0 .../models/operations/listjournalsresponse.md | 11 + .../operations/listpaymentmethodsrequest.md | 0 .../operations/listpaymentmethodsresponse.md | 11 + .../operations/listpulloperationsrequest.md | 0 .../operations/listpulloperationsresponse.md | 11 + .../operations/listpushoperationsrequest.md | 0 .../operations/listpushoperationsresponse.md | 11 + .../models/operations/listsuppliersrequest.md | 0 .../operations/listsuppliersresponse.md | 11 + .../models/operations/listtaxratesrequest.md | 0 .../models/operations/listtaxratesresponse.md | 11 + .../listtrackingcategoriesrequest.md | 0 .../listtrackingcategoriesresponse.md | 11 + .../{ => pkg}/models/operations/option.md | 6 +- .../operations/refreshalldatatypesrequest.md | 0 .../operations/refreshalldatatypesresponse.md | 10 + .../operations/refreshdatatyperequest.md | 2 +- .../operations/refreshdatatyperesponse.md | 11 + .../operations/unlinkconnectionrequest.md | 10 + .../operations/unlinkconnectionresponse.md | 11 + .../unlinkconnectionupdateconnection.md | 8 + .../operations/updatebillcreditnoterequest.md | 2 +- .../updatebillcreditnoteresponse.md | 11 + .../models/operations/updatebillrequest.md | 2 +- .../models/operations/updatebillresponse.md | 11 + .../models/operations/updatecompanyrequest.md | 9 + .../operations/updatecompanyresponse.md | 11 + .../operations/updatesupplierrequest.md | 2 +- .../operations/updatesupplierresponse.md | 11 + .../operations/uploadbillattachmentrequest.md | 11 + .../uploadbillattachmentresponse.md | 10 + .../models/sdkerrors}/errormessage.md | 2 + .../docs/{ => pkg}/models/shared/account.md | 36 +- .../models/shared/accountingaddresstype.md | 0 .../shared/accountingpaymentallocation.md | 9 + .../shared/accountingprojectreference.md} | 2 +- .../pkg/models/shared/accountprototype.md | 19 + .../{ => pkg}/models/shared/accountref.md | 0 .../models/shared/accounts.md} | 6 +- .../{ => pkg}/models/shared/accountstatus.md | 0 .../{ => pkg}/models/shared/accounttype.md | 0 .../shared/accountvaliddatatypelinks.md | 0 .../docs/pkg/models/shared/address.md | 14 + .../models/shared/allocation.md} | 2 +- .../{ => pkg}/models/shared/attachment.md | 0 .../docs/pkg/models/shared/attachments.md | 8 + .../pkg/models/shared/attachmentupload.md | 8 + .../docs/{ => pkg}/models/shared/bill.md | 16 +- .../models/shared/billallocation.md} | 2 +- .../{ => pkg}/models/shared/billcreditnote.md | 14 +- .../models/shared/billcreditnotelineitem.md | 10 +- ...notelineitemaccountingprojectreference.md} | 2 +- .../billcreditnotelineitemcustomerref.md} | 2 +- .../shared/billcreditnotelineitemtracking.md | 14 + .../docs/pkg/models/shared/billcreditnotes.md | 12 + .../models/shared/billcreditnotestatus.md | 0 .../{ => pkg}/models/shared/billedtotype.md | 0 .../{ => pkg}/models/shared/billlineitem.md | 15 +- .../pkg/models/shared/billlineitemdatatype.md | 10 + .../{ => pkg}/models/shared/billpayment.md | 12 +- .../models/shared/billpaymentline.md | 2 +- .../models/shared/billpaymentlinelink.md | 2 +- .../models/shared/billpaymentlinelinktype.md | 0 .../docs/pkg/models/shared/billpayments.md | 12 + .../models/shared/bills.md} | 6 +- .../{ => pkg}/models/shared/billstatus.md | 0 .../shared/clientratelimitreachedwebhook.md | 16 + .../clientratelimitreachedwebhookdata.md | 0 .../shared/clientratelimitresetwebhook.md | 16 + .../shared/clientratelimitresetwebhookdata.md | 0 .../models/shared/codatfile.md} | 4 +- .../docs/pkg/models/shared/companies.md | 12 + .../docs/{ => pkg}/models/shared/company.md | 2 +- .../{ => pkg}/models/shared/companyinfo.md | 12 +- .../models/shared/companyrequestbody.md | 0 .../{ => pkg}/models/shared/connection.md | 6 +- .../docs/pkg/models/shared/connections.md | 12 + .../models/shared/createaccountresponse.md | 32 +- .../shared/createbillcreditnoteresponse.md | 10 +- .../shared/createbillpaymentresponse.md | 10 +- .../models/shared/createbillresponse.md | 10 +- .../shared/createjournalentryresponse.md | 10 +- .../models/shared/createjournalresponse.md | 10 +- .../models/shared/createsupplierresponse.md | 10 +- .../models/shared/customerref.md} | 2 +- .../models/shared/dataconnectionerror.md | 0 .../models/shared/dataconnectionstatus.md | 0 .../{ => pkg}/models/shared/datastatus.md | 2 +- .../docs/{ => pkg}/models/shared/datatype.md | 1 + .../docs/pkg/models/shared/datatypes.md | 52 ++ .../docs/{ => pkg}/models/shared/halref.md | 0 .../docs/{ => pkg}/models/shared/itemref.md | 0 .../models/shared/itemreference.md} | 2 +- .../models/shared/items.md} | 6 +- .../docs/{ => pkg}/models/shared/journal.md | 4 +- .../{ => pkg}/models/shared/journalentry.md | 10 +- .../{ => pkg}/models/shared/journalline.md | 4 +- .../pkg/models/shared/journallinetracking.md | 10 + .../pkg/models/shared/journalprototype.md | 14 + .../{ => pkg}/models/shared/journalref.md | 0 .../docs/pkg/models/shared/journals.md | 12 + .../{ => pkg}/models/shared/journalstatus.md | 0 .../docs/pkg/models/shared/links.md | 11 + .../docs/{ => pkg}/models/shared/metadata.md | 0 .../models/shared/paymentallocationpayment.md | 2 +- .../docs/pkg/models/shared/paymentmethod.md | 20 + .../models/shared/paymentmethodref.md | 2 +- .../docs/pkg/models/shared/paymentmethods.md | 12 + .../models/shared/paymentmethodstatus.md | 0 .../models/shared/paymentmethodtype.md | 0 .../models/shared/phonenumber.md} | 6 +- .../models/shared/phonenumbertype.md | 0 .../{ => pkg}/models/shared/pulloperation.md | 7 +- .../docs/pkg/models/shared/pulloperations.md | 12 + .../models/shared/pulloperationstatus.md | 0 .../models/shared/purchaseorderreference.md} | 2 +- .../{ => pkg}/models/shared/pushchangetype.md | 0 .../models/shared/pushfieldvalidation.md | 0 .../{ => pkg}/models/shared/pushoperation.md | 8 +- .../pkg/models/shared/pushoperationchange.md | 10 + .../pkg/models/shared/pushoperationref.md | 9 + .../docs/pkg/models/shared/pushoperations.md | 12 + .../models/shared/pushoperationstatus.md | 0 .../docs/pkg/models/shared/pushoption.md | 14 + .../pkg/models/shared/pushoptionchoice.md | 12 + .../pkg/models/shared/pushoptionproperty.md | 14 + .../{ => pkg}/models/shared/pushoptiontype.md | 0 .../pkg/models/shared/pushvalidationinfo.md | 9 + .../pkg/models/shared/recordlinereference.md | 12 + .../docs/{ => pkg}/models/shared/recordref.md | 0 .../models/shared/recordreference.md} | 2 +- .../docs/pkg/models/shared/schemadatatype.md | 52 ++ .../docs/{ => pkg}/models/shared/security.md | 0 .../docs/pkg/models/shared/sourcetype.md | 14 + .../docs/{ => pkg}/models/shared/status.md | 0 .../models/shared/supplementaldata.md | 0 .../docs/{ => pkg}/models/shared/supplier.md | 8 +- .../{ => pkg}/models/shared/supplierref.md | 0 .../docs/pkg/models/shared/suppliers.md | 12 + .../{ => pkg}/models/shared/supplierstatus.md | 0 .../docs/{ => pkg}/models/shared/taxrate.md | 22 +- .../models/shared/taxratecomponent.md | 0 .../{ => pkg}/models/shared/taxrateref.md | 0 .../docs/pkg/models/shared/taxrates.md | 12 + .../{ => pkg}/models/shared/taxratestatus.md | 0 .../docs/pkg/models/shared/tracking.md | 14 + .../pkg/models/shared/trackingcategories.md | 12 + .../models/shared/trackingcategory.md | 4 +- .../models/shared/trackingcategoryref.md | 0 .../pkg/models/shared/trackingcategorytree.md | 18 + .../docs/pkg/models/shared/type.md | 12 + .../shared/updatebillcreditnoteresponse.md | 10 +- .../models/shared/updatebillresponse.md | 10 +- .../models/shared/updatesupplierresponse.md | 10 +- .../docs/pkg/models/shared/validation.md | 11 + .../{ => pkg}/models/shared/validationitem.md | 0 .../models/shared/validdatatypelinkitems.md} | 2 +- .../pkg/models/shared/validdatatypelinks.md | 50 + .../docs/{ => pkg}/models/shared/weblink.md | 2 +- .../models/shared/withholdingtax.md} | 2 +- .../models/shared/withholdingtaxitems.md | 2 +- .../clientratelimitreachedresponse.md | 2 +- .../webhooks/clientratelimitresetresponse.md | 2 +- .../docs/sdks/accounts/README.md | 112 +-- .../docs/sdks/billcreditnotes/README.md | 163 ++-- .../docs/sdks/billpayments/README.md | 139 +-- sync-for-payables/docs/sdks/bills/README.md | 339 ++++--- .../docs/sdks/codatsyncpayables/README.md | 0 .../docs/sdks/companies/README.md | 114 ++- .../docs/sdks/companyinfo/README.md | 23 +- .../docs/sdks/connections/README.md | 116 ++- .../docs/sdks/journalentries/README.md | 54 +- .../docs/sdks/journals/README.md | 103 ++- .../docs/sdks/managedata/README.md | 120 +-- .../docs/sdks/paymentmethods/README.md | 48 +- .../docs/sdks/pushoperations/README.md | 46 +- .../docs/sdks/suppliers/README.md | 127 +-- .../docs/sdks/taxrates/README.md | 48 +- .../docs/sdks/trackingcategories/README.md | 48 +- sync-for-payables/files.gen | 870 +++++++++--------- sync-for-payables/gen.yaml | 38 +- sync-for-payables/go.mod | 2 +- sync-for-payables/go.sum | 0 sync-for-payables/journalentries.go | 54 +- sync-for-payables/journals.go | 96 +- sync-for-payables/managedata.go | 113 ++- sync-for-payables/paymentmethods.go | 56 +- .../pkg/models/operations/createaccount.go | 17 +- .../pkg/models/operations/createbill.go | 11 +- .../models/operations/createbillcreditnote.go | 11 +- .../models/operations/createbillpayment.go | 11 +- .../pkg/models/operations/createcompany.go | 11 +- .../pkg/models/operations/createconnection.go | 11 +- .../pkg/models/operations/createjournal.go | 29 +- .../models/operations/createjournalentry.go | 11 +- .../pkg/models/operations/createsupplier.go | 11 +- .../pkg/models/operations/deletebill.go | 11 +- .../models/operations/deletebillattachment.go | 11 +- .../models/operations/deletebillpayment.go | 20 +- .../pkg/models/operations/deletecompany.go | 10 - .../pkg/models/operations/deleteconnection.go | 10 - .../operations/downloadbillattachment.go | 10 - .../pkg/models/operations/getaccount.go | 11 +- .../models/operations/getaccountingprofile.go | 11 +- .../pkg/models/operations/getbill.go | 11 +- .../models/operations/getbillattachment.go | 11 +- .../models/operations/getbillcreditnote.go | 11 +- .../pkg/models/operations/getbillpayments.go | 11 +- .../pkg/models/operations/getcompany.go | 11 +- .../pkg/models/operations/getconnection.go | 11 +- .../operations/getcreateaccountmodel.go | 11 +- .../operations/getcreatebillpaymentmodel.go | 11 +- .../operations/getcreatejournalentrymodel.go | 11 +- .../operations/getcreatejournalmodel.go | 11 +- .../getcreateupdatebillcreditnotemodel.go | 11 +- .../operations/getcreateupdatebillmodel.go | 11 +- .../getcreateupdatesuppliermodel.go | 11 +- .../pkg/models/operations/getdatastatus.go | 17 +- .../pkg/models/operations/getjournal.go | 11 +- .../pkg/models/operations/getpaymentmethod.go | 11 +- .../pkg/models/operations/getpulloperation.go | 11 +- .../pkg/models/operations/getpushoperation.go | 11 +- .../pkg/models/operations/getsupplier.go | 11 +- .../pkg/models/operations/gettaxrate.go | 11 +- .../models/operations/gettrackingcategory.go | 11 +- .../pkg/models/operations/listaccounts.go | 13 +- .../models/operations/listbillattachments.go | 11 +- .../models/operations/listbillcreditnotes.go | 13 +- .../pkg/models/operations/listbillpayments.go | 13 +- .../pkg/models/operations/listbills.go | 13 +- .../pkg/models/operations/listcompanies.go | 13 +- .../pkg/models/operations/listconnections.go | 13 +- .../pkg/models/operations/listjournals.go | 13 +- .../models/operations/listpaymentmethods.go | 13 +- .../models/operations/listpulloperations.go | 13 +- .../models/operations/listpushoperations.go | 13 +- .../pkg/models/operations/listsuppliers.go | 13 +- .../pkg/models/operations/listtaxrates.go | 13 +- .../operations/listtrackingcategories.go | 13 +- .../pkg/models/operations/options.go | 2 +- .../models/operations/refreshalldatatypes.go | 10 - .../pkg/models/operations/refreshdatatype.go | 17 +- .../pkg/models/operations/unlinkconnection.go | 11 +- .../pkg/models/operations/updatebill.go | 13 +- .../models/operations/updatebillcreditnote.go | 13 +- .../pkg/models/operations/updatecompany.go | 11 +- .../pkg/models/operations/updatesupplier.go | 13 +- .../models/operations/uploadbillattachment.go | 36 +- .../{shared => sdkerrors}/errormessage.go | 52 +- .../pkg/models/sdkerrors/sdkerror.go | 0 .../pkg/models/shared/account.go | 12 +- .../models/shared/accountingaddresstype.go | 0 .../pkg/models/shared/accountprototype.go | 204 ++++ .../pkg/models/shared/accountref.go | 0 .../pkg/models/shared/accounts.go | 0 .../pkg/models/shared/accountstatus.go | 0 .../pkg/models/shared/accounttype.go | 0 .../pkg/models/shared/address.go | 0 .../pkg/models/shared/attachment.go | 0 .../pkg/models/shared/attachments.go | 0 .../pkg/models/shared/attachmentupload.go | 15 + sync-for-payables/pkg/models/shared/bill.go | 62 +- .../pkg/models/shared/billcreditnote.go | 6 +- .../models/shared/billcreditnotelineitem.go | 38 +- .../pkg/models/shared/billcreditnotes.go | 0 .../pkg/models/shared/billcreditnotestatus.go | 0 .../pkg/models/shared/billedtotype.go | 0 .../pkg/models/shared/billlineitem.go | 44 +- .../pkg/models/shared/billpayment.go | 2 +- .../pkg/models/shared/billpaymentline.go | 2 +- .../pkg/models/shared/billpaymentlinelink.go | 2 +- .../models/shared/billpaymentlinelinktype.go | 0 .../pkg/models/shared/billpayments.go | 0 sync-for-payables/pkg/models/shared/bills.go | 0 .../pkg/models/shared/billstatus.go | 0 .../shared/clientratelimitreachedwebhook.go | 0 .../clientratelimitreachedwebhookdata.go | 0 .../shared/clientratelimitresetwebhook.go | 0 .../shared/clientratelimitresetwebhookdata.go | 0 .../pkg/models/shared/codatfile.go | 22 + .../pkg/models/shared/companies.go | 0 .../pkg/models/shared/company.go | 0 .../pkg/models/shared/companyinfo.go | 4 +- .../pkg/models/shared/companyrequestbody.go | 0 .../pkg/models/shared/connection.go | 28 +- .../pkg/models/shared/connections.go | 0 .../models/shared/createaccountresponse.go | 10 +- .../shared/createbillcreditnoteresponse.go | 0 .../shared/createbillpaymentresponse.go | 0 .../pkg/models/shared/createbillresponse.go | 0 .../shared/createjournalentryresponse.go | 0 .../models/shared/createjournalresponse.go | 0 .../models/shared/createsupplierresponse.go | 0 .../pkg/models/shared/dataconnectionerror.go | 0 .../pkg/models/shared/dataconnectionstatus.go | 0 .../pkg/models/shared/datastatus.go | 105 ++- .../pkg/models/shared/datatype.go | 3 + sync-for-payables/pkg/models/shared/halref.go | 0 .../pkg/models/shared/itemref.go | 0 sync-for-payables/pkg/models/shared/items.go | 26 +- .../pkg/models/shared/journal.go | 0 .../pkg/models/shared/journalentry.go | 14 +- .../pkg/models/shared/journalline.go | 2 +- .../pkg/models/shared/journalprototype.go | 89 ++ .../pkg/models/shared/journalref.go | 0 .../pkg/models/shared/journals.go | 0 .../pkg/models/shared/journalstatus.go | 0 sync-for-payables/pkg/models/shared/links.go | 0 .../pkg/models/shared/metadata.go | 0 .../models/shared/paymentallocationpayment.go | 2 +- .../pkg/models/shared/paymentmethod.go | 0 .../pkg/models/shared/paymentmethodref.go | 2 +- .../pkg/models/shared/paymentmethods.go | 0 .../pkg/models/shared/paymentmethodtype.go | 0 .../pkg/models/shared/phonenumber.go | 0 .../pkg/models/shared/phonenumbertype.go | 0 .../pkg/models/shared/pulloperation.go | 19 +- .../pkg/models/shared/pulloperations.go | 0 .../pkg/models/shared/pushchangetype.go | 0 .../pkg/models/shared/pushfieldvalidation.go | 0 .../pkg/models/shared/pushoperation.go | 0 .../pkg/models/shared/pushoperationchange.go | 0 .../pkg/models/shared/pushoperationref.go | 0 .../pkg/models/shared/pushoperations.go | 0 .../pkg/models/shared/pushoperationstatus.go | 0 .../pkg/models/shared/pushoption.go | 0 .../pkg/models/shared/pushoptionchoice.go | 0 .../pkg/models/shared/pushoptionproperty.go | 0 .../pkg/models/shared/pushoptiontype.go | 0 .../pkg/models/shared/pushvalidationinfo.go | 0 .../pkg/models/shared/recordref.go | 0 .../pkg/models/shared/schemadatatype.go | 159 ++++ .../pkg/models/shared/security.go | 0 sync-for-payables/pkg/models/shared/status.go | 0 .../pkg/models/shared/supplementaldata.go | 0 .../pkg/models/shared/supplier.go | 0 .../pkg/models/shared/supplierref.go | 0 .../pkg/models/shared/suppliers.go | 0 .../pkg/models/shared/supplierstatus.go | 0 .../pkg/models/shared/taxrate.go | 8 +- .../pkg/models/shared/taxratecomponent.go | 2 +- .../pkg/models/shared/taxrateref.go | 2 +- .../pkg/models/shared/taxrates.go | 0 .../pkg/models/shared/taxratestatus.go | 0 .../pkg/models/shared/tracking.go | 22 +- .../pkg/models/shared/trackingcategories.go | 0 .../pkg/models/shared/trackingcategory.go | 0 .../pkg/models/shared/trackingcategoryref.go | 0 .../pkg/models/shared/trackingcategorytree.go | 0 .../shared/updatebillcreditnoteresponse.go | 0 .../pkg/models/shared/updatebillresponse.go | 0 .../models/shared/updatesupplierresponse.go | 0 .../pkg/models/shared/validation.go | 0 .../pkg/models/shared/validationitem.go | 0 ...inksitems.go => validdatatypelinkitems.go} | 8 +- .../pkg/models/shared/weblink.go | 22 +- .../pkg/models/shared/withholdingtaxitems.go | 12 +- .../models/webhooks/clientratelimitreached.go | 0 .../models/webhooks/clientratelimitreset.go | 0 sync-for-payables/pkg/types/bigint.go | 0 sync-for-payables/pkg/types/date.go | 0 sync-for-payables/pkg/types/datetime.go | 0 sync-for-payables/pkg/types/decimal.go | 0 sync-for-payables/pkg/types/pointers.go | 0 sync-for-payables/pkg/utils/contenttype.go | 0 sync-for-payables/pkg/utils/form.go | 2 +- sync-for-payables/pkg/utils/headers.go | 0 sync-for-payables/pkg/utils/json.go | 31 +- sync-for-payables/pkg/utils/pathparams.go | 2 +- sync-for-payables/pkg/utils/queryparams.go | 0 sync-for-payables/pkg/utils/requestbody.go | 0 sync-for-payables/pkg/utils/retries.go | 0 sync-for-payables/pkg/utils/security.go | 0 sync-for-payables/pkg/utils/utils.go | 1 - sync-for-payables/pushoperations.go | 54 +- sync-for-payables/suppliers.go | 113 ++- sync-for-payables/taxrates.go | 56 +- sync-for-payables/trackingcategories.go | 56 +- 583 files changed, 5266 insertions(+), 4087 deletions(-) mode change 100755 => 100644 sync-for-payables/.gitattributes mode change 100755 => 100644 sync-for-payables/USAGE.md mode change 100755 => 100644 sync-for-payables/accounts.go mode change 100755 => 100644 sync-for-payables/billcreditnotes.go mode change 100755 => 100644 sync-for-payables/billpayments.go mode change 100755 => 100644 sync-for-payables/bills.go mode change 100755 => 100644 sync-for-payables/codatsyncpayables.go mode change 100755 => 100644 sync-for-payables/companies.go mode change 100755 => 100644 sync-for-payables/companyinfo.go mode change 100755 => 100644 sync-for-payables/connections.go delete mode 100755 sync-for-payables/docs/models/operations/createaccountrequest.md delete mode 100755 sync-for-payables/docs/models/operations/createaccountresponse.md delete mode 100755 sync-for-payables/docs/models/operations/createbillcreditnoterequest.md delete mode 100755 sync-for-payables/docs/models/operations/createbillcreditnoteresponse.md delete mode 100755 sync-for-payables/docs/models/operations/createbillpaymentresponse.md delete mode 100755 sync-for-payables/docs/models/operations/createbillresponse.md delete mode 100755 sync-for-payables/docs/models/operations/createcompanyresponse.md delete mode 100755 sync-for-payables/docs/models/operations/createconnectionrequest.md delete mode 100755 sync-for-payables/docs/models/operations/createconnectionresponse.md delete mode 100755 sync-for-payables/docs/models/operations/createjournalentryresponse.md delete mode 100755 sync-for-payables/docs/models/operations/createjournalrequest.md delete mode 100755 sync-for-payables/docs/models/operations/createjournalresponse.md delete mode 100755 sync-for-payables/docs/models/operations/createsupplierresponse.md delete mode 100755 sync-for-payables/docs/models/operations/deletebillattachmentresponse.md delete mode 100755 sync-for-payables/docs/models/operations/deletebillpaymentresponse.md delete mode 100755 sync-for-payables/docs/models/operations/deletebillresponse.md delete mode 100755 sync-for-payables/docs/models/operations/deletecompanyresponse.md delete mode 100755 sync-for-payables/docs/models/operations/deleteconnectionresponse.md delete mode 100755 sync-for-payables/docs/models/operations/downloadbillattachmentresponse.md delete mode 100755 sync-for-payables/docs/models/operations/getaccountingprofileresponse.md delete mode 100755 sync-for-payables/docs/models/operations/getaccountresponse.md delete mode 100755 sync-for-payables/docs/models/operations/getbillattachmentresponse.md delete mode 100755 sync-for-payables/docs/models/operations/getbillcreditnoteresponse.md delete mode 100755 sync-for-payables/docs/models/operations/getbillpaymentsresponse.md delete mode 100755 sync-for-payables/docs/models/operations/getbillresponse.md delete mode 100755 sync-for-payables/docs/models/operations/getcompanyresponse.md delete mode 100755 sync-for-payables/docs/models/operations/getconnectionresponse.md delete mode 100755 sync-for-payables/docs/models/operations/getcreateaccountmodelresponse.md delete mode 100755 sync-for-payables/docs/models/operations/getcreatebillpaymentmodelresponse.md delete mode 100755 sync-for-payables/docs/models/operations/getcreatejournalentrymodelresponse.md delete mode 100755 sync-for-payables/docs/models/operations/getcreatejournalmodelresponse.md delete mode 100755 sync-for-payables/docs/models/operations/getcreateupdatebillcreditnotemodelresponse.md delete mode 100755 sync-for-payables/docs/models/operations/getcreateupdatebillmodelresponse.md delete mode 100755 sync-for-payables/docs/models/operations/getcreateupdatesuppliermodelresponse.md delete mode 100755 sync-for-payables/docs/models/operations/getdatastatusresponse.md delete mode 100755 sync-for-payables/docs/models/operations/getjournalresponse.md delete mode 100755 sync-for-payables/docs/models/operations/getpaymentmethodresponse.md delete mode 100755 sync-for-payables/docs/models/operations/getpulloperationresponse.md delete mode 100755 sync-for-payables/docs/models/operations/getpushoperationresponse.md delete mode 100755 sync-for-payables/docs/models/operations/getsupplierresponse.md delete mode 100755 sync-for-payables/docs/models/operations/gettaxrateresponse.md delete mode 100755 sync-for-payables/docs/models/operations/gettrackingcategoryresponse.md delete mode 100755 sync-for-payables/docs/models/operations/listaccountsresponse.md delete mode 100755 sync-for-payables/docs/models/operations/listbillattachmentsresponse.md delete mode 100755 sync-for-payables/docs/models/operations/listbillcreditnotesresponse.md delete mode 100755 sync-for-payables/docs/models/operations/listbillpaymentsresponse.md delete mode 100755 sync-for-payables/docs/models/operations/listbillsresponse.md delete mode 100755 sync-for-payables/docs/models/operations/listcompaniesresponse.md delete mode 100755 sync-for-payables/docs/models/operations/listconnectionsresponse.md delete mode 100755 sync-for-payables/docs/models/operations/listjournalsresponse.md delete mode 100755 sync-for-payables/docs/models/operations/listpaymentmethodsresponse.md delete mode 100755 sync-for-payables/docs/models/operations/listpulloperationsresponse.md delete mode 100755 sync-for-payables/docs/models/operations/listpushoperationsresponse.md delete mode 100755 sync-for-payables/docs/models/operations/listsuppliersresponse.md delete mode 100755 sync-for-payables/docs/models/operations/listtaxratesresponse.md delete mode 100755 sync-for-payables/docs/models/operations/listtrackingcategoriesresponse.md delete mode 100755 sync-for-payables/docs/models/operations/refreshalldatatypesresponse.md delete mode 100755 sync-for-payables/docs/models/operations/refreshdatatyperesponse.md delete mode 100755 sync-for-payables/docs/models/operations/unlinkconnectionrequest.md delete mode 100755 sync-for-payables/docs/models/operations/unlinkconnectionresponse.md delete mode 100755 sync-for-payables/docs/models/operations/unlinkconnectionupdateconnection.md delete mode 100755 sync-for-payables/docs/models/operations/updatebillcreditnoteresponse.md delete mode 100755 sync-for-payables/docs/models/operations/updatebillresponse.md delete mode 100755 sync-for-payables/docs/models/operations/updatecompanyresponse.md delete mode 100755 sync-for-payables/docs/models/operations/updatesupplierresponse.md delete mode 100755 sync-for-payables/docs/models/operations/uploadbillattachmentrequest.md delete mode 100755 sync-for-payables/docs/models/operations/uploadbillattachmentresponse.md delete mode 100755 sync-for-payables/docs/models/shared/accounts.md delete mode 100755 sync-for-payables/docs/models/shared/address.md delete mode 100755 sync-for-payables/docs/models/shared/attachments.md delete mode 100755 sync-for-payables/docs/models/shared/billcreditnotelineitemtracking.md delete mode 100755 sync-for-payables/docs/models/shared/billlineitemrecordlinereference.md delete mode 100755 sync-for-payables/docs/models/shared/billlineitemrecordlinereferencedatatype.md delete mode 100755 sync-for-payables/docs/models/shared/bills.md delete mode 100755 sync-for-payables/docs/models/shared/clientratelimitreachedwebhook.md delete mode 100755 sync-for-payables/docs/models/shared/clientratelimitresetwebhook.md delete mode 100755 sync-for-payables/docs/models/shared/companies.md delete mode 100755 sync-for-payables/docs/models/shared/connections.md delete mode 100755 sync-for-payables/docs/models/shared/connectionsourcetype.md delete mode 100755 sync-for-payables/docs/models/shared/datastatusdatatypes.md delete mode 100755 sync-for-payables/docs/models/shared/items.md delete mode 100755 sync-for-payables/docs/models/shared/journallinetracking.md delete mode 100755 sync-for-payables/docs/models/shared/journals.md delete mode 100755 sync-for-payables/docs/models/shared/links.md delete mode 100755 sync-for-payables/docs/models/shared/paymentmethod.md delete mode 100755 sync-for-payables/docs/models/shared/paymentmethods.md delete mode 100755 sync-for-payables/docs/models/shared/phonenumber.md delete mode 100755 sync-for-payables/docs/models/shared/pulloperations.md delete mode 100755 sync-for-payables/docs/models/shared/pushoperationchange.md delete mode 100755 sync-for-payables/docs/models/shared/pushoperationref.md delete mode 100755 sync-for-payables/docs/models/shared/pushoperations.md delete mode 100755 sync-for-payables/docs/models/shared/pushoption.md delete mode 100755 sync-for-payables/docs/models/shared/pushoptionchoice.md delete mode 100755 sync-for-payables/docs/models/shared/pushoptionproperty.md delete mode 100755 sync-for-payables/docs/models/shared/pushvalidationinfo.md delete mode 100755 sync-for-payables/docs/models/shared/suppliers.md delete mode 100755 sync-for-payables/docs/models/shared/taxrates.md delete mode 100755 sync-for-payables/docs/models/shared/tracking.md delete mode 100755 sync-for-payables/docs/models/shared/trackingcategories.md delete mode 100755 sync-for-payables/docs/models/shared/trackingcategorytree.md delete mode 100755 sync-for-payables/docs/models/shared/validation.md delete mode 100755 sync-for-payables/docs/models/shared/weblinktype.md create mode 100644 sync-for-payables/docs/pkg/models/operations/createaccountrequest.md create mode 100644 sync-for-payables/docs/pkg/models/operations/createaccountresponse.md create mode 100644 sync-for-payables/docs/pkg/models/operations/createbillcreditnoterequest.md create mode 100644 sync-for-payables/docs/pkg/models/operations/createbillcreditnoteresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/createbillpaymentrequest.md (94%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/createbillpaymentresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/createbillrequest.md (97%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/createbillresponse.md create mode 100644 sync-for-payables/docs/pkg/models/operations/createcompanyresponse.md create mode 100644 sync-for-payables/docs/pkg/models/operations/createconnectionrequest.md rename sync-for-payables/docs/{ => pkg}/models/operations/createconnectionrequestbody.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/createconnectionresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/createjournalentryrequest.md (94%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/createjournalentryresponse.md create mode 100644 sync-for-payables/docs/pkg/models/operations/createjournalrequest.md create mode 100644 sync-for-payables/docs/pkg/models/operations/createjournalresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/createsupplierrequest.md (94%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/createsupplierresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/deletebillattachmentrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/deletebillattachmentresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/deletebillpaymentrequest.md (79%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/deletebillpaymentresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/deletebillrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/deletebillresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/deletecompanyrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/deletecompanyresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/deleteconnectionrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/deleteconnectionresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/downloadbillattachmentrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/downloadbillattachmentresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/getaccountingprofilerequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/getaccountingprofileresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/getaccountrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/getaccountresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/getbillattachmentrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/getbillattachmentresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/getbillcreditnoterequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/getbillcreditnoteresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/getbillpaymentsrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/getbillpaymentsresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/getbillrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/getbillresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/getcompanyrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/getcompanyresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/getconnectionrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/getconnectionresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/getcreateaccountmodelrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/getcreateaccountmodelresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/getcreatebillpaymentmodelrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/getcreatebillpaymentmodelresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/getcreatejournalentrymodelrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/getcreatejournalentrymodelresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/getcreatejournalmodelrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/getcreatejournalmodelresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/getcreateupdatebillcreditnotemodelrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/getcreateupdatebillcreditnotemodelresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/getcreateupdatebillmodelrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/getcreateupdatebillmodelresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/getcreateupdatesuppliermodelrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/getcreateupdatesuppliermodelresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/getdatastatusrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/getdatastatusresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/getjournalrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/getjournalresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/getpaymentmethodrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/getpaymentmethodresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/getpulloperationrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/getpulloperationresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/getpushoperationrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/getpushoperationresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/getsupplierrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/getsupplierresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/gettaxraterequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/gettaxrateresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/gettrackingcategoryrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/gettrackingcategoryresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/listaccountsrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/listaccountsresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/listbillattachmentsrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/listbillattachmentsresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/listbillcreditnotesrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/listbillcreditnotesresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/listbillpaymentsrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/listbillpaymentsresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/listbillsrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/listbillsresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/listcompaniesrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/listcompaniesresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/listconnectionsrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/listconnectionsresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/listjournalsrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/listjournalsresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/listpaymentmethodsrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/listpaymentmethodsresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/listpulloperationsrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/listpulloperationsresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/listpushoperationsrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/listpushoperationsresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/listsuppliersrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/listsuppliersresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/listtaxratesrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/listtaxratesresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/listtrackingcategoriesrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/listtrackingcategoriesresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/option.md (94%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/operations/refreshalldatatypesrequest.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/refreshalldatatypesresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/refreshdatatyperequest.md (94%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/refreshdatatyperesponse.md create mode 100644 sync-for-payables/docs/pkg/models/operations/unlinkconnectionrequest.md create mode 100644 sync-for-payables/docs/pkg/models/operations/unlinkconnectionresponse.md create mode 100644 sync-for-payables/docs/pkg/models/operations/unlinkconnectionupdateconnection.md rename sync-for-payables/docs/{ => pkg}/models/operations/updatebillcreditnoterequest.md (99%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/updatebillcreditnoteresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/updatebillrequest.md (99%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/updatebillresponse.md create mode 100644 sync-for-payables/docs/pkg/models/operations/updatecompanyrequest.md create mode 100644 sync-for-payables/docs/pkg/models/operations/updatecompanyresponse.md rename sync-for-payables/docs/{ => pkg}/models/operations/updatesupplierrequest.md (99%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/operations/updatesupplierresponse.md create mode 100644 sync-for-payables/docs/pkg/models/operations/uploadbillattachmentrequest.md create mode 100644 sync-for-payables/docs/pkg/models/operations/uploadbillattachmentresponse.md rename sync-for-payables/docs/{models/shared => pkg/models/sdkerrors}/errormessage.md (99%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/account.md (97%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/accountingaddresstype.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/accountingpaymentallocation.md rename sync-for-payables/docs/{models/shared/trackingprojectreference.md => pkg/models/shared/accountingprojectreference.md} (96%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/accountprototype.md rename sync-for-payables/docs/{ => pkg}/models/shared/accountref.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{models/shared/billcreditnotes.md => pkg/models/shared/accounts.md} (87%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/accountstatus.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/accounttype.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/accountvaliddatatypelinks.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/address.md rename sync-for-payables/docs/{models/shared/itemsallocation.md => pkg/models/shared/allocation.md} (99%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/attachment.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/attachments.md create mode 100644 sync-for-payables/docs/pkg/models/shared/attachmentupload.md rename sync-for-payables/docs/{ => pkg}/models/shared/bill.md (99%) mode change 100755 => 100644 rename sync-for-payables/docs/{models/shared/billpaymentallocationallocation.md => pkg/models/shared/billallocation.md} (99%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/billcreditnote.md (99%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/billcreditnotelineitem.md (96%) mode change 100755 => 100644 rename sync-for-payables/docs/{models/shared/billcreditnotelineitemtrackingprojectreference.md => pkg/models/shared/billcreditnotelineitemaccountingprojectreference.md} (93%) mode change 100755 => 100644 rename sync-for-payables/docs/{models/shared/billcreditnotelineitemtrackingcustomerref.md => pkg/models/shared/billcreditnotelineitemcustomerref.md} (94%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/billcreditnotelineitemtracking.md create mode 100644 sync-for-payables/docs/pkg/models/shared/billcreditnotes.md rename sync-for-payables/docs/{ => pkg}/models/shared/billcreditnotestatus.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/billedtotype.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/billlineitem.md (90%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/billlineitemdatatype.md rename sync-for-payables/docs/{ => pkg}/models/shared/billpayment.md (99%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/billpaymentline.md (99%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/billpaymentlinelink.md (99%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/billpaymentlinelinktype.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/billpayments.md rename sync-for-payables/docs/{models/shared/billpayments.md => pkg/models/shared/bills.md} (82%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/billstatus.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/clientratelimitreachedwebhook.md rename sync-for-payables/docs/{ => pkg}/models/shared/clientratelimitreachedwebhookdata.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/clientratelimitresetwebhook.md rename sync-for-payables/docs/{ => pkg}/models/shared/clientratelimitresetwebhookdata.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{models/operations/uploadbillattachmentrequestbody.md => pkg/models/shared/codatfile.md} (74%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/companies.md rename sync-for-payables/docs/{ => pkg}/models/shared/company.md (99%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/companyinfo.md (98%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/companyrequestbody.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/connection.md (99%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/connections.md rename sync-for-payables/docs/{ => pkg}/models/shared/createaccountresponse.md (93%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/createbillcreditnoteresponse.md (99%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/createbillpaymentresponse.md (99%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/createbillresponse.md (99%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/createjournalentryresponse.md (99%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/createjournalresponse.md (99%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/createsupplierresponse.md (99%) mode change 100755 => 100644 rename sync-for-payables/docs/{models/shared/trackingcustomerref.md => pkg/models/shared/customerref.md} (97%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/dataconnectionerror.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/dataconnectionstatus.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/datastatus.md (99%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/datatype.md (97%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/datatypes.md rename sync-for-payables/docs/{ => pkg}/models/shared/halref.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/itemref.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{models/shared/billcreditnotelineitemitemreference.md => pkg/models/shared/itemreference.md} (96%) mode change 100755 => 100644 rename sync-for-payables/docs/{models/shared/billpaymentallocation.md => pkg/models/shared/items.md} (81%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/journal.md (99%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/journalentry.md (98%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/journalline.md (94%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/journallinetracking.md create mode 100644 sync-for-payables/docs/pkg/models/shared/journalprototype.md rename sync-for-payables/docs/{ => pkg}/models/shared/journalref.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/journals.md rename sync-for-payables/docs/{ => pkg}/models/shared/journalstatus.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/links.md rename sync-for-payables/docs/{ => pkg}/models/shared/metadata.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/paymentallocationpayment.md (99%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/paymentmethod.md rename sync-for-payables/docs/{ => pkg}/models/shared/paymentmethodref.md (92%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/paymentmethods.md rename sync-for-payables/docs/{ => pkg}/models/shared/paymentmethodstatus.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/paymentmethodtype.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{models/operations/updatecompanyrequest.md => pkg/models/shared/phonenumber.md} (65%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/phonenumbertype.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/pulloperation.md (91%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/pulloperations.md rename sync-for-payables/docs/{ => pkg}/models/shared/pulloperationstatus.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{models/shared/billpurchaseorderreference.md => pkg/models/shared/purchaseorderreference.md} (98%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/pushchangetype.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/pushfieldvalidation.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/pushoperation.md (99%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/pushoperationchange.md create mode 100644 sync-for-payables/docs/pkg/models/shared/pushoperationref.md create mode 100644 sync-for-payables/docs/pkg/models/shared/pushoperations.md rename sync-for-payables/docs/{ => pkg}/models/shared/pushoperationstatus.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/pushoption.md create mode 100644 sync-for-payables/docs/pkg/models/shared/pushoptionchoice.md create mode 100644 sync-for-payables/docs/pkg/models/shared/pushoptionproperty.md rename sync-for-payables/docs/{ => pkg}/models/shared/pushoptiontype.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/pushvalidationinfo.md create mode 100644 sync-for-payables/docs/pkg/models/shared/recordlinereference.md rename sync-for-payables/docs/{ => pkg}/models/shared/recordref.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{models/shared/journalentryrecordreference.md => pkg/models/shared/recordreference.md} (97%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/schemadatatype.md rename sync-for-payables/docs/{ => pkg}/models/shared/security.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/sourcetype.md rename sync-for-payables/docs/{ => pkg}/models/shared/status.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/supplementaldata.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/supplier.md (97%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/supplierref.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/suppliers.md rename sync-for-payables/docs/{ => pkg}/models/shared/supplierstatus.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/taxrate.md (95%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/taxratecomponent.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/taxrateref.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/taxrates.md rename sync-for-payables/docs/{ => pkg}/models/shared/taxratestatus.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/tracking.md create mode 100644 sync-for-payables/docs/pkg/models/shared/trackingcategories.md rename sync-for-payables/docs/{ => pkg}/models/shared/trackingcategory.md (98%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/trackingcategoryref.md (100%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/trackingcategorytree.md create mode 100644 sync-for-payables/docs/pkg/models/shared/type.md rename sync-for-payables/docs/{ => pkg}/models/shared/updatebillcreditnoteresponse.md (99%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/updatebillresponse.md (99%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/updatesupplierresponse.md (99%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/validation.md rename sync-for-payables/docs/{ => pkg}/models/shared/validationitem.md (100%) mode change 100755 => 100644 rename sync-for-payables/docs/{models/shared/validdatatypelinksitems.md => pkg/models/shared/validdatatypelinkitems.md} (99%) mode change 100755 => 100644 create mode 100644 sync-for-payables/docs/pkg/models/shared/validdatatypelinks.md rename sync-for-payables/docs/{ => pkg}/models/shared/weblink.md (86%) mode change 100755 => 100644 rename sync-for-payables/docs/{models/shared/billwithholdingtax.md => pkg/models/shared/withholdingtax.md} (98%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/shared/withholdingtaxitems.md (98%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/webhooks/clientratelimitreachedresponse.md (89%) mode change 100755 => 100644 rename sync-for-payables/docs/{ => pkg}/models/webhooks/clientratelimitresetresponse.md (89%) mode change 100755 => 100644 mode change 100755 => 100644 sync-for-payables/docs/sdks/accounts/README.md mode change 100755 => 100644 sync-for-payables/docs/sdks/billcreditnotes/README.md mode change 100755 => 100644 sync-for-payables/docs/sdks/billpayments/README.md mode change 100755 => 100644 sync-for-payables/docs/sdks/bills/README.md mode change 100755 => 100644 sync-for-payables/docs/sdks/codatsyncpayables/README.md mode change 100755 => 100644 sync-for-payables/docs/sdks/companies/README.md mode change 100755 => 100644 sync-for-payables/docs/sdks/companyinfo/README.md mode change 100755 => 100644 sync-for-payables/docs/sdks/connections/README.md mode change 100755 => 100644 sync-for-payables/docs/sdks/journalentries/README.md mode change 100755 => 100644 sync-for-payables/docs/sdks/journals/README.md mode change 100755 => 100644 sync-for-payables/docs/sdks/managedata/README.md mode change 100755 => 100644 sync-for-payables/docs/sdks/paymentmethods/README.md mode change 100755 => 100644 sync-for-payables/docs/sdks/pushoperations/README.md mode change 100755 => 100644 sync-for-payables/docs/sdks/suppliers/README.md mode change 100755 => 100644 sync-for-payables/docs/sdks/taxrates/README.md mode change 100755 => 100644 sync-for-payables/docs/sdks/trackingcategories/README.md mode change 100755 => 100644 sync-for-payables/go.mod mode change 100755 => 100644 sync-for-payables/go.sum mode change 100755 => 100644 sync-for-payables/journalentries.go mode change 100755 => 100644 sync-for-payables/journals.go mode change 100755 => 100644 sync-for-payables/managedata.go mode change 100755 => 100644 sync-for-payables/paymentmethods.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/createaccount.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/createbill.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/createbillcreditnote.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/createbillpayment.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/createcompany.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/createconnection.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/createjournal.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/createjournalentry.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/createsupplier.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/deletebill.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/deletebillattachment.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/deletebillpayment.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/deletecompany.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/deleteconnection.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/downloadbillattachment.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/getaccount.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/getaccountingprofile.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/getbill.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/getbillattachment.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/getbillcreditnote.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/getbillpayments.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/getcompany.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/getconnection.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/getcreateaccountmodel.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/getcreatebillpaymentmodel.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/getcreatejournalentrymodel.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/getcreatejournalmodel.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/getcreateupdatebillcreditnotemodel.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/getcreateupdatebillmodel.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/getcreateupdatesuppliermodel.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/getdatastatus.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/getjournal.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/getpaymentmethod.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/getpulloperation.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/getpushoperation.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/getsupplier.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/gettaxrate.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/gettrackingcategory.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/listaccounts.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/listbillattachments.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/listbillcreditnotes.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/listbillpayments.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/listbills.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/listcompanies.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/listconnections.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/listjournals.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/listpaymentmethods.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/listpulloperations.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/listpushoperations.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/listsuppliers.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/listtaxrates.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/listtrackingcategories.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/options.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/refreshalldatatypes.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/refreshdatatype.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/unlinkconnection.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/updatebill.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/updatebillcreditnote.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/updatecompany.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/updatesupplier.go mode change 100755 => 100644 sync-for-payables/pkg/models/operations/uploadbillattachment.go rename sync-for-payables/pkg/models/{shared => sdkerrors}/errormessage.go (52%) mode change 100755 => 100644 mode change 100755 => 100644 sync-for-payables/pkg/models/sdkerrors/sdkerror.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/account.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/accountingaddresstype.go create mode 100644 sync-for-payables/pkg/models/shared/accountprototype.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/accountref.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/accounts.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/accountstatus.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/accounttype.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/address.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/attachment.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/attachments.go create mode 100644 sync-for-payables/pkg/models/shared/attachmentupload.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/bill.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/billcreditnote.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/billcreditnotelineitem.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/billcreditnotes.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/billcreditnotestatus.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/billedtotype.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/billlineitem.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/billpayment.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/billpaymentline.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/billpaymentlinelink.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/billpaymentlinelinktype.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/billpayments.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/bills.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/billstatus.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/clientratelimitreachedwebhook.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/clientratelimitreachedwebhookdata.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/clientratelimitresetwebhook.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/clientratelimitresetwebhookdata.go create mode 100644 sync-for-payables/pkg/models/shared/codatfile.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/companies.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/company.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/companyinfo.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/companyrequestbody.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/connection.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/connections.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/createaccountresponse.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/createbillcreditnoteresponse.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/createbillpaymentresponse.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/createbillresponse.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/createjournalentryresponse.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/createjournalresponse.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/createsupplierresponse.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/dataconnectionerror.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/dataconnectionstatus.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/datastatus.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/datatype.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/halref.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/itemref.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/items.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/journal.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/journalentry.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/journalline.go create mode 100644 sync-for-payables/pkg/models/shared/journalprototype.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/journalref.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/journals.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/journalstatus.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/links.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/metadata.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/paymentallocationpayment.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/paymentmethod.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/paymentmethodref.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/paymentmethods.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/paymentmethodtype.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/phonenumber.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/phonenumbertype.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/pulloperation.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/pulloperations.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/pushchangetype.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/pushfieldvalidation.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/pushoperation.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/pushoperationchange.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/pushoperationref.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/pushoperations.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/pushoperationstatus.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/pushoption.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/pushoptionchoice.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/pushoptionproperty.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/pushoptiontype.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/pushvalidationinfo.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/recordref.go create mode 100644 sync-for-payables/pkg/models/shared/schemadatatype.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/security.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/status.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/supplementaldata.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/supplier.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/supplierref.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/suppliers.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/supplierstatus.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/taxrate.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/taxratecomponent.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/taxrateref.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/taxrates.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/taxratestatus.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/tracking.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/trackingcategories.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/trackingcategory.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/trackingcategoryref.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/trackingcategorytree.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/updatebillcreditnoteresponse.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/updatebillresponse.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/updatesupplierresponse.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/validation.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/validationitem.go rename sync-for-payables/pkg/models/shared/{validdatatypelinksitems.go => validdatatypelinkitems.go} (84%) mode change 100755 => 100644 mode change 100755 => 100644 sync-for-payables/pkg/models/shared/weblink.go mode change 100755 => 100644 sync-for-payables/pkg/models/shared/withholdingtaxitems.go mode change 100755 => 100644 sync-for-payables/pkg/models/webhooks/clientratelimitreached.go mode change 100755 => 100644 sync-for-payables/pkg/models/webhooks/clientratelimitreset.go mode change 100755 => 100644 sync-for-payables/pkg/types/bigint.go mode change 100755 => 100644 sync-for-payables/pkg/types/date.go mode change 100755 => 100644 sync-for-payables/pkg/types/datetime.go mode change 100755 => 100644 sync-for-payables/pkg/types/decimal.go mode change 100755 => 100644 sync-for-payables/pkg/types/pointers.go mode change 100755 => 100644 sync-for-payables/pkg/utils/contenttype.go mode change 100755 => 100644 sync-for-payables/pkg/utils/form.go mode change 100755 => 100644 sync-for-payables/pkg/utils/headers.go mode change 100755 => 100644 sync-for-payables/pkg/utils/json.go mode change 100755 => 100644 sync-for-payables/pkg/utils/pathparams.go mode change 100755 => 100644 sync-for-payables/pkg/utils/queryparams.go mode change 100755 => 100644 sync-for-payables/pkg/utils/requestbody.go mode change 100755 => 100644 sync-for-payables/pkg/utils/retries.go mode change 100755 => 100644 sync-for-payables/pkg/utils/security.go mode change 100755 => 100644 sync-for-payables/pkg/utils/utils.go mode change 100755 => 100644 sync-for-payables/pushoperations.go mode change 100755 => 100644 sync-for-payables/suppliers.go mode change 100755 => 100644 sync-for-payables/taxrates.go mode change 100755 => 100644 sync-for-payables/trackingcategories.go diff --git a/sync-for-payables/.gitattributes b/sync-for-payables/.gitattributes old mode 100755 new mode 100644 diff --git a/sync-for-payables/README.md b/sync-for-payables/README.md index c8cfacf06..8f4264506 100644 --- a/sync-for-payables/README.md +++ b/sync-for-payables/README.md @@ -4,25 +4,27 @@ Streamline your customers' accounts payable workflow. - + ## SDK Installation ```bash go get github.com/codatio/client-sdk-go/sync-for-payables ``` - + ## Example Usage - + +## SDK Example Usage + +### Example + ```go package main import ( "context" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/types" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "log" ) @@ -34,77 +36,40 @@ func main() { ) ctx := context.Background() - res, err := s.Accounts.Create(ctx, operations.CreateAccountRequest{ - Account: &shared.Account{ - Currency: syncforpayables.String("USD"), - CurrentBalance: types.MustNewDecimalFromString("0"), - Description: syncforpayables.String("Invoices the business has issued but has not yet collected payment on."), - FullyQualifiedCategory: syncforpayables.String("Asset.Current"), - FullyQualifiedName: syncforpayables.String("Cash On Hand"), - ID: syncforpayables.String("1b6266d1-1e44-46c5-8eb5-a8f98e03124e"), - Metadata: &shared.Metadata{}, - ModifiedDate: syncforpayables.String("2022-10-23T00:00:00.000Z"), - Name: syncforpayables.String("Accounts Receivable"), - NominalCode: syncforpayables.String("610"), - SourceModifiedDate: syncforpayables.String("2022-10-23T00:00:00.000Z"), - Status: shared.AccountStatusActive.ToPointer(), - SupplementalData: &shared.SupplementalData{ - Content: map[string]map[string]interface{}{ - "Money": map[string]interface{}{ - "blue": "shred", - }, - }, - }, - Type: shared.AccountTypeAsset.ToPointer(), - ValidDatatypeLinks: []shared.AccountValidDataTypeLinks{ - shared.AccountValidDataTypeLinks{ - Links: []string{ - "abnormally", - }, - }, - }, - }, - CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002", - ConnectionID: "2e9d2c44-f675-40ba-8049-353bfcb5e171", + res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{ + Description: syncforpayables.String("Requested early access to the new financing scheme."), + Name: "Bank of Dave", }) if err != nil { log.Fatal(err) } - if res.CreateAccountResponse != nil { + if res.Company != nil { // handle response } } ``` - + - + ## Available Resources and Operations +### [Companies](docs/sdks/companies/README.md) -### [Accounts](docs/sdks/accounts/README.md) - -* [Create](docs/sdks/accounts/README.md#create) - Create account -* [Get](docs/sdks/accounts/README.md#get) - Get account -* [GetCreateModel](docs/sdks/accounts/README.md#getcreatemodel) - Get create account model -* [List](docs/sdks/accounts/README.md#list) - List accounts - -### [BillCreditNotes](docs/sdks/billcreditnotes/README.md) - -* [Create](docs/sdks/billcreditnotes/README.md#create) - Create bill credit note -* [Get](docs/sdks/billcreditnotes/README.md#get) - Get bill credit note -* [GetCreateUpdateModel](docs/sdks/billcreditnotes/README.md#getcreateupdatemodel) - Get create/update bill credit note model -* [List](docs/sdks/billcreditnotes/README.md#list) - List bill credit notes -* [Update](docs/sdks/billcreditnotes/README.md#update) - Update bill credit note +* [Create](docs/sdks/companies/README.md#create) - Create company +* [Delete](docs/sdks/companies/README.md#delete) - Delete a company +* [Get](docs/sdks/companies/README.md#get) - Get company +* [List](docs/sdks/companies/README.md#list) - List companies +* [Update](docs/sdks/companies/README.md#update) - Update company -### [BillPayments](docs/sdks/billpayments/README.md) +### [Connections](docs/sdks/connections/README.md) -* [Create](docs/sdks/billpayments/README.md#create) - Create bill payments -* [Delete](docs/sdks/billpayments/README.md#delete) - Delete bill payment -* [Get](docs/sdks/billpayments/README.md#get) - Get bill payment -* [GetCreateModel](docs/sdks/billpayments/README.md#getcreatemodel) - Get create bill payment model -* [List](docs/sdks/billpayments/README.md#list) - List bill payments +* [Create](docs/sdks/connections/README.md#create) - Create connection +* [Delete](docs/sdks/connections/README.md#delete) - Delete connection +* [Get](docs/sdks/connections/README.md#get) - Get connection +* [List](docs/sdks/connections/README.md#list) - List connections +* [Unlink](docs/sdks/connections/README.md#unlink) - Unlink connection ### [Bills](docs/sdks/bills/README.md) @@ -120,25 +85,28 @@ func main() { * [Update](docs/sdks/bills/README.md#update) - Update bill * [UploadAttachment](docs/sdks/bills/README.md#uploadattachment) - Upload bill attachment -### [Companies](docs/sdks/companies/README.md) +### [BillCreditNotes](docs/sdks/billcreditnotes/README.md) -* [Create](docs/sdks/companies/README.md#create) - Create company -* [Delete](docs/sdks/companies/README.md#delete) - Delete a company -* [Get](docs/sdks/companies/README.md#get) - Get company -* [List](docs/sdks/companies/README.md#list) - List companies -* [Update](docs/sdks/companies/README.md#update) - Update company +* [Create](docs/sdks/billcreditnotes/README.md#create) - Create bill credit note +* [Get](docs/sdks/billcreditnotes/README.md#get) - Get bill credit note +* [GetCreateUpdateModel](docs/sdks/billcreditnotes/README.md#getcreateupdatemodel) - Get create/update bill credit note model +* [List](docs/sdks/billcreditnotes/README.md#list) - List bill credit notes +* [Update](docs/sdks/billcreditnotes/README.md#update) - Update bill credit note -### [CompanyInfo](docs/sdks/companyinfo/README.md) +### [BillPayments](docs/sdks/billpayments/README.md) -* [GetAccountingProfile](docs/sdks/companyinfo/README.md#getaccountingprofile) - Get company accounting profile +* [Create](docs/sdks/billpayments/README.md#create) - Create bill payments +* [Delete](docs/sdks/billpayments/README.md#delete) - Delete bill payment +* [Get](docs/sdks/billpayments/README.md#get) - Get bill payment +* [GetCreateModel](docs/sdks/billpayments/README.md#getcreatemodel) - Get create bill payment model +* [List](docs/sdks/billpayments/README.md#list) - List bill payments -### [Connections](docs/sdks/connections/README.md) +### [Accounts](docs/sdks/accounts/README.md) -* [Create](docs/sdks/connections/README.md#create) - Create connection -* [Delete](docs/sdks/connections/README.md#delete) - Delete connection -* [Get](docs/sdks/connections/README.md#get) - Get connection -* [List](docs/sdks/connections/README.md#list) - List connections -* [Unlink](docs/sdks/connections/README.md#unlink) - Unlink connection +* [Create](docs/sdks/accounts/README.md#create) - Create account +* [Get](docs/sdks/accounts/README.md#get) - Get account +* [GetCreateModel](docs/sdks/accounts/README.md#getcreatemodel) - Get create account model +* [List](docs/sdks/accounts/README.md#list) - List accounts ### [JournalEntries](docs/sdks/journalentries/README.md) @@ -152,6 +120,14 @@ func main() { * [GetCreateModel](docs/sdks/journals/README.md#getcreatemodel) - Get create journal model * [List](docs/sdks/journals/README.md#list) - List journals +### [Suppliers](docs/sdks/suppliers/README.md) + +* [Create](docs/sdks/suppliers/README.md#create) - Create supplier +* [Get](docs/sdks/suppliers/README.md#get) - Get supplier +* [GetCreateUpdateModel](docs/sdks/suppliers/README.md#getcreateupdatemodel) - Get create/update supplier model +* [List](docs/sdks/suppliers/README.md#list) - List suppliers +* [Update](docs/sdks/suppliers/README.md#update) - Update supplier + ### [ManageData](docs/sdks/managedata/README.md) * [Get](docs/sdks/managedata/README.md#get) - Get data status @@ -160,60 +136,356 @@ func main() { * [RefreshAllDataTypes](docs/sdks/managedata/README.md#refreshalldatatypes) - Refresh all data * [RefreshDataType](docs/sdks/managedata/README.md#refreshdatatype) - Refresh data type +### [CompanyInfo](docs/sdks/companyinfo/README.md) + +* [GetAccountingProfile](docs/sdks/companyinfo/README.md#getaccountingprofile) - Get company accounting profile + ### [PaymentMethods](docs/sdks/paymentmethods/README.md) * [Get](docs/sdks/paymentmethods/README.md#get) - Get payment method * [List](docs/sdks/paymentmethods/README.md#list) - List payment methods +### [TaxRates](docs/sdks/taxrates/README.md) + +* [Get](docs/sdks/taxrates/README.md#get) - Get tax rate +* [List](docs/sdks/taxrates/README.md#list) - List all tax rates + +### [TrackingCategories](docs/sdks/trackingcategories/README.md) + +* [Get](docs/sdks/trackingcategories/README.md#get) - Get tracking categories +* [List](docs/sdks/trackingcategories/README.md#list) - List tracking categories + ### [PushOperations](docs/sdks/pushoperations/README.md) * [Get](docs/sdks/pushoperations/README.md#get) - Get push operation * [List](docs/sdks/pushoperations/README.md#list) - List push operations + -### [Suppliers](docs/sdks/suppliers/README.md) -* [Create](docs/sdks/suppliers/README.md#create) - Create supplier -* [Get](docs/sdks/suppliers/README.md#get) - Get supplier -* [GetCreateUpdateModel](docs/sdks/suppliers/README.md#getcreateupdatemodel) - Get create/update supplier model -* [List](docs/sdks/suppliers/README.md#list) - List suppliers -* [Update](docs/sdks/suppliers/README.md#update) - Update supplier -### [TaxRates](docs/sdks/taxrates/README.md) -* [Get](docs/sdks/taxrates/README.md#get) - Get tax rate -* [List](docs/sdks/taxrates/README.md#list) - List all tax rates -### [TrackingCategories](docs/sdks/trackingcategories/README.md) -* [Get](docs/sdks/trackingcategories/README.md#get) - Get tracking categories -* [List](docs/sdks/trackingcategories/README.md#list) - List tracking categories - + +## Special Types - + - + +## Retries +Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK. +To change the default retry strategy for a single API call, simply provide a retryConfig object to the call: +```go +package main - -# Pagination +import ( + "context" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" + "log" + "pkg/models/operations" +) -Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the -returned response object will have a `Next` method that can be called to pull down the next group of results. If the -return value of `Next` is `nil`, then there are no more pages to be fetched. +func main() { + s := syncforpayables.New( + syncforpayables.WithSecurity(shared.Security{ + AuthHeader: "Basic BASE_64_ENCODED(API_KEY)", + }), + ) -Here's an example of one such pagination call: + ctx := context.Background() + res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{ + Description: syncforpayables.String("Requested early access to the new financing scheme."), + Name: "Bank of Dave", + }, operations.WithRetries( + utils.RetryConfig{ + Strategy: "backoff", + Backoff: &utils.BackoffStrategy{ + InitialInterval: 1, + MaxInterval: 50, + Exponent: 1.1, + MaxElapsedTime: 100, + }, + RetryConnectionErrors: false, + })) + if err != nil { + log.Fatal(err) + } + if res.Company != nil { + // handle response + } +} - +``` +If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization: +```go +package main +import ( + "context" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" + "log" +) - +func main() { + s := syncforpayables.New( + syncforpayables.WithRetryConfig( + utils.RetryConfig{ + Strategy: "backoff", + Backoff: &utils.BackoffStrategy{ + InitialInterval: 1, + MaxInterval: 50, + Exponent: 1.1, + MaxElapsedTime: 100, + }, + RetryConnectionErrors: false, + }), + syncforpayables.WithSecurity(shared.Security{ + AuthHeader: "Basic BASE_64_ENCODED(API_KEY)", + }), + ) - + ctx := context.Background() + res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{ + Description: syncforpayables.String("Requested early access to the new financing scheme."), + Name: "Bank of Dave", + }) + if err != nil { + log.Fatal(err) + } + + if res.Company != nil { + // handle response + } +} + +``` + + + +## Error Handling + +Handling errors in this SDK should largely match your expectations. All operations return a response object or an error, they will never return both. When specified by the OpenAPI spec document, the SDK will return the appropriate subclass. + +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | + +### Example + +```go +package main + +import ( + "context" + "errors" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/sdkerrors" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "log" +) + +func main() { + s := syncforpayables.New( + syncforpayables.WithSecurity(shared.Security{ + AuthHeader: "Basic BASE_64_ENCODED(API_KEY)", + }), + ) + + ctx := context.Background() + res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{ + Description: syncforpayables.String("Requested early access to the new financing scheme."), + Name: "Bank of Dave", + }) + if err != nil { + + var e *sdkerrors.ErrorMessage + if errors.As(err, &e) { + // handle error + log.Fatal(e.Error()) + } + + var e *sdkerrors.SDKError + if errors.As(err, &e) { + // handle error + log.Fatal(e.Error()) + } + } +} + +``` + + + +## Server Selection + +### Select Server by Index + +You can override the default server globally using the `WithServerIndex` option when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers: + +| # | Server | Variables | +| - | ------ | --------- | +| 0 | `https://api.codat.io` | None | + +#### Example + +```go +package main + +import ( + "context" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "log" +) + +func main() { + s := syncforpayables.New( + syncforpayables.WithServerIndex(0), + syncforpayables.WithSecurity(shared.Security{ + AuthHeader: "Basic BASE_64_ENCODED(API_KEY)", + }), + ) + + ctx := context.Background() + res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{ + Description: syncforpayables.String("Requested early access to the new financing scheme."), + Name: "Bank of Dave", + }) + if err != nil { + log.Fatal(err) + } + + if res.Company != nil { + // handle response + } +} + +``` + + +### Override Server URL Per-Client + +The default server can also be overridden globally using the `WithServerURL` option when initializing the SDK client instance. For example: +```go +package main + +import ( + "context" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "log" +) + +func main() { + s := syncforpayables.New( + syncforpayables.WithServerURL("https://api.codat.io"), + syncforpayables.WithSecurity(shared.Security{ + AuthHeader: "Basic BASE_64_ENCODED(API_KEY)", + }), + ) + + ctx := context.Background() + res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{ + Description: syncforpayables.String("Requested early access to the new financing scheme."), + Name: "Bank of Dave", + }) + if err != nil { + log.Fatal(err) + } + + if res.Company != nil { + // handle response + } +} + +``` + + + +## Custom HTTP Client + +The Go SDK makes API calls that wrap an internal HTTP client. The requirements for the HTTP client are very simple. It must match this interface: + +```go +type HTTPClient interface { + Do(req *http.Request) (*http.Response, error) +} +``` + +The built-in `net/http` client satisfies this interface and a default client based on the built-in is provided by default. To replace this default with a client of your own, you can implement this interface yourself or provide your own client configured as desired. Here's a simple example, which adds a client with a 30 second timeout. + +```go +import ( + "net/http" + "time" + "github.com/myorg/your-go-sdk" +) + +var ( + httpClient = &http.Client{Timeout: 30 * time.Second} + sdkClient = sdk.New(sdk.WithClient(httpClient)) +) +``` + +This can be a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration. + + + +## Authentication + +### Per-Client Security Schemes + +This SDK supports the following security scheme globally: + +| Name | Type | Scheme | +| ------------ | ------------ | ------------ | +| `AuthHeader` | apiKey | API key | + +You can configure it using the `WithSecurity` option when initializing the SDK client instance. For example: +```go +package main + +import ( + "context" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "log" +) + +func main() { + s := syncforpayables.New( + syncforpayables.WithSecurity(shared.Security{ + AuthHeader: "Basic BASE_64_ENCODED(API_KEY)", + }), + ) + + ctx := context.Background() + res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{ + Description: syncforpayables.String("Requested early access to the new financing scheme."), + Name: "Bank of Dave", + }) + if err != nil { + log.Fatal(err) + } + + if res.Company != nil { + // handle response + } +} + +``` + diff --git a/sync-for-payables/RELEASES.md b/sync-for-payables/RELEASES.md index 475d75fa0..8953d0c49 100644 --- a/sync-for-payables/RELEASES.md +++ b/sync-for-payables/RELEASES.md @@ -48,4 +48,14 @@ Based on: ### Generated - [go v2.2.0] sync-for-payables ### Releases -- [Go v2.2.0] https://github.com/codatio/client-sdk-go/releases/tag/sync-for-payables/v2.2.0 - sync-for-payables \ No newline at end of file +- [Go v2.2.0] https://github.com/codatio/client-sdk-go/releases/tag/sync-for-payables/v2.2.0 - sync-for-payables + +## 2023-12-06 09:04:00 +### Changes +Based on: +- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables.yaml +- Speakeasy CLI 1.125.2 (2.210.6) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v3.0.0] sync-for-payables +### Releases +- [Go v3.0.0] https://github.com/codatio/client-sdk-go/releases/tag/sync-for-payables/v3.0.0 - sync-for-payables \ No newline at end of file diff --git a/sync-for-payables/USAGE.md b/sync-for-payables/USAGE.md old mode 100755 new mode 100644 index 7eb70b6da..f9697d414 --- a/sync-for-payables/USAGE.md +++ b/sync-for-payables/USAGE.md @@ -1,15 +1,11 @@ - - - + ```go package main import ( "context" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/types" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "log" ) @@ -21,47 +17,18 @@ func main() { ) ctx := context.Background() - res, err := s.Accounts.Create(ctx, operations.CreateAccountRequest{ - Account: &shared.Account{ - Currency: syncforpayables.String("USD"), - CurrentBalance: types.MustNewDecimalFromString("0"), - Description: syncforpayables.String("Invoices the business has issued but has not yet collected payment on."), - FullyQualifiedCategory: syncforpayables.String("Asset.Current"), - FullyQualifiedName: syncforpayables.String("Cash On Hand"), - ID: syncforpayables.String("1b6266d1-1e44-46c5-8eb5-a8f98e03124e"), - Metadata: &shared.Metadata{}, - ModifiedDate: syncforpayables.String("2022-10-23T00:00:00.000Z"), - Name: syncforpayables.String("Accounts Receivable"), - NominalCode: syncforpayables.String("610"), - SourceModifiedDate: syncforpayables.String("2022-10-23T00:00:00.000Z"), - Status: shared.AccountStatusActive.ToPointer(), - SupplementalData: &shared.SupplementalData{ - Content: map[string]map[string]interface{}{ - "Money": map[string]interface{}{ - "blue": "shred", - }, - }, - }, - Type: shared.AccountTypeAsset.ToPointer(), - ValidDatatypeLinks: []shared.AccountValidDataTypeLinks{ - shared.AccountValidDataTypeLinks{ - Links: []string{ - "abnormally", - }, - }, - }, - }, - CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002", - ConnectionID: "2e9d2c44-f675-40ba-8049-353bfcb5e171", + res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{ + Description: syncforpayables.String("Requested early access to the new financing scheme."), + Name: "Bank of Dave", }) if err != nil { log.Fatal(err) } - if res.CreateAccountResponse != nil { + if res.Company != nil { // handle response } } ``` - \ No newline at end of file + \ No newline at end of file diff --git a/sync-for-payables/accounts.go b/sync-for-payables/accounts.go old mode 100755 new mode 100644 index 4f0d9a5c4..686ea117b --- a/sync-for-payables/accounts.go +++ b/sync-for-payables/accounts.go @@ -6,21 +6,21 @@ import ( "bytes" "context" "fmt" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/sdkerrors" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "io" "net/http" ) -// accounts - Accounts -type accounts struct { +// Accounts +type Accounts struct { sdkConfiguration sdkConfiguration } -func newAccounts(sdkConfig sdkConfiguration) *accounts { - return &accounts{ +func newAccounts(sdkConfig sdkConfiguration) *Accounts { + return &Accounts{ sdkConfiguration: sdkConfig, } } @@ -35,7 +35,7 @@ func newAccounts(sdkConfig sdkConfiguration) *accounts { // Required data may vary by integration. To see what data to post, first call [Get create account model](https://docs.codat.io/sync-for-payables-api#/operations/get-create-chartOfAccounts-model). // // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=chartOfAccounts) for integrations that support creating an account. -func (s *accounts) Create(ctx context.Context, request operations.CreateAccountRequest, opts ...operations.Option) (*operations.CreateAccountResponse, error) { +func (s *Accounts) Create(ctx context.Context, request operations.CreateAccountRequest, opts ...operations.Option) (*operations.CreateAccountResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -52,7 +52,7 @@ func (s *accounts) Create(ctx context.Context, request operations.CreateAccountR return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, true, true, "Account", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "AccountPrototype", "json", `request:"mediaType=application/json"`) if err != nil { return nil, fmt.Errorf("error serializing request body: %w", err) } @@ -139,20 +139,31 @@ func (s *accounts) Create(ctx context.Context, request operations.CreateAccountR fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -166,7 +177,7 @@ func (s *accounts) Create(ctx context.Context, request operations.CreateAccountR // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=chartOfAccounts) for integrations that support getting a specific account. // // Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data). -func (s *accounts) Get(ctx context.Context, request operations.GetAccountRequest, opts ...operations.Option) (*operations.GetAccountResponse, error) { +func (s *Accounts) Get(ctx context.Context, request operations.GetAccountRequest, opts ...operations.Option) (*operations.GetAccountResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -257,22 +268,33 @@ func (s *accounts) Get(ctx context.Context, request operations.GetAccountRequest } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 409: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -288,7 +310,7 @@ func (s *accounts) Get(ctx context.Context, request operations.GetAccountRequest // See the *response examples* for integration-specific indicative models. // // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=chartOfAccounts) for integrations that support creating an account. -func (s *accounts) GetCreateModel(ctx context.Context, request operations.GetCreateAccountModelRequest, opts ...operations.Option) (*operations.GetCreateAccountModelResponse, error) { +func (s *Accounts) GetCreateModel(ctx context.Context, request operations.GetCreateAccountModelRequest, opts ...operations.Option) (*operations.GetCreateAccountModelResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -379,20 +401,31 @@ func (s *accounts) GetCreateModel(ctx context.Context, request operations.GetCre } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -404,7 +437,7 @@ func (s *accounts) GetCreateModel(ctx context.Context, request operations.GetCre // [Accounts](https://docs.codat.io/sync-for-payables-api#/schemas/Account) are the categories a business uses to record accounting transactions. // // Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data). -func (s *accounts) List(ctx context.Context, request operations.ListAccountsRequest, opts ...operations.Option) (*operations.ListAccountsResponse, error) { +func (s *Accounts) List(ctx context.Context, request operations.ListAccountsRequest, opts ...operations.Option) (*operations.ListAccountsResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -501,20 +534,33 @@ func (s *accounts) List(ctx context.Context, request operations.ListAccountsRequ fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 409: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/sync-for-payables/billcreditnotes.go b/sync-for-payables/billcreditnotes.go old mode 100755 new mode 100644 index 5ed176ce7..7cb9dc2c7 --- a/sync-for-payables/billcreditnotes.go +++ b/sync-for-payables/billcreditnotes.go @@ -6,21 +6,21 @@ import ( "bytes" "context" "fmt" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/sdkerrors" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "io" "net/http" ) -// billCreditNotes - Bill credit notes -type billCreditNotes struct { +// BillCreditNotes - Bill credit notes +type BillCreditNotes struct { sdkConfiguration sdkConfiguration } -func newBillCreditNotes(sdkConfig sdkConfiguration) *billCreditNotes { - return &billCreditNotes{ +func newBillCreditNotes(sdkConfig sdkConfiguration) *BillCreditNotes { + return &BillCreditNotes{ sdkConfiguration: sdkConfig, } } @@ -35,7 +35,7 @@ func newBillCreditNotes(sdkConfig sdkConfiguration) *billCreditNotes { // Required data may vary by integration. To see what data to post, first call [Get create/update bill credit note model](https://docs.codat.io/sync-for-payables-api#/operations/get-create-update-billCreditNotes-model). // // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=billCreditNotes) for integrations that support creating a bill credit note. -func (s *billCreditNotes) Create(ctx context.Context, request operations.CreateBillCreditNoteRequest, opts ...operations.Option) (*operations.CreateBillCreditNoteResponse, error) { +func (s *BillCreditNotes) Create(ctx context.Context, request operations.CreateBillCreditNoteRequest, opts ...operations.Option) (*operations.CreateBillCreditNoteResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -139,20 +139,31 @@ func (s *billCreditNotes) Create(ctx context.Context, request operations.CreateB fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -166,7 +177,7 @@ func (s *billCreditNotes) Create(ctx context.Context, request operations.CreateB // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=billCreditNotes) for integrations that support getting a specific bill credit note. // // Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data). -func (s *billCreditNotes) Get(ctx context.Context, request operations.GetBillCreditNoteRequest, opts ...operations.Option) (*operations.GetBillCreditNoteResponse, error) { +func (s *BillCreditNotes) Get(ctx context.Context, request operations.GetBillCreditNoteRequest, opts ...operations.Option) (*operations.GetBillCreditNoteResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -257,22 +268,33 @@ func (s *billCreditNotes) Get(ctx context.Context, request operations.GetBillCre } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 409: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -288,7 +310,7 @@ func (s *billCreditNotes) Get(ctx context.Context, request operations.GetBillCre // See the *response examples* for integration-specific indicative models. // // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=billCreditNotes) for integrations that support creating and updating a bill credit note. -func (s *billCreditNotes) GetCreateUpdateModel(ctx context.Context, request operations.GetCreateUpdateBillCreditNoteModelRequest, opts ...operations.Option) (*operations.GetCreateUpdateBillCreditNoteModelResponse, error) { +func (s *BillCreditNotes) GetCreateUpdateModel(ctx context.Context, request operations.GetCreateUpdateBillCreditNoteModelRequest, opts ...operations.Option) (*operations.GetCreateUpdateBillCreditNoteModelResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -379,20 +401,31 @@ func (s *billCreditNotes) GetCreateUpdateModel(ctx context.Context, request oper } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -404,7 +437,7 @@ func (s *billCreditNotes) GetCreateUpdateModel(ctx context.Context, request oper // [Bill credit notes](https://docs.codat.io/sync-for-payables-api#/schemas/BillCreditNote) are issued by a supplier for the purpose of recording credit. // // Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data). -func (s *billCreditNotes) List(ctx context.Context, request operations.ListBillCreditNotesRequest, opts ...operations.Option) (*operations.ListBillCreditNotesResponse, error) { +func (s *BillCreditNotes) List(ctx context.Context, request operations.ListBillCreditNotesRequest, opts ...operations.Option) (*operations.ListBillCreditNotesResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -501,20 +534,33 @@ func (s *billCreditNotes) List(ctx context.Context, request operations.ListBillC fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 409: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -530,7 +576,7 @@ func (s *billCreditNotes) List(ctx context.Context, request operations.ListBillC // Required data may vary by integration. To see what data to post, first call [Get create/update bill credit note model](https://docs.codat.io/sync-for-payables-api#/operations/get-create-update-billCreditNotes-model). // // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=billCreditNotes) for integrations that support creating a bill credit note. -func (s *billCreditNotes) Update(ctx context.Context, request operations.UpdateBillCreditNoteRequest, opts ...operations.Option) (*operations.UpdateBillCreditNoteResponse, error) { +func (s *BillCreditNotes) Update(ctx context.Context, request operations.UpdateBillCreditNoteRequest, opts ...operations.Option) (*operations.UpdateBillCreditNoteResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -634,20 +680,31 @@ func (s *billCreditNotes) Update(ctx context.Context, request operations.UpdateB fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/sync-for-payables/billpayments.go b/sync-for-payables/billpayments.go old mode 100755 new mode 100644 index 0fb23a2a7..2ed13973c --- a/sync-for-payables/billpayments.go +++ b/sync-for-payables/billpayments.go @@ -6,21 +6,21 @@ import ( "bytes" "context" "fmt" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/sdkerrors" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "io" "net/http" ) -// billPayments - Bill payments -type billPayments struct { +// BillPayments - Bill payments +type BillPayments struct { sdkConfiguration sdkConfiguration } -func newBillPayments(sdkConfig sdkConfiguration) *billPayments { - return &billPayments{ +func newBillPayments(sdkConfig sdkConfiguration) *BillPayments { + return &BillPayments{ sdkConfiguration: sdkConfig, } } @@ -35,7 +35,7 @@ func newBillPayments(sdkConfig sdkConfiguration) *billPayments { // Required data may vary by integration. To see what data to post, first call [Get create bill payment model](https://docs.codat.io/sync-for-payables-api#/operations/get-create-billPayments-model). // // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=billPayments) for integrations that support creating a bill payment. -func (s *billPayments) Create(ctx context.Context, request operations.CreateBillPaymentRequest, opts ...operations.Option) (*operations.CreateBillPaymentResponse, error) { +func (s *BillPayments) Create(ctx context.Context, request operations.CreateBillPaymentRequest, opts ...operations.Option) (*operations.CreateBillPaymentResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -139,20 +139,31 @@ func (s *billPayments) Create(ctx context.Context, request operations.CreateBill fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -165,7 +176,7 @@ func (s *billPayments) Create(ctx context.Context, request operations.CreateBill // // ### Process // 1. Pass the `{billPaymentId}` to the *Delete bill payment* endpoint and store the `pushOperationKey` returned. -// 2. Check the status of the delete operation by checking the status of push operation either via +// 2. Check the status of the delete operation by checking the status of the push operation either via // // 1. [Push operation webhook](https://docs.codat.io/introduction/webhooks/core-rules-types#push-operation-status-has-changed) (advised), // @@ -181,16 +192,17 @@ func (s *billPayments) Create(ctx context.Context, request operations.CreateBill // ## Integration specifics // Integrations that support soft delete do not permanently delete the object in the accounting platform. // -// | Integration | Soft Delete | Details | +// | Integration | Soft Delete | Details | // |-------------|-------------|------------------------------------------------------------------------------------------------------| -// | Oracle NetSuite | No | See [here](/integrations/accounting/netsuite/how-deleting-bill-payments-works) to learn more. | -// | QuickBooks Online | No | - | -// | Xero | Yes | - | +// | QuickBooks Online | No | - +// | Oracle NetSuite | No | See [here](/integrations/accounting/netsuite/accounting-netsuite-how-deleting-bill-payments-works) to learn more. +// | Xero | Yes | - +// | Sage Intacct | No | Some bill payments in Sage Intacct can only be deleted, whilst others can only be voided. Codat have applied logic to handle this complexity. // // > **Supported integrations** // > -// > This functionality is currently supported for our QuickBooks Online, Xero and Oracle NetSuite integrations. -func (s *billPayments) Delete(ctx context.Context, request operations.DeleteBillPaymentRequest, opts ...operations.Option) (*operations.DeleteBillPaymentResponse, error) { +// > This functionality is currently supported for our QuickBooks Online, Oracle NetSuite, Xero and Sage Intacct integrations. +func (s *BillPayments) Delete(ctx context.Context, request operations.DeleteBillPaymentRequest, opts ...operations.Option) (*operations.DeleteBillPaymentResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -202,7 +214,7 @@ func (s *billPayments) Delete(ctx context.Context, request operations.DeleteBill } } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - url, err := utils.GenerateURL(ctx, baseURL, "/companies/{companyId}/data/billPayments/{billPaymentId}", request, nil) + url, err := utils.GenerateURL(ctx, baseURL, "/companies/{companyId}/connections/{connectionId}/push/billPayments/{billPaymentId}", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -281,20 +293,31 @@ func (s *billPayments) Delete(ctx context.Context, request operations.DeleteBill } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -308,7 +331,7 @@ func (s *billPayments) Delete(ctx context.Context, request operations.DeleteBill // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=billPayments) for integrations that support getting a specific bill payment. // // Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data). -func (s *billPayments) Get(ctx context.Context, request operations.GetBillPaymentsRequest, opts ...operations.Option) (*operations.GetBillPaymentsResponse, error) { +func (s *BillPayments) Get(ctx context.Context, request operations.GetBillPaymentsRequest, opts ...operations.Option) (*operations.GetBillPaymentsResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -399,22 +422,33 @@ func (s *billPayments) Get(ctx context.Context, request operations.GetBillPaymen } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 409: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -430,7 +464,7 @@ func (s *billPayments) Get(ctx context.Context, request operations.GetBillPaymen // See the *response examples* for integration-specific indicative models. // // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=billPayments) for integrations that support creating a bill payment. -func (s *billPayments) GetCreateModel(ctx context.Context, request operations.GetCreateBillPaymentModelRequest, opts ...operations.Option) (*operations.GetCreateBillPaymentModelResponse, error) { +func (s *BillPayments) GetCreateModel(ctx context.Context, request operations.GetCreateBillPaymentModelRequest, opts ...operations.Option) (*operations.GetCreateBillPaymentModelResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -521,20 +555,31 @@ func (s *billPayments) GetCreateModel(ctx context.Context, request operations.Ge } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -546,7 +591,7 @@ func (s *billPayments) GetCreateModel(ctx context.Context, request operations.Ge // [Bill payments](https://docs.codat.io/sync-for-payables-api#/schemas/BillPayment) are an allocation of money within any customer accounts payable account. // // Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data). -func (s *billPayments) List(ctx context.Context, request operations.ListBillPaymentsRequest, opts ...operations.Option) (*operations.ListBillPaymentsResponse, error) { +func (s *BillPayments) List(ctx context.Context, request operations.ListBillPaymentsRequest, opts ...operations.Option) (*operations.ListBillPaymentsResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -643,20 +688,33 @@ func (s *billPayments) List(ctx context.Context, request operations.ListBillPaym fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 409: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/sync-for-payables/bills.go b/sync-for-payables/bills.go old mode 100755 new mode 100644 index 2fab65df3..2acee84b3 --- a/sync-for-payables/bills.go +++ b/sync-for-payables/bills.go @@ -6,21 +6,21 @@ import ( "bytes" "context" "fmt" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/sdkerrors" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "io" "net/http" ) -// bills - Bills -type bills struct { +// Bills +type Bills struct { sdkConfiguration sdkConfiguration } -func newBills(sdkConfig sdkConfiguration) *bills { - return &bills{ +func newBills(sdkConfig sdkConfiguration) *Bills { + return &Bills{ sdkConfiguration: sdkConfig, } } @@ -35,7 +35,7 @@ func newBills(sdkConfig sdkConfiguration) *bills { // Required data may vary by integration. To see what data to post, first call [Get create/update bill model](https://docs.codat.io/sync-for-payables-api#/operations/get-create-update-bills-model). // // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bills) for integrations that support creating a bill. -func (s *bills) Create(ctx context.Context, request operations.CreateBillRequest, opts ...operations.Option) (*operations.CreateBillResponse, error) { +func (s *Bills) Create(ctx context.Context, request operations.CreateBillRequest, opts ...operations.Option) (*operations.CreateBillResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -139,20 +139,31 @@ func (s *bills) Create(ctx context.Context, request operations.CreateBillRequest fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -165,7 +176,7 @@ func (s *bills) Create(ctx context.Context, request operations.CreateBillRequest // // ### Process // 1. Pass the `{billId}` to the *Delete bill* endpoint and store the `pushOperationKey` returned. -// 2. Check the status of the delete operation by checking the status of push operation either via +// 2. Check the status of the delete operation by checking the status of the push operation either via // // 1. [Push operation webhook](https://docs.codat.io/introduction/webhooks/core-rules-types#push-operation-status-has-changed) (advised), // @@ -185,12 +196,13 @@ func (s *bills) Create(ctx context.Context, request operations.CreateBillRequest // | Integration | Soft Delete | Details | // |-------------|-------------|--------------------------------------------------------------------------------------------------------------| // | QuickBooks Online | No | - | -// | Oracle NetSuite | No | When deleting a bill that's already linked to a bill payment, you must delete the linked bill payment first. | +// | Oracle NetSuite | No | When deleting a bill that's already linked to a bill payment, you must delete the linked bill payment first. | | +// | Sage Intacct | No | When deleting a bill that's already linked to a bill payment, you must delete the linked bill payment first. | // // > **Supported Integrations** // > -// > This functionality is currently supported for our QuickBooks Online, Xero and Oracle NetSuite integrations. -func (s *bills) Delete(ctx context.Context, request operations.DeleteBillRequest, opts ...operations.Option) (*operations.DeleteBillResponse, error) { +// > This functionality is currently supported for our QuickBooks Online, Xero, Oracle NetSuite and Sage Intacct integrations. +func (s *Bills) Delete(ctx context.Context, request operations.DeleteBillRequest, opts ...operations.Option) (*operations.DeleteBillResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -281,20 +293,31 @@ func (s *bills) Delete(ctx context.Context, request operations.DeleteBillRequest } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -322,7 +345,7 @@ func (s *bills) Delete(ctx context.Context, request operations.DeleteBillRequest // >**Supported Integrations** // > // >This functionality is currently only supported for our QuickBooks Online integration. -func (s *bills) DeleteAttachment(ctx context.Context, request operations.DeleteBillAttachmentRequest, opts ...operations.Option) (*operations.DeleteBillAttachmentResponse, error) { +func (s *Bills) DeleteAttachment(ctx context.Context, request operations.DeleteBillAttachmentRequest, opts ...operations.Option) (*operations.DeleteBillAttachmentResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -413,20 +436,31 @@ func (s *bills) DeleteAttachment(ctx context.Context, request operations.DeleteB } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -438,7 +472,7 @@ func (s *bills) DeleteAttachment(ctx context.Context, request operations.DeleteB // [Bills](https://docs.codat.io/sync-for-payables-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services. // // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bills) for integrations that support downloading a bill attachment. -func (s *bills) DownloadAttachment(ctx context.Context, request operations.DownloadBillAttachmentRequest, opts ...operations.Option) (*operations.DownloadBillAttachmentResponse, error) { +func (s *Bills) DownloadAttachment(ctx context.Context, request operations.DownloadBillAttachmentRequest, opts ...operations.Option) (*operations.DownloadBillAttachmentResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -534,20 +568,31 @@ func (s *bills) DownloadAttachment(ctx context.Context, request operations.Downl } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -561,7 +606,7 @@ func (s *bills) DownloadAttachment(ctx context.Context, request operations.Downl // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bills) for integrations that support getting a specific bill. // // Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data). -func (s *bills) Get(ctx context.Context, request operations.GetBillRequest, opts ...operations.Option) (*operations.GetBillResponse, error) { +func (s *Bills) Get(ctx context.Context, request operations.GetBillRequest, opts ...operations.Option) (*operations.GetBillResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -652,22 +697,33 @@ func (s *bills) Get(ctx context.Context, request operations.GetBillRequest, opts } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 409: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -679,7 +735,7 @@ func (s *bills) Get(ctx context.Context, request operations.GetBillRequest, opts // [Bills](https://docs.codat.io/sync-for-payables-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services. // // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bills) for integrations that support getting a bill attachment. -func (s *bills) GetAttachment(ctx context.Context, request operations.GetBillAttachmentRequest, opts ...operations.Option) (*operations.GetBillAttachmentResponse, error) { +func (s *Bills) GetAttachment(ctx context.Context, request operations.GetBillAttachmentRequest, opts ...operations.Option) (*operations.GetBillAttachmentResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -770,20 +826,31 @@ func (s *bills) GetAttachment(ctx context.Context, request operations.GetBillAtt } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -799,7 +866,7 @@ func (s *bills) GetAttachment(ctx context.Context, request operations.GetBillAtt // See the *response examples* for integration-specific indicative models. // // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bills) for integrations that support creating and updating a bill. -func (s *bills) GetCreateUpdateModel(ctx context.Context, request operations.GetCreateUpdateBillModelRequest, opts ...operations.Option) (*operations.GetCreateUpdateBillModelResponse, error) { +func (s *Bills) GetCreateUpdateModel(ctx context.Context, request operations.GetCreateUpdateBillModelRequest, opts ...operations.Option) (*operations.GetCreateUpdateBillModelResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -890,20 +957,31 @@ func (s *bills) GetCreateUpdateModel(ctx context.Context, request operations.Get } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -915,7 +993,7 @@ func (s *bills) GetCreateUpdateModel(ctx context.Context, request operations.Get // [Bills](https://docs.codat.io/sync-for-payables-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services. // // Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data). -func (s *bills) List(ctx context.Context, request operations.ListBillsRequest, opts ...operations.Option) (*operations.ListBillsResponse, error) { +func (s *Bills) List(ctx context.Context, request operations.ListBillsRequest, opts ...operations.Option) (*operations.ListBillsResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -1012,20 +1090,33 @@ func (s *bills) List(ctx context.Context, request operations.ListBillsRequest, o fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 409: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -1037,7 +1128,7 @@ func (s *bills) List(ctx context.Context, request operations.ListBillsRequest, o // [Bills](https://docs.codat.io/sync-for-payables-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services. // // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bills) for integrations that support listing bill attachments. -func (s *bills) ListAttachments(ctx context.Context, request operations.ListBillAttachmentsRequest, opts ...operations.Option) (*operations.ListBillAttachmentsResponse, error) { +func (s *Bills) ListAttachments(ctx context.Context, request operations.ListBillAttachmentsRequest, opts ...operations.Option) (*operations.ListBillAttachmentsResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -1128,20 +1219,33 @@ func (s *bills) ListAttachments(ctx context.Context, request operations.ListBill } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough + case httpRes.StatusCode == 409: + fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -1157,7 +1261,7 @@ func (s *bills) ListAttachments(ctx context.Context, request operations.ListBill // Required data may vary by integration. To see what data to post, first call [Get create/update bill model](https://docs.codat.io/sync-for-payables-api#/operations/get-create-update-bills-model). // // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bills) for integrations that support creating a bill. -func (s *bills) Update(ctx context.Context, request operations.UpdateBillRequest, opts ...operations.Option) (*operations.UpdateBillResponse, error) { +func (s *Bills) Update(ctx context.Context, request operations.UpdateBillRequest, opts ...operations.Option) (*operations.UpdateBillResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -1261,20 +1365,31 @@ func (s *bills) Update(ctx context.Context, request operations.UpdateBillRequest fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -1290,7 +1405,7 @@ func (s *bills) Update(ctx context.Context, request operations.UpdateBillRequest // For more details on supported file types by integration see [Attachments](https://docs.codat.io/sync-for-payables-api#/schemas/Attachment). // // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bills) for integrations that support uploading a bill attachment. -func (s *bills) UploadAttachment(ctx context.Context, request operations.UploadBillAttachmentRequest, opts ...operations.Option) (*operations.UploadBillAttachmentResponse, error) { +func (s *Bills) UploadAttachment(ctx context.Context, request operations.UploadBillAttachmentRequest, opts ...operations.Option) (*operations.UploadBillAttachmentResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -1307,7 +1422,7 @@ func (s *bills) UploadAttachment(ctx context.Context, request operations.UploadB return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestBody", "multipart", `multipartForm:"file" request:"mediaType=multipart/form-data"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "AttachmentUpload", "multipart", `request:"mediaType=multipart/form-data"`) if err != nil { return nil, fmt.Errorf("error serializing request body: %w", err) } @@ -1375,22 +1490,35 @@ func (s *bills) UploadAttachment(ctx context.Context, request operations.UploadB httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) switch { case httpRes.StatusCode == 200: + case httpRes.StatusCode == 400: + fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/sync-for-payables/codatsyncpayables.go b/sync-for-payables/codatsyncpayables.go old mode 100755 new mode 100644 index d235bc09f..69971fae1 --- a/sync-for-payables/codatsyncpayables.go +++ b/sync-for-payables/codatsyncpayables.go @@ -5,8 +5,8 @@ package syncforpayables import ( "context" "fmt" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "net/http" "time" ) @@ -90,36 +90,36 @@ func (c *sdkConfiguration) GetServerDetails() (string, map[string]string) { // | Company info | View company profile from the source platform. | // | Manage data | Control how data is retrieved from an integration. | type CodatSyncPayables struct { - // Accounts - Accounts *accounts - // Bill credit notes - BillCreditNotes *billCreditNotes - // Bill payments - BillPayments *billPayments - // Bills - Bills *bills // Create and manage your Codat companies. - Companies *companies - // View company information fetched from the source platform. - CompanyInfo *companyInfo + Companies *Companies // Manage your companies' data connections. - Connections *connections + Connections *Connections + // Bills + Bills *Bills + // Bill credit notes + BillCreditNotes *BillCreditNotes + // Bill payments + BillPayments *BillPayments + // Accounts + Accounts *Accounts // Journal entries - JournalEntries *journalEntries + JournalEntries *JournalEntries // Journals - Journals *journals + Journals *Journals + // Suppliers + Suppliers *Suppliers // Asynchronously retrieve data from an integration to refresh data in Codat. - ManageData *manageData + ManageData *ManageData + // View company information fetched from the source platform. + CompanyInfo *CompanyInfo // Payment methods - PaymentMethods *paymentMethods - // Access create, update and delete operations made to an SMB's data connection. - PushOperations *pushOperations - // Suppliers - Suppliers *suppliers + PaymentMethods *PaymentMethods // Tax rates - TaxRates *taxRates + TaxRates *TaxRates // Tracking categories - TrackingCategories *trackingCategories + TrackingCategories *TrackingCategories + // Access create, update and delete operations made to an SMB's data connection. + PushOperations *PushOperations sdkConfiguration sdkConfiguration } @@ -197,9 +197,9 @@ func New(opts ...SDKOption) *CodatSyncPayables { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "3.0.0", - SDKVersion: "2.2.0", - GenVersion: "2.159.2", - UserAgent: "speakeasy-sdk/go 2.2.0 2.159.2 3.0.0 github.com/codatio/client-sdk-go/sync-for-payables", + SDKVersion: "3.0.0", + GenVersion: "2.210.6", + UserAgent: "speakeasy-sdk/go 3.0.0 2.210.6 3.0.0 github.com/codatio/client-sdk-go/sync-for-payables", }, } for _, opt := range opts { @@ -218,35 +218,35 @@ func New(opts ...SDKOption) *CodatSyncPayables { } } - sdk.Accounts = newAccounts(sdk.sdkConfiguration) - - sdk.BillCreditNotes = newBillCreditNotes(sdk.sdkConfiguration) + sdk.Companies = newCompanies(sdk.sdkConfiguration) - sdk.BillPayments = newBillPayments(sdk.sdkConfiguration) + sdk.Connections = newConnections(sdk.sdkConfiguration) sdk.Bills = newBills(sdk.sdkConfiguration) - sdk.Companies = newCompanies(sdk.sdkConfiguration) + sdk.BillCreditNotes = newBillCreditNotes(sdk.sdkConfiguration) - sdk.CompanyInfo = newCompanyInfo(sdk.sdkConfiguration) + sdk.BillPayments = newBillPayments(sdk.sdkConfiguration) - sdk.Connections = newConnections(sdk.sdkConfiguration) + sdk.Accounts = newAccounts(sdk.sdkConfiguration) sdk.JournalEntries = newJournalEntries(sdk.sdkConfiguration) sdk.Journals = newJournals(sdk.sdkConfiguration) - sdk.ManageData = newManageData(sdk.sdkConfiguration) + sdk.Suppliers = newSuppliers(sdk.sdkConfiguration) - sdk.PaymentMethods = newPaymentMethods(sdk.sdkConfiguration) + sdk.ManageData = newManageData(sdk.sdkConfiguration) - sdk.PushOperations = newPushOperations(sdk.sdkConfiguration) + sdk.CompanyInfo = newCompanyInfo(sdk.sdkConfiguration) - sdk.Suppliers = newSuppliers(sdk.sdkConfiguration) + sdk.PaymentMethods = newPaymentMethods(sdk.sdkConfiguration) sdk.TaxRates = newTaxRates(sdk.sdkConfiguration) sdk.TrackingCategories = newTrackingCategories(sdk.sdkConfiguration) + sdk.PushOperations = newPushOperations(sdk.sdkConfiguration) + return sdk } diff --git a/sync-for-payables/companies.go b/sync-for-payables/companies.go old mode 100755 new mode 100644 index d19886e46..b958c8c07 --- a/sync-for-payables/companies.go +++ b/sync-for-payables/companies.go @@ -6,22 +6,22 @@ import ( "bytes" "context" "fmt" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/sdkerrors" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "io" "net/http" "strings" ) -// companies - Create and manage your Codat companies. -type companies struct { +// Companies - Create and manage your Codat companies. +type Companies struct { sdkConfiguration sdkConfiguration } -func newCompanies(sdkConfig sdkConfiguration) *companies { - return &companies{ +func newCompanies(sdkConfig sdkConfiguration) *Companies { + return &Companies{ sdkConfiguration: sdkConfig, } } @@ -30,7 +30,7 @@ func newCompanies(sdkConfig sdkConfiguration) *companies { // Creates a new company that can be used to assign connections to. // // If forbidden characters (see `name` pattern) are present in the request, a company will be created with the forbidden characters removed. For example, `Company (Codat[1])` with be created as `Company Codat1`. -func (s *companies) Create(ctx context.Context, request *shared.CompanyRequestBody, opts ...operations.Option) (*operations.CreateCompanyResponse, error) { +func (s *Companies) Create(ctx context.Context, request *shared.CompanyRequestBody, opts ...operations.Option) (*operations.CreateCompanyResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -127,18 +127,29 @@ func (s *companies) Create(ctx context.Context, request *shared.CompanyRequestBo fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -147,7 +158,7 @@ func (s *companies) Create(ctx context.Context, request *shared.CompanyRequestBo // Delete a company // // Permanently deletes a company, its connections and any cached data. This operation is irreversible. If the company ID does not exist an error is returned. -func (s *companies) Delete(ctx context.Context, request operations.DeleteCompanyRequest, opts ...operations.Option) (*operations.DeleteCompanyResponse, error) { +func (s *Companies) Delete(ctx context.Context, request operations.DeleteCompanyRequest, opts ...operations.Option) (*operations.DeleteCompanyResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -227,20 +238,31 @@ func (s *companies) Delete(ctx context.Context, request operations.DeleteCompany case httpRes.StatusCode == 204: case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -248,7 +270,7 @@ func (s *companies) Delete(ctx context.Context, request operations.DeleteCompany // Get company // Returns the company for a valid identifier. If the identifier is for a deleted company, a not found response is returned. -func (s *companies) Get(ctx context.Context, request operations.GetCompanyRequest, opts ...operations.Option) (*operations.GetCompanyResponse, error) { +func (s *Companies) Get(ctx context.Context, request operations.GetCompanyRequest, opts ...operations.Option) (*operations.GetCompanyResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -339,20 +361,31 @@ func (s *companies) Get(ctx context.Context, request operations.GetCompanyReques } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -360,7 +393,7 @@ func (s *companies) Get(ctx context.Context, request operations.GetCompanyReques // List companies // Returns a list of your companies. The company schema contains a list of [connections](https://docs.codat.io/sync-for-payables-api#/schemas/Connection) related to the company. -func (s *companies) List(ctx context.Context, request operations.ListCompaniesRequest, opts ...operations.Option) (*operations.ListCompaniesResponse, error) { +func (s *Companies) List(ctx context.Context, request operations.ListCompaniesRequest, opts ...operations.Option) (*operations.ListCompaniesResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -454,18 +487,31 @@ func (s *companies) List(ctx context.Context, request operations.ListCompaniesRe fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -473,7 +519,7 @@ func (s *companies) List(ctx context.Context, request operations.ListCompaniesRe // Update company // Updates both the name and description of the company. -func (s *companies) Update(ctx context.Context, request operations.UpdateCompanyRequest, opts ...operations.Option) (*operations.UpdateCompanyResponse, error) { +func (s *Companies) Update(ctx context.Context, request operations.UpdateCompanyRequest, opts ...operations.Option) (*operations.UpdateCompanyResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -571,20 +617,31 @@ func (s *companies) Update(ctx context.Context, request operations.UpdateCompany } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/sync-for-payables/companyinfo.go b/sync-for-payables/companyinfo.go old mode 100755 new mode 100644 index fec52ca8d..b0ac8218a --- a/sync-for-payables/companyinfo.go +++ b/sync-for-payables/companyinfo.go @@ -6,28 +6,28 @@ import ( "bytes" "context" "fmt" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/sdkerrors" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "io" "net/http" ) -// companyInfo - View company information fetched from the source platform. -type companyInfo struct { +// CompanyInfo - View company information fetched from the source platform. +type CompanyInfo struct { sdkConfiguration sdkConfiguration } -func newCompanyInfo(sdkConfig sdkConfiguration) *companyInfo { - return &companyInfo{ +func newCompanyInfo(sdkConfig sdkConfiguration) *CompanyInfo { + return &CompanyInfo{ sdkConfiguration: sdkConfig, } } // GetAccountingProfile - Get company accounting profile // Gets the latest basic info for a company. -func (s *companyInfo) GetAccountingProfile(ctx context.Context, request operations.GetAccountingProfileRequest, opts ...operations.Option) (*operations.GetAccountingProfileResponse, error) { +func (s *CompanyInfo) GetAccountingProfile(ctx context.Context, request operations.GetAccountingProfileRequest, opts ...operations.Option) (*operations.GetAccountingProfileResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -118,22 +118,33 @@ func (s *companyInfo) GetAccountingProfile(ctx context.Context, request operatio } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 409: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/sync-for-payables/connections.go b/sync-for-payables/connections.go old mode 100755 new mode 100644 index 5e5791998..c6c482d33 --- a/sync-for-payables/connections.go +++ b/sync-for-payables/connections.go @@ -6,21 +6,21 @@ import ( "bytes" "context" "fmt" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/sdkerrors" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "io" "net/http" ) -// connections - Manage your companies' data connections. -type connections struct { +// Connections - Manage your companies' data connections. +type Connections struct { sdkConfiguration sdkConfiguration } -func newConnections(sdkConfig sdkConfiguration) *connections { - return &connections{ +func newConnections(sdkConfig sdkConfiguration) *Connections { + return &Connections{ sdkConfiguration: sdkConfig, } } @@ -29,7 +29,7 @@ func newConnections(sdkConfig sdkConfiguration) *connections { // Creates a connection for the company by providing a valid `platformKey`. // // Use the [List Integrations](https://docs.codat.io/sync-for-payables-api#/operations/list-integrations) endpoint to access valid platform keys. -func (s *connections) Create(ctx context.Context, request operations.CreateConnectionRequest, opts ...operations.Option) (*operations.CreateConnectionResponse, error) { +func (s *Connections) Create(ctx context.Context, request operations.CreateConnectionRequest, opts ...operations.Option) (*operations.CreateConnectionResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -127,20 +127,31 @@ func (s *connections) Create(ctx context.Context, request operations.CreateConne } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -149,7 +160,7 @@ func (s *connections) Create(ctx context.Context, request operations.CreateConne // Delete connection // Revoke and remove a connection from a company. // This operation is not reversible. The end user would need to reauthorize a new data connection if you wish to view new data for this company. -func (s *connections) Delete(ctx context.Context, request operations.DeleteConnectionRequest, opts ...operations.Option) (*operations.DeleteConnectionResponse, error) { +func (s *Connections) Delete(ctx context.Context, request operations.DeleteConnectionRequest, opts ...operations.Option) (*operations.DeleteConnectionResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -229,20 +240,31 @@ func (s *connections) Delete(ctx context.Context, request operations.DeleteConne case httpRes.StatusCode == 200: case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -250,7 +272,7 @@ func (s *connections) Delete(ctx context.Context, request operations.DeleteConne // Get connection // Returns a specific connection for a company when valid identifiers are provided. If the identifiers are for a deleted company and/or connection, a not found response is returned. -func (s *connections) Get(ctx context.Context, request operations.GetConnectionRequest, opts ...operations.Option) (*operations.GetConnectionResponse, error) { +func (s *Connections) Get(ctx context.Context, request operations.GetConnectionRequest, opts ...operations.Option) (*operations.GetConnectionResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -341,20 +363,31 @@ func (s *connections) Get(ctx context.Context, request operations.GetConnectionR } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -362,7 +395,7 @@ func (s *connections) Get(ctx context.Context, request operations.GetConnectionR // List connections // List the connections for a company. -func (s *connections) List(ctx context.Context, request operations.ListConnectionsRequest, opts ...operations.Option) (*operations.ListConnectionsResponse, error) { +func (s *Connections) List(ctx context.Context, request operations.ListConnectionsRequest, opts ...operations.Option) (*operations.ListConnectionsResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -459,20 +492,31 @@ func (s *connections) List(ctx context.Context, request operations.ListConnectio fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -480,7 +524,7 @@ func (s *connections) List(ctx context.Context, request operations.ListConnectio // Unlink connection // This allows you to deauthorize a connection, without deleting it from Codat. This means you can still view any data that has previously been pulled into Codat, and also lets you re-authorize in future if your customer wishes to resume sharing their data. -func (s *connections) Unlink(ctx context.Context, request operations.UnlinkConnectionRequest, opts ...operations.Option) (*operations.UnlinkConnectionResponse, error) { +func (s *Connections) Unlink(ctx context.Context, request operations.UnlinkConnectionRequest, opts ...operations.Option) (*operations.UnlinkConnectionResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -578,20 +622,31 @@ func (s *connections) Unlink(ctx context.Context, request operations.UnlinkConne } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/sync-for-payables/docs/models/operations/createaccountrequest.md b/sync-for-payables/docs/models/operations/createaccountrequest.md deleted file mode 100755 index 2193269bb..000000000 --- a/sync-for-payables/docs/models/operations/createaccountrequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# CreateAccountRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `Account` | [*shared.Account](../../models/shared/account.md) | :heavy_minus_sign: | N/A | | -| `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `ConnectionID` | *string* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | -| `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/createaccountresponse.md b/sync-for-payables/docs/models/operations/createaccountresponse.md deleted file mode 100755 index 1e02a3e60..000000000 --- a/sync-for-payables/docs/models/operations/createaccountresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# CreateAccountResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `CreateAccountResponse` | [*shared.CreateAccountResponse](../../models/shared/createaccountresponse.md) | :heavy_minus_sign: | Success | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | The request made is not valid. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/createbillcreditnoterequest.md b/sync-for-payables/docs/models/operations/createbillcreditnoterequest.md deleted file mode 100755 index b65694097..000000000 --- a/sync-for-payables/docs/models/operations/createbillcreditnoterequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# CreateBillCreditNoteRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `BillCreditNote` | [*shared.BillCreditNote](../../models/shared/billcreditnote.md) | :heavy_minus_sign: | N/A | | -| `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `ConnectionID` | *string* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | -| `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/createbillcreditnoteresponse.md b/sync-for-payables/docs/models/operations/createbillcreditnoteresponse.md deleted file mode 100755 index bba1e7c7c..000000000 --- a/sync-for-payables/docs/models/operations/createbillcreditnoteresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# CreateBillCreditNoteResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `CreateBillCreditNoteResponse` | [*shared.CreateBillCreditNoteResponse](../../models/shared/createbillcreditnoteresponse.md) | :heavy_minus_sign: | Success | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | The request made is not valid. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/createbillpaymentresponse.md b/sync-for-payables/docs/models/operations/createbillpaymentresponse.md deleted file mode 100755 index 9ed5a98d7..000000000 --- a/sync-for-payables/docs/models/operations/createbillpaymentresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# CreateBillPaymentResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `CreateBillPaymentResponse` | [*shared.CreateBillPaymentResponse](../../models/shared/createbillpaymentresponse.md) | :heavy_minus_sign: | Success | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | The request made is not valid. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/createbillresponse.md b/sync-for-payables/docs/models/operations/createbillresponse.md deleted file mode 100755 index aac9b12d7..000000000 --- a/sync-for-payables/docs/models/operations/createbillresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# CreateBillResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `CreateBillResponse` | [*shared.CreateBillResponse](../../models/shared/createbillresponse.md) | :heavy_minus_sign: | Success | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | The request made is not valid. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/createcompanyresponse.md b/sync-for-payables/docs/models/operations/createcompanyresponse.md deleted file mode 100755 index 1842cbca2..000000000 --- a/sync-for-payables/docs/models/operations/createcompanyresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# CreateCompanyResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `Company` | [*shared.Company](../../models/shared/company.md) | :heavy_minus_sign: | OK | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | The request made is not valid. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/createconnectionrequest.md b/sync-for-payables/docs/models/operations/createconnectionrequest.md deleted file mode 100755 index 4bb9fdbad..000000000 --- a/sync-for-payables/docs/models/operations/createconnectionrequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# CreateConnectionRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `RequestBody` | [*CreateConnectionRequestBody](../../models/operations/createconnectionrequestbody.md) | :heavy_minus_sign: | N/A | | -| `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/createconnectionresponse.md b/sync-for-payables/docs/models/operations/createconnectionresponse.md deleted file mode 100755 index 1ec0da4d8..000000000 --- a/sync-for-payables/docs/models/operations/createconnectionresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# CreateConnectionResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `Connection` | [*shared.Connection](../../models/shared/connection.md) | :heavy_minus_sign: | OK | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/createjournalentryresponse.md b/sync-for-payables/docs/models/operations/createjournalentryresponse.md deleted file mode 100755 index 6ce7fd379..000000000 --- a/sync-for-payables/docs/models/operations/createjournalentryresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# CreateJournalEntryResponse - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `CreateJournalEntryResponse` | [*shared.CreateJournalEntryResponse](../../models/shared/createjournalentryresponse.md) | :heavy_minus_sign: | Success | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | The request made is not valid. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/createjournalrequest.md b/sync-for-payables/docs/models/operations/createjournalrequest.md deleted file mode 100755 index 3edeea10d..000000000 --- a/sync-for-payables/docs/models/operations/createjournalrequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# CreateJournalRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `Journal` | [*shared.Journal](../../models/shared/journal.md) | :heavy_minus_sign: | N/A | | -| `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `ConnectionID` | *string* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | -| `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/createjournalresponse.md b/sync-for-payables/docs/models/operations/createjournalresponse.md deleted file mode 100755 index dedc5fd70..000000000 --- a/sync-for-payables/docs/models/operations/createjournalresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# CreateJournalResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `CreateJournalResponse` | [*shared.CreateJournalResponse](../../models/shared/createjournalresponse.md) | :heavy_minus_sign: | Success | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | The request made is not valid. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/createsupplierresponse.md b/sync-for-payables/docs/models/operations/createsupplierresponse.md deleted file mode 100755 index 732d7056d..000000000 --- a/sync-for-payables/docs/models/operations/createsupplierresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# CreateSupplierResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `CreateSupplierResponse` | [*shared.CreateSupplierResponse](../../models/shared/createsupplierresponse.md) | :heavy_minus_sign: | Success | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | The request made is not valid. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/deletebillattachmentresponse.md b/sync-for-payables/docs/models/operations/deletebillattachmentresponse.md deleted file mode 100755 index 56f2a25bd..000000000 --- a/sync-for-payables/docs/models/operations/deletebillattachmentresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# DeleteBillAttachmentResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `PushOperation` | [*shared.PushOperation](../../models/shared/pushoperation.md) | :heavy_minus_sign: | OK | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/deletebillpaymentresponse.md b/sync-for-payables/docs/models/operations/deletebillpaymentresponse.md deleted file mode 100755 index 3320ba5e1..000000000 --- a/sync-for-payables/docs/models/operations/deletebillpaymentresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# DeleteBillPaymentResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `PushOperation` | [*shared.PushOperation](../../models/shared/pushoperation.md) | :heavy_minus_sign: | OK | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/deletebillresponse.md b/sync-for-payables/docs/models/operations/deletebillresponse.md deleted file mode 100755 index 3726927dd..000000000 --- a/sync-for-payables/docs/models/operations/deletebillresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# DeleteBillResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `PushOperation` | [*shared.PushOperation](../../models/shared/pushoperation.md) | :heavy_minus_sign: | OK | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/deletecompanyresponse.md b/sync-for-payables/docs/models/operations/deletecompanyresponse.md deleted file mode 100755 index b5fe9351d..000000000 --- a/sync-for-payables/docs/models/operations/deletecompanyresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# DeleteCompanyResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/deleteconnectionresponse.md b/sync-for-payables/docs/models/operations/deleteconnectionresponse.md deleted file mode 100755 index 96d265e1c..000000000 --- a/sync-for-payables/docs/models/operations/deleteconnectionresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# DeleteConnectionResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/downloadbillattachmentresponse.md b/sync-for-payables/docs/models/operations/downloadbillattachmentresponse.md deleted file mode 100755 index b5b58ec10..000000000 --- a/sync-for-payables/docs/models/operations/downloadbillattachmentresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# DownloadBillAttachmentResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `Data` | *io.ReadCloser* | :heavy_minus_sign: | Success | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getaccountingprofileresponse.md b/sync-for-payables/docs/models/operations/getaccountingprofileresponse.md deleted file mode 100755 index 67db02c7c..000000000 --- a/sync-for-payables/docs/models/operations/getaccountingprofileresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetAccountingProfileResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `CompanyInfo` | [*shared.CompanyInfo](../../models/shared/companyinfo.md) | :heavy_minus_sign: | Success | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getaccountresponse.md b/sync-for-payables/docs/models/operations/getaccountresponse.md deleted file mode 100755 index 162c32547..000000000 --- a/sync-for-payables/docs/models/operations/getaccountresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetAccountResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `Account` | [*shared.Account](../../models/shared/account.md) | :heavy_minus_sign: | Success | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getbillattachmentresponse.md b/sync-for-payables/docs/models/operations/getbillattachmentresponse.md deleted file mode 100755 index 98c8a4032..000000000 --- a/sync-for-payables/docs/models/operations/getbillattachmentresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetBillAttachmentResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `Attachment` | [*shared.Attachment](../../models/shared/attachment.md) | :heavy_minus_sign: | Success | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getbillcreditnoteresponse.md b/sync-for-payables/docs/models/operations/getbillcreditnoteresponse.md deleted file mode 100755 index 6c0e48830..000000000 --- a/sync-for-payables/docs/models/operations/getbillcreditnoteresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetBillCreditNoteResponse - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | -| `BillCreditNote` | [*shared.BillCreditNote](../../models/shared/billcreditnote.md) | :heavy_minus_sign: | Success | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getbillpaymentsresponse.md b/sync-for-payables/docs/models/operations/getbillpaymentsresponse.md deleted file mode 100755 index e4361e6c4..000000000 --- a/sync-for-payables/docs/models/operations/getbillpaymentsresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetBillPaymentsResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `BillPayment` | [*shared.BillPayment](../../models/shared/billpayment.md) | :heavy_minus_sign: | Success | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getbillresponse.md b/sync-for-payables/docs/models/operations/getbillresponse.md deleted file mode 100755 index fe5fc1871..000000000 --- a/sync-for-payables/docs/models/operations/getbillresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetBillResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `Bill` | [*shared.Bill](../../models/shared/bill.md) | :heavy_minus_sign: | Success | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getcompanyresponse.md b/sync-for-payables/docs/models/operations/getcompanyresponse.md deleted file mode 100755 index f82c9d0ff..000000000 --- a/sync-for-payables/docs/models/operations/getcompanyresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCompanyResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `Company` | [*shared.Company](../../models/shared/company.md) | :heavy_minus_sign: | OK | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getconnectionresponse.md b/sync-for-payables/docs/models/operations/getconnectionresponse.md deleted file mode 100755 index c670e99a8..000000000 --- a/sync-for-payables/docs/models/operations/getconnectionresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetConnectionResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `Connection` | [*shared.Connection](../../models/shared/connection.md) | :heavy_minus_sign: | OK | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getcreateaccountmodelresponse.md b/sync-for-payables/docs/models/operations/getcreateaccountmodelresponse.md deleted file mode 100755 index ee0fa71ac..000000000 --- a/sync-for-payables/docs/models/operations/getcreateaccountmodelresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCreateAccountModelResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `PushOption` | [*shared.PushOption](../../models/shared/pushoption.md) | :heavy_minus_sign: | OK | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getcreatebillpaymentmodelresponse.md b/sync-for-payables/docs/models/operations/getcreatebillpaymentmodelresponse.md deleted file mode 100755 index a4ecd356d..000000000 --- a/sync-for-payables/docs/models/operations/getcreatebillpaymentmodelresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCreateBillPaymentModelResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `PushOption` | [*shared.PushOption](../../models/shared/pushoption.md) | :heavy_minus_sign: | OK | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getcreatejournalentrymodelresponse.md b/sync-for-payables/docs/models/operations/getcreatejournalentrymodelresponse.md deleted file mode 100755 index 06e5c06da..000000000 --- a/sync-for-payables/docs/models/operations/getcreatejournalentrymodelresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCreateJournalEntryModelResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `PushOption` | [*shared.PushOption](../../models/shared/pushoption.md) | :heavy_minus_sign: | OK | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getcreatejournalmodelresponse.md b/sync-for-payables/docs/models/operations/getcreatejournalmodelresponse.md deleted file mode 100755 index 1b7a1bf46..000000000 --- a/sync-for-payables/docs/models/operations/getcreatejournalmodelresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCreateJournalModelResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `PushOption` | [*shared.PushOption](../../models/shared/pushoption.md) | :heavy_minus_sign: | OK | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getcreateupdatebillcreditnotemodelresponse.md b/sync-for-payables/docs/models/operations/getcreateupdatebillcreditnotemodelresponse.md deleted file mode 100755 index 2025888b5..000000000 --- a/sync-for-payables/docs/models/operations/getcreateupdatebillcreditnotemodelresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCreateUpdateBillCreditNoteModelResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `PushOption` | [*shared.PushOption](../../models/shared/pushoption.md) | :heavy_minus_sign: | OK | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getcreateupdatebillmodelresponse.md b/sync-for-payables/docs/models/operations/getcreateupdatebillmodelresponse.md deleted file mode 100755 index 89a065081..000000000 --- a/sync-for-payables/docs/models/operations/getcreateupdatebillmodelresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCreateUpdateBillModelResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `PushOption` | [*shared.PushOption](../../models/shared/pushoption.md) | :heavy_minus_sign: | OK | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getcreateupdatesuppliermodelresponse.md b/sync-for-payables/docs/models/operations/getcreateupdatesuppliermodelresponse.md deleted file mode 100755 index 475b2a33b..000000000 --- a/sync-for-payables/docs/models/operations/getcreateupdatesuppliermodelresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetCreateUpdateSupplierModelResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `PushOption` | [*shared.PushOption](../../models/shared/pushoption.md) | :heavy_minus_sign: | OK | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getdatastatusresponse.md b/sync-for-payables/docs/models/operations/getdatastatusresponse.md deleted file mode 100755 index 9620b9733..000000000 --- a/sync-for-payables/docs/models/operations/getdatastatusresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetDataStatusResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `DataStatusResponse` | map[string][shared.DataStatus](../../models/shared/datastatus.md) | :heavy_minus_sign: | OK | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getjournalresponse.md b/sync-for-payables/docs/models/operations/getjournalresponse.md deleted file mode 100755 index 707778232..000000000 --- a/sync-for-payables/docs/models/operations/getjournalresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetJournalResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `Journal` | [*shared.Journal](../../models/shared/journal.md) | :heavy_minus_sign: | Success | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getpaymentmethodresponse.md b/sync-for-payables/docs/models/operations/getpaymentmethodresponse.md deleted file mode 100755 index 1ef6175e7..000000000 --- a/sync-for-payables/docs/models/operations/getpaymentmethodresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetPaymentMethodResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `PaymentMethod` | [*shared.PaymentMethod](../../models/shared/paymentmethod.md) | :heavy_minus_sign: | Success | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getpulloperationresponse.md b/sync-for-payables/docs/models/operations/getpulloperationresponse.md deleted file mode 100755 index 83cd52cc0..000000000 --- a/sync-for-payables/docs/models/operations/getpulloperationresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetPullOperationResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `PullOperation` | [*shared.PullOperation](../../models/shared/pulloperation.md) | :heavy_minus_sign: | OK | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getpushoperationresponse.md b/sync-for-payables/docs/models/operations/getpushoperationresponse.md deleted file mode 100755 index 31e890a3c..000000000 --- a/sync-for-payables/docs/models/operations/getpushoperationresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetPushOperationResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `PushOperation` | [*shared.PushOperation](../../models/shared/pushoperation.md) | :heavy_minus_sign: | OK | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getsupplierresponse.md b/sync-for-payables/docs/models/operations/getsupplierresponse.md deleted file mode 100755 index 5ef173b6c..000000000 --- a/sync-for-payables/docs/models/operations/getsupplierresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetSupplierResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `Supplier` | [*shared.Supplier](../../models/shared/supplier.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/gettaxrateresponse.md b/sync-for-payables/docs/models/operations/gettaxrateresponse.md deleted file mode 100755 index eb9f68ec0..000000000 --- a/sync-for-payables/docs/models/operations/gettaxrateresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetTaxRateResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `TaxRate` | [*shared.TaxRate](../../models/shared/taxrate.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/gettrackingcategoryresponse.md b/sync-for-payables/docs/models/operations/gettrackingcategoryresponse.md deleted file mode 100755 index d87452ab8..000000000 --- a/sync-for-payables/docs/models/operations/gettrackingcategoryresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetTrackingCategoryResponse - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `TrackingCategoryTree` | [*shared.TrackingCategoryTree](../../models/shared/trackingcategorytree.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listaccountsresponse.md b/sync-for-payables/docs/models/operations/listaccountsresponse.md deleted file mode 100755 index fb9d8af07..000000000 --- a/sync-for-payables/docs/models/operations/listaccountsresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# ListAccountsResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `Accounts` | [*shared.Accounts](../../models/shared/accounts.md) | :heavy_minus_sign: | Success | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listbillattachmentsresponse.md b/sync-for-payables/docs/models/operations/listbillattachmentsresponse.md deleted file mode 100755 index 11eaadb86..000000000 --- a/sync-for-payables/docs/models/operations/listbillattachmentsresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# ListBillAttachmentsResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `Attachments` | [*shared.Attachments](../../models/shared/attachments.md) | :heavy_minus_sign: | Success | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listbillcreditnotesresponse.md b/sync-for-payables/docs/models/operations/listbillcreditnotesresponse.md deleted file mode 100755 index fab486e19..000000000 --- a/sync-for-payables/docs/models/operations/listbillcreditnotesresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# ListBillCreditNotesResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | -| `BillCreditNotes` | [*shared.BillCreditNotes](../../models/shared/billcreditnotes.md) | :heavy_minus_sign: | Success | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listbillpaymentsresponse.md b/sync-for-payables/docs/models/operations/listbillpaymentsresponse.md deleted file mode 100755 index 734a38dd8..000000000 --- a/sync-for-payables/docs/models/operations/listbillpaymentsresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# ListBillPaymentsResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `BillPayments` | [*shared.BillPayments](../../models/shared/billpayments.md) | :heavy_minus_sign: | Success | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listbillsresponse.md b/sync-for-payables/docs/models/operations/listbillsresponse.md deleted file mode 100755 index bc3db15b1..000000000 --- a/sync-for-payables/docs/models/operations/listbillsresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# ListBillsResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `Bills` | [*shared.Bills](../../models/shared/bills.md) | :heavy_minus_sign: | Success | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listcompaniesresponse.md b/sync-for-payables/docs/models/operations/listcompaniesresponse.md deleted file mode 100755 index 88d044811..000000000 --- a/sync-for-payables/docs/models/operations/listcompaniesresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# ListCompaniesResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `Companies` | [*shared.Companies](../../models/shared/companies.md) | :heavy_minus_sign: | OK | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listconnectionsresponse.md b/sync-for-payables/docs/models/operations/listconnectionsresponse.md deleted file mode 100755 index c4b6ee35a..000000000 --- a/sync-for-payables/docs/models/operations/listconnectionsresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# ListConnectionsResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `Connections` | [*shared.Connections](../../models/shared/connections.md) | :heavy_minus_sign: | OK | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listjournalsresponse.md b/sync-for-payables/docs/models/operations/listjournalsresponse.md deleted file mode 100755 index 69c35be22..000000000 --- a/sync-for-payables/docs/models/operations/listjournalsresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# ListJournalsResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | -| `Journals` | [*shared.Journals](../../models/shared/journals.md) | :heavy_minus_sign: | Success | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listpaymentmethodsresponse.md b/sync-for-payables/docs/models/operations/listpaymentmethodsresponse.md deleted file mode 100755 index 2feeff1a3..000000000 --- a/sync-for-payables/docs/models/operations/listpaymentmethodsresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# ListPaymentMethodsResponse - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | -| `PaymentMethods` | [*shared.PaymentMethods](../../models/shared/paymentmethods.md) | :heavy_minus_sign: | Success | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listpulloperationsresponse.md b/sync-for-payables/docs/models/operations/listpulloperationsresponse.md deleted file mode 100755 index eb9c20062..000000000 --- a/sync-for-payables/docs/models/operations/listpulloperationsresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# ListPullOperationsResponse - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | -| `PullOperations` | [*shared.PullOperations](../../models/shared/pulloperations.md) | :heavy_minus_sign: | OK | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listpushoperationsresponse.md b/sync-for-payables/docs/models/operations/listpushoperationsresponse.md deleted file mode 100755 index a2be45d8d..000000000 --- a/sync-for-payables/docs/models/operations/listpushoperationsresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# ListPushOperationsResponse - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | -| `PushOperations` | [*shared.PushOperations](../../models/shared/pushoperations.md) | :heavy_minus_sign: | OK | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listsuppliersresponse.md b/sync-for-payables/docs/models/operations/listsuppliersresponse.md deleted file mode 100755 index 3c11c060c..000000000 --- a/sync-for-payables/docs/models/operations/listsuppliersresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# ListSuppliersResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `Suppliers` | [*shared.Suppliers](../../models/shared/suppliers.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listtaxratesresponse.md b/sync-for-payables/docs/models/operations/listtaxratesresponse.md deleted file mode 100755 index ffff7993f..000000000 --- a/sync-for-payables/docs/models/operations/listtaxratesresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# ListTaxRatesResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `TaxRates` | [*shared.TaxRates](../../models/shared/taxrates.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listtrackingcategoriesresponse.md b/sync-for-payables/docs/models/operations/listtrackingcategoriesresponse.md deleted file mode 100755 index 7c53cd933..000000000 --- a/sync-for-payables/docs/models/operations/listtrackingcategoriesresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# ListTrackingCategoriesResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `TrackingCategories` | [*shared.TrackingCategories](../../models/shared/trackingcategories.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/refreshalldatatypesresponse.md b/sync-for-payables/docs/models/operations/refreshalldatatypesresponse.md deleted file mode 100755 index 34a88bfa2..000000000 --- a/sync-for-payables/docs/models/operations/refreshalldatatypesresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# RefreshAllDataTypesResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/refreshdatatyperesponse.md b/sync-for-payables/docs/models/operations/refreshdatatyperesponse.md deleted file mode 100755 index 27edbd018..000000000 --- a/sync-for-payables/docs/models/operations/refreshdatatyperesponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# RefreshDataTypeResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `PullOperation` | [*shared.PullOperation](../../models/shared/pulloperation.md) | :heavy_minus_sign: | OK | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/unlinkconnectionrequest.md b/sync-for-payables/docs/models/operations/unlinkconnectionrequest.md deleted file mode 100755 index b5f0f1efa..000000000 --- a/sync-for-payables/docs/models/operations/unlinkconnectionrequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# UnlinkConnectionRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `RequestBody` | [*UnlinkConnectionUpdateConnection](../../models/operations/unlinkconnectionupdateconnection.md) | :heavy_minus_sign: | N/A | | -| `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `ConnectionID` | *string* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/unlinkconnectionresponse.md b/sync-for-payables/docs/models/operations/unlinkconnectionresponse.md deleted file mode 100755 index 98e85c387..000000000 --- a/sync-for-payables/docs/models/operations/unlinkconnectionresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# UnlinkConnectionResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `Connection` | [*shared.Connection](../../models/shared/connection.md) | :heavy_minus_sign: | OK | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/unlinkconnectionupdateconnection.md b/sync-for-payables/docs/models/operations/unlinkconnectionupdateconnection.md deleted file mode 100755 index 40d807f5d..000000000 --- a/sync-for-payables/docs/models/operations/unlinkconnectionupdateconnection.md +++ /dev/null @@ -1,8 +0,0 @@ -# UnlinkConnectionUpdateConnection - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `Status` | [*shared.DataConnectionStatus](../../models/shared/dataconnectionstatus.md) | :heavy_minus_sign: | The current authorization status of the data connection. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/updatebillcreditnoteresponse.md b/sync-for-payables/docs/models/operations/updatebillcreditnoteresponse.md deleted file mode 100755 index ab4d51648..000000000 --- a/sync-for-payables/docs/models/operations/updatebillcreditnoteresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# UpdateBillCreditNoteResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | The request made is not valid. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `UpdateBillCreditNoteResponse` | [*shared.UpdateBillCreditNoteResponse](../../models/shared/updatebillcreditnoteresponse.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/updatebillresponse.md b/sync-for-payables/docs/models/operations/updatebillresponse.md deleted file mode 100755 index 646774a9b..000000000 --- a/sync-for-payables/docs/models/operations/updatebillresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# UpdateBillResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | The request made is not valid. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `UpdateBillResponse` | [*shared.UpdateBillResponse](../../models/shared/updatebillresponse.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/updatecompanyresponse.md b/sync-for-payables/docs/models/operations/updatecompanyresponse.md deleted file mode 100755 index da4625b9d..000000000 --- a/sync-for-payables/docs/models/operations/updatecompanyresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# UpdateCompanyResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `Company` | [*shared.Company](../../models/shared/company.md) | :heavy_minus_sign: | OK | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/updatesupplierresponse.md b/sync-for-payables/docs/models/operations/updatesupplierresponse.md deleted file mode 100755 index 198ff778f..000000000 --- a/sync-for-payables/docs/models/operations/updatesupplierresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# UpdateSupplierResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | The request made is not valid. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `UpdateSupplierResponse` | [*shared.UpdateSupplierResponse](../../models/shared/updatesupplierresponse.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/uploadbillattachmentrequest.md b/sync-for-payables/docs/models/operations/uploadbillattachmentrequest.md deleted file mode 100755 index 6e4b2ec75..000000000 --- a/sync-for-payables/docs/models/operations/uploadbillattachmentrequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# UploadBillAttachmentRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `RequestBody` | [*UploadBillAttachmentRequestBody](../../models/operations/uploadbillattachmentrequestbody.md) | :heavy_minus_sign: | N/A | | -| `BillID` | *string* | :heavy_check_mark: | Unique identifier for a bill. | 13d946f0-c5d5-42bc-b092-97ece17923ab | -| `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `ConnectionID` | *string* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/uploadbillattachmentresponse.md b/sync-for-payables/docs/models/operations/uploadbillattachmentresponse.md deleted file mode 100755 index 4c91ed957..000000000 --- a/sync-for-payables/docs/models/operations/uploadbillattachmentresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# UploadBillAttachmentResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ErrorMessage` | [*shared.ErrorMessage](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/accounts.md b/sync-for-payables/docs/models/shared/accounts.md deleted file mode 100755 index f14a2c8d2..000000000 --- a/sync-for-payables/docs/models/shared/accounts.md +++ /dev/null @@ -1,12 +0,0 @@ -# Accounts - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| `Links` | [Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | -| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | -| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | -| `Results` | [][Account](../../models/shared/account.md) | :heavy_minus_sign: | N/A | -| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/address.md b/sync-for-payables/docs/models/shared/address.md deleted file mode 100755 index a0423fbf8..000000000 --- a/sync-for-payables/docs/models/shared/address.md +++ /dev/null @@ -1,14 +0,0 @@ -# Address - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `City` | **string* | :heavy_minus_sign: | City of the customer address. | -| `Country` | **string* | :heavy_minus_sign: | Country of the customer address. | -| `Line1` | **string* | :heavy_minus_sign: | Line 1 of the customer address. | -| `Line2` | **string* | :heavy_minus_sign: | Line 2 of the customer address. | -| `PostalCode` | **string* | :heavy_minus_sign: | Postal code or zip code. | -| `Region` | **string* | :heavy_minus_sign: | Region of the customer address. | -| `Type` | [AccountingAddressType](../../models/shared/accountingaddresstype.md) | :heavy_check_mark: | The type of the address | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/attachments.md b/sync-for-payables/docs/models/shared/attachments.md deleted file mode 100755 index 59968d880..000000000 --- a/sync-for-payables/docs/models/shared/attachments.md +++ /dev/null @@ -1,8 +0,0 @@ -# Attachments - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `Attachments` | [][Attachment](../../models/shared/attachment.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/billcreditnotelineitemtracking.md b/sync-for-payables/docs/models/shared/billcreditnotelineitemtracking.md deleted file mode 100755 index c745097c6..000000000 --- a/sync-for-payables/docs/models/shared/billcreditnotelineitemtracking.md +++ /dev/null @@ -1,14 +0,0 @@ -# BillCreditNoteLineItemTracking - -Categories, and a project and customer, against which the item is tracked. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `CategoryRefs` | [][TrackingCategoryRef](../../models/shared/trackingcategoryref.md) | :heavy_check_mark: | N/A | -| `CustomerRef` | [*BillCreditNoteLineItemTrackingCustomerRef](../../models/shared/billcreditnotelineitemtrackingcustomerref.md) | :heavy_minus_sign: | N/A | -| `IsBilledTo` | [BilledToType](../../models/shared/billedtotype.md) | :heavy_check_mark: | Defines if the invoice or credit note is billed/rebilled to a project or customer. | -| `IsRebilledTo` | [BilledToType](../../models/shared/billedtotype.md) | :heavy_check_mark: | Defines if the invoice or credit note is billed/rebilled to a project or customer. | -| `ProjectRef` | [*BillCreditNoteLineItemTrackingProjectReference](../../models/shared/billcreditnotelineitemtrackingprojectreference.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/billlineitemrecordlinereference.md b/sync-for-payables/docs/models/shared/billlineitemrecordlinereference.md deleted file mode 100755 index 31d180638..000000000 --- a/sync-for-payables/docs/models/shared/billlineitemrecordlinereference.md +++ /dev/null @@ -1,12 +0,0 @@ -# BillLineItemRecordLineReference - -Reference to the purchase order line this line was generated from. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `DataType` | [*BillLineItemRecordLineReferenceDataType](../../models/shared/billlineitemrecordlinereferencedatatype.md) | :heavy_minus_sign: | Allowed name of the 'dataType'. | -| `ID` | **string* | :heavy_minus_sign: | 'id' of the underlying record. | -| `LineNumber` | **string* | :heavy_minus_sign: | Line number of the underlying record. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/billlineitemrecordlinereferencedatatype.md b/sync-for-payables/docs/models/shared/billlineitemrecordlinereferencedatatype.md deleted file mode 100755 index e002ca5bc..000000000 --- a/sync-for-payables/docs/models/shared/billlineitemrecordlinereferencedatatype.md +++ /dev/null @@ -1,10 +0,0 @@ -# BillLineItemRecordLineReferenceDataType - -Allowed name of the 'dataType'. - - -## Values - -| Name | Value | -| ------------------------------------------------------- | ------------------------------------------------------- | -| `BillLineItemRecordLineReferenceDataTypePurchaseOrders` | purchaseOrders | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/bills.md b/sync-for-payables/docs/models/shared/bills.md deleted file mode 100755 index ce34c136b..000000000 --- a/sync-for-payables/docs/models/shared/bills.md +++ /dev/null @@ -1,12 +0,0 @@ -# Bills - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| `Links` | [Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | -| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | -| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | -| `Results` | [][Bill](../../models/shared/bill.md) | :heavy_minus_sign: | N/A | -| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/clientratelimitreachedwebhook.md b/sync-for-payables/docs/models/shared/clientratelimitreachedwebhook.md deleted file mode 100755 index 10c2f321b..000000000 --- a/sync-for-payables/docs/models/shared/clientratelimitreachedwebhook.md +++ /dev/null @@ -1,16 +0,0 @@ -# ClientRateLimitReachedWebhook - -Webhook request body for a client that has reached their rate limit. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `AlertID` | **string* | :heavy_minus_sign: | Unique identifier of the webhook event. | -| `ClientID` | **string* | :heavy_minus_sign: | Unique identifier for your client in Codat. | -| `ClientName` | **string* | :heavy_minus_sign: | Name of your client in Codat. | -| `Data` | [*ClientRateLimitReachedWebhookData](../../models/shared/clientratelimitreachedwebhookdata.md) | :heavy_minus_sign: | N/A | -| `Message` | **string* | :heavy_minus_sign: | A human readable message about the webhook. | -| `RuleID` | **string* | :heavy_minus_sign: | Unique identifier for the rule. | -| `RuleType` | **string* | :heavy_minus_sign: | The type of rule. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/clientratelimitresetwebhook.md b/sync-for-payables/docs/models/shared/clientratelimitresetwebhook.md deleted file mode 100755 index 0aca379bc..000000000 --- a/sync-for-payables/docs/models/shared/clientratelimitresetwebhook.md +++ /dev/null @@ -1,16 +0,0 @@ -# ClientRateLimitResetWebhook - -Webhook request body for a client that has had their rate limit reset. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `AlertID` | **string* | :heavy_minus_sign: | Unique identifier of the webhook event. | -| `ClientID` | **string* | :heavy_minus_sign: | Unique identifier for your client in Codat. | -| `ClientName` | **string* | :heavy_minus_sign: | Name of your client in Codat. | -| `Data` | [*ClientRateLimitResetWebhookData](../../models/shared/clientratelimitresetwebhookdata.md) | :heavy_minus_sign: | N/A | -| `Message` | **string* | :heavy_minus_sign: | A human readable message about the webhook. | -| `RuleID` | **string* | :heavy_minus_sign: | Unique identifier for the rule. | -| `RuleType` | **string* | :heavy_minus_sign: | The type of rule. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/companies.md b/sync-for-payables/docs/models/shared/companies.md deleted file mode 100755 index 0ebc12909..000000000 --- a/sync-for-payables/docs/models/shared/companies.md +++ /dev/null @@ -1,12 +0,0 @@ -# Companies - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| `Links` | [Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | -| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | -| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | -| `Results` | [][Company](../../models/shared/company.md) | :heavy_minus_sign: | N/A | -| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/connections.md b/sync-for-payables/docs/models/shared/connections.md deleted file mode 100755 index d72578b80..000000000 --- a/sync-for-payables/docs/models/shared/connections.md +++ /dev/null @@ -1,12 +0,0 @@ -# Connections - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `Links` | [Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | -| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | -| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | -| `Results` | [][Connection](../../models/shared/connection.md) | :heavy_minus_sign: | N/A | -| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/connectionsourcetype.md b/sync-for-payables/docs/models/shared/connectionsourcetype.md deleted file mode 100755 index e9f3060f8..000000000 --- a/sync-for-payables/docs/models/shared/connectionsourcetype.md +++ /dev/null @@ -1,14 +0,0 @@ -# ConnectionSourceType - -The type of platform of the connection. - - -## Values - -| Name | Value | -| -------------------------------- | -------------------------------- | -| `ConnectionSourceTypeAccounting` | Accounting | -| `ConnectionSourceTypeBanking` | Banking | -| `ConnectionSourceTypeCommerce` | Commerce | -| `ConnectionSourceTypeOther` | Other | -| `ConnectionSourceTypeUnknown` | Unknown | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/datastatusdatatypes.md b/sync-for-payables/docs/models/shared/datastatusdatatypes.md deleted file mode 100755 index 606046287..000000000 --- a/sync-for-payables/docs/models/shared/datastatusdatatypes.md +++ /dev/null @@ -1,51 +0,0 @@ -# DataStatusDataTypes - -Available Data types - - -## Values - -| Name | Value | -| ------------------------------------------------- | ------------------------------------------------- | -| `DataStatusDataTypesAccountTransactions` | accountTransactions | -| `DataStatusDataTypesBalanceSheet` | balanceSheet | -| `DataStatusDataTypesBankAccounts` | bankAccounts | -| `DataStatusDataTypesBankTransactions` | bankTransactions | -| `DataStatusDataTypesBillCreditNotes` | billCreditNotes | -| `DataStatusDataTypesBillPayments` | billPayments | -| `DataStatusDataTypesBills` | bills | -| `DataStatusDataTypesCashFlowStatement` | cashFlowStatement | -| `DataStatusDataTypesChartOfAccounts` | chartOfAccounts | -| `DataStatusDataTypesCompany` | company | -| `DataStatusDataTypesCreditNotes` | creditNotes | -| `DataStatusDataTypesCustomers` | customers | -| `DataStatusDataTypesDirectCosts` | directCosts | -| `DataStatusDataTypesDirectIncomes` | directIncomes | -| `DataStatusDataTypesInvoices` | invoices | -| `DataStatusDataTypesItems` | items | -| `DataStatusDataTypesJournalEntries` | journalEntries | -| `DataStatusDataTypesJournals` | journals | -| `DataStatusDataTypesPaymentMethods` | paymentMethods | -| `DataStatusDataTypesPayments` | payments | -| `DataStatusDataTypesProfitAndLoss` | profitAndLoss | -| `DataStatusDataTypesPurchaseOrders` | purchaseOrders | -| `DataStatusDataTypesSalesOrders` | salesOrders | -| `DataStatusDataTypesSuppliers` | suppliers | -| `DataStatusDataTypesTaxRates` | taxRates | -| `DataStatusDataTypesTrackingCategories` | trackingCategories | -| `DataStatusDataTypesTransfers` | transfers | -| `DataStatusDataTypesBankingAccountBalances` | banking-accountBalances | -| `DataStatusDataTypesBankingAccounts` | banking-accounts | -| `DataStatusDataTypesBankingTransactionCategories` | banking-transactionCategories | -| `DataStatusDataTypesBankingTransactions` | banking-transactions | -| `DataStatusDataTypesCommerceCompanyInfo` | commerce-companyInfo | -| `DataStatusDataTypesCommerceCustomers` | commerce-customers | -| `DataStatusDataTypesCommerceDisputes` | commerce-disputes | -| `DataStatusDataTypesCommerceLocations` | commerce-locations | -| `DataStatusDataTypesCommerceOrders` | commerce-orders | -| `DataStatusDataTypesCommercePaymentMethods` | commerce-paymentMethods | -| `DataStatusDataTypesCommercePayments` | commerce-payments | -| `DataStatusDataTypesCommerceProductCategories` | commerce-productCategories | -| `DataStatusDataTypesCommerceProducts` | commerce-products | -| `DataStatusDataTypesCommerceTaxComponents` | commerce-taxComponents | -| `DataStatusDataTypesCommerceTransactions` | commerce-transactions | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/items.md b/sync-for-payables/docs/models/shared/items.md deleted file mode 100755 index 33265b27b..000000000 --- a/sync-for-payables/docs/models/shared/items.md +++ /dev/null @@ -1,9 +0,0 @@ -# Items - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `Allocation` | [ItemsAllocation](../../models/shared/itemsallocation.md) | :heavy_check_mark: | N/A | -| `Payment` | [PaymentAllocationPayment](../../models/shared/paymentallocationpayment.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/journallinetracking.md b/sync-for-payables/docs/models/shared/journallinetracking.md deleted file mode 100755 index 9b45ab857..000000000 --- a/sync-for-payables/docs/models/shared/journallinetracking.md +++ /dev/null @@ -1,10 +0,0 @@ -# JournalLineTracking - -List of record refs associated with the tracking information for the line (eg to a Tracking Category, or customer etc.) - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | -| `RecordRefs` | [][RecordRef](../../models/shared/recordref.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/journals.md b/sync-for-payables/docs/models/shared/journals.md deleted file mode 100755 index 298aecffc..000000000 --- a/sync-for-payables/docs/models/shared/journals.md +++ /dev/null @@ -1,12 +0,0 @@ -# Journals - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| `Links` | [Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | -| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | -| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | -| `Results` | [][Journal](../../models/shared/journal.md) | :heavy_minus_sign: | N/A | -| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/links.md b/sync-for-payables/docs/models/shared/links.md deleted file mode 100755 index 50f670d8d..000000000 --- a/sync-for-payables/docs/models/shared/links.md +++ /dev/null @@ -1,11 +0,0 @@ -# Links - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `Current` | [HalRef](../../models/shared/halref.md) | :heavy_check_mark: | N/A | -| `Next` | [*HalRef](../../models/shared/halref.md) | :heavy_minus_sign: | N/A | -| `Previous` | [*HalRef](../../models/shared/halref.md) | :heavy_minus_sign: | N/A | -| `Self` | [HalRef](../../models/shared/halref.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/paymentmethod.md b/sync-for-payables/docs/models/shared/paymentmethod.md deleted file mode 100755 index d3f4d68b4..000000000 --- a/sync-for-payables/docs/models/shared/paymentmethod.md +++ /dev/null @@ -1,20 +0,0 @@ -# PaymentMethod - -> View the coverage for payment methods in the Data coverage explorer. - -## Overview - -A Payment Method represents the payment method(s) used to pay a Bill. Payment Methods are referenced on [Bill Payments](https://docs.codat.io/sync-for-payables-api#/schemas/BillPayment) and [Payments](https://docs.codat.io/sync-for-payables-api#/schemas/Payment). - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `ID` | **string* | :heavy_minus_sign: | Unique identifier for the payment method. | | -| `Metadata` | [*Metadata](../../models/shared/metadata.md) | :heavy_minus_sign: | N/A | | -| `ModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | -| `Name` | **string* | :heavy_minus_sign: | Name of the payment method. | | -| `SourceModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | -| `Status` | [*PaymentMethodStatus](../../models/shared/paymentmethodstatus.md) | :heavy_minus_sign: | Status of the Payment Method. | | -| `Type` | [*PaymentMethodType](../../models/shared/paymentmethodtype.md) | :heavy_minus_sign: | Method of payment. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/paymentmethods.md b/sync-for-payables/docs/models/shared/paymentmethods.md deleted file mode 100755 index 8c57cbe12..000000000 --- a/sync-for-payables/docs/models/shared/paymentmethods.md +++ /dev/null @@ -1,12 +0,0 @@ -# PaymentMethods - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `Links` | [Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | -| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | -| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | -| `Results` | [][PaymentMethod](../../models/shared/paymentmethod.md) | :heavy_minus_sign: | N/A | -| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/phonenumber.md b/sync-for-payables/docs/models/shared/phonenumber.md deleted file mode 100755 index d82560455..000000000 --- a/sync-for-payables/docs/models/shared/phonenumber.md +++ /dev/null @@ -1,9 +0,0 @@ -# PhoneNumber - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `Number` | *string* | :heavy_check_mark: | A phone number. | +44 25691 154789 | -| `Type` | [PhoneNumberType](../../models/shared/phonenumbertype.md) | :heavy_check_mark: | The type of phone number | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/pulloperations.md b/sync-for-payables/docs/models/shared/pulloperations.md deleted file mode 100755 index 8c8b721d9..000000000 --- a/sync-for-payables/docs/models/shared/pulloperations.md +++ /dev/null @@ -1,12 +0,0 @@ -# PullOperations - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `Links` | [Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | -| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | -| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | -| `Results` | [][PullOperation](../../models/shared/pulloperation.md) | :heavy_minus_sign: | N/A | -| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/pushoperationchange.md b/sync-for-payables/docs/models/shared/pushoperationchange.md deleted file mode 100755 index 4848a7161..000000000 --- a/sync-for-payables/docs/models/shared/pushoperationchange.md +++ /dev/null @@ -1,10 +0,0 @@ -# PushOperationChange - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | -| `AttachmentID` | **string* | :heavy_minus_sign: | Unique identifier for the attachment created otherwise null. | -| `RecordRef` | [*PushOperationRef](../../models/shared/pushoperationref.md) | :heavy_minus_sign: | N/A | -| `Type` | [*PushChangeType](../../models/shared/pushchangetype.md) | :heavy_minus_sign: | Type of change being applied to record in third party platform. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/pushoperationref.md b/sync-for-payables/docs/models/shared/pushoperationref.md deleted file mode 100755 index f1a32f79b..000000000 --- a/sync-for-payables/docs/models/shared/pushoperationref.md +++ /dev/null @@ -1,9 +0,0 @@ -# PushOperationRef - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -| `DataType` | [*DataType](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | -| `ID` | **string* | :heavy_minus_sign: | Unique identifier for a push operation. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/pushoperations.md b/sync-for-payables/docs/models/shared/pushoperations.md deleted file mode 100755 index 7dae13782..000000000 --- a/sync-for-payables/docs/models/shared/pushoperations.md +++ /dev/null @@ -1,12 +0,0 @@ -# PushOperations - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `Links` | [Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | -| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | -| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | -| `Results` | [][PushOperation](../../models/shared/pushoperation.md) | :heavy_minus_sign: | N/A | -| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/pushoption.md b/sync-for-payables/docs/models/shared/pushoption.md deleted file mode 100755 index cb83d1a31..000000000 --- a/sync-for-payables/docs/models/shared/pushoption.md +++ /dev/null @@ -1,14 +0,0 @@ -# PushOption - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `Description` | **string* | :heavy_minus_sign: | A description of the property. | -| `DisplayName` | *string* | :heavy_check_mark: | The property's display name. | -| `Options` | [][PushOptionChoice](../../models/shared/pushoptionchoice.md) | :heavy_minus_sign: | N/A | -| `Properties` | map[string][PushOptionProperty](../../models/shared/pushoptionproperty.md) | :heavy_minus_sign: | N/A | -| `Required` | *bool* | :heavy_check_mark: | The property is required if `True`. | -| `Type` | [PushOptionType](../../models/shared/pushoptiontype.md) | :heavy_check_mark: | The option type. | -| `Validation` | [*PushValidationInfo](../../models/shared/pushvalidationinfo.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/pushoptionchoice.md b/sync-for-payables/docs/models/shared/pushoptionchoice.md deleted file mode 100755 index 2314ca6cd..000000000 --- a/sync-for-payables/docs/models/shared/pushoptionchoice.md +++ /dev/null @@ -1,12 +0,0 @@ -# PushOptionChoice - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `Description` | **string* | :heavy_minus_sign: | A description of the property. | -| `DisplayName` | **string* | :heavy_minus_sign: | The property's display name. | -| `Required` | **bool* | :heavy_minus_sign: | The property is required if `True`. | -| `Type` | [*PushOptionType](../../models/shared/pushoptiontype.md) | :heavy_minus_sign: | The option type. | -| `Value` | **string* | :heavy_minus_sign: | Allowed value for field. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/pushoptionproperty.md b/sync-for-payables/docs/models/shared/pushoptionproperty.md deleted file mode 100755 index 547a035af..000000000 --- a/sync-for-payables/docs/models/shared/pushoptionproperty.md +++ /dev/null @@ -1,14 +0,0 @@ -# PushOptionProperty - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `Description` | *string* | :heavy_check_mark: | A description of the property. | -| `DisplayName` | *string* | :heavy_check_mark: | The property's display name. | -| `Options` | [][PushOptionChoice](../../models/shared/pushoptionchoice.md) | :heavy_minus_sign: | N/A | -| `Properties` | map[string][PushOptionProperty](../../models/shared/pushoptionproperty.md) | :heavy_minus_sign: | N/A | -| `Required` | *bool* | :heavy_check_mark: | The property is required if `True`. | -| `Type` | [PushOptionType](../../models/shared/pushoptiontype.md) | :heavy_check_mark: | The option type. | -| `Validation` | [*PushValidationInfo](../../models/shared/pushvalidationinfo.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/pushvalidationinfo.md b/sync-for-payables/docs/models/shared/pushvalidationinfo.md deleted file mode 100755 index 520c31e52..000000000 --- a/sync-for-payables/docs/models/shared/pushvalidationinfo.md +++ /dev/null @@ -1,9 +0,0 @@ -# PushValidationInfo - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `Information` | [][PushFieldValidation](../../models/shared/pushfieldvalidation.md) | :heavy_minus_sign: | N/A | -| `Warnings` | [][PushFieldValidation](../../models/shared/pushfieldvalidation.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/suppliers.md b/sync-for-payables/docs/models/shared/suppliers.md deleted file mode 100755 index 551562f06..000000000 --- a/sync-for-payables/docs/models/shared/suppliers.md +++ /dev/null @@ -1,12 +0,0 @@ -# Suppliers - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | -| `Links` | [Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | -| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | -| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | -| `Results` | [][Supplier](../../models/shared/supplier.md) | :heavy_minus_sign: | N/A | -| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/taxrates.md b/sync-for-payables/docs/models/shared/taxrates.md deleted file mode 100755 index c92855753..000000000 --- a/sync-for-payables/docs/models/shared/taxrates.md +++ /dev/null @@ -1,12 +0,0 @@ -# TaxRates - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| `Links` | [Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | -| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | -| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | -| `Results` | [][TaxRate](../../models/shared/taxrate.md) | :heavy_minus_sign: | N/A | -| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/tracking.md b/sync-for-payables/docs/models/shared/tracking.md deleted file mode 100755 index 023c98985..000000000 --- a/sync-for-payables/docs/models/shared/tracking.md +++ /dev/null @@ -1,14 +0,0 @@ -# Tracking - -Categories, and a project and customer, against which the item is tracked. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `CategoryRefs` | [][TrackingCategoryRef](../../models/shared/trackingcategoryref.md) | :heavy_check_mark: | N/A | -| `CustomerRef` | [*TrackingCustomerRef](../../models/shared/trackingcustomerref.md) | :heavy_minus_sign: | N/A | -| `IsBilledTo` | [BilledToType](../../models/shared/billedtotype.md) | :heavy_check_mark: | Defines if the invoice or credit note is billed/rebilled to a project or customer. | -| `IsRebilledTo` | [BilledToType](../../models/shared/billedtotype.md) | :heavy_check_mark: | Defines if the invoice or credit note is billed/rebilled to a project or customer. | -| `ProjectRef` | [*TrackingProjectReference](../../models/shared/trackingprojectreference.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/trackingcategories.md b/sync-for-payables/docs/models/shared/trackingcategories.md deleted file mode 100755 index 4a08a31b7..000000000 --- a/sync-for-payables/docs/models/shared/trackingcategories.md +++ /dev/null @@ -1,12 +0,0 @@ -# TrackingCategories - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `Links` | [Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | -| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | -| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | -| `Results` | [][TrackingCategory](../../models/shared/trackingcategory.md) | :heavy_minus_sign: | N/A | -| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/trackingcategorytree.md b/sync-for-payables/docs/models/shared/trackingcategorytree.md deleted file mode 100755 index f752dc2d4..000000000 --- a/sync-for-payables/docs/models/shared/trackingcategorytree.md +++ /dev/null @@ -1,18 +0,0 @@ -# TrackingCategoryTree - -The full structure of a specific tracking category including any child or subcategories. - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `HasChildren` | **bool* | :heavy_minus_sign: | Boolean value indicating whether this category has SubCategories | | -| `ID` | **string* | :heavy_minus_sign: | The identifier for the item, unique per tracking category | | -| `Metadata` | [*Metadata](../../models/shared/metadata.md) | :heavy_minus_sign: | N/A | | -| `ModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | -| `Name` | **string* | :heavy_minus_sign: | The name of the tracking category | | -| `ParentID` | **string* | :heavy_minus_sign: | The identifier for this item's immediate parent | | -| `SourceModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | -| `Status` | [*Status](../../models/shared/status.md) | :heavy_minus_sign: | Current state of the tracking category. | | -| `SubCategories` | [][TrackingCategoryTree](../../models/shared/trackingcategorytree.md) | :heavy_minus_sign: | A collection of subcategories that are nested beneath this category. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/validation.md b/sync-for-payables/docs/models/shared/validation.md deleted file mode 100755 index ff0976b5f..000000000 --- a/sync-for-payables/docs/models/shared/validation.md +++ /dev/null @@ -1,11 +0,0 @@ -# Validation - -A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `Errors` | [][ValidationItem](../../models/shared/validationitem.md) | :heavy_minus_sign: | N/A | -| `Warnings` | [][ValidationItem](../../models/shared/validationitem.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/weblinktype.md b/sync-for-payables/docs/models/shared/weblinktype.md deleted file mode 100755 index 648e2cf72..000000000 --- a/sync-for-payables/docs/models/shared/weblinktype.md +++ /dev/null @@ -1,12 +0,0 @@ -# WebLinkType - -The type of the weblink. - - -## Values - -| Name | Value | -| -------------------- | -------------------- | -| `WebLinkTypeWebsite` | Website | -| `WebLinkTypeSocial` | Social | -| `WebLinkTypeUnknown` | Unknown | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/operations/createaccountrequest.md b/sync-for-payables/docs/pkg/models/operations/createaccountrequest.md new file mode 100644 index 000000000..d5ca7f521 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/createaccountrequest.md @@ -0,0 +1,11 @@ +# CreateAccountRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `AccountPrototype` | [*shared.AccountPrototype](../../../pkg/models/shared/accountprototype.md) | :heavy_minus_sign: | N/A | | +| `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `ConnectionID` | *string* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | +| `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/operations/createaccountresponse.md b/sync-for-payables/docs/pkg/models/operations/createaccountresponse.md new file mode 100644 index 000000000..cb400d5a1 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/createaccountresponse.md @@ -0,0 +1,11 @@ +# CreateAccountResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `CreateAccountResponse` | [*shared.CreateAccountResponse](../../../pkg/models/shared/createaccountresponse.md) | :heavy_minus_sign: | Success | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/operations/createbillcreditnoterequest.md b/sync-for-payables/docs/pkg/models/operations/createbillcreditnoterequest.md new file mode 100644 index 000000000..2162d202c --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/createbillcreditnoterequest.md @@ -0,0 +1,11 @@ +# CreateBillCreditNoteRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `BillCreditNote` | [*shared.BillCreditNote](../../../pkg/models/shared/billcreditnote.md) | :heavy_minus_sign: | N/A | | +| `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `ConnectionID` | *string* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | +| `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/operations/createbillcreditnoteresponse.md b/sync-for-payables/docs/pkg/models/operations/createbillcreditnoteresponse.md new file mode 100644 index 000000000..b9738224b --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/createbillcreditnoteresponse.md @@ -0,0 +1,11 @@ +# CreateBillCreditNoteResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `CreateBillCreditNoteResponse` | [*shared.CreateBillCreditNoteResponse](../../../pkg/models/shared/createbillcreditnoteresponse.md) | :heavy_minus_sign: | Success | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/createbillpaymentrequest.md b/sync-for-payables/docs/pkg/models/operations/createbillpaymentrequest.md old mode 100755 new mode 100644 similarity index 94% rename from sync-for-payables/docs/models/operations/createbillpaymentrequest.md rename to sync-for-payables/docs/pkg/models/operations/createbillpaymentrequest.md index c6dec42d3..840c11f78 --- a/sync-for-payables/docs/models/operations/createbillpaymentrequest.md +++ b/sync-for-payables/docs/pkg/models/operations/createbillpaymentrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `BillPayment` | [*shared.BillPayment](../../models/shared/billpayment.md) | :heavy_minus_sign: | N/A | | +| `BillPayment` | [*shared.BillPayment](../../../pkg/models/shared/billpayment.md) | :heavy_minus_sign: | N/A | | | `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `ConnectionID` | *string* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | | `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/operations/createbillpaymentresponse.md b/sync-for-payables/docs/pkg/models/operations/createbillpaymentresponse.md new file mode 100644 index 000000000..905f0b0bf --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/createbillpaymentresponse.md @@ -0,0 +1,11 @@ +# CreateBillPaymentResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `CreateBillPaymentResponse` | [*shared.CreateBillPaymentResponse](../../../pkg/models/shared/createbillpaymentresponse.md) | :heavy_minus_sign: | Success | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/createbillrequest.md b/sync-for-payables/docs/pkg/models/operations/createbillrequest.md old mode 100755 new mode 100644 similarity index 97% rename from sync-for-payables/docs/models/operations/createbillrequest.md rename to sync-for-payables/docs/pkg/models/operations/createbillrequest.md index 4fe4dd897..1a55f002a --- a/sync-for-payables/docs/models/operations/createbillrequest.md +++ b/sync-for-payables/docs/pkg/models/operations/createbillrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `Bill` | [*shared.Bill](../../models/shared/bill.md) | :heavy_minus_sign: | N/A | | +| `Bill` | [*shared.Bill](../../../pkg/models/shared/bill.md) | :heavy_minus_sign: | N/A | | | `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `ConnectionID` | *string* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | | `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/operations/createbillresponse.md b/sync-for-payables/docs/pkg/models/operations/createbillresponse.md new file mode 100644 index 000000000..226b18f79 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/createbillresponse.md @@ -0,0 +1,11 @@ +# CreateBillResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `CreateBillResponse` | [*shared.CreateBillResponse](../../../pkg/models/shared/createbillresponse.md) | :heavy_minus_sign: | Success | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/operations/createcompanyresponse.md b/sync-for-payables/docs/pkg/models/operations/createcompanyresponse.md new file mode 100644 index 000000000..6f1a70f7b --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/createcompanyresponse.md @@ -0,0 +1,11 @@ +# CreateCompanyResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `Company` | [*shared.Company](../../../pkg/models/shared/company.md) | :heavy_minus_sign: | OK | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/operations/createconnectionrequest.md b/sync-for-payables/docs/pkg/models/operations/createconnectionrequest.md new file mode 100644 index 000000000..eefdd0639 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/createconnectionrequest.md @@ -0,0 +1,9 @@ +# CreateConnectionRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `RequestBody` | [*operations.CreateConnectionRequestBody](../../../pkg/models/operations/createconnectionrequestbody.md) | :heavy_minus_sign: | N/A | | +| `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/createconnectionrequestbody.md b/sync-for-payables/docs/pkg/models/operations/createconnectionrequestbody.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/createconnectionrequestbody.md rename to sync-for-payables/docs/pkg/models/operations/createconnectionrequestbody.md diff --git a/sync-for-payables/docs/pkg/models/operations/createconnectionresponse.md b/sync-for-payables/docs/pkg/models/operations/createconnectionresponse.md new file mode 100644 index 000000000..46bca63f5 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/createconnectionresponse.md @@ -0,0 +1,11 @@ +# CreateConnectionResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `Connection` | [*shared.Connection](../../../pkg/models/shared/connection.md) | :heavy_minus_sign: | OK | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/createjournalentryrequest.md b/sync-for-payables/docs/pkg/models/operations/createjournalentryrequest.md old mode 100755 new mode 100644 similarity index 94% rename from sync-for-payables/docs/models/operations/createjournalentryrequest.md rename to sync-for-payables/docs/pkg/models/operations/createjournalentryrequest.md index 2287b23e8..87607774b --- a/sync-for-payables/docs/models/operations/createjournalentryrequest.md +++ b/sync-for-payables/docs/pkg/models/operations/createjournalentryrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `JournalEntry` | [*shared.JournalEntry](../../models/shared/journalentry.md) | :heavy_minus_sign: | N/A | | +| `JournalEntry` | [*shared.JournalEntry](../../../pkg/models/shared/journalentry.md) | :heavy_minus_sign: | N/A | | | `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `ConnectionID` | *string* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | | `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/operations/createjournalentryresponse.md b/sync-for-payables/docs/pkg/models/operations/createjournalentryresponse.md new file mode 100644 index 000000000..cc07e7e31 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/createjournalentryresponse.md @@ -0,0 +1,11 @@ +# CreateJournalEntryResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `CreateJournalEntryResponse` | [*shared.CreateJournalEntryResponse](../../../pkg/models/shared/createjournalentryresponse.md) | :heavy_minus_sign: | Success | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/operations/createjournalrequest.md b/sync-for-payables/docs/pkg/models/operations/createjournalrequest.md new file mode 100644 index 000000000..66d958854 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/createjournalrequest.md @@ -0,0 +1,11 @@ +# CreateJournalRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `ConnectionID` | *string* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | +| `JournalPrototype` | [*shared.JournalPrototype](../../../pkg/models/shared/journalprototype.md) | :heavy_minus_sign: | N/A | | +| `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/operations/createjournalresponse.md b/sync-for-payables/docs/pkg/models/operations/createjournalresponse.md new file mode 100644 index 000000000..b88c690a5 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/createjournalresponse.md @@ -0,0 +1,11 @@ +# CreateJournalResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `CreateJournalResponse` | [*shared.CreateJournalResponse](../../../pkg/models/shared/createjournalresponse.md) | :heavy_minus_sign: | Success | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/createsupplierrequest.md b/sync-for-payables/docs/pkg/models/operations/createsupplierrequest.md old mode 100755 new mode 100644 similarity index 94% rename from sync-for-payables/docs/models/operations/createsupplierrequest.md rename to sync-for-payables/docs/pkg/models/operations/createsupplierrequest.md index 360d06790..1c444ea63 --- a/sync-for-payables/docs/models/operations/createsupplierrequest.md +++ b/sync-for-payables/docs/pkg/models/operations/createsupplierrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `Supplier` | [*shared.Supplier](../../models/shared/supplier.md) | :heavy_minus_sign: | N/A | | +| `Supplier` | [*shared.Supplier](../../../pkg/models/shared/supplier.md) | :heavy_minus_sign: | N/A | | | `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `ConnectionID` | *string* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | | `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/operations/createsupplierresponse.md b/sync-for-payables/docs/pkg/models/operations/createsupplierresponse.md new file mode 100644 index 000000000..73367dfde --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/createsupplierresponse.md @@ -0,0 +1,11 @@ +# CreateSupplierResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `CreateSupplierResponse` | [*shared.CreateSupplierResponse](../../../pkg/models/shared/createsupplierresponse.md) | :heavy_minus_sign: | Success | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/deletebillattachmentrequest.md b/sync-for-payables/docs/pkg/models/operations/deletebillattachmentrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/deletebillattachmentrequest.md rename to sync-for-payables/docs/pkg/models/operations/deletebillattachmentrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/deletebillattachmentresponse.md b/sync-for-payables/docs/pkg/models/operations/deletebillattachmentresponse.md new file mode 100644 index 000000000..17d077124 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/deletebillattachmentresponse.md @@ -0,0 +1,11 @@ +# DeleteBillAttachmentResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `PushOperation` | [*shared.PushOperation](../../../pkg/models/shared/pushoperation.md) | :heavy_minus_sign: | OK | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/deletebillpaymentrequest.md b/sync-for-payables/docs/pkg/models/operations/deletebillpaymentrequest.md old mode 100755 new mode 100644 similarity index 79% rename from sync-for-payables/docs/models/operations/deletebillpaymentrequest.md rename to sync-for-payables/docs/pkg/models/operations/deletebillpaymentrequest.md index d02fcf0e6..1d27b00fa --- a/sync-for-payables/docs/models/operations/deletebillpaymentrequest.md +++ b/sync-for-payables/docs/pkg/models/operations/deletebillpaymentrequest.md @@ -6,4 +6,5 @@ | Field | Type | Required | Description | Example | | ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | | `BillPaymentID` | *string* | :heavy_check_mark: | Unique identifier for a bill payment. | | -| `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | \ No newline at end of file +| `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `ConnectionID` | *string* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/operations/deletebillpaymentresponse.md b/sync-for-payables/docs/pkg/models/operations/deletebillpaymentresponse.md new file mode 100644 index 000000000..2f3122e19 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/deletebillpaymentresponse.md @@ -0,0 +1,11 @@ +# DeleteBillPaymentResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `PushOperation` | [*shared.PushOperation](../../../pkg/models/shared/pushoperation.md) | :heavy_minus_sign: | OK | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/deletebillrequest.md b/sync-for-payables/docs/pkg/models/operations/deletebillrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/deletebillrequest.md rename to sync-for-payables/docs/pkg/models/operations/deletebillrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/deletebillresponse.md b/sync-for-payables/docs/pkg/models/operations/deletebillresponse.md new file mode 100644 index 000000000..ae84bada5 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/deletebillresponse.md @@ -0,0 +1,11 @@ +# DeleteBillResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `PushOperation` | [*shared.PushOperation](../../../pkg/models/shared/pushoperation.md) | :heavy_minus_sign: | OK | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/deletecompanyrequest.md b/sync-for-payables/docs/pkg/models/operations/deletecompanyrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/deletecompanyrequest.md rename to sync-for-payables/docs/pkg/models/operations/deletecompanyrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/deletecompanyresponse.md b/sync-for-payables/docs/pkg/models/operations/deletecompanyresponse.md new file mode 100644 index 000000000..f9ff2ebd5 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/deletecompanyresponse.md @@ -0,0 +1,10 @@ +# DeleteCompanyResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/deleteconnectionrequest.md b/sync-for-payables/docs/pkg/models/operations/deleteconnectionrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/deleteconnectionrequest.md rename to sync-for-payables/docs/pkg/models/operations/deleteconnectionrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/deleteconnectionresponse.md b/sync-for-payables/docs/pkg/models/operations/deleteconnectionresponse.md new file mode 100644 index 000000000..512dad73c --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/deleteconnectionresponse.md @@ -0,0 +1,10 @@ +# DeleteConnectionResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/downloadbillattachmentrequest.md b/sync-for-payables/docs/pkg/models/operations/downloadbillattachmentrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/downloadbillattachmentrequest.md rename to sync-for-payables/docs/pkg/models/operations/downloadbillattachmentrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/downloadbillattachmentresponse.md b/sync-for-payables/docs/pkg/models/operations/downloadbillattachmentresponse.md new file mode 100644 index 000000000..9d98374f3 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/downloadbillattachmentresponse.md @@ -0,0 +1,11 @@ +# DownloadBillAttachmentResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `Data` | *io.ReadCloser* | :heavy_minus_sign: | Success | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getaccountingprofilerequest.md b/sync-for-payables/docs/pkg/models/operations/getaccountingprofilerequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/getaccountingprofilerequest.md rename to sync-for-payables/docs/pkg/models/operations/getaccountingprofilerequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/getaccountingprofileresponse.md b/sync-for-payables/docs/pkg/models/operations/getaccountingprofileresponse.md new file mode 100644 index 000000000..fdfd80ead --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/getaccountingprofileresponse.md @@ -0,0 +1,11 @@ +# GetAccountingProfileResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `CompanyInfo` | [*shared.CompanyInfo](../../../pkg/models/shared/companyinfo.md) | :heavy_minus_sign: | Success | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getaccountrequest.md b/sync-for-payables/docs/pkg/models/operations/getaccountrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/getaccountrequest.md rename to sync-for-payables/docs/pkg/models/operations/getaccountrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/getaccountresponse.md b/sync-for-payables/docs/pkg/models/operations/getaccountresponse.md new file mode 100644 index 000000000..a4ac020de --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/getaccountresponse.md @@ -0,0 +1,11 @@ +# GetAccountResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `Account` | [*shared.Account](../../../pkg/models/shared/account.md) | :heavy_minus_sign: | Success | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getbillattachmentrequest.md b/sync-for-payables/docs/pkg/models/operations/getbillattachmentrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/getbillattachmentrequest.md rename to sync-for-payables/docs/pkg/models/operations/getbillattachmentrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/getbillattachmentresponse.md b/sync-for-payables/docs/pkg/models/operations/getbillattachmentresponse.md new file mode 100644 index 000000000..937b6b0d6 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/getbillattachmentresponse.md @@ -0,0 +1,11 @@ +# GetBillAttachmentResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `Attachment` | [*shared.Attachment](../../../pkg/models/shared/attachment.md) | :heavy_minus_sign: | Success | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getbillcreditnoterequest.md b/sync-for-payables/docs/pkg/models/operations/getbillcreditnoterequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/getbillcreditnoterequest.md rename to sync-for-payables/docs/pkg/models/operations/getbillcreditnoterequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/getbillcreditnoteresponse.md b/sync-for-payables/docs/pkg/models/operations/getbillcreditnoteresponse.md new file mode 100644 index 000000000..3b2677882 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/getbillcreditnoteresponse.md @@ -0,0 +1,11 @@ +# GetBillCreditNoteResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `BillCreditNote` | [*shared.BillCreditNote](../../../pkg/models/shared/billcreditnote.md) | :heavy_minus_sign: | Success | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getbillpaymentsrequest.md b/sync-for-payables/docs/pkg/models/operations/getbillpaymentsrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/getbillpaymentsrequest.md rename to sync-for-payables/docs/pkg/models/operations/getbillpaymentsrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/getbillpaymentsresponse.md b/sync-for-payables/docs/pkg/models/operations/getbillpaymentsresponse.md new file mode 100644 index 000000000..7d6e36a9d --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/getbillpaymentsresponse.md @@ -0,0 +1,11 @@ +# GetBillPaymentsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `BillPayment` | [*shared.BillPayment](../../../pkg/models/shared/billpayment.md) | :heavy_minus_sign: | Success | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getbillrequest.md b/sync-for-payables/docs/pkg/models/operations/getbillrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/getbillrequest.md rename to sync-for-payables/docs/pkg/models/operations/getbillrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/getbillresponse.md b/sync-for-payables/docs/pkg/models/operations/getbillresponse.md new file mode 100644 index 000000000..0e6da5a4f --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/getbillresponse.md @@ -0,0 +1,11 @@ +# GetBillResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `Bill` | [*shared.Bill](../../../pkg/models/shared/bill.md) | :heavy_minus_sign: | Success | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getcompanyrequest.md b/sync-for-payables/docs/pkg/models/operations/getcompanyrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/getcompanyrequest.md rename to sync-for-payables/docs/pkg/models/operations/getcompanyrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/getcompanyresponse.md b/sync-for-payables/docs/pkg/models/operations/getcompanyresponse.md new file mode 100644 index 000000000..b655813a0 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/getcompanyresponse.md @@ -0,0 +1,11 @@ +# GetCompanyResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `Company` | [*shared.Company](../../../pkg/models/shared/company.md) | :heavy_minus_sign: | OK | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getconnectionrequest.md b/sync-for-payables/docs/pkg/models/operations/getconnectionrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/getconnectionrequest.md rename to sync-for-payables/docs/pkg/models/operations/getconnectionrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/getconnectionresponse.md b/sync-for-payables/docs/pkg/models/operations/getconnectionresponse.md new file mode 100644 index 000000000..1e5295f59 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/getconnectionresponse.md @@ -0,0 +1,11 @@ +# GetConnectionResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `Connection` | [*shared.Connection](../../../pkg/models/shared/connection.md) | :heavy_minus_sign: | OK | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getcreateaccountmodelrequest.md b/sync-for-payables/docs/pkg/models/operations/getcreateaccountmodelrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/getcreateaccountmodelrequest.md rename to sync-for-payables/docs/pkg/models/operations/getcreateaccountmodelrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/getcreateaccountmodelresponse.md b/sync-for-payables/docs/pkg/models/operations/getcreateaccountmodelresponse.md new file mode 100644 index 000000000..722e26999 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/getcreateaccountmodelresponse.md @@ -0,0 +1,11 @@ +# GetCreateAccountModelResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `PushOption` | [*shared.PushOption](../../../pkg/models/shared/pushoption.md) | :heavy_minus_sign: | OK | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getcreatebillpaymentmodelrequest.md b/sync-for-payables/docs/pkg/models/operations/getcreatebillpaymentmodelrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/getcreatebillpaymentmodelrequest.md rename to sync-for-payables/docs/pkg/models/operations/getcreatebillpaymentmodelrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/getcreatebillpaymentmodelresponse.md b/sync-for-payables/docs/pkg/models/operations/getcreatebillpaymentmodelresponse.md new file mode 100644 index 000000000..6de139397 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/getcreatebillpaymentmodelresponse.md @@ -0,0 +1,11 @@ +# GetCreateBillPaymentModelResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `PushOption` | [*shared.PushOption](../../../pkg/models/shared/pushoption.md) | :heavy_minus_sign: | OK | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getcreatejournalentrymodelrequest.md b/sync-for-payables/docs/pkg/models/operations/getcreatejournalentrymodelrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/getcreatejournalentrymodelrequest.md rename to sync-for-payables/docs/pkg/models/operations/getcreatejournalentrymodelrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/getcreatejournalentrymodelresponse.md b/sync-for-payables/docs/pkg/models/operations/getcreatejournalentrymodelresponse.md new file mode 100644 index 000000000..1d321de21 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/getcreatejournalentrymodelresponse.md @@ -0,0 +1,11 @@ +# GetCreateJournalEntryModelResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `PushOption` | [*shared.PushOption](../../../pkg/models/shared/pushoption.md) | :heavy_minus_sign: | OK | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getcreatejournalmodelrequest.md b/sync-for-payables/docs/pkg/models/operations/getcreatejournalmodelrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/getcreatejournalmodelrequest.md rename to sync-for-payables/docs/pkg/models/operations/getcreatejournalmodelrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/getcreatejournalmodelresponse.md b/sync-for-payables/docs/pkg/models/operations/getcreatejournalmodelresponse.md new file mode 100644 index 000000000..8549fffed --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/getcreatejournalmodelresponse.md @@ -0,0 +1,11 @@ +# GetCreateJournalModelResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `PushOption` | [*shared.PushOption](../../../pkg/models/shared/pushoption.md) | :heavy_minus_sign: | OK | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getcreateupdatebillcreditnotemodelrequest.md b/sync-for-payables/docs/pkg/models/operations/getcreateupdatebillcreditnotemodelrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/getcreateupdatebillcreditnotemodelrequest.md rename to sync-for-payables/docs/pkg/models/operations/getcreateupdatebillcreditnotemodelrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/getcreateupdatebillcreditnotemodelresponse.md b/sync-for-payables/docs/pkg/models/operations/getcreateupdatebillcreditnotemodelresponse.md new file mode 100644 index 000000000..c0ec4db35 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/getcreateupdatebillcreditnotemodelresponse.md @@ -0,0 +1,11 @@ +# GetCreateUpdateBillCreditNoteModelResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `PushOption` | [*shared.PushOption](../../../pkg/models/shared/pushoption.md) | :heavy_minus_sign: | OK | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getcreateupdatebillmodelrequest.md b/sync-for-payables/docs/pkg/models/operations/getcreateupdatebillmodelrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/getcreateupdatebillmodelrequest.md rename to sync-for-payables/docs/pkg/models/operations/getcreateupdatebillmodelrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/getcreateupdatebillmodelresponse.md b/sync-for-payables/docs/pkg/models/operations/getcreateupdatebillmodelresponse.md new file mode 100644 index 000000000..c874dbf04 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/getcreateupdatebillmodelresponse.md @@ -0,0 +1,11 @@ +# GetCreateUpdateBillModelResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `PushOption` | [*shared.PushOption](../../../pkg/models/shared/pushoption.md) | :heavy_minus_sign: | OK | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getcreateupdatesuppliermodelrequest.md b/sync-for-payables/docs/pkg/models/operations/getcreateupdatesuppliermodelrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/getcreateupdatesuppliermodelrequest.md rename to sync-for-payables/docs/pkg/models/operations/getcreateupdatesuppliermodelrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/getcreateupdatesuppliermodelresponse.md b/sync-for-payables/docs/pkg/models/operations/getcreateupdatesuppliermodelresponse.md new file mode 100644 index 000000000..1cf536fdd --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/getcreateupdatesuppliermodelresponse.md @@ -0,0 +1,11 @@ +# GetCreateUpdateSupplierModelResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `PushOption` | [*shared.PushOption](../../../pkg/models/shared/pushoption.md) | :heavy_minus_sign: | OK | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getdatastatusrequest.md b/sync-for-payables/docs/pkg/models/operations/getdatastatusrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/getdatastatusrequest.md rename to sync-for-payables/docs/pkg/models/operations/getdatastatusrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/getdatastatusresponse.md b/sync-for-payables/docs/pkg/models/operations/getdatastatusresponse.md new file mode 100644 index 000000000..28fc68ffa --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/getdatastatusresponse.md @@ -0,0 +1,11 @@ +# GetDataStatusResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `DataStatuses` | map[string][shared.DataStatus](../../../pkg/models/shared/datastatus.md) | :heavy_minus_sign: | OK | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getjournalrequest.md b/sync-for-payables/docs/pkg/models/operations/getjournalrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/getjournalrequest.md rename to sync-for-payables/docs/pkg/models/operations/getjournalrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/getjournalresponse.md b/sync-for-payables/docs/pkg/models/operations/getjournalresponse.md new file mode 100644 index 000000000..48349614f --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/getjournalresponse.md @@ -0,0 +1,11 @@ +# GetJournalResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `Journal` | [*shared.Journal](../../../pkg/models/shared/journal.md) | :heavy_minus_sign: | Success | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getpaymentmethodrequest.md b/sync-for-payables/docs/pkg/models/operations/getpaymentmethodrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/getpaymentmethodrequest.md rename to sync-for-payables/docs/pkg/models/operations/getpaymentmethodrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/getpaymentmethodresponse.md b/sync-for-payables/docs/pkg/models/operations/getpaymentmethodresponse.md new file mode 100644 index 000000000..8ce599da9 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/getpaymentmethodresponse.md @@ -0,0 +1,11 @@ +# GetPaymentMethodResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `PaymentMethod` | [*shared.PaymentMethod](../../../pkg/models/shared/paymentmethod.md) | :heavy_minus_sign: | Success | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getpulloperationrequest.md b/sync-for-payables/docs/pkg/models/operations/getpulloperationrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/getpulloperationrequest.md rename to sync-for-payables/docs/pkg/models/operations/getpulloperationrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/getpulloperationresponse.md b/sync-for-payables/docs/pkg/models/operations/getpulloperationresponse.md new file mode 100644 index 000000000..64bb0ca5e --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/getpulloperationresponse.md @@ -0,0 +1,11 @@ +# GetPullOperationResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `PullOperation` | [*shared.PullOperation](../../../pkg/models/shared/pulloperation.md) | :heavy_minus_sign: | OK | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getpushoperationrequest.md b/sync-for-payables/docs/pkg/models/operations/getpushoperationrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/getpushoperationrequest.md rename to sync-for-payables/docs/pkg/models/operations/getpushoperationrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/getpushoperationresponse.md b/sync-for-payables/docs/pkg/models/operations/getpushoperationresponse.md new file mode 100644 index 000000000..45e8b594c --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/getpushoperationresponse.md @@ -0,0 +1,11 @@ +# GetPushOperationResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `PushOperation` | [*shared.PushOperation](../../../pkg/models/shared/pushoperation.md) | :heavy_minus_sign: | OK | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/getsupplierrequest.md b/sync-for-payables/docs/pkg/models/operations/getsupplierrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/getsupplierrequest.md rename to sync-for-payables/docs/pkg/models/operations/getsupplierrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/getsupplierresponse.md b/sync-for-payables/docs/pkg/models/operations/getsupplierresponse.md new file mode 100644 index 000000000..efd874027 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/getsupplierresponse.md @@ -0,0 +1,11 @@ +# GetSupplierResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `Supplier` | [*shared.Supplier](../../../pkg/models/shared/supplier.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/gettaxraterequest.md b/sync-for-payables/docs/pkg/models/operations/gettaxraterequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/gettaxraterequest.md rename to sync-for-payables/docs/pkg/models/operations/gettaxraterequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/gettaxrateresponse.md b/sync-for-payables/docs/pkg/models/operations/gettaxrateresponse.md new file mode 100644 index 000000000..d829b9956 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/gettaxrateresponse.md @@ -0,0 +1,11 @@ +# GetTaxRateResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `TaxRate` | [*shared.TaxRate](../../../pkg/models/shared/taxrate.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/gettrackingcategoryrequest.md b/sync-for-payables/docs/pkg/models/operations/gettrackingcategoryrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/gettrackingcategoryrequest.md rename to sync-for-payables/docs/pkg/models/operations/gettrackingcategoryrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/gettrackingcategoryresponse.md b/sync-for-payables/docs/pkg/models/operations/gettrackingcategoryresponse.md new file mode 100644 index 000000000..79c49b1c3 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/gettrackingcategoryresponse.md @@ -0,0 +1,11 @@ +# GetTrackingCategoryResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `TrackingCategoryTree` | [*shared.TrackingCategoryTree](../../../pkg/models/shared/trackingcategorytree.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listaccountsrequest.md b/sync-for-payables/docs/pkg/models/operations/listaccountsrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/listaccountsrequest.md rename to sync-for-payables/docs/pkg/models/operations/listaccountsrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/listaccountsresponse.md b/sync-for-payables/docs/pkg/models/operations/listaccountsresponse.md new file mode 100644 index 000000000..b9bf15355 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/listaccountsresponse.md @@ -0,0 +1,11 @@ +# ListAccountsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `Accounts` | [*shared.Accounts](../../../pkg/models/shared/accounts.md) | :heavy_minus_sign: | Success | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listbillattachmentsrequest.md b/sync-for-payables/docs/pkg/models/operations/listbillattachmentsrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/listbillattachmentsrequest.md rename to sync-for-payables/docs/pkg/models/operations/listbillattachmentsrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/listbillattachmentsresponse.md b/sync-for-payables/docs/pkg/models/operations/listbillattachmentsresponse.md new file mode 100644 index 000000000..d3c677305 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/listbillattachmentsresponse.md @@ -0,0 +1,11 @@ +# ListBillAttachmentsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `Attachments` | [*shared.Attachments](../../../pkg/models/shared/attachments.md) | :heavy_minus_sign: | Success | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listbillcreditnotesrequest.md b/sync-for-payables/docs/pkg/models/operations/listbillcreditnotesrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/listbillcreditnotesrequest.md rename to sync-for-payables/docs/pkg/models/operations/listbillcreditnotesrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/listbillcreditnotesresponse.md b/sync-for-payables/docs/pkg/models/operations/listbillcreditnotesresponse.md new file mode 100644 index 000000000..534f1e530 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/listbillcreditnotesresponse.md @@ -0,0 +1,11 @@ +# ListBillCreditNotesResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `BillCreditNotes` | [*shared.BillCreditNotes](../../../pkg/models/shared/billcreditnotes.md) | :heavy_minus_sign: | Success | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listbillpaymentsrequest.md b/sync-for-payables/docs/pkg/models/operations/listbillpaymentsrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/listbillpaymentsrequest.md rename to sync-for-payables/docs/pkg/models/operations/listbillpaymentsrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/listbillpaymentsresponse.md b/sync-for-payables/docs/pkg/models/operations/listbillpaymentsresponse.md new file mode 100644 index 000000000..05c89ea4b --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/listbillpaymentsresponse.md @@ -0,0 +1,11 @@ +# ListBillPaymentsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `BillPayments` | [*shared.BillPayments](../../../pkg/models/shared/billpayments.md) | :heavy_minus_sign: | Success | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listbillsrequest.md b/sync-for-payables/docs/pkg/models/operations/listbillsrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/listbillsrequest.md rename to sync-for-payables/docs/pkg/models/operations/listbillsrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/listbillsresponse.md b/sync-for-payables/docs/pkg/models/operations/listbillsresponse.md new file mode 100644 index 000000000..9a46438c3 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/listbillsresponse.md @@ -0,0 +1,11 @@ +# ListBillsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `Bills` | [*shared.Bills](../../../pkg/models/shared/bills.md) | :heavy_minus_sign: | Success | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listcompaniesrequest.md b/sync-for-payables/docs/pkg/models/operations/listcompaniesrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/listcompaniesrequest.md rename to sync-for-payables/docs/pkg/models/operations/listcompaniesrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/listcompaniesresponse.md b/sync-for-payables/docs/pkg/models/operations/listcompaniesresponse.md new file mode 100644 index 000000000..685f4389a --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/listcompaniesresponse.md @@ -0,0 +1,11 @@ +# ListCompaniesResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| `Companies` | [*shared.Companies](../../../pkg/models/shared/companies.md) | :heavy_minus_sign: | OK | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listconnectionsrequest.md b/sync-for-payables/docs/pkg/models/operations/listconnectionsrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/listconnectionsrequest.md rename to sync-for-payables/docs/pkg/models/operations/listconnectionsrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/listconnectionsresponse.md b/sync-for-payables/docs/pkg/models/operations/listconnectionsresponse.md new file mode 100644 index 000000000..41d7e3e7c --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/listconnectionsresponse.md @@ -0,0 +1,11 @@ +# ListConnectionsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `Connections` | [*shared.Connections](../../../pkg/models/shared/connections.md) | :heavy_minus_sign: | OK | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listjournalsrequest.md b/sync-for-payables/docs/pkg/models/operations/listjournalsrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/listjournalsrequest.md rename to sync-for-payables/docs/pkg/models/operations/listjournalsrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/listjournalsresponse.md b/sync-for-payables/docs/pkg/models/operations/listjournalsresponse.md new file mode 100644 index 000000000..0a357aa56 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/listjournalsresponse.md @@ -0,0 +1,11 @@ +# ListJournalsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `Journals` | [*shared.Journals](../../../pkg/models/shared/journals.md) | :heavy_minus_sign: | Success | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listpaymentmethodsrequest.md b/sync-for-payables/docs/pkg/models/operations/listpaymentmethodsrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/listpaymentmethodsrequest.md rename to sync-for-payables/docs/pkg/models/operations/listpaymentmethodsrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/listpaymentmethodsresponse.md b/sync-for-payables/docs/pkg/models/operations/listpaymentmethodsresponse.md new file mode 100644 index 000000000..1a5cf727e --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/listpaymentmethodsresponse.md @@ -0,0 +1,11 @@ +# ListPaymentMethodsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `PaymentMethods` | [*shared.PaymentMethods](../../../pkg/models/shared/paymentmethods.md) | :heavy_minus_sign: | Success | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listpulloperationsrequest.md b/sync-for-payables/docs/pkg/models/operations/listpulloperationsrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/listpulloperationsrequest.md rename to sync-for-payables/docs/pkg/models/operations/listpulloperationsrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/listpulloperationsresponse.md b/sync-for-payables/docs/pkg/models/operations/listpulloperationsresponse.md new file mode 100644 index 000000000..0ccf5c1b9 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/listpulloperationsresponse.md @@ -0,0 +1,11 @@ +# ListPullOperationsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `PullOperations` | [*shared.PullOperations](../../../pkg/models/shared/pulloperations.md) | :heavy_minus_sign: | OK | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listpushoperationsrequest.md b/sync-for-payables/docs/pkg/models/operations/listpushoperationsrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/listpushoperationsrequest.md rename to sync-for-payables/docs/pkg/models/operations/listpushoperationsrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/listpushoperationsresponse.md b/sync-for-payables/docs/pkg/models/operations/listpushoperationsresponse.md new file mode 100644 index 000000000..0abcf8934 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/listpushoperationsresponse.md @@ -0,0 +1,11 @@ +# ListPushOperationsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `PushOperations` | [*shared.PushOperations](../../../pkg/models/shared/pushoperations.md) | :heavy_minus_sign: | OK | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listsuppliersrequest.md b/sync-for-payables/docs/pkg/models/operations/listsuppliersrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/listsuppliersrequest.md rename to sync-for-payables/docs/pkg/models/operations/listsuppliersrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/listsuppliersresponse.md b/sync-for-payables/docs/pkg/models/operations/listsuppliersresponse.md new file mode 100644 index 000000000..34150d46e --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/listsuppliersresponse.md @@ -0,0 +1,11 @@ +# ListSuppliersResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `Suppliers` | [*shared.Suppliers](../../../pkg/models/shared/suppliers.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listtaxratesrequest.md b/sync-for-payables/docs/pkg/models/operations/listtaxratesrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/listtaxratesrequest.md rename to sync-for-payables/docs/pkg/models/operations/listtaxratesrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/listtaxratesresponse.md b/sync-for-payables/docs/pkg/models/operations/listtaxratesresponse.md new file mode 100644 index 000000000..4f2c43730 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/listtaxratesresponse.md @@ -0,0 +1,11 @@ +# ListTaxRatesResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `TaxRates` | [*shared.TaxRates](../../../pkg/models/shared/taxrates.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/listtrackingcategoriesrequest.md b/sync-for-payables/docs/pkg/models/operations/listtrackingcategoriesrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/listtrackingcategoriesrequest.md rename to sync-for-payables/docs/pkg/models/operations/listtrackingcategoriesrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/listtrackingcategoriesresponse.md b/sync-for-payables/docs/pkg/models/operations/listtrackingcategoriesresponse.md new file mode 100644 index 000000000..1aa447c4a --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/listtrackingcategoriesresponse.md @@ -0,0 +1,11 @@ +# ListTrackingCategoriesResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `TrackingCategories` | [*shared.TrackingCategories](../../../pkg/models/shared/trackingcategories.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/option.md b/sync-for-payables/docs/pkg/models/operations/option.md old mode 100755 new mode 100644 similarity index 94% rename from sync-for-payables/docs/models/operations/option.md rename to sync-for-payables/docs/pkg/models/operations/option.md index 22fe6517e..9167702bf --- a/sync-for-payables/docs/models/operations/option.md +++ b/sync-for-payables/docs/pkg/models/operations/option.md @@ -1,6 +1,6 @@ -# Options +## Options -## WithServerURL +### WithServerURL WithServerURL allows providing an alternative server URL. @@ -19,7 +19,7 @@ operations.WithTemplatedServerURL("http://{host}:{port}", map[string]string{ }) ``` -## WithRetries +### WithRetries WithRetries allows customizing the default retry configuration. Only usable with methods that mention they support retries. diff --git a/sync-for-payables/docs/models/operations/refreshalldatatypesrequest.md b/sync-for-payables/docs/pkg/models/operations/refreshalldatatypesrequest.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/operations/refreshalldatatypesrequest.md rename to sync-for-payables/docs/pkg/models/operations/refreshalldatatypesrequest.md diff --git a/sync-for-payables/docs/pkg/models/operations/refreshalldatatypesresponse.md b/sync-for-payables/docs/pkg/models/operations/refreshalldatatypesresponse.md new file mode 100644 index 000000000..fb375ba55 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/refreshalldatatypesresponse.md @@ -0,0 +1,10 @@ +# RefreshAllDataTypesResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/refreshdatatyperequest.md b/sync-for-payables/docs/pkg/models/operations/refreshdatatyperequest.md old mode 100755 new mode 100644 similarity index 94% rename from sync-for-payables/docs/models/operations/refreshdatatyperequest.md rename to sync-for-payables/docs/pkg/models/operations/refreshdatatyperequest.md index f2b62ce0e..beaf79aa9 --- a/sync-for-payables/docs/models/operations/refreshdatatyperequest.md +++ b/sync-for-payables/docs/pkg/models/operations/refreshdatatyperequest.md @@ -7,4 +7,4 @@ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | | `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `ConnectionID` | **string* | :heavy_minus_sign: | Optionally, provide a data connection id to only queue pull operations on that connection. | | -| `DataType` | [shared.DataType](../../models/shared/datatype.md) | :heavy_check_mark: | The key of a Codat data type | invoices | \ No newline at end of file +| `DataType` | [shared.SchemaDataType](../../../pkg/models/shared/schemadatatype.md) | :heavy_check_mark: | The key of a Codat data type | invoices | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/operations/refreshdatatyperesponse.md b/sync-for-payables/docs/pkg/models/operations/refreshdatatyperesponse.md new file mode 100644 index 000000000..3c0f7d7b6 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/refreshdatatyperesponse.md @@ -0,0 +1,11 @@ +# RefreshDataTypeResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `PullOperation` | [*shared.PullOperation](../../../pkg/models/shared/pulloperation.md) | :heavy_minus_sign: | OK | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/operations/unlinkconnectionrequest.md b/sync-for-payables/docs/pkg/models/operations/unlinkconnectionrequest.md new file mode 100644 index 000000000..01d8fe1cf --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/unlinkconnectionrequest.md @@ -0,0 +1,10 @@ +# UnlinkConnectionRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `RequestBody` | [*operations.UnlinkConnectionUpdateConnection](../../../pkg/models/operations/unlinkconnectionupdateconnection.md) | :heavy_minus_sign: | N/A | | +| `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `ConnectionID` | *string* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/operations/unlinkconnectionresponse.md b/sync-for-payables/docs/pkg/models/operations/unlinkconnectionresponse.md new file mode 100644 index 000000000..2ff6760d0 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/unlinkconnectionresponse.md @@ -0,0 +1,11 @@ +# UnlinkConnectionResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `Connection` | [*shared.Connection](../../../pkg/models/shared/connection.md) | :heavy_minus_sign: | OK | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/operations/unlinkconnectionupdateconnection.md b/sync-for-payables/docs/pkg/models/operations/unlinkconnectionupdateconnection.md new file mode 100644 index 000000000..462db866a --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/unlinkconnectionupdateconnection.md @@ -0,0 +1,8 @@ +# UnlinkConnectionUpdateConnection + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `Status` | [*shared.DataConnectionStatus](../../../pkg/models/shared/dataconnectionstatus.md) | :heavy_minus_sign: | The current authorization status of the data connection. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/updatebillcreditnoterequest.md b/sync-for-payables/docs/pkg/models/operations/updatebillcreditnoterequest.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/operations/updatebillcreditnoterequest.md rename to sync-for-payables/docs/pkg/models/operations/updatebillcreditnoterequest.md index 05468375b..e1e9dc499 --- a/sync-for-payables/docs/models/operations/updatebillcreditnoterequest.md +++ b/sync-for-payables/docs/pkg/models/operations/updatebillcreditnoterequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `BillCreditNote` | [*shared.BillCreditNote](../../models/shared/billcreditnote.md) | :heavy_minus_sign: | N/A | | +| `BillCreditNote` | [*shared.BillCreditNote](../../../pkg/models/shared/billcreditnote.md) | :heavy_minus_sign: | N/A | | | `BillCreditNoteID` | *string* | :heavy_check_mark: | Unique identifier for a bill credit note. | | | `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `ConnectionID` | *string* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | diff --git a/sync-for-payables/docs/pkg/models/operations/updatebillcreditnoteresponse.md b/sync-for-payables/docs/pkg/models/operations/updatebillcreditnoteresponse.md new file mode 100644 index 000000000..eb1c1d892 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/updatebillcreditnoteresponse.md @@ -0,0 +1,11 @@ +# UpdateBillCreditNoteResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `UpdateBillCreditNoteResponse` | [*shared.UpdateBillCreditNoteResponse](../../../pkg/models/shared/updatebillcreditnoteresponse.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/updatebillrequest.md b/sync-for-payables/docs/pkg/models/operations/updatebillrequest.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/operations/updatebillrequest.md rename to sync-for-payables/docs/pkg/models/operations/updatebillrequest.md index 8200bbf19..53c5aa4a0 --- a/sync-for-payables/docs/models/operations/updatebillrequest.md +++ b/sync-for-payables/docs/pkg/models/operations/updatebillrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Bill` | [*shared.Bill](../../models/shared/bill.md) | :heavy_minus_sign: | N/A | | +| `Bill` | [*shared.Bill](../../../pkg/models/shared/bill.md) | :heavy_minus_sign: | N/A | | | `BillID` | *string* | :heavy_check_mark: | Unique identifier for a bill. | 13d946f0-c5d5-42bc-b092-97ece17923ab | | `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `ConnectionID` | *string* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | diff --git a/sync-for-payables/docs/pkg/models/operations/updatebillresponse.md b/sync-for-payables/docs/pkg/models/operations/updatebillresponse.md new file mode 100644 index 000000000..343132597 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/updatebillresponse.md @@ -0,0 +1,11 @@ +# UpdateBillResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `UpdateBillResponse` | [*shared.UpdateBillResponse](../../../pkg/models/shared/updatebillresponse.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/operations/updatecompanyrequest.md b/sync-for-payables/docs/pkg/models/operations/updatecompanyrequest.md new file mode 100644 index 000000000..4eea38bc2 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/updatecompanyrequest.md @@ -0,0 +1,9 @@ +# UpdateCompanyRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `CompanyRequestBody` | [*shared.CompanyRequestBody](../../../pkg/models/shared/companyrequestbody.md) | :heavy_minus_sign: | N/A | | +| `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/operations/updatecompanyresponse.md b/sync-for-payables/docs/pkg/models/operations/updatecompanyresponse.md new file mode 100644 index 000000000..4b2267d84 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/updatecompanyresponse.md @@ -0,0 +1,11 @@ +# UpdateCompanyResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `Company` | [*shared.Company](../../../pkg/models/shared/company.md) | :heavy_minus_sign: | OK | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/updatesupplierrequest.md b/sync-for-payables/docs/pkg/models/operations/updatesupplierrequest.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/operations/updatesupplierrequest.md rename to sync-for-payables/docs/pkg/models/operations/updatesupplierrequest.md index fe558ac7b..8cd3d59dc --- a/sync-for-payables/docs/models/operations/updatesupplierrequest.md +++ b/sync-for-payables/docs/pkg/models/operations/updatesupplierrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Supplier` | [*shared.Supplier](../../models/shared/supplier.md) | :heavy_minus_sign: | N/A | | +| `Supplier` | [*shared.Supplier](../../../pkg/models/shared/supplier.md) | :heavy_minus_sign: | N/A | | | `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `ConnectionID` | *string* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | | `ForceUpdate` | **bool* | :heavy_minus_sign: | When updating data in the destination platform Codat checks the `sourceModifiedDate` against the `lastupdated` date from the accounting platform, if they're different Codat will return an error suggesting you should initiate another pull of the data. If this is set to `true` then the update will override this check. | | diff --git a/sync-for-payables/docs/pkg/models/operations/updatesupplierresponse.md b/sync-for-payables/docs/pkg/models/operations/updatesupplierresponse.md new file mode 100644 index 000000000..3b8aaa6e0 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/updatesupplierresponse.md @@ -0,0 +1,11 @@ +# UpdateSupplierResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `UpdateSupplierResponse` | [*shared.UpdateSupplierResponse](../../../pkg/models/shared/updatesupplierresponse.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/operations/uploadbillattachmentrequest.md b/sync-for-payables/docs/pkg/models/operations/uploadbillattachmentrequest.md new file mode 100644 index 000000000..ab1bd9a9c --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/uploadbillattachmentrequest.md @@ -0,0 +1,11 @@ +# UploadBillAttachmentRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `AttachmentUpload` | [*shared.AttachmentUpload](../../../pkg/models/shared/attachmentupload.md) | :heavy_minus_sign: | N/A | | +| `BillID` | *string* | :heavy_check_mark: | Unique identifier for a bill. | 13d946f0-c5d5-42bc-b092-97ece17923ab | +| `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `ConnectionID` | *string* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/operations/uploadbillattachmentresponse.md b/sync-for-payables/docs/pkg/models/operations/uploadbillattachmentresponse.md new file mode 100644 index 000000000..59e181f15 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/operations/uploadbillattachmentresponse.md @@ -0,0 +1,10 @@ +# UploadBillAttachmentResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/errormessage.md b/sync-for-payables/docs/pkg/models/sdkerrors/errormessage.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/errormessage.md rename to sync-for-payables/docs/pkg/models/sdkerrors/errormessage.md index a9ae779b4..1b3923da5 --- a/sync-for-payables/docs/models/shared/errormessage.md +++ b/sync-for-payables/docs/pkg/models/sdkerrors/errormessage.md @@ -1,5 +1,7 @@ # ErrorMessage +The request made is not valid. + ## Fields diff --git a/sync-for-payables/docs/models/shared/account.md b/sync-for-payables/docs/pkg/models/shared/account.md old mode 100755 new mode 100644 similarity index 97% rename from sync-for-payables/docs/models/shared/account.md rename to sync-for-payables/docs/pkg/models/shared/account.md index 4e19ead9c..c497a2450 --- a/sync-for-payables/docs/models/shared/account.md +++ b/sync-for-payables/docs/pkg/models/shared/account.md @@ -1,32 +1,32 @@ # Account -> **Language tip:** Accounts are also referred to as **chart of accounts**, **nominal accounts**, and **general ledger**. +> **Language tip:** Accounts are also referred to as **chart of accounts**, **nominal accounts**, and **general ledger**. View the coverage for accounts in the Data coverage explorer. ## Overview -Accounts are the categories a business uses to record accounting transactions. From the Accounts endpoints, you can retrieve a list of all accounts for a specified company. +Accounts are the categories a business uses to record accounting transactions. From the Accounts endpoints, you can retrieve a list of all accounts for a specified company. The categories for an account include: - * Asset - * Expense - * Income - * Liability - * Equity. +* Asset +* Expense +* Income +* Liability +* Equity. -The same account may have a different category based on the integration it is used in. For example, a current account (known as checking in the US) should be categorized as `Asset.Current` for Xero, and `Asset.Bank.Checking` for QuickBooks Online. +The same account may have a different category based on the integration it is used in. For example, a current account (known as checking in the US) should be categorized as `Asset.Current` for Xero, and `Asset.Bank.Checking` for QuickBooks Online. -At the same time, each integration may have its own requirements to the categories. For example, a Paypal account in Xero is of the `Asset.Bank` category and therefore requires additional properties to be provided. +At the same time, each integration may have its own requirements to the categories. For example, a Paypal account in Xero is of the `Asset.Bank` category and therefore requires additional properties to be provided. -To determine the list of allowed categories for a specific integration, you can: +To determine the list of allowed categories for a specific integration, you can: - Follow our [Create, update, delete data](https://docs.codat.io/using-the-api/push) guide and use the [Get create account model](https://docs.codat.io/sync-for-payables-api#/operations/get-create-chartOfAccounts-model). -- Refer to the integration's own documentation. +- Refer to the integration's own documentation. > **Accounts with no category** -> +> > If an account is pulled from the chart of accounts and its nominal code does not lie within the category layout for the company's accounts, then the **type** is `Unknown`. The **fullyQualifiedCategory** and **fullyQualifiedName** fields return `null`. -> +> > This approach gives a true representation of the company's accounts whilst preventing distorting financials such as a company's profit and loss and balance sheet reports. @@ -41,12 +41,12 @@ To determine the list of allowed categories for a specific integration, you can: | `FullyQualifiedName` | **string* | :heavy_minus_sign: | Full name of the account, for example:
- `Cash On Hand`
- `Rents Held In Trust`
- `Fixed Asset` | Cash On Hand | | `ID` | **string* | :heavy_minus_sign: | Identifier for the account, unique for the company. | 1b6266d1-1e44-46c5-8eb5-a8f98e03124e | | `IsBankAccount` | **bool* | :heavy_minus_sign: | Confirms whether the account is a bank account or not. | | -| `Metadata` | [*Metadata](../../models/shared/metadata.md) | :heavy_minus_sign: | N/A | | +| `Metadata` | [*shared.Metadata](../../../pkg/models/shared/metadata.md) | :heavy_minus_sign: | N/A | | | `ModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | | `Name` | **string* | :heavy_minus_sign: | Name of the account. | Accounts Receivable | | `NominalCode` | **string* | :heavy_minus_sign: | Reference given to each nominal account for a business. It ensures money is allocated to the correct account. This code isn't a unique identifier in the Codat system. | 610 | | `SourceModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | -| `Status` | [*AccountStatus](../../models/shared/accountstatus.md) | :heavy_minus_sign: | Status of the account | Active | -| `SupplementalData` | [*SupplementalData](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | -| `Type` | [*AccountType](../../models/shared/accounttype.md) | :heavy_minus_sign: | Type of account | Asset | -| `ValidDatatypeLinks` | [][AccountValidDataTypeLinks](../../models/shared/accountvaliddatatypelinks.md) | :heavy_minus_sign: | The validDatatypeLinks can be used to determine whether an account can be correctly mapped to another object; for example, accounts with a `type` of `income` might only support being used on an Invoice and Direct Income. For more information, see [Valid Data Type Links](/sync-for-payables-api#/schemas/ValidDataTypeLinks). | | \ No newline at end of file +| `Status` | [*shared.AccountStatus](../../../pkg/models/shared/accountstatus.md) | :heavy_minus_sign: | Status of the account | Active | +| `SupplementalData` | [*shared.SupplementalData](../../../pkg/models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | +| `Type` | [*shared.AccountType](../../../pkg/models/shared/accounttype.md) | :heavy_minus_sign: | Type of account | Asset | +| `ValidDatatypeLinks` | [][shared.AccountValidDataTypeLinks](../../../pkg/models/shared/accountvaliddatatypelinks.md) | :heavy_minus_sign: | The validDatatypeLinks can be used to determine whether an account can be correctly mapped to another object; for example, accounts with a `type` of `income` might only support being used on an Invoice and Direct Income. For more information, see [Valid Data Type Links](/sync-for-payables-api#/schemas/ValidDataTypeLinks). | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/accountingaddresstype.md b/sync-for-payables/docs/pkg/models/shared/accountingaddresstype.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/accountingaddresstype.md rename to sync-for-payables/docs/pkg/models/shared/accountingaddresstype.md diff --git a/sync-for-payables/docs/pkg/models/shared/accountingpaymentallocation.md b/sync-for-payables/docs/pkg/models/shared/accountingpaymentallocation.md new file mode 100644 index 000000000..95ab5c42a --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/accountingpaymentallocation.md @@ -0,0 +1,9 @@ +# AccountingPaymentAllocation + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `Allocation` | [shared.BillAllocation](../../../pkg/models/shared/billallocation.md) | :heavy_check_mark: | N/A | +| `Payment` | [shared.PaymentAllocationPayment](../../../pkg/models/shared/paymentallocationpayment.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/trackingprojectreference.md b/sync-for-payables/docs/pkg/models/shared/accountingprojectreference.md old mode 100755 new mode 100644 similarity index 96% rename from sync-for-payables/docs/models/shared/trackingprojectreference.md rename to sync-for-payables/docs/pkg/models/shared/accountingprojectreference.md index 9e8cebaae..507543344 --- a/sync-for-payables/docs/models/shared/trackingprojectreference.md +++ b/sync-for-payables/docs/pkg/models/shared/accountingprojectreference.md @@ -1,4 +1,4 @@ -# TrackingProjectReference +# AccountingProjectReference ## Fields diff --git a/sync-for-payables/docs/pkg/models/shared/accountprototype.md b/sync-for-payables/docs/pkg/models/shared/accountprototype.md new file mode 100644 index 000000000..4e6c884b7 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/accountprototype.md @@ -0,0 +1,19 @@ +# AccountPrototype + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Currency` | **string* | :heavy_minus_sign: | The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.

## Unknown currencies

In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction.

There are only a very small number of edge cases where this currency code is returned by the Codat system. | GBP | +| `CurrentBalance` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_minus_sign: | Current balance in the account. | 0 | +| `Description` | **string* | :heavy_minus_sign: | Description for the account. | Invoices the business has issued but has not yet collected payment on. | +| `FullyQualifiedCategory` | **string* | :heavy_minus_sign: | Full category of the account.

For example, `Liability.Current` or `Income.Revenue`. To determine a list of possible categories for each integration, see our examples, follow our [Create, update, delete data](https://docs.codat.io/using-the-api/push) guide, or refer to the integration's own documentation. | Asset.Current | +| `FullyQualifiedName` | **string* | :heavy_minus_sign: | Full name of the account, for example:
- `Cash On Hand`
- `Rents Held In Trust`
- `Fixed Asset` | Cash On Hand | +| `IsBankAccount` | **bool* | :heavy_minus_sign: | Confirms whether the account is a bank account or not. | | +| `Name` | **string* | :heavy_minus_sign: | Name of the account. | Accounts Receivable | +| `NominalCode` | **string* | :heavy_minus_sign: | Reference given to each nominal account for a business. It ensures money is allocated to the correct account. This code isn't a unique identifier in the Codat system. | 610 | +| `Status` | [*shared.AccountStatus](../../../pkg/models/shared/accountstatus.md) | :heavy_minus_sign: | Status of the account | Active | +| `SupplementalData` | [*shared.SupplementalData](../../../pkg/models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | +| `Type` | [*shared.AccountType](../../../pkg/models/shared/accounttype.md) | :heavy_minus_sign: | Type of account | Asset | +| `ValidDatatypeLinks` | [][shared.ValidDataTypeLinks](../../../pkg/models/shared/validdatatypelinks.md) | :heavy_minus_sign: | The validDatatypeLinks can be used to determine whether an account can be correctly mapped to another object; for example, accounts with a `type` of `income` might only support being used on an Invoice and Direct Income. For more information, see [Valid Data Type Links](/sync-for-payables-api#/schemas/ValidDataTypeLinks). | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/accountref.md b/sync-for-payables/docs/pkg/models/shared/accountref.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/accountref.md rename to sync-for-payables/docs/pkg/models/shared/accountref.md diff --git a/sync-for-payables/docs/models/shared/billcreditnotes.md b/sync-for-payables/docs/pkg/models/shared/accounts.md old mode 100755 new mode 100644 similarity index 87% rename from sync-for-payables/docs/models/shared/billcreditnotes.md rename to sync-for-payables/docs/pkg/models/shared/accounts.md index 3fbdddf83..51125ae74 --- a/sync-for-payables/docs/models/shared/billcreditnotes.md +++ b/sync-for-payables/docs/pkg/models/shared/accounts.md @@ -1,12 +1,12 @@ -# BillCreditNotes +# Accounts ## Fields | Field | Type | Required | Description | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `Links` | [Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | +| `Links` | [shared.Links](../../../pkg/models/shared/links.md) | :heavy_check_mark: | N/A | | `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | | `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | -| `Results` | [][BillCreditNote](../../models/shared/billcreditnote.md) | :heavy_minus_sign: | N/A | +| `Results` | [][shared.Account](../../../pkg/models/shared/account.md) | :heavy_minus_sign: | N/A | | `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/accountstatus.md b/sync-for-payables/docs/pkg/models/shared/accountstatus.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/accountstatus.md rename to sync-for-payables/docs/pkg/models/shared/accountstatus.md diff --git a/sync-for-payables/docs/models/shared/accounttype.md b/sync-for-payables/docs/pkg/models/shared/accounttype.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/accounttype.md rename to sync-for-payables/docs/pkg/models/shared/accounttype.md diff --git a/sync-for-payables/docs/models/shared/accountvaliddatatypelinks.md b/sync-for-payables/docs/pkg/models/shared/accountvaliddatatypelinks.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/accountvaliddatatypelinks.md rename to sync-for-payables/docs/pkg/models/shared/accountvaliddatatypelinks.md diff --git a/sync-for-payables/docs/pkg/models/shared/address.md b/sync-for-payables/docs/pkg/models/shared/address.md new file mode 100644 index 000000000..0487fa621 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/address.md @@ -0,0 +1,14 @@ +# Address + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `City` | **string* | :heavy_minus_sign: | City of the customer address. | +| `Country` | **string* | :heavy_minus_sign: | Country of the customer address. | +| `Line1` | **string* | :heavy_minus_sign: | Line 1 of the customer address. | +| `Line2` | **string* | :heavy_minus_sign: | Line 2 of the customer address. | +| `PostalCode` | **string* | :heavy_minus_sign: | Postal code or zip code. | +| `Region` | **string* | :heavy_minus_sign: | Region of the customer address. | +| `Type` | [shared.AccountingAddressType](../../../pkg/models/shared/accountingaddresstype.md) | :heavy_check_mark: | The type of the address | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/itemsallocation.md b/sync-for-payables/docs/pkg/models/shared/allocation.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/itemsallocation.md rename to sync-for-payables/docs/pkg/models/shared/allocation.md index f08e719c4..71328f210 --- a/sync-for-payables/docs/models/shared/itemsallocation.md +++ b/sync-for-payables/docs/pkg/models/shared/allocation.md @@ -1,4 +1,4 @@ -# ItemsAllocation +# Allocation ## Fields diff --git a/sync-for-payables/docs/models/shared/attachment.md b/sync-for-payables/docs/pkg/models/shared/attachment.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/attachment.md rename to sync-for-payables/docs/pkg/models/shared/attachment.md diff --git a/sync-for-payables/docs/pkg/models/shared/attachments.md b/sync-for-payables/docs/pkg/models/shared/attachments.md new file mode 100644 index 000000000..6e007d4c0 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/attachments.md @@ -0,0 +1,8 @@ +# Attachments + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `Attachments` | [][shared.Attachment](../../../pkg/models/shared/attachment.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/shared/attachmentupload.md b/sync-for-payables/docs/pkg/models/shared/attachmentupload.md new file mode 100644 index 000000000..9492c60da --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/attachmentupload.md @@ -0,0 +1,8 @@ +# AttachmentUpload + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `File` | [shared.CodatFile](../../../pkg/models/shared/codatfile.md) | :heavy_check_mark: | The file to be uploaded as an attachment. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/bill.md b/sync-for-payables/docs/pkg/models/shared/bill.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/bill.md rename to sync-for-payables/docs/pkg/models/shared/bill.md index 758b884d6..d13efa558 --- a/sync-for-payables/docs/models/shared/bill.md +++ b/sync-for-payables/docs/pkg/models/shared/bill.md @@ -31,18 +31,18 @@ You can find these types of transactions in our [Direct costs](https://docs.coda | `DueDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | | `ID` | **string* | :heavy_minus_sign: | Identifier for the bill, unique for the company in the accounting platform. | | | `IssueDate` | *string* | :heavy_check_mark: | N/A | 2022-10-23T00:00:00.000Z | -| `LineItems` | [][BillLineItem](../../models/shared/billlineitem.md) | :heavy_minus_sign: | Array of Bill line items. | | -| `Metadata` | [*Metadata](../../models/shared/metadata.md) | :heavy_minus_sign: | N/A | | +| `LineItems` | [][shared.BillLineItem](../../../pkg/models/shared/billlineitem.md) | :heavy_minus_sign: | Array of Bill line items. | | +| `Metadata` | [*shared.Metadata](../../../pkg/models/shared/metadata.md) | :heavy_minus_sign: | N/A | | | `ModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | | `Note` | **string* | :heavy_minus_sign: | Any private, company notes about the bill, such as payment information. | | -| `PaymentAllocations` | [][BillPaymentAllocation](../../models/shared/billpaymentallocation.md) | :heavy_minus_sign: | An array of payment allocations. | | -| `PurchaseOrderRefs` | [][BillPurchaseOrderReference](../../models/shared/billpurchaseorderreference.md) | :heavy_minus_sign: | N/A | | +| `PaymentAllocations` | [][shared.AccountingPaymentAllocation](../../../pkg/models/shared/accountingpaymentallocation.md) | :heavy_minus_sign: | An array of payment allocations. | | +| `PurchaseOrderRefs` | [][shared.PurchaseOrderReference](../../../pkg/models/shared/purchaseorderreference.md) | :heavy_minus_sign: | N/A | | | `Reference` | **string* | :heavy_minus_sign: | User-friendly reference for the bill. | | | `SourceModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | -| `Status` | [BillStatus](../../models/shared/billstatus.md) | :heavy_check_mark: | Current state of the bill. | | +| `Status` | [shared.BillStatus](../../../pkg/models/shared/billstatus.md) | :heavy_check_mark: | Current state of the bill. | | | `SubTotal` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_check_mark: | Total amount of the bill, excluding any taxes. | | -| `SupplementalData` | [*SupplementalData](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | -| `SupplierRef` | [*SupplierRef](../../models/shared/supplierref.md) | :heavy_minus_sign: | Reference to the supplier the record relates to. | | +| `SupplementalData` | [*shared.SupplementalData](../../../pkg/models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | +| `SupplierRef` | [*shared.SupplierRef](../../../pkg/models/shared/supplierref.md) | :heavy_minus_sign: | Reference to the supplier the record relates to. | | | `TaxAmount` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_check_mark: | Amount of tax on the bill. | | | `TotalAmount` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_check_mark: | Amount of the bill, including tax. | | -| `WithholdingTax` | [][BillWithholdingTax](../../models/shared/billwithholdingtax.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `WithholdingTax` | [][shared.WithholdingTax](../../../pkg/models/shared/withholdingtax.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/billpaymentallocationallocation.md b/sync-for-payables/docs/pkg/models/shared/billallocation.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/billpaymentallocationallocation.md rename to sync-for-payables/docs/pkg/models/shared/billallocation.md index 9f0622411..181b48890 --- a/sync-for-payables/docs/models/shared/billpaymentallocationallocation.md +++ b/sync-for-payables/docs/pkg/models/shared/billallocation.md @@ -1,4 +1,4 @@ -# BillPaymentAllocationAllocation +# BillAllocation ## Fields diff --git a/sync-for-payables/docs/models/shared/billcreditnote.md b/sync-for-payables/docs/pkg/models/shared/billcreditnote.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/billcreditnote.md rename to sync-for-payables/docs/pkg/models/shared/billcreditnote.md index 64e720216..fea3a1f56 --- a/sync-for-payables/docs/models/shared/billcreditnote.md +++ b/sync-for-payables/docs/pkg/models/shared/billcreditnote.md @@ -29,18 +29,18 @@ A bill credit note includes details of: | `DiscountPercentage` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_check_mark: | Percentage rate of any discount applied to the bill credit note. | 0 | | `ID` | **string* | :heavy_minus_sign: | Identifier for the bill credit note that is unique to a company in the accounting platform. | 1509398f-98e2-436d-8a5d-c042e0c74ffc | | `IssueDate` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `LineItems` | [][BillCreditNoteLineItem](../../models/shared/billcreditnotelineitem.md) | :heavy_minus_sign: | An array of line | | -| `Metadata` | [*Metadata](../../models/shared/metadata.md) | :heavy_minus_sign: | N/A | | +| `LineItems` | [][shared.BillCreditNoteLineItem](../../../pkg/models/shared/billcreditnotelineitem.md) | :heavy_minus_sign: | An array of line | | +| `Metadata` | [*shared.Metadata](../../../pkg/models/shared/metadata.md) | :heavy_minus_sign: | N/A | | | `ModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | | `Note` | **string* | :heavy_minus_sign: | Any additional information about the bill credit note. | Bill Credit Note with 1 line items, totaling 805.78 | -| `PaymentAllocations` | [][Items](../../models/shared/items.md) | :heavy_minus_sign: | An array of payment allocations. | | +| `PaymentAllocations` | [][shared.Items](../../../pkg/models/shared/items.md) | :heavy_minus_sign: | An array of payment allocations. | | | `RemainingCredit` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_minus_sign: | Amount of the bill credit note that is still outstanding. | 0 | | `SourceModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | -| `Status` | [BillCreditNoteStatus](../../models/shared/billcreditnotestatus.md) | :heavy_check_mark: | Current state of the bill credit note | Paid | +| `Status` | [shared.BillCreditNoteStatus](../../../pkg/models/shared/billcreditnotestatus.md) | :heavy_check_mark: | Current state of the bill credit note | Paid | | `SubTotal` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_check_mark: | Total amount of the bill credit note, including discounts but excluding tax. | 805.78 | -| `SupplementalData` | [*SupplementalData](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | -| `SupplierRef` | [*SupplierRef](../../models/shared/supplierref.md) | :heavy_minus_sign: | Reference to the supplier the record relates to. | | +| `SupplementalData` | [*shared.SupplementalData](../../../pkg/models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | +| `SupplierRef` | [*shared.SupplierRef](../../../pkg/models/shared/supplierref.md) | :heavy_minus_sign: | Reference to the supplier the record relates to. | | | `TotalAmount` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_check_mark: | Total amount of credit that has been applied to the business' account with the supplier, including discounts and tax. | 805.78 | | `TotalDiscount` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_check_mark: | Total value of any discounts applied. | 0 | | `TotalTaxAmount` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_check_mark: | Amount of tax included in the bill credit note. | 0 | -| `WithholdingTax` | [][WithholdingTaxitems](../../models/shared/withholdingtaxitems.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `WithholdingTax` | [][shared.WithholdingTaxItems](../../../pkg/models/shared/withholdingtaxitems.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/billcreditnotelineitem.md b/sync-for-payables/docs/pkg/models/shared/billcreditnotelineitem.md old mode 100755 new mode 100644 similarity index 96% rename from sync-for-payables/docs/models/shared/billcreditnotelineitem.md rename to sync-for-payables/docs/pkg/models/shared/billcreditnotelineitem.md index bf35581bd..6b9c1dfa6 --- a/sync-for-payables/docs/models/shared/billcreditnotelineitem.md +++ b/sync-for-payables/docs/pkg/models/shared/billcreditnotelineitem.md @@ -5,16 +5,16 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `AccountRef` | [*AccountRef](../../models/shared/accountref.md) | :heavy_minus_sign: | Data types that reference an account, for example bill and invoice line items, use an accountRef that includes the ID and name of the linked account. | +| `AccountRef` | [*shared.AccountRef](../../../pkg/models/shared/accountref.md) | :heavy_minus_sign: | Data types that reference an account, for example bill and invoice line items, use an accountRef that includes the ID and name of the linked account. | | `Description` | **string* | :heavy_minus_sign: | Friendly name of each line item. For example, the goods or service for which credit has been received. | | `DiscountAmount` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_minus_sign: | Value of any discounts applied. | | `DiscountPercentage` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_minus_sign: | Percentage rate of any discount applied to the line item. | -| `ItemRef` | [*BillCreditNoteLineItemItemReference](../../models/shared/billcreditnotelineitemitemreference.md) | :heavy_minus_sign: | Reference to the item the line is linked to. | +| `ItemRef` | [*shared.ItemReference](../../../pkg/models/shared/itemreference.md) | :heavy_minus_sign: | Reference to the item the line is linked to. | | `Quantity` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_check_mark: | Number of units of the goods or service for which credit has been received. | | `SubTotal` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_minus_sign: | Amount of credit associated with the line item, including discounts but excluding tax. | | `TaxAmount` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_minus_sign: | Amount of tax associated with the line item. | -| `TaxRateRef` | [*TaxRateRef](../../models/shared/taxrateref.md) | :heavy_minus_sign: | Data types that reference a tax rate, for example invoice and bill line items, use a taxRateRef that includes the ID and name of the linked tax rate.

Found on:

- Bill line items
- Bill Credit Note line items
- Credit Note line items
- Direct incomes line items
- Invoice line items
- Items | +| `TaxRateRef` | [*shared.TaxRateRef](../../../pkg/models/shared/taxrateref.md) | :heavy_minus_sign: | Data types that reference a tax rate, for example invoice and bill line items, use a taxRateRef that includes the ID and name of the linked tax rate.

Found on:

- Bill line items
- Bill Credit Note line items
- Credit Note line items
- Direct incomes line items
- Invoice line items
- Items | | `TotalAmount` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_minus_sign: | Total amount of the line item, including discounts and tax. | -| `Tracking` | [*BillCreditNoteLineItemTracking](../../models/shared/billcreditnotelineitemtracking.md) | :heavy_minus_sign: | Categories, and a project and customer, against which the item is tracked. | -| ~~`TrackingCategoryRefs`~~ | [][TrackingCategoryRef](../../models/shared/trackingcategoryref.md) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Reference to the tracking categories to which the line item is linked. | +| `Tracking` | [*shared.BillCreditNoteLineItemTracking](../../../pkg/models/shared/billcreditnotelineitemtracking.md) | :heavy_minus_sign: | Categories, and a project and customer, against which the item is tracked. | +| ~~`TrackingCategoryRefs`~~ | [][shared.TrackingCategoryRef](../../../pkg/models/shared/trackingcategoryref.md) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Reference to the tracking categories to which the line item is linked. | | `UnitAmount` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_check_mark: | Unit price of the goods or service. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/billcreditnotelineitemtrackingprojectreference.md b/sync-for-payables/docs/pkg/models/shared/billcreditnotelineitemaccountingprojectreference.md old mode 100755 new mode 100644 similarity index 93% rename from sync-for-payables/docs/models/shared/billcreditnotelineitemtrackingprojectreference.md rename to sync-for-payables/docs/pkg/models/shared/billcreditnotelineitemaccountingprojectreference.md index ca8323efb..2c48ab985 --- a/sync-for-payables/docs/models/shared/billcreditnotelineitemtrackingprojectreference.md +++ b/sync-for-payables/docs/pkg/models/shared/billcreditnotelineitemaccountingprojectreference.md @@ -1,4 +1,4 @@ -# BillCreditNoteLineItemTrackingProjectReference +# BillCreditNoteLineItemAccountingProjectReference ## Fields diff --git a/sync-for-payables/docs/models/shared/billcreditnotelineitemtrackingcustomerref.md b/sync-for-payables/docs/pkg/models/shared/billcreditnotelineitemcustomerref.md old mode 100755 new mode 100644 similarity index 94% rename from sync-for-payables/docs/models/shared/billcreditnotelineitemtrackingcustomerref.md rename to sync-for-payables/docs/pkg/models/shared/billcreditnotelineitemcustomerref.md index 1379a154c..d51c8ba20 --- a/sync-for-payables/docs/models/shared/billcreditnotelineitemtrackingcustomerref.md +++ b/sync-for-payables/docs/pkg/models/shared/billcreditnotelineitemcustomerref.md @@ -1,4 +1,4 @@ -# BillCreditNoteLineItemTrackingCustomerRef +# BillCreditNoteLineItemCustomerRef ## Fields diff --git a/sync-for-payables/docs/pkg/models/shared/billcreditnotelineitemtracking.md b/sync-for-payables/docs/pkg/models/shared/billcreditnotelineitemtracking.md new file mode 100644 index 000000000..5ec11e4ba --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/billcreditnotelineitemtracking.md @@ -0,0 +1,14 @@ +# BillCreditNoteLineItemTracking + +Categories, and a project and customer, against which the item is tracked. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | +| `CategoryRefs` | [][shared.TrackingCategoryRef](../../../pkg/models/shared/trackingcategoryref.md) | :heavy_check_mark: | N/A | +| `CustomerRef` | [*shared.BillCreditNoteLineItemCustomerRef](../../../pkg/models/shared/billcreditnotelineitemcustomerref.md) | :heavy_minus_sign: | N/A | +| `IsBilledTo` | [shared.BilledToType](../../../pkg/models/shared/billedtotype.md) | :heavy_check_mark: | Defines if the invoice or credit note is billed/rebilled to a project or customer. | +| `IsRebilledTo` | [shared.BilledToType](../../../pkg/models/shared/billedtotype.md) | :heavy_check_mark: | Defines if the invoice or credit note is billed/rebilled to a project or customer. | +| `ProjectRef` | [*shared.BillCreditNoteLineItemAccountingProjectReference](../../../pkg/models/shared/billcreditnotelineitemaccountingprojectreference.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/shared/billcreditnotes.md b/sync-for-payables/docs/pkg/models/shared/billcreditnotes.md new file mode 100644 index 000000000..dbd873674 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/billcreditnotes.md @@ -0,0 +1,12 @@ +# BillCreditNotes + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `Links` | [shared.Links](../../../pkg/models/shared/links.md) | :heavy_check_mark: | N/A | +| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | +| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | +| `Results` | [][shared.BillCreditNote](../../../pkg/models/shared/billcreditnote.md) | :heavy_minus_sign: | N/A | +| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/billcreditnotestatus.md b/sync-for-payables/docs/pkg/models/shared/billcreditnotestatus.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/billcreditnotestatus.md rename to sync-for-payables/docs/pkg/models/shared/billcreditnotestatus.md diff --git a/sync-for-payables/docs/models/shared/billedtotype.md b/sync-for-payables/docs/pkg/models/shared/billedtotype.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/billedtotype.md rename to sync-for-payables/docs/pkg/models/shared/billedtotype.md diff --git a/sync-for-payables/docs/models/shared/billlineitem.md b/sync-for-payables/docs/pkg/models/shared/billlineitem.md old mode 100755 new mode 100644 similarity index 90% rename from sync-for-payables/docs/models/shared/billlineitem.md rename to sync-for-payables/docs/pkg/models/shared/billlineitem.md index dd853aa3e..a7d852d8c --- a/sync-for-payables/docs/models/shared/billlineitem.md +++ b/sync-for-payables/docs/pkg/models/shared/billlineitem.md @@ -5,19 +5,20 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `AccountRef` | [*AccountRef](../../models/shared/accountref.md) | :heavy_minus_sign: | Data types that reference an account, for example bill and invoice line items, use an accountRef that includes the ID and name of the linked account. | +| `AccountRef` | [*shared.AccountRef](../../../pkg/models/shared/accountref.md) | :heavy_minus_sign: | Data types that reference an account, for example bill and invoice line items, use an accountRef that includes the ID and name of the linked account. | | `Description` | **string* | :heavy_minus_sign: | Friendly name of the goods or services received. | | `DiscountAmount` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_minus_sign: | Numerical value of any discounts applied.

Do not use to apply discounts in Oracle NetSuite—see Oracle NetSuite integration reference. | | `DiscountPercentage` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_minus_sign: | Percentage rate of any discount applied to the bill. | | `IsDirectCost` | **bool* | :heavy_minus_sign: | The bill is a direct cost if `True`. | -| `ItemRef` | [*ItemRef](../../models/shared/itemref.md) | :heavy_minus_sign: | Reference to the item the line is linked to. | +| `ItemRef` | [*shared.ItemRef](../../../pkg/models/shared/itemref.md) | :heavy_minus_sign: | Reference to the item the line is linked to. | | `LineNumber` | **string* | :heavy_minus_sign: | The bill line's number. | -| `PurchaseOrderLineRef` | [*BillLineItemRecordLineReference](../../models/shared/billlineitemrecordlinereference.md) | :heavy_minus_sign: | Reference to the purchase order line this line was generated from. | +| `PurchaseOrderLineRef` | [*shared.RecordLineReference](../../../pkg/models/shared/recordlinereference.md) | :heavy_minus_sign: | N/A | | `Quantity` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_check_mark: | Number of units of goods or services received. | | `SubTotal` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_minus_sign: | Amount of the line, inclusive of discounts but exclusive of tax. | | `TaxAmount` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_minus_sign: | Amount of tax for the line. | -| `TaxRateRef` | [*TaxRateRef](../../models/shared/taxrateref.md) | :heavy_minus_sign: | Data types that reference a tax rate, for example invoice and bill line items, use a taxRateRef that includes the ID and name of the linked tax rate.

Found on:

- Bill line items
- Bill Credit Note line items
- Credit Note line items
- Direct incomes line items
- Invoice line items
- Items | +| `TaxRateRef` | [*shared.TaxRateRef](../../../pkg/models/shared/taxrateref.md) | :heavy_minus_sign: | Data types that reference a tax rate, for example invoice and bill line items, use a taxRateRef that includes the ID and name of the linked tax rate.

Found on:

- Bill line items
- Bill Credit Note line items
- Credit Note line items
- Direct incomes line items
- Invoice line items
- Items | | `TotalAmount` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_minus_sign: | Total amount of the line, including tax. | -| `Tracking` | [*Tracking](../../models/shared/tracking.md) | :heavy_minus_sign: | Categories, and a project and customer, against which the item is tracked. | -| `TrackingCategoryRefs` | [][TrackingCategoryRef](../../models/shared/trackingcategoryref.md) | :heavy_minus_sign: | Collection of categories against which this item is tracked. | -| `UnitAmount` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_check_mark: | Price of each unit of goods or services. | \ No newline at end of file +| `Tracking` | [*shared.Tracking](../../../pkg/models/shared/tracking.md) | :heavy_minus_sign: | Categories, and a project and customer, against which the item is tracked. | +| `TrackingCategoryRefs` | [][shared.TrackingCategoryRef](../../../pkg/models/shared/trackingcategoryref.md) | :heavy_minus_sign: | Collection of categories against which this item is tracked. | +| `UnitAmount` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_check_mark: | Price of each unit of goods or services. | +| `UnitOfMeasurement` | **string* | :heavy_minus_sign: | The measurement which defines a unit for this item (e.g. 'kilogram', 'litre'). | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/shared/billlineitemdatatype.md b/sync-for-payables/docs/pkg/models/shared/billlineitemdatatype.md new file mode 100644 index 000000000..b2bac4b23 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/billlineitemdatatype.md @@ -0,0 +1,10 @@ +# BillLineItemDataType + +Allowed name of the 'dataType'. + + +## Values + +| Name | Value | +| ------------------------------------ | ------------------------------------ | +| `BillLineItemDataTypePurchaseOrders` | purchaseOrders | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/billpayment.md b/sync-for-payables/docs/pkg/models/shared/billpayment.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/billpayment.md rename to sync-for-payables/docs/pkg/models/shared/billpayment.md index 45172a895..1295c0fe4 --- a/sync-for-payables/docs/models/shared/billpayment.md +++ b/sync-for-payables/docs/pkg/models/shared/billpayment.md @@ -157,18 +157,18 @@ These two rates allow the calculation of currency loss or gain for any of the tr | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `AccountRef` | [*AccountRef](../../models/shared/accountref.md) | :heavy_minus_sign: | Data types that reference an account, for example bill and invoice line items, use an accountRef that includes the ID and name of the linked account. | | +| `AccountRef` | [*shared.AccountRef](../../../pkg/models/shared/accountref.md) | :heavy_minus_sign: | Data types that reference an account, for example bill and invoice line items, use an accountRef that includes the ID and name of the linked account. | | | `Currency` | **string* | :heavy_minus_sign: | N/A | GBP | | `CurrencyRate` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_minus_sign: | Rate to convert the total amount of the payment into the base currency for the company at the time of the payment.

Currency rates in Codat are implemented as the multiple of foreign currency units to each base currency unit.

It is not possible to perform the currency conversion with two or more non-base currencies participating in the transaction. For example, if a company's base currency is USD, and it has a bill issued in EUR, then the bill payment must happen in USD or EUR.

Where the currency rate is provided by the underlying accounting platform, it will be available from Codat with the same precision (up to a maximum of 9 decimal places).

For accounting platforms which do not provide an explicit currency rate, it is calculated as `baseCurrency / foreignCurrency` and will be returned to 9 decimal places.

## Examples with base currency of GBP

\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (GBP) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **USD** \| $20 \| 0.781 \| £15.62 \|
\| **EUR** \| €20 \| 0.885 \| £17.70 \|
\| **RUB** \| ₽20 \| 0.011 \| £0.22 \|

## Examples with base currency of USD

\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (USD) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **GBP** \| £20 \| 1.277 \| $25.54 \|
\| **EUR** \| €20 \| 1.134 \| $22.68 \|
\| **RUB** \| ₽20 \| 0.015 \| $0.30 \| | | | `Date` | *string* | :heavy_check_mark: | N/A | 2022-10-23T00:00:00.000Z | | `ID` | **string* | :heavy_minus_sign: | Identifier for the bill payment, unique for the company in the accounting platform. | 3d5a8e00-d108-4045-8823-7f342676cffa | -| `Lines` | [][BillPaymentLine](../../models/shared/billpaymentline.md) | :heavy_minus_sign: | An array of bill payment lines. | | -| `Metadata` | [*Metadata](../../models/shared/metadata.md) | :heavy_minus_sign: | N/A | | +| `Lines` | [][shared.BillPaymentLine](../../../pkg/models/shared/billpaymentline.md) | :heavy_minus_sign: | An array of bill payment lines. | | +| `Metadata` | [*shared.Metadata](../../../pkg/models/shared/metadata.md) | :heavy_minus_sign: | N/A | | | `ModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | | `Note` | **string* | :heavy_minus_sign: | Additional information associated with the payment. | Bill Payment against bill c13e37b6-dfaa-4894-b3be-9fe97bda9f44 | -| `PaymentMethodRef` | [*PaymentMethodRef](../../models/shared/paymentmethodref.md) | :heavy_minus_sign: | N/A | | +| `PaymentMethodRef` | [*shared.PaymentMethodRef](../../../pkg/models/shared/paymentmethodref.md) | :heavy_minus_sign: | N/A | | | `Reference` | **string* | :heavy_minus_sign: | Additional information associated with the payment. | | | `SourceModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | -| `SupplementalData` | [*SupplementalData](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | -| `SupplierRef` | [*SupplierRef](../../models/shared/supplierref.md) | :heavy_minus_sign: | N/A | | +| `SupplementalData` | [*shared.SupplementalData](../../../pkg/models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | +| `SupplierRef` | [*shared.SupplierRef](../../../pkg/models/shared/supplierref.md) | :heavy_minus_sign: | N/A | | | `TotalAmount` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_minus_sign: | Amount of the payment in the payment currency. This value never changes and represents the amount of money that is paid into the supplier's account. | 1329.54 | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/billpaymentline.md b/sync-for-payables/docs/pkg/models/shared/billpaymentline.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/billpaymentline.md rename to sync-for-payables/docs/pkg/models/shared/billpaymentline.md index 8568f613b..b71ba2672 --- a/sync-for-payables/docs/models/shared/billpaymentline.md +++ b/sync-for-payables/docs/pkg/models/shared/billpaymentline.md @@ -7,4 +7,4 @@ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `AllocatedOnDate` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | | `Amount` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_check_mark: | Amount in the bill payment currency. | | -| `Links` | [][BillPaymentLineLink](../../models/shared/billpaymentlinelink.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `Links` | [][shared.BillPaymentLineLink](../../../pkg/models/shared/billpaymentlinelink.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/billpaymentlinelink.md b/sync-for-payables/docs/pkg/models/shared/billpaymentlinelink.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/billpaymentlinelink.md rename to sync-for-payables/docs/pkg/models/shared/billpaymentlinelink.md index 7ccdfda28..1b0057668 --- a/sync-for-payables/docs/models/shared/billpaymentlinelink.md +++ b/sync-for-payables/docs/pkg/models/shared/billpaymentlinelink.md @@ -8,4 +8,4 @@ | `Amount` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_minus_sign: | Amount by which the balance of the linked entity is altered, in the currency of the linked entity.

- A negative link amount reduces the outstanding amount on the accounts payable account.
- A positive link amount increases the outstanding amount on the accounts payable account. | | `CurrencyRate` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_minus_sign: | Rate to convert the total amount of the payment into the base currency for the company at the time of the payment.

Currency rates in Codat are implemented as the multiple of foreign currency units to each base currency unit.

It is not possible to perform the currency conversion with two or more non-base currencies participating in the transaction. For example, if a company's base currency is USD, and it has a bill issued in EUR, then the bill payment must happen in USD or EUR.

Where the currency rate is provided by the underlying accounting platform, it will be available from Codat with the same precision (up to a maximum of 9 decimal places).

For accounting platforms which do not provide an explicit currency rate, it is calculated as `baseCurrency / foreignCurrency` and will be returned to 9 decimal places.

## Examples with base currency of GBP

\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (GBP) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **USD** \| $20 \| 0.781 \| £15.62 \|
\| **EUR** \| €20 \| 0.885 \| £17.70 \|
\| **RUB** \| ₽20 \| 0.011 \| £0.22 \|

## Examples with base currency of USD

\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (USD) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **GBP** \| £20 \| 1.277 \| $25.54 \|
\| **EUR** \| €20 \| 1.134 \| $22.68 \|
\| **RUB** \| ₽20 \| 0.015 \| $0.30 \| | | `ID` | **string* | :heavy_minus_sign: | Unique identifier of the transaction represented by the link. | -| `Type` | [BillPaymentLineLinkType](../../models/shared/billpaymentlinelinktype.md) | :heavy_check_mark: | Types of links to bill payment lines. | \ No newline at end of file +| `Type` | [shared.BillPaymentLineLinkType](../../../pkg/models/shared/billpaymentlinelinktype.md) | :heavy_check_mark: | Types of links to bill payment lines. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/billpaymentlinelinktype.md b/sync-for-payables/docs/pkg/models/shared/billpaymentlinelinktype.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/billpaymentlinelinktype.md rename to sync-for-payables/docs/pkg/models/shared/billpaymentlinelinktype.md diff --git a/sync-for-payables/docs/pkg/models/shared/billpayments.md b/sync-for-payables/docs/pkg/models/shared/billpayments.md new file mode 100644 index 000000000..95d11c34f --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/billpayments.md @@ -0,0 +1,12 @@ +# BillPayments + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `Links` | [shared.Links](../../../pkg/models/shared/links.md) | :heavy_check_mark: | N/A | +| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | +| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | +| `Results` | [][shared.BillPayment](../../../pkg/models/shared/billpayment.md) | :heavy_minus_sign: | N/A | +| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/billpayments.md b/sync-for-payables/docs/pkg/models/shared/bills.md old mode 100755 new mode 100644 similarity index 82% rename from sync-for-payables/docs/models/shared/billpayments.md rename to sync-for-payables/docs/pkg/models/shared/bills.md index 4720bf518..bd7be0c87 --- a/sync-for-payables/docs/models/shared/billpayments.md +++ b/sync-for-payables/docs/pkg/models/shared/bills.md @@ -1,12 +1,12 @@ -# BillPayments +# Bills ## Fields | Field | Type | Required | Description | | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | -| `Links` | [Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | +| `Links` | [shared.Links](../../../pkg/models/shared/links.md) | :heavy_check_mark: | N/A | | `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | | `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | -| `Results` | [][BillPayment](../../models/shared/billpayment.md) | :heavy_minus_sign: | N/A | +| `Results` | [][shared.Bill](../../../pkg/models/shared/bill.md) | :heavy_minus_sign: | N/A | | `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/billstatus.md b/sync-for-payables/docs/pkg/models/shared/billstatus.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/billstatus.md rename to sync-for-payables/docs/pkg/models/shared/billstatus.md diff --git a/sync-for-payables/docs/pkg/models/shared/clientratelimitreachedwebhook.md b/sync-for-payables/docs/pkg/models/shared/clientratelimitreachedwebhook.md new file mode 100644 index 000000000..90223a07a --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/clientratelimitreachedwebhook.md @@ -0,0 +1,16 @@ +# ClientRateLimitReachedWebhook + +Webhook request body for a client that has reached their rate limit. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `AlertID` | **string* | :heavy_minus_sign: | Unique identifier of the webhook event. | +| `ClientID` | **string* | :heavy_minus_sign: | Unique identifier for your client in Codat. | +| `ClientName` | **string* | :heavy_minus_sign: | Name of your client in Codat. | +| `Data` | [*shared.ClientRateLimitReachedWebhookData](../../../pkg/models/shared/clientratelimitreachedwebhookdata.md) | :heavy_minus_sign: | N/A | +| `Message` | **string* | :heavy_minus_sign: | A human readable message about the webhook. | +| `RuleID` | **string* | :heavy_minus_sign: | Unique identifier for the rule. | +| `RuleType` | **string* | :heavy_minus_sign: | The type of rule. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/clientratelimitreachedwebhookdata.md b/sync-for-payables/docs/pkg/models/shared/clientratelimitreachedwebhookdata.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/clientratelimitreachedwebhookdata.md rename to sync-for-payables/docs/pkg/models/shared/clientratelimitreachedwebhookdata.md diff --git a/sync-for-payables/docs/pkg/models/shared/clientratelimitresetwebhook.md b/sync-for-payables/docs/pkg/models/shared/clientratelimitresetwebhook.md new file mode 100644 index 000000000..07a4bdf32 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/clientratelimitresetwebhook.md @@ -0,0 +1,16 @@ +# ClientRateLimitResetWebhook + +Webhook request body for a client that has had their rate limit reset. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `AlertID` | **string* | :heavy_minus_sign: | Unique identifier of the webhook event. | +| `ClientID` | **string* | :heavy_minus_sign: | Unique identifier for your client in Codat. | +| `ClientName` | **string* | :heavy_minus_sign: | Name of your client in Codat. | +| `Data` | [*shared.ClientRateLimitResetWebhookData](../../../pkg/models/shared/clientratelimitresetwebhookdata.md) | :heavy_minus_sign: | N/A | +| `Message` | **string* | :heavy_minus_sign: | A human readable message about the webhook. | +| `RuleID` | **string* | :heavy_minus_sign: | Unique identifier for the rule. | +| `RuleType` | **string* | :heavy_minus_sign: | The type of rule. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/clientratelimitresetwebhookdata.md b/sync-for-payables/docs/pkg/models/shared/clientratelimitresetwebhookdata.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/clientratelimitresetwebhookdata.md rename to sync-for-payables/docs/pkg/models/shared/clientratelimitresetwebhookdata.md diff --git a/sync-for-payables/docs/models/operations/uploadbillattachmentrequestbody.md b/sync-for-payables/docs/pkg/models/shared/codatfile.md old mode 100755 new mode 100644 similarity index 74% rename from sync-for-payables/docs/models/operations/uploadbillattachmentrequestbody.md rename to sync-for-payables/docs/pkg/models/shared/codatfile.md index d249a94cb..0f76ad4e2 --- a/sync-for-payables/docs/models/operations/uploadbillattachmentrequestbody.md +++ b/sync-for-payables/docs/pkg/models/shared/codatfile.md @@ -1,4 +1,4 @@ -# UploadBillAttachmentRequestBody +# CodatFile ## Fields @@ -6,4 +6,4 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `Content` | *[]byte* | :heavy_check_mark: | N/A | -| `RequestBody` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `FileName` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/shared/companies.md b/sync-for-payables/docs/pkg/models/shared/companies.md new file mode 100644 index 000000000..69cdb4781 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/companies.md @@ -0,0 +1,12 @@ +# Companies + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `Links` | [shared.Links](../../../pkg/models/shared/links.md) | :heavy_check_mark: | N/A | +| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | +| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | +| `Results` | [][shared.Company](../../../pkg/models/shared/company.md) | :heavy_minus_sign: | N/A | +| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/company.md b/sync-for-payables/docs/pkg/models/shared/company.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/company.md rename to sync-for-payables/docs/pkg/models/shared/company.md index 6cac29fc7..8f7b619ec --- a/sync-for-payables/docs/models/shared/company.md +++ b/sync-for-payables/docs/pkg/models/shared/company.md @@ -13,7 +13,7 @@ When you create a company, you can specify a `name` and we will automatically ge | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Created` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | | `CreatedByUserName` | **string* | :heavy_minus_sign: | Name of user that created the company in Codat. | | -| `DataConnections` | [][Connection](../../models/shared/connection.md) | :heavy_minus_sign: | N/A | | +| `DataConnections` | [][shared.Connection](../../../pkg/models/shared/connection.md) | :heavy_minus_sign: | N/A | | | `Description` | **string* | :heavy_minus_sign: | Additional information about the company. This can be used to store foreign IDs, references, etc. | Requested early access to the new financing scheme. | | `ID` | *string* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `LastSync` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | diff --git a/sync-for-payables/docs/models/shared/companyinfo.md b/sync-for-payables/docs/pkg/models/shared/companyinfo.md old mode 100755 new mode 100644 similarity index 98% rename from sync-for-payables/docs/models/shared/companyinfo.md rename to sync-for-payables/docs/pkg/models/shared/companyinfo.md index 13f85059c..2d09f5214 --- a/sync-for-payables/docs/models/shared/companyinfo.md +++ b/sync-for-payables/docs/pkg/models/shared/companyinfo.md @@ -1,12 +1,12 @@ # CompanyInfo -> View the coverage for company info in the Data coverage explorer. +> View the coverage for company profile in the Data coverage explorer. Company info provides standard details about a linked company such as their address, phone number, and company registration. > **Company information or companies?** > -> Company information is standard information that is held in the accounting platform about a company. `Companies` is an endpoint that lists businesses in the Codat system that have linked and shared their data sources. +> Company profile is standard information that is held in the accounting platform about a company. `Companies` is an endpoint that lists businesses in the Codat system that have linked and shared their data sources. ## Fields @@ -14,16 +14,16 @@ Company info provides standard details about a linked company such as their addr | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `AccountingPlatformRef` | **string* | :heavy_minus_sign: | Identifier or reference for the company in the accounting platform. | | -| `Addresses` | [][Address](../../models/shared/address.md) | :heavy_minus_sign: | An array of Addresses. | | +| `Addresses` | [][shared.Address](../../../pkg/models/shared/address.md) | :heavy_minus_sign: | An array of Addresses. | | | `BaseCurrency` | **string* | :heavy_minus_sign: | Currency set in the accounting platform of the linked company. Used by the currency rate. | | | `CompanyLegalName` | **string* | :heavy_minus_sign: | Registered legal name of the linked company. | | | `CompanyName` | **string* | :heavy_minus_sign: | Name of the linked company. | | | `CreatedDate` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | | `FinancialYearStartDate` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | | `LedgerLockDate` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `PhoneNumbers` | [][PhoneNumber](../../models/shared/phonenumber.md) | :heavy_minus_sign: | An array of phone numbers. | | +| `PhoneNumbers` | [][shared.PhoneNumber](../../../pkg/models/shared/phonenumber.md) | :heavy_minus_sign: | An array of phone numbers. | | | `RegistrationNumber` | **string* | :heavy_minus_sign: | Registration number given to the linked company by the companies authority in the country of origin. In the UK this is Companies House. | | | `SourceUrls` | map[string]*string* | :heavy_minus_sign: | URL addresses for the accounting source.

For example, for Xero integrations two URLs are returned. These have many potential use cases, such as [deep linking](https://developer.xero.com/documentation/api-guides/deep-link-xero). | | -| `SupplementalData` | [*SupplementalData](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | +| `SupplementalData` | [*shared.SupplementalData](../../../pkg/models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | | `TaxNumber` | **string* | :heavy_minus_sign: | Company tax number. | | -| `WebLinks` | [][WebLink](../../models/shared/weblink.md) | :heavy_minus_sign: | An array of weblinks. | | \ No newline at end of file +| `WebLinks` | [][shared.WebLink](../../../pkg/models/shared/weblink.md) | :heavy_minus_sign: | An array of weblinks. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/companyrequestbody.md b/sync-for-payables/docs/pkg/models/shared/companyrequestbody.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/companyrequestbody.md rename to sync-for-payables/docs/pkg/models/shared/companyrequestbody.md diff --git a/sync-for-payables/docs/models/shared/connection.md b/sync-for-payables/docs/pkg/models/shared/connection.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/connection.md rename to sync-for-payables/docs/pkg/models/shared/connection.md index 08f1fcba2..aef21052d --- a/sync-for-payables/docs/models/shared/connection.md +++ b/sync-for-payables/docs/pkg/models/shared/connection.md @@ -19,7 +19,7 @@ Before you can use a data connection to pull or push data, the company must gran | `AdditionalProperties` | *interface{}* | :heavy_minus_sign: | N/A | | | `ConnectionInfo` | map[string]*string* | :heavy_minus_sign: | N/A | | | `Created` | *string* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `DataConnectionErrors` | [][DataConnectionError](../../models/shared/dataconnectionerror.md) | :heavy_minus_sign: | N/A | | +| `DataConnectionErrors` | [][shared.DataConnectionError](../../../pkg/models/shared/dataconnectionerror.md) | :heavy_minus_sign: | N/A | | | `ID` | *string* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | | `IntegrationID` | *string* | :heavy_check_mark: | A Codat ID representing the integration. | fd321cb6-7963-4506-b873-e99593a45e30 | | `IntegrationKey` | *string* | :heavy_check_mark: | A unique four-character ID that identifies the platform of the company's data connection. This ensures continuity if the platform changes its name in the future. | | @@ -27,5 +27,5 @@ Before you can use a data connection to pull or push data, the company must gran | `LinkURL` | *string* | :heavy_check_mark: | The link URL your customers can use to authorize access to their business application. | https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/2e2eb431-c1fa-4dc9-93fa-d29781c12bcd/start | | `PlatformName` | *string* | :heavy_check_mark: | Name of integration connected to company. | | | `SourceID` | *string* | :heavy_check_mark: | A source-specific ID used to distinguish between different sources originating from the same data connection. In general, a data connection is a single data source. However, for TrueLayer, `sourceId` is associated with a specific bank and has a many-to-one relationship with the `integrationId`. | 35b92968-9851-4095-ad60-395c95cbcba4 | -| `SourceType` | [ConnectionSourceType](../../models/shared/connectionsourcetype.md) | :heavy_check_mark: | The type of platform of the connection. | Accounting | -| `Status` | [DataConnectionStatus](../../models/shared/dataconnectionstatus.md) | :heavy_check_mark: | The current authorization status of the data connection. | | \ No newline at end of file +| `SourceType` | [shared.SourceType](../../../pkg/models/shared/sourcetype.md) | :heavy_check_mark: | The type of platform of the connection. | Accounting | +| `Status` | [shared.DataConnectionStatus](../../../pkg/models/shared/dataconnectionstatus.md) | :heavy_check_mark: | The current authorization status of the data connection. | | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/shared/connections.md b/sync-for-payables/docs/pkg/models/shared/connections.md new file mode 100644 index 000000000..040385d65 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/connections.md @@ -0,0 +1,12 @@ +# Connections + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `Links` | [shared.Links](../../../pkg/models/shared/links.md) | :heavy_check_mark: | N/A | +| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | +| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | +| `Results` | [][shared.Connection](../../../pkg/models/shared/connection.md) | :heavy_minus_sign: | N/A | +| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/createaccountresponse.md b/sync-for-payables/docs/pkg/models/shared/createaccountresponse.md old mode 100755 new mode 100644 similarity index 93% rename from sync-for-payables/docs/models/shared/createaccountresponse.md rename to sync-for-payables/docs/pkg/models/shared/createaccountresponse.md index d50343c69..9a1039d51 --- a/sync-for-payables/docs/models/shared/createaccountresponse.md +++ b/sync-for-payables/docs/pkg/models/shared/createaccountresponse.md @@ -3,19 +3,19 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Changes` | [][PushOperationChange](../../models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | -| `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `CompletedOnUtc` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Data` | [*Account](../../models/shared/account.md) | :heavy_minus_sign: | > **Language tip:** Accounts are also referred to as **chart of accounts**, **nominal accounts**, and **general ledger**.

View the coverage for accounts in the Data coverage explorer.

## Overview

Accounts are the categories a business uses to record accounting transactions. From the Accounts endpoints, you can retrieve a list of all accounts for a specified company.

The categories for an account include:
* Asset
* Expense
* Income
* Liability
* Equity.

The same account may have a different category based on the integration it is used in. For example, a current account (known as checking in the US) should be categorized as `Asset.Current` for Xero, and `Asset.Bank.Checking` for QuickBooks Online.

At the same time, each integration may have its own requirements to the categories. For example, a Paypal account in Xero is of the `Asset.Bank` category and therefore requires additional properties to be provided.

To determine the list of allowed categories for a specific integration, you can:
- Follow our [Create, update, delete data](https://docs.codat.io/using-the-api/push) guide and use the [Get create account model](https://docs.codat.io/sync-for-payables-api#/operations/get-create-chartOfAccounts-model).
- Refer to the integration's own documentation.

> **Accounts with no category**
>
> If an account is pulled from the chart of accounts and its nominal code does not lie within the category layout for the company's accounts, then the **type** is `Unknown`. The **fullyQualifiedCategory** and **fullyQualifiedName** fields return `null`.
>
> This approach gives a true representation of the company's accounts whilst preventing distorting financials such as a company's profit and loss and balance sheet reports. | | -| `DataConnectionKey` | *string* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | -| `DataType` | [*DataType](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | -| `ErrorMessage` | **string* | :heavy_minus_sign: | A message about the error. | | -| `PushOperationKey` | *string* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | | -| `RequestedOnUtc` | *string* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Status` | [PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | -| `StatusCode` | *int64* | :heavy_check_mark: | Push status code. | | -| `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | | -| ~~`TimeoutInSeconds`~~ | **int* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Number of seconds the push operation must complete within before it times out. | | -| `Validation` | [*Validation](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `Changes` | [][shared.PushOperationChange](../../../pkg/models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | +| `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `CompletedOnUtc` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | +| `Data` | [*shared.Account](../../../pkg/models/shared/account.md) | :heavy_minus_sign: | > **Language tip:** Accounts are also referred to as **chart of accounts**, **nominal accounts**, and **general ledger**.

View the coverage for accounts in the Data coverage explorer.

## Overview

Accounts are the categories a business uses to record accounting transactions. From the Accounts endpoints, you can retrieve a list of all accounts for a specified company.

The categories for an account include:
* Asset
* Expense
* Income
* Liability
* Equity.

The same account may have a different category based on the integration it is used in. For example, a current account (known as checking in the US) should be categorized as `Asset.Current` for Xero, and `Asset.Bank.Checking` for QuickBooks Online.

At the same time, each integration may have its own requirements to the categories. For example, a Paypal account in Xero is of the `Asset.Bank` category and therefore requires additional properties to be provided.

To determine the list of allowed categories for a specific integration, you can:
- Follow our [Create, update, delete data](https://docs.codat.io/using-the-api/push) guide and use the [Get create account model](https://docs.codat.io/sync-for-payables-api#/operations/get-create-chartOfAccounts-model).
- Refer to the integration's own documentation.

> **Accounts with no category**
>
> If an account is pulled from the chart of accounts and its nominal code does not lie within the category layout for the company's accounts, then the **type** is `Unknown`. The **fullyQualifiedCategory** and **fullyQualifiedName** fields return `null`.
>
> This approach gives a true representation of the company's accounts whilst preventing distorting financials such as a company's profit and loss and balance sheet reports. | | +| `DataConnectionKey` | *string* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | +| `DataType` | [*shared.DataType](../../../pkg/models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | +| `ErrorMessage` | **string* | :heavy_minus_sign: | A message about the error. | | +| `PushOperationKey` | *string* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | | +| `RequestedOnUtc` | *string* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | +| `Status` | [shared.PushOperationStatus](../../../pkg/models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | +| `StatusCode` | *int64* | :heavy_check_mark: | Push status code. | | +| `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | | +| ~~`TimeoutInSeconds`~~ | **int* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Number of seconds the push operation must complete within before it times out. | | +| `Validation` | [*shared.Validation](../../../pkg/models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/createbillcreditnoteresponse.md b/sync-for-payables/docs/pkg/models/shared/createbillcreditnoteresponse.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/createbillcreditnoteresponse.md rename to sync-for-payables/docs/pkg/models/shared/createbillcreditnoteresponse.md index cc99ec722..d250c3fda --- a/sync-for-payables/docs/models/shared/createbillcreditnoteresponse.md +++ b/sync-for-payables/docs/pkg/models/shared/createbillcreditnoteresponse.md @@ -5,17 +5,17 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Changes` | [][PushOperationChange](../../models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | +| `Changes` | [][shared.PushOperationChange](../../../pkg/models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | | `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `CompletedOnUtc` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Data` | [*BillCreditNote](../../models/shared/billcreditnote.md) | :heavy_minus_sign: | > **Bill credit notes or credit notes?**
>
> In Codat, bill credit notes represent accounts payable only. For accounts receivable, see [Credit notes](https://docs.codat.io/sync-for-payables-api#/schemas/CreditNote).

View the coverage for bill credit notes in the Data coverage explorer.

## Overview

A bill credit note is issued by a supplier for the purpose of recording credit. For example, if a supplier was unable to fulfil an order that was placed by a business, or delivered damaged goods, they would issue a bill credit note. A bill credit note reduces the amount a business owes to the supplier. It can be refunded to the business or used to pay off future bills.

In the Codat API, a bill credit note is an accounts payable record issued by a [supplier](https://docs.codat.io/sync-for-payables-api#/schemas/Supplier).

A bill credit note includes details of:
* The original and remaining credit.
* Any allocations of the credit against other records, such as [bills](https://docs.codat.io/sync-for-payables-api#/schemas/Bill).
* The supplier that issued the bill credit note. | | +| `Data` | [*shared.BillCreditNote](../../../pkg/models/shared/billcreditnote.md) | :heavy_minus_sign: | > **Bill credit notes or credit notes?**
>
> In Codat, bill credit notes represent accounts payable only. For accounts receivable, see [Credit notes](https://docs.codat.io/sync-for-payables-api#/schemas/CreditNote).

View the coverage for bill credit notes in the Data coverage explorer.

## Overview

A bill credit note is issued by a supplier for the purpose of recording credit. For example, if a supplier was unable to fulfil an order that was placed by a business, or delivered damaged goods, they would issue a bill credit note. A bill credit note reduces the amount a business owes to the supplier. It can be refunded to the business or used to pay off future bills.

In the Codat API, a bill credit note is an accounts payable record issued by a [supplier](https://docs.codat.io/sync-for-payables-api#/schemas/Supplier).

A bill credit note includes details of:
* The original and remaining credit.
* Any allocations of the credit against other records, such as [bills](https://docs.codat.io/sync-for-payables-api#/schemas/Bill).
* The supplier that issued the bill credit note. | | | `DataConnectionKey` | *string* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | -| `DataType` | [*DataType](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | +| `DataType` | [*shared.DataType](../../../pkg/models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | | `ErrorMessage` | **string* | :heavy_minus_sign: | A message about the error. | | | `PushOperationKey` | *string* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | | | `RequestedOnUtc` | *string* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Status` | [PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | +| `Status` | [shared.PushOperationStatus](../../../pkg/models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | | `StatusCode` | *int64* | :heavy_check_mark: | Push status code. | | | `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | | | ~~`TimeoutInSeconds`~~ | **int* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Number of seconds the push operation must complete within before it times out. | | -| `Validation` | [*Validation](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file +| `Validation` | [*shared.Validation](../../../pkg/models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/createbillpaymentresponse.md b/sync-for-payables/docs/pkg/models/shared/createbillpaymentresponse.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/createbillpaymentresponse.md rename to sync-for-payables/docs/pkg/models/shared/createbillpaymentresponse.md index 406fe9bc7..1145c0da1 --- a/sync-for-payables/docs/models/shared/createbillpaymentresponse.md +++ b/sync-for-payables/docs/pkg/models/shared/createbillpaymentresponse.md @@ -5,17 +5,17 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Changes` | [][PushOperationChange](../../models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | +| `Changes` | [][shared.PushOperationChange](../../../pkg/models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | | `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `CompletedOnUtc` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Data` | [*BillPayment](../../models/shared/billpayment.md) | :heavy_minus_sign: | > **Bill payments or payments?**
>
> We distinguish between transactions where the company received money vs. paid money. If the transaction represents a company spending money (accounts payable) we call this a Bill payment.
>
> See [payments](https://docs.codat.io/sync-for-payables-api#/schemas/Payment) for the accounts receivable equivalent of Bill payments, which covers [invoices](https://docs.codat.io/sync-for-payables-api#/schemas/Invoice) and [credit notes](https://docs.codat.io/sync-for-payables-api#/schemas/CreditNote).

> View the coverage for bill payments in the Data coverage explorer.

## Overview

Bill payments include all accounts payable transaction data ([bills](https://docs.codat.io/sync-for-payables-api#/schemas/Bill) and [credit notes against bills](https://docs.codat.io/sync-for-payables-api#/schemas/BillCreditNote)).

A bill payment in Codat usually represents an allocation of money within any customer accounts payable account. This includes, but is not strictly limited to:

- A payment made against a bill — for example, a credit card payment, cheque payment, or cash payment.
- An allocation of a supplier's credit note to a bill or perhaps a refund.
- A bill payment made directly to an accounts payable account. This could be an overpayment or a prepayment, or a refund of a payment made directly to an accounts payable account.

Depending on the bill payments which are allowed by the underlying accounting package, some of these types may be combined. Please see the example data section for samples of what these cases look like.

In Codat, a bill payment contains details of:

- When the bill payment was recorded in the accounting system.
- How much it is for and in the currency.
- Who the payment has been paid to, the _supplier_.
- The types of bill payments, the _line items_.

Some accounting platforms give a separate name to purchases where the payment is made immediately, such as something bought with a credit card or online payment. One example of this would be QuickBooks Online's _expenses_. You can find these types of transactions in our [Direct costs](https://docs.codat.io/sync-for-payables-api#/schemas/DirectCost) data model.

Bill payments is a child data type of [account transactions](https://docs.codat.io/sync-for-payables-api#/schemas/AccountTransaction).

---

## Bill payment types

### Payment of a bill

A payment paying a single bill should have the following properties:

- A `totalAmount` indicating the amount of the bill that was paid. This is always positive.
- A `lines` array containing one element with the following properties:
- An `amount` equal to the `totalAmount` above.
- A `links` array containing one element with the following properties:
- A `type` indicating the type of link, in this case a `Bill`.
- An `id` containing the ID of the bill that was paid.
- An amount of `-totalAmount` (negative `totalAmount`), indicating that the entirety of the paid amount is allocated to the bill.

### Payment of multiple bills

It is possible for one payment to pay multiple bills. This can be represented using two possible formats, depending on how the supplier keeps their books:

1. The payment has multiple entries in its **lines** array, one for each bill that is paid. Each line will follow the above example for paying a bill, and the rules detailed in the data model.
2. The payment has a line with multiple links to each bill. This occurs when the proportion of the original payment allocated to each bill is not available.

Each line is the same as those described above, with the **amount** indicating how much of the payment is allocated to the bill. The **amount** on the lines sum to the **totalAmount** on the payment.

> Pushing batch payments to Xero
>
> When pushing a single bill payment to Xero to pay multiple bills, only the first format is supported—multiple entries in the payment **lines** array.

### Payments and refunds on account

A payment on account, that is a payment that doesn’t pay a specific bill, has one entry in its lines array.

The line has the following properties:

- A **totalAmount** indicating the amount paid by a supplier or refunded to them by a company. A payment to the supplier is always negative. A refund is always positive.
- A **links** array containing one element with the following properties:
- A **type** indicating the type of link. For a payment this is `PaymentOnAccount`. For a refund this is `Refund`.
- The **id** containing the ID of the supplier.
- An amount for the link is `0` **totalAmount** or the amount of the payment or refund.

It is possible to have a payment that is part on account and part allocated to a bill. Each line should follow the examples above.

### Using a credit note to pay a bill

The payment of a bill using a credit note has one entry in its `lines` array. This **line** has the following properties:

- An **amount** indicating the amount of money moved, which in this case is `0`, as the credit note and bill allocation must balance each other.
- A **links** array containing two elements:
- The first link has:
- A **type** indicating the type of link, in this case a `Bill`.
- An **id** containing the ID of the bill that was paid.
- The second link has:
- A **type** indicating the type of link, in this case a `CreditNote`.
- An **id** containing the ID of the credit note used by this payment.

The **amount** field on the **line** equals the **totalAmount** on the payment.

### Refunding a credit note

A bill payment refunding a credit note has one entry in its **lines** array. This line has the following properties:

- An **amount** indicating the amount of the credit note that was refunded. This is always negative, indicating that it is a refund.
- A **links** array containing one element with the following properties:
- A **type** indicating the type of `link`, in this case a `CreditNote`.
- An **id** containing the ID of the credit note that was refunded.

The **totalAmount** field on the payment equals the line's **amount** field. These are both negative, as this is money leaving accounts payable.

### Refunding a payment

If a payment is refunded, for example, when a company overpaid a bill and the overpayment is returned, there are two payment records:

- One for the incoming overpayment.
- Another for the outgoing refund.

The payment issuing the refund is identified by the fact that the **totalAmount** is negative. This payment has one entry in its lines array that have the following properties:

- An **amount** indicating the amount that was refunded. This is always negative.
- A **links** array containing one element with the following properties:
- A **type** indicating the type of a the link, in this case a `BillPayment`.
- An **id** containing the ID of the payment that was refunded.

The **amount** field on the line equals the **totalAmount** on the payment and is negative as this is money leaving accounts payable.

The payment that was refunded can be identified as it has a line where the `amount` on its `line` is positive and the type of the link is `Refund`. This payment may have several entries in its **lines** array if it was partly used to pay an bill. For example, a £1,050 payment paying a £1,000 bill with a refund of £50 has two lines:

- One for £1,000 linked to the bill that was paid
- Another for £50 linked to the payment that refunded the over payment. This link is of type `Refund` but the ID corresponds to a bill payment.

The line linked to the bill payment has the following properties:

- An **amount** indicating the amount that was refunded. This is positive as its money that was added to accounts payable, but is balanced out by the negative amount of the refund.
- A **links** array containing one element with the following properties:
- A **type** indicating the type of the link, in this case a `Refund`.
- An **id** containing the ID of the payment that refunded this line.

> Linked payments
>
> Not all accounting packages support linked payments in this way. In these platforms you may see a payment on account and a refund on account.

## Foreign currencies

There are two types of currency rate that are detailed in the bill payments data type:

Payment currency rate:

- Base currency of the accounts payable account.
- Foreign currency of the bill payment.

Payment line link currency rate:

- Base currency of the item that the link represents.
- Foreign currency of the payment.

These two rates allow the calculation of currency loss or gain for any of the transactions affected by the payment lines. The second rate is used when a bill payment is applied to an item in a currency that does not match either:

- The base currency for the accounts payable account.
- The currency of the item.
| | +| `Data` | [*shared.BillPayment](../../../pkg/models/shared/billpayment.md) | :heavy_minus_sign: | > **Bill payments or payments?**
>
> We distinguish between transactions where the company received money vs. paid money. If the transaction represents a company spending money (accounts payable) we call this a Bill payment.
>
> See [payments](https://docs.codat.io/sync-for-payables-api#/schemas/Payment) for the accounts receivable equivalent of Bill payments, which covers [invoices](https://docs.codat.io/sync-for-payables-api#/schemas/Invoice) and [credit notes](https://docs.codat.io/sync-for-payables-api#/schemas/CreditNote).

> View the coverage for bill payments in the Data coverage explorer.

## Overview

Bill payments include all accounts payable transaction data ([bills](https://docs.codat.io/sync-for-payables-api#/schemas/Bill) and [credit notes against bills](https://docs.codat.io/sync-for-payables-api#/schemas/BillCreditNote)).

A bill payment in Codat usually represents an allocation of money within any customer accounts payable account. This includes, but is not strictly limited to:

- A payment made against a bill — for example, a credit card payment, cheque payment, or cash payment.
- An allocation of a supplier's credit note to a bill or perhaps a refund.
- A bill payment made directly to an accounts payable account. This could be an overpayment or a prepayment, or a refund of a payment made directly to an accounts payable account.

Depending on the bill payments which are allowed by the underlying accounting package, some of these types may be combined. Please see the example data section for samples of what these cases look like.

In Codat, a bill payment contains details of:

- When the bill payment was recorded in the accounting system.
- How much it is for and in the currency.
- Who the payment has been paid to, the _supplier_.
- The types of bill payments, the _line items_.

Some accounting platforms give a separate name to purchases where the payment is made immediately, such as something bought with a credit card or online payment. One example of this would be QuickBooks Online's _expenses_. You can find these types of transactions in our [Direct costs](https://docs.codat.io/sync-for-payables-api#/schemas/DirectCost) data model.

Bill payments is a child data type of [account transactions](https://docs.codat.io/sync-for-payables-api#/schemas/AccountTransaction).

---

## Bill payment types

### Payment of a bill

A payment paying a single bill should have the following properties:

- A `totalAmount` indicating the amount of the bill that was paid. This is always positive.
- A `lines` array containing one element with the following properties:
- An `amount` equal to the `totalAmount` above.
- A `links` array containing one element with the following properties:
- A `type` indicating the type of link, in this case a `Bill`.
- An `id` containing the ID of the bill that was paid.
- An amount of `-totalAmount` (negative `totalAmount`), indicating that the entirety of the paid amount is allocated to the bill.

### Payment of multiple bills

It is possible for one payment to pay multiple bills. This can be represented using two possible formats, depending on how the supplier keeps their books:

1. The payment has multiple entries in its **lines** array, one for each bill that is paid. Each line will follow the above example for paying a bill, and the rules detailed in the data model.
2. The payment has a line with multiple links to each bill. This occurs when the proportion of the original payment allocated to each bill is not available.

Each line is the same as those described above, with the **amount** indicating how much of the payment is allocated to the bill. The **amount** on the lines sum to the **totalAmount** on the payment.

> Pushing batch payments to Xero
>
> When pushing a single bill payment to Xero to pay multiple bills, only the first format is supported—multiple entries in the payment **lines** array.

### Payments and refunds on account

A payment on account, that is a payment that doesn’t pay a specific bill, has one entry in its lines array.

The line has the following properties:

- A **totalAmount** indicating the amount paid by a supplier or refunded to them by a company. A payment to the supplier is always negative. A refund is always positive.
- A **links** array containing one element with the following properties:
- A **type** indicating the type of link. For a payment this is `PaymentOnAccount`. For a refund this is `Refund`.
- The **id** containing the ID of the supplier.
- An amount for the link is `0` **totalAmount** or the amount of the payment or refund.

It is possible to have a payment that is part on account and part allocated to a bill. Each line should follow the examples above.

### Using a credit note to pay a bill

The payment of a bill using a credit note has one entry in its `lines` array. This **line** has the following properties:

- An **amount** indicating the amount of money moved, which in this case is `0`, as the credit note and bill allocation must balance each other.
- A **links** array containing two elements:
- The first link has:
- A **type** indicating the type of link, in this case a `Bill`.
- An **id** containing the ID of the bill that was paid.
- The second link has:
- A **type** indicating the type of link, in this case a `CreditNote`.
- An **id** containing the ID of the credit note used by this payment.

The **amount** field on the **line** equals the **totalAmount** on the payment.

### Refunding a credit note

A bill payment refunding a credit note has one entry in its **lines** array. This line has the following properties:

- An **amount** indicating the amount of the credit note that was refunded. This is always negative, indicating that it is a refund.
- A **links** array containing one element with the following properties:
- A **type** indicating the type of `link`, in this case a `CreditNote`.
- An **id** containing the ID of the credit note that was refunded.

The **totalAmount** field on the payment equals the line's **amount** field. These are both negative, as this is money leaving accounts payable.

### Refunding a payment

If a payment is refunded, for example, when a company overpaid a bill and the overpayment is returned, there are two payment records:

- One for the incoming overpayment.
- Another for the outgoing refund.

The payment issuing the refund is identified by the fact that the **totalAmount** is negative. This payment has one entry in its lines array that have the following properties:

- An **amount** indicating the amount that was refunded. This is always negative.
- A **links** array containing one element with the following properties:
- A **type** indicating the type of a the link, in this case a `BillPayment`.
- An **id** containing the ID of the payment that was refunded.

The **amount** field on the line equals the **totalAmount** on the payment and is negative as this is money leaving accounts payable.

The payment that was refunded can be identified as it has a line where the `amount` on its `line` is positive and the type of the link is `Refund`. This payment may have several entries in its **lines** array if it was partly used to pay an bill. For example, a £1,050 payment paying a £1,000 bill with a refund of £50 has two lines:

- One for £1,000 linked to the bill that was paid
- Another for £50 linked to the payment that refunded the over payment. This link is of type `Refund` but the ID corresponds to a bill payment.

The line linked to the bill payment has the following properties:

- An **amount** indicating the amount that was refunded. This is positive as its money that was added to accounts payable, but is balanced out by the negative amount of the refund.
- A **links** array containing one element with the following properties:
- A **type** indicating the type of the link, in this case a `Refund`.
- An **id** containing the ID of the payment that refunded this line.

> Linked payments
>
> Not all accounting packages support linked payments in this way. In these platforms you may see a payment on account and a refund on account.

## Foreign currencies

There are two types of currency rate that are detailed in the bill payments data type:

Payment currency rate:

- Base currency of the accounts payable account.
- Foreign currency of the bill payment.

Payment line link currency rate:

- Base currency of the item that the link represents.
- Foreign currency of the payment.

These two rates allow the calculation of currency loss or gain for any of the transactions affected by the payment lines. The second rate is used when a bill payment is applied to an item in a currency that does not match either:

- The base currency for the accounts payable account.
- The currency of the item.
| | | `DataConnectionKey` | *string* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | -| `DataType` | [*DataType](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | +| `DataType` | [*shared.DataType](../../../pkg/models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | | `ErrorMessage` | **string* | :heavy_minus_sign: | A message about the error. | | | `PushOperationKey` | *string* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | | | `RequestedOnUtc` | *string* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Status` | [PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | +| `Status` | [shared.PushOperationStatus](../../../pkg/models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | | `StatusCode` | *int64* | :heavy_check_mark: | Push status code. | | | `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | | | ~~`TimeoutInSeconds`~~ | **int* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Number of seconds the push operation must complete within before it times out. | | -| `Validation` | [*Validation](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file +| `Validation` | [*shared.Validation](../../../pkg/models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/createbillresponse.md b/sync-for-payables/docs/pkg/models/shared/createbillresponse.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/createbillresponse.md rename to sync-for-payables/docs/pkg/models/shared/createbillresponse.md index a1a5bf088..6fd552e81 --- a/sync-for-payables/docs/models/shared/createbillresponse.md +++ b/sync-for-payables/docs/pkg/models/shared/createbillresponse.md @@ -5,17 +5,17 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Changes` | [][PushOperationChange](../../models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | +| `Changes` | [][shared.PushOperationChange](../../../pkg/models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | | `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `CompletedOnUtc` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Data` | [*Bill](../../models/shared/bill.md) | :heavy_minus_sign: | > **Invoices or bills?**
>
> We distinguish between invoices where the company *owes money* vs. *is owed money*. If the company has received an invoice, and owes money to someone else (accounts payable) we call this a Bill.
>
> See [Invoices](https://docs.codat.io/sync-for-payables-api#/schemas/Invoice) for the accounts receivable equivalent of bills.

View the coverage for bills in the Data coverage explorer.

## Overview

In Codat, a bill contains details of:
* When the bill was recorded in the accounting system.
* How much the bill is for and the currency of the amount.
* Who the bill was received from — the *supplier*.
* What the bill is for — the *line items*.

Some accounting platforms give a separate name to purchases where the payment is made immediately, such as something bought with a credit card or online payment. One example of this would be QuickBooks Online's *expenses*.

You can find these types of transactions in our [Direct costs](https://docs.codat.io/sync-for-payables-api#/schemas/DirectCost) data model. | | +| `Data` | [*shared.Bill](../../../pkg/models/shared/bill.md) | :heavy_minus_sign: | > **Invoices or bills?**
>
> We distinguish between invoices where the company *owes money* vs. *is owed money*. If the company has received an invoice, and owes money to someone else (accounts payable) we call this a Bill.
>
> See [Invoices](https://docs.codat.io/sync-for-payables-api#/schemas/Invoice) for the accounts receivable equivalent of bills.

View the coverage for bills in the Data coverage explorer.

## Overview

In Codat, a bill contains details of:
* When the bill was recorded in the accounting system.
* How much the bill is for and the currency of the amount.
* Who the bill was received from — the *supplier*.
* What the bill is for — the *line items*.

Some accounting platforms give a separate name to purchases where the payment is made immediately, such as something bought with a credit card or online payment. One example of this would be QuickBooks Online's *expenses*.

You can find these types of transactions in our [Direct costs](https://docs.codat.io/sync-for-payables-api#/schemas/DirectCost) data model. | | | `DataConnectionKey` | *string* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | -| `DataType` | [*DataType](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | +| `DataType` | [*shared.DataType](../../../pkg/models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | | `ErrorMessage` | **string* | :heavy_minus_sign: | A message about the error. | | | `PushOperationKey` | *string* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | | | `RequestedOnUtc` | *string* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Status` | [PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | +| `Status` | [shared.PushOperationStatus](../../../pkg/models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | | `StatusCode` | *int64* | :heavy_check_mark: | Push status code. | | | `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | | | ~~`TimeoutInSeconds`~~ | **int* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Number of seconds the push operation must complete within before it times out. | | -| `Validation` | [*Validation](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file +| `Validation` | [*shared.Validation](../../../pkg/models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/createjournalentryresponse.md b/sync-for-payables/docs/pkg/models/shared/createjournalentryresponse.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/createjournalentryresponse.md rename to sync-for-payables/docs/pkg/models/shared/createjournalentryresponse.md index 0f12a8d3d..07e4e627d --- a/sync-for-payables/docs/models/shared/createjournalentryresponse.md +++ b/sync-for-payables/docs/pkg/models/shared/createjournalentryresponse.md @@ -5,17 +5,17 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `Changes` | [][PushOperationChange](../../models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | +| `Changes` | [][shared.PushOperationChange](../../../pkg/models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | | `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `CompletedOnUtc` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Data` | [*JournalEntry](../../models/shared/journalentry.md) | :heavy_minus_sign: | > **Language tip:** For the top-level record of a company's financial transactions, refer to the [Journals](https://docs.codat.io/sync-for-payables-api#/schemas/Journal) data type

> View the coverage for journal entries in the Data coverage explorer.

## Overview

A journal entry report shows the entries made in a company's general ledger, or [accounts](https://docs.codat.io/sync-for-payables-api#/schemas/Account), when transactions are approved. The journal line items for each journal entry should balance.

A journal entry line item is a single transaction line on the journal entry. For example:

- When a journal entry is recording a receipt of cash, the credit to accounts receivable and the debit to cash are separate line items.
- When a company needs to recognise revenue from an annual contract on a monthly basis, on receipt of cash for month one, they make a debit to deferred income and a credit to revenue.

In Codat a journal entry contains details of:

- The date on which the entry was created and posted.
- Itemised lines, including amounts and currency.
- A reference to the associated accounts.
- A reference to the underlying record. For example, the invoice, bill, or other data type that triggered the posting of the journal entry to the general ledger.

> **Pushing journal entries**
> Codat only supports journal entries in the base currency of the company that are pushed into accounts denominated in the same base currency. | | +| `Data` | [*shared.JournalEntry](../../../pkg/models/shared/journalentry.md) | :heavy_minus_sign: | > **Language tip:** For the top-level record of a company's financial transactions, refer to the [Journals](https://docs.codat.io/sync-for-payables-api#/schemas/Journal) data type

> View the coverage for journal entries in the Data coverage explorer.

## Overview

A journal entry report shows the entries made in a company's general ledger, or [accounts](https://docs.codat.io/sync-for-payables-api#/schemas/Account), when transactions are approved. The journal line items for each journal entry should balance.

A journal entry line item is a single transaction line on the journal entry. For example:

- When a journal entry is recording a receipt of cash, the credit to accounts receivable and the debit to cash are separate line items.
- When a company needs to recognise revenue from an annual contract on a monthly basis, on receipt of cash for month one, they make a debit to deferred income and a credit to revenue.

In Codat a journal entry contains details of:

- The date on which the entry was created and posted.
- Itemised lines, including amounts and currency.
- A reference to the associated accounts.
- A reference to the underlying record. For example, the invoice, bill, or other data type that triggered the posting of the journal entry to the general ledger.

> **Pushing journal entries**
> Codat only supports journal entries in the base currency of the company that are pushed into accounts denominated in the same base currency. | | | `DataConnectionKey` | *string* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | -| `DataType` | [*DataType](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | +| `DataType` | [*shared.DataType](../../../pkg/models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | | `ErrorMessage` | **string* | :heavy_minus_sign: | A message about the error. | | | `PushOperationKey` | *string* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | | | `RequestedOnUtc` | *string* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Status` | [PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | +| `Status` | [shared.PushOperationStatus](../../../pkg/models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | | `StatusCode` | *int64* | :heavy_check_mark: | Push status code. | | | `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | | | ~~`TimeoutInSeconds`~~ | **int* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Number of seconds the push operation must complete within before it times out. | | -| `Validation` | [*Validation](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file +| `Validation` | [*shared.Validation](../../../pkg/models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/createjournalresponse.md b/sync-for-payables/docs/pkg/models/shared/createjournalresponse.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/createjournalresponse.md rename to sync-for-payables/docs/pkg/models/shared/createjournalresponse.md index 45cdcaed2..73f19175a --- a/sync-for-payables/docs/models/shared/createjournalresponse.md +++ b/sync-for-payables/docs/pkg/models/shared/createjournalresponse.md @@ -5,17 +5,17 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Changes` | [][PushOperationChange](../../models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | +| `Changes` | [][shared.PushOperationChange](../../../pkg/models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | | `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `CompletedOnUtc` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Data` | [*Journal](../../models/shared/journal.md) | :heavy_minus_sign: | > **Language tip:** For line items, or individual transactions, of a company's financial documents, refer to the [Journal entries](https://docs.codat.io/sync-for-payables-api#/schemas/JournalEntry) data type

> View the coverage for journals in the Data coverage explorer.

## Overview

In accounting software, journals are used to record all the financial transactions of a company. Each transaction in a journal is represented by a separate [journal entry](https://docs.codat.io/sync-for-payables-api#/schemas/JournalEntry). These entries are used to create the general ledger, which is then used to create the financial statements of a business.

When a company records all their transactions in a single journal, it can become large and difficult to maintain and track. This is why large companies often use multiple journals (also known as subjournals) to categorize and manage journal entries.

Such journals can be divided into two categories:

- Special journals: journals used to record specific types of transactions; for example, a purchases journal, a sales journal, or a cash management journal.
- General journals: journals used to record transactions that fall outside the scope of the special journals.

Multiple journals or subjournals are used in the following Codat integrations:

- [Sage Intacct](https://docs.codat.io/integrations/accounting/sage-intacct/accounting-sage-intacct) (mandatory)
- [Exact Online](https://docs.codat.io/integrations/accounting/exact-online/accounting-exact-online) (mandatory)
- [Oracle NetSuite](https://docs.codat.io/integrations/accounting/netsuite/accounting-netsuite) (optional)

> When pushing journal entries to an accounting platform that doesn’t support multiple journals (multi-book accounting), the entries will be linked to the platform-generic journal. The Journals data type will only include one object.
| | +| `Data` | [*shared.Journal](../../../pkg/models/shared/journal.md) | :heavy_minus_sign: | > **Language tip:** For line items, or individual transactions, of a company's financial documents, refer to the [Journal entries](https://docs.codat.io/sync-for-payables-api#/schemas/JournalEntry) data type

> View the coverage for journals in the Data coverage explorer.

## Overview

In accounting software, journals are used to record all the financial transactions of a company. Each transaction in a journal is represented by a separate [journal entry](https://docs.codat.io/sync-for-payables-api#/schemas/JournalEntry). These entries are used to create the general ledger, which is then used to create the financial statements of a business.

When a company records all their transactions in a single journal, it can become large and difficult to maintain and track. This is why large companies often use multiple journals (also known as subjournals) to categorize and manage journal entries.

Such journals can be divided into two categories:

- Special journals: journals used to record specific types of transactions; for example, a purchases journal, a sales journal, or a cash management journal.
- General journals: journals used to record transactions that fall outside the scope of the special journals.

Multiple journals or subjournals are used in the following Codat integrations:

- [Sage Intacct](https://docs.codat.io/integrations/accounting/sage-intacct/accounting-sage-intacct) (mandatory)
- [Exact Online](https://docs.codat.io/integrations/accounting/exact-online/accounting-exact-online) (mandatory)
- [Oracle NetSuite](https://docs.codat.io/integrations/accounting/netsuite/accounting-netsuite) (optional)

> When pushing journal entries to an accounting platform that doesn’t support multiple journals (multi-book accounting), the entries will be linked to the platform-generic journal. The Journals data type will only include one object.
| | | `DataConnectionKey` | *string* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | -| `DataType` | [*DataType](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | +| `DataType` | [*shared.DataType](../../../pkg/models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | | `ErrorMessage` | **string* | :heavy_minus_sign: | A message about the error. | | | `PushOperationKey` | *string* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | | | `RequestedOnUtc` | *string* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Status` | [PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | +| `Status` | [shared.PushOperationStatus](../../../pkg/models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | | `StatusCode` | *int64* | :heavy_check_mark: | Push status code. | | | `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | | | ~~`TimeoutInSeconds`~~ | **int* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Number of seconds the push operation must complete within before it times out. | | -| `Validation` | [*Validation](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file +| `Validation` | [*shared.Validation](../../../pkg/models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/createsupplierresponse.md b/sync-for-payables/docs/pkg/models/shared/createsupplierresponse.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/createsupplierresponse.md rename to sync-for-payables/docs/pkg/models/shared/createsupplierresponse.md index 2cfce4965..48a1cea0f --- a/sync-for-payables/docs/models/shared/createsupplierresponse.md +++ b/sync-for-payables/docs/pkg/models/shared/createsupplierresponse.md @@ -5,17 +5,17 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Changes` | [][PushOperationChange](../../models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | +| `Changes` | [][shared.PushOperationChange](../../../pkg/models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | | `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `CompletedOnUtc` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Data` | [*Supplier](../../models/shared/supplier.md) | :heavy_minus_sign: | > View the coverage for suppliers in the Data coverage explorer.

## Overview

From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers for a company](https://docs.codat.io/sync-for-payables-api#/operations/list-suppliers). Suppliers' data links to accounts payable [bills](https://docs.codat.io/sync-for-payables-api#/schemas/Bill). | | +| `Data` | [*shared.Supplier](../../../pkg/models/shared/supplier.md) | :heavy_minus_sign: | > View the coverage for suppliers in the Data coverage explorer.

## Overview

From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers for a company](https://docs.codat.io/sync-for-payables-api#/operations/list-suppliers). Suppliers' data links to accounts payable [bills](https://docs.codat.io/sync-for-payables-api#/schemas/Bill). | | | `DataConnectionKey` | *string* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | -| `DataType` | [*DataType](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | +| `DataType` | [*shared.DataType](../../../pkg/models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | | `ErrorMessage` | **string* | :heavy_minus_sign: | A message about the error. | | | `PushOperationKey` | *string* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | | | `RequestedOnUtc` | *string* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Status` | [PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | +| `Status` | [shared.PushOperationStatus](../../../pkg/models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | | `StatusCode` | *int64* | :heavy_check_mark: | Push status code. | | | `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | | | ~~`TimeoutInSeconds`~~ | **int* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Number of seconds the push operation must complete within before it times out. | | -| `Validation` | [*Validation](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file +| `Validation` | [*shared.Validation](../../../pkg/models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/trackingcustomerref.md b/sync-for-payables/docs/pkg/models/shared/customerref.md old mode 100755 new mode 100644 similarity index 97% rename from sync-for-payables/docs/models/shared/trackingcustomerref.md rename to sync-for-payables/docs/pkg/models/shared/customerref.md index 5ca70e6d6..2533613e6 --- a/sync-for-payables/docs/models/shared/trackingcustomerref.md +++ b/sync-for-payables/docs/pkg/models/shared/customerref.md @@ -1,4 +1,4 @@ -# TrackingCustomerRef +# CustomerRef ## Fields diff --git a/sync-for-payables/docs/models/shared/dataconnectionerror.md b/sync-for-payables/docs/pkg/models/shared/dataconnectionerror.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/dataconnectionerror.md rename to sync-for-payables/docs/pkg/models/shared/dataconnectionerror.md diff --git a/sync-for-payables/docs/models/shared/dataconnectionstatus.md b/sync-for-payables/docs/pkg/models/shared/dataconnectionstatus.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/dataconnectionstatus.md rename to sync-for-payables/docs/pkg/models/shared/dataconnectionstatus.md diff --git a/sync-for-payables/docs/models/shared/datastatus.md b/sync-for-payables/docs/pkg/models/shared/datastatus.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/datastatus.md rename to sync-for-payables/docs/pkg/models/shared/datastatus.md index 24decd036..b38a5d0d8 --- a/sync-for-payables/docs/models/shared/datastatus.md +++ b/sync-for-payables/docs/pkg/models/shared/datastatus.md @@ -8,7 +8,7 @@ Describes the state of data in the Codat cache for a company and data type | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `CurrentStatus` | *string* | :heavy_check_mark: | The current status of the dataset in Codat's cache. | | -| `DataType` | [DataStatusDataTypes](../../models/shared/datastatusdatatypes.md) | :heavy_check_mark: | Available Data types | invoices | +| `DataType` | [shared.DataTypes](../../../pkg/models/shared/datatypes.md) | :heavy_check_mark: | Available Data types | invoices | | `LastSuccessfulSync` | *string* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | | `LatestSuccessfulSyncID` | **string* | :heavy_minus_sign: | Unique identifier for the most recent successful sync of data type. | 8220fc90-55b6-47bc-9417-48ac6ea93101 | | `LatestSyncID` | **string* | :heavy_minus_sign: | Unique identifier for most recent sync of data type. | ad474a37-2003-478e-baee-9af9f1ec2fe3 | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/datatype.md b/sync-for-payables/docs/pkg/models/shared/datatype.md old mode 100755 new mode 100644 similarity index 97% rename from sync-for-payables/docs/models/shared/datatype.md rename to sync-for-payables/docs/pkg/models/shared/datatype.md index e1928ba82..550f76533 --- a/sync-for-payables/docs/models/shared/datatype.md +++ b/sync-for-payables/docs/pkg/models/shared/datatype.md @@ -22,6 +22,7 @@ Available Data types | `DataTypeDirectCosts` | directCosts | | `DataTypeDirectIncomes` | directIncomes | | `DataTypeInvoices` | invoices | +| `DataTypeItemReceipts` | itemReceipts | | `DataTypeItems` | items | | `DataTypeJournalEntries` | journalEntries | | `DataTypeJournals` | journals | diff --git a/sync-for-payables/docs/pkg/models/shared/datatypes.md b/sync-for-payables/docs/pkg/models/shared/datatypes.md new file mode 100644 index 000000000..3aa7e83b1 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/datatypes.md @@ -0,0 +1,52 @@ +# DataTypes + +Available Data types + + +## Values + +| Name | Value | +| --------------------------------------- | --------------------------------------- | +| `DataTypesAccountTransactions` | accountTransactions | +| `DataTypesBalanceSheet` | balanceSheet | +| `DataTypesBankAccounts` | bankAccounts | +| `DataTypesBankTransactions` | bankTransactions | +| `DataTypesBillCreditNotes` | billCreditNotes | +| `DataTypesBillPayments` | billPayments | +| `DataTypesBills` | bills | +| `DataTypesCashFlowStatement` | cashFlowStatement | +| `DataTypesChartOfAccounts` | chartOfAccounts | +| `DataTypesCompany` | company | +| `DataTypesCreditNotes` | creditNotes | +| `DataTypesCustomers` | customers | +| `DataTypesDirectCosts` | directCosts | +| `DataTypesDirectIncomes` | directIncomes | +| `DataTypesInvoices` | invoices | +| `DataTypesItemReceipts` | itemReceipts | +| `DataTypesItems` | items | +| `DataTypesJournalEntries` | journalEntries | +| `DataTypesJournals` | journals | +| `DataTypesPaymentMethods` | paymentMethods | +| `DataTypesPayments` | payments | +| `DataTypesProfitAndLoss` | profitAndLoss | +| `DataTypesPurchaseOrders` | purchaseOrders | +| `DataTypesSalesOrders` | salesOrders | +| `DataTypesSuppliers` | suppliers | +| `DataTypesTaxRates` | taxRates | +| `DataTypesTrackingCategories` | trackingCategories | +| `DataTypesTransfers` | transfers | +| `DataTypesBankingAccountBalances` | banking-accountBalances | +| `DataTypesBankingAccounts` | banking-accounts | +| `DataTypesBankingTransactionCategories` | banking-transactionCategories | +| `DataTypesBankingTransactions` | banking-transactions | +| `DataTypesCommerceCompanyInfo` | commerce-companyInfo | +| `DataTypesCommerceCustomers` | commerce-customers | +| `DataTypesCommerceDisputes` | commerce-disputes | +| `DataTypesCommerceLocations` | commerce-locations | +| `DataTypesCommerceOrders` | commerce-orders | +| `DataTypesCommercePaymentMethods` | commerce-paymentMethods | +| `DataTypesCommercePayments` | commerce-payments | +| `DataTypesCommerceProductCategories` | commerce-productCategories | +| `DataTypesCommerceProducts` | commerce-products | +| `DataTypesCommerceTaxComponents` | commerce-taxComponents | +| `DataTypesCommerceTransactions` | commerce-transactions | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/halref.md b/sync-for-payables/docs/pkg/models/shared/halref.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/halref.md rename to sync-for-payables/docs/pkg/models/shared/halref.md diff --git a/sync-for-payables/docs/models/shared/itemref.md b/sync-for-payables/docs/pkg/models/shared/itemref.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/itemref.md rename to sync-for-payables/docs/pkg/models/shared/itemref.md diff --git a/sync-for-payables/docs/models/shared/billcreditnotelineitemitemreference.md b/sync-for-payables/docs/pkg/models/shared/itemreference.md old mode 100755 new mode 100644 similarity index 96% rename from sync-for-payables/docs/models/shared/billcreditnotelineitemitemreference.md rename to sync-for-payables/docs/pkg/models/shared/itemreference.md index c03c987cf..6429ed0da --- a/sync-for-payables/docs/models/shared/billcreditnotelineitemitemreference.md +++ b/sync-for-payables/docs/pkg/models/shared/itemreference.md @@ -1,4 +1,4 @@ -# BillCreditNoteLineItemItemReference +# ItemReference Reference to the item the line is linked to. diff --git a/sync-for-payables/docs/models/shared/billpaymentallocation.md b/sync-for-payables/docs/pkg/models/shared/items.md old mode 100755 new mode 100644 similarity index 81% rename from sync-for-payables/docs/models/shared/billpaymentallocation.md rename to sync-for-payables/docs/pkg/models/shared/items.md index bbac42cf7..0afeb99a5 --- a/sync-for-payables/docs/models/shared/billpaymentallocation.md +++ b/sync-for-payables/docs/pkg/models/shared/items.md @@ -1,9 +1,9 @@ -# BillPaymentAllocation +# Items ## Fields | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `Allocation` | [BillPaymentAllocationAllocation](../../models/shared/billpaymentallocationallocation.md) | :heavy_check_mark: | N/A | -| `Payment` | [PaymentAllocationPayment](../../models/shared/paymentallocationpayment.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `Allocation` | [shared.Allocation](../../../pkg/models/shared/allocation.md) | :heavy_check_mark: | N/A | +| `Payment` | [shared.PaymentAllocationPayment](../../../pkg/models/shared/paymentallocationpayment.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/journal.md b/sync-for-payables/docs/pkg/models/shared/journal.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/journal.md rename to sync-for-payables/docs/pkg/models/shared/journal.md index 310de4207..4e4a0b34d --- a/sync-for-payables/docs/models/shared/journal.md +++ b/sync-for-payables/docs/pkg/models/shared/journal.md @@ -33,10 +33,10 @@ Multiple journals or subjournals are used in the following Codat integrations: | `HasChildren` | **bool* | :heavy_minus_sign: | If the journal has child journals, this value is true. If it doesn’t, it is false. | | | `ID` | **string* | :heavy_minus_sign: | Journal ID. | | | `JournalCode` | **string* | :heavy_minus_sign: | Native journal number or code. | | -| `Metadata` | [*Metadata](../../models/shared/metadata.md) | :heavy_minus_sign: | N/A | | +| `Metadata` | [*shared.Metadata](../../../pkg/models/shared/metadata.md) | :heavy_minus_sign: | N/A | | | `ModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | | `Name` | **string* | :heavy_minus_sign: | Journal name.
The maximum length for a journal name is 256 characters. All characters above that number will be truncated. | | | `ParentID` | **string* | :heavy_minus_sign: | Parent journal ID.
If the journal is a parent journal, this value is not present. | | | `SourceModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | -| `Status` | [*JournalStatus](../../models/shared/journalstatus.md) | :heavy_minus_sign: | Current journal status. | | +| `Status` | [*shared.JournalStatus](../../../pkg/models/shared/journalstatus.md) | :heavy_minus_sign: | Current journal status. | | | `Type` | **string* | :heavy_minus_sign: | The type of the journal. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/journalentry.md b/sync-for-payables/docs/pkg/models/shared/journalentry.md old mode 100755 new mode 100644 similarity index 98% rename from sync-for-payables/docs/models/shared/journalentry.md rename to sync-for-payables/docs/pkg/models/shared/journalentry.md index b019b4013..eb46611ba --- a/sync-for-payables/docs/models/shared/journalentry.md +++ b/sync-for-payables/docs/pkg/models/shared/journalentry.md @@ -31,12 +31,12 @@ In Codat a journal entry contains details of: | `CreatedOn` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | | `Description` | **string* | :heavy_minus_sign: | Optional description of the journal entry. | | | `ID` | **string* | :heavy_minus_sign: | Unique identifier of the journal entry for the company in the accounting platform. | | -| `JournalLines` | [][JournalLine](../../models/shared/journalline.md) | :heavy_minus_sign: | An array of journal lines. | | -| `JournalRef` | [*JournalRef](../../models/shared/journalref.md) | :heavy_minus_sign: | Links journal entries to the relevant journal in accounting integrations that use multi-book accounting (multiple journals). | | -| `Metadata` | [*Metadata](../../models/shared/metadata.md) | :heavy_minus_sign: | N/A | | +| `JournalLines` | [][shared.JournalLine](../../../pkg/models/shared/journalline.md) | :heavy_minus_sign: | An array of journal lines. | | +| `JournalRef` | [*shared.JournalRef](../../../pkg/models/shared/journalref.md) | :heavy_minus_sign: | Links journal entries to the relevant journal in accounting integrations that use multi-book accounting (multiple journals). | | +| `Metadata` | [*shared.Metadata](../../../pkg/models/shared/metadata.md) | :heavy_minus_sign: | N/A | | | `ModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | | `PostedOn` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `RecordRef` | [*JournalEntryRecordReference](../../models/shared/journalentryrecordreference.md) | :heavy_minus_sign: | Links the current record to the underlying record or data type that created it.

For example, if a journal entry is generated based on an invoice, this property allows you to connect the journal entry to the underlying invoice in our data model. | | +| `RecordRef` | [*shared.RecordReference](../../../pkg/models/shared/recordreference.md) | :heavy_minus_sign: | Links the current record to the underlying record or data type that created it.

For example, if a journal entry is generated based on an invoice, this property allows you to connect the journal entry to the underlying invoice in our data model. | | | `SourceModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | -| `SupplementalData` | [*SupplementalData](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | +| `SupplementalData` | [*shared.SupplementalData](../../../pkg/models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | | `UpdatedOn` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/journalline.md b/sync-for-payables/docs/pkg/models/shared/journalline.md old mode 100755 new mode 100644 similarity index 94% rename from sync-for-payables/docs/models/shared/journalline.md rename to sync-for-payables/docs/pkg/models/shared/journalline.md index 73b079c24..951513850 --- a/sync-for-payables/docs/models/shared/journalline.md +++ b/sync-for-payables/docs/pkg/models/shared/journalline.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| `AccountRef` | [*AccountRef](../../models/shared/accountref.md) | :heavy_minus_sign: | Data types that reference an account, for example bill and invoice line items, use an accountRef that includes the ID and name of the linked account. | +| `AccountRef` | [*shared.AccountRef](../../../pkg/models/shared/accountref.md) | :heavy_minus_sign: | Data types that reference an account, for example bill and invoice line items, use an accountRef that includes the ID and name of the linked account. | | `Currency` | **string* | :heavy_minus_sign: | Currency for the journal line item. | | `Description` | **string* | :heavy_minus_sign: | Description of the journal line item. | | `NetAmount` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_check_mark: | Amount for the journal line. Debit entries are considered positive, and credit entries are considered negative. | -| `Tracking` | [*JournalLineTracking](../../models/shared/journallinetracking.md) | :heavy_minus_sign: | List of record refs associated with the tracking information for the line (eg to a Tracking Category, or customer etc.) | \ No newline at end of file +| `Tracking` | [*shared.JournalLineTracking](../../../pkg/models/shared/journallinetracking.md) | :heavy_minus_sign: | List of record refs associated with the tracking information for the line (eg to a Tracking Category, or customer etc.) | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/shared/journallinetracking.md b/sync-for-payables/docs/pkg/models/shared/journallinetracking.md new file mode 100644 index 000000000..4fe1e306a --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/journallinetracking.md @@ -0,0 +1,10 @@ +# JournalLineTracking + +List of record refs associated with the tracking information for the line (eg to a Tracking Category, or customer etc.) + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `RecordRefs` | [][shared.RecordRef](../../../pkg/models/shared/recordref.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/shared/journalprototype.md b/sync-for-payables/docs/pkg/models/shared/journalprototype.md new file mode 100644 index 000000000..b5e38cc72 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/journalprototype.md @@ -0,0 +1,14 @@ +# JournalPrototype + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `CreatedOn` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | +| `HasChildren` | **bool* | :heavy_minus_sign: | If the journal has child journals, this value is true. If it doesn’t, it is false. | | +| `JournalCode` | **string* | :heavy_minus_sign: | Native journal number or code. | | +| `Name` | **string* | :heavy_minus_sign: | Journal name.
The maximum length for a journal name is 256 characters. All characters above that number will be truncated. | | +| `ParentID` | **string* | :heavy_minus_sign: | Parent journal ID.
If the journal is a parent journal, this value is not present. | | +| `Status` | [*shared.JournalStatus](../../../pkg/models/shared/journalstatus.md) | :heavy_minus_sign: | Current journal status. | | +| `Type` | **string* | :heavy_minus_sign: | The type of the journal. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/journalref.md b/sync-for-payables/docs/pkg/models/shared/journalref.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/journalref.md rename to sync-for-payables/docs/pkg/models/shared/journalref.md diff --git a/sync-for-payables/docs/pkg/models/shared/journals.md b/sync-for-payables/docs/pkg/models/shared/journals.md new file mode 100644 index 000000000..41c4d258a --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/journals.md @@ -0,0 +1,12 @@ +# Journals + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `Links` | [shared.Links](../../../pkg/models/shared/links.md) | :heavy_check_mark: | N/A | +| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | +| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | +| `Results` | [][shared.Journal](../../../pkg/models/shared/journal.md) | :heavy_minus_sign: | N/A | +| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/journalstatus.md b/sync-for-payables/docs/pkg/models/shared/journalstatus.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/journalstatus.md rename to sync-for-payables/docs/pkg/models/shared/journalstatus.md diff --git a/sync-for-payables/docs/pkg/models/shared/links.md b/sync-for-payables/docs/pkg/models/shared/links.md new file mode 100644 index 000000000..c88d56275 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/links.md @@ -0,0 +1,11 @@ +# Links + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `Current` | [shared.HalRef](../../../pkg/models/shared/halref.md) | :heavy_check_mark: | N/A | +| `Next` | [*shared.HalRef](../../../pkg/models/shared/halref.md) | :heavy_minus_sign: | N/A | +| `Previous` | [*shared.HalRef](../../../pkg/models/shared/halref.md) | :heavy_minus_sign: | N/A | +| `Self` | [shared.HalRef](../../../pkg/models/shared/halref.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/metadata.md b/sync-for-payables/docs/pkg/models/shared/metadata.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/metadata.md rename to sync-for-payables/docs/pkg/models/shared/metadata.md diff --git a/sync-for-payables/docs/models/shared/paymentallocationpayment.md b/sync-for-payables/docs/pkg/models/shared/paymentallocationpayment.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/paymentallocationpayment.md rename to sync-for-payables/docs/pkg/models/shared/paymentallocationpayment.md index 574c7e4cd..030698175 --- a/sync-for-payables/docs/models/shared/paymentallocationpayment.md +++ b/sync-for-payables/docs/pkg/models/shared/paymentallocationpayment.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `AccountRef` | [*AccountRef](../../models/shared/accountref.md) | :heavy_minus_sign: | Data types that reference an account, for example bill and invoice line items, use an accountRef that includes the ID and name of the linked account. | | +| `AccountRef` | [*shared.AccountRef](../../../pkg/models/shared/accountref.md) | :heavy_minus_sign: | Data types that reference an account, for example bill and invoice line items, use an accountRef that includes the ID and name of the linked account. | | | `Currency` | **string* | :heavy_minus_sign: | The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.

## Unknown currencies

In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction.

There are only a very small number of edge cases where this currency code is returned by the Codat system. | GBP | | `CurrencyRate` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_minus_sign: | Rate to convert the total amount of the payment into the base currency for the company at the time of the payment.

Currency rates in Codat are implemented as the multiple of foreign currency units to each base currency unit.

It is not possible to perform the currency conversion with two or more non-base currencies participating in the transaction. For example, if a company's base currency is USD, and it has a bill issued in EUR, then the bill payment must happen in USD or EUR.

Where the currency rate is provided by the underlying accounting platform, it will be available from Codat with the same precision (up to a maximum of 9 decimal places).

For accounting platforms which do not provide an explicit currency rate, it is calculated as `baseCurrency / foreignCurrency` and will be returned to 9 decimal places.

## Examples with base currency of GBP

\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (GBP) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **USD** \| $20 \| 0.781 \| £15.62 \|
\| **EUR** \| €20 \| 0.885 \| £17.70 \|
\| **RUB** \| ₽20 \| 0.011 \| £0.22 \|

## Examples with base currency of USD

\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (USD) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **GBP** \| £20 \| 1.277 \| $25.54 \|
\| **EUR** \| €20 \| 1.134 \| $22.68 \|
\| **RUB** \| ₽20 \| 0.015 \| $0.30 \| | | | `ID` | **string* | :heavy_minus_sign: | Identifier of the allocated payment. | | diff --git a/sync-for-payables/docs/pkg/models/shared/paymentmethod.md b/sync-for-payables/docs/pkg/models/shared/paymentmethod.md new file mode 100644 index 000000000..da7f45253 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/paymentmethod.md @@ -0,0 +1,20 @@ +# PaymentMethod + +> View the coverage for payment methods in the Data coverage explorer. + +## Overview + +A Payment Method represents the payment method(s) used to pay a Bill. Payment Methods are referenced on [Bill Payments](https://docs.codat.io/sync-for-payables-api#/schemas/BillPayment) and [Payments](https://docs.codat.io/sync-for-payables-api#/schemas/Payment). + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ID` | **string* | :heavy_minus_sign: | Unique identifier for the payment method. | | +| `Metadata` | [*shared.Metadata](../../../pkg/models/shared/metadata.md) | :heavy_minus_sign: | N/A | | +| `ModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | +| `Name` | **string* | :heavy_minus_sign: | Name of the payment method. | | +| `SourceModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | +| `Status` | [*shared.PaymentMethodStatus](../../../pkg/models/shared/paymentmethodstatus.md) | :heavy_minus_sign: | Status of the Payment Method. | | +| `Type` | [*shared.PaymentMethodType](../../../pkg/models/shared/paymentmethodtype.md) | :heavy_minus_sign: | Method of payment. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/paymentmethodref.md b/sync-for-payables/docs/pkg/models/shared/paymentmethodref.md old mode 100755 new mode 100644 similarity index 92% rename from sync-for-payables/docs/models/shared/paymentmethodref.md rename to sync-for-payables/docs/pkg/models/shared/paymentmethodref.md index 26eaa8224..8d5711794 --- a/sync-for-payables/docs/models/shared/paymentmethodref.md +++ b/sync-for-payables/docs/pkg/models/shared/paymentmethodref.md @@ -1,6 +1,6 @@ # PaymentMethodRef -The payment method the record is linked to in the accounting or commerce platform. +The Payment Method to which the payment is linked in the accounting platform. ## Fields diff --git a/sync-for-payables/docs/pkg/models/shared/paymentmethods.md b/sync-for-payables/docs/pkg/models/shared/paymentmethods.md new file mode 100644 index 000000000..763ba1905 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/paymentmethods.md @@ -0,0 +1,12 @@ +# PaymentMethods + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `Links` | [shared.Links](../../../pkg/models/shared/links.md) | :heavy_check_mark: | N/A | +| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | +| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | +| `Results` | [][shared.PaymentMethod](../../../pkg/models/shared/paymentmethod.md) | :heavy_minus_sign: | N/A | +| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/paymentmethodstatus.md b/sync-for-payables/docs/pkg/models/shared/paymentmethodstatus.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/paymentmethodstatus.md rename to sync-for-payables/docs/pkg/models/shared/paymentmethodstatus.md diff --git a/sync-for-payables/docs/models/shared/paymentmethodtype.md b/sync-for-payables/docs/pkg/models/shared/paymentmethodtype.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/paymentmethodtype.md rename to sync-for-payables/docs/pkg/models/shared/paymentmethodtype.md diff --git a/sync-for-payables/docs/models/operations/updatecompanyrequest.md b/sync-for-payables/docs/pkg/models/shared/phonenumber.md old mode 100755 new mode 100644 similarity index 65% rename from sync-for-payables/docs/models/operations/updatecompanyrequest.md rename to sync-for-payables/docs/pkg/models/shared/phonenumber.md index 69baf43b1..88c4ff1fc --- a/sync-for-payables/docs/models/operations/updatecompanyrequest.md +++ b/sync-for-payables/docs/pkg/models/shared/phonenumber.md @@ -1,9 +1,9 @@ -# UpdateCompanyRequest +# PhoneNumber ## Fields | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `CompanyRequestBody` | [*shared.CompanyRequestBody](../../models/shared/companyrequestbody.md) | :heavy_minus_sign: | N/A | | -| `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | \ No newline at end of file +| `Number` | *string* | :heavy_check_mark: | A phone number. | +44 25691 154789 | +| `Type` | [shared.PhoneNumberType](../../../pkg/models/shared/phonenumbertype.md) | :heavy_check_mark: | The type of phone number | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/phonenumbertype.md b/sync-for-payables/docs/pkg/models/shared/phonenumbertype.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/phonenumbertype.md rename to sync-for-payables/docs/pkg/models/shared/phonenumbertype.md diff --git a/sync-for-payables/docs/models/shared/pulloperation.md b/sync-for-payables/docs/pkg/models/shared/pulloperation.md old mode 100755 new mode 100644 similarity index 91% rename from sync-for-payables/docs/models/shared/pulloperation.md rename to sync-for-payables/docs/pkg/models/shared/pulloperation.md index 4872917b7..5ccfaf729 --- a/sync-for-payables/docs/models/shared/pulloperation.md +++ b/sync-for-payables/docs/pkg/models/shared/pulloperation.md @@ -11,11 +11,12 @@ Information about a queued, in progress or completed pull operation. | `CompanyID` | *string* | :heavy_check_mark: | Unique identifier of the company associated to this pull operation. | 22ece347-e5f6-4896-95e0-35a4c7f17023 | | `Completed` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | | `ConnectionID` | *string* | :heavy_check_mark: | Unique identifier of the connection associated to this pull operation. | 50830828-7d39-4367-b0eb-5ddb2de5faa5 | -| `DataType` | [DataType](../../models/shared/datatype.md) | :heavy_check_mark: | Available Data types | invoices | +| `DataType` | *string* | :heavy_check_mark: | The data type you are requesting in a pull operation. | | | `ErrorMessage` | **string* | :heavy_minus_sign: | A message about a transient or persistent error. | | | `ID` | *string* | :heavy_check_mark: | Unique identifier of the pull operation. | 943accd0-4247-42d8-865b-363c8629e1da | -| `IsCompleted` | *bool* | :heavy_check_mark: | `True` if the pull operation completed successfully. | | +| `IsCompleted` | *bool* | :heavy_check_mark: | `True` if the pull operation is completed successfully. The `isCompleted` property is not queryable. To filter failed pull operations, query by `status!=Complete&&status!=NotSupported` instead. | | | `IsErrored` | *bool* | :heavy_check_mark: | `True` if the pull operation entered an error state. | | | `Progress` | *int64* | :heavy_check_mark: | An integer signifying the progress of the pull operation. | | | `Requested` | *string* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Status` | [PullOperationStatus](../../models/shared/pulloperationstatus.md) | :heavy_check_mark: | The current status of the pull operation. | Complete | \ No newline at end of file +| `Status` | [shared.PullOperationStatus](../../../pkg/models/shared/pulloperationstatus.md) | :heavy_check_mark: | The current status of the pull operation. | Complete | +| `StatusDescription` | **string* | :heavy_minus_sign: | Additional information about the dataset status. | Paused until 2022-10-23T00:00:00.000Z | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/shared/pulloperations.md b/sync-for-payables/docs/pkg/models/shared/pulloperations.md new file mode 100644 index 000000000..1a9c503f3 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/pulloperations.md @@ -0,0 +1,12 @@ +# PullOperations + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `Links` | [shared.Links](../../../pkg/models/shared/links.md) | :heavy_check_mark: | N/A | +| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | +| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | +| `Results` | [][shared.PullOperation](../../../pkg/models/shared/pulloperation.md) | :heavy_minus_sign: | N/A | +| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/pulloperationstatus.md b/sync-for-payables/docs/pkg/models/shared/pulloperationstatus.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/pulloperationstatus.md rename to sync-for-payables/docs/pkg/models/shared/pulloperationstatus.md diff --git a/sync-for-payables/docs/models/shared/billpurchaseorderreference.md b/sync-for-payables/docs/pkg/models/shared/purchaseorderreference.md old mode 100755 new mode 100644 similarity index 98% rename from sync-for-payables/docs/models/shared/billpurchaseorderreference.md rename to sync-for-payables/docs/pkg/models/shared/purchaseorderreference.md index 61800f511..486535ab6 --- a/sync-for-payables/docs/models/shared/billpurchaseorderreference.md +++ b/sync-for-payables/docs/pkg/models/shared/purchaseorderreference.md @@ -1,4 +1,4 @@ -# BillPurchaseOrderReference +# PurchaseOrderReference ## Fields diff --git a/sync-for-payables/docs/models/shared/pushchangetype.md b/sync-for-payables/docs/pkg/models/shared/pushchangetype.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/pushchangetype.md rename to sync-for-payables/docs/pkg/models/shared/pushchangetype.md diff --git a/sync-for-payables/docs/models/shared/pushfieldvalidation.md b/sync-for-payables/docs/pkg/models/shared/pushfieldvalidation.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/pushfieldvalidation.md rename to sync-for-payables/docs/pkg/models/shared/pushfieldvalidation.md diff --git a/sync-for-payables/docs/models/shared/pushoperation.md b/sync-for-payables/docs/pkg/models/shared/pushoperation.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/pushoperation.md rename to sync-for-payables/docs/pkg/models/shared/pushoperation.md index 3a8246d6e..42931382d --- a/sync-for-payables/docs/models/shared/pushoperation.md +++ b/sync-for-payables/docs/pkg/models/shared/pushoperation.md @@ -5,16 +5,16 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Changes` | [][PushOperationChange](../../models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | +| `Changes` | [][shared.PushOperationChange](../../../pkg/models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | | `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `CompletedOnUtc` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | | `DataConnectionKey` | *string* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | -| `DataType` | [*DataType](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | +| `DataType` | [*shared.DataType](../../../pkg/models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | | `ErrorMessage` | **string* | :heavy_minus_sign: | A message about the error. | | | `PushOperationKey` | *string* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | | | `RequestedOnUtc` | *string* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Status` | [PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | +| `Status` | [shared.PushOperationStatus](../../../pkg/models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | | `StatusCode` | *int64* | :heavy_check_mark: | Push status code. | | | `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | | | ~~`TimeoutInSeconds`~~ | **int* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Number of seconds the push operation must complete within before it times out. | | -| `Validation` | [*Validation](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file +| `Validation` | [*shared.Validation](../../../pkg/models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/shared/pushoperationchange.md b/sync-for-payables/docs/pkg/models/shared/pushoperationchange.md new file mode 100644 index 000000000..c8baaf9b7 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/pushoperationchange.md @@ -0,0 +1,10 @@ +# PushOperationChange + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `AttachmentID` | **string* | :heavy_minus_sign: | Unique identifier for the attachment created otherwise null. | +| `RecordRef` | [*shared.PushOperationRef](../../../pkg/models/shared/pushoperationref.md) | :heavy_minus_sign: | N/A | +| `Type` | [*shared.PushChangeType](../../../pkg/models/shared/pushchangetype.md) | :heavy_minus_sign: | Type of change being applied to record in third party platform. | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/shared/pushoperationref.md b/sync-for-payables/docs/pkg/models/shared/pushoperationref.md new file mode 100644 index 000000000..12980b5fd --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/pushoperationref.md @@ -0,0 +1,9 @@ +# PushOperationRef + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `DataType` | [*shared.DataType](../../../pkg/models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | +| `ID` | **string* | :heavy_minus_sign: | Unique identifier for a push operation. | | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/shared/pushoperations.md b/sync-for-payables/docs/pkg/models/shared/pushoperations.md new file mode 100644 index 000000000..6ca532324 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/pushoperations.md @@ -0,0 +1,12 @@ +# PushOperations + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `Links` | [shared.Links](../../../pkg/models/shared/links.md) | :heavy_check_mark: | N/A | +| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | +| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | +| `Results` | [][shared.PushOperation](../../../pkg/models/shared/pushoperation.md) | :heavy_minus_sign: | N/A | +| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/pushoperationstatus.md b/sync-for-payables/docs/pkg/models/shared/pushoperationstatus.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/pushoperationstatus.md rename to sync-for-payables/docs/pkg/models/shared/pushoperationstatus.md diff --git a/sync-for-payables/docs/pkg/models/shared/pushoption.md b/sync-for-payables/docs/pkg/models/shared/pushoption.md new file mode 100644 index 000000000..8e41624f7 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/pushoption.md @@ -0,0 +1,14 @@ +# PushOption + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `Description` | **string* | :heavy_minus_sign: | A description of the property. | +| `DisplayName` | *string* | :heavy_check_mark: | The property's display name. | +| `Options` | [][shared.PushOptionChoice](../../../pkg/models/shared/pushoptionchoice.md) | :heavy_minus_sign: | N/A | +| `Properties` | map[string][shared.PushOptionProperty](../../../pkg/models/shared/pushoptionproperty.md) | :heavy_minus_sign: | N/A | +| `Required` | *bool* | :heavy_check_mark: | The property is required if `True`. | +| `Type` | [shared.PushOptionType](../../../pkg/models/shared/pushoptiontype.md) | :heavy_check_mark: | The option type. | +| `Validation` | [*shared.PushValidationInfo](../../../pkg/models/shared/pushvalidationinfo.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/shared/pushoptionchoice.md b/sync-for-payables/docs/pkg/models/shared/pushoptionchoice.md new file mode 100644 index 000000000..7cc123d5e --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/pushoptionchoice.md @@ -0,0 +1,12 @@ +# PushOptionChoice + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `Description` | **string* | :heavy_minus_sign: | A description of the property. | +| `DisplayName` | **string* | :heavy_minus_sign: | The property's display name. | +| `Required` | **bool* | :heavy_minus_sign: | The property is required if `True`. | +| `Type` | [*shared.PushOptionType](../../../pkg/models/shared/pushoptiontype.md) | :heavy_minus_sign: | The option type. | +| `Value` | **string* | :heavy_minus_sign: | Allowed value for field. | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/shared/pushoptionproperty.md b/sync-for-payables/docs/pkg/models/shared/pushoptionproperty.md new file mode 100644 index 000000000..7699d7661 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/pushoptionproperty.md @@ -0,0 +1,14 @@ +# PushOptionProperty + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `Description` | *string* | :heavy_check_mark: | A description of the property. | +| `DisplayName` | *string* | :heavy_check_mark: | The property's display name. | +| `Options` | [][shared.PushOptionChoice](../../../pkg/models/shared/pushoptionchoice.md) | :heavy_minus_sign: | N/A | +| `Properties` | map[string][shared.PushOptionProperty](../../../pkg/models/shared/pushoptionproperty.md) | :heavy_minus_sign: | N/A | +| `Required` | *bool* | :heavy_check_mark: | The property is required if `True`. | +| `Type` | [shared.PushOptionType](../../../pkg/models/shared/pushoptiontype.md) | :heavy_check_mark: | The option type. | +| `Validation` | [*shared.PushValidationInfo](../../../pkg/models/shared/pushvalidationinfo.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/pushoptiontype.md b/sync-for-payables/docs/pkg/models/shared/pushoptiontype.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/pushoptiontype.md rename to sync-for-payables/docs/pkg/models/shared/pushoptiontype.md diff --git a/sync-for-payables/docs/pkg/models/shared/pushvalidationinfo.md b/sync-for-payables/docs/pkg/models/shared/pushvalidationinfo.md new file mode 100644 index 000000000..b4732f20c --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/pushvalidationinfo.md @@ -0,0 +1,9 @@ +# PushValidationInfo + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `Information` | [][shared.PushFieldValidation](../../../pkg/models/shared/pushfieldvalidation.md) | :heavy_minus_sign: | N/A | +| `Warnings` | [][shared.PushFieldValidation](../../../pkg/models/shared/pushfieldvalidation.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/shared/recordlinereference.md b/sync-for-payables/docs/pkg/models/shared/recordlinereference.md new file mode 100644 index 000000000..def653ab5 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/recordlinereference.md @@ -0,0 +1,12 @@ +# RecordLineReference + +Reference to the purchase order line this line was generated from. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `DataType` | [*shared.BillLineItemDataType](../../../pkg/models/shared/billlineitemdatatype.md) | :heavy_minus_sign: | Allowed name of the 'dataType'. | +| `ID` | **string* | :heavy_minus_sign: | 'id' of the underlying record. | +| `LineNumber` | **string* | :heavy_minus_sign: | Line number of the underlying record. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/recordref.md b/sync-for-payables/docs/pkg/models/shared/recordref.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/recordref.md rename to sync-for-payables/docs/pkg/models/shared/recordref.md diff --git a/sync-for-payables/docs/models/shared/journalentryrecordreference.md b/sync-for-payables/docs/pkg/models/shared/recordreference.md old mode 100755 new mode 100644 similarity index 97% rename from sync-for-payables/docs/models/shared/journalentryrecordreference.md rename to sync-for-payables/docs/pkg/models/shared/recordreference.md index a301013a8..752befe82 --- a/sync-for-payables/docs/models/shared/journalentryrecordreference.md +++ b/sync-for-payables/docs/pkg/models/shared/recordreference.md @@ -1,4 +1,4 @@ -# JournalEntryRecordReference +# RecordReference Links the current record to the underlying record or data type that created it. diff --git a/sync-for-payables/docs/pkg/models/shared/schemadatatype.md b/sync-for-payables/docs/pkg/models/shared/schemadatatype.md new file mode 100644 index 000000000..d2910a0d3 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/schemadatatype.md @@ -0,0 +1,52 @@ +# SchemaDataType + +Available Data types + + +## Values + +| Name | Value | +| -------------------------------------------- | -------------------------------------------- | +| `SchemaDataTypeAccountTransactions` | accountTransactions | +| `SchemaDataTypeBalanceSheet` | balanceSheet | +| `SchemaDataTypeBankAccounts` | bankAccounts | +| `SchemaDataTypeBankTransactions` | bankTransactions | +| `SchemaDataTypeBillCreditNotes` | billCreditNotes | +| `SchemaDataTypeBillPayments` | billPayments | +| `SchemaDataTypeBills` | bills | +| `SchemaDataTypeCashFlowStatement` | cashFlowStatement | +| `SchemaDataTypeChartOfAccounts` | chartOfAccounts | +| `SchemaDataTypeCompany` | company | +| `SchemaDataTypeCreditNotes` | creditNotes | +| `SchemaDataTypeCustomers` | customers | +| `SchemaDataTypeDirectCosts` | directCosts | +| `SchemaDataTypeDirectIncomes` | directIncomes | +| `SchemaDataTypeInvoices` | invoices | +| `SchemaDataTypeItemReceipts` | itemReceipts | +| `SchemaDataTypeItems` | items | +| `SchemaDataTypeJournalEntries` | journalEntries | +| `SchemaDataTypeJournals` | journals | +| `SchemaDataTypePaymentMethods` | paymentMethods | +| `SchemaDataTypePayments` | payments | +| `SchemaDataTypeProfitAndLoss` | profitAndLoss | +| `SchemaDataTypePurchaseOrders` | purchaseOrders | +| `SchemaDataTypeSalesOrders` | salesOrders | +| `SchemaDataTypeSuppliers` | suppliers | +| `SchemaDataTypeTaxRates` | taxRates | +| `SchemaDataTypeTrackingCategories` | trackingCategories | +| `SchemaDataTypeTransfers` | transfers | +| `SchemaDataTypeBankingAccountBalances` | banking-accountBalances | +| `SchemaDataTypeBankingAccounts` | banking-accounts | +| `SchemaDataTypeBankingTransactionCategories` | banking-transactionCategories | +| `SchemaDataTypeBankingTransactions` | banking-transactions | +| `SchemaDataTypeCommerceCompanyInfo` | commerce-companyInfo | +| `SchemaDataTypeCommerceCustomers` | commerce-customers | +| `SchemaDataTypeCommerceDisputes` | commerce-disputes | +| `SchemaDataTypeCommerceLocations` | commerce-locations | +| `SchemaDataTypeCommerceOrders` | commerce-orders | +| `SchemaDataTypeCommercePaymentMethods` | commerce-paymentMethods | +| `SchemaDataTypeCommercePayments` | commerce-payments | +| `SchemaDataTypeCommerceProductCategories` | commerce-productCategories | +| `SchemaDataTypeCommerceProducts` | commerce-products | +| `SchemaDataTypeCommerceTaxComponents` | commerce-taxComponents | +| `SchemaDataTypeCommerceTransactions` | commerce-transactions | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/security.md b/sync-for-payables/docs/pkg/models/shared/security.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/security.md rename to sync-for-payables/docs/pkg/models/shared/security.md diff --git a/sync-for-payables/docs/pkg/models/shared/sourcetype.md b/sync-for-payables/docs/pkg/models/shared/sourcetype.md new file mode 100644 index 000000000..c140f4ee2 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/sourcetype.md @@ -0,0 +1,14 @@ +# SourceType + +The type of platform of the connection. + + +## Values + +| Name | Value | +| ---------------------- | ---------------------- | +| `SourceTypeAccounting` | Accounting | +| `SourceTypeBanking` | Banking | +| `SourceTypeCommerce` | Commerce | +| `SourceTypeOther` | Other | +| `SourceTypeUnknown` | Unknown | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/status.md b/sync-for-payables/docs/pkg/models/shared/status.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/status.md rename to sync-for-payables/docs/pkg/models/shared/status.md diff --git a/sync-for-payables/docs/models/shared/supplementaldata.md b/sync-for-payables/docs/pkg/models/shared/supplementaldata.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/supplementaldata.md rename to sync-for-payables/docs/pkg/models/shared/supplementaldata.md diff --git a/sync-for-payables/docs/models/shared/supplier.md b/sync-for-payables/docs/pkg/models/shared/supplier.md old mode 100755 new mode 100644 similarity index 97% rename from sync-for-payables/docs/models/shared/supplier.md rename to sync-for-payables/docs/pkg/models/shared/supplier.md index c83da44e1..2ea255380 --- a/sync-for-payables/docs/models/shared/supplier.md +++ b/sync-for-payables/docs/pkg/models/shared/supplier.md @@ -11,17 +11,17 @@ From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Addresses` | [][Address](../../models/shared/address.md) | :heavy_minus_sign: | An array of Addresses. | | +| `Addresses` | [][shared.Address](../../../pkg/models/shared/address.md) | :heavy_minus_sign: | An array of Addresses. | | | `ContactName` | **string* | :heavy_minus_sign: | Name of the main contact for the supplier. | | | `DefaultCurrency` | **string* | :heavy_minus_sign: | Default currency the supplier's transactional data is recorded in. | | | `EmailAddress` | **string* | :heavy_minus_sign: | Email address that the supplier may be contacted on. | | | `ID` | **string* | :heavy_minus_sign: | Identifier for the supplier, unique to the company in the accounting platform. | | -| `Metadata` | [*Metadata](../../models/shared/metadata.md) | :heavy_minus_sign: | N/A | | +| `Metadata` | [*shared.Metadata](../../../pkg/models/shared/metadata.md) | :heavy_minus_sign: | N/A | | | `ModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | | `Phone` | **string* | :heavy_minus_sign: | Phone number that the supplier may be contacted on. | +44 25691 154789 | | `RegistrationNumber` | **string* | :heavy_minus_sign: | Company number of the supplier. In the UK, this is typically the company registration number issued by Companies House. | | | `SourceModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | -| `Status` | [SupplierStatus](../../models/shared/supplierstatus.md) | :heavy_check_mark: | Status of the supplier. | | -| `SupplementalData` | [*SupplementalData](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | +| `Status` | [shared.SupplierStatus](../../../pkg/models/shared/supplierstatus.md) | :heavy_check_mark: | Status of the supplier. | | +| `SupplementalData` | [*shared.SupplementalData](../../../pkg/models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | | `SupplierName` | **string* | :heavy_minus_sign: | Name of the supplier as recorded in the accounting system, typically the company name. | | | `TaxNumber` | **string* | :heavy_minus_sign: | Supplier's company tax number. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/supplierref.md b/sync-for-payables/docs/pkg/models/shared/supplierref.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/supplierref.md rename to sync-for-payables/docs/pkg/models/shared/supplierref.md diff --git a/sync-for-payables/docs/pkg/models/shared/suppliers.md b/sync-for-payables/docs/pkg/models/shared/suppliers.md new file mode 100644 index 000000000..383a14eaf --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/suppliers.md @@ -0,0 +1,12 @@ +# Suppliers + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `Links` | [shared.Links](../../../pkg/models/shared/links.md) | :heavy_check_mark: | N/A | +| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | +| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | +| `Results` | [][shared.Supplier](../../../pkg/models/shared/supplier.md) | :heavy_minus_sign: | N/A | +| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/supplierstatus.md b/sync-for-payables/docs/pkg/models/shared/supplierstatus.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/supplierstatus.md rename to sync-for-payables/docs/pkg/models/shared/supplierstatus.md diff --git a/sync-for-payables/docs/models/shared/taxrate.md b/sync-for-payables/docs/pkg/models/shared/taxrate.md old mode 100755 new mode 100644 similarity index 95% rename from sync-for-payables/docs/models/shared/taxrate.md rename to sync-for-payables/docs/pkg/models/shared/taxrate.md index 50c96cea1..744d0b5c2 --- a/sync-for-payables/docs/models/shared/taxrate.md +++ b/sync-for-payables/docs/pkg/models/shared/taxrate.md @@ -1,20 +1,20 @@ # TaxRate -> View the coverage for tax rates in the Data coverage explorer. +> View the coverage for tax rates in the Data coverage explorer. ## Overview -Accounting systems typically store a set of taxes and associated rates within the accounting package. This means that users don't have to look up or remember the rates for each type of tax. For example, applying the tax "UK sales VAT" to line items of an invoice adds the correct rate of 20%. +Accounting systems typically store a set of taxes and associated rates within the accounting package. This means that users don't have to look up or remember the rates for each type of tax. For example, applying the tax "UK sales VAT" to line items of an invoice adds the correct rate of 20%. ### Tax components -In some cases, a tax is made up of multiple sub taxes, often called _components_ of the tax. For example, you may have an item that is charged a tax rate called "City import tax (8%)" that has two components: +In some cases, a tax is made up of multiple sub taxes, often called _components_ of the tax. For example, you may have an item that is charged a tax rate called "City import tax (8%)" that has two components: -- A city tax of 5% +- A city tax of 5% - An import tax of 3% -> **Effective tax rates** -> - Where there are multiple components of a tax, each component may be calculated on the original amount and added together. Alternatively, one tax may be calculated on the sub-total of the original amount plus another tax, which is referred to as _compounding_. When there is compounding, the effective tax rate is the rate that, if applied to the original amount, would result in the total amount of tax with compounding. +> **Effective tax rates** +> - Where there are multiple components of a tax, each component may be calculated on the original amount and added together. Alternatively, one tax may be calculated on the sub-total of the original amount plus another tax, which is referred to as _compounding_. When there is compounding, the effective tax rate is the rate that, if applied to the original amount, would result in the total amount of tax with compounding. > > **Example:** > A tax has two components. Both components have a rate of 10%, and one component is compound. In this case, there is a total tax rate of 20% but an effective tax rate of 21%. @@ -27,14 +27,14 @@ In some cases, a tax is made up of multiple sub taxes, often called _components_ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Code` | **string* | :heavy_minus_sign: | Code for the tax rate from the accounting platform. | | -| `Components` | [][TaxRateComponent](../../models/shared/taxratecomponent.md) | :heavy_minus_sign: | N/A | | +| `Components` | [][shared.TaxRateComponent](../../../pkg/models/shared/taxratecomponent.md) | :heavy_minus_sign: | N/A | | | `EffectiveTaxRate` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_minus_sign: | See Effective tax rates description. | | | `ID` | **string* | :heavy_minus_sign: | Identifier for the tax rate, unique for the company in the accounting platform. | | -| `Metadata` | [*Metadata](../../models/shared/metadata.md) | :heavy_minus_sign: | N/A | | +| `Metadata` | [*shared.Metadata](../../../pkg/models/shared/metadata.md) | :heavy_minus_sign: | N/A | | | `ModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | | `Name` | **string* | :heavy_minus_sign: | Codat-augmented name of the tax rate in the accounting platform. | | | `SourceModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | -| `Status` | [*TaxRateStatus](../../models/shared/taxratestatus.md) | :heavy_minus_sign: | Status of the tax rate in the accounting platform.
- `Active` - An active tax rate in use by a company.
- `Archived` - A tax rate that has been archived or is inactive in the accounting platform.
- `Unknown` - Where the status of the tax rate cannot be determined from the underlying platform. | | -| `SupplementalData` | [*SupplementalData](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | +| `Status` | [*shared.TaxRateStatus](../../../pkg/models/shared/taxratestatus.md) | :heavy_minus_sign: | Status of the tax rate in the accounting platform.
- `Active` - An active tax rate in use by a company.
- `Archived` - A tax rate that has been archived or is inactive in the accounting platform.
- `Unknown` - Where the status of the tax rate cannot be determined from the underlying platform. | | +| `SupplementalData` | [*shared.SupplementalData](../../../pkg/models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | | `TotalTaxRate` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_minus_sign: | Total (not compounded) sum of the components of a tax rate. | | -| `ValidDatatypeLinks` | [][ValidDatatypeLinksitems](../../models/shared/validdatatypelinksitems.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `ValidDatatypeLinks` | [][shared.ValidDatatypeLinkItems](../../../pkg/models/shared/validdatatypelinkitems.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/taxratecomponent.md b/sync-for-payables/docs/pkg/models/shared/taxratecomponent.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/taxratecomponent.md rename to sync-for-payables/docs/pkg/models/shared/taxratecomponent.md diff --git a/sync-for-payables/docs/models/shared/taxrateref.md b/sync-for-payables/docs/pkg/models/shared/taxrateref.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/taxrateref.md rename to sync-for-payables/docs/pkg/models/shared/taxrateref.md diff --git a/sync-for-payables/docs/pkg/models/shared/taxrates.md b/sync-for-payables/docs/pkg/models/shared/taxrates.md new file mode 100644 index 000000000..90e179c38 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/taxrates.md @@ -0,0 +1,12 @@ +# TaxRates + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `Links` | [shared.Links](../../../pkg/models/shared/links.md) | :heavy_check_mark: | N/A | +| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | +| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | +| `Results` | [][shared.TaxRate](../../../pkg/models/shared/taxrate.md) | :heavy_minus_sign: | N/A | +| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/taxratestatus.md b/sync-for-payables/docs/pkg/models/shared/taxratestatus.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/taxratestatus.md rename to sync-for-payables/docs/pkg/models/shared/taxratestatus.md diff --git a/sync-for-payables/docs/pkg/models/shared/tracking.md b/sync-for-payables/docs/pkg/models/shared/tracking.md new file mode 100644 index 000000000..ea04ec3a6 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/tracking.md @@ -0,0 +1,14 @@ +# Tracking + +Categories, and a project and customer, against which the item is tracked. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `CategoryRefs` | [][shared.TrackingCategoryRef](../../../pkg/models/shared/trackingcategoryref.md) | :heavy_check_mark: | N/A | +| `CustomerRef` | [*shared.CustomerRef](../../../pkg/models/shared/customerref.md) | :heavy_minus_sign: | N/A | +| `IsBilledTo` | [shared.BilledToType](../../../pkg/models/shared/billedtotype.md) | :heavy_check_mark: | Defines if the invoice or credit note is billed/rebilled to a project or customer. | +| `IsRebilledTo` | [shared.BilledToType](../../../pkg/models/shared/billedtotype.md) | :heavy_check_mark: | Defines if the invoice or credit note is billed/rebilled to a project or customer. | +| `ProjectRef` | [*shared.AccountingProjectReference](../../../pkg/models/shared/accountingprojectreference.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/shared/trackingcategories.md b/sync-for-payables/docs/pkg/models/shared/trackingcategories.md new file mode 100644 index 000000000..4188e2119 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/trackingcategories.md @@ -0,0 +1,12 @@ +# TrackingCategories + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `Links` | [shared.Links](../../../pkg/models/shared/links.md) | :heavy_check_mark: | N/A | +| `PageNumber` | *int64* | :heavy_check_mark: | Current page number. | +| `PageSize` | *int64* | :heavy_check_mark: | Number of items to return in results array. | +| `Results` | [][shared.TrackingCategory](../../../pkg/models/shared/trackingcategory.md) | :heavy_minus_sign: | N/A | +| `TotalResults` | *int64* | :heavy_check_mark: | Total number of items. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/trackingcategory.md b/sync-for-payables/docs/pkg/models/shared/trackingcategory.md old mode 100755 new mode 100644 similarity index 98% rename from sync-for-payables/docs/models/shared/trackingcategory.md rename to sync-for-payables/docs/pkg/models/shared/trackingcategory.md index 34541c1e7..1ff861768 --- a/sync-for-payables/docs/models/shared/trackingcategory.md +++ b/sync-for-payables/docs/pkg/models/shared/trackingcategory.md @@ -136,9 +136,9 @@ If a tracking category has a parent category, the ID of that parent category is | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | | `HasChildren` | **bool* | :heavy_minus_sign: | Boolean value indicating whether this category has SubCategories. | | | `ID` | **string* | :heavy_minus_sign: | The identifier for the item, unique per tracking category. | | -| `Metadata` | [*Metadata](../../models/shared/metadata.md) | :heavy_minus_sign: | N/A | | +| `Metadata` | [*shared.Metadata](../../../pkg/models/shared/metadata.md) | :heavy_minus_sign: | N/A | | | `ModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | | `Name` | **string* | :heavy_minus_sign: | The name of the tracking category. | | | `ParentID` | **string* | :heavy_minus_sign: | The identifier for this item's immediate parent. | | | `SourceModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | -| `Status` | [*Status](../../models/shared/status.md) | :heavy_minus_sign: | Current state of the tracking category. | | \ No newline at end of file +| `Status` | [*shared.Status](../../../pkg/models/shared/status.md) | :heavy_minus_sign: | Current state of the tracking category. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/trackingcategoryref.md b/sync-for-payables/docs/pkg/models/shared/trackingcategoryref.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/trackingcategoryref.md rename to sync-for-payables/docs/pkg/models/shared/trackingcategoryref.md diff --git a/sync-for-payables/docs/pkg/models/shared/trackingcategorytree.md b/sync-for-payables/docs/pkg/models/shared/trackingcategorytree.md new file mode 100644 index 000000000..6df23afdb --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/trackingcategorytree.md @@ -0,0 +1,18 @@ +# TrackingCategoryTree + +The full structure of a specific tracking category including any child or subcategories. + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `HasChildren` | **bool* | :heavy_minus_sign: | Boolean value indicating whether this category has SubCategories | | +| `ID` | **string* | :heavy_minus_sign: | The identifier for the item, unique per tracking category | | +| `Metadata` | [*shared.Metadata](../../../pkg/models/shared/metadata.md) | :heavy_minus_sign: | N/A | | +| `ModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | +| `Name` | **string* | :heavy_minus_sign: | The name of the tracking category | | +| `ParentID` | **string* | :heavy_minus_sign: | The identifier for this item's immediate parent | | +| `SourceModifiedDate` | **string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | +| `Status` | [*shared.Status](../../../pkg/models/shared/status.md) | :heavy_minus_sign: | Current state of the tracking category. | | +| `SubCategories` | [][shared.TrackingCategoryTree](../../../pkg/models/shared/trackingcategorytree.md) | :heavy_minus_sign: | A collection of subcategories that are nested beneath this category. | | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/shared/type.md b/sync-for-payables/docs/pkg/models/shared/type.md new file mode 100644 index 000000000..e22befe93 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/type.md @@ -0,0 +1,12 @@ +# Type + +The type of the weblink. + + +## Values + +| Name | Value | +| ------------- | ------------- | +| `TypeWebsite` | Website | +| `TypeSocial` | Social | +| `TypeUnknown` | Unknown | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/updatebillcreditnoteresponse.md b/sync-for-payables/docs/pkg/models/shared/updatebillcreditnoteresponse.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/updatebillcreditnoteresponse.md rename to sync-for-payables/docs/pkg/models/shared/updatebillcreditnoteresponse.md index 0ef8ed22e..936b216c6 --- a/sync-for-payables/docs/models/shared/updatebillcreditnoteresponse.md +++ b/sync-for-payables/docs/pkg/models/shared/updatebillcreditnoteresponse.md @@ -5,17 +5,17 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Changes` | [][PushOperationChange](../../models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | +| `Changes` | [][shared.PushOperationChange](../../../pkg/models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | | `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `CompletedOnUtc` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Data` | [*BillCreditNote](../../models/shared/billcreditnote.md) | :heavy_minus_sign: | > **Bill credit notes or credit notes?**
>
> In Codat, bill credit notes represent accounts payable only. For accounts receivable, see [Credit notes](https://docs.codat.io/sync-for-payables-api#/schemas/CreditNote).

View the coverage for bill credit notes in the Data coverage explorer.

## Overview

A bill credit note is issued by a supplier for the purpose of recording credit. For example, if a supplier was unable to fulfil an order that was placed by a business, or delivered damaged goods, they would issue a bill credit note. A bill credit note reduces the amount a business owes to the supplier. It can be refunded to the business or used to pay off future bills.

In the Codat API, a bill credit note is an accounts payable record issued by a [supplier](https://docs.codat.io/sync-for-payables-api#/schemas/Supplier).

A bill credit note includes details of:
* The original and remaining credit.
* Any allocations of the credit against other records, such as [bills](https://docs.codat.io/sync-for-payables-api#/schemas/Bill).
* The supplier that issued the bill credit note. | | +| `Data` | [*shared.BillCreditNote](../../../pkg/models/shared/billcreditnote.md) | :heavy_minus_sign: | > **Bill credit notes or credit notes?**
>
> In Codat, bill credit notes represent accounts payable only. For accounts receivable, see [Credit notes](https://docs.codat.io/sync-for-payables-api#/schemas/CreditNote).

View the coverage for bill credit notes in the Data coverage explorer.

## Overview

A bill credit note is issued by a supplier for the purpose of recording credit. For example, if a supplier was unable to fulfil an order that was placed by a business, or delivered damaged goods, they would issue a bill credit note. A bill credit note reduces the amount a business owes to the supplier. It can be refunded to the business or used to pay off future bills.

In the Codat API, a bill credit note is an accounts payable record issued by a [supplier](https://docs.codat.io/sync-for-payables-api#/schemas/Supplier).

A bill credit note includes details of:
* The original and remaining credit.
* Any allocations of the credit against other records, such as [bills](https://docs.codat.io/sync-for-payables-api#/schemas/Bill).
* The supplier that issued the bill credit note. | | | `DataConnectionKey` | *string* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | -| `DataType` | [*DataType](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | +| `DataType` | [*shared.DataType](../../../pkg/models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | | `ErrorMessage` | **string* | :heavy_minus_sign: | A message about the error. | | | `PushOperationKey` | *string* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | | | `RequestedOnUtc` | *string* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Status` | [PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | +| `Status` | [shared.PushOperationStatus](../../../pkg/models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | | `StatusCode` | *int64* | :heavy_check_mark: | Push status code. | | | `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | | | ~~`TimeoutInSeconds`~~ | **int* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Number of seconds the push operation must complete within before it times out. | | -| `Validation` | [*Validation](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file +| `Validation` | [*shared.Validation](../../../pkg/models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/updatebillresponse.md b/sync-for-payables/docs/pkg/models/shared/updatebillresponse.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/updatebillresponse.md rename to sync-for-payables/docs/pkg/models/shared/updatebillresponse.md index 274ca5a01..49f2fc99a --- a/sync-for-payables/docs/models/shared/updatebillresponse.md +++ b/sync-for-payables/docs/pkg/models/shared/updatebillresponse.md @@ -5,17 +5,17 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Changes` | [][PushOperationChange](../../models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | +| `Changes` | [][shared.PushOperationChange](../../../pkg/models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | | `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `CompletedOnUtc` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Data` | [*Bill](../../models/shared/bill.md) | :heavy_minus_sign: | > **Invoices or bills?**
>
> We distinguish between invoices where the company *owes money* vs. *is owed money*. If the company has received an invoice, and owes money to someone else (accounts payable) we call this a Bill.
>
> See [Invoices](https://docs.codat.io/sync-for-payables-api#/schemas/Invoice) for the accounts receivable equivalent of bills.

View the coverage for bills in the Data coverage explorer.

## Overview

In Codat, a bill contains details of:
* When the bill was recorded in the accounting system.
* How much the bill is for and the currency of the amount.
* Who the bill was received from — the *supplier*.
* What the bill is for — the *line items*.

Some accounting platforms give a separate name to purchases where the payment is made immediately, such as something bought with a credit card or online payment. One example of this would be QuickBooks Online's *expenses*.

You can find these types of transactions in our [Direct costs](https://docs.codat.io/sync-for-payables-api#/schemas/DirectCost) data model. | | +| `Data` | [*shared.Bill](../../../pkg/models/shared/bill.md) | :heavy_minus_sign: | > **Invoices or bills?**
>
> We distinguish between invoices where the company *owes money* vs. *is owed money*. If the company has received an invoice, and owes money to someone else (accounts payable) we call this a Bill.
>
> See [Invoices](https://docs.codat.io/sync-for-payables-api#/schemas/Invoice) for the accounts receivable equivalent of bills.

View the coverage for bills in the Data coverage explorer.

## Overview

In Codat, a bill contains details of:
* When the bill was recorded in the accounting system.
* How much the bill is for and the currency of the amount.
* Who the bill was received from — the *supplier*.
* What the bill is for — the *line items*.

Some accounting platforms give a separate name to purchases where the payment is made immediately, such as something bought with a credit card or online payment. One example of this would be QuickBooks Online's *expenses*.

You can find these types of transactions in our [Direct costs](https://docs.codat.io/sync-for-payables-api#/schemas/DirectCost) data model. | | | `DataConnectionKey` | *string* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | -| `DataType` | [*DataType](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | +| `DataType` | [*shared.DataType](../../../pkg/models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | | `ErrorMessage` | **string* | :heavy_minus_sign: | A message about the error. | | | `PushOperationKey` | *string* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | | | `RequestedOnUtc` | *string* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Status` | [PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | +| `Status` | [shared.PushOperationStatus](../../../pkg/models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | | `StatusCode` | *int64* | :heavy_check_mark: | Push status code. | | | `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | | | ~~`TimeoutInSeconds`~~ | **int* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Number of seconds the push operation must complete within before it times out. | | -| `Validation` | [*Validation](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file +| `Validation` | [*shared.Validation](../../../pkg/models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/updatesupplierresponse.md b/sync-for-payables/docs/pkg/models/shared/updatesupplierresponse.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/updatesupplierresponse.md rename to sync-for-payables/docs/pkg/models/shared/updatesupplierresponse.md index 48505a0eb..7f2da10e3 --- a/sync-for-payables/docs/models/shared/updatesupplierresponse.md +++ b/sync-for-payables/docs/pkg/models/shared/updatesupplierresponse.md @@ -5,17 +5,17 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Changes` | [][PushOperationChange](../../models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | +| `Changes` | [][shared.PushOperationChange](../../../pkg/models/shared/pushoperationchange.md) | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | | `CompanyID` | *string* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `CompletedOnUtc` | **string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Data` | [*Supplier](../../models/shared/supplier.md) | :heavy_minus_sign: | > View the coverage for suppliers in the Data coverage explorer.

## Overview

From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers for a company](https://docs.codat.io/sync-for-payables-api#/operations/list-suppliers). Suppliers' data links to accounts payable [bills](https://docs.codat.io/sync-for-payables-api#/schemas/Bill). | | +| `Data` | [*shared.Supplier](../../../pkg/models/shared/supplier.md) | :heavy_minus_sign: | > View the coverage for suppliers in the Data coverage explorer.

## Overview

From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers for a company](https://docs.codat.io/sync-for-payables-api#/operations/list-suppliers). Suppliers' data links to accounts payable [bills](https://docs.codat.io/sync-for-payables-api#/schemas/Bill). | | | `DataConnectionKey` | *string* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | -| `DataType` | [*DataType](../../models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | +| `DataType` | [*shared.DataType](../../../pkg/models/shared/datatype.md) | :heavy_minus_sign: | Available Data types | invoices | | `ErrorMessage` | **string* | :heavy_minus_sign: | A message about the error. | | | `PushOperationKey` | *string* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | | | `RequestedOnUtc` | *string* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `Status` | [PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | +| `Status` | [shared.PushOperationStatus](../../../pkg/models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | | `StatusCode` | *int64* | :heavy_check_mark: | Push status code. | | | `TimeoutInMinutes` | **int* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | | | ~~`TimeoutInSeconds`~~ | **int* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Number of seconds the push operation must complete within before it times out. | | -| `Validation` | [*Validation](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file +| `Validation` | [*shared.Validation](../../../pkg/models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file diff --git a/sync-for-payables/docs/pkg/models/shared/validation.md b/sync-for-payables/docs/pkg/models/shared/validation.md new file mode 100644 index 000000000..5348e612a --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/validation.md @@ -0,0 +1,11 @@ +# Validation + +A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `Errors` | [][shared.ValidationItem](../../../pkg/models/shared/validationitem.md) | :heavy_minus_sign: | N/A | +| `Warnings` | [][shared.ValidationItem](../../../pkg/models/shared/validationitem.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/validationitem.md b/sync-for-payables/docs/pkg/models/shared/validationitem.md old mode 100755 new mode 100644 similarity index 100% rename from sync-for-payables/docs/models/shared/validationitem.md rename to sync-for-payables/docs/pkg/models/shared/validationitem.md diff --git a/sync-for-payables/docs/models/shared/validdatatypelinksitems.md b/sync-for-payables/docs/pkg/models/shared/validdatatypelinkitems.md old mode 100755 new mode 100644 similarity index 99% rename from sync-for-payables/docs/models/shared/validdatatypelinksitems.md rename to sync-for-payables/docs/pkg/models/shared/validdatatypelinkitems.md index 1b7799728..138fac00a --- a/sync-for-payables/docs/models/shared/validdatatypelinksitems.md +++ b/sync-for-payables/docs/pkg/models/shared/validdatatypelinkitems.md @@ -1,4 +1,4 @@ -# ValidDatatypeLinksitems +# ValidDatatypeLinkItems When querying Codat's data model, some data types return `validDatatypeLinks` metadata in the JSON response. This indicates where that object can be used as a reference—a _valid link_—when creating or updating other data. diff --git a/sync-for-payables/docs/pkg/models/shared/validdatatypelinks.md b/sync-for-payables/docs/pkg/models/shared/validdatatypelinks.md new file mode 100644 index 000000000..c26056031 --- /dev/null +++ b/sync-for-payables/docs/pkg/models/shared/validdatatypelinks.md @@ -0,0 +1,50 @@ +# ValidDataTypeLinks + +When querying Codat's data model, some data types return `validDatatypeLinks` metadata in the JSON response. This indicates where that object can be used as a reference—a _valid link_—when creating or updating other data. + +For example, `validDatatypeLinks` might indicate the following references: + +- Which tax rates are valid to use on the line item of a bill. +- Which items can be used when creating an invoice. + +You can use `validDatatypeLinks` to present your SMB customers with only valid choices when selecting objects from a list, for example. + +## `validDatatypeLinks` example + +The following example uses the `Accounting.Accounts` data type. It shows that, on the linked integration, this account is valid as the account on a payment or bill payment; and as the account referenced on the line item of a direct income or direct cost. Because there is no valid link to Invoices or Bills, using this account on those data types will result in an error. + +```json validDatatypeLinks for an account +{ + "id": "bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4", + "nominalCode": "090", + "name": "Business Bank Account", + #... + "validDatatypeLinks": [ + { + "property": "Id", + "links": [ + "Payment.AccountRef.Id", + "BillPayment.AccountRef.Id", + "DirectIncome.LineItems.AccountRef.Id", + "DirectCost.LineItems.AccountRef.Id" + ] + } + ] + } +``` + + + +## Support for `validDatatypeLinks` + +Codat currently supports `validDatatypeLinks` for some data types on our Xero, QuickBooks Online, QuickBooks Desktop, Exact (NL), and Sage Business Cloud integrations. + +If you'd like us to extend support to more data types or integrations, suggest or vote for this on our Product Roadmap. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `Links` | []*string* | :heavy_minus_sign: | Supported `dataTypes` that the record can be linked to. | +| `Property` | **string* | :heavy_minus_sign: | The property from the account that can be linked. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/weblink.md b/sync-for-payables/docs/pkg/models/shared/weblink.md old mode 100755 new mode 100644 similarity index 86% rename from sync-for-payables/docs/models/shared/weblink.md rename to sync-for-payables/docs/pkg/models/shared/weblink.md index 8fbe15dca..b50f2a651 --- a/sync-for-payables/docs/models/shared/weblink.md +++ b/sync-for-payables/docs/pkg/models/shared/weblink.md @@ -7,5 +7,5 @@ Weblink associated with the company. | Field | Type | Required | Description | | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -| `Type` | [*WebLinkType](../../models/shared/weblinktype.md) | :heavy_minus_sign: | The type of the weblink. | +| `Type` | [*shared.Type](../../../pkg/models/shared/type.md) | :heavy_minus_sign: | The type of the weblink. | | `URL` | **string* | :heavy_minus_sign: | The full URL for the weblink. | \ No newline at end of file diff --git a/sync-for-payables/docs/models/shared/billwithholdingtax.md b/sync-for-payables/docs/pkg/models/shared/withholdingtax.md old mode 100755 new mode 100644 similarity index 98% rename from sync-for-payables/docs/models/shared/billwithholdingtax.md rename to sync-for-payables/docs/pkg/models/shared/withholdingtax.md index b42ec5205..211be3b9a --- a/sync-for-payables/docs/models/shared/billwithholdingtax.md +++ b/sync-for-payables/docs/pkg/models/shared/withholdingtax.md @@ -1,4 +1,4 @@ -# BillWithholdingTax +# WithholdingTax ## Fields diff --git a/sync-for-payables/docs/models/shared/withholdingtaxitems.md b/sync-for-payables/docs/pkg/models/shared/withholdingtaxitems.md old mode 100755 new mode 100644 similarity index 98% rename from sync-for-payables/docs/models/shared/withholdingtaxitems.md rename to sync-for-payables/docs/pkg/models/shared/withholdingtaxitems.md index f29028a2f..5a94b718f --- a/sync-for-payables/docs/models/shared/withholdingtaxitems.md +++ b/sync-for-payables/docs/pkg/models/shared/withholdingtaxitems.md @@ -1,4 +1,4 @@ -# WithholdingTaxitems +# WithholdingTaxItems ## Fields diff --git a/sync-for-payables/docs/models/webhooks/clientratelimitreachedresponse.md b/sync-for-payables/docs/pkg/models/webhooks/clientratelimitreachedresponse.md old mode 100755 new mode 100644 similarity index 89% rename from sync-for-payables/docs/models/webhooks/clientratelimitreachedresponse.md rename to sync-for-payables/docs/pkg/models/webhooks/clientratelimitreachedresponse.md index f4c53186f..3b2ca57cc --- a/sync-for-payables/docs/models/webhooks/clientratelimitreachedresponse.md +++ b/sync-for-payables/docs/pkg/models/webhooks/clientratelimitreachedresponse.md @@ -7,4 +7,4 @@ | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/models/webhooks/clientratelimitresetresponse.md b/sync-for-payables/docs/pkg/models/webhooks/clientratelimitresetresponse.md old mode 100755 new mode 100644 similarity index 89% rename from sync-for-payables/docs/models/webhooks/clientratelimitresetresponse.md rename to sync-for-payables/docs/pkg/models/webhooks/clientratelimitresetresponse.md index bedf58f25..0fadf3085 --- a/sync-for-payables/docs/models/webhooks/clientratelimitresetresponse.md +++ b/sync-for-payables/docs/pkg/models/webhooks/clientratelimitresetresponse.md @@ -7,4 +7,4 @@ | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/sdks/accounts/README.md b/sync-for-payables/docs/sdks/accounts/README.md old mode 100755 new mode 100644 index 4036d5aa0..f8327c8ce --- a/sync-for-payables/docs/sdks/accounts/README.md +++ b/sync-for-payables/docs/sdks/accounts/README.md @@ -31,12 +31,12 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/ package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/types" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/types" ) func main() { @@ -48,31 +48,27 @@ func main() { ctx := context.Background() res, err := s.Accounts.Create(ctx, operations.CreateAccountRequest{ - Account: &shared.Account{ + AccountPrototype: &shared.AccountPrototype{ Currency: syncforpayables.String("USD"), CurrentBalance: types.MustNewDecimalFromString("0"), Description: syncforpayables.String("Invoices the business has issued but has not yet collected payment on."), FullyQualifiedCategory: syncforpayables.String("Asset.Current"), FullyQualifiedName: syncforpayables.String("Cash On Hand"), - ID: syncforpayables.String("1b6266d1-1e44-46c5-8eb5-a8f98e03124e"), - Metadata: &shared.Metadata{}, - ModifiedDate: syncforpayables.String("2022-10-23T00:00:00.000Z"), Name: syncforpayables.String("Accounts Receivable"), NominalCode: syncforpayables.String("610"), - SourceModifiedDate: syncforpayables.String("2022-10-23T00:00:00.000Z"), Status: shared.AccountStatusActive.ToPointer(), SupplementalData: &shared.SupplementalData{ Content: map[string]map[string]interface{}{ - "Money": map[string]interface{}{ - "blue": "shred", + "key": map[string]interface{}{ + "key": "string", }, }, }, Type: shared.AccountTypeAsset.ToPointer(), - ValidDatatypeLinks: []shared.AccountValidDataTypeLinks{ - shared.AccountValidDataTypeLinks{ + ValidDatatypeLinks: []shared.ValidDataTypeLinks{ + shared.ValidDataTypeLinks{ Links: []string{ - "abnormally", + "string", }, }, }, @@ -92,17 +88,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.CreateAccountRequest](../../models/operations/createaccountrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.CreateAccountRequest](../../pkg/models/operations/createaccountrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.CreateAccountResponse](../../models/operations/createaccountresponse.md), error** - +**[*operations.CreateAccountResponse](../../pkg/models/operations/createaccountresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## Get @@ -121,11 +120,11 @@ Before using this endpoint, you must have [retrieved data for the company](https package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -137,7 +136,7 @@ func main() { ctx := context.Background() res, err := s.Accounts.Get(ctx, operations.GetAccountRequest{ - AccountID: "Northeast Hatchback Kia", + AccountID: "string", CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002", }) if err != nil { @@ -152,17 +151,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetAccountRequest](../../models/operations/getaccountrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetAccountRequest](../../pkg/models/operations/getaccountrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetAccountResponse](../../models/operations/getaccountresponse.md), error** - +**[*operations.GetAccountResponse](../../pkg/models/operations/getaccountresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,409,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## GetCreateModel @@ -183,11 +185,11 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/ package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -214,17 +216,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetCreateAccountModelRequest](../../models/operations/getcreateaccountmodelrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetCreateAccountModelRequest](../../pkg/models/operations/getcreateaccountmodelrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetCreateAccountModelResponse](../../models/operations/getcreateaccountmodelresponse.md), error** - +**[*operations.GetCreateAccountModelResponse](../../pkg/models/operations/getcreateaccountmodelresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## List @@ -240,11 +245,11 @@ Before using this endpoint, you must have [retrieved data for the company](https package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -273,14 +278,17 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.ListAccountsRequest](../../models/operations/listaccountsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListAccountsRequest](../../pkg/models/operations/listaccountsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.ListAccountsResponse](../../models/operations/listaccountsresponse.md), error** - +**[*operations.ListAccountsResponse](../../pkg/models/operations/listaccountsresponse.md), error** +| Error Object | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,409,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | diff --git a/sync-for-payables/docs/sdks/billcreditnotes/README.md b/sync-for-payables/docs/sdks/billcreditnotes/README.md old mode 100755 new mode 100644 index ef069b5bd..28bf51342 --- a/sync-for-payables/docs/sdks/billcreditnotes/README.md +++ b/sync-for-payables/docs/sdks/billcreditnotes/README.md @@ -32,12 +32,12 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/ package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/types" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/types" ) func main() { @@ -59,7 +59,7 @@ func main() { LineItems: []shared.BillCreditNoteLineItem{ shared.BillCreditNoteLineItem{ AccountRef: &shared.AccountRef{}, - ItemRef: &shared.BillCreditNoteLineItemItemReference{ + ItemRef: &shared.ItemReference{ ID: "", }, Quantity: types.MustNewDecimalFromString("8592.13"), @@ -70,12 +70,12 @@ func main() { ID: "", }, }, - CustomerRef: &shared.BillCreditNoteLineItemTrackingCustomerRef{ + CustomerRef: &shared.BillCreditNoteLineItemCustomerRef{ ID: "", }, IsBilledTo: shared.BilledToTypeNotApplicable, IsRebilledTo: shared.BilledToTypeNotApplicable, - ProjectRef: &shared.BillCreditNoteLineItemTrackingProjectReference{ + ProjectRef: &shared.BillCreditNoteLineItemAccountingProjectReference{ ID: "", }, }, @@ -92,7 +92,7 @@ func main() { Note: syncforpayables.String("Bill Credit Note with 1 line items, totaling 805.78"), PaymentAllocations: []shared.Items{ shared.Items{ - Allocation: shared.ItemsAllocation{ + Allocation: shared.Allocation{ AllocatedOnDate: syncforpayables.String("2022-10-23T00:00:00.000Z"), Currency: syncforpayables.String("EUR"), }, @@ -109,8 +109,8 @@ func main() { SubTotal: types.MustNewDecimalFromString("805.78"), SupplementalData: &shared.SupplementalData{ Content: map[string]map[string]interface{}{ - "abnormally": map[string]interface{}{ - "deposit": "evolve", + "key": map[string]interface{}{ + "key": "string", }, }, }, @@ -120,10 +120,10 @@ func main() { TotalAmount: types.MustNewDecimalFromString("805.78"), TotalDiscount: types.MustNewDecimalFromString("0"), TotalTaxAmount: types.MustNewDecimalFromString("0"), - WithholdingTax: []shared.WithholdingTaxitems{ - shared.WithholdingTaxitems{ - Amount: types.MustNewDecimalFromString("7150.4"), - Name: "SUV quantify Polestar", + WithholdingTax: []shared.WithholdingTaxItems{ + shared.WithholdingTaxItems{ + Amount: types.MustNewDecimalFromString("8915.1"), + Name: "string", }, }, }, @@ -142,17 +142,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.CreateBillCreditNoteRequest](../../models/operations/createbillcreditnoterequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.CreateBillCreditNoteRequest](../../pkg/models/operations/createbillcreditnoterequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.CreateBillCreditNoteResponse](../../models/operations/createbillcreditnoteresponse.md), error** - +**[*operations.CreateBillCreditNoteResponse](../../pkg/models/operations/createbillcreditnoteresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## Get @@ -171,11 +174,11 @@ Before using this endpoint, you must have [retrieved data for the company](https package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -187,7 +190,7 @@ func main() { ctx := context.Background() res, err := s.BillCreditNotes.Get(ctx, operations.GetBillCreditNoteRequest{ - BillCreditNoteID: "Northeast Hatchback Kia", + BillCreditNoteID: "string", CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002", }) if err != nil { @@ -202,17 +205,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetBillCreditNoteRequest](../../models/operations/getbillcreditnoterequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetBillCreditNoteRequest](../../pkg/models/operations/getbillcreditnoterequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetBillCreditNoteResponse](../../models/operations/getbillcreditnoteresponse.md), error** - +**[*operations.GetBillCreditNoteResponse](../../pkg/models/operations/getbillcreditnoteresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,409,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## GetCreateUpdateModel @@ -233,11 +239,11 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/ package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -264,17 +270,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetCreateUpdateBillCreditNoteModelRequest](../../models/operations/getcreateupdatebillcreditnotemodelrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetCreateUpdateBillCreditNoteModelRequest](../../pkg/models/operations/getcreateupdatebillcreditnotemodelrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetCreateUpdateBillCreditNoteModelResponse](../../models/operations/getcreateupdatebillcreditnotemodelresponse.md), error** - +**[*operations.GetCreateUpdateBillCreditNoteModelResponse](../../pkg/models/operations/getcreateupdatebillcreditnotemodelresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## List @@ -291,11 +300,11 @@ Before using this endpoint, you must have [retrieved data for the company](https package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -324,17 +333,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.ListBillCreditNotesRequest](../../models/operations/listbillcreditnotesrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListBillCreditNotesRequest](../../pkg/models/operations/listbillcreditnotesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.ListBillCreditNotesResponse](../../models/operations/listbillcreditnotesresponse.md), error** - +**[*operations.ListBillCreditNotesResponse](../../pkg/models/operations/listbillcreditnotesresponse.md), error** +| Error Object | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,409,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## Update @@ -355,12 +367,12 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/ package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/types" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/types" ) func main() { @@ -382,7 +394,7 @@ func main() { LineItems: []shared.BillCreditNoteLineItem{ shared.BillCreditNoteLineItem{ AccountRef: &shared.AccountRef{}, - ItemRef: &shared.BillCreditNoteLineItemItemReference{ + ItemRef: &shared.ItemReference{ ID: "", }, Quantity: types.MustNewDecimalFromString("156.52"), @@ -393,12 +405,12 @@ func main() { ID: "", }, }, - CustomerRef: &shared.BillCreditNoteLineItemTrackingCustomerRef{ + CustomerRef: &shared.BillCreditNoteLineItemCustomerRef{ ID: "", }, IsBilledTo: shared.BilledToTypeNotApplicable, IsRebilledTo: shared.BilledToTypeCustomer, - ProjectRef: &shared.BillCreditNoteLineItemTrackingProjectReference{ + ProjectRef: &shared.BillCreditNoteLineItemAccountingProjectReference{ ID: "", }, }, @@ -415,7 +427,7 @@ func main() { Note: syncforpayables.String("Bill Credit Note with 1 line items, totaling 805.78"), PaymentAllocations: []shared.Items{ shared.Items{ - Allocation: shared.ItemsAllocation{ + Allocation: shared.Allocation{ AllocatedOnDate: syncforpayables.String("2022-10-23T00:00:00.000Z"), Currency: syncforpayables.String("EUR"), }, @@ -432,8 +444,8 @@ func main() { SubTotal: types.MustNewDecimalFromString("805.78"), SupplementalData: &shared.SupplementalData{ Content: map[string]map[string]interface{}{ - "Arizona": map[string]interface{}{ - "Cotton": "extend", + "key": map[string]interface{}{ + "key": "string", }, }, }, @@ -443,14 +455,14 @@ func main() { TotalAmount: types.MustNewDecimalFromString("805.78"), TotalDiscount: types.MustNewDecimalFromString("0"), TotalTaxAmount: types.MustNewDecimalFromString("0"), - WithholdingTax: []shared.WithholdingTaxitems{ - shared.WithholdingTaxitems{ - Amount: types.MustNewDecimalFromString("2494.4"), - Name: "Carolina syndicate", + WithholdingTax: []shared.WithholdingTaxItems{ + shared.WithholdingTaxItems{ + Amount: types.MustNewDecimalFromString("1341.51"), + Name: "string", }, }, }, - BillCreditNoteID: "implement JBOD", + BillCreditNoteID: "string", CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionID: "2e9d2c44-f675-40ba-8049-353bfcb5e171", }) @@ -466,14 +478,17 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.UpdateBillCreditNoteRequest](../../models/operations/updatebillcreditnoterequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.UpdateBillCreditNoteRequest](../../pkg/models/operations/updatebillcreditnoterequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.UpdateBillCreditNoteResponse](../../models/operations/updatebillcreditnoteresponse.md), error** - +**[*operations.UpdateBillCreditNoteResponse](../../pkg/models/operations/updatebillcreditnoteresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | diff --git a/sync-for-payables/docs/sdks/billpayments/README.md b/sync-for-payables/docs/sdks/billpayments/README.md old mode 100755 new mode 100644 index 6e4ec9732..46d02ff3c --- a/sync-for-payables/docs/sdks/billpayments/README.md +++ b/sync-for-payables/docs/sdks/billpayments/README.md @@ -32,12 +32,12 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/ package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/types" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/types" ) func main() { @@ -74,8 +74,8 @@ func main() { SourceModifiedDate: syncforpayables.String("2022-10-23T00:00:00.000Z"), SupplementalData: &shared.SupplementalData{ Content: map[string]map[string]interface{}{ - "blue": map[string]interface{}{ - "shred": "abnormally", + "key": map[string]interface{}{ + "key": "string", }, }, }, @@ -99,17 +99,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.CreateBillPaymentRequest](../../models/operations/createbillpaymentrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.CreateBillPaymentRequest](../../pkg/models/operations/createbillpaymentrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.CreateBillPaymentResponse](../../models/operations/createbillpaymentresponse.md), error** - +**[*operations.CreateBillPaymentResponse](../../pkg/models/operations/createbillpaymentresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## Delete @@ -119,7 +122,7 @@ func main() { ### Process 1. Pass the `{billPaymentId}` to the *Delete bill payment* endpoint and store the `pushOperationKey` returned. -2. Check the status of the delete operation by checking the status of push operation either via +2. Check the status of the delete operation by checking the status of the push operation either via 1. [Push operation webhook](https://docs.codat.io/introduction/webhooks/core-rules-types#push-operation-status-has-changed) (advised), 2. [Push operation status endpoint](https://docs.codat.io/sync-for-payables-api#/operations/get-push-operation). @@ -132,15 +135,16 @@ Be aware that deleting a bill payment from an accounting platform might cause re ## Integration specifics Integrations that support soft delete do not permanently delete the object in the accounting platform. -| Integration | Soft Delete | Details | +| Integration | Soft Delete | Details | |-------------|-------------|------------------------------------------------------------------------------------------------------| -| Oracle NetSuite | No | See [here](/integrations/accounting/netsuite/how-deleting-bill-payments-works) to learn more. | -| QuickBooks Online | No | - | -| Xero | Yes | - | +| QuickBooks Online | No | - +| Oracle NetSuite | No | See [here](/integrations/accounting/netsuite/accounting-netsuite-how-deleting-bill-payments-works) to learn more. +| Xero | Yes | - +| Sage Intacct | No | Some bill payments in Sage Intacct can only be deleted, whilst others can only be voided. Codat have applied logic to handle this complexity. > **Supported integrations** > -> This functionality is currently supported for our QuickBooks Online, Xero and Oracle NetSuite integrations. +> This functionality is currently supported for our QuickBooks Online, Oracle NetSuite, Xero and Sage Intacct integrations. ### Example Usage @@ -149,11 +153,11 @@ Integrations that support soft delete do not permanently delete the object in th package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -165,8 +169,9 @@ func main() { ctx := context.Background() res, err := s.BillPayments.Delete(ctx, operations.DeleteBillPaymentRequest{ - BillPaymentID: "Van complexity", + BillPaymentID: "string", CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002", + ConnectionID: "2e9d2c44-f675-40ba-8049-353bfcb5e171", }) if err != nil { log.Fatal(err) @@ -180,17 +185,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.DeleteBillPaymentRequest](../../models/operations/deletebillpaymentrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.DeleteBillPaymentRequest](../../pkg/models/operations/deletebillpaymentrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.DeleteBillPaymentResponse](../../models/operations/deletebillpaymentresponse.md), error** - +**[*operations.DeleteBillPaymentResponse](../../pkg/models/operations/deletebillpaymentresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## Get @@ -209,11 +217,11 @@ Before using this endpoint, you must have [retrieved data for the company](https package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -225,7 +233,7 @@ func main() { ctx := context.Background() res, err := s.BillPayments.Get(ctx, operations.GetBillPaymentsRequest{ - BillPaymentID: "Northeast Hatchback Kia", + BillPaymentID: "string", CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002", }) if err != nil { @@ -240,17 +248,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetBillPaymentsRequest](../../models/operations/getbillpaymentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetBillPaymentsRequest](../../pkg/models/operations/getbillpaymentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetBillPaymentsResponse](../../models/operations/getbillpaymentsresponse.md), error** - +**[*operations.GetBillPaymentsResponse](../../pkg/models/operations/getbillpaymentsresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,409,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## GetCreateModel @@ -271,11 +282,11 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/ package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -302,17 +313,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetCreateBillPaymentModelRequest](../../models/operations/getcreatebillpaymentmodelrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetCreateBillPaymentModelRequest](../../pkg/models/operations/getcreatebillpaymentmodelrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetCreateBillPaymentModelResponse](../../models/operations/getcreatebillpaymentmodelresponse.md), error** - +**[*operations.GetCreateBillPaymentModelResponse](../../pkg/models/operations/getcreatebillpaymentmodelresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## List @@ -329,11 +343,11 @@ Before using this endpoint, you must have [retrieved data for the company](https package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -362,14 +376,17 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.ListBillPaymentsRequest](../../models/operations/listbillpaymentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListBillPaymentsRequest](../../pkg/models/operations/listbillpaymentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.ListBillPaymentsResponse](../../models/operations/listbillpaymentsresponse.md), error** - +**[*operations.ListBillPaymentsResponse](../../pkg/models/operations/listbillpaymentsresponse.md), error** +| Error Object | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,409,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | diff --git a/sync-for-payables/docs/sdks/bills/README.md b/sync-for-payables/docs/sdks/bills/README.md old mode 100755 new mode 100644 index 22f870339..e84d9fb82 --- a/sync-for-payables/docs/sdks/bills/README.md +++ b/sync-for-payables/docs/sdks/bills/README.md @@ -38,12 +38,12 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/ package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/types" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/types" ) func main() { @@ -65,7 +65,7 @@ func main() { ItemRef: &shared.ItemRef{ ID: "", }, - PurchaseOrderLineRef: &shared.BillLineItemRecordLineReference{}, + PurchaseOrderLineRef: &shared.RecordLineReference{}, Quantity: types.MustNewDecimalFromString("8592.13"), TaxRateRef: &shared.TaxRateRef{}, Tracking: &shared.Tracking{ @@ -74,12 +74,12 @@ func main() { ID: "", }, }, - CustomerRef: &shared.TrackingCustomerRef{ + CustomerRef: &shared.CustomerRef{ ID: "", }, IsBilledTo: shared.BilledToTypeNotApplicable, IsRebilledTo: shared.BilledToTypeNotApplicable, - ProjectRef: &shared.TrackingProjectReference{ + ProjectRef: &shared.AccountingProjectReference{ ID: "", }, }, @@ -93,9 +93,9 @@ func main() { }, Metadata: &shared.Metadata{}, ModifiedDate: syncforpayables.String("2022-10-23T00:00:00.000Z"), - PaymentAllocations: []shared.BillPaymentAllocation{ - shared.BillPaymentAllocation{ - Allocation: shared.BillPaymentAllocationAllocation{ + PaymentAllocations: []shared.AccountingPaymentAllocation{ + shared.AccountingPaymentAllocation{ + Allocation: shared.BillAllocation{ AllocatedOnDate: syncforpayables.String("2022-10-23T00:00:00.000Z"), Currency: syncforpayables.String("EUR"), }, @@ -106,28 +106,28 @@ func main() { }, }, }, - PurchaseOrderRefs: []shared.BillPurchaseOrderReference{ - shared.BillPurchaseOrderReference{}, + PurchaseOrderRefs: []shared.PurchaseOrderReference{ + shared.PurchaseOrderReference{}, }, SourceModifiedDate: syncforpayables.String("2022-10-23T00:00:00.000Z"), Status: shared.BillStatusDraft, SubTotal: types.MustNewDecimalFromString("0.86"), SupplementalData: &shared.SupplementalData{ Content: map[string]map[string]interface{}{ - "deposit": map[string]interface{}{ - "evolve": "male", + "key": map[string]interface{}{ + "key": "string", }, }, }, SupplierRef: &shared.SupplierRef{ ID: "", }, - TaxAmount: types.MustNewDecimalFromString("8559.52"), - TotalAmount: types.MustNewDecimalFromString("8165.88"), - WithholdingTax: []shared.BillWithholdingTax{ - shared.BillWithholdingTax{ - Amount: types.MustNewDecimalFromString("5519.29"), - Name: "Polestar mobile", + TaxAmount: types.MustNewDecimalFromString("4552.22"), + TotalAmount: types.MustNewDecimalFromString("1697.27"), + WithholdingTax: []shared.WithholdingTax{ + shared.WithholdingTax{ + Amount: types.MustNewDecimalFromString("3015.1"), + Name: "string", }, }, }, @@ -146,17 +146,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.CreateBillRequest](../../models/operations/createbillrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.CreateBillRequest](../../pkg/models/operations/createbillrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.CreateBillResponse](../../models/operations/createbillresponse.md), error** - +**[*operations.CreateBillResponse](../../pkg/models/operations/createbillresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## Delete @@ -166,7 +169,7 @@ The *Delete bill* endpoint allows you to delete a specified bill from an account ### Process 1. Pass the `{billId}` to the *Delete bill* endpoint and store the `pushOperationKey` returned. -2. Check the status of the delete operation by checking the status of push operation either via +2. Check the status of the delete operation by checking the status of the push operation either via 1. [Push operation webhook](https://docs.codat.io/introduction/webhooks/core-rules-types#push-operation-status-has-changed) (advised), 2. [Push operation status endpoint](https://docs.codat.io/sync-for-payables-api#/operations/get-push-operation). @@ -183,11 +186,12 @@ Integrations that support soft delete do not permanently delete the object in th | Integration | Soft Delete | Details | |-------------|-------------|--------------------------------------------------------------------------------------------------------------| | QuickBooks Online | No | - | -| Oracle NetSuite | No | When deleting a bill that's already linked to a bill payment, you must delete the linked bill payment first. | +| Oracle NetSuite | No | When deleting a bill that's already linked to a bill payment, you must delete the linked bill payment first. | | +| Sage Intacct | No | When deleting a bill that's already linked to a bill payment, you must delete the linked bill payment first. | > **Supported Integrations** > -> This functionality is currently supported for our QuickBooks Online, Xero and Oracle NetSuite integrations. +> This functionality is currently supported for our QuickBooks Online, Xero, Oracle NetSuite and Sage Intacct integrations. ### Example Usage @@ -195,11 +199,11 @@ Integrations that support soft delete do not permanently delete the object in th package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -227,17 +231,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.DeleteBillRequest](../../models/operations/deletebillrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.DeleteBillRequest](../../pkg/models/operations/deletebillrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.DeleteBillResponse](../../models/operations/deletebillresponse.md), error** - +**[*operations.DeleteBillResponse](../../pkg/models/operations/deletebillresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## DeleteAttachment @@ -269,11 +276,11 @@ purchase of goods or services. package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -302,17 +309,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.DeleteBillAttachmentRequest](../../models/operations/deletebillattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.DeleteBillAttachmentRequest](../../pkg/models/operations/deletebillattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.DeleteBillAttachmentResponse](../../models/operations/deletebillattachmentresponse.md), error** - +**[*operations.DeleteBillAttachmentResponse](../../pkg/models/operations/deletebillattachmentresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## DownloadAttachment @@ -329,11 +339,11 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/ package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -362,17 +372,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.DownloadBillAttachmentRequest](../../models/operations/downloadbillattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.DownloadBillAttachmentRequest](../../pkg/models/operations/downloadbillattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.DownloadBillAttachmentResponse](../../models/operations/downloadbillattachmentresponse.md), error** - +**[*operations.DownloadBillAttachmentResponse](../../pkg/models/operations/downloadbillattachmentresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## Get @@ -391,11 +404,11 @@ Before using this endpoint, you must have [retrieved data for the company](https package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -422,17 +435,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetBillRequest](../../models/operations/getbillrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetBillRequest](../../pkg/models/operations/getbillrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetBillResponse](../../models/operations/getbillresponse.md), error** - +**[*operations.GetBillResponse](../../pkg/models/operations/getbillresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,409,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## GetAttachment @@ -449,11 +465,11 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/ package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -482,17 +498,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetBillAttachmentRequest](../../models/operations/getbillattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetBillAttachmentRequest](../../pkg/models/operations/getbillattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetBillAttachmentResponse](../../models/operations/getbillattachmentresponse.md), error** - +**[*operations.GetBillAttachmentResponse](../../pkg/models/operations/getbillattachmentresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## GetCreateUpdateModel @@ -513,11 +532,11 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/ package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -544,17 +563,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetCreateUpdateBillModelRequest](../../models/operations/getcreateupdatebillmodelrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetCreateUpdateBillModelRequest](../../pkg/models/operations/getcreateupdatebillmodelrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetCreateUpdateBillModelResponse](../../models/operations/getcreateupdatebillmodelresponse.md), error** - +**[*operations.GetCreateUpdateBillModelResponse](../../pkg/models/operations/getcreateupdatebillmodelresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## List @@ -571,11 +593,11 @@ Before using this endpoint, you must have [retrieved data for the company](https package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -604,17 +626,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.ListBillsRequest](../../models/operations/listbillsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListBillsRequest](../../pkg/models/operations/listbillsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.ListBillsResponse](../../models/operations/listbillsresponse.md), error** - +**[*operations.ListBillsResponse](../../pkg/models/operations/listbillsresponse.md), error** +| Error Object | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,409,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## ListAttachments @@ -631,11 +656,11 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/ package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -663,17 +688,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.ListBillAttachmentsRequest](../../models/operations/listbillattachmentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListBillAttachmentsRequest](../../pkg/models/operations/listbillattachmentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.ListBillAttachmentsResponse](../../models/operations/listbillattachmentsresponse.md), error** - +**[*operations.ListBillAttachmentsResponse](../../pkg/models/operations/listbillattachmentsresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,409,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## Update @@ -694,12 +722,12 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/ package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/types" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/types" ) func main() { @@ -721,7 +749,7 @@ func main() { ItemRef: &shared.ItemRef{ ID: "", }, - PurchaseOrderLineRef: &shared.BillLineItemRecordLineReference{}, + PurchaseOrderLineRef: &shared.RecordLineReference{}, Quantity: types.MustNewDecimalFromString("156.52"), TaxRateRef: &shared.TaxRateRef{}, Tracking: &shared.Tracking{ @@ -730,12 +758,12 @@ func main() { ID: "", }, }, - CustomerRef: &shared.TrackingCustomerRef{ + CustomerRef: &shared.CustomerRef{ ID: "", }, IsBilledTo: shared.BilledToTypeNotApplicable, IsRebilledTo: shared.BilledToTypeCustomer, - ProjectRef: &shared.TrackingProjectReference{ + ProjectRef: &shared.AccountingProjectReference{ ID: "", }, }, @@ -749,9 +777,9 @@ func main() { }, Metadata: &shared.Metadata{}, ModifiedDate: syncforpayables.String("2022-10-23T00:00:00.000Z"), - PaymentAllocations: []shared.BillPaymentAllocation{ - shared.BillPaymentAllocation{ - Allocation: shared.BillPaymentAllocationAllocation{ + PaymentAllocations: []shared.AccountingPaymentAllocation{ + shared.AccountingPaymentAllocation{ + Allocation: shared.BillAllocation{ AllocatedOnDate: syncforpayables.String("2022-10-23T00:00:00.000Z"), Currency: syncforpayables.String("EUR"), }, @@ -762,32 +790,32 @@ func main() { }, }, }, - PurchaseOrderRefs: []shared.BillPurchaseOrderReference{ - shared.BillPurchaseOrderReference{}, + PurchaseOrderRefs: []shared.PurchaseOrderReference{ + shared.PurchaseOrderReference{}, }, SourceModifiedDate: syncforpayables.String("2022-10-23T00:00:00.000Z"), Status: shared.BillStatusUnknown, SubTotal: types.MustNewDecimalFromString("540.62"), SupplementalData: &shared.SupplementalData{ Content: map[string]map[string]interface{}{ - "Cotton": map[string]interface{}{ - "extend": "Plastic", + "key": map[string]interface{}{ + "key": "string", }, }, }, SupplierRef: &shared.SupplierRef{ ID: "", }, - TaxAmount: types.MustNewDecimalFromString("1395.79"), - TotalAmount: types.MustNewDecimalFromString("6447.13"), - WithholdingTax: []shared.BillWithholdingTax{ - shared.BillWithholdingTax{ - Amount: types.MustNewDecimalFromString("7892.75"), - Name: "immediately implement JBOD", + TaxAmount: types.MustNewDecimalFromString("2782.81"), + TotalAmount: types.MustNewDecimalFromString("8965.01"), + WithholdingTax: []shared.WithholdingTax{ + shared.WithholdingTax{ + Amount: types.MustNewDecimalFromString("4995.57"), + Name: "string", }, }, }, - BillID: "EILBDVJVNUAGVKRQ", + BillID: "9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2", CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionID: "2e9d2c44-f675-40ba-8049-353bfcb5e171", }) @@ -803,17 +831,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.UpdateBillRequest](../../models/operations/updatebillrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.UpdateBillRequest](../../pkg/models/operations/updatebillrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.UpdateBillResponse](../../models/operations/updatebillresponse.md), error** - +**[*operations.UpdateBillResponse](../../pkg/models/operations/updatebillresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## UploadAttachment @@ -834,11 +865,12 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/ package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" + "net/http" ) func main() { @@ -850,9 +882,11 @@ func main() { ctx := context.Background() res, err := s.Bills.UploadAttachment(ctx, operations.UploadBillAttachmentRequest{ - RequestBody: &operations.UploadBillAttachmentRequestBody{ - Content: []byte("v/ghW&IC$x"), - RequestBody: "Elegant Producer Electric", + AttachmentUpload: &shared.AttachmentUpload{ + File: shared.CodatFile{ + Content: []byte("0xE3ABc1980E"), + FileName: "elegant_producer_electric.jpeg", + }, }, BillID: "9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2", CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002", @@ -870,14 +904,17 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.UploadBillAttachmentRequest](../../models/operations/uploadbillattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.UploadBillAttachmentRequest](../../pkg/models/operations/uploadbillattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.UploadBillAttachmentResponse](../../models/operations/uploadbillattachmentresponse.md), error** - +**[*operations.UploadBillAttachmentResponse](../../pkg/models/operations/uploadbillattachmentresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | diff --git a/sync-for-payables/docs/sdks/codatsyncpayables/README.md b/sync-for-payables/docs/sdks/codatsyncpayables/README.md old mode 100755 new mode 100644 diff --git a/sync-for-payables/docs/sdks/companies/README.md b/sync-for-payables/docs/sdks/companies/README.md old mode 100755 new mode 100644 index d2995e690..d0d09295e --- a/sync-for-payables/docs/sdks/companies/README.md +++ b/sync-for-payables/docs/sdks/companies/README.md @@ -27,10 +27,10 @@ If forbidden characters (see `name` pattern) are present in the request, a compa package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" ) func main() { @@ -57,17 +57,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [shared.CompanyRequestBody](../../models/shared/companyrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [shared.CompanyRequestBody](../../pkg/models/shared/companyrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.CreateCompanyResponse](../../models/operations/createcompanyresponse.md), error** - +**[*operations.CreateCompanyResponse](../../pkg/models/operations/createcompanyresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## Delete @@ -80,11 +83,12 @@ Permanently deletes a company, its connections and any cached data. This operati package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" + "net/http" ) func main() { @@ -110,17 +114,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.DeleteCompanyRequest](../../models/operations/deletecompanyrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.DeleteCompanyRequest](../../pkg/models/operations/deletecompanyrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.DeleteCompanyResponse](../../models/operations/deletecompanyresponse.md), error** - +**[*operations.DeleteCompanyResponse](../../pkg/models/operations/deletecompanyresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## Get @@ -132,11 +139,11 @@ func main() { package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -162,17 +169,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetCompanyRequest](../../models/operations/getcompanyrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetCompanyRequest](../../pkg/models/operations/getcompanyrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetCompanyResponse](../../models/operations/getcompanyresponse.md), error** - +**[*operations.GetCompanyResponse](../../pkg/models/operations/getcompanyresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## List @@ -184,11 +194,11 @@ func main() { package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -216,17 +226,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.ListCompaniesRequest](../../models/operations/listcompaniesrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListCompaniesRequest](../../pkg/models/operations/listcompaniesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.ListCompaniesResponse](../../models/operations/listcompaniesresponse.md), error** - +**[*operations.ListCompaniesResponse](../../pkg/models/operations/listcompaniesresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## Update @@ -238,11 +251,11 @@ func main() { package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -272,14 +285,17 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.UpdateCompanyRequest](../../models/operations/updatecompanyrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.UpdateCompanyRequest](../../pkg/models/operations/updatecompanyrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.UpdateCompanyResponse](../../models/operations/updatecompanyresponse.md), error** - +**[*operations.UpdateCompanyResponse](../../pkg/models/operations/updatecompanyresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | diff --git a/sync-for-payables/docs/sdks/companyinfo/README.md b/sync-for-payables/docs/sdks/companyinfo/README.md old mode 100755 new mode 100644 index 8c2676d9b..a68a45123 --- a/sync-for-payables/docs/sdks/companyinfo/README.md +++ b/sync-for-payables/docs/sdks/companyinfo/README.md @@ -19,11 +19,11 @@ Gets the latest basic info for a company. package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -49,14 +49,17 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetAccountingProfileRequest](../../models/operations/getaccountingprofilerequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetAccountingProfileRequest](../../pkg/models/operations/getaccountingprofilerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetAccountingProfileResponse](../../models/operations/getaccountingprofileresponse.md), error** - +**[*operations.GetAccountingProfileResponse](../../pkg/models/operations/getaccountingprofileresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,409,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | diff --git a/sync-for-payables/docs/sdks/connections/README.md b/sync-for-payables/docs/sdks/connections/README.md old mode 100755 new mode 100644 index 80fdedaef..b3aa7c18d --- a/sync-for-payables/docs/sdks/connections/README.md +++ b/sync-for-payables/docs/sdks/connections/README.md @@ -25,11 +25,11 @@ Use the [List Integrations](https://docs.codat.io/sync-for-payables-api#/operati package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -58,17 +58,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.CreateConnectionRequest](../../models/operations/createconnectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.CreateConnectionRequest](../../pkg/models/operations/createconnectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.CreateConnectionResponse](../../models/operations/createconnectionresponse.md), error** - +**[*operations.CreateConnectionResponse](../../pkg/models/operations/createconnectionresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## Delete @@ -81,11 +84,12 @@ This operation is not reversible. The end user would need to reauthorize a new d package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" + "net/http" ) func main() { @@ -112,17 +116,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.DeleteConnectionRequest](../../models/operations/deleteconnectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.DeleteConnectionRequest](../../pkg/models/operations/deleteconnectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.DeleteConnectionResponse](../../models/operations/deleteconnectionresponse.md), error** - +**[*operations.DeleteConnectionResponse](../../pkg/models/operations/deleteconnectionresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## Get @@ -134,11 +141,11 @@ func main() { package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -165,17 +172,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetConnectionRequest](../../models/operations/getconnectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetConnectionRequest](../../pkg/models/operations/getconnectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetConnectionResponse](../../models/operations/getconnectionresponse.md), error** - +**[*operations.GetConnectionResponse](../../pkg/models/operations/getconnectionresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## List @@ -187,11 +197,11 @@ func main() { package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -220,17 +230,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.ListConnectionsRequest](../../models/operations/listconnectionsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListConnectionsRequest](../../pkg/models/operations/listconnectionsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.ListConnectionsResponse](../../models/operations/listconnectionsresponse.md), error** - +**[*operations.ListConnectionsResponse](../../pkg/models/operations/listconnectionsresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## Unlink @@ -242,11 +255,11 @@ func main() { package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -274,14 +287,17 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.UnlinkConnectionRequest](../../models/operations/unlinkconnectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.UnlinkConnectionRequest](../../pkg/models/operations/unlinkconnectionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.UnlinkConnectionResponse](../../models/operations/unlinkconnectionresponse.md), error** - +**[*operations.UnlinkConnectionResponse](../../pkg/models/operations/unlinkconnectionresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | diff --git a/sync-for-payables/docs/sdks/journalentries/README.md b/sync-for-payables/docs/sdks/journalentries/README.md old mode 100755 new mode 100644 index 94287e25b..1745fe2fd --- a/sync-for-payables/docs/sdks/journalentries/README.md +++ b/sync-for-payables/docs/sdks/journalentries/README.md @@ -29,12 +29,12 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/ package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/types" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/types" ) func main() { @@ -67,14 +67,14 @@ func main() { Metadata: &shared.Metadata{}, ModifiedDate: syncforpayables.String("2022-10-23T00:00:00.000Z"), PostedOn: syncforpayables.String("2022-10-23T00:00:00.000Z"), - RecordRef: &shared.JournalEntryRecordReference{ + RecordRef: &shared.RecordReference{ DataType: syncforpayables.String("invoice"), }, SourceModifiedDate: syncforpayables.String("2022-10-23T00:00:00.000Z"), SupplementalData: &shared.SupplementalData{ Content: map[string]map[string]interface{}{ - "blue": map[string]interface{}{ - "shred": "abnormally", + "key": map[string]interface{}{ + "key": "string", }, }, }, @@ -95,17 +95,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.CreateJournalEntryRequest](../../models/operations/createjournalentryrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.CreateJournalEntryRequest](../../pkg/models/operations/createjournalentryrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.CreateJournalEntryResponse](../../models/operations/createjournalentryresponse.md), error** - +**[*operations.CreateJournalEntryResponse](../../pkg/models/operations/createjournalentryresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## GetCreateModel @@ -126,11 +129,11 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/ package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -157,14 +160,17 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetCreateJournalEntryModelRequest](../../models/operations/getcreatejournalentrymodelrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetCreateJournalEntryModelRequest](../../pkg/models/operations/getcreatejournalentrymodelrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetCreateJournalEntryModelResponse](../../models/operations/getcreatejournalentrymodelresponse.md), error** - +**[*operations.GetCreateJournalEntryModelResponse](../../pkg/models/operations/getcreatejournalentrymodelresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | diff --git a/sync-for-payables/docs/sdks/journals/README.md b/sync-for-payables/docs/sdks/journals/README.md old mode 100755 new mode 100644 index 2c494ddf1..27fa2035a --- a/sync-for-payables/docs/sdks/journals/README.md +++ b/sync-for-payables/docs/sdks/journals/README.md @@ -31,11 +31,11 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/ package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -47,14 +47,11 @@ func main() { ctx := context.Background() res, err := s.Journals.Create(ctx, operations.CreateJournalRequest{ - Journal: &shared.Journal{ - CreatedOn: syncforpayables.String("2022-10-23T00:00:00.000Z"), - Metadata: &shared.Metadata{}, - ModifiedDate: syncforpayables.String("2022-10-23T00:00:00.000Z"), - SourceModifiedDate: syncforpayables.String("2022-10-23T00:00:00.000Z"), - }, CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionID: "2e9d2c44-f675-40ba-8049-353bfcb5e171", + JournalPrototype: &shared.JournalPrototype{ + CreatedOn: syncforpayables.String("2022-10-23T00:00:00.000Z"), + }, }) if err != nil { log.Fatal(err) @@ -68,17 +65,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.CreateJournalRequest](../../models/operations/createjournalrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.CreateJournalRequest](../../pkg/models/operations/createjournalrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.CreateJournalResponse](../../models/operations/createjournalresponse.md), error** - +**[*operations.CreateJournalResponse](../../pkg/models/operations/createjournalresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## Get @@ -97,11 +97,11 @@ Before using this endpoint, you must have [retrieved data for the company](https package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -114,7 +114,7 @@ func main() { ctx := context.Background() res, err := s.Journals.Get(ctx, operations.GetJournalRequest{ CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002", - JournalID: "Northeast Hatchback Kia", + JournalID: "string", }) if err != nil { log.Fatal(err) @@ -128,17 +128,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetJournalRequest](../../models/operations/getjournalrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetJournalRequest](../../pkg/models/operations/getjournalrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetJournalResponse](../../models/operations/getjournalresponse.md), error** - +**[*operations.GetJournalResponse](../../pkg/models/operations/getjournalresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,409,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## GetCreateModel @@ -159,11 +162,11 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/ package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -190,17 +193,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetCreateJournalModelRequest](../../models/operations/getcreatejournalmodelrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetCreateJournalModelRequest](../../pkg/models/operations/getcreatejournalmodelrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetCreateJournalModelResponse](../../models/operations/getcreatejournalmodelresponse.md), error** - +**[*operations.GetCreateJournalModelResponse](../../pkg/models/operations/getcreatejournalmodelresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## List @@ -217,11 +223,11 @@ Before using this endpoint, you must have [retrieved data for the company](https package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -250,14 +256,17 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.ListJournalsRequest](../../models/operations/listjournalsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListJournalsRequest](../../pkg/models/operations/listjournalsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.ListJournalsResponse](../../models/operations/listjournalsresponse.md), error** - +**[*operations.ListJournalsResponse](../../pkg/models/operations/listjournalsresponse.md), error** +| Error Object | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,409,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | diff --git a/sync-for-payables/docs/sdks/managedata/README.md b/sync-for-payables/docs/sdks/managedata/README.md old mode 100755 new mode 100644 index 7669f46d6..d2a784136 --- a/sync-for-payables/docs/sdks/managedata/README.md +++ b/sync-for-payables/docs/sdks/managedata/README.md @@ -23,11 +23,11 @@ Get the state of each data type for a company package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -45,7 +45,7 @@ func main() { log.Fatal(err) } - if res.DataStatusResponse != nil { + if res.DataStatuses != nil { // handle response } } @@ -53,17 +53,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetDataStatusRequest](../../models/operations/getdatastatusrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetDataStatusRequest](../../pkg/models/operations/getdatastatusrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetDataStatusResponse](../../models/operations/getdatastatusresponse.md), error** - +**[*operations.GetDataStatusResponse](../../pkg/models/operations/getdatastatusresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## GetPullOperation @@ -75,11 +78,11 @@ Retrieve information about a single dataset or pull operation. package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -106,17 +109,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetPullOperationRequest](../../models/operations/getpulloperationrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetPullOperationRequest](../../pkg/models/operations/getpulloperationrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetPullOperationResponse](../../models/operations/getpulloperationresponse.md), error** - +**[*operations.GetPullOperationResponse](../../pkg/models/operations/getpulloperationresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## ListPullOperations @@ -128,11 +134,11 @@ Gets the pull operation history (datasets) for a given company. package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -161,17 +167,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.ListPullOperationsRequest](../../models/operations/listpulloperationsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListPullOperationsRequest](../../pkg/models/operations/listpulloperationsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.ListPullOperationsResponse](../../models/operations/listpulloperationsresponse.md), error** - +**[*operations.ListPullOperationsResponse](../../pkg/models/operations/listpulloperationsresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## RefreshAllDataTypes @@ -187,11 +196,12 @@ This is an asynchronous operation, and will bring updated data into Codat from t package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" + "net/http" ) func main() { @@ -217,17 +227,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.RefreshAllDataTypesRequest](../../models/operations/refreshalldatatypesrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.RefreshAllDataTypesRequest](../../pkg/models/operations/refreshalldatatypesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.RefreshAllDataTypesResponse](../../models/operations/refreshalldatatypesresponse.md), error** - +**[*operations.RefreshAllDataTypesResponse](../../pkg/models/operations/refreshalldatatypesresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## RefreshDataType @@ -241,11 +254,11 @@ This is an asynchronous operation, and will bring updated data into Codat from t package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -258,7 +271,7 @@ func main() { ctx := context.Background() res, err := s.ManageData.RefreshDataType(ctx, operations.RefreshDataTypeRequest{ CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002", - DataType: shared.DataTypeInvoices, + DataType: shared.SchemaDataTypeInvoices, }) if err != nil { log.Fatal(err) @@ -272,14 +285,17 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.RefreshDataTypeRequest](../../models/operations/refreshdatatyperequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.RefreshDataTypeRequest](../../pkg/models/operations/refreshdatatyperequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.RefreshDataTypeResponse](../../models/operations/refreshdatatyperesponse.md), error** - +**[*operations.RefreshDataTypeResponse](../../pkg/models/operations/refreshdatatyperesponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | diff --git a/sync-for-payables/docs/sdks/paymentmethods/README.md b/sync-for-payables/docs/sdks/paymentmethods/README.md old mode 100755 new mode 100644 index 978ca5ed4..596910305 --- a/sync-for-payables/docs/sdks/paymentmethods/README.md +++ b/sync-for-payables/docs/sdks/paymentmethods/README.md @@ -27,11 +27,11 @@ Before using this endpoint, you must have [retrieved data for the company](https package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -44,7 +44,7 @@ func main() { ctx := context.Background() res, err := s.PaymentMethods.Get(ctx, operations.GetPaymentMethodRequest{ CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002", - PaymentMethodID: "Northeast Hatchback Kia", + PaymentMethodID: "string", }) if err != nil { log.Fatal(err) @@ -58,17 +58,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetPaymentMethodRequest](../../models/operations/getpaymentmethodrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetPaymentMethodRequest](../../pkg/models/operations/getpaymentmethodrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetPaymentMethodResponse](../../models/operations/getpaymentmethodresponse.md), error** - +**[*operations.GetPaymentMethodResponse](../../pkg/models/operations/getpaymentmethodresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,409,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## List @@ -85,11 +88,11 @@ Before using this endpoint, you must have [retrieved data for the company](https package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -118,14 +121,17 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.ListPaymentMethodsRequest](../../models/operations/listpaymentmethodsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListPaymentMethodsRequest](../../pkg/models/operations/listpaymentmethodsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.ListPaymentMethodsResponse](../../models/operations/listpaymentmethodsresponse.md), error** - +**[*operations.ListPaymentMethodsResponse](../../pkg/models/operations/listpaymentmethodsresponse.md), error** +| Error Object | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,409,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | diff --git a/sync-for-payables/docs/sdks/pushoperations/README.md b/sync-for-payables/docs/sdks/pushoperations/README.md old mode 100755 new mode 100644 index c8aa80339..4d78d6f26 --- a/sync-for-payables/docs/sdks/pushoperations/README.md +++ b/sync-for-payables/docs/sdks/pushoperations/README.md @@ -20,11 +20,11 @@ Retrieve push operation. package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -51,17 +51,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetPushOperationRequest](../../models/operations/getpushoperationrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetPushOperationRequest](../../pkg/models/operations/getpushoperationrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetPushOperationResponse](../../models/operations/getpushoperationresponse.md), error** - +**[*operations.GetPushOperationResponse](../../pkg/models/operations/getpushoperationresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## List @@ -73,11 +76,11 @@ List push operation records. package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -106,14 +109,17 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.ListPushOperationsRequest](../../models/operations/listpushoperationsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListPushOperationsRequest](../../pkg/models/operations/listpushoperationsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.ListPushOperationsResponse](../../models/operations/listpushoperationsresponse.md), error** - +**[*operations.ListPushOperationsResponse](../../pkg/models/operations/listpushoperationsresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | diff --git a/sync-for-payables/docs/sdks/suppliers/README.md b/sync-for-payables/docs/sdks/suppliers/README.md old mode 100755 new mode 100644 index cd64c1f7a..6c874315f --- a/sync-for-payables/docs/sdks/suppliers/README.md +++ b/sync-for-payables/docs/sdks/suppliers/README.md @@ -32,11 +32,11 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/ package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -61,8 +61,8 @@ func main() { Status: shared.SupplierStatusActive, SupplementalData: &shared.SupplementalData{ Content: map[string]map[string]interface{}{ - "innovative": map[string]interface{}{ - "blue": "shred", + "key": map[string]interface{}{ + "key": "string", }, }, }, @@ -82,17 +82,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.CreateSupplierRequest](../../models/operations/createsupplierrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.CreateSupplierRequest](../../pkg/models/operations/createsupplierrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.CreateSupplierResponse](../../models/operations/createsupplierresponse.md), error** - +**[*operations.CreateSupplierResponse](../../pkg/models/operations/createsupplierresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## Get @@ -111,11 +114,11 @@ Before using this endpoint, you must have [retrieved data for the company](https package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -128,7 +131,7 @@ func main() { ctx := context.Background() res, err := s.Suppliers.Get(ctx, operations.GetSupplierRequest{ CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002", - SupplierID: "Northeast Hatchback Kia", + SupplierID: "string", }) if err != nil { log.Fatal(err) @@ -142,17 +145,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetSupplierRequest](../../models/operations/getsupplierrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetSupplierRequest](../../pkg/models/operations/getsupplierrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetSupplierResponse](../../models/operations/getsupplierresponse.md), error** - +**[*operations.GetSupplierResponse](../../pkg/models/operations/getsupplierresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,409,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## GetCreateUpdateModel @@ -173,11 +179,11 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/ package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -204,17 +210,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetCreateUpdateSupplierModelRequest](../../models/operations/getcreateupdatesuppliermodelrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetCreateUpdateSupplierModelRequest](../../pkg/models/operations/getcreateupdatesuppliermodelrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetCreateUpdateSupplierModelResponse](../../models/operations/getcreateupdatesuppliermodelresponse.md), error** - +**[*operations.GetCreateUpdateSupplierModelResponse](../../pkg/models/operations/getcreateupdatesuppliermodelresponse.md), error** +| Error Object | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## List @@ -231,11 +240,11 @@ Before using this endpoint, you must have [retrieved data for the company](https package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -264,17 +273,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.ListSuppliersRequest](../../models/operations/listsuppliersrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListSuppliersRequest](../../pkg/models/operations/listsuppliersrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.ListSuppliersResponse](../../models/operations/listsuppliersresponse.md), error** - +**[*operations.ListSuppliersResponse](../../pkg/models/operations/listsuppliersresponse.md), error** +| Error Object | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,409,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## Update @@ -295,11 +307,11 @@ Check out our [coverage explorer](https://knowledge.codat.io/supported-features/ package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -324,15 +336,15 @@ func main() { Status: shared.SupplierStatusActive, SupplementalData: &shared.SupplementalData{ Content: map[string]map[string]interface{}{ - "male": map[string]interface{}{ - "Metal": "cheater", + "key": map[string]interface{}{ + "key": "string", }, }, }, }, CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionID: "2e9d2c44-f675-40ba-8049-353bfcb5e171", - SupplierID: "Cotton", + SupplierID: "string", }) if err != nil { log.Fatal(err) @@ -346,14 +358,17 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.UpdateSupplierRequest](../../models/operations/updatesupplierrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.UpdateSupplierRequest](../../pkg/models/operations/updatesupplierrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.UpdateSupplierResponse](../../models/operations/updatesupplierresponse.md), error** - +**[*operations.UpdateSupplierResponse](../../pkg/models/operations/updatesupplierresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | diff --git a/sync-for-payables/docs/sdks/taxrates/README.md b/sync-for-payables/docs/sdks/taxrates/README.md old mode 100755 new mode 100644 index 976bfa66a..afe03bab3 --- a/sync-for-payables/docs/sdks/taxrates/README.md +++ b/sync-for-payables/docs/sdks/taxrates/README.md @@ -27,11 +27,11 @@ Before using this endpoint, you must have [retrieved data for the company](https package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -44,7 +44,7 @@ func main() { ctx := context.Background() res, err := s.TaxRates.Get(ctx, operations.GetTaxRateRequest{ CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002", - TaxRateID: "Northeast Hatchback Kia", + TaxRateID: "string", }) if err != nil { log.Fatal(err) @@ -58,17 +58,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetTaxRateRequest](../../models/operations/gettaxraterequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetTaxRateRequest](../../pkg/models/operations/gettaxraterequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetTaxRateResponse](../../models/operations/gettaxrateresponse.md), error** - +**[*operations.GetTaxRateResponse](../../pkg/models/operations/gettaxrateresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,409,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## List @@ -85,11 +88,11 @@ Before using this endpoint, you must have [retrieved data for the company](https package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -118,14 +121,17 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.ListTaxRatesRequest](../../models/operations/listtaxratesrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListTaxRatesRequest](../../pkg/models/operations/listtaxratesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.ListTaxRatesResponse](../../models/operations/listtaxratesresponse.md), error** - +**[*operations.ListTaxRatesResponse](../../pkg/models/operations/listtaxratesresponse.md), error** +| Error Object | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,409,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | diff --git a/sync-for-payables/docs/sdks/trackingcategories/README.md b/sync-for-payables/docs/sdks/trackingcategories/README.md old mode 100755 new mode 100644 index b2b5da085..ea6dd464d --- a/sync-for-payables/docs/sdks/trackingcategories/README.md +++ b/sync-for-payables/docs/sdks/trackingcategories/README.md @@ -27,11 +27,11 @@ Before using this endpoint, you must have [retrieved data for the company](https package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -44,7 +44,7 @@ func main() { ctx := context.Background() res, err := s.TrackingCategories.Get(ctx, operations.GetTrackingCategoryRequest{ CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002", - TrackingCategoryID: "Northeast Hatchback Kia", + TrackingCategoryID: "string", }) if err != nil { log.Fatal(err) @@ -58,17 +58,20 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.GetTrackingCategoryRequest](../../models/operations/gettrackingcategoryrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.GetTrackingCategoryRequest](../../pkg/models/operations/gettrackingcategoryrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.GetTrackingCategoryResponse](../../models/operations/gettrackingcategoryresponse.md), error** - +**[*operations.GetTrackingCategoryResponse](../../pkg/models/operations/gettrackingcategoryresponse.md), error** +| Error Object | Status Code | Content Type | +| ------------------------------- | ------------------------------- | ------------------------------- | +| sdkerrors.ErrorMessage | 401,402,403,404,409,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | ## List @@ -85,11 +88,11 @@ Before using this endpoint, you must have [retrieved data for the company](https package main import( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v3" "context" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" "log" - syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" ) func main() { @@ -118,14 +121,17 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.ListTrackingCategoriesRequest](../../models/operations/listtrackingcategoriesrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ListTrackingCategoriesRequest](../../pkg/models/operations/listtrackingcategoriesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.ListTrackingCategoriesResponse](../../models/operations/listtrackingcategoriesresponse.md), error** - +**[*operations.ListTrackingCategoriesResponse](../../pkg/models/operations/listtrackingcategoriesresponse.md), error** +| Error Object | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| sdkerrors.ErrorMessage | 400,401,402,403,404,409,429,500,503 | application/json | +| sdkerrors.SDKError | 400-600 | */* | diff --git a/sync-for-payables/files.gen b/sync-for-payables/files.gen index 929b96a45..c44e68a35 100755 --- a/sync-for-payables/files.gen +++ b/sync-for-payables/files.gen @@ -1,21 +1,22 @@ -accounts.go -billcreditnotes.go -billpayments.go -bills.go companies.go -companyinfo.go connections.go +bills.go +billcreditnotes.go +billpayments.go +accounts.go journalentries.go journals.go +suppliers.go managedata.go +companyinfo.go paymentmethods.go -pushoperations.go -suppliers.go taxrates.go trackingcategories.go +pushoperations.go codatsyncpayables.go go.mod go.sum +tests/helpers.go pkg/models/sdkerrors/sdkerror.go pkg/types/bigint.go pkg/types/date.go @@ -32,437 +33,446 @@ pkg/utils/requestbody.go pkg/utils/retries.go pkg/utils/security.go pkg/utils/utils.go -tests/helpers.go -pkg/models/operations/createaccount.go -pkg/models/operations/getaccount.go -pkg/models/operations/getcreateaccountmodel.go -pkg/models/operations/listaccounts.go -pkg/models/operations/createbillcreditnote.go -pkg/models/operations/getbillcreditnote.go -pkg/models/operations/getcreateupdatebillcreditnotemodel.go -pkg/models/operations/listbillcreditnotes.go -pkg/models/operations/updatebillcreditnote.go -pkg/models/operations/createbillpayment.go -pkg/models/operations/deletebillpayment.go -pkg/models/operations/getbillpayments.go -pkg/models/operations/getcreatebillpaymentmodel.go -pkg/models/operations/listbillpayments.go -pkg/models/operations/createbill.go -pkg/models/operations/deletebill.go -pkg/models/operations/deletebillattachment.go -pkg/models/operations/downloadbillattachment.go -pkg/models/operations/getbill.go -pkg/models/operations/getbillattachment.go -pkg/models/operations/getcreateupdatebillmodel.go -pkg/models/operations/listbills.go -pkg/models/operations/listbillattachments.go -pkg/models/operations/updatebill.go -pkg/models/operations/uploadbillattachment.go -pkg/models/operations/createcompany.go -pkg/models/operations/deletecompany.go -pkg/models/operations/getcompany.go -pkg/models/operations/listcompanies.go -pkg/models/operations/updatecompany.go -pkg/models/operations/getaccountingprofile.go -pkg/models/operations/createconnection.go -pkg/models/operations/deleteconnection.go -pkg/models/operations/getconnection.go -pkg/models/operations/listconnections.go -pkg/models/operations/unlinkconnection.go -pkg/models/operations/createjournalentry.go -pkg/models/operations/getcreatejournalentrymodel.go -pkg/models/operations/createjournal.go -pkg/models/operations/getjournal.go -pkg/models/operations/getcreatejournalmodel.go -pkg/models/operations/listjournals.go -pkg/models/operations/getdatastatus.go -pkg/models/operations/getpulloperation.go -pkg/models/operations/listpulloperations.go -pkg/models/operations/refreshalldatatypes.go -pkg/models/operations/refreshdatatype.go -pkg/models/operations/getpaymentmethod.go -pkg/models/operations/listpaymentmethods.go -pkg/models/operations/getpushoperation.go -pkg/models/operations/listpushoperations.go -pkg/models/operations/createsupplier.go -pkg/models/operations/getsupplier.go -pkg/models/operations/getcreateupdatesuppliermodel.go -pkg/models/operations/listsuppliers.go -pkg/models/operations/updatesupplier.go -pkg/models/operations/gettaxrate.go -pkg/models/operations/listtaxrates.go -pkg/models/operations/gettrackingcategory.go -pkg/models/operations/listtrackingcategories.go -pkg/models/shared/errormessage.go -pkg/models/shared/createaccountresponse.go -pkg/models/shared/validation.go -pkg/models/shared/validationitem.go -pkg/models/shared/pushoperationstatus.go -pkg/models/shared/datatype.go -pkg/models/shared/account.go -pkg/models/shared/accounttype.go -pkg/models/shared/supplementaldata.go -pkg/models/shared/accountstatus.go -pkg/models/shared/metadata.go -pkg/models/shared/pushoperationchange.go -pkg/models/shared/pushchangetype.go -pkg/models/shared/pushoperationref.go -pkg/models/shared/pushoption.go -pkg/models/shared/pushvalidationinfo.go -pkg/models/shared/pushfieldvalidation.go -pkg/models/shared/pushoptiontype.go -pkg/models/shared/pushoptionproperty.go -pkg/models/shared/pushoptionchoice.go -pkg/models/shared/accounts.go -pkg/models/shared/links.go -pkg/models/shared/halref.go -pkg/models/shared/createbillcreditnoteresponse.go -pkg/models/shared/billcreditnote.go -pkg/models/shared/withholdingtaxitems.go -pkg/models/shared/supplierref.go -pkg/models/shared/billcreditnotestatus.go -pkg/models/shared/items.go -pkg/models/shared/paymentallocationpayment.go -pkg/models/shared/accountref.go -pkg/models/shared/billcreditnotelineitem.go -pkg/models/shared/trackingcategoryref.go -pkg/models/shared/billedtotype.go -pkg/models/shared/taxrateref.go -pkg/models/shared/billcreditnotes.go -pkg/models/shared/updatebillcreditnoteresponse.go -pkg/models/shared/createbillpaymentresponse.go -pkg/models/shared/billpayment.go -pkg/models/shared/paymentmethodref.go -pkg/models/shared/billpaymentline.go -pkg/models/shared/billpaymentlinelink.go -pkg/models/shared/billpaymentlinelinktype.go -pkg/models/shared/pushoperation.go -pkg/models/shared/billpayments.go -pkg/models/shared/createbillresponse.go -pkg/models/shared/bill.go -pkg/models/shared/billstatus.go -pkg/models/shared/billlineitem.go -pkg/models/shared/tracking.go -pkg/models/shared/itemref.go -pkg/models/shared/attachment.go -pkg/models/shared/bills.go -pkg/models/shared/attachments.go -pkg/models/shared/updatebillresponse.go -pkg/models/shared/company.go -pkg/models/shared/connection.go -pkg/models/shared/dataconnectionstatus.go -pkg/models/shared/dataconnectionerror.go -pkg/models/shared/companyrequestbody.go -pkg/models/shared/companies.go -pkg/models/shared/companyinfo.go -pkg/models/shared/weblink.go -pkg/models/shared/phonenumber.go -pkg/models/shared/phonenumbertype.go -pkg/models/shared/address.go -pkg/models/shared/accountingaddresstype.go -pkg/models/shared/connections.go -pkg/models/shared/createjournalentryresponse.go -pkg/models/shared/journalentry.go -pkg/models/shared/journalref.go -pkg/models/shared/journalline.go -pkg/models/shared/recordref.go -pkg/models/shared/createjournalresponse.go -pkg/models/shared/journal.go -pkg/models/shared/journalstatus.go -pkg/models/shared/journals.go -pkg/models/shared/datastatus.go -pkg/models/shared/pulloperation.go -pkg/models/shared/pulloperations.go -pkg/models/shared/paymentmethod.go -pkg/models/shared/paymentmethodtype.go -pkg/models/shared/paymentmethods.go -pkg/models/shared/pushoperations.go -pkg/models/shared/createsupplierresponse.go -pkg/models/shared/supplier.go -pkg/models/shared/supplierstatus.go -pkg/models/shared/suppliers.go -pkg/models/shared/updatesupplierresponse.go -pkg/models/shared/taxrate.go -pkg/models/shared/validdatatypelinksitems.go -pkg/models/shared/taxratestatus.go -pkg/models/shared/taxratecomponent.go -pkg/models/shared/taxrates.go -pkg/models/shared/trackingcategorytree.go -pkg/models/shared/status.go -pkg/models/shared/trackingcategories.go -pkg/models/shared/trackingcategory.go -pkg/models/shared/security.go -pkg/models/shared/clientratelimitreachedwebhook.go -pkg/models/shared/clientratelimitreachedwebhookdata.go -pkg/models/shared/clientratelimitresetwebhook.go -pkg/models/shared/clientratelimitresetwebhookdata.go -pkg/models/webhooks/clientratelimitreached.go -pkg/models/webhooks/clientratelimitreset.go -USAGE.md -docs/models/operations/createaccountrequest.md -docs/models/operations/createaccountresponse.md -docs/models/operations/getaccountrequest.md -docs/models/operations/getaccountresponse.md -docs/models/operations/getcreateaccountmodelrequest.md -docs/models/operations/getcreateaccountmodelresponse.md -docs/models/operations/listaccountsrequest.md -docs/models/operations/listaccountsresponse.md -docs/models/operations/createbillcreditnoterequest.md -docs/models/operations/createbillcreditnoteresponse.md -docs/models/operations/getbillcreditnoterequest.md -docs/models/operations/getbillcreditnoteresponse.md -docs/models/operations/getcreateupdatebillcreditnotemodelrequest.md -docs/models/operations/getcreateupdatebillcreditnotemodelresponse.md -docs/models/operations/listbillcreditnotesrequest.md -docs/models/operations/listbillcreditnotesresponse.md -docs/models/operations/updatebillcreditnoterequest.md -docs/models/operations/updatebillcreditnoteresponse.md -docs/models/operations/createbillpaymentrequest.md -docs/models/operations/createbillpaymentresponse.md -docs/models/operations/deletebillpaymentrequest.md -docs/models/operations/deletebillpaymentresponse.md -docs/models/operations/getbillpaymentsrequest.md -docs/models/operations/getbillpaymentsresponse.md -docs/models/operations/getcreatebillpaymentmodelrequest.md -docs/models/operations/getcreatebillpaymentmodelresponse.md -docs/models/operations/listbillpaymentsrequest.md -docs/models/operations/listbillpaymentsresponse.md -docs/models/operations/createbillrequest.md -docs/models/operations/createbillresponse.md -docs/models/operations/deletebillrequest.md -docs/models/operations/deletebillresponse.md -docs/models/operations/deletebillattachmentrequest.md -docs/models/operations/deletebillattachmentresponse.md -docs/models/operations/downloadbillattachmentrequest.md -docs/models/operations/downloadbillattachmentresponse.md -docs/models/operations/getbillrequest.md -docs/models/operations/getbillresponse.md -docs/models/operations/getbillattachmentrequest.md -docs/models/operations/getbillattachmentresponse.md -docs/models/operations/getcreateupdatebillmodelrequest.md -docs/models/operations/getcreateupdatebillmodelresponse.md -docs/models/operations/listbillsrequest.md -docs/models/operations/listbillsresponse.md -docs/models/operations/listbillattachmentsrequest.md -docs/models/operations/listbillattachmentsresponse.md -docs/models/operations/updatebillrequest.md -docs/models/operations/updatebillresponse.md -docs/models/operations/uploadbillattachmentrequestbody.md -docs/models/operations/uploadbillattachmentrequest.md -docs/models/operations/uploadbillattachmentresponse.md -docs/models/operations/createcompanyresponse.md -docs/models/operations/deletecompanyrequest.md -docs/models/operations/deletecompanyresponse.md -docs/models/operations/getcompanyrequest.md -docs/models/operations/getcompanyresponse.md -docs/models/operations/listcompaniesrequest.md -docs/models/operations/listcompaniesresponse.md -docs/models/operations/updatecompanyrequest.md -docs/models/operations/updatecompanyresponse.md -docs/models/operations/getaccountingprofilerequest.md -docs/models/operations/getaccountingprofileresponse.md -docs/models/operations/createconnectionrequestbody.md -docs/models/operations/createconnectionrequest.md -docs/models/operations/createconnectionresponse.md -docs/models/operations/deleteconnectionrequest.md -docs/models/operations/deleteconnectionresponse.md -docs/models/operations/getconnectionrequest.md -docs/models/operations/getconnectionresponse.md -docs/models/operations/listconnectionsrequest.md -docs/models/operations/listconnectionsresponse.md -docs/models/operations/unlinkconnectionupdateconnection.md -docs/models/operations/unlinkconnectionrequest.md -docs/models/operations/unlinkconnectionresponse.md -docs/models/operations/createjournalentryrequest.md -docs/models/operations/createjournalentryresponse.md -docs/models/operations/getcreatejournalentrymodelrequest.md -docs/models/operations/getcreatejournalentrymodelresponse.md -docs/models/operations/createjournalrequest.md -docs/models/operations/createjournalresponse.md -docs/models/operations/getjournalrequest.md -docs/models/operations/getjournalresponse.md -docs/models/operations/getcreatejournalmodelrequest.md -docs/models/operations/getcreatejournalmodelresponse.md -docs/models/operations/listjournalsrequest.md -docs/models/operations/listjournalsresponse.md -docs/models/operations/getdatastatusrequest.md -docs/models/operations/getdatastatusresponse.md -docs/models/operations/getpulloperationrequest.md -docs/models/operations/getpulloperationresponse.md -docs/models/operations/listpulloperationsrequest.md -docs/models/operations/listpulloperationsresponse.md -docs/models/operations/refreshalldatatypesrequest.md -docs/models/operations/refreshalldatatypesresponse.md -docs/models/operations/refreshdatatyperequest.md -docs/models/operations/refreshdatatyperesponse.md -docs/models/operations/getpaymentmethodrequest.md -docs/models/operations/getpaymentmethodresponse.md -docs/models/operations/listpaymentmethodsrequest.md -docs/models/operations/listpaymentmethodsresponse.md -docs/models/operations/getpushoperationrequest.md -docs/models/operations/getpushoperationresponse.md -docs/models/operations/listpushoperationsrequest.md -docs/models/operations/listpushoperationsresponse.md -docs/models/operations/createsupplierrequest.md -docs/models/operations/createsupplierresponse.md -docs/models/operations/getsupplierrequest.md -docs/models/operations/getsupplierresponse.md -docs/models/operations/getcreateupdatesuppliermodelrequest.md -docs/models/operations/getcreateupdatesuppliermodelresponse.md -docs/models/operations/listsuppliersrequest.md -docs/models/operations/listsuppliersresponse.md -docs/models/operations/updatesupplierrequest.md -docs/models/operations/updatesupplierresponse.md -docs/models/operations/gettaxraterequest.md -docs/models/operations/gettaxrateresponse.md -docs/models/operations/listtaxratesrequest.md -docs/models/operations/listtaxratesresponse.md -docs/models/operations/gettrackingcategoryrequest.md -docs/models/operations/gettrackingcategoryresponse.md -docs/models/operations/listtrackingcategoriesrequest.md -docs/models/operations/listtrackingcategoriesresponse.md -docs/models/shared/errormessage.md -docs/models/shared/createaccountresponse.md -docs/models/shared/validation.md -docs/models/shared/validationitem.md -docs/models/shared/pushoperationstatus.md -docs/models/shared/datatype.md -docs/models/shared/accountvaliddatatypelinks.md -docs/models/shared/account.md -docs/models/shared/accounttype.md -docs/models/shared/supplementaldata.md -docs/models/shared/accountstatus.md -docs/models/shared/metadata.md -docs/models/shared/pushoperationchange.md -docs/models/shared/pushchangetype.md -docs/models/shared/pushoperationref.md -docs/models/shared/pushoption.md -docs/models/shared/pushvalidationinfo.md -docs/models/shared/pushfieldvalidation.md -docs/models/shared/pushoptiontype.md -docs/models/shared/pushoptionproperty.md -docs/models/shared/pushoptionchoice.md -docs/models/shared/accounts.md -docs/models/shared/links.md -docs/models/shared/halref.md -docs/models/shared/createbillcreditnoteresponse.md -docs/models/shared/billcreditnote.md -docs/models/shared/withholdingtaxitems.md -docs/models/shared/supplierref.md -docs/models/shared/billcreditnotestatus.md -docs/models/shared/itemsallocation.md -docs/models/shared/items.md -docs/models/shared/paymentallocationpayment.md -docs/models/shared/accountref.md -docs/models/shared/billcreditnotelineitemitemreference.md -docs/models/shared/billcreditnotelineitemtrackingcustomerref.md -docs/models/shared/billcreditnotelineitemtrackingprojectreference.md -docs/models/shared/billcreditnotelineitemtracking.md -docs/models/shared/billcreditnotelineitem.md -docs/models/shared/trackingcategoryref.md -docs/models/shared/billedtotype.md -docs/models/shared/taxrateref.md -docs/models/shared/billcreditnotes.md -docs/models/shared/updatebillcreditnoteresponse.md -docs/models/shared/createbillpaymentresponse.md -docs/models/shared/billpayment.md -docs/models/shared/paymentmethodref.md -docs/models/shared/billpaymentline.md -docs/models/shared/billpaymentlinelink.md -docs/models/shared/billpaymentlinelinktype.md -docs/models/shared/pushoperation.md -docs/models/shared/billpayments.md -docs/models/shared/createbillresponse.md -docs/models/shared/billpaymentallocationallocation.md -docs/models/shared/billpaymentallocation.md -docs/models/shared/billpurchaseorderreference.md -docs/models/shared/billwithholdingtax.md -docs/models/shared/bill.md -docs/models/shared/billstatus.md -docs/models/shared/billlineitemrecordlinereferencedatatype.md -docs/models/shared/billlineitemrecordlinereference.md -docs/models/shared/billlineitem.md -docs/models/shared/trackingcustomerref.md -docs/models/shared/trackingprojectreference.md -docs/models/shared/tracking.md -docs/models/shared/itemref.md -docs/models/shared/attachment.md -docs/models/shared/bills.md -docs/models/shared/attachments.md -docs/models/shared/updatebillresponse.md -docs/models/shared/company.md -docs/models/shared/connectionsourcetype.md -docs/models/shared/connection.md -docs/models/shared/dataconnectionstatus.md -docs/models/shared/dataconnectionerror.md -docs/models/shared/companyrequestbody.md -docs/models/shared/companies.md -docs/models/shared/companyinfo.md -docs/models/shared/weblinktype.md -docs/models/shared/weblink.md -docs/models/shared/phonenumber.md -docs/models/shared/phonenumbertype.md -docs/models/shared/address.md -docs/models/shared/accountingaddresstype.md -docs/models/shared/connections.md -docs/models/shared/createjournalentryresponse.md -docs/models/shared/journalentryrecordreference.md -docs/models/shared/journalentry.md -docs/models/shared/journalref.md -docs/models/shared/journallinetracking.md -docs/models/shared/journalline.md -docs/models/shared/recordref.md -docs/models/shared/createjournalresponse.md -docs/models/shared/journal.md -docs/models/shared/journalstatus.md -docs/models/shared/journals.md -docs/models/shared/datastatusdatatypes.md -docs/models/shared/datastatus.md -docs/models/shared/pulloperationstatus.md -docs/models/shared/pulloperation.md -docs/models/shared/pulloperations.md -docs/models/shared/paymentmethodstatus.md -docs/models/shared/paymentmethod.md -docs/models/shared/paymentmethodtype.md -docs/models/shared/paymentmethods.md -docs/models/shared/pushoperations.md -docs/models/shared/createsupplierresponse.md -docs/models/shared/supplier.md -docs/models/shared/supplierstatus.md -docs/models/shared/suppliers.md -docs/models/shared/updatesupplierresponse.md -docs/models/shared/taxrate.md -docs/models/shared/validdatatypelinksitems.md -docs/models/shared/taxratestatus.md -docs/models/shared/taxratecomponent.md -docs/models/shared/taxrates.md -docs/models/shared/trackingcategorytree.md -docs/models/shared/status.md -docs/models/shared/trackingcategories.md -docs/models/shared/trackingcategory.md -docs/models/shared/security.md -docs/models/shared/clientratelimitreachedwebhook.md -docs/models/shared/clientratelimitreachedwebhookdata.md -docs/models/shared/clientratelimitresetwebhook.md -docs/models/shared/clientratelimitresetwebhookdata.md -docs/models/webhooks/clientratelimitreachedresponse.md -docs/models/webhooks/clientratelimitresetresponse.md +/pkg/models/operations/createcompany.go +/pkg/models/operations/deletecompany.go +/pkg/models/operations/getcompany.go +/pkg/models/operations/listcompanies.go +/pkg/models/operations/updatecompany.go +/pkg/models/operations/createconnection.go +/pkg/models/operations/deleteconnection.go +/pkg/models/operations/getconnection.go +/pkg/models/operations/listconnections.go +/pkg/models/operations/unlinkconnection.go +/pkg/models/operations/createbill.go +/pkg/models/operations/deletebill.go +/pkg/models/operations/deletebillattachment.go +/pkg/models/operations/downloadbillattachment.go +/pkg/models/operations/getbill.go +/pkg/models/operations/getbillattachment.go +/pkg/models/operations/getcreateupdatebillmodel.go +/pkg/models/operations/listbills.go +/pkg/models/operations/listbillattachments.go +/pkg/models/operations/updatebill.go +/pkg/models/operations/uploadbillattachment.go +/pkg/models/operations/createbillcreditnote.go +/pkg/models/operations/getbillcreditnote.go +/pkg/models/operations/getcreateupdatebillcreditnotemodel.go +/pkg/models/operations/listbillcreditnotes.go +/pkg/models/operations/updatebillcreditnote.go +/pkg/models/operations/createbillpayment.go +/pkg/models/operations/deletebillpayment.go +/pkg/models/operations/getbillpayments.go +/pkg/models/operations/getcreatebillpaymentmodel.go +/pkg/models/operations/listbillpayments.go +/pkg/models/operations/createaccount.go +/pkg/models/operations/getaccount.go +/pkg/models/operations/getcreateaccountmodel.go +/pkg/models/operations/listaccounts.go +/pkg/models/operations/createjournalentry.go +/pkg/models/operations/getcreatejournalentrymodel.go +/pkg/models/operations/createjournal.go +/pkg/models/operations/getjournal.go +/pkg/models/operations/getcreatejournalmodel.go +/pkg/models/operations/listjournals.go +/pkg/models/operations/createsupplier.go +/pkg/models/operations/getsupplier.go +/pkg/models/operations/getcreateupdatesuppliermodel.go +/pkg/models/operations/listsuppliers.go +/pkg/models/operations/updatesupplier.go +/pkg/models/operations/getdatastatus.go +/pkg/models/operations/getpulloperation.go +/pkg/models/operations/listpulloperations.go +/pkg/models/operations/refreshalldatatypes.go +/pkg/models/operations/refreshdatatype.go +/pkg/models/operations/getaccountingprofile.go +/pkg/models/operations/getpaymentmethod.go +/pkg/models/operations/listpaymentmethods.go +/pkg/models/operations/gettaxrate.go +/pkg/models/operations/listtaxrates.go +/pkg/models/operations/gettrackingcategory.go +/pkg/models/operations/listtrackingcategories.go +/pkg/models/operations/getpushoperation.go +/pkg/models/operations/listpushoperations.go +/pkg/models/shared/company.go +/pkg/models/shared/connection.go +/pkg/models/shared/dataconnectionstatus.go +/pkg/models/shared/dataconnectionerror.go +/pkg/models/shared/companyrequestbody.go +/pkg/models/shared/companies.go +/pkg/models/shared/links.go +/pkg/models/shared/halref.go +/pkg/models/shared/connections.go +/pkg/models/shared/createbillresponse.go +/pkg/models/shared/validation.go +/pkg/models/shared/validationitem.go +/pkg/models/shared/pushoperationstatus.go +/pkg/models/shared/datatype.go +/pkg/models/shared/bill.go +/pkg/models/shared/supplierref.go +/pkg/models/shared/supplementaldata.go +/pkg/models/shared/billstatus.go +/pkg/models/shared/paymentallocationpayment.go +/pkg/models/shared/accountref.go +/pkg/models/shared/metadata.go +/pkg/models/shared/billlineitem.go +/pkg/models/shared/trackingcategoryref.go +/pkg/models/shared/tracking.go +/pkg/models/shared/billedtotype.go +/pkg/models/shared/taxrateref.go +/pkg/models/shared/itemref.go +/pkg/models/shared/pushoperationchange.go +/pkg/models/shared/pushchangetype.go +/pkg/models/shared/pushoperationref.go +/pkg/models/shared/pushoperation.go +/pkg/models/shared/attachment.go +/pkg/models/shared/pushoption.go +/pkg/models/shared/pushvalidationinfo.go +/pkg/models/shared/pushfieldvalidation.go +/pkg/models/shared/pushoptiontype.go +/pkg/models/shared/pushoptionproperty.go +/pkg/models/shared/pushoptionchoice.go +/pkg/models/shared/bills.go +/pkg/models/shared/attachments.go +/pkg/models/shared/updatebillresponse.go +/pkg/models/shared/attachmentupload.go +/pkg/models/shared/codatfile.go +/pkg/models/shared/createbillcreditnoteresponse.go +/pkg/models/shared/billcreditnote.go +/pkg/models/shared/withholdingtaxitems.go +/pkg/models/shared/billcreditnotestatus.go +/pkg/models/shared/items.go +/pkg/models/shared/billcreditnotelineitem.go +/pkg/models/shared/billcreditnotes.go +/pkg/models/shared/updatebillcreditnoteresponse.go +/pkg/models/shared/createbillpaymentresponse.go +/pkg/models/shared/billpayment.go +/pkg/models/shared/paymentmethodref.go +/pkg/models/shared/billpaymentline.go +/pkg/models/shared/billpaymentlinelink.go +/pkg/models/shared/billpaymentlinelinktype.go +/pkg/models/shared/billpayments.go +/pkg/models/shared/createaccountresponse.go +/pkg/models/shared/account.go +/pkg/models/shared/accounttype.go +/pkg/models/shared/accountstatus.go +/pkg/models/shared/accountprototype.go +/pkg/models/shared/accounts.go +/pkg/models/shared/createjournalentryresponse.go +/pkg/models/shared/journalentry.go +/pkg/models/shared/journalref.go +/pkg/models/shared/journalline.go +/pkg/models/shared/recordref.go +/pkg/models/shared/createjournalresponse.go +/pkg/models/shared/journal.go +/pkg/models/shared/journalstatus.go +/pkg/models/shared/journalprototype.go +/pkg/models/shared/journals.go +/pkg/models/shared/createsupplierresponse.go +/pkg/models/shared/supplier.go +/pkg/models/shared/supplierstatus.go +/pkg/models/shared/address.go +/pkg/models/shared/accountingaddresstype.go +/pkg/models/shared/suppliers.go +/pkg/models/shared/updatesupplierresponse.go +/pkg/models/shared/datastatus.go +/pkg/models/shared/pulloperation.go +/pkg/models/shared/pulloperations.go +/pkg/models/shared/schemadatatype.go +/pkg/models/shared/companyinfo.go +/pkg/models/shared/weblink.go +/pkg/models/shared/phonenumber.go +/pkg/models/shared/phonenumbertype.go +/pkg/models/shared/paymentmethod.go +/pkg/models/shared/paymentmethodtype.go +/pkg/models/shared/paymentmethods.go +/pkg/models/shared/taxrate.go +/pkg/models/shared/validdatatypelinkitems.go +/pkg/models/shared/taxratestatus.go +/pkg/models/shared/taxratecomponent.go +/pkg/models/shared/taxrates.go +/pkg/models/shared/trackingcategorytree.go +/pkg/models/shared/status.go +/pkg/models/shared/trackingcategories.go +/pkg/models/shared/trackingcategory.go +/pkg/models/shared/pushoperations.go +/pkg/models/shared/security.go +/pkg/models/shared/clientratelimitreachedwebhook.go +/pkg/models/shared/clientratelimitreachedwebhookdata.go +/pkg/models/shared/clientratelimitresetwebhook.go +/pkg/models/shared/clientratelimitresetwebhookdata.go +/pkg/models/sdkerrors/errormessage.go +/pkg/models/webhooks/clientratelimitreached.go +/pkg/models/webhooks/clientratelimitreset.go +docs/pkg/models/operations/createcompanyresponse.md +docs/pkg/models/operations/deletecompanyrequest.md +docs/pkg/models/operations/deletecompanyresponse.md +docs/pkg/models/operations/getcompanyrequest.md +docs/pkg/models/operations/getcompanyresponse.md +docs/pkg/models/operations/listcompaniesrequest.md +docs/pkg/models/operations/listcompaniesresponse.md +docs/pkg/models/operations/updatecompanyrequest.md +docs/pkg/models/operations/updatecompanyresponse.md +docs/pkg/models/operations/createconnectionrequestbody.md +docs/pkg/models/operations/createconnectionrequest.md +docs/pkg/models/operations/createconnectionresponse.md +docs/pkg/models/operations/deleteconnectionrequest.md +docs/pkg/models/operations/deleteconnectionresponse.md +docs/pkg/models/operations/getconnectionrequest.md +docs/pkg/models/operations/getconnectionresponse.md +docs/pkg/models/operations/listconnectionsrequest.md +docs/pkg/models/operations/listconnectionsresponse.md +docs/pkg/models/operations/unlinkconnectionupdateconnection.md +docs/pkg/models/operations/unlinkconnectionrequest.md +docs/pkg/models/operations/unlinkconnectionresponse.md +docs/pkg/models/operations/createbillrequest.md +docs/pkg/models/operations/createbillresponse.md +docs/pkg/models/operations/deletebillrequest.md +docs/pkg/models/operations/deletebillresponse.md +docs/pkg/models/operations/deletebillattachmentrequest.md +docs/pkg/models/operations/deletebillattachmentresponse.md +docs/pkg/models/operations/downloadbillattachmentrequest.md +docs/pkg/models/operations/downloadbillattachmentresponse.md +docs/pkg/models/operations/getbillrequest.md +docs/pkg/models/operations/getbillresponse.md +docs/pkg/models/operations/getbillattachmentrequest.md +docs/pkg/models/operations/getbillattachmentresponse.md +docs/pkg/models/operations/getcreateupdatebillmodelrequest.md +docs/pkg/models/operations/getcreateupdatebillmodelresponse.md +docs/pkg/models/operations/listbillsrequest.md +docs/pkg/models/operations/listbillsresponse.md +docs/pkg/models/operations/listbillattachmentsrequest.md +docs/pkg/models/operations/listbillattachmentsresponse.md +docs/pkg/models/operations/updatebillrequest.md +docs/pkg/models/operations/updatebillresponse.md +docs/pkg/models/operations/uploadbillattachmentrequest.md +docs/pkg/models/operations/uploadbillattachmentresponse.md +docs/pkg/models/operations/createbillcreditnoterequest.md +docs/pkg/models/operations/createbillcreditnoteresponse.md +docs/pkg/models/operations/getbillcreditnoterequest.md +docs/pkg/models/operations/getbillcreditnoteresponse.md +docs/pkg/models/operations/getcreateupdatebillcreditnotemodelrequest.md +docs/pkg/models/operations/getcreateupdatebillcreditnotemodelresponse.md +docs/pkg/models/operations/listbillcreditnotesrequest.md +docs/pkg/models/operations/listbillcreditnotesresponse.md +docs/pkg/models/operations/updatebillcreditnoterequest.md +docs/pkg/models/operations/updatebillcreditnoteresponse.md +docs/pkg/models/operations/createbillpaymentrequest.md +docs/pkg/models/operations/createbillpaymentresponse.md +docs/pkg/models/operations/deletebillpaymentrequest.md +docs/pkg/models/operations/deletebillpaymentresponse.md +docs/pkg/models/operations/getbillpaymentsrequest.md +docs/pkg/models/operations/getbillpaymentsresponse.md +docs/pkg/models/operations/getcreatebillpaymentmodelrequest.md +docs/pkg/models/operations/getcreatebillpaymentmodelresponse.md +docs/pkg/models/operations/listbillpaymentsrequest.md +docs/pkg/models/operations/listbillpaymentsresponse.md +docs/pkg/models/operations/createaccountrequest.md +docs/pkg/models/operations/createaccountresponse.md +docs/pkg/models/operations/getaccountrequest.md +docs/pkg/models/operations/getaccountresponse.md +docs/pkg/models/operations/getcreateaccountmodelrequest.md +docs/pkg/models/operations/getcreateaccountmodelresponse.md +docs/pkg/models/operations/listaccountsrequest.md +docs/pkg/models/operations/listaccountsresponse.md +docs/pkg/models/operations/createjournalentryrequest.md +docs/pkg/models/operations/createjournalentryresponse.md +docs/pkg/models/operations/getcreatejournalentrymodelrequest.md +docs/pkg/models/operations/getcreatejournalentrymodelresponse.md +docs/pkg/models/operations/createjournalrequest.md +docs/pkg/models/operations/createjournalresponse.md +docs/pkg/models/operations/getjournalrequest.md +docs/pkg/models/operations/getjournalresponse.md +docs/pkg/models/operations/getcreatejournalmodelrequest.md +docs/pkg/models/operations/getcreatejournalmodelresponse.md +docs/pkg/models/operations/listjournalsrequest.md +docs/pkg/models/operations/listjournalsresponse.md +docs/pkg/models/operations/createsupplierrequest.md +docs/pkg/models/operations/createsupplierresponse.md +docs/pkg/models/operations/getsupplierrequest.md +docs/pkg/models/operations/getsupplierresponse.md +docs/pkg/models/operations/getcreateupdatesuppliermodelrequest.md +docs/pkg/models/operations/getcreateupdatesuppliermodelresponse.md +docs/pkg/models/operations/listsuppliersrequest.md +docs/pkg/models/operations/listsuppliersresponse.md +docs/pkg/models/operations/updatesupplierrequest.md +docs/pkg/models/operations/updatesupplierresponse.md +docs/pkg/models/operations/getdatastatusrequest.md +docs/pkg/models/operations/getdatastatusresponse.md +docs/pkg/models/operations/getpulloperationrequest.md +docs/pkg/models/operations/getpulloperationresponse.md +docs/pkg/models/operations/listpulloperationsrequest.md +docs/pkg/models/operations/listpulloperationsresponse.md +docs/pkg/models/operations/refreshalldatatypesrequest.md +docs/pkg/models/operations/refreshalldatatypesresponse.md +docs/pkg/models/operations/refreshdatatyperequest.md +docs/pkg/models/operations/refreshdatatyperesponse.md +docs/pkg/models/operations/getaccountingprofilerequest.md +docs/pkg/models/operations/getaccountingprofileresponse.md +docs/pkg/models/operations/getpaymentmethodrequest.md +docs/pkg/models/operations/getpaymentmethodresponse.md +docs/pkg/models/operations/listpaymentmethodsrequest.md +docs/pkg/models/operations/listpaymentmethodsresponse.md +docs/pkg/models/operations/gettaxraterequest.md +docs/pkg/models/operations/gettaxrateresponse.md +docs/pkg/models/operations/listtaxratesrequest.md +docs/pkg/models/operations/listtaxratesresponse.md +docs/pkg/models/operations/gettrackingcategoryrequest.md +docs/pkg/models/operations/gettrackingcategoryresponse.md +docs/pkg/models/operations/listtrackingcategoriesrequest.md +docs/pkg/models/operations/listtrackingcategoriesresponse.md +docs/pkg/models/operations/getpushoperationrequest.md +docs/pkg/models/operations/getpushoperationresponse.md +docs/pkg/models/operations/listpushoperationsrequest.md +docs/pkg/models/operations/listpushoperationsresponse.md +docs/pkg/models/shared/company.md +docs/pkg/models/shared/sourcetype.md +docs/pkg/models/shared/connection.md +docs/pkg/models/shared/dataconnectionstatus.md +docs/pkg/models/shared/dataconnectionerror.md +docs/pkg/models/shared/companyrequestbody.md +docs/pkg/models/shared/companies.md +docs/pkg/models/shared/links.md +docs/pkg/models/shared/halref.md +docs/pkg/models/shared/connections.md +docs/pkg/models/shared/createbillresponse.md +docs/pkg/models/shared/validation.md +docs/pkg/models/shared/validationitem.md +docs/pkg/models/shared/pushoperationstatus.md +docs/pkg/models/shared/datatype.md +docs/pkg/models/shared/billallocation.md +docs/pkg/models/shared/accountingpaymentallocation.md +docs/pkg/models/shared/purchaseorderreference.md +docs/pkg/models/shared/withholdingtax.md +docs/pkg/models/shared/bill.md +docs/pkg/models/shared/supplierref.md +docs/pkg/models/shared/supplementaldata.md +docs/pkg/models/shared/billstatus.md +docs/pkg/models/shared/paymentallocationpayment.md +docs/pkg/models/shared/accountref.md +docs/pkg/models/shared/metadata.md +docs/pkg/models/shared/billlineitemdatatype.md +docs/pkg/models/shared/recordlinereference.md +docs/pkg/models/shared/billlineitem.md +docs/pkg/models/shared/trackingcategoryref.md +docs/pkg/models/shared/customerref.md +docs/pkg/models/shared/accountingprojectreference.md +docs/pkg/models/shared/tracking.md +docs/pkg/models/shared/billedtotype.md +docs/pkg/models/shared/taxrateref.md +docs/pkg/models/shared/itemref.md +docs/pkg/models/shared/pushoperationchange.md +docs/pkg/models/shared/pushchangetype.md +docs/pkg/models/shared/pushoperationref.md +docs/pkg/models/shared/pushoperation.md +docs/pkg/models/shared/attachment.md +docs/pkg/models/shared/pushoption.md +docs/pkg/models/shared/pushvalidationinfo.md +docs/pkg/models/shared/pushfieldvalidation.md +docs/pkg/models/shared/pushoptiontype.md +docs/pkg/models/shared/pushoptionproperty.md +docs/pkg/models/shared/pushoptionchoice.md +docs/pkg/models/shared/bills.md +docs/pkg/models/shared/attachments.md +docs/pkg/models/shared/updatebillresponse.md +docs/pkg/models/shared/attachmentupload.md +docs/pkg/models/shared/codatfile.md +docs/pkg/models/shared/createbillcreditnoteresponse.md +docs/pkg/models/shared/billcreditnote.md +docs/pkg/models/shared/withholdingtaxitems.md +docs/pkg/models/shared/billcreditnotestatus.md +docs/pkg/models/shared/allocation.md +docs/pkg/models/shared/items.md +docs/pkg/models/shared/itemreference.md +docs/pkg/models/shared/billcreditnotelineitemcustomerref.md +docs/pkg/models/shared/billcreditnotelineitemaccountingprojectreference.md +docs/pkg/models/shared/billcreditnotelineitemtracking.md +docs/pkg/models/shared/billcreditnotelineitem.md +docs/pkg/models/shared/billcreditnotes.md +docs/pkg/models/shared/updatebillcreditnoteresponse.md +docs/pkg/models/shared/createbillpaymentresponse.md +docs/pkg/models/shared/billpayment.md +docs/pkg/models/shared/paymentmethodref.md +docs/pkg/models/shared/billpaymentline.md +docs/pkg/models/shared/billpaymentlinelink.md +docs/pkg/models/shared/billpaymentlinelinktype.md +docs/pkg/models/shared/billpayments.md +docs/pkg/models/shared/createaccountresponse.md +docs/pkg/models/shared/accountvaliddatatypelinks.md +docs/pkg/models/shared/account.md +docs/pkg/models/shared/accounttype.md +docs/pkg/models/shared/accountstatus.md +docs/pkg/models/shared/validdatatypelinks.md +docs/pkg/models/shared/accountprototype.md +docs/pkg/models/shared/accounts.md +docs/pkg/models/shared/createjournalentryresponse.md +docs/pkg/models/shared/recordreference.md +docs/pkg/models/shared/journalentry.md +docs/pkg/models/shared/journalref.md +docs/pkg/models/shared/journallinetracking.md +docs/pkg/models/shared/journalline.md +docs/pkg/models/shared/recordref.md +docs/pkg/models/shared/createjournalresponse.md +docs/pkg/models/shared/journal.md +docs/pkg/models/shared/journalstatus.md +docs/pkg/models/shared/journalprototype.md +docs/pkg/models/shared/journals.md +docs/pkg/models/shared/createsupplierresponse.md +docs/pkg/models/shared/supplier.md +docs/pkg/models/shared/supplierstatus.md +docs/pkg/models/shared/address.md +docs/pkg/models/shared/accountingaddresstype.md +docs/pkg/models/shared/suppliers.md +docs/pkg/models/shared/updatesupplierresponse.md +docs/pkg/models/shared/datatypes.md +docs/pkg/models/shared/datastatus.md +docs/pkg/models/shared/pulloperationstatus.md +docs/pkg/models/shared/pulloperation.md +docs/pkg/models/shared/pulloperations.md +docs/pkg/models/shared/schemadatatype.md +docs/pkg/models/shared/companyinfo.md +docs/pkg/models/shared/type.md +docs/pkg/models/shared/weblink.md +docs/pkg/models/shared/phonenumber.md +docs/pkg/models/shared/phonenumbertype.md +docs/pkg/models/shared/paymentmethodstatus.md +docs/pkg/models/shared/paymentmethod.md +docs/pkg/models/shared/paymentmethodtype.md +docs/pkg/models/shared/paymentmethods.md +docs/pkg/models/shared/taxrate.md +docs/pkg/models/shared/validdatatypelinkitems.md +docs/pkg/models/shared/taxratestatus.md +docs/pkg/models/shared/taxratecomponent.md +docs/pkg/models/shared/taxrates.md +docs/pkg/models/shared/trackingcategorytree.md +docs/pkg/models/shared/status.md +docs/pkg/models/shared/trackingcategories.md +docs/pkg/models/shared/trackingcategory.md +docs/pkg/models/shared/pushoperations.md +docs/pkg/models/shared/security.md +docs/pkg/models/shared/clientratelimitreachedwebhook.md +docs/pkg/models/shared/clientratelimitreachedwebhookdata.md +docs/pkg/models/shared/clientratelimitresetwebhook.md +docs/pkg/models/shared/clientratelimitresetwebhookdata.md +docs/pkg/models/sdkerrors/errormessage.md +docs/pkg/models/webhooks/clientratelimitreachedresponse.md +docs/pkg/models/webhooks/clientratelimitresetresponse.md docs/sdks/codatsyncpayables/README.md -docs/models/operations/option.md -docs/sdks/accounts/README.md -docs/sdks/billcreditnotes/README.md -docs/sdks/billpayments/README.md -docs/sdks/bills/README.md +docs/pkg/models/operations/option.md docs/sdks/companies/README.md -docs/sdks/companyinfo/README.md docs/sdks/connections/README.md +docs/sdks/bills/README.md +docs/sdks/billcreditnotes/README.md +docs/sdks/billpayments/README.md +docs/sdks/accounts/README.md docs/sdks/journalentries/README.md docs/sdks/journals/README.md +docs/sdks/suppliers/README.md docs/sdks/managedata/README.md +docs/sdks/companyinfo/README.md docs/sdks/paymentmethods/README.md -docs/sdks/pushoperations/README.md -docs/sdks/suppliers/README.md docs/sdks/taxrates/README.md docs/sdks/trackingcategories/README.md +docs/sdks/pushoperations/README.md +USAGE.md pkg/models/operations/options.go .gitattributes \ No newline at end of file diff --git a/sync-for-payables/gen.yaml b/sync-for-payables/gen.yaml index 4fd832a9a..bdf0fa503 100644 --- a/sync-for-payables/gen.yaml +++ b/sync-for-payables/gen.yaml @@ -1,26 +1,44 @@ configVersion: 1.0.0 management: - docChecksum: 123ee50f76c03f374d17d3cd4ce14db6 + docChecksum: c0f1cee560742982fad6b2e5ebe1e3a2 docVersion: 3.0.0 - speakeasyVersion: 1.100.2 - generationVersion: 2.159.2 + speakeasyVersion: 1.125.2 + generationVersion: 2.210.6 generation: + comments: {} sdkClassName: CodatSyncPayables - singleTagPerOp: false + repoURL: https://github.com/codatio/client-sdk-go.git + usageSnippets: + optionalPropertyRendering: withExample telemetryEnabled: true features: go: - constsAndDefaults: 0.1.1 - core: 2.91.5 + constsAndDefaults: 0.1.2 + core: 3.1.5 deprecations: 2.81.1 - downloadStreams: 0.1.0 - examples: 2.81.2 + downloadStreams: 0.1.1 + examples: 2.81.3 globalSecurity: 2.82.2 - globalServerURLs: 2.82.0 + globalServerURLs: 2.82.1 + inputOutputModels: 2.82.0 nameOverrides: 2.81.1 retries: 2.82.1 go: - version: 2.2.0 + version: 3.0.0 + clientServerStatusCodesAsErrors: true flattenGlobalSecurity: false + imports: + option: openapi + paths: + callbacks: pkg/models/callbacks + errors: pkg/models/sdkerrors + operations: pkg/models/operations + shared: pkg/models/shared + webhooks: pkg/models/webhooks + inputModelSuffix: input + installationURL: https://github.com/codatio/client-sdk-go/sync-for-payables maxMethodParams: 0 + outputModelSuffix: output packageName: github.com/codatio/client-sdk-go/sync-for-payables + published: true + repoSubDirectory: sync-for-payables diff --git a/sync-for-payables/go.mod b/sync-for-payables/go.mod old mode 100755 new mode 100644 index 183869bc5..b5d162aab --- a/sync-for-payables/go.mod +++ b/sync-for-payables/go.mod @@ -1,4 +1,4 @@ -module github.com/codatio/client-sdk-go/sync-for-payables/v2 +module github.com/codatio/client-sdk-go/sync-for-payables/v3 go 1.14 diff --git a/sync-for-payables/go.sum b/sync-for-payables/go.sum old mode 100755 new mode 100644 diff --git a/sync-for-payables/journalentries.go b/sync-for-payables/journalentries.go old mode 100755 new mode 100644 index c9c4b6319..4e120cad1 --- a/sync-for-payables/journalentries.go +++ b/sync-for-payables/journalentries.go @@ -6,21 +6,21 @@ import ( "bytes" "context" "fmt" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/sdkerrors" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "io" "net/http" ) -// journalEntries - Journal entries -type journalEntries struct { +// JournalEntries - Journal entries +type JournalEntries struct { sdkConfiguration sdkConfiguration } -func newJournalEntries(sdkConfig sdkConfiguration) *journalEntries { - return &journalEntries{ +func newJournalEntries(sdkConfig sdkConfiguration) *JournalEntries { + return &JournalEntries{ sdkConfiguration: sdkConfig, } } @@ -35,7 +35,7 @@ func newJournalEntries(sdkConfig sdkConfiguration) *journalEntries { // Required data may vary by integration. To see what data to post, first call [Get create journal entry model](https://docs.codat.io/sync-for-payables-api#/operations/get-create-journalEntries-model). // // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=journalEntries) for integrations that support creating a journal entry. -func (s *journalEntries) Create(ctx context.Context, request operations.CreateJournalEntryRequest, opts ...operations.Option) (*operations.CreateJournalEntryResponse, error) { +func (s *JournalEntries) Create(ctx context.Context, request operations.CreateJournalEntryRequest, opts ...operations.Option) (*operations.CreateJournalEntryResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -139,20 +139,31 @@ func (s *journalEntries) Create(ctx context.Context, request operations.CreateJo fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -168,7 +179,7 @@ func (s *journalEntries) Create(ctx context.Context, request operations.CreateJo // See the *response examples* for integration-specific indicative models. // // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=journalEntries) for integrations that support creating a journal entry. -func (s *journalEntries) GetCreateModel(ctx context.Context, request operations.GetCreateJournalEntryModelRequest, opts ...operations.Option) (*operations.GetCreateJournalEntryModelResponse, error) { +func (s *JournalEntries) GetCreateModel(ctx context.Context, request operations.GetCreateJournalEntryModelRequest, opts ...operations.Option) (*operations.GetCreateJournalEntryModelResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -259,20 +270,31 @@ func (s *journalEntries) GetCreateModel(ctx context.Context, request operations. } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/sync-for-payables/journals.go b/sync-for-payables/journals.go old mode 100755 new mode 100644 index ca294689f..b9d59b7f4 --- a/sync-for-payables/journals.go +++ b/sync-for-payables/journals.go @@ -6,21 +6,21 @@ import ( "bytes" "context" "fmt" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/sdkerrors" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "io" "net/http" ) -// journals - Journals -type journals struct { +// Journals +type Journals struct { sdkConfiguration sdkConfiguration } -func newJournals(sdkConfig sdkConfiguration) *journals { - return &journals{ +func newJournals(sdkConfig sdkConfiguration) *Journals { + return &Journals{ sdkConfiguration: sdkConfig, } } @@ -35,7 +35,7 @@ func newJournals(sdkConfig sdkConfiguration) *journals { // Required data may vary by integration. To see what data to post, first call [Get create journal model](https://docs.codat.io/sync-for-payables-api#/operations/get-create-journals-model). // // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=journals) for integrations that support creating a journal. -func (s *journals) Create(ctx context.Context, request operations.CreateJournalRequest, opts ...operations.Option) (*operations.CreateJournalResponse, error) { +func (s *Journals) Create(ctx context.Context, request operations.CreateJournalRequest, opts ...operations.Option) (*operations.CreateJournalResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -52,7 +52,7 @@ func (s *journals) Create(ctx context.Context, request operations.CreateJournalR return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, true, true, "Journal", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "JournalPrototype", "json", `request:"mediaType=application/json"`) if err != nil { return nil, fmt.Errorf("error serializing request body: %w", err) } @@ -139,20 +139,31 @@ func (s *journals) Create(ctx context.Context, request operations.CreateJournalR fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -166,7 +177,7 @@ func (s *journals) Create(ctx context.Context, request operations.CreateJournalR // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=journals) for integrations that support getting a specific journal. // // Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data). -func (s *journals) Get(ctx context.Context, request operations.GetJournalRequest, opts ...operations.Option) (*operations.GetJournalResponse, error) { +func (s *Journals) Get(ctx context.Context, request operations.GetJournalRequest, opts ...operations.Option) (*operations.GetJournalResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -257,22 +268,33 @@ func (s *journals) Get(ctx context.Context, request operations.GetJournalRequest } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 409: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -288,7 +310,7 @@ func (s *journals) Get(ctx context.Context, request operations.GetJournalRequest // See the *response examples* for integration-specific indicative models. // // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=journals) for integrations that support creating a journal. -func (s *journals) GetCreateModel(ctx context.Context, request operations.GetCreateJournalModelRequest, opts ...operations.Option) (*operations.GetCreateJournalModelResponse, error) { +func (s *Journals) GetCreateModel(ctx context.Context, request operations.GetCreateJournalModelRequest, opts ...operations.Option) (*operations.GetCreateJournalModelResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -379,20 +401,31 @@ func (s *journals) GetCreateModel(ctx context.Context, request operations.GetCre } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -404,7 +437,7 @@ func (s *journals) GetCreateModel(ctx context.Context, request operations.GetCre // [Journals](https://docs.codat.io/sync-for-payables-api#/schemas/Journal) are used to record all the financial transactions of a company. // // Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data). -func (s *journals) List(ctx context.Context, request operations.ListJournalsRequest, opts ...operations.Option) (*operations.ListJournalsResponse, error) { +func (s *Journals) List(ctx context.Context, request operations.ListJournalsRequest, opts ...operations.Option) (*operations.ListJournalsResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -501,20 +534,33 @@ func (s *journals) List(ctx context.Context, request operations.ListJournalsRequ fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 409: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/sync-for-payables/managedata.go b/sync-for-payables/managedata.go old mode 100755 new mode 100644 index 415afab7f..83afe9e84 --- a/sync-for-payables/managedata.go +++ b/sync-for-payables/managedata.go @@ -6,28 +6,28 @@ import ( "bytes" "context" "fmt" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/sdkerrors" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "io" "net/http" ) -// manageData - Asynchronously retrieve data from an integration to refresh data in Codat. -type manageData struct { +// ManageData - Asynchronously retrieve data from an integration to refresh data in Codat. +type ManageData struct { sdkConfiguration sdkConfiguration } -func newManageData(sdkConfig sdkConfiguration) *manageData { - return &manageData{ +func newManageData(sdkConfig sdkConfiguration) *ManageData { + return &ManageData{ sdkConfiguration: sdkConfig, } } // Get data status // Get the state of each data type for a company -func (s *manageData) Get(ctx context.Context, request operations.GetDataStatusRequest, opts ...operations.Option) (*operations.GetDataStatusResponse, error) { +func (s *ManageData) Get(ctx context.Context, request operations.GetDataStatusRequest, opts ...operations.Option) (*operations.GetDataStatusResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -112,26 +112,37 @@ func (s *manageData) Get(ctx context.Context, request operations.GetDataStatusRe return nil, err } - res.DataStatusResponse = out + res.DataStatuses = out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -139,7 +150,7 @@ func (s *manageData) Get(ctx context.Context, request operations.GetDataStatusRe // GetPullOperation - Get pull operation // Retrieve information about a single dataset or pull operation. -func (s *manageData) GetPullOperation(ctx context.Context, request operations.GetPullOperationRequest, opts ...operations.Option) (*operations.GetPullOperationResponse, error) { +func (s *ManageData) GetPullOperation(ctx context.Context, request operations.GetPullOperationRequest, opts ...operations.Option) (*operations.GetPullOperationResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -230,20 +241,31 @@ func (s *manageData) GetPullOperation(ctx context.Context, request operations.Ge } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -251,7 +273,7 @@ func (s *manageData) GetPullOperation(ctx context.Context, request operations.Ge // ListPullOperations - List pull operations // Gets the pull operation history (datasets) for a given company. -func (s *manageData) ListPullOperations(ctx context.Context, request operations.ListPullOperationsRequest, opts ...operations.Option) (*operations.ListPullOperationsResponse, error) { +func (s *ManageData) ListPullOperations(ctx context.Context, request operations.ListPullOperationsRequest, opts ...operations.Option) (*operations.ListPullOperationsResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -348,20 +370,31 @@ func (s *manageData) ListPullOperations(ctx context.Context, request operations. fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -373,7 +406,7 @@ func (s *manageData) ListPullOperations(ctx context.Context, request operations. // This is an asynchronous operation, and will bring updated data into Codat from the linked integration for you to view. // // [Read more](https://docs.codat.io/core-concepts/data-type-settings) about data type settings and `fetch on first link`. -func (s *manageData) RefreshAllDataTypes(ctx context.Context, request operations.RefreshAllDataTypesRequest, opts ...operations.Option) (*operations.RefreshAllDataTypesResponse, error) { +func (s *ManageData) RefreshAllDataTypes(ctx context.Context, request operations.RefreshAllDataTypesRequest, opts ...operations.Option) (*operations.RefreshAllDataTypesResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -453,20 +486,31 @@ func (s *manageData) RefreshAllDataTypes(ctx context.Context, request operations case httpRes.StatusCode == 204: case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -476,7 +520,7 @@ func (s *manageData) RefreshAllDataTypes(ctx context.Context, request operations // Refreshes a given data type for a given company. // // This is an asynchronous operation, and will bring updated data into Codat from the linked integration for you to view. -func (s *manageData) RefreshDataType(ctx context.Context, request operations.RefreshDataTypeRequest, opts ...operations.Option) (*operations.RefreshDataTypeResponse, error) { +func (s *ManageData) RefreshDataType(ctx context.Context, request operations.RefreshDataTypeRequest, opts ...operations.Option) (*operations.RefreshDataTypeResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -571,20 +615,31 @@ func (s *manageData) RefreshDataType(ctx context.Context, request operations.Ref } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/sync-for-payables/paymentmethods.go b/sync-for-payables/paymentmethods.go old mode 100755 new mode 100644 index 7bf7b8c74..2e51fb284 --- a/sync-for-payables/paymentmethods.go +++ b/sync-for-payables/paymentmethods.go @@ -6,21 +6,21 @@ import ( "bytes" "context" "fmt" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/sdkerrors" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "io" "net/http" ) -// paymentMethods - Payment methods -type paymentMethods struct { +// PaymentMethods - Payment methods +type PaymentMethods struct { sdkConfiguration sdkConfiguration } -func newPaymentMethods(sdkConfig sdkConfiguration) *paymentMethods { - return &paymentMethods{ +func newPaymentMethods(sdkConfig sdkConfiguration) *PaymentMethods { + return &PaymentMethods{ sdkConfiguration: sdkConfig, } } @@ -33,7 +33,7 @@ func newPaymentMethods(sdkConfig sdkConfiguration) *paymentMethods { // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=paymentMethods) for integrations that support getting a specific payment method. // // Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data). -func (s *paymentMethods) Get(ctx context.Context, request operations.GetPaymentMethodRequest, opts ...operations.Option) (*operations.GetPaymentMethodResponse, error) { +func (s *PaymentMethods) Get(ctx context.Context, request operations.GetPaymentMethodRequest, opts ...operations.Option) (*operations.GetPaymentMethodResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -124,22 +124,33 @@ func (s *paymentMethods) Get(ctx context.Context, request operations.GetPaymentM } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 409: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -151,7 +162,7 @@ func (s *paymentMethods) Get(ctx context.Context, request operations.GetPaymentM // [Payment methods](https://docs.codat.io/sync-for-payables-api#/schemas/PaymentMethod) are used to pay a Bill. Payment Methods are referenced on [Bill Payments](https://docs.codat.io/sync-for-payables-api#/schemas/BillPayment) and [Payments](https://docs.codat.io/sync-for-payables-api#/schemas/Payment). // // Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data). -func (s *paymentMethods) List(ctx context.Context, request operations.ListPaymentMethodsRequest, opts ...operations.Option) (*operations.ListPaymentMethodsResponse, error) { +func (s *PaymentMethods) List(ctx context.Context, request operations.ListPaymentMethodsRequest, opts ...operations.Option) (*operations.ListPaymentMethodsResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -248,20 +259,33 @@ func (s *paymentMethods) List(ctx context.Context, request operations.ListPaymen fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 409: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/sync-for-payables/pkg/models/operations/createaccount.go b/sync-for-payables/pkg/models/operations/createaccount.go old mode 100755 new mode 100644 index cbdbf89a0..b915b81dd --- a/sync-for-payables/pkg/models/operations/createaccount.go +++ b/sync-for-payables/pkg/models/operations/createaccount.go @@ -3,12 +3,12 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) type CreateAccountRequest struct { - Account *shared.Account `request:"mediaType=application/json"` + AccountPrototype *shared.AccountPrototype `request:"mediaType=application/json"` // Unique identifier for a company. CompanyID string `pathParam:"style=simple,explode=false,name=companyId"` // Unique identifier for a connection. @@ -17,11 +17,11 @@ type CreateAccountRequest struct { TimeoutInMinutes *int `queryParam:"style=form,explode=true,name=timeoutInMinutes"` } -func (o *CreateAccountRequest) GetAccount() *shared.Account { +func (o *CreateAccountRequest) GetAccountPrototype() *shared.AccountPrototype { if o == nil { return nil } - return o.Account + return o.AccountPrototype } func (o *CreateAccountRequest) GetCompanyID() string { @@ -50,8 +50,6 @@ type CreateAccountResponse struct { ContentType string // Success CreateAccountResponse *shared.CreateAccountResponse - // The request made is not valid. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -72,13 +70,6 @@ func (o *CreateAccountResponse) GetCreateAccountResponse() *shared.CreateAccount return o.CreateAccountResponse } -func (o *CreateAccountResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *CreateAccountResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/createbill.go b/sync-for-payables/pkg/models/operations/createbill.go old mode 100755 new mode 100644 index 8a4e16e71..8989ff4ce --- a/sync-for-payables/pkg/models/operations/createbill.go +++ b/sync-for-payables/pkg/models/operations/createbill.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -50,8 +50,6 @@ type CreateBillResponse struct { ContentType string // Success CreateBillResponse *shared.CreateBillResponse - // The request made is not valid. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -72,13 +70,6 @@ func (o *CreateBillResponse) GetCreateBillResponse() *shared.CreateBillResponse return o.CreateBillResponse } -func (o *CreateBillResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *CreateBillResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/createbillcreditnote.go b/sync-for-payables/pkg/models/operations/createbillcreditnote.go old mode 100755 new mode 100644 index 73973b841..40ec64035 --- a/sync-for-payables/pkg/models/operations/createbillcreditnote.go +++ b/sync-for-payables/pkg/models/operations/createbillcreditnote.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -50,8 +50,6 @@ type CreateBillCreditNoteResponse struct { ContentType string // Success CreateBillCreditNoteResponse *shared.CreateBillCreditNoteResponse - // The request made is not valid. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -72,13 +70,6 @@ func (o *CreateBillCreditNoteResponse) GetCreateBillCreditNoteResponse() *shared return o.CreateBillCreditNoteResponse } -func (o *CreateBillCreditNoteResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *CreateBillCreditNoteResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/createbillpayment.go b/sync-for-payables/pkg/models/operations/createbillpayment.go old mode 100755 new mode 100644 index b58a50e1a..4e4601cb4 --- a/sync-for-payables/pkg/models/operations/createbillpayment.go +++ b/sync-for-payables/pkg/models/operations/createbillpayment.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -50,8 +50,6 @@ type CreateBillPaymentResponse struct { ContentType string // Success CreateBillPaymentResponse *shared.CreateBillPaymentResponse - // The request made is not valid. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -72,13 +70,6 @@ func (o *CreateBillPaymentResponse) GetCreateBillPaymentResponse() *shared.Creat return o.CreateBillPaymentResponse } -func (o *CreateBillPaymentResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *CreateBillPaymentResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/createcompany.go b/sync-for-payables/pkg/models/operations/createcompany.go old mode 100755 new mode 100644 index 2f5c0b2be..875ade0c3 --- a/sync-for-payables/pkg/models/operations/createcompany.go +++ b/sync-for-payables/pkg/models/operations/createcompany.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -12,8 +12,6 @@ type CreateCompanyResponse struct { Company *shared.Company // HTTP response content type for this operation ContentType string - // The request made is not valid. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -34,13 +32,6 @@ func (o *CreateCompanyResponse) GetContentType() string { return o.ContentType } -func (o *CreateCompanyResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *CreateCompanyResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/createconnection.go b/sync-for-payables/pkg/models/operations/createconnection.go old mode 100755 new mode 100644 index e588f672d..8f65e26b0 --- a/sync-for-payables/pkg/models/operations/createconnection.go +++ b/sync-for-payables/pkg/models/operations/createconnection.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -44,8 +44,6 @@ type CreateConnectionResponse struct { Connection *shared.Connection // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -66,13 +64,6 @@ func (o *CreateConnectionResponse) GetContentType() string { return o.ContentType } -func (o *CreateConnectionResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *CreateConnectionResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/createjournal.go b/sync-for-payables/pkg/models/operations/createjournal.go old mode 100755 new mode 100644 index 61f998668..2781e6eba --- a/sync-for-payables/pkg/models/operations/createjournal.go +++ b/sync-for-payables/pkg/models/operations/createjournal.go @@ -3,27 +3,20 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) type CreateJournalRequest struct { - Journal *shared.Journal `request:"mediaType=application/json"` // Unique identifier for a company. CompanyID string `pathParam:"style=simple,explode=false,name=companyId"` // Unique identifier for a connection. - ConnectionID string `pathParam:"style=simple,explode=false,name=connectionId"` + ConnectionID string `pathParam:"style=simple,explode=false,name=connectionId"` + JournalPrototype *shared.JournalPrototype `request:"mediaType=application/json"` // Time limit for the push operation to complete before it is timed out. TimeoutInMinutes *int `queryParam:"style=form,explode=true,name=timeoutInMinutes"` } -func (o *CreateJournalRequest) GetJournal() *shared.Journal { - if o == nil { - return nil - } - return o.Journal -} - func (o *CreateJournalRequest) GetCompanyID() string { if o == nil { return "" @@ -38,6 +31,13 @@ func (o *CreateJournalRequest) GetConnectionID() string { return o.ConnectionID } +func (o *CreateJournalRequest) GetJournalPrototype() *shared.JournalPrototype { + if o == nil { + return nil + } + return o.JournalPrototype +} + func (o *CreateJournalRequest) GetTimeoutInMinutes() *int { if o == nil { return nil @@ -50,8 +50,6 @@ type CreateJournalResponse struct { ContentType string // Success CreateJournalResponse *shared.CreateJournalResponse - // The request made is not valid. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -72,13 +70,6 @@ func (o *CreateJournalResponse) GetCreateJournalResponse() *shared.CreateJournal return o.CreateJournalResponse } -func (o *CreateJournalResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *CreateJournalResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/createjournalentry.go b/sync-for-payables/pkg/models/operations/createjournalentry.go old mode 100755 new mode 100644 index 83a355cdc..f3d2a53ec --- a/sync-for-payables/pkg/models/operations/createjournalentry.go +++ b/sync-for-payables/pkg/models/operations/createjournalentry.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -50,8 +50,6 @@ type CreateJournalEntryResponse struct { ContentType string // Success CreateJournalEntryResponse *shared.CreateJournalEntryResponse - // The request made is not valid. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -72,13 +70,6 @@ func (o *CreateJournalEntryResponse) GetCreateJournalEntryResponse() *shared.Cre return o.CreateJournalEntryResponse } -func (o *CreateJournalEntryResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *CreateJournalEntryResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/createsupplier.go b/sync-for-payables/pkg/models/operations/createsupplier.go old mode 100755 new mode 100644 index 125bb5f08..9c5676f20 --- a/sync-for-payables/pkg/models/operations/createsupplier.go +++ b/sync-for-payables/pkg/models/operations/createsupplier.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -50,8 +50,6 @@ type CreateSupplierResponse struct { ContentType string // Success CreateSupplierResponse *shared.CreateSupplierResponse - // The request made is not valid. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -72,13 +70,6 @@ func (o *CreateSupplierResponse) GetCreateSupplierResponse() *shared.CreateSuppl return o.CreateSupplierResponse } -func (o *CreateSupplierResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *CreateSupplierResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/deletebill.go b/sync-for-payables/pkg/models/operations/deletebill.go old mode 100755 new mode 100644 index f04bb56f8..e306848ab --- a/sync-for-payables/pkg/models/operations/deletebill.go +++ b/sync-for-payables/pkg/models/operations/deletebill.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -40,8 +40,6 @@ func (o *DeleteBillRequest) GetConnectionID() string { type DeleteBillResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // OK PushOperation *shared.PushOperation // HTTP response status code for this operation @@ -57,13 +55,6 @@ func (o *DeleteBillResponse) GetContentType() string { return o.ContentType } -func (o *DeleteBillResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *DeleteBillResponse) GetPushOperation() *shared.PushOperation { if o == nil { return nil diff --git a/sync-for-payables/pkg/models/operations/deletebillattachment.go b/sync-for-payables/pkg/models/operations/deletebillattachment.go old mode 100755 new mode 100644 index 2efba0558..9fe9fbc06 --- a/sync-for-payables/pkg/models/operations/deletebillattachment.go +++ b/sync-for-payables/pkg/models/operations/deletebillattachment.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -49,8 +49,6 @@ func (o *DeleteBillAttachmentRequest) GetConnectionID() string { type DeleteBillAttachmentResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // OK PushOperation *shared.PushOperation // HTTP response status code for this operation @@ -66,13 +64,6 @@ func (o *DeleteBillAttachmentResponse) GetContentType() string { return o.ContentType } -func (o *DeleteBillAttachmentResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *DeleteBillAttachmentResponse) GetPushOperation() *shared.PushOperation { if o == nil { return nil diff --git a/sync-for-payables/pkg/models/operations/deletebillpayment.go b/sync-for-payables/pkg/models/operations/deletebillpayment.go old mode 100755 new mode 100644 index 7f0bdc4a5..42c78920f --- a/sync-for-payables/pkg/models/operations/deletebillpayment.go +++ b/sync-for-payables/pkg/models/operations/deletebillpayment.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -12,6 +12,8 @@ type DeleteBillPaymentRequest struct { BillPaymentID string `pathParam:"style=simple,explode=false,name=billPaymentId"` // Unique identifier for a company. CompanyID string `pathParam:"style=simple,explode=false,name=companyId"` + // Unique identifier for a connection. + ConnectionID string `pathParam:"style=simple,explode=false,name=connectionId"` } func (o *DeleteBillPaymentRequest) GetBillPaymentID() string { @@ -28,11 +30,16 @@ func (o *DeleteBillPaymentRequest) GetCompanyID() string { return o.CompanyID } +func (o *DeleteBillPaymentRequest) GetConnectionID() string { + if o == nil { + return "" + } + return o.ConnectionID +} + type DeleteBillPaymentResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // OK PushOperation *shared.PushOperation // HTTP response status code for this operation @@ -48,13 +55,6 @@ func (o *DeleteBillPaymentResponse) GetContentType() string { return o.ContentType } -func (o *DeleteBillPaymentResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *DeleteBillPaymentResponse) GetPushOperation() *shared.PushOperation { if o == nil { return nil diff --git a/sync-for-payables/pkg/models/operations/deletecompany.go b/sync-for-payables/pkg/models/operations/deletecompany.go old mode 100755 new mode 100644 index 2b5ea22d1..4fe14e7e9 --- a/sync-for-payables/pkg/models/operations/deletecompany.go +++ b/sync-for-payables/pkg/models/operations/deletecompany.go @@ -3,7 +3,6 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" "net/http" ) @@ -22,8 +21,6 @@ func (o *DeleteCompanyRequest) GetCompanyID() string { type DeleteCompanyResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -37,13 +34,6 @@ func (o *DeleteCompanyResponse) GetContentType() string { return o.ContentType } -func (o *DeleteCompanyResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *DeleteCompanyResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/deleteconnection.go b/sync-for-payables/pkg/models/operations/deleteconnection.go old mode 100755 new mode 100644 index ef0caa1b2..6e5d2d358 --- a/sync-for-payables/pkg/models/operations/deleteconnection.go +++ b/sync-for-payables/pkg/models/operations/deleteconnection.go @@ -3,7 +3,6 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" "net/http" ) @@ -31,8 +30,6 @@ func (o *DeleteConnectionRequest) GetConnectionID() string { type DeleteConnectionResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -46,13 +43,6 @@ func (o *DeleteConnectionResponse) GetContentType() string { return o.ContentType } -func (o *DeleteConnectionResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *DeleteConnectionResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/downloadbillattachment.go b/sync-for-payables/pkg/models/operations/downloadbillattachment.go old mode 100755 new mode 100644 index b44ca0032..5fb14ccf5 --- a/sync-for-payables/pkg/models/operations/downloadbillattachment.go +++ b/sync-for-payables/pkg/models/operations/downloadbillattachment.go @@ -3,7 +3,6 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" "io" "net/http" ) @@ -53,8 +52,6 @@ type DownloadBillAttachmentResponse struct { // Success // The Close method must be called on this field, even if it is not used, to prevent resource leaks. Data io.ReadCloser - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -75,13 +72,6 @@ func (o *DownloadBillAttachmentResponse) GetData() io.ReadCloser { return o.Data } -func (o *DownloadBillAttachmentResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *DownloadBillAttachmentResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/getaccount.go b/sync-for-payables/pkg/models/operations/getaccount.go old mode 100755 new mode 100644 index f14006a23..8baee3e10 --- a/sync-for-payables/pkg/models/operations/getaccount.go +++ b/sync-for-payables/pkg/models/operations/getaccount.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -33,8 +33,6 @@ type GetAccountResponse struct { Account *shared.Account // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -55,13 +53,6 @@ func (o *GetAccountResponse) GetContentType() string { return o.ContentType } -func (o *GetAccountResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetAccountResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/getaccountingprofile.go b/sync-for-payables/pkg/models/operations/getaccountingprofile.go old mode 100755 new mode 100644 index 3e5682603..a2e87c15b --- a/sync-for-payables/pkg/models/operations/getaccountingprofile.go +++ b/sync-for-payables/pkg/models/operations/getaccountingprofile.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -24,8 +24,6 @@ type GetAccountingProfileResponse struct { CompanyInfo *shared.CompanyInfo // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -46,13 +44,6 @@ func (o *GetAccountingProfileResponse) GetContentType() string { return o.ContentType } -func (o *GetAccountingProfileResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetAccountingProfileResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/getbill.go b/sync-for-payables/pkg/models/operations/getbill.go old mode 100755 new mode 100644 index be7919c0e..fce90eed3 --- a/sync-for-payables/pkg/models/operations/getbill.go +++ b/sync-for-payables/pkg/models/operations/getbill.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -33,8 +33,6 @@ type GetBillResponse struct { Bill *shared.Bill // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -55,13 +53,6 @@ func (o *GetBillResponse) GetContentType() string { return o.ContentType } -func (o *GetBillResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetBillResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/getbillattachment.go b/sync-for-payables/pkg/models/operations/getbillattachment.go old mode 100755 new mode 100644 index ed22441fc..6e4de9cf1 --- a/sync-for-payables/pkg/models/operations/getbillattachment.go +++ b/sync-for-payables/pkg/models/operations/getbillattachment.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -51,8 +51,6 @@ type GetBillAttachmentResponse struct { Attachment *shared.Attachment // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -73,13 +71,6 @@ func (o *GetBillAttachmentResponse) GetContentType() string { return o.ContentType } -func (o *GetBillAttachmentResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetBillAttachmentResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/getbillcreditnote.go b/sync-for-payables/pkg/models/operations/getbillcreditnote.go old mode 100755 new mode 100644 index 93d105a78..3419a453d --- a/sync-for-payables/pkg/models/operations/getbillcreditnote.go +++ b/sync-for-payables/pkg/models/operations/getbillcreditnote.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -33,8 +33,6 @@ type GetBillCreditNoteResponse struct { BillCreditNote *shared.BillCreditNote // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -55,13 +53,6 @@ func (o *GetBillCreditNoteResponse) GetContentType() string { return o.ContentType } -func (o *GetBillCreditNoteResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetBillCreditNoteResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/getbillpayments.go b/sync-for-payables/pkg/models/operations/getbillpayments.go old mode 100755 new mode 100644 index c53114077..ff280eda4 --- a/sync-for-payables/pkg/models/operations/getbillpayments.go +++ b/sync-for-payables/pkg/models/operations/getbillpayments.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -33,8 +33,6 @@ type GetBillPaymentsResponse struct { BillPayment *shared.BillPayment // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -55,13 +53,6 @@ func (o *GetBillPaymentsResponse) GetContentType() string { return o.ContentType } -func (o *GetBillPaymentsResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetBillPaymentsResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/getcompany.go b/sync-for-payables/pkg/models/operations/getcompany.go old mode 100755 new mode 100644 index 70996d550..3d1daa884 --- a/sync-for-payables/pkg/models/operations/getcompany.go +++ b/sync-for-payables/pkg/models/operations/getcompany.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -24,8 +24,6 @@ type GetCompanyResponse struct { Company *shared.Company // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -46,13 +44,6 @@ func (o *GetCompanyResponse) GetContentType() string { return o.ContentType } -func (o *GetCompanyResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetCompanyResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/getconnection.go b/sync-for-payables/pkg/models/operations/getconnection.go old mode 100755 new mode 100644 index 9ff8704f1..b5a1c9a2a --- a/sync-for-payables/pkg/models/operations/getconnection.go +++ b/sync-for-payables/pkg/models/operations/getconnection.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -33,8 +33,6 @@ type GetConnectionResponse struct { Connection *shared.Connection // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -55,13 +53,6 @@ func (o *GetConnectionResponse) GetContentType() string { return o.ContentType } -func (o *GetConnectionResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetConnectionResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/getcreateaccountmodel.go b/sync-for-payables/pkg/models/operations/getcreateaccountmodel.go old mode 100755 new mode 100644 index 190517348..e3da4bd96 --- a/sync-for-payables/pkg/models/operations/getcreateaccountmodel.go +++ b/sync-for-payables/pkg/models/operations/getcreateaccountmodel.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -31,8 +31,6 @@ func (o *GetCreateAccountModelRequest) GetConnectionID() string { type GetCreateAccountModelResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // OK PushOption *shared.PushOption // HTTP response status code for this operation @@ -48,13 +46,6 @@ func (o *GetCreateAccountModelResponse) GetContentType() string { return o.ContentType } -func (o *GetCreateAccountModelResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetCreateAccountModelResponse) GetPushOption() *shared.PushOption { if o == nil { return nil diff --git a/sync-for-payables/pkg/models/operations/getcreatebillpaymentmodel.go b/sync-for-payables/pkg/models/operations/getcreatebillpaymentmodel.go old mode 100755 new mode 100644 index a54fa89c4..3e0774e09 --- a/sync-for-payables/pkg/models/operations/getcreatebillpaymentmodel.go +++ b/sync-for-payables/pkg/models/operations/getcreatebillpaymentmodel.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -31,8 +31,6 @@ func (o *GetCreateBillPaymentModelRequest) GetConnectionID() string { type GetCreateBillPaymentModelResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // OK PushOption *shared.PushOption // HTTP response status code for this operation @@ -48,13 +46,6 @@ func (o *GetCreateBillPaymentModelResponse) GetContentType() string { return o.ContentType } -func (o *GetCreateBillPaymentModelResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetCreateBillPaymentModelResponse) GetPushOption() *shared.PushOption { if o == nil { return nil diff --git a/sync-for-payables/pkg/models/operations/getcreatejournalentrymodel.go b/sync-for-payables/pkg/models/operations/getcreatejournalentrymodel.go old mode 100755 new mode 100644 index 960a38877..ec68edc83 --- a/sync-for-payables/pkg/models/operations/getcreatejournalentrymodel.go +++ b/sync-for-payables/pkg/models/operations/getcreatejournalentrymodel.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -31,8 +31,6 @@ func (o *GetCreateJournalEntryModelRequest) GetConnectionID() string { type GetCreateJournalEntryModelResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // OK PushOption *shared.PushOption // HTTP response status code for this operation @@ -48,13 +46,6 @@ func (o *GetCreateJournalEntryModelResponse) GetContentType() string { return o.ContentType } -func (o *GetCreateJournalEntryModelResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetCreateJournalEntryModelResponse) GetPushOption() *shared.PushOption { if o == nil { return nil diff --git a/sync-for-payables/pkg/models/operations/getcreatejournalmodel.go b/sync-for-payables/pkg/models/operations/getcreatejournalmodel.go old mode 100755 new mode 100644 index aadd65314..2182f4394 --- a/sync-for-payables/pkg/models/operations/getcreatejournalmodel.go +++ b/sync-for-payables/pkg/models/operations/getcreatejournalmodel.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -31,8 +31,6 @@ func (o *GetCreateJournalModelRequest) GetConnectionID() string { type GetCreateJournalModelResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // OK PushOption *shared.PushOption // HTTP response status code for this operation @@ -48,13 +46,6 @@ func (o *GetCreateJournalModelResponse) GetContentType() string { return o.ContentType } -func (o *GetCreateJournalModelResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetCreateJournalModelResponse) GetPushOption() *shared.PushOption { if o == nil { return nil diff --git a/sync-for-payables/pkg/models/operations/getcreateupdatebillcreditnotemodel.go b/sync-for-payables/pkg/models/operations/getcreateupdatebillcreditnotemodel.go old mode 100755 new mode 100644 index 0de91ea43..1dfe46ca7 --- a/sync-for-payables/pkg/models/operations/getcreateupdatebillcreditnotemodel.go +++ b/sync-for-payables/pkg/models/operations/getcreateupdatebillcreditnotemodel.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -31,8 +31,6 @@ func (o *GetCreateUpdateBillCreditNoteModelRequest) GetConnectionID() string { type GetCreateUpdateBillCreditNoteModelResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // OK PushOption *shared.PushOption // HTTP response status code for this operation @@ -48,13 +46,6 @@ func (o *GetCreateUpdateBillCreditNoteModelResponse) GetContentType() string { return o.ContentType } -func (o *GetCreateUpdateBillCreditNoteModelResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetCreateUpdateBillCreditNoteModelResponse) GetPushOption() *shared.PushOption { if o == nil { return nil diff --git a/sync-for-payables/pkg/models/operations/getcreateupdatebillmodel.go b/sync-for-payables/pkg/models/operations/getcreateupdatebillmodel.go old mode 100755 new mode 100644 index 4a192def3..16607be4f --- a/sync-for-payables/pkg/models/operations/getcreateupdatebillmodel.go +++ b/sync-for-payables/pkg/models/operations/getcreateupdatebillmodel.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -31,8 +31,6 @@ func (o *GetCreateUpdateBillModelRequest) GetConnectionID() string { type GetCreateUpdateBillModelResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // OK PushOption *shared.PushOption // HTTP response status code for this operation @@ -48,13 +46,6 @@ func (o *GetCreateUpdateBillModelResponse) GetContentType() string { return o.ContentType } -func (o *GetCreateUpdateBillModelResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetCreateUpdateBillModelResponse) GetPushOption() *shared.PushOption { if o == nil { return nil diff --git a/sync-for-payables/pkg/models/operations/getcreateupdatesuppliermodel.go b/sync-for-payables/pkg/models/operations/getcreateupdatesuppliermodel.go old mode 100755 new mode 100644 index a4105469a..32c5f108c --- a/sync-for-payables/pkg/models/operations/getcreateupdatesuppliermodel.go +++ b/sync-for-payables/pkg/models/operations/getcreateupdatesuppliermodel.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -31,8 +31,6 @@ func (o *GetCreateUpdateSupplierModelRequest) GetConnectionID() string { type GetCreateUpdateSupplierModelResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // OK PushOption *shared.PushOption // HTTP response status code for this operation @@ -48,13 +46,6 @@ func (o *GetCreateUpdateSupplierModelResponse) GetContentType() string { return o.ContentType } -func (o *GetCreateUpdateSupplierModelResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetCreateUpdateSupplierModelResponse) GetPushOption() *shared.PushOption { if o == nil { return nil diff --git a/sync-for-payables/pkg/models/operations/getdatastatus.go b/sync-for-payables/pkg/models/operations/getdatastatus.go old mode 100755 new mode 100644 index 5495d5d45..a7961aeab --- a/sync-for-payables/pkg/models/operations/getdatastatus.go +++ b/sync-for-payables/pkg/models/operations/getdatastatus.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -23,9 +23,7 @@ type GetDataStatusResponse struct { // HTTP response content type for this operation ContentType string // OK - DataStatusResponse map[string]shared.DataStatus - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage + DataStatuses map[string]shared.DataStatus // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -39,18 +37,11 @@ func (o *GetDataStatusResponse) GetContentType() string { return o.ContentType } -func (o *GetDataStatusResponse) GetDataStatusResponse() map[string]shared.DataStatus { +func (o *GetDataStatusResponse) GetDataStatuses() map[string]shared.DataStatus { if o == nil { return nil } - return o.DataStatusResponse -} - -func (o *GetDataStatusResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage + return o.DataStatuses } func (o *GetDataStatusResponse) GetStatusCode() int { diff --git a/sync-for-payables/pkg/models/operations/getjournal.go b/sync-for-payables/pkg/models/operations/getjournal.go old mode 100755 new mode 100644 index 8b797a40e..74719380a --- a/sync-for-payables/pkg/models/operations/getjournal.go +++ b/sync-for-payables/pkg/models/operations/getjournal.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -31,8 +31,6 @@ func (o *GetJournalRequest) GetJournalID() string { type GetJournalResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // Success Journal *shared.Journal // HTTP response status code for this operation @@ -48,13 +46,6 @@ func (o *GetJournalResponse) GetContentType() string { return o.ContentType } -func (o *GetJournalResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetJournalResponse) GetJournal() *shared.Journal { if o == nil { return nil diff --git a/sync-for-payables/pkg/models/operations/getpaymentmethod.go b/sync-for-payables/pkg/models/operations/getpaymentmethod.go old mode 100755 new mode 100644 index 5e4f1699a..29492d528 --- a/sync-for-payables/pkg/models/operations/getpaymentmethod.go +++ b/sync-for-payables/pkg/models/operations/getpaymentmethod.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -31,8 +31,6 @@ func (o *GetPaymentMethodRequest) GetPaymentMethodID() string { type GetPaymentMethodResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // Success PaymentMethod *shared.PaymentMethod // HTTP response status code for this operation @@ -48,13 +46,6 @@ func (o *GetPaymentMethodResponse) GetContentType() string { return o.ContentType } -func (o *GetPaymentMethodResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetPaymentMethodResponse) GetPaymentMethod() *shared.PaymentMethod { if o == nil { return nil diff --git a/sync-for-payables/pkg/models/operations/getpulloperation.go b/sync-for-payables/pkg/models/operations/getpulloperation.go old mode 100755 new mode 100644 index 1016a5497..0b1177952 --- a/sync-for-payables/pkg/models/operations/getpulloperation.go +++ b/sync-for-payables/pkg/models/operations/getpulloperation.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -31,8 +31,6 @@ func (o *GetPullOperationRequest) GetDatasetID() string { type GetPullOperationResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // OK PullOperation *shared.PullOperation // HTTP response status code for this operation @@ -48,13 +46,6 @@ func (o *GetPullOperationResponse) GetContentType() string { return o.ContentType } -func (o *GetPullOperationResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetPullOperationResponse) GetPullOperation() *shared.PullOperation { if o == nil { return nil diff --git a/sync-for-payables/pkg/models/operations/getpushoperation.go b/sync-for-payables/pkg/models/operations/getpushoperation.go old mode 100755 new mode 100644 index 9abb2bc98..777a80a7f --- a/sync-for-payables/pkg/models/operations/getpushoperation.go +++ b/sync-for-payables/pkg/models/operations/getpushoperation.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -31,8 +31,6 @@ func (o *GetPushOperationRequest) GetPushOperationKey() string { type GetPushOperationResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // OK PushOperation *shared.PushOperation // HTTP response status code for this operation @@ -48,13 +46,6 @@ func (o *GetPushOperationResponse) GetContentType() string { return o.ContentType } -func (o *GetPushOperationResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetPushOperationResponse) GetPushOperation() *shared.PushOperation { if o == nil { return nil diff --git a/sync-for-payables/pkg/models/operations/getsupplier.go b/sync-for-payables/pkg/models/operations/getsupplier.go old mode 100755 new mode 100644 index b4f21e2aa..0234bc270 --- a/sync-for-payables/pkg/models/operations/getsupplier.go +++ b/sync-for-payables/pkg/models/operations/getsupplier.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -31,8 +31,6 @@ func (o *GetSupplierRequest) GetSupplierID() string { type GetSupplierResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -48,13 +46,6 @@ func (o *GetSupplierResponse) GetContentType() string { return o.ContentType } -func (o *GetSupplierResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetSupplierResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/gettaxrate.go b/sync-for-payables/pkg/models/operations/gettaxrate.go old mode 100755 new mode 100644 index 6517b7d20..363dcca66 --- a/sync-for-payables/pkg/models/operations/gettaxrate.go +++ b/sync-for-payables/pkg/models/operations/gettaxrate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -31,8 +31,6 @@ func (o *GetTaxRateRequest) GetTaxRateID() string { type GetTaxRateResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -48,13 +46,6 @@ func (o *GetTaxRateResponse) GetContentType() string { return o.ContentType } -func (o *GetTaxRateResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetTaxRateResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/gettrackingcategory.go b/sync-for-payables/pkg/models/operations/gettrackingcategory.go old mode 100755 new mode 100644 index 55bfadb83..740f0963a --- a/sync-for-payables/pkg/models/operations/gettrackingcategory.go +++ b/sync-for-payables/pkg/models/operations/gettrackingcategory.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -31,8 +31,6 @@ func (o *GetTrackingCategoryRequest) GetTrackingCategoryID() string { type GetTrackingCategoryResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -48,13 +46,6 @@ func (o *GetTrackingCategoryResponse) GetContentType() string { return o.ContentType } -func (o *GetTrackingCategoryResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *GetTrackingCategoryResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/listaccounts.go b/sync-for-payables/pkg/models/operations/listaccounts.go old mode 100755 new mode 100644 index f86b6ef9e..1643e6720 --- a/sync-for-payables/pkg/models/operations/listaccounts.go +++ b/sync-for-payables/pkg/models/operations/listaccounts.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "net/http" ) @@ -72,8 +72,6 @@ type ListAccountsResponse struct { Accounts *shared.Accounts // HTTP response content type for this operation ContentType string - // Your `query` parameter was not correctly formed - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -94,13 +92,6 @@ func (o *ListAccountsResponse) GetContentType() string { return o.ContentType } -func (o *ListAccountsResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *ListAccountsResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/listbillattachments.go b/sync-for-payables/pkg/models/operations/listbillattachments.go old mode 100755 new mode 100644 index cd1cbd098..7038ea498 --- a/sync-for-payables/pkg/models/operations/listbillattachments.go +++ b/sync-for-payables/pkg/models/operations/listbillattachments.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -42,8 +42,6 @@ type ListBillAttachmentsResponse struct { Attachments *shared.Attachments // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -64,13 +62,6 @@ func (o *ListBillAttachmentsResponse) GetContentType() string { return o.ContentType } -func (o *ListBillAttachmentsResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *ListBillAttachmentsResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/listbillcreditnotes.go b/sync-for-payables/pkg/models/operations/listbillcreditnotes.go old mode 100755 new mode 100644 index c91c1418a..ef47abb87 --- a/sync-for-payables/pkg/models/operations/listbillcreditnotes.go +++ b/sync-for-payables/pkg/models/operations/listbillcreditnotes.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "net/http" ) @@ -72,8 +72,6 @@ type ListBillCreditNotesResponse struct { BillCreditNotes *shared.BillCreditNotes // HTTP response content type for this operation ContentType string - // Your `query` parameter was not correctly formed - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -94,13 +92,6 @@ func (o *ListBillCreditNotesResponse) GetContentType() string { return o.ContentType } -func (o *ListBillCreditNotesResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *ListBillCreditNotesResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/listbillpayments.go b/sync-for-payables/pkg/models/operations/listbillpayments.go old mode 100755 new mode 100644 index 483688a57..a7a5d0fcf --- a/sync-for-payables/pkg/models/operations/listbillpayments.go +++ b/sync-for-payables/pkg/models/operations/listbillpayments.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "net/http" ) @@ -72,8 +72,6 @@ type ListBillPaymentsResponse struct { BillPayments *shared.BillPayments // HTTP response content type for this operation ContentType string - // Your `query` parameter was not correctly formed - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -94,13 +92,6 @@ func (o *ListBillPaymentsResponse) GetContentType() string { return o.ContentType } -func (o *ListBillPaymentsResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *ListBillPaymentsResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/listbills.go b/sync-for-payables/pkg/models/operations/listbills.go old mode 100755 new mode 100644 index 77ff8f448..40b09fa64 --- a/sync-for-payables/pkg/models/operations/listbills.go +++ b/sync-for-payables/pkg/models/operations/listbills.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "net/http" ) @@ -72,8 +72,6 @@ type ListBillsResponse struct { Bills *shared.Bills // HTTP response content type for this operation ContentType string - // Your `query` parameter was not correctly formed - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -94,13 +92,6 @@ func (o *ListBillsResponse) GetContentType() string { return o.ContentType } -func (o *ListBillsResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *ListBillsResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/listcompanies.go b/sync-for-payables/pkg/models/operations/listcompanies.go old mode 100755 new mode 100644 index 3737a6956..74768a4d2 --- a/sync-for-payables/pkg/models/operations/listcompanies.go +++ b/sync-for-payables/pkg/models/operations/listcompanies.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "net/http" ) @@ -63,8 +63,6 @@ type ListCompaniesResponse struct { Companies *shared.Companies // HTTP response content type for this operation ContentType string - // Your `query` parameter was not correctly formed - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -85,13 +83,6 @@ func (o *ListCompaniesResponse) GetContentType() string { return o.ContentType } -func (o *ListCompaniesResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *ListCompaniesResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/listconnections.go b/sync-for-payables/pkg/models/operations/listconnections.go old mode 100755 new mode 100644 index b514d7cae..3a69cdc1b --- a/sync-for-payables/pkg/models/operations/listconnections.go +++ b/sync-for-payables/pkg/models/operations/listconnections.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "net/http" ) @@ -72,8 +72,6 @@ type ListConnectionsResponse struct { Connections *shared.Connections // HTTP response content type for this operation ContentType string - // Your `query` parameter was not correctly formed - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -94,13 +92,6 @@ func (o *ListConnectionsResponse) GetContentType() string { return o.ContentType } -func (o *ListConnectionsResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *ListConnectionsResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/listjournals.go b/sync-for-payables/pkg/models/operations/listjournals.go old mode 100755 new mode 100644 index 5a2d2568e..eb43ff161 --- a/sync-for-payables/pkg/models/operations/listjournals.go +++ b/sync-for-payables/pkg/models/operations/listjournals.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "net/http" ) @@ -70,8 +70,6 @@ func (o *ListJournalsRequest) GetQuery() *string { type ListJournalsResponse struct { // HTTP response content type for this operation ContentType string - // Your `query` parameter was not correctly formed - ErrorMessage *shared.ErrorMessage // Success Journals *shared.Journals // HTTP response status code for this operation @@ -87,13 +85,6 @@ func (o *ListJournalsResponse) GetContentType() string { return o.ContentType } -func (o *ListJournalsResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *ListJournalsResponse) GetJournals() *shared.Journals { if o == nil { return nil diff --git a/sync-for-payables/pkg/models/operations/listpaymentmethods.go b/sync-for-payables/pkg/models/operations/listpaymentmethods.go old mode 100755 new mode 100644 index ceabc8298..0adbc84e7 --- a/sync-for-payables/pkg/models/operations/listpaymentmethods.go +++ b/sync-for-payables/pkg/models/operations/listpaymentmethods.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "net/http" ) @@ -70,8 +70,6 @@ func (o *ListPaymentMethodsRequest) GetQuery() *string { type ListPaymentMethodsResponse struct { // HTTP response content type for this operation ContentType string - // Your `query` parameter was not correctly formed - ErrorMessage *shared.ErrorMessage // Success PaymentMethods *shared.PaymentMethods // HTTP response status code for this operation @@ -87,13 +85,6 @@ func (o *ListPaymentMethodsResponse) GetContentType() string { return o.ContentType } -func (o *ListPaymentMethodsResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *ListPaymentMethodsResponse) GetPaymentMethods() *shared.PaymentMethods { if o == nil { return nil diff --git a/sync-for-payables/pkg/models/operations/listpulloperations.go b/sync-for-payables/pkg/models/operations/listpulloperations.go old mode 100755 new mode 100644 index 4556c7b22..11751dfbc --- a/sync-for-payables/pkg/models/operations/listpulloperations.go +++ b/sync-for-payables/pkg/models/operations/listpulloperations.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "net/http" ) @@ -70,8 +70,6 @@ func (o *ListPullOperationsRequest) GetQuery() *string { type ListPullOperationsResponse struct { // HTTP response content type for this operation ContentType string - // Your `query` parameter was not correctly formed - ErrorMessage *shared.ErrorMessage // OK PullOperations *shared.PullOperations // HTTP response status code for this operation @@ -87,13 +85,6 @@ func (o *ListPullOperationsResponse) GetContentType() string { return o.ContentType } -func (o *ListPullOperationsResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *ListPullOperationsResponse) GetPullOperations() *shared.PullOperations { if o == nil { return nil diff --git a/sync-for-payables/pkg/models/operations/listpushoperations.go b/sync-for-payables/pkg/models/operations/listpushoperations.go old mode 100755 new mode 100644 index cdc75bd48..a7288ff0a --- a/sync-for-payables/pkg/models/operations/listpushoperations.go +++ b/sync-for-payables/pkg/models/operations/listpushoperations.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "net/http" ) @@ -70,8 +70,6 @@ func (o *ListPushOperationsRequest) GetQuery() *string { type ListPushOperationsResponse struct { // HTTP response content type for this operation ContentType string - // Your `query` parameter was not correctly formed - ErrorMessage *shared.ErrorMessage // OK PushOperations *shared.PushOperations // HTTP response status code for this operation @@ -87,13 +85,6 @@ func (o *ListPushOperationsResponse) GetContentType() string { return o.ContentType } -func (o *ListPushOperationsResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *ListPushOperationsResponse) GetPushOperations() *shared.PushOperations { if o == nil { return nil diff --git a/sync-for-payables/pkg/models/operations/listsuppliers.go b/sync-for-payables/pkg/models/operations/listsuppliers.go old mode 100755 new mode 100644 index d4d286407..e6667db6e --- a/sync-for-payables/pkg/models/operations/listsuppliers.go +++ b/sync-for-payables/pkg/models/operations/listsuppliers.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "net/http" ) @@ -70,8 +70,6 @@ func (o *ListSuppliersRequest) GetQuery() *string { type ListSuppliersResponse struct { // HTTP response content type for this operation ContentType string - // Your `query` parameter was not correctly formed - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -87,13 +85,6 @@ func (o *ListSuppliersResponse) GetContentType() string { return o.ContentType } -func (o *ListSuppliersResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *ListSuppliersResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/listtaxrates.go b/sync-for-payables/pkg/models/operations/listtaxrates.go old mode 100755 new mode 100644 index b8b09b068..e985338e9 --- a/sync-for-payables/pkg/models/operations/listtaxrates.go +++ b/sync-for-payables/pkg/models/operations/listtaxrates.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "net/http" ) @@ -70,8 +70,6 @@ func (o *ListTaxRatesRequest) GetQuery() *string { type ListTaxRatesResponse struct { // HTTP response content type for this operation ContentType string - // Your `query` parameter was not correctly formed - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -87,13 +85,6 @@ func (o *ListTaxRatesResponse) GetContentType() string { return o.ContentType } -func (o *ListTaxRatesResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *ListTaxRatesResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/listtrackingcategories.go b/sync-for-payables/pkg/models/operations/listtrackingcategories.go old mode 100755 new mode 100644 index 273eef0ca..e3481fbd0 --- a/sync-for-payables/pkg/models/operations/listtrackingcategories.go +++ b/sync-for-payables/pkg/models/operations/listtrackingcategories.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "net/http" ) @@ -70,8 +70,6 @@ func (o *ListTrackingCategoriesRequest) GetQuery() *string { type ListTrackingCategoriesResponse struct { // HTTP response content type for this operation ContentType string - // Your `query` parameter was not correctly formed - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -87,13 +85,6 @@ func (o *ListTrackingCategoriesResponse) GetContentType() string { return o.ContentType } -func (o *ListTrackingCategoriesResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *ListTrackingCategoriesResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/options.go b/sync-for-payables/pkg/models/operations/options.go old mode 100755 new mode 100644 index e74cfe757..ecb807878 --- a/sync-for-payables/pkg/models/operations/options.go +++ b/sync-for-payables/pkg/models/operations/options.go @@ -4,7 +4,7 @@ package operations import ( "errors" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" ) var ErrUnsupportedOption = errors.New("unsupported option") diff --git a/sync-for-payables/pkg/models/operations/refreshalldatatypes.go b/sync-for-payables/pkg/models/operations/refreshalldatatypes.go old mode 100755 new mode 100644 index 1dd309bae..e63b26c41 --- a/sync-for-payables/pkg/models/operations/refreshalldatatypes.go +++ b/sync-for-payables/pkg/models/operations/refreshalldatatypes.go @@ -3,7 +3,6 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" "net/http" ) @@ -22,8 +21,6 @@ func (o *RefreshAllDataTypesRequest) GetCompanyID() string { type RefreshAllDataTypesResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -37,13 +34,6 @@ func (o *RefreshAllDataTypesResponse) GetContentType() string { return o.ContentType } -func (o *RefreshAllDataTypesResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *RefreshAllDataTypesResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/refreshdatatype.go b/sync-for-payables/pkg/models/operations/refreshdatatype.go old mode 100755 new mode 100644 index 91307c592..0bc1a70fb --- a/sync-for-payables/pkg/models/operations/refreshdatatype.go +++ b/sync-for-payables/pkg/models/operations/refreshdatatype.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -13,7 +13,7 @@ type RefreshDataTypeRequest struct { // Optionally, provide a data connection id to only queue pull operations on that connection. ConnectionID *string `queryParam:"style=form,explode=true,name=connectionId"` // The key of a Codat data type - DataType shared.DataType `pathParam:"style=simple,explode=false,name=dataType"` + DataType shared.SchemaDataType `pathParam:"style=simple,explode=false,name=dataType"` } func (o *RefreshDataTypeRequest) GetCompanyID() string { @@ -30,9 +30,9 @@ func (o *RefreshDataTypeRequest) GetConnectionID() *string { return o.ConnectionID } -func (o *RefreshDataTypeRequest) GetDataType() shared.DataType { +func (o *RefreshDataTypeRequest) GetDataType() shared.SchemaDataType { if o == nil { - return shared.DataType("") + return shared.SchemaDataType("") } return o.DataType } @@ -40,8 +40,6 @@ func (o *RefreshDataTypeRequest) GetDataType() shared.DataType { type RefreshDataTypeResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // OK PullOperation *shared.PullOperation // HTTP response status code for this operation @@ -57,13 +55,6 @@ func (o *RefreshDataTypeResponse) GetContentType() string { return o.ContentType } -func (o *RefreshDataTypeResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *RefreshDataTypeResponse) GetPullOperation() *shared.PullOperation { if o == nil { return nil diff --git a/sync-for-payables/pkg/models/operations/unlinkconnection.go b/sync-for-payables/pkg/models/operations/unlinkconnection.go old mode 100755 new mode 100644 index e20dd5768..024b7ddaf --- a/sync-for-payables/pkg/models/operations/unlinkconnection.go +++ b/sync-for-payables/pkg/models/operations/unlinkconnection.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -53,8 +53,6 @@ type UnlinkConnectionResponse struct { Connection *shared.Connection // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -75,13 +73,6 @@ func (o *UnlinkConnectionResponse) GetContentType() string { return o.ContentType } -func (o *UnlinkConnectionResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *UnlinkConnectionResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/updatebill.go b/sync-for-payables/pkg/models/operations/updatebill.go old mode 100755 new mode 100644 index d42d0e113..57340cb0a --- a/sync-for-payables/pkg/models/operations/updatebill.go +++ b/sync-for-payables/pkg/models/operations/updatebill.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "net/http" ) @@ -78,8 +78,6 @@ func (o *UpdateBillRequest) GetTimeoutInMinutes() *int { type UpdateBillResponse struct { // HTTP response content type for this operation ContentType string - // The request made is not valid. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -95,13 +93,6 @@ func (o *UpdateBillResponse) GetContentType() string { return o.ContentType } -func (o *UpdateBillResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *UpdateBillResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/updatebillcreditnote.go b/sync-for-payables/pkg/models/operations/updatebillcreditnote.go old mode 100755 new mode 100644 index 73b2ecf94..c57b889f9 --- a/sync-for-payables/pkg/models/operations/updatebillcreditnote.go +++ b/sync-for-payables/pkg/models/operations/updatebillcreditnote.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "net/http" ) @@ -78,8 +78,6 @@ func (o *UpdateBillCreditNoteRequest) GetTimeoutInMinutes() *int { type UpdateBillCreditNoteResponse struct { // HTTP response content type for this operation ContentType string - // The request made is not valid. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -95,13 +93,6 @@ func (o *UpdateBillCreditNoteResponse) GetContentType() string { return o.ContentType } -func (o *UpdateBillCreditNoteResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *UpdateBillCreditNoteResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/updatecompany.go b/sync-for-payables/pkg/models/operations/updatecompany.go old mode 100755 new mode 100644 index a6f514673..6bfab8bf9 --- a/sync-for-payables/pkg/models/operations/updatecompany.go +++ b/sync-for-payables/pkg/models/operations/updatecompany.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) @@ -32,8 +32,6 @@ type UpdateCompanyResponse struct { Company *shared.Company // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -54,13 +52,6 @@ func (o *UpdateCompanyResponse) GetContentType() string { return o.ContentType } -func (o *UpdateCompanyResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *UpdateCompanyResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/updatesupplier.go b/sync-for-payables/pkg/models/operations/updatesupplier.go old mode 100755 new mode 100644 index 35b7ca7aa..36533792e --- a/sync-for-payables/pkg/models/operations/updatesupplier.go +++ b/sync-for-payables/pkg/models/operations/updatesupplier.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "net/http" ) @@ -78,8 +78,6 @@ func (o *UpdateSupplierRequest) GetTimeoutInMinutes() *int { type UpdateSupplierResponse struct { // HTTP response content type for this operation ContentType string - // The request made is not valid. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -95,13 +93,6 @@ func (o *UpdateSupplierResponse) GetContentType() string { return o.ContentType } -func (o *UpdateSupplierResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *UpdateSupplierResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/operations/uploadbillattachment.go b/sync-for-payables/pkg/models/operations/uploadbillattachment.go old mode 100755 new mode 100644 index d3b2bdd2b..76002447c --- a/sync-for-payables/pkg/models/operations/uploadbillattachment.go +++ b/sync-for-payables/pkg/models/operations/uploadbillattachment.go @@ -3,31 +3,12 @@ package operations import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" "net/http" ) -type UploadBillAttachmentRequestBody struct { - Content []byte `multipartForm:"content"` - RequestBody string `multipartForm:"name=requestBody"` -} - -func (o *UploadBillAttachmentRequestBody) GetContent() []byte { - if o == nil { - return []byte{} - } - return o.Content -} - -func (o *UploadBillAttachmentRequestBody) GetRequestBody() string { - if o == nil { - return "" - } - return o.RequestBody -} - type UploadBillAttachmentRequest struct { - RequestBody *UploadBillAttachmentRequestBody `multipartForm:"file" request:"mediaType=multipart/form-data"` + AttachmentUpload *shared.AttachmentUpload `request:"mediaType=multipart/form-data"` // Unique identifier for a bill. BillID string `pathParam:"style=simple,explode=false,name=billId"` // Unique identifier for a company. @@ -36,11 +17,11 @@ type UploadBillAttachmentRequest struct { ConnectionID string `pathParam:"style=simple,explode=false,name=connectionId"` } -func (o *UploadBillAttachmentRequest) GetRequestBody() *UploadBillAttachmentRequestBody { +func (o *UploadBillAttachmentRequest) GetAttachmentUpload() *shared.AttachmentUpload { if o == nil { return nil } - return o.RequestBody + return o.AttachmentUpload } func (o *UploadBillAttachmentRequest) GetBillID() string { @@ -67,8 +48,6 @@ func (o *UploadBillAttachmentRequest) GetConnectionID() string { type UploadBillAttachmentResponse struct { // HTTP response content type for this operation ContentType string - // Your API request was not properly authorized. - ErrorMessage *shared.ErrorMessage // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing @@ -82,13 +61,6 @@ func (o *UploadBillAttachmentResponse) GetContentType() string { return o.ContentType } -func (o *UploadBillAttachmentResponse) GetErrorMessage() *shared.ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessage -} - func (o *UploadBillAttachmentResponse) GetStatusCode() int { if o == nil { return 0 diff --git a/sync-for-payables/pkg/models/shared/errormessage.go b/sync-for-payables/pkg/models/sdkerrors/errormessage.go old mode 100755 new mode 100644 similarity index 52% rename from sync-for-payables/pkg/models/shared/errormessage.go rename to sync-for-payables/pkg/models/sdkerrors/errormessage.go index fcbb14d7c..9962ee8ed --- a/sync-for-payables/pkg/models/shared/errormessage.go +++ b/sync-for-payables/pkg/models/sdkerrors/errormessage.go @@ -1,7 +1,12 @@ // Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. -package shared +package sdkerrors +import ( + "encoding/json" +) + +// ErrorMessage - The request made is not valid. type ErrorMessage struct { // `True` if the error occurred transiently and can be retried. CanBeRetried *string `json:"canBeRetried,omitempty"` @@ -10,51 +15,16 @@ type ErrorMessage struct { // Machine readable error code used to automate processes based on the code returned. DetailedErrorCode *int64 `json:"detailedErrorCode,omitempty"` // A brief description of the error. - Error *string `json:"error,omitempty"` + Error_ *string `json:"error,omitempty"` // Codat's service the returned the error. Service *string `json:"service,omitempty"` // The HTTP status code returned by the error. StatusCode *int64 `json:"statusCode,omitempty"` } -func (o *ErrorMessage) GetCanBeRetried() *string { - if o == nil { - return nil - } - return o.CanBeRetried -} - -func (o *ErrorMessage) GetCorrelationID() *string { - if o == nil { - return nil - } - return o.CorrelationID -} - -func (o *ErrorMessage) GetDetailedErrorCode() *int64 { - if o == nil { - return nil - } - return o.DetailedErrorCode -} - -func (o *ErrorMessage) GetError() *string { - if o == nil { - return nil - } - return o.Error -} - -func (o *ErrorMessage) GetService() *string { - if o == nil { - return nil - } - return o.Service -} +var _ error = &ErrorMessage{} -func (o *ErrorMessage) GetStatusCode() *int64 { - if o == nil { - return nil - } - return o.StatusCode +func (e *ErrorMessage) Error() string { + data, _ := json.Marshal(e) + return string(data) } diff --git a/sync-for-payables/pkg/models/sdkerrors/sdkerror.go b/sync-for-payables/pkg/models/sdkerrors/sdkerror.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/account.go b/sync-for-payables/pkg/models/shared/account.go old mode 100755 new mode 100644 index d93640628..8b6f2469e --- a/sync-for-payables/pkg/models/shared/account.go +++ b/sync-for-payables/pkg/models/shared/account.go @@ -3,7 +3,7 @@ package shared import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "github.com/ericlagergren/decimal" ) @@ -77,11 +77,11 @@ func (o *AccountValidDataTypeLinks) GetProperty() *string { // Accounts are the categories a business uses to record accounting transactions. From the Accounts endpoints, you can retrieve a list of all accounts for a specified company. // // The categories for an account include: -// - Asset -// - Expense -// - Income -// - Liability -// - Equity. +// * Asset +// * Expense +// * Income +// * Liability +// * Equity. // // The same account may have a different category based on the integration it is used in. For example, a current account (known as checking in the US) should be categorized as `Asset.Current` for Xero, and `Asset.Bank.Checking` for QuickBooks Online. // diff --git a/sync-for-payables/pkg/models/shared/accountingaddresstype.go b/sync-for-payables/pkg/models/shared/accountingaddresstype.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/accountprototype.go b/sync-for-payables/pkg/models/shared/accountprototype.go new file mode 100644 index 000000000..3fe150ffa --- /dev/null +++ b/sync-for-payables/pkg/models/shared/accountprototype.go @@ -0,0 +1,204 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +import ( + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" + "github.com/ericlagergren/decimal" +) + +// ValidDataTypeLinks - When querying Codat's data model, some data types return `validDatatypeLinks` metadata in the JSON response. This indicates where that object can be used as a reference—a _valid link_—when creating or updating other data. +// +// For example, `validDatatypeLinks` might indicate the following references: +// +// - Which tax rates are valid to use on the line item of a bill. +// - Which items can be used when creating an invoice. +// +// You can use `validDatatypeLinks` to present your SMB customers with only valid choices when selecting objects from a list, for example. +// +// ## `validDatatypeLinks` example +// +// The following example uses the `Accounting.Accounts` data type. It shows that, on the linked integration, this account is valid as the account on a payment or bill payment; and as the account referenced on the line item of a direct income or direct cost. Because there is no valid link to Invoices or Bills, using this account on those data types will result in an error. +// +// ```json validDatatypeLinks for an account +// +// { +// "id": "bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4", +// "nominalCode": "090", +// "name": "Business Bank Account", +// #... +// "validDatatypeLinks": [ +// { +// "property": "Id", +// "links": [ +// "Payment.AccountRef.Id", +// "BillPayment.AccountRef.Id", +// "DirectIncome.LineItems.AccountRef.Id", +// "DirectCost.LineItems.AccountRef.Id" +// ] +// } +// ] +// } +// +// ``` +// +// ## Support for `validDatatypeLinks` +// +// Codat currently supports `validDatatypeLinks` for some data types on our Xero, QuickBooks Online, QuickBooks Desktop, Exact (NL), and Sage Business Cloud integrations. +// +// If you'd like us to extend support to more data types or integrations, suggest or vote for this on our Product Roadmap. +type ValidDataTypeLinks struct { + // Supported `dataTypes` that the record can be linked to. + Links []string `json:"links,omitempty"` + // The property from the account that can be linked. + Property *string `json:"property,omitempty"` +} + +func (o *ValidDataTypeLinks) GetLinks() []string { + if o == nil { + return nil + } + return o.Links +} + +func (o *ValidDataTypeLinks) GetProperty() *string { + if o == nil { + return nil + } + return o.Property +} + +type AccountPrototype struct { + // The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_. + // + // ## Unknown currencies + // + // In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction. + // + // There are only a very small number of edge cases where this currency code is returned by the Codat system. + Currency *string `json:"currency,omitempty"` + // Current balance in the account. + CurrentBalance *decimal.Big `decimal:"number" json:"currentBalance,omitempty"` + // Description for the account. + Description *string `json:"description,omitempty"` + // Full category of the account. + // + // For example, `Liability.Current` or `Income.Revenue`. To determine a list of possible categories for each integration, see our examples, follow our [Create, update, delete data](https://docs.codat.io/using-the-api/push) guide, or refer to the integration's own documentation. + FullyQualifiedCategory *string `json:"fullyQualifiedCategory,omitempty"` + // Full name of the account, for example: + // - `Cash On Hand` + // - `Rents Held In Trust` + // - `Fixed Asset` + FullyQualifiedName *string `json:"fullyQualifiedName,omitempty"` + // Confirms whether the account is a bank account or not. + IsBankAccount *bool `json:"isBankAccount,omitempty"` + // Name of the account. + Name *string `json:"name,omitempty"` + // Reference given to each nominal account for a business. It ensures money is allocated to the correct account. This code isn't a unique identifier in the Codat system. + NominalCode *string `json:"nominalCode,omitempty"` + // Status of the account + Status *AccountStatus `json:"status,omitempty"` + // Supplemental data is additional data you can include in our standard data types. + // + // It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. + SupplementalData *SupplementalData `json:"supplementalData,omitempty"` + // Type of account + Type *AccountType `json:"type,omitempty"` + // The validDatatypeLinks can be used to determine whether an account can be correctly mapped to another object; for example, accounts with a `type` of `income` might only support being used on an Invoice and Direct Income. For more information, see [Valid Data Type Links](/sync-for-payables-api#/schemas/ValidDataTypeLinks). + ValidDatatypeLinks []ValidDataTypeLinks `json:"validDatatypeLinks,omitempty"` +} + +func (a AccountPrototype) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AccountPrototype) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + return err + } + return nil +} + +func (o *AccountPrototype) GetCurrency() *string { + if o == nil { + return nil + } + return o.Currency +} + +func (o *AccountPrototype) GetCurrentBalance() *decimal.Big { + if o == nil { + return nil + } + return o.CurrentBalance +} + +func (o *AccountPrototype) GetDescription() *string { + if o == nil { + return nil + } + return o.Description +} + +func (o *AccountPrototype) GetFullyQualifiedCategory() *string { + if o == nil { + return nil + } + return o.FullyQualifiedCategory +} + +func (o *AccountPrototype) GetFullyQualifiedName() *string { + if o == nil { + return nil + } + return o.FullyQualifiedName +} + +func (o *AccountPrototype) GetIsBankAccount() *bool { + if o == nil { + return nil + } + return o.IsBankAccount +} + +func (o *AccountPrototype) GetName() *string { + if o == nil { + return nil + } + return o.Name +} + +func (o *AccountPrototype) GetNominalCode() *string { + if o == nil { + return nil + } + return o.NominalCode +} + +func (o *AccountPrototype) GetStatus() *AccountStatus { + if o == nil { + return nil + } + return o.Status +} + +func (o *AccountPrototype) GetSupplementalData() *SupplementalData { + if o == nil { + return nil + } + return o.SupplementalData +} + +func (o *AccountPrototype) GetType() *AccountType { + if o == nil { + return nil + } + return o.Type +} + +func (o *AccountPrototype) GetValidDatatypeLinks() []ValidDataTypeLinks { + if o == nil { + return nil + } + return o.ValidDatatypeLinks +} diff --git a/sync-for-payables/pkg/models/shared/accountref.go b/sync-for-payables/pkg/models/shared/accountref.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/accounts.go b/sync-for-payables/pkg/models/shared/accounts.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/accountstatus.go b/sync-for-payables/pkg/models/shared/accountstatus.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/accounttype.go b/sync-for-payables/pkg/models/shared/accounttype.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/address.go b/sync-for-payables/pkg/models/shared/address.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/attachment.go b/sync-for-payables/pkg/models/shared/attachment.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/attachments.go b/sync-for-payables/pkg/models/shared/attachments.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/attachmentupload.go b/sync-for-payables/pkg/models/shared/attachmentupload.go new file mode 100644 index 000000000..4d7603848 --- /dev/null +++ b/sync-for-payables/pkg/models/shared/attachmentupload.go @@ -0,0 +1,15 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type AttachmentUpload struct { + // The file to be uploaded as an attachment. + File CodatFile `multipartForm:"file"` +} + +func (o *AttachmentUpload) GetFile() CodatFile { + if o == nil { + return CodatFile{} + } + return o.File +} diff --git a/sync-for-payables/pkg/models/shared/bill.go b/sync-for-payables/pkg/models/shared/bill.go old mode 100755 new mode 100644 index de4105e14..6e1055a33 --- a/sync-for-payables/pkg/models/shared/bill.go +++ b/sync-for-payables/pkg/models/shared/bill.go @@ -3,11 +3,11 @@ package shared import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "github.com/ericlagergren/decimal" ) -type BillPaymentAllocationAllocation struct { +type BillAllocation struct { // In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: // // ``` @@ -66,111 +66,111 @@ type BillPaymentAllocationAllocation struct { TotalAmount *decimal.Big `decimal:"number" json:"totalAmount,omitempty"` } -func (b BillPaymentAllocationAllocation) MarshalJSON() ([]byte, error) { +func (b BillAllocation) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(b, "", false) } -func (b *BillPaymentAllocationAllocation) UnmarshalJSON(data []byte) error { +func (b *BillAllocation) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &b, "", false, false); err != nil { return err } return nil } -func (o *BillPaymentAllocationAllocation) GetAllocatedOnDate() *string { +func (o *BillAllocation) GetAllocatedOnDate() *string { if o == nil { return nil } return o.AllocatedOnDate } -func (o *BillPaymentAllocationAllocation) GetCurrency() *string { +func (o *BillAllocation) GetCurrency() *string { if o == nil { return nil } return o.Currency } -func (o *BillPaymentAllocationAllocation) GetCurrencyRate() *decimal.Big { +func (o *BillAllocation) GetCurrencyRate() *decimal.Big { if o == nil { return nil } return o.CurrencyRate } -func (o *BillPaymentAllocationAllocation) GetTotalAmount() *decimal.Big { +func (o *BillAllocation) GetTotalAmount() *decimal.Big { if o == nil { return nil } return o.TotalAmount } -type BillPaymentAllocation struct { - Allocation BillPaymentAllocationAllocation `json:"allocation"` - Payment PaymentAllocationPayment `json:"payment"` +type AccountingPaymentAllocation struct { + Allocation BillAllocation `json:"allocation"` + Payment PaymentAllocationPayment `json:"payment"` } -func (o *BillPaymentAllocation) GetAllocation() BillPaymentAllocationAllocation { +func (o *AccountingPaymentAllocation) GetAllocation() BillAllocation { if o == nil { - return BillPaymentAllocationAllocation{} + return BillAllocation{} } return o.Allocation } -func (o *BillPaymentAllocation) GetPayment() PaymentAllocationPayment { +func (o *AccountingPaymentAllocation) GetPayment() PaymentAllocationPayment { if o == nil { return PaymentAllocationPayment{} } return o.Payment } -type BillPurchaseOrderReference struct { +type PurchaseOrderReference struct { // Identifier for the purchase order, unique for the company in the accounting platform. ID *string `json:"id,omitempty"` // Friendly reference for the purchase order, commonly generated by the accounting platform. PurchaseOrderNumber *string `json:"purchaseOrderNumber,omitempty"` } -func (o *BillPurchaseOrderReference) GetID() *string { +func (o *PurchaseOrderReference) GetID() *string { if o == nil { return nil } return o.ID } -func (o *BillPurchaseOrderReference) GetPurchaseOrderNumber() *string { +func (o *PurchaseOrderReference) GetPurchaseOrderNumber() *string { if o == nil { return nil } return o.PurchaseOrderNumber } -type BillWithholdingTax struct { +type WithholdingTax struct { // Amount of tax withheld. Amount *decimal.Big `decimal:"number" json:"amount"` // Name assigned to withheld tax. Name string `json:"name"` } -func (b BillWithholdingTax) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(b, "", false) +func (w WithholdingTax) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(w, "", false) } -func (b *BillWithholdingTax) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &b, "", false, false); err != nil { +func (w *WithholdingTax) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &w, "", false, false); err != nil { return err } return nil } -func (o *BillWithholdingTax) GetAmount() *decimal.Big { +func (o *WithholdingTax) GetAmount() *decimal.Big { if o == nil { return new(decimal.Big).SetFloat64(0.0) } return o.Amount } -func (o *BillWithholdingTax) GetName() string { +func (o *WithholdingTax) GetName() string { if o == nil { return "" } @@ -244,8 +244,8 @@ type Bill struct { // Any private, company notes about the bill, such as payment information. Note *string `json:"note,omitempty"` // An array of payment allocations. - PaymentAllocations []BillPaymentAllocation `json:"paymentAllocations,omitempty"` - PurchaseOrderRefs []BillPurchaseOrderReference `json:"purchaseOrderRefs,omitempty"` + PaymentAllocations []AccountingPaymentAllocation `json:"paymentAllocations,omitempty"` + PurchaseOrderRefs []PurchaseOrderReference `json:"purchaseOrderRefs,omitempty"` // User-friendly reference for the bill. Reference *string `json:"reference,omitempty"` SourceModifiedDate *string `json:"sourceModifiedDate,omitempty"` @@ -262,8 +262,8 @@ type Bill struct { // Amount of tax on the bill. TaxAmount *decimal.Big `decimal:"number" json:"taxAmount"` // Amount of the bill, including tax. - TotalAmount *decimal.Big `decimal:"number" json:"totalAmount"` - WithholdingTax []BillWithholdingTax `json:"withholdingTax,omitempty"` + TotalAmount *decimal.Big `decimal:"number" json:"totalAmount"` + WithholdingTax []WithholdingTax `json:"withholdingTax,omitempty"` } func (b Bill) MarshalJSON() ([]byte, error) { @@ -347,14 +347,14 @@ func (o *Bill) GetNote() *string { return o.Note } -func (o *Bill) GetPaymentAllocations() []BillPaymentAllocation { +func (o *Bill) GetPaymentAllocations() []AccountingPaymentAllocation { if o == nil { return nil } return o.PaymentAllocations } -func (o *Bill) GetPurchaseOrderRefs() []BillPurchaseOrderReference { +func (o *Bill) GetPurchaseOrderRefs() []PurchaseOrderReference { if o == nil { return nil } @@ -417,7 +417,7 @@ func (o *Bill) GetTotalAmount() *decimal.Big { return o.TotalAmount } -func (o *Bill) GetWithholdingTax() []BillWithholdingTax { +func (o *Bill) GetWithholdingTax() []WithholdingTax { if o == nil { return nil } diff --git a/sync-for-payables/pkg/models/shared/billcreditnote.go b/sync-for-payables/pkg/models/shared/billcreditnote.go old mode 100755 new mode 100644 index 602e65622..e2bb4aaf1 --- a/sync-for-payables/pkg/models/shared/billcreditnote.go +++ b/sync-for-payables/pkg/models/shared/billcreditnote.go @@ -3,7 +3,7 @@ package shared import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "github.com/ericlagergren/decimal" ) @@ -131,7 +131,7 @@ type BillCreditNote struct { TotalDiscount *decimal.Big `decimal:"number" json:"totalDiscount"` // Amount of tax included in the bill credit note. TotalTaxAmount *decimal.Big `decimal:"number" json:"totalTaxAmount"` - WithholdingTax []WithholdingTaxitems `json:"withholdingTax,omitempty"` + WithholdingTax []WithholdingTaxItems `json:"withholdingTax,omitempty"` } func (b BillCreditNote) MarshalJSON() ([]byte, error) { @@ -292,7 +292,7 @@ func (o *BillCreditNote) GetTotalTaxAmount() *decimal.Big { return o.TotalTaxAmount } -func (o *BillCreditNote) GetWithholdingTax() []WithholdingTaxitems { +func (o *BillCreditNote) GetWithholdingTax() []WithholdingTaxItems { if o == nil { return nil } diff --git a/sync-for-payables/pkg/models/shared/billcreditnotelineitem.go b/sync-for-payables/pkg/models/shared/billcreditnotelineitem.go old mode 100755 new mode 100644 index d04bc55cb..5e2a511cd --- a/sync-for-payables/pkg/models/shared/billcreditnotelineitem.go +++ b/sync-for-payables/pkg/models/shared/billcreditnotelineitem.go @@ -3,68 +3,68 @@ package shared import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "github.com/ericlagergren/decimal" ) -// BillCreditNoteLineItemItemReference - Reference to the item the line is linked to. -type BillCreditNoteLineItemItemReference struct { +// ItemReference - Reference to the item the line is linked to. +type ItemReference struct { // Unique identifier for the item in the accounting platform. ID string `json:"id"` // Name of the item in the accounting platform. Name *string `json:"name,omitempty"` } -func (o *BillCreditNoteLineItemItemReference) GetID() string { +func (o *ItemReference) GetID() string { if o == nil { return "" } return o.ID } -func (o *BillCreditNoteLineItemItemReference) GetName() *string { +func (o *ItemReference) GetName() *string { if o == nil { return nil } return o.Name } -type BillCreditNoteLineItemTrackingCustomerRef struct { +type BillCreditNoteLineItemCustomerRef struct { // `customerName` from the Customer data type CompanyName *string `json:"companyName,omitempty"` // `id` from the Customers data type ID string `json:"id"` } -func (o *BillCreditNoteLineItemTrackingCustomerRef) GetCompanyName() *string { +func (o *BillCreditNoteLineItemCustomerRef) GetCompanyName() *string { if o == nil { return nil } return o.CompanyName } -func (o *BillCreditNoteLineItemTrackingCustomerRef) GetID() string { +func (o *BillCreditNoteLineItemCustomerRef) GetID() string { if o == nil { return "" } return o.ID } -type BillCreditNoteLineItemTrackingProjectReference struct { +type BillCreditNoteLineItemAccountingProjectReference struct { // Unique identifier to the project reference. ID string `json:"id"` // The project's name. Name *string `json:"name,omitempty"` } -func (o *BillCreditNoteLineItemTrackingProjectReference) GetID() string { +func (o *BillCreditNoteLineItemAccountingProjectReference) GetID() string { if o == nil { return "" } return o.ID } -func (o *BillCreditNoteLineItemTrackingProjectReference) GetName() *string { +func (o *BillCreditNoteLineItemAccountingProjectReference) GetName() *string { if o == nil { return nil } @@ -73,13 +73,13 @@ func (o *BillCreditNoteLineItemTrackingProjectReference) GetName() *string { // BillCreditNoteLineItemTracking - Categories, and a project and customer, against which the item is tracked. type BillCreditNoteLineItemTracking struct { - CategoryRefs []TrackingCategoryRef `json:"categoryRefs"` - CustomerRef *BillCreditNoteLineItemTrackingCustomerRef `json:"customerRef,omitempty"` + CategoryRefs []TrackingCategoryRef `json:"categoryRefs"` + CustomerRef *BillCreditNoteLineItemCustomerRef `json:"customerRef,omitempty"` // Defines if the invoice or credit note is billed/rebilled to a project or customer. IsBilledTo BilledToType `json:"isBilledTo"` // Defines if the invoice or credit note is billed/rebilled to a project or customer. - IsRebilledTo BilledToType `json:"isRebilledTo"` - ProjectRef *BillCreditNoteLineItemTrackingProjectReference `json:"projectRef,omitempty"` + IsRebilledTo BilledToType `json:"isRebilledTo"` + ProjectRef *BillCreditNoteLineItemAccountingProjectReference `json:"projectRef,omitempty"` } func (o *BillCreditNoteLineItemTracking) GetCategoryRefs() []TrackingCategoryRef { @@ -89,7 +89,7 @@ func (o *BillCreditNoteLineItemTracking) GetCategoryRefs() []TrackingCategoryRef return o.CategoryRefs } -func (o *BillCreditNoteLineItemTracking) GetCustomerRef() *BillCreditNoteLineItemTrackingCustomerRef { +func (o *BillCreditNoteLineItemTracking) GetCustomerRef() *BillCreditNoteLineItemCustomerRef { if o == nil { return nil } @@ -110,7 +110,7 @@ func (o *BillCreditNoteLineItemTracking) GetIsRebilledTo() BilledToType { return o.IsRebilledTo } -func (o *BillCreditNoteLineItemTracking) GetProjectRef() *BillCreditNoteLineItemTrackingProjectReference { +func (o *BillCreditNoteLineItemTracking) GetProjectRef() *BillCreditNoteLineItemAccountingProjectReference { if o == nil { return nil } @@ -127,7 +127,7 @@ type BillCreditNoteLineItem struct { // Percentage rate of any discount applied to the line item. DiscountPercentage *decimal.Big `decimal:"number" json:"discountPercentage,omitempty"` // Reference to the item the line is linked to. - ItemRef *BillCreditNoteLineItemItemReference `json:"itemRef,omitempty"` + ItemRef *ItemReference `json:"itemRef,omitempty"` // Number of units of the goods or service for which credit has been received. Quantity *decimal.Big `decimal:"number" json:"quantity"` // Amount of credit associated with the line item, including discounts but excluding tax. @@ -196,7 +196,7 @@ func (o *BillCreditNoteLineItem) GetDiscountPercentage() *decimal.Big { return o.DiscountPercentage } -func (o *BillCreditNoteLineItem) GetItemRef() *BillCreditNoteLineItemItemReference { +func (o *BillCreditNoteLineItem) GetItemRef() *ItemReference { if o == nil { return nil } diff --git a/sync-for-payables/pkg/models/shared/billcreditnotes.go b/sync-for-payables/pkg/models/shared/billcreditnotes.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/billcreditnotestatus.go b/sync-for-payables/pkg/models/shared/billcreditnotestatus.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/billedtotype.go b/sync-for-payables/pkg/models/shared/billedtotype.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/billlineitem.go b/sync-for-payables/pkg/models/shared/billlineitem.go old mode 100755 new mode 100644 index 5a01ed357..40b191982 --- a/sync-for-payables/pkg/models/shared/billlineitem.go +++ b/sync-for-payables/pkg/models/shared/billlineitem.go @@ -5,60 +5,60 @@ package shared import ( "encoding/json" "fmt" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "github.com/ericlagergren/decimal" ) -// BillLineItemRecordLineReferenceDataType - Allowed name of the 'dataType'. -type BillLineItemRecordLineReferenceDataType string +// BillLineItemDataType - Allowed name of the 'dataType'. +type BillLineItemDataType string const ( - BillLineItemRecordLineReferenceDataTypePurchaseOrders BillLineItemRecordLineReferenceDataType = "purchaseOrders" + BillLineItemDataTypePurchaseOrders BillLineItemDataType = "purchaseOrders" ) -func (e BillLineItemRecordLineReferenceDataType) ToPointer() *BillLineItemRecordLineReferenceDataType { +func (e BillLineItemDataType) ToPointer() *BillLineItemDataType { return &e } -func (e *BillLineItemRecordLineReferenceDataType) UnmarshalJSON(data []byte) error { +func (e *BillLineItemDataType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "purchaseOrders": - *e = BillLineItemRecordLineReferenceDataType(v) + *e = BillLineItemDataType(v) return nil default: - return fmt.Errorf("invalid value for BillLineItemRecordLineReferenceDataType: %v", v) + return fmt.Errorf("invalid value for BillLineItemDataType: %v", v) } } -// BillLineItemRecordLineReference - Reference to the purchase order line this line was generated from. -type BillLineItemRecordLineReference struct { +// RecordLineReference - Reference to the purchase order line this line was generated from. +type RecordLineReference struct { // Allowed name of the 'dataType'. - DataType *BillLineItemRecordLineReferenceDataType `json:"dataType,omitempty"` + DataType *BillLineItemDataType `json:"dataType,omitempty"` // 'id' of the underlying record. ID *string `json:"id,omitempty"` // Line number of the underlying record. LineNumber *string `json:"lineNumber,omitempty"` } -func (o *BillLineItemRecordLineReference) GetDataType() *BillLineItemRecordLineReferenceDataType { +func (o *RecordLineReference) GetDataType() *BillLineItemDataType { if o == nil { return nil } return o.DataType } -func (o *BillLineItemRecordLineReference) GetID() *string { +func (o *RecordLineReference) GetID() *string { if o == nil { return nil } return o.ID } -func (o *BillLineItemRecordLineReference) GetLineNumber() *string { +func (o *RecordLineReference) GetLineNumber() *string { if o == nil { return nil } @@ -81,9 +81,8 @@ type BillLineItem struct { // Reference to the item the line is linked to. ItemRef *ItemRef `json:"itemRef,omitempty"` // The bill line's number. - LineNumber *string `json:"lineNumber,omitempty"` - // Reference to the purchase order line this line was generated from. - PurchaseOrderLineRef *BillLineItemRecordLineReference `json:"purchaseOrderLineRef,omitempty"` + LineNumber *string `json:"lineNumber,omitempty"` + PurchaseOrderLineRef *RecordLineReference `json:"purchaseOrderLineRef,omitempty"` // Number of units of goods or services received. Quantity *decimal.Big `decimal:"number" json:"quantity"` // Amount of the line, inclusive of discounts but exclusive of tax. @@ -109,6 +108,8 @@ type BillLineItem struct { TrackingCategoryRefs []TrackingCategoryRef `json:"trackingCategoryRefs,omitempty"` // Price of each unit of goods or services. UnitAmount *decimal.Big `decimal:"number" json:"unitAmount"` + // The measurement which defines a unit for this item (e.g. 'kilogram', 'litre'). + UnitOfMeasurement *string `json:"unitOfMeasurement,omitempty"` } func (b BillLineItem) MarshalJSON() ([]byte, error) { @@ -171,7 +172,7 @@ func (o *BillLineItem) GetLineNumber() *string { return o.LineNumber } -func (o *BillLineItem) GetPurchaseOrderLineRef() *BillLineItemRecordLineReference { +func (o *BillLineItem) GetPurchaseOrderLineRef() *RecordLineReference { if o == nil { return nil } @@ -233,3 +234,10 @@ func (o *BillLineItem) GetUnitAmount() *decimal.Big { } return o.UnitAmount } + +func (o *BillLineItem) GetUnitOfMeasurement() *string { + if o == nil { + return nil + } + return o.UnitOfMeasurement +} diff --git a/sync-for-payables/pkg/models/shared/billpayment.go b/sync-for-payables/pkg/models/shared/billpayment.go old mode 100755 new mode 100644 index 4a1e303a1..789f7aabf --- a/sync-for-payables/pkg/models/shared/billpayment.go +++ b/sync-for-payables/pkg/models/shared/billpayment.go @@ -3,7 +3,7 @@ package shared import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "github.com/ericlagergren/decimal" ) diff --git a/sync-for-payables/pkg/models/shared/billpaymentline.go b/sync-for-payables/pkg/models/shared/billpaymentline.go old mode 100755 new mode 100644 index 17fef3cfe..c2a6f8886 --- a/sync-for-payables/pkg/models/shared/billpaymentline.go +++ b/sync-for-payables/pkg/models/shared/billpaymentline.go @@ -3,7 +3,7 @@ package shared import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "github.com/ericlagergren/decimal" ) diff --git a/sync-for-payables/pkg/models/shared/billpaymentlinelink.go b/sync-for-payables/pkg/models/shared/billpaymentlinelink.go old mode 100755 new mode 100644 index 6bfdc7426..2a4fd2fb7 --- a/sync-for-payables/pkg/models/shared/billpaymentlinelink.go +++ b/sync-for-payables/pkg/models/shared/billpaymentlinelink.go @@ -3,7 +3,7 @@ package shared import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "github.com/ericlagergren/decimal" ) diff --git a/sync-for-payables/pkg/models/shared/billpaymentlinelinktype.go b/sync-for-payables/pkg/models/shared/billpaymentlinelinktype.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/billpayments.go b/sync-for-payables/pkg/models/shared/billpayments.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/bills.go b/sync-for-payables/pkg/models/shared/bills.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/billstatus.go b/sync-for-payables/pkg/models/shared/billstatus.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/clientratelimitreachedwebhook.go b/sync-for-payables/pkg/models/shared/clientratelimitreachedwebhook.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/clientratelimitreachedwebhookdata.go b/sync-for-payables/pkg/models/shared/clientratelimitreachedwebhookdata.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/clientratelimitresetwebhook.go b/sync-for-payables/pkg/models/shared/clientratelimitresetwebhook.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/clientratelimitresetwebhookdata.go b/sync-for-payables/pkg/models/shared/clientratelimitresetwebhookdata.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/codatfile.go b/sync-for-payables/pkg/models/shared/codatfile.go new file mode 100644 index 000000000..c8b6ca1b2 --- /dev/null +++ b/sync-for-payables/pkg/models/shared/codatfile.go @@ -0,0 +1,22 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type CodatFile struct { + Content []byte `multipartForm:"content"` + FileName string `multipartForm:"name=fileName"` +} + +func (o *CodatFile) GetContent() []byte { + if o == nil { + return []byte{} + } + return o.Content +} + +func (o *CodatFile) GetFileName() string { + if o == nil { + return "" + } + return o.FileName +} diff --git a/sync-for-payables/pkg/models/shared/companies.go b/sync-for-payables/pkg/models/shared/companies.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/company.go b/sync-for-payables/pkg/models/shared/company.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/companyinfo.go b/sync-for-payables/pkg/models/shared/companyinfo.go old mode 100755 new mode 100644 index 1f1cb5a14..fb77ebe97 --- a/sync-for-payables/pkg/models/shared/companyinfo.go +++ b/sync-for-payables/pkg/models/shared/companyinfo.go @@ -2,13 +2,13 @@ package shared -// CompanyInfo - > View the coverage for company info in the Data coverage explorer. +// CompanyInfo - > View the coverage for company profile in the Data coverage explorer. // // Company info provides standard details about a linked company such as their address, phone number, and company registration. // // > **Company information or companies?** // > -// > Company information is standard information that is held in the accounting platform about a company. `Companies` is an endpoint that lists businesses in the Codat system that have linked and shared their data sources. +// > Company profile is standard information that is held in the accounting platform about a company. `Companies` is an endpoint that lists businesses in the Codat system that have linked and shared their data sources. type CompanyInfo struct { // Identifier or reference for the company in the accounting platform. AccountingPlatformRef *string `json:"accountingPlatformRef,omitempty"` diff --git a/sync-for-payables/pkg/models/shared/companyrequestbody.go b/sync-for-payables/pkg/models/shared/companyrequestbody.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/connection.go b/sync-for-payables/pkg/models/shared/connection.go old mode 100755 new mode 100644 index e3699e6d4..f7dc3c8ca --- a/sync-for-payables/pkg/models/shared/connection.go +++ b/sync-for-payables/pkg/models/shared/connection.go @@ -7,22 +7,22 @@ import ( "fmt" ) -// ConnectionSourceType - The type of platform of the connection. -type ConnectionSourceType string +// SourceType - The type of platform of the connection. +type SourceType string const ( - ConnectionSourceTypeAccounting ConnectionSourceType = "Accounting" - ConnectionSourceTypeBanking ConnectionSourceType = "Banking" - ConnectionSourceTypeCommerce ConnectionSourceType = "Commerce" - ConnectionSourceTypeOther ConnectionSourceType = "Other" - ConnectionSourceTypeUnknown ConnectionSourceType = "Unknown" + SourceTypeAccounting SourceType = "Accounting" + SourceTypeBanking SourceType = "Banking" + SourceTypeCommerce SourceType = "Commerce" + SourceTypeOther SourceType = "Other" + SourceTypeUnknown SourceType = "Unknown" ) -func (e ConnectionSourceType) ToPointer() *ConnectionSourceType { +func (e SourceType) ToPointer() *SourceType { return &e } -func (e *ConnectionSourceType) UnmarshalJSON(data []byte) error { +func (e *SourceType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -37,10 +37,10 @@ func (e *ConnectionSourceType) UnmarshalJSON(data []byte) error { case "Other": fallthrough case "Unknown": - *e = ConnectionSourceType(v) + *e = SourceType(v) return nil default: - return fmt.Errorf("invalid value for ConnectionSourceType: %v", v) + return fmt.Errorf("invalid value for SourceType: %v", v) } } @@ -111,7 +111,7 @@ type Connection struct { // A source-specific ID used to distinguish between different sources originating from the same data connection. In general, a data connection is a single data source. However, for TrueLayer, `sourceId` is associated with a specific bank and has a many-to-one relationship with the `integrationId`. SourceID string `json:"sourceId"` // The type of platform of the connection. - SourceType ConnectionSourceType `json:"sourceType"` + SourceType SourceType `json:"sourceType"` // The current authorization status of the data connection. Status DataConnectionStatus `json:"status"` } @@ -193,9 +193,9 @@ func (o *Connection) GetSourceID() string { return o.SourceID } -func (o *Connection) GetSourceType() ConnectionSourceType { +func (o *Connection) GetSourceType() SourceType { if o == nil { - return ConnectionSourceType("") + return SourceType("") } return o.SourceType } diff --git a/sync-for-payables/pkg/models/shared/connections.go b/sync-for-payables/pkg/models/shared/connections.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/createaccountresponse.go b/sync-for-payables/pkg/models/shared/createaccountresponse.go old mode 100755 new mode 100644 index dabec88dd..a178c66cf --- a/sync-for-payables/pkg/models/shared/createaccountresponse.go +++ b/sync-for-payables/pkg/models/shared/createaccountresponse.go @@ -36,11 +36,11 @@ type CreateAccountResponse struct { // Accounts are the categories a business uses to record accounting transactions. From the Accounts endpoints, you can retrieve a list of all accounts for a specified company. // // The categories for an account include: - // * Asset - // * Expense - // * Income - // * Liability - // * Equity. + // * Asset + // * Expense + // * Income + // * Liability + // * Equity. // // The same account may have a different category based on the integration it is used in. For example, a current account (known as checking in the US) should be categorized as `Asset.Current` for Xero, and `Asset.Bank.Checking` for QuickBooks Online. // diff --git a/sync-for-payables/pkg/models/shared/createbillcreditnoteresponse.go b/sync-for-payables/pkg/models/shared/createbillcreditnoteresponse.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/createbillpaymentresponse.go b/sync-for-payables/pkg/models/shared/createbillpaymentresponse.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/createbillresponse.go b/sync-for-payables/pkg/models/shared/createbillresponse.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/createjournalentryresponse.go b/sync-for-payables/pkg/models/shared/createjournalentryresponse.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/createjournalresponse.go b/sync-for-payables/pkg/models/shared/createjournalresponse.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/createsupplierresponse.go b/sync-for-payables/pkg/models/shared/createsupplierresponse.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/dataconnectionerror.go b/sync-for-payables/pkg/models/shared/dataconnectionerror.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/dataconnectionstatus.go b/sync-for-payables/pkg/models/shared/dataconnectionstatus.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/datastatus.go b/sync-for-payables/pkg/models/shared/datastatus.go old mode 100755 new mode 100644 index 40935e945..8fe5aa5fe --- a/sync-for-payables/pkg/models/shared/datastatus.go +++ b/sync-for-payables/pkg/models/shared/datastatus.go @@ -7,59 +7,60 @@ import ( "fmt" ) -// DataStatusDataTypes - Available Data types -type DataStatusDataTypes string +// DataTypes - Available Data types +type DataTypes string const ( - DataStatusDataTypesAccountTransactions DataStatusDataTypes = "accountTransactions" - DataStatusDataTypesBalanceSheet DataStatusDataTypes = "balanceSheet" - DataStatusDataTypesBankAccounts DataStatusDataTypes = "bankAccounts" - DataStatusDataTypesBankTransactions DataStatusDataTypes = "bankTransactions" - DataStatusDataTypesBillCreditNotes DataStatusDataTypes = "billCreditNotes" - DataStatusDataTypesBillPayments DataStatusDataTypes = "billPayments" - DataStatusDataTypesBills DataStatusDataTypes = "bills" - DataStatusDataTypesCashFlowStatement DataStatusDataTypes = "cashFlowStatement" - DataStatusDataTypesChartOfAccounts DataStatusDataTypes = "chartOfAccounts" - DataStatusDataTypesCompany DataStatusDataTypes = "company" - DataStatusDataTypesCreditNotes DataStatusDataTypes = "creditNotes" - DataStatusDataTypesCustomers DataStatusDataTypes = "customers" - DataStatusDataTypesDirectCosts DataStatusDataTypes = "directCosts" - DataStatusDataTypesDirectIncomes DataStatusDataTypes = "directIncomes" - DataStatusDataTypesInvoices DataStatusDataTypes = "invoices" - DataStatusDataTypesItems DataStatusDataTypes = "items" - DataStatusDataTypesJournalEntries DataStatusDataTypes = "journalEntries" - DataStatusDataTypesJournals DataStatusDataTypes = "journals" - DataStatusDataTypesPaymentMethods DataStatusDataTypes = "paymentMethods" - DataStatusDataTypesPayments DataStatusDataTypes = "payments" - DataStatusDataTypesProfitAndLoss DataStatusDataTypes = "profitAndLoss" - DataStatusDataTypesPurchaseOrders DataStatusDataTypes = "purchaseOrders" - DataStatusDataTypesSalesOrders DataStatusDataTypes = "salesOrders" - DataStatusDataTypesSuppliers DataStatusDataTypes = "suppliers" - DataStatusDataTypesTaxRates DataStatusDataTypes = "taxRates" - DataStatusDataTypesTrackingCategories DataStatusDataTypes = "trackingCategories" - DataStatusDataTypesTransfers DataStatusDataTypes = "transfers" - DataStatusDataTypesBankingAccountBalances DataStatusDataTypes = "banking-accountBalances" - DataStatusDataTypesBankingAccounts DataStatusDataTypes = "banking-accounts" - DataStatusDataTypesBankingTransactionCategories DataStatusDataTypes = "banking-transactionCategories" - DataStatusDataTypesBankingTransactions DataStatusDataTypes = "banking-transactions" - DataStatusDataTypesCommerceCompanyInfo DataStatusDataTypes = "commerce-companyInfo" - DataStatusDataTypesCommerceCustomers DataStatusDataTypes = "commerce-customers" - DataStatusDataTypesCommerceDisputes DataStatusDataTypes = "commerce-disputes" - DataStatusDataTypesCommerceLocations DataStatusDataTypes = "commerce-locations" - DataStatusDataTypesCommerceOrders DataStatusDataTypes = "commerce-orders" - DataStatusDataTypesCommercePaymentMethods DataStatusDataTypes = "commerce-paymentMethods" - DataStatusDataTypesCommercePayments DataStatusDataTypes = "commerce-payments" - DataStatusDataTypesCommerceProductCategories DataStatusDataTypes = "commerce-productCategories" - DataStatusDataTypesCommerceProducts DataStatusDataTypes = "commerce-products" - DataStatusDataTypesCommerceTaxComponents DataStatusDataTypes = "commerce-taxComponents" - DataStatusDataTypesCommerceTransactions DataStatusDataTypes = "commerce-transactions" + DataTypesAccountTransactions DataTypes = "accountTransactions" + DataTypesBalanceSheet DataTypes = "balanceSheet" + DataTypesBankAccounts DataTypes = "bankAccounts" + DataTypesBankTransactions DataTypes = "bankTransactions" + DataTypesBillCreditNotes DataTypes = "billCreditNotes" + DataTypesBillPayments DataTypes = "billPayments" + DataTypesBills DataTypes = "bills" + DataTypesCashFlowStatement DataTypes = "cashFlowStatement" + DataTypesChartOfAccounts DataTypes = "chartOfAccounts" + DataTypesCompany DataTypes = "company" + DataTypesCreditNotes DataTypes = "creditNotes" + DataTypesCustomers DataTypes = "customers" + DataTypesDirectCosts DataTypes = "directCosts" + DataTypesDirectIncomes DataTypes = "directIncomes" + DataTypesInvoices DataTypes = "invoices" + DataTypesItemReceipts DataTypes = "itemReceipts" + DataTypesItems DataTypes = "items" + DataTypesJournalEntries DataTypes = "journalEntries" + DataTypesJournals DataTypes = "journals" + DataTypesPaymentMethods DataTypes = "paymentMethods" + DataTypesPayments DataTypes = "payments" + DataTypesProfitAndLoss DataTypes = "profitAndLoss" + DataTypesPurchaseOrders DataTypes = "purchaseOrders" + DataTypesSalesOrders DataTypes = "salesOrders" + DataTypesSuppliers DataTypes = "suppliers" + DataTypesTaxRates DataTypes = "taxRates" + DataTypesTrackingCategories DataTypes = "trackingCategories" + DataTypesTransfers DataTypes = "transfers" + DataTypesBankingAccountBalances DataTypes = "banking-accountBalances" + DataTypesBankingAccounts DataTypes = "banking-accounts" + DataTypesBankingTransactionCategories DataTypes = "banking-transactionCategories" + DataTypesBankingTransactions DataTypes = "banking-transactions" + DataTypesCommerceCompanyInfo DataTypes = "commerce-companyInfo" + DataTypesCommerceCustomers DataTypes = "commerce-customers" + DataTypesCommerceDisputes DataTypes = "commerce-disputes" + DataTypesCommerceLocations DataTypes = "commerce-locations" + DataTypesCommerceOrders DataTypes = "commerce-orders" + DataTypesCommercePaymentMethods DataTypes = "commerce-paymentMethods" + DataTypesCommercePayments DataTypes = "commerce-payments" + DataTypesCommerceProductCategories DataTypes = "commerce-productCategories" + DataTypesCommerceProducts DataTypes = "commerce-products" + DataTypesCommerceTaxComponents DataTypes = "commerce-taxComponents" + DataTypesCommerceTransactions DataTypes = "commerce-transactions" ) -func (e DataStatusDataTypes) ToPointer() *DataStatusDataTypes { +func (e DataTypes) ToPointer() *DataTypes { return &e } -func (e *DataStatusDataTypes) UnmarshalJSON(data []byte) error { +func (e *DataTypes) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -95,6 +96,8 @@ func (e *DataStatusDataTypes) UnmarshalJSON(data []byte) error { fallthrough case "invoices": fallthrough + case "itemReceipts": + fallthrough case "items": fallthrough case "journalEntries": @@ -148,10 +151,10 @@ func (e *DataStatusDataTypes) UnmarshalJSON(data []byte) error { case "commerce-taxComponents": fallthrough case "commerce-transactions": - *e = DataStatusDataTypes(v) + *e = DataTypes(v) return nil default: - return fmt.Errorf("invalid value for DataStatusDataTypes: %v", v) + return fmt.Errorf("invalid value for DataTypes: %v", v) } } @@ -160,7 +163,7 @@ type DataStatus struct { // The current status of the dataset in Codat's cache. CurrentStatus string `json:"currentStatus"` // Available Data types - DataType DataStatusDataTypes `json:"dataType"` + DataType DataTypes `json:"dataType"` // In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: // // ``` @@ -194,9 +197,9 @@ func (o *DataStatus) GetCurrentStatus() string { return o.CurrentStatus } -func (o *DataStatus) GetDataType() DataStatusDataTypes { +func (o *DataStatus) GetDataType() DataTypes { if o == nil { - return DataStatusDataTypes("") + return DataTypes("") } return o.DataType } diff --git a/sync-for-payables/pkg/models/shared/datatype.go b/sync-for-payables/pkg/models/shared/datatype.go old mode 100755 new mode 100644 index 2e39a8092..33d80c2cb --- a/sync-for-payables/pkg/models/shared/datatype.go +++ b/sync-for-payables/pkg/models/shared/datatype.go @@ -26,6 +26,7 @@ const ( DataTypeDirectCosts DataType = "directCosts" DataTypeDirectIncomes DataType = "directIncomes" DataTypeInvoices DataType = "invoices" + DataTypeItemReceipts DataType = "itemReceipts" DataTypeItems DataType = "items" DataTypeJournalEntries DataType = "journalEntries" DataTypeJournals DataType = "journals" @@ -95,6 +96,8 @@ func (e *DataType) UnmarshalJSON(data []byte) error { fallthrough case "invoices": fallthrough + case "itemReceipts": + fallthrough case "items": fallthrough case "journalEntries": diff --git a/sync-for-payables/pkg/models/shared/halref.go b/sync-for-payables/pkg/models/shared/halref.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/itemref.go b/sync-for-payables/pkg/models/shared/itemref.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/items.go b/sync-for-payables/pkg/models/shared/items.go old mode 100755 new mode 100644 index 19d0b101f..73c853c2b --- a/sync-for-payables/pkg/models/shared/items.go +++ b/sync-for-payables/pkg/models/shared/items.go @@ -3,11 +3,11 @@ package shared import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "github.com/ericlagergren/decimal" ) -type ItemsAllocation struct { +type Allocation struct { // In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: // // ``` @@ -66,39 +66,39 @@ type ItemsAllocation struct { TotalAmount *decimal.Big `decimal:"number" json:"totalAmount,omitempty"` } -func (i ItemsAllocation) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(i, "", false) +func (a Allocation) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) } -func (i *ItemsAllocation) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &i, "", false, false); err != nil { +func (a *Allocation) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { return err } return nil } -func (o *ItemsAllocation) GetAllocatedOnDate() *string { +func (o *Allocation) GetAllocatedOnDate() *string { if o == nil { return nil } return o.AllocatedOnDate } -func (o *ItemsAllocation) GetCurrency() *string { +func (o *Allocation) GetCurrency() *string { if o == nil { return nil } return o.Currency } -func (o *ItemsAllocation) GetCurrencyRate() *decimal.Big { +func (o *Allocation) GetCurrencyRate() *decimal.Big { if o == nil { return nil } return o.CurrencyRate } -func (o *ItemsAllocation) GetTotalAmount() *decimal.Big { +func (o *Allocation) GetTotalAmount() *decimal.Big { if o == nil { return nil } @@ -106,13 +106,13 @@ func (o *ItemsAllocation) GetTotalAmount() *decimal.Big { } type Items struct { - Allocation ItemsAllocation `json:"allocation"` + Allocation Allocation `json:"allocation"` Payment PaymentAllocationPayment `json:"payment"` } -func (o *Items) GetAllocation() ItemsAllocation { +func (o *Items) GetAllocation() Allocation { if o == nil { - return ItemsAllocation{} + return Allocation{} } return o.Allocation } diff --git a/sync-for-payables/pkg/models/shared/journal.go b/sync-for-payables/pkg/models/shared/journal.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/journalentry.go b/sync-for-payables/pkg/models/shared/journalentry.go old mode 100755 new mode 100644 index d88d54d12..f36493005 --- a/sync-for-payables/pkg/models/shared/journalentry.go +++ b/sync-for-payables/pkg/models/shared/journalentry.go @@ -2,24 +2,24 @@ package shared -// JournalEntryRecordReference - Links the current record to the underlying record or data type that created it. +// RecordReference - Links the current record to the underlying record or data type that created it. // // For example, if a journal entry is generated based on an invoice, this property allows you to connect the journal entry to the underlying invoice in our data model. -type JournalEntryRecordReference struct { +type RecordReference struct { // Allowed name of the 'dataType'. DataType *string `json:"dataType,omitempty"` // 'id' of the underlying record or data type. ID *string `json:"id,omitempty"` } -func (o *JournalEntryRecordReference) GetDataType() *string { +func (o *RecordReference) GetDataType() *string { if o == nil { return nil } return o.DataType } -func (o *JournalEntryRecordReference) GetID() *string { +func (o *RecordReference) GetID() *string { if o == nil { return nil } @@ -102,8 +102,8 @@ type JournalEntry struct { // Links the current record to the underlying record or data type that created it. // // For example, if a journal entry is generated based on an invoice, this property allows you to connect the journal entry to the underlying invoice in our data model. - RecordRef *JournalEntryRecordReference `json:"recordRef,omitempty"` - SourceModifiedDate *string `json:"sourceModifiedDate,omitempty"` + RecordRef *RecordReference `json:"recordRef,omitempty"` + SourceModifiedDate *string `json:"sourceModifiedDate,omitempty"` // Supplemental data is additional data you can include in our standard data types. // // It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. @@ -186,7 +186,7 @@ func (o *JournalEntry) GetPostedOn() *string { return o.PostedOn } -func (o *JournalEntry) GetRecordRef() *JournalEntryRecordReference { +func (o *JournalEntry) GetRecordRef() *RecordReference { if o == nil { return nil } diff --git a/sync-for-payables/pkg/models/shared/journalline.go b/sync-for-payables/pkg/models/shared/journalline.go old mode 100755 new mode 100644 index 109d5021a..9429bf232 --- a/sync-for-payables/pkg/models/shared/journalline.go +++ b/sync-for-payables/pkg/models/shared/journalline.go @@ -3,7 +3,7 @@ package shared import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "github.com/ericlagergren/decimal" ) diff --git a/sync-for-payables/pkg/models/shared/journalprototype.go b/sync-for-payables/pkg/models/shared/journalprototype.go new file mode 100644 index 000000000..9b15f0c7a --- /dev/null +++ b/sync-for-payables/pkg/models/shared/journalprototype.go @@ -0,0 +1,89 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +type JournalPrototype struct { + // In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: + // + // ``` + // 2020-10-08T22:40:50Z + // 2021-01-01T00:00:00 + // ``` + // + // + // + // When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: + // + // - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` + // - Unqualified local time: `2021-11-15T01:00:00` + // - UTC time offsets: `2021-11-15T01:00:00-05:00` + // + // > Time zones + // > + // > Not all dates from Codat will contain information about time zones. + // > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. + CreatedOn *string `json:"createdOn,omitempty"` + // If the journal has child journals, this value is true. If it doesn’t, it is false. + HasChildren *bool `json:"hasChildren,omitempty"` + // Native journal number or code. + JournalCode *string `json:"journalCode,omitempty"` + // Journal name. + // The maximum length for a journal name is 256 characters. All characters above that number will be truncated. + Name *string `json:"name,omitempty"` + // Parent journal ID. + // If the journal is a parent journal, this value is not present. + ParentID *string `json:"parentId,omitempty"` + // Current journal status. + Status *JournalStatus `json:"status,omitempty"` + // The type of the journal. + Type *string `json:"type,omitempty"` +} + +func (o *JournalPrototype) GetCreatedOn() *string { + if o == nil { + return nil + } + return o.CreatedOn +} + +func (o *JournalPrototype) GetHasChildren() *bool { + if o == nil { + return nil + } + return o.HasChildren +} + +func (o *JournalPrototype) GetJournalCode() *string { + if o == nil { + return nil + } + return o.JournalCode +} + +func (o *JournalPrototype) GetName() *string { + if o == nil { + return nil + } + return o.Name +} + +func (o *JournalPrototype) GetParentID() *string { + if o == nil { + return nil + } + return o.ParentID +} + +func (o *JournalPrototype) GetStatus() *JournalStatus { + if o == nil { + return nil + } + return o.Status +} + +func (o *JournalPrototype) GetType() *string { + if o == nil { + return nil + } + return o.Type +} diff --git a/sync-for-payables/pkg/models/shared/journalref.go b/sync-for-payables/pkg/models/shared/journalref.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/journals.go b/sync-for-payables/pkg/models/shared/journals.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/journalstatus.go b/sync-for-payables/pkg/models/shared/journalstatus.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/links.go b/sync-for-payables/pkg/models/shared/links.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/metadata.go b/sync-for-payables/pkg/models/shared/metadata.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/paymentallocationpayment.go b/sync-for-payables/pkg/models/shared/paymentallocationpayment.go old mode 100755 new mode 100644 index 6bd73f1c1..700118fd6 --- a/sync-for-payables/pkg/models/shared/paymentallocationpayment.go +++ b/sync-for-payables/pkg/models/shared/paymentallocationpayment.go @@ -3,7 +3,7 @@ package shared import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "github.com/ericlagergren/decimal" ) diff --git a/sync-for-payables/pkg/models/shared/paymentmethod.go b/sync-for-payables/pkg/models/shared/paymentmethod.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/paymentmethodref.go b/sync-for-payables/pkg/models/shared/paymentmethodref.go old mode 100755 new mode 100644 index a1694da7f..639b0bf49 --- a/sync-for-payables/pkg/models/shared/paymentmethodref.go +++ b/sync-for-payables/pkg/models/shared/paymentmethodref.go @@ -2,7 +2,7 @@ package shared -// PaymentMethodRef - The payment method the record is linked to in the accounting or commerce platform. +// PaymentMethodRef - The Payment Method to which the payment is linked in the accounting platform. type PaymentMethodRef struct { // The unique identifier of the location being referenced. ID string `json:"id"` diff --git a/sync-for-payables/pkg/models/shared/paymentmethods.go b/sync-for-payables/pkg/models/shared/paymentmethods.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/paymentmethodtype.go b/sync-for-payables/pkg/models/shared/paymentmethodtype.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/phonenumber.go b/sync-for-payables/pkg/models/shared/phonenumber.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/phonenumbertype.go b/sync-for-payables/pkg/models/shared/phonenumbertype.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/pulloperation.go b/sync-for-payables/pkg/models/shared/pulloperation.go old mode 100755 new mode 100644 index 279286d97..44b956d89 --- a/sync-for-payables/pkg/models/shared/pulloperation.go +++ b/sync-for-payables/pkg/models/shared/pulloperation.go @@ -125,13 +125,13 @@ type PullOperation struct { Completed *string `json:"completed,omitempty"` // Unique identifier of the connection associated to this pull operation. ConnectionID string `json:"connectionId"` - // Available Data types - DataType DataType `json:"dataType"` + // The data type you are requesting in a pull operation. + DataType string `json:"dataType"` // A message about a transient or persistent error. ErrorMessage *string `json:"errorMessage,omitempty"` // Unique identifier of the pull operation. ID string `json:"id"` - // `True` if the pull operation completed successfully. + // `True` if the pull operation is completed successfully. The `isCompleted` property is not queryable. To filter failed pull operations, query by `status!=Complete&&status!=NotSupported` instead. IsCompleted bool `json:"isCompleted"` // `True` if the pull operation entered an error state. IsErrored bool `json:"isErrored"` @@ -159,6 +159,8 @@ type PullOperation struct { Requested string `json:"requested"` // The current status of the pull operation. Status PullOperationStatus `json:"status"` + // Additional information about the dataset status. + StatusDescription *string `json:"statusDescription,omitempty"` } func (o *PullOperation) GetCompanyID() string { @@ -182,9 +184,9 @@ func (o *PullOperation) GetConnectionID() string { return o.ConnectionID } -func (o *PullOperation) GetDataType() DataType { +func (o *PullOperation) GetDataType() string { if o == nil { - return DataType("") + return "" } return o.DataType } @@ -237,3 +239,10 @@ func (o *PullOperation) GetStatus() PullOperationStatus { } return o.Status } + +func (o *PullOperation) GetStatusDescription() *string { + if o == nil { + return nil + } + return o.StatusDescription +} diff --git a/sync-for-payables/pkg/models/shared/pulloperations.go b/sync-for-payables/pkg/models/shared/pulloperations.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/pushchangetype.go b/sync-for-payables/pkg/models/shared/pushchangetype.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/pushfieldvalidation.go b/sync-for-payables/pkg/models/shared/pushfieldvalidation.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/pushoperation.go b/sync-for-payables/pkg/models/shared/pushoperation.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/pushoperationchange.go b/sync-for-payables/pkg/models/shared/pushoperationchange.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/pushoperationref.go b/sync-for-payables/pkg/models/shared/pushoperationref.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/pushoperations.go b/sync-for-payables/pkg/models/shared/pushoperations.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/pushoperationstatus.go b/sync-for-payables/pkg/models/shared/pushoperationstatus.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/pushoption.go b/sync-for-payables/pkg/models/shared/pushoption.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/pushoptionchoice.go b/sync-for-payables/pkg/models/shared/pushoptionchoice.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/pushoptionproperty.go b/sync-for-payables/pkg/models/shared/pushoptionproperty.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/pushoptiontype.go b/sync-for-payables/pkg/models/shared/pushoptiontype.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/pushvalidationinfo.go b/sync-for-payables/pkg/models/shared/pushvalidationinfo.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/recordref.go b/sync-for-payables/pkg/models/shared/recordref.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/schemadatatype.go b/sync-for-payables/pkg/models/shared/schemadatatype.go new file mode 100644 index 000000000..19e3d610a --- /dev/null +++ b/sync-for-payables/pkg/models/shared/schemadatatype.go @@ -0,0 +1,159 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +import ( + "encoding/json" + "fmt" +) + +// SchemaDataType - Available Data types +type SchemaDataType string + +const ( + SchemaDataTypeAccountTransactions SchemaDataType = "accountTransactions" + SchemaDataTypeBalanceSheet SchemaDataType = "balanceSheet" + SchemaDataTypeBankAccounts SchemaDataType = "bankAccounts" + SchemaDataTypeBankTransactions SchemaDataType = "bankTransactions" + SchemaDataTypeBillCreditNotes SchemaDataType = "billCreditNotes" + SchemaDataTypeBillPayments SchemaDataType = "billPayments" + SchemaDataTypeBills SchemaDataType = "bills" + SchemaDataTypeCashFlowStatement SchemaDataType = "cashFlowStatement" + SchemaDataTypeChartOfAccounts SchemaDataType = "chartOfAccounts" + SchemaDataTypeCompany SchemaDataType = "company" + SchemaDataTypeCreditNotes SchemaDataType = "creditNotes" + SchemaDataTypeCustomers SchemaDataType = "customers" + SchemaDataTypeDirectCosts SchemaDataType = "directCosts" + SchemaDataTypeDirectIncomes SchemaDataType = "directIncomes" + SchemaDataTypeInvoices SchemaDataType = "invoices" + SchemaDataTypeItemReceipts SchemaDataType = "itemReceipts" + SchemaDataTypeItems SchemaDataType = "items" + SchemaDataTypeJournalEntries SchemaDataType = "journalEntries" + SchemaDataTypeJournals SchemaDataType = "journals" + SchemaDataTypePaymentMethods SchemaDataType = "paymentMethods" + SchemaDataTypePayments SchemaDataType = "payments" + SchemaDataTypeProfitAndLoss SchemaDataType = "profitAndLoss" + SchemaDataTypePurchaseOrders SchemaDataType = "purchaseOrders" + SchemaDataTypeSalesOrders SchemaDataType = "salesOrders" + SchemaDataTypeSuppliers SchemaDataType = "suppliers" + SchemaDataTypeTaxRates SchemaDataType = "taxRates" + SchemaDataTypeTrackingCategories SchemaDataType = "trackingCategories" + SchemaDataTypeTransfers SchemaDataType = "transfers" + SchemaDataTypeBankingAccountBalances SchemaDataType = "banking-accountBalances" + SchemaDataTypeBankingAccounts SchemaDataType = "banking-accounts" + SchemaDataTypeBankingTransactionCategories SchemaDataType = "banking-transactionCategories" + SchemaDataTypeBankingTransactions SchemaDataType = "banking-transactions" + SchemaDataTypeCommerceCompanyInfo SchemaDataType = "commerce-companyInfo" + SchemaDataTypeCommerceCustomers SchemaDataType = "commerce-customers" + SchemaDataTypeCommerceDisputes SchemaDataType = "commerce-disputes" + SchemaDataTypeCommerceLocations SchemaDataType = "commerce-locations" + SchemaDataTypeCommerceOrders SchemaDataType = "commerce-orders" + SchemaDataTypeCommercePaymentMethods SchemaDataType = "commerce-paymentMethods" + SchemaDataTypeCommercePayments SchemaDataType = "commerce-payments" + SchemaDataTypeCommerceProductCategories SchemaDataType = "commerce-productCategories" + SchemaDataTypeCommerceProducts SchemaDataType = "commerce-products" + SchemaDataTypeCommerceTaxComponents SchemaDataType = "commerce-taxComponents" + SchemaDataTypeCommerceTransactions SchemaDataType = "commerce-transactions" +) + +func (e SchemaDataType) ToPointer() *SchemaDataType { + return &e +} + +func (e *SchemaDataType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "accountTransactions": + fallthrough + case "balanceSheet": + fallthrough + case "bankAccounts": + fallthrough + case "bankTransactions": + fallthrough + case "billCreditNotes": + fallthrough + case "billPayments": + fallthrough + case "bills": + fallthrough + case "cashFlowStatement": + fallthrough + case "chartOfAccounts": + fallthrough + case "company": + fallthrough + case "creditNotes": + fallthrough + case "customers": + fallthrough + case "directCosts": + fallthrough + case "directIncomes": + fallthrough + case "invoices": + fallthrough + case "itemReceipts": + fallthrough + case "items": + fallthrough + case "journalEntries": + fallthrough + case "journals": + fallthrough + case "paymentMethods": + fallthrough + case "payments": + fallthrough + case "profitAndLoss": + fallthrough + case "purchaseOrders": + fallthrough + case "salesOrders": + fallthrough + case "suppliers": + fallthrough + case "taxRates": + fallthrough + case "trackingCategories": + fallthrough + case "transfers": + fallthrough + case "banking-accountBalances": + fallthrough + case "banking-accounts": + fallthrough + case "banking-transactionCategories": + fallthrough + case "banking-transactions": + fallthrough + case "commerce-companyInfo": + fallthrough + case "commerce-customers": + fallthrough + case "commerce-disputes": + fallthrough + case "commerce-locations": + fallthrough + case "commerce-orders": + fallthrough + case "commerce-paymentMethods": + fallthrough + case "commerce-payments": + fallthrough + case "commerce-productCategories": + fallthrough + case "commerce-products": + fallthrough + case "commerce-taxComponents": + fallthrough + case "commerce-transactions": + *e = SchemaDataType(v) + return nil + default: + return fmt.Errorf("invalid value for SchemaDataType: %v", v) + } +} diff --git a/sync-for-payables/pkg/models/shared/security.go b/sync-for-payables/pkg/models/shared/security.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/status.go b/sync-for-payables/pkg/models/shared/status.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/supplementaldata.go b/sync-for-payables/pkg/models/shared/supplementaldata.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/supplier.go b/sync-for-payables/pkg/models/shared/supplier.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/supplierref.go b/sync-for-payables/pkg/models/shared/supplierref.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/suppliers.go b/sync-for-payables/pkg/models/shared/suppliers.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/supplierstatus.go b/sync-for-payables/pkg/models/shared/supplierstatus.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/taxrate.go b/sync-for-payables/pkg/models/shared/taxrate.go old mode 100755 new mode 100644 index ae26e2383..d8c0dd856 --- a/sync-for-payables/pkg/models/shared/taxrate.go +++ b/sync-for-payables/pkg/models/shared/taxrate.go @@ -3,7 +3,7 @@ package shared import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "github.com/ericlagergren/decimal" ) @@ -50,8 +50,8 @@ type TaxRate struct { // It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. SupplementalData *SupplementalData `json:"supplementalData,omitempty"` // Total (not compounded) sum of the components of a tax rate. - TotalTaxRate *decimal.Big `decimal:"number" json:"totalTaxRate,omitempty"` - ValidDatatypeLinks []ValidDatatypeLinksitems `json:"validDatatypeLinks,omitempty"` + TotalTaxRate *decimal.Big `decimal:"number" json:"totalTaxRate,omitempty"` + ValidDatatypeLinks []ValidDatatypeLinkItems `json:"validDatatypeLinks,omitempty"` } func (t TaxRate) MarshalJSON() ([]byte, error) { @@ -142,7 +142,7 @@ func (o *TaxRate) GetTotalTaxRate() *decimal.Big { return o.TotalTaxRate } -func (o *TaxRate) GetValidDatatypeLinks() []ValidDatatypeLinksitems { +func (o *TaxRate) GetValidDatatypeLinks() []ValidDatatypeLinkItems { if o == nil { return nil } diff --git a/sync-for-payables/pkg/models/shared/taxratecomponent.go b/sync-for-payables/pkg/models/shared/taxratecomponent.go old mode 100755 new mode 100644 index 11ef2ef30..59fb687b7 --- a/sync-for-payables/pkg/models/shared/taxratecomponent.go +++ b/sync-for-payables/pkg/models/shared/taxratecomponent.go @@ -3,7 +3,7 @@ package shared import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "github.com/ericlagergren/decimal" ) diff --git a/sync-for-payables/pkg/models/shared/taxrateref.go b/sync-for-payables/pkg/models/shared/taxrateref.go old mode 100755 new mode 100644 index 08550adce..127893f1b --- a/sync-for-payables/pkg/models/shared/taxrateref.go +++ b/sync-for-payables/pkg/models/shared/taxrateref.go @@ -3,7 +3,7 @@ package shared import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "github.com/ericlagergren/decimal" ) diff --git a/sync-for-payables/pkg/models/shared/taxrates.go b/sync-for-payables/pkg/models/shared/taxrates.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/taxratestatus.go b/sync-for-payables/pkg/models/shared/taxratestatus.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/tracking.go b/sync-for-payables/pkg/models/shared/tracking.go old mode 100755 new mode 100644 index 00c3b416b..4b0dd03e6 --- a/sync-for-payables/pkg/models/shared/tracking.go +++ b/sync-for-payables/pkg/models/shared/tracking.go @@ -2,42 +2,42 @@ package shared -type TrackingCustomerRef struct { +type CustomerRef struct { // `customerName` from the Customer data type CompanyName *string `json:"companyName,omitempty"` // `id` from the Customers data type ID string `json:"id"` } -func (o *TrackingCustomerRef) GetCompanyName() *string { +func (o *CustomerRef) GetCompanyName() *string { if o == nil { return nil } return o.CompanyName } -func (o *TrackingCustomerRef) GetID() string { +func (o *CustomerRef) GetID() string { if o == nil { return "" } return o.ID } -type TrackingProjectReference struct { +type AccountingProjectReference struct { // Unique identifier to the project reference. ID string `json:"id"` // The project's name. Name *string `json:"name,omitempty"` } -func (o *TrackingProjectReference) GetID() string { +func (o *AccountingProjectReference) GetID() string { if o == nil { return "" } return o.ID } -func (o *TrackingProjectReference) GetName() *string { +func (o *AccountingProjectReference) GetName() *string { if o == nil { return nil } @@ -47,12 +47,12 @@ func (o *TrackingProjectReference) GetName() *string { // Tracking - Categories, and a project and customer, against which the item is tracked. type Tracking struct { CategoryRefs []TrackingCategoryRef `json:"categoryRefs"` - CustomerRef *TrackingCustomerRef `json:"customerRef,omitempty"` + CustomerRef *CustomerRef `json:"customerRef,omitempty"` // Defines if the invoice or credit note is billed/rebilled to a project or customer. IsBilledTo BilledToType `json:"isBilledTo"` // Defines if the invoice or credit note is billed/rebilled to a project or customer. - IsRebilledTo BilledToType `json:"isRebilledTo"` - ProjectRef *TrackingProjectReference `json:"projectRef,omitempty"` + IsRebilledTo BilledToType `json:"isRebilledTo"` + ProjectRef *AccountingProjectReference `json:"projectRef,omitempty"` } func (o *Tracking) GetCategoryRefs() []TrackingCategoryRef { @@ -62,7 +62,7 @@ func (o *Tracking) GetCategoryRefs() []TrackingCategoryRef { return o.CategoryRefs } -func (o *Tracking) GetCustomerRef() *TrackingCustomerRef { +func (o *Tracking) GetCustomerRef() *CustomerRef { if o == nil { return nil } @@ -83,7 +83,7 @@ func (o *Tracking) GetIsRebilledTo() BilledToType { return o.IsRebilledTo } -func (o *Tracking) GetProjectRef() *TrackingProjectReference { +func (o *Tracking) GetProjectRef() *AccountingProjectReference { if o == nil { return nil } diff --git a/sync-for-payables/pkg/models/shared/trackingcategories.go b/sync-for-payables/pkg/models/shared/trackingcategories.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/trackingcategory.go b/sync-for-payables/pkg/models/shared/trackingcategory.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/trackingcategoryref.go b/sync-for-payables/pkg/models/shared/trackingcategoryref.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/trackingcategorytree.go b/sync-for-payables/pkg/models/shared/trackingcategorytree.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/updatebillcreditnoteresponse.go b/sync-for-payables/pkg/models/shared/updatebillcreditnoteresponse.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/updatebillresponse.go b/sync-for-payables/pkg/models/shared/updatebillresponse.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/updatesupplierresponse.go b/sync-for-payables/pkg/models/shared/updatesupplierresponse.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/validation.go b/sync-for-payables/pkg/models/shared/validation.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/validationitem.go b/sync-for-payables/pkg/models/shared/validationitem.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/shared/validdatatypelinksitems.go b/sync-for-payables/pkg/models/shared/validdatatypelinkitems.go old mode 100755 new mode 100644 similarity index 84% rename from sync-for-payables/pkg/models/shared/validdatatypelinksitems.go rename to sync-for-payables/pkg/models/shared/validdatatypelinkitems.go index cc146fbc6..d59540f28 --- a/sync-for-payables/pkg/models/shared/validdatatypelinksitems.go +++ b/sync-for-payables/pkg/models/shared/validdatatypelinkitems.go @@ -2,7 +2,7 @@ package shared -// ValidDatatypeLinksitems - When querying Codat's data model, some data types return `validDatatypeLinks` metadata in the JSON response. This indicates where that object can be used as a reference—a _valid link_—when creating or updating other data. +// ValidDatatypeLinkItems - When querying Codat's data model, some data types return `validDatatypeLinks` metadata in the JSON response. This indicates where that object can be used as a reference—a _valid link_—when creating or updating other data. // // For example, `validDatatypeLinks` might indicate the following references: // @@ -42,21 +42,21 @@ package shared // Codat currently supports `validDatatypeLinks` for some data types on our Xero, QuickBooks Online, QuickBooks Desktop, Exact (NL), and Sage Business Cloud integrations. // // If you'd like us to extend support to more data types or integrations, suggest or vote for this on our Product Roadmap. -type ValidDatatypeLinksitems struct { +type ValidDatatypeLinkItems struct { // Supported `dataTypes` that the record can be linked to. Links []string `json:"links,omitempty"` // The property from the account that can be linked. Property *string `json:"property,omitempty"` } -func (o *ValidDatatypeLinksitems) GetLinks() []string { +func (o *ValidDatatypeLinkItems) GetLinks() []string { if o == nil { return nil } return o.Links } -func (o *ValidDatatypeLinksitems) GetProperty() *string { +func (o *ValidDatatypeLinkItems) GetProperty() *string { if o == nil { return nil } diff --git a/sync-for-payables/pkg/models/shared/weblink.go b/sync-for-payables/pkg/models/shared/weblink.go old mode 100755 new mode 100644 index 15abb5266..990eec6cb --- a/sync-for-payables/pkg/models/shared/weblink.go +++ b/sync-for-payables/pkg/models/shared/weblink.go @@ -7,20 +7,20 @@ import ( "fmt" ) -// WebLinkType - The type of the weblink. -type WebLinkType string +// Type - The type of the weblink. +type Type string const ( - WebLinkTypeWebsite WebLinkType = "Website" - WebLinkTypeSocial WebLinkType = "Social" - WebLinkTypeUnknown WebLinkType = "Unknown" + TypeWebsite Type = "Website" + TypeSocial Type = "Social" + TypeUnknown Type = "Unknown" ) -func (e WebLinkType) ToPointer() *WebLinkType { +func (e Type) ToPointer() *Type { return &e } -func (e *WebLinkType) UnmarshalJSON(data []byte) error { +func (e *Type) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -31,22 +31,22 @@ func (e *WebLinkType) UnmarshalJSON(data []byte) error { case "Social": fallthrough case "Unknown": - *e = WebLinkType(v) + *e = Type(v) return nil default: - return fmt.Errorf("invalid value for WebLinkType: %v", v) + return fmt.Errorf("invalid value for Type: %v", v) } } // WebLink - Weblink associated with the company. type WebLink struct { // The type of the weblink. - Type *WebLinkType `json:"type,omitempty"` + Type *Type `json:"type,omitempty"` // The full URL for the weblink. URL *string `json:"url,omitempty"` } -func (o *WebLink) GetType() *WebLinkType { +func (o *WebLink) GetType() *Type { if o == nil { return nil } diff --git a/sync-for-payables/pkg/models/shared/withholdingtaxitems.go b/sync-for-payables/pkg/models/shared/withholdingtaxitems.go old mode 100755 new mode 100644 index 0e0dee7ce..e6d5d5f4f --- a/sync-for-payables/pkg/models/shared/withholdingtaxitems.go +++ b/sync-for-payables/pkg/models/shared/withholdingtaxitems.go @@ -3,36 +3,36 @@ package shared import ( - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "github.com/ericlagergren/decimal" ) -type WithholdingTaxitems struct { +type WithholdingTaxItems struct { // Amount of tax withheld. Amount *decimal.Big `decimal:"number" json:"amount"` // Name assigned to withheld tax. Name string `json:"name"` } -func (w WithholdingTaxitems) MarshalJSON() ([]byte, error) { +func (w WithholdingTaxItems) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(w, "", false) } -func (w *WithholdingTaxitems) UnmarshalJSON(data []byte) error { +func (w *WithholdingTaxItems) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &w, "", false, false); err != nil { return err } return nil } -func (o *WithholdingTaxitems) GetAmount() *decimal.Big { +func (o *WithholdingTaxItems) GetAmount() *decimal.Big { if o == nil { return new(decimal.Big).SetFloat64(0.0) } return o.Amount } -func (o *WithholdingTaxitems) GetName() string { +func (o *WithholdingTaxItems) GetName() string { if o == nil { return "" } diff --git a/sync-for-payables/pkg/models/webhooks/clientratelimitreached.go b/sync-for-payables/pkg/models/webhooks/clientratelimitreached.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/models/webhooks/clientratelimitreset.go b/sync-for-payables/pkg/models/webhooks/clientratelimitreset.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/types/bigint.go b/sync-for-payables/pkg/types/bigint.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/types/date.go b/sync-for-payables/pkg/types/date.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/types/datetime.go b/sync-for-payables/pkg/types/datetime.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/types/decimal.go b/sync-for-payables/pkg/types/decimal.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/types/pointers.go b/sync-for-payables/pkg/types/pointers.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/utils/contenttype.go b/sync-for-payables/pkg/utils/contenttype.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/utils/form.go b/sync-for-payables/pkg/utils/form.go old mode 100755 new mode 100644 index 0e78ed3a6..9d0d80489 --- a/sync-for-payables/pkg/utils/form.go +++ b/sync-for-payables/pkg/utils/form.go @@ -12,7 +12,7 @@ import ( "github.com/ericlagergren/decimal" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/types" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/types" ) func populateForm(paramName string, explode bool, objType reflect.Type, objValue reflect.Value, delimiter string, getFieldName func(reflect.StructField) string) url.Values { diff --git a/sync-for-payables/pkg/utils/headers.go b/sync-for-payables/pkg/utils/headers.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/utils/json.go b/sync-for-payables/pkg/utils/json.go old mode 100755 new mode 100644 index 3271e2152..0730e421e --- a/sync-for-payables/pkg/utils/json.go +++ b/sync-for-payables/pkg/utils/json.go @@ -12,7 +12,7 @@ import ( "time" "unsafe" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/types" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/types" "github.com/ericlagergren/decimal" ) @@ -50,7 +50,7 @@ func MarshalJSON(v interface{}, tag reflect.StructTag, topLevel bool) ([]byte, e } } - if isNil(field.Type, fieldVal) { + if isNil(field.Type, fieldVal) && field.Tag.Get("const") == "" { if omitEmpty { continue } @@ -66,7 +66,11 @@ func MarshalJSON(v interface{}, tag reflect.StructTag, topLevel bool) ([]byte, e } if additionalProperties == "true" { - if field.Type.Kind() != reflect.Map { + if isNil(field.Type, fieldVal) { + continue + } + fieldVal := trueReflectValue(fieldVal) + if fieldVal.Type().Kind() != reflect.Map { return nil, fmt.Errorf("additionalProperties must be a map") } @@ -202,20 +206,33 @@ func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool } if additionalPropertiesField != nil && additionalPropertiesValue != nil { - if additionalPropertiesValue.Kind() != reflect.Map { + typeOfMap := additionalPropertiesField.Type + if additionalPropertiesValue.Type().Kind() == reflect.Interface { + typeOfMap = reflect.TypeOf(map[string]interface{}{}) + } else if additionalPropertiesValue.Type().Kind() != reflect.Map { return fmt.Errorf("additionalProperties must be a map") } - additionalPropertiesValue.Set(reflect.MakeMap(additionalPropertiesField.Type)) + mapValue := reflect.MakeMap(typeOfMap) for key, value := range unmarhsaled { - val := reflect.New(additionalPropertiesField.Type.Elem()) + val := reflect.New(typeOfMap.Elem()) if err := unmarshalValue(value, val, additionalPropertiesField.Tag, disallowUnknownFields); err != nil { return err } - additionalPropertiesValue.SetMapIndex(reflect.ValueOf(key), val.Elem()) + if val.Elem().Type().String() == typeOfMap.Elem().String() { + mapValue.SetMapIndex(reflect.ValueOf(key), val.Elem()) + } else { + mapValue.SetMapIndex(reflect.ValueOf(key), trueReflectValue(val)) + } + + } + if additionalPropertiesValue.Type().Kind() == reflect.Interface { + additionalPropertiesValue.Set(mapValue) + } else { + additionalPropertiesValue.Set(mapValue) } } } diff --git a/sync-for-payables/pkg/utils/pathparams.go b/sync-for-payables/pkg/utils/pathparams.go old mode 100755 new mode 100644 index 59b07c9be..9ffe6834a --- a/sync-for-payables/pkg/utils/pathparams.go +++ b/sync-for-payables/pkg/utils/pathparams.go @@ -13,7 +13,7 @@ import ( "github.com/ericlagergren/decimal" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/types" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/types" ) func GenerateURL(ctx context.Context, serverURL, path string, pathParams interface{}, globals map[string]map[string]map[string]interface{}) (string, error) { diff --git a/sync-for-payables/pkg/utils/queryparams.go b/sync-for-payables/pkg/utils/queryparams.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/utils/requestbody.go b/sync-for-payables/pkg/utils/requestbody.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/utils/retries.go b/sync-for-payables/pkg/utils/retries.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/utils/security.go b/sync-for-payables/pkg/utils/security.go old mode 100755 new mode 100644 diff --git a/sync-for-payables/pkg/utils/utils.go b/sync-for-payables/pkg/utils/utils.go old mode 100755 new mode 100644 index 4ef632ae6..b4618bb35 --- a/sync-for-payables/pkg/utils/utils.go +++ b/sync-for-payables/pkg/utils/utils.go @@ -81,7 +81,6 @@ func parseStructTag(tagKey string, field reflect.StructField) map[string]string parts = append(parts, "true") case 2: // key=value option - break default: // invalid option continue diff --git a/sync-for-payables/pushoperations.go b/sync-for-payables/pushoperations.go old mode 100755 new mode 100644 index c5c9bb4b7..dc29f1e2e --- a/sync-for-payables/pushoperations.go +++ b/sync-for-payables/pushoperations.go @@ -6,28 +6,28 @@ import ( "bytes" "context" "fmt" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/sdkerrors" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "io" "net/http" ) -// pushOperations - Access create, update and delete operations made to an SMB's data connection. -type pushOperations struct { +// PushOperations - Access create, update and delete operations made to an SMB's data connection. +type PushOperations struct { sdkConfiguration sdkConfiguration } -func newPushOperations(sdkConfig sdkConfiguration) *pushOperations { - return &pushOperations{ +func newPushOperations(sdkConfig sdkConfiguration) *PushOperations { + return &PushOperations{ sdkConfiguration: sdkConfig, } } // Get push operation // Retrieve push operation. -func (s *pushOperations) Get(ctx context.Context, request operations.GetPushOperationRequest, opts ...operations.Option) (*operations.GetPushOperationResponse, error) { +func (s *PushOperations) Get(ctx context.Context, request operations.GetPushOperationRequest, opts ...operations.Option) (*operations.GetPushOperationResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -118,20 +118,31 @@ func (s *pushOperations) Get(ctx context.Context, request operations.GetPushOper } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -139,7 +150,7 @@ func (s *pushOperations) Get(ctx context.Context, request operations.GetPushOper // List push operations // List push operation records. -func (s *pushOperations) List(ctx context.Context, request operations.ListPushOperationsRequest, opts ...operations.Option) (*operations.ListPushOperationsResponse, error) { +func (s *PushOperations) List(ctx context.Context, request operations.ListPushOperationsRequest, opts ...operations.Option) (*operations.ListPushOperationsResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -236,20 +247,31 @@ func (s *pushOperations) List(ctx context.Context, request operations.ListPushOp fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/sync-for-payables/suppliers.go b/sync-for-payables/suppliers.go old mode 100755 new mode 100644 index 22c5e7f4e..bab06048b --- a/sync-for-payables/suppliers.go +++ b/sync-for-payables/suppliers.go @@ -6,21 +6,21 @@ import ( "bytes" "context" "fmt" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/sdkerrors" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "io" "net/http" ) -// suppliers - Suppliers -type suppliers struct { +// Suppliers +type Suppliers struct { sdkConfiguration sdkConfiguration } -func newSuppliers(sdkConfig sdkConfiguration) *suppliers { - return &suppliers{ +func newSuppliers(sdkConfig sdkConfiguration) *Suppliers { + return &Suppliers{ sdkConfiguration: sdkConfig, } } @@ -35,7 +35,7 @@ func newSuppliers(sdkConfig sdkConfiguration) *suppliers { // Required data may vary by integration. To see what data to post, first call [Get create/update supplier model](https://docs.codat.io/sync-for-payables-api#/operations/get-create-update-suppliers-model). // // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=suppliers) for integrations that support creating a supplier. -func (s *suppliers) Create(ctx context.Context, request operations.CreateSupplierRequest, opts ...operations.Option) (*operations.CreateSupplierResponse, error) { +func (s *Suppliers) Create(ctx context.Context, request operations.CreateSupplierRequest, opts ...operations.Option) (*operations.CreateSupplierResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -139,20 +139,31 @@ func (s *suppliers) Create(ctx context.Context, request operations.CreateSupplie fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -166,7 +177,7 @@ func (s *suppliers) Create(ctx context.Context, request operations.CreateSupplie // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=suppliers) for integrations that support getting a specific supplier. // // Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data). -func (s *suppliers) Get(ctx context.Context, request operations.GetSupplierRequest, opts ...operations.Option) (*operations.GetSupplierResponse, error) { +func (s *Suppliers) Get(ctx context.Context, request operations.GetSupplierRequest, opts ...operations.Option) (*operations.GetSupplierResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -257,22 +268,33 @@ func (s *suppliers) Get(ctx context.Context, request operations.GetSupplierReque } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 409: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -288,7 +310,7 @@ func (s *suppliers) Get(ctx context.Context, request operations.GetSupplierReque // See the *response examples* for integration-specific indicative models. // // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=suppliers) for integrations that support creating and updating a supplier. -func (s *suppliers) GetCreateUpdateModel(ctx context.Context, request operations.GetCreateUpdateSupplierModelRequest, opts ...operations.Option) (*operations.GetCreateUpdateSupplierModelResponse, error) { +func (s *Suppliers) GetCreateUpdateModel(ctx context.Context, request operations.GetCreateUpdateSupplierModelRequest, opts ...operations.Option) (*operations.GetCreateUpdateSupplierModelResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -379,20 +401,31 @@ func (s *suppliers) GetCreateUpdateModel(ctx context.Context, request operations } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -404,7 +437,7 @@ func (s *suppliers) GetCreateUpdateModel(ctx context.Context, request operations // [Suppliers](https://docs.codat.io/sync-for-payables-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. // // Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data). -func (s *suppliers) List(ctx context.Context, request operations.ListSuppliersRequest, opts ...operations.Option) (*operations.ListSuppliersResponse, error) { +func (s *Suppliers) List(ctx context.Context, request operations.ListSuppliersRequest, opts ...operations.Option) (*operations.ListSuppliersResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -501,20 +534,33 @@ func (s *suppliers) List(ctx context.Context, request operations.ListSuppliersRe fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 409: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -530,7 +576,7 @@ func (s *suppliers) List(ctx context.Context, request operations.ListSuppliersRe // Required data may vary by integration. To see what data to post, first call [Get create/update supplier model](https://docs.codat.io/sync-for-payables-api#/operations/get-create-update-suppliers-model). // // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=suppliers) for integrations that support creating a supplier. -func (s *suppliers) Update(ctx context.Context, request operations.UpdateSupplierRequest, opts ...operations.Option) (*operations.UpdateSupplierResponse, error) { +func (s *Suppliers) Update(ctx context.Context, request operations.UpdateSupplierRequest, opts ...operations.Option) (*operations.UpdateSupplierResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -634,20 +680,31 @@ func (s *suppliers) Update(ctx context.Context, request operations.UpdateSupplie fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/sync-for-payables/taxrates.go b/sync-for-payables/taxrates.go old mode 100755 new mode 100644 index fa076c35c..c55c38511 --- a/sync-for-payables/taxrates.go +++ b/sync-for-payables/taxrates.go @@ -6,21 +6,21 @@ import ( "bytes" "context" "fmt" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/sdkerrors" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "io" "net/http" ) -// taxRates - Tax rates -type taxRates struct { +// TaxRates - Tax rates +type TaxRates struct { sdkConfiguration sdkConfiguration } -func newTaxRates(sdkConfig sdkConfiguration) *taxRates { - return &taxRates{ +func newTaxRates(sdkConfig sdkConfiguration) *TaxRates { + return &TaxRates{ sdkConfiguration: sdkConfig, } } @@ -33,7 +33,7 @@ func newTaxRates(sdkConfig sdkConfiguration) *taxRates { // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=taxRates) for integrations that support getting a specific tax rate. // // Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data). -func (s *taxRates) Get(ctx context.Context, request operations.GetTaxRateRequest, opts ...operations.Option) (*operations.GetTaxRateResponse, error) { +func (s *TaxRates) Get(ctx context.Context, request operations.GetTaxRateRequest, opts ...operations.Option) (*operations.GetTaxRateResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -124,22 +124,33 @@ func (s *taxRates) Get(ctx context.Context, request operations.GetTaxRateRequest } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 409: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -151,7 +162,7 @@ func (s *taxRates) Get(ctx context.Context, request operations.GetTaxRateRequest // [Tax rates](https://docs.codat.io/sync-for-payables-api#/schemas/TaxRate) are a set of taxes and associated rates within the SMB's accounting package. // // Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data). -func (s *taxRates) List(ctx context.Context, request operations.ListTaxRatesRequest, opts ...operations.Option) (*operations.ListTaxRatesResponse, error) { +func (s *TaxRates) List(ctx context.Context, request operations.ListTaxRatesRequest, opts ...operations.Option) (*operations.ListTaxRatesResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -248,20 +259,33 @@ func (s *taxRates) List(ctx context.Context, request operations.ListTaxRatesRequ fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 409: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil diff --git a/sync-for-payables/trackingcategories.go b/sync-for-payables/trackingcategories.go old mode 100755 new mode 100644 index 9036f1de8..1dec432d2 --- a/sync-for-payables/trackingcategories.go +++ b/sync-for-payables/trackingcategories.go @@ -6,21 +6,21 @@ import ( "bytes" "context" "fmt" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared" - "github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/operations" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/sdkerrors" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/models/shared" + "github.com/codatio/client-sdk-go/sync-for-payables/v3/pkg/utils" "io" "net/http" ) -// trackingCategories - Tracking categories -type trackingCategories struct { +// TrackingCategories - Tracking categories +type TrackingCategories struct { sdkConfiguration sdkConfiguration } -func newTrackingCategories(sdkConfig sdkConfiguration) *trackingCategories { - return &trackingCategories{ +func newTrackingCategories(sdkConfig sdkConfiguration) *TrackingCategories { + return &TrackingCategories{ sdkConfiguration: sdkConfig, } } @@ -33,7 +33,7 @@ func newTrackingCategories(sdkConfig sdkConfiguration) *trackingCategories { // Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=trackingCategories) for integrations that support getting a specific tracking category. // // Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data). -func (s *trackingCategories) Get(ctx context.Context, request operations.GetTrackingCategoryRequest, opts ...operations.Option) (*operations.GetTrackingCategoryResponse, error) { +func (s *TrackingCategories) Get(ctx context.Context, request operations.GetTrackingCategoryRequest, opts ...operations.Option) (*operations.GetTrackingCategoryResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -124,22 +124,33 @@ func (s *trackingCategories) Get(ctx context.Context, request operations.GetTrac } case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 409: fallthrough case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil @@ -151,7 +162,7 @@ func (s *trackingCategories) Get(ctx context.Context, request operations.GetTrac // [Tracking categories](https://docs.codat.io/sync-for-payables-api#/schemas/TrackingCategory) are used to monitor cost centres and control budgets that sit outside the standard set of accounts. // // Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data). -func (s *trackingCategories) List(ctx context.Context, request operations.ListTrackingCategoriesRequest, opts ...operations.Option) (*operations.ListTrackingCategoriesResponse, error) { +func (s *TrackingCategories) List(ctx context.Context, request operations.ListTrackingCategoriesRequest, opts ...operations.Option) (*operations.ListTrackingCategoriesResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -248,20 +259,33 @@ func (s *trackingCategories) List(ctx context.Context, request operations.ListTr fallthrough case httpRes.StatusCode == 401: fallthrough + case httpRes.StatusCode == 402: + fallthrough + case httpRes.StatusCode == 403: + fallthrough case httpRes.StatusCode == 404: fallthrough case httpRes.StatusCode == 409: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + case httpRes.StatusCode == 500: + fallthrough + case httpRes.StatusCode == 503: switch { case utils.MatchContentType(contentType, `application/json`): - var out shared.ErrorMessage + var out sdkerrors.ErrorMessage if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - - res.ErrorMessage = &out + return nil, &out default: return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) } return res, nil