Agentivity API

<back to all web services

AgencyReviews

The following routes are available for this service:
GET/AgencyReviews
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 AgencyReviews extends CompanyLevelRequestBase implements IRequestConsultantID
    {
        /**
        * Account
        */
        @DataMember
        public String Account = null;

        /**
        * Date in format YYYYMMDD
        */
        @DataMember
        public String PNRCreationDateStart = null;

        /**
        * Date in format YYYYMMDD
        */
        @DataMember
        public String PNRCreationDateEnd = null;

        /**
        * Comma Delimited List of PCCs
        */
        @DataMember
        public ArrayList<String> OwningAgencyLocationID = null;

        /**
        * Load options
        */
        @DataMember
        public AgencyReviewOptions LoadOptions = null;

        /**
        * Airline support format style
        */
        @DataMember
        public FormattingStyle AirlineSupportFormatStyle = null;

        /**
        * Car support format style
        */
        @DataMember
        public FormattingStyle CarSupportFormatStyle = null;

        /**
        * Hotel support format style
        */
        @DataMember
        public FormattingStyle HotelSupportFormatStyle = null;

        /**
        * Excluded carrier code
        */
        @DataMember
        public String ExcludedCarrierCode = null;

        /**
        * Mode
        */
        @DataMember
        public AgencyReviewMode Mode = null;

        /**
        * Top car items
        */
        @DataMember
        public Integer TopCarItems = null;

        /**
        * Top hotel items
        */
        @DataMember
        public Integer TopHotelItems = null;

        /**
        * Includes AfterHours Servicing in results
        */
        @DataMember
        public Boolean IncludeAfterHoursServicingFields = null;

        /**
        * Request Consultant ID (sign on)
        */
        @DataMember
        public String RequestConsultantID = null;
        
        public String getAccount() { return Account; }
        public AgencyReviews setAccount(String value) { this.Account = value; return this; }
        public String getPnrCreationDateStart() { return PNRCreationDateStart; }
        public AgencyReviews setPnrCreationDateStart(String value) { this.PNRCreationDateStart = value; return this; }
        public String getPnrCreationDateEnd() { return PNRCreationDateEnd; }
        public AgencyReviews setPnrCreationDateEnd(String value) { this.PNRCreationDateEnd = value; return this; }
        public ArrayList<String> getOwningAgencyLocationID() { return OwningAgencyLocationID; }
        public AgencyReviews setOwningAgencyLocationID(ArrayList<String> value) { this.OwningAgencyLocationID = value; return this; }
        public AgencyReviewOptions getLoadOptions() { return LoadOptions; }
        public AgencyReviews setLoadOptions(AgencyReviewOptions value) { this.LoadOptions = value; return this; }
        public FormattingStyle getAirlineSupportFormatStyle() { return AirlineSupportFormatStyle; }
        public AgencyReviews setAirlineSupportFormatStyle(FormattingStyle value) { this.AirlineSupportFormatStyle = value; return this; }
        public FormattingStyle getCarSupportFormatStyle() { return CarSupportFormatStyle; }
        public AgencyReviews setCarSupportFormatStyle(FormattingStyle value) { this.CarSupportFormatStyle = value; return this; }
        public FormattingStyle getHotelSupportFormatStyle() { return HotelSupportFormatStyle; }
        public AgencyReviews setHotelSupportFormatStyle(FormattingStyle value) { this.HotelSupportFormatStyle = value; return this; }
        public String getExcludedCarrierCode() { return ExcludedCarrierCode; }
        public AgencyReviews setExcludedCarrierCode(String value) { this.ExcludedCarrierCode = value; return this; }
        public AgencyReviewMode getMode() { return Mode; }
        public AgencyReviews setMode(AgencyReviewMode value) { this.Mode = value; return this; }
        public Integer getTopCarItems() { return TopCarItems; }
        public AgencyReviews setTopCarItems(Integer value) { this.TopCarItems = value; return this; }
        public Integer getTopHotelItems() { return TopHotelItems; }
        public AgencyReviews setTopHotelItems(Integer value) { this.TopHotelItems = value; return this; }
        public Boolean isIncludeAfterHoursServicingFields() { return IncludeAfterHoursServicingFields; }
        public AgencyReviews setIncludeAfterHoursServicingFields(Boolean value) { this.IncludeAfterHoursServicingFields = value; return this; }
        public String getRequestConsultantID() { return RequestConsultantID; }
        public AgencyReviews setRequestConsultantID(String value) { this.RequestConsultantID = value; return this; }
    }

    @DataContract(Namespace="schemas.agentivity.com/types")
    public static class CompanyLevelRequestBase extends PagingMetadata implements IMemberUsername, IMemberOwningCompanyCode
    {
        /**
        * Comma Delimited List of Owning Company Codes
        */
        @DataMember
        public ArrayList<String> OwningCompanyCode = null;

        /**
        * UserName in form of an email address
        */
        @DataMember
        public String UserName = null;
        
        public ArrayList<String> getOwningCompanyCode() { return OwningCompanyCode; }
        public CompanyLevelRequestBase setOwningCompanyCode(ArrayList<String> value) { this.OwningCompanyCode = value; return this; }
        public String getUserName() { return UserName; }
        public CompanyLevelRequestBase setUserName(String value) { this.UserName = 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 AgencyReviewOptions
    {
        @SerializedName("0") None(0),
        @SerializedName("1") Summary(1),
        @SerializedName("2") AirlineSupport(2),
        @SerializedName("3") SummaryAirlineSupport(3),
        @SerializedName("4") CarSupport(4),
        @SerializedName("8") HotelSupport(8),
        @SerializedName("15") All(15);

        private final int value;
        AgencyReviewOptions(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

    @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; }
    }

    @Flags()
    public static enum AgencyReviewMode
    {
        @SerializedName("0") Account(0),
        @SerializedName("1") Pcc(1);

        private final int value;
        AgencyReviewMode(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

    @DataContract(Name="AgentivityResponse", Namespace="schemas.agentivity.com/types")
    public static class AgencyReviewsResponse extends CollectionResponse<AgencyReview>
    {
        
    }

    @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="AgencyReview", Namespace="schemas.agentivity.com/types")
    public static class AgencyReview
    {
        @DataMember(Order=10)
        public AgencyReviewSummary Summary = null;

        @DataMember(Order=20)
        public AirlineSupport AirlineSupport = null;

        @DataMember(Order=30)
        public CarSupport CarSupport = null;

        @DataMember(Order=40)
        public HotelSupport HotelSupport = null;
        
        public AgencyReviewSummary getSummary() { return Summary; }
        public AgencyReview setSummary(AgencyReviewSummary value) { this.Summary = value; return this; }
        public AirlineSupport getAirlineSupport() { return AirlineSupport; }
        public AgencyReview setAirlineSupport(AirlineSupport value) { this.AirlineSupport = value; return this; }
        public CarSupport getCarSupport() { return CarSupport; }
        public AgencyReview setCarSupport(CarSupport value) { this.CarSupport = value; return this; }
        public HotelSupport getHotelSupport() { return HotelSupport; }
        public AgencyReview setHotelSupport(HotelSupport value) { this.HotelSupport = value; return this; }
    }

    @DataContract(Name="AgencyReviewSummary", Namespace="schemas.agentivity.com/types")
    public static class AgencyReviewSummary implements ICarbonTonnage, ICarbonEmissionDto
    {
        @DataMember(Order=10)
        public Integer TicketedBookings = null;

        @DataMember(Order=20)
        public Integer LCCTktBookings = null;

        @DataMember(Order=25)
        public Integer AssumedTicketedBookings = null;

        @DataMember(Order=30)
        public Integer NonTicketedBookings = null;

        @DataMember(Order=40)
        public Integer TicketedBookingsPerc = null;

        @DataMember(Order=50)
        public Integer NonTicketedBookingsPerc = null;

        @DataMember(Order=60)
        public Integer OnlineBookings = null;

        @DataMember(Order=70)
        public Integer OfflineBookings = null;

        @DataMember(Order=80)
        public Integer CxlBookings = null;

        @DataMember(Order=90)
        public Integer OffLineHtlBookings = null;

        @DataMember(Order=100)
        public Integer BookingsWithHotelSegments = null;

        @DataMember(Order=110)
        public Integer BookingsWithCarSegments = null;

        @DataMember(Order=120)
        public Integer NonAirBookings = null;

        @DataMember(Order=130)
        public Integer TotalBookings = null;

        @DataMember(Order=140)
        public Integer AeroTouches = null;

        @DataMember(Order=145)
        public Integer AeroTouchesAuto = null;

        @DataMember(Order=150)
        public BigDecimal AverageItineraryChanges = null;

        @DataMember(Order=160)
        public BigDecimal AverageAccountBookingToTravelTime = null;

        @DataMember(Order=170)
        public Integer TotalItineraryChangesBeforeTicketing = null;

        @DataMember(Order=180)
        public Integer TotalItineraryChangesAfterTicketing = null;

        @DataMember(Order=190)
        public BigDecimal TotalItineraryChanges = null;

        @DataMember(Order=230)
        public Integer BookingsWithNdcContent = null;

        @DataMember(Order=210)
        public Double CarbonEmissionValue = null;

        @DataMember(Order=220)
        public Short CarbonEmissionUnitId = null;

        @DataMember(Order=200)
        public Double CarbonTonnage = null;
        
        public Integer getTicketedBookings() { return TicketedBookings; }
        public AgencyReviewSummary setTicketedBookings(Integer value) { this.TicketedBookings = value; return this; }
        public Integer getLccTktBookings() { return LCCTktBookings; }
        public AgencyReviewSummary setLccTktBookings(Integer value) { this.LCCTktBookings = value; return this; }
        public Integer getAssumedTicketedBookings() { return AssumedTicketedBookings; }
        public AgencyReviewSummary setAssumedTicketedBookings(Integer value) { this.AssumedTicketedBookings = value; return this; }
        public Integer getNonTicketedBookings() { return NonTicketedBookings; }
        public AgencyReviewSummary setNonTicketedBookings(Integer value) { this.NonTicketedBookings = value; return this; }
        public Integer getTicketedBookingsPerc() { return TicketedBookingsPerc; }
        public AgencyReviewSummary setTicketedBookingsPerc(Integer value) { this.TicketedBookingsPerc = value; return this; }
        public Integer getNonTicketedBookingsPerc() { return NonTicketedBookingsPerc; }
        public AgencyReviewSummary setNonTicketedBookingsPerc(Integer value) { this.NonTicketedBookingsPerc = value; return this; }
        public Integer getOnlineBookings() { return OnlineBookings; }
        public AgencyReviewSummary setOnlineBookings(Integer value) { this.OnlineBookings = value; return this; }
        public Integer getOfflineBookings() { return OfflineBookings; }
        public AgencyReviewSummary setOfflineBookings(Integer value) { this.OfflineBookings = value; return this; }
        public Integer getCxlBookings() { return CxlBookings; }
        public AgencyReviewSummary setCxlBookings(Integer value) { this.CxlBookings = value; return this; }
        public Integer getOffLineHtlBookings() { return OffLineHtlBookings; }
        public AgencyReviewSummary setOffLineHtlBookings(Integer value) { this.OffLineHtlBookings = value; return this; }
        public Integer getBookingsWithHotelSegments() { return BookingsWithHotelSegments; }
        public AgencyReviewSummary setBookingsWithHotelSegments(Integer value) { this.BookingsWithHotelSegments = value; return this; }
        public Integer getBookingsWithCarSegments() { return BookingsWithCarSegments; }
        public AgencyReviewSummary setBookingsWithCarSegments(Integer value) { this.BookingsWithCarSegments = value; return this; }
        public Integer getNonAirBookings() { return NonAirBookings; }
        public AgencyReviewSummary setNonAirBookings(Integer value) { this.NonAirBookings = value; return this; }
        public Integer getTotalBookings() { return TotalBookings; }
        public AgencyReviewSummary setTotalBookings(Integer value) { this.TotalBookings = value; return this; }
        public Integer getAeroTouches() { return AeroTouches; }
        public AgencyReviewSummary setAeroTouches(Integer value) { this.AeroTouches = value; return this; }
        public Integer getAeroTouchesAuto() { return AeroTouchesAuto; }
        public AgencyReviewSummary setAeroTouchesAuto(Integer value) { this.AeroTouchesAuto = value; return this; }
        public BigDecimal getAverageItineraryChanges() { return AverageItineraryChanges; }
        public AgencyReviewSummary setAverageItineraryChanges(BigDecimal value) { this.AverageItineraryChanges = value; return this; }
        public BigDecimal getAverageAccountBookingToTravelTime() { return AverageAccountBookingToTravelTime; }
        public AgencyReviewSummary setAverageAccountBookingToTravelTime(BigDecimal value) { this.AverageAccountBookingToTravelTime = value; return this; }
        public Integer getTotalItineraryChangesBeforeTicketing() { return TotalItineraryChangesBeforeTicketing; }
        public AgencyReviewSummary setTotalItineraryChangesBeforeTicketing(Integer value) { this.TotalItineraryChangesBeforeTicketing = value; return this; }
        public Integer getTotalItineraryChangesAfterTicketing() { return TotalItineraryChangesAfterTicketing; }
        public AgencyReviewSummary setTotalItineraryChangesAfterTicketing(Integer value) { this.TotalItineraryChangesAfterTicketing = value; return this; }
        public BigDecimal getTotalItineraryChanges() { return TotalItineraryChanges; }
        public AgencyReviewSummary setTotalItineraryChanges(BigDecimal value) { this.TotalItineraryChanges = value; return this; }
        public Integer getBookingsWithNdcContent() { return BookingsWithNdcContent; }
        public AgencyReviewSummary setBookingsWithNdcContent(Integer value) { this.BookingsWithNdcContent = value; return this; }
        public Double getCarbonEmissionValue() { return CarbonEmissionValue; }
        public AgencyReviewSummary setCarbonEmissionValue(Double value) { this.CarbonEmissionValue = value; return this; }
        public Short getCarbonEmissionUnitId() { return CarbonEmissionUnitId; }
        public AgencyReviewSummary setCarbonEmissionUnitId(Short value) { this.CarbonEmissionUnitId = value; return this; }
        public Double getCarbonTonnage() { return CarbonTonnage; }
        public AgencyReviewSummary setCarbonTonnage(Double value) { this.CarbonTonnage = value; return this; }
    }

    @DataContract(Name="AirlineSupport", Namespace="schemas.agentivity.com/types")
    public static class AirlineSupport
    {
        @DataMember(Order=10)
        public ArrayList<AirlineStats> AirlinesStats = null;

        @DataMember(Order=20)
        public Integer TotalSegments = null;

        @DataMember(Order=30)
        public String FormattedAirlineSupport = null;
        
        public ArrayList<AirlineStats> getAirlinesStats() { return AirlinesStats; }
        public AirlineSupport setAirlinesStats(ArrayList<AirlineStats> value) { this.AirlinesStats = value; return this; }
        public Integer getTotalSegments() { return TotalSegments; }
        public AirlineSupport setTotalSegments(Integer value) { this.TotalSegments = value; return this; }
        public String getFormattedAirlineSupport() { return FormattedAirlineSupport; }
        public AirlineSupport setFormattedAirlineSupport(String value) { this.FormattedAirlineSupport = value; return this; }
    }

    @DataContract(Name="AirlineStats", Namespace="schemas.agentivity.com/types")
    public static class AirlineStats
    {
        @DataMember(Order=10)
        public String CarrierCode = null;

        @DataMember(Order=20)
        public String Carrier = null;

        @DataMember(Order=30)
        public Integer TotalSegments = null;
        
        public String getCarrierCode() { return CarrierCode; }
        public AirlineStats setCarrierCode(String value) { this.CarrierCode = value; return this; }
        public String getCarrier() { return Carrier; }
        public AirlineStats setCarrier(String value) { this.Carrier = value; return this; }
        public Integer getTotalSegments() { return TotalSegments; }
        public AirlineStats setTotalSegments(Integer value) { this.TotalSegments = value; return this; }
    }

    @DataContract(Name="CarSupport", Namespace="schemas.agentivity.com/types")
    public static class CarSupport
    {
        @DataMember(Order=10)
        public ArrayList<CarStats> Stats = null;

        @DataMember(Order=20)
        public Integer TotalSegments = null;

        @DataMember(Order=30)
        public String FormattedCarSupport = null;
        
        public ArrayList<CarStats> getStats() { return Stats; }
        public CarSupport setStats(ArrayList<CarStats> value) { this.Stats = value; return this; }
        public Integer getTotalSegments() { return TotalSegments; }
        public CarSupport setTotalSegments(Integer value) { this.TotalSegments = value; return this; }
        public String getFormattedCarSupport() { return FormattedCarSupport; }
        public CarSupport setFormattedCarSupport(String value) { this.FormattedCarSupport = value; return this; }
    }

    @DataContract(Name="CarStats", Namespace="schemas.agentivity.com/types")
    public static class CarStats
    {
        @DataMember(Order=10)
        public String VendorCode = null;

        @DataMember(Order=20)
        public String VendorName = null;

        @DataMember(Order=30)
        public Integer TotalSegments = null;
        
        public String getVendorCode() { return VendorCode; }
        public CarStats setVendorCode(String value) { this.VendorCode = value; return this; }
        public String getVendorName() { return VendorName; }
        public CarStats setVendorName(String value) { this.VendorName = value; return this; }
        public Integer getTotalSegments() { return TotalSegments; }
        public CarStats setTotalSegments(Integer value) { this.TotalSegments = value; return this; }
    }

    @DataContract(Name="HotelSupport", Namespace="schemas.agentivity.com/types")
    public static class HotelSupport
    {
        @DataMember(Order=10)
        public ArrayList<HotelStats> Stats = null;

        @DataMember(Order=20)
        public Integer TotalSegments = null;

        @DataMember(Order=30)
        public String FormattedHotelSupport = null;
        
        public ArrayList<HotelStats> getStats() { return Stats; }
        public HotelSupport setStats(ArrayList<HotelStats> value) { this.Stats = value; return this; }
        public Integer getTotalSegments() { return TotalSegments; }
        public HotelSupport setTotalSegments(Integer value) { this.TotalSegments = value; return this; }
        public String getFormattedHotelSupport() { return FormattedHotelSupport; }
        public HotelSupport setFormattedHotelSupport(String value) { this.FormattedHotelSupport = value; return this; }
    }

    @DataContract(Name="HotelStats", Namespace="schemas.agentivity.com/types")
    public static class HotelStats
    {
        @DataMember(Order=10)
        public String VendorCode = null;

        @DataMember(Order=20)
        public String VendorName = null;

        @DataMember(Order=30)
        public Integer TotalSegments = null;

        @DataMember(Order=40)
        public Integer TotalNights = null;
        
        public String getVendorCode() { return VendorCode; }
        public HotelStats setVendorCode(String value) { this.VendorCode = value; return this; }
        public String getVendorName() { return VendorName; }
        public HotelStats setVendorName(String value) { this.VendorName = value; return this; }
        public Integer getTotalSegments() { return TotalSegments; }
        public HotelStats setTotalSegments(Integer value) { this.TotalSegments = value; return this; }
        public Integer getTotalNights() { return TotalNights; }
        public HotelStats setTotalNights(Integer value) { this.TotalNights = value; return this; }
    }

}

Java AgencyReviews DTOs

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

HTTP + XML

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

GET /AgencyReviews 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>
    <AgencyReview>
      <Summary>
        <TicketedBookings>0</TicketedBookings>
        <LCCTktBookings>0</LCCTktBookings>
        <AssumedTicketedBookings>0</AssumedTicketedBookings>
        <NonTicketedBookings>0</NonTicketedBookings>
        <TicketedBookingsPerc>0</TicketedBookingsPerc>
        <NonTicketedBookingsPerc>0</NonTicketedBookingsPerc>
        <OnlineBookings>0</OnlineBookings>
        <OfflineBookings>0</OfflineBookings>
        <CxlBookings>0</CxlBookings>
        <OffLineHtlBookings>0</OffLineHtlBookings>
        <BookingsWithHotelSegments>0</BookingsWithHotelSegments>
        <BookingsWithCarSegments>0</BookingsWithCarSegments>
        <NonAirBookings>0</NonAirBookings>
        <TotalBookings>0</TotalBookings>
        <AeroTouches>0</AeroTouches>
        <AeroTouchesAuto>0</AeroTouchesAuto>
        <AverageItineraryChanges>0</AverageItineraryChanges>
        <AverageAccountBookingToTravelTime>0</AverageAccountBookingToTravelTime>
        <TotalItineraryChangesBeforeTicketing>0</TotalItineraryChangesBeforeTicketing>
        <TotalItineraryChangesAfterTicketing>0</TotalItineraryChangesAfterTicketing>
        <TotalItineraryChanges>0</TotalItineraryChanges>
        <CarbonTonnage>0</CarbonTonnage>
        <CarbonEmissionValue>0</CarbonEmissionValue>
        <CarbonEmissionUnitId>0</CarbonEmissionUnitId>
        <BookingsWithNdcContent>0</BookingsWithNdcContent>
      </Summary>
      <AirlineSupport>
        <AirlinesStats>
          <AirlineStats>
            <CarrierCode>String</CarrierCode>
            <Carrier>String</Carrier>
            <TotalSegments>0</TotalSegments>
          </AirlineStats>
        </AirlinesStats>
        <TotalSegments>0</TotalSegments>
        <FormattedAirlineSupport>String</FormattedAirlineSupport>
      </AirlineSupport>
      <CarSupport>
        <Stats>
          <CarStats>
            <VendorCode>String</VendorCode>
            <VendorName>String</VendorName>
            <TotalSegments>0</TotalSegments>
          </CarStats>
        </Stats>
        <TotalSegments>0</TotalSegments>
        <FormattedCarSupport>String</FormattedCarSupport>
      </CarSupport>
      <HotelSupport>
        <Stats>
          <HotelStats>
            <VendorCode>String</VendorCode>
            <VendorName>String</VendorName>
            <TotalSegments>0</TotalSegments>
            <TotalNights>0</TotalNights>
          </HotelStats>
        </Stats>
        <TotalSegments>0</TotalSegments>
        <FormattedHotelSupport>String</FormattedHotelSupport>
      </HotelSupport>
    </AgencyReview>
  </ResponseReport>
  <ResponseError>
    <ErrorCode>String</ErrorCode>
    <Message>String</Message>
    <StatusCode>String</StatusCode>
    <VerboseMessage>String</VerboseMessage>
  </ResponseError>
</AgentivityResponse>