Documentation ¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- type APIClient
- type APIKey
- type APIResponse
- type AddressBlock
- type AddressBlockApiService
- func (a *AddressBlockApiService) AddAddressBlock(ctx context.Context, addressBlocks AddressBlockInput) (AddressBlock, *http.Response, error)
- func (a *AddressBlockApiService) FindAddressBlockById(ctx context.Context, id int64) (AddressBlock, *http.Response, error)
- func (a *AddressBlockApiService) FindAddressBlocks(ctx context.Context, localVarOptionals *FindAddressBlocksOpts) ([]AddressBlock, *http.Response, error)
- type AddressBlockInput
- type BankAccount
- type BankAccountApiService
- func (a *BankAccountApiService) AddBankAccount(ctx context.Context, bankAccount BankAccountInput) (BankAccount, *http.Response, error)
- func (a *BankAccountApiService) FindBankAccountById(ctx context.Context, id int64) (BankAccount, *http.Response, error)
- func (a *BankAccountApiService) FindBankAccounts(ctx context.Context, localVarOptionals *FindBankAccountsOpts) ([]BankAccount, *http.Response, error)
- type BankAccountInput
- type BankStatement
- type BankStatementApiService
- func (a *BankStatementApiService) AddBankStatement(ctx context.Context, bankStatements BankStatementInput) (BankStatement, *http.Response, error)
- func (a *BankStatementApiService) FindBankStatementById(ctx context.Context, id int64) (BankStatement, *http.Response, error)
- func (a *BankStatementApiService) FindBankStatements(ctx context.Context, localVarOptionals *FindBankStatementsOpts) ([]BankStatement, *http.Response, error)
- type BankStatementData
- type BankStatementDataInput
- type BankStatementInput
- type BasicAuth
- type BeanieTask
- type BeanieTaskApiService
- func (a *BeanieTaskApiService) AddBeanieTask(ctx context.Context, beanieTasks BeanieTaskInput) (BeanieTask, *http.Response, error)
- func (a *BeanieTaskApiService) FindBeanieTaskById(ctx context.Context, id int64) (BeanieTask, *http.Response, error)
- func (a *BeanieTaskApiService) FindBeanieTasks(ctx context.Context, localVarOptionals *FindBeanieTasksOpts) ([]BeanieTask, *http.Response, error)
- type BeanieTaskInput
- type BillOfMaterial
- type BillOfMaterialInput
- type BillOfMaterialsApiService
- func (a *BillOfMaterialsApiService) AddBillOfMaterial(ctx context.Context, billOfMaterials BillOfMaterialInput) (BillOfMaterial, *http.Response, error)
- func (a *BillOfMaterialsApiService) FindBillOfMaterialById(ctx context.Context, id int64) (BillOfMaterial, *http.Response, error)
- func (a *BillOfMaterialsApiService) FindBillOfMaterials(ctx context.Context, localVarOptionals *FindBillOfMaterialsOpts) ([]BillOfMaterial, *http.Response, error)
- type Billable
- type BillableApiService
- func (a *BillableApiService) AddBillable(ctx context.Context, billables BillableInput) (Billable, *http.Response, error)
- func (a *BillableApiService) FindBillableById(ctx context.Context, id int64) (Billable, *http.Response, error)
- func (a *BillableApiService) FindBillables(ctx context.Context, localVarOptionals *FindBillablesOpts) ([]Billable, *http.Response, error)
- type BillableInput
- type BomItem
- type BomItemInput
- type Company
- type CompanyApiService
- type Configuration
- type DeliveryNote
- type DeliveryNoteApiService
- func (a *DeliveryNoteApiService) AddDeliveryNote(ctx context.Context, deliveryNotes DeliveryNoteInput) (DeliveryNote, *http.Response, error)
- func (a *DeliveryNoteApiService) FindDeliveryNoteById(ctx context.Context, id int64) (DeliveryNote, *http.Response, error)
- func (a *DeliveryNoteApiService) FindDeliveryNotes(ctx context.Context, localVarOptionals *FindDeliveryNotesOpts) ([]DeliveryNote, *http.Response, error)
- type DeliveryNoteInput
- type DeliveryNoteItem
- type DeliveryNoteItemInput
- type Document
- type DocumentApiService
- func (a *DocumentApiService) AddDocument(ctx context.Context, documents DocumentInput) (Document, *http.Response, error)
- func (a *DocumentApiService) FindDocumentById(ctx context.Context, id int64) (Document, *http.Response, error)
- func (a *DocumentApiService) FindDocuments(ctx context.Context, localVarOptionals *FindDocumentsOpts) ([]Document, *http.Response, error)
- type DocumentInput
- type ErrorModel
- type FindAddressBlocksOpts
- type FindBankAccountsOpts
- type FindBankStatementsOpts
- type FindBeanieTasksOpts
- type FindBillOfMaterialsOpts
- type FindBillablesOpts
- type FindDeliveryNotesOpts
- type FindDocumentsOpts
- type FindFixedAssetsOpts
- type FindImagesOpts
- type FindJournalsOpts
- type FindNominalAccountCategoriesOpts
- type FindNominalAccountsOpts
- type FindPartnerAddressesOpts
- type FindPartnersOpts
- type FindProductCategoriesOpts
- type FindProductPricesOpts
- type FindProductVariantsOpts
- type FindProductionOrdersOpts
- type FindProductsOpts
- type FindPurchaseInvoicesOpts
- type FindPurchaseOrdersOpts
- type FindSalesInvoicesOpts
- type FindSalesOrderOpts
- type FindShippingCentresOpts
- type FindStockAdjustmentsOpts
- type FindStockCategoriesOpts
- type FindStockItemsOpts
- type FindStockLocationsOpts
- type FindStockSuppliersOpts
- type FindVatRecordsOpts
- type FindVatReturnsOpts
- type FindWorkCentreGroupsOpts
- type FindWorkCentresOpts
- type FiscalYear
- type FixedAsset
- type FixedAssetApiService
- func (a *FixedAssetApiService) AddFixedAsset(ctx context.Context, fixedAssets FixedAssetInput) (FixedAsset, *http.Response, error)
- func (a *FixedAssetApiService) FindFixedAssetById(ctx context.Context, id int64) (FixedAsset, *http.Response, error)
- func (a *FixedAssetApiService) FindFixedAssets(ctx context.Context, localVarOptionals *FindFixedAssetsOpts) ([]FixedAsset, *http.Response, error)
- type FixedAssetInput
- type GenericSwaggerError
- type GoodsReceivedNote
- type GoodsReceivedNoteInput
- type Image
- type ImageApiService
- func (a *ImageApiService) AddImage(ctx context.Context, images ImageInput) (Image, *http.Response, error)
- func (a *ImageApiService) FindImageById(ctx context.Context, id int64) (Image, *http.Response, error)
- func (a *ImageApiService) FindImages(ctx context.Context, localVarOptionals *FindImagesOpts) ([]Image, *http.Response, error)
- type ImageInput
- type Journal
- type JournalApiService
- func (a *JournalApiService) AddJournal(ctx context.Context, journals JournalInput) (Journal, *http.Response, error)
- func (a *JournalApiService) FindJournalById(ctx context.Context, id int64) (Journal, *http.Response, error)
- func (a *JournalApiService) FindJournals(ctx context.Context, localVarOptionals *FindJournalsOpts) ([]Journal, *http.Response, error)
- type JournalInput
- type JournalItem
- type JournalItemInput
- type NominalAccount
- type NominalAccountApiService
- func (a *NominalAccountApiService) AddNominalAccount(ctx context.Context, nominalAccounts NominalAccountInput) (NominalAccount, *http.Response, error)
- func (a *NominalAccountApiService) FindNominalAccountById(ctx context.Context, id int64) (NominalAccount, *http.Response, error)
- func (a *NominalAccountApiService) FindNominalAccounts(ctx context.Context, localVarOptionals *FindNominalAccountsOpts) ([]NominalAccount, *http.Response, error)
- type NominalAccountCategory
- type NominalAccountCategoryApiService
- func (a *NominalAccountCategoryApiService) AddNominalAccountCategory(ctx context.Context, nominalAccountCategories NominalAccountCategoryInput) (NominalAccountCategory, *http.Response, error)
- func (a *NominalAccountCategoryApiService) FindNominalAccountCategories(ctx context.Context, localVarOptionals *FindNominalAccountCategoriesOpts) ([]NominalAccountCategory, *http.Response, error)
- func (a *NominalAccountCategoryApiService) FindNominalAccountCategoryById(ctx context.Context, id int64) (NominalAccountCategory, *http.Response, error)
- type NominalAccountCategoryInput
- type NominalAccountInput
- type Partner
- type PartnerAddress
- type PartnerAddressApiService
- func (a *PartnerAddressApiService) AddPartnerAddress(ctx context.Context, partnerAddresses PartnerAddressInput) (PartnerAddress, *http.Response, error)
- func (a *PartnerAddressApiService) FindPartnerAddressById(ctx context.Context, id int64) (PartnerAddress, *http.Response, error)
- func (a *PartnerAddressApiService) FindPartnerAddresses(ctx context.Context, localVarOptionals *FindPartnerAddressesOpts) ([]PartnerAddress, *http.Response, error)
- type PartnerAddressInput
- type PartnerApiService
- func (a *PartnerApiService) AddPartner(ctx context.Context, partners PartnerInput) (Partner, *http.Response, error)
- func (a *PartnerApiService) FindPartnerById(ctx context.Context, id int64) (Customer, *http.Response, error)
- func (a *PartnerApiService) FindPartners(ctx context.Context, localVarOptionals *FindPartnersOpts) ([]Partner, *http.Response, error)
- type PartnerInput
- type PartnerNote
- type PayablesLedger
- type Product
- type ProductApiService
- func (a *ProductApiService) AddProduct(ctx context.Context, products ProductInput) (Product, *http.Response, error)
- func (a *ProductApiService) FindProductById(ctx context.Context, id int64) (Product, *http.Response, error)
- func (a *ProductApiService) FindProducts(ctx context.Context, localVarOptionals *FindProductsOpts) ([]Product, *http.Response, error)
- type ProductCategory
- type ProductCategoryApiService
- func (a *ProductCategoryApiService) AddProductCategory(ctx context.Context, productCategories ProductCategoryInput) (ProductCategory, *http.Response, error)
- func (a *ProductCategoryApiService) FindProductCategories(ctx context.Context, localVarOptionals *FindProductCategoriesOpts) ([]ProductCategory, *http.Response, error)
- func (a *ProductCategoryApiService) FindProductCategoryById(ctx context.Context, id int64) (ProductCategory, *http.Response, error)
- type ProductCategoryInput
- type ProductInput
- type ProductPrice
- type ProductPriceApiService
- func (a *ProductPriceApiService) AddProductPrice(ctx context.Context, productPrices ProductPriceInput) (ProductPrice, *http.Response, error)
- func (a *ProductPriceApiService) FindProductPriceById(ctx context.Context, id int64) (ProductPrice, *http.Response, error)
- func (a *ProductPriceApiService) FindProductPrices(ctx context.Context, localVarOptionals *FindProductPricesOpts) ([]ProductPrice, *http.Response, error)
- type ProductPriceInput
- type ProductVariant
- type ProductVariantApiService
- func (a *ProductVariantApiService) AddProductVariant(ctx context.Context, productVariants ProductVariantInput) (ProductVariant, *http.Response, error)
- func (a *ProductVariantApiService) FindProductVariantById(ctx context.Context, id int64) (ProductVariant, *http.Response, error)
- func (a *ProductVariantApiService) FindProductVariants(ctx context.Context, localVarOptionals *FindProductVariantsOpts) ([]ProductVariant, *http.Response, error)
- type ProductVariantInput
- type ProductionOrder
- type ProductionOrderApiService
- func (a *ProductionOrderApiService) AddProductionOrder(ctx context.Context, productionOrders ProductionOrderInput) (ProductionOrder, *http.Response, error)
- func (a *ProductionOrderApiService) FindProductionOrderById(ctx context.Context, id int64) (ProductionOrder, *http.Response, error)
- func (a *ProductionOrderApiService) FindProductionOrders(ctx context.Context, localVarOptionals *FindProductionOrdersOpts) ([]ProductionOrder, *http.Response, error)
- type ProductionOrderInput
- type ProductionOrderLog
- type PurchaseInvoice
- type PurchaseInvoiceApiService
- func (a *PurchaseInvoiceApiService) AddPurchaseInvoice(ctx context.Context, purchaseInvoices PurchaseInvoiceInput) (PurchaseInvoice, *http.Response, error)
- func (a *PurchaseInvoiceApiService) FindPurchaseInvoiceById(ctx context.Context, id int64) (PurchaseInvoice, *http.Response, error)
- func (a *PurchaseInvoiceApiService) FindPurchaseInvoices(ctx context.Context, localVarOptionals *FindPurchaseInvoicesOpts) ([]PurchaseInvoice, *http.Response, error)
- type PurchaseInvoiceInput
- type PurchaseOrder
- type PurchaseOrderApiService
- func (a *PurchaseOrderApiService) AddPurchaseOrder(ctx context.Context, purchaseOrders PurchaseOrderInput) (PurchaseOrder, *http.Response, error)
- func (a *PurchaseOrderApiService) FindPurchaseOrderById(ctx context.Context, id int64) (PurchaseOrder, *http.Response, error)
- func (a *PurchaseOrderApiService) FindPurchaseOrders(ctx context.Context, localVarOptionals *FindPurchaseOrdersOpts) ([]PurchaseOrder, *http.Response, error)
- type PurchaseOrderInput
- type PurchaseOrderItem
- type PurchaseOrderItemInput
- type ReceivablesLedger
- type SalesInvoice
- type SalesInvoiceApiService
- func (a *SalesInvoiceApiService) AddSalesInvoice(ctx context.Context, salesInvoices SalesInvoiceInput) (SalesInvoice, *http.Response, error)
- func (a *SalesInvoiceApiService) FindSalesInvoiceById(ctx context.Context, id int64) (SalesInvoice, *http.Response, error)
- func (a *SalesInvoiceApiService) FindSalesInvoices(ctx context.Context, localVarOptionals *FindSalesInvoicesOpts) ([]SalesInvoice, *http.Response, error)
- type SalesInvoiceInput
- type SalesInvoiceItem
- type SalesInvoiceItemInput
- type SalesOrder
- type SalesOrderApiService
- func (a *SalesOrderApiService) AddSalesOrder(ctx context.Context, salesOrders SalesOrderInput) (SalesOrder, *http.Response, error)
- func (a *SalesOrderApiService) FindSalesOrder(ctx context.Context, localVarOptionals *FindSalesOrderOpts) ([]SalesOrder, *http.Response, error)
- func (a *SalesOrderApiService) FindSalesOrderById(ctx context.Context, id int64) (SalesOrder, *http.Response, error)
- type SalesOrderInput
- type SalesOrderItem
- type SalesOrderItemInput
- type ShippingCentre
- type ShippingCentreApiService
- func (a *ShippingCentreApiService) AddShippingCentre(ctx context.Context, shippingCentres ShippingCentreInput) (ShippingCentre, *http.Response, error)
- func (a *ShippingCentreApiService) FindShippingCentreById(ctx context.Context, id int64) (ShippingCentre, *http.Response, error)
- func (a *ShippingCentreApiService) FindShippingCentres(ctx context.Context, localVarOptionals *FindShippingCentresOpts) ([]ShippingCentre, *http.Response, error)
- type ShippingCentreInput
- type StockAdjustment
- type StockAdjustmentApiService
- func (a *StockAdjustmentApiService) AddStockAdjustment(ctx context.Context, stockAdjustments StockAdjustmentInput) (StockAdjustment, *http.Response, error)
- func (a *StockAdjustmentApiService) FindStockAdjustmentById(ctx context.Context, id int64) (StockAdjustment, *http.Response, error)
- func (a *StockAdjustmentApiService) FindStockAdjustments(ctx context.Context, localVarOptionals *FindStockAdjustmentsOpts) ([]StockAdjustment, *http.Response, error)
- type StockAdjustmentInput
- type StockCategory
- type StockCategoryApiService
- func (a *StockCategoryApiService) AddStockCategory(ctx context.Context, stockCategories StockCategoryInput) (StockCategory, *http.Response, error)
- func (a *StockCategoryApiService) FindStockCategories(ctx context.Context, localVarOptionals *FindStockCategoriesOpts) ([]StockCategory, *http.Response, error)
- func (a *StockCategoryApiService) FindStockCategoryById(ctx context.Context, id int64) (StockCategory, *http.Response, error)
- type StockCategoryInput
- type StockItem
- type StockItemApiService
- func (a *StockItemApiService) AddStockItem(ctx context.Context, stockItems StockItemInput) (StockItem, *http.Response, error)
- func (a *StockItemApiService) FindStockItemById(ctx context.Context, id int64) (StockItem, *http.Response, error)
- func (a *StockItemApiService) FindStockItems(ctx context.Context, localVarOptionals *FindStockItemsOpts) ([]StockItem, *http.Response, error)
- type StockItemInput
- type StockLocation
- type StockLocationApiService
- func (a *StockLocationApiService) AddStockLocation(ctx context.Context, stockLocations StockLocationInput) (StockLocation, *http.Response, error)
- func (a *StockLocationApiService) FindStockLocationById(ctx context.Context, id int64) (StockLocation, *http.Response, error)
- func (a *StockLocationApiService) FindStockLocations(ctx context.Context, localVarOptionals *FindStockLocationsOpts) ([]StockLocation, *http.Response, error)
- type StockLocationInput
- type StockSupplier
- type StockSupplierApiService
- func (a *StockSupplierApiService) AddStockSupplier(ctx context.Context, stockSuppliers StockSupplierInput) (StockSupplier, *http.Response, error)
- func (a *StockSupplierApiService) FindStockSupplierById(ctx context.Context, id int64) (StockSupplier, *http.Response, error)
- func (a *StockSupplierApiService) FindStockSuppliers(ctx context.Context, localVarOptionals *FindStockSuppliersOpts) ([]StockSupplier, *http.Response, error)
- type StockSupplierInput
- type VatRecord
- type VatRecordApiService
- func (a *VatRecordApiService) AddVatRecord(ctx context.Context, vatRecords VatRecordInput) (VatRecord, *http.Response, error)
- func (a *VatRecordApiService) FindVatRecordById(ctx context.Context, id int64) (VatRecord, *http.Response, error)
- func (a *VatRecordApiService) FindVatRecords(ctx context.Context, localVarOptionals *FindVatRecordsOpts) ([]VatRecord, *http.Response, error)
- type VatRecordInput
- type VatReturn
- type VatReturnApiService
- func (a *VatReturnApiService) AddVatReturn(ctx context.Context, vatReturns VatReturnInput) (VatReturn, *http.Response, error)
- func (a *VatReturnApiService) FindVatReturnById(ctx context.Context, id int64) (VatReturn, *http.Response, error)
- func (a *VatReturnApiService) FindVatReturns(ctx context.Context, localVarOptionals *FindVatReturnsOpts) ([]VatReturn, *http.Response, error)
- type VatReturnInput
- type WorkCentre
- type WorkCentreApiService
- type WorkCentreGroup
- type WorkCentreGroupApiService
Constants ¶
This section is empty.
Variables ¶
var ( // ContextOAuth2 takes a oauth2.TokenSource as authentication for the request. ContextOAuth2 = contextKey("token") // ContextBasicAuth takes BasicAuth as authentication for the request. ContextBasicAuth = contextKey("basic") // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = contextKey("accesstoken") // ContextAPIKey takes an APIKey as authentication for the request ContextAPIKey = contextKey("apikey") )
Functions ¶
Types ¶
type APIClient ¶
type APIClient struct { AddressBlockApi *AddressBlockApiService BankAccountApi *BankAccountApiService BankStatementApi *BankStatementApiService BeanieTaskApi *BeanieTaskApiService BillOfMaterialsApi *BillOfMaterialsApiService BillableApi *BillableApiService CompanyApi *CompanyApiService DeliveryNoteApi *DeliveryNoteApiService DocumentApi *DocumentApiService FixedAssetApi *FixedAssetApiService ImageApi *ImageApiService JournalApi *JournalApiService NominalAccountApi *NominalAccountApiService NominalAccountCategoryApi *NominalAccountCategoryApiService PartnerApi *PartnerApiService PartnerAddressApi *PartnerAddressApiService ProductApi *ProductApiService ProductCategoryApi *ProductCategoryApiService ProductPriceApi *ProductPriceApiService ProductVariantApi *ProductVariantApiService ProductionOrderApi *ProductionOrderApiService PurchaseInvoiceApi *PurchaseInvoiceApiService PurchaseOrderApi *PurchaseOrderApiService SalesInvoiceApi *SalesInvoiceApiService SalesOrderApi *SalesOrderApiService ShippingCentreApi *ShippingCentreApiService StockAdjustmentApi *StockAdjustmentApiService StockCategoryApi *StockCategoryApiService StockItemApi *StockItemApiService StockLocationApi *StockLocationApiService StockSupplierApi *StockSupplierApiService VatRecordApi *VatRecordApiService VatReturnApi *VatReturnApiService WorkCentreApi *WorkCentreApiService WorkCentreGroupApi *WorkCentreGroupApiService // contains filtered or unexported fields }
APIClient manages communication with the Beanie ERP API API v0.8 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) ChangeBasePath ¶
Change base path to allow switching to mocks
type APIKey ¶
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the swagger operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
type AddressBlock ¶
type AddressBlock struct {
Id int64 `json:"id"`
}
type AddressBlockApiService ¶
type AddressBlockApiService service
func (*AddressBlockApiService) AddAddressBlock ¶
func (a *AddressBlockApiService) AddAddressBlock(ctx context.Context, addressBlocks AddressBlockInput) (AddressBlock, *http.Response, error)
AddressBlockApiService Creates a new address block in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param addressBlocks Address block to add to the system
@return AddressBlock
func (*AddressBlockApiService) FindAddressBlockById ¶
func (a *AddressBlockApiService) FindAddressBlockById(ctx context.Context, id int64) (AddressBlock, *http.Response, error)
AddressBlockApiService Find Address block by ID Returns a single address block if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of address block to fetch
@return AddressBlock
func (*AddressBlockApiService) FindAddressBlocks ¶
func (a *AddressBlockApiService) FindAddressBlocks(ctx context.Context, localVarOptionals *FindAddressBlocksOpts) ([]AddressBlock, *http.Response, error)
type AddressBlockInput ¶
type AddressBlockInput struct {
Id int64 `json:"id"`
}
type BankAccount ¶
type BankAccount struct { Name string `json:"name"` BankName string `json:"bank_name"` CurrencyCode string `json:"currency_code"` Swift string `json:"swift"` Iban string `json:"iban"` Address1 string `json:"address1,omitempty"` Address2 string `json:"address2,omitempty"` Address3 string `json:"address3,omitempty"` City string `json:"city,omitempty"` StateCounty string `json:"state_county,omitempty"` ZipPostcode string `json:"zip_postcode,omitempty"` CountryName string `json:"country_name"` ContactName string `json:"contact_name,omitempty"` Phone string `json:"phone,omitempty"` Email string `json:"email,omitempty"` Website string `json:"website,omitempty"` Id int64 `json:"id,omitempty"` }
type BankAccountApiService ¶
type BankAccountApiService service
func (*BankAccountApiService) AddBankAccount ¶
func (a *BankAccountApiService) AddBankAccount(ctx context.Context, bankAccount BankAccountInput) (BankAccount, *http.Response, error)
BankAccountApiService Creates a new bank account in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param bankAccount Bank account to add to the system
@return BankAccount
func (*BankAccountApiService) FindBankAccountById ¶
func (a *BankAccountApiService) FindBankAccountById(ctx context.Context, id int64) (BankAccount, *http.Response, error)
BankAccountApiService Find Bank Account by ID Returns a single bank account if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of bank account to fetch
@return BankAccount
func (*BankAccountApiService) FindBankAccounts ¶
func (a *BankAccountApiService) FindBankAccounts(ctx context.Context, localVarOptionals *FindBankAccountsOpts) ([]BankAccount, *http.Response, error)
type BankAccountInput ¶
type BankAccountInput struct { Name string `json:"name"` BankName string `json:"bank_name"` CurrencyCode string `json:"currency_code"` Swift string `json:"swift"` Iban string `json:"iban"` Address1 string `json:"address1,omitempty"` Address2 string `json:"address2,omitempty"` Address3 string `json:"address3,omitempty"` City string `json:"city,omitempty"` StateCounty string `json:"state_county,omitempty"` ZipPostcode string `json:"zip_postcode,omitempty"` CountryName string `json:"country_name"` ContactName string `json:"contact_name,omitempty"` Phone string `json:"phone,omitempty"` Email string `json:"email,omitempty"` Website string `json:"website,omitempty"` }
Bank account information
type BankStatement ¶
type BankStatement struct {
Id int64 `json:"id"`
}
type BankStatementApiService ¶
type BankStatementApiService service
func (*BankStatementApiService) AddBankStatement ¶
func (a *BankStatementApiService) AddBankStatement(ctx context.Context, bankStatements BankStatementInput) (BankStatement, *http.Response, error)
BankStatementApiService Creates a new bank statement in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param bankStatements Bank statement to add to the system
@return BankStatement
func (*BankStatementApiService) FindBankStatementById ¶
func (a *BankStatementApiService) FindBankStatementById(ctx context.Context, id int64) (BankStatement, *http.Response, error)
BankStatementApiService Find Bank statement by ID Returns a single bank statement if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of bank statement to fetch
@return BankStatement
func (*BankStatementApiService) FindBankStatements ¶
func (a *BankStatementApiService) FindBankStatements(ctx context.Context, localVarOptionals *FindBankStatementsOpts) ([]BankStatement, *http.Response, error)
type BankStatementData ¶
type BankStatementData struct {
Id int64 `json:"id"`
}
type BankStatementDataInput ¶
type BankStatementDataInput struct {
Id int64 `json:"id"`
}
type BankStatementInput ¶
type BankStatementInput struct {
Id int64 `json:"id"`
}
type BasicAuth ¶
type BasicAuth struct { UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` }
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type BeanieTask ¶
type BeanieTask struct {
Id int64 `json:"id"`
}
type BeanieTaskApiService ¶
type BeanieTaskApiService service
func (*BeanieTaskApiService) AddBeanieTask ¶
func (a *BeanieTaskApiService) AddBeanieTask(ctx context.Context, beanieTasks BeanieTaskInput) (BeanieTask, *http.Response, error)
BeanieTaskApiService Creates a new beanie task in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param beanieTasks Beanie task to add to the system
@return BeanieTask
func (*BeanieTaskApiService) FindBeanieTaskById ¶
func (a *BeanieTaskApiService) FindBeanieTaskById(ctx context.Context, id int64) (BeanieTask, *http.Response, error)
BeanieTaskApiService Find Beanie task by ID Returns a single beanie task if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of beanie task to fetch
@return BeanieTask
func (*BeanieTaskApiService) FindBeanieTasks ¶
func (a *BeanieTaskApiService) FindBeanieTasks(ctx context.Context, localVarOptionals *FindBeanieTasksOpts) ([]BeanieTask, *http.Response, error)
type BeanieTaskInput ¶
type BeanieTaskInput struct {
Id int64 `json:"id"`
}
type BillOfMaterial ¶
type BillOfMaterial struct {
Id int64 `json:"id"`
}
type BillOfMaterialInput ¶
type BillOfMaterialInput struct {
Id int64 `json:"id"`
}
type BillOfMaterialsApiService ¶
type BillOfMaterialsApiService service
func (*BillOfMaterialsApiService) AddBillOfMaterial ¶
func (a *BillOfMaterialsApiService) AddBillOfMaterial(ctx context.Context, billOfMaterials BillOfMaterialInput) (BillOfMaterial, *http.Response, error)
BillOfMaterialsApiService Creates a new bill of materials in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param billOfMaterials Bill of Materials to add to the system
@return BillOfMaterial
func (*BillOfMaterialsApiService) FindBillOfMaterialById ¶
func (a *BillOfMaterialsApiService) FindBillOfMaterialById(ctx context.Context, id int64) (BillOfMaterial, *http.Response, error)
BillOfMaterialsApiService Find Bill of Materials by ID Returns a single bill of materials if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of bill of materials to fetch
@return BillOfMaterial
func (*BillOfMaterialsApiService) FindBillOfMaterials ¶
func (a *BillOfMaterialsApiService) FindBillOfMaterials(ctx context.Context, localVarOptionals *FindBillOfMaterialsOpts) ([]BillOfMaterial, *http.Response, error)
type BillableApiService ¶
type BillableApiService service
func (*BillableApiService) AddBillable ¶
func (a *BillableApiService) AddBillable(ctx context.Context, billables BillableInput) (Billable, *http.Response, error)
BillableApiService Creates a new billable record in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param billables Billable record to add to the system
@return Billable
func (*BillableApiService) FindBillableById ¶
func (a *BillableApiService) FindBillableById(ctx context.Context, id int64) (Billable, *http.Response, error)
BillableApiService Find Billable record by ID Returns a single billable record if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of billable record to fetch
@return Billable
func (*BillableApiService) FindBillables ¶
func (a *BillableApiService) FindBillables(ctx context.Context, localVarOptionals *FindBillablesOpts) ([]Billable, *http.Response, error)
type BillableInput ¶
type BillableInput struct {
Id int64 `json:"id"`
}
type BomItemInput ¶
type BomItemInput struct {
Id int64 `json:"id"`
}
type CompanyApiService ¶
type CompanyApiService service
func (*CompanyApiService) FindCompanyById ¶
func (a *CompanyApiService) FindCompanyById(ctx context.Context, id int64) (Company, *http.Response, error)
CompanyApiService Find Company details by ID Returns a single company details if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of company details to fetch
@return Company
type Configuration ¶
type Configuration struct { BasePath string `json:"basePath,omitempty"` Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` HTTPClient *http.Client }
func NewConfiguration ¶
func NewConfiguration() *Configuration
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
type DeliveryNote ¶
type DeliveryNote struct {
Id int64 `json:"id"`
}
type DeliveryNoteApiService ¶
type DeliveryNoteApiService service
func (*DeliveryNoteApiService) AddDeliveryNote ¶
func (a *DeliveryNoteApiService) AddDeliveryNote(ctx context.Context, deliveryNotes DeliveryNoteInput) (DeliveryNote, *http.Response, error)
DeliveryNoteApiService Creates a new delivery note in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param deliveryNotes Delivery note to add to the system
@return DeliveryNote
func (*DeliveryNoteApiService) FindDeliveryNoteById ¶
func (a *DeliveryNoteApiService) FindDeliveryNoteById(ctx context.Context, id int64) (DeliveryNote, *http.Response, error)
DeliveryNoteApiService Find Delivery note by ID Returns a single delivery note if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of delivery note to fetch
@return DeliveryNote
func (*DeliveryNoteApiService) FindDeliveryNotes ¶
func (a *DeliveryNoteApiService) FindDeliveryNotes(ctx context.Context, localVarOptionals *FindDeliveryNotesOpts) ([]DeliveryNote, *http.Response, error)
type DeliveryNoteInput ¶
type DeliveryNoteInput struct {
Id int64 `json:"id"`
}
type DeliveryNoteItem ¶
type DeliveryNoteItem struct {
Id int64 `json:"id"`
}
type DeliveryNoteItemInput ¶
type DeliveryNoteItemInput struct {
Id int64 `json:"id"`
}
type DocumentApiService ¶
type DocumentApiService service
func (*DocumentApiService) AddDocument ¶
func (a *DocumentApiService) AddDocument(ctx context.Context, documents DocumentInput) (Document, *http.Response, error)
DocumentApiService Creates a new document in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param documents Document to add to the system
@return Document
func (*DocumentApiService) FindDocumentById ¶
func (a *DocumentApiService) FindDocumentById(ctx context.Context, id int64) (Document, *http.Response, error)
DocumentApiService Find Document by ID Returns a single document if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of document to fetch
@return Document
func (*DocumentApiService) FindDocuments ¶
func (a *DocumentApiService) FindDocuments(ctx context.Context, localVarOptionals *FindDocumentsOpts) ([]Document, *http.Response, error)
type DocumentInput ¶
type DocumentInput struct {
Id int64 `json:"id"`
}
type ErrorModel ¶
type FindAddressBlocksOpts ¶
type FindBankAccountsOpts ¶
type FindBankStatementsOpts ¶
type FindBeanieTasksOpts ¶
type FindBillOfMaterialsOpts ¶
type FindBillablesOpts ¶
type FindDeliveryNotesOpts ¶
type FindDocumentsOpts ¶
type FindFixedAssetsOpts ¶
type FindJournalsOpts ¶
type FindNominalAccountsOpts ¶
type FindPartnersOpts ¶
type FindProductPricesOpts ¶
type FindProductVariantsOpts ¶
type FindProductsOpts ¶
type FindPurchaseOrdersOpts ¶
type FindSalesInvoicesOpts ¶
type FindSalesOrderOpts ¶
type FindShippingCentresOpts ¶
type FindStockCategoriesOpts ¶
type FindStockItemsOpts ¶
type FindStockLocationsOpts ¶
type FindStockSuppliersOpts ¶
type FindVatRecordsOpts ¶
type FindVatReturnsOpts ¶
type FindWorkCentresOpts ¶
type FiscalYear ¶
type FixedAsset ¶
type FixedAsset struct {
Id int64 `json:"id"`
}
type FixedAssetApiService ¶
type FixedAssetApiService service
func (*FixedAssetApiService) AddFixedAsset ¶
func (a *FixedAssetApiService) AddFixedAsset(ctx context.Context, fixedAssets FixedAssetInput) (FixedAsset, *http.Response, error)
FixedAssetApiService Creates a new fixed asset in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param fixedAssets Fixed asset to add to the system
@return FixedAsset
func (*FixedAssetApiService) FindFixedAssetById ¶
func (a *FixedAssetApiService) FindFixedAssetById(ctx context.Context, id int64) (FixedAsset, *http.Response, error)
FixedAssetApiService Find Fixed asset by ID Returns a single fixed asset if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of fixed asset to fetch
@return FixedAsset
func (*FixedAssetApiService) FindFixedAssets ¶
func (a *FixedAssetApiService) FindFixedAssets(ctx context.Context, localVarOptionals *FindFixedAssetsOpts) ([]FixedAsset, *http.Response, error)
type FixedAssetInput ¶
type FixedAssetInput struct {
Id int64 `json:"id"`
}
type GenericSwaggerError ¶
type GenericSwaggerError struct {
// contains filtered or unexported fields
}
GenericSwaggerError Provides access to the body, error and model on returned errors.
func (GenericSwaggerError) Body ¶
func (e GenericSwaggerError) Body() []byte
Body returns the raw bytes of the response
func (GenericSwaggerError) Error ¶
func (e GenericSwaggerError) Error() string
Error returns non-empty string if there was an error.
func (GenericSwaggerError) Model ¶
func (e GenericSwaggerError) Model() interface{}
Model returns the unpacked model of the error
type GoodsReceivedNote ¶
type GoodsReceivedNote struct {
Id int64 `json:"id"`
}
type GoodsReceivedNoteInput ¶
type GoodsReceivedNoteInput struct {
Id int64 `json:"id"`
}
type ImageApiService ¶
type ImageApiService service
func (*ImageApiService) AddImage ¶
func (a *ImageApiService) AddImage(ctx context.Context, images ImageInput) (Image, *http.Response, error)
ImageApiService Creates a new image in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param images Image to add to the system
@return Image
func (*ImageApiService) FindImageById ¶
func (a *ImageApiService) FindImageById(ctx context.Context, id int64) (Image, *http.Response, error)
ImageApiService Find Image by ID Returns a single image if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of image to fetch
@return Image
func (*ImageApiService) FindImages ¶
func (a *ImageApiService) FindImages(ctx context.Context, localVarOptionals *FindImagesOpts) ([]Image, *http.Response, error)
type ImageInput ¶
type ImageInput struct {
Id int64 `json:"id"`
}
type JournalApiService ¶
type JournalApiService service
func (*JournalApiService) AddJournal ¶
func (a *JournalApiService) AddJournal(ctx context.Context, journals JournalInput) (Journal, *http.Response, error)
JournalApiService Creates a new journal in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param journals Journal to add to the system
@return Journal
func (*JournalApiService) FindJournalById ¶
func (a *JournalApiService) FindJournalById(ctx context.Context, id int64) (Journal, *http.Response, error)
JournalApiService Find Journal by ID Returns a single journal if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of journal to fetch
@return Journal
func (*JournalApiService) FindJournals ¶
func (a *JournalApiService) FindJournals(ctx context.Context, localVarOptionals *FindJournalsOpts) ([]Journal, *http.Response, error)
type JournalInput ¶
type JournalInput struct {
Id int64 `json:"id"`
}
type JournalItem ¶
type JournalItem struct {
Id int64 `json:"id"`
}
type JournalItemInput ¶
type JournalItemInput struct {
Id int64 `json:"id"`
}
type NominalAccount ¶
type NominalAccount struct {
Id int64 `json:"id"`
}
type NominalAccountApiService ¶
type NominalAccountApiService service
func (*NominalAccountApiService) AddNominalAccount ¶
func (a *NominalAccountApiService) AddNominalAccount(ctx context.Context, nominalAccounts NominalAccountInput) (NominalAccount, *http.Response, error)
NominalAccountApiService Creates a new nominal account in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param nominalAccounts Nominal account to add to the system
@return NominalAccount
func (*NominalAccountApiService) FindNominalAccountById ¶
func (a *NominalAccountApiService) FindNominalAccountById(ctx context.Context, id int64) (NominalAccount, *http.Response, error)
NominalAccountApiService Find Nominal account by ID Returns a single nominal account if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of nominal account to fetch
@return NominalAccount
func (*NominalAccountApiService) FindNominalAccounts ¶
func (a *NominalAccountApiService) FindNominalAccounts(ctx context.Context, localVarOptionals *FindNominalAccountsOpts) ([]NominalAccount, *http.Response, error)
type NominalAccountCategory ¶
type NominalAccountCategory struct {
Id int64 `json:"id"`
}
type NominalAccountCategoryApiService ¶
type NominalAccountCategoryApiService service
func (*NominalAccountCategoryApiService) AddNominalAccountCategory ¶
func (a *NominalAccountCategoryApiService) AddNominalAccountCategory(ctx context.Context, nominalAccountCategories NominalAccountCategoryInput) (NominalAccountCategory, *http.Response, error)
NominalAccountCategoryApiService Creates a new nominal account category in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param nominalAccountCategories Nominal account category to add to the system
@return NominalAccountCategory
func (*NominalAccountCategoryApiService) FindNominalAccountCategories ¶
func (a *NominalAccountCategoryApiService) FindNominalAccountCategories(ctx context.Context, localVarOptionals *FindNominalAccountCategoriesOpts) ([]NominalAccountCategory, *http.Response, error)
func (*NominalAccountCategoryApiService) FindNominalAccountCategoryById ¶
func (a *NominalAccountCategoryApiService) FindNominalAccountCategoryById(ctx context.Context, id int64) (NominalAccountCategory, *http.Response, error)
NominalAccountCategoryApiService Find Nominal account category by ID Returns a single nominal account category if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of nominal account category to fetch
@return NominalAccountCategory
type NominalAccountCategoryInput ¶
type NominalAccountCategoryInput struct {
Id int64 `json:"id"`
}
type NominalAccountInput ¶
type NominalAccountInput struct {
Id int64 `json:"id"`
}
type Partner ¶
type Partner struct { Name string `json:"name"` CurrencyCode string `json:"currency_code"` NetTerms int32 `json:"net_terms,omitempty"` CreditLimit float64 `json:"credit_limit,omitempty"` PartnerVat string `json:"partner_vat,omitempty"` Id int64 `json:"id,omitempty"` Code string `json:"code,omitempty"` State string `json:"state,omitempty"` CreditHold bool `json:"credit_hold,omitempty"` Balance float64 `json:"balance,omitempty"` AddressIds []int32 `json:"address_ids,omitempty"` Notes []PartnerNote `json:"notes,omitempty"` ReceivablesLedgers []ReceivablesLedger `json:"receivables_ledgers,omitempty"` PayablesLedgers []PayablesLedger `json:"payables_ledgers,omitempty"` }
Partner Details
type PartnerAddress ¶
type PartnerAddress struct {
Id int64 `json:"id"`
}
type PartnerAddressApiService ¶
type PartnerAddressApiService service
func (*PartnerAddressApiService) AddPartnerAddress ¶
func (a *PartnerAddressApiService) AddPartnerAddress(ctx context.Context, partnerAddresses PartnerAddressInput) (PartnerAddress, *http.Response, error)
PartnerAddressApiService Creates a new partner address in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param partnerAddresses Partner address to add to the system
@return PartnerAddress
func (*PartnerAddressApiService) FindPartnerAddressById ¶
func (a *PartnerAddressApiService) FindPartnerAddressById(ctx context.Context, id int64) (PartnerAddress, *http.Response, error)
PartnerAddressApiService Find Partner address by ID Returns a single partner address if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of partner address to fetch
@return PartnerAddress
func (*PartnerAddressApiService) FindPartnerAddresses ¶
func (a *PartnerAddressApiService) FindPartnerAddresses(ctx context.Context, localVarOptionals *FindPartnerAddressesOpts) ([]PartnerAddress, *http.Response, error)
type PartnerAddressInput ¶
type PartnerAddressInput struct {
Id int64 `json:"id"`
}
type PartnerApiService ¶
type PartnerApiService service
func (*PartnerApiService) AddPartner ¶
func (a *PartnerApiService) AddPartner(ctx context.Context, partners PartnerInput) (Partner, *http.Response, error)
PartnerApiService Creates a new partner in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param partners Partner to add to the system
@return Partner
func (*PartnerApiService) FindPartnerById ¶
func (a *PartnerApiService) FindPartnerById(ctx context.Context, id int64) (Customer, *http.Response, error)
PartnerApiService Find Partner by ID Returns a single partner if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of partner to fetch
@return Customer
func (*PartnerApiService) FindPartners ¶
func (a *PartnerApiService) FindPartners(ctx context.Context, localVarOptionals *FindPartnersOpts) ([]Partner, *http.Response, error)
type PartnerInput ¶
type PartnerInput struct { Name string `json:"name"` CurrencyCode string `json:"currency_code"` NetTerms int32 `json:"net_terms,omitempty"` CreditLimit float64 `json:"credit_limit,omitempty"` PartnerVat string `json:"partner_vat,omitempty"` }
Partner Details
type PartnerNote ¶
type PayablesLedger ¶
type PayablesLedger struct { Date string `json:"date"` LedgerType string `json:"ledger_type"` Narrative string `json:"narrative"` Amount float64 `json:"amount"` Reconciled bool `json:"reconciled"` JournalId int64 `json:"journal_id,omitempty"` SalesInvoiceId int64 `json:"sales_invoice_id,omitempty"` }
type ProductApiService ¶
type ProductApiService service
func (*ProductApiService) AddProduct ¶
func (a *ProductApiService) AddProduct(ctx context.Context, products ProductInput) (Product, *http.Response, error)
ProductApiService Creates a new product in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param products Product to add to the system
@return Product
func (*ProductApiService) FindProductById ¶
func (a *ProductApiService) FindProductById(ctx context.Context, id int64) (Product, *http.Response, error)
ProductApiService Find Product by ID Returns a single product if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of product to fetch
@return Product
func (*ProductApiService) FindProducts ¶
func (a *ProductApiService) FindProducts(ctx context.Context, localVarOptionals *FindProductsOpts) ([]Product, *http.Response, error)
type ProductCategory ¶
type ProductCategory struct {
Id int64 `json:"id"`
}
type ProductCategoryApiService ¶
type ProductCategoryApiService service
func (*ProductCategoryApiService) AddProductCategory ¶
func (a *ProductCategoryApiService) AddProductCategory(ctx context.Context, productCategories ProductCategoryInput) (ProductCategory, *http.Response, error)
ProductCategoryApiService Creates a new product category in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param productCategories Product category to add to the system
@return ProductCategory
func (*ProductCategoryApiService) FindProductCategories ¶
func (a *ProductCategoryApiService) FindProductCategories(ctx context.Context, localVarOptionals *FindProductCategoriesOpts) ([]ProductCategory, *http.Response, error)
func (*ProductCategoryApiService) FindProductCategoryById ¶
func (a *ProductCategoryApiService) FindProductCategoryById(ctx context.Context, id int64) (ProductCategory, *http.Response, error)
ProductCategoryApiService Find Product category by ID Returns a single product category if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of product category to fetch
@return ProductCategory
type ProductCategoryInput ¶
type ProductCategoryInput struct {
Id int64 `json:"id"`
}
type ProductInput ¶
type ProductInput struct {
Id int64 `json:"id"`
}
type ProductPrice ¶
type ProductPrice struct {
Id int64 `json:"id"`
}
type ProductPriceApiService ¶
type ProductPriceApiService service
func (*ProductPriceApiService) AddProductPrice ¶
func (a *ProductPriceApiService) AddProductPrice(ctx context.Context, productPrices ProductPriceInput) (ProductPrice, *http.Response, error)
ProductPriceApiService Creates a new product price in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param productPrices Product price to add to the system
@return ProductPrice
func (*ProductPriceApiService) FindProductPriceById ¶
func (a *ProductPriceApiService) FindProductPriceById(ctx context.Context, id int64) (ProductPrice, *http.Response, error)
ProductPriceApiService Find Product price by ID Returns a single product price if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of product price to fetch
@return ProductPrice
func (*ProductPriceApiService) FindProductPrices ¶
func (a *ProductPriceApiService) FindProductPrices(ctx context.Context, localVarOptionals *FindProductPricesOpts) ([]ProductPrice, *http.Response, error)
type ProductPriceInput ¶
type ProductPriceInput struct {
Id int64 `json:"id"`
}
type ProductVariant ¶
type ProductVariant struct {
Id int64 `json:"id"`
}
type ProductVariantApiService ¶
type ProductVariantApiService service
func (*ProductVariantApiService) AddProductVariant ¶
func (a *ProductVariantApiService) AddProductVariant(ctx context.Context, productVariants ProductVariantInput) (ProductVariant, *http.Response, error)
ProductVariantApiService Creates a new product variant in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param productVariants Product variant to add to the system
@return ProductVariant
func (*ProductVariantApiService) FindProductVariantById ¶
func (a *ProductVariantApiService) FindProductVariantById(ctx context.Context, id int64) (ProductVariant, *http.Response, error)
ProductVariantApiService Find Product variant by ID Returns a single product variant if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of product variant to fetch
@return ProductVariant
func (*ProductVariantApiService) FindProductVariants ¶
func (a *ProductVariantApiService) FindProductVariants(ctx context.Context, localVarOptionals *FindProductVariantsOpts) ([]ProductVariant, *http.Response, error)
type ProductVariantInput ¶
type ProductVariantInput struct {
Id int64 `json:"id"`
}
type ProductionOrder ¶
type ProductionOrder struct { Priority int32 `json:"priority"` Quantity int32 `json:"quantity"` Notes string `json:"notes,omitempty"` BillOfMaterialsId int64 `json:"bill_of_materials_id,omitempty"` SalesOrderId int64 `json:"sales_order_id,omitempty"` Id int64 `json:"id,omitempty"` WorkCentreGroupId int64 `json:"work_centre_group_id,omitempty"` JobOrder int64 `json:"job_order,omitempty"` State string `json:"state,omitempty"` Logs []ProductionOrderLog `json:"logs,omitempty"` }
Production Order Details
type ProductionOrderApiService ¶
type ProductionOrderApiService service
func (*ProductionOrderApiService) AddProductionOrder ¶
func (a *ProductionOrderApiService) AddProductionOrder(ctx context.Context, productionOrders ProductionOrderInput) (ProductionOrder, *http.Response, error)
ProductionOrderApiService Creates a new production order in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param productionOrders Production order to add to the system
@return ProductionOrder
func (*ProductionOrderApiService) FindProductionOrderById ¶
func (a *ProductionOrderApiService) FindProductionOrderById(ctx context.Context, id int64) (ProductionOrder, *http.Response, error)
ProductionOrderApiService Find Production order by ID Returns a single production order if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of production order to fetch
@return ProductionOrder
func (*ProductionOrderApiService) FindProductionOrders ¶
func (a *ProductionOrderApiService) FindProductionOrders(ctx context.Context, localVarOptionals *FindProductionOrdersOpts) ([]ProductionOrder, *http.Response, error)
type ProductionOrderInput ¶
type ProductionOrderInput struct { Priority int32 `json:"priority"` Quantity int32 `json:"quantity"` Notes string `json:"notes,omitempty"` BillOfMaterialsId int64 `json:"bill_of_materials_id,omitempty"` SalesOrderId int64 `json:"sales_order_id,omitempty"` }
Production Order Details
type ProductionOrderLog ¶
type PurchaseInvoice ¶
type PurchaseInvoice struct {
Id int64 `json:"id"`
}
type PurchaseInvoiceApiService ¶
type PurchaseInvoiceApiService service
func (*PurchaseInvoiceApiService) AddPurchaseInvoice ¶
func (a *PurchaseInvoiceApiService) AddPurchaseInvoice(ctx context.Context, purchaseInvoices PurchaseInvoiceInput) (PurchaseInvoice, *http.Response, error)
PurchaseInvoiceApiService Creates a new purchase invoice in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param purchaseInvoices Purchase invoice to add to the system
@return PurchaseInvoice
func (*PurchaseInvoiceApiService) FindPurchaseInvoiceById ¶
func (a *PurchaseInvoiceApiService) FindPurchaseInvoiceById(ctx context.Context, id int64) (PurchaseInvoice, *http.Response, error)
PurchaseInvoiceApiService Find Purchase invoice by ID Returns a single purchase invoice if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of purchase invoice to fetch
@return PurchaseInvoice
func (*PurchaseInvoiceApiService) FindPurchaseInvoices ¶
func (a *PurchaseInvoiceApiService) FindPurchaseInvoices(ctx context.Context, localVarOptionals *FindPurchaseInvoicesOpts) ([]PurchaseInvoice, *http.Response, error)
type PurchaseInvoiceInput ¶
type PurchaseInvoiceInput struct {
Id int64 `json:"id"`
}
type PurchaseOrder ¶
type PurchaseOrder struct {
Id int64 `json:"id"`
}
type PurchaseOrderApiService ¶
type PurchaseOrderApiService service
func (*PurchaseOrderApiService) AddPurchaseOrder ¶
func (a *PurchaseOrderApiService) AddPurchaseOrder(ctx context.Context, purchaseOrders PurchaseOrderInput) (PurchaseOrder, *http.Response, error)
PurchaseOrderApiService Creates a new purchase order in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param purchaseOrders Purchase order to add to the system
@return PurchaseOrder
func (*PurchaseOrderApiService) FindPurchaseOrderById ¶
func (a *PurchaseOrderApiService) FindPurchaseOrderById(ctx context.Context, id int64) (PurchaseOrder, *http.Response, error)
PurchaseOrderApiService Find Purchase order by ID Returns a single purchase order if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of purchase order to fetch
@return PurchaseOrder
func (*PurchaseOrderApiService) FindPurchaseOrders ¶
func (a *PurchaseOrderApiService) FindPurchaseOrders(ctx context.Context, localVarOptionals *FindPurchaseOrdersOpts) ([]PurchaseOrder, *http.Response, error)
type PurchaseOrderInput ¶
type PurchaseOrderInput struct {
Id int64 `json:"id"`
}
type PurchaseOrderItem ¶
type PurchaseOrderItem struct {
Id int64 `json:"id"`
}
type PurchaseOrderItemInput ¶
type PurchaseOrderItemInput struct {
Id int64 `json:"id"`
}
type ReceivablesLedger ¶
type ReceivablesLedger struct { Date string `json:"date"` LedgerType string `json:"ledger_type"` Narrative string `json:"narrative"` Amount float64 `json:"amount"` Reconciled bool `json:"reconciled"` JournalId int64 `json:"journal_id,omitempty"` SalesInvoiceId int64 `json:"sales_invoice_id,omitempty"` }
type SalesInvoice ¶
type SalesInvoice struct {
Id int64 `json:"id"`
}
type SalesInvoiceApiService ¶
type SalesInvoiceApiService service
func (*SalesInvoiceApiService) AddSalesInvoice ¶
func (a *SalesInvoiceApiService) AddSalesInvoice(ctx context.Context, salesInvoices SalesInvoiceInput) (SalesInvoice, *http.Response, error)
SalesInvoiceApiService Creates a new sales invoice in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param salesInvoices Sales invoice to add to the system
@return SalesInvoice
func (*SalesInvoiceApiService) FindSalesInvoiceById ¶
func (a *SalesInvoiceApiService) FindSalesInvoiceById(ctx context.Context, id int64) (SalesInvoice, *http.Response, error)
SalesInvoiceApiService Find Sales invoice by ID Returns a single sales invoice if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of sales invoice to fetch
@return SalesInvoice
func (*SalesInvoiceApiService) FindSalesInvoices ¶
func (a *SalesInvoiceApiService) FindSalesInvoices(ctx context.Context, localVarOptionals *FindSalesInvoicesOpts) ([]SalesInvoice, *http.Response, error)
type SalesInvoiceInput ¶
type SalesInvoiceInput struct {
Id int64 `json:"id"`
}
type SalesInvoiceItem ¶
type SalesInvoiceItem struct {
Id int64 `json:"id"`
}
type SalesInvoiceItemInput ¶
type SalesInvoiceItemInput struct {
Id int64 `json:"id"`
}
type SalesOrder ¶
type SalesOrder struct {
Id int64 `json:"id"`
}
type SalesOrderApiService ¶
type SalesOrderApiService service
func (*SalesOrderApiService) AddSalesOrder ¶
func (a *SalesOrderApiService) AddSalesOrder(ctx context.Context, salesOrders SalesOrderInput) (SalesOrder, *http.Response, error)
SalesOrderApiService Creates a new sales order in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param salesOrders Sales order to add to the system
@return SalesOrder
func (*SalesOrderApiService) FindSalesOrder ¶
func (a *SalesOrderApiService) FindSalesOrder(ctx context.Context, localVarOptionals *FindSalesOrderOpts) ([]SalesOrder, *http.Response, error)
func (*SalesOrderApiService) FindSalesOrderById ¶
func (a *SalesOrderApiService) FindSalesOrderById(ctx context.Context, id int64) (SalesOrder, *http.Response, error)
SalesOrderApiService Find Sales order by ID Returns a single sales order if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of sales order to fetch
@return SalesOrder
type SalesOrderInput ¶
type SalesOrderInput struct {
Id int64 `json:"id"`
}
type SalesOrderItem ¶
type SalesOrderItem struct {
Id int64 `json:"id"`
}
type SalesOrderItemInput ¶
type SalesOrderItemInput struct {
Id int64 `json:"id"`
}
type ShippingCentre ¶
type ShippingCentre struct {
Id int64 `json:"id"`
}
type ShippingCentreApiService ¶
type ShippingCentreApiService service
func (*ShippingCentreApiService) AddShippingCentre ¶
func (a *ShippingCentreApiService) AddShippingCentre(ctx context.Context, shippingCentres ShippingCentreInput) (ShippingCentre, *http.Response, error)
ShippingCentreApiService Creates a new shipping centre in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param shippingCentres Shipping centre to add to the system
@return ShippingCentre
func (*ShippingCentreApiService) FindShippingCentreById ¶
func (a *ShippingCentreApiService) FindShippingCentreById(ctx context.Context, id int64) (ShippingCentre, *http.Response, error)
ShippingCentreApiService Find Shipping centre by ID Returns a single shipping centre if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of shipping centre to fetch
@return ShippingCentre
func (*ShippingCentreApiService) FindShippingCentres ¶
func (a *ShippingCentreApiService) FindShippingCentres(ctx context.Context, localVarOptionals *FindShippingCentresOpts) ([]ShippingCentre, *http.Response, error)
type ShippingCentreInput ¶
type ShippingCentreInput struct {
Id int64 `json:"id"`
}
type StockAdjustment ¶
type StockAdjustment struct {
Id int64 `json:"id"`
}
type StockAdjustmentApiService ¶
type StockAdjustmentApiService service
func (*StockAdjustmentApiService) AddStockAdjustment ¶
func (a *StockAdjustmentApiService) AddStockAdjustment(ctx context.Context, stockAdjustments StockAdjustmentInput) (StockAdjustment, *http.Response, error)
StockAdjustmentApiService Creates a new stock adjustment in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param stockAdjustments Stock adjustment to add to the system
@return StockAdjustment
func (*StockAdjustmentApiService) FindStockAdjustmentById ¶
func (a *StockAdjustmentApiService) FindStockAdjustmentById(ctx context.Context, id int64) (StockAdjustment, *http.Response, error)
StockAdjustmentApiService Find Stock adjustment by ID Returns a single stock adjustment if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of stock adjustment to fetch
@return StockAdjustment
func (*StockAdjustmentApiService) FindStockAdjustments ¶
func (a *StockAdjustmentApiService) FindStockAdjustments(ctx context.Context, localVarOptionals *FindStockAdjustmentsOpts) ([]StockAdjustment, *http.Response, error)
type StockAdjustmentInput ¶
type StockAdjustmentInput struct {
Id int64 `json:"id"`
}
type StockCategory ¶
type StockCategory struct {
Id int64 `json:"id"`
}
type StockCategoryApiService ¶
type StockCategoryApiService service
func (*StockCategoryApiService) AddStockCategory ¶
func (a *StockCategoryApiService) AddStockCategory(ctx context.Context, stockCategories StockCategoryInput) (StockCategory, *http.Response, error)
StockCategoryApiService Creates a new stock category in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param stockCategories Stock category to add to the system
@return StockCategory
func (*StockCategoryApiService) FindStockCategories ¶
func (a *StockCategoryApiService) FindStockCategories(ctx context.Context, localVarOptionals *FindStockCategoriesOpts) ([]StockCategory, *http.Response, error)
func (*StockCategoryApiService) FindStockCategoryById ¶
func (a *StockCategoryApiService) FindStockCategoryById(ctx context.Context, id int64) (StockCategory, *http.Response, error)
StockCategoryApiService Find Stock category by ID Returns a single stock category if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of stock category to fetch
@return StockCategory
type StockCategoryInput ¶
type StockCategoryInput struct {
Id int64 `json:"id"`
}
type StockItemApiService ¶
type StockItemApiService service
func (*StockItemApiService) AddStockItem ¶
func (a *StockItemApiService) AddStockItem(ctx context.Context, stockItems StockItemInput) (StockItem, *http.Response, error)
StockItemApiService Creates a new stock item in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param stockItems Stock item to add to the system
@return StockItem
func (*StockItemApiService) FindStockItemById ¶
func (a *StockItemApiService) FindStockItemById(ctx context.Context, id int64) (StockItem, *http.Response, error)
StockItemApiService Find Stock item by ID Returns a single stock item if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of stock item to fetch
@return StockItem
func (*StockItemApiService) FindStockItems ¶
func (a *StockItemApiService) FindStockItems(ctx context.Context, localVarOptionals *FindStockItemsOpts) ([]StockItem, *http.Response, error)
type StockItemInput ¶
type StockItemInput struct {
Id int64 `json:"id"`
}
type StockLocation ¶
type StockLocation struct {
Id int64 `json:"id"`
}
type StockLocationApiService ¶
type StockLocationApiService service
func (*StockLocationApiService) AddStockLocation ¶
func (a *StockLocationApiService) AddStockLocation(ctx context.Context, stockLocations StockLocationInput) (StockLocation, *http.Response, error)
StockLocationApiService Creates a new stock location in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param stockLocations Stock location to add to the system
@return StockLocation
func (*StockLocationApiService) FindStockLocationById ¶
func (a *StockLocationApiService) FindStockLocationById(ctx context.Context, id int64) (StockLocation, *http.Response, error)
StockLocationApiService Find Stock location by ID Returns a single stock location if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of stock location to fetch
@return StockLocation
func (*StockLocationApiService) FindStockLocations ¶
func (a *StockLocationApiService) FindStockLocations(ctx context.Context, localVarOptionals *FindStockLocationsOpts) ([]StockLocation, *http.Response, error)
type StockLocationInput ¶
type StockLocationInput struct {
Id int64 `json:"id"`
}
type StockSupplier ¶
type StockSupplier struct {
Id int64 `json:"id"`
}
type StockSupplierApiService ¶
type StockSupplierApiService service
func (*StockSupplierApiService) AddStockSupplier ¶
func (a *StockSupplierApiService) AddStockSupplier(ctx context.Context, stockSuppliers StockSupplierInput) (StockSupplier, *http.Response, error)
StockSupplierApiService Creates a new stock supplier in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param stockSuppliers Stock supplier to add to the system
@return StockSupplier
func (*StockSupplierApiService) FindStockSupplierById ¶
func (a *StockSupplierApiService) FindStockSupplierById(ctx context.Context, id int64) (StockSupplier, *http.Response, error)
StockSupplierApiService Find Stock supplier by ID Returns a single stock supplier if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of stock supplier to fetch
@return StockSupplier
func (*StockSupplierApiService) FindStockSuppliers ¶
func (a *StockSupplierApiService) FindStockSuppliers(ctx context.Context, localVarOptionals *FindStockSuppliersOpts) ([]StockSupplier, *http.Response, error)
type StockSupplierInput ¶
type StockSupplierInput struct {
Id int64 `json:"id"`
}
type VatRecordApiService ¶
type VatRecordApiService service
func (*VatRecordApiService) AddVatRecord ¶
func (a *VatRecordApiService) AddVatRecord(ctx context.Context, vatRecords VatRecordInput) (VatRecord, *http.Response, error)
VatRecordApiService Creates a new vat record in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param vatRecords VAT record to add to the system
@return VatRecord
func (*VatRecordApiService) FindVatRecordById ¶
func (a *VatRecordApiService) FindVatRecordById(ctx context.Context, id int64) (VatRecord, *http.Response, error)
VatRecordApiService Find VAT record by ID Returns a single vat record if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of vat record to fetch
@return VatRecord
func (*VatRecordApiService) FindVatRecords ¶
func (a *VatRecordApiService) FindVatRecords(ctx context.Context, localVarOptionals *FindVatRecordsOpts) ([]VatRecord, *http.Response, error)
type VatRecordInput ¶
type VatReturnApiService ¶
type VatReturnApiService service
func (*VatReturnApiService) AddVatReturn ¶
func (a *VatReturnApiService) AddVatReturn(ctx context.Context, vatReturns VatReturnInput) (VatReturn, *http.Response, error)
VatReturnApiService Creates a new vat return in the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param vatReturns VAT return to add to the system
@return VatReturn
func (*VatReturnApiService) FindVatReturnById ¶
func (a *VatReturnApiService) FindVatReturnById(ctx context.Context, id int64) (VatReturn, *http.Response, error)
VatReturnApiService Find VAT return by ID Returns a single vat return if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of vat return to fetch
@return VatReturn
func (*VatReturnApiService) FindVatReturns ¶
func (a *VatReturnApiService) FindVatReturns(ctx context.Context, localVarOptionals *FindVatReturnsOpts) ([]VatReturn, *http.Response, error)
type VatReturnInput ¶
type VatReturnInput struct {
Id int64 `json:"id"`
}
type WorkCentre ¶
type WorkCentre struct { Id int64 `json:"id,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` WorkCentreGroupId int64 `json:"work_centre_group_id,omitempty"` Location string `json:"location,omitempty"` State int64 `json:"state,omitempty"` ProductionOrderId int64 `json:"production_order_id,omitempty"` }
Work Centre Details
type WorkCentreApiService ¶
type WorkCentreApiService service
func (*WorkCentreApiService) FindWorkCentreById ¶
func (a *WorkCentreApiService) FindWorkCentreById(ctx context.Context, id int64) (WorkCentre, *http.Response, error)
WorkCentreApiService Find Work centre by ID Returns a single work centre if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of work centre to fetch
@return WorkCentre
func (*WorkCentreApiService) FindWorkCentres ¶
func (a *WorkCentreApiService) FindWorkCentres(ctx context.Context, workCentreGroupId int64, localVarOptionals *FindWorkCentresOpts) ([]WorkCentre, *http.Response, error)
type WorkCentreGroup ¶
type WorkCentreGroup struct { Id int64 `json:"id,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Code string `json:"code,omitempty"` Url string `json:"url,omitempty"` }
Work Centre Group Details
type WorkCentreGroupApiService ¶
type WorkCentreGroupApiService service
func (*WorkCentreGroupApiService) FindWorkCentreGroupById ¶
func (a *WorkCentreGroupApiService) FindWorkCentreGroupById(ctx context.Context, id int64) (WorkCentreGroup, *http.Response, error)
WorkCentreGroupApiService Find Work centre group by ID Returns a single work centre group if the user has access
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ID of work centre group to fetch
@return WorkCentreGroup
func (*WorkCentreGroupApiService) FindWorkCentreGroups ¶
func (a *WorkCentreGroupApiService) FindWorkCentreGroups(ctx context.Context, localVarOptionals *FindWorkCentreGroupsOpts) ([]WorkCentreGroup, *http.Response, error)
Source Files ¶
- api_address_block.go
- api_bank_account.go
- api_bank_statement.go
- api_beanie_task.go
- api_bill_of_materials.go
- api_billable.go
- api_company.go
- api_delivery_note.go
- api_document.go
- api_fixed_asset.go
- api_image.go
- api_journal.go
- api_nominal_account.go
- api_nominal_account_category.go
- api_partner.go
- api_partner_address.go
- api_product.go
- api_product_category.go
- api_product_price.go
- api_product_variant.go
- api_production_order.go
- api_purchase_invoice.go
- api_purchase_order.go
- api_sales_invoice.go
- api_sales_order.go
- api_shipping_centre.go
- api_stock_adjustment.go
- api_stock_category.go
- api_stock_item.go
- api_stock_location.go
- api_stock_supplier.go
- api_vat_record.go
- api_vat_return.go
- api_work_centre.go
- api_work_centre_group.go
- client.go
- configuration.go
- model_address_block.go
- model_address_block_input.go
- model_bank_account.go
- model_bank_account_input.go
- model_bank_statement.go
- model_bank_statement_data.go
- model_bank_statement_data_input.go
- model_bank_statement_input.go
- model_beanie_task.go
- model_beanie_task_input.go
- model_bill_of_material.go
- model_bill_of_material_input.go
- model_billable.go
- model_billable_input.go
- model_bom_item.go
- model_bom_item_input.go
- model_company.go
- model_delivery_note.go
- model_delivery_note_input.go
- model_delivery_note_item.go
- model_delivery_note_item_input.go
- model_document.go
- model_document_input.go
- model_error_model.go
- model_fiscal_year.go
- model_fixed_asset.go
- model_fixed_asset_input.go
- model_goods_received_note.go
- model_goods_received_note_input.go
- model_image.go
- model_image_input.go
- model_journal.go
- model_journal_input.go
- model_journal_item.go
- model_journal_item_input.go
- model_nominal_account.go
- model_nominal_account_category.go
- model_nominal_account_category_input.go
- model_nominal_account_input.go
- model_partner.go
- model_partner_address.go
- model_partner_address_input.go
- model_partner_input.go
- model_partner_note.go
- model_payables_ledger.go
- model_product.go
- model_product_category.go
- model_product_category_input.go
- model_product_input.go
- model_product_price.go
- model_product_price_input.go
- model_product_variant.go
- model_product_variant_input.go
- model_production_order.go
- model_production_order_input.go
- model_production_order_log.go
- model_purchase_invoice.go
- model_purchase_invoice_input.go
- model_purchase_order.go
- model_purchase_order_input.go
- model_purchase_order_item.go
- model_purchase_order_item_input.go
- model_receivables_ledger.go
- model_sales_invoice.go
- model_sales_invoice_input.go
- model_sales_invoice_item.go
- model_sales_invoice_item_input.go
- model_sales_order.go
- model_sales_order_input.go
- model_sales_order_item.go
- model_sales_order_item_input.go
- model_shipping_centre.go
- model_shipping_centre_input.go
- model_stock_adjustment.go
- model_stock_adjustment_input.go
- model_stock_category.go
- model_stock_category_input.go
- model_stock_item.go
- model_stock_item_input.go
- model_stock_location.go
- model_stock_location_input.go
- model_stock_supplier.go
- model_stock_supplier_input.go
- model_vat_record.go
- model_vat_record_input.go
- model_vat_return.go
- model_vat_return_input.go
- model_work_centre.go
- model_work_centre_group.go
- response.go