Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012B.air;
  
  import java.util.List;
The Price Request message requests pricing information for specific flights on specific dates for a specific number and type of passengers. Optional information in the message allows fare restriction preferences and negotiated fare contract codes to be included in the message. The pricing request contains the information necessary to perform an availability / sell from availability / price series of entries on an airline CRS or GDS. Schema fragment(s) for this class:
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="OTA_AirPriceRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element type="ns:AirItineraryType" name="AirItinerary" minOccurs="0"/>
       <xs:element name="TravelerInfoSummary">
         <xs:complexType>
           <xs:complexContent>
             <xs:extension base="ns:TravelerInfoSummaryType">
               <xs:sequence>
                 <xs:element type="ns:PaymentDetailType" name="PaymentDetail" minOccurs="0"/>
                 <xs:element name="PricingPref" minOccurs="0" maxOccurs="20">
                   <xs:complexType>
                     <xs:attributeGroup ref="ns:PricingInfoGroup"/>
                   </xs:complexType>
                 </xs:element>
               </xs:sequence>
             </xs:extension>
           </xs:complexContent>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:UniqueID_Type" name="BookingReferenceID" minOccurs="0"/>
       <xs:element name="FlightReference" minOccurs="0" maxOccurs="16">
         <!-- Reference to inner class FlightReference -->
       </xs:element>
       <xs:element type="ns:AirOfferChoiceType" name="Offer" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attribute type="xs:string" use="optional" name="Type"/>
   </xs:complexType>
 </xs:element>
 
 
 public class PriceRQ
 {
     private POS POS;
     private AirItinerary airItinerary;
     private UniqueID bookingReferenceID;
     private AirOfferChoice offer;
     private String type;

    
Get the 'POS' element value. Point of sale object.

Returns:
value
 
     public POS getPOS() {
         return ;
     }

    
Set the 'POS' element value. Point of sale object.

Parameters:
POS
 
     public void setPOS(POS POS) {
         this. = POS;
     }

    
Get the 'AirItinerary' element value. The Air Itineraries to be priced.

Returns:
value
 
     public AirItinerary getAirItinerary() {
         return ;
     }

    
Set the 'AirItinerary' element value. The Air Itineraries to be priced.

Parameters:
airItinerary
 
     public void setAirItinerary(AirItinerary airItinerary) {
        this. = airItinerary;
    }

    
Get the extension value.

Returns:
value
    }

    
Set the extension value.

Parameters:
travelerInfoSummaryTravelerInfoSummary
            TravelerInfoSummary travelerInfoSummaryTravelerInfoSummary) {
        this. = travelerInfoSummaryTravelerInfoSummary;
    }

    
Get the 'PaymentDetail' element value. Used to specify the planned method of payment.

Returns:
value
        return ;
    }

    
Set the 'PaymentDetail' element value. Used to specify the planned method of payment.

Parameters:
travelerInfoSummaryPaymentDetail
            PaymentDetail travelerInfoSummaryPaymentDetail) {
        this. = travelerInfoSummaryPaymentDetail;
    }

    
Get the list of 'PricingPref' element items. Used to specify a passenger or processing pricing preference.

Returns:
list
        return ;
    }

    
Set the list of 'PricingPref' element items. Used to specify a passenger or processing pricing preference.

Parameters:
list
            List<PricingInfoGrouplist) {
         = list;
    }

    
Get the number of 'PricingPref' element items.

Returns:
count
        return .size();
    }

    
Add a 'PricingPref' element item.

Parameters:
item
    }

    
Get 'PricingPref' element item by position.

Parameters:
index
Returns:
item
        return .get(index);
    }

    
Remove all 'PricingPref' element items.
    }

    
Get the 'BookingReferenceID' element value. The PNR address of the booking which needs to be priced.

Returns:
value
    public UniqueID getBookingReferenceID() {
        return ;
    }

    
Set the 'BookingReferenceID' element value. The PNR address of the booking which needs to be priced.

Parameters:
bookingReferenceID
    public void setBookingReferenceID(UniqueID bookingReferenceID) {
        this. = bookingReferenceID;
    }

    
Get the list of 'FlightReference' element items.

Returns:
list
        return ;
    }

    
Set the list of 'FlightReference' element items.

Parameters:
list
    public void setFlightReferenceList(List<FlightReferencelist) {
         = list;
    }

    
