sib-api-v3-sdk 5.2.0 → 5.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/docs/AccountApi.md +6 -1
  3. data/docs/AttributesApi.md +24 -4
  4. data/docs/ContactsApi.md +156 -26
  5. data/docs/CreateAttribute.md +1 -1
  6. data/docs/CreateContact.md +1 -1
  7. data/docs/CreateEmailCampaign.md +9 -3
  8. data/docs/CreateSmtpTemplate.md +1 -1
  9. data/docs/EmailCampaignsApi.md +60 -10
  10. data/docs/FoldersApi.md +36 -6
  11. data/docs/GetCampaignOverview.md +8 -1
  12. data/docs/GetContactDetails.md +1 -0
  13. data/docs/GetEmailCampaign.md +8 -1
  14. data/docs/GetExtendedCampaignOverview.md +8 -1
  15. data/docs/GetExtendedContactDetails.md +1 -0
  16. data/docs/ListsApi.md +54 -9
  17. data/docs/ProcessApi.md +12 -2
  18. data/docs/RequestContactExport.md +1 -1
  19. data/docs/ResellerApi.md +54 -9
  20. data/docs/SMSCampaignsApi.md +60 -10
  21. data/docs/SMTPApi.md +72 -12
  22. data/docs/SendEmail.md +3 -3
  23. data/docs/SendSmtpEmail.md +4 -4
  24. data/docs/SendersApi.md +36 -6
  25. data/docs/TransactionalSMSApi.md +24 -4
  26. data/docs/UpdateAttribute.md +1 -1
  27. data/docs/UpdateContact.md +1 -1
  28. data/docs/UpdateEmailCampaign.md +8 -2
  29. data/docs/UpdateSmtpTemplate.md +1 -1
  30. data/docs/WebhooksApi.md +30 -5
  31. data/lib/sib-api-v3-sdk/api/account_api.rb +1 -1
  32. data/lib/sib-api-v3-sdk/api/attributes_api.rb +4 -4
  33. data/lib/sib-api-v3-sdk/api/contacts_api.rb +26 -26
  34. data/lib/sib-api-v3-sdk/api/email_campaigns_api.rb +10 -10
  35. data/lib/sib-api-v3-sdk/api/folders_api.rb +6 -6
  36. data/lib/sib-api-v3-sdk/api/lists_api.rb +9 -9
  37. data/lib/sib-api-v3-sdk/api/process_api.rb +2 -2
  38. data/lib/sib-api-v3-sdk/api/reseller_api.rb +9 -9
  39. data/lib/sib-api-v3-sdk/api/senders_api.rb +6 -6
  40. data/lib/sib-api-v3-sdk/api/sms_campaigns_api.rb +10 -10
  41. data/lib/sib-api-v3-sdk/api/smtp_api.rb +12 -12
  42. data/lib/sib-api-v3-sdk/api/transactional_sms_api.rb +4 -4
  43. data/lib/sib-api-v3-sdk/api/webhooks_api.rb +5 -5
  44. data/lib/sib-api-v3-sdk/configuration.rb +7 -0
  45. data/lib/sib-api-v3-sdk/models/create_attribute.rb +1 -1
  46. data/lib/sib-api-v3-sdk/models/create_contact.rb +1 -1
  47. data/lib/sib-api-v3-sdk/models/create_email_campaign.rb +150 -10
  48. data/lib/sib-api-v3-sdk/models/create_email_campaign_sender.rb +1 -1
  49. data/lib/sib-api-v3-sdk/models/create_smtp_template.rb +1 -1
  50. data/lib/sib-api-v3-sdk/models/create_smtp_template_sender.rb +1 -1
  51. data/lib/sib-api-v3-sdk/models/get_campaign_overview.rb +75 -10
  52. data/lib/sib-api-v3-sdk/models/get_contact_details.rb +16 -1
  53. data/lib/sib-api-v3-sdk/models/get_email_campaign.rb +72 -7
  54. data/lib/sib-api-v3-sdk/models/get_extended_campaign_overview.rb +72 -7
  55. data/lib/sib-api-v3-sdk/models/get_extended_contact_details.rb +16 -1
  56. data/lib/sib-api-v3-sdk/models/request_contact_export.rb +1 -1
  57. data/lib/sib-api-v3-sdk/models/send_email.rb +3 -3
  58. data/lib/sib-api-v3-sdk/models/send_smtp_email.rb +4 -4
  59. data/lib/sib-api-v3-sdk/models/send_smtp_email_reply_to.rb +1 -1
  60. data/lib/sib-api-v3-sdk/models/send_smtp_email_sender.rb +1 -1
  61. data/lib/sib-api-v3-sdk/models/update_attribute.rb +1 -1
  62. data/lib/sib-api-v3-sdk/models/update_contact.rb +1 -1
  63. data/lib/sib-api-v3-sdk/models/update_email_campaign.rb +151 -6
  64. data/lib/sib-api-v3-sdk/models/update_email_campaign_sender.rb +1 -1
  65. data/lib/sib-api-v3-sdk/models/update_smtp_template.rb +1 -1
  66. data/lib/sib-api-v3-sdk/models/update_smtp_template_sender.rb +1 -1
  67. data/lib/sib-api-v3-sdk/version.rb +1 -1
  68. data/spec/models/create_email_campaign_spec.rb +40 -0
  69. data/spec/models/get_campaign_overview_spec.rb +42 -0
  70. data/spec/models/get_contact_details_spec.rb +6 -0
  71. data/spec/models/get_email_campaign_spec.rb +42 -0
  72. data/spec/models/get_extended_campaign_overview_spec.rb +42 -0
  73. data/spec/models/get_extended_contact_details_spec.rb +6 -0
  74. data/spec/models/update_email_campaign_spec.rb +40 -0
  75. metadata +2 -2
