Trendsic Platform Service

<back to all web services

DispatchRepriceRequest

Requires Authentication
The following routes are available for this service:
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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<DispatchRepriceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal" />
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DispatchRatesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Config>
    <Facility>String</Facility>
    <FuelSurchargePct>0</FuelSurchargePct>
    <HaulBasis>String</HaulBasis>
    <LoadQty>0</LoadQty>
    <OdBase>0</OdBase>
    <OdPerBag>0</OdPerBag>
    <OdPremiumUpliftPct>0</OdPremiumUpliftPct>
    <TransportEnclosedUpliftPct>0</TransportEnclosedUpliftPct>
    <TransportJobMin>0</TransportJobMin>
    <TransportPerMile>0</TransportPerMile>
    <Unit>String</Unit>
  </Config>
  <Lanes>
    <DispatchLaneRateView>
      <DispatchLaneRateID>0</DispatchLaneRateID>
      <DispatchSiteID>0</DispatchSiteID>
      <DispatchSupplierID>0</DispatchSupplierID>
      <Miles>0</Miles>
      <RatePerHour>0</RatePerHour>
      <RatePerLoad>0</RatePerLoad>
      <RatePerTon>0</RatePerTon>
      <RatePerTonMile>0</RatePerTonMile>
      <SourceLabel>String</SourceLabel>
      <SupplierName>String</SupplierName>
    </DispatchLaneRateView>
  </Lanes>
  <Plans>
    <DispatchPayPlanView>
      <Basis>String</Basis>
      <DispatchPayPlanID>0</DispatchPayPlanID>
      <Drivers>0</Drivers>
      <EffectiveDate>0001-01-01T00:00:00</EffectiveDate>
      <IsActive>false</IsActive>
      <Name>String</Name>
      <Rate>0</Rate>
      <Rate2>0</Rate2>
    </DispatchPayPlanView>
  </Plans>
  <Repriced>0</Repriced>
  <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>
  <StillNoPay>0</StillNoPay>
  <StillNoRevenue>0</StillNoRevenue>
  <Zones>
    <DispatchZoneRateView>
      <Base>0</Base>
      <DispatchZoneRateID>0</DispatchZoneRateID>
      <Drivers>0</Drivers>
      <PerBag>0</PerBag>
      <PremiumUpliftPct>0</PremiumUpliftPct>
      <Zone>String</Zone>
    </DispatchZoneRateView>
  </Zones>
</DispatchRatesResponse>