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.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/docs/OnWhatsAppNumberActivatedRequest.md +2 -0
  4. data/docs/OnWhatsAppNumberDeclinedRequest.md +2 -0
  5. data/docs/OnWhatsAppNumberReactivatedRequest.md +2 -0
  6. data/docs/OnWhatsAppNumberSuspendedRequest.md +2 -0
  7. data/docs/WebhookPayloadAccountAdsInitialSyncCompleted.md +2 -0
  8. data/docs/WebhookPayloadAccountAdsSyncFailed.md +2 -0
  9. data/docs/WebhookPayloadAccountAdsSyncRecovered.md +2 -0
  10. data/docs/WebhookPayloadAccountConnected.md +2 -0
  11. data/docs/WebhookPayloadAccountDisconnected.md +2 -0
  12. data/docs/WebhookPayloadAdStatusChanged.md +2 -0
  13. data/docs/WebhookPayloadAdVideoProcessed.md +2 -0
  14. data/docs/WebhookPayloadAnalyticsSynced.md +2 -0
  15. data/docs/WebhookPayloadCallEnded.md +2 -0
  16. data/docs/WebhookPayloadCallFailed.md +2 -0
  17. data/docs/WebhookPayloadCallPermissionRequest.md +2 -0
  18. data/docs/WebhookPayloadCallReceived.md +2 -0
  19. data/docs/WebhookPayloadComment.md +2 -0
  20. data/docs/WebhookPayloadContactFieldChanged.md +2 -0
  21. data/docs/WebhookPayloadContactTag.md +2 -0
  22. data/docs/WebhookPayloadConversationControlChanged.md +2 -0
  23. data/docs/WebhookPayloadConversationStarted.md +2 -0
  24. data/docs/WebhookPayloadExternalPost.md +2 -0
  25. data/docs/WebhookPayloadLead.md +2 -0
  26. data/docs/WebhookPayloadMessage.md +2 -0
  27. data/docs/WebhookPayloadMessageDeleted.md +2 -0
  28. data/docs/WebhookPayloadMessageDeliveryStatus.md +2 -0
  29. data/docs/WebhookPayloadMessageEdited.md +2 -0
  30. data/docs/WebhookPayloadMessageSent.md +2 -0
  31. data/docs/WebhookPayloadPost.md +2 -0
  32. data/docs/WebhookPayloadPostPlatform.md +2 -0
  33. data/docs/WebhookPayloadReaction.md +2 -0
  34. data/docs/WebhookPayloadReferral.md +2 -0
  35. data/docs/WebhookPayloadReviewNew.md +2 -0
  36. data/docs/WebhookPayloadReviewUpdated.md +2 -0
  37. data/docs/WebhookPayloadSequenceEnrollment.md +2 -0
  38. data/docs/WebhookPayloadWhatsAppAccountAlertReceived.md +2 -0
  39. data/docs/WebhookPayloadWhatsAppAccountNameStatusUpdated.md +2 -0
  40. data/docs/WebhookPayloadWhatsAppAccountQualityUpdated.md +2 -0
  41. data/docs/WebhookPayloadWhatsAppAccountStatusUpdated.md +2 -0
  42. data/docs/WebhookPayloadWhatsAppContactIdentityChanged.md +2 -0
  43. data/docs/WebhookPayloadWhatsAppTemplateCategoryUpdated.md +2 -0
  44. data/docs/WebhookPayloadWhatsAppTemplateStatusUpdated.md +2 -0
  45. data/docs/WebhookPayloadWorkflowRun.md +2 -0
  46. data/docs/WebhookProfilesInner.md +20 -0
  47. data/lib/zernio-sdk/models/on_whats_app_number_activated_request.rb +13 -1
  48. data/lib/zernio-sdk/models/on_whats_app_number_declined_request.rb +13 -1
  49. data/lib/zernio-sdk/models/on_whats_app_number_reactivated_request.rb +13 -1
  50. data/lib/zernio-sdk/models/on_whats_app_number_suspended_request.rb +13 -1
  51. data/lib/zernio-sdk/models/webhook_payload_account_ads_initial_sync_completed.rb +13 -1
  52. data/lib/zernio-sdk/models/webhook_payload_account_ads_sync_failed.rb +13 -1
  53. data/lib/zernio-sdk/models/webhook_payload_account_ads_sync_recovered.rb +13 -1
  54. data/lib/zernio-sdk/models/webhook_payload_account_connected.rb +13 -1
  55. data/lib/zernio-sdk/models/webhook_payload_account_disconnected.rb +13 -1
  56. data/lib/zernio-sdk/models/webhook_payload_ad_status_changed.rb +13 -1
  57. data/lib/zernio-sdk/models/webhook_payload_ad_video_processed.rb +13 -1
  58. data/lib/zernio-sdk/models/webhook_payload_analytics_synced.rb +13 -1
  59. data/lib/zernio-sdk/models/webhook_payload_call_ended.rb +13 -1
  60. data/lib/zernio-sdk/models/webhook_payload_call_failed.rb +13 -1
  61. data/lib/zernio-sdk/models/webhook_payload_call_permission_request.rb +13 -1
  62. data/lib/zernio-sdk/models/webhook_payload_call_received.rb +13 -1
  63. data/lib/zernio-sdk/models/webhook_payload_comment.rb +13 -1
  64. data/lib/zernio-sdk/models/webhook_payload_contact_field_changed.rb +13 -1
  65. data/lib/zernio-sdk/models/webhook_payload_contact_tag.rb +13 -1
  66. data/lib/zernio-sdk/models/webhook_payload_conversation_control_changed.rb +13 -1
  67. data/lib/zernio-sdk/models/webhook_payload_conversation_started.rb +13 -1
  68. data/lib/zernio-sdk/models/webhook_payload_external_post.rb +13 -1
  69. data/lib/zernio-sdk/models/webhook_payload_lead.rb +13 -1
  70. data/lib/zernio-sdk/models/webhook_payload_message.rb +13 -1
  71. data/lib/zernio-sdk/models/webhook_payload_message_deleted.rb +13 -1
  72. data/lib/zernio-sdk/models/webhook_payload_message_delivery_status.rb +13 -1
  73. data/lib/zernio-sdk/models/webhook_payload_message_edited.rb +13 -1
  74. data/lib/zernio-sdk/models/webhook_payload_message_sent.rb +13 -1
  75. data/lib/zernio-sdk/models/webhook_payload_post.rb +13 -1
  76. data/lib/zernio-sdk/models/webhook_payload_post_platform.rb +13 -1
  77. data/lib/zernio-sdk/models/webhook_payload_reaction.rb +13 -1
  78. data/lib/zernio-sdk/models/webhook_payload_referral.rb +13 -1
  79. data/lib/zernio-sdk/models/webhook_payload_review_new.rb +13 -1
  80. data/lib/zernio-sdk/models/webhook_payload_review_updated.rb +13 -1
  81. data/lib/zernio-sdk/models/webhook_payload_sequence_enrollment.rb +13 -1
  82. data/lib/zernio-sdk/models/webhook_payload_whats_app_account_alert_received.rb +13 -1
  83. data/lib/zernio-sdk/models/webhook_payload_whats_app_account_name_status_updated.rb +13 -1
  84. data/lib/zernio-sdk/models/webhook_payload_whats_app_account_quality_updated.rb +13 -1
  85. data/lib/zernio-sdk/models/webhook_payload_whats_app_account_status_updated.rb +13 -1
  86. data/lib/zernio-sdk/models/webhook_payload_whats_app_contact_identity_changed.rb +13 -1
  87. data/lib/zernio-sdk/models/webhook_payload_whats_app_template_category_updated.rb +13 -1
  88. data/lib/zernio-sdk/models/webhook_payload_whats_app_template_status_updated.rb +13 -1
  89. data/lib/zernio-sdk/models/webhook_payload_workflow_run.rb +13 -1
  90. data/lib/zernio-sdk/models/webhook_profiles_inner.rb +176 -0
  91. data/lib/zernio-sdk/version.rb +1 -1
  92. data/lib/zernio-sdk.rb +1 -0
  93. data/openapi.yaml +1 -1
  94. data/spec/models/on_whats_app_number_activated_request_spec.rb +6 -0
  95. data/spec/models/on_whats_app_number_declined_request_spec.rb +6 -0
  96. data/spec/models/on_whats_app_number_reactivated_request_spec.rb +6 -0
  97. data/spec/models/on_whats_app_number_suspended_request_spec.rb +6 -0
  98. data/spec/models/webhook_payload_account_ads_initial_sync_completed_spec.rb +6 -0
  99. data/spec/models/webhook_payload_account_ads_sync_failed_spec.rb +6 -0
  100. data/spec/models/webhook_payload_account_ads_sync_recovered_spec.rb +6 -0
  101. data/spec/models/webhook_payload_account_connected_spec.rb +6 -0
  102. data/spec/models/webhook_payload_account_disconnected_spec.rb +6 -0
  103. data/spec/models/webhook_payload_ad_status_changed_spec.rb +6 -0
  104. data/spec/models/webhook_payload_ad_video_processed_spec.rb +6 -0
  105. data/spec/models/webhook_payload_analytics_synced_spec.rb +6 -0
  106. data/spec/models/webhook_payload_call_ended_spec.rb +6 -0
  107. data/spec/models/webhook_payload_call_failed_spec.rb +6 -0
  108. data/spec/models/webhook_payload_call_permission_request_spec.rb +6 -0
  109. data/spec/models/webhook_payload_call_received_spec.rb +6 -0
  110. data/spec/models/webhook_payload_comment_spec.rb +6 -0
  111. data/spec/models/webhook_payload_contact_field_changed_spec.rb +6 -0
  112. data/spec/models/webhook_payload_contact_tag_spec.rb +6 -0
  113. data/spec/models/webhook_payload_conversation_control_changed_spec.rb +6 -0
  114. data/spec/models/webhook_payload_conversation_started_spec.rb +6 -0
  115. data/spec/models/webhook_payload_external_post_spec.rb +6 -0
  116. data/spec/models/webhook_payload_lead_spec.rb +6 -0
  117. data/spec/models/webhook_payload_message_deleted_spec.rb +6 -0
  118. data/spec/models/webhook_payload_message_delivery_status_spec.rb +6 -0
  119. data/spec/models/webhook_payload_message_edited_spec.rb +6 -0
  120. data/spec/models/webhook_payload_message_sent_spec.rb +6 -0
  121. data/spec/models/webhook_payload_message_spec.rb +6 -0
  122. data/spec/models/webhook_payload_post_platform_spec.rb +6 -0
  123. data/spec/models/webhook_payload_post_spec.rb +6 -0
  124. data/spec/models/webhook_payload_reaction_spec.rb +6 -0
  125. data/spec/models/webhook_payload_referral_spec.rb +6 -0
  126. data/spec/models/webhook_payload_review_new_spec.rb +6 -0
  127. data/spec/models/webhook_payload_review_updated_spec.rb +6 -0
  128. data/spec/models/webhook_payload_sequence_enrollment_spec.rb +6 -0
  129. data/spec/models/webhook_payload_whats_app_account_alert_received_spec.rb +6 -0
  130. data/spec/models/webhook_payload_whats_app_account_name_status_updated_spec.rb +6 -0
  131. data/spec/models/webhook_payload_whats_app_account_quality_updated_spec.rb +6 -0
  132. data/spec/models/webhook_payload_whats_app_account_status_updated_spec.rb +6 -0
  133. data/spec/models/webhook_payload_whats_app_contact_identity_changed_spec.rb +6 -0
  134. data/spec/models/webhook_payload_whats_app_template_category_updated_spec.rb +6 -0
  135. data/spec/models/webhook_payload_whats_app_template_status_updated_spec.rb +6 -0
  136. data/spec/models/webhook_payload_workflow_run_spec.rb +6 -0
  137. data/spec/models/webhook_profiles_inner_spec.rb +42 -0
  138. data/zernio-sdk-0.0.1373.gem +0 -0
  139. metadata +6 -2
  140. data/zernio-sdk-0.0.1372.gem +0 -0
