late-sdk 0.0.683 → 0.0.685

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 (56) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -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 +1 -1
  7. data/docs/CreateCommentAutomation200ResponseAutomation.md +4 -0
  8. data/docs/CreateCommentAutomationRequest.md +5 -1
  9. data/docs/GetCommentAutomation200ResponseAutomation.md +4 -0
  10. data/docs/GetCommentAutomation200ResponseLogsInner.md +7 -1
  11. data/docs/GetInstagramFollowStatus200Response.md +34 -0
  12. data/docs/ListCommentAutomationLogs200Response.md +3 -1
  13. data/docs/ListCommentAutomationLogs200ResponseMisses.md +22 -0
  14. data/docs/ListCommentAutomationLogs200ResponseMissesSamplesInner.md +24 -0
  15. data/docs/UpdateCommentAutomation200ResponseAutomation.md +4 -0
  16. data/docs/UpdateCommentAutomationRequest.md +4 -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 +15 -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/create_comment_automation200_response_automation.rb +19 -1
  24. data/lib/zernio-sdk/models/create_comment_automation_request.rb +22 -4
  25. data/lib/zernio-sdk/models/get_comment_automation200_response_automation.rb +19 -1
  26. data/lib/zernio-sdk/models/get_comment_automation200_response_logs_inner.rb +45 -4
  27. data/lib/zernio-sdk/models/get_instagram_follow_status200_response.rb +299 -0
  28. data/lib/zernio-sdk/models/list_comment_automation_logs200_response.rb +13 -4
  29. data/lib/zernio-sdk/models/list_comment_automation_logs200_response_misses.rb +171 -0
  30. data/lib/zernio-sdk/models/list_comment_automation_logs200_response_misses_samples_inner.rb +175 -0
  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 +19 -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 +6 -0
  37. data/openapi.yaml +181 -5
  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/create_comment_automation200_response_automation_spec.rb +12 -0
  43. data/spec/models/create_comment_automation_request_spec.rb +12 -0
  44. data/spec/models/get_comment_automation200_response_automation_spec.rb +12 -0
  45. data/spec/models/get_comment_automation200_response_logs_inner_spec.rb +23 -1
  46. data/spec/models/get_instagram_follow_status200_response_spec.rb +88 -0
  47. data/spec/models/list_comment_automation_logs200_response_misses_samples_inner_spec.rb +54 -0
  48. data/spec/models/list_comment_automation_logs200_response_misses_spec.rb +48 -0
  49. data/spec/models/list_comment_automation_logs200_response_spec.rb +6 -0
  50. data/spec/models/update_comment_automation200_response_automation_spec.rb +12 -0
  51. data/spec/models/update_comment_automation_request_spec.rb +12 -0
  52. data/spec/models/webhook_payload_comment_comment_author_instagram_profile_spec.rb +54 -0
  53. data/spec/models/webhook_payload_comment_comment_author_spec.rb +6 -0
  54. data/zernio-sdk-0.0.685.gem +0 -0
  55. metadata +26 -2
  56. data/zernio-sdk-0.0.683.gem +0 -0
@@ -0,0 +1,175 @@
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
+ class ListCommentAutomationLogs200ResponseMissesSamplesInner < ApiModelBase
18
+ attr_accessor :comment_text
19
+
20
+ attr_accessor :commenter_name
21
+
22
+ # Set when an exclusion keyword vetoed an otherwise matching comment
23
+ attr_accessor :excluded_by
24
+
25
+ attr_accessor :at
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'comment_text' => :'commentText',
31
+ :'commenter_name' => :'commenterName',
32
+ :'excluded_by' => :'excludedBy',
33
+ :'at' => :'at'
34
+ }
35
+ end
36
+
37
+ # Returns attribute mapping this model knows about
38
+ def self.acceptable_attribute_map
39
+ attribute_map
40
+ end
41
+
42
+ # Returns all the JSON keys this model knows about
43
+ def self.acceptable_attributes
44
+ acceptable_attribute_map.values
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.openapi_types
49
+ {
50
+ :'comment_text' => :'String',
51
+ :'commenter_name' => :'String',
52
+ :'excluded_by' => :'String',
53
+ :'at' => :'Time'
54
+ }
55
+ end
56
+
57
+ # List of attributes with nullable: true
58
+ def self.openapi_nullable
59
+ Set.new([
60
+ ])
61
+ end
62
+
63
+ # Initializes the object
64
+ # @param [Hash] attributes Model attributes in the form of hash
65
+ def initialize(attributes = {})
66
+ if (!attributes.is_a?(Hash))
67
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::ListCommentAutomationLogs200ResponseMissesSamplesInner` initialize method"
68
+ end
69
+
70
+ # check to see if the attribute exists and convert string to symbol for hash key
71
+ acceptable_attribute_map = self.class.acceptable_attribute_map
72
+ attributes = attributes.each_with_object({}) { |(k, v), h|
73
+ if (!acceptable_attribute_map.key?(k.to_sym))
74
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::ListCommentAutomationLogs200ResponseMissesSamplesInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
75
+ end
76
+ h[k.to_sym] = v
77
+ }
78
+
79
+ if attributes.key?(:'comment_text')
80
+ self.comment_text = attributes[:'comment_text']
81
+ end
82
+
83
+ if attributes.key?(:'commenter_name')
84
+ self.commenter_name = attributes[:'commenter_name']
85
+ end
86
+
87
+ if attributes.key?(:'excluded_by')
88
+ self.excluded_by = attributes[:'excluded_by']
89
+ end
90
+
91
+ if attributes.key?(:'at')
92
+ self.at = attributes[:'at']
93
+ end
94
+ end
95
+
96
+ # Show invalid properties with the reasons. Usually used together with valid?
97
+ # @return Array for valid properties with the reasons
98
+ def list_invalid_properties
99
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
100
+ invalid_properties = Array.new
101
+ invalid_properties
102
+ end
103
+
104
+ # Check to see if the all the properties in the model are valid
105
+ # @return true if the model is valid
106
+ def valid?
107
+ warn '[DEPRECATED] the `valid?` method is obsolete'
108
+ true
109
+ end
110
+
111
+ # Checks equality by comparing each attribute.
112
+ # @param [Object] Object to be compared
113
+ def ==(o)
114
+ return true if self.equal?(o)
115
+ self.class == o.class &&
116
+ comment_text == o.comment_text &&
117
+ commenter_name == o.commenter_name &&
118
+ excluded_by == o.excluded_by &&
119
+ at == o.at
120
+ end
121
+
122
+ # @see the `==` method
123
+ # @param [Object] Object to be compared
124
+ def eql?(o)
125
+ self == o
126
+ end
127
+
128
+ # Calculates hash code according to all attributes.
129
+ # @return [Integer] Hash code
130
+ def hash
131
+ [comment_text, commenter_name, excluded_by, at].hash
132
+ end
133
+
134
+ # Builds the object from hash
135
+ # @param [Hash] attributes Model attributes in the form of hash
136
+ # @return [Object] Returns the model itself
137
+ def self.build_from_hash(attributes)
138
+ return nil unless attributes.is_a?(Hash)
139
+ attributes = attributes.transform_keys(&:to_sym)
140
+ transformed_hash = {}
141
+ openapi_types.each_pair do |key, type|
142
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
143
+ transformed_hash["#{key}"] = nil
144
+ elsif type =~ /\AArray<(.*)>/i
145
+ # check to ensure the input is an array given that the attribute
146
+ # is documented as an array but the input is not
147
+ if attributes[attribute_map[key]].is_a?(Array)
148
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
149
+ end
150
+ elsif !attributes[attribute_map[key]].nil?
151
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
152
+ end
153
+ end
154
+ new(transformed_hash)
155
+ end
156
+
157
+ # Returns the object in the form of hash
158
+ # @return [Hash] Returns the object in the form of hash
159
+ def to_hash
160
+ hash = {}
161
+ self.class.attribute_map.each_pair do |attr, param|
162
+ value = self.send(attr)
163
+ if value.nil?
164
+ is_nullable = self.class.openapi_nullable.include?(attr)
165
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
166
+ end
167
+
168
+ hash[param] = _to_hash(value)
169
+ end
170
+ hash
171
+ end
172
+
173
+ end
174
+
175
+ end
@@ -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,10 @@ 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
+ attr_accessor :audience
54
+
55
+ attr_accessor :follow_gate
56
+
53
57
  attr_accessor :is_active
54
58
 
55
59
  class EnumAttributeValidator
@@ -90,6 +94,8 @@ module Zernio
90
94
  :'comment_reply_variations' => :'commentReplyVariations',
91
95
  :'link_tracking' => :'linkTracking',
92
96
  :'click_tag' => :'clickTag',
97
+ :'audience' => :'audience',
98
+ :'follow_gate' => :'followGate',
93
99
  :'is_active' => :'isActive'
94
100
  }
95
101
  end
@@ -120,6 +126,8 @@ module Zernio
120
126
  :'comment_reply_variations' => :'Array<String>',
121
127
  :'link_tracking' => :'Boolean',
122
128
  :'click_tag' => :'String',
129
+ :'audience' => :'CommentAutomationAudience',
130
+ :'follow_gate' => :'CommentAutomationFollowGate',
123
131
  :'is_active' => :'Boolean'
124
132
  }
125
133
  end
@@ -208,6 +216,14 @@ module Zernio
208
216
  self.click_tag = attributes[:'click_tag']
209
217
  end
210
218
 
219
+ if attributes.key?(:'audience')
220
+ self.audience = attributes[:'audience']
221
+ end
222
+
223
+ if attributes.key?(:'follow_gate')
224
+ self.follow_gate = attributes[:'follow_gate']
225
+ end
226
+
211
227
  if attributes.key?(:'is_active')
212
228
  self.is_active = attributes[:'is_active']
213
229
  end
@@ -327,6 +343,8 @@ module Zernio
327
343
  comment_reply_variations == o.comment_reply_variations &&
328
344
  link_tracking == o.link_tracking &&
329
345
  click_tag == o.click_tag &&
346
+ audience == o.audience &&
347
+ follow_gate == o.follow_gate &&
330
348
  is_active == o.is_active
331
349
  end
332
350
 
@@ -339,7 +357,7 @@ module Zernio
339
357
  # Calculates hash code according to all attributes.
340
358
  # @return [Integer] Hash code
341
359
  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
360
+ [name, trigger, keywords, match_mode, exclude_keywords, typo_tolerance, dm_message, buttons, comment_reply, dm_message_variations, comment_reply_variations, link_tracking, click_tag, audience, follow_gate, is_active].hash
343
361
  end
344
362
 
345
363
  # 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.683'
14
+ VERSION = '0.0.685'
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'
@@ -842,6 +845,8 @@ require 'zernio-sdk/models/list_broadcasts200_response_broadcasts_inner'
842
845
  require 'zernio-sdk/models/list_calls200_response'
843
846
  require 'zernio-sdk/models/list_calls200_response_calls_inner'
844
847
  require 'zernio-sdk/models/list_comment_automation_logs200_response'
848
+ require 'zernio-sdk/models/list_comment_automation_logs200_response_misses'
849
+ require 'zernio-sdk/models/list_comment_automation_logs200_response_misses_samples_inner'
845
850
  require 'zernio-sdk/models/list_comment_automations200_response'
846
851
  require 'zernio-sdk/models/list_comment_automations200_response_automations_inner'
847
852
  require 'zernio-sdk/models/list_comment_automations200_response_automations_inner_stats'
@@ -1512,6 +1517,7 @@ require 'zernio-sdk/models/webhook_payload_comment_comment'
1512
1517
  require 'zernio-sdk/models/webhook_payload_comment_comment_ad'
1513
1518
  require 'zernio-sdk/models/webhook_payload_comment_comment_attachment'
1514
1519
  require 'zernio-sdk/models/webhook_payload_comment_comment_author'
1520
+ require 'zernio-sdk/models/webhook_payload_comment_comment_author_instagram_profile'
1515
1521
  require 'zernio-sdk/models/webhook_payload_comment_post'
1516
1522
  require 'zernio-sdk/models/webhook_payload_conversation_started'
1517
1523
  require 'zernio-sdk/models/webhook_payload_conversation_started_conversation'