sib-api-v3-sdk 2.0.1 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -24,10 +24,10 @@ module SibApiV3Sdk
24
24
  # Message ID which generated the event
25
25
  attr_accessor :message_id
26
26
 
27
- # Event which occured
27
+ # Event which occurred
28
28
  attr_accessor :event
29
29
 
30
- # Reason of bounce (only availble if the event is hardbounce or softbounce)
30
+ # Reason of bounce (only available if the event is hardbounce or softbounce)
31
31
  attr_accessor :reason
32
32
 
33
33
  attr_accessor :reply
@@ -44,10 +44,10 @@ module SibApiV3Sdk
44
44
  # HTML content of the template
45
45
  attr_accessor :html_content
46
46
 
47
- # Creation date of the template (YYYY-MM-DD HH:mm:ss)
47
+ # Creation date of the template (YYYY-MM-DDTHH:mm:ss.SSSZ)
48
48
  attr_accessor :created_at
49
49
 
50
- # Last modification date of the template (YYYY-MM-DD HH:mm:ss)
50
+ # Last modification date of the template (YYYY-MM-DDTHH:mm:ss.SSSZ)
51
51
  attr_accessor :modified_at
52
52
 
53
53
 
@@ -82,8 +82,8 @@ module SibApiV3Sdk
82
82
  :'to_field' => :'String',
83
83
  :'tag' => :'String',
84
84
  :'html_content' => :'String',
85
- :'created_at' => :'String',
86
- :'modified_at' => :'String'
85
+ :'created_at' => :'DateTime',
86
+ :'modified_at' => :'DateTime'
87
87
  }
88
88
  end
89
89
 
@@ -189,18 +189,10 @@ module SibApiV3Sdk
189
189
  invalid_properties.push("invalid value for 'created_at', created_at cannot be nil.")
190
190
  end
191
191
 
192
- if @created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
193
- 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)?$/.")
194
- end
195
-
196
192
  if @modified_at.nil?
197
193
  invalid_properties.push("invalid value for 'modified_at', modified_at cannot be nil.")
198
194
  end
199
195
 
200
- if @modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
201
- 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)?$/.")
202
- end
203
-
204
196
  return invalid_properties
205
197
  end
206
198
 
@@ -217,40 +209,10 @@ module SibApiV3Sdk
217
209
  return false if @tag.nil?
218
210
  return false if @html_content.nil?
219
211
  return false if @created_at.nil?
220
- return false if @created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
221
212
  return false if @modified_at.nil?
222
- return false if @modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
223
213
  return true
224
214
  end
225
215
 
226
- # Custom attribute writer method with validation
227
- # @param [Object] created_at Value to be assigned
228
- def created_at=(created_at)
229
- if created_at.nil?
230
- fail ArgumentError, "created_at cannot be nil"
231
- end
232
-
233
- if created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
234
- 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)?$/."
235
- end
236
-
237
- @created_at = created_at
238
- end
239
-
240
- # Custom attribute writer method with validation
241
- # @param [Object] modified_at Value to be assigned
242
- def modified_at=(modified_at)
243
- if modified_at.nil?
244
- fail ArgumentError, "modified_at cannot be nil"
245
- end
246
-
247
- if modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
248
- 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)?$/."
249
- end
250
-
251
- @modified_at = modified_at
252
- end
253
-
254
216
  # Checks equality by comparing each attribute.
255
217
  # @param [Object] Object to be compared
256
218
  def ==(o)
@@ -29,10 +29,10 @@ module SibApiV3Sdk
29
29
  # Type of webhook (marketing or transac)
30
30
  attr_accessor :type
31
31
 
32
- # Creation date of the webhook (YYYY-MM-DD HH:mm:ss)
32
+ # Creation date of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ)
33
33
  attr_accessor :created_at
34
34
 
35
- # Last modification date of the webhook (YYYY-MM-DD HH:mm:ss)
35
+ # Last modification date of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ)
36
36
  attr_accessor :modified_at
37
37
 
38
38
  class EnumAttributeValidator
@@ -78,8 +78,8 @@ module SibApiV3Sdk
78
78
  :'description' => :'String',
79
79
  :'events' => :'Array<String>',
80
80
  :'type' => :'String',
