Trendsic Platform Service

<back to all web services

CustomersInLine

The following routes are available for this service:
GET/v1/CustomersInLine
GET/v1/CustomersInLine/{LocationId}
<?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 PaperworkAsks implements JsonSerializable
{
    public function __construct(
        /** @var bool|null */
        public ?bool $Questionnaire=null,
        /** @var bool|null */
        public ?bool $Upload=null
    ) {
    }

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

class CustomerInLineObject implements JsonSerializable
{
    public function __construct(
        /** @var string */
        public string $CheckinId='',
        /** @var string|null */
        public ?string $VisitKey=null,
        /** @var string|null */
        public ?string $Name=null,
        /** @var string|null */
        public ?string $SayNameAs=null,
        /** @var string|null */
        public ?string $Line=null,
        /** @var string|null */
        public ?string $Description=null,
        /** @var string */
        public string $ServiceId='',
        /** @var int */
        public int $Status=0,
        /** @var DateTime */
        public DateTime $SignInTime=new DateTime(),
        /** @var DateTime */
        public DateTime $AdjustedSignInTime=new DateTime(),
        /** @var DateTime|null */
        public ?DateTime $ArrivedTime=null,
        /** @var bool|null */
        public ?bool $SendReminders=null,
        /** @var DateTime|null */
        public ?DateTime $CalledTime=null,
        /** @var string|null */
        public ?string $TicketLabel=null,
        /** @var string */
        public string $StationId='',
        /** @var string|null */
        public ?string $StationName=null,
        /** @var string|null */
        public ?string $Id=null,
        /** @var string|null */
        public ?string $FullName=null,
        /** @var int|null */
        public ?int $TaskTime=null,
        /** @var bool|null */
        public ?bool $Completed=null,
        /** @var DateTime|null */
        public ?DateTime $CompletedTime=null,
        /** @var string|null */
        public ?string $EmployeeId=null,
        /** @var string|null */
        public ?string $Employee=null,
        /** @var bool|null */
        public ?bool $QuestionnaireSubmitted=null,
        /** @var string|null */
        public ?string $HoldReason=null,
        /** @var DateTime|null */
        public ?DateTime $HoldExpectedUtc=null,
        /** @var DateTime|null */
        public ?DateTime $ReturnedTime=null,
        /** @var int|null */
        public ?int $ContactId=null,
        /** @var string|null */
        public ?string $MobilePhone=null,
        /** @var string|null */
        public ?string $Source=null,
        /** @var string|null */
        public ?string $LastMovedFrom=null,
        /** @var DateTime|null */
        public ?DateTime $LastMovedUtc=null,
        /** @var DateTime|null */
        public ?DateTime $PriorityTime=null,
        /** @var string|null */
        public ?string $HoldByName=null,
        /** @var string|null */
        public ?string $HoldByStationName=null,
        /** @var DateTime|null */
        public ?DateTime $HoldSinceUtc=null,
        /** @var int|null */
        public ?int $TicketNo=null,
        /** @var int|null */
        public ?int $NoteCount=null,
        /** @var bool|null */
        public ?bool $HasCarryNote=null,
        /** @var string|null */
        public ?string $CarryNoteBy=null,
        /** @var DateTime|null */
        public ?DateTime $CarryNoteAtUtc=null,
        /** @var PaperworkAsks|null */
        public ?PaperworkAsks $PaperworkAsks=null,
        /** @var int|null */
        public ?int $DocumentCount=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['CheckinId'])) $this->CheckinId = $o['CheckinId'];
        if (isset($o['VisitKey'])) $this->VisitKey = $o['VisitKey'];
        if (isset($o['Name'])) $this->Name = $o['Name'];
        if (isset($o['SayNameAs'])) $this->SayNameAs = $o['SayNameAs'];
        if (isset($o['Line'])) $this->Line = $o['Line'];
        if (isset($o['Description'])) $this->Description = $o['Description'];
        if (isset($o['ServiceId'])) $this->ServiceId = $o['ServiceId'];
        if (isset($o['Status'])) $this->Status = $o['Status'];
        if (isset($o['SignInTime'])) $this->SignInTime = JsonConverters::from('DateTime', $o['SignInTime']);
        if (isset($o['AdjustedSignInTime'])) $this->AdjustedSignInTime = JsonConverters::from('DateTime', $o['AdjustedSignInTime']);
        if (isset($o['ArrivedTime'])) $this->ArrivedTime = JsonConverters::from('DateTime', $o['ArrivedTime']);
        if (isset($o['SendReminders'])) $this->SendReminders = $o['SendReminders'];
        if (isset($o['CalledTime'])) $this->CalledTime = JsonConverters::from('DateTime', $o['CalledTime']);
        if (isset($o['TicketLabel'])) $this->TicketLabel = $o['TicketLabel'];
        if (isset($o['StationId'])) $this->StationId = $o['StationId'];
        if (isset($o['StationName'])) $this->StationName = $o['StationName'];
        if (isset($o['Id'])) $this->Id = $o['Id'];
        if (isset($o['FullName'])) $this->FullName = $o['FullName'];
        if (isset($o['TaskTime'])) $this->TaskTime = $o['TaskTime'];
        if (isset($o['Completed'])) $this->Completed = $o['Completed'];
        if (isset($o['CompletedTime'])) $this->CompletedTime = JsonConverters::from('DateTime', $o['CompletedTime']);
        if (isset($o['EmployeeId'])) $this->EmployeeId = $o['EmployeeId'];
        if (isset($o['Employee'])) $this->Employee = $o['Employee'];
        if (isset($o['QuestionnaireSubmitted'])) $this->QuestionnaireSubmitted = $o['QuestionnaireSubmitted'];
        if (isset($o['HoldReason'])) $this->HoldReason = $o['HoldReason'];
        if (isset($o['HoldExpectedUtc'])) $this->HoldExpectedUtc = JsonConverters::from('DateTime', $o['HoldExpectedUtc']);
        if (isset($o['ReturnedTime'])) $this->ReturnedTime = JsonConverters::from('DateTime', $o['ReturnedTime']);
        if (isset($o['ContactId'])) $this->ContactId = $o['ContactId'];
        if (isset($o['MobilePhone'])) $this->MobilePhone = $o['MobilePhone'];
        if (isset($o['Source'])) $this->Source = $o['Source'];
        if (isset($o['LastMovedFrom'])) $this->LastMovedFrom = $o['LastMovedFrom'];
        if (isset($o['LastMovedUtc'])) $this->LastMovedUtc = JsonConverters::from('DateTime', $o['LastMovedUtc']);
        if (isset($o['PriorityTime'])) $this->PriorityTime = JsonConverters::from('DateTime', $o['PriorityTime']);
        if (isset($o['HoldByName'])) $this->HoldByName = $o['HoldByName'];
        if (isset($o['HoldByStationName'])) $this->HoldByStationName = $o['HoldByStationName'];
        if (isset($o['HoldSinceUtc'])) $this->HoldSinceUtc = JsonConverters::from('DateTime', $o['HoldSinceUtc']);
        if (isset($o['TicketNo'])) $this->TicketNo = $o['TicketNo'];
        if (isset($o['NoteCount'])) $this->NoteCount = $o['NoteCount'];
        if (isset($o['HasCarryNote'])) $this->HasCarryNote = $o['HasCarryNote'];
        if (isset($o['CarryNoteBy'])) $this->CarryNoteBy = $o['CarryNoteBy'];
        if (isset($o['CarryNoteAtUtc'])) $this->CarryNoteAtUtc = JsonConverters::from('DateTime', $o['CarryNoteAtUtc']);
        if (isset($o['PaperworkAsks'])) $this->PaperworkAsks = JsonConverters::from('PaperworkAsks', $o['PaperworkAsks']);
        if (isset($o['DocumentCount'])) $this->DocumentCount = $o['DocumentCount'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->CheckinId)) $o['CheckinId'] = $this->CheckinId;
        if (isset($this->VisitKey)) $o['VisitKey'] = $this->VisitKey;
        if (isset($this->Name)) $o['Name'] = $this->Name;
        if (isset($this->SayNameAs)) $o['SayNameAs'] = $this->SayNameAs;
        if (isset($this->Line)) $o['Line'] = $this->Line;
        if (isset($this->Description)) $o['Description'] = $this->Description;
        if (isset($this->ServiceId)) $o['ServiceId'] = $this->ServiceId;
        if (isset($this->Status)) $o['Status'] = $this->Status;
        if (isset($this->SignInTime)) $o['SignInTime'] = JsonConverters::to('DateTime', $this->SignInTime);
        if (isset($this->AdjustedSignInTime)) $o['AdjustedSignInTime'] = JsonConverters::to('DateTime', $this->AdjustedSignInTime);
        if (isset($this->ArrivedTime)) $o['ArrivedTime'] = JsonConverters::to('DateTime', $this->ArrivedTime);
        if (isset($this->SendReminders)) $o['SendReminders'] = $this->SendReminders;
        if (isset($this->CalledTime)) $o['CalledTime'] = JsonConverters::to('DateTime', $this->CalledTime);
        if (isset($this->TicketLabel)) $o['TicketLabel'] = $this->TicketLabel;
        if (isset($this->StationId)) $o['StationId'] = $this->StationId;
        if (isset($this->StationName)) $o['StationName'] = $this->StationName;
        if (isset($this->Id)) $o['Id'] = $this->Id;
        if (isset($this->FullName)) $o['FullName'] = $this->FullName;
        if (isset($this->TaskTime)) $o['TaskTime'] = $this->TaskTime;
        if (isset($this->Completed)) $o['Completed'] = $this->Completed;
        if (isset($this->CompletedTime)) $o['CompletedTime'] = JsonConverters::to('DateTime', $this->CompletedTime);
        if (isset($this->EmployeeId)) $o['EmployeeId'] = $this->EmployeeId;
        if (isset($this->Employee)) $o['Employee'] = $this->Employee;
        if (isset($this->QuestionnaireSubmitted)) $o['QuestionnaireSubmitted'] = $this->QuestionnaireSubmitted;
        if (isset($this->HoldReason)) $o['HoldReason'] = $this->HoldReason;
        if (isset($this->HoldExpectedUtc)) $o['HoldExpectedUtc'] = JsonConverters::to('DateTime', $this->HoldExpectedUtc);
        if (isset($this->ReturnedTime)) $o['ReturnedTime'] = JsonConverters::to('DateTime', $this->ReturnedTime);
        if (isset($this->ContactId)) $o['ContactId'] = $this->ContactId;
        if (isset($this->MobilePhone)) $o['MobilePhone'] = $this->MobilePhone;
        if (isset($this->Source)) $o['Source'] = $this->Source;
        if (isset($this->LastMovedFrom)) $o['LastMovedFrom'] = $this->LastMovedFrom;
        if (isset($this->LastMovedUtc)) $o['LastMovedUtc'] = JsonConverters::to('DateTime', $this->LastMovedUtc);
        if (isset($this->PriorityTime)) $o['PriorityTime'] = JsonConverters::to('DateTime', $this->PriorityTime);
        if (isset($this->HoldByName)) $o['HoldByName'] = $this->HoldByName;
        if (isset($this->HoldByStationName)) $o['HoldByStationName'] = $this->HoldByStationName;
        if (isset($this->HoldSinceUtc)) $o['HoldSinceUtc'] = JsonConverters::to('DateTime', $this->HoldSinceUtc);
        if (isset($this->TicketNo)) $o['TicketNo'] = $this->TicketNo;
        if (isset($this->NoteCount)) $o['NoteCount'] = $this->NoteCount;
        if (isset($this->HasCarryNote)) $o['HasCarryNote'] = $this->HasCarryNote;
        if (isset($this->CarryNoteBy)) $o['CarryNoteBy'] = $this->CarryNoteBy;
        if (isset($this->CarryNoteAtUtc)) $o['CarryNoteAtUtc'] = JsonConverters::to('DateTime', $this->CarryNoteAtUtc);
        if (isset($this->PaperworkAsks)) $o['PaperworkAsks'] = JsonConverters::to('PaperworkAsks', $this->PaperworkAsks);
        if (isset($this->DocumentCount)) $o['DocumentCount'] = $this->DocumentCount;
        return empty($o) ? new class(){} : $o;
    }
}

