Transaction Action of GS2-Distributor

VerifyAction

Gs2Distributor:AndExpressionByUserId

Perform multiple verification actions and determine if all are true

Actions for which quantity can be specified: NO

TypeDescription
namespaceNamestringNamespace name
userIdstring
Set #{userId} to replace the currently logged in user ID.
actionsVerifyAction[]List of verify actions to be executed
timeOffsetTokenstringTime 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

TypeDescription
namespaceNamestringNamespace name
userIdstring
Set #{userId} to replace the currently logged in user ID.
actionsVerifyAction[]List of verify actions to be executed
timeOffsetTokenstringTime 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",
})

ConsumeAction

Gs2Distributor:IfExpressionByUserId

Validate the condition and switch the contents of the consume action

Actions for which quantity can be specified: NO

Reversible action: NO

TypeDescription
namespaceNamestringNamespace name
userIdstring
Set #{userId} to replace the currently logged in user ID.
conditionVerifyActionCondition
trueActionsConsumeAction[]List of consume actions to be executed when the condition is true
falseActionsConsumeAction[]List of consume actions to be executed when the condition is true
multiplyValueSpecifyingQuantityboolWhether to multiply the value used for verification when specifying the quantity
timeOffsetTokenstringTime 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",
})

AcquireAction