system

package
v0.0.0-...-7cd2dfd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Copyright 2022 The go-exactonline AUTHORS. All rights reserved.

Use of this source code is governed by a MIT license that can be found in the LICENSE file. Code generated by gen-services.go; DO NOT EDIT.

Copyright 2022 The go-exactonline AUTHORS. All rights reserved.

Use of this source code is governed by a MIT license that can be found in the LICENSE file. Code generated by gen-services.go; DO NOT EDIT.

Copyright 2022 The go-exactonline AUTHORS. All rights reserved.

Use of this source code is governed by a MIT license that can be found in the LICENSE file. Code generated by gen-services.go; DO NOT EDIT.

Copyright 2022 The go-exactonline AUTHORS. All rights reserved.

Use of this source code is governed by a MIT license that can be found in the LICENSE file. Code generated by gen-services.go; DO NOT EDIT.

Copyright 2022 The go-exactonline AUTHORS. All rights reserved.

Use of this source code is governed by a MIT license that can be found in the LICENSE file. Code generated by gen-services.go; DO NOT EDIT.

Copyright 2022 The go-exactonline AUTHORS. All rights reserved.

Use of this source code is governed by a MIT license that can be found in the LICENSE file. Code generated by gen-services.go; DO NOT EDIT.

Copyright 2022 The go-exactonline AUTHORS. All rights reserved.

Use of this source code is governed by a MIT license that can be found in the LICENSE file. Code generated by gen-services.go; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountantInfo

type AccountantInfo struct {
	MetaData *api.MetaData `json:"__metadata,omitempty"`
	// ID: The account ID of the accountant.
	ID *types.GUID `json:"ID,omitempty"`

	// AddressLine1: First address line.
	AddressLine1 *string `json:"AddressLine1,omitempty"`

	// AddressLine2: Second address line.
	AddressLine2 *string `json:"AddressLine2,omitempty"`

	// AddressLine3: Third address line.
	AddressLine3 *string `json:"AddressLine3,omitempty"`

	// City: City.
	City *string `json:"City,omitempty"`

	// Email: Email.
	Email *string `json:"Email,omitempty"`

	// IsAccountant: Indicates if the customer is an accountant himself.
	IsAccountant *bool `json:"IsAccountant,omitempty"`

	Logo *[]byte `json:"Logo,omitempty"`

	// MenuLogoUrl: Url to retrieve the logo of the accountant.
	MenuLogoUrl *string `json:"MenuLogoUrl,omitempty"`

	// Name: The name of the accountant.
	Name *string `json:"Name,omitempty"`

	// Phone: Phone.
	Phone *string `json:"Phone,omitempty"`

	// Postcode: Postcode.
	Postcode *string `json:"Postcode,omitempty"`

	// Website: Website.
	Website *string `json:"Website,omitempty"`
}

AccountantInfo: Service: System Entity: AccountantInfo URL: /api/v1/{division}/system/AccountantInfo HasWebhook: false IsInBeta: false Methods: GET Endpoint docs: https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=SystemSystemAccountantInfo

func (*AccountantInfo) GetPrimary

func (e *AccountantInfo) GetPrimary() *types.GUID

type AccountantInfoEndpoint

type AccountantInfoEndpoint service

AccountantInfoEndpoint is responsible for communicating with the AccountantInfo endpoint of the System service.

func (*AccountantInfoEndpoint) Get

func (s *AccountantInfoEndpoint) Get(ctx context.Context, division int, id *types.GUID) (*AccountantInfo, error)

Get the AccountantInfo entitiy in the provided division.

func (*AccountantInfoEndpoint) List

func (s *AccountantInfoEndpoint) List(ctx context.Context, division int, all bool, o *api.ListOptions) ([]*AccountantInfo, error)

List the AccountantInfo entities in the provided division. If all is true, all the paginated results are fetched; if false, list the first page.

func (*AccountantInfoEndpoint) UserHasRights

func (s *AccountantInfoEndpoint) UserHasRights(ctx context.Context, division int, method string) (bool, error)

type AllDivisions

