ding_sdk 0.14.2 → 0.14.4
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/lib/crystalline/metadata_fields.rb +5 -5
- data/lib/crystalline/utils.rb +2 -6
- data/lib/ding_sdk/ding.rb +4 -4
- data/lib/ding_sdk/lookup.rb +17 -18
- data/lib/ding_sdk/models/errors/apierror.rb +38 -0
- data/lib/ding_sdk/models/errors/code.rb +41 -0
- data/lib/ding_sdk/models/errors/errorresponse.rb +41 -0
- data/lib/ding_sdk/models/errors.rb +14 -0
- data/lib/ding_sdk/models/operations/check_response.rb +34 -35
- data/lib/ding_sdk/models/operations/create_authentication_response.rb +34 -35
- data/lib/ding_sdk/models/operations/feedback_response.rb +34 -35
- data/lib/ding_sdk/models/operations/getauthenticationstatus_request.rb +16 -13
- data/lib/ding_sdk/models/operations/getauthenticationstatus_response.rb +34 -35
- data/lib/ding_sdk/models/operations/lookup_request.rb +22 -19
- data/lib/ding_sdk/models/operations/lookup_response.rb +34 -35
- data/lib/ding_sdk/models/operations/retry_response.rb +34 -35
- data/lib/ding_sdk/models/operations/type.rb +7 -5
- data/lib/ding_sdk/models/operations.rb +12 -10
- data/lib/ding_sdk/models/shared/attempt.rb +50 -47
- data/lib/ding_sdk/models/shared/authenticationstatusresponse.rb +46 -43
- data/lib/ding_sdk/models/shared/authenticationstatusresponse_device_type.rb +12 -10
- data/lib/ding_sdk/models/shared/authenticationstatusresponse_schemas_events_type.rb +11 -9
- data/lib/ding_sdk/models/shared/authenticationstatusresponse_schemas_status.rb +18 -16
- data/lib/ding_sdk/models/shared/authenticationstatusresponse_schemas_type.rb +11 -9
- data/lib/ding_sdk/models/shared/authenticationstatusresponse_status.rb +18 -16
- data/lib/ding_sdk/models/shared/authenticationstatusresponse_type.rb +11 -9
- data/lib/ding_sdk/models/shared/balance_update.rb +34 -31
- data/lib/ding_sdk/models/shared/balance_update_type.rb +13 -11
- data/lib/ding_sdk/models/shared/capability.rb +11 -9
- data/lib/ding_sdk/models/shared/check.rb +38 -35
- data/lib/ding_sdk/models/shared/checkstatus.rb +22 -20
- data/lib/ding_sdk/models/shared/createauthenticationrequest.rb +73 -70
- data/lib/ding_sdk/models/shared/createauthenticationresponse.rb +38 -35
- data/lib/ding_sdk/models/shared/createcheckrequest.rb +30 -27
- data/lib/ding_sdk/models/shared/createcheckresponse.rb +20 -17
- data/lib/ding_sdk/models/shared/delivery_status.rb +48 -45
- data/lib/ding_sdk/models/shared/device_type.rb +10 -8
- data/lib/ding_sdk/models/shared/events.rb +12 -9
- data/lib/ding_sdk/models/shared/feedbackrequest.rb +30 -27
- data/lib/ding_sdk/models/shared/feedbackrequest_status.rb +9 -7
- data/lib/ding_sdk/models/shared/feedbackresponse.rb +17 -14
- data/lib/ding_sdk/models/shared/line_type.rb +46 -44
- data/lib/ding_sdk/models/shared/lookupresponse.rb +69 -66
- data/lib/ding_sdk/models/shared/retryauthenticationrequest.rb +26 -23
- data/lib/ding_sdk/models/shared/retryauthenticationresponse.rb +45 -42
- data/lib/ding_sdk/models/shared/retryauthenticationresponse_status.rb +20 -18
- data/lib/ding_sdk/models/shared/security.rb +16 -13
- data/lib/ding_sdk/models/shared/signals.rb +46 -43
- data/lib/ding_sdk/models/shared/status.rb +14 -12
- data/lib/ding_sdk/models/shared/type.rb +11 -9
- data/lib/ding_sdk/models/shared.rb +35 -35
- data/lib/ding_sdk/otp.rb +72 -77
- data/lib/ding_sdk/sdkconfiguration.rb +9 -7
- data/lib/ding_sdk/utils/utils.rb +7 -7
- data/lib/ding_sdk.rb +5 -2
- metadata +6 -4
- data/lib/ding_sdk/models/shared/code.rb +0 -39
- data/lib/ding_sdk/models/shared/errorresponse.rb +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 432db063543e47e267224da8dd6804d40ab8d8853bd833f801fc856dc90b1613
|
4
|
+
data.tar.gz: ae5ee827f8e4e91492c0aea1ca3997de1b65d0d5d24a25e50b1ade55d806c140
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c985933a14a943882d21be0a8a27e4b2efc244dd657de2ad233549e7655ed7b19b9bb2ab0afe5c3f0b68b9cff2da1593286b3385cca59591aebf9cd7ba3ce0b
|
7
|
+
data.tar.gz: 3a1726a5e7f9fcdb786ffc5075dcb2186df6ef975a0e337f4f972dbe2177c7858cffe9734af87bc6176221e64050e66706bb49e4cacaab879fc14a7444560e8d
|
@@ -38,7 +38,7 @@ module Crystalline
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def unmarshal_single(field_type, value, decoder = nil)
|
41
|
-
if field_type.instance_of?(Class) && field_type
|
41
|
+
if field_type.instance_of?(Class) && field_type.include?(::Crystalline::MetadataFields)
|
42
42
|
unmarshalled = field_type.from_dict(value)
|
43
43
|
return unmarshalled
|
44
44
|
elsif field_type.to_s == 'Object'
|
@@ -57,7 +57,7 @@ module Crystalline
|
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
-
sig { params(json_obj: T.any(String, T::Hash[Symbol, String])).returns(
|
60
|
+
sig { params(json_obj: T.any(String, T::Hash[Symbol, String])).returns(Object) }
|
61
61
|
def from_json(json_obj)
|
62
62
|
begin
|
63
63
|
d = JSON.parse(json_obj)
|
@@ -67,7 +67,7 @@ module Crystalline
|
|
67
67
|
from_dict(d)
|
68
68
|
end
|
69
69
|
|
70
|
-
sig { params(d: T::Hash[Symbol, String]).returns(
|
70
|
+
sig { params(d: T::Hash[Symbol, String]).returns(Object) }
|
71
71
|
def from_dict(d)
|
72
72
|
to_build = new
|
73
73
|
|
@@ -122,7 +122,7 @@ module Crystalline
|
|
122
122
|
break
|
123
123
|
end
|
124
124
|
end
|
125
|
-
elsif field_type.instance_of?(Class) && field_type
|
125
|
+
elsif field_type.instance_of?(Class) && field_type.include?(::Crystalline::MetadataFields)
|
126
126
|
unmarshalled = Crystalline.unmarshal_json(value, field_type)
|
127
127
|
to_build.send(key, unmarshalled)
|
128
128
|
else
|
@@ -157,7 +157,7 @@ module Crystalline
|
|
157
157
|
end
|
158
158
|
|
159
159
|
def marshal_single(field)
|
160
|
-
if field.
|
160
|
+
if field.class.include? ::Crystalline::MetadataFields
|
161
161
|
field.to_dict
|
162
162
|
else
|
163
163
|
::Crystalline.val_to_string(field, primitives: false)
|
data/lib/crystalline/utils.rb
CHANGED
@@ -8,17 +8,13 @@ require 'sorbet-runtime'
|
|
8
8
|
module Crystalline
|
9
9
|
extend T::Sig
|
10
10
|
|
11
|
-
class FieldAugmented
|
12
|
-
include MetadataFields
|
13
|
-
end
|
14
|
-
|
15
11
|
sig { params(complex: Object).returns(Object) }
|
16
12
|
def self.to_dict(complex)
|
17
13
|
if complex.is_a? Array
|
18
14
|
complex.map { |v| Crystalline.to_dict(v) }
|
19
15
|
elsif complex.is_a? Hash
|
20
16
|
complex.transform_values { |v| Crystalline.to_dict(v) }
|
21
|
-
elsif complex.
|
17
|
+
elsif complex.respond_to?(:class) && complex.class.include?(::Crystalline::MetadataFields)
|
22
18
|
complex.to_dict
|
23
19
|
else
|
24
20
|
val_to_string complex, primitives: false
|
@@ -34,7 +30,7 @@ module Crystalline
|
|
34
30
|
if T.simplifiable? type
|
35
31
|
type = T.simplify_type type
|
36
32
|
end
|
37
|
-
if type.instance_of?(Class) && type
|
33
|
+
if type.instance_of?(Class) && type.include?(::Crystalline::MetadataFields)
|
38
34
|
type.from_dict(data)
|
39
35
|
elsif T.arr? type
|
40
36
|
data.map { |v| Crystalline.unmarshal_json(v, T.arr_of(type)) }
|
data/lib/ding_sdk/ding.rb
CHANGED
@@ -23,8 +23,8 @@ module DingSDK
|
|
23
23
|
client: T.nilable(Faraday::Connection),
|
24
24
|
retry_config: T.nilable(::DingSDK::Utils::RetryConfig),
|
25
25
|
timeout_ms: T.nilable(Integer),
|
26
|
-
security: T.nilable(::
|
27
|
-
security_source: T.nilable(T.proc.returns(::
|
26
|
+
security: T.nilable(Models::Shared::Security),
|
27
|
+
security_source: T.nilable(T.proc.returns(Models::Shared::Security)),
|
28
28
|
server_idx: T.nilable(Integer),
|
29
29
|
server_url: T.nilable(String),
|
30
30
|
url_params: T.nilable(T::Hash[Symbol, String])
|
@@ -35,8 +35,8 @@ module DingSDK
|
|
35
35
|
# @param [T.nilable(Faraday::Connection)] client The faraday HTTP client to use for all operations
|
36
36
|
# @param [T.nilable(::DingSDK::Utils::RetryConfig)] retry_config The retry configuration to use for all operations
|
37
37
|
# @param [T.nilable(Integer)] timeout_ms Request timeout in milliseconds for all operations
|
38
|
-
# @param [T.nilable(::
|
39
|
-
# @param [T.proc.returns(T.nilable(::
|
38
|
+
# @param [T.nilable(Models::Shared::Security)] security: The security details required for authentication
|
39
|
+
# @param [T.proc.returns(T.nilable(Models::Shared::Security))] security_source: A function that returns security details required for authentication
|
40
40
|
# @param [T.nilable(::Integer)] server_idx The index of the server to use for all operations
|
41
41
|
# @param [T.nilable(::String)] server_url The server URL to use for all operations
|
42
42
|
# @param [T.nilable(::Hash<::Symbol, ::String>)] url_params Parameters to optionally template the server URL with
|
data/lib/ding_sdk/lookup.rb
CHANGED
@@ -22,10 +22,11 @@ module DingSDK
|
|
22
22
|
end
|
23
23
|
|
24
24
|
|
25
|
-
sig { params(customer_uuid: ::String, phone_number: ::String, type: T.nilable(T::Array[::
|
25
|
+
sig { params(customer_uuid: ::String, phone_number: ::String, type: T.nilable(T::Array[Models::Operations::Type]), timeout_ms: T.nilable(Integer)).returns(Models::Operations::LookupResponse) }
|
26
26
|
def lookup(customer_uuid, phone_number, type = nil, timeout_ms = nil)
|
27
27
|
# lookup - Look up for phone number
|
28
|
-
|
28
|
+
# Perform a phone number lookup.
|
29
|
+
request = Models::Operations::LookupRequest.new(
|
29
30
|
|
30
31
|
customer_uuid: customer_uuid,
|
31
32
|
phone_number: phone_number,
|
@@ -34,13 +35,13 @@ module DingSDK
|
|
34
35
|
url, params = @sdk_configuration.get_server_details
|
35
36
|
base_url = Utils.template_url(url, params)
|
36
37
|
url = Utils.generate_url(
|
37
|
-
::
|
38
|
+
Models::Operations::LookupRequest,
|
38
39
|
base_url,
|
39
40
|
'/lookup/{phone_number}',
|
40
41
|
request
|
41
42
|
)
|
42
43
|
headers = Utils.get_headers(request)
|
43
|
-
query_params = Utils.get_query_params(::
|
44
|
+
query_params = Utils.get_query_params(Models::Operations::LookupRequest, request)
|
44
45
|
headers['Accept'] = 'application/json'
|
45
46
|
headers['user-agent'] = @sdk_configuration.user_agent
|
46
47
|
|
@@ -111,8 +112,8 @@ module DingSDK
|
|
111
112
|
),
|
112
113
|
response: http_response
|
113
114
|
)
|
114
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), ::
|
115
|
-
response = ::
|
115
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::LookupResponse)
|
116
|
+
response = Models::Operations::LookupResponse.new(
|
116
117
|
status_code: http_response.status,
|
117
118
|
content_type: content_type,
|
118
119
|
raw_response: http_response,
|
@@ -121,7 +122,7 @@ module DingSDK
|
|
121
122
|
|
122
123
|
return response
|
123
124
|
else
|
124
|
-
raise
|
125
|
+
raise ::DingSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
125
126
|
end
|
126
127
|
elsif Utils.match_status_code(http_response.status, ['400'])
|
127
128
|
if Utils.match_content_type(content_type, 'application/json')
|
@@ -131,20 +132,18 @@ module DingSDK
|
|
131
132
|
),
|
132
133
|
response: http_response
|
133
134
|
)
|
134
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), ::
|
135
|
-
|
136
|
-
status_code: http_response.status,
|
137
|
-
content_type: content_type,
|
138
|
-
raw_response: http_response,
|
139
|
-
error_response: obj
|
140
|
-
)
|
141
|
-
|
142
|
-
return response
|
135
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ErrorResponse)
|
136
|
+
throw obj
|
143
137
|
else
|
144
|
-
raise
|
138
|
+
raise ::DingSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
145
139
|
end
|
140
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
141
|
+
raise ::DingSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
142
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
143
|
+
raise ::DingSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
146
144
|
else
|
147
|
-
raise
|
145
|
+
raise ::DingSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
146
|
+
|
148
147
|
end
|
149
148
|
end
|
150
149
|
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
module DingSDK
|
7
|
+
module Models
|
8
|
+
module Errors
|
9
|
+
|
10
|
+
class APIError < StandardError
|
11
|
+
include Crystalline::MetadataFields
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :body, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('body') } }
|
16
|
+
field :raw_response, T.nilable(Faraday::Response), {}
|
17
|
+
field :status_code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('status_code') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(status_code: ::Integer, body: ::String, raw_response: Faraday::Response).void }
|
21
|
+
def initialize(status_code:, body:, raw_response:)
|
22
|
+
@status_code = status_code
|
23
|
+
@body = body
|
24
|
+
@raw_response = raw_response
|
25
|
+
end
|
26
|
+
|
27
|
+
def ==(other)
|
28
|
+
return false unless other.is_a? self.class
|
29
|
+
return false unless @msg == other.msg
|
30
|
+
return false unless @status_code == other.status_code
|
31
|
+
return false unless @body == other.body
|
32
|
+
return false unless @raw_response == other.raw_response
|
33
|
+
true
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module DingSDK
|
8
|
+
module Models
|
9
|
+
module Errors
|
10
|
+
|
11
|
+
# Code - A machine-readable code that describes the error.
|
12
|
+
class Code < T::Enum
|
13
|
+
enums do
|
14
|
+
ACCOUNT_INVALID = new('account_invalid')
|
15
|
+
APP_REALM_REQUIRE_DEVICE_TYPE = new('app_realm_require_device_type')
|
16
|
+
BAD_REQUEST = new('bad_request')
|
17
|
+
BLOCKED_NUMBER = new('blocked_number')
|
18
|
+
DUPLICATED_FEEDBACK_STATUS = new('duplicated_feedback_status')
|
19
|
+
INTERNAL_SERVER_ERROR = new('internal_server_error')
|
20
|
+
INVALID_APP_REALM = new('invalid_app_realm')
|
21
|
+
INVALID_APP_VERSION = new('invalid_app_version')
|
22
|
+
INVALID_AUTH_UUID = new('invalid_auth_uuid')
|
23
|
+
INVALID_DEVICE_ID = new('invalid_device_id')
|
24
|
+
INVALID_DEVICE_MODEL = new('invalid_device_model')
|
25
|
+
INVALID_FEEDBACK_STATUS = new('invalid_feedback_status')
|
26
|
+
INVALID_LINE = new('invalid_line')
|
27
|
+
INVALID_OS_VERSION = new('invalid_os_version')
|
28
|
+
INVALID_PHONE_NUMBER = new('invalid_phone_number')
|
29
|
+
INVALID_SENDER_ID = new('invalid_sender_id')
|
30
|
+
INVALID_TEMPLATE_ID = new('invalid_template_id')
|
31
|
+
NEGATIVE_BALANCE = new('negative_balance')
|
32
|
+
NO_ASSOCIATED_AUTH_FOUND = new('no_associated_auth_found')
|
33
|
+
SUSPENDED_ACCOUNT = new('suspended_account')
|
34
|
+
UNAUTHORIZED_SENDER_ID = new('unauthorized_sender_id')
|
35
|
+
UNSUPPORTED_APP_REALM_DEVICE_TYPE = new('unsupported_app_realm_device_type')
|
36
|
+
UNSUPPORTED_REGION = new('unsupported_region')
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module DingSDK
|
8
|
+
module Models
|
9
|
+
module Errors
|
10
|
+
|
11
|
+
|
12
|
+
class ErrorResponse
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
# A machine-readable code that describes the error.
|
17
|
+
field :code, T.nilable(Models::Errors::Code), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('code'), 'decoder': Utils.enum_from_string(Models::Errors::Code, true) } }
|
18
|
+
# A link to the documentation that describes the error.
|
19
|
+
field :doc_url, T.nilable(::String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('doc_url') } }
|
20
|
+
# A human-readable message that describes the error.
|
21
|
+
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('message') } }
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(code: T.nilable(Models::Errors::Code), doc_url: T.nilable(::String), message: T.nilable(::String)).void }
|
25
|
+
def initialize(code: nil, doc_url: nil, message: nil)
|
26
|
+
@code = code
|
27
|
+
@doc_url = doc_url
|
28
|
+
@message = message
|
29
|
+
end
|
30
|
+
|
31
|
+
def ==(other)
|
32
|
+
return false unless other.is_a? self.class
|
33
|
+
return false unless @code == other.code
|
34
|
+
return false unless @doc_url == other.doc_url
|
35
|
+
return false unless @message == other.message
|
36
|
+
true
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
module DingSDK
|
7
|
+
module Models
|
8
|
+
module Errors
|
9
|
+
autoload :APIError, 'ding_sdk/models/errors/apierror.rb'
|
10
|
+
autoload :ErrorResponse, 'ding_sdk/models/errors/errorresponse.rb'
|
11
|
+
autoload :Code, 'ding_sdk/models/errors/code.rb'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -5,41 +5,40 @@
|
|
5
5
|
|
6
6
|
|
7
7
|
module DingSDK
|
8
|
-
module
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
true
|
8
|
+
module Models
|
9
|
+
module Operations
|
10
|
+
|
11
|
+
|
12
|
+
class CheckResponse
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
# HTTP response content type for this operation
|
17
|
+
field :content_type, ::String
|
18
|
+
# Raw HTTP response; suitable for custom response parsing
|
19
|
+
field :raw_response, ::Faraday::Response
|
20
|
+
# HTTP response status code for this operation
|
21
|
+
field :status_code, ::Integer
|
22
|
+
# OK
|
23
|
+
field :create_check_response, T.nilable(Models::Shared::CreateCheckResponse)
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, create_check_response: T.nilable(Models::Shared::CreateCheckResponse)).void }
|
27
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, create_check_response: nil)
|
28
|
+
@content_type = content_type
|
29
|
+
@raw_response = raw_response
|
30
|
+
@status_code = status_code
|
31
|
+
@create_check_response = create_check_response
|
32
|
+
end
|
33
|
+
|
34
|
+
def ==(other)
|
35
|
+
return false unless other.is_a? self.class
|
36
|
+
return false unless @content_type == other.content_type
|
37
|
+
return false unless @raw_response == other.raw_response
|
38
|
+
return false unless @status_code == other.status_code
|
39
|
+
return false unless @create_check_response == other.create_check_response
|
40
|
+
true
|
41
|
+
end
|
43
42
|
end
|
44
43
|
end
|
45
44
|
end
|
@@ -5,41 +5,40 @@
|
|
5
5
|
|
6
6
|
|
7
7
|
module DingSDK
|
8
|
-
module
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
true
|
8
|
+
module Models
|
9
|
+
module Operations
|
10
|
+
|
11
|
+
|
12
|
+
class CreateAuthenticationResponse
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
# HTTP response content type for this operation
|
17
|
+
field :content_type, ::String
|
18
|
+
# Raw HTTP response; suitable for custom response parsing
|
19
|
+
field :raw_response, ::Faraday::Response
|
20
|
+
# HTTP response status code for this operation
|
21
|
+
field :status_code, ::Integer
|
22
|
+
# OK
|
23
|
+
field :create_authentication_response, T.nilable(Models::Shared::CreateAuthenticationResponse)
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, create_authentication_response: T.nilable(Models::Shared::CreateAuthenticationResponse)).void }
|
27
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, create_authentication_response: nil)
|
28
|
+
@content_type = content_type
|
29
|
+
@raw_response = raw_response
|
30
|
+
@status_code = status_code
|
31
|
+
@create_authentication_response = create_authentication_response
|
32
|
+
end
|
33
|
+
|
34
|
+
def ==(other)
|
35
|
+
return false unless other.is_a? self.class
|
36
|
+
return false unless @content_type == other.content_type
|
37
|
+
return false unless @raw_response == other.raw_response
|
38
|
+
return false unless @status_code == other.status_code
|
39
|
+
return false unless @create_authentication_response == other.create_authentication_response
|
40
|
+
true
|
41
|
+
end
|
43
42
|
end
|
44
43
|
end
|
45
44
|
end
|
@@ -5,41 +5,40 @@
|
|
5
5
|
|
6
6
|
|
7
7
|
module DingSDK
|
8
|
-
module
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
true
|
8
|
+
module Models
|
9
|
+
module Operations
|
10
|
+
|
11
|
+
|
12
|
+
class FeedbackResponse
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
# HTTP response content type for this operation
|
17
|
+
field :content_type, ::String
|
18
|
+
# Raw HTTP response; suitable for custom response parsing
|
19
|
+
field :raw_response, ::Faraday::Response
|
20
|
+
# HTTP response status code for this operation
|
21
|
+
field :status_code, ::Integer
|
22
|
+
# OK
|
23
|
+
field :feedback_response, T.nilable(Models::Shared::FeedbackResponse)
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, feedback_response: T.nilable(Models::Shared::FeedbackResponse)).void }
|
27
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, feedback_response: nil)
|
28
|
+
@content_type = content_type
|
29
|
+
@raw_response = raw_response
|
30
|
+
@status_code = status_code
|
31
|
+
@feedback_response = feedback_response
|
32
|
+
end
|
33
|
+
|
34
|
+
def ==(other)
|
35
|
+
return false unless other.is_a? self.class
|
36
|
+
return false unless @content_type == other.content_type
|
37
|
+
return false unless @raw_response == other.raw_response
|
38
|
+
return false unless @status_code == other.status_code
|
39
|
+
return false unless @feedback_response == other.feedback_response
|
40
|
+
true
|
41
|
+
end
|
43
42
|
end
|
44
43
|
end
|
45
44
|
end
|
@@ -5,25 +5,28 @@
|
|
5
5
|
|
6
6
|
|
7
7
|
module DingSDK
|
8
|
-
module
|
9
|
-
|
8
|
+
module Models
|
9
|
+
module Operations
|
10
|
+
|
10
11
|
|
11
|
-
|
12
|
-
|
12
|
+
class GetAuthenticationStatusRequest
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
13
15
|
|
14
16
|
|
15
|
-
|
17
|
+
field :auth_uuid, ::String, { 'path_param': { 'field_name': 'auth_uuid', 'style': 'simple', 'explode': false } }
|
16
18
|
|
17
19
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
20
|
+
sig { params(auth_uuid: ::String).void }
|
21
|
+
def initialize(auth_uuid: nil)
|
22
|
+
@auth_uuid = auth_uuid
|
23
|
+
end
|
22
24
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
25
|
+
def ==(other)
|
26
|
+
return false unless other.is_a? self.class
|
27
|
+
return false unless @auth_uuid == other.auth_uuid
|
28
|
+
true
|
29
|
+
end
|
27
30
|
end
|
28
31
|
end
|
29
32
|
end
|