GS2-Showcase トランザクションアクション

ConsumeAction

Gs2Showcase:IncrementPurchaseCountByUserId

ユーザIDを指定して商品の購入回数を加算

数量指定可能なアクション:はい

反転可能なアクション:はい

説明
namespaceNamestringネームスペース名
showcaseNamestringランダム陳列棚モデル名
displayItemNamestringランダム陳列商品名
userIdstring#{userId} と設定することでログイン中のユーザーIDに置換されます
countint加算する購入回数
timeOffsetTokenstringタイムオフセットトークン
{
    "action": "Gs2Showcase:IncrementPurchaseCountByUserId",
    "request": {
        "namespaceName": "[string]ネームスペース名",
        "showcaseName": "[string]ランダム陳列棚モデル名",
        "displayItemName": "[string]ランダム陳列商品名",
        "userId": "[string]ユーザーID",
        "count": "[int]加算する購入回数",
        "timeOffsetToken": "[string]タイムオフセットトークン"
    }
}
action: Gs2Showcase:IncrementPurchaseCountByUserId
request:
  namespaceName: "[string]ネームスペース名"
  showcaseName: "[string]ランダム陳列棚モデル名"
  displayItemName: "[string]ランダム陳列商品名"
  userId: "[string]ユーザーID"
  count: "[int]加算する購入回数"
  timeOffsetToken: "[string]タイムオフセットトークン"
transaction.service("showcase").consume.increment_purchase_count_by_user_id({
    namespaceName="[string]ネームスペース名",
    showcaseName="[string]ランダム陳列棚モデル名",
    displayItemName="[string]ランダム陳列商品名",
    userId="[string]ユーザーID",
    count="[int]加算する購入回数",
    timeOffsetToken="[string]タイムオフセットトークン",
})

AcquireAction

Gs2Showcase:DecrementPurchaseCountByUserId

ユーザIDを指定して商品の購入回数を減算

数量指定可能なアクション:はい

反転可能なアクション:はい

説明
namespaceNamestringネームスペース名
showcaseNamestringランダム陳列棚モデル名
displayItemNamestringランダム陳列商品名
userIdstring#{userId} と設定することでログイン中のユーザーIDに置換されます
countint減算する購入回数
timeOffsetTokenstringタイムオフセットトークン
{
    "action": "Gs2Showcase:DecrementPurchaseCountByUserId",
    "request": {
        "namespaceName": "[string]ネームスペース名",
        "showcaseName": "[string]ランダム陳列棚モデル名",
        "displayItemName": "[string]ランダム陳列商品名",
        "userId": "[string]ユーザーID",
        "count": "[int]減算する購入回数",
        "timeOffsetToken": "[string]タイムオフセットトークン"
    }
}
action: Gs2Showcase:DecrementPurchaseCountByUserId
request:
  namespaceName: "[string]ネームスペース名"
  showcaseName: "[string]ランダム陳列棚モデル名"
  displayItemName: "[string]ランダム陳列商品名"
  userId: "[string]ユーザーID"
  count: "[int]減算する購入回数"
  timeOffsetToken: "[string]タイムオフセットトークン"
transaction.service("showcase").acquire.decrement_purchase_count_by_user_id({
    namespaceName="[string]ネームスペース名",
    showcaseName="[string]ランダム陳列棚モデル名",
    displayItemName="[string]ランダム陳列商品名",
    userId="[string]ユーザーID",
    count="[int]減算する購入回数",
    timeOffsetToken="[string]タイムオフセットトークン",
})

Gs2Showcase:ForceReDrawByUserId

ユーザIDを指定してランダム陳列棚の内容を再抽選

数量指定可能なアクション:いいえ

反転可能なアクション:いいえ

説明
namespaceNamestringネームスペース名
showcaseNamestringランダム陳列棚モデル名
userIdstring#{userId} と設定することでログイン中のユーザーIDに置換されます
timeOffsetTokenstringタイムオフセットトークン
{
    "action": "Gs2Showcase:ForceReDrawByUserId",
    "request": {
        "namespaceName": "[string]ネームスペース名",
        "showcaseName": "[string]ランダム陳列棚モデル名",
        "userId": "[string]ユーザーID",
        "timeOffsetToken": "[string]タイムオフセットトークン"
    }
}
action: Gs2Showcase:ForceReDrawByUserId
request:
  namespaceName: "[string]ネームスペース名"
  showcaseName: "[string]ランダム陳列棚モデル名"
  userId: "[string]ユーザーID"
  timeOffsetToken: "[string]タイムオフセットトークン"
transaction.service("showcase").acquire.force_re_draw_by_user_id({
    namespaceName="[string]ネームスペース名",
    showcaseName="[string]ランダム陳列棚モデル名",
    userId="[string]ユーザーID",
    timeOffsetToken="[string]タイムオフセットトークン",
})