Transaction Action of GS2-Distributor
VerifyAction
Gs2Distributor:IfExpressionByUserId
Validate the condition and switch the contents of the consume action
Actions for which quantity can be specified: NO
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
userId | string | Set #{userId} to replace the currently logged in user ID. |
condition | VerifyAction | Condition |
trueActions | ConsumeAction[] | List of consume actions to be executed when the condition is true |
falseActions | ConsumeAction[] | List of consume actions to be executed when the condition is false |
multiplyValueSpecifyingQuantity | bool | Whether to multiply the value used for verification when specifying the quantity |
timeOffsetToken | string | Time offset token |
{
"action": "Gs2Distributor:IfExpressionByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User Id",
"condition": {
"action": "[string]Types of actions to be performed in the verify task",
"request": "[string]JSON of request"
},
"trueActions": [
{
"action": "[string]Types of actions to be performed in the consume action",
"request": "[string]JSON of request"
}
],
"falseActions": [
{
"action": "[string]Types of actions to be performed in the consume action",
"request": "[string]JSON of request"
}
],
"multiplyValueSpecifyingQuantity": "[bool]Whether to multiply the value used for verification when specifying the quantity",
"timeOffsetToken": "[string]Time offset token"
}
}
action: Gs2Distributor:IfExpressionByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User Id"
condition:
action: "[string]Types of actions to be performed in the verify task"
request: "[string]JSON of request"
trueActions:
- action: "[string]Types of actions to be performed in the consume action"
request: "[string]JSON of request"
falseActions:
- action: "[string]Types of actions to be performed in the consume action"
request: "[string]JSON of request"
multiplyValueSpecifyingQuantity: "[bool]Whether to multiply the value used for verification when specifying the quantity"
timeOffsetToken: "[string]Time offset token"
transaction.service("distributor").consume.if_expression_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User Id",
condition={
action="[string]Types of actions to be performed in the verify task",
request="[string]JSON of request"
},
trueActions={
{
action="[string]Types of actions to be performed in the consume action",
request="[string]JSON of request"
}
},
falseActions={
{
action="[string]Types of actions to be performed in the consume action",
request="[string]JSON of request"
}
},
multiplyValueSpecifyingQuantity="[bool]Whether to multiply the value used for verification when specifying the quantity",
timeOffsetToken="[string]Time offset token",
})
Gs2Distributor:AndExpressionByUserId
Perform multiple verification actions and determine if all are true
Actions for which quantity can be specified: NO
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
userId | string | Set #{userId} to replace the currently logged in user ID. |
actions | VerifyAction[] | List of verify actions to be executed |
timeOffsetToken | string | Time offset token |
{
"action": "Gs2Distributor:AndExpressionByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User Id",
"actions": [
{
"action": "[string]Types of actions to be performed in the verify task",
"request": "[string]JSON of request"
}
],
"timeOffsetToken": "[string]Time offset token"
}
}
action: Gs2Distributor:AndExpressionByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User Id"
actions:
- action: "[string]Types of actions to be performed in the verify task"
request: "[string]JSON of request"
timeOffsetToken: "[string]Time offset token"
transaction.service("distributor").consume.and_expression_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User Id",
actions={
{
action="[string]Types of actions to be performed in the verify task",
request="[string]JSON of request"
}
},
timeOffsetToken="[string]Time offset token",
})
Gs2Distributor:OrExpressionByUserId
Perform multiple verification actions and determine if any are true
Actions for which quantity can be specified: NO
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
userId | string | Set #{userId} to replace the currently logged in user ID. |
actions | VerifyAction[] | List of verify actions to be executed |
timeOffsetToken | string | Time offset token |
{
"action": "Gs2Distributor:OrExpressionByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User Id",
"actions": [
{
"action": "[string]Types of actions to be performed in the verify task",
"request": "[string]JSON of request"
}
],
"timeOffsetToken": "[string]Time offset token"
}
}
action: Gs2Distributor:OrExpressionByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User Id"
actions:
- action: "[string]Types of actions to be performed in the verify task"
request: "[string]JSON of request"
timeOffsetToken: "[string]Time offset token"
transaction.service("distributor").consume.or_expression_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User Id",
actions={
{
action="[string]Types of actions to be performed in the verify task",
request="[string]JSON of request"
}
},
timeOffsetToken="[string]Time offset token",
})