81
- :'created_at' => :'String',
82
- :'modified_at' => :'String'
81
+ :'created_at' => :'DateTime',
82
+ :'modified_at' => :'DateTime'
83
83
  }
84
84
  end
85
85
 
@@ -151,18 +151,10 @@ module SibApiV3Sdk
151
151
  invalid_properties.push("invalid value for 'created_at', created_at cannot be nil.")
152
152
  end
153
153
 
154
- if @created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
155
- 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)?$/.")
156
- end
157
-
158
154
  if @modified_at.nil?
159
155
  invalid_properties.push("invalid value for 'modified_at', modified_at cannot be nil.")
160
156
  end
161
157
 
162
- if @modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
163
- 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)?$/.")
164
- end
165
-
166
158
  return invalid_properties
167
159
  end
168
160
 
@@ -177,9 +169,7 @@ module SibApiV3Sdk
177
169
  type_validator = EnumAttributeValidator.new('String', ["marketing", "transac"])
178
170
  return false unless type_validator.valid?(@type)
179
171
  return false if @created_at.nil?
180
- return false if @created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
181
172
  return false if @modified_at.nil?
182
- return false if @modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
183
173
  return true
184
174
  end
185
175
 
@@ -193,34 +183,6 @@ module SibApiV3Sdk
193
183
  @type = type
194
184
  end
195
185
 
196
- # Custom attribute writer method with validation
197
- # @param [Object] created_at Value to be assigned
198
- def created_at=(created_at)
199
- if created_at.nil?
200
- fail ArgumentError, "created_at cannot be nil"
201
- end
202
-
203
- if created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
204
- 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)?$/."
205
- end
206
-
207
- @created_at = created_at
208
- end
209
-
210
- # Custom attribute writer method with validation
211
- # @param [Object] modified_at Value to be assigned
212
- def modified_at=(modified_at)
213
- if modified_at.nil?
214
- fail ArgumentError, "modified_at cannot be nil"
215
- end
216
-
217
- if modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
218
- 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)?$/."
219
- end
220
-
221
- @modified_at = modified_at
222
- end
223
-
224
186
  # Checks equality by comparing each attribute.
225
187
  # @param [Object] Object to be compared
226
188
  def ==(o)
@@ -24,12 +24,36 @@ module SibApiV3Sdk
24
24
  # Content of the message. If more than 160 characters long, multiple text messages will be sent
25
25
  attr_accessor :content
26
26
 
27
+ # Type of the SMS
28
+ attr_accessor :type
29
+
27
30
  # Tag of the message
28
31
  attr_accessor :tag
29
32
 
30
33
  # Webhook to call for each event triggered by the message (delivered etc.)
31
34
  attr_accessor :web_url
32
35
 
36
+ class EnumAttributeValidator
37
+ attr_reader :datatype
38
+ attr_reader :allowable_values
39
+
40
+ def initialize(datatype, allowable_values)
41
+ @allowable_values = allowable_values.map do |value|
42
+ case datatype.to_s
43
+ when /Integer/i
44
+ value.to_i
45
+ when /Float/i
46
+ value.to_f
47
+ else
48
+ value
49
+ end
50
+ end
51
+ end
52
+
53
+ def valid?(value)
54
+ !value || allowable_values.include?(value)
55
+ end
56
+ end
33
57
 
34
58
  # Attribute mapping from ruby-style variable name to JSON key.
35
59
  def self.attribute_map
@@ -37,6 +61,7 @@ module SibApiV3Sdk
37
61
  :'sender' => :'sender',
38
62
  :'recipient' => :'recipient',
39
63
  :'content' => :'content',
64
+ :'type' => :'type',
40
65
  :'tag' => :'tag',
41
66
  :'web_url' => :'webUrl'
42
67
  }
@@ -48,6 +73,7 @@ module SibApiV3Sdk
48
73
  :'sender' => :'String',
49
74
  :'recipient' => :'String',
50
75
  :'content' => :'String',
76
+ :'type' => :'String',
51
77
  :'tag' => :'String',
52
78
  :'web_url' => :'String'
53
79
  }
@@ -73,6 +99,12 @@ module SibApiV3Sdk
73
99
  self.content = attributes[:'content']
