| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/queue/appointments/slots |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class BranchApptSlotsRequest
{
public UUID LocationId = null;
public String Date = null;
public String LineIds = null;
public UUID ExcludeCheckInId = null;
public UUID getLocationId() { return LocationId; }
public BranchApptSlotsRequest setLocationId(UUID value) { this.LocationId = value; return this; }
public String getDate() { return Date; }
public BranchApptSlotsRequest setDate(String value) { this.Date = value; return this; }
public String getLineIds() { return LineIds; }
public BranchApptSlotsRequest setLineIds(String value) { this.LineIds = value; return this; }
public UUID getExcludeCheckInId() { return ExcludeCheckInId; }
public BranchApptSlotsRequest setExcludeCheckInId(UUID value) { this.ExcludeCheckInId = value; return this; }
}
public static class BranchApptSlotsResponse
{
public ResponseStatus ResponseStatus = null;
public String Date = null;
public Integer TimeslotMinutes = null;
public Integer SlotMinutes = null;
public Integer Capacity = null;
public Boolean OnlinePaused = null;
public ArrayList<BranchApptSlot> Slots = new ArrayList<BranchApptSlot>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public BranchApptSlotsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public String getDate() { return Date; }
public BranchApptSlotsResponse setDate(String value) { this.Date = value; return this; }
public Integer getTimeslotMinutes() { return TimeslotMinutes; }
public BranchApptSlotsResponse setTimeslotMinutes(Integer value) { this.TimeslotMinutes = value; return this; }
public Integer getSlotMinutes() { return SlotMinutes; }
public BranchApptSlotsResponse setSlotMinutes(Integer value) { this.SlotMinutes = value; return this; }
public Integer getCapacity() { return Capacity; }
public BranchApptSlotsResponse setCapacity(Integer value) { this.Capacity = value; return this; }
public Boolean isOnlinePaused() { return OnlinePaused; }
public BranchApptSlotsResponse setOnlinePaused(Boolean value) { this.OnlinePaused = value; return this; }
public ArrayList<BranchApptSlot> getSlots() { return Slots; }
public BranchApptSlotsResponse setSlots(ArrayList<BranchApptSlot> value) { this.Slots = value; return this; }
}
public static class BranchApptSlot
{
public String StartLocal = null;
public Integer Booked = null;
public Integer Capacity = null;
public Integer Open = null;
public Boolean Full = null;
public Boolean Past = null;
public Boolean Fits = null;
public String Reason = null;
public String getStartLocal() { return StartLocal; }
public BranchApptSlot setStartLocal(String value) { this.StartLocal = value; return this; }
public Integer getBooked() { return Booked; }
public BranchApptSlot setBooked(Integer value) { this.Booked = value; return this; }
public Integer getCapacity() { return Capacity; }
public BranchApptSlot setCapacity(Integer value) { this.Capacity = value; return this; }
public Integer getOpen() { return Open; }
public BranchApptSlot setOpen(Integer value) { this.Open = value; return this; }
public Boolean isFull() { return Full; }
public BranchApptSlot setFull(Boolean value) { this.Full = value; return this; }
public Boolean isPast() { return Past; }
public BranchApptSlot setPast(Boolean value) { this.Past = value; return this; }
public Boolean isFits() { return Fits; }
public BranchApptSlot setFits(Boolean value) { this.Fits = value; return this; }
public String getReason() { return Reason; }
public BranchApptSlot setReason(String value) { this.Reason = value; return this; }
}
}
Java BranchApptSlotsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/queue/appointments/slots HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Date: String,
TimeslotMinutes: 0,
SlotMinutes: 0,
Capacity: 0,
OnlinePaused: False,
Slots:
[
{
StartLocal: String,
Booked: 0,
Capacity: 0,
Open: 0,
Full: False,
Past: False,
Fits: False,
Reason: String
}
]
}