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.



2975
2976
2977
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2975

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



2973
2974
2975
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2973

def percentage_adjustment
  @percentage_adjustment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2980
2981
2982
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2980

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