Class: Google::Apis::ContentV2_1::BuiltInSimpleAction

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

Overview

Action that is implemented and performed in (your) third-party application. Represents various functionality that is expected to be available to merchant and will help them with resolving the issue. The application should point the merchant to the place, where they can access the corresponding functionality. If the functionality is not supported, it is recommended to explain the situation to merchant and provide them with instructions how to solve the issue.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BuiltInSimpleAction

Returns a new instance of BuiltInSimpleAction.



2633
2634
2635
# File 'lib/google/apis/content_v2_1/classes.rb', line 2633

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

Instance Attribute Details

#additional_contentGoogle::Apis::ContentV2_1::BuiltInSimpleActionAdditionalContent

Long text from external source. Corresponds to the JSON property additionalContent



2617
2618
2619
# File 'lib/google/apis/content_v2_1/classes.rb', line 2617

def additional_content
  @additional_content
end

#attribute_codeString

The attribute that needs to be updated. Present when the type is EDIT_ITEM_ATTRIBUTE. This field contains a code for attribute, represented in snake_case. You can find a list of product's attributes, with their codes here. Corresponds to the JSON property attributeCode

Returns:

  • (String)


2625
2626
2627
# File 'lib/google/apis/content_v2_1/classes.rb', line 2625

def attribute_code
  @attribute_code
end

#typeString

The type of action that represents a functionality that is expected to be available in third-party application. Corresponds to the JSON property type

Returns:

  • (String)


2631
2632
2633
# File 'lib/google/apis/content_v2_1/classes.rb', line 2631

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2638
2639
2640
2641
2642
# File 'lib/google/apis/content_v2_1/classes.rb', line 2638

def update!(**args)
  @additional_content = args[:additional_content] if args.key?(:additional_content)
  @attribute_code = args[:attribute_code] if args.key?(:attribute_code)
  @type = args[:type] if args.key?(:type)
end