late-sdk 0.0.531 → 0.0.533

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 +16 -0
  3. data/docs/AdsApi.md +287 -0
  4. data/docs/CheckPhoneNumberPortability200ResponseResultsInner.md +5 -1
  5. data/docs/CreatePhoneNumberPortInRequest.md +4 -2
  6. data/docs/CreatePhoneNumberPortInRequestEndUser.md +8 -4
  7. data/docs/CreatePhoneNumberPortInRequestRequirementsInner.md +20 -0
  8. data/docs/CreateRfPrediction201Response.md +22 -0
  9. data/docs/CreateRfPredictionRequest.md +34 -0
  10. data/docs/CreateStandaloneAdRequest.md +4 -0
  11. data/docs/GetPhoneNumberPortInOrderRequirements200Response.md +20 -0
  12. data/docs/GetPhoneNumberPortInOrderRequirements200ResponseRequirementsInner.md +32 -0
  13. data/docs/GetPhoneNumberPortInRequirements200Response.md +24 -0
  14. data/docs/GetPhoneNumberPortInRequirements200ResponseFieldsInner.md +28 -0
  15. data/docs/PhoneNumbersApi.md +149 -5
  16. data/docs/ReserveRfPrediction201Response.md +20 -0
  17. data/docs/ReserveRfPredictionRequest.md +20 -0
  18. data/docs/RfPrediction.md +42 -0
  19. data/lib/zernio-sdk/api/ads_api.rb +294 -0
  20. data/lib/zernio-sdk/api/phone_numbers_api.rb +148 -10
  21. data/lib/zernio-sdk/models/check_phone_number_portability200_response_results_inner.rb +24 -2
  22. data/lib/zernio-sdk/models/create_phone_number_port_in_request.rb +36 -5
  23. data/lib/zernio-sdk/models/create_phone_number_port_in_request_end_user.rb +65 -23
  24. data/lib/zernio-sdk/models/create_phone_number_port_in_request_requirements_inner.rb +201 -0
  25. data/lib/zernio-sdk/models/create_rf_prediction201_response.rb +165 -0
  26. data/lib/zernio-sdk/models/create_rf_prediction_request.rb +323 -0
  27. data/lib/zernio-sdk/models/create_standalone_ad_request.rb +33 -1
  28. data/lib/zernio-sdk/models/get_phone_number_port_in_order_requirements200_response.rb +158 -0
  29. data/lib/zernio-sdk/models/get_phone_number_port_in_order_requirements200_response_requirements_inner.rb +247 -0
  30. data/lib/zernio-sdk/models/get_phone_number_port_in_requirements200_response.rb +177 -0
  31. data/lib/zernio-sdk/models/get_phone_number_port_in_requirements200_response_fields_inner.rb +231 -0
  32. data/lib/zernio-sdk/models/reserve_rf_prediction201_response.rb +156 -0
  33. data/lib/zernio-sdk/models/reserve_rf_prediction_request.rb +190 -0
  34. data/lib/zernio-sdk/models/rf_prediction.rb +273 -0
  35. data/lib/zernio-sdk/version.rb +1 -1
  36. data/lib/zernio-sdk.rb +10 -0
  37. data/openapi.yaml +283 -16
  38. data/spec/api/ads_api_spec.rb +52 -0
  39. data/spec/api/phone_numbers_api_spec.rb +28 -3
  40. data/spec/models/check_phone_number_portability200_response_results_inner_spec.rb +12 -0
  41. data/spec/models/create_phone_number_port_in_request_end_user_spec.rb +13 -1
  42. data/spec/models/create_phone_number_port_in_request_requirements_inner_spec.rb +42 -0
  43. data/spec/models/create_phone_number_port_in_request_spec.rb +6 -0
  44. data/spec/models/create_rf_prediction201_response_spec.rb +48 -0
  45. data/spec/models/create_rf_prediction_request_spec.rb +84 -0
  46. data/spec/models/create_standalone_ad_request_spec.rb +16 -0
  47. data/spec/models/get_phone_number_port_in_order_requirements200_response_requirements_inner_spec.rb +82 -0
  48. data/spec/models/get_phone_number_port_in_order_requirements200_response_spec.rb +42 -0
  49. data/spec/models/get_phone_number_port_in_requirements200_response_fields_inner_spec.rb +70 -0
  50. data/spec/models/get_phone_number_port_in_requirements200_response_spec.rb +54 -0
  51. data/spec/models/reserve_rf_prediction201_response_spec.rb +42 -0
  52. data/spec/models/reserve_rf_prediction_request_spec.rb +42 -0
  53. data/spec/models/rf_prediction_spec.rb +108 -0
  54. data/zernio-sdk-0.0.533.gem +0 -0
  55. metadata +42 -2
  56. data/zernio-sdk-0.0.531.gem +0 -0