74
100
  end
75
101
 
102
+ if attributes.has_key?(:'type')
103
+ self.type = attributes[:'type']
104
+ else
105
+ self.type = "transactional"
106
+ end
107
+
76
108
  if attributes.has_key?(:'tag')
77
109
  self.tag = attributes[:'tag']
78
110
  end
@@ -118,6 +150,8 @@ module SibApiV3Sdk
118
150
  return false if @recipient.nil?
119
151
  return false if @content.nil?
120
152
  return false if @content.to_s.length > 160
153
+ type_validator = EnumAttributeValidator.new('String', ["transactional", "marketing"])
154
+ return false unless type_validator.valid?(@type)
121
155
  return true
122
156
  end
123
157
 
@@ -149,6 +183,16 @@ module SibApiV3Sdk
149
183
  @content = content
150
184
  end
151
185
 
186
+ # Custom attribute writer method checking allowed values (enum).
187
+ # @param [Object] type Object to be assigned
188
+ def type=(type)
189
+ validator = EnumAttributeValidator.new('String', ["transactional", "marketing"])
190
+ unless validator.valid?(type)
191
+ fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}."
192
+ end
193
+ @type = type
194
+ end
195
+
152
196
  # Checks equality by comparing each attribute.
153
197
  # @param [Object] Object to be compared
154
198
  def ==(o)
@@ -157,6 +201,7 @@ module SibApiV3Sdk
157
201
  sender == o.sender &&
158
202
  recipient == o.recipient &&
159
203
  content == o.content &&
204
+ type == o.type &&
160
205
  tag == o.tag &&
161
206
  web_url == o.web_url
162
207
  end
@@ -170,7 +215,7 @@ module SibApiV3Sdk
170
215
  # Calculates hash code according to all attributes.
171
216
  # @return [Fixnum] Hash code
172
217
  def hash
173
- [sender, recipient, content, tag, web_url].hash
218
+ [sender, recipient, content, type, tag, web_url].hash
174
219
  end
175
220
 
176
221
  # Builds the object from hash
@@ -29,7 +29,7 @@ module SibApiV3Sdk
29
29
  # Url which contents the body of the email message. REQUIRED if htmlContent is empty
30
30
  attr_accessor :html_url
31
31
 
32
- # Date and time on which the campaign has to run (YYYY-MM-DD HH:mm:ss)
32
+ # Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ)
33
33
  attr_accessor :scheduled_at
34
34
 
35
35
  # Subject of the campaign
@@ -96,7 +96,7 @@ module SibApiV3Sdk
96
96
  :'name' => :'String',
97
97
  :'html_content' => :'String',
98
98
  :'html_url' => :'String',
99
- :'scheduled_at' => :'String',
99
+ :'scheduled_at' => :'DateTime',
100
100
  :'subject' => :'String',
101
101
  :'reply_to' => :'String',
102
102
  :'to_field' => :'String',
@@ -197,31 +197,15 @@ module SibApiV3Sdk
197
197
  # @return Array for valid properies with the reasons
198
198
  def list_invalid_properties
199
199
  invalid_properties = Array.new
200
- 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)?$/)
201
- 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)?$/.")
202
- end
203
-
204
200
  return invalid_properties
205
201
  end
206
202
 
207
203
  # Check to see if the all the properties in the model are valid
208
204
  # @return true if the model is valid
209
205
  def valid?
210
- 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)?$/)
211
206
  return true
212
207
  end
213
208
 
214
- # Custom attribute writer method with validation
215
- # @param [Object] scheduled_at Value to be assigned
216
- def scheduled_at=(scheduled_at)
217
-
218
- 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)?$/)
219
- 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)?$/."
220
- end
221
-
222
- @scheduled_at = scheduled_at
223
- end
224
-
225
209
  # Checks equality by comparing each attribute.
226
210
  # @param [Object] Object to be compared
227
211
  def ==(o)
@@ -26,7 +26,7 @@ module SibApiV3Sdk
26
26
 
27
27
  attr_accessor :recipients
28
28
 
29
- # Date and time on which the campaign has to run (YYYY-MM-DD HH:mm:ss)
29
+ # Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ)
30
30
  attr_accessor :scheduled_at
31
31
 
