plainrouter-sdk 0.1.0
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.
- checksums.yaml +7 -0
- data/LICENSE +202 -0
- data/README.md +59 -0
- data/lib/plainrouter/client.rb +44 -0
- data/lib/plainrouter/openapi/api/event_api.rb +213 -0
- data/lib/plainrouter/openapi/api/operations_api.rb +542 -0
- data/lib/plainrouter/openapi/api/sandbox_api.rb +272 -0
- data/lib/plainrouter/openapi/api_client.rb +441 -0
- data/lib/plainrouter/openapi/api_error.rb +58 -0
- data/lib/plainrouter/openapi/api_model_base.rb +88 -0
- data/lib/plainrouter/openapi/configuration.rb +399 -0
- data/lib/plainrouter/openapi/models/create_event200_response.rb +190 -0
- data/lib/plainrouter/openapi/models/create_event_request.rb +103 -0
- data/lib/plainrouter/openapi/models/create_event_request_any_of.rb +344 -0
- data/lib/plainrouter/openapi/models/create_event_request_any_of1.rb +346 -0
- data/lib/plainrouter/openapi/models/create_event_request_any_of_event_time.rb +104 -0
- data/lib/plainrouter/openapi/models/create_event_request_any_of_value_data.rb +186 -0
- data/lib/plainrouter/openapi/models/create_sandbox_key201_response.rb +320 -0
- data/lib/plainrouter/openapi/models/create_sandbox_key201_response_use.rb +216 -0
- data/lib/plainrouter/openapi/models/delete_user_data200_response.rb +268 -0
- data/lib/plainrouter/openapi/models/delete_user_data_request.rb +225 -0
- data/lib/plainrouter/openapi/models/delivery_status.rb +49 -0
- data/lib/plainrouter/openapi/models/destination.rb +354 -0
- data/lib/plainrouter/openapi/models/destination_credential_source.rb +40 -0
- data/lib/plainrouter/openapi/models/destination_status.rb +40 -0
- data/lib/plainrouter/openapi/models/destination_type.rb +39 -0
- data/lib/plainrouter/openapi/models/emq_snapshot.rb +344 -0
- data/lib/plainrouter/openapi/models/error_message.rb +164 -0
- data/lib/plainrouter/openapi/models/event.rb +782 -0
- data/lib/plainrouter/openapi/models/get_emq_report200_response.rb +166 -0
- data/lib/plainrouter/openapi/models/get_emq_report200_response_snapshots_inner.rb +342 -0
- data/lib/plainrouter/openapi/models/get_event200_response.rb +218 -0
- data/lib/plainrouter/openapi/models/get_event200_response_deliveries_inner.rb +440 -0
- data/lib/plainrouter/openapi/models/get_event200_response_event.rb +624 -0
- data/lib/plainrouter/openapi/models/get_event200_response_event_consent.rb +103 -0
- data/lib/plainrouter/openapi/models/get_event200_response_event_deliveries_inner.rb +414 -0
- data/lib/plainrouter/openapi/models/get_event200_response_lineage.rb +178 -0
- data/lib/plainrouter/openapi/models/get_event200_response_lineage_children_inner.rb +596 -0
- data/lib/plainrouter/openapi/models/get_event200_response_lineage_parent.rb +596 -0
- data/lib/plainrouter/openapi/models/get_reconciliation_report200_response.rb +192 -0
- data/lib/plainrouter/openapi/models/get_reconciliation_report200_response_reports_inner.rb +476 -0
- data/lib/plainrouter/openapi/models/get_reconciliation_report200_response_reports_inner_buckets_value.rb +216 -0
- data/lib/plainrouter/openapi/models/get_reconciliation_report200_response_reports_inner_event_counts.rb +190 -0
- data/lib/plainrouter/openapi/models/get_reconciliation_report200_response_reports_inner_event_counts_accepted.rb +103 -0
- data/lib/plainrouter/openapi/models/get_sandbox200_response.rb +372 -0
- data/lib/plainrouter/openapi/models/get_sandbox200_response_self_serve_key.rb +242 -0
- data/lib/plainrouter/openapi/models/get_sandbox200_response_try.rb +242 -0
- data/lib/plainrouter/openapi/models/get_sandbox200_response_try_body.rb +242 -0
- data/lib/plainrouter/openapi/models/get_sandbox200_response_try_body_value_data.rb +216 -0
- data/lib/plainrouter/openapi/models/jurisdiction_policy_class.rb +40 -0
- data/lib/plainrouter/openapi/models/list_events200_response.rb +190 -0
- data/lib/plainrouter/openapi/models/list_events200_response_events.rb +382 -0
- data/lib/plainrouter/openapi/models/list_events200_response_events_links_inner.rb +202 -0
- data/lib/plainrouter/openapi/models/list_events200_response_metrics.rb +228 -0
- data/lib/plainrouter/openapi/models/list_events_by_cursor200_response.rb +190 -0
- data/lib/plainrouter/openapi/models/list_events_by_cursor200_response_events.rb +252 -0
- data/lib/plainrouter/openapi/models/reconciliation_report.rb +464 -0
- data/lib/plainrouter/openapi/models/replay_deliveries202_response.rb +242 -0
- data/lib/plainrouter/openapi/models/replay_deliveries_request.rb +199 -0
- data/lib/plainrouter/openapi/models/send_test_purchase200_response.rb +224 -0
- data/lib/plainrouter/openapi/models/send_test_purchase422_response.rb +103 -0
- data/lib/plainrouter/openapi/models/send_test_purchase_request.rb +224 -0
- data/lib/plainrouter/openapi/models/set_destination_test_mode200_response.rb +190 -0
- data/lib/plainrouter/openapi/models/set_destination_test_mode200_response_destination.rb +338 -0
- data/lib/plainrouter/openapi/models/set_destination_test_mode_request.rb +189 -0
- data/lib/plainrouter/openapi/models/traffic_class.rb +40 -0
- data/lib/plainrouter/openapi/models/validate_sandbox_event200_response.rb +320 -0
- data/lib/plainrouter/openapi/models/validate_sandbox_event_request.rb +194 -0
- data/lib/plainrouter/openapi/models/validate_sandbox_event_request_value_data.rb +166 -0
- data/lib/plainrouter/openapi/models/validation_error.rb +192 -0
- data/lib/plainrouter/openapi/version.rb +15 -0
- data/lib/plainrouter/openapi.rb +102 -0
- data/lib/plainrouter/version.rb +6 -0
- data/lib/plainrouter.rb +10 -0
- metadata +176 -0
|
@@ -0,0 +1,596 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#PlainRouter Conversion API
|
|
3
|
+
|
|
4
|
+
#PlainRouter public Signals Conversion API.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.5.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.25.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module PlainRouter::OpenAPI
|
|
17
|
+
class GetEvent200ResponseLineageParent < ApiModelBase
|
|
18
|
+
attr_accessor :id
|
|
19
|
+
|
|
20
|
+
attr_accessor :signal_tracker_id
|
|
21
|
+
|
|
22
|
+
attr_accessor :parent_event_id
|
|
23
|
+
|
|
24
|
+
attr_accessor :event_name
|
|
25
|
+
|
|
26
|
+
attr_accessor :event_time
|
|
27
|
+
|
|
28
|
+
attr_accessor :action_source
|
|
29
|
+
|
|
30
|
+
attr_accessor :event_class
|
|
31
|
+
|
|
32
|
+
attr_accessor :order_id
|
|
33
|
+
|
|
34
|
+
attr_accessor :value_amount
|
|
35
|
+
|
|
36
|
+
attr_accessor :value_currency
|
|
37
|
+
|
|
38
|
+
attr_accessor :created_at
|
|
39
|
+
|
|
40
|
+
attr_accessor :consent_basis
|
|
41
|
+
|
|
42
|
+
attr_accessor :measurement_class
|
|
43
|
+
|
|
44
|
+
attr_accessor :attribution_join
|
|
45
|
+
|
|
46
|
+
attr_accessor :enforcement_scope
|
|
47
|
+
|
|
48
|
+
attr_accessor :consent_normalization_version
|
|
49
|
+
|
|
50
|
+
attr_accessor :consent
|
|
51
|
+
|
|
52
|
+
attr_accessor :user_data_hashed
|
|
53
|
+
|
|
54
|
+
attr_accessor :click_ids
|
|
55
|
+
|
|
56
|
+
attr_accessor :session
|
|
57
|
+
|
|
58
|
+
attr_accessor :value_data
|
|
59
|
+
|
|
60
|
+
attr_accessor :event_source
|
|
61
|
+
|
|
62
|
+
attr_accessor :payload_expired
|
|
63
|
+
|
|
64
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
65
|
+
def self.attribute_map
|
|
66
|
+
{
|
|
67
|
+
:'id' => :'id',
|
|
68
|
+
:'signal_tracker_id' => :'signal_tracker_id',
|
|
69
|
+
:'parent_event_id' => :'parent_event_id',
|
|
70
|
+
:'event_name' => :'event_name',
|
|
71
|
+
:'event_time' => :'event_time',
|
|
72
|
+
:'action_source' => :'action_source',
|
|
73
|
+
:'event_class' => :'event_class',
|
|
74
|
+
:'order_id' => :'order_id',
|
|
75
|
+
:'value_amount' => :'value_amount',
|
|
76
|
+
:'value_currency' => :'value_currency',
|
|
77
|
+
:'created_at' => :'created_at',
|
|
78
|
+
:'consent_basis' => :'consent_basis',
|
|
79
|
+
:'measurement_class' => :'measurement_class',
|
|
80
|
+
:'attribution_join' => :'attribution_join',
|
|
81
|
+
:'enforcement_scope' => :'enforcement_scope',
|
|
82
|
+
:'consent_normalization_version' => :'consent_normalization_version',
|
|
83
|
+
:'consent' => :'consent',
|
|
84
|
+
:'user_data_hashed' => :'user_data_hashed',
|
|
85
|
+
:'click_ids' => :'click_ids',
|
|
86
|
+
:'session' => :'session',
|
|
87
|
+
:'value_data' => :'value_data',
|
|
88
|
+
:'event_source' => :'event_source',
|
|
89
|
+
:'payload_expired' => :'payload_expired'
|
|
90
|
+
}
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Returns attribute mapping this model knows about
|
|
94
|
+
def self.acceptable_attribute_map
|
|
95
|
+
attribute_map
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Returns all the JSON keys this model knows about
|
|
99
|
+
def self.acceptable_attributes
|
|
100
|
+
acceptable_attribute_map.values
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Attribute type mapping.
|
|
104
|
+
def self.openapi_types
|
|
105
|
+
{
|
|
106
|
+
:'id' => :'String',
|
|
107
|
+
:'signal_tracker_id' => :'String',
|
|
108
|
+
:'parent_event_id' => :'String',
|
|
109
|
+
:'event_name' => :'String',
|
|
110
|
+
:'event_time' => :'String',
|
|
111
|
+
:'action_source' => :'String',
|
|
112
|
+
:'event_class' => :'String',
|
|
113
|
+
:'order_id' => :'String',
|
|
114
|
+
:'value_amount' => :'Integer',
|
|
115
|
+
:'value_currency' => :'String',
|
|
116
|
+
:'created_at' => :'String',
|
|
117
|
+
:'consent_basis' => :'String',
|
|
118
|
+
:'measurement_class' => :'String',
|
|
119
|
+
:'attribution_join' => :'String',
|
|
120
|
+
:'enforcement_scope' => :'String',
|
|
121
|
+
:'consent_normalization_version' => :'String',
|
|
122
|
+
:'consent' => :'GetEvent200ResponseEventConsent',
|
|
123
|
+
:'user_data_hashed' => :'GetEvent200ResponseEventConsent',
|
|
124
|
+
:'click_ids' => :'GetEvent200ResponseEventConsent',
|
|
125
|
+
:'session' => :'GetEvent200ResponseEventConsent',
|
|
126
|
+
:'value_data' => :'GetEvent200ResponseEventConsent',
|
|
127
|
+
:'event_source' => :'String',
|
|
128
|
+
:'payload_expired' => :'Boolean'
|
|
129
|
+
}
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# List of attributes with nullable: true
|
|
133
|
+
def self.openapi_nullable
|
|
134
|
+
Set.new([
|
|
135
|
+
:'parent_event_id',
|
|
136
|
+
:'order_id',
|
|
137
|
+
:'value_amount',
|
|
138
|
+
:'value_currency',
|
|
139
|
+
:'consent',
|
|
140
|
+
:'user_data_hashed',
|
|
141
|
+
:'click_ids',
|
|
142
|
+
:'session',
|
|
143
|
+
:'value_data',
|
|
144
|
+
:'event_source',
|
|
145
|
+
])
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Initializes the object
|
|
149
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
150
|
+
def initialize(attributes = {})
|
|
151
|
+
if (!attributes.is_a?(Hash))
|
|
152
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::GetEvent200ResponseLineageParent` initialize method"
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
156
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
157
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
158
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
159
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PlainRouter::OpenAPI::GetEvent200ResponseLineageParent`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
160
|
+
end
|
|
161
|
+
h[k.to_sym] = v
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
if attributes.key?(:'id')
|
|
165
|
+
self.id = attributes[:'id']
|
|
166
|
+
else
|
|
167
|
+
self.id = nil
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
if attributes.key?(:'signal_tracker_id')
|
|
171
|
+
self.signal_tracker_id = attributes[:'signal_tracker_id']
|
|
172
|
+
else
|
|
173
|
+
self.signal_tracker_id = nil
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
if attributes.key?(:'parent_event_id')
|
|
177
|
+
self.parent_event_id = attributes[:'parent_event_id']
|
|
178
|
+
else
|
|
179
|
+
self.parent_event_id = nil
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
if attributes.key?(:'event_name')
|
|
183
|
+
self.event_name = attributes[:'event_name']
|
|
184
|
+
else
|
|
185
|
+
self.event_name = nil
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
if attributes.key?(:'event_time')
|
|
189
|
+
self.event_time = attributes[:'event_time']
|
|
190
|
+
else
|
|
191
|
+
self.event_time = nil
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
if attributes.key?(:'action_source')
|
|
195
|
+
self.action_source = attributes[:'action_source']
|
|
196
|
+
else
|
|
197
|
+
self.action_source = nil
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
if attributes.key?(:'event_class')
|
|
201
|
+
self.event_class = attributes[:'event_class']
|
|
202
|
+
else
|
|
203
|
+
self.event_class = nil
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
if attributes.key?(:'order_id')
|
|
207
|
+
self.order_id = attributes[:'order_id']
|
|
208
|
+
else
|
|
209
|
+
self.order_id = nil
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if attributes.key?(:'value_amount')
|
|
213
|
+
self.value_amount = attributes[:'value_amount']
|
|
214
|
+
else
|
|
215
|
+
self.value_amount = nil
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
if attributes.key?(:'value_currency')
|
|
219
|
+
self.value_currency = attributes[:'value_currency']
|
|
220
|
+
else
|
|
221
|
+
self.value_currency = nil
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
if attributes.key?(:'created_at')
|
|
225
|
+
self.created_at = attributes[:'created_at']
|
|
226
|
+
else
|
|
227
|
+
self.created_at = nil
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
if attributes.key?(:'consent_basis')
|
|
231
|
+
self.consent_basis = attributes[:'consent_basis']
|
|
232
|
+
else
|
|
233
|
+
self.consent_basis = nil
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
if attributes.key?(:'measurement_class')
|
|
237
|
+
self.measurement_class = attributes[:'measurement_class']
|
|
238
|
+
else
|
|
239
|
+
self.measurement_class = nil
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
if attributes.key?(:'attribution_join')
|
|
243
|
+
self.attribution_join = attributes[:'attribution_join']
|
|
244
|
+
else
|
|
245
|
+
self.attribution_join = nil
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
if attributes.key?(:'enforcement_scope')
|
|
249
|
+
self.enforcement_scope = attributes[:'enforcement_scope']
|
|
250
|
+
else
|
|
251
|
+
self.enforcement_scope = nil
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
if attributes.key?(:'consent_normalization_version')
|
|
255
|
+
self.consent_normalization_version = attributes[:'consent_normalization_version']
|
|
256
|
+
else
|
|
257
|
+
self.consent_normalization_version = nil
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
if attributes.key?(:'consent')
|
|
261
|
+
self.consent = attributes[:'consent']
|
|
262
|
+
else
|
|
263
|
+
self.consent = nil
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
if attributes.key?(:'user_data_hashed')
|
|
267
|
+
self.user_data_hashed = attributes[:'user_data_hashed']
|
|
268
|
+
else
|
|
269
|
+
self.user_data_hashed = nil
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
if attributes.key?(:'click_ids')
|
|
273
|
+
self.click_ids = attributes[:'click_ids']
|
|
274
|
+
else
|
|
275
|
+
self.click_ids = nil
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
if attributes.key?(:'session')
|
|
279
|
+
self.session = attributes[:'session']
|
|
280
|
+
else
|
|
281
|
+
self.session = nil
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
if attributes.key?(:'value_data')
|
|
285
|
+
self.value_data = attributes[:'value_data']
|
|
286
|
+
else
|
|
287
|
+
self.value_data = nil
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
if attributes.key?(:'event_source')
|
|
291
|
+
self.event_source = attributes[:'event_source']
|
|
292
|
+
else
|
|
293
|
+
self.event_source = nil
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
if attributes.key?(:'payload_expired')
|
|
297
|
+
self.payload_expired = attributes[:'payload_expired']
|
|
298
|
+
else
|
|
299
|
+
self.payload_expired = nil
|
|
300
|
+
end
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
304
|
+
# @return Array for valid properties with the reasons
|
|
305
|
+
def list_invalid_properties
|
|
306
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
307
|
+
invalid_properties = Array.new
|
|
308
|
+
if @id.nil?
|
|
309
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
if @signal_tracker_id.nil?
|
|
313
|
+
invalid_properties.push('invalid value for "signal_tracker_id", signal_tracker_id cannot be nil.')
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
if @event_name.nil?
|
|
317
|
+
invalid_properties.push('invalid value for "event_name", event_name cannot be nil.')
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
if @event_time.nil?
|
|
321
|
+
invalid_properties.push('invalid value for "event_time", event_time cannot be nil.')
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
if @action_source.nil?
|
|
325
|
+
invalid_properties.push('invalid value for "action_source", action_source cannot be nil.')
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
if @event_class.nil?
|
|
329
|
+
invalid_properties.push('invalid value for "event_class", event_class cannot be nil.')
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
if @created_at.nil?
|
|
333
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
if @consent_basis.nil?
|
|
337
|
+
invalid_properties.push('invalid value for "consent_basis", consent_basis cannot be nil.')
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
if @measurement_class.nil?
|
|
341
|
+
invalid_properties.push('invalid value for "measurement_class", measurement_class cannot be nil.')
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
if @attribution_join.nil?
|
|
345
|
+
invalid_properties.push('invalid value for "attribution_join", attribution_join cannot be nil.')
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
if @enforcement_scope.nil?
|
|
349
|
+
invalid_properties.push('invalid value for "enforcement_scope", enforcement_scope cannot be nil.')
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
if @consent_normalization_version.nil?
|
|
353
|
+
invalid_properties.push('invalid value for "consent_normalization_version", consent_normalization_version cannot be nil.')
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
if @payload_expired.nil?
|
|
357
|
+
invalid_properties.push('invalid value for "payload_expired", payload_expired cannot be nil.')
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
invalid_properties
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
# Check to see if the all the properties in the model are valid
|
|
364
|
+
# @return true if the model is valid
|
|
365
|
+
def valid?
|
|
366
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
367
|
+
return false if @id.nil?
|
|
368
|
+
return false if @signal_tracker_id.nil?
|
|
369
|
+
return false if @event_name.nil?
|
|
370
|
+
return false if @event_time.nil?
|
|
371
|
+
return false if @action_source.nil?
|
|
372
|
+
return false if @event_class.nil?
|
|
373
|
+
return false if @created_at.nil?
|
|
374
|
+
return false if @consent_basis.nil?
|
|
375
|
+
return false if @measurement_class.nil?
|
|
376
|
+
return false if @attribution_join.nil?
|
|
377
|
+
return false if @enforcement_scope.nil?
|
|
378
|
+
return false if @consent_normalization_version.nil?
|
|
379
|
+
return false if @payload_expired.nil?
|
|
380
|
+
true
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
# Custom attribute writer method with validation
|
|
384
|
+
# @param [Object] id Value to be assigned
|
|
385
|
+
def id=(id)
|
|
386
|
+
if id.nil?
|
|
387
|
+
fail ArgumentError, 'id cannot be nil'
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
@id = id
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
# Custom attribute writer method with validation
|
|
394
|
+
# @param [Object] signal_tracker_id Value to be assigned
|
|
395
|
+
def signal_tracker_id=(signal_tracker_id)
|
|
396
|
+
if signal_tracker_id.nil?
|
|
397
|
+
fail ArgumentError, 'signal_tracker_id cannot be nil'
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
@signal_tracker_id = signal_tracker_id
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
# Custom attribute writer method with validation
|
|
404
|
+
# @param [Object] event_name Value to be assigned
|
|
405
|
+
def event_name=(event_name)
|
|
406
|
+
if event_name.nil?
|
|
407
|
+
fail ArgumentError, 'event_name cannot be nil'
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
@event_name = event_name
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
# Custom attribute writer method with validation
|
|
414
|
+
# @param [Object] event_time Value to be assigned
|
|
415
|
+
def event_time=(event_time)
|
|
416
|
+
if event_time.nil?
|
|
417
|
+
fail ArgumentError, 'event_time cannot be nil'
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
@event_time = event_time
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
# Custom attribute writer method with validation
|
|
424
|
+
# @param [Object] action_source Value to be assigned
|
|
425
|
+
def action_source=(action_source)
|
|
426
|
+
if action_source.nil?
|
|
427
|
+
fail ArgumentError, 'action_source cannot be nil'
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
@action_source = action_source
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
# Custom attribute writer method with validation
|
|
434
|
+
# @param [Object] event_class Value to be assigned
|
|
435
|
+
def event_class=(event_class)
|
|
436
|
+
if event_class.nil?
|
|
437
|
+
fail ArgumentError, 'event_class cannot be nil'
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
@event_class = event_class
|
|
441
|
+
end
|
|
442
|
+
|
|
443
|
+
# Custom attribute writer method with validation
|
|
444
|
+
# @param [Object] created_at Value to be assigned
|
|
445
|
+
def created_at=(created_at)
|
|
446
|
+
if created_at.nil?
|
|
447
|
+
fail ArgumentError, 'created_at cannot be nil'
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
@created_at = created_at
|
|
451
|
+
end
|
|
452
|
+
|
|
453
|
+
# Custom attribute writer method with validation
|
|
454
|
+
# @param [Object] consent_basis Value to be assigned
|
|
455
|
+
def consent_basis=(consent_basis)
|
|
456
|
+
if consent_basis.nil?
|
|
457
|
+
fail ArgumentError, 'consent_basis cannot be nil'
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
@consent_basis = consent_basis
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
# Custom attribute writer method with validation
|
|
464
|
+
# @param [Object] measurement_class Value to be assigned
|
|
465
|
+
def measurement_class=(measurement_class)
|
|
466
|
+
if measurement_class.nil?
|
|
467
|
+
fail ArgumentError, 'measurement_class cannot be nil'
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
@measurement_class = measurement_class
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
# Custom attribute writer method with validation
|
|
474
|
+
# @param [Object] attribution_join Value to be assigned
|
|
475
|
+
def attribution_join=(attribution_join)
|
|
476
|
+
if attribution_join.nil?
|
|
477
|
+
fail ArgumentError, 'attribution_join cannot be nil'
|
|
478
|
+
end
|
|
479
|
+
|
|
480
|
+
@attribution_join = attribution_join
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
# Custom attribute writer method with validation
|
|
484
|
+
# @param [Object] enforcement_scope Value to be assigned
|
|
485
|
+
def enforcement_scope=(enforcement_scope)
|
|
486
|
+
if enforcement_scope.nil?
|
|
487
|
+
fail ArgumentError, 'enforcement_scope cannot be nil'
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
@enforcement_scope = enforcement_scope
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
# Custom attribute writer method with validation
|
|
494
|
+
# @param [Object] consent_normalization_version Value to be assigned
|
|
495
|
+
def consent_normalization_version=(consent_normalization_version)
|
|
496
|
+
if consent_normalization_version.nil?
|
|
497
|
+
fail ArgumentError, 'consent_normalization_version cannot be nil'
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
@consent_normalization_version = consent_normalization_version
|
|
501
|
+
end
|
|
502
|
+
|
|
503
|
+
# Custom attribute writer method with validation
|
|
504
|
+
# @param [Object] payload_expired Value to be assigned
|
|
505
|
+
def payload_expired=(payload_expired)
|
|
506
|
+
if payload_expired.nil?
|
|
507
|
+
fail ArgumentError, 'payload_expired cannot be nil'
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
@payload_expired = payload_expired
|
|
511
|
+
end
|
|
512
|
+
|
|
513
|
+
# Checks equality by comparing each attribute.
|
|
514
|
+
# @param [Object] Object to be compared
|
|
515
|
+
def ==(o)
|
|
516
|
+
return true if self.equal?(o)
|
|
517
|
+
self.class == o.class &&
|
|
518
|
+
id == o.id &&
|
|
519
|
+
signal_tracker_id == o.signal_tracker_id &&
|
|
520
|
+
parent_event_id == o.parent_event_id &&
|
|
521
|
+
event_name == o.event_name &&
|
|
522
|
+
event_time == o.event_time &&
|
|
523
|
+
action_source == o.action_source &&
|
|
524
|
+
event_class == o.event_class &&
|
|
525
|
+
order_id == o.order_id &&
|
|
526
|
+
value_amount == o.value_amount &&
|
|
527
|
+
value_currency == o.value_currency &&
|
|
528
|
+
created_at == o.created_at &&
|
|
529
|
+
consent_basis == o.consent_basis &&
|
|
530
|
+
measurement_class == o.measurement_class &&
|
|
531
|
+
attribution_join == o.attribution_join &&
|
|
532
|
+
enforcement_scope == o.enforcement_scope &&
|
|
533
|
+
consent_normalization_version == o.consent_normalization_version &&
|
|
534
|
+
consent == o.consent &&
|
|
535
|
+
user_data_hashed == o.user_data_hashed &&
|
|
536
|
+
click_ids == o.click_ids &&
|
|
537
|
+
session == o.session &&
|
|
538
|
+
value_data == o.value_data &&
|
|
539
|
+
event_source == o.event_source &&
|
|
540
|
+
payload_expired == o.payload_expired
|
|
541
|
+
end
|
|
542
|
+
|
|
543
|
+
# @see the `==` method
|
|
544
|
+
# @param [Object] Object to be compared
|
|
545
|
+
def eql?(o)
|
|
546
|
+
self == o
|
|
547
|
+
end
|
|
548
|
+
|
|
549
|
+
# Calculates hash code according to all attributes.
|
|
550
|
+
# @return [Integer] Hash code
|
|
551
|
+
def hash
|
|
552
|
+
[id, signal_tracker_id, parent_event_id, event_name, event_time, action_source, event_class, order_id, value_amount, value_currency, created_at, consent_basis, measurement_class, attribution_join, enforcement_scope, consent_normalization_version, consent, user_data_hashed, click_ids, session, value_data, event_source, payload_expired].hash
|
|
553
|
+
end
|
|
554
|
+
|
|
555
|
+
# Builds the object from hash
|
|
556
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
557
|
+
# @return [Object] Returns the model itself
|
|
558
|
+
def self.build_from_hash(attributes)
|
|
559
|
+
return nil unless attributes.is_a?(Hash)
|
|
560
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
561
|
+
transformed_hash = {}
|
|
562
|
+
openapi_types.each_pair do |key, type|
|
|
563
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
564
|
+
transformed_hash["#{key}"] = nil
|
|
565
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
566
|
+
# check to ensure the input is an array given that the attribute
|
|
567
|
+
# is documented as an array but the input is not
|
|
568
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
569
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
570
|
+
end
|
|
571
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
572
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
573
|
+
end
|
|
574
|
+
end
|
|
575
|
+
new(transformed_hash)
|
|
576
|
+
end
|
|
577
|
+
|
|
578
|
+
# Returns the object in the form of hash
|
|
579
|
+
# @return [Hash] Returns the object in the form of hash
|
|
580
|
+
def to_hash
|
|
581
|
+
hash = {}
|
|
582
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
583
|
+
value = self.send(attr)
|
|
584
|
+
if value.nil?
|
|
585
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
586
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
587
|
+
end
|
|
588
|
+
|
|
589
|
+
hash[param] = _to_hash(value)
|
|
590
|
+
end
|
|
591
|
+
hash
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
end
|
|
595
|
+
|
|
596
|
+
end
|