Class: Google::Apis::DfareportingV3_1::Pricing
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV3_1::Pricing
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dfareporting_v3_1/classes.rb,
generated/google/apis/dfareporting_v3_1/representations.rb,
generated/google/apis/dfareporting_v3_1/representations.rb
Overview
Pricing Information
Instance Attribute Summary collapse
-
#cap_cost_type ⇒ String
Cap cost type of this inventory item.
-
#end_date ⇒ Date
End date of this inventory item.
-
#flights ⇒ Array<Google::Apis::DfareportingV3_1::Flight>
Flights of this inventory item.
-
#group_type ⇒ String
Group type of this inventory item if it represents a placement group.
-
#pricing_type ⇒ String
Pricing type of this inventory item.
-
#start_date ⇒ Date
Start date of this inventory item.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Pricing
constructor
A new instance of Pricing.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Pricing
Returns a new instance of Pricing
9179 9180 9181 |
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 9179 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cap_cost_type ⇒ String
Cap cost type of this inventory item.
Corresponds to the JSON property capCostType
9144 9145 9146 |
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 9144 def cap_cost_type @cap_cost_type end |
#end_date ⇒ Date
End date of this inventory item.
Corresponds to the JSON property endDate
9149 9150 9151 |
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 9149 def end_date @end_date end |
#flights ⇒ Array<Google::Apis::DfareportingV3_1::Flight>
Flights of this inventory item. A flight (a.k.a. pricing period) represents
the inventory item pricing information for a specific period of time.
Corresponds to the JSON property flights
9155 9156 9157 |
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 9155 def flights @flights end |
#group_type ⇒ String
Group type of this inventory item if it represents a placement group. Is null
otherwise. There are two type of placement groups:
PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items
that acts as a single pricing point for a group of tags.
PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that not
only acts as a single pricing point, but also assumes that all the tags in it
will be served at the same time. A roadblock requires one of its assigned
inventory items to be marked as primary.
Corresponds to the JSON property groupType
9167 9168 9169 |
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 9167 def group_type @group_type end |
#pricing_type ⇒ String
Pricing type of this inventory item.
Corresponds to the JSON property pricingType
9172 9173 9174 |
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 9172 def pricing_type @pricing_type end |
#start_date ⇒ Date
Start date of this inventory item.
Corresponds to the JSON property startDate
9177 9178 9179 |
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 9177 def start_date @start_date end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9184 9185 9186 9187 9188 9189 9190 9191 |
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 9184 def update!(**args) @cap_cost_type = args[:cap_cost_type] if args.key?(:cap_cost_type) @end_date = args[:end_date] if args.key?(:end_date) @flights = args[:flights] if args.key?(:flights) @group_type = args[:group_type] if args.key?(:group_type) @pricing_type = args[:pricing_type] if args.key?(:pricing_type) @start_date = args[:start_date] if args.key?(:start_date) end |