Fare¶
- class passengersim.core.Fare¶
Bases:
objectFare objects
Methods
__init__(*args, **kwargs)Add a restriction code to this Fare
Set the adjusted Fare, and track the average by DCP
Get the average adjusted Fare amount, by DCP
Get the restriction numbers on this Fare
Get the sales by specified DCP
Get the sales by specified DCP
Get the sales by specified demand segment
How many restrictions do we have?
Set the sales by specified DCP
Set the sales by specified DCP
Attributes
Used for fare adjustment, MR / KI / etc
Advance purchase restriction, in days
Booking class is any string, i.e. 'Y0', 'Q', etc.
Brand is any string, such as basic / premium / etc.
Cabin that this will be sold from, typically F/C/Y.
Carrier object for this Fare
Carrier code for this Fare
Continuous Pricing revenue
Continuous Pricing sold
Destination Airport code
Unique ID for the Fare
Grand Total of Continuous Pricing revenue, excluding burn samples.
Grand Total of Continuous Pricing sold, excluding burn samples.
Grand Total revenue, excluding burn samples.
Grand Total sold, excluding burn samples
Minimum stay, in days
Origin Airport code
Price for this fare
Lower bound on CP adjustment to this fare
Upper bound on CP adjustment to this fare
Set to true if this fare requires a Saturday night stay
Total sold, is reset after each sample
Total sold (business segment), is reset after each sample (deprecated)
- add_restriction()¶
Add a restriction code to this Fare
- adjust_price()¶
Set the adjusted Fare, and track the average by DCP
- adjusted_price¶
Used for fare adjustment, MR / KI / etc
- adv_purch¶
Advance purchase restriction, in days
- booking_class¶
Booking class is any string, i.e. ‘Y0’, ‘Q’, etc.
- brand¶
Brand is any string, such as basic / premium / etc.
- cabin¶
Cabin that this will be sold from, typically F/C/Y. Will default to ‘’ when not using multi-Cabin features
- carrier¶
Carrier object for this Fare
- carrier_name¶
Carrier code for this Fare
- category¶
- cp_revenue¶
Continuous Pricing revenue
- cp_sold¶
Continuous Pricing sold
- dest¶
Destination Airport code
- fare_id¶
Unique ID for the Fare
- get_adjusted_by_dcp()¶
Get the average adjusted Fare amount, by DCP
- get_restrictions()¶
Get the restriction numbers on this Fare
- get_sales_by_dcp()¶
Get the sales by specified DCP
- get_sales_by_dcp2()¶
Get the sales by specified DCP
- get_sales_by_segment()¶
Get the sales by specified demand segment
- gt_cp_revenue¶
Grand Total of Continuous Pricing revenue, excluding burn samples.
- gt_cp_sold¶
Grand Total of Continuous Pricing sold, excluding burn samples.
- gt_revenue¶
Grand Total revenue, excluding burn samples. Note, it’s not necessary (sold*price), especially when using Class-Based Continuous Pricing
- gt_sold¶
Grand Total sold, excluding burn samples
- min_stay¶
Minimum stay, in days
- num_restrictions()¶
How many restrictions do we have?
- orig¶
Origin Airport code
- price¶
Price for this fare
- price_lower_bound¶
Lower bound on CP adjustment to this fare
- price_upper_bound¶
Upper bound on CP adjustment to this fare
- saturday_night_required¶
Set to true if this fare requires a Saturday night stay
- set_sales_by_dcp()¶
Set the sales by specified DCP
- set_sales_by_dcp2()¶
Set the sales by specified DCP
- sold¶
Total sold, is reset after each sample
- sold_business¶
Total sold (business segment), is reset after each sample (deprecated)