type AllDivisions struct {
	MetaData *api.MetaData `json:"__metadata,omitempty"`
	// Code: Primary key
	Code *int `json:"Code,omitempty"`

	// AddressLine1: Address line 1
	AddressLine1 *string `json:"AddressLine1,omitempty"`

	// AddressLine2: Address line 2
	AddressLine2 *string `json:"AddressLine2,omitempty"`

	// AddressLine3: Address line 3
	AddressLine3 *string `json:"AddressLine3,omitempty"`

	// ArchiveDate: Date on which the division is archived
	ArchiveDate *types.Date `json:"ArchiveDate,omitempty"`

	// BlockingStatus: Values: 0 = Not blocked, 1 = Backup/restore, 2 = Conversion busy, 3 = Conversion shadow, 4 = Conversion waiting, 5 = Copy data waiting, 6 = Copy data busy
	BlockingStatus *int `json:"BlockingStatus,omitempty"`

	// BusinessTypeCode: Business type code
	BusinessTypeCode *string `json:"BusinessTypeCode,omitempty"`

	// BusinessTypeDescription: Business type description
	BusinessTypeDescription *string `json:"BusinessTypeDescription,omitempty"`

	// ChamberOfCommerceEstablishment: Chamber of commerce establishment
	ChamberOfCommerceEstablishment *string `json:"ChamberOfCommerceEstablishment,omitempty"`

	// ChamberOfCommerceNumber: Chamber of commerce number
	ChamberOfCommerceNumber *string `json:"ChamberOfCommerceNumber,omitempty"`

	// City: City
	City *string `json:"City,omitempty"`

	// Class_01: First division classification. User should have access rights to view division classifications.
	Class_01 *json.RawMessage `json:"Class_01,omitempty"`

	// Class_02: Second division classification. User should have access rights to view division classifications.
	Class_02 *json.RawMessage `json:"Class_02,omitempty"`

	// Class_03: Third division classification. User should have access rights to view division classifications.
	Class_03 *json.RawMessage `json:"Class_03,omitempty"`

	// Class_04: Fourth division classification. User should have access rights to view division classifications.
	Class_04 *json.RawMessage `json:"Class_04,omitempty"`

	// Class_05: Fifth division classification. User should have access rights to view division classifications.
	Class_05 *json.RawMessage `json:"Class_05,omitempty"`

	// CompanySizeCode: Company size code
	CompanySizeCode *string `json:"CompanySizeCode,omitempty"`

	// CompanySizeDescription: Company size description
	CompanySizeDescription *string `json:"CompanySizeDescription,omitempty"`

	// Country: Country of the division. Is used for determination of legislation
	Country *string `json:"Country,omitempty"`

	// Created: Creation date
	Created *types.Date `json:"Created,omitempty"`

	// Creator: User ID of creator
	Creator *types.GUID `json:"Creator,omitempty"`

	// CreatorFullName: Name of the creator
	CreatorFullName *string `json:"CreatorFullName,omitempty"`

	// Currency: Default currency
	Currency *string `json:"Currency,omitempty"`

	// Current: True when this division is most recently used by the API
	Current *bool `json:"Current,omitempty"`

	// Customer: Owner account of the division
	Customer *types.GUID `json:"Customer,omitempty"`

	// CustomerCode: Owner account code of the division
	CustomerCode *string `json:"CustomerCode,omitempty"`

	// CustomerName: Owner account name of the division
	CustomerName *string `json:"CustomerName,omitempty"`

	// DatevAccountantNumber: Accountant number DATEV (Germany)
	DatevAccountantNumber *string `json:"DatevAccountantNumber,omitempty"`

	// DatevClientNumber: Client number DATEV (Germany)
	DatevClientNumber *string `json:"DatevClientNumber,omitempty"`

	// Description: Description
	Description *string `json:"Description,omitempty"`

	// DivisionMoveDate: Date when the division was moved. Please resync all data when this value changes because value of Timestamp is regenerated.
	DivisionMoveDate *types.Date `json:"DivisionMoveDate,omitempty"`

	// Email: Email address
	Email *string `json:"Email,omitempty"`

	// Fax: Fax number
	Fax *string `json:"Fax,omitempty"`

	// Hid: Company number that is assigned by the customer
	Hid *int64 `json:"Hid,omitempty"`

	// IsDossierDivision: True if the division is a dossier division
	IsDossierDivision *bool `json:"IsDossierDivision,omitempty"`

	// IsMainDivision: True if the division is the main division
	IsMainDivision *bool `json:"IsMainDivision,omitempty"`

	// IsPracticeDivision: True if the division is a practice division
	IsPracticeDivision *bool `json:"IsPracticeDivision,omitempty"`

	// Legislation: Legislation
	Legislation *string `json:"Legislation,omitempty"`

	// Modified: Last modified date
	Modified *types.Date `json:"Modified,omitempty"`

	// Modifier: User ID of modifier
	Modifier *types.GUID `json:"Modifier,omitempty"`

	// ModifierFullName: Name of the last modifier
	ModifierFullName *string `json:"ModifierFullName,omitempty"`

	// OBNumber: The soletrader VAT number used for offical returns to tax authority
	OBNumber *string `json:"OBNumber,omitempty"`

	// Phone: Phone number
	Phone *string `json:"Phone,omitempty"`

	// Postcode: Postcode
	Postcode *string `json:"Postcode,omitempty"`

	// SbiCode: SBI code
	SbiCode *string `json:"SbiCode,omitempty"`

	// SbiDescription: SBI description
	SbiDescription *string `json:"SbiDescription,omitempty"`

	// SectorCode: Sector code
	SectorCode *string `json:"SectorCode,omitempty"`

	// SectorDescription: Sector description
	SectorDescription *string `json:"SectorDescription,omitempty"`

	// ShareCapital: the part of the capital of a company that comes from the issue of shares (France)
	ShareCapital *float64 `json:"ShareCapital,omitempty"`

	// SiretNumber: An INSEE code which allows the geographic identification of the company. (France)
	SiretNumber *string `json:"SiretNumber,omitempty"`

	// StartDate: Date on which the division becomes active
	StartDate *types.Date `json:"StartDate,omitempty"`

	// State: State/Province code
	State *string `json:"State,omitempty"`

	// Status: Follow the Division Status 0 for Inactive, 1 for Active and 2 for Archived Divisions
	Status *int `json:"Status,omitempty"`

	// SubsectorCode: Subsector code
	SubsectorCode *string `json:"SubsectorCode,omitempty"`

	// SubsectorDescription: Subsector description
	SubsectorDescription *string `json:"SubsectorDescription,omitempty"`

	// TaxOfficeNumber: Number of your local tax authority (Germany)
	TaxOfficeNumber *string `json:"TaxOfficeNumber,omitempty"`

	// TaxReferenceNumber: Local tax reference number (Germany)
	TaxReferenceNumber *string `json:"TaxReferenceNumber,omitempty"`

	// TemplateCode: Division template code
	TemplateCode *string `json:"TemplateCode,omitempty"`

	// VATNumber: The number under which the account is known at the Value Added Tax collection agency
	VATNumber *string `json:"VATNumber,omitempty"`

	// Website: Customer value, hyperlink to external website
	Website *string `json:"Website,omitempty"`
}

