Class: Google::Apis::DfareportingV5::BillingRate

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BillingRate

Returns a new instance of BillingRate.



1546
1547
1548
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1546

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

Instance Attribute Details

#currency_codeString

Billing currency code in ISO 4217 format. Corresponds to the JSON property currencyCode

Returns:

  • (String)


1503
1504
1505
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1503

def currency_code
  @currency_code
end

#end_dateString

End date of this billing rate. Corresponds to the JSON property endDate

Returns:

  • (String)


1508
1509
1510
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1508

def end_date
  @end_date
end

#idFixnum

ID of this billing rate. Corresponds to the JSON property id

Returns:

  • (Fixnum)


1513
1514
1515
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1513

def id
  @id
end

#nameString

Name of this billing rate. This must be less than 256 characters long. Corresponds to the JSON property name

Returns:

  • (String)


1518
1519
1520
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1518

def name
  @name
end

#rate_in_microsFixnum

Flat rate in micros of this billing rate. This cannot co-exist with tiered rate. Corresponds to the JSON property rateInMicros

Returns:

  • (Fixnum)


1524
1525
1526
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1524

def rate_in_micros
  @rate_in_micros
end

#start_dateString

Start date of this billing rate. Corresponds to the JSON property startDate

Returns:

  • (String)


1529
1530
1531
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1529

def start_date
  @start_date
end

#tiered_ratesArray<Google::Apis::DfareportingV5::BillingRateTieredRate>

Tiered rate of this billing rate. This cannot co-exist with flat rate. Corresponds to the JSON property tieredRates



1534
1535
1536
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1534

def tiered_rates
  @tiered_rates
end

#typeString

Type of this billing rate. Corresponds to the JSON property type

Returns:

  • (String)


1539
1540
1541
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1539

def type
  @type
end

#unit_of_measureString

Unit of measure for this billing rate. Corresponds to the JSON property unitOfMeasure

Returns:

  • (String)


1544
1545
1546
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1544

def unit_of_measure
  @unit_of_measure
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1551

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