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.
Index ¶
- type Currencies
- type CurrenciesEndpoint
- func (s *CurrenciesEndpoint) Get(ctx context.Context, division int, id *string) (*Currencies, error)
- func (s *CurrenciesEndpoint) List(ctx context.Context, division int, all bool, o *api.ListOptions) ([]*Currencies, error)
- func (s *CurrenciesEndpoint) UserHasRights(ctx context.Context, division int, method string) (bool, error)
- type GeneralService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Currencies ¶
type Currencies struct { MetaData *api.MetaData `json:"__metadata,omitempty"` // Code: Primary key Code *string `json:"Code,omitempty"` // AmountPrecision: Defines the number of decimals of the exchange rate used to calculate the amount in domestic currency from the amount in foreign currency AmountPrecision *float64 `json:"AmountPrecision,omitempty"` // Created: Creation date Created *types.Date `json:"Created,omitempty"` // Description: Description of the currency Description *string `json:"Description,omitempty"` // Modified: Last modified date Modified *types.Date `json:"Modified,omitempty"` // PricePrecision: Defines the number of decimals used to calculate the item price in created invoices PricePrecision *float64 `json:"PricePrecision,omitempty"` }
Currencies: Service: General Entity: Currencies URL: /api/v1/{division}/general/Currencies HasWebhook: false IsInBeta: false Methods: GET Endpoint docs: https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=GeneralCurrencies
func (*Currencies) GetPrimary ¶
func (e *Currencies) GetPrimary() *string
type CurrenciesEndpoint ¶
type CurrenciesEndpoint service
CurrenciesEndpoint is responsible for communicating with the Currencies endpoint of the General service.
func (*CurrenciesEndpoint) Get ¶
func (s *CurrenciesEndpoint) Get(ctx context.Context, division int, id *string) (*Currencies, error)
Get the Currencies entitiy in the provided division.
func (*CurrenciesEndpoint) List ¶
func (s *CurrenciesEndpoint) List(ctx context.Context, division int, all bool, o *api.ListOptions) ([]*Currencies, error)
List the Currencies entities in the provided division. If all is true, all the paginated results are fetched; if false, list the first page.
func (*CurrenciesEndpoint) UserHasRights ¶
type GeneralService ¶
type GeneralService struct { // Endpoints available under this service Currencies *CurrenciesEndpoint // contains filtered or unexported fields }
GeneralService is responsible for communication with the General endpoints of the Exact Online API.
func NewGeneralService ¶
func NewGeneralService(apiClient *api.Client) *GeneralService
NewGeneralService creates a new initialized instance of the GeneralService.