AllDivisions: Service: System Entity: AllDivisions URL: /api/v1/{division}/system/AllDivisions HasWebhook: false IsInBeta: false Methods: GET Endpoint docs: https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=SystemSystemAllDivisions

func (*AllDivisions) GetPrimary

func (e *AllDivisions) GetPrimary() *int

type AllDivisionsEndpoint

type AllDivisionsEndpoint service

AllDivisionsEndpoint is responsible for communicating with the AllDivisions endpoint of the System service.

func (*AllDivisionsEndpoint) Get

func (s *AllDivisionsEndpoint) Get(ctx context.Context, division int, id *int) (*AllDivisions, error)

Get the AllDivisions entitiy in the provided division.

func (*AllDivisionsEndpoint) List

func (s *AllDivisionsEndpoint) List(ctx context.Context, division int, all bool, o *api.ListOptions) ([]*AllDivisions, error)

List the AllDivisions entities in the provided division. If all is true, all the paginated results are fetched; if false, list the first page.

func (*AllDivisionsEndpoint) UserHasRights

func (s *AllDivisionsEndpoint) UserHasRights(ctx context.Context, division int, method string) (bool, error)

type AvailableFeatures

type AvailableFeatures struct {
	MetaData *api.MetaData `json:"__metadata,omitempty"`
	// ID: The ID of the feature.
	ID *int `json:"ID,omitempty"`

	// Description: The description of the feature.
	Description *string `json:"Description,omitempty"`
}

AvailableFeatures: Service: System Entity: AvailableFeatures URL: /api/v1/{division}/system/AvailableFeatures HasWebhook: false IsInBeta: false Methods: GET Endpoint docs: https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=SystemSystemAvailableFeatures

func (*AvailableFeatures) GetPrimary

func (e *AvailableFeatures) GetPrimary() *int

type AvailableFeaturesEndpoint

type AvailableFeaturesEndpoint service

AvailableFeaturesEndpoint is responsible for communicating with the AvailableFeatures endpoint of the System service.

func (*AvailableFeaturesEndpoint) Get

func (s *AvailableFeaturesEndpoint) Get(ctx context.Context, division int, id *int) (*AvailableFeatures, error)

Get the AvailableFeatures entitiy in the provided division.

func (*AvailableFeaturesEndpoint) List

func (s *AvailableFeaturesEndpoint) List(ctx context.Context, division int, all bool, o *api.ListOptions) ([]*AvailableFeatures, error)

List the AvailableFeatures entities in the provided division. If all is true, all the paginated results are fetched; if false, list the first page.

func (*AvailableFeaturesEndpoint) UserHasRights

