Class: Google::Apis::ContentV2_1::OrderMerchantProvidedAnnotation
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::OrderMerchantProvidedAnnotation
- 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
-
#key ⇒ String
Key for additional merchant provided (as key-value pairs) annotation about the line item.
-
#value ⇒ String
Value for additional merchant provided (as key-value pairs) annotation about the line item.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrderMerchantProvidedAnnotation
constructor
A new instance of OrderMerchantProvidedAnnotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrderMerchantProvidedAnnotation
Returns a new instance of OrderMerchantProvidedAnnotation.
5822 5823 5824 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5822 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
Key for additional merchant provided (as key-value pairs) annotation about the
line item.
Corresponds to the JSON property key
5814 5815 5816 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5814 def key @key end |
#value ⇒ String
Value for additional merchant provided (as key-value pairs) annotation about
the line item.
Corresponds to the JSON property value
5820 5821 5822 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5820 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5827 5828 5829 5830 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5827 def update!(**args) @key = args[:key] if args.key?(:key) @value = args[:value] if args.key?(:value) end |