class LobbySettings implements JsonSerializable
{
    public function __construct(
        /** @var string */
        public string $LocationId='',
        /** @var string|null */
        public ?string $WaitSource=null,
        /** @var string|null */
        public ?string $MonitorChime=null,
        /** @var bool|null */
        public ?bool $HasUploadedChime=null,
        /** @var string|null */
        public ?string $ChimeUrl=null,
        /** @var int */
        public int $MonitorVolume=0,
        /** @var bool|null */
        public ?bool $MonitorAnnounce=null,
        /** @var string|null */
        public ?string $MonitorAnnounceTemplate=null,
        /** @var string|null */
        public ?string $MonitorVoice=null,
        /** @var float */
        public float $MonitorVoiceRate=0.0,
        /** @var int|null */
        public ?int $MonitorRepeatAfterSec=null,
        /** @var bool|null */
        public ?bool $MonitorTicketOnly=null,
        /** @var string|null */
        public ?string $LobbyZoneMode=null,
        /** @var int|null */
        public ?int $LobbyTakeoverEveryMin=null,
        /** @var int|null */
        public ?int $LobbyTakeoverSec=null,
        /** @var bool|null */
        public ?bool $LobbyIdleScreen=null,
        /** @var string|null */
        public ?string $TimeZone=null,
        /** @var bool|null */
        public ?bool $MonitorShowServices=null,
        /** @var int|null */
        public ?int $LobbyTvCount=null,
        /** @var string|null */
        public ?string $TicketPrefix=null,
        /** @var string|null */
        public ?string $LobbyDensity=null,
        /** @var string|null */
        public ?string $LobbyIdleMode=null,
        /** @var int|null */
        public ?int $LobbyIdleContentId=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['LocationId'])) $this->LocationId = $o['LocationId'];
        if (isset($o['WaitSource'])) $this->WaitSource = $o['WaitSource'];
        if (isset($o['MonitorChime'])) $this->MonitorChime = $o['MonitorChime'];
        if (isset($o['HasUploadedChime'])) $this->HasUploadedChime = $o['HasUploadedChime'];
        if (isset($o['ChimeUrl'])) $this->ChimeUrl = $o['ChimeUrl'];
        if (isset($o['MonitorVolume'])) $this->MonitorVolume = $o['MonitorVolume'];
        if (isset($o['MonitorAnnounce'])) $this->MonitorAnnounce = $o['MonitorAnnounce'];
        if (isset($o['MonitorAnnounceTemplate'])) $this->MonitorAnnounceTemplate = $o['MonitorAnnounceTemplate'];
        if (isset($o['MonitorVoice'])) $this->MonitorVoice = $o['MonitorVoice'];
        if (isset($o['MonitorVoiceRate'])) $this->MonitorVoiceRate = $o['MonitorVoiceRate'];
        if (isset($o['MonitorRepeatAfterSec'])) $this->MonitorRepeatAfterSec = $o['MonitorRepeatAfterSec'];
        if (isset($o['MonitorTicketOnly'])) $this->MonitorTicketOnly = $o['MonitorTicketOnly'];
        if (isset($o['LobbyZoneMode'])) $this->LobbyZoneMode = $o['LobbyZoneMode'];
        if (isset($o['LobbyTakeoverEveryMin'])) $this->LobbyTakeoverEveryMin = $o['LobbyTakeoverEveryMin'];
        if (isset($o['LobbyTakeoverSec'])) $this->LobbyTakeoverSec = $o['LobbyTakeoverSec'];
        if (isset($o['LobbyIdleScreen'])) $this->LobbyIdleScreen = $o['LobbyIdleScreen'];
        if (isset($o['TimeZone'])) $this->TimeZone = $o['TimeZone'];
        if (isset($o['MonitorShowServices'])) $this->MonitorShowServices = $o['MonitorShowServices'];
        if (isset($o['LobbyTvCount'])) $this->LobbyTvCount = $o['LobbyTvCount'];
        if (isset($o['TicketPrefix'])) $this->TicketPrefix = $o['TicketPrefix'];
        if (isset($o['LobbyDensity'])) $this->LobbyDensity = $o['LobbyDensity'];
        if (isset($o['LobbyIdleMode'])) $this->LobbyIdleMode = $o['LobbyIdleMode'];
        if (isset($o['LobbyIdleContentId'])) $this->LobbyIdleContentId = $o['LobbyIdleContentId'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->LocationId)) $o['LocationId'] = $this->LocationId;
        if (isset($this->WaitSource)) $o['WaitSource'] = $this->WaitSource;
        if (isset($this->MonitorChime)) $o['MonitorChime'] = $this->MonitorChime;
        if (isset($this->HasUploadedChime)) $o['HasUploadedChime'] = $this->HasUploadedChime;
        if (isset($this->ChimeUrl)) $o['ChimeUrl'] = $this->ChimeUrl;
        if (isset($this->MonitorVolume)) $o['MonitorVolume'] = $this->MonitorVolume;
        if (isset($this->MonitorAnnounce)) $o['MonitorAnnounce'] = $this->MonitorAnnounce;
        if (isset($this->MonitorAnnounceTemplate)) $o['MonitorAnnounceTemplate'] = $this->MonitorAnnounceTemplate;
        if (isset($this->MonitorVoice)) $o['MonitorVoice'] = $this->MonitorVoice;
        if (isset($this->MonitorVoiceRate)) $o['MonitorVoiceRate'] = $this->MonitorVoiceRate;
        if (isset($this->MonitorRepeatAfterSec)) $o['MonitorRepeatAfterSec'] = $this->MonitorRepeatAfterSec;
        if (isset($this->MonitorTicketOnly)) $o['MonitorTicketOnly'] = $this->MonitorTicketOnly;
        if (isset($this->LobbyZoneMode)) $o['LobbyZoneMode'] = $this->LobbyZoneMode;
        if (isset($this->LobbyTakeoverEveryMin)) $o['LobbyTakeoverEveryMin'] = $this->LobbyTakeoverEveryMin;
        if (isset($this->LobbyTakeoverSec)) $o['LobbyTakeoverSec'] = $this->LobbyTakeoverSec;
        if (isset($this->LobbyIdleScreen)) $o['LobbyIdleScreen'] = $this->LobbyIdleScreen;
        if (isset($this->TimeZone)) $o['TimeZone'] = $this->TimeZone;
        if (isset($this->MonitorShowServices)) $o['MonitorShowServices'] = $this->MonitorShowServices;
        if (isset($this->LobbyTvCount)) $o['LobbyTvCount'] = $this->LobbyTvCount;
        if (isset($this->TicketPrefix)) $o['TicketPrefix'] = $this->TicketPrefix;
        if (isset($this->LobbyDensity)) $o['LobbyDensity'] = $this->LobbyDensity;
        if (isset($this->LobbyIdleMode)) $o['LobbyIdleMode'] = $this->LobbyIdleMode;
        if (isset($this->LobbyIdleContentId)) $o['LobbyIdleContentId'] = $this->LobbyIdleContentId;
        return empty($o) ? new class(){} : $o;
    }
}

