1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
namespace Genkgo\Camt\DTO; |
6
|
|
|
|
7
|
|
|
use Money\Money; |
8
|
|
|
|
9
|
|
|
class EntryTransactionDetail |
10
|
|
|
{ |
11
|
|
|
private ?Reference $reference = null; |
12
|
|
|
|
13
|
|
|
/** |
14
|
|
|
* @var RelatedParty[] |
15
|
|
|
*/ |
16
|
|
|
private array $relatedParties = []; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* @var RelatedAgent[] |
20
|
|
|
*/ |
21
|
|
|
private array $relatedAgents = []; |
22
|
|
|
|
23
|
|
|
private ?RemittanceInformation $remittanceInformation = null; |
24
|
|
|
|
25
|
|
|
private ?RelatedDates $relatedDates = null; |
26
|
|
|
|
27
|
|
|
private ?ReturnInformation $returnInformation = null; |
28
|
|
|
|
29
|
|
|
private ?AdditionalTransactionInformation $additionalTransactionInformation = null; |
30
|
|
|
|
31
|
|
|
private ?BankTransactionCode $bankTransactionCode = null; |
32
|
|
|
|
33
|
|
|
private ?Charges $charges = null; |
34
|
|
|
|
35
|
|
|
private ?Money $amountDetails = null; |
36
|
|
|
|
37
|
|
|
private ?Money $amount = null; |
38
|
|
|
|
39
|
|
|
private ?string $creditDebitIndicator = null; |
40
|
|
|
|
41
|
|
|
public function setReference(?Reference $reference): void |
42
|
|
|
{ |
43
|
|
|
$this->reference = $reference; |
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
public function getReference(): ?Reference |
47
|
|
|
{ |
48
|
|
|
return $this->reference; |
49
|
|
|
} |
50
|
|
|
|
51
|
|
|
public function addRelatedParty(RelatedParty $relatedParty): void |
52
|
|
|
{ |
53
|
|
|
$this->relatedParties[] = $relatedParty; |
54
|
|
|
} |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @return RelatedParty[] |
58
|
|
|
*/ |
59
|
|
|
public function getRelatedParties(): array |
60
|
|
|
{ |
61
|
|
|
return $this->relatedParties; |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
public function getRelatedParty(): ?RelatedParty |
65
|
|
|
{ |
66
|
18 |
|
if (isset($this->relatedParties[0])) { |
67
|
|
|
return $this->relatedParties[0]; |
68
|
18 |
|
} |
69
|
18 |
|
|
70
|
|
|
return null; |
71
|
2 |
|
} |
72
|
|
|
|
73
|
2 |
|
public function addRelatedAgent(RelatedAgent $relatedAgent): void |
74
|
|
|
{ |
75
|
|
|
$this->relatedAgents[] = $relatedAgent; |
76
|
22 |
|
} |
77
|
|
|
|
78
|
22 |
|
/** |
79
|
22 |
|
* @return RelatedAgent[] |
80
|
|
|
*/ |
81
|
|
|
public function getRelatedAgents(): array |
82
|
|
|
{ |
83
|
|
|
return $this->relatedAgents; |
84
|
3 |
|
} |
85
|
|
|
|
86
|
3 |
|
public function getRelatedAgent(): ?RelatedAgent |
87
|
|
|
{ |
88
|
|
|
if (isset($this->relatedAgents[0])) { |
89
|
1 |
|
return $this->relatedAgents[0]; |
90
|
|
|
} |
91
|
1 |
|
|
92
|
1 |
|
return null; |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
public function setRemittanceInformation(?RemittanceInformation $remittanceInformation): void |
96
|
|
|
{ |
97
|
|
|
$this->remittanceInformation = $remittanceInformation; |
98
|
17 |
|
} |
99
|
|
|
|
100
|
17 |
|
public function getRemittanceInformation(): ?RemittanceInformation |
101
|
17 |
|
{ |
102
|
|
|
return $this->remittanceInformation; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
public function setRelatedDates(?RelatedDates $relatedDates): void |
106
|
1 |
|
{ |
107
|
|
|
$this->relatedDates = $relatedDates; |
108
|
1 |
|
} |
109
|
|
|
|
110
|
|
|
public function getRelatedDates(): ?RelatedDates |
111
|
|
|
{ |
112
|
|
|
return $this->relatedDates; |
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
public function getReturnInformation(): ?ReturnInformation |
116
|
|
|
{ |
117
|
|
|
return $this->returnInformation; |
118
|
|
|
} |
119
|
|
|
|
120
|
18 |
|
public function setReturnInformation(?ReturnInformation $information): void |
121
|
|
|
{ |
122
|
18 |
|
$this->returnInformation = $information; |
123
|
18 |
|
} |
124
|
|
|
|
125
|
4 |
|
public function setAdditionalTransactionInformation(?AdditionalTransactionInformation $additionalTransactionInformation): void |
126
|
|
|
{ |
127
|
4 |
|
$this->additionalTransactionInformation = $additionalTransactionInformation; |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
public function getAdditionalTransactionInformation(): ?AdditionalTransactionInformation |
131
|
|
|
{ |
132
|
|
|
return $this->additionalTransactionInformation; |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
public function getBankTransactionCode(): ?BankTransactionCode |
136
|
|
|
{ |
137
|
|
|
return $this->bankTransactionCode; |
138
|
|
|
} |
139
|
|
|
|
140
|
|
|
public function setBankTransactionCode(BankTransactionCode $bankTransactionCode): void |
141
|
|
|
{ |
142
|
|
|
$this->bankTransactionCode = $bankTransactionCode; |
143
|
|
|
} |
144
|
|
|
|
145
|
|
|
public function getCharges(): ?Charges |
146
|
|
|
{ |
147
|
|
|
return $this->charges; |
148
|
|
|
} |
149
|
|
|
|
150
|
|
|
public function setCharges(?Charges $charges): void |
151
|
|
|
{ |
152
|
|
|
$this->charges = $charges; |
153
|
|
|
} |
154
|
|
|
|
155
|
|
|
public function getAmountDetails(): ?Money |
156
|
|
|
{ |
157
|
|
|
return $this->amountDetails; |
158
|
|
|
} |
159
|
|
|
|
160
|
1 |
|
public function setAmountDetails(?Money $amountDetails): void |
161
|
|
|
{ |
162
|
1 |
|
$this->amountDetails = $amountDetails; |
163
|
|
|
} |
164
|
|
|
|
165
|
22 |
|
public function getAmount(): ?Money |
166
|
|
|
{ |
167
|
22 |
|
return $this->amount; |
168
|
22 |
|
} |
169
|
|
|
|
170
|
|
|
public function setAmount(?Money $amount): void |
171
|
|
|
{ |
172
|
|
|
$this->amount = $amount; |
173
|
|
|
} |
174
|
|
|
|
175
|
3 |
|
public function getCreditDebitIndicator(): ?string |
176
|
|
|
{ |
177
|
3 |
|
return $this->creditDebitIndicator; |
178
|
3 |
|
} |
179
|
|
|
|
180
|
|
|
public function setCreditDebitIndicator(?string $creditDebitIndicator): void |
181
|
|
|
{ |
182
|
|
|
$this->creditDebitIndicator = $creditDebitIndicator; |
183
|
|
|
} |
184
|
|
|
} |
185
|
|
|
|