Class: Google::Apis::ContentV2_1::MonetaryAmount
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::MonetaryAmount
- 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_amount ⇒ Google::Apis::ContentV2_1::Price
The pre-tax or post-tax price depends on the location of the order.
-
#tax_amount ⇒ Google::Apis::ContentV2_1::Price
Tax value, present only for countries where price attribute excludes tax (e.g. US).
Instance Method Summary collapse
-
#initialize(**args) ⇒ MonetaryAmount
constructor
A new instance of MonetaryAmount.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MonetaryAmount
Returns a new instance of MonetaryAmount.
4920 4921 4922 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4920 def initialize(**args) update!(**args) end |
Instance Attribute Details
#price_amount ⇒ Google::Apis::ContentV2_1::Price
The pre-tax or post-tax price depends on the location of the order. - For
countries (e.g. US) where price attribute excludes tax, this field corresponds
to the pre-tax value. - For coutries (e.g. France) where price attribute
includes tax, this field corresponds to the post-tax value .
Corresponds to the JSON property priceAmount
4912 4913 4914 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4912 def price_amount @price_amount end |
#tax_amount ⇒ Google::Apis::ContentV2_1::Price
Tax value, present only for countries where price attribute excludes tax (e.g.
US). No tax is referenced as 0 value with the corresponding currency.
Corresponds to the JSON property taxAmount
4918 4919 4920 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4918 def tax_amount @tax_amount end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4925 4926 4927 4928 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4925 def update!(**args) @price_amount = args[:price_amount] if args.key?(:price_amount) @tax_amount = args[:tax_amount] if args.key?(:tax_amount) end |