| 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\Transactions\Model; |
| 12: | |
| 13: | class CashAccount 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: | * ID of the cash account. |
| 26: | * |
| 27: | * @var string |
| 28: | */ |
| 29: | protected $id; |
| 30: | /** |
| 31: | * @var string |
| 32: | */ |
| 33: | protected $name; |
| 34: | /** |
| 35: | * @var string |
| 36: | */ |
| 37: | protected $status; |
| 38: | /** |
| 39: | Money fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination |
| 40: | of the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700. |
| 41: | |
| 42: | * |
| 43: | * @var Money |
| 44: | */ |
| 45: | protected $currentBalance; |
| 46: | /** |
| 47: | Money fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination |
| 48: | of the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700. |
| 49: | |
| 50: | * |
| 51: | * @var Money |
| 52: | */ |
| 53: | protected $availableBalance; |
| 54: | /** |
| 55: | * @var string |
| 56: | */ |
| 57: | protected $accountNumber; |
| 58: | /** |
| 59: | * @var string |
| 60: | */ |
| 61: | protected $routingNumber; |
| 62: | /** |
| 63: | * Whether or not this account is the primary account. There will always be only one primary account. |
| 64: | * |
| 65: | * @var bool |
| 66: | */ |
| 67: | protected $primary; |
| 68: | |
| 69: | /** |
| 70: | * ID of the cash account. |
| 71: | */ |
| 72: | public function getId(): string |
| 73: | { |
| 74: | return $this->id; |
| 75: | } |
| 76: | |
| 77: | /** |
| 78: | * ID of the cash account. |
| 79: | */ |
| 80: | public function setId(string $id): self |
| 81: | { |
| 82: | $this->initialized['id'] = true; |
| 83: | $this->id = $id; |
| 84: | |
| 85: | return $this; |
| 86: | } |
| 87: | |
| 88: | public function getName(): string |
| 89: | { |
| 90: | return $this->name; |
| 91: | } |
| 92: | |
| 93: | public function setName(string $name): self |
| 94: | { |
| 95: | $this->initialized['name'] = true; |
| 96: | $this->name = $name; |
| 97: | |
| 98: | return $this; |
| 99: | } |
| 100: | |
| 101: | public function getStatus(): string |
| 102: | { |
| 103: | return $this->status; |
| 104: | } |
| 105: | |
| 106: | public function setStatus(string $status): self |
| 107: | { |
| 108: | $this->initialized['status'] = true; |
| 109: | $this->status = $status; |
| 110: | |
| 111: | return $this; |
| 112: | } |
| 113: | |
| 114: | /** |
| 115: | Money fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination |
| 116: | of the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700. |
| 117: | */ |
| 118: | public function getCurrentBalance(): Money |
| 119: | { |
| 120: | return $this->currentBalance; |
| 121: | } |
| 122: | |
| 123: | /** |
| 124: | Money fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination |
| 125: | of the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700. |
| 126: | */ |
| 127: | public function setCurrentBalance(Money $currentBalance): self |
| 128: | { |
| 129: | $this->initialized['currentBalance'] = true; |
| 130: | $this->currentBalance = $currentBalance; |
| 131: | |
| 132: | return $this; |
| 133: | } |
| 134: | |
| 135: | /** |
| 136: | Money fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination |
| 137: | of the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700. |
| 138: | */ |
| 139: | public function getAvailableBalance(): Money |
| 140: | { |
| 141: | return $this->availableBalance; |
| 142: | } |
| 143: | |
| 144: | /** |
| 145: | Money fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination |
| 146: | of the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700. |
| 147: | */ |
| 148: | public function setAvailableBalance(Money $availableBalance): self |
| 149: | { |
| 150: | $this->initialized['availableBalance'] = true; |
| 151: | $this->availableBalance = $availableBalance; |
| 152: | |
| 153: | return $this; |
| 154: | } |
| 155: | |
| 156: | public function getAccountNumber(): string |
| 157: | { |
| 158: | return $this->accountNumber; |
| 159: | } |
| 160: | |
| 161: | public function setAccountNumber(string $accountNumber): self |
| 162: | { |
| 163: | $this->initialized['accountNumber'] = true; |
| 164: | $this->accountNumber = $accountNumber; |
| 165: | |
| 166: | return $this; |
| 167: | } |
| 168: | |
| 169: | public function getRoutingNumber(): string |
| 170: | { |
| 171: | return $this->routingNumber; |
| 172: | } |
| 173: | |
| 174: | public function setRoutingNumber(string $routingNumber): self |
| 175: | { |
| 176: | $this->initialized['routingNumber'] = true; |
| 177: | $this->routingNumber = $routingNumber; |
| 178: | |
| 179: | return $this; |
| 180: | } |
| 181: | |
| 182: | /** |
| 183: | * Whether or not this account is the primary account. There will always be only one primary account. |
| 184: | */ |
| 185: | public function getPrimary(): bool |
| 186: | { |
| 187: | return $this->primary; |
| 188: | } |
| 189: | |
| 190: | /** |
| 191: | * Whether or not this account is the primary account. There will always be only one primary account. |
| 192: | */ |
| 193: | public function setPrimary(bool $primary): self |
| 194: | { |
| 195: | $this->initialized['primary'] = true; |
| 196: | $this->primary = $primary; |
| 197: | |
| 198: | return $this; |
| 199: | } |
| 200: | } |
| 201: |