Skip to main content

InventoryService

ZEPETO.Inventory.InventoryService

InventoryService manages operations associated with the player's in-World product inventory.

Hierarchy

Constructors

constructor

new InventoryService()

Overrides

System.Object.constructor

Methods

GetAsync

Static GetAsync($productId): BaseRequest$1<InventoryResponse>

This asynchronous method retrieves the player's inventory product information based on the provided product ID.

Parameters

NameTypeDescription
$productIdstringID of the product to fetch.

Returns

BaseRequest$1<InventoryResponse>

A BaseRequest object. When the asynchronous process is complete, you can access the InventoryResponse object by the responseData property.


GetListAsync

Static GetListAsync(): BaseRequest$1<InventoryListResponse>

This asynchronous method retrieves the player's inventory product information list.

Returns

BaseRequest$1<InventoryListResponse>

A BaseRequest object. When the asynchronous process is complete, you can access the InventoryListResponse object by the responseData property.


HasAsync

Static HasAsync($productId): CheckInventoryRequest

This asynchronous method checks the existence of a product in the player's inventory.

Parameters

NameTypeDescription
$productIdstringID of the product to check.

Returns

CheckInventoryRequest

A CheckInventoryRequest object. When the asynchronous process is complete, you can access the CheckInventoryResponse object by the responseData property.