17
17
import sibModel .AddContactToList ;
18
18
import sibModel .CreateAttribute ;
19
19
import sibModel .CreateContact ;
20
+ import sibModel .CreateDoiContact ;
20
21
import sibModel .CreateList ;
21
22
import sibModel .CreateModel ;
22
23
import sibModel .CreateUpdateContactModel ;
32
33
import sibModel .GetFolderLists ;
33
34
import sibModel .GetFolders ;
34
35
import sibModel .GetLists ;
36
+ import org .threeten .bp .LocalDate ;
35
37
import org .threeten .bp .OffsetDateTime ;
36
38
import sibModel .PostContactInfo ;
37
39
import sibModel .RemoveContactFromList ;
@@ -75,7 +77,7 @@ public void addContactToListTest() throws ApiException {
75
77
}
76
78
77
79
/**
78
- * Creates contact attribute
80
+ * Create contact attribute
79
81
*
80
82
*
81
83
*
@@ -108,6 +110,22 @@ public void createContactTest() throws ApiException {
108
110
// TODO: test validations
109
111
}
110
112
113
+ /**
114
+ * Create Contact via DOI (Double-Opt-In) Flow
115
+ *
116
+ *
117
+ *
118
+ * @throws ApiException
119
+ * if the Api call fails
120
+ */
121
+ @ Test
122
+ public void createDoiContactTest () throws ApiException {
123
+ CreateDoiContact createDoiContact = null ;
124
+ api .createDoiContact (createDoiContact );
125
+
126
+ // TODO: test validations
127
+ }
128
+
111
129
/**
112
130
* Create a folder
113
131
*
@@ -141,7 +159,7 @@ public void createListTest() throws ApiException {
141
159
}
142
160
143
161
/**
144
- * Deletes an attribute
162
+ * Delete an attribute
145
163
*
146
164
*
147
165
*
@@ -158,7 +176,7 @@ public void deleteAttributeTest() throws ApiException {
158
176
}
159
177
160
178
/**
161
- * Deletes a contact
179
+ * Delete a contact
162
180
*
163
181
*
164
182
*
@@ -206,7 +224,7 @@ public void deleteListTest() throws ApiException {
206
224
}
207
225
208
226
/**
209
- * Lists all attributes
227
+ * List all attributes
210
228
*
211
229
*
212
230
*
@@ -221,7 +239,7 @@ public void getAttributesTest() throws ApiException {
221
239
}
222
240
223
241
/**
224
- * Retrieves contact informations
242
+ * Get a contact's details
225
243
*
226
244
*
227
245
*
@@ -237,7 +255,7 @@ public void getContactInfoTest() throws ApiException {
237
255
}
238
256
239
257
/**
240
- * Get the campaigns statistics for a contact
258
+ * Get email campaigns' statistics for a contact
241
259
*
242
260
*
243
261
*
@@ -247,7 +265,9 @@ public void getContactInfoTest() throws ApiException {
247
265
@ Test
248
266
public void getContactStatsTest () throws ApiException {
249
267
String email = null ;
250
- GetContactCampaignStats response = api .getContactStats (email );
268
+ LocalDate startDate = null ;
269
+ LocalDate endDate = null ;
270
+ GetContactCampaignStats response = api .getContactStats (email , startDate , endDate );
251
271
252
272
// TODO: test validations
253
273
}
@@ -271,7 +291,7 @@ public void getContactsTest() throws ApiException {
271
291
}
272
292
273
293
/**
274
- * Get the contacts in a list
294
+ * Get contacts in a list
275
295
*
276
296
*
277
297
*
@@ -290,7 +310,7 @@ public void getContactsFromListTest() throws ApiException {
290
310
}
291
311
292
312
/**
293
- * Returns folder details
313
+ * Returns a folder's details
294
314
*
295
315
*
296
316
*
@@ -306,7 +326,7 @@ public void getFolderTest() throws ApiException {
306
326
}
307
327
308
328
/**
309
- * Get the lists in a folder
329
+ * Get lists in a folder
310
330
*
311
331
*
312
332
*
@@ -324,7 +344,7 @@ public void getFolderListsTest() throws ApiException {
324
344
}
325
345
326
346
/**
327
- * Get all the folders
347
+ * Get all folders
328
348
*
329
349
*
330
350
*
@@ -341,7 +361,7 @@ public void getFoldersTest() throws ApiException {
341
361
}
342
362
343
363
/**
344
- * Get the details of a list
364
+ * Get a list's details
345
365
*
346
366
*
347
367
*
@@ -390,7 +410,7 @@ public void importContactsTest() throws ApiException {
390
410
}
391
411
392
412
/**
393
- * Remove existing contacts from a list
413
+ * Delete a contact from a list
394
414
*
395
415
*
396
416
*
@@ -423,7 +443,7 @@ public void requestContactExportTest() throws ApiException {
423
443
}
424
444
425
445
/**
426
- * Updates contact attribute
446
+ * Update contact attribute
427
447
*
428
448
*
429
449
*
@@ -441,7 +461,7 @@ public void updateAttributeTest() throws ApiException {
441
461
}
442
462
443
463
/**
444
- * Updates a contact
464
+ * Update a contact
445
465
*
446
466
*
447
467
*
@@ -458,7 +478,7 @@ public void updateContactTest() throws ApiException {
458
478
}
459
479
460
480
/**
461
- * Update a contact folder
481
+ * Update a folder
462
482
*
463
483
*
464
484
*
0 commit comments