@@ -27,6 +27,9 @@ module SibApiV3Sdk
27
27
  # Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted)
28
28
  attr_accessor :sms_blacklisted
29
29
 
30
+ # Creation UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ)
31
+ attr_accessor :created_at
32
+
30
33
  # Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ)
31
34
  attr_accessor :modified_at
32
35
 
@@ -45,6 +48,7 @@ module SibApiV3Sdk
45
48
  :'id' => :'id',
46
49
  :'email_blacklisted' => :'emailBlacklisted',
47
50
  :'sms_blacklisted' => :'smsBlacklisted',
51
+ :'created_at' => :'createdAt',
48
52
  :'modified_at' => :'modifiedAt',
49
53
  :'list_ids' => :'listIds',
50
54
  :'list_unsubscribed' => :'listUnsubscribed',
@@ -59,6 +63,7 @@ module SibApiV3Sdk
59
63
  :'id' => :'Integer',
60
64
  :'email_blacklisted' => :'BOOLEAN',
61
65
  :'sms_blacklisted' => :'BOOLEAN',
66
+ :'created_at' => :'DateTime',
62
67
  :'modified_at' => :'DateTime',
63
68
  :'list_ids' => :'Array<Integer>',
64
69
  :'list_unsubscribed' => :'Array<Integer>',
@@ -90,6 +95,10 @@ module SibApiV3Sdk
90
95
  self.sms_blacklisted = attributes[:'smsBlacklisted']
91
96
  end
92
97
 
98
+ if attributes.has_key?(:'createdAt')
99
+ self.created_at = attributes[:'createdAt']
100
+ end
101
+
93
102
  if attributes.has_key?(:'modifiedAt')
94
103
  self.modified_at = attributes[:'modifiedAt']
95
104
  end
@@ -132,6 +141,10 @@ module SibApiV3Sdk
132
141
  invalid_properties.push("invalid value for 'sms_blacklisted', sms_blacklisted cannot be nil.")
