Transaction Action of GS2-Grade
VerifyAction
Gs2Grade:VerifyGradeByUserId
Verify grade by specifying a user ID
Whether the action allows quantity specification: 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 (.). | ||||||||||||||||
| userId | string | ✓ | ~ 128 chars | User ID Set #{userId} to replace the currently logged in user ID. | ||||||||||||||||
| gradeName | string | ✓ | ~ 128 chars | Grade Model name | ||||||||||||||||
| verifyType | String Enum enum { “less”, “lessEqual”, “greater”, “greaterEqual”, “equal”, “notEqual” } | ✓ | Type of verification
| |||||||||||||||||
| propertyId | string | ✓ | ~ 1024 chars | Property ID | ||||||||||||||||
| gradeValue | long | ✓ | 1 | 1 ~ 9223372036854775805 | Current Grade | |||||||||||||||
| multiplyValueSpecifyingQuantity | bool | ✓ | false | Whether to multiply the value used for verification when specifying the quantity | ||||||||||||||||
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2Grade:VerifyGradeByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User ID",
"gradeName": "[string]Grade Model name",
"verifyType": "[string]Type of verification",
"propertyId": "[string]Property ID",
"gradeValue": "[long]Current Grade",
"multiplyValueSpecifyingQuantity": "[bool]Whether to multiply the value used for verification when specifying the quantity",
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2Grade:VerifyGradeByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User ID"
gradeName: "[string]Grade Model name"
verifyType: "[string]Type of verification"
propertyId: "[string]Property ID"
gradeValue: "[long]Current Grade"
multiplyValueSpecifyingQuantity: "[bool]Whether to multiply the value used for verification when specifying the quantity"
timeOffsetToken: "[string]Time offset token"transaction.service("grade").verify.verify_grade_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User ID",
gradeName="[string]Grade Model name",
verifyType="[string]Type of verification",
propertyId="[string]Property ID",
gradeValue="[long]Current Grade",
multiplyValueSpecifyingQuantity="[bool]Whether to multiply the value used for verification when specifying the quantity",
timeOffsetToken="[string]Time offset token",
})Gs2Grade:VerifyGradeUpMaterialByUserId
Verify grade up material by specifying a user ID
Whether the action allows quantity specification: 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 (.). | ||||||||
| userId | string | ✓ | ~ 128 chars | User ID Set #{userId} to replace the currently logged in user ID. | ||||||||
| gradeName | string | ✓ | ~ 128 chars | Grade Model name | ||||||||
| verifyType | String Enum enum { “match”, “notMatch” } | ✓ | Type of verification
| |||||||||
| propertyId | string | ✓ | ~ 1024 chars | Property ID | ||||||||
| materialPropertyId | string | ✓ | ~ 1024 chars | Property ID | ||||||||
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2Grade:VerifyGradeUpMaterialByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User ID",
"gradeName": "[string]Grade Model name",
"verifyType": "[string]Type of verification",
"propertyId": "[string]Property ID",
"materialPropertyId": "[string]Property ID",
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2Grade:VerifyGradeUpMaterialByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User ID"
gradeName: "[string]Grade Model name"
verifyType: "[string]Type of verification"
propertyId: "[string]Property ID"
materialPropertyId: "[string]Property ID"
timeOffsetToken: "[string]Time offset token"transaction.service("grade").verify.verify_grade_up_material_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User ID",
gradeName="[string]Grade Model name",
verifyType="[string]Type of verification",
propertyId="[string]Property ID",
materialPropertyId="[string]Property ID",
timeOffsetToken="[string]Time offset token",
})ConsumeAction
Gs2Grade:SubGradeByUserId
Subtract grade by specifying a user ID
Whether the action allows quantity specification: YES
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 (.). | ||
| userId | string | ✓ | ~ 128 chars | User ID Set #{userId} to replace the currently logged in user ID. | ||
| gradeName | string | ✓ | ~ 128 chars | Grade Model name | ||
| propertyId | string | ✓ | ~ 1024 chars | Property ID | ||
| gradeValue | long | ✓ | 0 | 0 ~ 9223372036854775805 | Lost Grade | |
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2Grade:SubGradeByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User ID",
"gradeName": "[string]Grade Model name",
"propertyId": "[string]Property ID",
"gradeValue": "[long]Lost Grade",
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2Grade:SubGradeByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User ID"
gradeName: "[string]Grade Model name"
propertyId: "[string]Property ID"
gradeValue: "[long]Lost Grade"
timeOffsetToken: "[string]Time offset token"transaction.service("grade").consume.sub_grade_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User ID",
gradeName="[string]Grade Model name",
propertyId="[string]Property ID",
gradeValue="[long]Lost Grade",
timeOffsetToken="[string]Time offset token",
})AcquireAction
Gs2Grade:AddGradeByUserId
Add grade by specifying a user ID
Whether the action allows quantity specification: YES
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 (.). | ||
| userId | string | ✓ | ~ 128 chars | User ID Set #{userId} to replace the currently logged in user ID. | ||
| gradeName | string | ✓ | ~ 128 chars | Grade Model name | ||
| propertyId | string | ✓ | ~ 1024 chars | Property ID | ||
| gradeValue | long | ✓ | 0 | 0 ~ 9223372036854775805 | Gained Grade | |
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2Grade:AddGradeByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User ID",
"gradeName": "[string]Grade Model name",
"propertyId": "[string]Property ID",
"gradeValue": "[long]Gained Grade",
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2Grade:AddGradeByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User ID"
gradeName: "[string]Grade Model name"
propertyId: "[string]Property ID"
gradeValue: "[long]Gained Grade"
timeOffsetToken: "[string]Time offset token"transaction.service("grade").acquire.add_grade_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User ID",
gradeName="[string]Grade Model name",
propertyId="[string]Property ID",
gradeValue="[long]Gained Grade",
timeOffsetToken="[string]Time offset token",
})Gs2Grade:ApplyRankCapByUserId
Apply rank cap to GS2-Experience 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 (.). | ||
| userId | string | ✓ | ~ 128 chars | User ID Set #{userId} to replace the currently logged in user ID. | ||
| gradeName | string | ✓ | ~ 128 chars | Grade Model name | ||
| propertyId | string | ✓ | ~ 1024 chars | Property ID | ||
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2Grade:ApplyRankCapByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User ID",
"gradeName": "[string]Grade Model name",
"propertyId": "[string]Property ID",
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2Grade:ApplyRankCapByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User ID"
gradeName: "[string]Grade Model name"
propertyId: "[string]Property ID"
timeOffsetToken: "[string]Time offset token"transaction.service("grade").acquire.apply_rank_cap_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User ID",
gradeName="[string]Grade Model name",
propertyId="[string]Property ID",
timeOffsetToken="[string]Time offset token",
})Gs2Grade:MultiplyAcquireActionsByUserId
Add resources according to the grade of the target property of the grade specified by the 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 (.). | ||
| userId | string | ✓ | ~ 128 chars | User ID Set #{userId} to replace the currently logged in user ID. | ||
| gradeName | string | ✓ | ~ 128 chars | Grade Model name | ||
| propertyId | string | ✓ | ~ 1024 chars | Property ID | ||
| rateName | string | ✓ | ~ 128 chars | Reward addition table name | ||
| acquireActions | List<AcquireAction> | [] | 0 ~ 100 items | List of Acquire Action | ||
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2Grade:MultiplyAcquireActionsByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User ID",
"gradeName": "[string]Grade Model name",
"propertyId": "[string]Property ID",
"rateName": "[string]Reward addition table name",
"acquireActions": [
{
"action": "[string]Types of actions to be performed in the acquire action",
"request": "[string]JSON string of the request used when executing the action"
}
],
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2Grade:MultiplyAcquireActionsByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User ID"
gradeName: "[string]Grade Model name"
propertyId: "[string]Property ID"
rateName: "[string]Reward addition table name"
acquireActions:
- action: "[string]Types of actions to be performed in the acquire action"
request: "[string]JSON string of the request used when executing the action"
timeOffsetToken: "[string]Time offset token"transaction.service("grade").acquire.multiply_acquire_actions_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User ID",
gradeName="[string]Grade Model name",
propertyId="[string]Property ID",
rateName="[string]Reward addition table name",
acquireActions={
{
action="[string]Types of actions to be performed in the acquire action",
request="[string]JSON string of the request used when executing the action"
}
},
timeOffsetToken="[string]Time offset token",
})