Documentation ¶
Index ¶
- type Employee
- type Employees
- func FindEmployee(provider *xerogolang.Provider, session goth.Session, employeeID string) (*Employees, error)
- func FindEmployees(provider *xerogolang.Provider, session goth.Session, ...) (*Employees, error)
- func FindEmployeesModifiedSince(provider *xerogolang.Provider, session goth.Session, modifiedSince time.Time, ...) (*Employees, error)
- type NumberOfUnit
- type Timesheet
- type TimesheetLine
- type Timesheets
- func FindTimesheet(provider *xerogolang.Provider, session goth.Session, timesheetID string) (*Timesheets, error)
- func FindTimesheets(provider *xerogolang.Provider, session goth.Session, ...) (*Timesheets, error)
- func FindTimesheetsModifiedSince(provider *xerogolang.Provider, session goth.Session, modifiedSince time.Time, ...) (*Timesheets, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Employee ¶
type Employee struct { // The Xero identifier for an employee e.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9 EmployeeID string `json:"EmployeeID,omitempty"` // Current status of an employee – see employee status types Status string `json:"Status,omitempty"` // First name of an employee (max length = 255) FirstName string `json:"FirstName,omitempty"` // Last name of an employee (max length = 255) LastName string `json:"LastName,omitempty"` // Email string `json:"Email,omitempty"` Gender string `json:"Gender,omitempty"` Phone string `json:"Gender,omitempty"` UpdatedDateUTC string `json:"UpdatedDateUTC,omitempty" xml:"-"` }
Employee - placeholder waiting for .
type Employees ¶
type Employees struct {
Employees []Employee `json:"Employees" xml:"Employee"`
}
<Employee>
<EmployeeID>fb4ebd68-6568-41eb-96ab-628a0f54b4b8</EmployeeID> <FirstName>James</FirstName> <LastName>Lebron</LastName> <Status>ACTIVE</Status> <Email>JL@madeup.email.com</Email> <DateOfBirth>1978-08-13T00:00:00</DateOfBirth> <Gender>M</Gender> <Phone>0400-000-123</Phone> <Mobile> 408-230-9732</Mobile> <StartDate>2012-01-30T00:00:00</StartDate> <OrdinaryEarningsRateID>72e962d1-fcac-4083-8a71-742bb3e7ae14</OrdinaryEarningsRateID> <PayrollCalendarID>cb8e4706-2fdc-4170-aebd-0ffb855557f5</PayrollCalendarID> <UpdatedDateUTC>2013-04-01T23:02:36</UpdatedDateUTC> </Employee>
Employees contains a collection of Employees
func FindEmployee ¶
func FindEmployee(provider *xerogolang.Provider, session goth.Session, employeeID string) (*Employees, error)
FindEmployee will get a single Employee
func FindEmployees ¶
func FindEmployees(provider *xerogolang.Provider, session goth.Session, querystringParameters map[string]string) (*Employees, error)
FindEmployees will get all Employees.
func FindEmployeesModifiedSince ¶
func FindEmployeesModifiedSince(provider *xerogolang.Provider, session goth.Session, modifiedSince time.Time, querystringParameters map[string]string) (*Employees, error)
FindEmployeesModifiedSince
type NumberOfUnit ¶
type NumberOfUnit struct {
NumberOfUnit float64 `json:"NumberOfUnit,omitempty" xml:"NumberOfUnit,omitempty"`
}
type Timesheet ¶
type Timesheet struct { // The Xero identifier for an timesheet e.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9 TimesheetID string `json:"TimesheetID,omitempty" xml:"TimesheetID"` StartDateUTC string `json:"StartDate,omitempty" xml:"StartDate"` EndDateUTC string `json:"EndDate,omitempty" xml:"EndDate"` Status string `json:"Status,omitempty" xml:"Status,omitempty"` Hours float64 `json:"Hours,omitempty" xml:"Hours,omitempty"` TimesheetLine []TimesheetLine `json:"TimesheetLines,omitempty" xml:"TimesheetLines,omitempty"` }
Timesheet - placeholder waiting for .
type TimesheetLine ¶
type Timesheets ¶
type Timesheets struct { ID string `json:"Id,omitempty" xml:"Timesheet"` Status string `json:"Status,omitempty" xml:"Status"` ProviderName string `json:"ProviderName,omitempty" xml:"ProviderName"` DateTimeUTC string `json:"DateTimeUTC,omitempty" xml:"-"` Timesheets []Timesheet `json:"Timesheets" xml:"Timesheets"` }
<Timesheet>
<TimesheetID>5e493b2e-c3ed-4172-95b2-593438101f76</TimesheetID> <StartDate>2018-03-25T00:00:00</StartDate> <EndDate>2018-04-01T00:00:00</EndDate> <Status>Draft</Status> <TimesheetLines> <TimesheetLine> <EarningsRateID>0daff504-2d42-4243-bdac-24f2bae0ce7c</EarningsRateID> <NumberOfUnits> <NumberOfUnit>8</NumberOfUnit> <NumberOfUnit>8</NumberOfUnit> <NumberOfUnit>8</NumberOfUnit> <NumberOfUnit>8</NumberOfUnit> <NumberOfUnit>8</NumberOfUnit> <NumberOfUnit>0</NumberOfUnit> <NumberOfUnit>0</NumberOfUnit> </NumberOfUnits> </TimesheetLine> </TimesheetLines>
</Timesheet>
Timesheets contains a collection of Timesheets
func FindTimesheet ¶
func FindTimesheet(provider *xerogolang.Provider, session goth.Session, timesheetID string) (*Timesheets, error)
FindTimesheet will get a single Timesheet
func FindTimesheets ¶
func FindTimesheets(provider *xerogolang.Provider, session goth.Session, querystringParameters map[string]string) (*Timesheets, error)
FindTimesheets will get all Timesheets.
func FindTimesheetsModifiedSince ¶
func FindTimesheetsModifiedSince(provider *xerogolang.Provider, session goth.Session, modifiedSince time.Time, querystringParameters map[string]string) (*Timesheets, error)
FindTimesheetsModifiedSince
func (*Timesheets) Create ¶
func (c *Timesheets) Create(provider *xerogolang.Provider, session goth.Session) (*Timesheets, error)
Create will create Timesheets given an Timesheets struct
func (*Timesheets) Update ¶
func (c *Timesheets) Update(provider *xerogolang.Provider, session goth.Session) (*Timesheets, error)
Update will update a Timesheet given a Timesheets struct This will only handle single Timesheet - you cannot update multiple Timesheets in a single call