133
142
  end
134
143
 
144
+ if @created_at.nil?
145
+ invalid_properties.push("invalid value for 'created_at', created_at cannot be nil.")
146
+ end
147
+
135
148
  if @modified_at.nil?
136
149
  invalid_properties.push("invalid value for 'modified_at', modified_at cannot be nil.")
137
150
  end
@@ -154,6 +167,7 @@ module SibApiV3Sdk
154
167
  return false if @id.nil?
155
168
  return false if @email_blacklisted.nil?
156
169
  return false if @sms_blacklisted.nil?
170
+ return false if @created_at.nil?
157
171
  return false if @modified_at.nil?
158
172
  return false if @list_ids.nil?
159
173
  return false if @attributes.nil?
@@ -169,6 +183,7 @@ module SibApiV3Sdk
169
183
  id == o.id &&
170
184
  email_blacklisted == o.email_blacklisted &&
171
185
  sms_blacklisted == o.sms_blacklisted &&
186
+ created_at == o.created_at &&
172
187
  modified_at == o.modified_at &&
173
188
  list_ids == o.list_ids &&
174
189
  list_unsubscribed == o.list_unsubscribed &&
@@ -184,7 +199,7 @@ module SibApiV3Sdk
184
199
  # Calculates hash code according to all attributes.
185
200
  # @return [Fixnum] Hash code
186
201
  def hash
187
- [email, id, email_blacklisted, sms_blacklisted, modified_at, list_ids, list_unsubscribed, attributes].hash
202
+ [email, id, email_blacklisted, sms_blacklisted, created_at, modified_at, list_ids, list_unsubscribed, attributes].hash
188
203
  end
189
204
 
190
205
  # Builds the object from hash
@@ -21,7 +21,7 @@ module SibApiV3Sdk
21
21
  # Name of the campaign
22
22
  attr_accessor :name
23
23
 
24
- # Subject of the campaign
24
+ # Subject of the campaign. Only available if `abTesting` flag of the campaign is `false`
25
25
  attr_accessor :subject
26
26
 
27
27
  # Type of campaign
@@ -33,6 +33,27 @@ module SibApiV3Sdk
33
33
  # UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ)
34
34
  attr_accessor :scheduled_at
35
35
 
36
+ # Status of A/B Test for the campaign. abTesting = false means it is disabled, & abTesting = true means it is enabled.
37
+ attr_accessor :ab_testing
38
+
39
+ # Subject A of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true`
40
+ attr_accessor :subject_a
41
+
42
+ # Subject B of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true`
43
+ attr_accessor :subject_b
44
+
45
+ # The size of your ab-test groups. Only available if `abTesting` flag of the campaign is `true`
46
+ attr_accessor :split_rule
47
+
48
+ # Criteria for the winning version. Only available if `abTesting` flag of the campaign is `true`
49
+ attr_accessor :winner_criteria
50
+
51
+ # The duration of the test in hours at the end of which the winning version will be sent. Only available if `abTesting` flag of the campaign is `true`
52
+ attr_accessor :winner_delay
53
+
54
+ # It is true if you have chosen to send your campaign at best time, otherwise it is false
55
+ attr_accessor :send_at_best_time
56
+
36
57
  # Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent)
37
58
  attr_accessor :test_sent
38
59
 
@@ -112,6 +133,13 @@ module SibApiV3Sdk
112
133
  :'type' => :'type',
113
134
  :'status' => :'status',
114
135
  :'scheduled_at' => :'scheduledAt',
136
+ :'ab_testing' => :'abTesting',
137
+ :'subject_a' => :'subjectA',
138
+ :'subject_b' => :'subjectB',
139
+ :'split_rule' => :'splitRule',
140
+ :'winner_criteria' => :'winnerCriteria',
141
+ :'winner_delay' => :'winnerDelay',
142
+ :'send_at_best_time' => :'sendAtBestTime',
115
143
  :'test_sent' => :'testSent',
