Transaction Action of GS2-LoginReward
Specification of verify/consume/acquire transaction actions
ConsumeAction
Gs2LoginReward:MarkReceivedByUserId
Mark as received by specifying a user ID
Whether the action allows quantity specification: NO
Whether the action is reversible: YES
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| namespaceName | string | ✓ | ~ 128 chars | Namespace name Namespace-specific name. Specified using alphanumeric characters, hyphens (-), underscores (_), and periods (.). | ||
| bonusModelName | string | ✓ | ~ 128 chars | Bonus Model name | ||
| userId | string | ✓ | ~ 128 chars | User ID Set #{userId} to replace the currently logged in user ID. | ||
| stepNumber | int | ✓ | 0 ~ 100 | Step Number | ||
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2LoginReward:MarkReceivedByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"bonusModelName": "[string]Bonus Model name",
"userId": "[string]User ID",
"stepNumber": "[int]Step Number",
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2LoginReward:MarkReceivedByUserId
request:
namespaceName: "[string]Namespace name"
bonusModelName: "[string]Bonus Model name"
userId: "[string]User ID"
stepNumber: "[int]Step Number"
timeOffsetToken: "[string]Time offset token"transaction.service("loginReward").consume.mark_received_by_user_id({
namespaceName="[string]Namespace name",
bonusModelName="[string]Bonus Model name",
userId="[string]User ID",
stepNumber="[int]Step Number",
timeOffsetToken="[string]Time offset token",
})AcquireAction
Gs2LoginReward:DeleteReceiveStatusByUserId
Delete Receive Status by specifying a user ID
Whether the action allows quantity specification: NO
Whether the action is reversible: NO
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| namespaceName | string | ✓ | ~ 128 chars | Namespace name Namespace-specific name. Specified using alphanumeric characters, hyphens (-), underscores (_), and periods (.). | ||
| bonusModelName | string | ✓ | ~ 128 chars | Bonus Model name | ||
| userId | string | ✓ | ~ 128 chars | User ID Set #{userId} to replace the currently logged in user ID. | ||
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2LoginReward:DeleteReceiveStatusByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"bonusModelName": "[string]Bonus Model name",
"userId": "[string]User ID",
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2LoginReward:DeleteReceiveStatusByUserId
request:
namespaceName: "[string]Namespace name"
bonusModelName: "[string]Bonus Model name"
userId: "[string]User ID"
timeOffsetToken: "[string]Time offset token"transaction.service("loginReward").acquire.delete_receive_status_by_user_id({
namespaceName="[string]Namespace name",
bonusModelName="[string]Bonus Model name",
userId="[string]User ID",
timeOffsetToken="[string]Time offset token",
})Gs2LoginReward:UnmarkReceivedByUserId
Unmark as received by specifying a user ID
Whether the action allows quantity specification: NO
Whether the action is reversible: YES
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| namespaceName | string | ✓ | ~ 128 chars | Namespace name Namespace-specific name. Specified using alphanumeric characters, hyphens (-), underscores (_), and periods (.). | ||
| bonusModelName | string | ✓ | ~ 128 chars | Bonus Model name | ||
| userId | string | ✓ | ~ 128 chars | User ID Set #{userId} to replace the currently logged in user ID. | ||
| stepNumber | int | ✓ | 0 ~ 100 | Step Number | ||
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2LoginReward:UnmarkReceivedByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"bonusModelName": "[string]Bonus Model name",
"userId": "[string]User ID",
"stepNumber": "[int]Step Number",
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2LoginReward:UnmarkReceivedByUserId
request:
namespaceName: "[string]Namespace name"
bonusModelName: "[string]Bonus Model name"
userId: "[string]User ID"
stepNumber: "[int]Step Number"
timeOffsetToken: "[string]Time offset token"transaction.service("loginReward").acquire.unmark_received_by_user_id({
namespaceName="[string]Namespace name",
bonusModelName="[string]Bonus Model name",
userId="[string]User ID",
stepNumber="[int]Step Number",
timeOffsetToken="[string]Time offset token",
})