late-sdk 0.0.909 → 0.0.910

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 +32 -19
  3. data/docs/AdAccountsApi.md +88 -12
  4. data/docs/AdCampaignsApi.md +20 -20
  5. data/docs/AdCreativesApi.md +222 -0
  6. data/docs/AdInsightsApi.md +16 -16
  7. data/docs/AdTargetingApi.md +4 -4
  8. data/docs/ConversionsApi.md +8 -8
  9. data/docs/ListPartnershipAdContent200Response.md +18 -0
  10. data/docs/ListPartnershipAdContent200ResponseMediaInner.md +30 -0
  11. data/docs/ListPartnershipAdPermissions200Response.md +18 -0
  12. data/docs/ListPartnershipAdPermissions200ResponsePermissionsInner.md +22 -0
  13. data/docs/ListTikTokAdPixels200Response.md +20 -0
  14. data/docs/ListTikTokAdPixels200ResponsePixelsInner.md +26 -0
  15. data/docs/ListTikTokAdPixels200ResponsePixelsInnerEventDetailsInner.md +22 -0
  16. data/docs/ReachAndFrequencyApi.md +16 -16
  17. data/docs/SetPartnershipAdPermission200Response.md +18 -0
  18. data/docs/SetPartnershipAdPermissionRequest.md +22 -0
  19. data/lib/zernio-sdk/api/ad_accounts_api.rb +81 -6
  20. data/lib/zernio-sdk/api/ad_campaigns_api.rb +10 -10
  21. data/lib/zernio-sdk/api/ad_creatives_api.rb +218 -0
  22. data/lib/zernio-sdk/api/ad_insights_api.rb +8 -8
  23. data/lib/zernio-sdk/api/ad_targeting_api.rb +2 -2
  24. data/lib/zernio-sdk/api/conversions_api.rb +4 -4
  25. data/lib/zernio-sdk/api/reach_and_frequency_api.rb +8 -8
  26. data/lib/zernio-sdk/models/list_partnership_ad_content200_response.rb +149 -0
  27. data/lib/zernio-sdk/models/list_partnership_ad_content200_response_media_inner.rb +205 -0
  28. data/lib/zernio-sdk/models/list_partnership_ad_permissions200_response.rb +149 -0
  29. data/lib/zernio-sdk/models/list_partnership_ad_permissions200_response_permissions_inner.rb +165 -0
  30. data/lib/zernio-sdk/models/list_tik_tok_ad_pixels200_response.rb +158 -0
  31. data/lib/zernio-sdk/models/list_tik_tok_ad_pixels200_response_pixels_inner.rb +187 -0
  32. data/lib/zernio-sdk/models/list_tik_tok_ad_pixels200_response_pixels_inner_event_details_inner.rb +166 -0
  33. data/lib/zernio-sdk/models/set_partnership_ad_permission200_response.rb +147 -0
  34. data/lib/zernio-sdk/models/set_partnership_ad_permission_request.rb +219 -0
  35. data/lib/zernio-sdk/version.rb +1 -1
  36. data/lib/zernio-sdk.rb +9 -0
  37. data/openapi.yaml +632 -154
  38. data/spec/api/ad_accounts_api_spec.rb +17 -3
  39. data/spec/api/ad_campaigns_api_spec.rb +5 -5
  40. data/spec/api/ad_creatives_api_spec.rb +40 -0
  41. data/spec/api/ad_insights_api_spec.rb +4 -4
  42. data/spec/api/ad_targeting_api_spec.rb +1 -1
  43. data/spec/api/conversions_api_spec.rb +2 -2
  44. data/spec/api/reach_and_frequency_api_spec.rb +4 -4
  45. data/spec/models/list_partnership_ad_content200_response_media_inner_spec.rb +72 -0
  46. data/spec/models/list_partnership_ad_content200_response_spec.rb +36 -0
  47. data/spec/models/list_partnership_ad_permissions200_response_permissions_inner_spec.rb +48 -0
  48. data/spec/models/list_partnership_ad_permissions200_response_spec.rb +36 -0
  49. data/spec/models/list_tik_tok_ad_pixels200_response_pixels_inner_event_details_inner_spec.rb +48 -0
  50. data/spec/models/list_tik_tok_ad_pixels200_response_pixels_inner_spec.rb +60 -0
  51. data/spec/models/list_tik_tok_ad_pixels200_response_spec.rb +42 -0
  52. data/spec/models/set_partnership_ad_permission200_response_spec.rb +36 -0
  53. data/spec/models/set_partnership_ad_permission_request_spec.rb +48 -0
  54. data/zernio-sdk-0.0.910.gem +0 -0
  55. metadata +38 -2
  56. data/zernio-sdk-0.0.909.gem +0 -0