116
144
  :'header' => :'header',
117
145
  :'footer' => :'footer',
@@ -141,6 +169,13 @@ module SibApiV3Sdk
141
169
  :'type' => :'String',
142
170
  :'status' => :'String',
143
171
  :'scheduled_at' => :'DateTime',
172
+ :'ab_testing' => :'BOOLEAN',
173
+ :'subject_a' => :'String',
174
+ :'subject_b' => :'String',
175
+ :'split_rule' => :'Integer',
176
+ :'winner_criteria' => :'String',
177
+ :'winner_delay' => :'Integer',
178
+ :'send_at_best_time' => :'BOOLEAN',
144
179
  :'test_sent' => :'BOOLEAN',
145
180
  :'header' => :'String',
146
181
  :'footer' => :'String',
@@ -193,6 +228,34 @@ module SibApiV3Sdk
193
228
  self.scheduled_at = attributes[:'scheduledAt']
194
229
  end
195
230
 
231
+ if attributes.has_key?(:'abTesting')
232
+ self.ab_testing = attributes[:'abTesting']
233
+ end
234
+
235
+ if attributes.has_key?(:'subjectA')
236
+ self.subject_a = attributes[:'subjectA']
237
+ end
238
+
239
+ if attributes.has_key?(:'subjectB')
240
+ self.subject_b = attributes[:'subjectB']
241
+ end
242
+
243
+ if attributes.has_key?(:'splitRule')
244
+ self.split_rule = attributes[:'splitRule']
245
+ end
246
+
247
+ if attributes.has_key?(:'winnerCriteria')
248
+ self.winner_criteria = attributes[:'winnerCriteria']
249
+ end
250
+
251
+ if attributes.has_key?(:'winnerDelay')
252
+ self.winner_delay = attributes[:'winnerDelay']
253
+ end
254
+
255
+ if attributes.has_key?(:'sendAtBestTime')
256
+ self.send_at_best_time = attributes[:'sendAtBestTime']
257
+ end
258
+
196
259
  if attributes.has_key?(:'testSent')
197
260
  self.test_sent = attributes[:'testSent']
198
261
  end
@@ -275,10 +338,6 @@ module SibApiV3Sdk
275
338
  invalid_properties.push("invalid value for 'name', name cannot be nil.")
276
339
  end
277
340
 
278
- if @subject.nil?
279
- invalid_properties.push("invalid value for 'subject', subject cannot be nil.")
280
- end
281
-
282
341
  if @type.nil?
283
342
  invalid_properties.push("invalid value for 'type', type cannot be nil.")
284
343
  end
@@ -343,7 +402,6 @@ module SibApiV3Sdk
343
402
  def valid?
344
403
  return false if @id.nil?
345
404
  return false if @name.nil?
346
- return false if @subject.nil?
347
405
  return false if @type.nil?
348
406
  type_validator = EnumAttributeValidator.new('String', ["classic", "trigger"])
349
407
  return false unless type_validator.valid?(@type)
@@ -396,6 +454,13 @@ module SibApiV3Sdk
396
454
  type == o.type &&
397
455
  status == o.status &&
398
456
  scheduled_at == o.scheduled_at &&
457
+ ab_testing == o.ab_testing &&
458
+ subject_a == o.subject_a &&
459
+ subject_b == o.subject_b &&
460
+ split_rule == o.split_rule &&
461
+ winner_criteria == o.winner_criteria &&
462
+ winner_delay == o.winner_delay &&
463
+ send_at_best_time == o.send_at_best_time &&
399
464
  test_sent == o.test_sent &&
400
465
  header == o.header &&
401
466
  footer == o.footer &&
@@ -424,7 +489,7 @@ module SibApiV3Sdk
424
489
  # Calculates hash code according to all attributes.
425
490
  # @return [Fixnum] Hash code
426
491
  def hash
