late-sdk 0.0.684 → 0.0.686

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 (55) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -0
  3. data/docs/AccountsApi.md +76 -0
  4. data/docs/CommentAutomationAudience.md +22 -0
  5. data/docs/CommentAutomationFollowGate.md +22 -0
  6. data/docs/CommentAutomationsApi.md +2 -2
  7. data/docs/ConversionEvent.md +1 -1
  8. data/docs/ConversionEventUser.md +2 -0
  9. data/docs/CreateCommentAutomation200ResponseAutomation.md +8 -0
  10. data/docs/CreateCommentAutomationRequest.md +9 -1
  11. data/docs/GetCommentAutomation200ResponseAutomation.md +8 -0
  12. data/docs/GetCommentAutomation200ResponseLogsInner.md +9 -1
  13. data/docs/GetInstagramFollowStatus200Response.md +34 -0
  14. data/docs/ListCommentAutomations200ResponseAutomationsInner.md +4 -0
  15. data/docs/UpdateCommentAutomation200ResponseAutomation.md +4 -0
  16. data/docs/UpdateCommentAutomationRequest.md +8 -0
  17. data/docs/WebhookPayloadCommentCommentAuthor.md +3 -1
  18. data/docs/WebhookPayloadCommentCommentAuthorInstagramProfile.md +24 -0
  19. data/lib/zernio-sdk/api/accounts_api.rb +72 -0
  20. data/lib/zernio-sdk/api/comment_automations_api.rb +3 -3
  21. data/lib/zernio-sdk/models/comment_automation_audience.rb +237 -0
  22. data/lib/zernio-sdk/models/comment_automation_follow_gate.rb +226 -0
  23. data/lib/zernio-sdk/models/conversion_event.rb +1 -1
  24. data/lib/zernio-sdk/models/conversion_event_user.rb +11 -1
  25. data/lib/zernio-sdk/models/create_comment_automation200_response_automation.rb +39 -1
  26. data/lib/zernio-sdk/models/create_comment_automation_request.rb +98 -4
  27. data/lib/zernio-sdk/models/get_comment_automation200_response_automation.rb +39 -1
  28. data/lib/zernio-sdk/models/get_comment_automation200_response_logs_inner.rb +55 -4
  29. data/lib/zernio-sdk/models/get_instagram_follow_status200_response.rb +299 -0
  30. data/lib/zernio-sdk/models/list_comment_automations200_response_automations_inner.rb +21 -1
  31. data/lib/zernio-sdk/models/update_comment_automation200_response_automation.rb +19 -1
  32. data/lib/zernio-sdk/models/update_comment_automation_request.rb +95 -1
  33. data/lib/zernio-sdk/models/webhook_payload_comment_comment_author.rb +14 -5
  34. data/lib/zernio-sdk/models/webhook_payload_comment_comment_author_instagram_profile.rb +181 -0
  35. data/lib/zernio-sdk/version.rb +1 -1
  36. data/lib/zernio-sdk.rb +4 -0
  37. data/openapi.yaml +189 -4
  38. data/spec/api/accounts_api_spec.rb +14 -0
  39. data/spec/api/comment_automations_api_spec.rb +1 -1
  40. data/spec/models/comment_automation_audience_spec.rb +56 -0
  41. data/spec/models/comment_automation_follow_gate_spec.rb +48 -0
  42. data/spec/models/conversion_event_user_spec.rb +6 -0
  43. data/spec/models/create_comment_automation200_response_automation_spec.rb +24 -0
  44. data/spec/models/create_comment_automation_request_spec.rb +24 -0
  45. data/spec/models/get_comment_automation200_response_automation_spec.rb +24 -0
  46. data/spec/models/get_comment_automation200_response_logs_inner_spec.rb +29 -1
  47. data/spec/models/get_instagram_follow_status200_response_spec.rb +88 -0
  48. data/spec/models/list_comment_automations200_response_automations_inner_spec.rb +12 -0
  49. data/spec/models/update_comment_automation200_response_automation_spec.rb +12 -0
  50. data/spec/models/update_comment_automation_request_spec.rb +24 -0
  51. data/spec/models/webhook_payload_comment_comment_author_instagram_profile_spec.rb +54 -0
  52. data/spec/models/webhook_payload_comment_comment_author_spec.rb +6 -0
  53. data/zernio-sdk-0.0.686.gem +0 -0
  54. metadata +1579 -1563
  55. data/zernio-sdk-0.0.684.gem +0 -0
