Class: Google::Apis::ContentV2_1::OrderLineItemAdjustment
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::OrderLineItemAdjustment
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#price_adjustment ⇒ Google::Apis::ContentV2_1::Price
Adjustment for total price of the line item.
-
#tax_adjustment ⇒ Google::Apis::ContentV2_1::Price
Adjustment for total tax of the line item.
-
#type ⇒ String
Type of this adjustment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrderLineItemAdjustment
constructor
A new instance of OrderLineItemAdjustment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrderLineItemAdjustment
Returns a new instance of OrderLineItemAdjustment.
5937 5938 5939 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5937 def initialize(**args) update!(**args) end |
Instance Attribute Details
#price_adjustment ⇒ Google::Apis::ContentV2_1::Price
Adjustment for total price of the line item.
Corresponds to the JSON property priceAdjustment
5925 5926 5927 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5925 def price_adjustment @price_adjustment end |
#tax_adjustment ⇒ Google::Apis::ContentV2_1::Price
Adjustment for total tax of the line item.
Corresponds to the JSON property taxAdjustment
5930 5931 5932 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5930 def tax_adjustment @tax_adjustment end |
#type ⇒ String
Type of this adjustment. Acceptable values are: - "promotion"
Corresponds to the JSON property type
5935 5936 5937 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5935 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5942 5943 5944 5945 5946 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5942 def update!(**args) @price_adjustment = args[:price_adjustment] if args.key?(:price_adjustment) @tax_adjustment = args[:tax_adjustment] if args.key?(:tax_adjustment) @type = args[:type] if args.key?(:type) end |