427
- [id, name, subject, type, status, scheduled_at, test_sent, header, footer, sender, reply_to, to_field, html_content, share_link, tag, created_at, modified_at, inline_image_activation, mirror_active, recurring, sent_date, recipients, statistics].hash
492
+ [id, name, subject, type, status, scheduled_at, ab_testing, subject_a, subject_b, split_rule, winner_criteria, winner_delay, send_at_best_time, test_sent, header, footer, sender, reply_to, to_field, html_content, share_link, tag, created_at, modified_at, inline_image_activation, mirror_active, recurring, sent_date, recipients, statistics].hash
428
493
  end
429
494
 
430
495
  # Builds the object from hash
@@ -21,7 +21,7 @@ module SibApiV3Sdk
21
21
  # Name of the campaign
22
22
  attr_accessor :name
23
23
 
24
- # Subject of the campaign
24
+ # Subject of the campaign. Only available if `abTesting` flag of the campaign is `false`
25
25
  attr_accessor :subject
26
26
 
27
27
  # Type of campaign
@@ -33,6 +33,27 @@ module SibApiV3Sdk
33
33
  # UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ)
34
34
  attr_accessor :scheduled_at
35
35
 
36
+ # Status of A/B Test for the campaign. abTesting = false means it is disabled, & abTesting = true means it is enabled.
37
+ attr_accessor :ab_testing
38
+
39
+ # Subject A of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true`
40
+ attr_accessor :subject_a
41
+
42
+ # Subject B of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true`
43
+ attr_accessor :subject_b
44
+
45
+ # The size of your ab-test groups. Only available if `abTesting` flag of the campaign is `true`
46
+ attr_accessor :split_rule
47
+
48
+ # Criteria for the winning version. Only available if `abTesting` flag of the campaign is `true`
49
+ attr_accessor :winner_criteria
50
+
51
+ # The duration of the test in hours at the end of which the winning version will be sent. Only available if `abTesting` flag of the campaign is `true`
52
+ attr_accessor :winner_delay
53
+
54
+ # It is true if you have chosen to send your campaign at best time, otherwise it is false
55
+ attr_accessor :send_at_best_time
56
+
36
57
  # Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent)
37
58
  attr_accessor :test_sent
38
59
 
@@ -108,6 +129,13 @@ module SibApiV3Sdk
108
129
  :'type' => :'type',
109
130
  :'status' => :'status',
110
131
  :'scheduled_at' => :'scheduledAt',
132
+ :'ab_testing' => :'abTesting',
133
+ :'subject_a' => :'subjectA',
134
+ :'subject_b' => :'subjectB',
135
+ :'split_rule' => :'splitRule',
136
+ :'winner_criteria' => :'winnerCriteria',
137
+ :'winner_delay' => :'winnerDelay',
138
+ :'send_at_best_time' => :'sendAtBestTime',
111
139
  :'test_sent' => :'testSent',
112
140
  :'header' => :'header',
113
141
  :'footer' => :'footer',
@@ -135,6 +163,13 @@ module SibApiV3Sdk
135
163
  :'type' => :'String',
136
164
  :'status' => :'String',
137
165
  :'scheduled_at' => :'DateTime',
166
+ :'ab_testing' => :'BOOLEAN',
167
+ :'subject_a' => :'String',
168
+ :'subject_b' => :'String',
169
+ :'split_rule' => :'Integer',
170
+ :'winner_criteria' => :'String',
171
+ :'winner_delay' => :'Integer',
172
+ :'send_at_best_time' => :'BOOLEAN',
138
173
  :'test_sent' => :'BOOLEAN',
139
174
  :'header' => :'String',
140
175
  :'footer' => :'String',
@@ -185,6 +220,34 @@ module SibApiV3Sdk
185
220
  self.scheduled_at = attributes[:'scheduledAt']
186
221
  end
187
222
 
