| GET,OPTIONS | /v1/dispatch/quote/{Token}/json |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class DispatchQuoteRequest
{
public String Token = null;
public String getToken() { return Token; }
public DispatchQuoteRequest setToken(String value) { this.Token = value; return this; }
}
public static class DispatchQuoteResponse
{
public DispatchQuoteView Quote = null;
public ResponseStatus ResponseStatus = null;
public DispatchQuoteView getQuote() { return Quote; }
public DispatchQuoteResponse setQuote(DispatchQuoteView value) { this.Quote = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public DispatchQuoteResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class DispatchQuoteView
{
public String Code = null;
public String CustomerName = null;
public String Cargo = null;
public Integer Units = null;
public String FromLoc = null;
public String ToLoc = null;
public Integer Miles = null;
public String WindowText = null;
public Boolean IsUrgent = null;
public Integer LoadsNeeded = null;
public Integer UnitsPerTruck = null;
public BigDecimal RatePerLoad = null;
public BigDecimal UrgencyPct = null;
public BigDecimal QuoteTotal = null;
public Integer QuoteVersion = null;
public String Status = null;
public Date QuotedUtc = null;
public Date ExpiresUtc = null;
public String getCode() { return Code; }
public DispatchQuoteView setCode(String value) { this.Code = value; return this; }
public String getCustomerName() { return CustomerName; }
public DispatchQuoteView setCustomerName(String value) { this.CustomerName = value; return this; }
public String getCargo() { return Cargo; }
public DispatchQuoteView setCargo(String value) { this.Cargo = value; return this; }
public Integer getUnits() { return Units; }
public DispatchQuoteView setUnits(Integer value) { this.Units = value; return this; }
public String getFromLoc() { return FromLoc; }
public DispatchQuoteView setFromLoc(String value) { this.FromLoc = value; return this; }
public String getToLoc() { return ToLoc; }
public DispatchQuoteView setToLoc(String value) { this.ToLoc = value; return this; }
public Integer getMiles() { return Miles; }
public DispatchQuoteView setMiles(Integer value) { this.Miles = value; return this; }
public String getWindowText() { return WindowText; }
public DispatchQuoteView setWindowText(String value) { this.WindowText = value; return this; }
public Boolean getIsUrgent() { return IsUrgent; }
public DispatchQuoteView setIsUrgent(Boolean value) { this.IsUrgent = value; return this; }
public Integer getLoadsNeeded() { return LoadsNeeded; }
public DispatchQuoteView setLoadsNeeded(Integer value) { this.LoadsNeeded = value; return this; }
public Integer getUnitsPerTruck() { return UnitsPerTruck; }
public DispatchQuoteView setUnitsPerTruck(Integer value) { this.UnitsPerTruck = value; return this; }
public BigDecimal getRatePerLoad() { return RatePerLoad; }
public DispatchQuoteView setRatePerLoad(BigDecimal value) { this.RatePerLoad = value; return this; }
public BigDecimal getUrgencyPct() { return UrgencyPct; }
public DispatchQuoteView setUrgencyPct(BigDecimal value) { this.UrgencyPct = value; return this; }
public BigDecimal getQuoteTotal() { return QuoteTotal; }
public DispatchQuoteView setQuoteTotal(BigDecimal value) { this.QuoteTotal = value; return this; }
public Integer getQuoteVersion() { return QuoteVersion; }
public DispatchQuoteView setQuoteVersion(Integer value) { this.QuoteVersion = value; return this; }
public String getStatus() { return Status; }
public DispatchQuoteView setStatus(String value) { this.Status = value; return this; }
public Date getQuotedUtc() { return QuotedUtc; }
public DispatchQuoteView setQuotedUtc(Date value) { this.QuotedUtc = value; return this; }
public Date getExpiresUtc() { return ExpiresUtc; }
public DispatchQuoteView setExpiresUtc(Date value) { this.ExpiresUtc = value; return this; }
}
}
Java DispatchQuoteRequest 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/dispatch/quote/{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
{
Quote:
{
Code: String,
CustomerName: String,
Cargo: String,
Units: 0,
FromLoc: String,
ToLoc: String,
Miles: 0,
WindowText: String,
IsUrgent: False,
LoadsNeeded: 0,
UnitsPerTruck: 0,
RatePerLoad: 0,
UrgencyPct: 0,
QuoteTotal: 0,
QuoteVersion: 0,
Status: String,
QuotedUtc: 0001-01-01,
ExpiresUtc: 0001-01-01
},
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}