Class: Google::Apis::ContentV2::OrderMerchantProvidedAnnotation

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2/classes.rb,
lib/google/apis/content_v2/representations.rb,
lib/google/apis/content_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrderMerchantProvidedAnnotation

Returns a new instance of OrderMerchantProvidedAnnotation.



4724
4725
4726
# File 'lib/google/apis/content_v2/classes.rb', line 4724

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)


4716
4717
4718
# File 'lib/google/apis/content_v2/classes.rb', line 4716

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)


4722
4723
4724
# File 'lib/google/apis/content_v2/classes.rb', line 4722

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4729
4730
4731
4732
# File 'lib/google/apis/content_v2/classes.rb', line 4729

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