223
+ if attributes.has_key?(:'abTesting')
224
+ self.ab_testing = attributes[:'abTesting']
225
+ end
226
+
227
+ if attributes.has_key?(:'subjectA')
228
+ self.subject_a = attributes[:'subjectA']
229
+ end
230
+
231
+ if attributes.has_key?(:'subjectB')
232
+ self.subject_b = attributes[:'subjectB']
233
+ end
234
+
235
+ if attributes.has_key?(:'splitRule')
236
+ self.split_rule = attributes[:'splitRule']
237
+ end
238
+
239
+ if attributes.has_key?(:'winnerCriteria')
240
+ self.winner_criteria = attributes[:'winnerCriteria']
241
+ end
242
+
243
+ if attributes.has_key?(:'winnerDelay')
244
+ self.winner_delay = attributes[:'winnerDelay']
245
+ end
246
+
247
+ if attributes.has_key?(:'sendAtBestTime')
248
+ self.send_at_best_time = attributes[:'sendAtBestTime']
249
+ end
250
+
188
251
  if attributes.has_key?(:'testSent')
189
252
  self.test_sent = attributes[:'testSent']
190
253
  end
@@ -259,10 +322,6 @@ module SibApiV3Sdk
259
322
  invalid_properties.push("invalid value for 'name', name cannot be nil.")
260
323
  end
261
324
 
262
- if @subject.nil?
263
- invalid_properties.push("invalid value for 'subject', subject cannot be nil.")
264
- end
265
-
266
325
  if @type.nil?
267
326
  invalid_properties.push("invalid value for 'type', type cannot be nil.")
268
327
  end
@@ -319,7 +378,6 @@ module SibApiV3Sdk
319
378
  def valid?
320
379
  return false if @id.nil?
321
380
  return false if @name.nil?
322
- return false if @subject.nil?
323
381
  return false if @type.nil?
324
382
  type_validator = EnumAttributeValidator.new('String', ["classic", "trigger"])
325
383
  return false unless type_validator.valid?(@type)
@@ -370,6 +428,13 @@ module SibApiV3Sdk
370
428
  type == o.type &&
371
429
  status == o.status &&
372
430
  scheduled_at == o.scheduled_at &&
431
+ ab_testing == o.ab_testing &&
432
+ subject_a == o.subject_a &&
433
+ subject_b == o.subject_b &&
434
+ split_rule == o.split_rule &&
435
+ winner_criteria == o.winner_criteria &&
436
+ winner_delay == o.winner_delay &&
437
+ send_at_best_time == o.send_at_best_time &&
373
438
  test_sent == o.test_sent &&
374
439
  header == o.header &&
375
440
  footer == o.footer &&
@@ -396,7 +461,7 @@ module SibApiV3Sdk
396
461
  # Calculates hash code according to all attributes.
397
462
  # @return [Fixnum] Hash code
398
463
  def hash
399
- [id, name, subject, type, status, scheduled_at, test_sent, header, footer, sender, reply_to, to_field, html_content, share_link, tag, created_at, modified_at, inline_image_activation, mirror_active, recurring, sent_date].hash
464
+ [id, name, subject, type, status, scheduled_at, ab_testing, subject_a, subject_b, split_rule, winner_criteria, winner_delay, send_at_best_time, test_sent, header, footer, sender, reply_to, to_field, html_content, share_link, tag, created_at, modified_at, inline_image_activation, mirror_active, recurring, sent_date].hash
400
465
  end
401
466
 
402
467
  # Builds the object from hash
@@ -27,6 +27,9 @@ module SibApiV3Sdk
27
27
  # Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted)
28
28
  attr_accessor :sms_blacklisted
29
29
 
30
+ # Creation UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ)
31
+ attr_accessor :created_at
32
+
30
33
  # Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ)
31
34
  attr_accessor :modified_at
32
35
 
@@ -47,6 +50,7 @@ module SibApiV3Sdk
47
50
  :'id' => :'id',
