Class: Google::Apis::MerchantapiProductsV1beta::ItemLevelIssue

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

Overview

The ItemLevelIssue of the product status.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ItemLevelIssue

Returns a new instance of ItemLevelIssue.



982
983
984
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 982

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

Instance Attribute Details

#applicable_countriesArray<String>

List of country codes (ISO 3166-1 alpha-2) where issue applies to the offer. Corresponds to the JSON property applicableCountries

Returns:

  • (Array<String>)


940
941
942
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 940

def applicable_countries
  @applicable_countries
end

#attributeString

The attribute's name, if the issue is caused by a single attribute. Corresponds to the JSON property attribute

Returns:

  • (String)


945
946
947
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 945

def attribute
  @attribute
end

#codeString

The error code of the issue. Corresponds to the JSON property code

Returns:

  • (String)


950
951
952
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 950

def code
  @code
end

#descriptionString

A short issue description in English. Corresponds to the JSON property description

Returns:

  • (String)


955
956
957
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 955

def description
  @description
end

#detailString

A detailed issue description in English. Corresponds to the JSON property detail

Returns:

  • (String)


960
961
962
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 960

def detail
  @detail
end

#documentationString

The URL of a web page to help with resolving this issue. Corresponds to the JSON property documentation

Returns:

  • (String)


965
966
967
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 965

def documentation
  @documentation
end

#reporting_contextString

The reporting context the issue applies to. Corresponds to the JSON property reportingContext

Returns:

  • (String)


970
971
972
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 970

def reporting_context
  @reporting_context
end

#resolutionString

Whether the issue can be resolved by the merchant. Corresponds to the JSON property resolution

Returns:

  • (String)


975
976
977
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 975

def resolution
  @resolution
end

#severityString

How this issue affects serving of the offer. Corresponds to the JSON property severity

Returns:

  • (String)


980
981
982
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 980

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



987
988
989
990
991
992
993
994
995
996
997
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 987

def update!(**args)
  @applicable_countries = args[:applicable_countries] if args.key?(:applicable_countries)
  @attribute = args[:attribute] if args.key?(:attribute)
  @code = args[:code] if args.key?(:code)
  @description = args[:description] if args.key?(:description)
  @detail = args[:detail] if args.key?(:detail)
  @documentation = args[:documentation] if args.key?(:documentation)
  @reporting_context = args[:reporting_context] if args.key?(:reporting_context)
  @resolution = args[:resolution] if args.key?(:resolution)
  @severity = args[:severity] if args.key?(:severity)
end