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

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) ⇒ OrderMerchantProvidedAnnotation

Returns a new instance of OrderMerchantProvidedAnnotation.



4914
4915
4916
# File 'generated/google/apis/content_v2_1/classes.rb', line 4914

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)


4906
4907
4908
# File 'generated/google/apis/content_v2_1/classes.rb', line 4906

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)


4912
4913
4914
# File 'generated/google/apis/content_v2_1/classes.rb', line 4912

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4919
4920
4921
4922
# File 'generated/google/apis/content_v2_1/classes.rb', line 4919

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