Fare

class passengersim.core.Fare

Bases: object

Fare objects

Methods

__init__(*args, **kwargs)

add_restriction

Add a restriction code to this Fare

adjust_price

Set the adjusted Fare, and track the average by DCP

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

num_restrictions

How many restrictions do we have?

set_sales_by_dcp

Set the sales by specified DCP

set_sales_by_dcp2

Set the sales by specified DCP

Attributes

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.

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

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.

gt_sold

Grand Total sold, excluding burn samples

min_stay

Minimum stay, in days

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

sold

Total sold, is reset after each sample

sold_business

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)