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 InternationalWireDetailsResponse 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 $type; |
28: | /** |
29: | * Payment Instrument ID that can be passed to the /transfers endpoint to trigger a transfer. |
30: | * |
31: | * @var string |
32: | */ |
33: | protected $paymentInstrumentId; |
34: | /** |
35: | * Counterparty's `SWIFT` code. |
36: | * |
37: | * @var string |
38: | */ |
39: | protected $swiftCode; |
40: | /** |
41: | * Counterparty's international bank account number. |
42: | * |
43: | * @var string |
44: | */ |
45: | protected $iban; |
46: | /** |
47: | * Name of counterparty's bank. |
48: | * |
49: | * @var string|null |
50: | */ |
51: | protected $beneficiaryBankName; |
52: | /** |
53: | * Company business address (must be in the US; no PO box or virtual/forwarding addresses allowed). |
54: | * |
55: | * @var Address |
56: | */ |
57: | protected $address; |
58: | |
59: | public function getType(): string |
60: | { |
61: | return $this->type; |
62: | } |
63: | |
64: | public function setType(string $type): self |
65: | { |
66: | $this->initialized['type'] = true; |
67: | $this->type = $type; |
68: | |
69: | return $this; |
70: | } |
71: | |
72: | /** |
73: | * Payment Instrument ID that can be passed to the /transfers endpoint to trigger a transfer. |
74: | The type of the payment instrument dictates the method. |
75: | */ |
76: | public function getPaymentInstrumentId(): string |
77: | { |
78: | return $this->paymentInstrumentId; |
79: | } |
80: | |
81: | /** |
82: | * Payment Instrument ID that can be passed to the /transfers endpoint to trigger a transfer. |
83: | The type of the payment instrument dictates the method. |
84: | */ |
85: | public function setPaymentInstrumentId(string $paymentInstrumentId): self |
86: | { |
87: | $this->initialized['paymentInstrumentId'] = true; |
88: | $this->paymentInstrumentId = $paymentInstrumentId; |
89: | |
90: | return $this; |
91: | } |
92: | |
93: | /** |
94: | * Counterparty's `SWIFT` code. |
95: | */ |
96: | public function getSwiftCode(): string |
97: | { |
98: | return $this->swiftCode; |
99: | } |
100: | |
101: | /** |
102: | * Counterparty's `SWIFT` code. |
103: | */ |
104: | public function setSwiftCode(string $swiftCode): self |
105: | { |
106: | $this->initialized['swiftCode'] = true; |
107: | $this->swiftCode = $swiftCode; |
108: | |
109: | return $this; |
110: | } |
111: | |
112: | /** |
113: | * Counterparty's international bank account number. |
114: | */ |
115: | public function getIban(): string |
116: | { |
117: | return $this->iban; |
118: | } |
119: | |
120: | /** |
121: | * Counterparty's international bank account number. |
122: | */ |
123: | public function setIban(string $iban): self |
124: | { |
125: | $this->initialized['iban'] = true; |
126: | $this->iban = $iban; |
127: | |
128: | return $this; |
129: | } |
130: | |
131: | /** |
132: | * Name of counterparty's bank. |
133: | */ |
134: | public function getBeneficiaryBankName(): ?string |
135: | { |
136: | return $this->beneficiaryBankName; |
137: | } |
138: | |
139: | /** |
140: | * Name of counterparty's bank. |
141: | */ |
142: | public function setBeneficiaryBankName(?string $beneficiaryBankName): self |
143: | { |
144: | $this->initialized['beneficiaryBankName'] = true; |
145: | $this->beneficiaryBankName = $beneficiaryBankName; |
146: | |
147: | return $this; |
148: | } |
149: | |
150: | /** |
151: | * Company business address (must be in the US; no PO box or virtual/forwarding addresses allowed). |
152: | */ |
153: | public function getAddress(): Address |
154: | { |
155: | return $this->address; |
156: | } |
157: | |
158: | /** |
159: | * Company business address (must be in the US; no PO box or virtual/forwarding addresses allowed). |
160: | */ |
161: | public function setAddress(Address $address): self |
162: | { |
163: | $this->initialized['address'] = true; |
164: | $this->address = $address; |
165: | |
166: | return $this; |
167: | } |
168: | } |
169: |