class StationSessionView implements JsonSerializable
{
    public function __construct(
        /** @var string */
        public string $SessionId='',
        /** @var string */
        public string $LocationId='',
        /** @var string */
        public string $StationId='',
        /** @var string|null */
        public ?string $StationName=null,
        /** @var string */
        public string $EmployeeId='',
        /** @var string|null */
        public ?string $EmployeeName=null,
        /** @var DateTime */
        public DateTime $SignedInUtc=new DateTime(),
        /** @var DateTime */
        public DateTime $LastSeenUtc=new DateTime(),
        /** @var DateTime|null */
        public ?DateTime $PausedSinceUtc=null,
        /** @var string|null */
        public ?string $PauseReason=null,
        /** @var bool|null */
        public ?bool $IsMine=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['SessionId'])) $this->SessionId = $o['SessionId'];
        if (isset($o['LocationId'])) $this->LocationId = $o['LocationId'];
        if (isset($o['StationId'])) $this->StationId = $o['StationId'];
        if (isset($o['StationName'])) $this->StationName = $o['StationName'];
        if (isset($o['EmployeeId'])) $this->EmployeeId = $o['EmployeeId'];
        if (isset($o['EmployeeName'])) $this->EmployeeName = $o['EmployeeName'];
        if (isset($o['SignedInUtc'])) $this->SignedInUtc = JsonConverters::from('DateTime', $o['SignedInUtc']);
        if (isset($o['LastSeenUtc'])) $this->LastSeenUtc = JsonConverters::from('DateTime', $o['LastSeenUtc']);
        if (isset($o['PausedSinceUtc'])) $this->PausedSinceUtc = JsonConverters::from('DateTime', $o['PausedSinceUtc']);
        if (isset($o['PauseReason'])) $this->PauseReason = $o['PauseReason'];
        if (isset($o['IsMine'])) $this->IsMine = $o['IsMine'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->SessionId)) $o['SessionId'] = $this->SessionId;
        if (isset($this->LocationId)) $o['LocationId'] = $this->LocationId;
        if (isset($this->StationId)) $o['StationId'] = $this->StationId;
        if (isset($this->StationName)) $o['StationName'] = $this->StationName;
        if (isset($this->EmployeeId)) $o['EmployeeId'] = $this->EmployeeId;
        if (isset($this->EmployeeName)) $o['EmployeeName'] = $this->EmployeeName;
        if (isset($this->SignedInUtc)) $o['SignedInUtc'] = JsonConverters::to('DateTime', $this->SignedInUtc);
        if (isset($this->LastSeenUtc)) $o['LastSeenUtc'] = JsonConverters::to('DateTime', $this->LastSeenUtc);
        if (isset($this->PausedSinceUtc)) $o['PausedSinceUtc'] = JsonConverters::to('DateTime', $this->PausedSinceUtc);
        if (isset($this->PauseReason)) $o['PauseReason'] = $this->PauseReason;
        if (isset($this->IsMine)) $o['IsMine'] = $this->IsMine;
        return empty($o) ? new class(){} : $o;
    }
}

