Agentivity API

<back to all web services

GetPassengerLocationsByRouting

The following routes are available for this service:
GET/PassengerLocationsByRouting
<?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};


// @DataContract(Name="Metadata", Namespace="schemas.agentivity.com/types")
class PagingMetadata implements JsonSerializable
{
    public function __construct(
        /** @description Starting Record */
        // @DataMember
        // @ApiMember(DataType="string", Description="Starting Record", Name="Offset", ParameterType="query")
        /** @var string|null */
        public ?string $Offset=null,

        /** @description Number of records to return (PageSize) */
        // @DataMember
        // @ApiMember(DataType="string", Description="Number of records to return (PageSize)", Name="Limit", ParameterType="query")
        /** @var string|null */
        public ?string $Limit=null,

        /** @description Total Number of Records in a Full Reponse (if no paging) */
        // @DataMember
        // @ApiMember(DataType="string", Description="Total Number of Records in a Full Reponse (if no paging)", Name="TotalRecords", ParameterType="query")
        /** @var int */
        public int $TotalRecords=0,

        /** @description Total Number of Records in this Reponse (on this page) */
        // @DataMember
        // @ApiMember(DataType="string", Description="Total Number of Records in this Reponse (on this page)", Name="ResponseRecords", ParameterType="query")
        /** @var int */
        public int $ResponseRecords=0
    ) {
    }

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

// @DataContract(Namespace="schemas.agentivity.com/types")
class CompanyLevelRequestBase extends PagingMetadata implements IMemberUsername, IMemberOwningCompanyCode, JsonSerializable
{
    /**
     * @param string|null $Offset
     * @param string|null $Limit
     * @param int $TotalRecords
     * @param int $ResponseRecords
     */
    public function __construct(
        ?string $Offset=null,
        ?string $Limit=null,
        int $TotalRecords=0,
        int $ResponseRecords=0,
        /** @description Comma Delimited List of Owning Company Codes */
        // @DataMember
        /** @var string[]|null */
        public ?array $OwningCompanyCode=null,

        /** @description UserName in form of an email address */
        // @DataMember
        /** @var string|null */
        public ?string $UserName=null
    ) {
        parent::__construct($Offset,$Limit,$TotalRecords,$ResponseRecords);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['OwningCompanyCode'])) $this->OwningCompanyCode = JsonConverters::fromArray('string', $o['OwningCompanyCode']);
        if (isset($o['UserName'])) $this->UserName = $o['UserName'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->OwningCompanyCode)) $o['OwningCompanyCode'] = JsonConverters::toArray('string', $this->OwningCompanyCode);
        if (isset($this->UserName)) $o['UserName'] = $this->UserName;
        return empty($o) ? new class(){} : $o;
    }
}

// @DataContract(Name="ItinerarySegment", Namespace="schemas.agentivity.com/types")
class ItinerarySegment implements JsonSerializable
{
    public function __construct(
        // @DataMember
        /** @var string|null */
        public ?string $SegmentType=null,

        // @DataMember
        /** @var int */
        public int $SegmentNbr=0,

        // @DataMember
        /** @var string|null */
        public ?string $BoardPoint=null,

        // @DataMember
        /** @var string|null */
        public ?string $OffPoint=null,

        // @DataMember
        /** @var string|null */
        public ?string $OperatorCode=null,

        // @DataMember
        /** @var string|null */
        public ?string $OperatorService=null,

        // @DataMember
        /** @var string|null */
        public ?string $SegmentStatus=null,

        // @DataMember
        /** @var string|null */
        public ?string $DepartureTimeFormatted=null,

        // @DataMember
        /** @var string|null */
        public ?string $ArrivalTimeFormatted=null,

        // @DataMember
        /** @var string|null */
        public ?string $ChangeOfDayFormatted=null,

        // @DataMember
        /** @var string|null */
        public ?string $ServiceCode=null,

        // @DataMember
        /** @var string|null */
        public ?string $StartDate=null,

        // @DataMember
        /** @var string|null */
        public ?string $EndDate=null,

        // @DataMember
        /** @var string|null */
        public ?string $TicketNumber=null,

        /** @description Comma separated list of vendor locators */
        // @DataMember
        /** @var string|null */
        public ?string $VendorLocators=null,

        // @DataMember
        /** @var string|null */
        public ?string $EquipmentCode=null,

        // @DataMember
        /** @var string|null */
        public ?string $Equipment=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['SegmentType'])) $this->SegmentType = $o['SegmentType'];
        if (isset($o['SegmentNbr'])) $this->SegmentNbr = $o['SegmentNbr'];
        if (isset($o['BoardPoint'])) $this->BoardPoint = $o['BoardPoint'];
        if (isset($o['OffPoint'])) $this->OffPoint = $o['OffPoint'];
        if (isset($o['OperatorCode'])) $this->OperatorCode = $o['OperatorCode'];
        if (isset($o['OperatorService'])) $this->OperatorService = $o['OperatorService'];
        if (isset($o['SegmentStatus'])) $this->SegmentStatus = $o['SegmentStatus'];
        if (isset($o['DepartureTimeFormatted'])) $this->DepartureTimeFormatted = $o['DepartureTimeFormatted'];
        if (isset($o['ArrivalTimeFormatted'])) $this->ArrivalTimeFormatted = $o['ArrivalTimeFormatted'];
        if (isset($o['ChangeOfDayFormatted'])) $this->ChangeOfDayFormatted = $o['ChangeOfDayFormatted'];
        if (isset($o['ServiceCode'])) $this->ServiceCode = $o['ServiceCode'];
        if (isset($o['StartDate'])) $this->StartDate = $o['StartDate'];
        if (isset($o['EndDate'])) $this->EndDate = $o['EndDate'];
        if (isset($o['TicketNumber'])) $this->TicketNumber = $o['TicketNumber'];
        if (isset($o['VendorLocators'])) $this->VendorLocators = $o['VendorLocators'];
        if (isset($o['EquipmentCode'])) $this->EquipmentCode = $o['EquipmentCode'];
        if (isset($o['Equipment'])) $this->Equipment = $o['Equipment'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->SegmentType)) $o['SegmentType'] = $this->SegmentType;
        if (isset($this->SegmentNbr)) $o['SegmentNbr'] = $this->SegmentNbr;
        if (isset($this->BoardPoint)) $o['BoardPoint'] = $this->BoardPoint;
        if (isset($this->OffPoint)) $o['OffPoint'] = $this->OffPoint;
        if (isset($this->OperatorCode)) $o['OperatorCode'] = $this->OperatorCode;
        if (isset($this->OperatorService)) $o['OperatorService'] = $this->OperatorService;
        if (isset($this->SegmentStatus)) $o['SegmentStatus'] = $this->SegmentStatus;
        if (isset($this->DepartureTimeFormatted)) $o['DepartureTimeFormatted'] = $this->DepartureTimeFormatted;
        if (isset($this->ArrivalTimeFormatted)) $o['ArrivalTimeFormatted'] = $this->ArrivalTimeFormatted;
        if (isset($this->ChangeOfDayFormatted)) $o['ChangeOfDayFormatted'] = $this->ChangeOfDayFormatted;
        if (isset($this->ServiceCode)) $o['ServiceCode'] = $this->ServiceCode;
        if (isset($this->StartDate)) $o['StartDate'] = $this->StartDate;
        if (isset($this->EndDate)) $o['EndDate'] = $this->EndDate;
        if (isset($this->TicketNumber)) $o['TicketNumber'] = $this->TicketNumber;
        if (isset($this->VendorLocators)) $o['VendorLocators'] = $this->VendorLocators;
        if (isset($this->EquipmentCode)) $o['EquipmentCode'] = $this->EquipmentCode;
        if (isset($this->Equipment)) $o['Equipment'] = $this->Equipment;
        return empty($o) ? new class(){} : $o;
    }
}

