Inventory Service Events 1.0.0 documentation
- Protobuf File Spec: inventory.proto
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
Name | Type | Description |
---|---|---|
id | string | id of the saved item |
namespace | string | namespace origin of saved item |
userId | string | userId that owns the item |
inventoryId | string | inventoryId where the item is saved |
slotId | string | slotId of the item in the inventory |
slotUsed | integer | slotUsed of the item in the inventory |
sourceItemId | string | sourceItemId of the item |
type | string | type of the item |
source | string | source of the item |
qty | integer | quantity of the item being added to the inventory |
finalQty | integer | total quantity, sum of existing quantity and newly added quantity |
sourceOrigin | string | sourceOrigin where the item saving request is coming from |