Class: Google::Apis::MerchantapiPromotionsV1beta::ItemLevelIssue
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiPromotionsV1beta::ItemLevelIssue
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_promotions_v1beta/classes.rb,
lib/google/apis/merchantapi_promotions_v1beta/representations.rb,
lib/google/apis/merchantapi_promotions_v1beta/representations.rb
Overview
The issue associated with the promotion.
Instance Attribute Summary collapse
-
#applicable_countries ⇒ Array<String>
Output only.
-
#attribute ⇒ String
Output only.
-
#code ⇒ String
Output only.
-
#description ⇒ String
Output only.
-
#detail ⇒ String
Output only.
-
#documentation ⇒ String
Output only.
-
#reporting_context ⇒ String
Output only.
-
#resolution ⇒ String
Output only.
-
#severity ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ItemLevelIssue
constructor
A new instance of ItemLevelIssue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ItemLevelIssue
Returns a new instance of ItemLevelIssue.
482 483 484 |
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 482 def initialize(**args) update!(**args) end |
Instance Attribute Details
#applicable_countries ⇒ Array<String>
Output only. List of country codes (ISO 3166-1 alpha-2) where issue applies to
the offer.
Corresponds to the JSON property applicableCountries
439 440 441 |
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 439 def applicable_countries @applicable_countries end |
#attribute ⇒ String
Output only. The attribute's name, if the issue is caused by a single
attribute.
Corresponds to the JSON property attribute
445 446 447 |
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 445 def attribute @attribute end |
#code ⇒ String
Output only. The error code of the issue.
Corresponds to the JSON property code
450 451 452 |
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 450 def code @code end |
#description ⇒ String
Output only. A short issue description in English.
Corresponds to the JSON property description
455 456 457 |
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 455 def description @description end |
#detail ⇒ String
Output only. A detailed issue description in English.
Corresponds to the JSON property detail
460 461 462 |
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 460 def detail @detail end |
#documentation ⇒ String
Output only. The URL of a web page to help with resolving this issue.
Corresponds to the JSON property documentation
465 466 467 |
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 465 def documentation @documentation end |
#reporting_context ⇒ String
Output only. The destination the issue applies to.
Corresponds to the JSON property reportingContext
470 471 472 |
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 470 def reporting_context @reporting_context end |
#resolution ⇒ String
Output only. Whether the issue can be resolved by the merchant.
Corresponds to the JSON property resolution
475 476 477 |
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 475 def resolution @resolution end |
#severity ⇒ String
Output only. How this issue affects serving of the promotion.
Corresponds to the JSON property severity
480 481 482 |
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 480 def severity @severity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
487 488 489 490 491 492 493 494 495 496 497 |
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 487 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 |