Class: Google::Apis::ContentV2_1::OrderLineItemAdjustment
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::OrderLineItemAdjustment
- Defined in:
- generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ OrderLineItemAdjustment
Returns a new instance of OrderLineItemAdjustment
3888 3889 3890 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3888 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
3876 3877 3878 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3876 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
3881 3882 3883 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3881 def tax_adjustment @tax_adjustment end |
#type ⇒ String
Type of this adjustment.
Corresponds to the JSON property type
3886 3887 3888 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3886 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3893 3894 3895 3896 3897 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3893 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 |