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.



3002
3003
3004
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3002

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



3000
3001
3002
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3000

def percentage_adjustment
  @percentage_adjustment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3007
3008
3009
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3007

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