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 CashTransaction 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: * Description of the transaction.
30: *
31: * @var string
32: */
33: protected $description;
34: /**
35: * @var CashTransactionAmount
36: */
37: protected $amount;
38: /**
39: * ISO 8601 date of when the payment is initiated.
40: *
41: * @var \DateTime
42: */
43: protected $initiatedAtDate;
44: /**
45: * ISO 8601 date of when the payment is posted.
46: *
47: * @var \DateTime
48: */
49: protected $postedAtDate;
50: /**
51: * @var string
52: */
53: protected $type;
54: /**
55: * Transfer ID to fetch additional metadata about the transaction using `https://developer.brex.com/openapi/payments_api/#operation/getTransfersById`.
56: *
57: * @var string|null
58: */
59: protected $transferId;
60:
61: public function getId(): string
62: {
63: return $this->id;
64: }
65:
66: public function setId(string $id): self
67: {
68: $this->initialized['id'] = true;
69: $this->id = $id;
70:
71: return $this;
72: }
73:
74: /**
75: * Description of the transaction.
76: */
77: public function getDescription(): string
78: {
79: return $this->description;
80: }
81:
82: /**
83: * Description of the transaction.
84: */
85: public function setDescription(string $description): self
86: {
87: $this->initialized['description'] = true;
88: $this->description = $description;
89:
90: return $this;
91: }
92:
93: public function getAmount(): CashTransactionAmount
94: {
95: return $this->amount;
96: }
97:
98: public function setAmount(CashTransactionAmount $amount): self
99: {
100: $this->initialized['amount'] = true;
101: $this->amount = $amount;
102:
103: return $this;
104: }
105:
106: /**
107: * ISO 8601 date of when the payment is initiated.
108: */
109: public function getInitiatedAtDate(): \DateTime
110: {
111: return $this->initiatedAtDate;
112: }
113:
114: /**
115: * ISO 8601 date of when the payment is initiated.
116: */
117: public function setInitiatedAtDate(\DateTime $initiatedAtDate): self
118: {
119: $this->initialized['initiatedAtDate'] = true;
120: $this->initiatedAtDate = $initiatedAtDate;
121:
122: return $this;
123: }
124:
125: /**
126: * ISO 8601 date of when the payment is posted.
127: */
128: public function getPostedAtDate(): \DateTime
129: {
130: return $this->postedAtDate;
131: }
132:
133: /**
134: * ISO 8601 date of when the payment is posted.
135: */
136: public function setPostedAtDate(\DateTime $postedAtDate): self
137: {
138: $this->initialized['postedAtDate'] = true;
139: $this->postedAtDate = $postedAtDate;
140:
141: return $this;
142: }
143:
144: public function getType(): string
145: {
146: return $this->type;
147: }
148:
149: public function setType(string $type): self
150: {
151: $this->initialized['type'] = true;
152: $this->type = $type;
153:
154: return $this;
155: }
156:
157: /**
158: * Transfer ID to fetch additional metadata about the transaction using `https://developer.brex.com/openapi/payments_api/#operation/getTransfersById`.
159: */
160: public function getTransferId(): ?string
161: {
162: return $this->transferId;
163: }
164:
165: /**
166: * Transfer ID to fetch additional metadata about the transaction using `https://developer.brex.com/openapi/payments_api/#operation/getTransfersById`.
167: */
168: public function setTransferId(?string $transferId): self
169: {
170: $this->initialized['transferId'] = true;
171: $this->transferId = $transferId;
172:
173: return $this;
174: }
175: }
176: