Class: Google::Apis::ContentV2_1::BuiltInUserInputAction

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. The application needs to show an additional content and input form to the merchant. They can start the action only when they provided all required inputs. The application will request processing of the action by calling the triggeraction method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BuiltInUserInputAction

Returns a new instance of BuiltInUserInputAction.



2741
2742
2743
# File 'lib/google/apis/content_v2_1/classes.rb', line 2741

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

Instance Attribute Details

#action_contextString

Internal details. Not for display but need to be sent back when triggering the action. Corresponds to the JSON property actionContext

Returns:

  • (String)


2731
2732
2733
# File 'lib/google/apis/content_v2_1/classes.rb', line 2731

def action_context
  @action_context
end

#flowsArray<Google::Apis::ContentV2_1::ActionFlow>

Actions may provide multiple different flows. Merchant selects one that fits best to their intent. Selecting the flow is the first step in user's interaction with the action. It affects what input fields will be available and required and also how the request will be processed. Corresponds to the JSON property flows



2739
2740
2741
# File 'lib/google/apis/content_v2_1/classes.rb', line 2739

def flows
  @flows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2746
2747
2748
2749
# File 'lib/google/apis/content_v2_1/classes.rb', line 2746

def update!(**args)
  @action_context = args[:action_context] if args.key?(:action_context)
  @flows = args[:flows] if args.key?(:flows)
end