Class: Google::Apis::DfareportingV3_5::Pricing

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dfareporting_v3_5/classes.rb,
lib/google/apis/dfareporting_v3_5/representations.rb,
lib/google/apis/dfareporting_v3_5/representations.rb

Overview

Pricing Information

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Pricing

Returns a new instance of Pricing.



9410
9411
9412
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 9410

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cap_cost_typeString

Cap cost type of this inventory item. Corresponds to the JSON property capCostType

Returns:

  • (String)


9375
9376
9377
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 9375

def cap_cost_type
  @cap_cost_type
end

#end_dateDate

Corresponds to the JSON property endDate

Returns:

  • (Date)


9380
9381
9382
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 9380

def end_date
  @end_date
end

#flightsArray<Google::Apis::DfareportingV3_5::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



9386
9387
9388
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 9386

def flights
  @flights
end

#group_typeString

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

Returns:

  • (String)


9398
9399
9400
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 9398

def group_type
  @group_type
end

#pricing_typeString

Pricing type of this inventory item. Corresponds to the JSON property pricingType

Returns:

  • (String)


9403
9404
9405
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 9403

def pricing_type
  @pricing_type
end

#start_dateDate

Corresponds to the JSON property startDate

Returns:

  • (Date)


9408
9409
9410
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 9408

def start_date
  @start_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9415
9416
9417
9418
9419
9420
9421
9422
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 9415

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