func (s *AvailableFeaturesEndpoint) UserHasRights(ctx context.Context, division int, method string) (bool, error)

type Divisions

type Divisions struct {
	MetaData *api.MetaData `json:"__metadata,omitempty"`
	// Code: Primary key
	Code *int `json:"Code,omitempty"`

	// AddressLine1: Address line 1
	AddressLine1 *string `json:"AddressLine1,omitempty"`

	// AddressLine2: Address line 2
	AddressLine2 *string `json:"AddressLine2,omitempty"`

	// AddressLine3: Address line 3
	AddressLine3 *string `json:"AddressLine3,omitempty"`

	// ArchiveDate: Date on which the division is archived
	ArchiveDate *types.Date `json:"ArchiveDate,omitempty"`

	// BlockingStatus: Values: 0 = Not blocked, 1 = Backup/restore, 2 = Conversion busy, 3 = Conversion shadow, 4 = Conversion waiting, 5 = Copy data waiting, 6 = Copy data busy
	BlockingStatus *int `json:"BlockingStatus,omitempty"`

	// BusinessTypeCode: Business type code
	BusinessTypeCode *string `json:"BusinessTypeCode,omitempty"`

	// BusinessTypeDescription: Business type description
	BusinessTypeDescription *string `json:"BusinessTypeDescription,omitempty"`

	// ChamberOfCommerceEstablishment: Chamber of commerce establishment
	ChamberOfCommerceEstablishment *string `json:"ChamberOfCommerceEstablishment,omitempty"`

	// ChamberOfCommerceNumber: Chamber of commerce number
	ChamberOfCommerceNumber *string `json:"ChamberOfCommerceNumber,omitempty"`

	// City: City
	City *string `json:"City,omitempty"`

	// Class_01: First division classification. User should have access rights to view division classifications.
	Class_01 *json.RawMessage `json:"Class_01,omitempty"`

	// Class_02: Second division classification. User should have access rights to view division classifications.
	Class_02 *json.RawMessage `json:"Class_02,omitempty"`

	// Class_03: Third division classification. User should have access rights to view division classifications.
	Class_03 *json.RawMessage `json:"Class_03,omitempty"`

	// Class_04: Fourth division classification. User should have access rights to view division classifications.
	Class_04 *json.RawMessage `json:"Class_04,omitempty"`

	// Class_05: Fifth division classification. User should have access rights to view division classifications.
	Class_05 *json.RawMessage `json:"Class_05,omitempty"`

	// CompanySizeCode: Company size code
	CompanySizeCode *string `json:"CompanySizeCode,omitempty"`

	// CompanySizeDescription: Company size description
	CompanySizeDescription *string `json:"CompanySizeDescription,omitempty"`

	// Country: Country of the division. Is used for determination of legislation
	Country *string `json:"Country,omitempty"`

	// Created: Creation date
	Created *types.Date `json:"Created,omitempty"`

	// Creator: User ID of creator
	Creator *types.GUID `json:"Creator,omitempty"`

	// CreatorFullName: Name of the creator
	CreatorFullName *string `json:"CreatorFullName,omitempty"`

	// Currency: Default currency
	Currency *string `json:"Currency,omitempty"`

	// Current: True when this division is most recently used by the API
	Current *bool `json:"Current,omitempty"`

	// Customer: Owner account of the division
	Customer *types.GUID `json:"Customer,omitempty"`

	// CustomerCode: Owner account code of the division
	CustomerCode *string `json:"CustomerCode,omitempty"`

	// CustomerName: Owner account name of the division
	CustomerName *string `json:"CustomerName,omitempty"`

	// DatevAccountantNumber: Accountant number DATEV (Germany)
	DatevAccountantNumber *string `json:"DatevAccountantNumber,omitempty"`

	// DatevClientNumber: Client number DATEV (Germany)
	DatevClientNumber *string `json:"DatevClientNumber,omitempty"`

	// Description: Description
	Description *string `json:"Description,omitempty"`

	// DivisionMoveDate: Date when the division was moved. Please resync all data when this value changes because value of Timestamp is regenerated.
	DivisionMoveDate *types.Date `json:"DivisionMoveDate,omitempty"`

	// Email: Email address
	Email *string `json:"Email,omitempty"`

	// Fax: Fax number
	Fax *string `json:"Fax,omitempty"`

	// Hid: Company number that is assigned by the customer
	Hid *int64 `json:"Hid,string,omitempty"`

	// IsDossierDivision: True if the division is a dossier division
	IsDossierDivision *bool `json:"IsDossierDivision,omitempty"`

	// IsMainDivision: True if the division is the main division
	IsMainDivision *bool `json:"IsMainDivision,omitempty"`

	// IsPracticeDivision: True if the division is a practice division
	IsPracticeDivision *bool `json:"IsPracticeDivision,omitempty"`

	// Legislation: Legislation
	Legislation *string `json:"Legislation,omitempty"`

	// Modified: Last modified date
	Modified *types.Date `json:"Modified,omitempty"`

	// Modifier: User ID of modifier
	Modifier *types.GUID `json:"Modifier,omitempty"`

	// ModifierFullName: Name of the last modifier
	ModifierFullName *string `json:"ModifierFullName,omitempty"`

	// OBNumber: The soletrader VAT number used for offical returns to tax authority
	OBNumber *string `json:"OBNumber,omitempty"`

	// Phone: Phone number
	Phone *string `json:"Phone,omitempty"`

	// Postcode: Postcode
	Postcode *string `json:"Postcode,omitempty"`

	// SbiCode: SBI code
	SbiCode *string `json:"SbiCode,omitempty"`

	// SbiDescription: SBI description
	SbiDescription *string `json:"SbiDescription,omitempty"`

	// SectorCode: Sector code
	SectorCode *string `json:"SectorCode,omitempty"`

	// SectorDescription: Sector description
	SectorDescription *string `json:"SectorDescription,omitempty"`

	// ShareCapital: the part of the capital of a company that comes from the issue of shares (France)
	ShareCapital *float64 `json:"ShareCapital,omitempty"`

	// SiretNumber: An INSEE code which allows the geographic identification of the company. (France)
	SiretNumber *string `json:"SiretNumber,omitempty"`

	// StartDate: Date on which the division becomes active
	StartDate *types.Date `json:"StartDate,omitempty"`

	// State: State/Province code
	State *string `json:"State,omitempty"`

	// Status: Follow the Division Status 0 for Inactive, 1 for Active and 2 for Archived Divisions
	Status *int `json:"Status,omitempty"`

	// SubsectorCode: Subsector code
	SubsectorCode *string `json:"SubsectorCode,omitempty"`

	// SubsectorDescription: Subsector description
	SubsectorDescription *string `json:"SubsectorDescription,omitempty"`

	// TaxOfficeNumber: Number of your local tax authority (Germany)
	TaxOfficeNumber *string `json:"TaxOfficeNumber,omitempty"`

	// TaxReferenceNumber: Local tax reference number (Germany)
	TaxReferenceNumber *string `json:"TaxReferenceNumber,omitempty"`

	// TemplateCode: Division template code
	TemplateCode *string `json:"TemplateCode,omitempty"`

	// VATNumber: The number under which the account is known at the Value Added Tax collection agency
	VATNumber *string `json:"VATNumber,omitempty"`

	// Website: Customer value, hyperlink to external website
	Website *string `json:"Website,omitempty"`
}

