-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApicilManagementClientInterface.php
342 lines (310 loc) · 8.67 KB
/
ApicilManagementClientInterface.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
335
336
337
338
339
340
341
342
<?php
namespace Mpp\ApicilClientBundle\Client;
use Mpp\ApicilClientBundle\Model\ActeRetourCreationDto;
use Mpp\ApicilClientBundle\Model\ContratProfilGestionDto;
use Mpp\ApicilClientBundle\Model\DtoEligibilite;
use Mpp\ApicilClientBundle\Model\EmailPropositionActeDto;
use Mpp\ApicilClientBundle\Model\ListeDesSupports;
use Mpp\ApicilClientBundle\Model\OperationEnCoursDto;
use Mpp\ApicilClientBundle\Model\RecuperationActeDocSousCategorieDto;
use Mpp\ApicilClientBundle\Model\RecuperationContratProfileGestionDto;
use Mpp\ApicilClientBundle\Model\ReponseClientHorsMursDto;
use Mpp\ApicilClientBundle\Model\TelephoneDto;
use Symfony\Component\HttpFoundation\File\File;
interface ApicilManagementClientInterface
{
/**
* Attach a new document to a gestion mode change request.
*
* @method addDocument
*
* @param int $id
* @param string $category
* @param array $options
*
* @return ActeRetourCreationDto
*/
public function addDocument(int $id, string $category, array $options): ActeRetourCreationDto;
/**
* Approve the gestion mode change request security code.
*
* @method approveSecurityCode
*
* @param array $options
*
* @return ReponseClientHorsMursDto
*/
public function approveSecurityCode(array $options): ReponseClientHorsMursDto;
/**
* Valid the security code for a gestion mode change request.
*
* @method approveSignature
*
* @param int $id
* @param string $otp
*/
public function approveSignature(int $id, string $otp);
/**
* Create a new gestion mode change request with the complete signed file.
*
* @method create
*
* @param array $options
*
* @return ActeRetourCreationDto
*/
public function create(array $options): ActeRetourCreationDto;
/**
* Create a gestion mode change request to be signed by the customer.
*
* @method createFromModel
*
* @param ContratProfilGestionDto $gestionProfile
*
* @return ActeRetourCreation
*/
public function createFromModel(ContratProfilGestionDto $gestionProfile): ActeRetourCreation;
/**
* Generate the gestion mode change request security code.
*
* @method generateSecurityCode
*
* @param array $options
*/
public function generateSecurityCode(array $options);
/**
* Retrieve a gestion mode change request.
*
* @method get
*
* @param int $id
*
* @return RecuperationContratProfileGestionDto
*/
public function get(int $id): RecuperationContratProfileGestionDto;
/**
* Retrieve the gestion mode change request bulletin.
*
* @method getBulletin
*
* @param int $id
*
* @return File
*/
public function getBulletin(int $id): File;
/**
* Retrieve gestion mode change request from a contract.
*
* @method getByContract
*
* @param int $contractId
*
* @return ContratProfilGestionDto
*/
public function getByContract(int $contractId): ContratProfilGestionDto;
/**
* Generate and retrieve the document of gestion mode change request for a contract.
*
* @method getContractDocument
*
* @param string $code
* @param int $contractId
*
* @return File
*/
public function getContractDocument(string $code, int $contractId): File;
/**
* Retrieve a gestion mode change request document and the document sub category.
*
* @method getDocumentByCategory
*
* @param int $id
* @param string $category
*
* @return File
*/
public function getDocumentByCategory(int $id, string $category): File;
/**
* Retrieve gestion mode change request documents.
*
* @method getDocuments
*
* @param int $id
*
* @return RecuperationActeDocSousCategorieDto
*/
public function getDocuments(int $id): RecuperationActeDocSousCategorieDto;
/**
* Retrieve gestion mode change request email.
*
* @method getEmailTemplate
*
* @return EmailPropositionActeDto
*/
public function getEmailTemplate(): EmailPropositionActeDto;
/**
* Retrieve gestion mode change request investment eligible support list.
*
* @method getInvestmentEligibleSupports
*
* @param int $contractId
* @param array $options
*
* @return ListeDesSupports
*/
public function getInvestmentEligibleSupports(int $contractId, array $options = []): ListeDesSupports;
/**
* Retrieve gestion mode change request investment eligible support list details.
*
* @method getInvestmentEligibleSupportDetails
*
* @param int $contractId
* @param array $options
*
* @return ListeDesSupports
*/
public function getInvestmentEligibleSupportDetails(int $contractId, array $options = []): ListeDesSupports;
/**
* Give up a gestion mode change request.
*
* @method giveUp
*
* @param int $id
*/
public function giveUp(int $id);
/**
* Verify if a gestion mode change request exist for a contract.
*
* @method hasContract
*
* @param int $contractId
*
* @return OperationEnCoursDto
*/
public function hasContract(int $contractId): OperationEnCoursDto;
/**
* Verify if a contract is eligible to gestion mode change request.
*
* @method isContractEligible
*
* @param int $contractId
*
* @return DtoEligibilite
*/
public function isContractEligible(int $contractId): DtoEligibilite;
/**
* Refuse a gestion mode change request.
*
* @method refuse
*
* @param int $id
* @param array $options
*/
public function refuse(int $id, array $options = []);
/**
* Remove a gestion mode change request.
*
* @method remove
*
* @param int $id
*
* @return bool
*/
public function remove(int $id): bool;
/**
* Restart the gestion mode change request.
*
* @method restart
*
* @param int $id
* @param array $options
*/
public function restart(int $id, array $options);
/**
* Resume a gestion mode change request.
*
* @method resume
*
* @param int $id
*
* @return ActeRetourCreationDto
*/
public function resume(int $id): ActeRetourCreationDto;
/**
* Remove a gestion mode change request document.
*
* @method removeDocument
*
* @param int $id
* @param string $documentId
*/
public function removeDocument(int $id, string $documentId);
/**
* Send the gestion mode change request to the customer.
*
* @method sendToCustomer
*
* @param int $id
* @param EmailPropositionActeDto $email
*/
public function sendToCustomer(int $id, EmailPropositionActeDto $email);
/**
* Send the security code by SMS to the customer for a gestion mode change request.
*
* @method sendSignatureBySms
*
* @param int $id
*/
public function sendSignatureBySms(int $id);
/**
* Test transmssion email of a gestion mode change request.
*
* @method testEmail
*
* @param int $id
* @param EmailPropositionActeDto $email
*/
public function testEmail(int $id, EmailPropositionActeDto $email);
/**
* Update and attach a signed document to a gestion mode change request.
*
* @method addDocument
*
* @param int $id
* @param array $options
*
* @return ActeRetourCreationDto
*/
public function update(int $id, array $options): ActeRetourCreationDto;
/**
* Update a gestion mode change request.
*
* @method update
*
* @param int $id
* @param ContratProfilGestionDto $gestionProfile
*
* @return ActeRetourCreationDto
*/
public function updateFromModel(int $id, ContratProfilGestionDto $gestionProfile): ActeRetourCreationDto;
/**
* Update the customer's phone number for a gestion mode change request.
*
* @method updatePhoneNumber
*
* @param int $id
* @param TelephoneDto $phoneNumber
*/
public function updatePhoneNumber(int $id, TelephoneDto $phoneNumber);
/**
* Verify the response validity of surveys for a gestion mode change request.
*
* @method verifySurveys
*
* @param int $id
* @param array<QuestionnaireStructuresReponses> $surveys
*
* @return int
*/
public function verifySurveys(int $id, array $surveys): int;
}