playfab_ex v0.2.2 PlayfabEx.Client.Trading
Link to this section Summary
Functions
Accepts an open trade (one that has not yet been accepted or cancelled), if the locally signed-in player is in the allowed player list for the trade, or it is open to all players. If the call is successful, the offered and accepted items will be swapped between the two players’ inventories
Cancels an open trade (one that has not yet been accepted or cancelled). Note that only the player who created the trade can cancel it via this API call, to prevent griefing of the trade system (cancelling trades in order to prevent other players from accepting them, for trades that can be claimed by more than one player)
Gets all trades the player has either opened or accepted, optionally filtered by trade status
Gets the current status of an existing trade
Opens a new outstanding trade. Note that a given item instance may only be in one open trade at a time
Link to this section Functions
accept_trade(map()) :: {:ok, map()} | {:error, String.t()}
Accepts an open trade (one that has not yet been accepted or cancelled), if the locally signed-in player is in the allowed player list for the trade, or it is open to all players. If the call is successful, the offered and accepted items will be swapped between the two players’ inventories.
cancel_trade(map()) :: {:ok, map()} | {:error, String.t()}
Cancels an open trade (one that has not yet been accepted or cancelled). Note that only the player who created the trade can cancel it via this API call, to prevent griefing of the trade system (cancelling trades in order to prevent other players from accepting them, for trades that can be claimed by more than one player).
get_player_trades(map()) :: {:ok, map()} | {:error, String.t()}
Gets all trades the player has either opened or accepted, optionally filtered by trade status.
get_trade_status(map()) :: {:ok, map()} | {:error, String.t()}
Gets the current status of an existing trade.
Opens a new outstanding trade. Note that a given item instance may only be in one open trade at a time.