Files
Vari 1d133cfefe Added purchase/item endpoint.
The endpoints checks if you can afford the item and have completed the required challenges when any exist.

It also throws an error if you try to buy an item you already have in your inventory.
2024-02-28 17:37:28 +01:00

17 lines
317 B
PHP

<?php
namespace App\Http\Responses\Api\Player\Purchase;
class PurchaseItemResponse
{
public function __construct(
public string $playerId,
public string $objectId,
public int $quantity,
public WalletEntry $walletEntry,
public array $rewardItems = [],
)
{
}
}