Divisions: Service: System Entity: Divisions URL: /api/v1/{division}/system/Divisions HasWebhook: false IsInBeta: false Methods: GET Endpoint docs: https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=SystemSystemDivisions

func (*Divisions) GetPrimary

func (e *Divisions) GetPrimary() *int

type DivisionsEndpoint

type DivisionsEndpoint service

DivisionsEndpoint is responsible for communicating with the Divisions endpoint of the System service.

func (*DivisionsEndpoint) Get

func (s *DivisionsEndpoint) Get(ctx context.Context, division int, id *int) (*Divisions, error)

Get the Divisions entitiy in the provided division.

func (*DivisionsEndpoint) List

func (s *DivisionsEndpoint) List(ctx context.Context, division int, all bool, o *api.ListOptions) ([]*Divisions, error)

List the Divisions entities in the provided division. If all is true, all the paginated results are fetched; if false, list the first page.

func (*DivisionsEndpoint) UserHasRights

func (s *DivisionsEndpoint) UserHasRights(ctx context.Context, division int, method string) (bool, error)

type GetMostRecentlyUsedDivisions

type GetMostRecentlyUsedDivisions struct {
	MetaData *api.MetaData `json:"__metadata,omitempty"`
	// Code: Primary key
	Code *int `json:"Code,omitempty"`

	// AddressLine1: Address line 1
	AddressLine1 *string `json:"AddressLine1,omitempty"`

	// AddressLine2: Address line 2
	AddressLine2 *string `json:"AddressLine2,omitempty"`

	// AddressLine3: Address line 3
	AddressLine3 *string `json:"AddressLine3,omitempty"`

	// ArchiveDate: Date on which the division is archived
	ArchiveDate *types.Date `json:"ArchiveDate,omitempty"`

	// BlockingStatus: Values: 0 = Not blocked, 1 = Backup/restore, 2 = Conversion busy, 3 = Conversion shadow, 4 = Conversion waiting, 5 = Copy data waiting, 6 = Copy data busy
	BlockingStatus *int `json:"BlockingStatus,omitempty"`

	// BusinessTypeCode: Business type code
	BusinessTypeCode *string `json:"BusinessTypeCode,omitempty"`

	// BusinessTypeDescription: Business type description
	BusinessTypeDescription *string `json:"BusinessTypeDescription,omitempty"`

	// ChamberOfCommerceEstablishment: Chamber of commerce establishment
	ChamberOfCommerceEstablishment *string `json:"ChamberOfCommerceEstablishment,omitempty"`

	// ChamberOfCommerceNumber: Chamber of commerce number
	ChamberOfCommerceNumber *string `json:"ChamberOfCommerceNumber,omitempty"`

	// City: City
	City *string `json:"City,omitempty"`

	// Class_01: First division classification. User should have access rights to view division classifications.
	Class_01 *json.RawMessage `json:"Class_01,omitempty"`

	// Class_02: Second division classification. User should have access rights to view division classifications.
	Class_02 *json.RawMessage `json:"Class_02,omitempty"`

	// Class_03: Third division classification. User should have access rights to view division classifications.
	Class_03 *json.RawMessage `json:"Class_03,omitempty"`

	// Class_04: Fourth division classification. User should have access rights to view division classifications.
	Class_04 *json.RawMessage `json:"Class_04,omitempty"`

	// Class_05: Fifth division classification. User should have access rights to view division classifications.
	Class_05 *json.RawMessage `json:"Class_05,omitempty"`

	// CompanySizeCode: Company size code
	CompanySizeCode *string `json:"CompanySizeCode,omitempty"`

	// CompanySizeDescription: Company size description
	CompanySizeDescription *string `json:"CompanySizeDescription,omitempty"`

	// Country: Country of the division. Is used for determination of legislation
	Country *string `json:"Country,omitempty"`

	// Created: Creation date
	Created *types.Date `json:"Created,omitempty"`

	// Creator: User ID of creator
	Creator *types.GUID `json:"Creator,omitempty"`

	// CreatorFullName: Name of the creator
	CreatorFullName *string `json:"CreatorFullName,omitempty"`

	// Currency: Default currency
	Currency *string `json:"Currency,omitempty"`

	// Current: True when this division is most recently used by the API
	Current *bool `json:"Current,omitempty"`

	// Customer: Owner account of the division
	Customer *types.GUID `json:"Customer,omitempty"`

	// CustomerCode: Owner account code of the division
	CustomerCode *string `json:"CustomerCode,omitempty"`

	// CustomerName: Owner account name of the division
	CustomerName *string `json:"CustomerName,omitempty"`

	// DatevAccountantNumber: Accountant number DATEV (Germany)
	DatevAccountantNumber *string `json:"DatevAccountantNumber,omitempty"`

	// DatevClientNumber: Client number DATEV (Germany)
	DatevClientNumber *string `json:"DatevClientNumber,omitempty"`

	// Description: Description
	Description *string `json:"Description,omitempty"`

	// DivisionMoveDate: Date when the division was moved. Please resync all data when this value changes because value of Timestamp is regenerated.
	DivisionMoveDate *types.Date `json:"DivisionMoveDate,omitempty"`

	// Email: Email address
	Email *string `json:"Email,omitempty"`

	// Fax: Fax number
	Fax *string `json:"Fax,omitempty"`

	// Hid: Company number that is assigned by the customer
	Hid *int64 `json:"Hid,omitempty"`

	// IsDossierDivision: True if the division is a dossier division
	IsDossierDivision *bool `json:"IsDossierDivision,omitempty"`

	// IsMainDivision: True if the division is the main division
	IsMainDivision *bool `json:"IsMainDivision,omitempty"`

	// IsPracticeDivision: True if the division is a practice division
	IsPracticeDivision *bool `json:"IsPracticeDivision,omitempty"`

	// Legislation: Legislation
	Legislation *string `json:"Legislation,omitempty"`

	// Modified: Last modified date
	Modified *types.Date `json:"Modified,omitempty"`

	// Modifier: User ID of modifier
	Modifier *types.GUID `json:"Modifier,omitempty"`

	// ModifierFullName: Name of the last modifier
	ModifierFullName *string `json:"ModifierFullName,omitempty"`

	// OBNumber: The soletrader VAT number used for offical returns to tax authority
	OBNumber *string `json:"OBNumber,omitempty"`

	// Phone: Phone number
	Phone *string `json:"Phone,omitempty"`

	// Postcode: Postcode
	Postcode *string `json:"Postcode,omitempty"`

	// SbiCode: SBI code
	SbiCode *string `json:"SbiCode,omitempty"`

	// SbiDescription: SBI description
	SbiDescription *string `json:"SbiDescription,omitempty"`

	// SectorCode: Sector code
	SectorCode *string `json:"SectorCode,omitempty"`

	// SectorDescription: Sector description
	SectorDescription *string `json:"SectorDescription,omitempty"`

	// ShareCapital: the part of the capital of a company that comes from the issue of shares (France)
	ShareCapital *float64 `json:"ShareCapital,omitempty"`

	// SiretNumber: An INSEE code which allows the geographic identification of the company. (France)
	SiretNumber *string `json:"SiretNumber,omitempty"`

	// StartDate: Date on which the division becomes active
	StartDate *types.Date `json:"StartDate,omitempty"`

	// State: State/Province code
	State *string `json:"State,omitempty"`

	// Status: Follow the Division Status 0 for Inactive, 1 for Active and 2 for Archived Divisions
	Status *int `json:"Status,omitempty"`

	// SubsectorCode: Subsector code
	SubsectorCode *string `json:"SubsectorCode,omitempty"`

	// SubsectorDescription: Subsector description
	SubsectorDescription *string `json:"SubsectorDescription,omitempty"`

	// TaxOfficeNumber: Number of your local tax authority (Germany)
	TaxOfficeNumber *string `json:"TaxOfficeNumber,omitempty"`

	// TaxReferenceNumber: Local tax reference number (Germany)
	TaxReferenceNumber *string `json:"TaxReferenceNumber,omitempty"`

	// TemplateCode: Division template code
	TemplateCode *string `json:"TemplateCode,omitempty"`

	// VATNumber: The number under which the account is known at the Value Added Tax collection agency
	VATNumber *string `json:"VATNumber,omitempty"`

	// Website: Customer value, hyperlink to external website
	Website *string `json:"Website,omitempty"`
}

