Class: Google::Apis::MerchantapiPromotionsV1beta::ItemLevelIssue

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_countriesArray<String>

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

Returns:

  • (Array<String>)


439
440
441
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 439

def applicable_countries
  @applicable_countries
end

#attributeString

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

Returns:

  • (String)


445
446
447
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 445

def attribute
  @attribute
end

#codeString

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

Returns:

  • (String)


450
451
452
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 450

def code
  @code
end

#descriptionString

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

Returns:

  • (String)


455
456
457
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 455

def description
  @description
end

#detailString

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

Returns:

  • (String)


460
461
462
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 460

def detail
  @detail
end

#documentationString

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

Returns:

  • (String)


465
466
467
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 465

def documentation
  @documentation
end

#reporting_contextString

Output only. The destination the issue applies to. Corresponds to the JSON property reportingContext

Returns:

  • (String)


470
471
472
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 470

def reporting_context
  @reporting_context
end

#resolutionString

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

Returns:

  • (String)


475
476
477
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 475

def resolution
  @resolution
end

#severityString

Output only. How this issue affects serving of the promotion. Corresponds to the JSON property severity

Returns:

  • (String)


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