@@ -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
@@ -61,6 +64,7 @@ module Zernio
61
64
  {
62
65
  :'test' => :'test',
63
66
  :'id' => :'id',
67
+ :'profiles' => :'profiles',
64
68
  :'event' => :'event',
65
69
  :'conversation' => :'conversation',
66
70
  :'account' => :'account',
@@ -84,6 +88,7 @@ module Zernio
84
88
  {
85
89
  :'test' => :'Boolean',
86
90
  :'id' => :'String',
91
+ :'profiles' => :'Array<WebhookProfilesInner>',
87
92
  :'event' => :'String',
88
93
  :'conversation' => :'InboxWebhookConversationDetail',
89
94
  :'account' => :'InboxWebhookAccount',
@@ -124,6 +129,12 @@ module Zernio
124
129
  self.id = nil
125
130
  end
126
131
 
132
+ if attributes.key?(:'profiles')
133
+ if (value = attributes[:'profiles']).is_a?(Array)
134
+ self.profiles = value
135
+ end
136
+ end
137
+
127
138
  if attributes.key?(:'event')
128
139
  self.event = attributes[:'event']
129
140
  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
  conversation == o.conversation &&
274
286
  account == o.account &&
@@ -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, conversation, account, started_at, timestamp].hash
300
+ [test, id, profiles, event, conversation, account, started_at, timestamp].hash
289
301
  end
290
302
 
291
303
  # 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
  :'post' => :'post',
@@ -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
  :'post' => :'ExternalPostWebhookPost',
@@ -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
  post == o.post &&
@@ -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, post, account, timestamp].hash
273
+ [id, profiles, test, event, post, 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
 
@@ -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
  :'lead' => :'lead',
@@ -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
  :'lead' => :'WebhookPayloadLeadLead',
@@ -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
  lead == o.lead &&
@@ -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, lead, account, timestamp].hash
273
+ [id, profiles, test, event, lead, 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
 
@@ -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
  :'message' => :'message',
@@ -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
  :'message' => :'WebhookPayloadMessageMessage',
@@ -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
  message == o.message &&
@@ -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, message, conversation, account, metadata, timestamp].hash
308
+ [id, profiles, test, event, message, conversation, account, metadata, timestamp].hash
297
309
  end
