ding_sdk 0.14.2 → 0.14.3
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
@@ -5,41 +5,44 @@
|
|
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
|
-
|
8
|
+
module Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
# A successful response to an authentication creation request.
|
12
|
+
class CreateAuthenticationResponse
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
# A unique identifier for the authentication that you can use on the /check and /retry endpoints.
|
17
|
+
field :authentication_uuid, T.nilable(::String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('authentication_uuid') } }
|
18
|
+
|
19
|
+
field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
20
|
+
# The time at which the authentication expires and can no longer be checked or retried.
|
21
|
+
field :expires_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('expires_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
22
|
+
# The status of the authentication. Possible values are:
|
23
|
+
# * `pending` - The OTP code is being sent.
|
24
|
+
# * `rate_limited` - This user is rate-limited and cannot receive another code.
|
25
|
+
# * `spam_detected` - This attempt is flagged as spam. Go to the dashboard for more details.
|
26
|
+
#
|
27
|
+
field :status, T.nilable(Models::Shared::Status), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('status'), 'decoder': Utils.enum_from_string(Models::Shared::Status, true) } }
|
28
|
+
|
29
|
+
|
30
|
+
sig { params(authentication_uuid: T.nilable(::String), created_at: T.nilable(::DateTime), expires_at: T.nilable(::DateTime), status: T.nilable(Models::Shared::Status)).void }
|
31
|
+
def initialize(authentication_uuid: nil, created_at: nil, expires_at: nil, status: nil)
|
32
|
+
@authentication_uuid = authentication_uuid
|
33
|
+
@created_at = created_at
|
34
|
+
@expires_at = expires_at
|
35
|
+
@status = status
|
36
|
+
end
|
37
|
+
|
38
|
+
def ==(other)
|
39
|
+
return false unless other.is_a? self.class
|
40
|
+
return false unless @authentication_uuid == other.authentication_uuid
|
41
|
+
return false unless @created_at == other.created_at
|
42
|
+
return false unless @expires_at == other.expires_at
|
43
|
+
return false unless @status == other.status
|
44
|
+
true
|
45
|
+
end
|
43
46
|
end
|
44
47
|
end
|
45
48
|
end
|
@@ -5,33 +5,36 @@
|
|
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
|
-
|
8
|
+
module Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
|
12
|
+
class CreateCheckRequest
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
# The authentication UUID that was returned when you created the authentication.
|
17
|
+
field :authentication_uuid, ::String, { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('authentication_uuid') } }
|
18
|
+
# The code that the user entered.
|
19
|
+
field :check_code, ::String, { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('check_code') } }
|
20
|
+
# Your customer UUID, which can be found in the API settings in the Dashboard.
|
21
|
+
field :customer_uuid, ::String, { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('customer_uuid') } }
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(authentication_uuid: ::String, check_code: ::String, customer_uuid: ::String).void }
|
25
|
+
def initialize(authentication_uuid: nil, check_code: nil, customer_uuid: nil)
|
26
|
+
@authentication_uuid = authentication_uuid
|
27
|
+
@check_code = check_code
|
28
|
+
@customer_uuid = customer_uuid
|
29
|
+
end
|
30
|
+
|
31
|
+
def ==(other)
|
32
|
+
return false unless other.is_a? self.class
|
33
|
+
return false unless @authentication_uuid == other.authentication_uuid
|
34
|
+
return false unless @check_code == other.check_code
|
35
|
+
return false unless @customer_uuid == other.customer_uuid
|
36
|
+
true
|
37
|
+
end
|
35
38
|
end
|
36
39
|
end
|
37
40
|
end
|
@@ -5,29 +5,32 @@
|
|
5
5
|
|
6
6
|
|
7
7
|
module DingSDK
|
8
|
-
module
|
9
|
-
|
8
|
+
module Models
|
9
|
+
module Shared
|
10
|
+
|
10
11
|
|
11
|
-
|
12
|
-
|
12
|
+
class CreateCheckResponse
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
13
15
|
|
14
|
-
|
15
|
-
|
16
|
+
# The UUID of the corresponding authentication.
|
17
|
+
field :authentication_uuid, T.nilable(::String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('authentication_uuid') } }
|
16
18
|
|
17
|
-
|
19
|
+
field :status, T.nilable(Models::Shared::CheckStatus), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('status'), 'decoder': Utils.enum_from_string(Models::Shared::CheckStatus, true) } }
|
18
20
|
|
19
21
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
22
|
+
sig { params(authentication_uuid: T.nilable(::String), status: T.nilable(Models::Shared::CheckStatus)).void }
|
23
|
+
def initialize(authentication_uuid: nil, status: nil)
|
24
|
+
@authentication_uuid = authentication_uuid
|
25
|
+
@status = status
|
26
|
+
end
|
25
27
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
def ==(other)
|
29
|
+
return false unless other.is_a? self.class
|
30
|
+
return false unless @authentication_uuid == other.authentication_uuid
|
31
|
+
return false unless @status == other.status
|
32
|
+
true
|
33
|
+
end
|
31
34
|
end
|
32
35
|
end
|
33
36
|
end
|
@@ -5,51 +5,54 @@
|
|
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
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
8
|
+
module Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
|
12
|
+
class DeliveryStatus
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
# The ID of the attempt.
|
17
|
+
field :attempt_id, T.nilable(::String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('attempt_id') } }
|
18
|
+
# The attempt number.
|
19
|
+
field :attempt_number, T.nilable(::Integer), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('attempt_number') } }
|
20
|
+
|
21
|
+
field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
22
|
+
# The date and time from the provider.
|
23
|
+
field :originated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('originated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
24
|
+
# The status of the delivery. Possible values are:
|
25
|
+
# * `unknown` - The status of the delivery is unknown.
|
26
|
+
# * `submitted` - The message has been submitted to the carrier.
|
27
|
+
# * `in_transit` - The message is in transit to the recipient.
|
28
|
+
# * `delivered` - The message has been delivered to the recipient.
|
29
|
+
# * `undeliverable` - The message could not be delivered to the recipient.
|
30
|
+
#
|
31
|
+
field :status, T.nilable(Models::Shared::AuthenticationStatusResponseStatus), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('status'), 'decoder': Utils.enum_from_string(Models::Shared::AuthenticationStatusResponseStatus, true) } }
|
32
|
+
# The type of the event.
|
33
|
+
field :type, T.nilable(Models::Shared::AuthenticationStatusResponseSchemasType), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(Models::Shared::AuthenticationStatusResponseSchemasType, true) } }
|
34
|
+
|
35
|
+
|
36
|
+
sig { params(attempt_id: T.nilable(::String), attempt_number: T.nilable(::Integer), created_at: T.nilable(::DateTime), originated_at: T.nilable(::DateTime), status: T.nilable(Models::Shared::AuthenticationStatusResponseStatus), type: T.nilable(Models::Shared::AuthenticationStatusResponseSchemasType)).void }
|
37
|
+
def initialize(attempt_id: nil, attempt_number: nil, created_at: nil, originated_at: nil, status: nil, type: nil)
|
38
|
+
@attempt_id = attempt_id
|
39
|
+
@attempt_number = attempt_number
|
40
|
+
@created_at = created_at
|
41
|
+
@originated_at = originated_at
|
42
|
+
@status = status
|
43
|
+
@type = type
|
44
|
+
end
|
45
|
+
|
46
|
+
def ==(other)
|
47
|
+
return false unless other.is_a? self.class
|
48
|
+
return false unless @attempt_id == other.attempt_id
|
49
|
+
return false unless @attempt_number == other.attempt_number
|
50
|
+
return false unless @created_at == other.created_at
|
51
|
+
return false unless @originated_at == other.originated_at
|
52
|
+
return false unless @status == other.status
|
53
|
+
return false unless @type == other.type
|
54
|
+
true
|
55
|
+
end
|
53
56
|
end
|
54
57
|
end
|
55
58
|
end
|
@@ -5,14 +5,16 @@
|
|
5
5
|
|
6
6
|
|
7
7
|
module DingSDK
|
8
|
-
module
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
8
|
+
module Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
# DeviceType - The type of device the user is using.
|
12
|
+
class DeviceType < T::Enum
|
13
|
+
enums do
|
14
|
+
IOS = new('IOS')
|
15
|
+
ANDROID = new('ANDROID')
|
16
|
+
WEB = new('WEB')
|
17
|
+
end
|
16
18
|
end
|
17
19
|
end
|
18
20
|
end
|
@@ -5,20 +5,23 @@
|
|
5
5
|
|
6
6
|
|
7
7
|
module DingSDK
|
8
|
-
module
|
9
|
-
|
8
|
+
module Models
|
9
|
+
module Shared
|
10
|
+
|
10
11
|
|
11
|
-
|
12
|
-
|
12
|
+
class Events
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
13
15
|
|
14
16
|
|
15
17
|
|
16
|
-
|
17
|
-
|
18
|
+
|
19
|
+
def initialize; end
|
18
20
|
|
19
|
-
|
20
|
-
|
21
|
-
|
21
|
+
def ==(other)
|
22
|
+
return false unless other.is_a? self.class
|
23
|
+
true
|
24
|
+
end
|
22
25
|
end
|
23
26
|
end
|
24
27
|
end
|
@@ -5,33 +5,36 @@
|
|
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
|
-
|
8
|
+
module Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
|
12
|
+
class FeedbackRequest
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
# Your customer UUID, which can be found in the API settings in the dashboard.
|
17
|
+
field :customer_uuid, ::String, { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('customer_uuid') } }
|
18
|
+
# An E.164 formatted phone number.
|
19
|
+
field :phone_number, ::String, { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('phone_number') } }
|
20
|
+
# The type of the feedback.
|
21
|
+
field :status, Models::Shared::FeedbackRequestStatus, { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('status'), 'decoder': Utils.enum_from_string(Models::Shared::FeedbackRequestStatus, false) } }
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(customer_uuid: ::String, phone_number: ::String, status: Models::Shared::FeedbackRequestStatus).void }
|
25
|
+
def initialize(customer_uuid: nil, phone_number: nil, status: nil)
|
26
|
+
@customer_uuid = customer_uuid
|
27
|
+
@phone_number = phone_number
|
28
|
+
@status = status
|
29
|
+
end
|
30
|
+
|
31
|
+
def ==(other)
|
32
|
+
return false unless other.is_a? self.class
|
33
|
+
return false unless @customer_uuid == other.customer_uuid
|
34
|
+
return false unless @phone_number == other.phone_number
|
35
|
+
return false unless @status == other.status
|
36
|
+
true
|
37
|
+
end
|
35
38
|
end
|
36
39
|
end
|
37
40
|
end
|
@@ -5,13 +5,15 @@
|
|
5
5
|
|
6
6
|
|
7
7
|
module DingSDK
|
8
|
-
module
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
8
|
+
module Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
# FeedbackRequestStatus - The type of the feedback.
|
12
|
+
class FeedbackRequestStatus < T::Enum
|
13
|
+
enums do
|
14
|
+
ONBOARDED = new('onboarded')
|
15
|
+
NOT_ONBOARDED = new('not_onboarded')
|
16
|
+
end
|
15
17
|
end
|
16
18
|
end
|
17
19
|
end
|
@@ -5,25 +5,28 @@
|
|
5
5
|
|
6
6
|
|
7
7
|
module DingSDK
|
8
|
-
module
|
9
|
-
|
8
|
+
module Models
|
9
|
+
module Shared
|
10
|
+
|
10
11
|
|
11
|
-
|
12
|
-
|
12
|
+
class FeedbackResponse
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
13
15
|
|
14
|
-
|
15
|
-
|
16
|
+
# The UUID of the feedback.
|
17
|
+
field :uuid, T.nilable(::String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('uuid') } }
|
16
18
|
|
17
19
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
20
|
+
sig { params(uuid: T.nilable(::String)).void }
|
21
|
+
def initialize(uuid: nil)
|
22
|
+
@uuid = 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 @uuid == other.uuid
|
28
|
+
true
|
29
|
+
end
|
27
30
|
end
|
28
31
|
end
|
29
32
|
end
|
@@ -5,50 +5,52 @@
|
|
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
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
8
|
+
module Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
# LineType - The type of phone line.
|
12
|
+
# * `CallingCards` - Numbers that are associated with providers of pre-paid domestic and international calling cards.
|
13
|
+
# * `FixedLine` - Landline phone numbers.
|
14
|
+
# * `InternetServiceProvider` - Numbers reserved for ISPs.
|
15
|
+
# * `LocalRate` - Numbers that can be assigned non-geographically.
|
16
|
+
# * `Mobile` - Mobile phone numbers.
|
17
|
+
# * `Other` - Other types of services.
|
18
|
+
# * `Pager` - Number ranges specifically allocated to paging devices.
|
19
|
+
# * `PayPhone` - Allocated numbers for payphone kiosks in some countries.
|
20
|
+
# * `PremiumRate` - Landline numbers where the calling party pays more than standard.
|
21
|
+
# * `Satellite` - Satellite phone numbers.
|
22
|
+
# * `Service` - Automated applications.
|
23
|
+
# * `SharedCost` - Specific landline ranges where the cost of making the call is shared between the calling and called party.
|
24
|
+
# * `ShortCodesCommercial` - Short codes are memorable, easy-to-use numbers, like the UK's NHS 111, often sold to businesses. Not available in all countries.
|
25
|
+
# * `TollFree` - Number where the called party pays for the cost of the call not the calling party.
|
26
|
+
# * `UniversalAccess` - Number ranges reserved for Universal Access initiatives.
|
27
|
+
# * `Unknown` - Unknown phone number type.
|
28
|
+
# * `VPN` - Numbers are used exclusively within a private telecommunications network, connecting the operator's terminals internally and not accessible via the public telephone network.
|
29
|
+
# * `VoiceMail` - A specific category of Interactive Voice Response (IVR) services.
|
30
|
+
# * `Voip` - Specific ranges for providers of VoIP services to allow incoming calls from the regular telephony network.
|
31
|
+
#
|
32
|
+
class LineType < T::Enum
|
33
|
+
enums do
|
34
|
+
CALLING_CARDS = new('CallingCards')
|
35
|
+
FIXED_LINE = new('FixedLine')
|
36
|
+
INTERNET_SERVICE_PROVIDER = new('InternetServiceProvider')
|
37
|
+
LOCAL_RATE = new('LocalRate')
|
38
|
+
MOBILE = new('Mobile')
|
39
|
+
OTHER = new('Other')
|
40
|
+
PAGER = new('Pager')
|
41
|
+
PAY_PHONE = new('PayPhone')
|
42
|
+
PREMIUM_RATE = new('PremiumRate')
|
43
|
+
SATELLITE = new('Satellite')
|
44
|
+
SERVICE = new('Service')
|
45
|
+
SHARED_COST = new('SharedCost')
|
46
|
+
SHORT_CODES_COMMERCIAL = new('ShortCodesCommercial')
|
47
|
+
TOLL_FREE = new('TollFree')
|
48
|
+
UNIVERSAL_ACCESS = new('UniversalAccess')
|
49
|
+
UNKNOWN = new('Unknown')
|
50
|
+
VPN = new('VPN')
|
51
|
+
VOICE_MAIL = new('VoiceMail')
|
52
|
+
VOIP = new('Voip')
|
53
|
+
end
|
52
54
|
end
|
53
55
|
end
|
54
56
|
end
|