sib-api-v3-sdk 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/docs/AttributesApi.md +2 -2
  4. data/docs/ContactsApi.md +32 -32
  5. data/docs/CreateEmailCampaign.md +1 -1
  6. data/docs/CreateSmsCampaign.md +1 -1
  7. data/docs/{CreaUpdateFolder.md → CreateUpdateFolder.md} +1 -1
  8. data/docs/EmailCampaignsApi.md +16 -16
  9. data/docs/FoldersApi.md +16 -16
  10. data/docs/GetAccountPlan.md +2 -0
  11. data/docs/GetCampaignOverview.md +1 -1
  12. data/docs/GetContactCampaignStatsOpened.md +1 -1
  13. data/docs/GetContactDetails.md +1 -1
  14. data/docs/GetEmailCampaign.md +3 -3
  15. data/docs/GetEmailEventReportEvents.md +4 -4
  16. data/docs/GetExtendedCampaignOverview.md +3 -3
  17. data/docs/GetExtendedContactDetails.md +1 -1
  18. data/docs/GetExtendedContactDetailsStatisticsLinks.md +1 -1
  19. data/docs/GetExtendedContactDetailsStatisticsMessagesSent.md +1 -1
  20. data/docs/GetExtendedContactDetailsStatisticsOpened.md +1 -1
  21. data/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md +1 -1
  22. data/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md +1 -1
  23. data/docs/GetExtendedList.md +1 -1
  24. data/docs/GetSmsCampaign.md +3 -3
  25. data/docs/GetSmsCampaignOverview.md +3 -3
  26. data/docs/GetSmsEventReportEvents.md +2 -2
  27. data/docs/GetSmtpTemplateOverview.md +2 -2
  28. data/docs/GetWebhook.md +2 -2
  29. data/docs/ListsApi.md +16 -16
  30. data/docs/ProcessApi.md +2 -2
  31. data/docs/ResellerApi.md +7 -7
  32. data/docs/SMSCampaignsApi.md +16 -16
  33. data/docs/SMTPApi.md +10 -10
  34. data/docs/SendTransacSms.md +1 -0
  35. data/docs/SendersApi.md +6 -6
  36. data/docs/UpdateEmailCampaign.md +1 -1
  37. data/docs/UpdateSmsCampaign.md +1 -1
  38. data/docs/WebhooksApi.md +6 -6
  39. data/lib/sib-api-v3-sdk.rb +1 -1
  40. data/lib/sib-api-v3-sdk/api/contacts_api.rb +20 -24
  41. data/lib/sib-api-v3-sdk/api/folders_api.rb +18 -18
  42. data/lib/sib-api-v3-sdk/api/lists_api.rb +2 -6
  43. data/lib/sib-api-v3-sdk/api/smtp_api.rb +2 -2
  44. data/lib/sib-api-v3-sdk/models/create_email_campaign.rb +2 -18
  45. data/lib/sib-api-v3-sdk/models/create_sms_campaign.rb +2 -18
  46. data/lib/sib-api-v3-sdk/models/{crea_update_folder.rb → create_update_folder.rb} +1 -1
  47. data/lib/sib-api-v3-sdk/models/get_account_plan.rb +24 -4
  48. data/lib/sib-api-v3-sdk/models/get_campaign_overview.rb +2 -18
  49. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_opened.rb +1 -20
  50. data/lib/sib-api-v3-sdk/models/get_contact_details.rb +2 -21
  51. data/lib/sib-api-v3-sdk/models/get_email_campaign.rb +6 -60
  52. data/lib/sib-api-v3-sdk/models/get_email_event_report_events.rb +4 -4
  53. data/lib/sib-api-v3-sdk/models/get_extended_campaign_overview.rb +6 -60
  54. data/lib/sib-api-v3-sdk/models/get_extended_contact_details.rb +2 -21
  55. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_links.rb +1 -20
  56. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_messages_sent.rb +1 -20
  57. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_opened.rb +1 -20
  58. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.rb +1 -20
  59. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.rb +1 -20
  60. data/lib/sib-api-v3-sdk/models/get_extended_list.rb +2 -21
  61. data/lib/sib-api-v3-sdk/models/get_sms_campaign.rb +6 -63
  62. data/lib/sib-api-v3-sdk/models/get_sms_campaign_overview.rb +6 -63
  63. data/lib/sib-api-v3-sdk/models/get_sms_event_report_events.rb +2 -2
  64. data/lib/sib-api-v3-sdk/models/get_smtp_template_overview.rb +4 -42
  65. data/lib/sib-api-v3-sdk/models/get_webhook.rb +4 -42
  66. data/lib/sib-api-v3-sdk/models/send_transac_sms.rb +46 -1
  67. data/lib/sib-api-v3-sdk/models/update_email_campaign.rb +2 -18
  68. data/lib/sib-api-v3-sdk/models/update_sms_campaign.rb +2 -18
  69. data/lib/sib-api-v3-sdk/version.rb +1 -1
  70. data/spec/api/contacts_api_spec.rb +3 -3
  71. data/spec/api/folders_api_spec.rb +2 -2
  72. data/spec/api/lists_api_spec.rb +1 -1
  73. data/spec/api/smtp_api_spec.rb +1 -1
  74. data/spec/models/{crea_update_folder_spec.rb → create_update_folder_spec.rb} +6 -6
  75. data/spec/models/get_account_plan_spec.rb +12 -0
  76. data/spec/models/send_transac_sms_spec.rb +10 -0
  77. metadata +6 -6
