Transaction Action of GS2-Showcase
VerifyAction
ConsumeAction
Gs2Showcase:IncrementPurchaseCountByUserId
Increment the number of times a product has been purchased by specifying the user ID
Actions for which quantity can be specified: YES
Reversible action: YES
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
showcaseName | string | Random Showcase Model Name |
displayItemName | string | Random Displayed Item Name |
userId | string | Set #{userId} to replace the currently logged in 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 Model Name",
"displayItemName": "[string]Random Displayed Item 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 Model Name"
displayItemName: "[string]Random Displayed Item 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 Model Name",
displayItemName="[string]Random Displayed Item 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
Actions for which quantity can be specified: YES
Reversible action: YES
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
showcaseName | string | Random Showcase Model Name |
displayItemName | string | Random Displayed Item Name |
userId | string | Set #{userId} to replace the currently logged in 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 Model Name",
"displayItemName": "[string]Random Displayed Item 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 Model Name"
displayItemName: "[string]Random Displayed Item 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 Model Name",
displayItemName="[string]Random Displayed Item 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 display shelf by specifying the user ID
Actions for which quantity can be specified: NO
Reversible action: NO
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
showcaseName | string | Random Showcase Model Name |
userId | string | Set #{userId} to replace the currently logged in user ID. |
timeOffsetToken | string | Time offset token |
{
"action": "Gs2Showcase:ForceReDrawByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"showcaseName": "[string]Random Showcase Model Name",
"userId": "[string]User Id",
"timeOffsetToken": "[string]Time offset token"
}
}
action: Gs2Showcase:ForceReDrawByUserId
request:
namespaceName: "[string]Namespace name"
showcaseName: "[string]Random Showcase Model 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 Model Name",
userId="[string]User Id",
timeOffsetToken="[string]Time offset token",
})