| GET,OPTIONS | /v1/worker/dispatch/od/stops |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class CourierDriverStopsRequest
{
}
public static class CourierDriverStopsResponse
{
public ArrayList<CourierStopRow> Rows = new ArrayList<CourierStopRow>();
public Boolean Hidden = null;
public CourierPingFacts Facts = null;
public Boolean Available = null;
public Date ServerUtc = null;
public ResponseStatus ResponseStatus = null;
public ArrayList<CourierStopRow> getRows() { return Rows; }
public CourierDriverStopsResponse setRows(ArrayList<CourierStopRow> value) { this.Rows = value; return this; }
public Boolean isHidden() { return Hidden; }
public CourierDriverStopsResponse setHidden(Boolean value) { this.Hidden = value; return this; }
public CourierPingFacts getFacts() { return Facts; }
public CourierDriverStopsResponse setFacts(CourierPingFacts value) { this.Facts = value; return this; }
public Boolean isAvailable() { return Available; }
public CourierDriverStopsResponse setAvailable(Boolean value) { this.Available = value; return this; }
public Date getServerUtc() { return ServerUtc; }
public CourierDriverStopsResponse setServerUtc(Date value) { this.ServerUtc = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public CourierDriverStopsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class CourierStopRow
{
public String Kind = null;
public Date AtUtc = null;
public String OrderCode = null;
public Integer Units = null;
public Integer OrderCount = null;
public String RunCode = null;
public Integer StopSeq = null;
public String Street = null;
public String City = null;
public String Zip = null;
public String FacilityName = null;
public String Reason = null;
public String getKind() { return Kind; }
public CourierStopRow setKind(String value) { this.Kind = value; return this; }
public Date getAtUtc() { return AtUtc; }
public CourierStopRow setAtUtc(Date value) { this.AtUtc = value; return this; }
public String getOrderCode() { return OrderCode; }
public CourierStopRow setOrderCode(String value) { this.OrderCode = value; return this; }
public Integer getUnits() { return Units; }
public CourierStopRow setUnits(Integer value) { this.Units = value; return this; }
public Integer getOrderCount() { return OrderCount; }
public CourierStopRow setOrderCount(Integer value) { this.OrderCount = value; return this; }
public String getRunCode() { return RunCode; }
public CourierStopRow setRunCode(String value) { this.RunCode = value; return this; }
public Integer getStopSeq() { return StopSeq; }
public CourierStopRow setStopSeq(Integer value) { this.StopSeq = value; return this; }
public String getStreet() { return Street; }
public CourierStopRow setStreet(String value) { this.Street = value; return this; }
public String getCity() { return City; }
public CourierStopRow setCity(String value) { this.City = value; return this; }
public String getZip() { return Zip; }
public CourierStopRow setZip(String value) { this.Zip = value; return this; }
public String getFacilityName() { return FacilityName; }
public CourierStopRow setFacilityName(String value) { this.FacilityName = value; return this; }
public String getReason() { return Reason; }
public CourierStopRow setReason(String value) { this.Reason = value; return this; }
}
public static class CourierPingFacts
{
public Boolean Busy = null;
public BigDecimal RadiusMi = null;
public Boolean HideAddressesInHistory = null;
public BigDecimal PingRadiusMi = null;
public Date PingRadiusUntilUtc = null;
public String UnitOne = null;
public String UnitMany = null;
public String UnitOneEs = null;
public String UnitManyEs = null;
public String FacilityNoun = null;
public String FacilityNounEs = null;
public Boolean isBusy() { return Busy; }
public CourierPingFacts setBusy(Boolean value) { this.Busy = value; return this; }
public BigDecimal getRadiusMi() { return RadiusMi; }
public CourierPingFacts setRadiusMi(BigDecimal value) { this.RadiusMi = value; return this; }
public Boolean isHideAddressesInHistory() { return HideAddressesInHistory; }
public CourierPingFacts setHideAddressesInHistory(Boolean value) { this.HideAddressesInHistory = value; return this; }
public BigDecimal getPingRadiusMi() { return PingRadiusMi; }
public CourierPingFacts setPingRadiusMi(BigDecimal value) { this.PingRadiusMi = value; return this; }
public Date getPingRadiusUntilUtc() { return PingRadiusUntilUtc; }
public CourierPingFacts setPingRadiusUntilUtc(Date value) { this.PingRadiusUntilUtc = value; return this; }
public String getUnitOne() { return UnitOne; }
public CourierPingFacts setUnitOne(String value) { this.UnitOne = value; return this; }
public String getUnitMany() { return UnitMany; }
public CourierPingFacts setUnitMany(String value) { this.UnitMany = value; return this; }
public String getUnitOneEs() { return UnitOneEs; }
public CourierPingFacts setUnitOneEs(String value) { this.UnitOneEs = value; return this; }
public String getUnitManyEs() { return UnitManyEs; }
public CourierPingFacts setUnitManyEs(String value) { this.UnitManyEs = value; return this; }
public String getFacilityNoun() { return FacilityNoun; }
public CourierPingFacts setFacilityNoun(String value) { this.FacilityNoun = value; return this; }
public String getFacilityNounEs() { return FacilityNounEs; }
public CourierPingFacts setFacilityNounEs(String value) { this.FacilityNounEs = value; return this; }
}
}
Java CourierDriverStopsRequest 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/worker/dispatch/od/stops HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<CourierDriverStopsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Available>false</Available>
<Facts>
<Busy>false</Busy>
<FacilityNoun>String</FacilityNoun>
<FacilityNounEs>String</FacilityNounEs>
<HideAddressesInHistory>false</HideAddressesInHistory>
<PingRadiusMi>0</PingRadiusMi>
<PingRadiusUntilUtc>0001-01-01T00:00:00</PingRadiusUntilUtc>
<RadiusMi>0</RadiusMi>
<UnitMany>String</UnitMany>
<UnitManyEs>String</UnitManyEs>
<UnitOne>String</UnitOne>
<UnitOneEs>String</UnitOneEs>
</Facts>
<Hidden>false</Hidden>
<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>
<Rows>
<CourierStopRow>
<AtUtc>0001-01-01T00:00:00</AtUtc>
<City>String</City>
<FacilityName>String</FacilityName>
<Kind>String</Kind>
<OrderCode>String</OrderCode>
<OrderCount>0</OrderCount>
<Reason>String</Reason>
<RunCode>String</RunCode>
<StopSeq>0</StopSeq>
<Street>String</Street>
<Units>0</Units>
<Zip>String</Zip>
</CourierStopRow>
</Rows>
<ServerUtc>0001-01-01T00:00:00</ServerUtc>
</CourierDriverStopsResponse>