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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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-01,
			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
		}
	}
}