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
@@ -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
  :'review' => :'review',
@@ -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
  :'review' => :'ReviewWebhookReview',
@@ -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
  review == o.review &&
@@ -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, review, account, timestamp].hash
273
+ [id, profiles, test, event, review, 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
  :'review' => :'review',
@@ -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
  :'review' => :'ReviewWebhookReview',
@@ -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
  review == o.review &&
@@ -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, review, account, timestamp].hash
273
+ [id, profiles, test, event, review, account, timestamp].hash
262
274
  end
263
275
 
264
276
  # 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
@@ -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
  :'timestamp' => :'timestamp',
66
70
  :'sequence' => :'sequence',
@@ -85,6 +89,7 @@ module Zernio
85
89
  {
86
90
  :'test' => :'Boolean',
87
91
  :'id' => :'String',
92
+ :'profiles' => :'Array<WebhookProfilesInner>',
88
93
  :'event' => :'String',
89
94
  :'timestamp' => :'Time',
90
95
  :'sequence' => :'UpdateFacebookPage200ResponseSelectedPage',
@@ -126,6 +131,12 @@ module Zernio
126
131
  self.id = nil
127
132
  end
128
133
 
134
+ if attributes.key?(:'profiles')
135
+ if (value = attributes[:'profiles']).is_a?(Array)
136
+ self.profiles = value
137
+ end
138
+ end
139
+
129
140
  if attributes.key?(:'event')
130
141
  self.event = attributes[:'event']
131
142
  else
@@ -287,6 +298,7 @@ module Zernio
287
298
  self.class == o.class &&
288
299
  test == o.test &&
289
300
  id == o.id &&
301
+ profiles == o.profiles &&
290
302
  event == o.event &&
291
303
  timestamp == o.timestamp &&
292
304
  sequence == o.sequence &&
@@ -304,7 +316,7 @@ module Zernio
304
316
  # Calculates hash code according to all attributes.
305
317
  # @return [Integer] Hash code
306
318
  def hash
307
- [test, id, event, timestamp, sequence, contact, enrollment, exit_reason].hash
319
+ [test, id, profiles, event, timestamp, sequence, contact, enrollment, exit_reason].hash
308
320
  end
309
321
 
310
322
  # 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' => :'WebhookPayloadWhatsAppAccountQualityUpdatedAccount',
@@ -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, alert, timestamp].hash
273
+ [id, profiles, test, event, account, alert, 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' => :'WebhookPayloadWhatsAppTemplateStatusUpdatedAccount',
@@ -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, name, timestamp].hash
273
+ [id, profiles, test, event, account, name, 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' => :'WebhookPayloadWhatsAppAccountQualityUpdatedAccount',
@@ -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, quality, timestamp].hash
273
+ [id, profiles, test, event, account, quality, 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' => :'WebhookPayloadWhatsAppAccountQualityUpdatedAccount',
@@ -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, status, timestamp].hash
273
+ [id, profiles, test, event, account, status, 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
 
@@ -71,6 +74,7 @@ module Zernio
71
74
  def self.attribute_map
72
75
  {
73
76
  :'id' => :'id',
77
+ :'profiles' => :'profiles',
74
78
  :'test' => :'test',
75
79
  :'event' => :'event',
76
80
  :'account' => :'account',
@@ -98,6 +102,7 @@ module Zernio
98
102
  def self.openapi_types
99
103
  {
100
104
  :'id' => :'String',
105
+ :'profiles' => :'Array<WebhookProfilesInner>',
101
106
  :'test' => :'Boolean',
102
107
  :'event' => :'String',
103
108
  :'account' => :'WebhookPayloadWhatsAppAccountQualityUpdatedAccount',
@@ -141,6 +146,12 @@ module Zernio
141
146
  self.id = nil
142
147
  end
143
148
 
149
+ if attributes.key?(:'profiles')
150
+ if (value = attributes[:'profiles']).is_a?(Array)
151
+ self.profiles = value
152
+ end
153
+ end
154
+
144
155
  if attributes.key?(:'test')
145
156
  self.test = attributes[:'test']
146
157
  end
@@ -345,6 +356,7 @@ module Zernio
345
356
  return true if self.equal?(o)
346
357
  self.class == o.class &&
347
358
  id == o.id &&
359
+ profiles == o.profiles &&
348
360
  test == o.test &&
349
361
  event == o.event &&
350
362
  account == o.account &&
@@ -366,7 +378,7 @@ module Zernio
366
378
  # Calculates hash code according to all attributes.
367
379
  # @return [Integer] Hash code
368
380
  def hash
369
- [id, test, event, account, reason, previous, current, contact_id, conversation_id, changed_at, timestamp].hash
381
+ [id, profiles, test, event, account, reason, previous, current, contact_id, conversation_id, changed_at, timestamp].hash
370
382
  end
371
383
 
372
384
  # 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' => :'WebhookPayloadWhatsAppTemplateStatusUpdatedAccount',
@@ -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, template, timestamp].hash
273
+ [id, profiles, test, event, account, template, 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' => :'WebhookPayloadWhatsAppTemplateStatusUpdatedAccount',
@@ -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, template, timestamp].hash
273
+ [id, profiles, test, event, account, template, timestamp].hash
262
274
  end
263
275
 
264
276
  # 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
@@ -65,6 +68,7 @@ module Zernio
65
68
  {
66
69
  :'test' => :'test',
67
70
  :'id' => :'id',
71
+ :'profiles' => :'profiles',
68
72
  :'event' => :'event',
69
73
  :'timestamp' => :'timestamp',
70
74
  :'workflow' => :'workflow',
@@ -91,6 +95,7 @@ module Zernio
91
95
  {
92
96
  :'test' => :'Boolean',
93
97
  :'id' => :'String',
98
+ :'profiles' => :'Array<WebhookProfilesInner>',
94
99
  :'event' => :'String',
95
100
  :'timestamp' => :'Time',
96
101
  :'workflow' => :'WebhookPayloadWorkflowRunWorkflow',
@@ -134,6 +139,12 @@ module Zernio
134
139
  self.id = nil
135
140
  end
136
141
 
142
+ if attributes.key?(:'profiles')
143
+ if (value = attributes[:'profiles']).is_a?(Array)
144
+ self.profiles = value
145
+ end
146
+ end
147
+
137
148
  if attributes.key?(:'event')
138
149
  self.event = attributes[:'event']
139
150
  else
@@ -325,6 +336,7 @@ module Zernio
325
336
  self.class == o.class &&
326
337
  test == o.test &&
327
338
  id == o.id &&
339
+ profiles == o.profiles &&
328
340
  event == o.event &&
329
341
  timestamp == o.timestamp &&
330
342
  workflow == o.workflow &&
@@ -344,7 +356,7 @@ module Zernio
344
356
  # Calculates hash code according to all attributes.
345
357
  # @return [Integer] Hash code
346
358
  def hash
347
- [test, id, event, timestamp, workflow, execution, conversation, contact, trigger, error].hash
359
+ [test, id, profiles, event, timestamp, workflow, execution, conversation, contact, trigger, error].hash
348
360
  end
349
361
 
350
362
  # Builds the object from hash