/**
 * @template array of ItinerarySegment
 */
class ItinerarySegmentsCollection extends \ArrayObject implements JsonSerializable
{
    public function __construct(ItinerarySegment ...$items) {
        parent::__construct($items, \ArrayObject::STD_PROP_LIST);
    }
    
    /** @throws \Exception */
    public function append($value): void {
        if ($value instanceof ItinerarySegment)
            parent::append($value);
        else
            throw new \Exception("Can only append a ItinerarySegment to " . __CLASS__);
    }
    
    /** @throws Exception */
    public function fromMap($o): void {
        foreach ($o as $item) {
            $el = new ItinerarySegment();
            $el->fromMap($item);
            $this->append($el);
        }
    }
    
    /** @throws Exception */
    public function jsonSerialize(): array {
        return parent::getArrayCopy();
    }
}

// @DataContract(Name="CustomField", Namespace="schemas.agentivity.com/types")
class CustomFieldData implements JsonSerializable
{
    public function __construct(
        // @DataMember(Order=20)
        /** @var string|null */
        public ?string $FieldName=null,

        // @DataMember(Order=30)
        /** @var string|null */
        public ?string $FieldValue=null
    ) {
    }

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

/**
 * @template array of CustomFieldData
 */
class CustomFieldsCollection extends \ArrayObject implements JsonSerializable
{
    public function __construct(CustomFieldData ...$items) {
        parent::__construct($items, \ArrayObject::STD_PROP_LIST);
    }
    
    /** @throws \Exception */
    public function append($value): void {
        if ($value instanceof CustomFieldData)
            parent::append($value);
        else
            throw new \Exception("Can only append a CustomFieldData to " . __CLASS__);
    }
    
    /** @throws Exception */
    public function fromMap($o): void {
        foreach ($o as $item) {
            $el = new CustomFieldData();
            $el->fromMap($item);
            $this->append($el);
        }
    }
    
