GET | /PassengerLocationsByRouting |
---|
import 'package:servicestack/servicestack.dart';
// @DataContract(Name="Metadata", Namespace="schemas.agentivity.com/types")
class PagingMetadata implements IConvertible
{
/**
* Starting Record
*/
// @DataMember
// @ApiMember(DataType="string", Description="Starting Record", Name="Offset", ParameterType="query")
String? Offset;
/**
* Number of records to return (PageSize)
*/
// @DataMember
// @ApiMember(DataType="string", Description="Number of records to return (PageSize)", Name="Limit", ParameterType="query")
String? Limit;
/**
* 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")
int? TotalRecords;
/**
* 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")
int? ResponseRecords;
PagingMetadata({this.Offset,this.Limit,this.TotalRecords,this.ResponseRecords});
PagingMetadata.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Offset = json['Offset'];
Limit = json['Limit'];
TotalRecords = json['TotalRecords'];
ResponseRecords = json['ResponseRecords'];
return this;
}
Map<String, dynamic> toJson() => {
'Offset': Offset,
'Limit': Limit,
'TotalRecords': TotalRecords,
'ResponseRecords': ResponseRecords
};
getTypeName() => "PagingMetadata";
TypeContext? context = _ctx;
}
// @DataContract(Namespace="schemas.agentivity.com/types")
abstract class CompanyLevelRequestBase extends PagingMetadata implements IMemberUsername, IMemberOwningCompanyCode
{
/**
* Comma Delimited List of Owning Company Codes
*/
// @DataMember
List<String>? OwningCompanyCode;
/**
* UserName in form of an email address
*/
// @DataMember
String? UserName;
CompanyLevelRequestBase({this.OwningCompanyCode,this.UserName});
CompanyLevelRequestBase.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
OwningCompanyCode = JsonConverters.fromJson(json['OwningCompanyCode'],'List<String>',context!);
UserName = json['UserName'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'OwningCompanyCode': JsonConverters.toJson(OwningCompanyCode,'List<String>',context!),
'UserName': UserName
});
getTypeName() => "CompanyLevelRequestBase";
TypeContext? context = _ctx;
}
// @DataContract(Name="ItinerarySegment", Namespace="schemas.agentivity.com/types")
class ItinerarySegment implements IConvertible
{
// @DataMember
String? SegmentType;
// @DataMember
int? SegmentNbr;
// @DataMember
String? BoardPoint;
// @DataMember
String? OffPoint;
// @DataMember
String? OperatorCode;
// @DataMember
String? OperatorService;
// @DataMember
String? SegmentStatus;
// @DataMember
String? DepartureTimeFormatted;
// @DataMember
String? ArrivalTimeFormatted;
// @DataMember
String? ChangeOfDayFormatted;
// @DataMember
String? ServiceCode;
// @DataMember
String? StartDate;
// @DataMember
String? EndDate;
// @DataMember
String? TicketNumber;
/**
* Comma separated list of vendor locators
*/
// @DataMember
String? VendorLocators;
// @DataMember
String? EquipmentCode;
// @DataMember
String? Equipment;
ItinerarySegment({this.SegmentType,this.SegmentNbr,this.BoardPoint,this.OffPoint,this.OperatorCode,this.OperatorService,this.SegmentStatus,this.DepartureTimeFormatted,this.ArrivalTimeFormatted,this.ChangeOfDayFormatted,this.ServiceCode,this.StartDate,this.EndDate,this.TicketNumber,this.VendorLocators,this.EquipmentCode,this.Equipment});
ItinerarySegment.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
SegmentType = json['SegmentType'];
SegmentNbr = json['SegmentNbr'];
BoardPoint = json['BoardPoint'];
OffPoint = json['OffPoint'];
OperatorCode = json['OperatorCode'];
OperatorService = json['OperatorService'];
SegmentStatus = json['SegmentStatus'];
DepartureTimeFormatted = json['DepartureTimeFormatted'];
ArrivalTimeFormatted = json['ArrivalTimeFormatted'];
ChangeOfDayFormatted = json['ChangeOfDayFormatted'];
ServiceCode = json['ServiceCode'];
StartDate = json['StartDate'];
EndDate = json['EndDate'];
TicketNumber = json['TicketNumber'];
VendorLocators = json['VendorLocators'];
EquipmentCode = json['EquipmentCode'];
Equipment = json['Equipment'];
return this;
}
Map<String, dynamic> toJson() => {
'SegmentType': SegmentType,
'SegmentNbr': SegmentNbr,
'BoardPoint': BoardPoint,
'OffPoint': OffPoint,
'OperatorCode': OperatorCode,
'OperatorService': OperatorService,
'SegmentStatus': SegmentStatus,
'DepartureTimeFormatted': DepartureTimeFormatted,
'ArrivalTimeFormatted': ArrivalTimeFormatted,
'ChangeOfDayFormatted': ChangeOfDayFormatted,
'ServiceCode': ServiceCode,
'StartDate': StartDate,
'EndDate': EndDate,
'TicketNumber': TicketNumber,
'VendorLocators': VendorLocators,
'EquipmentCode': EquipmentCode,
'Equipment': Equipment
};
getTypeName() => "ItinerarySegment";
TypeContext? context = _ctx;
}
class ItinerarySegmentsCollection extends ListBase<ItinerarySegment> implements IConvertible
{
final List<ItinerarySegment> l = [];
set length(int newLength) { l.length = newLength; }
int get length => l.length;
ItinerarySegment operator [](int index) => l[index];
void operator []=(int index, ItinerarySegment value) { l[index] = value; }
ItinerarySegmentsCollection();
ItinerarySegmentsCollection.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "ItinerarySegmentsCollection";
TypeContext? context = _ctx;
}
// @DataContract(Name="CustomField", Namespace="schemas.agentivity.com/types")
class CustomFieldData implements IConvertible
{
// @DataMember(Order=20)
String? FieldName;
// @DataMember(Order=30)
String? FieldValue;
CustomFieldData({this.FieldName,this.FieldValue});
CustomFieldData.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
FieldName = json['FieldName'];
FieldValue = json['FieldValue'];
return this;
}
Map<String, dynamic> toJson() => {
'FieldName': FieldName,
'FieldValue': FieldValue
};
getTypeName() => "CustomFieldData";
TypeContext? context = _ctx;
}
class CustomFieldsCollection extends ListBase<CustomFieldData> implements IConvertible
{
final List<CustomFieldData> l = [];
set length(int newLength) { l.length = newLength; }
int get length => l.length;
CustomFieldData operator [](int index) => l[index];
void operator []=(int index, CustomFieldData value) { l[index] = value; }
CustomFieldsCollection();
CustomFieldsCollection.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "CustomFieldsCollection";
TypeContext? context = _ctx;
}
// @DataContract(Name="VendorLocator", Namespace="schemas.agentivity.com/types")
class BookingExtVendorLocator implements IBookingIdentifier, IConvertible
{
// @DataMember(Order=10)
String? CarrierCode;
// @DataMember(Order=20)
String? VendorLocator;
BookingExtVendorLocator({this.CarrierCode,this.VendorLocator});
BookingExtVendorLocator.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CarrierCode = json['CarrierCode'];
VendorLocator = json['VendorLocator'];
return this;
}
Map<String, dynamic> toJson() => {
'CarrierCode': CarrierCode,
'VendorLocator': VendorLocator
};
getTypeName() => "BookingExtVendorLocator";
TypeContext? context = _ctx;
}
// @DataContract(Name="Passenger", Namespace="schemas.agentivity.com/types")
class BookingPassengerModel implements IConvertible
{
// @DataMember(Order=10)
String? FirstName;
// @DataMember(Order=20)
String? LastName;
// @DataMember(Order=30)
int? PassengerDataId;
BookingPassengerModel({this.FirstName,this.LastName,this.PassengerDataId});
BookingPassengerModel.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
FirstName = json['FirstName'];
LastName = json['LastName'];
PassengerDataId = json['PassengerDataId'];
return this;
}
Map<String, dynamic> toJson() => {
'FirstName': FirstName,
'LastName': LastName,
'PassengerDataId': PassengerDataId
};
getTypeName() => "BookingPassengerModel";
TypeContext? context = _ctx;
}
// @DataContract(Name="Segment", Namespace="schemas.agentivity.com/types")
class PassengerLocation implements IBookingItinerary, IBookingCustomFields, IBookingIdentifier, ITicketNumbers, IVendorLocators, IPassengerInfo, IConvertible
{
// @DataMember(Order=1)
String? RecordLocator;
// @DataMember(Order=2)
DateTime? TravelDate;
// @DataMember(Order=3)
DateTime? DepartureDate;
// @DataMember(Order=4)
String? BoardPoint;
// @DataMember(Order=5)
String? OffPoint;
// @DataMember(Order=6)
String? PnrTicketed;
// @DataMember(Order=7)
String? Account;
// @DataMember(Order=8)
String? Consultant;
// @DataMember(Order=9)
String? PaxList;
// @DataMember(Order=10)
String? PhoneNbr;
// @DataMember(Order=11)
String? EmailAddress;
// @DataMember(Order=12)
String? DestinationCities;
// @DataMember(Order=13)
String? Connections;
// @DataMember(Order=14)
String? CarrierCodes;
// @DataMember(Order=16)
String? HotelsNames;
// @DataMember(Order=30)
String? FlightNumbers;
// @DataMember(Order=40)
String? OwningAgencyLocationID;
// @DataMember(Order=50)
String? IataCodes;
// @DataMember(Order=15)
int? AgentivityRef;
// @DataMember(Order=120)
ItinerarySegmentsCollection? Itinerary;
// @DataMember(Order=130)
String? ItineraryFormatted;
// @DataMember(Order=140)
CustomFieldsCollection? CustomFields;
// @DataMember(Order=150)
DateTime? DepartureDateTime;
// @DataMember(Order=160)
DateTime? CurrentArrivalDateTime;
// @DataMember(Order=170)
String? SegmentType;
// @DataMember(Order=180)
String? AirSegmentNbr;
// @DataMember(Order=190)
DateTime? PNRCreationDate;
// @DataMember(Order=200)
List<String>? TicketNumbers;
// @DataMember(Order=210)
List<BookingExtVendorLocator>? VendorLocators;
// @DataMember(Order=220)
List<BookingPassengerModel>? PassengerInfo;
PassengerLocation({this.RecordLocator,this.TravelDate,this.DepartureDate,this.BoardPoint,this.OffPoint,this.PnrTicketed,this.Account,this.Consultant,this.PaxList,this.PhoneNbr,this.EmailAddress,this.DestinationCities,this.Connections,this.CarrierCodes,this.HotelsNames,this.FlightNumbers,this.OwningAgencyLocationID,this.IataCodes,this.AgentivityRef,this.Itinerary,this.ItineraryFormatted,this.CustomFields,this.DepartureDateTime,this.CurrentArrivalDateTime,this.SegmentType,this.AirSegmentNbr,this.PNRCreationDate,this.TicketNumbers,this.VendorLocators,this.PassengerInfo});
PassengerLocation.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
RecordLocator = json['RecordLocator'];
TravelDate = JsonConverters.fromJson(json['TravelDate'],'DateTime',context!);
DepartureDate = JsonConverters.fromJson(json['DepartureDate'],'DateTime',context!);
BoardPoint = json['BoardPoint'];
OffPoint = json['OffPoint'];
PnrTicketed = json['PnrTicketed'];
Account = json['Account'];
Consultant = json['Consultant'];
PaxList = json['PaxList'];
PhoneNbr = json['PhoneNbr'];
EmailAddress = json['EmailAddress'];
DestinationCities = json['DestinationCities'];
Connections = json['Connections'];
CarrierCodes = json['CarrierCodes'];
HotelsNames = json['HotelsNames'];
FlightNumbers = json['FlightNumbers'];
OwningAgencyLocationID = json['OwningAgencyLocationID'];
IataCodes = json['IataCodes'];
AgentivityRef = json['AgentivityRef'];
Itinerary = JsonConverters.fromJson(json['Itinerary'],'ItinerarySegmentsCollection',context!);
ItineraryFormatted = json['ItineraryFormatted'];
CustomFields = JsonConverters.fromJson(json['CustomFields'],'CustomFieldsCollection',context!);
DepartureDateTime = JsonConverters.fromJson(json['DepartureDateTime'],'DateTime',context!);
CurrentArrivalDateTime = JsonConverters.fromJson(json['CurrentArrivalDateTime'],'DateTime',context!);
SegmentType = json['SegmentType'];
AirSegmentNbr = json['AirSegmentNbr'];
PNRCreationDate = JsonConverters.fromJson(json['PNRCreationDate'],'DateTime',context!);
TicketNumbers = JsonConverters.fromJson(json['TicketNumbers'],'List<String>',context!);
VendorLocators = JsonConverters.fromJson(json['VendorLocators'],'List<BookingExtVendorLocator>',context!);
PassengerInfo = JsonConverters.fromJson(json['PassengerInfo'],'List<BookingPassengerModel>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'RecordLocator': RecordLocator,
'TravelDate': JsonConverters.toJson(TravelDate,'DateTime',context!),
'DepartureDate': JsonConverters.toJson(DepartureDate,'DateTime',context!),
'BoardPoint': BoardPoint,
'OffPoint': OffPoint,
'PnrTicketed': PnrTicketed,
'Account': Account,
'Consultant': Consultant,
'PaxList': PaxList,
'PhoneNbr': PhoneNbr,
'EmailAddress': EmailAddress,
'DestinationCities': DestinationCities,
'Connections': Connections,
'CarrierCodes': CarrierCodes,
'HotelsNames': HotelsNames,
'FlightNumbers': FlightNumbers,
'OwningAgencyLocationID': OwningAgencyLocationID,
'IataCodes': IataCodes,
'AgentivityRef': AgentivityRef,
'Itinerary': JsonConverters.toJson(Itinerary,'ItinerarySegmentsCollection',context!),
'ItineraryFormatted': ItineraryFormatted,
'CustomFields': JsonConverters.toJson(CustomFields,'CustomFieldsCollection',context!),
'DepartureDateTime': JsonConverters.toJson(DepartureDateTime,'DateTime',context!),
'CurrentArrivalDateTime': JsonConverters.toJson(CurrentArrivalDateTime,'DateTime',context!),
'SegmentType': SegmentType,
'AirSegmentNbr': AirSegmentNbr,
'PNRCreationDate': JsonConverters.toJson(PNRCreationDate,'DateTime',context!),
'TicketNumbers': JsonConverters.toJson(TicketNumbers,'List<String>',context!),
'VendorLocators': JsonConverters.toJson(VendorLocators,'List<BookingExtVendorLocator>',context!),
'PassengerInfo': JsonConverters.toJson(PassengerInfo,'List<BookingPassengerModel>',context!)
};
getTypeName() => "PassengerLocation";
TypeContext? context = _ctx;
}
// @DataContract(Name="Segment", Namespace="schemas.agentivity.com/types")
class PassengerLocationRouting extends PassengerLocation implements IConvertible
{
// @DataMember(Order=1000)
String? DestinationCountries;
PassengerLocationRouting({this.DestinationCountries});
PassengerLocationRouting.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
DestinationCountries = json['DestinationCountries'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'DestinationCountries': DestinationCountries
});
getTypeName() => "PassengerLocationRouting";
TypeContext? context = _ctx;
}
// @DataContract(Name="CacheMetadata", Namespace="schemas.agentivity.com/types")
class CacheMetadata implements IConvertible
{
// @DataMember(Order=1)
DateTime? CachedAt;
// @DataMember(Order=2)
DateTime? CacheExpiresAt;
// @DataMember(Order=0)
bool? IsFromCache;
CacheMetadata({this.CachedAt,this.CacheExpiresAt,this.IsFromCache});
CacheMetadata.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CachedAt = JsonConverters.fromJson(json['CachedAt'],'DateTime',context!);
CacheExpiresAt = JsonConverters.fromJson(json['CacheExpiresAt'],'DateTime',context!);
IsFromCache = json['IsFromCache'];
return this;
}
Map<String, dynamic> toJson() => {
'CachedAt': JsonConverters.toJson(CachedAt,'DateTime',context!),
'CacheExpiresAt': JsonConverters.toJson(CacheExpiresAt,'DateTime',context!),
'IsFromCache': IsFromCache
};
getTypeName() => "CacheMetadata";
TypeContext? context = _ctx;
}
// @DataContract(Name="ResponseMetadata", Namespace="schemas.agentivity.com/types")
class ResponseMetadata implements IConvertible
{
// @DataMember(Order=0)
bool? Success;
// @DataMember(Order=1)
bool? HasCache;
// @DataMember(Order=2)
bool? HasPaging;
// @DataMember(Order=3, EmitDefaultValue=false)
CacheMetadata? CacheMetadata;
// @DataMember(Order=4, EmitDefaultValue=false)
PagingMetadata? PagingMetadata;
ResponseMetadata({this.Success,this.HasCache,this.HasPaging,this.CacheMetadata,this.PagingMetadata});
ResponseMetadata.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Success = json['Success'];
HasCache = json['HasCache'];
HasPaging = json['HasPaging'];
CacheMetadata = JsonConverters.fromJson(json['CacheMetadata'],'CacheMetadata',context!);
PagingMetadata = JsonConverters.fromJson(json['PagingMetadata'],'PagingMetadata',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Success': Success,
'HasCache': HasCache,
'HasPaging': HasPaging,
'CacheMetadata': JsonConverters.toJson(CacheMetadata,'CacheMetadata',context!),
'PagingMetadata': JsonConverters.toJson(PagingMetadata,'PagingMetadata',context!)
};
getTypeName() => "ResponseMetadata";
TypeContext? context = _ctx;
}
// @DataContract(Name="ApiRequestPerHour", Namespace="schemas.agentivity.com/types")
class ApiRequestPerHour implements IConvertible
{
// @DataMember(Order=10)
DateTime? RequestDate;
// @DataMember(Order=100)
int? Hour0;
// @DataMember(Order=110)
int? Hour1;
// @DataMember(Order=120)
int? Hour2;
// @DataMember(Order=130)
int? Hour3;
// @DataMember(Order=140)
int? Hour4;
// @DataMember(Order=150)
int? Hour5;
// @DataMember(Order=160)
int? Hour6;
// @DataMember(Order=170)
int? Hour7;
// @DataMember(Order=180)
int? Hour8;
// @DataMember(Order=190)
int? Hour9;
// @DataMember(Order=200)
int? Hour10;
// @DataMember(Order=210)
int? Hour11;
// @DataMember(Order=220)
int? Hour12;
// @DataMember(Order=230)
int? Hour13;
// @DataMember(Order=240)
int? Hour14;
// @DataMember(Order=250)
int? Hour15;
// @DataMember(Order=260)
int? Hour16;
// @DataMember(Order=270)
int? Hour17;
// @DataMember(Order=280)
int? Hour18;
// @DataMember(Order=290)
int? Hour19;
// @DataMember(Order=300)
int? Hour20;
// @DataMember(Order=310)
int? Hour21;
// @DataMember(Order=320)
int? Hour22;
// @DataMember(Order=330)
int? Hour23;
ApiRequestPerHour({this.RequestDate,this.Hour0,this.Hour1,this.Hour2,this.Hour3,this.Hour4,this.Hour5,this.Hour6,this.Hour7,this.Hour8,this.Hour9,this.Hour10,this.Hour11,this.Hour12,this.Hour13,this.Hour14,this.Hour15,this.Hour16,this.Hour17,this.Hour18,this.Hour19,this.Hour20,this.Hour21,this.Hour22,this.Hour23});
ApiRequestPerHour.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
RequestDate = JsonConverters.fromJson(json['RequestDate'],'DateTime',context!);
Hour0 = json['Hour0'];
Hour1 = json['Hour1'];
Hour2 = json['Hour2'];
Hour3 = json['Hour3'];
Hour4 = json['Hour4'];
Hour5 = json['Hour5'];
Hour6 = json['Hour6'];
Hour7 = json['Hour7'];
Hour8 = json['Hour8'];
Hour9 = json['Hour9'];
Hour10 = json['Hour10'];
Hour11 = json['Hour11'];
Hour12 = json['Hour12'];
Hour13 = json['Hour13'];
Hour14 = json['Hour14'];
Hour15 = json['Hour15'];
Hour16 = json['Hour16'];
Hour17 = json['Hour17'];
Hour18 = json['Hour18'];
Hour19 = json['Hour19'];
Hour20 = json['Hour20'];
Hour21 = json['Hour21'];
Hour22 = json['Hour22'];
Hour23 = json['Hour23'];
return this;
}
Map<String, dynamic> toJson() => {
'RequestDate': JsonConverters.toJson(RequestDate,'DateTime',context!),
'Hour0': Hour0,
'Hour1': Hour1,
'Hour2': Hour2,
'Hour3': Hour3,
'Hour4': Hour4,
'Hour5': Hour5,
'Hour6': Hour6,
'Hour7': Hour7,
'Hour8': Hour8,
'Hour9': Hour9,
'Hour10': Hour10,
'Hour11': Hour11,
'Hour12': Hour12,
'Hour13': Hour13,
'Hour14': Hour14,
'Hour15': Hour15,
'Hour16': Hour16,
'Hour17': Hour17,
'Hour18': Hour18,
'Hour19': Hour19,
'Hour20': Hour20,
'Hour21': Hour21,
'Hour22': Hour22,
'Hour23': Hour23
};
getTypeName() => "ApiRequestPerHour";
TypeContext? context = _ctx;
}
// @DataContract(Name="ResponseMetadata", Namespace="schemas.agentivity.com/types")
class AgentivityError implements IConvertible
{
// @DataMember
String? ErrorCode;
// @DataMember
String? Message;
// @DataMember
String? StatusCode;
// @DataMember
String? VerboseMessage;
AgentivityError({this.ErrorCode,this.Message,this.StatusCode,this.VerboseMessage});
AgentivityError.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ErrorCode = json['ErrorCode'];
Message = json['Message'];
StatusCode = json['StatusCode'];
VerboseMessage = json['VerboseMessage'];
return this;
}
Map<String, dynamic> toJson() => {
'ErrorCode': ErrorCode,
'Message': Message,
'StatusCode': StatusCode,
'VerboseMessage': VerboseMessage
};
getTypeName() => "AgentivityError";
TypeContext? context = _ctx;
}
// @DataContract(Name="AgentivityResponse", Namespace="schemas.agentivity.com/types")
class CollectionResponse<TItem> implements IConvertible
{
// @DataMember(Order=1)
ResponseMetadata? ResponseMetadata;
// @DataMember(Order=2, EmitDefaultValue=false)
List<ApiRequestPerHour>? ResponseReport;
// @DataMember(Order=3, EmitDefaultValue=false)
AgentivityError? ResponseError;
CollectionResponse({this.ResponseMetadata,this.ResponseReport,this.ResponseError});
CollectionResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseMetadata = JsonConverters.fromJson(json['ResponseMetadata'],'ResponseMetadata',context!);
ResponseReport = JsonConverters.fromJson(json['ResponseReport'],'List<ApiRequestPerHour>',context!);
ResponseError = JsonConverters.fromJson(json['ResponseError'],'AgentivityError',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseMetadata': JsonConverters.toJson(ResponseMetadata,'ResponseMetadata',context!),
'ResponseReport': JsonConverters.toJson(ResponseReport,'List<ApiRequestPerHour>',context!),
'ResponseError': JsonConverters.toJson(ResponseError,'AgentivityError',context!)
};
getTypeName() => "CollectionResponse<$TItem>";
TypeContext? context = _ctx;
}
// @DataContract(Name="AgentivityResponse", Namespace="schemas.agentivity.com/types")
class PassengerLocationsByRoutingResponse extends CollectionResponse<PassengerLocationRouting> implements IConvertible
{
PassengerLocationsByRoutingResponse();
PassengerLocationsByRoutingResponse.fromJson(Map<String, dynamic> json) : super.fromJson(json);
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
return this;
}
Map<String, dynamic> toJson() => super.toJson();
getTypeName() => "PassengerLocationsByRoutingResponse";
TypeContext? context = _ctx;
}
// @DataContract(Namespace="schemas.agentivity.com/types")
class GetPassengerLocationsByRouting extends CompanyLevelRequestBase implements IConvertible
{
/**
* Comma Delimited List of Accounts
*/
// @DataMember
List<String>? Account;
/**
* Date in format YYYYMMDD
*/
// @DataMember
String? DateStart;
/**
* Date in format YYYYMMDD
*/
// @DataMember
String? DateEnd;
/**
* From Airport Code
*/
// @DataMember
String? FromAirportCode;
/**
* From City Code
*/
// @DataMember
String? FromCityCode;
/**
* From Country Code
*/
// @DataMember
String? FromCountryCode;
/**
* From Subregion Code
*/
// @DataMember
String? FromSubregionCode;
/**
* From Region Code
*/
// @DataMember
String? FromRegionCode;
/**
* To Airport Code
*/
// @DataMember
String? ToAirportCode;
/**
* To City Code
*/
// @DataMember
String? ToCityCode;
/**
* To Country Code
*/
// @DataMember
String? ToCountryCode;
/**
* To Subregion Code
*/
// @DataMember
String? ToSubregionCode;
/**
* To Region Code
*/
// @DataMember
String? ToRegionCode;
/**
* Comma delimited list of owning consultants ids
*/
// @DataMember
List<String>? OwningConsultantID;
/**
* Comma Delimited List of Custom Fields
*/
// @DataMember
List<String>? CustomField;
/**
* Request Consultant ID (sign on)
*/
// @DataMember
String? RequestConsultantID;
GetPassengerLocationsByRouting({this.Account,this.DateStart,this.DateEnd,this.FromAirportCode,this.FromCityCode,this.FromCountryCode,this.FromSubregionCode,this.FromRegionCode,this.ToAirportCode,this.ToCityCode,this.ToCountryCode,this.ToSubregionCode,this.ToRegionCode,this.OwningConsultantID,this.CustomField,this.RequestConsultantID});
GetPassengerLocationsByRouting.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
Account = JsonConverters.fromJson(json['Account'],'List<String>',context!);
DateStart = json['DateStart'];
DateEnd = json['DateEnd'];
FromAirportCode = json['FromAirportCode'];
FromCityCode = json['FromCityCode'];
FromCountryCode = json['FromCountryCode'];
FromSubregionCode = json['FromSubregionCode'];
FromRegionCode = json['FromRegionCode'];
ToAirportCode = json['ToAirportCode'];
ToCityCode = json['ToCityCode'];
ToCountryCode = json['ToCountryCode'];
ToSubregionCode = json['ToSubregionCode'];
ToRegionCode = json['ToRegionCode'];
OwningConsultantID = JsonConverters.fromJson(json['OwningConsultantID'],'List<String>',context!);
CustomField = JsonConverters.fromJson(json['CustomField'],'List<String>',context!);
RequestConsultantID = json['RequestConsultantID'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'Account': JsonConverters.toJson(Account,'List<String>',context!),
'DateStart': DateStart,
'DateEnd': DateEnd,
'FromAirportCode': FromAirportCode,
'FromCityCode': FromCityCode,
'FromCountryCode': FromCountryCode,
'FromSubregionCode': FromSubregionCode,
'FromRegionCode': FromRegionCode,
'ToAirportCode': ToAirportCode,
'ToCityCode': ToCityCode,
'ToCountryCode': ToCountryCode,
'ToSubregionCode': ToSubregionCode,
'ToRegionCode': ToRegionCode,
'OwningConsultantID': JsonConverters.toJson(OwningConsultantID,'List<String>',context!),
'CustomField': JsonConverters.toJson(CustomField,'List<String>',context!),
'RequestConsultantID': RequestConsultantID
});
getTypeName() => "GetPassengerLocationsByRouting";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.agentivity.com', types: <String, TypeInfo> {
'PagingMetadata': TypeInfo(TypeOf.Class, create:() => PagingMetadata()),
'CompanyLevelRequestBase': TypeInfo(TypeOf.AbstractClass),
'ItinerarySegment': TypeInfo(TypeOf.Class, create:() => ItinerarySegment()),
'ItinerarySegmentsCollection': TypeInfo(TypeOf.Class, create:() => ItinerarySegmentsCollection()),
'CustomFieldData': TypeInfo(TypeOf.Class, create:() => CustomFieldData()),
'CustomFieldsCollection': TypeInfo(TypeOf.Class, create:() => CustomFieldsCollection()),
'BookingExtVendorLocator': TypeInfo(TypeOf.Class, create:() => BookingExtVendorLocator()),
'BookingPassengerModel': TypeInfo(TypeOf.Class, create:() => BookingPassengerModel()),
'PassengerLocation': TypeInfo(TypeOf.Class, create:() => PassengerLocation()),
'List<BookingExtVendorLocator>': TypeInfo(TypeOf.Class, create:() => <BookingExtVendorLocator>[]),
'List<BookingPassengerModel>': TypeInfo(TypeOf.Class, create:() => <BookingPassengerModel>[]),
'PassengerLocationRouting': TypeInfo(TypeOf.Class, create:() => PassengerLocationRouting()),
'CacheMetadata': TypeInfo(TypeOf.Class, create:() => CacheMetadata()),
'ResponseMetadata': TypeInfo(TypeOf.Class, create:() => ResponseMetadata()),
'ApiRequestPerHour': TypeInfo(TypeOf.Class, create:() => ApiRequestPerHour()),
'AgentivityError': TypeInfo(TypeOf.Class, create:() => AgentivityError()),
'CollectionResponse<TItem>': TypeInfo(TypeOf.Class, create:() => CollectionResponse<TItem>()),
'List<ApiRequestPerHour>': TypeInfo(TypeOf.Class, create:() => <ApiRequestPerHour>[]),
'PassengerLocationsByRoutingResponse': TypeInfo(TypeOf.Class, create:() => PassengerLocationsByRoutingResponse()),
'GetPassengerLocationsByRouting': TypeInfo(TypeOf.Class, create:() => GetPassengerLocationsByRouting()),
});
Dart GetPassengerLocationsByRouting 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.
GET /PassengerLocationsByRouting HTTP/1.1 Host: api.agentivity.com Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <AgentivityResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="schemas.agentivity.com/types"> <ResponseMetadata> <Success>false</Success> <HasCache>false</HasCache> <HasPaging>false</HasPaging> <CacheMetadata> <IsFromCache>false</IsFromCache> <CachedAt>0001-01-01T00:00:00</CachedAt> <CacheExpiresAt>0001-01-01T00:00:00</CacheExpiresAt> </CacheMetadata> <PagingMetadata> <Limit>String</Limit> <Offset>String</Offset> <ResponseRecords>0</ResponseRecords> <TotalRecords>0</TotalRecords> </PagingMetadata> </ResponseMetadata> <ResponseReport> <Segment> <RecordLocator>String</RecordLocator> <TravelDate>0001-01-01T00:00:00</TravelDate> <DepartureDate>0001-01-01T00:00:00</DepartureDate> <BoardPoint>String</BoardPoint> <OffPoint>String</OffPoint> <PnrTicketed>String</PnrTicketed> <Account>String</Account> <Consultant>String</Consultant> <PaxList>String</PaxList> <PhoneNbr>String</PhoneNbr> <EmailAddress>String</EmailAddress> <DestinationCities>String</DestinationCities> <Connections>String</Connections> <CarrierCodes>String</CarrierCodes> <AgentivityRef>0</AgentivityRef> <HotelsNames>String</HotelsNames> <FlightNumbers>String</FlightNumbers> <OwningAgencyLocationID>String</OwningAgencyLocationID> <IataCodes>String</IataCodes> <Itinerary> <ItinerarySegment> <ArrivalTimeFormatted>String</ArrivalTimeFormatted> <BoardPoint>String</BoardPoint> <ChangeOfDayFormatted>String</ChangeOfDayFormatted> <DepartureTimeFormatted>String</DepartureTimeFormatted> <EndDate>String</EndDate> <Equipment>String</Equipment> <EquipmentCode>String</EquipmentCode> <OffPoint>String</OffPoint> <OperatorCode>String</OperatorCode> <OperatorService>String</OperatorService> <SegmentNbr>0</SegmentNbr> <SegmentStatus>String</SegmentStatus> <SegmentType>String</SegmentType> <ServiceCode>String</ServiceCode> <StartDate>String</StartDate> <TicketNumber>String</TicketNumber> <VendorLocators>String</VendorLocators> </ItinerarySegment> </Itinerary> <ItineraryFormatted>String</ItineraryFormatted> <CustomFields> <CustomField> <FieldName>String</FieldName> <FieldValue>String</FieldValue> </CustomField> </CustomFields> <DepartureDateTime>0001-01-01T00:00:00</DepartureDateTime> <CurrentArrivalDateTime>0001-01-01T00:00:00</CurrentArrivalDateTime> <SegmentType>String</SegmentType> <AirSegmentNbr>String</AirSegmentNbr> <PNRCreationDate>0001-01-01T00:00:00</PNRCreationDate> <TicketNumbers xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>String</d4p1:string> </TicketNumbers> <VendorLocators> <VendorLocator> <CarrierCode>String</CarrierCode> <VendorLocator>String</VendorLocator> </VendorLocator> </VendorLocators> <PassengerInfo> <Passenger> <FirstName>String</FirstName> <LastName>String</LastName> <PassengerDataId>0</PassengerDataId> <Tickets> <Ticket> <Number>String</Number> <Type>String</Type> </Ticket> </Tickets> </Passenger> </PassengerInfo> <DestinationCountries>String</DestinationCountries> </Segment> </ResponseReport> <ResponseError> <ErrorCode>String</ErrorCode> <Message>String</Message> <StatusCode>String</StatusCode> <VerboseMessage>String</VerboseMessage> </ResponseError> </AgentivityResponse>