298
310
 
299
311
  # 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 :message
@@ -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
  :'message' => :'message',
67
71
  :'deleted_at' => :'deletedAt',
@@ -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
  :'message' => :'InboxWebhookMessage',
91
96
  :'deleted_at' => :'Time',
@@ -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
  message == o.message &&
298
310
  deleted_at == o.deleted_at &&
@@ -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, message, deleted_at, conversation, account, timestamp].hash
325
+ [test, id, profiles, event, message, deleted_at, conversation, account, timestamp].hash
314
326
  end
315
327
 
316
328
  # 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 :message
@@ -69,6 +72,7 @@ module Zernio
69
72
  {
70
73
  :'test' => :'test',
71
74
  :'id' => :'id',
75
+ :'profiles' => :'profiles',
72
76
  :'event' => :'event',
73
77
  :'message' => :'message',
74
78
  :'status_at' => :'statusAt',
@@ -96,6 +100,7 @@ module Zernio
96
100
  {
97
101
  :'test' => :'Boolean',
98
102
  :'id' => :'String',
103
+ :'profiles' => :'Array<WebhookProfilesInner>',
99
104
  :'event' => :'String',
100
105
  :'message' => :'InboxWebhookMessage',
101
106
  :'status_at' => :'Time',
@@ -140,6 +145,12 @@ module Zernio
140
145
  self.id = nil
141
146
  end
142
147
 
148
+ if attributes.key?(:'profiles')
149
+ if (value = attributes[:'profiles']).is_a?(Array)
150
+ self.profiles = value
151
+ end
152
+ end
153
+
143
154
  if attributes.key?(:'event')
144
155
  self.event = attributes[:'event']
145
156
  else
@@ -318,6 +329,7 @@ module Zernio
318
329
  self.class == o.class &&
319
330
  test == o.test &&
320
331
  id == o.id &&
332
+ profiles == o.profiles &&
321
333
  event == o.event &&
322
334
  message == o.message &&
323
335
  status_at == o.status_at &&
@@ -338,7 +350,7 @@ module Zernio
338
350
  # Calculates hash code according to all attributes.
339
351
  # @return [Integer] Hash code
340
352
  def hash
341
- [test, id, event, message, status_at, error, pricing, billing_conversation, conversation, account, timestamp].hash
353
+ [test, id, profiles, event, message, status_at, error, pricing, billing_conversation, conversation, account, timestamp].hash
342
354
  end
343
355
 
344
356
  # 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 :message
@@ -69,6 +72,7 @@ module Zernio
69
72
  {
70
73
  :'test' => :'test',
71
74
  :'id' => :'id',
75
+ :'profiles' => :'profiles',
72
76
  :'event' => :'event',
73
77
  :'message' => :'message',
74
78
  :'edit_history' => :'editHistory',
@@ -95,6 +99,7 @@ module Zernio
95
99
  {
96
100
  :'test' => :'Boolean',
97
101
  :'id' => :'String',
102
+ :'profiles' => :'Array<WebhookProfilesInner>',
98
103
  :'event' => :'String',
99
104
  :'message' => :'InboxWebhookMessage',
100
105
  :'edit_history' => :'Array<InboxMessageEditHistoryEntry>',
@@ -138,6 +143,12 @@ module Zernio
138
143
  self.id = nil
139
144
  end
140
145
 
146
+ if attributes.key?(:'profiles')
147
+ if (value = attributes[:'profiles']).is_a?(Array)
148
+ self.profiles = value
149
+ end
150
+ end
151
+
141
152
  if attributes.key?(:'event')
142
153
  self.event = attributes[:'event']
143
154
  else
@@ -348,6 +359,7 @@ module Zernio
348
359
  self.class == o.class &&
349
360
  test == o.test &&
350
361
  id == o.id &&
362
+ profiles == o.profiles &&
351
363
  event == o.event &&
352
364
  message == o.message &&
353
365
  edit_history == o.edit_history &&
@@ -367,7 +379,7 @@ module Zernio
367
379
  # Calculates hash code according to all attributes.
368
380
  # @return [Integer] Hash code
369
381
  def hash
370
- [test, id, event, message, edit_history, edit_count, edited_at, conversation, account, timestamp].hash
382
+ [test, id, profiles, event, message, edit_history, edit_count, edited_at, conversation, account, timestamp].hash
371
383
  end
372
384
 
373
385
  # 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
 
@@ -65,6 +68,7 @@ module Zernio
65
68
  def self.attribute_map
66
69
  {
67
70
  :'id' => :'id',
71
+ :'profiles' => :'profiles',
68
72
  :'test' => :'test',
69
73
  :'event' => :'event',
70
74
  :'message' => :'message',
@@ -91,6 +95,7 @@ module Zernio
91
95
  def self.openapi_types
92
96
  {
93
97
  :'id' => :'String',
98
+ :'profiles' => :'Array<WebhookProfilesInner>',
94
99
  :'test' => :'Boolean',
95
100
  :'event' => :'String',
96
101
  :'message' => :'WebhookPayloadMessageSentMessage',
@@ -131,6 +136,12 @@ module Zernio
131
136
  self.id = nil
132
137
  end
133
138
 
139
+ if attributes.key?(:'profiles')
140
+ if (value = attributes[:'profiles']).is_a?(Array)
141
+ self.profiles = value
142
+ end
143
+ end
144
+
134
145
  if attributes.key?(:'test')
135
146
  self.test = attributes[:'test']
136
147
  end
@@ -291,6 +302,7 @@ module Zernio
291
302
  return true if self.equal?(o)
292
303
  self.class == o.class &&
293
304
  id == o.id &&
305
+ profiles == o.profiles &&
294
306
  test == o.test &&
295
307
  event == o.event &&
296
308
  message == o.message &&
@@ -311,7 +323,7 @@ module Zernio
311
323
  # Calculates hash code according to all attributes.
312
324
  # @return [Integer] Hash code
313
325
  def hash
314
- [id, test, event, message, pricing, billing_conversation, conversation, account, metadata, timestamp].hash
326
+ [id, profiles, test, event, message, pricing, billing_conversation, conversation, account, metadata, timestamp].hash
315
327
  end
316
328
 
317
329
  # 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
 
@@ -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
  :'post' => :'post',
@@ -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
  :'post' => :'WebhookPayloadPostPost',
@@ -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
  post == o.post &&
@@ -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, post, timestamp].hash
247
+ [id, profiles, test, event, post, 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
 
@@ -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
  :'post' => :'post',
@@ -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
  :'post' => :'WebhookPayloadPostPlatformPost',
@@ -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
  post == o.post &&
@@ -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, post, platform, account, timestamp].hash
299
+ [id, profiles, test, event, post, platform, account, timestamp].hash
288
300
  end
289
301
 
290
302
  # 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
  :'reaction' => :'reaction',
@@ -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
  :'reaction' => :'WebhookPayloadReactionReaction',
@@ -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
  reaction == o.reaction &&
@@ -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, reaction, conversation, account, timestamp].hash
299
+ [id, profiles, test, event, reaction, conversation, account, timestamp].hash
288
300
  end
289
301
 
290
302
  # 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
  :'referral' => :'referral',
@@ -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
  :'referral' => :'WebhookPayloadReferralReferral',
@@ -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
@@ -292,6 +303,7 @@ module Zernio
292
303
  return true if self.equal?(o)
293
304
  self.class == o.class &&
294
305
  id == o.id &&
306
+ profiles == o.profiles &&
295
307
  test == o.test &&
296
308
  event == o.event &&
297
309
  referral == o.referral &&
@@ -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
- [id, test, event, referral, sender, conversation, account, timestamp].hash
325
+ [id, profiles, test, event, referral, sender, conversation, account, timestamp].hash
314
326
  end
315
327
 
316
328
  # Builds the object from hash