メインコンテンツまでスキップ

Inventory Service Events 1.0.0 documentation

Published Messages (inventoryItem)

The service publishes one of these messages below.

inventoryItemSaved

Contains fields from and the following payload.

Example value
{
"payload": {
"id": "string",
"namespace": "string",
"userId": "string",
"inventoryId": "string",
"slotId": "string",
"slotUsed": 0,
"sourceItemId": "string",
"type": "string",
"source": "string",
"qty": 0,
"finalQty": 0,
"sourceOrigin": "entitlement"
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}

payload

NameTypeDescription
idstringid of the saved item
namespacestringnamespace origin of saved item
userIdstringuserId that owns the item
inventoryIdstringinventoryId where the item is saved
slotIdstringslotId of the item in the inventory
slotUsedintegerslotUsed of the item in the inventory
sourceItemIdstringsourceItemId of the item
typestringtype of the item
sourcestringsource of the item
qtyintegerquantity of the item being added to the inventory
finalQtyintegertotal quantity, sum of existing quantity and newly added quantity
sourceOriginstringsourceOrigin where the item saving request is coming from

Schemas