GetMostRecentlyUsedDivisions: Service: System Entity: GetMostRecentlyUsedDivisions URL: /api/v1/{division}/system/GetMostRecentlyUsedDivisions HasWebhook: false IsInBeta: false Methods: GET Endpoint docs: https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=SystemSystemGetMostRecentlyUsedDivisions

func (*GetMostRecentlyUsedDivisions) GetPrimary

func (e *GetMostRecentlyUsedDivisions) GetPrimary() *int

type GetMostRecentlyUsedDivisionsEndpoint

type GetMostRecentlyUsedDivisionsEndpoint service

GetMostRecentlyUsedDivisionsEndpoint is responsible for communicating with the GetMostRecentlyUsedDivisions endpoint of the System service.

func (*GetMostRecentlyUsedDivisionsEndpoint) Get

Get the GetMostRecentlyUsedDivisions entitiy in the provided division.

func (*GetMostRecentlyUsedDivisionsEndpoint) List

List the GetMostRecentlyUsedDivisions entities in the provided division. If all is true, all the paginated results are fetched; if false, list the first page.

func (*GetMostRecentlyUsedDivisionsEndpoint) UserHasRights

func (s *GetMostRecentlyUsedDivisionsEndpoint) UserHasRights(ctx context.Context, division int, method string) (bool, error)

