Class: Google::Apis::ContentV2sandbox::OrderMerchantProvidedAnnotation

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2sandbox/classes.rb,
generated/google/apis/content_v2sandbox/representations.rb,
generated/google/apis/content_v2sandbox/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



751
752
753
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 751

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)


743
744
745
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 743

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)


749
750
751
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 749

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



756
757
758
759
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 756

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