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
<?php namespace dtos;

use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};


class CourierPayLineView implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $DispatchLoadID=0,
        /** @var string|null */
        public ?string $Kind=null,
        /** @var string|null */
        public ?string $Label=null,
        /** @var float|null */
        public ?float $Qty=null,
        /** @var float|null */
        public ?float $Rate=null,
        /** @var float */
        public float $Amount=0.0
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['DispatchLoadID'])) $this->DispatchLoadID = $o['DispatchLoadID'];
        if (isset($o['Kind'])) $this->Kind = $o['Kind'];
        if (isset($o['Label'])) $this->Label = $o['Label'];
        if (isset($o['Qty'])) $this->Qty = $o['Qty'];
        if (isset($o['Rate'])) $this->Rate = $o['Rate'];
        if (isset($o['Amount'])) $this->Amount = $o['Amount'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->DispatchLoadID)) $o['DispatchLoadID'] = $this->DispatchLoadID;
        if (isset($this->Kind)) $o['Kind'] = $this->Kind;
        if (isset($this->Label)) $o['Label'] = $this->Label;
        if (isset($this->Qty)) $o['Qty'] = $this->Qty;
        if (isset($this->Rate)) $o['Rate'] = $this->Rate;
        if (isset($this->Amount)) $o['Amount'] = $this->Amount;
        return empty($o) ? new class(){} : $o;
    }
}

class CourierDriverPayRow implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $DispatchLoadID=0,
        /** @var string|null */
        public ?string $Code=null,
        /** @var string|null */
        public ?string $Kind=null,
        /** @var string|null */
        public ?string $OrderCode=null,
        /** @var string|null */
        public ?string $RunCode=null,
        /** @var string|null */
        public ?string $QtyText=null,
        /** @var string|null */
        public ?string $SourceLabel=null,
        /** @var string|null */
        public ?string $DestinationLabel=null,
        /** @var string|null */
        public ?string $Status=null,
        /** @var float|null */
        public ?float $Pay=null,
        /** @var DateTime|null */
        public ?DateTime $OpenedUtc=null,
        /** @var DateTime|null */
        public ?DateTime $ClosedUtc=null,
        /** @var array<CourierPayLineView>|null */
        public ?array $Lines=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['DispatchLoadID'])) $this->DispatchLoadID = $o['DispatchLoadID'];
        if (isset($o['Code'])) $this->Code = $o['Code'];
        if (isset($o['Kind'])) $this->Kind = $o['Kind'];
        if (isset($o['OrderCode'])) $this->OrderCode = $o['OrderCode'];
        if (isset($o['RunCode'])) $this->RunCode = $o['RunCode'];
        if (isset($o['QtyText'])) $this->QtyText = $o['QtyText'];
        if (isset($o['SourceLabel'])) $this->SourceLabel = $o['SourceLabel'];
        if (isset($o['DestinationLabel'])) $this->DestinationLabel = $o['DestinationLabel'];
        if (isset($o['Status'])) $this->Status = $o['Status'];
        if (isset($o['Pay'])) $this->Pay = $o['Pay'];
        if (isset($o['OpenedUtc'])) $this->OpenedUtc = JsonConverters::from('DateTime', $o['OpenedUtc']);
        if (isset($o['ClosedUtc'])) $this->ClosedUtc = JsonConverters::from('DateTime', $o['ClosedUtc']);
        if (isset($o['Lines'])) $this->Lines = JsonConverters::fromArray('CourierPayLineView', $o['Lines']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->DispatchLoadID)) $o['DispatchLoadID'] = $this->DispatchLoadID;
        if (isset($this->Code)) $o['Code'] = $this->Code;
        if (isset($this->Kind)) $o['Kind'] = $this->Kind;
        if (isset($this->OrderCode)) $o['OrderCode'] = $this->OrderCode;
        if (isset($this->RunCode)) $o['RunCode'] = $this->RunCode;
        if (isset($this->QtyText)) $o['QtyText'] = $this->QtyText;
        if (isset($this->SourceLabel)) $o['SourceLabel'] = $this->SourceLabel;
        if (isset($this->DestinationLabel)) $o['DestinationLabel'] = $this->DestinationLabel;
        if (isset($this->Status)) $o['Status'] = $this->Status;
        if (isset($this->Pay)) $o['Pay'] = $this->Pay;
        if (isset($this->OpenedUtc)) $o['OpenedUtc'] = JsonConverters::to('DateTime', $this->OpenedUtc);
        if (isset($this->ClosedUtc)) $o['ClosedUtc'] = JsonConverters::to('DateTime', $this->ClosedUtc);
        if (isset($this->Lines)) $o['Lines'] = JsonConverters::toArray('CourierPayLineView', $this->Lines);
        return empty($o) ? new class(){} : $o;
    }
}