@@ -0,0 +1,156 @@
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 ReserveRfPrediction201Response < ApiModelBase
18
+ attr_accessor :ad_account_id
19
+
20
+ attr_accessor :prediction
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'ad_account_id' => :'adAccountId',
26
+ :'prediction' => :'prediction'
27
+ }
28
+ end
29
+
30
+ # Returns attribute mapping this model knows about
31
+ def self.acceptable_attribute_map
32
+ attribute_map
33
+ end
34
+
35
+ # Returns all the JSON keys this model knows about
36
+ def self.acceptable_attributes
37
+ acceptable_attribute_map.values
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.openapi_types
42
+ {
43
+ :'ad_account_id' => :'String',
44
+ :'prediction' => :'RfPrediction'
45
+ }
46
+ end
47
+
48
+ # List of attributes with nullable: true
49
+ def self.openapi_nullable
50
+ Set.new([
51
+ ])
52
+ end
53
+
54
+ # Initializes the object
55
+ # @param [Hash] attributes Model attributes in the form of hash
56
+ def initialize(attributes = {})
57
+ if (!attributes.is_a?(Hash))
58
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::ReserveRfPrediction201Response` initialize method"
59
+ end
60
+
61
+ # check to see if the attribute exists and convert string to symbol for hash key
62
+ acceptable_attribute_map = self.class.acceptable_attribute_map
63
+ attributes = attributes.each_with_object({}) { |(k, v), h|
64
+ if (!acceptable_attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::ReserveRfPrediction201Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
+ end
67
+ h[k.to_sym] = v
68
+ }
69
+
70
+ if attributes.key?(:'ad_account_id')
71
+ self.ad_account_id = attributes[:'ad_account_id']
72
+ end
73
+
74
+ if attributes.key?(:'prediction')
75
+ self.prediction = attributes[:'prediction']
76
+ end
77
+ end
78
+
79
+ # Show invalid properties with the reasons. Usually used together with valid?
80
+ # @return Array for valid properties with the reasons
81
+ def list_invalid_properties
82
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
83
+ invalid_properties = Array.new
84
+ invalid_properties
85
+ end
86
+
87
+ # Check to see if the all the properties in the model are valid
88
+ # @return true if the model is valid
89
+ def valid?
90
+ warn '[DEPRECATED] the `valid?` method is obsolete'
91
+ true
92
+ end
93
+
94
+ # Checks equality by comparing each attribute.
95
+ # @param [Object] Object to be compared
96
+ def ==(o)
97
+ return true if self.equal?(o)
98
+ self.class == o.class &&
99
+ ad_account_id == o.ad_account_id &&
100
+ prediction == o.prediction
101
+ end
102
+
103
+ # @see the `==` method
104
+ # @param [Object] Object to be compared
105
+ def eql?(o)
106
+ self == o
107
+ end
108
+
109
+ # Calculates hash code according to all attributes.
110
+ # @return [Integer] Hash code
111
+ def hash
112
+ [ad_account_id, prediction].hash
113
+ end
114
+
115
+ # Builds the object from hash
116
+ # @param [Hash] attributes Model attributes in the form of hash
117
+ # @return [Object] Returns the model itself
118
+ def self.build_from_hash(attributes)
119
+ return nil unless attributes.is_a?(Hash)
120
+ attributes = attributes.transform_keys(&:to_sym)
121
+ transformed_hash = {}
122
+ openapi_types.each_pair do |key, type|
123
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
124
+ transformed_hash["#{key}"] = nil
125
+ elsif type =~ /\AArray<(.*)>/i
126
+ # check to ensure the input is an array given that the attribute
127
+ # is documented as an array but the input is not
128
+ if attributes[attribute_map[key]].is_a?(Array)
129
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
130
+ end
131
+ elsif !attributes[attribute_map[key]].nil?
132
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
133
+ end
134
+ end
135
+ new(transformed_hash)
136
+ end
137
+
138
+ # Returns the object in the form of hash
139
+ # @return [Hash] Returns the object in the form of hash
140
+ def to_hash
141
+ hash = {}
142
+ self.class.attribute_map.each_pair do |attr, param|
143
+ value = self.send(attr)
144
+ if value.nil?
145
+ is_nullable = self.class.openapi_nullable.include?(attr)
146
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
147
+ end
148
+
149
+ hash[param] = _to_hash(value)
150
+ end
151
+ hash
152
+ end
153
+
154
+ end
155
+
156
+ end
@@ -0,0 +1,190 @@
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 ReserveRfPredictionRequest < ApiModelBase
18
+ attr_accessor :account_id
19
+
20
+ attr_accessor :ad_account_id
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'account_id' => :'accountId',
26
+ :'ad_account_id' => :'adAccountId'
27
+ }
28
+ end
29
+
30
+ # Returns attribute mapping this model knows about
31
+ def self.acceptable_attribute_map
32
+ attribute_map
33
+ end
34
+
35
+ # Returns all the JSON keys this model knows about
36
+ def self.acceptable_attributes
37
+ acceptable_attribute_map.values
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.openapi_types
42
+ {
43
+ :'account_id' => :'String',
44
+ :'ad_account_id' => :'String'
45
+ }
46
+ end
47
+
48
+ # List of attributes with nullable: true
49
+ def self.openapi_nullable
50
+ Set.new([
51
+ ])
52
+ end
53
+
54
+ # Initializes the object
55
+ # @param [Hash] attributes Model attributes in the form of hash
56
+ def initialize(attributes = {})
57
+ if (!attributes.is_a?(Hash))
58
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::ReserveRfPredictionRequest` initialize method"
59
+ end
60
+
61
+ # check to see if the attribute exists and convert string to symbol for hash key
62
+ acceptable_attribute_map = self.class.acceptable_attribute_map
63
+ attributes = attributes.each_with_object({}) { |(k, v), h|
64
+ if (!acceptable_attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::ReserveRfPredictionRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
+ end
67
+ h[k.to_sym] = v
68
+ }
69
+
70
+ if attributes.key?(:'account_id')
71
+ self.account_id = attributes[:'account_id']
72
+ else
73
+ self.account_id = nil
74
+ end
75
+
76
+ if attributes.key?(:'ad_account_id')
77
+ self.ad_account_id = attributes[:'ad_account_id']
78
+ else
79
+ self.ad_account_id = nil
80
+ end
81
+ end
82
+
83
+ # Show invalid properties with the reasons. Usually used together with valid?
84
+ # @return Array for valid properties with the reasons
85
+ def list_invalid_properties
86
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
87
+ invalid_properties = Array.new
88
+ if @account_id.nil?
89
+ invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
90
+ end
91
+
92
+ if @ad_account_id.nil?
93
+ invalid_properties.push('invalid value for "ad_account_id", ad_account_id cannot be nil.')
94
+ end
95
+
96
+ invalid_properties
97
+ end
98
+
99
+ # Check to see if the all the properties in the model are valid
100
+ # @return true if the model is valid
101
+ def valid?
102
+ warn '[DEPRECATED] the `valid?` method is obsolete'
103
+ return false if @account_id.nil?
104
+ return false if @ad_account_id.nil?
105
+ true
106
+ end
107
+
108
+ # Custom attribute writer method with validation
109
+ # @param [Object] account_id Value to be assigned
110
+ def account_id=(account_id)
111
+ if account_id.nil?
112
+ fail ArgumentError, 'account_id cannot be nil'
113
+ end
114
+
115
+ @account_id = account_id
116
+ end
117
+
118
+ # Custom attribute writer method with validation
119
+ # @param [Object] ad_account_id Value to be assigned
120
+ def ad_account_id=(ad_account_id)
121
+ if ad_account_id.nil?
122
+ fail ArgumentError, 'ad_account_id cannot be nil'
123
+ end
124
+
125
+ @ad_account_id = ad_account_id
126
+ end
127
+
128
+ # Checks equality by comparing each attribute.
129
+ # @param [Object] Object to be compared
130
+ def ==(o)
131
+ return true if self.equal?(o)
132
+ self.class == o.class &&
133
+ account_id == o.account_id &&
134
+ ad_account_id == o.ad_account_id
135
+ end
136
+
137
+ # @see the `==` method
138
+ # @param [Object] Object to be compared
139
+ def eql?(o)
140
+ self == o
141
+ end
142
+
143
+ # Calculates hash code according to all attributes.
144
+ # @return [Integer] Hash code
145
+ def hash
146
+ [account_id, ad_account_id].hash
147
+ end
148
+
149
+ # Builds the object from hash
150
+ # @param [Hash] attributes Model attributes in the form of hash
151
+ # @return [Object] Returns the model itself
152
+ def self.build_from_hash(attributes)
153
+ return nil unless attributes.is_a?(Hash)
154
+ attributes = attributes.transform_keys(&:to_sym)
155
+ transformed_hash = {}
156
+ openapi_types.each_pair do |key, type|
157
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
158
+ transformed_hash["#{key}"] = nil
159
+ elsif type =~ /\AArray<(.*)>/i
160
+ # check to ensure the input is an array given that the attribute
161
+ # is documented as an array but the input is not
162
+ if attributes[attribute_map[key]].is_a?(Array)
163
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
164
+ end
165
+ elsif !attributes[attribute_map[key]].nil?
166
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
167
+ end
168
+ end
169
+ new(transformed_hash)
170
+ end
171
+
172
+ # Returns the object in the form of hash
173
+ # @return [Hash] Returns the object in the form of hash
174
+ def to_hash
175
+ hash = {}
176
+ self.class.attribute_map.each_pair do |attr, param|
177
+ value = self.send(attr)
178
+ if value.nil?
179
+ is_nullable = self.class.openapi_nullable.include?(attr)
180
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
181
+ end
182
+
183
+ hash[param] = _to_hash(value)
184
+ end
185
+ hash
186
+ end
187
+
188
+ end
189
+
190
+ end
@@ -0,0 +1,273 @@
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
+ # A Meta Reach & Frequency prediction. Money values in whole units of the ad account currency.
18
+ class RfPrediction < ApiModelBase
19
+ attr_accessor :prediction_id
20
+
21
+ # ready | pending | failed:<meta code>
22
+ attr_accessor :status
23
+
24
+ # Quoted (or provided) lifetime budget for the window.
25
+ attr_accessor :budget
26
+
27
+ # Predicted (or requested) unique reach.
28
+ attr_accessor :reach
29
+
30
+ attr_accessor :impressions
31
+
32
+ # Meta's allowed lower bound for this spec.
33
+ attr_accessor :min_budget
34
+
35
+ attr_accessor :max_budget
36
+
37
+ attr_accessor :min_reach
38
+
39
+ attr_accessor :max_reach
40
+
41
+ attr_accessor :frequency_cap
42
+
43
+ # Unix seconds; the reserved window the R&F ad set will run on.
44
+ attr_accessor :start_time
45
+
46
+ attr_accessor :stop_time
47
+
48
+ # When the reservation's locked price expires (set after reserving).
49
+ attr_accessor :expires_at
50
+
51
+ # Attribute mapping from ruby-style variable name to JSON key.
52
+ def self.attribute_map
53
+ {
54
+ :'prediction_id' => :'predictionId',
55
+ :'status' => :'status',
56
+ :'budget' => :'budget',
57
+ :'reach' => :'reach',
58
+ :'impressions' => :'impressions',
59
+ :'min_budget' => :'minBudget',
60
+ :'max_budget' => :'maxBudget',
61
+ :'min_reach' => :'minReach',
62
+ :'max_reach' => :'maxReach',
63
+ :'frequency_cap' => :'frequencyCap',
64
+ :'start_time' => :'startTime',
65
+ :'stop_time' => :'stopTime',
66
+ :'expires_at' => :'expiresAt'
67
+ }
68
+ end
69
+
70
+ # Returns attribute mapping this model knows about
71
+ def self.acceptable_attribute_map
72
+ attribute_map
73
+ end
74
+
75
+ # Returns all the JSON keys this model knows about
76
+ def self.acceptable_attributes
77
+ acceptable_attribute_map.values
78
+ end
79
+
80
+ # Attribute type mapping.
81
+ def self.openapi_types
82
+ {
83
+ :'prediction_id' => :'String',
84
+ :'status' => :'String',
85
+ :'budget' => :'Float',
86
+ :'reach' => :'Integer',
87
+ :'impressions' => :'Integer',
88
+ :'min_budget' => :'Float',
89
+ :'max_budget' => :'Float',
90
+ :'min_reach' => :'Integer',
91
+ :'max_reach' => :'Integer',
92
+ :'frequency_cap' => :'Integer',
93
+ :'start_time' => :'Integer',
94
+ :'stop_time' => :'Integer',
95
+ :'expires_at' => :'String'
96
+ }
97
+ end
98
+
99
+ # List of attributes with nullable: true
100
+ def self.openapi_nullable
101
+ Set.new([
102
+ :'budget',
103
+ :'reach',
104
+ :'impressions',
105
+ :'min_budget',
106
+ :'max_budget',
107
+ :'min_reach',
108
+ :'max_reach',
109
+ :'frequency_cap',
110
+ :'start_time',
111
+ :'stop_time',
112
+ :'expires_at'
113
+ ])
114
+ end
115
+
116
+ # Initializes the object
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ def initialize(attributes = {})
119
+ if (!attributes.is_a?(Hash))
120
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::RfPrediction` initialize method"
121
+ end
122
+
123
+ # check to see if the attribute exists and convert string to symbol for hash key
124
+ acceptable_attribute_map = self.class.acceptable_attribute_map
125
+ attributes = attributes.each_with_object({}) { |(k, v), h|
126
+ if (!acceptable_attribute_map.key?(k.to_sym))
127
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::RfPrediction`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
128
+ end
129
+ h[k.to_sym] = v
130
+ }
131
+
132
+ if attributes.key?(:'prediction_id')
133
+ self.prediction_id = attributes[:'prediction_id']
134
+ end
135
+
136
+ if attributes.key?(:'status')
137
+ self.status = attributes[:'status']
138
+ end
139
+
140
+ if attributes.key?(:'budget')
141
+ self.budget = attributes[:'budget']
142
+ end
143
+
144
+ if attributes.key?(:'reach')
145
+ self.reach = attributes[:'reach']
146
+ end
147
+
148
+ if attributes.key?(:'impressions')
149
+ self.impressions = attributes[:'impressions']
150
+ end
151
+
152
+ if attributes.key?(:'min_budget')
153
+ self.min_budget = attributes[:'min_budget']
154
+ end
155
+
156
+ if attributes.key?(:'max_budget')
157
+ self.max_budget = attributes[:'max_budget']
158
+ end
159
+
160
+ if attributes.key?(:'min_reach')
161
+ self.min_reach = attributes[:'min_reach']
162
+ end
163
+
164
+ if attributes.key?(:'max_reach')
165
+ self.max_reach = attributes[:'max_reach']
166
+ end
167
+
168
+ if attributes.key?(:'frequency_cap')
169
+ self.frequency_cap = attributes[:'frequency_cap']
170
+ end
171
+
172
+ if attributes.key?(:'start_time')
173
+ self.start_time = attributes[:'start_time']
174
+ end
175
+
176
+ if attributes.key?(:'stop_time')
177
+ self.stop_time = attributes[:'stop_time']
178
+ end
179
+
180
+ if attributes.key?(:'expires_at')
181
+ self.expires_at = attributes[:'expires_at']
182
+ end
183
+ end
184
+
185
+ # Show invalid properties with the reasons. Usually used together with valid?
186
+ # @return Array for valid properties with the reasons
187
+ def list_invalid_properties
188
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
189
+ invalid_properties = Array.new
190
+ invalid_properties
191
+ end
192
+
193
+ # Check to see if the all the properties in the model are valid
194
+ # @return true if the model is valid
195
+ def valid?
196
+ warn '[DEPRECATED] the `valid?` method is obsolete'
197
+ true
198
+ end
199
+
200
+ # Checks equality by comparing each attribute.
201
+ # @param [Object] Object to be compared
202
+ def ==(o)
203
+ return true if self.equal?(o)
204
+ self.class == o.class &&
205
+ prediction_id == o.prediction_id &&
206
+ status == o.status &&
207
+ budget == o.budget &&
208
+ reach == o.reach &&
209
+ impressions == o.impressions &&
210
+ min_budget == o.min_budget &&
211
+ max_budget == o.max_budget &&
212
+ min_reach == o.min_reach &&
213
+ max_reach == o.max_reach &&
214
+ frequency_cap == o.frequency_cap &&
215
+ start_time == o.start_time &&
216
+ stop_time == o.stop_time &&
217
+ expires_at == o.expires_at
218
+ end
219
+
220
+ # @see the `==` method
221
+ # @param [Object] Object to be compared
222
+ def eql?(o)
223
+ self == o
224
+ end
225
+
226
+ # Calculates hash code according to all attributes.
227
+ # @return [Integer] Hash code
228
+ def hash
229
+ [prediction_id, status, budget, reach, impressions, min_budget, max_budget, min_reach, max_reach, frequency_cap, start_time, stop_time, expires_at].hash
230
+ end
231
+
232
+ # Builds the object from hash
233
+ # @param [Hash] attributes Model attributes in the form of hash
234
+ # @return [Object] Returns the model itself
235
+ def self.build_from_hash(attributes)
236
+ return nil unless attributes.is_a?(Hash)
237
+ attributes = attributes.transform_keys(&:to_sym)
238
+ transformed_hash = {}
239
+ openapi_types.each_pair do |key, type|
240
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
241
+ transformed_hash["#{key}"] = nil
242
+ elsif type =~ /\AArray<(.*)>/i
243
+ # check to ensure the input is an array given that the attribute
244
+ # is documented as an array but the input is not
245
+ if attributes[attribute_map[key]].is_a?(Array)
246
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
247
+ end
248
+ elsif !attributes[attribute_map[key]].nil?
249
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
250
+ end
251
+ end
252
+ new(transformed_hash)
253
+ end
254
+
255
+ # Returns the object in the form of hash
256
+ # @return [Hash] Returns the object in the form of hash
257
+ def to_hash
258
+ hash = {}
259
+ self.class.attribute_map.each_pair do |attr, param|
260
+ value = self.send(attr)
261
+ if value.nil?
262
+ is_nullable = self.class.openapi_nullable.include?(attr)
263
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
264
+ end
265
+
266
+ hash[param] = _to_hash(value)
267
+ end
268
+ hash
269
+ end
270
+
271
+ end
272
+
273
+ end
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.531'
14
+ VERSION = '0.0.533'
15
15
  end