@@ -59,6 +59,12 @@ module Zernio
59
59
  # Tag applied to a contact when they click a tracked link.
60
60
  attr_accessor :click_tag
61
61
 
62
+ # Seconds waited after the trigger before the DM is sent. Absent when the DM goes out immediately.
63
+ attr_accessor :dm_delay_seconds
64
+
65
+ # Seconds waited before the public reply is posted. Absent when it follows the DM immediately.
66
+ attr_accessor :comment_reply_delay_seconds
67
+
62
68
  attr_accessor :is_active
63
69
 
64
70
  attr_accessor :stats
@@ -108,6 +114,8 @@ module Zernio
108
114
  :'comment_reply_variations' => :'commentReplyVariations',
109
115
  :'link_tracking' => :'linkTracking',
110
116
  :'click_tag' => :'clickTag',
117
+ :'dm_delay_seconds' => :'dmDelaySeconds',
118
+ :'comment_reply_delay_seconds' => :'commentReplyDelaySeconds',
111
119
  :'is_active' => :'isActive',
112
120
  :'stats' => :'stats',
113
121
  :'created_at' => :'createdAt'
@@ -145,6 +153,8 @@ module Zernio
145
153
  :'comment_reply_variations' => :'Array<String>',
146
154
  :'link_tracking' => :'Boolean',
147
155
  :'click_tag' => :'String',
156
+ :'dm_delay_seconds' => :'Integer',
157
+ :'comment_reply_delay_seconds' => :'Integer',
148
158
  :'is_active' => :'Boolean',
149
159
  :'stats' => :'ListCommentAutomations200ResponseAutomationsInnerStats',
150
160
  :'created_at' => :'Time'
@@ -255,6 +265,14 @@ module Zernio
255
265
  self.click_tag = attributes[:'click_tag']
256
266
  end
257
267
 
268
+ if attributes.key?(:'dm_delay_seconds')
269
+ self.dm_delay_seconds = attributes[:'dm_delay_seconds']
270
+ end
271
+
272
+ if attributes.key?(:'comment_reply_delay_seconds')
273
+ self.comment_reply_delay_seconds = attributes[:'comment_reply_delay_seconds']
274
+ end
275
+
258
276
  if attributes.key?(:'is_active')
259
277
  self.is_active = attributes[:'is_active']
260
278
  end
@@ -342,6 +360,8 @@ module Zernio
342
360
  comment_reply_variations == o.comment_reply_variations &&
343
361
  link_tracking == o.link_tracking &&
344
362
  click_tag == o.click_tag &&
363
+ dm_delay_seconds == o.dm_delay_seconds &&
364
+ comment_reply_delay_seconds == o.comment_reply_delay_seconds &&
345
365
  is_active == o.is_active &&
346
366
  stats == o.stats &&
347
367
  created_at == o.created_at
@@ -356,7 +376,7 @@ module Zernio
356
376
  # Calculates hash code according to all attributes.
357
377
  # @return [Integer] Hash code
358
378
  def hash
359
- [id, name, platform, trigger, account_id, platform_post_id, post_title, keywords, match_mode, exclude_keywords, typo_tolerance, dm_message, buttons, comment_reply, dm_message_variations, comment_reply_variations, link_tracking, click_tag, is_active, stats, created_at].hash
379
+ [id, name, platform, trigger, account_id, platform_post_id, post_title, keywords, match_mode, exclude_keywords, typo_tolerance, dm_message, buttons, comment_reply, dm_message_variations, comment_reply_variations, link_tracking, click_tag, dm_delay_seconds, comment_reply_delay_seconds, is_active, stats, created_at].hash
360
380
  end
361
381
 
362
382
  # Builds the object from hash
@@ -43,6 +43,10 @@ module Zernio
43
43
  # Alternate public replies rotated at random with commentReply. Omitted when none.
44
44
  attr_accessor :comment_reply_variations
45
45
 
46
+ attr_accessor :audience
47
+
48
+ attr_accessor :follow_gate
49
+
46
50
  attr_accessor :is_active