class CourierEarnRow implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $Kind=null,
        /** @var string|null */
        public ?string $LineKind=null,
        /** @var DateTime|null */
        public ?DateTime $AtUtc=null,
        /** @var string|null */
        public ?string $TimeText=null,
        /** @var int|null */
        public ?int $DayIdx=null,
        /** @var int|null */
        public ?int $FromDayIdx=null,
        /** @var int|null */
        public ?int $ToDayIdx=null,
        /** @var bool|null */
        public ?bool $OnToday=null,
        /** @var int */
        public int $Count=0,
        /** @var int|null */
        public ?int $Units=null,
        /** @var int|null */
        public ?int $Seq=null,
        /** @var string|null */
        public ?string $Street=null,
        /** @var string|null */
        public ?string $City=null,
        /** @var string|null */
        public ?string $Zip=null,
        /** @var float|null */
        public ?float $Amount=null,
        /** @var float|null */
        public ?float $Hours=null,
        /** @var string|null */
        public ?string $Code=null,
        /** @var string|null */
        public ?string $RunCode=null,
        /** @var float|null */
        public ?float $Qty=null,
        /** @var float|null */
        public ?float $Rate=null,
        /** @var string|null */
        public ?string $Label=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['Kind'])) $this->Kind = $o['Kind'];
        if (isset($o['LineKind'])) $this->LineKind = $o['LineKind'];
        if (isset($o['AtUtc'])) $this->AtUtc = JsonConverters::from('DateTime', $o['AtUtc']);
        if (isset($o['TimeText'])) $this->TimeText = $o['TimeText'];
        if (isset($o['DayIdx'])) $this->DayIdx = $o['DayIdx'];
        if (isset($o['FromDayIdx'])) $this->FromDayIdx = $o['FromDayIdx'];
        if (isset($o['ToDayIdx'])) $this->ToDayIdx = $o['ToDayIdx'];
        if (isset($o['OnToday'])) $this->OnToday = $o['OnToday'];
        if (isset($o['Count'])) $this->Count = $o['Count'];
        if (isset($o['Units'])) $this->Units = $o['Units'];
        if (isset($o['Seq'])) $this->Seq = $o['Seq'];
        if (isset($o['Street'])) $this->Street = $o['Street'];
        if (isset($o['City'])) $this->City = $o['City'];
        if (isset($o['Zip'])) $this->Zip = $o['Zip'];
        if (isset($o['Amount'])) $this->Amount = $o['Amount'];
        if (isset($o['Hours'])) $this->Hours = $o['Hours'];
        if (isset($o['Code'])) $this->Code = $o['Code'];
        if (isset($o['RunCode'])) $this->RunCode = $o['RunCode'];
        if (isset($o['Qty'])) $this->Qty = $o['Qty'];
        if (isset($o['Rate'])) $this->Rate = $o['Rate'];
        if (isset($o['Label'])) $this->Label = $o['Label'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->Kind)) $o['Kind'] = $this->Kind;
        if (isset($this->LineKind)) $o['LineKind'] = $this->LineKind;
        if (isset($this->AtUtc)) $o['AtUtc'] = JsonConverters::to('DateTime', $this->AtUtc);
        if (isset($this->TimeText)) $o['TimeText'] = $this->TimeText;
        if (isset($this->DayIdx)) $o['DayIdx'] = $this->DayIdx;
        if (isset($this->FromDayIdx)) $o['FromDayIdx'] = $this->FromDayIdx;
        if (isset($this->ToDayIdx)) $o['ToDayIdx'] = $this->ToDayIdx;
        if (isset($this->OnToday)) $o['OnToday'] = $this->OnToday;
        if (isset($this->Count)) $o['Count'] = $this->Count;
        if (isset($this->Units)) $o['Units'] = $this->Units;
        if (isset($this->Seq)) $o['Seq'] = $this->Seq;
        if (isset($this->Street)) $o['Street'] = $this->Street;
        if (isset($this->City)) $o['City'] = $this->City;
        if (isset($this->Zip)) $o['Zip'] = $this->Zip;
        if (isset($this->Amount)) $o['Amount'] = $this->Amount;
        if (isset($this->Hours)) $o['Hours'] = $this->Hours;
        if (isset($this->Code)) $o['Code'] = $this->Code;
        if (isset($this->RunCode)) $o['RunCode'] = $this->RunCode;
        if (isset($this->Qty)) $o['Qty'] = $this->Qty;
        if (isset($this->Rate)) $o['Rate'] = $this->Rate;
        if (isset($this->Label)) $o['Label'] = $this->Label;
        return empty($o) ? new class(){} : $o;
    }
}

