| POST,OPTIONS | /v1/dispatch/ondemand/{Code}/advance |
|---|
<?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 DispatchPackConfigView implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $PackId=null,
/** @var bool|null */
public ?bool $HasQuotas=null,
/** @var bool|null */
public ?bool $IsInverted=null,
/** @var int */
public int $LoadLimitMins=0,
/** @var string|null */
public ?string $TicketSource=null,
/** @var string|null */
public ?string $PayBasis=null,
/** @var string|null */
public ?string $DayBoundary=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['PackId'])) $this->PackId = $o['PackId'];
if (isset($o['HasQuotas'])) $this->HasQuotas = $o['HasQuotas'];
if (isset($o['IsInverted'])) $this->IsInverted = $o['IsInverted'];
if (isset($o['LoadLimitMins'])) $this->LoadLimitMins = $o['LoadLimitMins'];
if (isset($o['TicketSource'])) $this->TicketSource = $o['TicketSource'];
if (isset($o['PayBasis'])) $this->PayBasis = $o['PayBasis'];
if (isset($o['DayBoundary'])) $this->DayBoundary = $o['DayBoundary'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->PackId)) $o['PackId'] = $this->PackId;
if (isset($this->HasQuotas)) $o['HasQuotas'] = $this->HasQuotas;
if (isset($this->IsInverted)) $o['IsInverted'] = $this->IsInverted;
if (isset($this->LoadLimitMins)) $o['LoadLimitMins'] = $this->LoadLimitMins;
if (isset($this->TicketSource)) $o['TicketSource'] = $this->TicketSource;
if (isset($this->PayBasis)) $o['PayBasis'] = $this->PayBasis;
if (isset($this->DayBoundary)) $o['DayBoundary'] = $this->DayBoundary;
return empty($o) ? new class(){} : $o;
}
}
class DispatchHaulConfigView implements JsonSerializable
{
public function __construct(
/** @var int */
public int $QueueMax=0,
/** @var int */
public int $DumpBays=0,
/** @var int */
public int $SlotCap=0,
/** @var bool|null */
public ?bool $Paused=null,
/** @var int */
public int $FeedRate=0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['QueueMax'])) $this->QueueMax = $o['QueueMax'];
if (isset($o['DumpBays'])) $this->DumpBays = $o['DumpBays'];
if (isset($o['SlotCap'])) $this->SlotCap = $o['SlotCap'];
if (isset($o['Paused'])) $this->Paused = $o['Paused'];
if (isset($o['FeedRate'])) $this->FeedRate = $o['FeedRate'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->QueueMax)) $o['QueueMax'] = $this->QueueMax;
if (isset($this->DumpBays)) $o['DumpBays'] = $this->DumpBays;
if (isset($this->SlotCap)) $o['SlotCap'] = $this->SlotCap;
if (isset($this->Paused)) $o['Paused'] = $this->Paused;
if (isset($this->FeedRate)) $o['FeedRate'] = $this->FeedRate;
return empty($o) ? new class(){} : $o;
}
}
class DispatchOfflineWindowView implements JsonSerializable
{
public function __construct(
/** @var int */
public int $OfflineWindowId=0,
/** @var string|null */
public ?string $FromHour=null,
/** @var string|null */
public ?string $ToHour=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['OfflineWindowId'])) $this->OfflineWindowId = $o['OfflineWindowId'];
if (isset($o['FromHour'])) $this->FromHour = $o['FromHour'];
if (isset($o['ToHour'])) $this->ToHour = $o['ToHour'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->OfflineWindowId)) $o['OfflineWindowId'] = $this->OfflineWindowId;
if (isset($this->FromHour)) $o['FromHour'] = $this->FromHour;
if (isset($this->ToHour)) $o['ToHour'] = $this->ToHour;
return empty($o) ? new class(){} : $o;
}
}
class DispatchSiteView implements JsonSerializable
{
public function __construct(
/** @var int */
public int $SiteId=0,
/** @var int */
public int $SupplierId=0,
/** @var string|null */
public ?string $SupplierCode=null,
/** @var string|null */
public ?string $Name=null,
/** @var int */
public int $Acres=0,
/** @var float */
public float $StandingVolume=0.0,
/** @var int */
public int $SortOrder=0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['SiteId'])) $this->SiteId = $o['SiteId'];
if (isset($o['SupplierId'])) $this->SupplierId = $o['SupplierId'];
if (isset($o['SupplierCode'])) $this->SupplierCode = $o['SupplierCode'];
if (isset($o['Name'])) $this->Name = $o['Name'];
if (isset($o['Acres'])) $this->Acres = $o['Acres'];
if (isset($o['StandingVolume'])) $this->StandingVolume = $o['StandingVolume'];
if (isset($o['SortOrder'])) $this->SortOrder = $o['SortOrder'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->SiteId)) $o['SiteId'] = $this->SiteId;
if (isset($this->SupplierId)) $o['SupplierId'] = $this->SupplierId;
if (isset($this->SupplierCode)) $o['SupplierCode'] = $this->SupplierCode;
if (isset($this->Name)) $o['Name'] = $this->Name;
if (isset($this->Acres)) $o['Acres'] = $this->Acres;
if (isset($this->StandingVolume)) $o['StandingVolume'] = $this->StandingVolume;
if (isset($this->SortOrder)) $o['SortOrder'] = $this->SortOrder;
return empty($o) ? new class(){} : $o;
}
}
class DispatchSupplierView implements JsonSerializable
{
public function __construct(
/** @var int */
public int $SupplierId=0,
/** @var string|null */
public ?string $Code=null,
/** @var string|null */
public ?string $Name=null,
/** @var string|null */
public ?string $Region=null,
/** @var bool|null */
public ?bool $OwnHauler=null,
/** @var float */
public float $SeasonAllotment=0.0,
/** @var float */
public float $Delivered=0.0,
/** @var float */
public float $WeekCap=0.0,
/** @var float */
public float $WeekDelivered=0.0,
/** @var int */
public int $SortOrder=0,
/** @var array<DispatchSiteView>|null */
public ?array $Sites=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['SupplierId'])) $this->SupplierId = $o['SupplierId'];
if (isset($o['Code'])) $this->Code = $o['Code'];
if (isset($o['Name'])) $this->Name = $o['Name'];
if (isset($o['Region'])) $this->Region = $o['Region'];
if (isset($o['OwnHauler'])) $this->OwnHauler = $o['OwnHauler'];
if (isset($o['SeasonAllotment'])) $this->SeasonAllotment = $o['SeasonAllotment'];
if (isset($o['Delivered'])) $this->Delivered = $o['Delivered'];
if (isset($o['WeekCap'])) $this->WeekCap = $o['WeekCap'];
if (isset($o['WeekDelivered'])) $this->WeekDelivered = $o['WeekDelivered'];
if (isset($o['SortOrder'])) $this->SortOrder = $o['SortOrder'];
if (isset($o['Sites'])) $this->Sites = JsonConverters::fromArray('DispatchSiteView', $o['Sites']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->SupplierId)) $o['SupplierId'] = $this->SupplierId;
if (isset($this->Code)) $o['Code'] = $this->Code;
if (isset($this->Name)) $o['Name'] = $this->Name;
if (isset($this->Region)) $o['Region'] = $this->Region;
if (isset($this->OwnHauler)) $o['OwnHauler'] = $this->OwnHauler;
if (isset($this->SeasonAllotment)) $o['SeasonAllotment'] = $this->SeasonAllotment;
if (isset($this->Delivered)) $o['Delivered'] = $this->Delivered;
if (isset($this->WeekCap)) $o['WeekCap'] = $this->WeekCap;
if (isset($this->WeekDelivered)) $o['WeekDelivered'] = $this->WeekDelivered;
if (isset($this->SortOrder)) $o['SortOrder'] = $this->SortOrder;
if (isset($this->Sites)) $o['Sites'] = JsonConverters::toArray('DispatchSiteView', $this->Sites);
return empty($o) ? new class(){} : $o;
}
}
class DispatchTruckView implements JsonSerializable
{
public function __construct(
/** @var int */
public int $TruckId=0,
/** @var string|null */
public ?string $Code=null,
/** @var string|null */
public ?string $DriverName=null,
/** @var string|null */
public ?string $Phone=null,
/** @var string|null */
public ?string $DispatchState=null,
/** @var string|null */
public ?string $DispatchReason=null,
/** @var string|null */
public ?string $EmployerCode=null,
/** @var string|null */
public ?string $SupplierCode=null,
/** @var string|null */
public ?string $SiteName=null,
/** @var float */
public float $EstLoad=0.0,
/** @var string|null */
public ?string $Stage=null,
/** @var int */
public int $StageSince=0,
/** @var int|null */
public ?int $CycleStart=null,
/** @var int */
public int $StageMinsAgo=0,
/** @var int|null */
public ?int $CycleMinsAgo=null,
/** @var string|null */
public ?string $Slot=null,
/** @var int */
public int $LoadsToday=0,
/** @var float */
public float $NetToday=0.0,
/** @var int */
public int $LastPingMins=0,
/** @var string|null */
public ?string $CycleMins=null,
/** @var bool|null */
public ?bool $IsInteractive=null,
/** @var string|null */
public ?string $NextSupplierCode=null,
/** @var string|null */
public ?string $NextSiteName=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['TruckId'])) $this->TruckId = $o['TruckId'];
if (isset($o['Code'])) $this->Code = $o['Code'];
if (isset($o['DriverName'])) $this->DriverName = $o['DriverName'];
if (isset($o['Phone'])) $this->Phone = $o['Phone'];
if (isset($o['DispatchState'])) $this->DispatchState = $o['DispatchState'];
if (isset($o['DispatchReason'])) $this->DispatchReason = $o['DispatchReason'];
if (isset($o['EmployerCode'])) $this->EmployerCode = $o['EmployerCode'];
if (isset($o['SupplierCode'])) $this->SupplierCode = $o['SupplierCode'];
if (isset($o['SiteName'])) $this->SiteName = $o['SiteName'];
if (isset($o['EstLoad'])) $this->EstLoad = $o['EstLoad'];
if (isset($o['Stage'])) $this->Stage = $o['Stage'];
if (isset($o['StageSince'])) $this->StageSince = $o['StageSince'];
if (isset($o['CycleStart'])) $this->CycleStart = $o['CycleStart'];
if (isset($o['StageMinsAgo'])) $this->StageMinsAgo = $o['StageMinsAgo'];
if (isset($o['CycleMinsAgo'])) $this->CycleMinsAgo = $o['CycleMinsAgo'];
if (isset($o['Slot'])) $this->Slot = $o['Slot'];
if (isset($o['LoadsToday'])) $this->LoadsToday = $o['LoadsToday'];
if (isset($o['NetToday'])) $this->NetToday = $o['NetToday'];
if (isset($o['LastPingMins'])) $this->LastPingMins = $o['LastPingMins'];
if (isset($o['CycleMins'])) $this->CycleMins = $o['CycleMins'];
if (isset($o['IsInteractive'])) $this->IsInteractive = $o['IsInteractive'];
if (isset($o['NextSupplierCode'])) $this->NextSupplierCode = $o['NextSupplierCode'];
if (isset($o['NextSiteName'])) $this->NextSiteName = $o['NextSiteName'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->TruckId)) $o['TruckId'] = $this->TruckId;
if (isset($this->Code)) $o['Code'] = $this->Code;
if (isset($this->DriverName)) $o['DriverName'] = $this->DriverName;
if (isset($this->Phone)) $o['Phone'] = $this->Phone;
if (isset($this->DispatchState)) $o['DispatchState'] = $this->DispatchState;
if (isset($this->DispatchReason)) $o['DispatchReason'] = $this->DispatchReason;
if (isset($this->EmployerCode)) $o['EmployerCode'] = $this->EmployerCode;
if (isset($this->SupplierCode)) $o['SupplierCode'] = $this->SupplierCode;
if (isset($this->SiteName)) $o['SiteName'] = $this->SiteName;
if (isset($this->EstLoad)) $o['EstLoad'] = $this->EstLoad;
if (isset($this->Stage)) $o['Stage'] = $this->Stage;
if (isset($this->StageSince)) $o['StageSince'] = $this->StageSince;
if (isset($this->CycleStart)) $o['CycleStart'] = $this->CycleStart;
if (isset($this->StageMinsAgo)) $o['StageMinsAgo'] = $this->StageMinsAgo;
if (isset($this->CycleMinsAgo)) $o['CycleMinsAgo'] = $this->CycleMinsAgo;
if (isset($this->Slot)) $o['Slot'] = $this->Slot;
if (isset($this->LoadsToday)) $o['LoadsToday'] = $this->LoadsToday;
if (isset($this->NetToday)) $o['NetToday'] = $this->NetToday;
if (isset($this->LastPingMins)) $o['LastPingMins'] = $this->LastPingMins;
if (isset($this->CycleMins)) $o['CycleMins'] = $this->CycleMins;
if (isset($this->IsInteractive)) $o['IsInteractive'] = $this->IsInteractive;
if (isset($this->NextSupplierCode)) $o['NextSupplierCode'] = $this->NextSupplierCode;
if (isset($this->NextSiteName)) $o['NextSiteName'] = $this->NextSiteName;
return empty($o) ? new class(){} : $o;
}
}
class DispatchSlotView implements JsonSerializable
{
public function __construct(
/** @var int */
public int $SlotId=0,
/** @var string|null */
public ?string $Hour=null,
/** @var int */
public int $BaseBooked=0,
/** @var int */
public int $SortOrder=0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['SlotId'])) $this->SlotId = $o['SlotId'];
if (isset($o['Hour'])) $this->Hour = $o['Hour'];
if (isset($o['BaseBooked'])) $this->BaseBooked = $o['BaseBooked'];
if (isset($o['SortOrder'])) $this->SortOrder = $o['SortOrder'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->SlotId)) $o['SlotId'] = $this->SlotId;
if (isset($this->Hour)) $o['Hour'] = $this->Hour;
if (isset($this->BaseBooked)) $o['BaseBooked'] = $this->BaseBooked;
if (isset($this->SortOrder)) $o['SortOrder'] = $this->SortOrder;
return empty($o) ? new class(){} : $o;
}
}
class DispatchTicketView implements JsonSerializable
{
public function __construct(
/** @var int */
public int $TicketId=0,
/** @var string|null */
public ?string $Code=null,
/** @var string|null */
public ?string $TruckCode=null,
/** @var string|null */
public ?string $SupplierCode=null,
/** @var float */
public float $NetQty=0.0,
/** @var DateTime */
public DateTime $TicketedAt=new DateTime(),
/** @var int */
public int $TicketedMin=0,
/** @var string|null */
public ?string $Source=null,
/** @var int */
public int $MinsAgo=0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['TicketId'])) $this->TicketId = $o['TicketId'];
if (isset($o['Code'])) $this->Code = $o['Code'];
if (isset($o['TruckCode'])) $this->TruckCode = $o['TruckCode'];
if (isset($o['SupplierCode'])) $this->SupplierCode = $o['SupplierCode'];
if (isset($o['NetQty'])) $this->NetQty = $o['NetQty'];
if (isset($o['TicketedAt'])) $this->TicketedAt = JsonConverters::from('DateTime', $o['TicketedAt']);
if (isset($o['TicketedMin'])) $this->TicketedMin = $o['TicketedMin'];
if (isset($o['Source'])) $this->Source = $o['Source'];
if (isset($o['MinsAgo'])) $this->MinsAgo = $o['MinsAgo'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->TicketId)) $o['TicketId'] = $this->TicketId;
if (isset($this->Code)) $o['Code'] = $this->Code;
if (isset($this->TruckCode)) $o['TruckCode'] = $this->TruckCode;
if (isset($this->SupplierCode)) $o['SupplierCode'] = $this->SupplierCode;
if (isset($this->NetQty)) $o['NetQty'] = $this->NetQty;
if (isset($this->TicketedAt)) $o['TicketedAt'] = JsonConverters::to('DateTime', $this->TicketedAt);
if (isset($this->TicketedMin)) $o['TicketedMin'] = $this->TicketedMin;
if (isset($this->Source)) $o['Source'] = $this->Source;
if (isset($this->MinsAgo)) $o['MinsAgo'] = $this->MinsAgo;
return empty($o) ? new class(){} : $o;
}
}
class DispatchLogView implements JsonSerializable
{
public function __construct(
/** @var int */
public int $LogId=0,
/** @var DateTime */
public DateTime $LoggedAt=new DateTime(),
/** @var int */
public int $LoggedMin=0,
/** @var string|null */
public ?string $LogText=null,
/** @var string|null */
public ?string $Kind=null,
/** @var int */
public int $MinsAgo=0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['LogId'])) $this->LogId = $o['LogId'];
if (isset($o['LoggedAt'])) $this->LoggedAt = JsonConverters::from('DateTime', $o['LoggedAt']);
if (isset($o['LoggedMin'])) $this->LoggedMin = $o['LoggedMin'];
if (isset($o['LogText'])) $this->LogText = $o['LogText'];
if (isset($o['Kind'])) $this->Kind = $o['Kind'];
if (isset($o['MinsAgo'])) $this->MinsAgo = $o['MinsAgo'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->LogId)) $o['LogId'] = $this->LogId;
if (isset($this->LoggedAt)) $o['LoggedAt'] = JsonConverters::to('DateTime', $this->LoggedAt);
if (isset($this->LoggedMin)) $o['LoggedMin'] = $this->LoggedMin;
if (isset($this->LogText)) $o['LogText'] = $this->LogText;
if (isset($this->Kind)) $o['Kind'] = $this->Kind;
if (isset($this->MinsAgo)) $o['MinsAgo'] = $this->MinsAgo;
return empty($o) ? new class(){} : $o;
}
}
class DispatchAutopilotView implements JsonSerializable
{
public function __construct(
/** @var bool|null */
public ?bool $IsOn=null,
/** @var bool|null */
public ?bool $RuleSlot=null,
/** @var bool|null */
public ?bool $RuleRoute=null,
/** @var bool|null */
public ?bool $RuleRelease=null,
/** @var bool|null */
public ?bool $RuleTract=null,
/** @var bool|null */
public ?bool $RuleThrottle=null,
/** @var bool|null */
public ?bool $RuleOffline=null,
/** @var int */
public int $ThStaged=0,
/** @var int */
public int $ThWait=0,
/** @var int */
public int $ThBand=0,
/** @var int */
public int $ThStall=0,
/** @var int */
public int $ThFeed=0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['IsOn'])) $this->IsOn = $o['IsOn'];
if (isset($o['RuleSlot'])) $this->RuleSlot = $o['RuleSlot'];
if (isset($o['RuleRoute'])) $this->RuleRoute = $o['RuleRoute'];
if (isset($o['RuleRelease'])) $this->RuleRelease = $o['RuleRelease'];
if (isset($o['RuleTract'])) $this->RuleTract = $o['RuleTract'];
if (isset($o['RuleThrottle'])) $this->RuleThrottle = $o['RuleThrottle'];
if (isset($o['RuleOffline'])) $this->RuleOffline = $o['RuleOffline'];
if (isset($o['ThStaged'])) $this->ThStaged = $o['ThStaged'];
if (isset($o['ThWait'])) $this->ThWait = $o['ThWait'];
if (isset($o['ThBand'])) $this->ThBand = $o['ThBand'];
if (isset($o['ThStall'])) $this->ThStall = $o['ThStall'];
if (isset($o['ThFeed'])) $this->ThFeed = $o['ThFeed'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->IsOn)) $o['IsOn'] = $this->IsOn;
if (isset($this->RuleSlot)) $o['RuleSlot'] = $this->RuleSlot;
if (isset($this->RuleRoute)) $o['RuleRoute'] = $this->RuleRoute;
if (isset($this->RuleRelease)) $o['RuleRelease'] = $this->RuleRelease;
if (isset($this->RuleTract)) $o['RuleTract'] = $this->RuleTract;
if (isset($this->RuleThrottle)) $o['RuleThrottle'] = $this->RuleThrottle;
if (isset($this->RuleOffline)) $o['RuleOffline'] = $this->RuleOffline;
if (isset($this->ThStaged)) $o['ThStaged'] = $this->ThStaged;
if (isset($this->ThWait)) $o['ThWait'] = $this->ThWait;
if (isset($this->ThBand)) $o['ThBand'] = $this->ThBand;
if (isset($this->ThStall)) $o['ThStall'] = $this->ThStall;
if (isset($this->ThFeed)) $o['ThFeed'] = $this->ThFeed;
return empty($o) ? new class(){} : $o;
}
}
class DispatchExceptionView implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $Code=null,
/** @var string|null */
public ?string $Kind=null,
/** @var string|null */
public ?string $Severity=null,
/** @var string|null */
public ?string $TruckCode=null,
/** @var string|null */
public ?string $SupplierCode=null,
/** @var DateTime */
public DateTime $RaisedAt=new DateTime(),
/** @var string|null */
public ?string $RaisedLabel=null,
/** @var int */
public int $MinsAgo=0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Code'])) $this->Code = $o['Code'];
if (isset($o['Kind'])) $this->Kind = $o['Kind'];
if (isset($o['Severity'])) $this->Severity = $o['Severity'];
if (isset($o['TruckCode'])) $this->TruckCode = $o['TruckCode'];
if (isset($o['SupplierCode'])) $this->SupplierCode = $o['SupplierCode'];
if (isset($o['RaisedAt'])) $this->RaisedAt = JsonConverters::from('DateTime', $o['RaisedAt']);
if (isset($o['RaisedLabel'])) $this->RaisedLabel = $o['RaisedLabel'];
if (isset($o['MinsAgo'])) $this->MinsAgo = $o['MinsAgo'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Code)) $o['Code'] = $this->Code;
if (isset($this->Kind)) $o['Kind'] = $this->Kind;
if (isset($this->Severity)) $o['Severity'] = $this->Severity;
if (isset($this->TruckCode)) $o['TruckCode'] = $this->TruckCode;
if (isset($this->SupplierCode)) $o['SupplierCode'] = $this->SupplierCode;
if (isset($this->RaisedAt)) $o['RaisedAt'] = JsonConverters::to('DateTime', $this->RaisedAt);
if (isset($this->RaisedLabel)) $o['RaisedLabel'] = $this->RaisedLabel;
if (isset($this->MinsAgo)) $o['MinsAgo'] = $this->MinsAgo;
return empty($o) ? new class(){} : $o;
}
}
class DispatchFeedView implements JsonSerializable
{
public function __construct(
/** @var int */
public int $FeedId=0,
/** @var DateTime */
public DateTime $EntryAt=new DateTime(),
/** @var string|null */
public ?string $EntryLabel=null,
/** @var string|null */
public ?string $Channel=null,
/** @var string|null */
public ?string $Kind=null,
/** @var string|null */
public ?string $TruckCode=null,
/** @var string|null */
public ?string $SupplierCode=null,
/** @var string|null */
public ?string $OverrideText=null,
/** @var int */
public int $MinsAgo=0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['FeedId'])) $this->FeedId = $o['FeedId'];
if (isset($o['EntryAt'])) $this->EntryAt = JsonConverters::from('DateTime', $o['EntryAt']);
if (isset($o['EntryLabel'])) $this->EntryLabel = $o['EntryLabel'];
if (isset($o['Channel'])) $this->Channel = $o['Channel'];
if (isset($o['Kind'])) $this->Kind = $o['Kind'];
if (isset($o['TruckCode'])) $this->TruckCode = $o['TruckCode'];
if (isset($o['SupplierCode'])) $this->SupplierCode = $o['SupplierCode'];
if (isset($o['OverrideText'])) $this->OverrideText = $o['OverrideText'];
if (isset($o['MinsAgo'])) $this->MinsAgo = $o['MinsAgo'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->FeedId)) $o['FeedId'] = $this->FeedId;
if (isset($this->EntryAt)) $o['EntryAt'] = JsonConverters::to('DateTime', $this->EntryAt);
if (isset($this->EntryLabel)) $o['EntryLabel'] = $this->EntryLabel;
if (isset($this->Channel)) $o['Channel'] = $this->Channel;
if (isset($this->Kind)) $o['Kind'] = $this->Kind;
if (isset($this->TruckCode)) $o['TruckCode'] = $this->TruckCode;
if (isset($this->SupplierCode)) $o['SupplierCode'] = $this->SupplierCode;
if (isset($this->OverrideText)) $o['OverrideText'] = $this->OverrideText;
if (isset($this->MinsAgo)) $o['MinsAgo'] = $this->MinsAgo;
return empty($o) ? new class(){} : $o;
}
}
class DispatchRigView implements JsonSerializable
{
public function __construct(
/** @var int */
public int $RigId=0,
/** @var string|null */
public ?string $Code=null,
/** @var string|null */
public ?string $Name=null,
/** @var string|null */
public ?string $DriverName=null,
/** @var string|null */
public ?string $Phone=null,
/** @var string|null */
public ?string $RigType=null,
/** @var bool|null */
public ?bool $IsFree=null,
/** @var int */
public int $MatchRank=0,
/** @var string|null */
public ?string $DispatchState=null,
/** @var string|null */
public ?string $DispatchReason=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['RigId'])) $this->RigId = $o['RigId'];
if (isset($o['Code'])) $this->Code = $o['Code'];
if (isset($o['Name'])) $this->Name = $o['Name'];
if (isset($o['DriverName'])) $this->DriverName = $o['DriverName'];
if (isset($o['Phone'])) $this->Phone = $o['Phone'];
if (isset($o['RigType'])) $this->RigType = $o['RigType'];
if (isset($o['IsFree'])) $this->IsFree = $o['IsFree'];
if (isset($o['MatchRank'])) $this->MatchRank = $o['MatchRank'];
if (isset($o['DispatchState'])) $this->DispatchState = $o['DispatchState'];
if (isset($o['DispatchReason'])) $this->DispatchReason = $o['DispatchReason'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->RigId)) $o['RigId'] = $this->RigId;
if (isset($this->Code)) $o['Code'] = $this->Code;
if (isset($this->Name)) $o['Name'] = $this->Name;
if (isset($this->DriverName)) $o['DriverName'] = $this->DriverName;
if (isset($this->Phone)) $o['Phone'] = $this->Phone;
if (isset($this->RigType)) $o['RigType'] = $this->RigType;
if (isset($this->IsFree)) $o['IsFree'] = $this->IsFree;
if (isset($this->MatchRank)) $o['MatchRank'] = $this->MatchRank;
if (isset($this->DispatchState)) $o['DispatchState'] = $this->DispatchState;
if (isset($this->DispatchReason)) $o['DispatchReason'] = $this->DispatchReason;
return empty($o) ? new class(){} : $o;
}
}
class DispatchJobView implements JsonSerializable
{
public function __construct(
/** @var int */
public int $JobId=0,
/** @var string|null */
public ?string $Code=null,
/** @var string|null */
public ?string $Cargo=null,
/** @var string|null */
public ?string $Customer=null,
/** @var string|null */
public ?string $CustomerPhone=null,
/** @var string|null */
public ?string $HoldContact=null,
/** @var string|null */
public ?string $HoldPhone=null,
/** @var string|null */
public ?string $FromLoc=null,
/** @var string|null */
public ?string $ToLoc=null,
/** @var int */
public int $Miles=0,
/** @var string|null */
public ?string $WindowText=null,
/** @var string|null */
public ?string $Stage=null,
/** @var float|null */
public ?float $Rate=null,
/** @var string|null */
public ?string $RequiredRig=null,
/** @var string|null */
public ?string $DriverLabel=null,
/** @var string|null */
public ?string $EtaText=null,
/** @var string|null */
public ?string $OfferRigIds=null,
/** @var int|null */
public ?int $OfferExpiresMin=null,
/** @var int|null */
public ?int $OfferExpiresInMins=null,
/** @var bool|null */
public ?bool $OfferExpired=null,
/** @var bool|null */
public ?bool $Declined=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['JobId'])) $this->JobId = $o['JobId'];
if (isset($o['Code'])) $this->Code = $o['Code'];
if (isset($o['Cargo'])) $this->Cargo = $o['Cargo'];
if (isset($o['Customer'])) $this->Customer = $o['Customer'];
if (isset($o['CustomerPhone'])) $this->CustomerPhone = $o['CustomerPhone'];
if (isset($o['HoldContact'])) $this->HoldContact = $o['HoldContact'];
if (isset($o['HoldPhone'])) $this->HoldPhone = $o['HoldPhone'];
if (isset($o['FromLoc'])) $this->FromLoc = $o['FromLoc'];
if (isset($o['ToLoc'])) $this->ToLoc = $o['ToLoc'];
if (isset($o['Miles'])) $this->Miles = $o['Miles'];
if (isset($o['WindowText'])) $this->WindowText = $o['WindowText'];
if (isset($o['Stage'])) $this->Stage = $o['Stage'];
if (isset($o['Rate'])) $this->Rate = $o['Rate'];
if (isset($o['RequiredRig'])) $this->RequiredRig = $o['RequiredRig'];
if (isset($o['DriverLabel'])) $this->DriverLabel = $o['DriverLabel'];
if (isset($o['EtaText'])) $this->EtaText = $o['EtaText'];
if (isset($o['OfferRigIds'])) $this->OfferRigIds = $o['OfferRigIds'];
if (isset($o['OfferExpiresMin'])) $this->OfferExpiresMin = $o['OfferExpiresMin'];
if (isset($o['OfferExpiresInMins'])) $this->OfferExpiresInMins = $o['OfferExpiresInMins'];
if (isset($o['OfferExpired'])) $this->OfferExpired = $o['OfferExpired'];
if (isset($o['Declined'])) $this->Declined = $o['Declined'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->JobId)) $o['JobId'] = $this->JobId;
if (isset($this->Code)) $o['Code'] = $this->Code;
if (isset($this->Cargo)) $o['Cargo'] = $this->Cargo;
if (isset($this->Customer)) $o['Customer'] = $this->Customer;
if (isset($this->CustomerPhone)) $o['CustomerPhone'] = $this->CustomerPhone;
if (isset($this->HoldContact)) $o['HoldContact'] = $this->HoldContact;
if (isset($this->HoldPhone)) $o['HoldPhone'] = $this->HoldPhone;
if (isset($this->FromLoc)) $o['FromLoc'] = $this->FromLoc;
if (isset($this->ToLoc)) $o['ToLoc'] = $this->ToLoc;
if (isset($this->Miles)) $o['Miles'] = $this->Miles;
if (isset($this->WindowText)) $o['WindowText'] = $this->WindowText;
if (isset($this->Stage)) $o['Stage'] = $this->Stage;
if (isset($this->Rate)) $o['Rate'] = $this->Rate;
if (isset($this->RequiredRig)) $o['RequiredRig'] = $this->RequiredRig;
if (isset($this->DriverLabel)) $o['DriverLabel'] = $this->DriverLabel;
if (isset($this->EtaText)) $o['EtaText'] = $this->EtaText;
if (isset($this->OfferRigIds)) $o['OfferRigIds'] = $this->OfferRigIds;
if (isset($this->OfferExpiresMin)) $o['OfferExpiresMin'] = $this->OfferExpiresMin;
if (isset($this->OfferExpiresInMins)) $o['OfferExpiresInMins'] = $this->OfferExpiresInMins;
if (isset($this->OfferExpired)) $o['OfferExpired'] = $this->OfferExpired;
if (isset($this->Declined)) $o['Declined'] = $this->Declined;
return empty($o) ? new class(){} : $o;
}
}
class DispatchOdDriverView implements JsonSerializable
{
public function __construct(
/** @var int */
public int $DriverId=0,
/** @var string|null */
public ?string $Code=null,
/** @var string|null */
public ?string $Name=null,
/** @var string|null */
public ?string $Zone=null,
/** @var string|null */
public ?string $Phone=null,
/** @var string|null */
public ?string $Status=null,
/** @var string|null */
public ?string $Tier=null,
/** @var float */
public float $DistanceMi=0.0,
/** @var string|null */
public ?string $Capabilities=null,
/** @var string|null */
public ?string $DispatchState=null,
/** @var string|null */
public ?string $DispatchReason=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['DriverId'])) $this->DriverId = $o['DriverId'];
if (isset($o['Code'])) $this->Code = $o['Code'];
if (isset($o['Name'])) $this->Name = $o['Name'];
if (isset($o['Zone'])) $this->Zone = $o['Zone'];
if (isset($o['Phone'])) $this->Phone = $o['Phone'];
if (isset($o['Status'])) $this->Status = $o['Status'];
if (isset($o['Tier'])) $this->Tier = $o['Tier'];
if (isset($o['DistanceMi'])) $this->DistanceMi = $o['DistanceMi'];
if (isset($o['Capabilities'])) $this->Capabilities = $o['Capabilities'];
if (isset($o['DispatchState'])) $this->DispatchState = $o['DispatchState'];
if (isset($o['DispatchReason'])) $this->DispatchReason = $o['DispatchReason'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->DriverId)) $o['DriverId'] = $this->DriverId;
if (isset($this->Code)) $o['Code'] = $this->Code;
if (isset($this->Name)) $o['Name'] = $this->Name;
if (isset($this->Zone)) $o['Zone'] = $this->Zone;
if (isset($this->Phone)) $o['Phone'] = $this->Phone;
if (isset($this->Status)) $o['Status'] = $this->Status;
if (isset($this->Tier)) $o['Tier'] = $this->Tier;
if (isset($this->DistanceMi)) $o['DistanceMi'] = $this->DistanceMi;
if (isset($this->Capabilities)) $o['Capabilities'] = $this->Capabilities;
if (isset($this->DispatchState)) $o['DispatchState'] = $this->DispatchState;
if (isset($this->DispatchReason)) $o['DispatchReason'] = $this->DispatchReason;
return empty($o) ? new class(){} : $o;
}
}
class DispatchOdRequestView implements JsonSerializable
{
public function __construct(
/** @var int */
public int $RequestId=0,
/** @var string|null */
public ?string $Code=null,
/** @var string|null */
public ?string $Address=null,
/** @var string|null */
public ?string $Zone=null,
/** @var int */
public int $Bags=0,
/** @var string|null */
public ?string $Stage=null,
/** @var string|null */
public ?string $DriverCode=null,
/** @var string|null */
public ?string $Needs=null,
/** @var string|null */
public ?string $Note=null,
/** @var int|null */
public ?int $PingExpiresMin=null,
/** @var int|null */
public ?int $PingExpiresInMins=null,
/** @var string|null */
public ?string $TriedCodes=null,
/** @var string|null */
public ?string $CandidateCodes=null,
/** @var string|null */
public ?string $EtaText=null,
/** @var string|null */
public ?string $NoDriver=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['RequestId'])) $this->RequestId = $o['RequestId'];
if (isset($o['Code'])) $this->Code = $o['Code'];
if (isset($o['Address'])) $this->Address = $o['Address'];
if (isset($o['Zone'])) $this->Zone = $o['Zone'];
if (isset($o['Bags'])) $this->Bags = $o['Bags'];
if (isset($o['Stage'])) $this->Stage = $o['Stage'];
if (isset($o['DriverCode'])) $this->DriverCode = $o['DriverCode'];
if (isset($o['Needs'])) $this->Needs = $o['Needs'];
if (isset($o['Note'])) $this->Note = $o['Note'];
if (isset($o['PingExpiresMin'])) $this->PingExpiresMin = $o['PingExpiresMin'];
if (isset($o['PingExpiresInMins'])) $this->PingExpiresInMins = $o['PingExpiresInMins'];
if (isset($o['TriedCodes'])) $this->TriedCodes = $o['TriedCodes'];
if (isset($o['CandidateCodes'])) $this->CandidateCodes = $o['CandidateCodes'];
if (isset($o['EtaText'])) $this->EtaText = $o['EtaText'];
if (isset($o['NoDriver'])) $this->NoDriver = $o['NoDriver'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->RequestId)) $o['RequestId'] = $this->RequestId;
if (isset($this->Code)) $o['Code'] = $this->Code;
if (isset($this->Address)) $o['Address'] = $this->Address;
if (isset($this->Zone)) $o['Zone'] = $this->Zone;
if (isset($this->Bags)) $o['Bags'] = $this->Bags;
if (isset($this->Stage)) $o['Stage'] = $this->Stage;
if (isset($this->DriverCode)) $o['DriverCode'] = $this->DriverCode;
if (isset($this->Needs)) $o['Needs'] = $this->Needs;
if (isset($this->Note)) $o['Note'] = $this->Note;
if (isset($this->PingExpiresMin)) $o['PingExpiresMin'] = $this->PingExpiresMin;
if (isset($this->PingExpiresInMins)) $o['PingExpiresInMins'] = $this->PingExpiresInMins;
if (isset($this->TriedCodes)) $o['TriedCodes'] = $this->TriedCodes;
if (isset($this->CandidateCodes)) $o['CandidateCodes'] = $this->CandidateCodes;
if (isset($this->EtaText)) $o['EtaText'] = $this->EtaText;
if (isset($this->NoDriver)) $o['NoDriver'] = $this->NoDriver;
return empty($o) ? new class(){} : $o;
}
}
class DispatchPackView implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $PackId=null,
/** @var bool|null */
public ?bool $HasQuotas=null,
/** @var bool|null */
public ?bool $IsInverted=null,
/** @var int */
public int $LoadLimitMins=0,
/** @var string|null */
public ?string $DayBoundary=null,
/** @var string|null */
public ?string $TicketSource=null,
/** @var string|null */
public ?string $PayBasis=null,
/** @var int */
public int $SortOrder=0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['PackId'])) $this->PackId = $o['PackId'];
if (isset($o['HasQuotas'])) $this->HasQuotas = $o['HasQuotas'];
if (isset($o['IsInverted'])) $this->IsInverted = $o['IsInverted'];
if (isset($o['LoadLimitMins'])) $this->LoadLimitMins = $o['LoadLimitMins'];
if (isset($o['DayBoundary'])) $this->DayBoundary = $o['DayBoundary'];
if (isset($o['TicketSource'])) $this->TicketSource = $o['TicketSource'];
if (isset($o['PayBasis'])) $this->PayBasis = $o['PayBasis'];
if (isset($o['SortOrder'])) $this->SortOrder = $o['SortOrder'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->PackId)) $o['PackId'] = $this->PackId;
if (isset($this->HasQuotas)) $o['HasQuotas'] = $this->HasQuotas;
if (isset($this->IsInverted)) $o['IsInverted'] = $this->IsInverted;
if (isset($this->LoadLimitMins)) $o['LoadLimitMins'] = $this->LoadLimitMins;
if (isset($this->DayBoundary)) $o['DayBoundary'] = $this->DayBoundary;
if (isset($this->TicketSource)) $o['TicketSource'] = $this->TicketSource;
if (isset($this->PayBasis)) $o['PayBasis'] = $this->PayBasis;
if (isset($this->SortOrder)) $o['SortOrder'] = $this->SortOrder;
return empty($o) ? new class(){} : $o;
}
}
class DispatchPackTermView implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $PackId=null,
/** @var string|null */
public ?string $Lang=null,
/** @var string|null */
public ?string $ModeName=null,
/** @var string|null */
public ?string $Facility=null,
/** @var string|null */
public ?string $FacilityShort=null,
/** @var string|null */
public ?string $SourceSite=null,
/** @var string|null */
public ?string $Supplier=null,
/** @var string|null */
public ?string $SupplierPlural=null,
/** @var string|null */
public ?string $UnloadVerb=null,
/** @var string|null */
public ?string $TicketNoun=null,
/** @var string|null */
public ?string $DayNoun=null,
/** @var string|null */
public ?string $FleetLabel=null,
/** @var string|null */
public ?string $PageSubtitle=null,
/** @var string|null */
public ?string $SeasonChip=null,
/** @var string|null */
public ?string $CampaignNoun=null,
/** @var string|null */
public ?string $BayNoun=null,
/** @var string|null */
public ?string $AssignTarget=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['PackId'])) $this->PackId = $o['PackId'];
if (isset($o['Lang'])) $this->Lang = $o['Lang'];
if (isset($o['ModeName'])) $this->ModeName = $o['ModeName'];
if (isset($o['Facility'])) $this->Facility = $o['Facility'];
if (isset($o['FacilityShort'])) $this->FacilityShort = $o['FacilityShort'];
if (isset($o['SourceSite'])) $this->SourceSite = $o['SourceSite'];
if (isset($o['Supplier'])) $this->Supplier = $o['Supplier'];
if (isset($o['SupplierPlural'])) $this->SupplierPlural = $o['SupplierPlural'];
if (isset($o['UnloadVerb'])) $this->UnloadVerb = $o['UnloadVerb'];
if (isset($o['TicketNoun'])) $this->TicketNoun = $o['TicketNoun'];
if (isset($o['DayNoun'])) $this->DayNoun = $o['DayNoun'];
if (isset($o['FleetLabel'])) $this->FleetLabel = $o['FleetLabel'];
if (isset($o['PageSubtitle'])) $this->PageSubtitle = $o['PageSubtitle'];
if (isset($o['SeasonChip'])) $this->SeasonChip = $o['SeasonChip'];
if (isset($o['CampaignNoun'])) $this->CampaignNoun = $o['CampaignNoun'];
if (isset($o['BayNoun'])) $this->BayNoun = $o['BayNoun'];
if (isset($o['AssignTarget'])) $this->AssignTarget = $o['AssignTarget'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->PackId)) $o['PackId'] = $this->PackId;
if (isset($this->Lang)) $o['Lang'] = $this->Lang;
if (isset($this->ModeName)) $o['ModeName'] = $this->ModeName;
if (isset($this->Facility)) $o['Facility'] = $this->Facility;
if (isset($this->FacilityShort)) $o['FacilityShort'] = $this->FacilityShort;
if (isset($this->SourceSite)) $o['SourceSite'] = $this->SourceSite;
if (isset($this->Supplier)) $o['Supplier'] = $this->Supplier;
if (isset($this->SupplierPlural)) $o['SupplierPlural'] = $this->SupplierPlural;
if (isset($this->UnloadVerb)) $o['UnloadVerb'] = $this->UnloadVerb;
if (isset($this->TicketNoun)) $o['TicketNoun'] = $this->TicketNoun;
if (isset($this->DayNoun)) $o['DayNoun'] = $this->DayNoun;
if (isset($this->FleetLabel)) $o['FleetLabel'] = $this->FleetLabel;
if (isset($this->PageSubtitle)) $o['PageSubtitle'] = $this->PageSubtitle;
if (isset($this->SeasonChip)) $o['SeasonChip'] = $this->SeasonChip;
if (isset($this->CampaignNoun)) $o['CampaignNoun'] = $this->CampaignNoun;
if (isset($this->BayNoun)) $o['BayNoun'] = $this->BayNoun;
if (isset($this->AssignTarget)) $o['AssignTarget'] = $this->AssignTarget;
return empty($o) ? new class(){} : $o;
}
}
class DispatchPackUnitView implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $PackId=null,
/** @var string|null */
public ?string $Unit=null,
/** @var float */
public float $LoadQty=0.0,
/** @var int */
public int $VolumeLow=0,
/** @var int */
public int $VolumeHigh=0,
/** @var float */
public float $SeasonMultiple=0.0,
/** @var float */
public float $WeeklyFraction=0.0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['PackId'])) $this->PackId = $o['PackId'];
if (isset($o['Unit'])) $this->Unit = $o['Unit'];
if (isset($o['LoadQty'])) $this->LoadQty = $o['LoadQty'];
if (isset($o['VolumeLow'])) $this->VolumeLow = $o['VolumeLow'];
if (isset($o['VolumeHigh'])) $this->VolumeHigh = $o['VolumeHigh'];
if (isset($o['SeasonMultiple'])) $this->SeasonMultiple = $o['SeasonMultiple'];
if (isset($o['WeeklyFraction'])) $this->WeeklyFraction = $o['WeeklyFraction'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->PackId)) $o['PackId'] = $this->PackId;
if (isset($this->Unit)) $o['Unit'] = $this->Unit;
if (isset($this->LoadQty)) $o['LoadQty'] = $this->LoadQty;
if (isset($this->VolumeLow)) $o['VolumeLow'] = $this->VolumeLow;
if (isset($this->VolumeHigh)) $o['VolumeHigh'] = $this->VolumeHigh;
if (isset($this->SeasonMultiple)) $o['SeasonMultiple'] = $this->SeasonMultiple;
if (isset($this->WeeklyFraction)) $o['WeeklyFraction'] = $this->WeeklyFraction;
return empty($o) ? new class(){} : $o;
}
}
class DispatchHoldView implements JsonSerializable
{
public function __construct(
/** @var int */
public int $HoldId=0,
/** @var string|null */
public ?string $Code=null,
/** @var string|null */
public ?string $ScopeKind=null,
/** @var string|null */
public ?string $ScopeKey=null,
/** @var string|null */
public ?string $ScopeLabel=null,
/** @var string|null */
public ?string $Reason=null,
/** @var string|null */
public ?string $Note=null,
/** @var DateTime */
public DateTime $StartUtc=new DateTime(),
/** @var DateTime */
public DateTime $EndUtc=new DateTime(),
/** @var string|null */
public ?string $Source=null,
/** @var string|null */
public ?string $IncidentRef=null,
/** @var DateTime|null */
public ?DateTime $LiftedUtc=null,
/** @var string|null */
public ?string $LiftedBy=null,
/** @var DateTime|null */
public ?DateTime $CreatedUtc=null,
/** @var string|null */
public ?string $CreatedBy=null,
/** @var string|null */
public ?string $Status=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['HoldId'])) $this->HoldId = $o['HoldId'];
if (isset($o['Code'])) $this->Code = $o['Code'];
if (isset($o['ScopeKind'])) $this->ScopeKind = $o['ScopeKind'];
if (isset($o['ScopeKey'])) $this->ScopeKey = $o['ScopeKey'];
if (isset($o['ScopeLabel'])) $this->ScopeLabel = $o['ScopeLabel'];
if (isset($o['Reason'])) $this->Reason = $o['Reason'];
if (isset($o['Note'])) $this->Note = $o['Note'];
if (isset($o['StartUtc'])) $this->StartUtc = JsonConverters::from('DateTime', $o['StartUtc']);
if (isset($o['EndUtc'])) $this->EndUtc = JsonConverters::from('DateTime', $o['EndUtc']);
if (isset($o['Source'])) $this->Source = $o['Source'];
if (isset($o['IncidentRef'])) $this->IncidentRef = $o['IncidentRef'];
if (isset($o['LiftedUtc'])) $this->LiftedUtc = JsonConverters::from('DateTime', $o['LiftedUtc']);
if (isset($o['LiftedBy'])) $this->LiftedBy = $o['LiftedBy'];
if (isset($o['CreatedUtc'])) $this->CreatedUtc = JsonConverters::from('DateTime', $o['CreatedUtc']);
if (isset($o['CreatedBy'])) $this->CreatedBy = $o['CreatedBy'];
if (isset($o['Status'])) $this->Status = $o['Status'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->HoldId)) $o['HoldId'] = $this->HoldId;
if (isset($this->Code)) $o['Code'] = $this->Code;
if (isset($this->ScopeKind)) $o['ScopeKind'] = $this->ScopeKind;
if (isset($this->ScopeKey)) $o['ScopeKey'] = $this->ScopeKey;
if (isset($this->ScopeLabel)) $o['ScopeLabel'] = $this->ScopeLabel;
if (isset($this->Reason)) $o['Reason'] = $this->Reason;
if (isset($this->Note)) $o['Note'] = $this->Note;
if (isset($this->StartUtc)) $o['StartUtc'] = JsonConverters::to('DateTime', $this->StartUtc);
if (isset($this->EndUtc)) $o['EndUtc'] = JsonConverters::to('DateTime', $this->EndUtc);
if (isset($this->Source)) $o['Source'] = $this->Source;
if (isset($this->IncidentRef)) $o['IncidentRef'] = $this->IncidentRef;
if (isset($this->LiftedUtc)) $o['LiftedUtc'] = JsonConverters::to('DateTime', $this->LiftedUtc);
if (isset($this->LiftedBy)) $o['LiftedBy'] = $this->LiftedBy;
if (isset($this->CreatedUtc)) $o['CreatedUtc'] = JsonConverters::to('DateTime', $this->CreatedUtc);
if (isset($this->CreatedBy)) $o['CreatedBy'] = $this->CreatedBy;
if (isset($this->Status)) $o['Status'] = $this->Status;
return empty($o) ? new class(){} : $o;
}
}
class DispatchBoardIncidentView implements JsonSerializable
{
public function __construct(
/** @var int */
public int $IncidentId=0,
/** @var string|null */
public ?string $Code=null,
/** @var string|null */
public ?string $Kind=null,
/** @var string|null */
public ?string $KindDetail=null,
/** @var string|null */
public ?string $Status=null,
/** @var string|null */
public ?string $TruckCode=null,
/** @var string|null */
public ?string $LoadCode=null,
/** @var string|null */
public ?string $TruckRecovery=null,
/** @var string|null */
public ?string $LoadRecovery=null,
/** @var DateTime */
public DateTime $OpenedUtc=new DateTime()
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['IncidentId'])) $this->IncidentId = $o['IncidentId'];
if (isset($o['Code'])) $this->Code = $o['Code'];
if (isset($o['Kind'])) $this->Kind = $o['Kind'];
if (isset($o['KindDetail'])) $this->KindDetail = $o['KindDetail'];
if (isset($o['Status'])) $this->Status = $o['Status'];
if (isset($o['TruckCode'])) $this->TruckCode = $o['TruckCode'];
if (isset($o['LoadCode'])) $this->LoadCode = $o['LoadCode'];
if (isset($o['TruckRecovery'])) $this->TruckRecovery = $o['TruckRecovery'];
if (isset($o['LoadRecovery'])) $this->LoadRecovery = $o['LoadRecovery'];
if (isset($o['OpenedUtc'])) $this->OpenedUtc = JsonConverters::from('DateTime', $o['OpenedUtc']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->IncidentId)) $o['IncidentId'] = $this->IncidentId;
if (isset($this->Code)) $o['Code'] = $this->Code;
if (isset($this->Kind)) $o['Kind'] = $this->Kind;
if (isset($this->KindDetail)) $o['KindDetail'] = $this->KindDetail;
if (isset($this->Status)) $o['Status'] = $this->Status;
if (isset($this->TruckCode)) $o['TruckCode'] = $this->TruckCode;
if (isset($this->LoadCode)) $o['LoadCode'] = $this->LoadCode;
if (isset($this->TruckRecovery)) $o['TruckRecovery'] = $this->TruckRecovery;
if (isset($this->LoadRecovery)) $o['LoadRecovery'] = $this->LoadRecovery;
if (isset($this->OpenedUtc)) $o['OpenedUtc'] = JsonConverters::to('DateTime', $this->OpenedUtc);
return empty($o) ? new class(){} : $o;
}
}
class CourierMoveTarget implements JsonSerializable
{
public function __construct(
/** @var int */
public int $DriverContactId=0,
/** @var string|null */
public ?string $Name=null,
/** @var bool|null */
public ?bool $Ok=null,
/** @var string|null */
public ?string $Why=null,
/** @var string|null */
public ?string $LeaveByText=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['DriverContactId'])) $this->DriverContactId = $o['DriverContactId'];
if (isset($o['Name'])) $this->Name = $o['Name'];
if (isset($o['Ok'])) $this->Ok = $o['Ok'];
if (isset($o['Why'])) $this->Why = $o['Why'];
if (isset($o['LeaveByText'])) $this->LeaveByText = $o['LeaveByText'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->DriverContactId)) $o['DriverContactId'] = $this->DriverContactId;
if (isset($this->Name)) $o['Name'] = $this->Name;
if (isset($this->Ok)) $o['Ok'] = $this->Ok;
if (isset($this->Why)) $o['Why'] = $this->Why;
if (isset($this->LeaveByText)) $o['LeaveByText'] = $this->LeaveByText;
return empty($o) ? new class(){} : $o;
}
}
class CourierVanChip implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $Code=null,
/** @var string|null */
public ?string $CourierStep=null,
/** @var string|null */
public ?string $LevelCode=null,
/** @var string|null */
public ?string $LevelName=null,
/** @var int */
public int $Units=0,
/** @var string|null */
public ?string $Area=null,
/** @var DateTime|null */
public ?DateTime $DueUtc=null,
/** @var string|null */
public ?string $DueText=null,
/** @var bool|null */
public ?bool $Movable=null,
/** @var string|null */
public ?string $NoMoveWhy=null,
/** @var array<CourierMoveTarget>|null */
public ?array $Targets=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Code'])) $this->Code = $o['Code'];
if (isset($o['CourierStep'])) $this->CourierStep = $o['CourierStep'];
if (isset($o['LevelCode'])) $this->LevelCode = $o['LevelCode'];
if (isset($o['LevelName'])) $this->LevelName = $o['LevelName'];
if (isset($o['Units'])) $this->Units = $o['Units'];
if (isset($o['Area'])) $this->Area = $o['Area'];
if (isset($o['DueUtc'])) $this->DueUtc = JsonConverters::from('DateTime', $o['DueUtc']);
if (isset($o['DueText'])) $this->DueText = $o['DueText'];
if (isset($o['Movable'])) $this->Movable = $o['Movable'];
if (isset($o['NoMoveWhy'])) $this->NoMoveWhy = $o['NoMoveWhy'];
if (isset($o['Targets'])) $this->Targets = JsonConverters::fromArray('CourierMoveTarget', $o['Targets']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Code)) $o['Code'] = $this->Code;
if (isset($this->CourierStep)) $o['CourierStep'] = $this->CourierStep;
if (isset($this->LevelCode)) $o['LevelCode'] = $this->LevelCode;
if (isset($this->LevelName)) $o['LevelName'] = $this->LevelName;
if (isset($this->Units)) $o['Units'] = $this->Units;
if (isset($this->Area)) $o['Area'] = $this->Area;
if (isset($this->DueUtc)) $o['DueUtc'] = JsonConverters::to('DateTime', $this->DueUtc);
if (isset($this->DueText)) $o['DueText'] = $this->DueText;
if (isset($this->Movable)) $o['Movable'] = $this->Movable;
if (isset($this->NoMoveWhy)) $o['NoMoveWhy'] = $this->NoMoveWhy;
if (isset($this->Targets)) $o['Targets'] = JsonConverters::toArray('CourierMoveTarget', $this->Targets);
return empty($o) ? new class(){} : $o;
}
}
class CourierOfficeVan implements JsonSerializable
{
public function __construct(
/** @var int */
public int $DriverContactId=0,
/** @var string|null */
public ?string $DriverCode=null,
/** @var string|null */
public ?string $Name=null,
/** @var bool|null */
public ?bool $Online=null,
/** @var string|null */
public ?string $Zone=null,
/** @var string|null */
public ?string $VehicleUnit=null,
/** @var string|null */
public ?string $FacilityName=null,
/** @var string|null */
public ?string $State=null,
/** @var DateTime|null */
public ?DateTime $LeaveByUtc=null,
/** @var string|null */
public ?string $LeaveByText=null,
/** @var int|null */
public ?int $SlackMin=null,
/** @var int */
public int $InVan=0,
/** @var int */
public int $Committed=0,
/** @var float|null */
public ?float $Cap=null,
/** @var string|null */
public ?string $CapUnit=null,
/** @var string|null */
public ?string $UnitMany=null,
/** @var string|null */
public ?string $CriticalCode=null,
/** @var int */
public int $DriveMin=0,
/** @var string|null */
public ?string $SendNote=null,
/** @var array<CourierVanChip>|null */
public ?array $Aboard=null,
/** @var array<CourierVanChip>|null */
public ?array $Queued=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['DriverContactId'])) $this->DriverContactId = $o['DriverContactId'];
if (isset($o['DriverCode'])) $this->DriverCode = $o['DriverCode'];
if (isset($o['Name'])) $this->Name = $o['Name'];
if (isset($o['Online'])) $this->Online = $o['Online'];
if (isset($o['Zone'])) $this->Zone = $o['Zone'];
if (isset($o['VehicleUnit'])) $this->VehicleUnit = $o['VehicleUnit'];
if (isset($o['FacilityName'])) $this->FacilityName = $o['FacilityName'];
if (isset($o['State'])) $this->State = $o['State'];
if (isset($o['LeaveByUtc'])) $this->LeaveByUtc = JsonConverters::from('DateTime', $o['LeaveByUtc']);
if (isset($o['LeaveByText'])) $this->LeaveByText = $o['LeaveByText'];
if (isset($o['SlackMin'])) $this->SlackMin = $o['SlackMin'];
if (isset($o['InVan'])) $this->InVan = $o['InVan'];
if (isset($o['Committed'])) $this->Committed = $o['Committed'];
if (isset($o['Cap'])) $this->Cap = $o['Cap'];
if (isset($o['CapUnit'])) $this->CapUnit = $o['CapUnit'];
if (isset($o['UnitMany'])) $this->UnitMany = $o['UnitMany'];
if (isset($o['CriticalCode'])) $this->CriticalCode = $o['CriticalCode'];
if (isset($o['DriveMin'])) $this->DriveMin = $o['DriveMin'];
if (isset($o['SendNote'])) $this->SendNote = $o['SendNote'];
if (isset($o['Aboard'])) $this->Aboard = JsonConverters::fromArray('CourierVanChip', $o['Aboard']);
if (isset($o['Queued'])) $this->Queued = JsonConverters::fromArray('CourierVanChip', $o['Queued']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->DriverContactId)) $o['DriverContactId'] = $this->DriverContactId;
if (isset($this->DriverCode)) $o['DriverCode'] = $this->DriverCode;
if (isset($this->Name)) $o['Name'] = $this->Name;
if (isset($this->Online)) $o['Online'] = $this->Online;
if (isset($this->Zone)) $o['Zone'] = $this->Zone;
if (isset($this->VehicleUnit)) $o['VehicleUnit'] = $this->VehicleUnit;
if (isset($this->FacilityName)) $o['FacilityName'] = $this->FacilityName;
if (isset($this->State)) $o['State'] = $this->State;
if (isset($this->LeaveByUtc)) $o['LeaveByUtc'] = JsonConverters::to('DateTime', $this->LeaveByUtc);
if (isset($this->LeaveByText)) $o['LeaveByText'] = $this->LeaveByText;
if (isset($this->SlackMin)) $o['SlackMin'] = $this->SlackMin;
if (isset($this->InVan)) $o['InVan'] = $this->InVan;
if (isset($this->Committed)) $o['Committed'] = $this->Committed;
if (isset($this->Cap)) $o['Cap'] = $this->Cap;
if (isset($this->CapUnit)) $o['CapUnit'] = $this->CapUnit;
if (isset($this->UnitMany)) $o['UnitMany'] = $this->UnitMany;
if (isset($this->CriticalCode)) $o['CriticalCode'] = $this->CriticalCode;
if (isset($this->DriveMin)) $o['DriveMin'] = $this->DriveMin;
if (isset($this->SendNote)) $o['SendNote'] = $this->SendNote;
if (isset($this->Aboard)) $o['Aboard'] = JsonConverters::toArray('CourierVanChip', $this->Aboard);
if (isset($this->Queued)) $o['Queued'] = JsonConverters::toArray('CourierVanChip', $this->Queued);
return empty($o) ? new class(){} : $o;
}
}
class CourierHeldView implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $Code=null,
/** @var string|null */
public ?string $Area=null,
/** @var int */
public int $Units=0,
/** @var string|null */
public ?string $UnitMany=null,
/** @var float|null */
public ?float $Miles=null,
/** @var string|null */
public ?string $LevelCode=null,
/** @var string|null */
public ?string $LevelName=null,
/** @var string|null */
public ?string $DueText=null,
/** @var string|null */
public ?string $HeldReason=null,
/** @var int|null */
public ?int $HeldMin=null,
/** @var array<string>|null */
public ?array $Why=null,
/** @var int|null */
public ?int $BestDriverContactId=null,
/** @var string|null */
public ?string $BestName=null,
/** @var string|null */
public ?string $BestLeaveByText=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Code'])) $this->Code = $o['Code'];
if (isset($o['Area'])) $this->Area = $o['Area'];
if (isset($o['Units'])) $this->Units = $o['Units'];
if (isset($o['UnitMany'])) $this->UnitMany = $o['UnitMany'];
if (isset($o['Miles'])) $this->Miles = $o['Miles'];
if (isset($o['LevelCode'])) $this->LevelCode = $o['LevelCode'];
if (isset($o['LevelName'])) $this->LevelName = $o['LevelName'];
if (isset($o['DueText'])) $this->DueText = $o['DueText'];
if (isset($o['HeldReason'])) $this->HeldReason = $o['HeldReason'];
if (isset($o['HeldMin'])) $this->HeldMin = $o['HeldMin'];
if (isset($o['Why'])) $this->Why = JsonConverters::fromArray('string', $o['Why']);
if (isset($o['BestDriverContactId'])) $this->BestDriverContactId = $o['BestDriverContactId'];
if (isset($o['BestName'])) $this->BestName = $o['BestName'];
if (isset($o['BestLeaveByText'])) $this->BestLeaveByText = $o['BestLeaveByText'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Code)) $o['Code'] = $this->Code;
if (isset($this->Area)) $o['Area'] = $this->Area;
if (isset($this->Units)) $o['Units'] = $this->Units;
if (isset($this->UnitMany)) $o['UnitMany'] = $this->UnitMany;
if (isset($this->Miles)) $o['Miles'] = $this->Miles;
if (isset($this->LevelCode)) $o['LevelCode'] = $this->LevelCode;
if (isset($this->LevelName)) $o['LevelName'] = $this->LevelName;
if (isset($this->DueText)) $o['DueText'] = $this->DueText;
if (isset($this->HeldReason)) $o['HeldReason'] = $this->HeldReason;
if (isset($this->HeldMin)) $o['HeldMin'] = $this->HeldMin;
if (isset($this->Why)) $o['Why'] = JsonConverters::toArray('string', $this->Why);
if (isset($this->BestDriverContactId)) $o['BestDriverContactId'] = $this->BestDriverContactId;
if (isset($this->BestName)) $o['BestName'] = $this->BestName;
if (isset($this->BestLeaveByText)) $o['BestLeaveByText'] = $this->BestLeaveByText;
return empty($o) ? new class(){} : $o;
}
}
class CourierVehicleOption implements JsonSerializable
{
public function __construct(
/** @var int */
public int $CourierProfileId=0,
/** @var int */
public int $EquipmentID=0,
/** @var string|null */
public ?string $UnitNumber=null,
/** @var string|null */
public ?string $VehicleType=null,
/** @var string|null */
public ?string $CapacityUnit=null,
/** @var float|null */
public ?float $CapacityLimit=null,
/** @var bool|null */
public ?bool $IsRefrigerated=null,
/** @var string|null */
public ?string $Status=null,
/** @var string|null */
public ?string $Ownership=null,
/** @var int|null */
public ?int $OwnerContactId=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['CourierProfileId'])) $this->CourierProfileId = $o['CourierProfileId'];
if (isset($o['EquipmentID'])) $this->EquipmentID = $o['EquipmentID'];
if (isset($o['UnitNumber'])) $this->UnitNumber = $o['UnitNumber'];
if (isset($o['VehicleType'])) $this->VehicleType = $o['VehicleType'];
if (isset($o['CapacityUnit'])) $this->CapacityUnit = $o['CapacityUnit'];
if (isset($o['CapacityLimit'])) $this->CapacityLimit = $o['CapacityLimit'];
if (isset($o['IsRefrigerated'])) $this->IsRefrigerated = $o['IsRefrigerated'];
if (isset($o['Status'])) $this->Status = $o['Status'];
if (isset($o['Ownership'])) $this->Ownership = $o['Ownership'];
if (isset($o['OwnerContactId'])) $this->OwnerContactId = $o['OwnerContactId'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->CourierProfileId)) $o['CourierProfileId'] = $this->CourierProfileId;
if (isset($this->EquipmentID)) $o['EquipmentID'] = $this->EquipmentID;
if (isset($this->UnitNumber)) $o['UnitNumber'] = $this->UnitNumber;
if (isset($this->VehicleType)) $o['VehicleType'] = $this->VehicleType;
if (isset($this->CapacityUnit)) $o['CapacityUnit'] = $this->CapacityUnit;
if (isset($this->CapacityLimit)) $o['CapacityLimit'] = $this->CapacityLimit;
if (isset($this->IsRefrigerated)) $o['IsRefrigerated'] = $this->IsRefrigerated;
if (isset($this->Status)) $o['Status'] = $this->Status;
if (isset($this->Ownership)) $o['Ownership'] = $this->Ownership;
if (isset($this->OwnerContactId)) $o['OwnerContactId'] = $this->OwnerContactId;
return empty($o) ? new class(){} : $o;
}
}
class CourierFacilityOption implements JsonSerializable
{
public function __construct(
/** @var int */
public int $CourierFacilityID=0,
/** @var string|null */
public ?string $Code=null,
/** @var string|null */
public ?string $Name=null,
/** @var string|null */
public ?string $Address=null,
/** @var int */
public int $IntakeMin=0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['CourierFacilityID'])) $this->CourierFacilityID = $o['CourierFacilityID'];
if (isset($o['Code'])) $this->Code = $o['Code'];
if (isset($o['Name'])) $this->Name = $o['Name'];
if (isset($o['Address'])) $this->Address = $o['Address'];
if (isset($o['IntakeMin'])) $this->IntakeMin = $o['IntakeMin'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->CourierFacilityID)) $o['CourierFacilityID'] = $this->CourierFacilityID;
if (isset($this->Code)) $o['Code'] = $this->Code;
if (isset($this->Name)) $o['Name'] = $this->Name;
if (isset($this->Address)) $o['Address'] = $this->Address;
if (isset($this->IntakeMin)) $o['IntakeMin'] = $this->IntakeMin;
return empty($o) ? new class(){} : $o;
}
}
class CourierProfileOption implements JsonSerializable
{
public function __construct(
/** @var int */
public int $CourierProfileID=0,
/** @var string|null */
public ?string $Name=null,
/** @var string|null */
public ?string $RouteShape=null,
/** @var bool|null */
public ?bool $Enabled=null,
/** @var string|null */
public ?string $UnitOne=null,
/** @var string|null */
public ?string $UnitMany=null,
/** @var string|null */
public ?string $FacilityNoun=null,
/** @var array<CourierFacilityOption>|null */
public ?array $Facilities=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['CourierProfileID'])) $this->CourierProfileID = $o['CourierProfileID'];
if (isset($o['Name'])) $this->Name = $o['Name'];
if (isset($o['RouteShape'])) $this->RouteShape = $o['RouteShape'];
if (isset($o['Enabled'])) $this->Enabled = $o['Enabled'];
if (isset($o['UnitOne'])) $this->UnitOne = $o['UnitOne'];
if (isset($o['UnitMany'])) $this->UnitMany = $o['UnitMany'];
if (isset($o['FacilityNoun'])) $this->FacilityNoun = $o['FacilityNoun'];
if (isset($o['Facilities'])) $this->Facilities = JsonConverters::fromArray('CourierFacilityOption', $o['Facilities']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->CourierProfileID)) $o['CourierProfileID'] = $this->CourierProfileID;
if (isset($this->Name)) $o['Name'] = $this->Name;
if (isset($this->RouteShape)) $o['RouteShape'] = $this->RouteShape;
if (isset($this->Enabled)) $o['Enabled'] = $this->Enabled;
if (isset($this->UnitOne)) $o['UnitOne'] = $this->UnitOne;
if (isset($this->UnitMany)) $o['UnitMany'] = $this->UnitMany;
if (isset($this->FacilityNoun)) $o['FacilityNoun'] = $this->FacilityNoun;
if (isset($this->Facilities)) $o['Facilities'] = JsonConverters::toArray('CourierFacilityOption', $this->Facilities);
return empty($o) ? new class(){} : $o;
}
}
class CourierDriverOption implements JsonSerializable
{
public function __construct(
/** @var int */
public int $ContactId=0,
/** @var string|null */
public ?string $Code=null,
/** @var string|null */
public ?string $Name=null,
/** @var bool|null */
public ?bool $Online=null,
/** @var string|null */
public ?string $Zone=null,
/** @var string|null */
public ?string $VehicleUnit=null,
/** @var int|null */
public ?int $EquipmentID=null,
/** @var bool|null */
public ?bool $SentToFacility=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['ContactId'])) $this->ContactId = $o['ContactId'];
if (isset($o['Code'])) $this->Code = $o['Code'];
if (isset($o['Name'])) $this->Name = $o['Name'];
if (isset($o['Online'])) $this->Online = $o['Online'];
if (isset($o['Zone'])) $this->Zone = $o['Zone'];
if (isset($o['VehicleUnit'])) $this->VehicleUnit = $o['VehicleUnit'];
if (isset($o['EquipmentID'])) $this->EquipmentID = $o['EquipmentID'];
if (isset($o['SentToFacility'])) $this->SentToFacility = $o['SentToFacility'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->ContactId)) $o['ContactId'] = $this->ContactId;
if (isset($this->Code)) $o['Code'] = $this->Code;
if (isset($this->Name)) $o['Name'] = $this->Name;
if (isset($this->Online)) $o['Online'] = $this->Online;
if (isset($this->Zone)) $o['Zone'] = $this->Zone;
if (isset($this->VehicleUnit)) $o['VehicleUnit'] = $this->VehicleUnit;
if (isset($this->EquipmentID)) $o['EquipmentID'] = $this->EquipmentID;
if (isset($this->SentToFacility)) $o['SentToFacility'] = $this->SentToFacility;
return empty($o) ? new class(){} : $o;
}
}
class CourierDeskRow implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $Code=null,
/** @var int */
public int $CourierProfileId=0,
/** @var string|null */
public ?string $FacilityName=null,
/** @var string|null */
public ?string $LevelCode=null,
/** @var string|null */
public ?string $LevelName=null,
/** @var DateTime|null */
public ?DateTime $DueUtc=null,
/** @var string|null */
public ?string $DueText=null,
/** @var int */
public int $Units=0,
/** @var int|null */
public ?int $UnitsFound=null,
/** @var string|null */
public ?string $UnitMany=null,
/** @var float|null */
public ?float $Fare=null,
/** @var float|null */
public ?float $FinalPrice=null,
/** @var float|null */
public ?float $TipAmount=null,
/** @var string|null */
public ?string $PayMode=null,
/** @var string|null */
public ?string $CaptureMode=null,
/** @var string|null */
public ?string $CustomerName=null,
/** @var string|null */
public ?string $Area=null,
/** @var DateTime|null */
public ?DateTime $IntakeUtc=null,
/** @var int|null */
public ?int $IntakeMinAgo=null,
/** @var string|null */
public ?string $DamageNote=null,
/** @var bool|null */
public ?bool $FinalPriceAfterCount=null,
/** @var bool|null */
public ?bool $NeedsPrice=null,
/** @var int */
public int $ItemCount=0,
/** @var int */
public int $MissingCount=0,
/** @var int */
public int $PhotoCount=0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Code'])) $this->Code = $o['Code'];
if (isset($o['CourierProfileId'])) $this->CourierProfileId = $o['CourierProfileId'];
if (isset($o['FacilityName'])) $this->FacilityName = $o['FacilityName'];
if (isset($o['LevelCode'])) $this->LevelCode = $o['LevelCode'];
if (isset($o['LevelName'])) $this->LevelName = $o['LevelName'];
if (isset($o['DueUtc'])) $this->DueUtc = JsonConverters::from('DateTime', $o['DueUtc']);
if (isset($o['DueText'])) $this->DueText = $o['DueText'];
if (isset($o['Units'])) $this->Units = $o['Units'];
if (isset($o['UnitsFound'])) $this->UnitsFound = $o['UnitsFound'];
if (isset($o['UnitMany'])) $this->UnitMany = $o['UnitMany'];
if (isset($o['Fare'])) $this->Fare = $o['Fare'];
if (isset($o['FinalPrice'])) $this->FinalPrice = $o['FinalPrice'];
if (isset($o['TipAmount'])) $this->TipAmount = $o['TipAmount'];
if (isset($o['PayMode'])) $this->PayMode = $o['PayMode'];
if (isset($o['CaptureMode'])) $this->CaptureMode = $o['CaptureMode'];
if (isset($o['CustomerName'])) $this->CustomerName = $o['CustomerName'];
if (isset($o['Area'])) $this->Area = $o['Area'];
if (isset($o['IntakeUtc'])) $this->IntakeUtc = JsonConverters::from('DateTime', $o['IntakeUtc']);
if (isset($o['IntakeMinAgo'])) $this->IntakeMinAgo = $o['IntakeMinAgo'];
if (isset($o['DamageNote'])) $this->DamageNote = $o['DamageNote'];
if (isset($o['FinalPriceAfterCount'])) $this->FinalPriceAfterCount = $o['FinalPriceAfterCount'];
if (isset($o['NeedsPrice'])) $this->NeedsPrice = $o['NeedsPrice'];
if (isset($o['ItemCount'])) $this->ItemCount = $o['ItemCount'];
if (isset($o['MissingCount'])) $this->MissingCount = $o['MissingCount'];
if (isset($o['PhotoCount'])) $this->PhotoCount = $o['PhotoCount'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Code)) $o['Code'] = $this->Code;
if (isset($this->CourierProfileId)) $o['CourierProfileId'] = $this->CourierProfileId;
if (isset($this->FacilityName)) $o['FacilityName'] = $this->FacilityName;
if (isset($this->LevelCode)) $o['LevelCode'] = $this->LevelCode;
if (isset($this->LevelName)) $o['LevelName'] = $this->LevelName;
if (isset($this->DueUtc)) $o['DueUtc'] = JsonConverters::to('DateTime', $this->DueUtc);
if (isset($this->DueText)) $o['DueText'] = $this->DueText;
if (isset($this->Units)) $o['Units'] = $this->Units;
if (isset($this->UnitsFound)) $o['UnitsFound'] = $this->UnitsFound;
if (isset($this->UnitMany)) $o['UnitMany'] = $this->UnitMany;
if (isset($this->Fare)) $o['Fare'] = $this->Fare;
if (isset($this->FinalPrice)) $o['FinalPrice'] = $this->FinalPrice;
if (isset($this->TipAmount)) $o['TipAmount'] = $this->TipAmount;
if (isset($this->PayMode)) $o['PayMode'] = $this->PayMode;
if (isset($this->CaptureMode)) $o['CaptureMode'] = $this->CaptureMode;
if (isset($this->CustomerName)) $o['CustomerName'] = $this->CustomerName;
if (isset($this->Area)) $o['Area'] = $this->Area;
if (isset($this->IntakeUtc)) $o['IntakeUtc'] = JsonConverters::to('DateTime', $this->IntakeUtc);
if (isset($this->IntakeMinAgo)) $o['IntakeMinAgo'] = $this->IntakeMinAgo;
if (isset($this->DamageNote)) $o['DamageNote'] = $this->DamageNote;
if (isset($this->FinalPriceAfterCount)) $o['FinalPriceAfterCount'] = $this->FinalPriceAfterCount;
if (isset($this->NeedsPrice)) $o['NeedsPrice'] = $this->NeedsPrice;
if (isset($this->ItemCount)) $o['ItemCount'] = $this->ItemCount;
if (isset($this->MissingCount)) $o['MissingCount'] = $this->MissingCount;
if (isset($this->PhotoCount)) $o['PhotoCount'] = $this->PhotoCount;
return empty($o) ? new class(){} : $o;
}
}
class CourierOfficeView implements JsonSerializable
{
public function __construct(
/** @var DateTime */
public DateTime $ServerUtc=new DateTime(),
/** @var array<CourierOfficeVan>|null */
public ?array $Vans=null,
/** @var array<CourierHeldView>|null */
public ?array $Held=null,
/** @var array<CourierVehicleOption>|null */
public ?array $Vehicles=null,
/** @var array<CourierProfileOption>|null */
public ?array $Profiles=null,
/** @var array<CourierDriverOption>|null */
public ?array $Drivers=null,
/** @var array<CourierDeskRow>|null */
public ?array $Desk=null,
/** @var int */
public int $GoCount=0,
/** @var int */
public int $HeldCount=0,
/** @var int */
public int $ReadyToOffer=0,
/** @var int|null */
public ?int $IntakeMin=null,
/** @var string|null */
public ?string $FacilityNoun=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['ServerUtc'])) $this->ServerUtc = JsonConverters::from('DateTime', $o['ServerUtc']);
if (isset($o['Vans'])) $this->Vans = JsonConverters::fromArray('CourierOfficeVan', $o['Vans']);
if (isset($o['Held'])) $this->Held = JsonConverters::fromArray('CourierHeldView', $o['Held']);
if (isset($o['Vehicles'])) $this->Vehicles = JsonConverters::fromArray('CourierVehicleOption', $o['Vehicles']);
if (isset($o['Profiles'])) $this->Profiles = JsonConverters::fromArray('CourierProfileOption', $o['Profiles']);
if (isset($o['Drivers'])) $this->Drivers = JsonConverters::fromArray('CourierDriverOption', $o['Drivers']);
if (isset($o['Desk'])) $this->Desk = JsonConverters::fromArray('CourierDeskRow', $o['Desk']);
if (isset($o['GoCount'])) $this->GoCount = $o['GoCount'];
if (isset($o['HeldCount'])) $this->HeldCount = $o['HeldCount'];
if (isset($o['ReadyToOffer'])) $this->ReadyToOffer = $o['ReadyToOffer'];
if (isset($o['IntakeMin'])) $this->IntakeMin = $o['IntakeMin'];
if (isset($o['FacilityNoun'])) $this->FacilityNoun = $o['FacilityNoun'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->ServerUtc)) $o['ServerUtc'] = JsonConverters::to('DateTime', $this->ServerUtc);
if (isset($this->Vans)) $o['Vans'] = JsonConverters::toArray('CourierOfficeVan', $this->Vans);
if (isset($this->Held)) $o['Held'] = JsonConverters::toArray('CourierHeldView', $this->Held);
if (isset($this->Vehicles)) $o['Vehicles'] = JsonConverters::toArray('CourierVehicleOption', $this->Vehicles);
if (isset($this->Profiles)) $o['Profiles'] = JsonConverters::toArray('CourierProfileOption', $this->Profiles);
if (isset($this->Drivers)) $o['Drivers'] = JsonConverters::toArray('CourierDriverOption', $this->Drivers);
if (isset($this->Desk)) $o['Desk'] = JsonConverters::toArray('CourierDeskRow', $this->Desk);
if (isset($this->GoCount)) $o['GoCount'] = $this->GoCount;
if (isset($this->HeldCount)) $o['HeldCount'] = $this->HeldCount;
if (isset($this->ReadyToOffer)) $o['ReadyToOffer'] = $this->ReadyToOffer;
if (isset($this->IntakeMin)) $o['IntakeMin'] = $this->IntakeMin;
if (isset($this->FacilityNoun)) $o['FacilityNoun'] = $this->FacilityNoun;
return empty($o) ? new class(){} : $o;
}
}
class DispatchBoardView implements JsonSerializable
{
public function __construct(
/** @var DispatchPackConfigView|null */
public ?DispatchPackConfigView $Pack=null,
/** @var DispatchHaulConfigView|null */
public ?DispatchHaulConfigView $Config=null,
/** @var array<DispatchOfflineWindowView>|null */
public ?array $OfflineWindows=null,
/** @var array<DispatchSupplierView>|null */
public ?array $Suppliers=null,
/** @var array<DispatchTruckView>|null */
public ?array $Trucks=null,
/** @var array<DispatchSlotView>|null */
public ?array $Slots=null,
/** @var array<DispatchTicketView>|null */
public ?array $Tickets=null,
/** @var array<DispatchLogView>|null */
public ?array $Log=null,
/** @var DispatchAutopilotView|null */
public ?DispatchAutopilotView $Autopilot=null,
/** @var array<DispatchExceptionView>|null */
public ?array $Exceptions=null,
/** @var array<DispatchFeedView>|null */
public ?array $Feed=null,
/** @var array<DispatchRigView>|null */
public ?array $Rigs=null,
/** @var array<DispatchJobView>|null */
public ?array $Jobs=null,
/** @var array<DispatchOdDriverView>|null */
public ?array $OdDrivers=null,
/** @var array<DispatchOdRequestView>|null */
public ?array $OdRequests=null,
/** @var array<DispatchPackView>|null */
public ?array $Packs=null,
/** @var array<DispatchPackTermView>|null */
public ?array $PackTerms=null,
/** @var array<DispatchPackUnitView>|null */
public ?array $PackUnits=null,
/** @var array<DispatchHoldView>|null */
public ?array $Holds=null,
/** @var array<DispatchBoardIncidentView>|null */
public ?array $Incidents=null,
/** @var CourierOfficeView|null */
public ?CourierOfficeView $Courier=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Pack'])) $this->Pack = JsonConverters::from('DispatchPackConfigView', $o['Pack']);
if (isset($o['Config'])) $this->Config = JsonConverters::from('DispatchHaulConfigView', $o['Config']);
if (isset($o['OfflineWindows'])) $this->OfflineWindows = JsonConverters::fromArray('DispatchOfflineWindowView', $o['OfflineWindows']);
if (isset($o['Suppliers'])) $this->Suppliers = JsonConverters::fromArray('DispatchSupplierView', $o['Suppliers']);
if (isset($o['Trucks'])) $this->Trucks = JsonConverters::fromArray('DispatchTruckView', $o['Trucks']);
if (isset($o['Slots'])) $this->Slots = JsonConverters::fromArray('DispatchSlotView', $o['Slots']);
if (isset($o['Tickets'])) $this->Tickets = JsonConverters::fromArray('DispatchTicketView', $o['Tickets']);
if (isset($o['Log'])) $this->Log = JsonConverters::fromArray('DispatchLogView', $o['Log']);
if (isset($o['Autopilot'])) $this->Autopilot = JsonConverters::from('DispatchAutopilotView', $o['Autopilot']);
if (isset($o['Exceptions'])) $this->Exceptions = JsonConverters::fromArray('DispatchExceptionView', $o['Exceptions']);
if (isset($o['Feed'])) $this->Feed = JsonConverters::fromArray('DispatchFeedView', $o['Feed']);
if (isset($o['Rigs'])) $this->Rigs = JsonConverters::fromArray('DispatchRigView', $o['Rigs']);
if (isset($o['Jobs'])) $this->Jobs = JsonConverters::fromArray('DispatchJobView', $o['Jobs']);
if (isset($o['OdDrivers'])) $this->OdDrivers = JsonConverters::fromArray('DispatchOdDriverView', $o['OdDrivers']);
if (isset($o['OdRequests'])) $this->OdRequests = JsonConverters::fromArray('DispatchOdRequestView', $o['OdRequests']);
if (isset($o['Packs'])) $this->Packs = JsonConverters::fromArray('DispatchPackView', $o['Packs']);
if (isset($o['PackTerms'])) $this->PackTerms = JsonConverters::fromArray('DispatchPackTermView', $o['PackTerms']);
if (isset($o['PackUnits'])) $this->PackUnits = JsonConverters::fromArray('DispatchPackUnitView', $o['PackUnits']);
if (isset($o['Holds'])) $this->Holds = JsonConverters::fromArray('DispatchHoldView', $o['Holds']);
if (isset($o['Incidents'])) $this->Incidents = JsonConverters::fromArray('DispatchBoardIncidentView', $o['Incidents']);
if (isset($o['Courier'])) $this->Courier = JsonConverters::from('CourierOfficeView', $o['Courier']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Pack)) $o['Pack'] = JsonConverters::to('DispatchPackConfigView', $this->Pack);
if (isset($this->Config)) $o['Config'] = JsonConverters::to('DispatchHaulConfigView', $this->Config);
if (isset($this->OfflineWindows)) $o['OfflineWindows'] = JsonConverters::toArray('DispatchOfflineWindowView', $this->OfflineWindows);
if (isset($this->Suppliers)) $o['Suppliers'] = JsonConverters::toArray('DispatchSupplierView', $this->Suppliers);
if (isset($this->Trucks)) $o['Trucks'] = JsonConverters::toArray('DispatchTruckView', $this->Trucks);
if (isset($this->Slots)) $o['Slots'] = JsonConverters::toArray('DispatchSlotView', $this->Slots);
if (isset($this->Tickets)) $o['Tickets'] = JsonConverters::toArray('DispatchTicketView', $this->Tickets);
if (isset($this->Log)) $o['Log'] = JsonConverters::toArray('DispatchLogView', $this->Log);
if (isset($this->Autopilot)) $o['Autopilot'] = JsonConverters::to('DispatchAutopilotView', $this->Autopilot);
if (isset($this->Exceptions)) $o['Exceptions'] = JsonConverters::toArray('DispatchExceptionView', $this->Exceptions);
if (isset($this->Feed)) $o['Feed'] = JsonConverters::toArray('DispatchFeedView', $this->Feed);
if (isset($this->Rigs)) $o['Rigs'] = JsonConverters::toArray('DispatchRigView', $this->Rigs);
if (isset($this->Jobs)) $o['Jobs'] = JsonConverters::toArray('DispatchJobView', $this->Jobs);
if (isset($this->OdDrivers)) $o['OdDrivers'] = JsonConverters::toArray('DispatchOdDriverView', $this->OdDrivers);
if (isset($this->OdRequests)) $o['OdRequests'] = JsonConverters::toArray('DispatchOdRequestView', $this->OdRequests);
if (isset($this->Packs)) $o['Packs'] = JsonConverters::toArray('DispatchPackView', $this->Packs);
if (isset($this->PackTerms)) $o['PackTerms'] = JsonConverters::toArray('DispatchPackTermView', $this->PackTerms);
if (isset($this->PackUnits)) $o['PackUnits'] = JsonConverters::toArray('DispatchPackUnitView', $this->PackUnits);
if (isset($this->Holds)) $o['Holds'] = JsonConverters::toArray('DispatchHoldView', $this->Holds);
if (isset($this->Incidents)) $o['Incidents'] = JsonConverters::toArray('DispatchBoardIncidentView', $this->Incidents);
if (isset($this->Courier)) $o['Courier'] = JsonConverters::to('CourierOfficeView', $this->Courier);
return empty($o) ? new class(){} : $o;
}
}
class DispatchActionResponse implements JsonSerializable
{
public function __construct(
/** @var DispatchBoardView|null */
public ?DispatchBoardView $Board=null,
/** @var string|null */
public ?string $Message=null,
/** @var int */
public int $Sent=0,
/** @var int */
public int $Failed=0,
/** @var string|null */
public ?string $TicketCode=null,
/** @var float */
public float $TicketNet=0.0,
/** @var ResponseStatus|null */
public ?ResponseStatus $ResponseStatus=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Board'])) $this->Board = JsonConverters::from('DispatchBoardView', $o['Board']);
if (isset($o['Message'])) $this->Message = $o['Message'];
if (isset($o['Sent'])) $this->Sent = $o['Sent'];
if (isset($o['Failed'])) $this->Failed = $o['Failed'];
if (isset($o['TicketCode'])) $this->TicketCode = $o['TicketCode'];
if (isset($o['TicketNet'])) $this->TicketNet = $o['TicketNet'];
if (isset($o['ResponseStatus'])) $this->ResponseStatus = JsonConverters::from('ResponseStatus', $o['ResponseStatus']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Board)) $o['Board'] = JsonConverters::to('DispatchBoardView', $this->Board);
if (isset($this->Message)) $o['Message'] = $this->Message;
if (isset($this->Sent)) $o['Sent'] = $this->Sent;
if (isset($this->Failed)) $o['Failed'] = $this->Failed;
if (isset($this->TicketCode)) $o['TicketCode'] = $this->TicketCode;
if (isset($this->TicketNet)) $o['TicketNet'] = $this->TicketNet;
if (isset($this->ResponseStatus)) $o['ResponseStatus'] = JsonConverters::to('ResponseStatus', $this->ResponseStatus);
return empty($o) ? new class(){} : $o;
}
}
class DispatchOdAdvanceRequest implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $Code=null,
/** @var string|null */
public ?string $ToStage=null,
/** @var string|null */
public ?string $DriverCode=null,
/** @var bool|null */
public ?bool $ClearDriver=null,
/** @var string|null */
public ?string $SetDriverStatus=null,
/** @var string|null */
public ?string $EtaText=null,
/** @var bool|null */
public ?bool $Close=null,
/** @var string|null */
public ?string $Note=null,
/** @var int */
public int $AtMin=0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Code'])) $this->Code = $o['Code'];
if (isset($o['ToStage'])) $this->ToStage = $o['ToStage'];
if (isset($o['DriverCode'])) $this->DriverCode = $o['DriverCode'];
if (isset($o['ClearDriver'])) $this->ClearDriver = $o['ClearDriver'];
if (isset($o['SetDriverStatus'])) $this->SetDriverStatus = $o['SetDriverStatus'];
if (isset($o['EtaText'])) $this->EtaText = $o['EtaText'];
if (isset($o['Close'])) $this->Close = $o['Close'];
if (isset($o['Note'])) $this->Note = $o['Note'];
if (isset($o['AtMin'])) $this->AtMin = $o['AtMin'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Code)) $o['Code'] = $this->Code;
if (isset($this->ToStage)) $o['ToStage'] = $this->ToStage;
if (isset($this->DriverCode)) $o['DriverCode'] = $this->DriverCode;
if (isset($this->ClearDriver)) $o['ClearDriver'] = $this->ClearDriver;
if (isset($this->SetDriverStatus)) $o['SetDriverStatus'] = $this->SetDriverStatus;
if (isset($this->EtaText)) $o['EtaText'] = $this->EtaText;
if (isset($this->Close)) $o['Close'] = $this->Close;
if (isset($this->Note)) $o['Note'] = $this->Note;
if (isset($this->AtMin)) $o['AtMin'] = $this->AtMin;
return empty($o) ? new class(){} : $o;
}
}
PHP DispatchOdAdvanceRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/dispatch/ondemand/{Code}/advance HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<DispatchOdAdvanceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<AtMin>0</AtMin>
<ClearDriver>false</ClearDriver>
<Close>false</Close>
<Code>String</Code>
<DriverCode>String</DriverCode>
<EtaText>String</EtaText>
<Note>String</Note>
<SetDriverStatus>String</SetDriverStatus>
<ToStage>String</ToStage>
</DispatchOdAdvanceRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<DispatchActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Board>
<Autopilot>
<IsOn>false</IsOn>
<RuleOffline>false</RuleOffline>
<RuleRelease>false</RuleRelease>
<RuleRoute>false</RuleRoute>
<RuleSlot>false</RuleSlot>
<RuleThrottle>false</RuleThrottle>
<RuleTract>false</RuleTract>
<ThBand>0</ThBand>
<ThFeed>0</ThFeed>
<ThStaged>0</ThStaged>
<ThStall>0</ThStall>
<ThWait>0</ThWait>
</Autopilot>
<Config>
<DumpBays>0</DumpBays>
<FeedRate>0</FeedRate>
<Paused>false</Paused>
<QueueMax>0</QueueMax>
<SlotCap>0</SlotCap>
</Config>
<Courier>
<Desk>
<CourierDeskRow>
<Area>String</Area>
<CaptureMode>String</CaptureMode>
<Code>String</Code>
<CourierProfileId>0</CourierProfileId>
<CustomerName>String</CustomerName>
<DamageNote>String</DamageNote>
<DueText>String</DueText>
<DueUtc>0001-01-01T00:00:00</DueUtc>
<FacilityName>String</FacilityName>
<Fare>0</Fare>
<FinalPrice>0</FinalPrice>
<FinalPriceAfterCount>false</FinalPriceAfterCount>
<IntakeMinAgo>0</IntakeMinAgo>
<IntakeUtc>0001-01-01T00:00:00</IntakeUtc>
<ItemCount>0</ItemCount>
<LevelCode>String</LevelCode>
<LevelName>String</LevelName>
<MissingCount>0</MissingCount>
<NeedsPrice>false</NeedsPrice>
<PayMode>String</PayMode>
<PhotoCount>0</PhotoCount>
<TipAmount>0</TipAmount>
<UnitMany>String</UnitMany>
<Units>0</Units>
<UnitsFound>0</UnitsFound>
</CourierDeskRow>
</Desk>
<Drivers>
<CourierDriverOption>
<Code>String</Code>
<ContactId>0</ContactId>
<EquipmentID>0</EquipmentID>
<Name>String</Name>
<Online>false</Online>
<SentToFacility>false</SentToFacility>
<VehicleUnit>String</VehicleUnit>
<Zone>String</Zone>
</CourierDriverOption>
</Drivers>
<FacilityNoun>String</FacilityNoun>
<GoCount>0</GoCount>
<Held>
<CourierHeldView>
<Area>String</Area>
<BestDriverContactId>0</BestDriverContactId>
<BestLeaveByText>String</BestLeaveByText>
<BestName>String</BestName>
<Code>String</Code>
<DueText>String</DueText>
<HeldMin>0</HeldMin>
<HeldReason>String</HeldReason>
<LevelCode>String</LevelCode>
<LevelName>String</LevelName>
<Miles>0</Miles>
<UnitMany>String</UnitMany>
<Units>0</Units>
<Why xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>String</d6p1:string>
</Why>
</CourierHeldView>
</Held>
<HeldCount>0</HeldCount>
<IntakeMin>0</IntakeMin>
<Profiles>
<CourierProfileOption>
<CourierProfileID>0</CourierProfileID>
<Enabled>false</Enabled>
<Facilities>
<CourierFacilityOption>
<Address>String</Address>
<Code>String</Code>
<CourierFacilityID>0</CourierFacilityID>
<IntakeMin>0</IntakeMin>
<Name>String</Name>
</CourierFacilityOption>
</Facilities>
<FacilityNoun>String</FacilityNoun>
<Name>String</Name>
<RouteShape>String</RouteShape>
<UnitMany>String</UnitMany>
<UnitOne>String</UnitOne>
</CourierProfileOption>
</Profiles>
<ReadyToOffer>0</ReadyToOffer>
<ServerUtc>0001-01-01T00:00:00</ServerUtc>
<Vans>
<CourierOfficeVan>
<Aboard>
<CourierVanChip>
<Area>String</Area>
<Code>String</Code>
<CourierStep>String</CourierStep>
<DueText>String</DueText>
<DueUtc>0001-01-01T00:00:00</DueUtc>
<LevelCode>String</LevelCode>
<LevelName>String</LevelName>
<Movable>false</Movable>
<NoMoveWhy>String</NoMoveWhy>
<Targets>
<CourierMoveTarget>
<DriverContactId>0</DriverContactId>
<LeaveByText>String</LeaveByText>
<Name>String</Name>
<Ok>false</Ok>
<Why>String</Why>
</CourierMoveTarget>
</Targets>
<Units>0</Units>
</CourierVanChip>
</Aboard>
<Cap>0</Cap>
<CapUnit>String</CapUnit>
<Committed>0</Committed>
<CriticalCode>String</CriticalCode>
<DriveMin>0</DriveMin>
<DriverCode>String</DriverCode>
<DriverContactId>0</DriverContactId>
<FacilityName>String</FacilityName>
<InVan>0</InVan>
<LeaveByText>String</LeaveByText>
<LeaveByUtc>0001-01-01T00:00:00</LeaveByUtc>
<Name>String</Name>
<Online>false</Online>
<Queued>
<CourierVanChip>
<Area>String</Area>
<Code>String</Code>
<CourierStep>String</CourierStep>
<DueText>String</DueText>
<DueUtc>0001-01-01T00:00:00</DueUtc>
<LevelCode>String</LevelCode>
<LevelName>String</LevelName>
<Movable>false</Movable>
<NoMoveWhy>String</NoMoveWhy>
<Targets>
<CourierMoveTarget>
<DriverContactId>0</DriverContactId>
<LeaveByText>String</LeaveByText>
<Name>String</Name>
<Ok>false</Ok>
<Why>String</Why>
</CourierMoveTarget>
</Targets>
<Units>0</Units>
</CourierVanChip>
</Queued>
<SendNote>String</SendNote>
<SlackMin>0</SlackMin>
<State>String</State>
<UnitMany>String</UnitMany>
<VehicleUnit>String</VehicleUnit>
<Zone>String</Zone>
</CourierOfficeVan>
</Vans>
<Vehicles>
<CourierVehicleOption>
<CapacityLimit>0</CapacityLimit>
<CapacityUnit>String</CapacityUnit>
<CourierProfileId>0</CourierProfileId>
<EquipmentID>0</EquipmentID>
<IsRefrigerated>false</IsRefrigerated>
<OwnerContactId>0</OwnerContactId>
<Ownership>String</Ownership>
<Status>String</Status>
<UnitNumber>String</UnitNumber>
<VehicleType>String</VehicleType>
</CourierVehicleOption>
</Vehicles>
</Courier>
<Exceptions>
<DispatchExceptionView>
<Code>String</Code>
<Kind>String</Kind>
<MinsAgo>0</MinsAgo>
<RaisedAt>0001-01-01T00:00:00</RaisedAt>
<RaisedLabel>String</RaisedLabel>
<Severity>String</Severity>
<SupplierCode>String</SupplierCode>
<TruckCode>String</TruckCode>
</DispatchExceptionView>
</Exceptions>
<Feed>
<DispatchFeedView>
<Channel>String</Channel>
<EntryAt>0001-01-01T00:00:00</EntryAt>
<EntryLabel>String</EntryLabel>
<FeedId>0</FeedId>
<Kind>String</Kind>
<MinsAgo>0</MinsAgo>
<OverrideText>String</OverrideText>
<SupplierCode>String</SupplierCode>
<TruckCode>String</TruckCode>
</DispatchFeedView>
</Feed>
<Holds>
<DispatchHoldView>
<Code>String</Code>
<CreatedBy>String</CreatedBy>
<CreatedUtc>0001-01-01T00:00:00</CreatedUtc>
<EndUtc>0001-01-01T00:00:00</EndUtc>
<HoldId>0</HoldId>
<IncidentRef>String</IncidentRef>
<LiftedBy>String</LiftedBy>
<LiftedUtc>0001-01-01T00:00:00</LiftedUtc>
<Note>String</Note>
<Reason>String</Reason>
<ScopeKey>String</ScopeKey>
<ScopeKind>String</ScopeKind>
<ScopeLabel>String</ScopeLabel>
<Source>String</Source>
<StartUtc>0001-01-01T00:00:00</StartUtc>
<Status>String</Status>
</DispatchHoldView>
</Holds>
<Incidents>
<DispatchBoardIncidentView>
<Code>String</Code>
<IncidentId>0</IncidentId>
<Kind>String</Kind>
<KindDetail>String</KindDetail>
<LoadCode>String</LoadCode>
<LoadRecovery>String</LoadRecovery>
<OpenedUtc>0001-01-01T00:00:00</OpenedUtc>
<Status>String</Status>
<TruckCode>String</TruckCode>
<TruckRecovery>String</TruckRecovery>
</DispatchBoardIncidentView>
</Incidents>
<Jobs>
<DispatchJobView>
<Cargo>String</Cargo>
<Code>String</Code>
<Customer>String</Customer>
<CustomerPhone>String</CustomerPhone>
<Declined>false</Declined>
<DriverLabel>String</DriverLabel>
<EtaText>String</EtaText>
<FromLoc>String</FromLoc>
<HoldContact>String</HoldContact>
<HoldPhone>String</HoldPhone>
<JobId>0</JobId>
<Miles>0</Miles>
<OfferExpired>false</OfferExpired>
<OfferExpiresInMins>0</OfferExpiresInMins>
<OfferExpiresMin>0</OfferExpiresMin>
<OfferRigIds>String</OfferRigIds>
<Rate>0</Rate>
<RequiredRig>String</RequiredRig>
<Stage>String</Stage>
<ToLoc>String</ToLoc>
<WindowText>String</WindowText>
</DispatchJobView>
</Jobs>
<Log>
<DispatchLogView>
<Kind>String</Kind>
<LogId>0</LogId>
<LogText>String</LogText>
<LoggedAt>0001-01-01T00:00:00</LoggedAt>
<LoggedMin>0</LoggedMin>
<MinsAgo>0</MinsAgo>
</DispatchLogView>
</Log>
<OdDrivers>
<DispatchOdDriverView>
<Capabilities>String</Capabilities>
<Code>String</Code>
<DispatchReason>String</DispatchReason>
<DispatchState>String</DispatchState>
<DistanceMi>0</DistanceMi>
<DriverId>0</DriverId>
<Name>String</Name>
<Phone>String</Phone>
<Status>String</Status>
<Tier>String</Tier>
<Zone>String</Zone>
</DispatchOdDriverView>
</OdDrivers>
<OdRequests>
<DispatchOdRequestView>
<Address>String</Address>
<Bags>0</Bags>
<CandidateCodes>String</CandidateCodes>
<Code>String</Code>
<DriverCode>String</DriverCode>
<EtaText>String</EtaText>
<Needs>String</Needs>
<NoDriver>String</NoDriver>
<Note>String</Note>
<PingExpiresInMins>0</PingExpiresInMins>
<PingExpiresMin>0</PingExpiresMin>
<RequestId>0</RequestId>
<Stage>String</Stage>
<TriedCodes>String</TriedCodes>
<Zone>String</Zone>
</DispatchOdRequestView>
</OdRequests>
<OfflineWindows>
<DispatchOfflineWindowView>
<FromHour>String</FromHour>
<OfflineWindowId>0</OfflineWindowId>
<ToHour>String</ToHour>
</DispatchOfflineWindowView>
</OfflineWindows>
<Pack>
<DayBoundary>String</DayBoundary>
<HasQuotas>false</HasQuotas>
<IsInverted>false</IsInverted>
<LoadLimitMins>0</LoadLimitMins>
<PackId>String</PackId>
<PayBasis>String</PayBasis>
<TicketSource>String</TicketSource>
</Pack>
<PackTerms>
<DispatchPackTermView>
<AssignTarget>String</AssignTarget>
<BayNoun>String</BayNoun>
<CampaignNoun>String</CampaignNoun>
<DayNoun>String</DayNoun>
<Facility>String</Facility>
<FacilityShort>String</FacilityShort>
<FleetLabel>String</FleetLabel>
<Lang>String</Lang>
<ModeName>String</ModeName>
<PackId>String</PackId>
<PageSubtitle>String</PageSubtitle>
<SeasonChip>String</SeasonChip>
<SourceSite>String</SourceSite>
<Supplier>String</Supplier>
<SupplierPlural>String</SupplierPlural>
<TicketNoun>String</TicketNoun>
<UnloadVerb>String</UnloadVerb>
</DispatchPackTermView>
</PackTerms>
<PackUnits>
<DispatchPackUnitView>
<LoadQty>0</LoadQty>
<PackId>String</PackId>
<SeasonMultiple>0</SeasonMultiple>
<Unit>String</Unit>
<VolumeHigh>0</VolumeHigh>
<VolumeLow>0</VolumeLow>
<WeeklyFraction>0</WeeklyFraction>
</DispatchPackUnitView>
</PackUnits>
<Packs>
<DispatchPackView>
<DayBoundary>String</DayBoundary>
<HasQuotas>false</HasQuotas>
<IsInverted>false</IsInverted>
<LoadLimitMins>0</LoadLimitMins>
<PackId>String</PackId>
<PayBasis>String</PayBasis>
<SortOrder>0</SortOrder>
<TicketSource>String</TicketSource>
</DispatchPackView>
</Packs>
<Rigs>
<DispatchRigView>
<Code>String</Code>
<DispatchReason>String</DispatchReason>
<DispatchState>String</DispatchState>
<DriverName>String</DriverName>
<IsFree>false</IsFree>
<MatchRank>0</MatchRank>
<Name>String</Name>
<Phone>String</Phone>
<RigId>0</RigId>
<RigType>String</RigType>
</DispatchRigView>
</Rigs>
<Slots>
<DispatchSlotView>
<BaseBooked>0</BaseBooked>
<Hour>String</Hour>
<SlotId>0</SlotId>
<SortOrder>0</SortOrder>
</DispatchSlotView>
</Slots>
<Suppliers>
<DispatchSupplierView>
<Code>String</Code>
<Delivered>0</Delivered>
<Name>String</Name>
<OwnHauler>false</OwnHauler>
<Region>String</Region>
<SeasonAllotment>0</SeasonAllotment>
<Sites>
<DispatchSiteView>
<Acres>0</Acres>
<Name>String</Name>
<SiteId>0</SiteId>
<SortOrder>0</SortOrder>
<StandingVolume>0</StandingVolume>
<SupplierCode>String</SupplierCode>
<SupplierId>0</SupplierId>
</DispatchSiteView>
</Sites>
<SortOrder>0</SortOrder>
<SupplierId>0</SupplierId>
<WeekCap>0</WeekCap>
<WeekDelivered>0</WeekDelivered>
</DispatchSupplierView>
</Suppliers>
<Tickets>
<DispatchTicketView>
<Code>String</Code>
<MinsAgo>0</MinsAgo>
<NetQty>0</NetQty>
<Source>String</Source>
<SupplierCode>String</SupplierCode>
<TicketId>0</TicketId>
<TicketedAt>0001-01-01T00:00:00</TicketedAt>
<TicketedMin>0</TicketedMin>
<TruckCode>String</TruckCode>
</DispatchTicketView>
</Tickets>
<Trucks>
<DispatchTruckView>
<Code>String</Code>
<CycleMins>String</CycleMins>
<CycleMinsAgo>0</CycleMinsAgo>
<CycleStart>0</CycleStart>
<DispatchReason>String</DispatchReason>
<DispatchState>String</DispatchState>
<DriverName>String</DriverName>
<EmployerCode>String</EmployerCode>
<EstLoad>0</EstLoad>
<IsInteractive>false</IsInteractive>
<LastPingMins>0</LastPingMins>
<LoadsToday>0</LoadsToday>
<NetToday>0</NetToday>
<NextSiteName>String</NextSiteName>
<NextSupplierCode>String</NextSupplierCode>
<Phone>String</Phone>
<SiteName>String</SiteName>
<Slot>String</Slot>
<Stage>String</Stage>
<StageMinsAgo>0</StageMinsAgo>
<StageSince>0</StageSince>
<SupplierCode>String</SupplierCode>
<TruckId>0</TruckId>
</DispatchTruckView>
</Trucks>
</Board>
<Failed>0</Failed>
<Message>String</Message>
<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>
<Sent>0</Sent>
<TicketCode>String</TicketCode>
<TicketNet>0</TicketNet>
</DispatchActionResponse>