Class: Google::Apis::ContentV2_1::ProductIssue
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ProductIssue
- 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
Overview
An issue affecting specific product.
Instance Attribute Summary collapse
-
#actions ⇒ Array<Google::Apis::ContentV2_1::Action>
A list of actionable steps that can be executed to solve the issue.
-
#impact ⇒ Google::Apis::ContentV2_1::ProductIssueImpact
Overall impact of product issue.
-
#prerendered_content ⇒ String
Details of the issue as a pre-rendered HTML.
-
#title ⇒ String
Title of the issue.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductIssue
constructor
A new instance of ProductIssue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ProductIssue
Returns a new instance of ProductIssue.
9666 9667 9668 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9666 def initialize(**args) update!(**args) end |
Instance Attribute Details
#actions ⇒ Array<Google::Apis::ContentV2_1::Action>
A list of actionable steps that can be executed to solve the issue. An example
is requesting a re-review or providing arguments when merchant disagrees with
the issue. Actions that are supported in (your) third-party application can be
rendered as buttons and should be available to merchant when they expand the
issue.
Corresponds to the JSON property actions
9612 9613 9614 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9612 def actions @actions end |
#impact ⇒ Google::Apis::ContentV2_1::ProductIssueImpact
Overall impact of product issue.
Corresponds to the JSON property impact
9617 9618 9619 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9617 def impact @impact end |
#prerendered_content ⇒ String
Details of the issue as a pre-rendered HTML. HTML elements contain CSS classes
that can be used to customize the style of the content. Always sanitize the
HTML before embedding it directly to your application. The sanitizer needs to
allow basic HTML tags, such as: div
, span
, p
, a
, ul
, li
, table
,
tr
, td
. For example, you can use DOMPurify. CSS classes: * issue-detail
- top level container for the detail
of the issue * callout-banners
- section of the issue-detail
with callout
banners * callout-banner
- single callout banner, inside callout-banners
*
callout-banner-info
- callout with important information (default) *
callout-banner-warning
- callout with a warning * callout-banner-error
-
callout informing about an error (most severe) * issue-content
- section of
the issue-detail
, contains multiple content-element
* content-element
-
content element such as a list, link or paragraph, inside issue-content
*
root-causes
- unordered list with items describing root causes of the issue,
inside issue-content
* root-causes-intro
- intro text before the root-
causes
list, inside issue-content
* segment
- section of the text, span
inside paragraph * segment-attribute
- section of the text that represents a
product attribute, for example 'image_link' * segment-literal
- section of
the text that contains a special value, for example '0-1000 kg' * segment-
bold
- section of the text that should be rendered as bold * segment-italic
- section of the text that should be rendered as italic *
tooltip
- used on paragraphs that should be rendered with a tooltip. A section of the text in such a paragraph will have a classtooltip-text
and is intended to be shown in a mouse over dialog. If the style is not used, thetooltip-text
section would be shown on a new line, after the main part of the text. *tooltip-text
- marks a section of the text within a
tooltip
, that is intended to be shown in a mouse over dialog. *tooltip-icon
- marks a section of the text within atooltip
, that can be replaced with a tooltip icon, for example '?' or 'i'. By default, this section contains abr
tag, that is separating the main text and the tooltip text when the style is not used. *tooltip-style- question
- the tooltip shows helpful information, can use the '?' as an icon. tooltip-style-info
- the tooltip adds additional information fitting to the context, can use the 'i' as an icon. *content-moderation
- marks the paragraph that explains how the issue was identified. *list-intro
- marks the paragraph that contains an intro for a list. This paragraph will be always followed by a list. *new-element
- Present for new elements added to the pre-rendered content in the future. To make sure that a new content element does not break your style, you can hide everything with this class. Corresponds to the JSON propertyprerenderedContent
9659 9660 9661 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9659 def prerendered_content @prerendered_content end |
#title ⇒ String
Title of the issue.
Corresponds to the JSON property title
9664 9665 9666 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9664 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9671 9672 9673 9674 9675 9676 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9671 def update!(**args) @actions = args[:actions] if args.key?(:actions) @impact = args[:impact] if args.key?(:impact) @prerendered_content = args[:prerendered_content] if args.key?(:prerendered_content) @title = args[:title] if args.key?(:title) end |