1 #ifndef __SIMFQT_BOM_FARERULESTRUCT_HPP
2 #define __SIMFQT_BOM_FARERULESTRUCT_HPP
11 #include <stdair/stdair_demand_types.hpp>
12 #include <stdair/stdair_inventory_types.hpp>
13 #include <stdair/basic/StructAbstract.hpp>
14 #include <stdair/basic/BasParserHelperTypes.hpp>
51 return _dateRangeStart;
61 return _timeRangeStart;
75 const stdair::CityCode_T
getPOS ()
const {
86 return _advancePurchase;
101 return _nonRefundable;
126 return _airlineCodeList.size();
131 return _classCodeList.size();
136 return _airlineCodeList;
141 return _classCodeList;
159 _fareId = iFareQuoteID;
169 _destination = iDestination;
174 _tripType = iTripType;
179 _dateRangeStart = iDateRangeStart;
184 _dateRangeEnd = iDateRangeEnd;
189 _timeRangeStart = iTimeRangeStart;
194 _timeRangeEnd = iTimeRangeEnd;
199 _cabinCode = iCabinCode;
203 void setPOS (
const stdair::CityCode_T& iPOS) {
214 _advancePurchase = iAdvancePurchase;
219 _saturdayStay = iSaturdayStay;
224 _changeFees = iChangeFees;
229 _nonRefundable = iNonRefundable;
234 _minimumStay = iMinimumStay;
238 void setFare (
const stdair::PriceValue_T& iFare) {
244 _airlineCode = iAirlineCode;
249 _classCode = iClassCode;
254 _airlineCodeList.clear();
259 _classCodeList.clear();
264 _airlineCodeList.push_back (iAirlineCode);
269 _classCodeList.push_back (iClassCode);
290 stdair::AirportCode_T _origin;
293 stdair::AirportCode_T _destination;
296 stdair::TripType_T _tripType;
299 stdair::Date_T _dateRangeStart;
302 stdair::Date_T _dateRangeEnd;
305 stdair::Duration_T _timeRangeStart;
308 stdair::Duration_T _timeRangeEnd;
311 stdair::CabinCode_T _cabinCode;
314 stdair::CityCode_T _pos;
317 stdair::ChannelLabel_T _channel;
320 stdair::DayDuration_T _advancePurchase;
323 stdair::SaturdayStay_T _saturdayStay;
326 stdair::ChangeFees_T _changeFees;
329 stdair::NonRefundable_T _nonRefundable;
332 stdair::DayDuration_T _minimumStay;
335 stdair::PriceValue_T _fare;
338 stdair::AirlineCode_T _airlineCode;
341 stdair::ClassCode_T _classCode;
345 stdair::AirlineCodeList_T _airlineCodeList;
349 stdair::ClassList_StringList_T _classCodeList;
354 #endif // __SIMFQT_BOM_FARERULESTRUCT_HPP