class CustomersInLineResponse implements JsonSerializable
{
    public function __construct(
        /** @var ResponseStatus|null */
        public ?ResponseStatus $ResponseStatus=null,
        /** @var array<CustomerInLineObject>|null */
        public ?array $Customers=null,
        /** @var string|null */
        public ?string $LocationName=null,
        /** @var bool|null */
        public ?bool $MonitorShowServices=null,
        /** @var LobbySettings|null */
        public ?LobbySettings $Lobby=null,
        /** @var string|null */
        public ?string $WorkspaceName=null,
        /** @var string|null */
        public ?string $StationTerm=null,
        /** @var array<StationSessionView>|null */
        public ?array $Sessions=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['ResponseStatus'])) $this->ResponseStatus = JsonConverters::from('ResponseStatus', $o['ResponseStatus']);
        if (isset($o['Customers'])) $this->Customers = JsonConverters::fromArray('CustomerInLineObject', $o['Customers']);
        if (isset($o['LocationName'])) $this->LocationName = $o['LocationName'];
        if (isset($o['MonitorShowServices'])) $this->MonitorShowServices = $o['MonitorShowServices'];
        if (isset($o['Lobby'])) $this->Lobby = JsonConverters::from('LobbySettings', $o['Lobby']);
        if (isset($o['WorkspaceName'])) $this->WorkspaceName = $o['WorkspaceName'];
        if (isset($o['StationTerm'])) $this->StationTerm = $o['StationTerm'];
        if (isset($o['Sessions'])) $this->Sessions = JsonConverters::fromArray('StationSessionView', $o['Sessions']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->ResponseStatus)) $o['ResponseStatus'] = JsonConverters::to('ResponseStatus', $this->ResponseStatus);
        if (isset($this->Customers)) $o['Customers'] = JsonConverters::toArray('CustomerInLineObject', $this->Customers);
        if (isset($this->LocationName)) $o['LocationName'] = $this->LocationName;
        if (isset($this->MonitorShowServices)) $o['MonitorShowServices'] = $this->MonitorShowServices;
        if (isset($this->Lobby)) $o['Lobby'] = JsonConverters::to('LobbySettings', $this->Lobby);
        if (isset($this->WorkspaceName)) $o['WorkspaceName'] = $this->WorkspaceName;
        if (isset($this->StationTerm)) $o['StationTerm'] = $this->StationTerm;
        if (isset($this->Sessions)) $o['Sessions'] = JsonConverters::toArray('StationSessionView', $this->Sessions);
        return empty($o) ? new class(){} : $o;
    }
}