    /** @throws Exception */
    public function jsonSerialize(): array {
        return parent::getArrayCopy();
    }
}

// @DataContract(Name="VendorLocator", Namespace="schemas.agentivity.com/types")
class BookingExtVendorLocator implements IBookingIdentifier, JsonSerializable
{
    public function __construct(
        // @DataMember(Order=10)
        /** @var string|null */
        public ?string $CarrierCode=null,

        // @DataMember(Order=20)
        /** @var string|null */
        public ?string $VendorLocator=null
    ) {
    }

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

// @DataContract(Name="Passenger", Namespace="schemas.agentivity.com/types")
class BookingPassengerModel implements JsonSerializable
{
    public function __construct(
        // @DataMember(Order=10)
        /** @var string|null */
        public ?string $FirstName=null,

        // @DataMember(Order=20)
        /** @var string|null */
        public ?string $LastName=null,

        // @DataMember(Order=30)
        /** @var int */
        public int $PassengerDataId=0
    ) {
    }

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

// @DataContract(Name="Segment", Namespace="schemas.agentivity.com/types")
class PassengerLocation implements IBookingItinerary, IBookingCustomFields, IBookingIdentifier, ITicketNumbers, IVendorLocators, IPassengerInfo, JsonSerializable
{
    public function __construct(
        // @DataMember(Order=1)
        /** @var string|null */
        public ?string $RecordLocator=null,

        // @DataMember(Order=2)
        /** @var DateTime|null */
        public ?DateTime $TravelDate=null,

        // @DataMember(Order=3)
        /** @var DateTime|null */
        public ?DateTime $DepartureDate=null,

        // @DataMember(Order=4)
        /** @var string|null */
        public ?string $BoardPoint=null,

        // @DataMember(Order=5)
        /** @var string|null */
        public ?string $OffPoint=null,

        // @DataMember(Order=6)
        /** @var string|null */
        public ?string $PnrTicketed=null,

        // @DataMember(Order=7)
        /** @var string|null */
        public ?string $Account=null,

        // @DataMember(Order=8)
        /** @var string|null */
        public ?string $Consultant=null,

        // @DataMember(Order=9)
        /** @var string|null */
        public ?string $PaxList=null,

        // @DataMember(Order=10)
        /** @var string|null */
        public ?string $PhoneNbr=null,

        // @DataMember(Order=11)
        /** @var string|null */
        public ?string $EmailAddress=null,

        // @DataMember(Order=12)
        /** @var string|null */
        public ?string $DestinationCities=null,

        // @DataMember(Order=13)
        /** @var string|null */
        public ?string $Connections=null,

        // @DataMember(Order=14)
        /** @var string|null */
        public ?string $CarrierCodes=null,

        // @DataMember(Order=16)
        /** @var string|null */
        public ?string $HotelsNames=null,

        // @DataMember(Order=30)
        /** @var string|null */
        public ?string $FlightNumbers=null,

        // @DataMember(Order=40)
        /** @var string|null */
        public ?string $OwningAgencyLocationID=null,

        // @DataMember(Order=50)
        /** @var string|null */
        public ?string $IataCodes=null,

        // @DataMember(Order=15)
        /** @var int */
        public int $AgentivityRef=0,

        // @DataMember(Order=120)
        /** @var ItinerarySegmentsCollection|null */
        public ?ItinerarySegmentsCollection $Itinerary=null,

        // @DataMember(Order=130)
        /** @var string|null */
        public ?string $ItineraryFormatted=null,

        // @DataMember(Order=140)
        /** @var CustomFieldsCollection|null */
        public ?CustomFieldsCollection $CustomFields=null,

        // @DataMember(Order=150)
        /** @var DateTime|null */
        public ?DateTime $DepartureDateTime=null,

        // @DataMember(Order=160)
        /** @var DateTime|null */
        public ?DateTime $CurrentArrivalDateTime=null,

        // @DataMember(Order=170)
        /** @var string|null */
        public ?string $SegmentType=null,

        // @DataMember(Order=180)
        /** @var string|null */
        public ?string $AirSegmentNbr=null,

        // @DataMember(Order=190)
        /** @var DateTime|null */
        public ?DateTime $PNRCreationDate=null,

        // @DataMember(Order=200)
        /** @var string[]|null */
        public ?array $TicketNumbers=null,

        // @DataMember(Order=210)
        /** @var BookingExtVendorLocator[]|null */
        public ?array $VendorLocators=null,

        // @DataMember(Order=220)
        /** @var BookingPassengerModel[]|null */
        public ?array $PassengerInfo=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['RecordLocator'])) $this->RecordLocator = $o['RecordLocator'];
        if (isset($o['TravelDate'])) $this->TravelDate = JsonConverters::from('DateTime', $o['TravelDate']);
        if (isset($o['DepartureDate'])) $this->DepartureDate = JsonConverters::from('DateTime', $o['DepartureDate']);
        if (isset($o['BoardPoint'])) $this->BoardPoint = $o['BoardPoint'];
        if (isset($o['OffPoint'])) $this->OffPoint = $o['OffPoint'];
        if (isset($o['PnrTicketed'])) $this->PnrTicketed = $o['PnrTicketed'];
        if (isset($o['Account'])) $this->Account = $o['Account'];
        if (isset($o['Consultant'])) $this->Consultant = $o['Consultant'];
        if (isset($o['PaxList'])) $this->PaxList = $o['PaxList'];
        if (isset($o['PhoneNbr'])) $this->PhoneNbr = $o['PhoneNbr'];
        if (isset($o['EmailAddress'])) $this->EmailAddress = $o['EmailAddress'];
        if (isset($o['DestinationCities'])) $this->DestinationCities = $o['DestinationCities'];
        if (isset($o['Connections'])) $this->Connections = $o['Connections'];
        if (isset($o['CarrierCodes'])) $this->CarrierCodes = $o['CarrierCodes'];
        if (isset($o['HotelsNames'])) $this->HotelsNames = $o['HotelsNames'];
        if (isset($o['FlightNumbers'])) $this->FlightNumbers = $o['FlightNumbers'];
        if (isset($o['OwningAgencyLocationID'])) $this->OwningAgencyLocationID = $o['OwningAgencyLocationID'];
        if (isset($o['IataCodes'])) $this->IataCodes = $o['IataCodes'];
        if (isset($o['AgentivityRef'])) $this->AgentivityRef = $o['AgentivityRef'];
        if (isset($o['Itinerary'])) $this->Itinerary = JsonConverters::from('ItinerarySegmentsCollection', $o['Itinerary']);
        if (isset($o['ItineraryFormatted'])) $this->ItineraryFormatted = $o['ItineraryFormatted'];
        if (isset($o['CustomFields'])) $this->CustomFields = JsonConverters::from('CustomFieldsCollection', $o['CustomFields']);
        if (isset($o['DepartureDateTime'])) $this->DepartureDateTime = JsonConverters::from('DateTime', $o['DepartureDateTime']);
        if (isset($o['CurrentArrivalDateTime'])) $this->CurrentArrivalDateTime = JsonConverters::from('DateTime', $o['CurrentArrivalDateTime']);
        if (isset($o['SegmentType'])) $this->SegmentType = $o['SegmentType'];
        if (isset($o['AirSegmentNbr'])) $this->AirSegmentNbr = $o['AirSegmentNbr'];
        if (isset($o['PNRCreationDate'])) $this->PNRCreationDate = JsonConverters::from('DateTime', $o['PNRCreationDate']);
        if (isset($o['TicketNumbers'])) $this->TicketNumbers = JsonConverters::fromArray('string', $o['TicketNumbers']);
        if (isset($o['VendorLocators'])) $this->VendorLocators = JsonConverters::fromArray('BookingExtVendorLocator', $o['VendorLocators']);
        if (isset($o['PassengerInfo'])) $this->PassengerInfo = JsonConverters::fromArray('BookingPassengerModel', $o['PassengerInfo']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->RecordLocator)) $o['RecordLocator'] = $this->RecordLocator;
        if (isset($this->TravelDate)) $o['TravelDate'] = JsonConverters::to('DateTime', $this->TravelDate);
        if (isset($this->DepartureDate)) $o['DepartureDate'] = JsonConverters::to('DateTime', $this->DepartureDate);
        if (isset($this->BoardPoint)) $o['BoardPoint'] = $this->BoardPoint;
        if (isset($this->OffPoint)) $o['OffPoint'] = $this->OffPoint;
        if (isset($this->PnrTicketed)) $o['PnrTicketed'] = $this->PnrTicketed;
        if (isset($this->Account)) $o['Account'] = $this->Account;
        if (isset($this->Consultant)) $o['Consultant'] = $this->Consultant;
        if (isset($this->PaxList)) $o['PaxList'] = $this->PaxList;
        if (isset($this->PhoneNbr)) $o['PhoneNbr'] = $this->PhoneNbr;
        if (isset($this->EmailAddress)) $o['EmailAddress'] = $this->EmailAddress;
        if (isset($this->DestinationCities)) $o['DestinationCities'] = $this->DestinationCities;
        if (isset($this->Connections)) $o['Connections'] = $this->Connections;
        if (isset($this->CarrierCodes)) $o['CarrierCodes'] = $this->CarrierCodes;
        if (isset($this->HotelsNames)) $o['HotelsNames'] = $this->HotelsNames;
        if (isset($this->FlightNumbers)) $o['FlightNumbers'] = $this->FlightNumbers;
        if (isset($this->OwningAgencyLocationID)) $o['OwningAgencyLocationID'] = $this->OwningAgencyLocationID;
        if (isset($this->IataCodes)) $o['IataCodes'] = $this->IataCodes;
        if (isset($this->AgentivityRef)) $o['AgentivityRef'] = $this->AgentivityRef;
        if (isset($this->Itinerary)) $o['Itinerary'] = JsonConverters::to('ItinerarySegmentsCollection', $this->Itinerary);
        if (isset($this->ItineraryFormatted)) $o['ItineraryFormatted'] = $this->ItineraryFormatted;
        if (isset($this->CustomFields)) $o['CustomFields'] = JsonConverters::to('CustomFieldsCollection', $this->CustomFields);
        if (isset($this->DepartureDateTime)) $o['DepartureDateTime'] = JsonConverters::to('DateTime', $this->DepartureDateTime);
        if (isset($this->CurrentArrivalDateTime)) $o['CurrentArrivalDateTime'] = JsonConverters::to('DateTime', $this->CurrentArrivalDateTime);
        if (isset($this->SegmentType)) $o['SegmentType'] = $this->SegmentType;
        if (isset($this->AirSegmentNbr)) $o['AirSegmentNbr'] = $this->AirSegmentNbr;
        if (isset($this->PNRCreationDate)) $o['PNRCreationDate'] = JsonConverters::to('DateTime', $this->PNRCreationDate);
        if (isset($this->TicketNumbers)) $o['TicketNumbers'] = JsonConverters::toArray('string', $this->TicketNumbers);
        if (isset($this->VendorLocators)) $o['VendorLocators'] = JsonConverters::toArray('BookingExtVendorLocator', $this->VendorLocators);
        if (isset($this->PassengerInfo)) $o['PassengerInfo'] = JsonConverters::toArray('BookingPassengerModel', $this->PassengerInfo);
        return empty($o) ? new class(){} : $o;
    }
}