@@ -43,7 +43,7 @@ module SibApiV3Sdk
43
43
  {
44
44
  :'campaign_id' => :'Integer',
45
45
  :'count' => :'Integer',
46
- :'event_time' => :'String',
46
+ :'event_time' => :'DateTime',
47
47
  :'ip' => :'String'
48
48
  }
49
49
  end
@@ -90,10 +90,6 @@ module SibApiV3Sdk
90
90
  invalid_properties.push("invalid value for 'event_time', event_time cannot be nil.")
91
91
  end
92
92
 
93
- if @event_time !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
94
- invalid_properties.push("invalid value for 'event_time', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/.")
95
- end
96
-
97
93
  if @ip.nil?
98
94
  invalid_properties.push("invalid value for 'ip', ip cannot be nil.")
99
95
  end
@@ -107,25 +103,10 @@ module SibApiV3Sdk
107
103
  return false if @campaign_id.nil?
108
104
  return false if @count.nil?
109
105
  return false if @event_time.nil?
110
- return false if @event_time !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
111
106
  return false if @ip.nil?
112
107
  return true
113
108
  end
114
109
 
115
- # Custom attribute writer method with validation
116
- # @param [Object] event_time Value to be assigned
117
- def event_time=(event_time)
118
- if event_time.nil?
119
- fail ArgumentError, "event_time cannot be nil"
120
- end
121
-
122
- if event_time !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
123
- fail ArgumentError, "invalid value for 'event_time', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/."
124
- end
125
-
126
- @event_time = event_time
127
- end
128
-
129
110
  # Checks equality by comparing each attribute.
130
111
  # @param [Object] Object to be compared
131
112
  def ==(o)
@@ -27,7 +27,7 @@ module SibApiV3Sdk
27
27
  # Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted)
28
28
  attr_accessor :sms_blacklisted
29
29
 
30
- # Last modification date of the contact (YYYY-MM-DD HH:mm:ss)
30
+ # Last modification date of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ)
31
31
  attr_accessor :modified_at
32
32
 
33
33
  attr_accessor :list_ids
@@ -58,7 +58,7 @@ module SibApiV3Sdk
58
58
  :'id' => :'Integer',
59
59
  :'email_blacklisted' => :'BOOLEAN',
60
60
  :'sms_blacklisted' => :'BOOLEAN',
61
- :'modified_at' => :'String',
61
+ :'modified_at' => :'DateTime',
62
62
  :'list_ids' => :'Array<Integer>',
63
63
  :'list_unsubscribed' => :'Array<Integer>',
64
64
  :'attributes' => :'Hash<String, String>'
@@ -137,10 +137,6 @@ module SibApiV3Sdk
137
137
  invalid_properties.push("invalid value for 'modified_at', modified_at cannot be nil.")
138
138
  end
139
139
 
140
- if @modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
141
- invalid_properties.push("invalid value for 'modified_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/.")
142
- end
143
-
144
140
  if @list_ids.nil?