class CustomersInLine implements JsonSerializable
{
    public function __construct(
        /** @var string */
        public string $ApiKey='',
        /** @var string */
        public string $LocationId='',
        /** @var bool|null */
        public ?bool $clientIsLoading=null
    ) {
    }

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

PHP CustomersInLine DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/CustomersInLine HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Customers":[{"CheckinId":"00000000000000000000000000000000","VisitKey":"00000000000000000000000000000000","Name":"String","SayNameAs":"String","Line":"String","Description":"String","ServiceId":"00000000000000000000000000000000","Status":0,"SignInTime":"0001-01-01T00:00:00.0000000","AdjustedSignInTime":"0001-01-01T00:00:00.0000000","ArrivedTime":"0001-01-01T00:00:00.0000000","SendReminders":false,"CalledTime":"0001-01-01T00:00:00.0000000","TicketLabel":"String","StationId":"00000000000000000000000000000000","StationName":"String","Id":"00000000000000000000000000000000","FullName":"String","TaskTime":0,"Completed":false,"CompletedTime":"0001-01-01T00:00:00.0000000","EmployeeId":"00000000000000000000000000000000","Employee":"String","QuestionnaireSubmitted":false,"HoldReason":"String","HoldExpectedUtc":"0001-01-01T00:00:00.0000000","ReturnedTime":"0001-01-01T00:00:00.0000000","ContactId":0,"MobilePhone":"String","Source":"String","LastMovedFrom":"String","LastMovedUtc":"0001-01-01T00:00:00.0000000","PriorityTime":"0001-01-01T00:00:00.0000000","HoldByName":"String","HoldByStationName":"String","HoldSinceUtc":"0001-01-01T00:00:00.0000000","TicketNo":0,"NoteCount":0,"HasCarryNote":false,"CarryNoteBy":"String","CarryNoteAtUtc":"0001-01-01T00:00:00.0000000","PaperworkAsks":{"Questionnaire":false,"Upload":false},"DocumentCount":0}],"LocationName":"String","MonitorShowServices":false,"Lobby":{"LocationId":"00000000000000000000000000000000","WaitSource":"String","MonitorChime":"String","HasUploadedChime":false,"ChimeUrl":"String","MonitorVolume":0,"MonitorAnnounce":false,"MonitorAnnounceTemplate":"String","MonitorVoice":"String","MonitorVoiceRate":0,"MonitorRepeatAfterSec":0,"MonitorTicketOnly":false,"LobbyZoneMode":"String","LobbyTakeoverEveryMin":0,"LobbyTakeoverSec":0,"LobbyIdleScreen":false,"TimeZone":"String","MonitorShowServices":false,"LobbyTvCount":0,"TicketPrefix":"String","LobbyDensity":"String","LobbyIdleMode":"String","LobbyIdleContentId":0},"WorkspaceName":"String","StationTerm":"String","Sessions":[{"SessionId":"00000000000000000000000000000000","LocationId":"00000000000000000000000000000000","StationId":"00000000000000000000000000000000","StationName":"String","EmployeeId":"00000000000000000000000000000000","EmployeeName":"String","SignedInUtc":"0001-01-01T00:00:00.0000000","LastSeenUtc":"0001-01-01T00:00:00.0000000","PausedSinceUtc":"0001-01-01T00:00:00.0000000","PauseReason":"String","IsMine":false}]}