// @DataContract(Name="Segment", Namespace="schemas.agentivity.com/types")
class PassengerLocationRouting extends PassengerLocation implements JsonSerializable
{
    /**
     * @param string|null $RecordLocator
     * @param DateTime|null $TravelDate
     * @param DateTime|null $DepartureDate
     * @param string|null $BoardPoint
     * @param string|null $OffPoint
     * @param string|null $PnrTicketed
     * @param string|null $Account
     * @param string|null $Consultant
     * @param string|null $PaxList
     * @param string|null $PhoneNbr
     * @param string|null $EmailAddress
     * @param string|null $DestinationCities
     * @param string|null $Connections
     * @param string|null $CarrierCodes
     * @param string|null $HotelsNames
     * @param string|null $FlightNumbers
     * @param string|null $OwningAgencyLocationID
     * @param string|null $IataCodes
     * @param int $AgentivityRef
     * @param ItinerarySegmentsCollection|null $Itinerary
     * @param string|null $ItineraryFormatted
     * @param CustomFieldsCollection|null $CustomFields
     * @param DateTime|null $DepartureDateTime
     * @param DateTime|null $CurrentArrivalDateTime
     * @param string|null $SegmentType
     * @param string|null $AirSegmentNbr
     * @param DateTime|null $PNRCreationDate
     * @param string[]|null $TicketNumbers
     * @param BookingExtVendorLocator[]|null $VendorLocators
     * @param BookingPassengerModel[]|null $PassengerInfo
     */
    public function __construct(
        ?string $RecordLocator=null,
        ?DateTime $TravelDate=null,
        ?DateTime $DepartureDate=null,
        ?string $BoardPoint=null,
        ?string $OffPoint=null,
        ?string $PnrTicketed=null,
        ?string $Account=null,
        ?string $Consultant=null,
        ?string $PaxList=null,
        ?string $PhoneNbr=null,
        ?string $EmailAddress=null,
        ?string $DestinationCities=null,
        ?string $Connections=null,
        ?string $CarrierCodes=null,
        ?string $HotelsNames=null,
        ?string $FlightNumbers=null,
        ?string $OwningAgencyLocationID=null,
        ?string $IataCodes=null,
        int $AgentivityRef=0,
        ?ItinerarySegmentsCollection $Itinerary=null,
        ?string $ItineraryFormatted=null,
        ?CustomFieldsCollection $CustomFields=null,
        ?DateTime $DepartureDateTime=null,
        ?DateTime $CurrentArrivalDateTime=null,
        ?string $SegmentType=null,
        ?string $AirSegmentNbr=null,
        ?DateTime $PNRCreationDate=null,
        ?array $TicketNumbers=null,
        ?array $VendorLocators=null,
        ?array $PassengerInfo=null,
        // @DataMember(Order=1000)
        /** @var string|null */
        public ?string $DestinationCountries=null
    ) {
        parent::__construct($RecordLocator,$TravelDate,$DepartureDate,$BoardPoint,$OffPoint,$PnrTicketed,$Account,$Consultant,$PaxList,$PhoneNbr,$EmailAddress,$DestinationCities,$Connections,$CarrierCodes,$HotelsNames,$FlightNumbers,$OwningAgencyLocationID,$IataCodes,$AgentivityRef,$Itinerary,$ItineraryFormatted,$CustomFields,$DepartureDateTime,$CurrentArrivalDateTime,$SegmentType,$AirSegmentNbr,$PNRCreationDate,$TicketNumbers,$VendorLocators,$PassengerInfo);
    }

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

// @DataContract(Name="CacheMetadata", Namespace="schemas.agentivity.com/types")
class CacheMetadata implements JsonSerializable
{
    public function __construct(
        // @DataMember(Order=1)
        /** @var DateTime */
        public DateTime $CachedAt=new DateTime(),

        // @DataMember(Order=2)
        /** @var DateTime */
        public DateTime $CacheExpiresAt=new DateTime(),

        // @DataMember(Order=0)
        /** @var bool|null */
        public ?bool $IsFromCache=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['CachedAt'])) $this->CachedAt = JsonConverters::from('DateTime', $o['CachedAt']);
        if (isset($o['CacheExpiresAt'])) $this->CacheExpiresAt = JsonConverters::from('DateTime', $o['CacheExpiresAt']);
        if (isset($o['IsFromCache'])) $this->IsFromCache = $o['IsFromCache'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->CachedAt)) $o['CachedAt'] = JsonConverters::to('DateTime', $this->CachedAt);
        if (isset($this->CacheExpiresAt)) $o['CacheExpiresAt'] = JsonConverters::to('DateTime', $this->CacheExpiresAt);
        if (isset($this->IsFromCache)) $o['IsFromCache'] = $this->IsFromCache;
        return empty($o) ? new class(){} : $o;
    }
}