48
51
  :'email_blacklisted' => :'emailBlacklisted',
49
52
  :'sms_blacklisted' => :'smsBlacklisted',
53
+ :'created_at' => :'createdAt',
50
54
  :'modified_at' => :'modifiedAt',
51
55
  :'list_ids' => :'listIds',
52
56
  :'list_unsubscribed' => :'listUnsubscribed',
@@ -62,6 +66,7 @@ module SibApiV3Sdk
62
66
  :'id' => :'Integer',
63
67
  :'email_blacklisted' => :'BOOLEAN',
64
68
  :'sms_blacklisted' => :'BOOLEAN',
69
+ :'created_at' => :'DateTime',
65
70
  :'modified_at' => :'DateTime',
66
71
  :'list_ids' => :'Array<Integer>',
67
72
  :'list_unsubscribed' => :'Array<Integer>',
@@ -94,6 +99,10 @@ module SibApiV3Sdk
94
99
  self.sms_blacklisted = attributes[:'smsBlacklisted']
95
100
  end
96
101
 
102
+ if attributes.has_key?(:'createdAt')
103
+ self.created_at = attributes[:'createdAt']
104
+ end
105
+
97
106
  if attributes.has_key?(:'modifiedAt')
98
107
  self.modified_at = attributes[:'modifiedAt']
99
108
  end
@@ -140,6 +149,10 @@ module SibApiV3Sdk
140
149
  invalid_properties.push("invalid value for 'sms_blacklisted', sms_blacklisted cannot be nil.")
141
150
  end
142
151
 
152
+ if @created_at.nil?
153
+ invalid_properties.push("invalid value for 'created_at', created_at cannot be nil.")
154
+ end
155
+
143
156
  if @modified_at.nil?
144
157
  invalid_properties.push("invalid value for 'modified_at', modified_at cannot be nil.")
145
158
  end
@@ -166,6 +179,7 @@ module SibApiV3Sdk
166
179
  return false if @id.nil?
167
180
  return false if @email_blacklisted.nil?
168
181
  return false if @sms_blacklisted.nil?
182
+ return false if @created_at.nil?
169
183
  return false if @modified_at.nil?
170
184
  return false if @list_ids.nil?
171
185
  return false if @attributes.nil?
@@ -182,6 +196,7 @@ module SibApiV3Sdk
182
196
  id == o.id &&
183
197
  email_blacklisted == o.email_blacklisted &&
184
198
  sms_blacklisted == o.sms_blacklisted &&
199
+ created_at == o.created_at &&
185
200
  modified_at == o.modified_at &&
186
201
  list_ids == o.list_ids &&
187
202
  list_unsubscribed == o.list_unsubscribed &&
@@ -198,7 +213,7 @@ module SibApiV3Sdk
198
213
  # Calculates hash code according to all attributes.
199
214
  # @return [Fixnum] Hash code
200
215
  def hash
201
- [email, id, email_blacklisted, sms_blacklisted, modified_at, list_ids, list_unsubscribed, attributes, statistics].hash
216
+ [email, id, email_blacklisted, sms_blacklisted, created_at, modified_at, list_ids, list_unsubscribed, attributes, statistics].hash
202
217
  end
203
218
 
204
219
  # Builds the object from hash
@@ -18,7 +18,7 @@ module SibApiV3Sdk
18
18
  # List of all the attributes that you want to export. These attributes must be present in your contact database. For example, ['fname', 'lname', 'email'].
19
19
  attr_accessor :export_attributes
20
20
 
21
- # Set the filter for the contacts to be exported. For example, {'blacklisted':true} will export all the blacklisted contacts.
21
+ # Set the filter for the contacts to be exported. For example, `{\"blacklisted\":true}` will export all the blacklisted contacts.
22
22
  attr_accessor :contact_filter
23
23
 
24
24
  # Webhook that will be called once the export process is finished