47
51
 
48
52
  attr_accessor :updated_at
@@ -83,6 +87,8 @@ module Zernio
83
87
  :'comment_reply' => :'commentReply',
84
88
  :'dm_message_variations' => :'dmMessageVariations',
85
89
  :'comment_reply_variations' => :'commentReplyVariations',
90
+ :'audience' => :'audience',
91
+ :'follow_gate' => :'followGate',
86
92
  :'is_active' => :'isActive',
87
93
  :'updated_at' => :'updatedAt'
88
94
  }
@@ -112,6 +118,8 @@ module Zernio
112
118
  :'comment_reply' => :'String',
113
119
  :'dm_message_variations' => :'Array<String>',
114
120
  :'comment_reply_variations' => :'Array<String>',
121
+ :'audience' => :'CommentAutomationAudience',
122
+ :'follow_gate' => :'CommentAutomationFollowGate',
115
123
  :'is_active' => :'Boolean',
116
124
  :'updated_at' => :'Time'
117
125
  }
@@ -193,6 +201,14 @@ module Zernio
193
201
  end
194
202
  end
195
203
 
204
+ if attributes.key?(:'audience')
205
+ self.audience = attributes[:'audience']
206
+ end
207
+
208
+ if attributes.key?(:'follow_gate')
209
+ self.follow_gate = attributes[:'follow_gate']
210
+ end
211
+
196
212
  if attributes.key?(:'is_active')
197
213
  self.is_active = attributes[:'is_active']
198
214
  end
@@ -245,6 +261,8 @@ module Zernio
245
261
  comment_reply == o.comment_reply &&
246
262
  dm_message_variations == o.dm_message_variations &&
247
263
  comment_reply_variations == o.comment_reply_variations &&
264
+ audience == o.audience &&
265
+ follow_gate == o.follow_gate &&
248
266
  is_active == o.is_active &&
249
267
  updated_at == o.updated_at
250
268
  end
@@ -258,7 +276,7 @@ module Zernio
258
276
  # Calculates hash code according to all attributes.
259
277
  # @return [Integer] Hash code
260
278
  def hash
261
- [id, name, keywords, match_mode, exclude_keywords, typo_tolerance, dm_message, buttons, comment_reply, dm_message_variations, comment_reply_variations, is_active, updated_at].hash
279
+ [id, name, keywords, match_mode, exclude_keywords, typo_tolerance, dm_message, buttons, comment_reply, dm_message_variations, comment_reply_variations, audience, follow_gate, is_active, updated_at].hash
262
280
  end
263
281
 
264
282
  # Builds the object from hash
@@ -50,6 +50,16 @@ module Zernio
50
50
  # Tag applied to a contact when they click a tracked link (requires linkTracking). Empty string clears it.
51
51
  attr_accessor :click_tag
52
52
 
53
+ # Seconds to wait after the trigger before sending the DM. Send 0 to clear the delay and reply immediately.
54
+ attr_accessor :dm_delay_seconds
55
+
56
+ # Seconds to wait before posting the public comment reply. Send 0 to clear it. The reply never goes out before the DM.
57
+ attr_accessor :comment_reply_delay_seconds
58
+
59
+ attr_accessor :audience
60
+
61
+ attr_accessor :follow_gate
62
+
53
63
  attr_accessor :is_active
54
64
 
55
65
  class EnumAttributeValidator
@@ -90,6 +100,10 @@ module Zernio
90
100
  :'comment_reply_variations' => :'commentReplyVariations',
91
101
  :'link_tracking' => :'linkTracking',
92
102
  :'click_tag' => :'clickTag',
103
+ :'dm_delay_seconds' => :'dmDelaySeconds',
104
+ :'comment_reply_delay_seconds' => :'commentReplyDelaySeconds',
105
+ :'audience' => :'audience',
106
+ :'follow_gate' => :'followGate',
93
107
  :'is_active' => :'isActive'
94
108
  }
95
109
  end
@@ -120,6 +134,10 @@ module Zernio
120
134
  :'comment_reply_variations' => :'Array<String>',
121
135
  :'link_tracking' => :'Boolean',
122
136
  :'click_tag' => :'String',