32
32
 
@@ -48,7 +48,7 @@ module SibApiV3Sdk
48
48
  :'sender' => :'String',
49
49
  :'content' => :'String',
50
50
  :'recipients' => :'CreateSmsCampaignRecipients',
51
- :'scheduled_at' => :'String'
51
+ :'scheduled_at' => :'DateTime'
52
52
  }
53
53
  end
54
54
 
@@ -90,10 +90,6 @@ module SibApiV3Sdk
90
90
  invalid_properties.push("invalid value for 'sender', the character length must be smaller than or equal to 11.")
91
91
  end
92
92
 
93
- 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)?$/)
94
- 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)?$/.")
95
- end
96
-
97
93
  return invalid_properties
98
94
  end
99
95
 
@@ -101,7 +97,6 @@ module SibApiV3Sdk
101
97
  # @return true if the model is valid
102
98
  def valid?
103
99
  return false if !@sender.nil? && @sender.to_s.length > 11
104
- 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)?$/)
105
100
  return true
106
101
  end
107
102
 
@@ -116,17 +111,6 @@ module SibApiV3Sdk
116
111
  @sender = sender
117
112
  end
118
113
 
119
- # Custom attribute writer method with validation
120
- # @param [Object] scheduled_at Value to be assigned
121
- def scheduled_at=(scheduled_at)
122
-
123
- 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)?$/)
124
- 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)?$/."
125
- end
126
-
127
- @scheduled_at = scheduled_at
128
- end
129
-
130
114
  # Checks equality by comparing each attribute.
131
115
  # @param [Object] Object to be compared
132
116
  def ==(o)
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.2.3
11
11
  =end
12
12
 
13
13
  module SibApiV3Sdk
14
- VERSION = "2.0.1"
14
+ VERSION = "2.1.0"
15
15
  end
@@ -72,7 +72,7 @@ describe 'ContactsApi' do
72
72
  # unit tests for create_folder
73
73
  # Create a folder
74
74
  #
75
- # @param name Name of the folder
75
+ # @param create_folder Name of the folder
76
76
  # @param [Hash] opts the optional parameters
77
77
  # @return [CreateModel]
78
78
  describe 'create_folder test' do
@@ -182,7 +182,7 @@ describe 'ContactsApi' do
182
182
  #
183
183
  # @param list_id Id of the list
184
184
  # @param [Hash] opts the optional parameters
185
- # @option opts [String] :modified_since Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss)
185
+ # @option opts [DateTime] :modified_since Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ)
186
186
  # @option opts [Integer] :limit Number of documents per page
187
187
  # @option opts [Integer] :offset Index of the first document of the page
188
188
  # @return [GetContacts]
@@ -310,7 +310,7 @@ describe 'ContactsApi' do
310
310
  # Update a contact folder
311
311
  #
312
312
  # @param folder_id Id of the folder
313
- # @param name Name of the folder
313
+ # @param update_folder Name of the folder
314
314
  # @param [Hash] opts the optional parameters
315
315
  # @return [nil]
316
316
  describe 'update_folder test' do
@@ -35,7 +35,7 @@ describe 'FoldersApi' do
35
35
  # unit tests for create_folder
36
36
  # Create a folder
37
37
  #
38
- # @param name Name of the folder
38
+ # @param create_folder Name of the folder
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [CreateModel]
41
41
  describe 'create_folder test' do
@@ -99,7 +99,7 @@ describe 'FoldersApi' do
99
99
  # Update a contact folder
100
100
  #
101
101
  # @param folder_id Id of the folder
102
- # @param name Name of the folder
102
+ # @param update_folder Name of the folder
103
103
  # @param [Hash] opts the optional parameters
104
104
  # @return [nil]
105
105
  describe 'update_folder test' do
@@ -74,7 +74,7 @@ describe 'ListsApi' do
74
74
  #
75
75
  # @param list_id Id of the list
76
76
  # @param [Hash] opts the optional parameters
77
- # @option opts [String] :modified_since Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss)
77
+ # @option opts [DateTime] :modified_since Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ)
78
78
  # @option opts [Integer] :limit Number of documents per page
79
79
  # @option opts [Integer] :offset Index of the first document of the page
80
80
  # @return [GetContacts]