zernio-sdk 0.0.1605 → 0.0.1606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/docs/OAuthAppWebhook.md +1 -1
- data/docs/OAuthAppWebhookObject.md +15 -0
- data/lib/zernio-sdk/models/o_auth_app_webhook.rb +6 -9
- data/lib/zernio-sdk/models/o_auth_app_webhook_object.rb +40 -0
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +1 -0
- data/openapi.yaml +1 -1
- data/spec/models/o_auth_app_webhook_object_spec.rb +30 -0
- data/spec/models/o_auth_app_webhook_spec.rb +0 -4
- metadata +5 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c3dbe2c75b8d6ab54850929fd5592081dffcad031a6a99e7c94a61e82a76bb7
|
|
4
|
+
data.tar.gz: f180d9f7e4518ed7b45edc22c864c78853fe47a332089081b45ff5dc1a647e8d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 06bf010b3b0f4919c05c507c4012c75c9fbc6f1751607c000f812d1354f5f990c86dadcdbb084d00da4b867ac9298682e3bc55c10e50f455cfb9d6e788937a67
|
|
7
|
+
data.tar.gz: 6a9c72d498a3d6d01afa8dcfd09a84351b532008617926341344eb758f36476d5adea832f546c72d97a1ba58250d5d8e7fbcbb5f65fc985e1a7bb570a5f62cc0
|
data/README.md
CHANGED
|
@@ -3081,6 +3081,7 @@ Class | Method | HTTP request | Description
|
|
|
3081
3081
|
- [Zernio::OAuthAppSetup](docs/OAuthAppSetup.md)
|
|
3082
3082
|
- [Zernio::OAuthAppSetupScopeAreasInner](docs/OAuthAppSetupScopeAreasInner.md)
|
|
3083
3083
|
- [Zernio::OAuthAppWebhook](docs/OAuthAppWebhook.md)
|
|
3084
|
+
- [Zernio::OAuthAppWebhookObject](docs/OAuthAppWebhookObject.md)
|
|
3084
3085
|
- [Zernio::OnBrandedCallingIdentityActionRequiredRequest](docs/OnBrandedCallingIdentityActionRequiredRequest.md)
|
|
3085
3086
|
- [Zernio::OnBrandedCallingIdentityActionRequiredRequestIdentity](docs/OnBrandedCallingIdentityActionRequiredRequestIdentity.md)
|
|
3086
3087
|
- [Zernio::OnBrandedCallingIdentityStatusUpdatedRequest](docs/OnBrandedCallingIdentityStatusUpdatedRequest.md)
|
data/docs/OAuthAppWebhook.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **callback_url** | **String** | | |
|
|
8
8
|
| **verify_token** | **String** | | |
|
|
9
|
-
| **object** | **
|
|
9
|
+
| **object** | [**OAuthAppWebhookObject**](OAuthAppWebhookObject.md) | | |
|
|
10
10
|
| **fields** | **Array<String>** | Subscribe the app to these fields. | |
|
|
11
11
|
|
|
12
12
|
## Example
|
|
@@ -20,7 +20,6 @@ module Zernio
|
|
|
20
20
|
|
|
21
21
|
attr_accessor :verify_token
|
|
22
22
|
|
|
23
|
-
# The webhook object to configure.
|
|
24
23
|
attr_accessor :object
|
|
25
24
|
|
|
26
25
|
# Subscribe the app to these fields.
|
|
@@ -73,7 +72,7 @@ module Zernio
|
|
|
73
72
|
{
|
|
74
73
|
:'callback_url' => :'String',
|
|
75
74
|
:'verify_token' => :'String',
|
|
76
|
-
:'object' => :'
|
|
75
|
+
:'object' => :'OAuthAppWebhookObject',
|
|
77
76
|
:'fields' => :'Array<String>'
|
|
78
77
|
}
|
|
79
78
|
end
|
|
@@ -158,8 +157,6 @@ module Zernio
|
|
|
158
157
|
return false if @callback_url.nil?
|
|
159
158
|
return false if @verify_token.nil?
|
|
160
159
|
return false if @object.nil?
|
|
161
|
-
object_validator = EnumAttributeValidator.new('String', ["page", "instagram"])
|
|
162
|
-
return false unless object_validator.valid?(@object)
|
|
163
160
|
return false if @fields.nil?
|
|
164
161
|
true
|
|
165
162
|
end
|
|
@@ -184,13 +181,13 @@ module Zernio
|
|
|
184
181
|
@verify_token = verify_token
|
|
185
182
|
end
|
|
186
183
|
|
|
187
|
-
# Custom attribute writer method
|
|
188
|
-
# @param [Object] object
|
|
184
|
+
# Custom attribute writer method with validation
|
|
185
|
+
# @param [Object] object Value to be assigned
|
|
189
186
|
def object=(object)
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
fail ArgumentError, "invalid value for \"object\", must be one of #{validator.allowable_values}."
|
|
187
|
+
if object.nil?
|
|
188
|
+
fail ArgumentError, 'object cannot be nil'
|
|
193
189
|
end
|
|
190
|
+
|
|
194
191
|
@object = object
|
|
195
192
|
end
|
|
196
193
|
|
|
@@ -0,0 +1,40 @@
|
|
|
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.393.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 OAuthAppWebhookObject
|
|
18
|
+
PAGE = "page".freeze
|
|
19
|
+
INSTAGRAM = "instagram".freeze
|
|
20
|
+
|
|
21
|
+
def self.all_vars
|
|
22
|
+
@all_vars ||= [PAGE, INSTAGRAM].freeze
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# Builds the enum from string
|
|
26
|
+
# @param [String] The enum value in the form of the string
|
|
27
|
+
# @return [String] The enum value
|
|
28
|
+
def self.build_from_hash(value)
|
|
29
|
+
new.build_from_hash(value)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Builds the enum from string
|
|
33
|
+
# @param [String] The enum value in the form of the string
|
|
34
|
+
# @return [String] The enum value
|
|
35
|
+
def build_from_hash(value)
|
|
36
|
+
return value if OAuthAppWebhookObject.all_vars.include?(value)
|
|
37
|
+
raise "Invalid ENUM value #{value} for class #OAuthAppWebhookObject"
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
data/lib/zernio-sdk/version.rb
CHANGED
data/lib/zernio-sdk.rb
CHANGED
|
@@ -1947,6 +1947,7 @@ require 'zernio-sdk/models/o_auth_app'
|
|
|
1947
1947
|
require 'zernio-sdk/models/o_auth_app_setup'
|
|
1948
1948
|
require 'zernio-sdk/models/o_auth_app_setup_scope_areas_inner'
|
|
1949
1949
|
require 'zernio-sdk/models/o_auth_app_webhook'
|
|
1950
|
+
require 'zernio-sdk/models/o_auth_app_webhook_object'
|
|
1950
1951
|
require 'zernio-sdk/models/on_branded_calling_identity_action_required_request'
|
|
1951
1952
|
require 'zernio-sdk/models/on_branded_calling_identity_action_required_request_identity'
|
|
1952
1953
|
require 'zernio-sdk/models/on_branded_calling_identity_status_updated_request'
|