137
+ :'dm_delay_seconds' => :'Integer',
138
+ :'comment_reply_delay_seconds' => :'Integer',
139
+ :'audience' => :'CommentAutomationAudience',
140
+ :'follow_gate' => :'CommentAutomationFollowGate',
123
141
  :'is_active' => :'Boolean'
124
142
  }
125
143
  end
@@ -208,6 +226,22 @@ module Zernio
208
226
  self.click_tag = attributes[:'click_tag']
209
227
  end
210
228
 
229
+ if attributes.key?(:'dm_delay_seconds')
230
+ self.dm_delay_seconds = attributes[:'dm_delay_seconds']
231
+ end
232
+
233
+ if attributes.key?(:'comment_reply_delay_seconds')
234
+ self.comment_reply_delay_seconds = attributes[:'comment_reply_delay_seconds']
235
+ end
236
+
237
+ if attributes.key?(:'audience')
238
+ self.audience = attributes[:'audience']
239
+ end
240
+
241
+ if attributes.key?(:'follow_gate')
242
+ self.follow_gate = attributes[:'follow_gate']
243
+ end
244
+
211
245
  if attributes.key?(:'is_active')
212
246
  self.is_active = attributes[:'is_active']
213
247
  end
@@ -230,6 +264,22 @@ module Zernio
230
264
  invalid_properties.push('invalid value for "comment_reply_variations", number of items must be less than or equal to 5.')
231
265
  end
232
266
 
267
+ if !@dm_delay_seconds.nil? && @dm_delay_seconds > 86400
268
+ invalid_properties.push('invalid value for "dm_delay_seconds", must be smaller than or equal to 86400.')
269
+ end
270
+
271
+ if !@dm_delay_seconds.nil? && @dm_delay_seconds < 0
272
+ invalid_properties.push('invalid value for "dm_delay_seconds", must be greater than or equal to 0.')
273
+ end
274
+
275
+ if !@comment_reply_delay_seconds.nil? && @comment_reply_delay_seconds > 86400
276
+ invalid_properties.push('invalid value for "comment_reply_delay_seconds", must be smaller than or equal to 86400.')
277
+ end
278
+
279
+ if !@comment_reply_delay_seconds.nil? && @comment_reply_delay_seconds < 0
280
+ invalid_properties.push('invalid value for "comment_reply_delay_seconds", must be greater than or equal to 0.')
281
+ end
282
+
233
283
  invalid_properties
234
284
  end
235
285
 
@@ -244,6 +294,10 @@ module Zernio
244
294
  return false if !@buttons.nil? && @buttons.length > 3
245
295
  return false if !@dm_message_variations.nil? && @dm_message_variations.length > 5
246
296
  return false if !@comment_reply_variations.nil? && @comment_reply_variations.length > 5
297
+ return false if !@dm_delay_seconds.nil? && @dm_delay_seconds > 86400
298
+ return false if !@dm_delay_seconds.nil? && @dm_delay_seconds < 0
299
+ return false if !@comment_reply_delay_seconds.nil? && @comment_reply_delay_seconds > 86400
300
+ return false if !@comment_reply_delay_seconds.nil? && @comment_reply_delay_seconds < 0
247
301
  true
248
302
  end
249
303
 
@@ -309,6 +363,42 @@ module Zernio
309
363
  @comment_reply_variations = comment_reply_variations
310
364
  end
311
365
 
366
+ # Custom attribute writer method with validation
367
+ # @param [Object] dm_delay_seconds Value to be assigned
368
+ def dm_delay_seconds=(dm_delay_seconds)
369
+ if dm_delay_seconds.nil?
370
+ fail ArgumentError, 'dm_delay_seconds cannot be nil'
371
+ end
372
+
373
+ if dm_delay_seconds > 86400
374
+ fail ArgumentError, 'invalid value for "dm_delay_seconds", must be smaller than or equal to 86400.'
375
+ end
376
+
377
+ if dm_delay_seconds < 0
378
+ fail ArgumentError, 'invalid value for "dm_delay_seconds", must be greater than or equal to 0.'
379
+ end
380
+
381
+ @dm_delay_seconds = dm_delay_seconds
382
+ end
383
+
384
+ # Custom attribute writer method with validation
385
+ # @param [Object] comment_reply_delay_seconds Value to be assigned
386
+ def comment_reply_delay_seconds=(comment_reply_delay_seconds)
387
+ if comment_reply_delay_seconds.nil?
388
+ fail ArgumentError, 'comment_reply_delay_seconds cannot be nil'
389
+ end
390
+
391
+ if comment_reply_delay_seconds > 86400
392
+ fail ArgumentError, 'invalid value for "comment_reply_delay_seconds", must be smaller than or equal to 86400.'
393
+ end
394
+
395
+ if comment_reply_delay_seconds < 0
396
+ fail ArgumentError, 'invalid value for "comment_reply_delay_seconds", must be greater than or equal to 0.'
397
+ end
398
+
399
+ @comment_reply_delay_seconds = comment_reply_delay_seconds
400
+ end
401
+
312
402
  # Checks equality by comparing each attribute.
