Class: Google::Apis::ContentV2_1::OrderreturnsPartialRefund

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OrderreturnsPartialRefund

Returns a new instance of OrderreturnsPartialRefund.



5972
5973
5974
# File 'generated/google/apis/content_v2_1/classes.rb', line 5972

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

Instance Attribute Details

#price_amountGoogle::Apis::ContentV2_1::Price

The pre-tax or post-tax amount to be refunded, depending on the location of the order. Corresponds to the JSON property priceAmount



5964
5965
5966
# File 'generated/google/apis/content_v2_1/classes.rb', line 5964

def price_amount
  @price_amount
end

#tax_amountGoogle::Apis::ContentV2_1::Price

Tax amount to be refunded. Note: This has different meaning depending on the location of the order. Corresponds to the JSON property taxAmount



5970
5971
5972
# File 'generated/google/apis/content_v2_1/classes.rb', line 5970

def tax_amount
  @tax_amount
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5977
5978
5979
5980
# File 'generated/google/apis/content_v2_1/classes.rb', line 5977

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