data/lib/zernio-sdk.rb CHANGED
@@ -216,6 +216,7 @@ require 'zernio-sdk/models/create_phone_number_port_in201_response'
216
216
  require 'zernio-sdk/models/create_phone_number_port_in201_response_orders_inner'
217
217
  require 'zernio-sdk/models/create_phone_number_port_in_request'
218
218
  require 'zernio-sdk/models/create_phone_number_port_in_request_end_user'
219
+ require 'zernio-sdk/models/create_phone_number_port_in_request_requirements_inner'
219
220
  require 'zernio-sdk/models/create_pinterest_board201_response'
220
221
  require 'zernio-sdk/models/create_pinterest_board201_response_board'
221
222
  require 'zernio-sdk/models/create_pinterest_board_request'
@@ -229,6 +230,8 @@ require 'zernio-sdk/models/create_post_request_platforms_inner_platform_specific
229
230
  require 'zernio-sdk/models/create_profile_request'
230
231
  require 'zernio-sdk/models/create_queue_slot201_response'
231
232
  require 'zernio-sdk/models/create_queue_slot_request'
233
+ require 'zernio-sdk/models/create_rf_prediction201_response'
234
+ require 'zernio-sdk/models/create_rf_prediction_request'
232
235
  require 'zernio-sdk/models/create_sequence200_response'