Get the number of 'FlightReference' element items.

Returns:
count
    public int sizeFlightReferenceList() {
        return .size();
    }

    
Add a 'FlightReference' element item.

Parameters:
item
    public void addFlightReference(FlightReference item) {
        .add(item);
    }

    
Get 'FlightReference' element item by position.

Parameters:
index
Returns:
item
    public FlightReference getFlightReference(int index) {
        return .get(index);
    }

    
Remove all 'FlightReference' element items.
    public void clearFlightReferenceList() {
        .clear();
    }

    
Get the 'Offer' element value. Merchandising offers associated with the fare or traveler.

Returns:
value
    public AirOfferChoice getOffer() {
        return ;
    }

    
Set the 'Offer' element value. Merchandising offers associated with the fare or traveler.

Parameters:
offer
    public void setOffer(AirOfferChoice offer) {
        this. = offer;
    }

    
Get the 'OTA_PayloadStdAttributes' attributeGroup value.

Returns:
value
        return ;
    }

    
Set the 'OTA_PayloadStdAttributes' attributeGroup value.

Parameters:
OTAPayloadStdAttributes
    public void setOTAPayloadStdAttributes(
            OTAPayloadStdAttributes OTAPayloadStdAttributes) {
        this. = OTAPayloadStdAttributes;
    }

    
Get the 'Type' attribute value. Used to specify the type of pricing requested.

Returns:
value
    public String getType() {
        return ;
    }

    
Set the 'Type' attribute value. Used to specify the type of pricing requested.

Parameters:
type
    public void setType(String type) {
        this. = type;
    }
    
Used to reference flight segments that have already been booked for which pricing is requested. Schema fragment(s) for this class:
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="FlightReference" minOccurs="0" maxOccurs="16">
   <xs:complexType>
     <xs:attribute type="xs:string" use="optional" name="FlightRefNumber"/>
     <xs:attribute type="xs:string" use="optional" name="FareBasisCode"/>
     <xs:attributeGroup ref="ns:DateTimeSpanGroup"/>
     <xs:attribute type="xs:boolean" use="optional" name="OpenJawInd"/>
   </xs:complexType>
 </xs:element>
 
    public static class FlightReference
    {
        private String flightRefNumber;
        private String fareBasisCode;
        private DateTimeSpanGroup dateTimeSpanGroup;
        private Boolean openJawInd;

        
Get the 'FlightRefNumber' attribute value. The flight number(s) for which pricing is requested.

Returns:
value
        public String getFlightRefNumber() {
            return ;
        }

        
Set the 'FlightRefNumber' attribute value. The flight number(s) for which pricing is requested.

Parameters:
flightRefNumber
        public void setFlightRefNumber(String flightRefNumber) {
            this. = flightRefNumber;
        }

        
Get the 'FareBasisCode' attribute value. Used to specify the fare basis code to be used in pricing for these flight segments.

Returns:
value
        public String getFareBasisCode() {
            return ;
        }

        
Set the 'FareBasisCode' attribute value. Used to specify the fare basis code to be used in pricing for these flight segments.

Parameters:
fareBasisCode
        public void setFareBasisCode(String fareBasisCode) {
            this. = fareBasisCode;
        }

        
Get the 'DateTimeSpanGroup' attributeGroup value. Used to specify the not valid before and after dates.

Returns:
value
        public DateTimeSpanGroup getDateTimeSpanGroup() {
            return ;
        }

        
Set the 'DateTimeSpanGroup' attributeGroup value. Used to specify the not valid before and after dates.

Parameters:
dateTimeSpanGroup
        public void setDateTimeSpanGroup(DateTimeSpanGroup dateTimeSpanGroup) {
            this. = dateTimeSpanGroup;
        }

        
Get the 'OpenJawInd' attribute value. When true, the flight segment is to be priced as open jaw. When false, do not price as open jaw.

Returns:
value
        public Boolean getOpenJawInd() {
            return ;
        }

        
Set the 'OpenJawInd' attribute value. When true, the flight segment is to be priced as open jaw. When false, do not price as open jaw.

Parameters:
openJawInd
        public void setOpenJawInd(Boolean openJawInd) {
            this. = openJawInd;
        }
    }
New to GrepCode? Check out our FAQ X