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 CreateIncomingTransferRequest 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: * Counterparty Details for the transfer.
26: *
27: * @var mixed[]
28: */
29: protected $counterparty;
30: /**
31: * Receiving account details for the transfer.
32: *
33: * @var mixed[]
34: */
35: protected $receivingAccount;
36: /**
37: 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
38: of the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700.
39:
40: *
41: * @var Money
42: */
43: protected $amount;
44: /**
45: Description of the transfer for internal use. Not exposed externally.
46:
47: *
48: * @var string
49: */
50: protected $description;
51:
52: /**
53: * Counterparty Details for the transfer.
54: *
55: * @return mixed[]
56: */
57: public function getCounterparty(): iterable
58: {
59: return $this->counterparty;
60: }
61:
62: /**
63: * Counterparty Details for the transfer.
64: *
65: * @param mixed[] $counterparty
66: */
67: public function setCounterparty(iterable $counterparty): self
68: {
69: $this->initialized['counterparty'] = true;
70: $this->counterparty = $counterparty;
71:
72: return $this;
73: }
74:
75: /**
76: * Receiving account details for the transfer.
77: *
78: * @return mixed[]
79: */
80: public function getReceivingAccount(): iterable
81: {
82: return $this->receivingAccount;
83: }
84:
85: /**
86: * Receiving account details for the transfer.
87: *
88: * @param mixed[] $receivingAccount
89: */
90: public function setReceivingAccount(iterable $receivingAccount): self
91: {
92: $this->initialized['receivingAccount'] = true;
93: $this->receivingAccount = $receivingAccount;
94:
95: return $this;
96: }
97:
98: /**
99: 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
100: of the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700.
101: */
102: public function getAmount(): Money
103: {
104: return $this->amount;
105: }
106:
107: /**
108: 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
109: of the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700.
110: */
111: public function setAmount(Money $amount): self
112: {
113: $this->initialized['amount'] = true;
114: $this->amount = $amount;
115:
116: return $this;
117: }
118:
119: /**
120: Description of the transfer for internal use. Not exposed externally.
121: */
122: public function getDescription(): string
123: {
124: return $this->description;
125: }
126:
127: /**
128: Description of the transfer for internal use. Not exposed externally.
129: */
130: public function setDescription(string $description): self
131: {
132: $this->initialized['description'] = true;
133: $this->description = $description;
134:
135: return $this;
136: }
137: }
138: