Total Complexity | 4 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | trait StoreEndpoints |
||
6 | { |
||
7 | /** |
||
8 | * Get the current store prices for all items |
||
9 | * |
||
10 | * @param string $shard |
||
11 | * |
||
12 | * @return mixed |
||
13 | */ |
||
14 | public function prices(string $shard) |
||
15 | { |
||
16 | return $this->request('GET', "https://pd.{$shard}.a.pvp.net/store/v1/offers"); |
||
|
|||
17 | } |
||
18 | |||
19 | /** |
||
20 | * Get the currently available items in the store |
||
21 | * |
||
22 | * @param string $shard |
||
23 | * @param string $puuid |
||
24 | * |
||
25 | * @return mixed|\Psr\Http\Message\ResponseInterface |
||
26 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
27 | */ |
||
28 | public function storefront(string $shard, string $puuid) |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Get the current wallet balance for the user |
||
35 | * |
||
36 | * @param string $shard |
||
37 | * @param string $puuid |
||
38 | * |
||
39 | * @return mixed|\Psr\Http\Message\ResponseInterface |
||
40 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
41 | */ |
||
42 | public function wallet(string $shard, string $puuid) |
||
43 | { |
||
44 | return $this->request('GET', "https://pd.{$shard}.a.pvp.net/store/v1/wallet/{$puuid}"); |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * List what the player owns (agents, skins, buddies, ect.) Category names and IDs: |
||
49 | * |
||
50 | * @param string $shard |
||
51 | * @param string $puuid |
||
52 | * @param int $ItemTypeID |
||
53 | * |
||
54 | * @return mixed|\Psr\Http\Message\ResponseInterface |
||
55 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
56 | */ |
||
57 | public function ownedItems(string $shard, string $puuid, string $ItemTypeID) |
||
60 | } |
||
61 | } |
||
62 |