type Me

type Me struct {
	MetaData *api.MetaData `json:"__metadata,omitempty"`
	// UserID: Primary key
	UserID *types.GUID `json:"UserID,omitempty"`

	// AccountingDivision: Accounting division number
	AccountingDivision *int `json:"AccountingDivision,omitempty"`

	// CurrentDivision: Division number that is currently used in the API. You should use a division number in the url
	CurrentDivision *int `json:"CurrentDivision,omitempty"`

	// CustomerCode: Account code of the logged in user.
	CustomerCode *string `json:"CustomerCode,omitempty"`

	// DivisionCustomer: Owner account of the division
	DivisionCustomer *types.GUID `json:"DivisionCustomer,omitempty"`

	// DivisionCustomerCode: Owner account code of the division
	DivisionCustomerCode *string `json:"DivisionCustomerCode,omitempty"`

	// DivisionCustomerName: Owner account name of the division
	DivisionCustomerName *string `json:"DivisionCustomerName,omitempty"`

	// DivisionCustomerSiretNumber: Owner account SIRET Number of the division for French legislation
	DivisionCustomerSiretNumber *string `json:"DivisionCustomerSiretNumber,omitempty"`

	// DivisionCustomerVatNumber: Owner account VAT Number of the division
	DivisionCustomerVatNumber *string `json:"DivisionCustomerVatNumber,omitempty"`

	// DossierDivision: Dossier division number (optional)
	DossierDivision *int `json:"DossierDivision,omitempty"`

	// Email: Email address of the user
	Email *string `json:"Email,omitempty"`

	// EmployeeID: Employee ID
	EmployeeID *types.GUID `json:"EmployeeID,omitempty"`

	// FirstName: First name
	FirstName *string `json:"FirstName,omitempty"`

	// FullName: Full name of the user
	FullName *string `json:"FullName,omitempty"`

	// Gender: Gender: M=Male, V=Female, O=Unknown
	Gender *string `json:"Gender,omitempty"`

	// Initials: Initials
	Initials *string `json:"Initials,omitempty"`

	// IsClientUser: Client user of an accountant: either a portal user or a non-accountant user with his own license (internal use)
	IsClientUser *bool `json:"IsClientUser,omitempty"`

	// IsMyFirmLiteUser: MyFirm lite user of accountant with limited access and specific start page (internal use)
	IsMyFirmLiteUser *bool `json:"IsMyFirmLiteUser,omitempty"`

	// IsMyFirmPortalUser: MyFirm user of accountant with limited access and specific start page (internal use)
	IsMyFirmPortalUser *bool `json:"IsMyFirmPortalUser,omitempty"`

	// Language: Language spoken by this user
	Language *string `json:"Language,omitempty"`

	// LanguageCode: Language (culture) that is used in Exact Online
	LanguageCode *string `json:"LanguageCode,omitempty"`

	// LastName: Last name
	LastName *string `json:"LastName,omitempty"`

	// Legislation: Legislation
	Legislation *int64 `json:"Legislation,string,omitempty"`

	// MiddleName: Middle name
	MiddleName *string `json:"MiddleName,omitempty"`

	// Mobile: Mobile phone
	Mobile *string `json:"Mobile,omitempty"`

	// Nationality: Nationality
	Nationality *string `json:"Nationality,omitempty"`

	// Phone: Phone number
	Phone *string `json:"Phone,omitempty"`

	// PhoneExtension: Phone number extension
	PhoneExtension *string `json:"PhoneExtension,omitempty"`

	// PictureUrl: Url that can be used to retrieve the picture of the user
	PictureUrl *string `json:"PictureUrl,omitempty"`

	// ServerTime: The current date and time in Exact Online
	ServerTime *string `json:"ServerTime,omitempty"`

	// ServerUtcOffset: The time difference with UTC in seconds
	ServerUtcOffset *float64 `json:"ServerUtcOffset,omitempty"`

	// ThumbnailPicture: Binary thumbnail picture of this user (This property will never return value and will be removed in the near future.)
	ThumbnailPicture *[]byte `json:"ThumbnailPicture,omitempty"`

	// ThumbnailPictureFormat: File type of the picture (This property will never return value and will be removed in the near future.)
	ThumbnailPictureFormat *string `json:"ThumbnailPictureFormat,omitempty"`

	// Title: Title
	Title *string `json:"Title,omitempty"`

	// UserName: Login name of the user
	UserName *string `json:"UserName,omitempty"`
}

