Transaction Action of GS2-SerialKey
VerifyAction
ConsumeAction
Gs2SerialKey:UseByUserId
Using serial code by specifying user ID
Actions for which quantity can be specified: NO
Reversible action: YES
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
userId | string | |
Set #{userId} to replace the currently logged in user ID. | ||
code | string | Serial Code |
timeOffsetToken | string | Time offset token |
{
"action": "Gs2SerialKey:UseByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User Id",
"code": "[string]Serial Code",
"timeOffsetToken": "[string]Time offset token"
}
}
action: Gs2SerialKey:UseByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User Id"
code: "[string]Serial Code"
timeOffsetToken: "[string]Time offset token"
transaction.service("serialKey").consume.use_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User Id",
code="[string]Serial Code",
timeOffsetToken="[string]Time offset token",
})
AcquireAction
Gs2SerialKey:RevertUseByUserId
Serial code set to unused by specifying user ID
Actions for which quantity can be specified: NO
Reversible action: YES
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
userId | string | Set #{userId} to replace the currently logged in user ID. |
code | string | Serial Code |
timeOffsetToken | string | Time offset token |
{
"action": "Gs2SerialKey:RevertUseByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User Id",
"code": "[string]Serial Code",
"timeOffsetToken": "[string]Time offset token"
}
}
action: Gs2SerialKey:RevertUseByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User Id"
code: "[string]Serial Code"
timeOffsetToken: "[string]Time offset token"
transaction.service("serialKey").acquire.revert_use_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User Id",
code="[string]Serial Code",
timeOffsetToken="[string]Time offset token",
})