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