313
403
  # @param [Object] Object to be compared
314
404
  def ==(o)
@@ -327,6 +417,10 @@ module Zernio
327
417
  comment_reply_variations == o.comment_reply_variations &&
328
418
  link_tracking == o.link_tracking &&
329
419
  click_tag == o.click_tag &&
420
+ dm_delay_seconds == o.dm_delay_seconds &&
421
+ comment_reply_delay_seconds == o.comment_reply_delay_seconds &&
422
+ audience == o.audience &&
423
+ follow_gate == o.follow_gate &&
330
424
  is_active == o.is_active
331
425
  end
332
426
 
@@ -339,7 +433,7 @@ module Zernio
339
433
  # Calculates hash code according to all attributes.
340
434
  # @return [Integer] Hash code
341
435
  def hash
342
- [name, trigger, keywords, match_mode, exclude_keywords, typo_tolerance, dm_message, buttons, comment_reply, dm_message_variations, comment_reply_variations, link_tracking, click_tag, is_active].hash
436
+ [name, trigger, keywords, match_mode, exclude_keywords, typo_tolerance, dm_message, buttons, comment_reply, dm_message_variations, comment_reply_variations, link_tracking, click_tag, dm_delay_seconds, comment_reply_delay_seconds, audience, follow_gate, is_active].hash
343
437
  end
344
438
 
345
439
  # Builds the object from hash
@@ -24,13 +24,16 @@ module Zernio
24
24
 
25
25
  attr_accessor :picture
26
26
 
27
+ attr_accessor :instagram_profile
28
+
27
29
  # Attribute mapping from ruby-style variable name to JSON key.
28
30
  def self.attribute_map
29
31
  {
30
32
  :'id' => :'id',
31
33
  :'username' => :'username',
32
34
  :'name' => :'name',
33
- :'picture' => :'picture'
35
+ :'picture' => :'picture',
36
+ :'instagram_profile' => :'instagramProfile'
34
37
  }
35
38
  end
36
39
 
@@ -50,14 +53,15 @@ module Zernio
50
53
  :'id' => :'String',
51
54
  :'username' => :'String',
52
55
  :'name' => :'String',
53
- :'picture' => :'String'
56
+ :'picture' => :'String',
57
+ :'instagram_profile' => :'WebhookPayloadCommentCommentAuthorInstagramProfile'
54
58
  }
55
59
  end
56
60
 
57
61
  # List of attributes with nullable: true
58
62
  def self.openapi_nullable
59
63
  Set.new([
60
- :'picture'
64
+ :'picture',
61
65
  ])
62
66
  end
63
67
 
@@ -94,6 +98,10 @@ module Zernio
94
98
  if attributes.key?(:'picture')
95
99
  self.picture = attributes[:'picture']
96
100
  end
101
+
102
+ if attributes.key?(:'instagram_profile')
103
+ self.instagram_profile = attributes[:'instagram_profile']
104
+ end
97
105
  end
98
106
 
99
107
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -134,7 +142,8 @@ module Zernio
134
142
  id == o.id &&
135
143
  username == o.username &&
136
144
  name == o.name &&
137
- picture == o.picture
145
+ picture == o.picture &&
146
+ instagram_profile == o.instagram_profile
138
147
  end
139
148
 
140
149
  # @see the `==` method
@@ -146,7 +155,7 @@ module Zernio
146
155
  # Calculates hash code according to all attributes.
147
156
  # @return [Integer] Hash code
