Trendsic Platform Service

<back to all web services

CourierDriverPayRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/worker/dispatch/od/pay
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class CourierDriverPayRequest
    {
        public String Range = null;
        
        public String getRange() { return Range; }
        public CourierDriverPayRequest setRange(String value) { this.Range = value; return this; }
    }

    public static class CourierDriverPayResponse
    {
        public ArrayList<CourierDriverPayRow> Rows = new ArrayList<CourierDriverPayRow>();
        public BigDecimal Total = null;
        public Boolean Available = null;
        public Date ServerUtc = null;
        public String Range = null;
        public Boolean IsHourly = null;
        public BigDecimal TodayTotal = null;
        public BigDecimal WeekTotal = null;
        public BigDecimal TipsToday = null;
        public BigDecimal TipsWeek = null;
        public Date WeekStartUtc = null;
        public Integer WeekStartDay = null;
        public ArrayList<CourierEarnRow> Today = new ArrayList<CourierEarnRow>();
        public ArrayList<CourierEarnRow> Earlier = new ArrayList<CourierEarnRow>();
        public ArrayList<CourierEarnRow> Tips = new ArrayList<CourierEarnRow>();
        public CourierEarnPlan Plan = null;
        public Integer PickupsWeek = null;
        public Integer StopsWeek = null;
        public BigDecimal HoursToday = null;
        public BigDecimal HoursWeek = null;
        public Boolean ClockOn = null;
        public String ClockSinceText = null;
        public Boolean HideAddresses = null;
        public Boolean Detailed = null;
        public String UnitOne = null;
        public String UnitMany = null;
        public String UnitOneEs = null;
        public String UnitManyEs = null;
        public ResponseStatus ResponseStatus = null;
        
        public ArrayList<CourierDriverPayRow> getRows() { return Rows; }
        public CourierDriverPayResponse setRows(ArrayList<CourierDriverPayRow> value) { this.Rows = value; return this; }
        public BigDecimal getTotal() { return Total; }
        public CourierDriverPayResponse setTotal(BigDecimal value) { this.Total = value; return this; }
        public Boolean isAvailable() { return Available; }
        public CourierDriverPayResponse setAvailable(Boolean value) { this.Available = value; return this; }
        public Date getServerUtc() { return ServerUtc; }
        public CourierDriverPayResponse setServerUtc(Date value) { this.ServerUtc = value; return this; }
        public String getRange() { return Range; }
        public CourierDriverPayResponse setRange(String value) { this.Range = value; return this; }
        public Boolean getIsHourly() { return IsHourly; }
        public CourierDriverPayResponse setIsHourly(Boolean value) { this.IsHourly = value; return this; }
        public BigDecimal getTodayTotal() { return TodayTotal; }
        public CourierDriverPayResponse setTodayTotal(BigDecimal value) { this.TodayTotal = value; return this; }
        public BigDecimal getWeekTotal() { return WeekTotal; }
        public CourierDriverPayResponse setWeekTotal(BigDecimal value) { this.WeekTotal = value; return this; }
        public BigDecimal getTipsToday() { return TipsToday; }
        public CourierDriverPayResponse setTipsToday(BigDecimal value) { this.TipsToday = value; return this; }
        public BigDecimal getTipsWeek() { return TipsWeek; }
        public CourierDriverPayResponse setTipsWeek(BigDecimal value) { this.TipsWeek = value; return this; }
        public Date getWeekStartUtc() { return WeekStartUtc; }
        public CourierDriverPayResponse setWeekStartUtc(Date value) { this.WeekStartUtc = value; return this; }
        public Integer getWeekStartDay() { return WeekStartDay; }
        public CourierDriverPayResponse setWeekStartDay(Integer value) { this.WeekStartDay = value; return this; }
        public ArrayList<CourierEarnRow> getToday() { return Today; }
        public CourierDriverPayResponse setToday(ArrayList<CourierEarnRow> value) { this.Today = value; return this; }
        public ArrayList<CourierEarnRow> getEarlier() { return Earlier; }
        public CourierDriverPayResponse setEarlier(ArrayList<CourierEarnRow> value) { this.Earlier = value; return this; }
        public ArrayList<CourierEarnRow> getTips() { return Tips; }
        public CourierDriverPayResponse setTips(ArrayList<CourierEarnRow> value) { this.Tips = value; return this; }
        public CourierEarnPlan getPlan() { return Plan; }
        public CourierDriverPayResponse setPlan(CourierEarnPlan value) { this.Plan = value; return this; }
        public Integer getPickupsWeek() { return PickupsWeek; }
        public CourierDriverPayResponse setPickupsWeek(Integer value) { this.PickupsWeek = value; return this; }
        public Integer getStopsWeek() { return StopsWeek; }
        public CourierDriverPayResponse setStopsWeek(Integer value) { this.StopsWeek = value; return this; }
        public BigDecimal getHoursToday() { return HoursToday; }
        public CourierDriverPayResponse setHoursToday(BigDecimal value) { this.HoursToday = value; return this; }
        public BigDecimal getHoursWeek() { return HoursWeek; }
        public CourierDriverPayResponse setHoursWeek(BigDecimal value) { this.HoursWeek = value; return this; }
        public Boolean isClockOn() { return ClockOn; }
        public CourierDriverPayResponse setClockOn(Boolean value) { this.ClockOn = value; return this; }
        public String getClockSinceText() { return ClockSinceText; }
        public CourierDriverPayResponse setClockSinceText(String value) { this.ClockSinceText = value; return this; }
        public Boolean isHideAddresses() { return HideAddresses; }
        public CourierDriverPayResponse setHideAddresses(Boolean value) { this.HideAddresses = value; return this; }
        public Boolean isDetailed() { return Detailed; }
        public CourierDriverPayResponse setDetailed(Boolean value) { this.Detailed = value; return this; }
        public String getUnitOne() { return UnitOne; }
        public CourierDriverPayResponse setUnitOne(String value) { this.UnitOne = value; return this; }
        public String getUnitMany() { return UnitMany; }
        public CourierDriverPayResponse setUnitMany(String value) { this.UnitMany = value; return this; }
        public String getUnitOneEs() { return UnitOneEs; }
        public CourierDriverPayResponse setUnitOneEs(String value) { this.UnitOneEs = value; return this; }
        public String getUnitManyEs() { return UnitManyEs; }
        public CourierDriverPayResponse setUnitManyEs(String value) { this.UnitManyEs = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public CourierDriverPayResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class CourierDriverPayRow
    {
        public Integer DispatchLoadID = null;
        public String Code = null;
        public String Kind = null;
        public String OrderCode = null;
        public String RunCode = null;
        public String QtyText = null;
        public String SourceLabel = null;
        public String DestinationLabel = null;
        public String Status = null;
        public BigDecimal Pay = null;
        public Date OpenedUtc = null;
        public Date ClosedUtc = null;
        public ArrayList<CourierPayLineView> Lines = new ArrayList<CourierPayLineView>();
        
        public Integer getDispatchLoadID() { return DispatchLoadID; }
        public CourierDriverPayRow setDispatchLoadID(Integer value) { this.DispatchLoadID = value; return this; }
        public String getCode() { return Code; }
        public CourierDriverPayRow setCode(String value) { this.Code = value; return this; }
        public String getKind() { return Kind; }
        public CourierDriverPayRow setKind(String value) { this.Kind = value; return this; }
        public String getOrderCode() { return OrderCode; }
        public CourierDriverPayRow setOrderCode(String value) { this.OrderCode = value; return this; }
        public String getRunCode() { return RunCode; }
        public CourierDriverPayRow setRunCode(String value) { this.RunCode = value; return this; }
        public String getQtyText() { return QtyText; }
        public CourierDriverPayRow setQtyText(String value) { this.QtyText = value; return this; }
        public String getSourceLabel() { return SourceLabel; }
        public CourierDriverPayRow setSourceLabel(String value) { this.SourceLabel = value; return this; }
        public String getDestinationLabel() { return DestinationLabel; }
        public CourierDriverPayRow setDestinationLabel(String value) { this.DestinationLabel = value; return this; }
        public String getStatus() { return Status; }
        public CourierDriverPayRow setStatus(String value) { this.Status = value; return this; }
        public BigDecimal getPay() { return Pay; }
        public CourierDriverPayRow setPay(BigDecimal value) { this.Pay = value; return this; }
        public Date getOpenedUtc() { return OpenedUtc; }
        public CourierDriverPayRow setOpenedUtc(Date value) { this.OpenedUtc = value; return this; }
        public Date getClosedUtc() { return ClosedUtc; }
        public CourierDriverPayRow setClosedUtc(Date value) { this.ClosedUtc = value; return this; }
        public ArrayList<CourierPayLineView> getLines() { return Lines; }
        public CourierDriverPayRow setLines(ArrayList<CourierPayLineView> value) { this.Lines = value; return this; }
    }

    public static class CourierPayLineView
    {
        public Integer DispatchLoadID = null;
        public String Kind = null;
        public String Label = null;
        public BigDecimal Qty = null;
        public BigDecimal Rate = null;
        public BigDecimal Amount = null;
        
        public Integer getDispatchLoadID() { return DispatchLoadID; }
        public CourierPayLineView setDispatchLoadID(Integer value) { this.DispatchLoadID = value; return this; }
        public String getKind() { return Kind; }
        public CourierPayLineView setKind(String value) { this.Kind = value; return this; }
        public String getLabel() { return Label; }
        public CourierPayLineView setLabel(String value) { this.Label = value; return this; }
        public BigDecimal getQty() { return Qty; }
        public CourierPayLineView setQty(BigDecimal value) { this.Qty = value; return this; }
        public BigDecimal getRate() { return Rate; }
        public CourierPayLineView setRate(BigDecimal value) { this.Rate = value; return this; }
        public BigDecimal getAmount() { return Amount; }
        public CourierPayLineView setAmount(BigDecimal value) { this.Amount = value; return this; }
    }

    public static class CourierEarnRow
    {
        public String Kind = null;
        public String LineKind = null;
        public Date AtUtc = null;
        public String TimeText = null;
        public Integer DayIdx = null;
        public Integer FromDayIdx = null;
        public Integer ToDayIdx = null;
        public Boolean OnToday = null;
        public Integer Count = null;
        public Integer Units = null;
        public Integer Seq = null;
        public String Street = null;
        public String City = null;
        public String Zip = null;
        public BigDecimal Amount = null;
        public BigDecimal Hours = null;
        public String Code = null;
        public String RunCode = null;
        public BigDecimal Qty = null;
        public BigDecimal Rate = null;
        public String Label = null;
        
        public String getKind() { return Kind; }
        public CourierEarnRow setKind(String value) { this.Kind = value; return this; }
        public String getLineKind() { return LineKind; }
        public CourierEarnRow setLineKind(String value) { this.LineKind = value; return this; }
        public Date getAtUtc() { return AtUtc; }
        public CourierEarnRow setAtUtc(Date value) { this.AtUtc = value; return this; }
        public String getTimeText() { return TimeText; }
        public CourierEarnRow setTimeText(String value) { this.TimeText = value; return this; }
        public Integer getDayIdx() { return DayIdx; }
        public CourierEarnRow setDayIdx(Integer value) { this.DayIdx = value; return this; }
        public Integer getFromDayIdx() { return FromDayIdx; }
        public CourierEarnRow setFromDayIdx(Integer value) { this.FromDayIdx = value; return this; }
        public Integer getToDayIdx() { return ToDayIdx; }
        public CourierEarnRow setToDayIdx(Integer value) { this.ToDayIdx = value; return this; }
        public Boolean isOnToday() { return OnToday; }
        public CourierEarnRow setOnToday(Boolean value) { this.OnToday = value; return this; }
        public Integer getCount() { return Count; }
        public CourierEarnRow setCount(Integer value) { this.Count = value; return this; }
        public Integer getUnits() { return Units; }
        public CourierEarnRow setUnits(Integer value) { this.Units = value; return this; }
        public Integer getSeq() { return Seq; }
        public CourierEarnRow setSeq(Integer value) { this.Seq = value; return this; }
        public String getStreet() { return Street; }
        public CourierEarnRow setStreet(String value) { this.Street = value; return this; }
        public String getCity() { return City; }
        public CourierEarnRow setCity(String value) { this.City = value; return this; }
        public String getZip() { return Zip; }
        public CourierEarnRow setZip(String value) { this.Zip = value; return this; }
        public BigDecimal getAmount() { return Amount; }
        public CourierEarnRow setAmount(BigDecimal value) { this.Amount = value; return this; }
        public BigDecimal getHours() { return Hours; }
        public CourierEarnRow setHours(BigDecimal value) { this.Hours = value; return this; }
        public String getCode() { return Code; }
        public CourierEarnRow setCode(String value) { this.Code = value; return this; }
        public String getRunCode() { return RunCode; }
        public CourierEarnRow setRunCode(String value) { this.RunCode = value; return this; }
        public BigDecimal getQty() { return Qty; }
        public CourierEarnRow setQty(BigDecimal value) { this.Qty = value; return this; }
        public BigDecimal getRate() { return Rate; }
        public CourierEarnRow setRate(BigDecimal value) { this.Rate = value; return this; }
        public String getLabel() { return Label; }
        public CourierEarnRow setLabel(String value) { this.Label = value; return this; }
    }

    public static class CourierEarnPlan
    {
        public String Name = null;
        public String WorkerClass = null;
        public BigDecimal PerPickup = null;
        public BigDecimal PerStop = null;
        public BigDecimal PerMissed = null;
        public BigDecimal PerCancel = null;
        public Integer WaitAfterMin = null;
        public BigDecimal WaitPerMin = null;
        public Integer MaxPaidWaitMin = null;
        public Boolean MileageOn = null;
        public BigDecimal PerMile = null;
        public BigDecimal MinPerJob = null;
        public BigDecimal TipsPct = null;
        
        public String getName() { return Name; }
        public CourierEarnPlan setName(String value) { this.Name = value; return this; }
        public String getWorkerClass() { return WorkerClass; }
        public CourierEarnPlan setWorkerClass(String value) { this.WorkerClass = value; return this; }
        public BigDecimal getPerPickup() { return PerPickup; }
        public CourierEarnPlan setPerPickup(BigDecimal value) { this.PerPickup = value; return this; }
        public BigDecimal getPerStop() { return PerStop; }
        public CourierEarnPlan setPerStop(BigDecimal value) { this.PerStop = value; return this; }
        public BigDecimal getPerMissed() { return PerMissed; }
        public CourierEarnPlan setPerMissed(BigDecimal value) { this.PerMissed = value; return this; }
        public BigDecimal getPerCancel() { return PerCancel; }
        public CourierEarnPlan setPerCancel(BigDecimal value) { this.PerCancel = value; return this; }
        public Integer getWaitAfterMin() { return WaitAfterMin; }
        public CourierEarnPlan setWaitAfterMin(Integer value) { this.WaitAfterMin = value; return this; }
        public BigDecimal getWaitPerMin() { return WaitPerMin; }
        public CourierEarnPlan setWaitPerMin(BigDecimal value) { this.WaitPerMin = value; return this; }
        public Integer getMaxPaidWaitMin() { return MaxPaidWaitMin; }
        public CourierEarnPlan setMaxPaidWaitMin(Integer value) { this.MaxPaidWaitMin = value; return this; }
        public Boolean isMileageOn() { return MileageOn; }
        public CourierEarnPlan setMileageOn(Boolean value) { this.MileageOn = value; return this; }
        public BigDecimal getPerMile() { return PerMile; }
        public CourierEarnPlan setPerMile(BigDecimal value) { this.PerMile = value; return this; }
        public BigDecimal getMinPerJob() { return MinPerJob; }
        public CourierEarnPlan setMinPerJob(BigDecimal value) { this.MinPerJob = value; return this; }
        public BigDecimal getTipsPct() { return TipsPct; }
        public CourierEarnPlan setTipsPct(BigDecimal value) { this.TipsPct = value; return this; }
    }

}

Java CourierDriverPayRequest 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.

GET /v1/worker/dispatch/od/pay HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CourierDriverPayResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Available>false</Available>
  <ClockOn>false</ClockOn>
  <ClockSinceText>String</ClockSinceText>
  <Detailed>false</Detailed>
  <Earlier>
    <CourierEarnRow>
      <Amount>0</Amount>
      <AtUtc>0001-01-01T00:00:00</AtUtc>
      <City>String</City>
      <Code>String</Code>
      <Count>0</Count>
      <DayIdx>0</DayIdx>
      <FromDayIdx>0</FromDayIdx>
      <Hours>0</Hours>
      <Kind>String</Kind>
      <Label>String</Label>
      <LineKind>String</LineKind>
      <OnToday>false</OnToday>
      <Qty>0</Qty>
      <Rate>0</Rate>
      <RunCode>String</RunCode>
      <Seq>0</Seq>
      <Street>String</Street>
      <TimeText>String</TimeText>
      <ToDayIdx>0</ToDayIdx>
      <Units>0</Units>
      <Zip>String</Zip>
    </CourierEarnRow>
  </Earlier>
  <HideAddresses>false</HideAddresses>
  <HoursToday>0</HoursToday>
  <HoursWeek>0</HoursWeek>
  <IsHourly>false</IsHourly>
  <PickupsWeek>0</PickupsWeek>
  <Plan>
    <MaxPaidWaitMin>0</MaxPaidWaitMin>
    <MileageOn>false</MileageOn>
    <MinPerJob>0</MinPerJob>
    <Name>String</Name>
    <PerCancel>0</PerCancel>
    <PerMile>0</PerMile>
    <PerMissed>0</PerMissed>
    <PerPickup>0</PerPickup>
    <PerStop>0</PerStop>
    <TipsPct>0</TipsPct>
    <WaitAfterMin>0</WaitAfterMin>
    <WaitPerMin>0</WaitPerMin>
    <WorkerClass>String</WorkerClass>
  </Plan>
  <Range>String</Range>
  <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>
  <Rows>
    <CourierDriverPayRow>
      <ClosedUtc>0001-01-01T00:00:00</ClosedUtc>
      <Code>String</Code>
      <DestinationLabel>String</DestinationLabel>
      <DispatchLoadID>0</DispatchLoadID>
      <Kind>String</Kind>
      <Lines>
        <CourierPayLineView>
          <Amount>0</Amount>
          <DispatchLoadID>0</DispatchLoadID>
          <Kind>String</Kind>
          <Label>String</Label>
          <Qty>0</Qty>
          <Rate>0</Rate>
        </CourierPayLineView>
      </Lines>
      <OpenedUtc>0001-01-01T00:00:00</OpenedUtc>
      <OrderCode>String</OrderCode>
      <Pay>0</Pay>
      <QtyText>String</QtyText>
      <RunCode>String</RunCode>
      <SourceLabel>String</SourceLabel>
      <Status>String</Status>
    </CourierDriverPayRow>
  </Rows>
  <ServerUtc>0001-01-01T00:00:00</ServerUtc>
  <StopsWeek>0</StopsWeek>
  <Tips>
    <CourierEarnRow>
      <Amount>0</Amount>
      <AtUtc>0001-01-01T00:00:00</AtUtc>
      <City>String</City>
      <Code>String</Code>
      <Count>0</Count>
      <DayIdx>0</DayIdx>
      <FromDayIdx>0</FromDayIdx>
      <Hours>0</Hours>
      <Kind>String</Kind>
      <Label>String</Label>
      <LineKind>String</LineKind>
      <OnToday>false</OnToday>
      <Qty>0</Qty>
      <Rate>0</Rate>
      <RunCode>String</RunCode>
      <Seq>0</Seq>
      <Street>String</Street>
      <TimeText>String</TimeText>
      <ToDayIdx>0</ToDayIdx>
      <Units>0</Units>
      <Zip>String</Zip>
    </CourierEarnRow>
  </Tips>
  <TipsToday>0</TipsToday>
  <TipsWeek>0</TipsWeek>
  <Today>
    <CourierEarnRow>
      <Amount>0</Amount>
      <AtUtc>0001-01-01T00:00:00</AtUtc>
      <City>String</City>
      <Code>String</Code>
      <Count>0</Count>
      <DayIdx>0</DayIdx>
      <FromDayIdx>0</FromDayIdx>
      <Hours>0</Hours>
      <Kind>String</Kind>
      <Label>String</Label>
      <LineKind>String</LineKind>
      <OnToday>false</OnToday>
      <Qty>0</Qty>
      <Rate>0</Rate>
      <RunCode>String</RunCode>
      <Seq>0</Seq>
      <Street>String</Street>
      <TimeText>String</TimeText>
      <ToDayIdx>0</ToDayIdx>
      <Units>0</Units>
      <Zip>String</Zip>
    </CourierEarnRow>
  </Today>
  <TodayTotal>0</TodayTotal>
  <Total>0</Total>
  <UnitMany>String</UnitMany>
  <UnitManyEs>String</UnitManyEs>
  <UnitOne>String</UnitOne>
  <UnitOneEs>String</UnitOneEs>
  <WeekStartDay>0</WeekStartDay>
  <WeekStartUtc>0001-01-01T00:00:00</WeekStartUtc>
  <WeekTotal>0</WeekTotal>
</CourierDriverPayResponse>