145
141
  invalid_properties.push("invalid value for 'list_ids', list_ids cannot be nil.")
146
142
  end
@@ -160,26 +156,11 @@ module SibApiV3Sdk
160
156
  return false if @email_blacklisted.nil?
161
157
  return false if @sms_blacklisted.nil?
162
158
  return false if @modified_at.nil?
163
- return false if @modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
164
159
  return false if @list_ids.nil?
165
160
  return false if @attributes.nil?
166
161
  return true
167
162
  end
168
163
 
169
- # Custom attribute writer method with validation
170
- # @param [Object] modified_at Value to be assigned
171
- def modified_at=(modified_at)
172
- if modified_at.nil?
173
- fail ArgumentError, "modified_at cannot be nil"
174
- end
175
-
176
- if modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
177
- fail ArgumentError, "invalid value for 'modified_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/."
178
- end
179
-
180
- @modified_at = modified_at
181
- end
182
-
183
164
  # Checks equality by comparing each attribute.
184
165
  # @param [Object] Object to be compared
185
166
  def ==(o)
@@ -30,7 +30,7 @@ module SibApiV3Sdk
30
30
  # Status of the campaign
31
31
  attr_accessor :status
32
32
 
33
- # Date on which campaign is scheduled (YYYY-MM-DD HH:mm:ss)
33
+ # Date on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ)
34
34
  attr_accessor :scheduled_at
35
35
 
36
36
  # Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent)
@@ -59,10 +59,10 @@ module SibApiV3Sdk
59
59
  # Tag of the campaign
60
60
  attr_accessor :tag
61
61
 
62
- # Creation date of the campaign (YYYY-MM-DD HH:mm:ss)
62
+ # Creation date of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ)
63
63
  attr_accessor :created_at
64
64
 
65
- # Date of last modification of the campaign (YYYY-MM-DD HH:mm:ss)
65
+ # Date of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ)
66
66
  attr_accessor :modified_at
67
67
 
68
68
  # Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email.
@@ -130,7 +130,7 @@ module SibApiV3Sdk
130
130
  :'subject' => :'String',
131
131
  :'type' => :'String',
132
132
  :'status' => :'String',
133
- :'scheduled_at' => :'String',
133
+ :'scheduled_at' => :'DateTime',
134
134
  :'test_sent' => :'BOOLEAN',
135
135
  :'header' => :'String',
136
136
  :'footer' => :'String',
@@ -140,8 +140,8 @@ module SibApiV3Sdk
140
140
  :'html_content' => :'String',
141
141
  :'share_link' => :'String',
142
142
  :'tag' => :'String',
143
- :'created_at' => :'String',
144
- :'modified_at' => :'String',
143
+ :'created_at' => :'DateTime',
144
+ :'modified_at' => :'DateTime',
145
145
  :'inline_image_activation' => :'BOOLEAN',
146
146
  :'mirror_active' => :'BOOLEAN',
147
147
  :'recurring' => :'BOOLEAN'
@@ -262,10 +262,6 @@ module SibApiV3Sdk
262
262
  invalid_properties.push("invalid value for 'status', status cannot be nil.")
263
263
  end
264
264
 
265
- if !@scheduled_at.nil? && @scheduled_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
266
- invalid_properties.push("invalid value for 'scheduled_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/.")
267
- end
268
-
269
265
  if @test_sent.nil?
270
266
  invalid_properties.push("invalid value for 'test_sent', test_sent cannot be nil.")
271
267
  end
@@ -298,18 +294,10 @@ module SibApiV3Sdk
298
294
  invalid_properties.push("invalid value for 'created_at', created_at cannot be nil.")
299
295
  end
300
296
 
301
- if @created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
302
- invalid_properties.push("invalid value for 'created_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/.")
303
- end
304
-
305
297
  if @modified_at.nil?
306
298
  invalid_properties.push("invalid value for 'modified_at', modified_at cannot be nil.")
307
299
  end
308
300
 
309
- if @modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
310
- invalid_properties.push("invalid value for 'modified_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/.")
311
- end
312
-
313
301
  return invalid_properties
314
302
  end
315
303
 
@@ -325,7 +313,6 @@ module SibApiV3Sdk
325
313
  return false if @status.nil?
