1 | <?php |
||
7 | final class PaymentResource |
||
8 | { |
||
9 | /** |
||
10 | * @var BunqClient |
||
11 | */ |
||
12 | private $client; |
||
13 | |||
14 | /** |
||
15 | * @param BunqClient $client |
||
16 | */ |
||
17 | public function __construct(BunqClient $client) |
||
21 | |||
22 | /** |
||
23 | * Lists all payments. |
||
24 | * |
||
25 | * @param integer $userId |
||
26 | * @param integer $monetaryAccountId |
||
27 | * |
||
28 | * @return array |
||
29 | */ |
||
30 | public function listPayments($userId, $monetaryAccountId) |
||
39 | |||
40 | /** |
||
41 | * Gets a user its payment information. |
||
42 | * |
||
43 | * @param integer $userId |
||
44 | * @param integer $monetaryAccountId |
||
45 | * @param integer $id |
||
46 | * |
||
47 | * @return array |
||
48 | */ |
||
49 | public function getPayment($userId, $monetaryAccountId, $id) |
||
59 | |||
60 | /** |
||
61 | * @param integer $userId |
||
62 | * @param integer $monetaryAccountId |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | private function getResourceEndpoint($userId, $monetaryAccountId) |
||
70 | |||
71 | /** |
||
72 | * @param float $amount |
||
73 | * |
||
74 | * @return integer |
||
75 | */ |
||
76 | private function floatToCents($amount) |
||
80 | } |
||
81 |