late-sdk 0.0.1372 → 0.0.1373
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 +4 -4
- data/README.md +1 -0
- data/docs/OnWhatsAppNumberActivatedRequest.md +2 -0
- data/docs/OnWhatsAppNumberDeclinedRequest.md +2 -0
- data/docs/OnWhatsAppNumberReactivatedRequest.md +2 -0
- data/docs/OnWhatsAppNumberSuspendedRequest.md +2 -0
- data/docs/WebhookPayloadAccountAdsInitialSyncCompleted.md +2 -0
- data/docs/WebhookPayloadAccountAdsSyncFailed.md +2 -0
- data/docs/WebhookPayloadAccountAdsSyncRecovered.md +2 -0
- data/docs/WebhookPayloadAccountConnected.md +2 -0
- data/docs/WebhookPayloadAccountDisconnected.md +2 -0
- data/docs/WebhookPayloadAdStatusChanged.md +2 -0
- data/docs/WebhookPayloadAdVideoProcessed.md +2 -0
- data/docs/WebhookPayloadAnalyticsSynced.md +2 -0
- data/docs/WebhookPayloadCallEnded.md +2 -0
- data/docs/WebhookPayloadCallFailed.md +2 -0
- data/docs/WebhookPayloadCallPermissionRequest.md +2 -0
- data/docs/WebhookPayloadCallReceived.md +2 -0
- data/docs/WebhookPayloadComment.md +2 -0
- data/docs/WebhookPayloadContactFieldChanged.md +2 -0
- data/docs/WebhookPayloadContactTag.md +2 -0
- data/docs/WebhookPayloadConversationControlChanged.md +2 -0
- data/docs/WebhookPayloadConversationStarted.md +2 -0
- data/docs/WebhookPayloadExternalPost.md +2 -0
- data/docs/WebhookPayloadLead.md +2 -0
- data/docs/WebhookPayloadMessage.md +2 -0
- data/docs/WebhookPayloadMessageDeleted.md +2 -0
- data/docs/WebhookPayloadMessageDeliveryStatus.md +2 -0
- data/docs/WebhookPayloadMessageEdited.md +2 -0
- data/docs/WebhookPayloadMessageSent.md +2 -0
- data/docs/WebhookPayloadPost.md +2 -0
- data/docs/WebhookPayloadPostPlatform.md +2 -0
- data/docs/WebhookPayloadReaction.md +2 -0
- data/docs/WebhookPayloadReferral.md +2 -0
- data/docs/WebhookPayloadReviewNew.md +2 -0
- data/docs/WebhookPayloadReviewUpdated.md +2 -0
- data/docs/WebhookPayloadSequenceEnrollment.md +2 -0
- data/docs/WebhookPayloadWhatsAppAccountAlertReceived.md +2 -0
- data/docs/WebhookPayloadWhatsAppAccountNameStatusUpdated.md +2 -0
- data/docs/WebhookPayloadWhatsAppAccountQualityUpdated.md +2 -0
- data/docs/WebhookPayloadWhatsAppAccountStatusUpdated.md +2 -0
- data/docs/WebhookPayloadWhatsAppContactIdentityChanged.md +2 -0
- data/docs/WebhookPayloadWhatsAppTemplateCategoryUpdated.md +2 -0
- data/docs/WebhookPayloadWhatsAppTemplateStatusUpdated.md +2 -0
- data/docs/WebhookPayloadWorkflowRun.md +2 -0
- data/docs/WebhookProfilesInner.md +20 -0
- data/lib/zernio-sdk/models/on_whats_app_number_activated_request.rb +13 -1
- data/lib/zernio-sdk/models/on_whats_app_number_declined_request.rb +13 -1
- data/lib/zernio-sdk/models/on_whats_app_number_reactivated_request.rb +13 -1
- data/lib/zernio-sdk/models/on_whats_app_number_suspended_request.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_account_ads_initial_sync_completed.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_account_ads_sync_failed.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_account_ads_sync_recovered.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_account_connected.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_account_disconnected.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_ad_status_changed.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_ad_video_processed.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_analytics_synced.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_call_ended.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_call_failed.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_call_permission_request.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_call_received.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_comment.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_contact_field_changed.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_contact_tag.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_conversation_control_changed.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_conversation_started.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_external_post.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_lead.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_message.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_message_deleted.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_message_delivery_status.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_message_edited.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_message_sent.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_post.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_post_platform.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_reaction.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_referral.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_review_new.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_review_updated.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_sequence_enrollment.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_whats_app_account_alert_received.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_whats_app_account_name_status_updated.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_whats_app_account_quality_updated.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_whats_app_account_status_updated.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_whats_app_contact_identity_changed.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_whats_app_template_category_updated.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_whats_app_template_status_updated.rb +13 -1
- data/lib/zernio-sdk/models/webhook_payload_workflow_run.rb +13 -1
- data/lib/zernio-sdk/models/webhook_profiles_inner.rb +176 -0
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +1 -0
- data/openapi.yaml +1 -1
- data/spec/models/on_whats_app_number_activated_request_spec.rb +6 -0
- data/spec/models/on_whats_app_number_declined_request_spec.rb +6 -0
- data/spec/models/on_whats_app_number_reactivated_request_spec.rb +6 -0
- data/spec/models/on_whats_app_number_suspended_request_spec.rb +6 -0
- data/spec/models/webhook_payload_account_ads_initial_sync_completed_spec.rb +6 -0
- data/spec/models/webhook_payload_account_ads_sync_failed_spec.rb +6 -0
- data/spec/models/webhook_payload_account_ads_sync_recovered_spec.rb +6 -0
- data/spec/models/webhook_payload_account_connected_spec.rb +6 -0
- data/spec/models/webhook_payload_account_disconnected_spec.rb +6 -0
- data/spec/models/webhook_payload_ad_status_changed_spec.rb +6 -0
- data/spec/models/webhook_payload_ad_video_processed_spec.rb +6 -0
- data/spec/models/webhook_payload_analytics_synced_spec.rb +6 -0
- data/spec/models/webhook_payload_call_ended_spec.rb +6 -0
- data/spec/models/webhook_payload_call_failed_spec.rb +6 -0
- data/spec/models/webhook_payload_call_permission_request_spec.rb +6 -0
- data/spec/models/webhook_payload_call_received_spec.rb +6 -0
- data/spec/models/webhook_payload_comment_spec.rb +6 -0
- data/spec/models/webhook_payload_contact_field_changed_spec.rb +6 -0
- data/spec/models/webhook_payload_contact_tag_spec.rb +6 -0
- data/spec/models/webhook_payload_conversation_control_changed_spec.rb +6 -0
- data/spec/models/webhook_payload_conversation_started_spec.rb +6 -0
- data/spec/models/webhook_payload_external_post_spec.rb +6 -0
- data/spec/models/webhook_payload_lead_spec.rb +6 -0
- data/spec/models/webhook_payload_message_deleted_spec.rb +6 -0
- data/spec/models/webhook_payload_message_delivery_status_spec.rb +6 -0
- data/spec/models/webhook_payload_message_edited_spec.rb +6 -0
- data/spec/models/webhook_payload_message_sent_spec.rb +6 -0
- data/spec/models/webhook_payload_message_spec.rb +6 -0
- data/spec/models/webhook_payload_post_platform_spec.rb +6 -0
- data/spec/models/webhook_payload_post_spec.rb +6 -0
- data/spec/models/webhook_payload_reaction_spec.rb +6 -0
- data/spec/models/webhook_payload_referral_spec.rb +6 -0
- data/spec/models/webhook_payload_review_new_spec.rb +6 -0
- data/spec/models/webhook_payload_review_updated_spec.rb +6 -0
- data/spec/models/webhook_payload_sequence_enrollment_spec.rb +6 -0
- data/spec/models/webhook_payload_whats_app_account_alert_received_spec.rb +6 -0
- data/spec/models/webhook_payload_whats_app_account_name_status_updated_spec.rb +6 -0
- data/spec/models/webhook_payload_whats_app_account_quality_updated_spec.rb +6 -0
- data/spec/models/webhook_payload_whats_app_account_status_updated_spec.rb +6 -0
- data/spec/models/webhook_payload_whats_app_contact_identity_changed_spec.rb +6 -0
- data/spec/models/webhook_payload_whats_app_template_category_updated_spec.rb +6 -0
- data/spec/models/webhook_payload_whats_app_template_status_updated_spec.rb +6 -0
- data/spec/models/webhook_payload_workflow_run_spec.rb +6 -0
- data/spec/models/webhook_profiles_inner_spec.rb +42 -0
- data/zernio-sdk-0.0.1373.gem +0 -0
- metadata +6 -2
- data/zernio-sdk-0.0.1372.gem +0 -0
|
@@ -19,6 +19,9 @@ module Zernio
|
|
|
19
19
|
# Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
20
20
|
attr_accessor :id
|
|
21
21
|
|
|
22
|
+
# The profiles this event belongs to, each with the externalId you set on it (null when none is set). Present on every event tied to a profile and absent on events that belong to none. Events spanning several profiles (a post published to accounts of different profiles) list each once. Use it to route the event to your tenant without storing Zernio profile ids.
|
|
23
|
+
attr_accessor :profiles
|
|
24
|
+
|
|
22
25
|
# Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
23
26
|
attr_accessor :test
|
|
24
27
|
|
|
@@ -55,6 +58,7 @@ module Zernio
|
|
|
55
58
|
def self.attribute_map
|
|
56
59
|
{
|
|
57
60
|
:'id' => :'id',
|
|
61
|
+
:'profiles' => :'profiles',
|
|
58
62
|
:'test' => :'test',
|
|
59
63
|
:'event' => :'event',
|
|
60
64
|
:'account' => :'account',
|
|
@@ -76,6 +80,7 @@ module Zernio
|
|
|
76
80
|
def self.openapi_types
|
|
77
81
|
{
|
|
78
82
|
:'id' => :'String',
|
|
83
|
+
:'profiles' => :'Array<WebhookProfilesInner>',
|
|
79
84
|
:'test' => :'Boolean',
|
|
80
85
|
:'event' => :'String',
|
|
81
86
|
:'account' => :'WebhookPayloadAccountDisconnectedAccount',
|
|
@@ -111,6 +116,12 @@ module Zernio
|
|
|
111
116
|
self.id = nil
|
|
112
117
|
end
|
|
113
118
|
|
|
119
|
+
if attributes.key?(:'profiles')
|
|
120
|
+
if (value = attributes[:'profiles']).is_a?(Array)
|
|
121
|
+
self.profiles = value
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
|
|
114
125
|
if attributes.key?(:'test')
|
|
115
126
|
self.test = attributes[:'test']
|
|
116
127
|
end
|
|
@@ -217,6 +228,7 @@ module Zernio
|
|
|
217
228
|
return true if self.equal?(o)
|
|
218
229
|
self.class == o.class &&
|
|
219
230
|
id == o.id &&
|
|
231
|
+
profiles == o.profiles &&
|
|
220
232
|
test == o.test &&
|
|
221
233
|
event == o.event &&
|
|
222
234
|
account == o.account &&
|
|
@@ -232,7 +244,7 @@ module Zernio
|
|
|
232
244
|
# Calculates hash code according to all attributes.
|
|
233
245
|
# @return [Integer] Hash code
|
|
234
246
|
def hash
|
|
235
|
-
[id, test, event, account, timestamp].hash
|
|
247
|
+
[id, profiles, test, event, account, timestamp].hash
|
|
236
248
|
end
|
|
237
249
|
|
|
238
250
|
# Builds the object from hash
|
|
@@ -19,6 +19,9 @@ module Zernio
|
|
|
19
19
|
# Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
20
20
|
attr_accessor :id
|
|
21
21
|
|
|
22
|
+
# The profiles this event belongs to, each with the externalId you set on it (null when none is set). Present on every event tied to a profile and absent on events that belong to none. Events spanning several profiles (a post published to accounts of different profiles) list each once. Use it to route the event to your tenant without storing Zernio profile ids.
|
|
23
|
+
attr_accessor :profiles
|
|
24
|
+
|
|
22
25
|
# Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
23
26
|
attr_accessor :test
|
|
24
27
|
|
|
@@ -61,6 +64,7 @@ module Zernio
|
|
|
61
64
|
def self.attribute_map
|
|
62
65
|
{
|
|
63
66
|
:'id' => :'id',
|
|
67
|
+
:'profiles' => :'profiles',
|
|
64
68
|
:'test' => :'test',
|
|
65
69
|
:'event' => :'event',
|
|
66
70
|
:'account' => :'account',
|
|
@@ -85,6 +89,7 @@ module Zernio
|
|
|
85
89
|
def self.openapi_types
|
|
86
90
|
{
|
|
87
91
|
:'id' => :'String',
|
|
92
|
+
:'profiles' => :'Array<WebhookProfilesInner>',
|
|
88
93
|
:'test' => :'Boolean',
|
|
89
94
|
:'event' => :'String',
|
|
90
95
|
:'account' => :'WebhookPayloadAdStatusChangedAccount',
|
|
@@ -123,6 +128,12 @@ module Zernio
|
|
|
123
128
|
self.id = nil
|
|
124
129
|
end
|
|
125
130
|
|
|
131
|
+
if attributes.key?(:'profiles')
|
|
132
|
+
if (value = attributes[:'profiles']).is_a?(Array)
|
|
133
|
+
self.profiles = value
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
126
137
|
if attributes.key?(:'test')
|
|
127
138
|
self.test = attributes[:'test']
|
|
128
139
|
end
|
|
@@ -275,6 +286,7 @@ module Zernio
|
|
|
275
286
|
return true if self.equal?(o)
|
|
276
287
|
self.class == o.class &&
|
|
277
288
|
id == o.id &&
|
|
289
|
+
profiles == o.profiles &&
|
|
278
290
|
test == o.test &&
|
|
279
291
|
event == o.event &&
|
|
280
292
|
account == o.account &&
|
|
@@ -293,7 +305,7 @@ module Zernio
|
|
|
293
305
|
# Calculates hash code according to all attributes.
|
|
294
306
|
# @return [Integer] Hash code
|
|
295
307
|
def hash
|
|
296
|
-
[id, test, event, account, ad_object, status, error, timestamp].hash
|
|
308
|
+
[id, profiles, test, event, account, ad_object, status, error, timestamp].hash
|
|
297
309
|
end
|
|
298
310
|
|
|
299
311
|
# Builds the object from hash
|
|
@@ -19,6 +19,9 @@ module Zernio
|
|
|
19
19
|
# Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery.
|
|
20
20
|
attr_accessor :id
|
|
21
21
|
|
|
22
|
+
# The profiles this event belongs to, each with the externalId you set on it (null when none is set). Present on every event tied to a profile and absent on events that belong to none. Events spanning several profiles (a post published to accounts of different profiles) list each once. Use it to route the event to your tenant without storing Zernio profile ids.
|
|
23
|
+
attr_accessor :profiles
|
|
24
|
+
|
|
22
25
|
# Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
23
26
|
attr_accessor :test
|
|
24
27
|
|
|
@@ -57,6 +60,7 @@ module Zernio
|
|
|
57
60
|
def self.attribute_map
|
|
58
61
|
{
|
|
59
62
|
:'id' => :'id',
|
|
63
|
+
:'profiles' => :'profiles',
|
|
60
64
|
:'test' => :'test',
|
|
61
65
|
:'event' => :'event',
|
|
62
66
|
:'account' => :'account',
|
|
@@ -79,6 +83,7 @@ module Zernio
|
|
|
79
83
|
def self.openapi_types
|
|
80
84
|
{
|
|
81
85
|
:'id' => :'String',
|
|
86
|
+
:'profiles' => :'Array<WebhookProfilesInner>',
|
|
82
87
|
:'test' => :'Boolean',
|
|
83
88
|
:'event' => :'String',
|
|
84
89
|
:'account' => :'WebhookPayloadAdVideoProcessedAccount',
|
|
@@ -115,6 +120,12 @@ module Zernio
|
|
|
115
120
|
self.id = nil
|
|
116
121
|
end
|
|
117
122
|
|
|
123
|
+
if attributes.key?(:'profiles')
|
|
124
|
+
if (value = attributes[:'profiles']).is_a?(Array)
|
|
125
|
+
self.profiles = value
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
118
129
|
if attributes.key?(:'test')
|
|
119
130
|
self.test = attributes[:'test']
|
|
120
131
|
end
|
|
@@ -242,6 +253,7 @@ module Zernio
|
|
|
242
253
|
return true if self.equal?(o)
|
|
243
254
|
self.class == o.class &&
|
|
244
255
|
id == o.id &&
|
|
256
|
+
profiles == o.profiles &&
|
|
245
257
|
test == o.test &&
|
|
246
258
|
event == o.event &&
|
|
247
259
|
account == o.account &&
|
|
@@ -258,7 +270,7 @@ module Zernio
|
|
|
258
270
|
# Calculates hash code according to all attributes.
|
|
259
271
|
# @return [Integer] Hash code
|
|
260
272
|
def hash
|
|
261
|
-
[id, test, event, account, video, timestamp].hash
|
|
273
|
+
[id, profiles, test, event, account, video, timestamp].hash
|
|
262
274
|
end
|
|
263
275
|
|
|
264
276
|
# Builds the object from hash
|
|
@@ -19,6 +19,9 @@ module Zernio
|
|
|
19
19
|
# Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
20
20
|
attr_accessor :id
|
|
21
21
|
|
|
22
|
+
# The profiles this event belongs to, each with the externalId you set on it (null when none is set). Present on every event tied to a profile and absent on events that belong to none. Events spanning several profiles (a post published to accounts of different profiles) list each once. Use it to route the event to your tenant without storing Zernio profile ids.
|
|
23
|
+
attr_accessor :profiles
|
|
24
|
+
|
|
22
25
|
# Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
23
26
|
attr_accessor :test
|
|
24
27
|
|
|
@@ -57,6 +60,7 @@ module Zernio
|
|
|
57
60
|
def self.attribute_map
|
|
58
61
|
{
|
|
59
62
|
:'id' => :'id',
|
|
63
|
+
:'profiles' => :'profiles',
|
|
60
64
|
:'test' => :'test',
|
|
61
65
|
:'event' => :'event',
|
|
62
66
|
:'account' => :'account',
|
|
@@ -79,6 +83,7 @@ module Zernio
|
|
|
79
83
|
def self.openapi_types
|
|
80
84
|
{
|
|
81
85
|
:'id' => :'String',
|
|
86
|
+
:'profiles' => :'Array<WebhookProfilesInner>',
|
|
82
87
|
:'test' => :'Boolean',
|
|
83
88
|
:'event' => :'String',
|
|
84
89
|
:'account' => :'WebhookPayloadAnalyticsSyncedAccount',
|
|
@@ -115,6 +120,12 @@ module Zernio
|
|
|
115
120
|
self.id = nil
|
|
116
121
|
end
|
|
117
122
|
|
|
123
|
+
if attributes.key?(:'profiles')
|
|
124
|
+
if (value = attributes[:'profiles']).is_a?(Array)
|
|
125
|
+
self.profiles = value
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
118
129
|
if attributes.key?(:'test')
|
|
119
130
|
self.test = attributes[:'test']
|
|
120
131
|
end
|
|
@@ -242,6 +253,7 @@ module Zernio
|
|
|
242
253
|
return true if self.equal?(o)
|
|
243
254
|
self.class == o.class &&
|
|
244
255
|
id == o.id &&
|
|
256
|
+
profiles == o.profiles &&
|
|
245
257
|
test == o.test &&
|
|
246
258
|
event == o.event &&
|
|
247
259
|
account == o.account &&
|
|
@@ -258,7 +270,7 @@ module Zernio
|
|
|
258
270
|
# Calculates hash code according to all attributes.
|
|
259
271
|
# @return [Integer] Hash code
|
|
260
272
|
def hash
|
|
261
|
-
[id, test, event, account, sync, timestamp].hash
|
|
273
|
+
[id, profiles, test, event, account, sync, timestamp].hash
|
|
262
274
|
end
|
|
263
275
|
|
|
264
276
|
# Builds the object from hash
|
|
@@ -22,6 +22,9 @@ module Zernio
|
|
|
22
22
|
# Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
23
23
|
attr_accessor :id
|
|
24
24
|
|
|
25
|
+
# The profiles this event belongs to, each with the externalId you set on it (null when none is set). Present on every event tied to a profile and absent on events that belong to none. Events spanning several profiles (a post published to accounts of different profiles) list each once. Use it to route the event to your tenant without storing Zernio profile ids.
|
|
26
|
+
attr_accessor :profiles
|
|
27
|
+
|
|
25
28
|
attr_accessor :event
|
|
26
29
|
|
|
27
30
|
attr_accessor :call
|
|
@@ -58,6 +61,7 @@ module Zernio
|
|
|
58
61
|
{
|
|
59
62
|
:'test' => :'test',
|
|
60
63
|
:'id' => :'id',
|
|
64
|
+
:'profiles' => :'profiles',
|
|
61
65
|
:'event' => :'event',
|
|
62
66
|
:'call' => :'call',
|
|
63
67
|
:'account' => :'account',
|
|
@@ -80,6 +84,7 @@ module Zernio
|
|
|
80
84
|
{
|
|
81
85
|
:'test' => :'Boolean',
|
|
82
86
|
:'id' => :'String',
|
|
87
|
+
:'profiles' => :'Array<WebhookProfilesInner>',
|
|
83
88
|
:'event' => :'String',
|
|
84
89
|
:'call' => :'WebhookPayloadCallEndedCall',
|
|
85
90
|
:'account' => :'InboxWebhookAccount',
|
|
@@ -119,6 +124,12 @@ module Zernio
|
|
|
119
124
|
self.id = nil
|
|
120
125
|
end
|
|
121
126
|
|
|
127
|
+
if attributes.key?(:'profiles')
|
|
128
|
+
if (value = attributes[:'profiles']).is_a?(Array)
|
|
129
|
+
self.profiles = value
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
122
133
|
if attributes.key?(:'event')
|
|
123
134
|
self.event = attributes[:'event']
|
|
124
135
|
else
|
|
@@ -243,6 +254,7 @@ module Zernio
|
|
|
243
254
|
self.class == o.class &&
|
|
244
255
|
test == o.test &&
|
|
245
256
|
id == o.id &&
|
|
257
|
+
profiles == o.profiles &&
|
|
246
258
|
event == o.event &&
|
|
247
259
|
call == o.call &&
|
|
248
260
|
account == o.account &&
|
|
@@ -258,7 +270,7 @@ module Zernio
|
|
|
258
270
|
# Calculates hash code according to all attributes.
|
|
259
271
|
# @return [Integer] Hash code
|
|
260
272
|
def hash
|
|
261
|
-
[test, id, event, call, account, timestamp].hash
|
|
273
|
+
[test, id, profiles, event, call, account, timestamp].hash
|
|
262
274
|
end
|
|
263
275
|
|
|
264
276
|
# Builds the object from hash
|
|
@@ -22,6 +22,9 @@ module Zernio
|
|
|
22
22
|
# Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
23
23
|
attr_accessor :id
|
|
24
24
|
|
|
25
|
+
# The profiles this event belongs to, each with the externalId you set on it (null when none is set). Present on every event tied to a profile and absent on events that belong to none. Events spanning several profiles (a post published to accounts of different profiles) list each once. Use it to route the event to your tenant without storing Zernio profile ids.
|
|
26
|
+
attr_accessor :profiles
|
|
27
|
+
|
|
25
28
|
attr_accessor :event
|
|
26
29
|
|
|
27
30
|
attr_accessor :call
|
|
@@ -58,6 +61,7 @@ module Zernio
|
|
|
58
61
|
{
|
|
59
62
|
:'test' => :'test',
|
|
60
63
|
:'id' => :'id',
|
|
64
|
+
:'profiles' => :'profiles',
|
|
61
65
|
:'event' => :'event',
|
|
62
66
|
:'call' => :'call',
|
|
63
67
|
:'account' => :'account',
|
|
@@ -80,6 +84,7 @@ module Zernio
|
|
|
80
84
|
{
|
|
81
85
|
:'test' => :'Boolean',
|
|
82
86
|
:'id' => :'String',
|
|
87
|
+
:'profiles' => :'Array<WebhookProfilesInner>',
|
|
83
88
|
:'event' => :'String',
|
|
84
89
|
:'call' => :'WebhookPayloadCallFailedCall',
|
|
85
90
|
:'account' => :'InboxWebhookAccount',
|
|
@@ -119,6 +124,12 @@ module Zernio
|
|
|
119
124
|
self.id = nil
|
|
120
125
|
end
|
|
121
126
|
|
|
127
|
+
if attributes.key?(:'profiles')
|
|
128
|
+
if (value = attributes[:'profiles']).is_a?(Array)
|
|
129
|
+
self.profiles = value
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
122
133
|
if attributes.key?(:'event')
|
|
123
134
|
self.event = attributes[:'event']
|
|
124
135
|
else
|
|
@@ -243,6 +254,7 @@ module Zernio
|
|
|
243
254
|
self.class == o.class &&
|
|
244
255
|
test == o.test &&
|
|
245
256
|
id == o.id &&
|
|
257
|
+
profiles == o.profiles &&
|
|
246
258
|
event == o.event &&
|
|
247
259
|
call == o.call &&
|
|
248
260
|
account == o.account &&
|
|
@@ -258,7 +270,7 @@ module Zernio
|
|
|
258
270
|
# Calculates hash code according to all attributes.
|
|
259
271
|
# @return [Integer] Hash code
|
|
260
272
|
def hash
|
|
261
|
-
[test, id, event, call, account, timestamp].hash
|
|
273
|
+
[test, id, profiles, event, call, account, timestamp].hash
|
|
262
274
|
end
|
|
263
275
|
|
|
264
276
|
# Builds the object from hash
|
|
@@ -22,6 +22,9 @@ module Zernio
|
|
|
22
22
|
# Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
23
23
|
attr_accessor :id
|
|
24
24
|
|
|
25
|
+
# The profiles this event belongs to, each with the externalId you set on it (null when none is set). Present on every event tied to a profile and absent on events that belong to none. Events spanning several profiles (a post published to accounts of different profiles) list each once. Use it to route the event to your tenant without storing Zernio profile ids.
|
|
26
|
+
attr_accessor :profiles
|
|
27
|
+
|
|
25
28
|
attr_accessor :event
|
|
26
29
|
|
|
27
30
|
attr_accessor :permission
|
|
@@ -58,6 +61,7 @@ module Zernio
|
|
|
58
61
|
{
|
|
59
62
|
:'test' => :'test',
|
|
60
63
|
:'id' => :'id',
|
|
64
|
+
:'profiles' => :'profiles',
|
|
61
65
|
:'event' => :'event',
|
|
62
66
|
:'permission' => :'permission',
|
|
63
67
|
:'account' => :'account',
|
|
@@ -80,6 +84,7 @@ module Zernio
|
|
|
80
84
|
{
|
|
81
85
|
:'test' => :'Boolean',
|
|
82
86
|
:'id' => :'String',
|
|
87
|
+
:'profiles' => :'Array<WebhookProfilesInner>',
|
|
83
88
|
:'event' => :'String',
|
|
84
89
|
:'permission' => :'WebhookPayloadCallPermissionRequestPermission',
|
|
85
90
|
:'account' => :'InboxWebhookAccount',
|
|
@@ -119,6 +124,12 @@ module Zernio
|
|
|
119
124
|
self.id = nil
|
|
120
125
|
end
|
|
121
126
|
|
|
127
|
+
if attributes.key?(:'profiles')
|
|
128
|
+
if (value = attributes[:'profiles']).is_a?(Array)
|
|
129
|
+
self.profiles = value
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
122
133
|
if attributes.key?(:'event')
|
|
123
134
|
self.event = attributes[:'event']
|
|
124
135
|
else
|
|
@@ -243,6 +254,7 @@ module Zernio
|
|
|
243
254
|
self.class == o.class &&
|
|
244
255
|
test == o.test &&
|
|
245
256
|
id == o.id &&
|
|
257
|
+
profiles == o.profiles &&
|
|
246
258
|
event == o.event &&
|
|
247
259
|
permission == o.permission &&
|
|
248
260
|
account == o.account &&
|
|
@@ -258,7 +270,7 @@ module Zernio
|
|
|
258
270
|
# Calculates hash code according to all attributes.
|
|
259
271
|
# @return [Integer] Hash code
|
|
260
272
|
def hash
|
|
261
|
-
[test, id, event, permission, account, timestamp].hash
|
|
273
|
+
[test, id, profiles, event, permission, account, timestamp].hash
|
|
262
274
|
end
|
|
263
275
|
|
|
264
276
|
# Builds the object from hash
|
|
@@ -22,6 +22,9 @@ module Zernio
|
|
|
22
22
|
# Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
23
23
|
attr_accessor :id
|
|
24
24
|
|
|
25
|
+
# The profiles this event belongs to, each with the externalId you set on it (null when none is set). Present on every event tied to a profile and absent on events that belong to none. Events spanning several profiles (a post published to accounts of different profiles) list each once. Use it to route the event to your tenant without storing Zernio profile ids.
|
|
26
|
+
attr_accessor :profiles
|
|
27
|
+
|
|
25
28
|
attr_accessor :event
|
|
26
29
|
|
|
27
30
|
attr_accessor :call
|
|
@@ -58,6 +61,7 @@ module Zernio
|
|
|
58
61
|
{
|
|
59
62
|
:'test' => :'test',
|
|
60
63
|
:'id' => :'id',
|
|
64
|
+
:'profiles' => :'profiles',
|
|
61
65
|
:'event' => :'event',
|
|
62
66
|
:'call' => :'call',
|
|
63
67
|
:'account' => :'account',
|
|
@@ -80,6 +84,7 @@ module Zernio
|
|
|
80
84
|
{
|
|
81
85
|
:'test' => :'Boolean',
|
|
82
86
|
:'id' => :'String',
|
|
87
|
+
:'profiles' => :'Array<WebhookProfilesInner>',
|
|
83
88
|
:'event' => :'String',
|
|
84
89
|
:'call' => :'WebhookPayloadCallReceivedCall',
|
|
85
90
|
:'account' => :'InboxWebhookAccount',
|
|
@@ -119,6 +124,12 @@ module Zernio
|
|
|
119
124
|
self.id = nil
|
|
120
125
|
end
|
|
121
126
|
|
|
127
|
+
if attributes.key?(:'profiles')
|
|
128
|
+
if (value = attributes[:'profiles']).is_a?(Array)
|
|
129
|
+
self.profiles = value
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
122
133
|
if attributes.key?(:'event')
|
|
123
134
|
self.event = attributes[:'event']
|
|
124
135
|
else
|
|
@@ -243,6 +254,7 @@ module Zernio
|
|
|
243
254
|
self.class == o.class &&
|
|
244
255
|
test == o.test &&
|
|
245
256
|
id == o.id &&
|
|
257
|
+
profiles == o.profiles &&
|
|
246
258
|
event == o.event &&
|
|
247
259
|
call == o.call &&
|
|
248
260
|
account == o.account &&
|
|
@@ -258,7 +270,7 @@ module Zernio
|
|
|
258
270
|
# Calculates hash code according to all attributes.
|
|
259
271
|
# @return [Integer] Hash code
|
|
260
272
|
def hash
|
|
261
|
-
[test, id, event, call, account, timestamp].hash
|
|
273
|
+
[test, id, profiles, event, call, account, timestamp].hash
|
|
262
274
|
end
|
|
263
275
|
|
|
264
276
|
# Builds the object from hash
|
|
@@ -19,6 +19,9 @@ module Zernio
|
|
|
19
19
|
# Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
20
20
|
attr_accessor :id
|
|
21
21
|
|
|
22
|
+
# The profiles this event belongs to, each with the externalId you set on it (null when none is set). Present on every event tied to a profile and absent on events that belong to none. Events spanning several profiles (a post published to accounts of different profiles) list each once. Use it to route the event to your tenant without storing Zernio profile ids.
|
|
23
|
+
attr_accessor :profiles
|
|
24
|
+
|
|
22
25
|
# Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
23
26
|
attr_accessor :test
|
|
24
27
|
|
|
@@ -59,6 +62,7 @@ module Zernio
|
|
|
59
62
|
def self.attribute_map
|
|
60
63
|
{
|
|
61
64
|
:'id' => :'id',
|
|
65
|
+
:'profiles' => :'profiles',
|
|
62
66
|
:'test' => :'test',
|
|
63
67
|
:'event' => :'event',
|
|
64
68
|
:'comment' => :'comment',
|
|
@@ -82,6 +86,7 @@ module Zernio
|
|
|
82
86
|
def self.openapi_types
|
|
83
87
|
{
|
|
84
88
|
:'id' => :'String',
|
|
89
|
+
:'profiles' => :'Array<WebhookProfilesInner>',
|
|
85
90
|
:'test' => :'Boolean',
|
|
86
91
|
:'event' => :'String',
|
|
87
92
|
:'comment' => :'WebhookPayloadCommentComment',
|
|
@@ -119,6 +124,12 @@ module Zernio
|
|
|
119
124
|
self.id = nil
|
|
120
125
|
end
|
|
121
126
|
|
|
127
|
+
if attributes.key?(:'profiles')
|
|
128
|
+
if (value = attributes[:'profiles']).is_a?(Array)
|
|
129
|
+
self.profiles = value
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
122
133
|
if attributes.key?(:'test')
|
|
123
134
|
self.test = attributes[:'test']
|
|
124
135
|
end
|
|
@@ -267,6 +278,7 @@ module Zernio
|
|
|
267
278
|
return true if self.equal?(o)
|
|
268
279
|
self.class == o.class &&
|
|
269
280
|
id == o.id &&
|
|
281
|
+
profiles == o.profiles &&
|
|
270
282
|
test == o.test &&
|
|
271
283
|
event == o.event &&
|
|
272
284
|
comment == o.comment &&
|
|
@@ -284,7 +296,7 @@ module Zernio
|
|
|
284
296
|
# Calculates hash code according to all attributes.
|
|
285
297
|
# @return [Integer] Hash code
|
|
286
298
|
def hash
|
|
287
|
-
[id, test, event, comment, post, account, timestamp].hash
|
|
299
|
+
[id, profiles, test, event, comment, post, account, timestamp].hash
|
|
288
300
|
end
|
|
289
301
|
|
|
290
302
|
# Builds the object from hash
|
|
@@ -21,6 +21,9 @@ module Zernio
|
|
|
21
21
|
# Event id, the dedupe key.
|
|
22
22
|
attr_accessor :id
|
|
23
23
|
|
|
24
|
+
# The profiles this event belongs to, each with the externalId you set on it (null when none is set). Present on every event tied to a profile and absent on events that belong to none. Events spanning several profiles (a post published to accounts of different profiles) list each once. Use it to route the event to your tenant without storing Zernio profile ids.
|
|
25
|
+
attr_accessor :profiles
|
|
26
|
+
|
|
24
27
|
attr_accessor :event
|
|
25
28
|
|
|
26
29
|
attr_accessor :timestamp
|
|
@@ -64,6 +67,7 @@ module Zernio
|
|
|
64
67
|
{
|
|
65
68
|
:'test' => :'test',
|
|
66
69
|
:'id' => :'id',
|
|
70
|
+
:'profiles' => :'profiles',
|
|
67
71
|
:'event' => :'event',
|
|
68
72
|
:'timestamp' => :'timestamp',
|
|
69
73
|
:'contact' => :'contact',
|
|
@@ -89,6 +93,7 @@ module Zernio
|
|
|
89
93
|
{
|
|
90
94
|
:'test' => :'Boolean',
|
|
91
95
|
:'id' => :'String',
|
|
96
|
+
:'profiles' => :'Array<WebhookProfilesInner>',
|
|
92
97
|
:'event' => :'String',
|
|
93
98
|
:'timestamp' => :'Time',
|
|
94
99
|
:'contact' => :'WebhookPayloadContactTagContact',
|
|
@@ -133,6 +138,12 @@ module Zernio
|
|
|
133
138
|
self.id = nil
|
|
134
139
|
end
|
|
135
140
|
|
|
141
|
+
if attributes.key?(:'profiles')
|
|
142
|
+
if (value = attributes[:'profiles']).is_a?(Array)
|
|
143
|
+
self.profiles = value
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
|
|
136
147
|
if attributes.key?(:'event')
|
|
137
148
|
self.event = attributes[:'event']
|
|
138
149
|
else
|
|
@@ -292,6 +303,7 @@ module Zernio
|
|
|
292
303
|
self.class == o.class &&
|
|
293
304
|
test == o.test &&
|
|
294
305
|
id == o.id &&
|
|
306
|
+
profiles == o.profiles &&
|
|
295
307
|
event == o.event &&
|
|
296
308
|
timestamp == o.timestamp &&
|
|
297
309
|
contact == o.contact &&
|
|
@@ -310,7 +322,7 @@ module Zernio
|
|
|
310
322
|
# Calculates hash code according to all attributes.
|
|
311
323
|
# @return [Integer] Hash code
|
|
312
324
|
def hash
|
|
313
|
-
[test, id, event, timestamp, contact, field, previous_value, value, source].hash
|
|
325
|
+
[test, id, profiles, event, timestamp, contact, field, previous_value, value, source].hash
|
|
314
326
|
end
|
|
315
327
|
|
|
316
328
|
# Builds the object from hash
|
|
@@ -21,6 +21,9 @@ module Zernio
|
|
|
21
21
|
# Event id, the dedupe key.
|
|
22
22
|
attr_accessor :id
|
|
23
23
|
|
|
24
|
+
# The profiles this event belongs to, each with the externalId you set on it (null when none is set). Present on every event tied to a profile and absent on events that belong to none. Events spanning several profiles (a post published to accounts of different profiles) list each once. Use it to route the event to your tenant without storing Zernio profile ids.
|
|
25
|
+
attr_accessor :profiles
|
|
26
|
+
|
|
24
27
|
attr_accessor :event
|
|
25
28
|
|
|
26
29
|
attr_accessor :timestamp
|
|
@@ -59,6 +62,7 @@ module Zernio
|
|
|
59
62
|
{
|
|
60
63
|
:'test' => :'test',
|
|
61
64
|
:'id' => :'id',
|
|
65
|
+
:'profiles' => :'profiles',
|
|
62
66
|
:'event' => :'event',
|
|
63
67
|
:'timestamp' => :'timestamp',
|
|
64
68
|
:'contact' => :'contact',
|
|
@@ -82,6 +86,7 @@ module Zernio
|
|
|
82
86
|
{
|
|
83
87
|
:'test' => :'Boolean',
|
|
84
88
|
:'id' => :'String',
|
|
89
|
+
:'profiles' => :'Array<WebhookProfilesInner>',
|
|
85
90
|
:'event' => :'String',
|
|
86
91
|
:'timestamp' => :'Time',
|
|
87
92
|
:'contact' => :'WebhookPayloadContactTagContact',
|
|
@@ -122,6 +127,12 @@ module Zernio
|
|
|
122
127
|
self.id = nil
|
|
123
128
|
end
|
|
124
129
|
|
|
130
|
+
if attributes.key?(:'profiles')
|
|
131
|
+
if (value = attributes[:'profiles']).is_a?(Array)
|
|
132
|
+
self.profiles = value
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
|
|
125
136
|
if attributes.key?(:'event')
|
|
126
137
|
self.event = attributes[:'event']
|
|
127
138
|
else
|
|
@@ -269,6 +280,7 @@ module Zernio
|
|
|
269
280
|
self.class == o.class &&
|
|
270
281
|
test == o.test &&
|
|
271
282
|
id == o.id &&
|
|
283
|
+
profiles == o.profiles &&
|
|
272
284
|
event == o.event &&
|
|
273
285
|
timestamp == o.timestamp &&
|
|
274
286
|
contact == o.contact &&
|
|
@@ -285,7 +297,7 @@ module Zernio
|
|
|
285
297
|
# Calculates hash code according to all attributes.
|
|
286
298
|
# @return [Integer] Hash code
|
|
287
299
|
def hash
|
|
288
|
-
[test, id, event, timestamp, contact, tag, source].hash
|
|
300
|
+
[test, id, profiles, event, timestamp, contact, tag, source].hash
|
|
289
301
|
end
|
|
290
302
|
|
|
291
303
|
# Builds the object from hash
|
|
@@ -22,6 +22,9 @@ module Zernio
|
|
|
22
22
|
# Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
23
23
|
attr_accessor :id
|
|
24
24
|
|
|
25
|
+
# The profiles this event belongs to, each with the externalId you set on it (null when none is set). Present on every event tied to a profile and absent on events that belong to none. Events spanning several profiles (a post published to accounts of different profiles) list each once. Use it to route the event to your tenant without storing Zernio profile ids.
|
|
26
|
+
attr_accessor :profiles
|
|
27
|
+
|
|
25
28
|
attr_accessor :event
|
|
26
29
|
|
|
27
30
|
attr_accessor :conversation
|
|
@@ -62,6 +65,7 @@ module Zernio
|
|
|
62
65
|
{
|
|
63
66
|
:'test' => :'test',
|
|
64
67
|
:'id' => :'id',
|
|
68
|
+
:'profiles' => :'profiles',
|
|
65
69
|
:'event' => :'event',
|
|
66
70
|
:'conversation' => :'conversation',
|
|
67
71
|
:'account' => :'account',
|
|
@@ -86,6 +90,7 @@ module Zernio
|
|
|
86
90
|
{
|
|
87
91
|
:'test' => :'Boolean',
|
|
88
92
|
:'id' => :'String',
|
|
93
|
+
:'profiles' => :'Array<WebhookProfilesInner>',
|
|
89
94
|
:'event' => :'String',
|
|
90
95
|
:'conversation' => :'InboxWebhookConversationDetail',
|
|
91
96
|
:'account' => :'InboxWebhookAccount',
|
|
@@ -127,6 +132,12 @@ module Zernio
|
|
|
127
132
|
self.id = nil
|
|
128
133
|
end
|
|
129
134
|
|
|
135
|
+
if attributes.key?(:'profiles')
|
|
136
|
+
if (value = attributes[:'profiles']).is_a?(Array)
|
|
137
|
+
self.profiles = value
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
|
|
130
141
|
if attributes.key?(:'event')
|
|
131
142
|
self.event = attributes[:'event']
|
|
132
143
|
else
|
|
@@ -293,6 +304,7 @@ module Zernio
|
|
|
293
304
|
self.class == o.class &&
|
|
294
305
|
test == o.test &&
|
|
295
306
|
id == o.id &&
|
|
307
|
+
profiles == o.profiles &&
|
|
296
308
|
event == o.event &&
|
|
297
309
|
conversation == o.conversation &&
|
|
298
310
|
account == o.account &&
|
|
@@ -310,7 +322,7 @@ module Zernio
|
|
|
310
322
|
# Calculates hash code according to all attributes.
|
|
311
323
|
# @return [Integer] Hash code
|
|
312
324
|
def hash
|
|
313
|
-
[test, id, event, conversation, account, control, changed_at, timestamp].hash
|
|
325
|
+
[test, id, profiles, event, conversation, account, control, changed_at, timestamp].hash
|
|
314
326
|
end
|
|
315
327
|
|
|
316
328
|
# Builds the object from hash
|