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
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **test** | **Boolean** | Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do. | [optional] |
8
8
  | **id** | **String** | Event id, the dedupe key. | |
9
+ | **profiles** | [**Array<WebhookProfilesInner>**](WebhookProfilesInner.md) | 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. | [optional] |
9
10
  | **event** | **String** | | |
10
11
  | **timestamp** | **Time** | | |
11
12
  | **sequence** | [**UpdateFacebookPage200ResponseSelectedPage**](UpdateFacebookPage200ResponseSelectedPage.md) | | |
@@ -21,6 +22,7 @@ require 'zernio-sdk'
21
22
  instance = Zernio::WebhookPayloadSequenceEnrollment.new(
22
23
  test: null,
23
24
  id: null,
25
+ profiles: null,
24
26
  event: null,
25
27
  timestamp: null,
26
28
  sequence: null,
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | 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. | |
8
+ | **profiles** | [**Array<WebhookProfilesInner>**](WebhookProfilesInner.md) | 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. | [optional] |
8
9
  | **test** | **Boolean** | Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do. | [optional] |
9
10
  | **event** | **String** | | |
10
11
  | **account** | [**WebhookPayloadWhatsAppAccountQualityUpdatedAccount**](WebhookPayloadWhatsAppAccountQualityUpdatedAccount.md) | | |
@@ -18,6 +19,7 @@ require 'zernio-sdk'
18
19
 
19
20
  instance = Zernio::WebhookPayloadWhatsAppAccountAlertReceived.new(
20
21
  id: null,
22
+ profiles: null,
21
23
  test: null,
22
24
  event: null,
23
25
  account: null,
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | 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. | |
8
+ | **profiles** | [**Array<WebhookProfilesInner>**](WebhookProfilesInner.md) | 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. | [optional] |
8
9
  | **test** | **Boolean** | Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do. | [optional] |
9
10
  | **event** | **String** | | |
10
11
  | **account** | [**WebhookPayloadWhatsAppTemplateStatusUpdatedAccount**](WebhookPayloadWhatsAppTemplateStatusUpdatedAccount.md) | | |
@@ -18,6 +19,7 @@ require 'zernio-sdk'
18
19
 
19
20
  instance = Zernio::WebhookPayloadWhatsAppAccountNameStatusUpdated.new(
20
21
  id: null,
22
+ profiles: null,
21
23
  test: null,
22
24
  event: null,
23
25
  account: null,
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | 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. | |
8
+ | **profiles** | [**Array<WebhookProfilesInner>**](WebhookProfilesInner.md) | 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. | [optional] |
8
9
  | **test** | **Boolean** | Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do. | [optional] |
9
10
  | **event** | **String** | | |
10
11
  | **account** | [**WebhookPayloadWhatsAppAccountQualityUpdatedAccount**](WebhookPayloadWhatsAppAccountQualityUpdatedAccount.md) | | |
@@ -18,6 +19,7 @@ require 'zernio-sdk'
18
19
 
19
20
  instance = Zernio::WebhookPayloadWhatsAppAccountQualityUpdated.new(
20
21
  id: null,
22
+ profiles: null,
21
23
  test: null,
22
24
  event: null,
23
25
  account: null,
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | 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. | |
8
+ | **profiles** | [**Array<WebhookProfilesInner>**](WebhookProfilesInner.md) | 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. | [optional] |
8
9
  | **test** | **Boolean** | Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do. | [optional] |
9
10
  | **event** | **String** | | |
10
11
  | **account** | [**WebhookPayloadWhatsAppAccountQualityUpdatedAccount**](WebhookPayloadWhatsAppAccountQualityUpdatedAccount.md) | | |
@@ -18,6 +19,7 @@ require 'zernio-sdk'
18
19
 
19
20
  instance = Zernio::WebhookPayloadWhatsAppAccountStatusUpdated.new(
20
21
  id: null,
22
+ profiles: null,
21
23
  test: null,
22
24
  event: null,
23
25
  account: null,
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | 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. | |
8
+ | **profiles** | [**Array<WebhookProfilesInner>**](WebhookProfilesInner.md) | 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. | [optional] |
8
9
  | **test** | **Boolean** | Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do. | [optional] |
9
10
  | **event** | **String** | | |
10
11
  | **account** | [**WebhookPayloadWhatsAppAccountQualityUpdatedAccount**](WebhookPayloadWhatsAppAccountQualityUpdatedAccount.md) | | |
@@ -23,6 +24,7 @@ require 'zernio-sdk'
23
24
 
24
25
  instance = Zernio::WebhookPayloadWhatsAppContactIdentityChanged.new(
25
26
  id: null,
27
+ profiles: null,
26
28
  test: null,
27
29
  event: null,
28
30
  account: null,
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | 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. | |
8
+ | **profiles** | [**Array<WebhookProfilesInner>**](WebhookProfilesInner.md) | 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. | [optional] |
8
9
  | **test** | **Boolean** | Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do. | [optional] |
9
10
  | **event** | **String** | | |
10
11
  | **account** | [**WebhookPayloadWhatsAppTemplateStatusUpdatedAccount**](WebhookPayloadWhatsAppTemplateStatusUpdatedAccount.md) | | |
@@ -18,6 +19,7 @@ require 'zernio-sdk'
18
19
 
19
20
  instance = Zernio::WebhookPayloadWhatsAppTemplateCategoryUpdated.new(
20
21
  id: null,
22
+ profiles: null,
21
23
  test: null,
22
24
  event: null,
23
25
  account: null,
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | 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. | |
8
+ | **profiles** | [**Array<WebhookProfilesInner>**](WebhookProfilesInner.md) | 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. | [optional] |
8
9
  | **test** | **Boolean** | Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do. | [optional] |
9
10
  | **event** | **String** | | |
10
11
  | **account** | [**WebhookPayloadWhatsAppTemplateStatusUpdatedAccount**](WebhookPayloadWhatsAppTemplateStatusUpdatedAccount.md) | | |
@@ -18,6 +19,7 @@ require 'zernio-sdk'
18
19
 
19
20
  instance = Zernio::WebhookPayloadWhatsAppTemplateStatusUpdated.new(
20
21
  id: null,
22
+ profiles: null,
21
23
  test: null,
22
24
  event: null,
23
25
  account: null,
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **test** | **Boolean** | Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do. | [optional] |
8
8
  | **id** | **String** | Event id, the dedupe key. | |
9
+ | **profiles** | [**Array<WebhookProfilesInner>**](WebhookProfilesInner.md) | 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. | [optional] |
9
10
  | **event** | **String** | | |
10
11
  | **timestamp** | **Time** | | |
11
12
  | **workflow** | [**WebhookPayloadWorkflowRunWorkflow**](WebhookPayloadWorkflowRunWorkflow.md) | | |
@@ -23,6 +24,7 @@ require 'zernio-sdk'
23
24
  instance = Zernio::WebhookPayloadWorkflowRun.new(
24
25
  test: null,
25
26
  id: null,
27
+ profiles: null,
26
28
  event: null,
27
29
  timestamp: null,
28
30
  workflow: null,
@@ -0,0 +1,20 @@
1
+ # Zernio::WebhookProfilesInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | |
8
+ | **external_id** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'zernio-sdk'
14
+
15
+ instance = Zernio::WebhookProfilesInner.new(
16
+ id: null,
17
+ external_id: tenant_42
18
+ )
19
+ ```
20
+
@@ -21,6 +21,9 @@ module Zernio
21
21
  # 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.
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
  # UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
@@ -55,6 +58,7 @@ module Zernio
55
58
  {
56
59
  :'test' => :'test',
57
60
  :'id' => :'id',
61
+ :'profiles' => :'profiles',
58
62
  :'event' => :'event',
59
63
  :'timestamp' => :'timestamp',
60
64
  :'number' => :'number'
@@ -76,6 +80,7 @@ module Zernio
76
80
  {
77
81
  :'test' => :'Boolean',
78
82
  :'id' => :'String',
83
+ :'profiles' => :'Array<WebhookProfilesInner>',
79
84
  :'event' => :'String',
80
85
  :'timestamp' => :'Time',
81
86
  :'number' => :'OnWhatsAppNumberActivatedRequestNumber'
@@ -112,6 +117,12 @@ module Zernio
112
117
  self.id = attributes[:'id']
113
118
  end
114
119
 
120
+ if attributes.key?(:'profiles')
121
+ if (value = attributes[:'profiles']).is_a?(Array)
122
+ self.profiles = value
123
+ end
124
+ end
125
+
115
126
  if attributes.key?(:'event')
116
127
  self.event = attributes[:'event']
117
128
  end
@@ -159,6 +170,7 @@ module Zernio
159
170
  self.class == o.class &&
160
171
  test == o.test &&
161
172
  id == o.id &&
173
+ profiles == o.profiles &&
162
174
  event == o.event &&
163
175
  timestamp == o.timestamp &&
164
176
  number == o.number
@@ -173,7 +185,7 @@ module Zernio
173
185
  # Calculates hash code according to all attributes.
174
186
  # @return [Integer] Hash code
175
187
  def hash
176
- [test, id, event, timestamp, number].hash
188
+ [test, id, profiles, event, timestamp, number].hash
177
189
  end
178
190
 
179
191
  # Builds the object from hash
@@ -21,6 +21,9 @@ module Zernio
21
21
  # 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.
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
  # UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
@@ -57,6 +60,7 @@ module Zernio
57
60
  {
58
61
  :'test' => :'test',
59
62
  :'id' => :'id',
63
+ :'profiles' => :'profiles',
60
64
  :'event' => :'event',
61
65
  :'timestamp' => :'timestamp',
62
66
  :'number' => :'number',
@@ -79,6 +83,7 @@ module Zernio
79
83
  {
80
84
  :'test' => :'Boolean',
81
85
  :'id' => :'String',
86
+ :'profiles' => :'Array<WebhookProfilesInner>',
82
87
  :'event' => :'String',
83
88
  :'timestamp' => :'Time',
84
89
  :'number' => :'OnWhatsAppNumberDeclinedRequestNumber',
@@ -117,6 +122,12 @@ module Zernio
117
122
  self.id = attributes[:'id']
118
123
  end
119
124
 
125
+ if attributes.key?(:'profiles')
126
+ if (value = attributes[:'profiles']).is_a?(Array)
127
+ self.profiles = value
128
+ end
129
+ end
130
+
120
131
  if attributes.key?(:'event')
121
132
  self.event = attributes[:'event']
122
133
  end
@@ -168,6 +179,7 @@ module Zernio
168
179
  self.class == o.class &&
169
180
  test == o.test &&
170
181
  id == o.id &&
182
+ profiles == o.profiles &&
171
183
  event == o.event &&
172
184
  timestamp == o.timestamp &&
173
185
  number == o.number &&
@@ -183,7 +195,7 @@ module Zernio
183
195
  # Calculates hash code according to all attributes.
184
196
  # @return [Integer] Hash code
185
197
  def hash
186
- [test, id, event, timestamp, number, reason].hash
198
+ [test, id, profiles, event, timestamp, number, reason].hash
187
199
  end
188
200
 
189
201
  # Builds the object from hash
@@ -21,6 +21,9 @@ module Zernio
21
21
  # 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.
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
  # UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
@@ -55,6 +58,7 @@ module Zernio
55
58
  {
56
59
  :'test' => :'test',
57
60
  :'id' => :'id',
61
+ :'profiles' => :'profiles',
58
62
  :'event' => :'event',
59
63
  :'timestamp' => :'timestamp',
60
64
  :'number' => :'number'
@@ -76,6 +80,7 @@ module Zernio
76
80
  {
77
81
  :'test' => :'Boolean',
78
82
  :'id' => :'String',
83
+ :'profiles' => :'Array<WebhookProfilesInner>',
79
84
  :'event' => :'String',
80
85
  :'timestamp' => :'Time',
81
86
  :'number' => :'OnWhatsAppNumberDeclinedRequestNumber'
@@ -112,6 +117,12 @@ module Zernio
112
117
  self.id = attributes[:'id']
113
118
  end
114
119
 
120
+ if attributes.key?(:'profiles')
121
+ if (value = attributes[:'profiles']).is_a?(Array)
122
+ self.profiles = value
123
+ end
124
+ end
125
+
115
126
  if attributes.key?(:'event')
116
127
  self.event = attributes[:'event']
117
128
  end
@@ -159,6 +170,7 @@ module Zernio
159
170
  self.class == o.class &&
160
171
  test == o.test &&
161
172
  id == o.id &&
173
+ profiles == o.profiles &&
162
174
  event == o.event &&
163
175
  timestamp == o.timestamp &&
164
176
  number == o.number
@@ -173,7 +185,7 @@ module Zernio
173
185
  # Calculates hash code according to all attributes.
174
186
  # @return [Integer] Hash code
175
187
  def hash
176
- [test, id, event, timestamp, number].hash
188
+ [test, id, profiles, event, timestamp, number].hash
177
189
  end
178
190
 
179
191
  # Builds the object from hash
@@ -21,6 +21,9 @@ module Zernio
21
21
  # 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.
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
  # UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
@@ -57,6 +60,7 @@ module Zernio
57
60
  {
58
61
  :'test' => :'test',
59
62
  :'id' => :'id',
63
+ :'profiles' => :'profiles',
60
64
  :'event' => :'event',
61
65
  :'timestamp' => :'timestamp',
62
66
  :'number' => :'number',
@@ -79,6 +83,7 @@ module Zernio
79
83
  {
80
84
  :'test' => :'Boolean',
81
85
  :'id' => :'String',
86
+ :'profiles' => :'Array<WebhookProfilesInner>',
82
87
  :'event' => :'String',
83
88
  :'timestamp' => :'Time',
84
89
  :'number' => :'OnWhatsAppNumberDeclinedRequestNumber',
@@ -117,6 +122,12 @@ module Zernio
117
122
  self.id = attributes[:'id']
118
123
  end
119
124
 
125
+ if attributes.key?(:'profiles')
126
+ if (value = attributes[:'profiles']).is_a?(Array)
127
+ self.profiles = value
128
+ end
129
+ end
130
+
120
131
  if attributes.key?(:'event')
121
132
  self.event = attributes[:'event']
122
133
  end
@@ -168,6 +179,7 @@ module Zernio
168
179
  self.class == o.class &&
169
180
  test == o.test &&
170
181
  id == o.id &&
182
+ profiles == o.profiles &&
171
183
  event == o.event &&
172
184
  timestamp == o.timestamp &&
173
185
  number == o.number &&
@@ -183,7 +195,7 @@ module Zernio
183
195
  # Calculates hash code according to all attributes.
184
196
  # @return [Integer] Hash code
185
197
  def hash
186
- [test, id, event, timestamp, number, reason].hash
198
+ [test, id, profiles, event, timestamp, number, reason].hash
187
199
  end
188
200
 
189
201
  # 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' => :'WebhookPayloadAccountAdsInitialSyncCompletedAccount',
@@ -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
@@ -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
 
@@ -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
  :'account' => :'account',
@@ -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
  :'account' => :'WebhookAdsSyncAccount',
@@ -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
  account == o.account &&
@@ -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, account, ad_account, sync, timestamp].hash
299
+ [id, profiles, test, event, account, ad_account, sync, 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.
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
  :'account' => :'account',
@@ -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
  :'account' => :'WebhookAdsSyncAccount',
@@ -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
  account == o.account &&
@@ -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, account, ad_account, sync, timestamp].hash
299
+ [id, profiles, test, event, account, ad_account, sync, 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
 
@@ -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' => :'WebhookPayloadAccountConnectedAccount',
@@ -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