Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingAdjustment

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

Overview

A type that represents the various adjustments you can apply to a bill.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1RepricingAdjustment

Returns a new instance of GoogleCloudChannelV1RepricingAdjustment.



2188
2189
2190
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2188

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

Instance Attribute Details

#percentage_adjustmentGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1PercentageAdjustment

An adjustment that applies a flat markup or markdown to an entire bill. Corresponds to the JSON property percentageAdjustment



2186
2187
2188
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2186

def percentage_adjustment
  @percentage_adjustment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2193
2194
2195
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2193

def update!(**args)
  @percentage_adjustment = args[:percentage_adjustment] if args.key?(:percentage_adjustment)
end