Shift

November 20, 2019 ยท View on GitHub

Description

A record of the hourly rate, start, and end times for a single work shift for an employee. May include a record of the start and end times for breaks taken during the shift.

Properties

NameGetterSetterTypeDescriptionNotes
idgetId()setId($value)stringUUID for this object[optional]
employee_idgetEmployeeId()setEmployeeId($value)stringThe ID of the employee this shift belongs to.
location_idgetLocationId()setLocationId($value)stringThe ID of the location this shift occurred at. Should be based on where the employee clocked in.[optional]
timezonegetTimezone()setTimezone($value)stringRead-only convenience value that is calculated from the location based on `location_id`. Format: the IANA Timezone Database identifier for the location timezone.[optional]
start_atgetStartAt()setStartAt($value)stringRFC 3339; shifted to location timezone + offset. Precision up to the minute is respected; seconds are truncated.
end_atgetEndAt()setEndAt($value)stringRFC 3339; shifted to timezone + offset. Precision up to the minute is respected; seconds are truncated. The `end_at` minute is not counted when the shift length is calculated. For example, a shift from `00:00` to `08:01` is considered an 8 hour shift (midnight to 8am).[optional]
wagegetWage()setWage($value)\SquareConnect\Model\ShiftWageJob and pay related information. If wage is not set on create, will default to a wage of zero money. If title is not set on create, will default to the name of the role the employee is assigned to, if any.[optional]
breaksgetBreaks()setBreaks($value)\SquareConnect\Model\ModelBreak[]A list of any paid or unpaid breaks that were taken during this shift.[optional]
statusgetStatus()setStatus($value)stringDescribes working state of the current `Shift`. See ShiftStatus for possible values[optional]
versiongetVersion()setVersion($value)intUsed for resolving concurrency issues; request will fail if version provided does not match server version at time of request. If not provided, Square executes a blind write; potentially overwriting data from another write.[optional]
created_atgetCreatedAt()setCreatedAt($value)stringA read-only timestamp in RFC 3339 format; presented in UTC.[optional]
updated_atgetUpdatedAt()setUpdatedAt($value)stringA read-only timestamp in RFC 3339 format; presented in UTC.[optional]

Note: All properties are protected and only accessed via getters and setters.

[Back to Model list] [Back to API list] [Back to README]