| POST,OPTIONS | /v1/dispatch/rates/reprice |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class DispatchRepriceRequest
{
}
public static class DispatchRatesResponse
{
public DispatchRateConfigView Config = null;
public ArrayList<DispatchLaneRateView> Lanes = new ArrayList<DispatchLaneRateView>();
public ArrayList<DispatchZoneRateView> Zones = new ArrayList<DispatchZoneRateView>();
public ArrayList<DispatchPayPlanView> Plans = new ArrayList<DispatchPayPlanView>();
public Integer Repriced = null;
public Integer StillNoRevenue = null;
public Integer StillNoPay = null;
public ResponseStatus ResponseStatus = null;
public DispatchRateConfigView getConfig() { return Config; }
public DispatchRatesResponse setConfig(DispatchRateConfigView value) { this.Config = value; return this; }
public ArrayList<DispatchLaneRateView> getLanes() { return Lanes; }
public DispatchRatesResponse setLanes(ArrayList<DispatchLaneRateView> value) { this.Lanes = value; return this; }
public ArrayList<DispatchZoneRateView> getZones() { return Zones; }
public DispatchRatesResponse setZones(ArrayList<DispatchZoneRateView> value) { this.Zones = value; return this; }
public ArrayList<DispatchPayPlanView> getPlans() { return Plans; }
public DispatchRatesResponse setPlans(ArrayList<DispatchPayPlanView> value) { this.Plans = value; return this; }
public Integer getRepriced() { return Repriced; }
public DispatchRatesResponse setRepriced(Integer value) { this.Repriced = value; return this; }
public Integer getStillNoRevenue() { return StillNoRevenue; }
public DispatchRatesResponse setStillNoRevenue(Integer value) { this.StillNoRevenue = value; return this; }
public Integer getStillNoPay() { return StillNoPay; }
public DispatchRatesResponse setStillNoPay(Integer value) { this.StillNoPay = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public DispatchRatesResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class DispatchRateConfigView
{
public BigDecimal FuelSurchargePct = null;
public BigDecimal TransportPerMile = null;
public BigDecimal TransportJobMin = null;
public BigDecimal TransportEnclosedUpliftPct = null;
public BigDecimal OdBase = null;
public BigDecimal OdPerBag = null;
public BigDecimal OdPremiumUpliftPct = null;
public String HaulBasis = null;
public String Facility = null;
public String Unit = null;
public BigDecimal LoadQty = null;
public BigDecimal getFuelSurchargePct() { return FuelSurchargePct; }
public DispatchRateConfigView setFuelSurchargePct(BigDecimal value) { this.FuelSurchargePct = value; return this; }
public BigDecimal getTransportPerMile() { return TransportPerMile; }
public DispatchRateConfigView setTransportPerMile(BigDecimal value) { this.TransportPerMile = value; return this; }
public BigDecimal getTransportJobMin() { return TransportJobMin; }
public DispatchRateConfigView setTransportJobMin(BigDecimal value) { this.TransportJobMin = value; return this; }
public BigDecimal getTransportEnclosedUpliftPct() { return TransportEnclosedUpliftPct; }
public DispatchRateConfigView setTransportEnclosedUpliftPct(BigDecimal value) { this.TransportEnclosedUpliftPct = value; return this; }
public BigDecimal getOdBase() { return OdBase; }
public DispatchRateConfigView setOdBase(BigDecimal value) { this.OdBase = value; return this; }
public BigDecimal getOdPerBag() { return OdPerBag; }
public DispatchRateConfigView setOdPerBag(BigDecimal value) { this.OdPerBag = value; return this; }
public BigDecimal getOdPremiumUpliftPct() { return OdPremiumUpliftPct; }
public DispatchRateConfigView setOdPremiumUpliftPct(BigDecimal value) { this.OdPremiumUpliftPct = value; return this; }
public String getHaulBasis() { return HaulBasis; }
public DispatchRateConfigView setHaulBasis(String value) { this.HaulBasis = value; return this; }
public String getFacility() { return Facility; }
public DispatchRateConfigView setFacility(String value) { this.Facility = value; return this; }
public String getUnit() { return Unit; }
public DispatchRateConfigView setUnit(String value) { this.Unit = value; return this; }
public BigDecimal getLoadQty() { return LoadQty; }
public DispatchRateConfigView setLoadQty(BigDecimal value) { this.LoadQty = value; return this; }
}
public static class DispatchLaneRateView
{
public Integer DispatchSiteID = null;
public Integer DispatchSupplierID = null;
public String SourceLabel = null;
public String SupplierName = null;
public Integer DispatchLaneRateID = null;
public BigDecimal Miles = null;
public BigDecimal RatePerTon = null;
public BigDecimal RatePerLoad = null;
public BigDecimal RatePerTonMile = null;
public BigDecimal RatePerHour = null;
public Integer getDispatchSiteID() { return DispatchSiteID; }
public DispatchLaneRateView setDispatchSiteID(Integer value) { this.DispatchSiteID = value; return this; }
public Integer getDispatchSupplierID() { return DispatchSupplierID; }
public DispatchLaneRateView setDispatchSupplierID(Integer value) { this.DispatchSupplierID = value; return this; }
public String getSourceLabel() { return SourceLabel; }
public DispatchLaneRateView setSourceLabel(String value) { this.SourceLabel = value; return this; }
public String getSupplierName() { return SupplierName; }
public DispatchLaneRateView setSupplierName(String value) { this.SupplierName = value; return this; }
public Integer getDispatchLaneRateID() { return DispatchLaneRateID; }
public DispatchLaneRateView setDispatchLaneRateID(Integer value) { this.DispatchLaneRateID = value; return this; }
public BigDecimal getMiles() { return Miles; }
public DispatchLaneRateView setMiles(BigDecimal value) { this.Miles = value; return this; }
public BigDecimal getRatePerTon() { return RatePerTon; }
public DispatchLaneRateView setRatePerTon(BigDecimal value) { this.RatePerTon = value; return this; }
public BigDecimal getRatePerLoad() { return RatePerLoad; }
public DispatchLaneRateView setRatePerLoad(BigDecimal value) { this.RatePerLoad = value; return this; }
public BigDecimal getRatePerTonMile() { return RatePerTonMile; }
public DispatchLaneRateView setRatePerTonMile(BigDecimal value) { this.RatePerTonMile = value; return this; }
public BigDecimal getRatePerHour() { return RatePerHour; }
public DispatchLaneRateView setRatePerHour(BigDecimal value) { this.RatePerHour = value; return this; }
}
public static class DispatchZoneRateView
{
public String Zone = null;
public Integer DispatchZoneRateID = null;
public BigDecimal Base = null;
public BigDecimal PerBag = null;
public BigDecimal PremiumUpliftPct = null;
public Integer Drivers = null;
public String getZone() { return Zone; }
public DispatchZoneRateView setZone(String value) { this.Zone = value; return this; }
public Integer getDispatchZoneRateID() { return DispatchZoneRateID; }
public DispatchZoneRateView setDispatchZoneRateID(Integer value) { this.DispatchZoneRateID = value; return this; }
public BigDecimal getBase() { return Base; }
public DispatchZoneRateView setBase(BigDecimal value) { this.Base = value; return this; }
public BigDecimal getPerBag() { return PerBag; }
public DispatchZoneRateView setPerBag(BigDecimal value) { this.PerBag = value; return this; }
public BigDecimal getPremiumUpliftPct() { return PremiumUpliftPct; }
public DispatchZoneRateView setPremiumUpliftPct(BigDecimal value) { this.PremiumUpliftPct = value; return this; }
public Integer getDrivers() { return Drivers; }
public DispatchZoneRateView setDrivers(Integer value) { this.Drivers = value; return this; }
}
public static class DispatchPayPlanView
{
public Integer DispatchPayPlanID = null;
public String Name = null;
public String Basis = null;
public BigDecimal Rate = null;
public BigDecimal Rate2 = null;
public Date EffectiveDate = null;
public Boolean IsActive = null;
public Integer Drivers = null;
public Integer getDispatchPayPlanID() { return DispatchPayPlanID; }
public DispatchPayPlanView setDispatchPayPlanID(Integer value) { this.DispatchPayPlanID = value; return this; }
public String getName() { return Name; }
public DispatchPayPlanView setName(String value) { this.Name = value; return this; }
public String getBasis() { return Basis; }
public DispatchPayPlanView setBasis(String value) { this.Basis = value; return this; }
public BigDecimal getRate() { return Rate; }
public DispatchPayPlanView setRate(BigDecimal value) { this.Rate = value; return this; }
public BigDecimal getRate2() { return Rate2; }
public DispatchPayPlanView setRate2(BigDecimal value) { this.Rate2 = value; return this; }
public Date getEffectiveDate() { return EffectiveDate; }
public DispatchPayPlanView setEffectiveDate(Date value) { this.EffectiveDate = value; return this; }
public Boolean getIsActive() { return IsActive; }
public DispatchPayPlanView setIsActive(Boolean value) { this.IsActive = value; return this; }
public Integer getDrivers() { return Drivers; }
public DispatchPayPlanView setDrivers(Integer value) { this.Drivers = value; return this; }
}
}
Java DispatchRepriceRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/dispatch/rates/reprice HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Config":{"FuelSurchargePct":0,"TransportPerMile":0,"TransportJobMin":0,"TransportEnclosedUpliftPct":0,"OdBase":0,"OdPerBag":0,"OdPremiumUpliftPct":0,"HaulBasis":"String","Facility":"String","Unit":"String","LoadQty":0},"Lanes":[{"DispatchSiteID":0,"DispatchSupplierID":0,"SourceLabel":"String","SupplierName":"String","DispatchLaneRateID":0,"Miles":0,"RatePerTon":0,"RatePerLoad":0,"RatePerTonMile":0,"RatePerHour":0}],"Zones":[{"Zone":"String","DispatchZoneRateID":0,"Base":0,"PerBag":0,"PremiumUpliftPct":0,"Drivers":0}],"Plans":[{"DispatchPayPlanID":0,"Name":"String","Basis":"String","Rate":0,"Rate2":0,"EffectiveDate":"0001-01-01T00:00:00.0000000","IsActive":false,"Drivers":0}],"Repriced":0,"StillNoRevenue":0,"StillNoPay":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}