Package com.clover.sdk.v3.employees
Class Shift
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.employees.Shift
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class Shift extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Shift.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<Shift>
CREATOR
static JSONifiable.Creator<Shift>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description Shift()
Constructs a new empty instance.protected
Shift(boolean noInit)
Constructs a new empty instance.Shift(Shift src)
Constructs a new instance that is a deep copy of the source instance.Shift(String json)
Constructs a new instance from the given JSON String.Shift(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCashTipsCollected()
Clears the 'cashTipsCollected' field, the 'has' method for this field will now return falsevoid
clearEmployee()
Clears the 'employee' field, the 'has' method for this field will now return falsevoid
clearId()
Clears the 'id' field, the 'has' method for this field will now return falsevoid
clearInTime()
Clears the 'inTime' field, the 'has' method for this field will now return falsevoid
clearOutTime()
Clears the 'outTime' field, the 'has' method for this field will now return falsevoid
clearOverrideInEmployee()
Clears the 'overrideInEmployee' field, the 'has' method for this field will now return falsevoid
clearOverrideInTime()
Clears the 'overrideInTime' field, the 'has' method for this field will now return falsevoid
clearOverrideOutEmployee()
Clears the 'overrideOutEmployee' field, the 'has' method for this field will now return falsevoid
clearOverrideOutTime()
Clears the 'overrideOutTime' field, the 'has' method for this field will now return falsevoid
clearServerBanking()
Clears the 'serverBanking' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.Shift
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.Long
getCashTipsCollected()
Amount of cash tips collectedEmployee
getEmployee()
The employee that worked this shiftprotected GenericClient
getGenericClient()
String
getId()
Unique identifierLong
getInTime()
Clock in timeJSONObject
getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.Long
getOutTime()
Clock out timeEmployee
getOverrideInEmployee()
The employee who overrode the clock in timeLong
getOverrideInTime()
Overridden clock in timeEmployee
getOverrideOutEmployee()
The employee who overrode the clock out timeLong
getOverrideOutTime()
Overridden clock out timeBoolean
getServerBanking()
Whether the employee used server bankingboolean
hasCashTipsCollected()
Checks whether the 'cashTipsCollected' field has been set, however the value could be nullboolean
hasEmployee()
Checks whether the 'employee' field has been set, however the value could be nullboolean
hasId()
Checks whether the 'id' field has been set, however the value could be nullboolean
hasInTime()
Checks whether the 'inTime' field has been set, however the value could be nullboolean
hasOutTime()
Checks whether the 'outTime' field has been set, however the value could be nullboolean
hasOverrideInEmployee()
Checks whether the 'overrideInEmployee' field has been set, however the value could be nullboolean
hasOverrideInTime()
Checks whether the 'overrideInTime' field has been set, however the value could be nullboolean
hasOverrideOutEmployee()
Checks whether the 'overrideOutEmployee' field has been set, however the value could be nullboolean
hasOverrideOutTime()
Checks whether the 'overrideOutTime' field has been set, however the value could be nullboolean
hasServerBanking()
Checks whether the 'serverBanking' field has been set, however the value could be nullboolean
isNotNullCashTipsCollected()
Checks whether the 'cashTipsCollected' field is set and is not nullboolean
isNotNullEmployee()
Checks whether the 'employee' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullInTime()
Checks whether the 'inTime' field is set and is not nullboolean
isNotNullOutTime()
Checks whether the 'outTime' field is set and is not nullboolean
isNotNullOverrideInEmployee()
Checks whether the 'overrideInEmployee' field is set and is not nullboolean
isNotNullOverrideInTime()
Checks whether the 'overrideInTime' field is set and is not nullboolean
isNotNullOverrideOutEmployee()
Checks whether the 'overrideOutEmployee' field is set and is not nullboolean
isNotNullOverrideOutTime()
Checks whether the 'overrideOutTime' field is set and is not nullboolean
isNotNullServerBanking()
Checks whether the 'serverBanking' field is set and is not nullvoid
mergeChanges(Shift src)
Copy all the changed fields from the given source to this instance.void
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.Shift
setCashTipsCollected(Long cashTipsCollected)
Sets the field 'cashTipsCollected'.Shift
setEmployee(Employee employee)
Sets the field 'employee'.Shift
setId(String id)
Sets the field 'id'.Shift
setInTime(Long inTime)
Sets the field 'inTime'.Shift
setOutTime(Long outTime)
Sets the field 'outTime'.Shift
setOverrideInEmployee(Employee overrideInEmployee)
Sets the field 'overrideInEmployee'.Shift
setOverrideInTime(Long overrideInTime)
Sets the field 'overrideInTime'.Shift
setOverrideOutEmployee(Employee overrideOutEmployee)
Sets the field 'overrideOutEmployee'.Shift
setOverrideOutTime(Long overrideOutTime)
Sets the field 'overrideOutTime'.Shift
setServerBanking(Boolean serverBanking)
Sets the field 'serverBanking'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<Shift> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<Shift> JSON_CREATOR
-
-
Constructor Detail
-
Shift
public Shift()
Constructs a new empty instance.
-
Shift
protected Shift(boolean noInit)
Constructs a new empty instance.
-
Shift
public Shift(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
Shift
public Shift(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
Shift
public Shift(Shift src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getId
public String getId()
Unique identifier
-
getEmployee
public Employee getEmployee()
The employee that worked this shift
-
getCashTipsCollected
public Long getCashTipsCollected()
Amount of cash tips collected
-
getServerBanking
public Boolean getServerBanking()
Whether the employee used server banking
-
getInTime
public Long getInTime()
Clock in time
-
getOverrideInTime
public Long getOverrideInTime()
Overridden clock in time
-
getOverrideInEmployee
public Employee getOverrideInEmployee()
The employee who overrode the clock in time
-
getOutTime
public Long getOutTime()
Clock out time
-
getOverrideOutTime
public Long getOverrideOutTime()
Overridden clock out time
-
getOverrideOutEmployee
public Employee getOverrideOutEmployee()
The employee who overrode the clock out time
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
getJSONObject
public JSONObject getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.- Specified by:
getJSONObject
in interfaceJSONifiable
-
isNotNullId
public boolean isNotNullId()
Checks whether the 'id' field is set and is not null
-
isNotNullEmployee
public boolean isNotNullEmployee()
Checks whether the 'employee' field is set and is not null
-
isNotNullCashTipsCollected
public boolean isNotNullCashTipsCollected()
Checks whether the 'cashTipsCollected' field is set and is not null
-
isNotNullServerBanking
public boolean isNotNullServerBanking()
Checks whether the 'serverBanking' field is set and is not null
-
isNotNullInTime
public boolean isNotNullInTime()
Checks whether the 'inTime' field is set and is not null
-
isNotNullOverrideInTime
public boolean isNotNullOverrideInTime()
Checks whether the 'overrideInTime' field is set and is not null
-
isNotNullOverrideInEmployee
public boolean isNotNullOverrideInEmployee()
Checks whether the 'overrideInEmployee' field is set and is not null
-
isNotNullOutTime
public boolean isNotNullOutTime()
Checks whether the 'outTime' field is set and is not null
-
isNotNullOverrideOutTime
public boolean isNotNullOverrideOutTime()
Checks whether the 'overrideOutTime' field is set and is not null
-
isNotNullOverrideOutEmployee
public boolean isNotNullOverrideOutEmployee()
Checks whether the 'overrideOutEmployee' field is set and is not null
-
hasId
public boolean hasId()
Checks whether the 'id' field has been set, however the value could be null
-
hasEmployee
public boolean hasEmployee()
Checks whether the 'employee' field has been set, however the value could be null
-
hasCashTipsCollected
public boolean hasCashTipsCollected()
Checks whether the 'cashTipsCollected' field has been set, however the value could be null
-
hasServerBanking
public boolean hasServerBanking()
Checks whether the 'serverBanking' field has been set, however the value could be null
-
hasInTime
public boolean hasInTime()
Checks whether the 'inTime' field has been set, however the value could be null
-
hasOverrideInTime
public boolean hasOverrideInTime()
Checks whether the 'overrideInTime' field has been set, however the value could be null
-
hasOverrideInEmployee
public boolean hasOverrideInEmployee()
Checks whether the 'overrideInEmployee' field has been set, however the value could be null
-
hasOutTime
public boolean hasOutTime()
Checks whether the 'outTime' field has been set, however the value could be null
-
hasOverrideOutTime
public boolean hasOverrideOutTime()
Checks whether the 'overrideOutTime' field has been set, however the value could be null
-
hasOverrideOutEmployee
public boolean hasOverrideOutEmployee()
Checks whether the 'overrideOutEmployee' field has been set, however the value could be null
-
setEmployee
public Shift setEmployee(Employee employee)
Sets the field 'employee'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setCashTipsCollected
public Shift setCashTipsCollected(Long cashTipsCollected)
Sets the field 'cashTipsCollected'.
-
setServerBanking
public Shift setServerBanking(Boolean serverBanking)
Sets the field 'serverBanking'.
-
setOverrideInTime
public Shift setOverrideInTime(Long overrideInTime)
Sets the field 'overrideInTime'.
-
setOverrideInEmployee
public Shift setOverrideInEmployee(Employee overrideInEmployee)
Sets the field 'overrideInEmployee'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setOverrideOutTime
public Shift setOverrideOutTime(Long overrideOutTime)
Sets the field 'overrideOutTime'.
-
setOverrideOutEmployee
public Shift setOverrideOutEmployee(Employee overrideOutEmployee)
Sets the field 'overrideOutEmployee'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
clearId
public void clearId()
Clears the 'id' field, the 'has' method for this field will now return false
-
clearEmployee
public void clearEmployee()
Clears the 'employee' field, the 'has' method for this field will now return false
-
clearCashTipsCollected
public void clearCashTipsCollected()
Clears the 'cashTipsCollected' field, the 'has' method for this field will now return false
-
clearServerBanking
public void clearServerBanking()
Clears the 'serverBanking' field, the 'has' method for this field will now return false
-
clearInTime
public void clearInTime()
Clears the 'inTime' field, the 'has' method for this field will now return false
-
clearOverrideInTime
public void clearOverrideInTime()
Clears the 'overrideInTime' field, the 'has' method for this field will now return false
-
clearOverrideInEmployee
public void clearOverrideInEmployee()
Clears the 'overrideInEmployee' field, the 'has' method for this field will now return false
-
clearOutTime
public void clearOutTime()
Clears the 'outTime' field, the 'has' method for this field will now return false
-
clearOverrideOutTime
public void clearOverrideOutTime()
Clears the 'overrideOutTime' field, the 'has' method for this field will now return false
-
clearOverrideOutEmployee
public void clearOverrideOutEmployee()
Clears the 'overrideOutEmployee' field, the 'has' method for this field will now return false
-
containsChanges
public boolean containsChanges()
Returns true if this instance has any changes.
-
resetChangeLog
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
-
copyChanges
public Shift copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(Shift src)
Copy all the changed fields from the given source to this instance.
-
-