326
314
  status_validator = EnumAttributeValidator.new('String', ["draft", "sent", "archive", "queued", "suspended", "in_process"])
327
315
  return false unless status_validator.valid?(@status)
328
- return false if !@scheduled_at.nil? && @scheduled_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
329
316
  return false if @test_sent.nil?
330
317
  return false if @header.nil?
331
318
  return false if @footer.nil?
@@ -334,9 +321,7 @@ module SibApiV3Sdk
334
321
  return false if @html_content.nil?
335
322
  return false if @tag.nil?
336
323
  return false if @created_at.nil?
337
- return false if @created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
338
324
  return false if @modified_at.nil?
339
- return false if @modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
340
325
  return true
341
326
  end
342
327
 
@@ -360,45 +345,6 @@ module SibApiV3Sdk
360
345
  @status = status
361
346
  end
362
347
 
363
- # Custom attribute writer method with validation
364
- # @param [Object] scheduled_at Value to be assigned
365
- def scheduled_at=(scheduled_at)
366
-
367
- if !scheduled_at.nil? && scheduled_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
368
- fail ArgumentError, "invalid value for 'scheduled_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/."
369
- end
370
-
371
- @scheduled_at = scheduled_at
372
- end
373
-
374
- # Custom attribute writer method with validation
375
- # @param [Object] created_at Value to be assigned
376
- def created_at=(created_at)
377
- if created_at.nil?
378
- fail ArgumentError, "created_at cannot be nil"
379
- end
380
-
381
- if created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
382
- fail ArgumentError, "invalid value for 'created_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/."
383
- end
384
-
385
- @created_at = created_at
386
- end
387
-
388
- # Custom attribute writer method with validation
389
- # @param [Object] modified_at Value to be assigned
390
- def modified_at=(modified_at)
391
- if modified_at.nil?
392
- fail ArgumentError, "modified_at cannot be nil"
393
- end
394
-
395
- if modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
396
- fail ArgumentError, "invalid value for 'modified_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/."
397
- end
398
-
399
- @modified_at = modified_at
400
- end
401
-
402
348
  # Checks equality by comparing each attribute.
403
349
  # @param [Object] Object to be compared
404
350
  def ==(o)
@@ -27,19 +27,19 @@ module SibApiV3Sdk
27
27
  # Message ID which generated the event
28
28
  attr_accessor :message_id
29
29
 
30
- # Event which occured
30
+ # Event which occurred
31
31
  attr_accessor :event
32
32
 
33
- # Reason of bounce (only availble if the event is hardbounce or softbounce)
33
+ # Reason of bounce (only available if the event is hardbounce or softbounce)
34
34
  attr_accessor :reason
35
35
 
36
36
  # Tag of the email which generated the event
37
37
  attr_accessor :tag
38
38
 
39
- # IP from which the user has opened the email or clicked on the link (only availble if the event is opened or clicks)
39
+ # IP from which the user has opened the email or clicked on the link (only available if the event is opened or clicks)
40
40
  attr_accessor :ip
41
41
 
42
- # The link which is sent to the user (only availble if the event is requests or opened or clicks)
42
+ # The link which is sent to the user (only available if the event is requests or opened or clicks)
43
43
  attr_accessor :link
44
44
 
45
45
  class EnumAttributeValidator
@@ -30,7 +30,7 @@ module SibApiV3Sdk
30
30
  # Status of the campaign
31
31
  attr_accessor :status
32
32
 
33
- # Date on which campaign is scheduled (YYYY-MM-DD HH:mm:ss)
33
+ # Date on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ)
34
34
  attr_accessor :scheduled_at
35
35
 
36
36
  # Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent)
@@ -59,10 +59,10 @@ module SibApiV3Sdk
59
59
  # Tag of the campaign
60
60
  attr_accessor :tag
61
61
 
62
- # Creation date of the campaign (YYYY-MM-DD HH:mm:ss)
62
+ # Creation date of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ)
63
63
  attr_accessor :created_at
64
64
 
65
- # Date of last modification of the campaign (YYYY-MM-DD HH:mm:ss)
65
+ # Date of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ)
66
66
  attr_accessor :modified_at
67
67
 
68
68
  # Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email.
