1: <?php
2:
3: declare(strict_types=1);
4:
5: /*
6: * This file has been auto generated by Jane,
7: *
8: * Do no edit it directly.
9: */
10:
11: namespace NxSys\Library\Clients\Brex\API\Payments\Model;
12:
13: class BankConnection extends \ArrayObject
14: {
15: /**
16: * @var array
17: */
18: protected $initialized = [];
19:
20: public function isInitialized($property): bool
21: {
22: return array_key_exists($property, $this->initialized);
23: }
24: /**
25: * @var string
26: */
27: protected $id;
28: /**
29: * @var BankDetails
30: */
31: protected $bankDetails;
32: /**
33: Brex cash account ID
34:
35: *
36: * @var string|null
37: */
38: protected $brexAccountId;
39: /**
40: * @var string
41: */
42: protected $lastFour;
43: /**
44: * @var BankConnectionAvailableBalance
45: */
46: protected $availableBalance;
47: /**
48: * @var BankConnectionCurrentBalance
49: */
50: protected $currentBalance;
51:
52: public function getId(): string
53: {
54: return $this->id;
55: }
56:
57: public function setId(string $id): self
58: {
59: $this->initialized['id'] = true;
60: $this->id = $id;
61:
62: return $this;
63: }
64:
65: public function getBankDetails(): BankDetails
66: {
67: return $this->bankDetails;
68: }
69:
70: public function setBankDetails(BankDetails $bankDetails): self
71: {
72: $this->initialized['bankDetails'] = true;
73: $this->bankDetails = $bankDetails;
74:
75: return $this;
76: }
77:
78: /**
79: Brex cash account ID
80: */
81: public function getBrexAccountId(): ?string
82: {
83: return $this->brexAccountId;
84: }
85:
86: /**
87: Brex cash account ID
88: */
89: public function setBrexAccountId(?string $brexAccountId): self
90: {
91: $this->initialized['brexAccountId'] = true;
92: $this->brexAccountId = $brexAccountId;
93:
94: return $this;
95: }
96:
97: public function getLastFour(): string
98: {
99: return $this->lastFour;
100: }
101:
102: public function setLastFour(string $lastFour): self
103: {
104: $this->initialized['lastFour'] = true;
105: $this->lastFour = $lastFour;
106:
107: return $this;
108: }
109:
110: public function getAvailableBalance(): BankConnectionAvailableBalance
111: {
112: return $this->availableBalance;
113: }
114:
115: public function setAvailableBalance(BankConnectionAvailableBalance $availableBalance): self
116: {
117: $this->initialized['availableBalance'] = true;
118: $this->availableBalance = $availableBalance;
119:
120: return $this;
121: }
122:
123: public function getCurrentBalance(): BankConnectionCurrentBalance
124: {
125: return $this->currentBalance;
126: }
127:
128: public function setCurrentBalance(BankConnectionCurrentBalance $currentBalance): self
129: {
130: $this->initialized['currentBalance'] = true;
131: $this->currentBalance = $currentBalance;
132:
133: return $this;
134: }
135: }
136: