1 | <?php |
||
10 | class Balances extends MoipResource |
||
11 | { |
||
12 | /** |
||
13 | * Path balances API. |
||
14 | * |
||
15 | * @const string |
||
16 | */ |
||
17 | const PATH = 'balances'; |
||
18 | |||
19 | /** |
||
20 | * Initialize a new instance. |
||
21 | */ |
||
22 | public function initialize() |
||
29 | |||
30 | /** |
||
31 | * Populate this instance. |
||
32 | * |
||
33 | * @param stdClass $response response object |
||
34 | * |
||
35 | * @return mixed|Balances |
||
36 | */ |
||
37 | protected function populate(stdClass $response) |
||
46 | |||
47 | /** |
||
48 | * Get all balances. |
||
49 | * |
||
50 | * @return stdClass |
||
51 | */ |
||
52 | public function get() |
||
57 | |||
58 | /** |
||
59 | * Get unavailable balances. Returns an array of objects with the amount and currency. |
||
60 | * |
||
61 | * @return array |
||
62 | */ |
||
63 | public function getUnavailable() |
||
67 | |||
68 | /** |
||
69 | * Get future balances. Returns an array of objects with the amount and currency. |
||
70 | * |
||
71 | * @return array |
||
72 | */ |
||
73 | public function getFuture() |
||
77 | |||
78 | /** |
||
79 | * Get current balances. Returns an array of objects with the amount and currency. |
||
80 | * |
||
81 | * @return array |
||
82 | */ |
||
83 | public function getCurrent() |
||
87 | } |
||
88 |