everyaction.services.ShiftTypes

class everyaction.services.ShiftTypes(ea: EAClient)

Represents the Shift Types service.

Methods

create(**kwargs)

See POST /shiftTypes.

get(shift_type_id, /)

See GET /shiftTypes/{shiftTypeId}.

list(*[, limit])

See GET /shiftTypes.

create(**kwargs: EAValue) ShiftType

See POST /shiftTypes.

Parameters

kwargs – The applicable query arguments and JSON data for the request. A ShiftType is appropriate to unpack here.

Returns

The created ShiftType object.

Keyword Arguments
get(shift_type_id: int, /) ShiftType

See GET /shiftTypes/{shiftTypeId}.

Parameters

shift_type_id – The shiftTypeId path parameter.

Returns

The resulting ShiftType object.

list(*, limit: Optional[int] = None, **kwargs: EAValue) List[ShiftType]

See GET /shiftTypes.

Parameters
  • limit – Maximum number of records to get for this request.

  • kwargs – The applicable query arguments and JSON data for the request.

Returns

List of the resulting ShiftType objects.