@@ -130,7 +130,7 @@ module SibApiV3Sdk
130
130
  :'subject' => :'String',
131
131
  :'type' => :'String',
132
132
  :'status' => :'String',
133
- :'scheduled_at' => :'String',
133
+ :'scheduled_at' => :'DateTime',
134
134
  :'test_sent' => :'BOOLEAN',
135
135
  :'header' => :'String',
136
136
  :'footer' => :'String',
@@ -140,8 +140,8 @@ module SibApiV3Sdk
140
140
  :'html_content' => :'String',
141
141
  :'share_link' => :'String',
142
142
  :'tag' => :'String',
143
- :'created_at' => :'String',
144
- :'modified_at' => :'String',
143
+ :'created_at' => :'DateTime',
144
+ :'modified_at' => :'DateTime',
145
145
  :'inline_image_activation' => :'BOOLEAN',
146
146
  :'mirror_active' => :'BOOLEAN',
147
147
  :'recurring' => :'BOOLEAN'
@@ -262,10 +262,6 @@ module SibApiV3Sdk
262
262
  invalid_properties.push("invalid value for 'status', status cannot be nil.")
263
263
  end
264
264
 
265
- if !@scheduled_at.nil? && @scheduled_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
266
- invalid_properties.push("invalid value for 'scheduled_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/.")
267
- end
268
-
269
265
  if @test_sent.nil?
270
266
  invalid_properties.push("invalid value for 'test_sent', test_sent cannot be nil.")
271
267
  end
@@ -298,18 +294,10 @@ module SibApiV3Sdk
298
294
  invalid_properties.push("invalid value for 'created_at', created_at cannot be nil.")
299
295
  end
300
296
 
301
- if @created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
302
- invalid_properties.push("invalid value for 'created_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/.")
303
- end
304
-
305
297
  if @modified_at.nil?
306
298
  invalid_properties.push("invalid value for 'modified_at', modified_at cannot be nil.")
307
299
  end
308
300
 
309
- if @modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
310
- invalid_properties.push("invalid value for 'modified_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/.")
311
- end
312
-
313
301
  return invalid_properties
314
302
  end
315
303
 
@@ -325,7 +313,6 @@ module SibApiV3Sdk
325
313
  return false if @status.nil?
326
314
  status_validator = EnumAttributeValidator.new('String', ["draft", "sent", "archive", "queued", "suspended", "in_process"])
327
315
  return false unless status_validator.valid?(@status)
328
- return false if !@scheduled_at.nil? && @scheduled_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
329
316
  return false if @test_sent.nil?
330
317
  return false if @header.nil?
331
318
  return false if @footer.nil?
@@ -334,9 +321,7 @@ module SibApiV3Sdk
334
321
  return false if @html_content.nil?
335
322
  return false if @tag.nil?
336
323
  return false if @created_at.nil?
337
- return false if @created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
338
324
  return false if @modified_at.nil?
339
- return false if @modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
340
325
  return true
341
326
  end
342
327
 
@@ -360,45 +345,6 @@ module SibApiV3Sdk
360
345
  @status = status
361
346
  end
362
347
 
363
- # Custom attribute writer method with validation
364
- # @param [Object] scheduled_at Value to be assigned
365
- def scheduled_at=(scheduled_at)
366
-
367
- if !scheduled_at.nil? && scheduled_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
368
- fail ArgumentError, "invalid value for 'scheduled_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/."
369
- end
370
-
371
- @scheduled_at = scheduled_at
372
- end
373
-
374
- # Custom attribute writer method with validation
375
- # @param [Object] created_at Value to be assigned
376
- def created_at=(created_at)
377
- if created_at.nil?
378
- fail ArgumentError, "created_at cannot be nil"
379
- end
380
-
381
- if created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
382
- fail ArgumentError, "invalid value for 'created_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/."
383
- end
384
-
385
- @created_at = created_at
386
- end
387
-
388
- # Custom attribute writer method with validation
389
- # @param [Object] modified_at Value to be assigned
390
- def modified_at=(modified_at)
391
- if modified_at.nil?
392
- fail ArgumentError, "modified_at cannot be nil"
393
- end
394
-
395
- if modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
396
- fail ArgumentError, "invalid value for 'modified_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/."
397
- end
398
-
399
- @modified_at = modified_at
400
- end
401
-
402
348
  # Checks equality by comparing each attribute.