class CourierEarnPlan implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $Name=null,
        /** @var string|null */
        public ?string $WorkerClass=null,
        /** @var float */
        public float $PerPickup=0.0,
        /** @var float */
        public float $PerStop=0.0,
        /** @var float */
        public float $PerMissed=0.0,
        /** @var float */
        public float $PerCancel=0.0,
        /** @var int */
        public int $WaitAfterMin=0,
        /** @var float */
        public float $WaitPerMin=0.0,
        /** @var int|null */
        public ?int $MaxPaidWaitMin=null,
        /** @var bool|null */
        public ?bool $MileageOn=null,
        /** @var float */
        public float $PerMile=0.0,
        /** @var float */
        public float $MinPerJob=0.0,
        /** @var float */
        public float $TipsPct=0.0
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['Name'])) $this->Name = $o['Name'];
        if (isset($o['WorkerClass'])) $this->WorkerClass = $o['WorkerClass'];
        if (isset($o['PerPickup'])) $this->PerPickup = $o['PerPickup'];
        if (isset($o['PerStop'])) $this->PerStop = $o['PerStop'];
        if (isset($o['PerMissed'])) $this->PerMissed = $o['PerMissed'];
        if (isset($o['PerCancel'])) $this->PerCancel = $o['PerCancel'];
        if (isset($o['WaitAfterMin'])) $this->WaitAfterMin = $o['WaitAfterMin'];
        if (isset($o['WaitPerMin'])) $this->WaitPerMin = $o['WaitPerMin'];
        if (isset($o['MaxPaidWaitMin'])) $this->MaxPaidWaitMin = $o['MaxPaidWaitMin'];
        if (isset($o['MileageOn'])) $this->MileageOn = $o['MileageOn'];
        if (isset($o['PerMile'])) $this->PerMile = $o['PerMile'];
        if (isset($o['MinPerJob'])) $this->MinPerJob = $o['MinPerJob'];
        if (isset($o['TipsPct'])) $this->TipsPct = $o['TipsPct'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->Name)) $o['Name'] = $this->Name;
        if (isset($this->WorkerClass)) $o['WorkerClass'] = $this->WorkerClass;
        if (isset($this->PerPickup)) $o['PerPickup'] = $this->PerPickup;
        if (isset($this->PerStop)) $o['PerStop'] = $this->PerStop;
        if (isset($this->PerMissed)) $o['PerMissed'] = $this->PerMissed;
        if (isset($this->PerCancel)) $o['PerCancel'] = $this->PerCancel;
        if (isset($this->WaitAfterMin)) $o['WaitAfterMin'] = $this->WaitAfterMin;
        if (isset($this->WaitPerMin)) $o['WaitPerMin'] = $this->WaitPerMin;
        if (isset($this->MaxPaidWaitMin)) $o['MaxPaidWaitMin'] = $this->MaxPaidWaitMin;
        if (isset($this->MileageOn)) $o['MileageOn'] = $this->MileageOn;
        if (isset($this->PerMile)) $o['PerMile'] = $this->PerMile;
        if (isset($this->MinPerJob)) $o['MinPerJob'] = $this->MinPerJob;
        if (isset($this->TipsPct)) $o['TipsPct'] = $this->TipsPct;
        return empty($o) ? new class(){} : $o;
    }
}

class CourierDriverPayResponse implements JsonSerializable
{
    public function __construct(
        /** @var array<CourierDriverPayRow>|null */
        public ?array $Rows=null,
        /** @var float */
        public float $Total=0.0,
        /** @var bool|null */
        public ?bool $Available=null,
        /** @var DateTime */
        public DateTime $ServerUtc=new DateTime(),
        /** @var string|null */
        public ?string $Range=null,
        /** @var bool|null */
        public ?bool $IsHourly=null,
        /** @var float */
        public float $TodayTotal=0.0,
        /** @var float */
        public float $WeekTotal=0.0,
        /** @var float */
        public float $TipsToday=0.0,
        /** @var float */
        public float $TipsWeek=0.0,
        /** @var DateTime|null */
        public ?DateTime $WeekStartUtc=null,
        /** @var int */
        public int $WeekStartDay=0,
        /** @var array<CourierEarnRow>|null */
        public ?array $Today=null,
        /** @var array<CourierEarnRow>|null */
        public ?array $Earlier=null,
        /** @var array<CourierEarnRow>|null */
        public ?array $Tips=null,
        /** @var CourierEarnPlan|null */
        public ?CourierEarnPlan $Plan=null,
        /** @var int */
        public int $PickupsWeek=0,
        /** @var int */
        public int $StopsWeek=0,
        /** @var float|null */
        public ?float $HoursToday=null,
        /** @var float|null */
        public ?float $HoursWeek=null,
        /** @var bool|null */
        public ?bool $ClockOn=null,
        /** @var string|null */
        public ?string $ClockSinceText=null,
        /** @var bool|null */
        public ?bool $HideAddresses=null,
        /** @var bool|null */
        public ?bool $Detailed=null,
        /** @var string|null */
        public ?string $UnitOne=null,
        /** @var string|null */
        public ?string $UnitMany=null,
        /** @var string|null */
        public ?string $UnitOneEs=null,
        /** @var string|null */
        public ?string $UnitManyEs=null,
        /** @var ResponseStatus|null */
        public ?ResponseStatus $ResponseStatus=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['Rows'])) $this->Rows = JsonConverters::fromArray('CourierDriverPayRow', $o['Rows']);
        if (isset($o['Total'])) $this->Total = $o['Total'];
        if (isset($o['Available'])) $this->Available = $o['Available'];
        if (isset($o['ServerUtc'])) $this->ServerUtc = JsonConverters::from('DateTime', $o['ServerUtc']);
        if (isset($o['Range'])) $this->Range = $o['Range'];
        if (isset($o['IsHourly'])) $this->IsHourly = $o['IsHourly'];
        if (isset($o['TodayTotal'])) $this->TodayTotal = $o['TodayTotal'];
        if (isset($o['WeekTotal'])) $this->WeekTotal = $o['WeekTotal'];
        if (isset($o['TipsToday'])) $this->TipsToday = $o['TipsToday'];
        if (isset($o['TipsWeek'])) $this->TipsWeek = $o['TipsWeek'];
        if (isset($o['WeekStartUtc'])) $this->WeekStartUtc = JsonConverters::from('DateTime', $o['WeekStartUtc']);
        if (isset($o['WeekStartDay'])) $this->WeekStartDay = $o['WeekStartDay'];
        if (isset($o['Today'])) $this->Today = JsonConverters::fromArray('CourierEarnRow', $o['Today']);
        if (isset($o['Earlier'])) $this->Earlier = JsonConverters::fromArray('CourierEarnRow', $o['Earlier']);
        if (isset($o['Tips'])) $this->Tips = JsonConverters::fromArray('CourierEarnRow', $o['Tips']);
        if (isset($o['Plan'])) $this->Plan = JsonConverters::from('CourierEarnPlan', $o['Plan']);
        if (isset($o['PickupsWeek'])) $this->PickupsWeek = $o['PickupsWeek'];
        if (isset($o['StopsWeek'])) $this->StopsWeek = $o['StopsWeek'];
        if (isset($o['HoursToday'])) $this->HoursToday = $o['HoursToday'];
        if (isset($o['HoursWeek'])) $this->HoursWeek = $o['HoursWeek'];
        if (isset($o['ClockOn'])) $this->ClockOn = $o['ClockOn'];
        if (isset($o['ClockSinceText'])) $this->ClockSinceText = $o['ClockSinceText'];
        if (isset($o['HideAddresses'])) $this->HideAddresses = $o['HideAddresses'];
        if (isset($o['Detailed'])) $this->Detailed = $o['Detailed'];
        if (isset($o['UnitOne'])) $this->UnitOne = $o['UnitOne'];
        if (isset($o['UnitMany'])) $this->UnitMany = $o['UnitMany'];
        if (isset($o['UnitOneEs'])) $this->UnitOneEs = $o['UnitOneEs'];
        if (isset($o['UnitManyEs'])) $this->UnitManyEs = $o['UnitManyEs'];
        if (isset($o['ResponseStatus'])) $this->ResponseStatus = JsonConverters::from('ResponseStatus', $o['ResponseStatus']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->Rows)) $o['Rows'] = JsonConverters::toArray('CourierDriverPayRow', $this->Rows);
        if (isset($this->Total)) $o['Total'] = $this->Total;
        if (isset($this->Available)) $o['Available'] = $this->Available;
        if (isset($this->ServerUtc)) $o['ServerUtc'] = JsonConverters::to('DateTime', $this->ServerUtc);
        if (isset($this->Range)) $o['Range'] = $this->Range;
        if (isset($this->IsHourly)) $o['IsHourly'] = $this->IsHourly;
        if (isset($this->TodayTotal)) $o['TodayTotal'] = $this->TodayTotal;
        if (isset($this->WeekTotal)) $o['WeekTotal'] = $this->WeekTotal;
        if (isset($this->TipsToday)) $o['TipsToday'] = $this->TipsToday;
        if (isset($this->TipsWeek)) $o['TipsWeek'] = $this->TipsWeek;
        if (isset($this->WeekStartUtc)) $o['WeekStartUtc'] = JsonConverters::to('DateTime', $this->WeekStartUtc);
        if (isset($this->WeekStartDay)) $o['WeekStartDay'] = $this->WeekStartDay;
        if (isset($this->Today)) $o['Today'] = JsonConverters::toArray('CourierEarnRow', $this->Today);
        if (isset($this->Earlier)) $o['Earlier'] = JsonConverters::toArray('CourierEarnRow', $this->Earlier);
        if (isset($this->Tips)) $o['Tips'] = JsonConverters::toArray('CourierEarnRow', $this->Tips);
        if (isset($this->Plan)) $o['Plan'] = JsonConverters::to('CourierEarnPlan', $this->Plan);
        if (isset($this->PickupsWeek)) $o['PickupsWeek'] = $this->PickupsWeek;
        if (isset($this->StopsWeek)) $o['StopsWeek'] = $this->StopsWeek;
        if (isset($this->HoursToday)) $o['HoursToday'] = $this->HoursToday;
        if (isset($this->HoursWeek)) $o['HoursWeek'] = $this->HoursWeek;
        if (isset($this->ClockOn)) $o['ClockOn'] = $this->ClockOn;
        if (isset($this->ClockSinceText)) $o['ClockSinceText'] = $this->ClockSinceText;
        if (isset($this->HideAddresses)) $o['HideAddresses'] = $this->HideAddresses;
        if (isset($this->Detailed)) $o['Detailed'] = $this->Detailed;
        if (isset($this->UnitOne)) $o['UnitOne'] = $this->UnitOne;
        if (isset($this->UnitMany)) $o['UnitMany'] = $this->UnitMany;
        if (isset($this->UnitOneEs)) $o['UnitOneEs'] = $this->UnitOneEs;
        if (isset($this->UnitManyEs)) $o['UnitManyEs'] = $this->UnitManyEs;
        if (isset($this->ResponseStatus)) $o['ResponseStatus'] = JsonConverters::to('ResponseStatus', $this->ResponseStatus);
        return empty($o) ? new class(){} : $o;
    }
}

class CourierDriverPayRequest implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $Range=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['Range'])) $this->Range = $o['Range'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->Range)) $o['Range'] = $this->Range;
        return empty($o) ? new class(){} : $o;
    }
}

PHP 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>