148
157
  def hash
149
- [id, username, name, picture].hash
158
+ [id, username, name, picture, instagram_profile].hash
150
159
  end
151
160
 
152
161
  # Builds the object from hash
@@ -0,0 +1,181 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
5
+
6
+ The version of the OpenAPI document: 1.0.4
7
+ Contact: support@zernio.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Zernio
17
+ # Instagram only, best-effort. Present ONLY for commenters who have messaged the account before: Meta gates the follow relationship behind messaging consent, and commenting does not grant it. Absent otherwise - treat a missing object as \"unknown\", never as \"not a follower\". To check on demand, call GET /v1/accounts/{accountId}/follow-status/{userId}.
18
+ class WebhookPayloadCommentCommentAuthorInstagramProfile < ApiModelBase
19
+ # The commenter follows this account.
20
+ attr_accessor :is_follower
21
+
22
+ # This account follows the commenter.
23
+ attr_accessor :is_following
24
+
25
+ attr_accessor :follower_count
26
+
27
+ attr_accessor :is_verified
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'is_follower' => :'isFollower',
33
+ :'is_following' => :'isFollowing',
34
+ :'follower_count' => :'followerCount',
35
+ :'is_verified' => :'isVerified'
36
+ }
37
+ end
38
+
39
+ # Returns attribute mapping this model knows about
40
+ def self.acceptable_attribute_map
41
+ attribute_map
42
+ end
43
+
44
+ # Returns all the JSON keys this model knows about
45
+ def self.acceptable_attributes
46
+ acceptable_attribute_map.values
47
+ end
48
+
49
+ # Attribute type mapping.
50
+ def self.openapi_types
51
+ {
52
+ :'is_follower' => :'Boolean',
53
+ :'is_following' => :'Boolean',
54
+ :'follower_count' => :'Integer',
55
+ :'is_verified' => :'Boolean'
56
+ }
57
+ end
58
+
59
+ # List of attributes with nullable: true
60
+ def self.openapi_nullable
61
+ Set.new([
62
+ :'is_follower',
63
+ :'is_following',
64
+ :'follower_count',
65
+ :'is_verified'
66
+ ])
67
+ end
68
+
69
+ # Initializes the object
70
+ # @param [Hash] attributes Model attributes in the form of hash
71
+ def initialize(attributes = {})
72
+ if (!attributes.is_a?(Hash))
73
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::WebhookPayloadCommentCommentAuthorInstagramProfile` initialize method"
74
+ end
75
+
76
+ # check to see if the attribute exists and convert string to symbol for hash key
77
+ acceptable_attribute_map = self.class.acceptable_attribute_map
78
+ attributes = attributes.each_with_object({}) { |(k, v), h|
79
+ if (!acceptable_attribute_map.key?(k.to_sym))
80
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::WebhookPayloadCommentCommentAuthorInstagramProfile`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
81
+ end
82
+ h[k.to_sym] = v
83
+ }
84
+
85
+ if attributes.key?(:'is_follower')
86
+ self.is_follower = attributes[:'is_follower']
87
+ end
88
+
89
+ if attributes.key?(:'is_following')
90
+ self.is_following = attributes[:'is_following']
91
+ end
92
+
93
+ if attributes.key?(:'follower_count')
94
+ self.follower_count = attributes[:'follower_count']
95
+ end
96
+
97
+ if attributes.key?(:'is_verified')
98
+ self.is_verified = attributes[:'is_verified']
99
+ end
100
+ end
101
+
102
+ # Show invalid properties with the reasons. Usually used together with valid?
103
+ # @return Array for valid properties with the reasons
104
+ def list_invalid_properties
105
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
106
+ invalid_properties = Array.new
107
+ invalid_properties
108
+ end
109
+
110
+ # Check to see if the all the properties in the model are valid
111
+ # @return true if the model is valid
112
+ def valid?
113
+ warn '[DEPRECATED] the `valid?` method is obsolete'
114
+ true
115
+ end
116
+
117
+ # Checks equality by comparing each attribute.
118
+ # @param [Object] Object to be compared
119
+ def ==(o)
120
+ return true if self.equal?(o)
121
+ self.class == o.class &&
122
+ is_follower == o.is_follower &&
123
+ is_following == o.is_following &&
124
+ follower_count == o.follower_count &&
125
+ is_verified == o.is_verified
126
+ end
127
+
128
+ # @see the `==` method
129
+ # @param [Object] Object to be compared
130
+ def eql?(o)
131
+ self == o
132
+ end
133
+
134
+ # Calculates hash code according to all attributes.
135
+ # @return [Integer] Hash code
136
+ def hash
137
+ [is_follower, is_following, follower_count, is_verified].hash
138
+ end
139
+
140
+ # Builds the object from hash
141
+ # @param [Hash] attributes Model attributes in the form of hash
142
+ # @return [Object] Returns the model itself
143
+ def self.build_from_hash(attributes)
144
+ return nil unless attributes.is_a?(Hash)
145
+ attributes = attributes.transform_keys(&:to_sym)
146
+ transformed_hash = {}
147
+ openapi_types.each_pair do |key, type|
148
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
149
+ transformed_hash["#{key}"] = nil
150
+ elsif type =~ /\AArray<(.*)>/i
151
+ # check to ensure the input is an array given that the attribute
152
+ # is documented as an array but the input is not
153
+ if attributes[attribute_map[key]].is_a?(Array)
154
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
155
+ end
156
+ elsif !attributes[attribute_map[key]].nil?
157
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
158
+ end
159
+ end
160
+ new(transformed_hash)
161
+ end
162
+
163
+ # Returns the object in the form of hash
164
+ # @return [Hash] Returns the object in the form of hash
165
+ def to_hash
166
+ hash = {}
167
+ self.class.attribute_map.each_pair do |attr, param|
168
+ value = self.send(attr)
169
+ if value.nil?
170
+ is_nullable = self.class.openapi_nullable.include?(attr)
171
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
172
+ end
173
+
174
+ hash[param] = _to_hash(value)
175
+ end
176
+ hash
177
+ end
178
+
179
+ end
180
+
181
+ end
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.684'
14
+ VERSION = '0.0.686'
15
15
  end
