Class MerchantsupportResource.TriggeractionRequest
Start an action. The action can be requested by merchants in third-party application. Before merchants can
request the action, the third-party application needs to show them action specific content and display a
user input form. The action can be successfully started only once all required
inputs are provided. If any
required
input is missing, or invalid value was provided, the service will return 400 error. Validation
errors will contain Ids for all problematic field together with translated, human readable error messages
that can be shown to the user.
Inheritance
Inherited Members
Namespace: Google.Apis.ShoppingContent.v2_1
Assembly: Google.Apis.ShoppingContent.v2_1.dll
Syntax
public class MerchantsupportResource.TriggeractionRequest : ShoppingContentBaseServiceRequest<TriggerActionResponse>, IClientServiceRequest<TriggerActionResponse>, IClientServiceRequest
Constructors
TriggeractionRequest(IClientService, TriggerActionPayload, long)
Constructs a new Triggeraction request.
Declaration
public TriggeractionRequest(IClientService service, TriggerActionPayload body, long merchantId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
TriggerActionPayload | body | |
long | merchantId |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
LanguageCode
Optional. Language code IETF BCP 47 syntax used to localize the
response. If not set, the result will be in default language en-US
.
Declaration
[RequestParameter("languageCode", RequestParameterType.Query)]
public virtual string LanguageCode { get; set; }
Property Value
Type | Description |
---|---|
string |
MerchantId
Required. The ID of the merchant's account.
Declaration
[RequestParameter("merchantId", RequestParameterType.Path)]
public virtual long MerchantId { get; }
Property Value
Type | Description |
---|---|
long |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Triggeraction parameter list.
Declaration
protected override void InitParameters()