-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApicilArbitrationClientInterface.php
334 lines (303 loc) · 8.11 KB
/
ApicilArbitrationClientInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
<?php
namespace Mpp\ApicilClientBundle\Client;
use Mpp\ApicilClientBundle\Model\ActeDocumentDto;
use Mpp\ApicilClientBundle\Model\ActeRetourCreationDto;
use Mpp\ApicilClientBundle\Model\ArbitrageDto;
use Mpp\ApicilClientBundle\Model\ArbitrageDtoDeConsultation;
use Mpp\ApicilClientBundle\Model\DtoEligibilite;
use Mpp\ApicilClientBundle\Model\EmailPropositionActeDto;
use Mpp\ApicilClientBundle\Model\FraisArbitrageDto;
use Mpp\ApicilClientBundle\Model\ListeDesSupports;
use Mpp\ApicilClientBundle\Model\OperationEnCoursDto;
use Mpp\ApicilClientBundle\Model\RecuperationActeDocSousCategorieDto;
use Mpp\ApicilClientBundle\Model\ReponseClientHorsMursDto;
use Mpp\ApicilClientBundle\Model\ReponseGenererCodeSecuriteHorsMursDto;
use Mpp\ApicilClientBundle\Model\TelephoneDto;
use Symfony\Component\HttpFoundation\File\File;
interface ApicilArbitrationClientInterface
{
/**
* Add a document to an arbitration request.
*
* @method addDocument
*
* @param int $id
* @param string $documentCategory
* @param array $options
*
* @return RecuperationActeDocSousCategorieDto
*/
public function addDocument(int $id, string $documentCategory, array $options): RecuperationActeDocSousCategorieDto;
/**
* Verify the security code and return the associated arbitration's identifier.
*
* @method approveSecurityCode
*
* @param array $options
*
* @return ReponseClientHorsMursDto
*/
public function approveSecurityCode(array $options): ReponseClientHorsMursDto;
/**
* Electronically sign the arbitration proposal.
*
* @method approveSignature
*
* @param int $id
* @param string $otp
*/
public function approveSignature(int $id, string $otp);
/**
* Create an arbitration operation with the complete file signed.
*
* @method create
*
* @param array $options
*
* @return ActeRetourCreationDto
*/
public function create(array $options): ActeRetourCreationDto;
/**
* Create a arbitration proposal to be signed by the customer.
*
* @method createFromModel
*
* @param ArbitrageDto $arbitration
*/
public function createFromModel(ArbitrageDto $arbitration);
/**
* Check the consultation link of the arbitration proposal and generate the security code.
*
* @method generateSecurityCode
*
* @param array $options
*
* @return ReponseGenererCodeSecuriteHorsMursDto
*/
public function generateSecurityCode(array $options): ReponseGenererCodeSecuriteHorsMursDto;
/**
* Retrieve the information of an arbitrage operation.
*
* @method get
*
* @param int $id
*
* @return ArbitrageDtoDeConsultation
*/
public function get(int $id): ArbitrageDtoDeConsultation;
/**
* Retrieve arbitration fees for the given contract.
*
* @method getContractFees
*
* @param int $contractId
*
* @return FraisArbitrageDto
*/
public function getArbitrationFees(int $contractId): FraisArbitrageDto;
/**
* Retrieve bulletin of arbitration operation.
*
* @method getBulletin
*
* @param int $id
*
* @return File
*/
public function getBulletin(int $id): File;
/**
* Retrieve the documents of an arbitration.
*
* @method getDocuments
*
* @param int $id
* @param string $documentId
*
* @return RecuperationActeDocSousCategorieDto
*/
public function getDocument(int $id, int $documentId): RecuperationActeDocSousCategorieDto;
/**
* Retrieve arbitrage request documents.
*
* @method getDocuments
*
* @param int $id
*
* @return array<ActeDocumentDto>
*/
public function getDocuments(int $id): array;
/**
* Retrieve arbitration email proposal.
*
* @method getEmailTemplate
*
* @return EmailPropositionActeDto
*/
public function getEmailTemplate(): EmailPropositionActeDto;
/**
* Retrieve all error code & labels that may occurs during arbitration.
*
* @method getErrors
*
* @param int $id
*
* @return array<ErreurCodeFonctionnelDto>
*/
public function getErrors(int $id): array;
/**
* Retrieve eligible support list in invest mode.
*
* @method getInvestmentEligibleSupports
*
* @param int $contractId
* @param array $options
*/
public function getInvestmentEligibleSupports(int $contractId, array $options): ListeDesSupports;
/**
* Give up an arbitration proposal for the client.
*
* @method giveUp
*
* @param int $id
*/
public function giveUp(int $id);
/**
* Retrieve the ongoing arbitration on the contrat if it exists.
*
* @method hasContract
*
* @param int $contractId
*
* @return OperationEnCoursDto
*/
public function hasContract(int $contractId): ?OperationEnCoursDto;
/**
* Verify if the given contract is eligible to arbitration.
*
* @method isContractEligible
*
* @param int $contractId
*
* @return DtoEligibilite
*/
public function isContractEligible(int $contractId): DtoEligibilite;
/**
* Refuse an arbitration proposal made by a seller.
*
* @method refuse
*
* @param int $id
* @param array $options
*
* @return bool
*/
public function refuse(int $id, array $options = []);
/**
* Delete an arbitration operation.
*
* @method remove
*
* @param int $id
*
* @return bool
*/
public function remove(int $id): bool;
/**
* Remove a document from an arbitration request.
*
* @method removeDocument
*
* @param int $id
* @param string $documentId
*
* @return bool
*/
public function removeDocument(int $id, string $documentId): bool;
/**
* Restart an arbitration proposal.
*
* @method restart
*
* @param int $id
* @param array $options
*/
public function restart(int $id, array $options);
/**
* Resume the arbitration proposal.
*
* @method resume
*
* @param int $id
*
* @return ActeRetourCreationDto
*/
public function resume(int $id): ActeRetourCreationDto;
/**
* Send the signature by SMS.
*
* @method sendSignatureBySms
*
* @param int $id
*/
public function sendSignatureBySms(int $id);
/**
* Send the arbitration proposal to the customer.
*
* @method sendToCustomer
*
* @param int $id
* @param EmailPropositionActeDto $email
*/
public function sendToCustomer(int $id, EmailPropositionActeDto $email);
/**
* Test the transmision email of an arbitration proposal.
*
* @method testEmail
*
* @param int $id
* @param EmailPropositionActeDto $email
*
* @return bool
*/
public function testEmail(int $id, EmailPropositionActeDto $email);
/**
* Add the signed arbitration file to an arbitration operation.
*
* @method update
*
* @param int $id
* @param array $options
*
* @return ArbitrageDto
*/
public function update(int $id, array $options): ArbitrageDto;
/**
* Update arbitration from model.
*
* @method updateFromModel
*
* @param int $id
* @param ArbitrageDto $arbitration
*/
public function updateFromModel(int $id, ArbitrageDto $arbitration);
/**
* Update the customer's phone number.
*
* @method updatePhoneNumber
*
* @param string $id
* @param TelephoneDto $phoneNumber
*/
public function updatePhoneNumber(int $id, TelephoneDto $phoneNumber);
/**
* Verify the response validity of surveys.
*
* @method verifySurveys
*
* @param int $id
* @param array<QuestionnaireStructuresReponses> $surveys
*
* @return int
*/
public function verifySurveys(int $id, array $surveys): int;
}