@@ -30,13 +30,13 @@ module SibApiV3Sdk
30
30
  # Absolute url of the attachment (no local file). Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps
31
31
  attr_accessor :attachment_url
32
32
 
33
- # Pass the list of content (base64 encoded) and name of the attachment. For example, [{'content':'base64 encoded content 1', 'name':'attcahment1'}, {'content':'base64 encoded content 2', 'name':'attcahment2'}].
33
+ # Pass the list of content (base64 encoded) and name of the attachment. For example, `[{\"content\":\"base64 encoded content 1\", \"name\":\"attcahment1\"}, {\"content\":\"base64 encoded content 2\", \"name\":\"attcahment2\"}]`
34
34
  attr_accessor :attachment
35
35
 
36
- # Pass the set of headers that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. For example, {'Content-Type':'text/html', 'charset':'iso-8859-1', 'sender.ip':'1.2.3.4'}
36
+ # Pass the set of headers that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. For example, `{\"Content-Type\":\"text/html\", \"charset\":\"iso-8859-1\", \"sender.ip\":\"1.2.3.4\"}`
37
37
  attr_accessor :headers
38
38
 
39
- # Pass the set of attributes to customize the template. For example, {'FNAME':'Joe', 'LNAME':'Doe'}
39
+ # Pass the set of attributes to customize the template. For example, {\"FNAME\":\"Joe\", \"LNAME\":\"Doe\"}
40
40
  attr_accessor :attributes
41
41
 
42
42
  # Tag your emails to find them more easily
@@ -17,7 +17,7 @@ module SibApiV3Sdk
17
17
  class SendSmtpEmail
18
18
  attr_accessor :sender
19
19
 
20
- # List of email addresses and names (optional) of the recipients. For example, [{'name':'Jimmy', 'email':'jimmy98@example.com'}, {'name':'Joe', 'email':'joe@example.com'}]
20
+ # List of email addresses and names (optional) of the recipients. For example, `[{\"name\":\"Jimmy\", \"email\":\"jimmy98@example.com\"}, {\"name\":\"Joe\", \"email\":\"joe@example.com\"}]`
21
21
  attr_accessor :to
22
22
 
23
23
  # List of email addresses and names (optional) of the recipients in bcc
@@ -37,16 +37,16 @@ module SibApiV3Sdk
37
37
 
38
38
  attr_accessor :reply_to
39
39
 
40
- # Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, [{'url':'https://attachment.domain.com/myAttachmentFromUrl.jpg', 'name':'My attachment 1'}, {'content':'base64 exmaple content', 'name':'My attachment 2'}]. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps and odt ( Ignored if 'templateId' is passed )
40
+ # Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"My attachment 1\"}, {\"content\":\"base64 exmaple content\", \"name\":\"My attachment 2\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps and odt ( If 'templateId' is passed and is in New Template Language format then only attachment url is accepted. If template is in Old template Language format, then 'attachment' is ignored )
41
41
  attr_accessor :attachment
42
42
 
43
- # Pass the set of headers that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. For example, {'Content-Type':'text/html', 'charset':'iso-8859-1', 'sender.ip':'1.2.3.4'}
43
+ # Pass the set of headers that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. For example, `{\"Content-Type\":\"text/html\", \"charset\":\"iso-8859-1\", \"sender.ip\":\"1.2.3.4\"}`
44
44
  attr_accessor :headers
45
45
 
46
46
  # Id of the template
47
47
  attr_accessor :template_id
48
48
 
49
- # Pass the set of attributes to customize the template. For example, {'FNAME':'Joe', 'LNAME':'Doe'}. It's considered only if template is in New Template Language format.
49
+ # Pass the set of attributes to customize the template. For example, `{\"FNAME\":\"Joe\", \"LNAME\":\"Doe\"}`. It's considered only if template is in New Template Language format.
50
50
  attr_accessor :params
51
51
 
52
52
  # Tag your emails to find them more easily