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 RequestAttachments
- type RequestAttachmentsEndpoint
- func (s *RequestAttachmentsEndpoint) Get(ctx context.Context, division int, id *types.GUID) (*RequestAttachments, error)
- func (s *RequestAttachmentsEndpoint) List(ctx context.Context, division int, all bool, o *api.ListOptions) ([]*RequestAttachments, error)
- func (s *RequestAttachmentsEndpoint) UserHasRights(ctx context.Context, division int, method string) (bool, error)
- type WorkflowService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestAttachments ¶
type RequestAttachments struct { MetaData *api.MetaData `json:"__metadata,omitempty"` // ID: Primary key ID *types.GUID `json:"ID,omitempty"` // Division: The division Division *int `json:"Division,omitempty"` // DownloadUrl: To get the file in its original format (xml, jpg, pdf, etc.) append &Download=1 to the url. DownloadUrl *string `json:"DownloadUrl,omitempty"` // FileName: Filename of the attachment FileName *string `json:"FileName,omitempty"` // FileSize: File size of the attachment FileSize *float64 `json:"FileSize,omitempty"` // Request: The request this attachment is linked to Request *types.GUID `json:"Request,omitempty"` }
RequestAttachments: Service: Workflow Entity: RequestAttachments URL: /api/v1/beta/{division}/workflow/RequestAttachments HasWebhook: false IsInBeta: true Methods: GET Endpoint docs: https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=WorkflowRequestAttachments
func (*RequestAttachments) GetPrimary ¶
func (e *RequestAttachments) GetPrimary() *types.GUID
type RequestAttachmentsEndpoint ¶
type RequestAttachmentsEndpoint service
RequestAttachmentsEndpoint is responsible for communicating with the RequestAttachments endpoint of the Workflow service.
func (*RequestAttachmentsEndpoint) Get ¶
func (s *RequestAttachmentsEndpoint) Get(ctx context.Context, division int, id *types.GUID) (*RequestAttachments, error)
Get the RequestAttachments entitiy in the provided division.
func (*RequestAttachmentsEndpoint) List ¶
func (s *RequestAttachmentsEndpoint) List(ctx context.Context, division int, all bool, o *api.ListOptions) ([]*RequestAttachments, error)
List the RequestAttachments entities in the provided division. If all is true, all the paginated results are fetched; if false, list the first page.
func (*RequestAttachmentsEndpoint) UserHasRights ¶
type WorkflowService ¶
type WorkflowService struct { // Endpoints available under this service RequestAttachments *RequestAttachmentsEndpoint // contains filtered or unexported fields }
WorkflowService is responsible for communication with the Workflow endpoints of the Exact Online API.
func NewWorkflowService ¶
func NewWorkflowService(apiClient *api.Client) *WorkflowService
NewWorkflowService creates a new initialized instance of the WorkflowService.