| 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 .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<BranchApptSlotsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Capacity>0</Capacity>
<Date>String</Date>
<OnlinePaused>false</OnlinePaused>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<SlotMinutes>0</SlotMinutes>
<Slots>
<BranchApptSlot>
<Booked>0</Booked>
<Capacity>0</Capacity>
<Fits>false</Fits>
<Full>false</Full>
<Open>0</Open>
<Past>false</Past>
<Reason>String</Reason>
<StartLocal>String</StartLocal>
</BranchApptSlot>
</Slots>
<TimeslotMinutes>0</TimeslotMinutes>
</BranchApptSlotsResponse>