403
349
  # @param [Object] Object to be compared
404
350
  def ==(o)
@@ -27,7 +27,7 @@ module SibApiV3Sdk
27
27
  # Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted)
28
28
  attr_accessor :sms_blacklisted
29
29
 
30
- # Last modification date of the contact (YYYY-MM-DD HH:mm:ss)
30
+ # Last modification date of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ)
31
31
  attr_accessor :modified_at
32
32
 
33
33
  attr_accessor :list_ids
@@ -61,7 +61,7 @@ module SibApiV3Sdk
61
61
  :'id' => :'Integer',
62
62
  :'email_blacklisted' => :'BOOLEAN',
63
63
  :'sms_blacklisted' => :'BOOLEAN',
64
- :'modified_at' => :'String',
64
+ :'modified_at' => :'DateTime',
65
65
  :'list_ids' => :'Array<Integer>',
66
66
  :'list_unsubscribed' => :'Array<Integer>',
67
67
  :'attributes' => :'Hash<String, String>',
@@ -145,10 +145,6 @@ module SibApiV3Sdk
145
145
  invalid_properties.push("invalid value for 'modified_at', modified_at cannot be nil.")
146
146
  end
147
147
 
148
- if @modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
149
- invalid_properties.push("invalid value for 'modified_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/.")
150
- end
151
-
152
148
  if @list_ids.nil?
153
149
  invalid_properties.push("invalid value for 'list_ids', list_ids cannot be nil.")
154
150
  end
@@ -168,26 +164,11 @@ module SibApiV3Sdk
168
164
  return false if @email_blacklisted.nil?
169
165
  return false if @sms_blacklisted.nil?
170
166
  return false if @modified_at.nil?
171
- return false if @modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
172
167
  return false if @list_ids.nil?
173
168
  return false if @attributes.nil?
174
169
  return true
175
170
  end
176
171
 
177
- # Custom attribute writer method with validation
178
- # @param [Object] modified_at Value to be assigned
179
- def modified_at=(modified_at)
180
- if modified_at.nil?
181
- fail ArgumentError, "modified_at cannot be nil"
182
- end
183
-
184
- if modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
185
- fail ArgumentError, "invalid value for 'modified_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/."
186
- end
187
-
188
- @modified_at = modified_at
189
- end
190
-
191
172
  # Checks equality by comparing each attribute.
192
173
  # @param [Object] Object to be compared
193
174
  def ==(o)
@@ -42,7 +42,7 @@ module SibApiV3Sdk
42
42
  def self.swagger_types
43
43
  {
44
44
  :'count' => :'Integer',
45
- :'event_time' => :'String',
45
+ :'event_time' => :'DateTime',
46
46
  :'ip' => :'String',
47
47
  :'url' => :'String'
48
48
  }
@@ -86,10 +86,6 @@ module SibApiV3Sdk
86
86
  invalid_properties.push("invalid value for 'event_time', event_time cannot be nil.")
87
87
  end
88
88
 
89
- if @event_time !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
90
- invalid_properties.push("invalid value for 'event_time', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/.")
91
- end
92
-
93
89
  if @ip.nil?
94
90
  invalid_properties.push("invalid value for 'ip', ip cannot be nil.")
95
91
  end
@@ -106,26 +102,11 @@ module SibApiV3Sdk
106
102
  def valid?
107
103
  return false if @count.nil?
108
104
  return false if @event_time.nil?
109
- return false if @event_time !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
110
105
  return false if @ip.nil?
111
106
  return false if @url.nil?
112
107
  return true
113
108
  end
114
109
 
115
- # Custom attribute writer method with validation
116
- # @param [Object] event_time Value to be assigned
117
- def event_time=(event_time)
118
- if event_time.nil?
119
- fail ArgumentError, "event_time cannot be nil"
120
- end
121
-
122
- if event_time !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
123
- fail ArgumentError, "invalid value for 'event_time', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/."
124
- end
125
-
126
- @event_time = event_time
127
- end
128
-
129
110
  # Checks equality by comparing each attribute.
130
111
  # @param [Object] Object to be compared
131
112
  def ==(o)