233
236
  require 'zernio-sdk/models/create_sequence200_response_sequence'
234
237
  require 'zernio-sdk/models/create_sequence_request'
@@ -585,6 +588,10 @@ require 'zernio-sdk/models/get_phone_number_kyc_form200_response_fields_inner'
585
588
  require 'zernio-sdk/models/get_phone_number_kyc_form200_response_reusable'
586
589
  require 'zernio-sdk/models/get_phone_number_kyc_form200_response_reusable_details_inner'
587
590
  require 'zernio-sdk/models/get_phone_number_kyc_form200_response_reusable_options_inner'
591
+ require 'zernio-sdk/models/get_phone_number_port_in_order_requirements200_response'
592
+ require 'zernio-sdk/models/get_phone_number_port_in_order_requirements200_response_requirements_inner'
593
+ require 'zernio-sdk/models/get_phone_number_port_in_requirements200_response'
594
+ require 'zernio-sdk/models/get_phone_number_port_in_requirements200_response_fields_inner'
588
595
  require 'zernio-sdk/models/get_phone_number_remediation200_response'
589
596
  require 'zernio-sdk/models/get_pinterest_boards200_response'
590
597
  require 'zernio-sdk/models/get_pinterest_boards200_response_boards_inner'
@@ -980,6 +987,8 @@ require 'zernio-sdk/models/reply_to_inbox_review_request'
980
987
  require 'zernio-sdk/models/reply_to_mention200_response'
981
988
  require 'zernio-sdk/models/reply_to_mention_request'
982
989
  require 'zernio-sdk/models/resend_sms_registration_otp200_response'
990
+ require 'zernio-sdk/models/reserve_rf_prediction201_response'
991
+ require 'zernio-sdk/models/reserve_rf_prediction_request'
983
992
  require 'zernio-sdk/models/restore_workflow_version200_response'
984
993
  require 'zernio-sdk/models/restore_workflow_version200_response_workflow'
985
994
  require 'zernio-sdk/models/retweet_post200_response'
@@ -991,6 +1000,7 @@ require 'zernio-sdk/models/review_phone_number_kyc_packet_request'
991
1000
  require 'zernio-sdk/models/review_webhook_review'
992
1001
  require 'zernio-sdk/models/review_webhook_review_reply'
993
1002
  require 'zernio-sdk/models/review_webhook_review_reviewer'
1003
+ require 'zernio-sdk/models/rf_prediction'
994
1004
  require 'zernio-sdk/models/saved_targeting_audience'
995
1005
  require 'zernio-sdk/models/schedule_broadcast200_response'
996
1006
  require 'zernio-sdk/models/schedule_broadcast200_response_broadcast'