1: | <?php |
2: | namespace Hyperwallet\Model; |
3: | |
4: | /** |
5: | * Represents a V4 Balance |
6: | * |
7: | * @property string $currency The currency |
8: | * @property string $amount The amount |
9: | * |
10: | * @package Hyperwallet\Model |
11: | */ |
12: | class Balance extends BaseModel { |
13: | |
14: | /** |
15: | * @internal |
16: | * |
17: | * Read only fields |
18: | * |
19: | * @var string[] |
20: | */ |
21: | private static $READ_ONLY_FIELDS = array('currency', 'amount'); |
22: | |
23: | public static function FILTERS_ARRAY_USER() { |
24: | return array('currency', 'limit'); |
25: | } |
26: | |
27: | public static function FILTERS_ARRAY_PREPAID_CARD() { |
28: | return array('sortBy', 'limit'); |
29: | } |
30: | |
31: | public static function FILTERS_ARRAY_ACCOUNT() { |
32: | return array('currency', 'sortBy', 'limit'); |
33: | } |
34: | |
35: | /** |
36: | * Creates a instance of Balance |
37: | * |
38: | * @param string[] $properties The default properties |
39: | */ |
40: | public function __construct(array $properties = array()) { |
41: | parent::__construct(self::$READ_ONLY_FIELDS, $properties); |
42: | } |
43: | |
44: | /** |
45: | * Get the currency |
46: | * |
47: | * @return string |
48: | */ |
49: | public function getCurrency() { |
50: | return $this->currency; |
51: | } |
52: | |
53: | /** |
54: | * Get the amount |
55: | * |
56: | * @return string |
57: | */ |
58: | public function getAmount() { |
59: | return $this->amount; |
60: | } |
61: | |
62: | } |
63: |