// @DataContract(Name="ResponseMetadata", Namespace="schemas.agentivity.com/types")
class ResponseMetadata implements JsonSerializable
{
    public function __construct(
        // @DataMember(Order=0)
        /** @var bool|null */
        public ?bool $Success=null,

        // @DataMember(Order=1)
        /** @var bool|null */
        public ?bool $HasCache=null,

        // @DataMember(Order=2)
        /** @var bool|null */
        public ?bool $HasPaging=null,

        // @DataMember(Order=3, EmitDefaultValue=false)
        /** @var CacheMetadata|null */
        public ?CacheMetadata $CacheMetadata=null,

        // @DataMember(Order=4, EmitDefaultValue=false)
        /** @var PagingMetadata|null */
        public ?PagingMetadata $PagingMetadata=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['Success'])) $this->Success = $o['Success'];
        if (isset($o['HasCache'])) $this->HasCache = $o['HasCache'];
        if (isset($o['HasPaging'])) $this->HasPaging = $o['HasPaging'];
        if (isset($o['CacheMetadata'])) $this->CacheMetadata = JsonConverters::from('CacheMetadata', $o['CacheMetadata']);
        if (isset($o['PagingMetadata'])) $this->PagingMetadata = JsonConverters::from('PagingMetadata', $o['PagingMetadata']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->Success)) $o['Success'] = $this->Success;
        if (isset($this->HasCache)) $o['HasCache'] = $this->HasCache;
        if (isset($this->HasPaging)) $o['HasPaging'] = $this->HasPaging;
        if (isset($this->CacheMetadata)) $o['CacheMetadata'] = JsonConverters::to('CacheMetadata', $this->CacheMetadata);
        if (isset($this->PagingMetadata)) $o['PagingMetadata'] = JsonConverters::to('PagingMetadata', $this->PagingMetadata);
        return empty($o) ? new class(){} : $o;
    }
}

