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

HTTP + CSV

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: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Rows":[{"DispatchLoadID":0,"Code":"String","Kind":"String","OrderCode":"String","RunCode":"String","QtyText":"String","SourceLabel":"String","DestinationLabel":"String","Status":"String","Pay":0,"OpenedUtc":"0001-01-01T00:00:00.0000000","ClosedUtc":"0001-01-01T00:00:00.0000000","Lines":[{"DispatchLoadID":0,"Kind":"String","Label":"String","Qty":0,"Rate":0,"Amount":0}]}],"Total":0,"Available":false,"ServerUtc":"0001-01-01T00:00:00.0000000","Range":"String","IsHourly":false,"TodayTotal":0,"WeekTotal":0,"TipsToday":0,"TipsWeek":0,"WeekStartUtc":"0001-01-01T00:00:00.0000000","WeekStartDay":0,"Today":[{"Kind":"String","LineKind":"String","AtUtc":"0001-01-01T00:00:00.0000000","TimeText":"String","DayIdx":0,"FromDayIdx":0,"ToDayIdx":0,"OnToday":false,"Count":0,"Units":0,"Seq":0,"Street":"String","City":"String","Zip":"String","Amount":0,"Hours":0,"Code":"String","RunCode":"String","Qty":0,"Rate":0,"Label":"String"}],"Earlier":[{"Kind":"String","LineKind":"String","AtUtc":"0001-01-01T00:00:00.0000000","TimeText":"String","DayIdx":0,"FromDayIdx":0,"ToDayIdx":0,"OnToday":false,"Count":0,"Units":0,"Seq":0,"Street":"String","City":"String","Zip":"String","Amount":0,"Hours":0,"Code":"String","RunCode":"String","Qty":0,"Rate":0,"Label":"String"}],"Tips":[{"Kind":"String","LineKind":"String","AtUtc":"0001-01-01T00:00:00.0000000","TimeText":"String","DayIdx":0,"FromDayIdx":0,"ToDayIdx":0,"OnToday":false,"Count":0,"Units":0,"Seq":0,"Street":"String","City":"String","Zip":"String","Amount":0,"Hours":0,"Code":"String","RunCode":"String","Qty":0,"Rate":0,"Label":"String"}],"Plan":{"Name":"String","WorkerClass":"String","PerPickup":0,"PerStop":0,"PerMissed":0,"PerCancel":0,"WaitAfterMin":0,"WaitPerMin":0,"MaxPaidWaitMin":0,"MileageOn":false,"PerMile":0,"MinPerJob":0,"TipsPct":0},"PickupsWeek":0,"StopsWeek":0,"HoursToday":0,"HoursWeek":0,"ClockOn":false,"ClockSinceText":"String","HideAddresses":false,"Detailed":false,"UnitOne":"String","UnitMany":"String","UnitOneEs":"String","UnitManyEs":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}