Class: Google::Apis::DfareportingV4::BillingRate
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV4::BillingRate
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v4/classes.rb,
lib/google/apis/dfareporting_v4/representations.rb,
lib/google/apis/dfareporting_v4/representations.rb
Instance Attribute Summary collapse
-
#currency_code ⇒ String
Billing currency code in ISO 4217 format.
-
#end_date ⇒ String
End date of this billing rate.
-
#id ⇒ Fixnum
ID of this billing rate.
-
#name ⇒ String
Name of this billing rate.
-
#rate_in_micros ⇒ Fixnum
Flat rate in micros of this billing rate.
-
#start_date ⇒ String
Start date of this billing rate.
-
#tiered_rates ⇒ Array<Google::Apis::DfareportingV4::BillingRateTieredRate>
Tiered rate of this billing rate.
-
#type ⇒ String
Type of this billing rate.
-
#unit_of_measure ⇒ String
Unit of measure for this billing rate.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BillingRate
constructor
A new instance of BillingRate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BillingRate
Returns a new instance of BillingRate.
1600 1601 1602 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1600 def initialize(**args) update!(**args) end |
Instance Attribute Details
#currency_code ⇒ String
Billing currency code in ISO 4217 format.
Corresponds to the JSON property currencyCode
1557 1558 1559 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1557 def currency_code @currency_code end |
#end_date ⇒ String
End date of this billing rate.
Corresponds to the JSON property endDate
1562 1563 1564 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1562 def end_date @end_date end |
#id ⇒ Fixnum
ID of this billing rate.
Corresponds to the JSON property id
1567 1568 1569 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1567 def id @id end |
#name ⇒ String
Name of this billing rate. This must be less than 256 characters long.
Corresponds to the JSON property name
1572 1573 1574 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1572 def name @name end |
#rate_in_micros ⇒ Fixnum
Flat rate in micros of this billing rate. This cannot co-exist with tiered
rate.
Corresponds to the JSON property rateInMicros
1578 1579 1580 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1578 def rate_in_micros @rate_in_micros end |
#start_date ⇒ String
Start date of this billing rate.
Corresponds to the JSON property startDate
1583 1584 1585 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1583 def start_date @start_date end |
#tiered_rates ⇒ Array<Google::Apis::DfareportingV4::BillingRateTieredRate>
Tiered rate of this billing rate. This cannot co-exist with flat rate.
Corresponds to the JSON property tieredRates
1588 1589 1590 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1588 def tiered_rates @tiered_rates end |
#type ⇒ String
Type of this billing rate.
Corresponds to the JSON property type
1593 1594 1595 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1593 def type @type end |
#unit_of_measure ⇒ String
Unit of measure for this billing rate.
Corresponds to the JSON property unitOfMeasure
1598 1599 1600 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1598 def unit_of_measure @unit_of_measure end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1605 def update!(**args) @currency_code = args[:currency_code] if args.key?(:currency_code) @end_date = args[:end_date] if args.key?(:end_date) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) @rate_in_micros = args[:rate_in_micros] if args.key?(:rate_in_micros) @start_date = args[:start_date] if args.key?(:start_date) @tiered_rates = args[:tiered_rates] if args.key?(:tiered_rates) @type = args[:type] if args.key?(:type) @unit_of_measure = args[:unit_of_measure] if args.key?(:unit_of_measure) end |