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() |
||
58 | |||
59 | /** |
||
60 | * Get unavailable balances. Returns an array of objects with the amount and currency. |
||
61 | * |
||
62 | * @return array |
||
63 | */ |
||
64 | public function getUnavailable() |
||
68 | |||
69 | /** |
||
70 | * Get future balances. Returns an array of objects with the amount and currency. |
||
71 | * |
||
72 | * @return array |
||
73 | */ |
||
74 | public function getFuture() |
||
78 | |||
79 | /** |
||
80 | * Get current balances. Returns an array of objects with the amount and currency. |
||
81 | * |
||
82 | * @return array |
||
83 | */ |
||
84 | public function getCurrent() |
||
88 | } |
||
89 |