Class: Google::Apis::ContentV2_1::ProductStatusItemLevelIssue

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProductStatusItemLevelIssue

Returns a new instance of ProductStatusItemLevelIssue.



10043
10044
10045
# File 'lib/google/apis/content_v2_1/classes.rb', line 10043

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


10001
10002
10003
# File 'lib/google/apis/content_v2_1/classes.rb', line 10001

def applicable_countries
  @applicable_countries
end

#attribute_nameString

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

Returns:

  • (String)


10006
10007
10008
# File 'lib/google/apis/content_v2_1/classes.rb', line 10006

def attribute_name
  @attribute_name
end

#codeString

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

Returns:

  • (String)


10011
10012
10013
# File 'lib/google/apis/content_v2_1/classes.rb', line 10011

def code
  @code
end

#descriptionString

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

Returns:

  • (String)


10016
10017
10018
# File 'lib/google/apis/content_v2_1/classes.rb', line 10016

def description
  @description
end

#destinationString

The destination the issue applies to. Corresponds to the JSON property destination

Returns:

  • (String)


10021
10022
10023
# File 'lib/google/apis/content_v2_1/classes.rb', line 10021

def destination
  @destination
end

#detailString

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

Returns:

  • (String)


10026
10027
10028
# File 'lib/google/apis/content_v2_1/classes.rb', line 10026

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)


10031
10032
10033
# File 'lib/google/apis/content_v2_1/classes.rb', line 10031

def documentation
  @documentation
end

#resolutionString

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

Returns:

  • (String)


10036
10037
10038
# File 'lib/google/apis/content_v2_1/classes.rb', line 10036

def resolution
  @resolution
end

#servabilityString

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

Returns:

  • (String)


10041
10042
10043
# File 'lib/google/apis/content_v2_1/classes.rb', line 10041

def servability
  @servability
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
# File 'lib/google/apis/content_v2_1/classes.rb', line 10048

def update!(**args)
  @applicable_countries = args[:applicable_countries] if args.key?(:applicable_countries)
  @attribute_name = args[:attribute_name] if args.key?(:attribute_name)
  @code = args[:code] if args.key?(:code)
  @description = args[:description] if args.key?(:description)
  @destination = args[:destination] if args.key?(:destination)
  @detail = args[:detail] if args.key?(:detail)
  @documentation = args[:documentation] if args.key?(:documentation)
  @resolution = args[:resolution] if args.key?(:resolution)
  @servability = args[:servability] if args.key?(:servability)
end