// @DataContract(Name="ApiRequestPerHour", Namespace="schemas.agentivity.com/types")
class ApiRequestPerHour implements JsonSerializable
{
    public function __construct(
        // @DataMember(Order=10)
        /** @var DateTime */
        public DateTime $RequestDate=new DateTime(),

        // @DataMember(Order=100)
        /** @var int */
        public int $Hour0=0,

        // @DataMember(Order=110)
        /** @var int */
        public int $Hour1=0,

        // @DataMember(Order=120)
        /** @var int */
        public int $Hour2=0,

        // @DataMember(Order=130)
        /** @var int */
        public int $Hour3=0,

        // @DataMember(Order=140)
        /** @var int */
        public int $Hour4=0,

        // @DataMember(Order=150)
        /** @var int */
        public int $Hour5=0,

        // @DataMember(Order=160)
        /** @var int */
        public int $Hour6=0,

        // @DataMember(Order=170)
        /** @var int */
        public int $Hour7=0,

        // @DataMember(Order=180)
        /** @var int */
        public int $Hour8=0,

        // @DataMember(Order=190)
        /** @var int */
        public int $Hour9=0,

        // @DataMember(Order=200)
        /** @var int */
        public int $Hour10=0,

        // @DataMember(Order=210)
        /** @var int */
        public int $Hour11=0,

        // @DataMember(Order=220)
        /** @var int */
        public int $Hour12=0,

        // @DataMember(Order=230)
        /** @var int */
        public int $Hour13=0,

        // @DataMember(Order=240)
        /** @var int */
        public int $Hour14=0,

        // @DataMember(Order=250)
        /** @var int */
        public int $Hour15=0,

        // @DataMember(Order=260)
        /** @var int */
        public int $Hour16=0,

        // @DataMember(Order=270)
        /** @var int */
        public int $Hour17=0,

        // @DataMember(Order=280)
        /** @var int */
        public int $Hour18=0,

        // @DataMember(Order=290)
        /** @var int */
        public int $Hour19=0,

        // @DataMember(Order=300)
        /** @var int */
        public int $Hour20=0,

        // @DataMember(Order=310)
        /** @var int */
        public int $Hour21=0,

        // @DataMember(Order=320)
        /** @var int */
        public int $Hour22=0,

        // @DataMember(Order=330)
        /** @var int */
        public int $Hour23=0
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['RequestDate'])) $this->RequestDate = JsonConverters::from('DateTime', $o['RequestDate']);
        if (isset($o['Hour0'])) $this->Hour0 = $o['Hour0'];
        if (isset($o['Hour1'])) $this->Hour1 = $o['Hour1'];
        if (isset($o['Hour2'])) $this->Hour2 = $o['Hour2'];
        if (isset($o['Hour3'])) $this->Hour3 = $o['Hour3'];
        if (isset($o['Hour4'])) $this->Hour4 = $o['Hour4'];
        if (isset($o['Hour5'])) $this->Hour5 = $o['Hour5'];
        if (isset($o['Hour6'])) $this->Hour6 = $o['Hour6'];
        if (isset($o['Hour7'])) $this->Hour7 = $o['Hour7'];
        if (isset($o['Hour8'])) $this->Hour8 = $o['Hour8'];
        if (isset($o['Hour9'])) $this->Hour9 = $o['Hour9'];
        if (isset($o['Hour10'])) $this->Hour10 = $o['Hour10'];
        if (isset($o['Hour11'])) $this->Hour11 = $o['Hour11'];
        if (isset($o['Hour12'])) $this->Hour12 = $o['Hour12'];
        if (isset($o['Hour13'])) $this->Hour13 = $o['Hour13'];
        if (isset($o['Hour14'])) $this->Hour14 = $o['Hour14'];
        if (isset($o['Hour15'])) $this->Hour15 = $o['Hour15'];
        if (isset($o['Hour16'])) $this->Hour16 = $o['Hour16'];
        if (isset($o['Hour17'])) $this->Hour17 = $o['Hour17'];
        if (isset($o['Hour18'])) $this->Hour18 = $o['Hour18'];
        if (isset($o['Hour19'])) $this->Hour19 = $o['Hour19'];
        if (isset($o['Hour20'])) $this->Hour20 = $o['Hour20'];
        if (isset($o['Hour21'])) $this->Hour21 = $o['Hour21'];
        if (isset($o['Hour22'])) $this->Hour22 = $o['Hour22'];
        if (isset($o['Hour23'])) $this->Hour23 = $o['Hour23'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->RequestDate)) $o['RequestDate'] = JsonConverters::to('DateTime', $this->RequestDate);
        if (isset($this->Hour0)) $o['Hour0'] = $this->Hour0;
        if (isset($this->Hour1)) $o['Hour1'] = $this->Hour1;
        if (isset($this->Hour2)) $o['Hour2'] = $this->Hour2;
        if (isset($this->Hour3)) $o['Hour3'] = $this->Hour3;
        if (isset($this->Hour4)) $o['Hour4'] = $this->Hour4;
        if (isset($this->Hour5)) $o['Hour5'] = $this->Hour5;
        if (isset($this->Hour6)) $o['Hour6'] = $this->Hour6;
        if (isset($this->Hour7)) $o['Hour7'] = $this->Hour7;
        if (isset($this->Hour8)) $o['Hour8'] = $this->Hour8;
        if (isset($this->Hour9)) $o['Hour9'] = $this->Hour9;
        if (isset($this->Hour10)) $o['Hour10'] = $this->Hour10;
        if (isset($this->Hour11)) $o['Hour11'] = $this->Hour11;
        if (isset($this->Hour12)) $o['Hour12'] = $this->Hour12;
        if (isset($this->Hour13)) $o['Hour13'] = $this->Hour13;
        if (isset($this->Hour14)) $o['Hour14'] = $this->Hour14;
        if (isset($this->Hour15)) $o['Hour15'] = $this->Hour15;
        if (isset($this->Hour16)) $o['Hour16'] = $this->Hour16;
        if (isset($this->Hour17)) $o['Hour17'] = $this->Hour17;
        if (isset($this->Hour18)) $o['Hour18'] = $this->Hour18;
        if (isset($this->Hour19)) $o['Hour19'] = $this->Hour19;
        if (isset($this->Hour20)) $o['Hour20'] = $this->Hour20;
        if (isset($this->Hour21)) $o['Hour21'] = $this->Hour21;
        if (isset($this->Hour22)) $o['Hour22'] = $this->Hour22;
        if (isset($this->Hour23)) $o['Hour23'] = $this->Hour23;
        return empty($o) ? new class(){} : $o;
    }
}