data/lib/zernio-sdk.rb CHANGED
@@ -132,6 +132,8 @@ require 'zernio-sdk/models/check_phone_number_portability200_response_results_in
132
132
  require 'zernio-sdk/models/check_phone_number_portability_request'
133
133
  require 'zernio-sdk/models/check_verification200_response'
134
134
  require 'zernio-sdk/models/check_verification_request'
135
+ require 'zernio-sdk/models/comment_automation_audience'
136
+ require 'zernio-sdk/models/comment_automation_follow_gate'
135
137
  require 'zernio-sdk/models/complete_google_business_verification_request'
136
138
  require 'zernio-sdk/models/complete_telegram_connect200_response'
137
139
  require 'zernio-sdk/models/complete_whats_app_phone_selection200_response'
@@ -590,6 +592,7 @@ require 'zernio-sdk/models/get_inbox_volume200_response_summary'
590
592
  require 'zernio-sdk/models/get_inbox_volume200_response_timeseries_inner'
591
593
  require 'zernio-sdk/models/get_inbox_volume400_response'
592
594
  require 'zernio-sdk/models/get_instagram_account_insights404_response'
595
+ require 'zernio-sdk/models/get_instagram_follow_status200_response'
593
596
  require 'zernio-sdk/models/get_instagram_publishing_limit200_response'
594
597
  require 'zernio-sdk/models/get_instagram_story_insights200_response'
595
598
  require 'zernio-sdk/models/get_instagram_story_insights200_response_data'
@@ -1514,6 +1517,7 @@ require 'zernio-sdk/models/webhook_payload_comment_comment'
1514
1517
  require 'zernio-sdk/models/webhook_payload_comment_comment_ad'
1515
1518
  require 'zernio-sdk/models/webhook_payload_comment_comment_attachment'
1516
1519
  require 'zernio-sdk/models/webhook_payload_comment_comment_author'
1520
+ require 'zernio-sdk/models/webhook_payload_comment_comment_author_instagram_profile'
1517
1521
  require 'zernio-sdk/models/webhook_payload_comment_post'
1518
1522
  require 'zernio-sdk/models/webhook_payload_conversation_started'
1519
1523
  require 'zernio-sdk/models/webhook_payload_conversation_started_conversation'