Transaction Action of GS2-Showcase
Specification of verify/consume/acquire transaction actions
ConsumeAction
Gs2Showcase:IncrementPurchaseCountByUserId
Increment the number of times a product has been purchased by specifying the 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 (.). | ||
| showcaseName | string | ✓ | ~ 128 chars | Random Showcase Name | ||
| displayItemName | string | ✓ | ~ 128 chars | Number of product purchases name | ||
| userId | string | ✓ | ~ 128 chars | User ID Set #{userId} to replace the currently logged in user ID. | ||
| count | int | ✓ | 0 ~ 100 | Number of purchase times to add | ||
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2Showcase:IncrementPurchaseCountByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"showcaseName": "[string]Random Showcase Name",
"displayItemName": "[string]Number of product purchases name",
"userId": "[string]User ID",
"count": "[int]Number of purchase times to add",
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2Showcase:IncrementPurchaseCountByUserId
request:
namespaceName: "[string]Namespace name"
showcaseName: "[string]Random Showcase Name"
displayItemName: "[string]Number of product purchases name"
userId: "[string]User ID"
count: "[int]Number of purchase times to add"
timeOffsetToken: "[string]Time offset token"transaction.service("showcase").consume.increment_purchase_count_by_user_id({
namespaceName="[string]Namespace name",
showcaseName="[string]Random Showcase Name",
displayItemName="[string]Number of product purchases name",
userId="[string]User ID",
count="[int]Number of purchase times to add",
timeOffsetToken="[string]Time offset token",
})AcquireAction
Gs2Showcase:DecrementPurchaseCountByUserId
Decrement the number of times a product has been purchased by specifying the 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 (.). | ||
| showcaseName | string | ✓ | ~ 128 chars | Random Showcase Name | ||
| displayItemName | string | ✓ | ~ 128 chars | Number of product purchases name | ||
| userId | string | ✓ | ~ 128 chars | User ID Set #{userId} to replace the currently logged in user ID. | ||
| count | int | ✓ | 0 ~ 100 | Number of purchase times to subtract | ||
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2Showcase:DecrementPurchaseCountByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"showcaseName": "[string]Random Showcase Name",
"displayItemName": "[string]Number of product purchases name",
"userId": "[string]User ID",
"count": "[int]Number of purchase times to subtract",
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2Showcase:DecrementPurchaseCountByUserId
request:
namespaceName: "[string]Namespace name"
showcaseName: "[string]Random Showcase Name"
displayItemName: "[string]Number of product purchases name"
userId: "[string]User ID"
count: "[int]Number of purchase times to subtract"
timeOffsetToken: "[string]Time offset token"transaction.service("showcase").acquire.decrement_purchase_count_by_user_id({
namespaceName="[string]Namespace name",
showcaseName="[string]Random Showcase Name",
displayItemName="[string]Number of product purchases name",
userId="[string]User ID",
count="[int]Number of purchase times to subtract",
timeOffsetToken="[string]Time offset token",
})Gs2Showcase:ForceReDrawByUserId
Re-draw the contents of the Random Showcase 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 (.). | ||
| showcaseName | string | ✓ | ~ 128 chars | Random Showcase 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": "Gs2Showcase:ForceReDrawByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"showcaseName": "[string]Random Showcase Name",
"userId": "[string]User ID",
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2Showcase:ForceReDrawByUserId
request:
namespaceName: "[string]Namespace name"
showcaseName: "[string]Random Showcase Name"
userId: "[string]User ID"
timeOffsetToken: "[string]Time offset token"transaction.service("showcase").acquire.force_re_draw_by_user_id({
namespaceName="[string]Namespace name",
showcaseName="[string]Random Showcase Name",
userId="[string]User ID",
timeOffsetToken="[string]Time offset token",
})