workday

package
v0.0.0-...-183e0b2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDataFromWorkday

func GetDataFromWorkday(workerID string, startDate string, endDate string) ([]byte, error)

func SortCalculatedTimeBlocks

func SortCalculatedTimeBlocks(TimeBlocks map[string]WorkerTimeBlockInfo, data []byte) (int, error)

Types

type BlockID

type BlockID struct {
	ID   string `xml:",chardata"`
	Type string `xml:"type,attr"`
}

type CalculatedTimeBlock

type CalculatedTimeBlock struct {
	Worker_Time_Block_Reference_ID []BlockID                 `xml:"Worker_Time_Block_Reference>ID"`
	Calculated_Time_Block_Data     []CalculatedTimeBlockData `xml:"Calculated_Time_Block_Data"`
}

type CalculatedTimeBlockData

type CalculatedTimeBlockData struct {
	In_Time             string `xml:"In_Time"`
	Out_Time            string `xml:"Out_Time"`
	Calculated_Quantity string `xml:"Calculated_Quantity"`

	Status_Reference          StatusReference         `xml:"Status_Reference"`
	Calculation_Tag_Reference CalculationTagReference `xml:"Calculation_Tag_Reference"`
}

type CalculationTagReference

type CalculationTagReference struct {
	Calculation_Tag_Reference_Descriptor string    `xml:"Descriptor,attr"`
	Calculation_Tag_Reference            []BlockID `xml:"ID"`
}

type StatusReference

type StatusReference struct {
	Status_Reference_Descriptor string    `xml:"Descriptor,attr"`
	Status_Reference            []BlockID `xml:"ID"`
}

type TimeBlockEnvelope

type TimeBlockEnvelope struct {
	Calculated_Time_Block []CalculatedTimeBlock `xml:"Body>Get_Calculated_Time_Blocks_Response>Response_Data>Calculated_Time_Block"`
}

type WorkerTimeBlockInfo

type WorkerTimeBlockInfo struct {
	In_Time                        string
	Out_Time                       string
	Calculated_Quantity            string
	Time_Calculation_Tag_ID        string
	Time_Tracking_Set_Up_Option_ID string
	Worker_ID                      string
}

Jump to

Keyboard shortcuts

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