// @DataContract(Name="ResponseMetadata", Namespace="schemas.agentivity.com/types")
class AgentivityError implements JsonSerializable
{
    public function __construct(
        // @DataMember
        /** @var string|null */
        public ?string $ErrorCode=null,

        // @DataMember
        /** @var string|null */
        public ?string $Message=null,

        // @DataMember
        /** @var string|null */
        public ?string $StatusCode=null,

        // @DataMember
        /** @var string|null */
        public ?string $VerboseMessage=null
    ) {
    }

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

// @DataContract(Name="AgentivityResponse", Namespace="schemas.agentivity.com/types")
/**
 * @template TItem
 */
class CollectionResponse implements JsonSerializable
{
    public array $genericArgs = [];
    public static function create(array $genericArgs=[]): CollectionResponse {
        $to = new CollectionResponse();
        $to->genericArgs = $genericArgs;
        return $to;
    }

    public function __construct(
        // @DataMember(Order=1)
        /** @var ResponseMetadata|null */
        public mixed $ResponseMetadata=null,

        // @DataMember(Order=2, EmitDefaultValue=false)
        /** @var array<ApiRequestPerHour>|null */
        public mixed $ResponseReport=null,

        // @DataMember(Order=3, EmitDefaultValue=false)
        /** @var AgentivityError|null */
        public mixed $ResponseError=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['ResponseMetadata'])) $this->ResponseMetadata = JsonConverters::from('ResponseMetadata', $o['ResponseMetadata']);
        if (isset($o['ResponseReport'])) $this->ResponseReport = JsonConverters::fromArray('ApiRequestPerHour', $o['ResponseReport']);
        if (isset($o['ResponseError'])) $this->ResponseError = JsonConverters::from('AgentivityError', $o['ResponseError']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->ResponseMetadata)) $o['ResponseMetadata'] = JsonConverters::to('ResponseMetadata', $this->ResponseMetadata);
        if (isset($this->ResponseReport)) $o['ResponseReport'] = JsonConverters::toArray('ApiRequestPerHour', $this->ResponseReport);
        if (isset($this->ResponseError)) $o['ResponseError'] = JsonConverters::to('AgentivityError', $this->ResponseError);
        return empty($o) ? new class(){} : $o;
    }
}

// @DataContract(Name="AgentivityResponse", Namespace="schemas.agentivity.com/types")
/**
 * @template CollectionResponse of PassengerLocationRouting
 */
class PassengerLocationsByRoutingResponse extends CollectionResponse implements JsonSerializable
{
    /**
     * @param ResponseMetadata|null $ResponseMetadata
     * @param array<ApiRequestPerHour>|null $ResponseReport
     * @param AgentivityError|null $ResponseError
     */
    public function __construct(
        ?ResponseMetadata $ResponseMetadata=null,
        ?array $ResponseReport=null,
        ?AgentivityError $ResponseError=null
    ) {
        parent::__construct($ResponseMetadata,$ResponseReport,$ResponseError);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        return empty($o) ? new class(){} : $o;
    }
}

// @DataContract(Namespace="schemas.agentivity.com/types")
class GetPassengerLocationsByRouting extends CompanyLevelRequestBase implements JsonSerializable
{
    /**
     * @param string|null $Offset
     * @param string|null $Limit
     * @param int $TotalRecords
     * @param int $ResponseRecords
     * @param string[]|null $OwningCompanyCode
     * @param string|null $UserName
     */
    public function __construct(
        ?string $Offset=null,
        ?string $Limit=null,
        int $TotalRecords=0,
        int $ResponseRecords=0,
        ?array $OwningCompanyCode=null,
        ?string $UserName=null,
        /** @description Comma Delimited List of Accounts */
        // @DataMember
        /** @var string[]|null */
        public ?array $Account=null,

        /** @description Date in format YYYYMMDD */
        // @DataMember
        /** @var string */
        public string $DateStart='',

        /** @description Date in format YYYYMMDD */
        // @DataMember
        /** @var string */
        public string $DateEnd='',

        /** @description From Airport Code */
        // @DataMember
        /** @var string|null */
        public ?string $FromAirportCode=null,

        /** @description From City Code */
        // @DataMember
        /** @var string|null */
        public ?string $FromCityCode=null,

        /** @description From Country Code */
        // @DataMember
        /** @var string|null */
        public ?string $FromCountryCode=null,

        /** @description From Subregion Code */
        // @DataMember
        /** @var string|null */
        public ?string $FromSubregionCode=null,

        /** @description From Region Code */
        // @DataMember
        /** @var string|null */
        public ?string $FromRegionCode=null,

        /** @description To Airport Code */
        // @DataMember
        /** @var string|null */
        public ?string $ToAirportCode=null,

        /** @description To City Code */
        // @DataMember
        /** @var string|null */
        public ?string $ToCityCode=null,

        /** @description To Country Code */
        // @DataMember
        /** @var string|null */
        public ?string $ToCountryCode=null,

        /** @description To Subregion Code */
        // @DataMember
        /** @var string|null */
        public ?string $ToSubregionCode=null,

        /** @description To Region Code */
        // @DataMember
        /** @var string|null */
        public ?string $ToRegionCode=null,

        /** @description Comma delimited list of owning consultants ids */
        // @DataMember
        /** @var string[]|null */
        public ?array $OwningConsultantID=null,

        /** @description Comma Delimited List of Custom Fields */
        // @DataMember
        /** @var string[]|null */
        public ?array $CustomField=null,

        /** @description Request Consultant ID (sign on) */
        // @DataMember
        /** @var string|null */
        public ?string $RequestConsultantID=null
    ) {
        parent::__construct($Offset,$Limit,$TotalRecords,$ResponseRecords,$OwningCompanyCode,$UserName);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['Account'])) $this->Account = JsonConverters::fromArray('string', $o['Account']);
        if (isset($o['DateStart'])) $this->DateStart = $o['DateStart'];
        if (isset($o['DateEnd'])) $this->DateEnd = $o['DateEnd'];
        if (isset($o['FromAirportCode'])) $this->FromAirportCode = $o['FromAirportCode'];
        if (isset($o['FromCityCode'])) $this->FromCityCode = $o['FromCityCode'];
        if (isset($o['FromCountryCode'])) $this->FromCountryCode = $o['FromCountryCode'];
        if (isset($o['FromSubregionCode'])) $this->FromSubregionCode = $o['FromSubregionCode'];
        if (isset($o['FromRegionCode'])) $this->FromRegionCode = $o['FromRegionCode'];
        if (isset($o['ToAirportCode'])) $this->ToAirportCode = $o['ToAirportCode'];
        if (isset($o['ToCityCode'])) $this->ToCityCode = $o['ToCityCode'];
        if (isset($o['ToCountryCode'])) $this->ToCountryCode = $o['ToCountryCode'];
        if (isset($o['ToSubregionCode'])) $this->ToSubregionCode = $o['ToSubregionCode'];
        if (isset($o['ToRegionCode'])) $this->ToRegionCode = $o['ToRegionCode'];
        if (isset($o['OwningConsultantID'])) $this->OwningConsultantID = JsonConverters::fromArray('string', $o['OwningConsultantID']);
        if (isset($o['CustomField'])) $this->CustomField = JsonConverters::fromArray('string', $o['CustomField']);
        if (isset($o['RequestConsultantID'])) $this->RequestConsultantID = $o['RequestConsultantID'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->Account)) $o['Account'] = JsonConverters::toArray('string', $this->Account);
        if (isset($this->DateStart)) $o['DateStart'] = $this->DateStart;
        if (isset($this->DateEnd)) $o['DateEnd'] = $this->DateEnd;
        if (isset($this->FromAirportCode)) $o['FromAirportCode'] = $this->FromAirportCode;
        if (isset($this->FromCityCode)) $o['FromCityCode'] = $this->FromCityCode;
        if (isset($this->FromCountryCode)) $o['FromCountryCode'] = $this->FromCountryCode;
        if (isset($this->FromSubregionCode)) $o['FromSubregionCode'] = $this->FromSubregionCode;
        if (isset($this->FromRegionCode)) $o['FromRegionCode'] = $this->FromRegionCode;
        if (isset($this->ToAirportCode)) $o['ToAirportCode'] = $this->ToAirportCode;
        if (isset($this->ToCityCode)) $o['ToCityCode'] = $this->ToCityCode;
        if (isset($this->ToCountryCode)) $o['ToCountryCode'] = $this->ToCountryCode;
        if (isset($this->ToSubregionCode)) $o['ToSubregionCode'] = $this->ToSubregionCode;
        if (isset($this->ToRegionCode)) $o['ToRegionCode'] = $this->ToRegionCode;
        if (isset($this->OwningConsultantID)) $o['OwningConsultantID'] = JsonConverters::toArray('string', $this->OwningConsultantID);
        if (isset($this->CustomField)) $o['CustomField'] = JsonConverters::toArray('string', $this->CustomField);
        if (isset($this->RequestConsultantID)) $o['RequestConsultantID'] = $this->RequestConsultantID;
        return empty($o) ? new class(){} : $o;
    }
}

PHP GetPassengerLocationsByRouting DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /PassengerLocationsByRouting HTTP/1.1 
Host: api.agentivity.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseMetadata":{"Success":false,"HasCache":false,"HasPaging":false,"CacheMetadata":{"IsFromCache":false,"CachedAt":"\/Date(-62135596800000-0000)\/","CacheExpiresAt":"\/Date(-62135596800000-0000)\/"},"PagingMetadata":{"Offset":"String","Limit":"String","TotalRecords":0,"ResponseRecords":0}},"ResponseReport":[{"RecordLocator":"String","TravelDate":"\/Date(-62135596800000-0000)\/","DepartureDate":"\/Date(-62135596800000-0000)\/","BoardPoint":"String","OffPoint":"String","PnrTicketed":"String","Account":"String","Consultant":"String","PaxList":"String","PhoneNbr":"String","EmailAddress":"String","DestinationCities":"String","Connections":"String","CarrierCodes":"String","AgentivityRef":0,"HotelsNames":"String","FlightNumbers":"String","OwningAgencyLocationID":"String","IataCodes":"String","Itinerary":[{"SegmentType":"String","SegmentNbr":0,"BoardPoint":"String","OffPoint":"String","OperatorCode":"String","OperatorService":"String","SegmentStatus":"String","DepartureTimeFormatted":"String","ArrivalTimeFormatted":"String","ChangeOfDayFormatted":"String","ServiceCode":"String","StartDate":"String","EndDate":"String","TicketNumber":"String","VendorLocators":"String","EquipmentCode":"String","Equipment":"String"}],"ItineraryFormatted":"String","CustomFields":[{"FieldName":"String","FieldValue":"String"}],"DepartureDateTime":"\/Date(-62135596800000-0000)\/","CurrentArrivalDateTime":"\/Date(-62135596800000-0000)\/","SegmentType":"String","AirSegmentNbr":"String","PNRCreationDate":"\/Date(-62135596800000-0000)\/","TicketNumbers":["String"],"VendorLocators":[{"CarrierCode":"String","VendorLocator":"String"}],"PassengerInfo":[{"FirstName":"String","LastName":"String","PassengerDataId":0,"Tickets":[{"Number":"String","Type":"String"}]}],"DestinationCountries":"String"}],"ResponseError":{"ErrorCode":"String","Message":"String","StatusCode":"String","VerboseMessage":"String"}}