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
@@ -0,0 +1,176 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema). Request ids: responses carry an X-Request-Id header with the id we log the request under. Quote it when reporting a problem. A valid x-request-id you send is reused as that id.
5
+
6
+ The version of the OpenAPI document: 1.259.0
7
+ Contact: support@zernio.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Zernio
17
+ class WebhookProfilesInner < ApiModelBase
18
+ attr_accessor :id
19
+
20
+ attr_accessor :external_id
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'id' => :'id',
26
+ :'external_id' => :'externalId'
27
+ }
28
+ end
29
+
30
+ # Returns attribute mapping this model knows about
31
+ def self.acceptable_attribute_map
32
+ attribute_map
33
+ end
34
+
35
+ # Returns all the JSON keys this model knows about
36
+ def self.acceptable_attributes
37
+ acceptable_attribute_map.values
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.openapi_types
42
+ {
43
+ :'id' => :'String',
44
+ :'external_id' => :'String'
45
+ }
46
+ end
47
+
48
+ # List of attributes with nullable: true
49
+ def self.openapi_nullable
50
+ Set.new([
51
+ :'external_id'
52
+ ])
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param [Hash] attributes Model attributes in the form of hash
57
+ def initialize(attributes = {})
58
+ if (!attributes.is_a?(Hash))
59
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::WebhookProfilesInner` initialize method"
60
+ end
61
+
62
+ # check to see if the attribute exists and convert string to symbol for hash key
63
+ acceptable_attribute_map = self.class.acceptable_attribute_map
64
+ attributes = attributes.each_with_object({}) { |(k, v), h|
65
+ if (!acceptable_attribute_map.key?(k.to_sym))
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::WebhookProfilesInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
67
+ end
68
+ h[k.to_sym] = v
69
+ }
70
+
71
+ if attributes.key?(:'id')
72
+ self.id = attributes[:'id']
73
+ else
74
+ self.id = nil
75
+ end
76
+
77
+ if attributes.key?(:'external_id')
78
+ self.external_id = attributes[:'external_id']
79
+ else
80
+ self.external_id = nil
81
+ end
82
+ end
83
+
84
+ # Show invalid properties with the reasons. Usually used together with valid?
85
+ # @return Array for valid properties with the reasons
86
+ def list_invalid_properties
87
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
88
+ invalid_properties = Array.new
89
+ if @id.nil?
90
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
91
+ end
92
+
93
+ invalid_properties
94
+ end
95
+
96
+ # Check to see if the all the properties in the model are valid
97
+ # @return true if the model is valid
98
+ def valid?
99
+ warn '[DEPRECATED] the `valid?` method is obsolete'
100
+ return false if @id.nil?
101
+ true
102
+ end
103
+
104
+ # Custom attribute writer method with validation
105
+ # @param [Object] id Value to be assigned
106
+ def id=(id)
107
+ if id.nil?
108
+ fail ArgumentError, 'id cannot be nil'
109
+ end
110
+
111
+ @id = id
112
+ end
113
+
114
+ # Checks equality by comparing each attribute.
115
+ # @param [Object] Object to be compared
116
+ def ==(o)
117
+ return true if self.equal?(o)
118
+ self.class == o.class &&
119
+ id == o.id &&
120
+ external_id == o.external_id
121
+ end
122
+
123
+ # @see the `==` method
124
+ # @param [Object] Object to be compared
125
+ def eql?(o)
126
+ self == o
127
+ end
128
+
129
+ # Calculates hash code according to all attributes.
130
+ # @return [Integer] Hash code
131
+ def hash
132
+ [id, external_id].hash
133
+ end
134
+
135
+ # Builds the object from hash
136
+ # @param [Hash] attributes Model attributes in the form of hash
137
+ # @return [Object] Returns the model itself
138
+ def self.build_from_hash(attributes)
139
+ return nil unless attributes.is_a?(Hash)
140
+ attributes = attributes.transform_keys(&:to_sym)
141
+ transformed_hash = {}
142
+ openapi_types.each_pair do |key, type|
143
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
144
+ transformed_hash["#{key}"] = nil
145
+ elsif type =~ /\AArray<(.*)>/i
146
+ # check to ensure the input is an array given that the attribute
147
+ # is documented as an array but the input is not
148
+ if attributes[attribute_map[key]].is_a?(Array)
149
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
150
+ end
151
+ elsif !attributes[attribute_map[key]].nil?
152
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
153
+ end
154
+ end
155
+ new(transformed_hash)
156
+ end
157
+
158
+ # Returns the object in the form of hash
159
+ # @return [Hash] Returns the object in the form of hash
160
+ def to_hash
161
+ hash = {}
162
+ self.class.attribute_map.each_pair do |attr, param|
163
+ value = self.send(attr)
164
+ if value.nil?
165
+ is_nullable = self.class.openapi_nullable.include?(attr)
166
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
167
+ end
168
+
169
+ hash[param] = _to_hash(value)
170
+ end
171
+ hash
172
+ end
173
+
174
+ end
175
+
176
+ end
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.1372'
14
+ VERSION = '0.0.1373'
15
15
  end
data/lib/zernio-sdk.rb CHANGED
@@ -2658,6 +2658,7 @@ require 'zernio-sdk/models/webhook_payload_workflow_run_conversation'
2658
2658
  require 'zernio-sdk/models/webhook_payload_workflow_run_execution'
2659
2659
  require 'zernio-sdk/models/webhook_payload_workflow_run_trigger'
2660
2660
  require 'zernio-sdk/models/webhook_payload_workflow_run_workflow'
2661
+ require 'zernio-sdk/models/webhook_profiles_inner'
2661
2662
  require 'zernio-sdk/models/whats_app_billing_conversation'
2662
2663
  require 'zernio-sdk/models/whats_app_body_component'
2663
2664
  require 'zernio-sdk/models/whats_app_body_component_example'