@@ -0,0 +1,166 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
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 ListTikTokAdPixels200ResponsePixelsInnerEventDetailsInner < ApiModelBase
18
+ attr_accessor :name
19
+
20
+ attr_accessor :optimization_event
21
+
22
+ attr_accessor :custom
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'name' => :'name',
28
+ :'optimization_event' => :'optimizationEvent',
29
+ :'custom' => :'custom'
30
+ }
31
+ end
32
+
33
+ # Returns attribute mapping this model knows about
34
+ def self.acceptable_attribute_map
35
+ attribute_map
36
+ end
37
+
38
+ # Returns all the JSON keys this model knows about
39
+ def self.acceptable_attributes
40
+ acceptable_attribute_map.values
41
+ end
42
+
43
+ # Attribute type mapping.
44
+ def self.openapi_types
45
+ {
46
+ :'name' => :'String',
47
+ :'optimization_event' => :'String',
48
+ :'custom' => :'Boolean'
49
+ }
50
+ end
51
+
52
+ # List of attributes with nullable: true
53
+ def self.openapi_nullable
54
+ Set.new([
55
+ :'optimization_event',
56
+ ])
57
+ end
58
+
59
+ # Initializes the object
60
+ # @param [Hash] attributes Model attributes in the form of hash
61
+ def initialize(attributes = {})
62
+ if (!attributes.is_a?(Hash))
63
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::ListTikTokAdPixels200ResponsePixelsInnerEventDetailsInner` initialize method"
64
+ end
65
+
66
+ # check to see if the attribute exists and convert string to symbol for hash key
67
+ acceptable_attribute_map = self.class.acceptable_attribute_map
68
+ attributes = attributes.each_with_object({}) { |(k, v), h|
69
+ if (!acceptable_attribute_map.key?(k.to_sym))
70
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::ListTikTokAdPixels200ResponsePixelsInnerEventDetailsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
71
+ end
72
+ h[k.to_sym] = v
73
+ }
74
+
75
+ if attributes.key?(:'name')
76
+ self.name = attributes[:'name']
77
+ end
78
+
79
+ if attributes.key?(:'optimization_event')
80
+ self.optimization_event = attributes[:'optimization_event']
81
+ end
82
+
83
+ if attributes.key?(:'custom')
84
+ self.custom = attributes[:'custom']
85
+ end
86
+ end
87
+
88
+ # Show invalid properties with the reasons. Usually used together with valid?
89
+ # @return Array for valid properties with the reasons
90
+ def list_invalid_properties
91
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
92
+ invalid_properties = Array.new
93
+ invalid_properties
94
+ end
95
+
96
+ # Check to see if the all the properties in the model are valid
97
+ # @return true if the model is valid
98
+ def valid?
99
+ warn '[DEPRECATED] the `valid?` method is obsolete'
100
+ true
101
+ end
102
+
103
+ # Checks equality by comparing each attribute.
104
+ # @param [Object] Object to be compared
105
+ def ==(o)
106
+ return true if self.equal?(o)
107
+ self.class == o.class &&
108
+ name == o.name &&
109
+ optimization_event == o.optimization_event &&
110
+ custom == o.custom
111
+ end
112
+
113
+ # @see the `==` method
114
+ # @param [Object] Object to be compared
115
+ def eql?(o)
116
+ self == o
117
+ end
118
+
119
+ # Calculates hash code according to all attributes.
120
+ # @return [Integer] Hash code
121
+ def hash
122
+ [name, optimization_event, custom].hash
123
+ end
124
+
125
+ # Builds the object from hash
126
+ # @param [Hash] attributes Model attributes in the form of hash
127
+ # @return [Object] Returns the model itself
128
+ def self.build_from_hash(attributes)
129
+ return nil unless attributes.is_a?(Hash)
130
+ attributes = attributes.transform_keys(&:to_sym)
131
+ transformed_hash = {}
132
+ openapi_types.each_pair do |key, type|
133
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
134
+ transformed_hash["#{key}"] = nil
135
+ elsif type =~ /\AArray<(.*)>/i
136
+ # check to ensure the input is an array given that the attribute
137
+ # is documented as an array but the input is not
138
+ if attributes[attribute_map[key]].is_a?(Array)
139
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
140
+ end
141
+ elsif !attributes[attribute_map[key]].nil?
142
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
143
+ end
144
+ end
145
+ new(transformed_hash)
146
+ end
147
+
148
+ # Returns the object in the form of hash
149
+ # @return [Hash] Returns the object in the form of hash
150
+ def to_hash
151
+ hash = {}
152
+ self.class.attribute_map.each_pair do |attr, param|
153
+ value = self.send(attr)
154
+ if value.nil?
155
+ is_nullable = self.class.openapi_nullable.include?(attr)
156
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
157
+ end
158
+
159
+ hash[param] = _to_hash(value)
160
+ end
161
+ hash
162
+ end
163
+
164
+ end
165
+
166
+ end
@@ -0,0 +1,147 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
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 SetPartnershipAdPermission200Response < ApiModelBase
18
+ attr_accessor :permission
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'permission' => :'permission'
24
+ }
25
+ end
26
+
27
+ # Returns attribute mapping this model knows about
28
+ def self.acceptable_attribute_map
29
+ attribute_map
30
+ end
31
+
32
+ # Returns all the JSON keys this model knows about
33
+ def self.acceptable_attributes
34
+ acceptable_attribute_map.values
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.openapi_types
39
+ {
40
+ :'permission' => :'ListPartnershipAdPermissions200ResponsePermissionsInner'
41
+ }
42
+ end
43
+
44
+ # List of attributes with nullable: true
45
+ def self.openapi_nullable
46
+ Set.new([
47
+ ])
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ if (!attributes.is_a?(Hash))
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::SetPartnershipAdPermission200Response` initialize method"
55
+ end
56
+
57
+ # check to see if the attribute exists and convert string to symbol for hash key
58
+ acceptable_attribute_map = self.class.acceptable_attribute_map
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!acceptable_attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::SetPartnershipAdPermission200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'permission')
67
+ self.permission = attributes[:'permission']
68
+ end
69
+ end
70
+
71
+ # Show invalid properties with the reasons. Usually used together with valid?
72
+ # @return Array for valid properties with the reasons
73
+ def list_invalid_properties
74
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
75
+ invalid_properties = Array.new
76
+ invalid_properties
77
+ end
78
+
79
+ # Check to see if the all the properties in the model are valid
80
+ # @return true if the model is valid
81
+ def valid?
82
+ warn '[DEPRECATED] the `valid?` method is obsolete'
83
+ true
84
+ end
85
+
86
+ # Checks equality by comparing each attribute.
87
+ # @param [Object] Object to be compared
88
+ def ==(o)
89
+ return true if self.equal?(o)
90
+ self.class == o.class &&
91
+ permission == o.permission
92
+ end
93
+
94
+ # @see the `==` method
95
+ # @param [Object] Object to be compared
96
+ def eql?(o)
97
+ self == o
98
+ end
99
+
100
+ # Calculates hash code according to all attributes.
101
+ # @return [Integer] Hash code
102
+ def hash
103
+ [permission].hash
104
+ end
105
+
106
+ # Builds the object from hash
107
+ # @param [Hash] attributes Model attributes in the form of hash
108
+ # @return [Object] Returns the model itself
109
+ def self.build_from_hash(attributes)
110
+ return nil unless attributes.is_a?(Hash)
111
+ attributes = attributes.transform_keys(&:to_sym)
112
+ transformed_hash = {}
113
+ openapi_types.each_pair do |key, type|
114
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
115
+ transformed_hash["#{key}"] = nil
116
+ elsif type =~ /\AArray<(.*)>/i
117
+ # check to ensure the input is an array given that the attribute
118
+ # is documented as an array but the input is not
119
+ if attributes[attribute_map[key]].is_a?(Array)
120
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
121
+ end
122
+ elsif !attributes[attribute_map[key]].nil?
123
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
124
+ end
125
+ end
126
+ new(transformed_hash)
127
+ end
128
+
129
+ # Returns the object in the form of hash
130
+ # @return [Hash] Returns the object in the form of hash
131
+ def to_hash
132
+ hash = {}
133
+ self.class.attribute_map.each_pair do |attr, param|
134
+ value = self.send(attr)
135
+ if value.nil?
136
+ is_nullable = self.class.openapi_nullable.include?(attr)
137
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
138
+ end
139
+
140
+ hash[param] = _to_hash(value)
141
+ end
142
+ hash
143
+ end
144
+
145
+ end
146
+
147
+ end
@@ -0,0 +1,219 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
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 SetPartnershipAdPermissionRequest < ApiModelBase
18
+ attr_accessor :account_id
19
+
20
+ attr_accessor :creator_username
21
+
22
+ attr_accessor :revoke
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'account_id' => :'accountId',
28
+ :'creator_username' => :'creatorUsername',
29
+ :'revoke' => :'revoke'
30
+ }
31
+ end
32
+
33
+ # Returns attribute mapping this model knows about
34
+ def self.acceptable_attribute_map
35
+ attribute_map
36
+ end
37
+
38
+ # Returns all the JSON keys this model knows about
39
+ def self.acceptable_attributes
40
+ acceptable_attribute_map.values
41
+ end
42
+
43
+ # Attribute type mapping.
44
+ def self.openapi_types
45
+ {
46
+ :'account_id' => :'String',
47
+ :'creator_username' => :'String',
48
+ :'revoke' => :'Boolean'
49
+ }
50
+ end
51
+
52
+ # List of attributes with nullable: true
53
+ def self.openapi_nullable
54
+ Set.new([
55
+ ])
56
+ end
57
+
58
+ # Initializes the object
59
+ # @param [Hash] attributes Model attributes in the form of hash
60
+ def initialize(attributes = {})
61
+ if (!attributes.is_a?(Hash))
62
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::SetPartnershipAdPermissionRequest` initialize method"
63
+ end
64
+
65
+ # check to see if the attribute exists and convert string to symbol for hash key
66
+ acceptable_attribute_map = self.class.acceptable_attribute_map
67
+ attributes = attributes.each_with_object({}) { |(k, v), h|
68
+ if (!acceptable_attribute_map.key?(k.to_sym))
69
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::SetPartnershipAdPermissionRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
70
+ end
71
+ h[k.to_sym] = v
72
+ }
73
+
74
+ if attributes.key?(:'account_id')
75
+ self.account_id = attributes[:'account_id']
76
+ else
77
+ self.account_id = nil
78
+ end
79
+
80
+ if attributes.key?(:'creator_username')
81
+ self.creator_username = attributes[:'creator_username']
82
+ else
83
+ self.creator_username = nil
84
+ end
85
+
86
+ if attributes.key?(:'revoke')
87
+ self.revoke = attributes[:'revoke']
88
+ end
89
+ end
90
+
91
+ # Show invalid properties with the reasons. Usually used together with valid?
92
+ # @return Array for valid properties with the reasons
93
+ def list_invalid_properties
94
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
95
+ invalid_properties = Array.new
96
+ if @account_id.nil?
97
+ invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
98
+ end
99
+
100
+ pattern = Regexp.new(/^[a-fA-F0-9]{24}$/)
101
+ if @account_id !~ pattern
102
+ invalid_properties.push("invalid value for \"account_id\", must conform to the pattern #{pattern}.")
103
+ end
104
+
105
+ if @creator_username.nil?
106
+ invalid_properties.push('invalid value for "creator_username", creator_username cannot be nil.')
107
+ end
108
+
109
+ if @creator_username.to_s.length < 1
110
+ invalid_properties.push('invalid value for "creator_username", the character length must be greater than or equal to 1.')
111
+ end
112
+
113
+ invalid_properties
114
+ end
115
+
116
+ # Check to see if the all the properties in the model are valid
117
+ # @return true if the model is valid
118
+ def valid?
119
+ warn '[DEPRECATED] the `valid?` method is obsolete'
120
+ return false if @account_id.nil?
121
+ return false if @account_id !~ Regexp.new(/^[a-fA-F0-9]{24}$/)
122
+ return false if @creator_username.nil?
123
+ return false if @creator_username.to_s.length < 1
124
+ true
125
+ end
126
+
127
+ # Custom attribute writer method with validation
128
+ # @param [Object] account_id Value to be assigned
129
+ def account_id=(account_id)
130
+ if account_id.nil?
131
+ fail ArgumentError, 'account_id cannot be nil'
132
+ end
133
+
134
+ pattern = Regexp.new(/^[a-fA-F0-9]{24}$/)
135
+ if account_id !~ pattern
136
+ fail ArgumentError, "invalid value for \"account_id\", must conform to the pattern #{pattern}."
137
+ end
138
+
139
+ @account_id = account_id
140
+ end
141
+
142
+ # Custom attribute writer method with validation
143
+ # @param [Object] creator_username Value to be assigned
144
+ def creator_username=(creator_username)
145
+ if creator_username.nil?
146
+ fail ArgumentError, 'creator_username cannot be nil'
147
+ end
148
+
149
+ if creator_username.to_s.length < 1
150
+ fail ArgumentError, 'invalid value for "creator_username", the character length must be greater than or equal to 1.'
151
+ end
152
+
153
+ @creator_username = creator_username
154
+ end
155
+
156
+ # Checks equality by comparing each attribute.
157
+ # @param [Object] Object to be compared
158
+ def ==(o)
159
+ return true if self.equal?(o)
160
+ self.class == o.class &&
161
+ account_id == o.account_id &&
162
+ creator_username == o.creator_username &&
163
+ revoke == o.revoke
164
+ end
165
+
166
+ # @see the `==` method
167
+ # @param [Object] Object to be compared
168
+ def eql?(o)
169
+ self == o
170
+ end
171
+
172
+ # Calculates hash code according to all attributes.
173
+ # @return [Integer] Hash code
174
+ def hash
175
+ [account_id, creator_username, revoke].hash
176
+ end
177
+
178
+ # Builds the object from hash
179
+ # @param [Hash] attributes Model attributes in the form of hash
180
+ # @return [Object] Returns the model itself
181
+ def self.build_from_hash(attributes)
182
+ return nil unless attributes.is_a?(Hash)
183
+ attributes = attributes.transform_keys(&:to_sym)
184
+ transformed_hash = {}
185
+ openapi_types.each_pair do |key, type|
186
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
187
+ transformed_hash["#{key}"] = nil
188
+ elsif type =~ /\AArray<(.*)>/i
189
+ # check to ensure the input is an array given that the attribute
190
+ # is documented as an array but the input is not
191
+ if attributes[attribute_map[key]].is_a?(Array)
192
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
193
+ end
194
+ elsif !attributes[attribute_map[key]].nil?
195
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
196
+ end
197
+ end
198
+ new(transformed_hash)
199
+ end
200
+
201
+ # Returns the object in the form of hash
202
+ # @return [Hash] Returns the object in the form of hash
203
+ def to_hash
204
+ hash = {}
205
+ self.class.attribute_map.each_pair do |attr, param|
206
+ value = self.send(attr)
207
+ if value.nil?
208
+ is_nullable = self.class.openapi_nullable.include?(attr)
209
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
210
+ end
211
+
212
+ hash[param] = _to_hash(value)
213
+ end
214
+ hash
215
+ end
216
+
217
+ end
218
+
219
+ end
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.909'
14
+ VERSION = '0.0.910'
15
15
  end
data/lib/zernio-sdk.rb CHANGED
@@ -1157,6 +1157,10 @@ require 'zernio-sdk/models/list_logs200_response'
1157
1157
  require 'zernio-sdk/models/list_logs200_response_logs_inner'
1158
1158
  require 'zernio-sdk/models/list_logs200_response_pagination'
1159
1159
  require 'zernio-sdk/models/list_meta_businesses200_response'
1160
+ require 'zernio-sdk/models/list_partnership_ad_content200_response'
1161
+ require 'zernio-sdk/models/list_partnership_ad_content200_response_media_inner'
1162
+ require 'zernio-sdk/models/list_partnership_ad_permissions200_response'
1163
+ require 'zernio-sdk/models/list_partnership_ad_permissions200_response_permissions_inner'
1160
1164
  require 'zernio-sdk/models/list_phone_number_countries200_response'
1161
1165
  require 'zernio-sdk/models/list_phone_number_countries200_response_countries_inner'
1162
1166
  require 'zernio-sdk/models/list_phone_number_countries200_response_countries_inner_types_inner'
@@ -1193,6 +1197,9 @@ require 'zernio-sdk/models/list_sms_sender_ids200_response_budget_pending_reques
1193
1197
  require 'zernio-sdk/models/list_sms_sender_ids200_response_sender_ids_inner'
1194
1198
  require 'zernio-sdk/models/list_snapchat_profiles200_response'
1195
1199
  require 'zernio-sdk/models/list_snapchat_profiles200_response_public_profiles_inner'
1200
+ require 'zernio-sdk/models/list_tik_tok_ad_pixels200_response'
1201
+ require 'zernio-sdk/models/list_tik_tok_ad_pixels200_response_pixels_inner'
1202
+ require 'zernio-sdk/models/list_tik_tok_ad_pixels200_response_pixels_inner_event_details_inner'
1196
1203
  require 'zernio-sdk/models/list_tracking_tag_shared_accounts200_response'
1197
1204
  require 'zernio-sdk/models/list_tracking_tags200_response'
1198
1205
  require 'zernio-sdk/models/list_users200_response'
@@ -1539,6 +1546,8 @@ require 'zernio-sdk/models/set_conversation_thread_control_request'
1539
1546
  require 'zernio-sdk/models/set_instagram_ice_breakers_request'
1540
1547
  require 'zernio-sdk/models/set_instagram_ice_breakers_request_ice_breakers_inner'
1541
1548
  require 'zernio-sdk/models/set_messenger_menu_request'
1549
+ require 'zernio-sdk/models/set_partnership_ad_permission200_response'
1550
+ require 'zernio-sdk/models/set_partnership_ad_permission_request'
1542
1551
  require 'zernio-sdk/models/set_reddit_post_flair_request'
1543
1552
  require 'zernio-sdk/models/set_telegram_commands_request'
1544
1553
  require 'zernio-sdk/models/set_telegram_commands_request_commands_inner'