Me: Service: System Entity: Me URL: /api/v1/current/Me HasWebhook: false IsInBeta: false Methods: GET Endpoint docs: https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=SystemSystemMe

func (*Me) GetPrimary

func (e *Me) GetPrimary() *types.GUID

type MeEndpoint

type MeEndpoint service

MeEndpoint is responsible for communicating with the Me endpoint of the System service.

func (*MeEndpoint) Get

func (s *MeEndpoint) Get(ctx context.Context, id *types.GUID) (*Me, error)

Get the Me entitiy.

func (*MeEndpoint) List

func (s *MeEndpoint) List(ctx context.Context, all bool, o *api.ListOptions) ([]*Me, error)

List the Me entities. If all is true, all the paginated results are fetched; if false, list the first page.

func (*MeEndpoint) UserHasRights

func (s *MeEndpoint) UserHasRights(ctx context.Context, division int, method string) (bool, error)

type SystemService

type SystemService struct {

	// Endpoints available under this service
	AccountantInfo               *AccountantInfoEndpoint
	AllDivisions                 *AllDivisionsEndpoint
	AvailableFeatures            *AvailableFeaturesEndpoint
	Divisions                    *DivisionsEndpoint
	GetMostRecentlyUsedDivisions *GetMostRecentlyUsedDivisionsEndpoint
	Me                           *MeEndpoint
	// contains filtered or unexported fields
}

SystemService is responsible for communication with the System endpoints of the Exact Online API.

func NewSystemService

func NewSystemService(apiClient *api.Client) *SystemService

NewSystemService creates a new initialized instance of the SystemService.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL