GET | /DistributorBookingsByPNRTicketedDate |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
@DataContract(Namespace="schemas.agentivity.com/types")
public static class GetDistributorBookingsByPNRTicketedDate extends PagingMetadata
{
/**
* ID of Distributor
*/
@DataMember
public Integer DistributorID = null;
/**
* Date in format YYYYMMDD
*/
@DataMember
public String PNRTicketedDateStart = null;
/**
* Date in format YYYYMMDD
*/
@DataMember
public String PNRTicketedDateEnd = null;
/**
* Two letter code for carrier
*/
@DataMember
public String CarrierCode = null;
/**
* Code of the class
*/
@DataMember
public ArrayList<String> ClassCode = null;
/**
* Name of the class
*/
@DataMember
public ArrayList<String> ClassName = null;
/**
* BoardPoint CountryCode
*/
@DataMember
public String BoardPointCountryCode = null;
/**
* Include Itinerary in the response
*/
@DataMember
public Boolean IncludeItinerary = null;
/**
* Indicates the required formatting: 0=None(Default); 1= Html; 2 = Chart
*/
@DataMember
public FormattingStyle ItineraryFormatting = null;
public Integer getDistributorID() { return DistributorID; }
public GetDistributorBookingsByPNRTicketedDate setDistributorID(Integer value) { this.DistributorID = value; return this; }
public String getPnrTicketedDateStart() { return PNRTicketedDateStart; }
public GetDistributorBookingsByPNRTicketedDate setPnrTicketedDateStart(String value) { this.PNRTicketedDateStart = value; return this; }
public String getPnrTicketedDateEnd() { return PNRTicketedDateEnd; }
public GetDistributorBookingsByPNRTicketedDate setPnrTicketedDateEnd(String value) { this.PNRTicketedDateEnd = value; return this; }
public String getCarrierCode() { return CarrierCode; }
public GetDistributorBookingsByPNRTicketedDate setCarrierCode(String value) { this.CarrierCode = value; return this; }
public ArrayList<String> getClassCode() { return ClassCode; }
public GetDistributorBookingsByPNRTicketedDate setClassCode(ArrayList<String> value) { this.ClassCode = value; return this; }
public ArrayList<String> getClassName() { return ClassName; }
public GetDistributorBookingsByPNRTicketedDate setClassName(ArrayList<String> value) { this.ClassName = value; return this; }
public String getBoardPointCountryCode() { return BoardPointCountryCode; }
public GetDistributorBookingsByPNRTicketedDate setBoardPointCountryCode(String value) { this.BoardPointCountryCode = value; return this; }
public Boolean isIncludeItinerary() { return IncludeItinerary; }
public GetDistributorBookingsByPNRTicketedDate setIncludeItinerary(Boolean value) { this.IncludeItinerary = value; return this; }
public FormattingStyle getItineraryFormatting() { return ItineraryFormatting; }
public GetDistributorBookingsByPNRTicketedDate setItineraryFormatting(FormattingStyle value) { this.ItineraryFormatting = value; return this; }
}
@DataContract(Name="Metadata", Namespace="schemas.agentivity.com/types")
public static class PagingMetadata
{
/**
* Starting Record
*/
@DataMember
@ApiMember(DataType="string", Description="Starting Record", Name="Offset", ParameterType="query")
public String Offset = null;
/**
* Number of records to return (PageSize)
*/
@DataMember
@ApiMember(DataType="string", Description="Number of records to return (PageSize)", Name="Limit", ParameterType="query")
public String Limit = null;
/**
* 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")
public Integer TotalRecords = null;
/**
* 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")
public Integer ResponseRecords = null;
public String getOffset() { return Offset; }
public PagingMetadata setOffset(String value) { this.Offset = value; return this; }
public String getLimit() { return Limit; }
public PagingMetadata setLimit(String value) { this.Limit = value; return this; }
public Integer getTotalRecords() { return TotalRecords; }
public PagingMetadata setTotalRecords(Integer value) { this.TotalRecords = value; return this; }
public Integer getResponseRecords() { return ResponseRecords; }
public PagingMetadata setResponseRecords(Integer value) { this.ResponseRecords = value; return this; }
}
@Flags()
public static enum FormattingStyle
{
@SerializedName("0") None(0),
@SerializedName("1") Html(1),
@SerializedName("2") Charting(2);
private final int value;
FormattingStyle(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
@DataContract(Name="AgentivityResponse", Namespace="schemas.agentivity.com/types")
public static class DistributorBookingsByPNRTicketedDateResponse extends CollectionResponse<DistributorBookingByPNRTicketedDate>
{
}
@DataContract(Name="AgentivityResponse", Namespace="schemas.agentivity.com/types")
public static class CollectionResponse<TItem>
{
@DataMember(Order=1)
public ResponseMetadata ResponseMetadata = null;
@DataMember(Order=2, EmitDefaultValue=false)
public ArrayList<ApiRequestPerHour> ResponseReport = null;
@DataMember(Order=3, EmitDefaultValue=false)
public AgentivityError ResponseError = null;
public ResponseMetadata getResponseMetadata() { return ResponseMetadata; }
public CollectionResponse<TItem> setResponseMetadata(ResponseMetadata value) { this.ResponseMetadata = value; return this; }
public ArrayList<ApiRequestPerHour> getResponseReport() { return ResponseReport; }
public CollectionResponse<TItem> setResponseReport(ArrayList<ApiRequestPerHour> value) { this.ResponseReport = value; return this; }
public AgentivityError getResponseError() { return ResponseError; }
public CollectionResponse<TItem> setResponseError(AgentivityError value) { this.ResponseError = value; return this; }
}
@DataContract(Name="ResponseMetadata", Namespace="schemas.agentivity.com/types")
public static class ResponseMetadata
{
@DataMember(Order=0)
public Boolean Success = null;
@DataMember(Order=1)
public Boolean HasCache = null;
@DataMember(Order=2)
public Boolean HasPaging = null;
@DataMember(Order=3, EmitDefaultValue=false)
public CacheMetadata CacheMetadata = null;
@DataMember(Order=4, EmitDefaultValue=false)
public PagingMetadata PagingMetadata = null;
public Boolean isSuccess() { return Success; }
public ResponseMetadata setSuccess(Boolean value) { this.Success = value; return this; }
public Boolean isHasCache() { return HasCache; }
public ResponseMetadata setHasCache(Boolean value) { this.HasCache = value; return this; }
public Boolean isHasPaging() { return HasPaging; }
public ResponseMetadata setHasPaging(Boolean value) { this.HasPaging = value; return this; }
public CacheMetadata getCacheMetadata() { return CacheMetadata; }
public ResponseMetadata setCacheMetadata(CacheMetadata value) { this.CacheMetadata = value; return this; }
public PagingMetadata getPagingMetadata() { return PagingMetadata; }
public ResponseMetadata setPagingMetadata(PagingMetadata value) { this.PagingMetadata = value; return this; }
}
@DataContract(Name="CacheMetadata", Namespace="schemas.agentivity.com/types")
public static class CacheMetadata
{
@DataMember(Order=1)
public Date CachedAt = null;
@DataMember(Order=2)
public Date CacheExpiresAt = null;
@DataMember(Order=0)
public Boolean IsFromCache = null;
public Date getCachedAt() { return CachedAt; }
public CacheMetadata setCachedAt(Date value) { this.CachedAt = value; return this; }
public Date getCacheExpiresAt() { return CacheExpiresAt; }
public CacheMetadata setCacheExpiresAt(Date value) { this.CacheExpiresAt = value; return this; }
public Boolean getIsFromCache() { return IsFromCache; }
public CacheMetadata setIsFromCache(Boolean value) { this.IsFromCache = value; return this; }
}
@DataContract(Name="ApiRequestPerHour", Namespace="schemas.agentivity.com/types")
public static class ApiRequestPerHour
{
@DataMember(Order=10)
public Date RequestDate = null;
@DataMember(Order=100)
public Integer Hour0 = null;
@DataMember(Order=110)
public Integer Hour1 = null;
@DataMember(Order=120)
public Integer Hour2 = null;
@DataMember(Order=130)
public Integer Hour3 = null;
@DataMember(Order=140)
public Integer Hour4 = null;
@DataMember(Order=150)
public Integer Hour5 = null;
@DataMember(Order=160)
public Integer Hour6 = null;
@DataMember(Order=170)
public Integer Hour7 = null;
@DataMember(Order=180)
public Integer Hour8 = null;
@DataMember(Order=190)
public Integer Hour9 = null;
@DataMember(Order=200)
public Integer Hour10 = null;
@DataMember(Order=210)
public Integer Hour11 = null;
@DataMember(Order=220)
public Integer Hour12 = null;
@DataMember(Order=230)
public Integer Hour13 = null;
@DataMember(Order=240)
public Integer Hour14 = null;
@DataMember(Order=250)
public Integer Hour15 = null;
@DataMember(Order=260)
public Integer Hour16 = null;
@DataMember(Order=270)
public Integer Hour17 = null;
@DataMember(Order=280)
public Integer Hour18 = null;
@DataMember(Order=290)
public Integer Hour19 = null;
@DataMember(Order=300)
public Integer Hour20 = null;
@DataMember(Order=310)
public Integer Hour21 = null;
@DataMember(Order=320)
public Integer Hour22 = null;
@DataMember(Order=330)
public Integer Hour23 = null;
public Date getRequestDate() { return RequestDate; }
public ApiRequestPerHour setRequestDate(Date value) { this.RequestDate = value; return this; }
public Integer getHour0() { return Hour0; }
public ApiRequestPerHour setHour0(Integer value) { this.Hour0 = value; return this; }
public Integer getHour1() { return Hour1; }
public ApiRequestPerHour setHour1(Integer value) { this.Hour1 = value; return this; }
public Integer getHour2() { return Hour2; }
public ApiRequestPerHour setHour2(Integer value) { this.Hour2 = value; return this; }
public Integer getHour3() { return Hour3; }
public ApiRequestPerHour setHour3(Integer value) { this.Hour3 = value; return this; }
public Integer getHour4() { return Hour4; }
public ApiRequestPerHour setHour4(Integer value) { this.Hour4 = value; return this; }
public Integer getHour5() { return Hour5; }
public ApiRequestPerHour setHour5(Integer value) { this.Hour5 = value; return this; }
public Integer getHour6() { return Hour6; }
public ApiRequestPerHour setHour6(Integer value) { this.Hour6 = value; return this; }
public Integer getHour7() { return Hour7; }
public ApiRequestPerHour setHour7(Integer value) { this.Hour7 = value; return this; }
public Integer getHour8() { return Hour8; }
public ApiRequestPerHour setHour8(Integer value) { this.Hour8 = value; return this; }
public Integer getHour9() { return Hour9; }
public ApiRequestPerHour setHour9(Integer value) { this.Hour9 = value; return this; }
public Integer getHour10() { return Hour10; }
public ApiRequestPerHour setHour10(Integer value) { this.Hour10 = value; return this; }
public Integer getHour11() { return Hour11; }
public ApiRequestPerHour setHour11(Integer value) { this.Hour11 = value; return this; }
public Integer getHour12() { return Hour12; }
public ApiRequestPerHour setHour12(Integer value) { this.Hour12 = value; return this; }
public Integer getHour13() { return Hour13; }
public ApiRequestPerHour setHour13(Integer value) { this.Hour13 = value; return this; }
public Integer getHour14() { return Hour14; }
public ApiRequestPerHour setHour14(Integer value) { this.Hour14 = value; return this; }
public Integer getHour15() { return Hour15; }
public ApiRequestPerHour setHour15(Integer value) { this.Hour15 = value; return this; }
public Integer getHour16() { return Hour16; }
public ApiRequestPerHour setHour16(Integer value) { this.Hour16 = value; return this; }
public Integer getHour17() { return Hour17; }
public ApiRequestPerHour setHour17(Integer value) { this.Hour17 = value; return this; }
public Integer getHour18() { return Hour18; }
public ApiRequestPerHour setHour18(Integer value) { this.Hour18 = value; return this; }
public Integer getHour19() { return Hour19; }
public ApiRequestPerHour setHour19(Integer value) { this.Hour19 = value; return this; }
public Integer getHour20() { return Hour20; }
public ApiRequestPerHour setHour20(Integer value) { this.Hour20 = value; return this; }
public Integer getHour21() { return Hour21; }
public ApiRequestPerHour setHour21(Integer value) { this.Hour21 = value; return this; }
public Integer getHour22() { return Hour22; }
public ApiRequestPerHour setHour22(Integer value) { this.Hour22 = value; return this; }
public Integer getHour23() { return Hour23; }
public ApiRequestPerHour setHour23(Integer value) { this.Hour23 = value; return this; }
}
@DataContract(Name="ResponseMetadata", Namespace="schemas.agentivity.com/types")
public static class AgentivityError
{
@DataMember
public String ErrorCode = null;
@DataMember
public String Message = null;
@DataMember
public String StatusCode = null;
@DataMember
public String VerboseMessage = null;
public String getErrorCode() { return ErrorCode; }
public AgentivityError setErrorCode(String value) { this.ErrorCode = value; return this; }
public String getMessage() { return Message; }
public AgentivityError setMessage(String value) { this.Message = value; return this; }
public String getStatusCode() { return StatusCode; }
public AgentivityError setStatusCode(String value) { this.StatusCode = value; return this; }
public String getVerboseMessage() { return VerboseMessage; }
public AgentivityError setVerboseMessage(String value) { this.VerboseMessage = value; return this; }
}
@DataContract(Name="DistributorBookingByPNRTicketedDate", Namespace="schemas.agentivity.com/types")
public static class DistributorBookingByPNRTicketedDate implements IBookingItinerary
{
@DataMember(Order=30)
public Integer AgentivityRef = null;
@DataMember(Order=10)
public String CompanyName = null;
@DataMember(Order=20)
public String RecordLocator = null;
@DataMember(Order=30)
public Date PNRCreationDate = null;
@DataMember(Order=40)
public String OwningConsultant = null;
@DataMember(Order=50)
public String OwningAgencyLocationID = null;
@DataMember(Order=60)
public String Account = null;
@DataMember(Order=70)
public Date TravelDate = null;
@DataMember(Order=75)
public Date VendorIssueDate = null;
@DataMember(Order=80)
public String TktNumber = null;
@DataMember(Order=90)
public String IATA = null;
@DataMember(Order=100)
public String VendorLocator = null;
@DataMember(Order=300)
public String ItineraryFormatted = null;
public Integer getAgentivityRef() { return AgentivityRef; }
public DistributorBookingByPNRTicketedDate setAgentivityRef(Integer value) { this.AgentivityRef = value; return this; }
public String getCompanyName() { return CompanyName; }
public DistributorBookingByPNRTicketedDate setCompanyName(String value) { this.CompanyName = value; return this; }
public String getRecordLocator() { return RecordLocator; }
public DistributorBookingByPNRTicketedDate setRecordLocator(String value) { this.RecordLocator = value; return this; }
public Date getPnrCreationDate() { return PNRCreationDate; }
public DistributorBookingByPNRTicketedDate setPnrCreationDate(Date value) { this.PNRCreationDate = value; return this; }
public String getOwningConsultant() { return OwningConsultant; }
public DistributorBookingByPNRTicketedDate setOwningConsultant(String value) { this.OwningConsultant = value; return this; }
public String getOwningAgencyLocationID() { return OwningAgencyLocationID; }
public DistributorBookingByPNRTicketedDate setOwningAgencyLocationID(String value) { this.OwningAgencyLocationID = value; return this; }
public String getAccount() { return Account; }
public DistributorBookingByPNRTicketedDate setAccount(String value) { this.Account = value; return this; }
public Date getTravelDate() { return TravelDate; }
public DistributorBookingByPNRTicketedDate setTravelDate(Date value) { this.TravelDate = value; return this; }
public Date getVendorIssueDate() { return VendorIssueDate; }
public DistributorBookingByPNRTicketedDate setVendorIssueDate(Date value) { this.VendorIssueDate = value; return this; }
public String getTktNumber() { return TktNumber; }
public DistributorBookingByPNRTicketedDate setTktNumber(String value) { this.TktNumber = value; return this; }
public String getIata() { return IATA; }
public DistributorBookingByPNRTicketedDate setIata(String value) { this.IATA = value; return this; }
public String getVendorLocator() { return VendorLocator; }
public DistributorBookingByPNRTicketedDate setVendorLocator(String value) { this.VendorLocator = value; return this; }
public String getItineraryFormatted() { return ItineraryFormatted; }
public DistributorBookingByPNRTicketedDate setItineraryFormatted(String value) { this.ItineraryFormatted = value; return this; }
}
}
Java GetDistributorBookingsByPNRTicketedDate 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /DistributorBookingsByPNRTicketedDate 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":[{"CompanyName":"String","RecordLocator":"String","AgentivityRef":0,"PNRCreationDate":"\/Date(-62135596800000-0000)\/","OwningConsultant":"String","OwningAgencyLocationID":"String","Account":"String","TravelDate":"\/Date(-62135596800000-0000)\/","VendorIssueDate":"\/Date(-62135596800000-0000)\/","TktNumber":"String","IATA":"String","VendorLocator":"String","ItineraryFormatted":"String"}],"ResponseError":{"ErrorCode":"String","Message":"String","StatusCode":"String","VerboseMessage":"String"}}