Class: Google::Apis::MerchantapiReportsV1beta::ItemIssueType

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

Overview

Issue type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ItemIssueType

Returns a new instance of ItemIssueType.



707
708
709
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 707

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

Instance Attribute Details

#canonical_attributeString

Canonical attribute name for attribute-specific issues. Corresponds to the JSON property canonicalAttribute

Returns:

  • (String)


699
700
701
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 699

def canonical_attribute
  @canonical_attribute
end

#codeString

Error code of the issue, equivalent to the code of Product issues. Corresponds to the JSON property code

Returns:

  • (String)


705
706
707
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 705

def code
  @code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



712
713
714
715
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 712

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