Trendsic Platform Service

<back to all web services

DispatchTrackRequest

The following routes are available for this service:
GET,OPTIONS/v1/dispatch/track/{Token}/json
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class DispatchTrackRequest
    {
        public String Token = null;
        
        public String getToken() { return Token; }
        public DispatchTrackRequest setToken(String value) { this.Token = value; return this; }
    }

    public static class DispatchTrackResponse
    {
        public String Kind = null;
        public String Code = null;
        public String What = null;
        public String FromLoc = null;
        public String ToLoc = null;
        public Integer Bags = null;
        public BigDecimal Fare = null;
        public String PayMode = null;
        public String CardLast4 = null;
        public Boolean Charged = null;
        public String Stage = null;
        public String Headline = null;
        public String Sub = null;
        public Boolean IsClosed = null;
        public String Eta = null;
        public String DriverName = null;
        public String CustomerName = null;
        public ArrayList<DispatchTrackStepView> Steps = new ArrayList<DispatchTrackStepView>();
        public Boolean Expired = null;
        public Boolean Invalid = null;
        public ResponseStatus ResponseStatus = null;
        
        public String getKind() { return Kind; }
        public DispatchTrackResponse setKind(String value) { this.Kind = value; return this; }
        public String getCode() { return Code; }
        public DispatchTrackResponse setCode(String value) { this.Code = value; return this; }
        public String getWhat() { return What; }
        public DispatchTrackResponse setWhat(String value) { this.What = value; return this; }
        public String getFromLoc() { return FromLoc; }
        public DispatchTrackResponse setFromLoc(String value) { this.FromLoc = value; return this; }
        public String getToLoc() { return ToLoc; }
        public DispatchTrackResponse setToLoc(String value) { this.ToLoc = value; return this; }
        public Integer getBags() { return Bags; }
        public DispatchTrackResponse setBags(Integer value) { this.Bags = value; return this; }
        public BigDecimal getFare() { return Fare; }
        public DispatchTrackResponse setFare(BigDecimal value) { this.Fare = value; return this; }
        public String getPayMode() { return PayMode; }
        public DispatchTrackResponse setPayMode(String value) { this.PayMode = value; return this; }
        public String getCardLast4() { return CardLast4; }
        public DispatchTrackResponse setCardLast4(String value) { this.CardLast4 = value; return this; }
        public Boolean isCharged() { return Charged; }
        public DispatchTrackResponse setCharged(Boolean value) { this.Charged = value; return this; }
        public String getStage() { return Stage; }
        public DispatchTrackResponse setStage(String value) { this.Stage = value; return this; }
        public String getHeadline() { return Headline; }
        public DispatchTrackResponse setHeadline(String value) { this.Headline = value; return this; }
        public String getSub() { return Sub; }
        public DispatchTrackResponse setSub(String value) { this.Sub = value; return this; }
        public Boolean getIsClosed() { return IsClosed; }
        public DispatchTrackResponse setIsClosed(Boolean value) { this.IsClosed = value; return this; }
        public String getEta() { return Eta; }
        public DispatchTrackResponse setEta(String value) { this.Eta = value; return this; }
        public String getDriverName() { return DriverName; }
        public DispatchTrackResponse setDriverName(String value) { this.DriverName = value; return this; }
        public String getCustomerName() { return CustomerName; }
        public DispatchTrackResponse setCustomerName(String value) { this.CustomerName = value; return this; }
        public ArrayList<DispatchTrackStepView> getSteps() { return Steps; }
        public DispatchTrackResponse setSteps(ArrayList<DispatchTrackStepView> value) { this.Steps = value; return this; }
        public Boolean isExpired() { return Expired; }
        public DispatchTrackResponse setExpired(Boolean value) { this.Expired = value; return this; }
        public Boolean isInvalid() { return Invalid; }
        public DispatchTrackResponse setInvalid(Boolean value) { this.Invalid = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public DispatchTrackResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class DispatchTrackStepView
    {
        public String Name = null;
        public Date At = null;
        public Boolean Done = null;
        public Boolean Current = null;
        
        public String getName() { return Name; }
        public DispatchTrackStepView setName(String value) { this.Name = value; return this; }
        public Date getAt() { return At; }
        public DispatchTrackStepView setAt(Date value) { this.At = value; return this; }
        public Boolean isDone() { return Done; }
        public DispatchTrackStepView setDone(Boolean value) { this.Done = value; return this; }
        public Boolean isCurrent() { return Current; }
        public DispatchTrackStepView setCurrent(Boolean value) { this.Current = value; return this; }
    }

}

Java DispatchTrackRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/dispatch/track/{Token}/json HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Kind":"String","Code":"String","What":"String","FromLoc":"String","ToLoc":"String","Bags":0,"Fare":0,"PayMode":"String","CardLast4":"String","Charged":false,"Stage":"String","Headline":"String","Sub":"String","IsClosed":false,"Eta":"String","DriverName":"String","CustomerName":"String","Steps":[{"Name":"String","At":"0001-01-01T00:00:00.0000000","Done":false,"Current":false}],"Expired":false,"Invalid":false,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}