Class: Google::Apis::ContentV2_1::OrderMerchantProvidedAnnotation

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrderMerchantProvidedAnnotation

Returns a new instance of OrderMerchantProvidedAnnotation.



5786
5787
5788
# File 'lib/google/apis/content_v2_1/classes.rb', line 5786

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

Instance Attribute Details

#keyString

Key for additional merchant provided (as key-value pairs) annotation about the line item. Corresponds to the JSON property key

Returns:

  • (String)


5778
5779
5780
# File 'lib/google/apis/content_v2_1/classes.rb', line 5778

def key
  @key
end

#valueString

Value for additional merchant provided (as key-value pairs) annotation about the line item. Corresponds to the JSON property value

Returns:

  • (String)


5784
5785
5786
# File 'lib/google/apis/content_v2_1/classes.rb', line 5784

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5791
5792
5793
5794
# File 'lib/google/apis/content_v2_1/classes.rb', line 5791

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