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.



2681
2682
2683
# File 'lib/google/apis/content_v2_1/classes.rb', line 2681

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



2665
2666
2667
# File 'lib/google/apis/content_v2_1/classes.rb', line 2665

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)


2673
2674
2675
# File 'lib/google/apis/content_v2_1/classes.rb', line 2673

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)


2679
2680
2681
# File 'lib/google/apis/content_v2_1/classes.rb', line 2679

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2686
2687
2688
2689
2690
# File 'lib/google/apis/content_v2_1/classes.rb', line 2686

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