prelude-sdk 0.7.0 → 0.8.0

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 (118) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +3 -5
  4. data/lib/prelude_sdk/client.rb +4 -0
  5. data/lib/prelude_sdk/internal/type/base_model.rb +5 -5
  6. data/lib/prelude_sdk/models/intel/kyc_match_params.rb +96 -0
  7. data/lib/prelude_sdk/models/intel/kyc_match_response.rb +305 -0
  8. data/lib/prelude_sdk/models/notify_reply_params.rb +60 -0
  9. data/lib/prelude_sdk/models/notify_reply_response.rb +65 -0
  10. data/lib/prelude_sdk/models/signals.rb +125 -0
  11. data/lib/prelude_sdk/models/target.rb +39 -0
  12. data/lib/prelude_sdk/models/verification/phone/history_list_params.rb +177 -0
  13. data/lib/prelude_sdk/models/verification/phone/history_list_response.rb +286 -0
  14. data/lib/prelude_sdk/models/verification/phone/history_retrieve_params.rb +24 -0
  15. data/lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb +890 -0
  16. data/lib/prelude_sdk/models/verification/phone/phone_verification_carrier.rb +29 -0
  17. data/lib/prelude_sdk/models/verification/phone/phone_verification_money.rb +35 -0
  18. data/lib/prelude_sdk/models/verification/phone/phone_verification_psd2_transaction.rb +29 -0
  19. data/lib/prelude_sdk/models/verification_check_params.rb +3 -38
  20. data/lib/prelude_sdk/models/verification_create_params.rb +6 -161
  21. data/lib/prelude_sdk/models/verification_management/sandbox_add_phone_number_params.rb +37 -0
  22. data/lib/prelude_sdk/models/verification_management/sandbox_add_phone_number_response.rb +27 -0
  23. data/lib/prelude_sdk/models/verification_management/sandbox_delete_phone_number_params.rb +22 -0
  24. data/lib/prelude_sdk/models/verification_management/sandbox_delete_phone_number_response.rb +19 -0
  25. data/lib/prelude_sdk/models/verification_management/sandbox_list_phone_numbers_params.rb +16 -0
  26. data/lib/prelude_sdk/models/verification_management/sandbox_list_phone_numbers_response.rb +47 -0
  27. data/lib/prelude_sdk/models/watch_evaluate_params.rb +68 -0
  28. data/lib/prelude_sdk/models/watch_evaluate_response.rb +266 -0
  29. data/lib/prelude_sdk/models/watch_predict_params.rb +6 -160
  30. data/lib/prelude_sdk/models/watch_send_events_params.rb +3 -38
  31. data/lib/prelude_sdk/models/watch_send_feedbacks_params.rb +3 -38
  32. data/lib/prelude_sdk/models.rb +14 -0
  33. data/lib/prelude_sdk/resources/intel/kyc.rb +62 -0
  34. data/lib/prelude_sdk/resources/intel.rb +20 -0
  35. data/lib/prelude_sdk/resources/notify.rb +35 -0
  36. data/lib/prelude_sdk/resources/verification/phone/history.rb +104 -0
  37. data/lib/prelude_sdk/resources/verification/phone.rb +21 -0
  38. data/lib/prelude_sdk/resources/verification.rb +7 -3
  39. data/lib/prelude_sdk/resources/verification_management/sandbox.rb +99 -0
  40. data/lib/prelude_sdk/resources/verification_management.rb +5 -0
  41. data/lib/prelude_sdk/resources/watch.rb +45 -2
  42. data/lib/prelude_sdk/version.rb +1 -1
  43. data/lib/prelude_sdk.rb +26 -0
  44. data/rbi/prelude_sdk/client.rbi +3 -0
  45. data/rbi/prelude_sdk/models/intel/kyc_match_params.rbi +147 -0
  46. data/rbi/prelude_sdk/models/intel/kyc_match_response.rbi +736 -0
  47. data/rbi/prelude_sdk/models/notify_reply_params.rbi +87 -0
  48. data/rbi/prelude_sdk/models/notify_reply_response.rbi +94 -0
  49. data/rbi/prelude_sdk/models/signals.rbi +200 -0
  50. data/rbi/prelude_sdk/models/target.rbi +61 -0
  51. data/rbi/prelude_sdk/models/verification/phone/history_list_params.rbi +436 -0
  52. data/rbi/prelude_sdk/models/verification/phone/history_list_response.rbi +661 -0
  53. data/rbi/prelude_sdk/models/verification/phone/history_retrieve_params.rbi +42 -0
  54. data/rbi/prelude_sdk/models/verification/phone/history_retrieve_response.rbi +2229 -0
  55. data/rbi/prelude_sdk/models/verification/phone/phone_verification_carrier.rbi +39 -0
  56. data/rbi/prelude_sdk/models/verification/phone/phone_verification_money.rbi +46 -0
  57. data/rbi/prelude_sdk/models/verification/phone/phone_verification_psd2_transaction.rbi +68 -0
  58. data/rbi/prelude_sdk/models/verification_check_params.rbi +4 -85
  59. data/rbi/prelude_sdk/models/verification_create_params.rbi +8 -328
  60. data/rbi/prelude_sdk/models/verification_management/sandbox_add_phone_number_params.rbi +58 -0
  61. data/rbi/prelude_sdk/models/verification_management/sandbox_add_phone_number_response.rbi +42 -0
  62. data/rbi/prelude_sdk/models/verification_management/sandbox_delete_phone_number_params.rbi +43 -0
  63. data/rbi/prelude_sdk/models/verification_management/sandbox_delete_phone_number_response.rbi +32 -0
  64. data/rbi/prelude_sdk/models/verification_management/sandbox_list_phone_numbers_params.rbi +34 -0
  65. data/rbi/prelude_sdk/models/verification_management/sandbox_list_phone_numbers_response.rbi +101 -0
  66. data/rbi/prelude_sdk/models/watch_evaluate_params.rbi +109 -0
  67. data/rbi/prelude_sdk/models/watch_evaluate_response.rbi +496 -0
  68. data/rbi/prelude_sdk/models/watch_predict_params.rbi +8 -320
  69. data/rbi/prelude_sdk/models/watch_send_events_params.rbi +4 -93
  70. data/rbi/prelude_sdk/models/watch_send_feedbacks_params.rbi +4 -95
  71. data/rbi/prelude_sdk/models.rbi +14 -0
  72. data/rbi/prelude_sdk/resources/intel/kyc.rbi +61 -0
  73. data/rbi/prelude_sdk/resources/intel.rbi +17 -0
  74. data/rbi/prelude_sdk/resources/notify.rbi +31 -0
  75. data/rbi/prelude_sdk/resources/verification/phone/history.rbi +112 -0
  76. data/rbi/prelude_sdk/resources/verification/phone.rbi +18 -0
  77. data/rbi/prelude_sdk/resources/verification.rbi +6 -3
  78. data/rbi/prelude_sdk/resources/verification_management/sandbox.rbi +76 -0
  79. data/rbi/prelude_sdk/resources/verification_management.rbi +4 -0
  80. data/rbi/prelude_sdk/resources/watch.rbi +49 -2
  81. data/sig/prelude_sdk/client.rbs +2 -0
  82. data/sig/prelude_sdk/models/intel/kyc_match_params.rbs +91 -0
  83. data/sig/prelude_sdk/models/intel/kyc_match_response.rbs +276 -0
  84. data/sig/prelude_sdk/models/notify_reply_params.rbs +50 -0
  85. data/sig/prelude_sdk/models/notify_reply_response.rbs +54 -0
  86. data/sig/prelude_sdk/models/signals.rbs +101 -0
  87. data/sig/prelude_sdk/models/target.rbs +29 -0
  88. data/sig/prelude_sdk/models/verification/phone/history_list_params.rbs +187 -0
  89. data/sig/prelude_sdk/models/verification/phone/history_list_response.rbs +241 -0
  90. data/sig/prelude_sdk/models/verification/phone/history_retrieve_params.rbs +27 -0
  91. data/sig/prelude_sdk/models/verification/phone/history_retrieve_response.rbs +873 -0
  92. data/sig/prelude_sdk/models/verification/phone/phone_verification_carrier.rbs +23 -0
  93. data/sig/prelude_sdk/models/verification/phone/phone_verification_money.rbs +21 -0
  94. data/sig/prelude_sdk/models/verification/phone/phone_verification_psd2_transaction.rbs +37 -0
  95. data/sig/prelude_sdk/models/verification_check_params.rbs +4 -37
  96. data/sig/prelude_sdk/models/verification_create_params.rbs +9 -142
  97. data/sig/prelude_sdk/models/verification_management/sandbox_add_phone_number_params.rbs +30 -0
  98. data/sig/prelude_sdk/models/verification_management/sandbox_add_phone_number_response.rbs +18 -0
  99. data/sig/prelude_sdk/models/verification_management/sandbox_delete_phone_number_params.rbs +26 -0
  100. data/sig/prelude_sdk/models/verification_management/sandbox_delete_phone_number_response.rbs +15 -0
  101. data/sig/prelude_sdk/models/verification_management/sandbox_list_phone_numbers_params.rbs +17 -0
  102. data/sig/prelude_sdk/models/verification_management/sandbox_list_phone_numbers_response.rbs +45 -0
  103. data/sig/prelude_sdk/models/watch_evaluate_params.rbs +52 -0
  104. data/sig/prelude_sdk/models/watch_evaluate_response.rbs +178 -0
  105. data/sig/prelude_sdk/models/watch_predict_params.rbs +9 -142
  106. data/sig/prelude_sdk/models/watch_send_events_params.rbs +4 -37
  107. data/sig/prelude_sdk/models/watch_send_feedbacks_params.rbs +4 -37
  108. data/sig/prelude_sdk/models.rbs +14 -0
  109. data/sig/prelude_sdk/resources/intel/kyc.rbs +23 -0
  110. data/sig/prelude_sdk/resources/intel.rbs +9 -0
  111. data/sig/prelude_sdk/resources/notify.rbs +9 -0
  112. data/sig/prelude_sdk/resources/verification/phone/history.rbs +32 -0
  113. data/sig/prelude_sdk/resources/verification/phone.rbs +11 -0
  114. data/sig/prelude_sdk/resources/verification.rbs +5 -3
  115. data/sig/prelude_sdk/resources/verification_management/sandbox.rbs +24 -0
  116. data/sig/prelude_sdk/resources/verification_management.rbs +2 -0
  117. data/sig/prelude_sdk/resources/watch.rbs +11 -2
  118. metadata +79 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c0ab52c77ef4b4adef294278608b900e799d87addb9838aa9d0f1b670cba4e3
4
- data.tar.gz: 44b544a684b17f92a020198981d31f6013a43cc7d73b47c475f680529e332adb
3
+ metadata.gz: 8731fe84115bb4e974b30b47e338de7edb1f104b7cf647c48fa5d02e0b18ae8d
4
+ data.tar.gz: ef60164897791a51d47662deac42eafc71b8a1036b0bd8cb9440564f01149c39
5
5
  SHA512:
6
- metadata.gz: 73d77009ae1589ec192685756e1ab08475f561447e281ff9ce16104be9c64bd16dc8658a9563d10c8fff0d8bf1ebf48756c2545125ba6e7f2c65ba59f020514d
7
- data.tar.gz: 97b509de3dbc882b0ba62e84e19d7aaf4a17219a9d689d6e3fa309d07685969e92ce049326640c9f06f2038e1f8e5d90433955e5e9f5e3dd0d75cc779253e381
6
+ metadata.gz: 6a1bd302938e69cddf9fc148cf5f8cee8b1562afa6ce41e0290764c0b9cce9565fe5d7303648f13911a8ae32a7166cd67dd0bff7b55e901f91fc9d7e62266fbe
7
+ data.tar.gz: 02e63639aa44241d657fb07bdcd1877bb2de1c8290459dd07afd1c4320fd5e7a357b8836b4c04b375ba25b6874091bac694837075eb2d600590785221fb307f8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.0 (2026-09-18)
4
+
5
+ Full Changelog: [v0.7.0...v0.8.0](https://github.com/prelude-so/ruby-sdk/compare/v0.7.0...v0.8.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** manual updates ([fd3a3b9](https://github.com/prelude-so/ruby-sdk/commit/fd3a3b9945d005824ebfa07b69d554bc1de532fd))
10
+
3
11
  ## 0.7.0 (2026-09-15)
4
12
 
5
13
  Full Changelog: [v0.6.0...v0.7.0](https://github.com/prelude-so/ruby-sdk/compare/v0.6.0...v0.7.0)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "prelude-sdk", "~> 0.7.0"
20
+ gem "prelude-sdk", "~> 0.8.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -184,9 +184,7 @@ This library provides comprehensive [RBI](https://sorbet.org/docs/rbi) definitio
184
184
  You can provide typesafe request parameters like so:
185
185
 
186
186
  ```ruby
187
- prelude.verification.create(
188
- target: PreludeSDK::VerificationCreateParams::Target.new(type: "phone_number", value: "+30123456789")
189
- )
187
+ prelude.verification.create(target: PreludeSDK::Target.new(type: "phone_number", value: "+30123456789"))
190
188
  ```
191
189
 
192
190
  Or, equivalently:
@@ -197,7 +195,7 @@ prelude.verification.create(target: {type: "phone_number", value: "+30123456789"
197
195
 
198
196
  # You can also splat a full Params class:
199
197
  params = PreludeSDK::VerificationCreateParams.new(
200
- target: PreludeSDK::VerificationCreateParams::Target.new(type: "phone_number", value: "+30123456789")
198
+ target: PreludeSDK::Target.new(type: "phone_number", value: "+30123456789")
201
199
  )
202
200
  prelude.verification.create(**params)
203
201
  ```
@@ -44,6 +44,9 @@ module PreludeSDK
44
44
  # @return [PreludeSDK::Resources::Watch]
45
45
  attr_reader :watch
46
46
 
47
+ # @return [PreludeSDK::Resources::Intel]
48
+ attr_reader :intel
49
+
47
50
  # @api private
48
51
  #
49
52
  # @return [Hash{String=>String}]
@@ -111,6 +114,7 @@ module PreludeSDK
111
114
  @verification = PreludeSDK::Resources::Verification.new(client: self)
112
115
  @verification_management = PreludeSDK::Resources::VerificationManagement.new(client: self)
113
116
  @watch = PreludeSDK::Resources::Watch.new(client: self)
117
+ @intel = PreludeSDK::Resources::Intel.new(client: self)
114
118
  end
115
119
  end
116
120
  end
@@ -438,11 +438,11 @@ module PreludeSDK
438
438
  # @return [Hash{Symbol=>Object}]
439
439
  #
440
440
  # @example
441
- # # `lookup_lookup_response` is a `PreludeSDK::Models::LookupLookupResponse`
442
- # lookup_lookup_response => {
443
- # caller_name: caller_name,
444
- # country_code: country_code,
445
- # flags: flags
441
+ # # `signals` is a `PreludeSDK::Signals`
442
+ # signals => {
443
+ # app_version: app_version,
444
+ # device_id: device_id,
445
+ # device_model: device_model
446
446
  # }
447
447
  def deconstruct_keys(keys)
448
448
  (keys || self.class.known_fields.keys)
@@ -0,0 +1,96 @@
1
+ # frozen_string_literal: true
2
+
3
+ module PreludeSDK
4
+ module Models
5
+ module Intel
6
+ # @see PreludeSDK::Resources::Intel::KYC#match
7
+ class KYCMatchParams < PreludeSDK::Internal::Type::BaseModel
8
+ extend PreludeSDK::Internal::Type::RequestParameters::Converter
9
+ include PreludeSDK::Internal::Type::RequestParameters
10
+
11
+ # @!attribute phone
12
+ # An E.164 formatted phone number whose subscriber identity to match against.
13
+ #
14
+ # @return [String]
15
+ required :phone, String
16
+
17
+ # @!attribute address
18
+ # The street address.
19
+ #
20
+ # @return [String, nil]
21
+ optional :address, String
22
+
23
+ # @!attribute birthdate
24
+ # The date of birth in ISO 8601 (`YYYY-MM-DD`) format. Compared exactly.
25
+ #
26
+ # @return [Date, nil]
27
+ optional :birthdate, Date
28
+
29
+ # @!attribute country
30
+ # The ISO 3166-1 alpha-2 country code. Compared exactly.
31
+ #
32
+ # @return [String, nil]
33
+ optional :country, String
34
+
35
+ # @!attribute email
36
+ # The email address.
37
+ #
38
+ # @return [String, nil]
39
+ optional :email, String
40
+
41
+ # @!attribute family_name
42
+ # The end-user's family (last) name.
43
+ #
44
+ # @return [String, nil]
45
+ optional :family_name, String
46
+
47
+ # @!attribute given_name
48
+ # The end-user's given (first) name.
49
+ #
50
+ # @return [String, nil]
51
+ optional :given_name, String
52
+
53
+ # @!attribute locality
54
+ # The locality (city).
55
+ #
56
+ # @return [String, nil]
57
+ optional :locality, String
58
+
59
+ # @!attribute postal_code
60
+ # The postal code. Compared exactly.
61
+ #
62
+ # @return [String, nil]
63
+ optional :postal_code, String
64
+
65
+ # @!attribute region
66
+ # The region, state, or province.
67
+ #
68
+ # @return [String, nil]
69
+ optional :region, String
70
+
71
+ # @!method initialize(phone:, address: nil, birthdate: nil, country: nil, email: nil, family_name: nil, given_name: nil, locality: nil, postal_code: nil, region: nil, request_options: {})
72
+ # @param phone [String] An E.164 formatted phone number whose subscriber identity to match against.
73
+ #
74
+ # @param address [String] The street address.
75
+ #
76
+ # @param birthdate [Date] The date of birth in ISO 8601 (`YYYY-MM-DD`) format. Compared exactly.
77
+ #
78
+ # @param country [String] The ISO 3166-1 alpha-2 country code. Compared exactly.
79
+ #
80
+ # @param email [String] The email address.
81
+ #
82
+ # @param family_name [String] The end-user's family (last) name.
83
+ #
84
+ # @param given_name [String] The end-user's given (first) name.
85
+ #
86
+ # @param locality [String] The locality (city).
87
+ #
88
+ # @param postal_code [String] The postal code. Compared exactly.
89
+ #
90
+ # @param region [String] The region, state, or province.
91
+ #
92
+ # @param request_options [PreludeSDK::RequestOptions, Hash{Symbol=>Object}]
93
+ end
94
+ end
95
+ end
96
+ end
@@ -0,0 +1,305 @@
1
+ # frozen_string_literal: true
2
+
3
+ module PreludeSDK
4
+ module Models
5
+ module Intel
6
+ # @see PreludeSDK::Resources::Intel::KYC#match
7
+ class KYCMatchResponse < PreludeSDK::Internal::Type::BaseModel
8
+ # @!attribute address_match
9
+ # Whether the street address matched the operator's record.
10
+ #
11
+ # @return [Symbol, PreludeSDK::Models::Intel::KYCMatchResponse::AddressMatch, nil]
12
+ optional :address_match, enum: -> { PreludeSDK::Models::Intel::KYCMatchResponse::AddressMatch }
13
+
14
+ # @!attribute address_match_score
15
+ # Similarity score (0-99) for the address. Returned only on a non-match.
16
+ #
17
+ # @return [Integer, nil]
18
+ optional :address_match_score, Integer
19
+
20
+ # @!attribute birthdate_match
21
+ # Whether the date of birth matched the operator's record. Compared exactly; never
22
+ # scored.
23
+ #
24
+ # @return [Symbol, PreludeSDK::Models::Intel::KYCMatchResponse::BirthdateMatch, nil]
25
+ optional :birthdate_match, enum: -> { PreludeSDK::Models::Intel::KYCMatchResponse::BirthdateMatch }
26
+
27
+ # @!attribute country_code
28
+ # The country code of the phone number.
29
+ #
30
+ # @return [String, nil]
31
+ optional :country_code, String
32
+
33
+ # @!attribute country_match
34
+ # Whether the country matched the operator's record. Compared exactly; never
35
+ # scored.
36
+ #
37
+ # @return [Symbol, PreludeSDK::Models::Intel::KYCMatchResponse::CountryMatch, nil]
38
+ optional :country_match, enum: -> { PreludeSDK::Models::Intel::KYCMatchResponse::CountryMatch }
39
+
40
+ # @!attribute email_match
41
+ # Whether the email address matched the operator's record.
42
+ #
43
+ # @return [Symbol, PreludeSDK::Models::Intel::KYCMatchResponse::EmailMatch, nil]
44
+ optional :email_match, enum: -> { PreludeSDK::Models::Intel::KYCMatchResponse::EmailMatch }
45
+
46
+ # @!attribute email_match_score
47
+ # Similarity score (0-99) for the email. Returned only on a non-match.
48
+ #
49
+ # @return [Integer, nil]
50
+ optional :email_match_score, Integer
51
+
52
+ # @!attribute family_name_match
53
+ # Whether the family name matched the operator's record.
54
+ #
55
+ # @return [Symbol, PreludeSDK::Models::Intel::KYCMatchResponse::FamilyNameMatch, nil]
56
+ optional :family_name_match, enum: -> { PreludeSDK::Models::Intel::KYCMatchResponse::FamilyNameMatch }
57
+
58
+ # @!attribute family_name_match_score
59
+ # Similarity score (0-99) for the family name. Returned only on a non-match.
60
+ #
61
+ # @return [Integer, nil]
62
+ optional :family_name_match_score, Integer
63
+
64
+ # @!attribute given_name_match
65
+ # Whether the given name matched the operator's record.
66
+ #
67
+ # @return [Symbol, PreludeSDK::Models::Intel::KYCMatchResponse::GivenNameMatch, nil]
68
+ optional :given_name_match, enum: -> { PreludeSDK::Models::Intel::KYCMatchResponse::GivenNameMatch }
69
+
70
+ # @!attribute given_name_match_score
71
+ # Similarity score (0-99) for the given name. Returned only on a non-match.
72
+ #
73
+ # @return [Integer, nil]
74
+ optional :given_name_match_score, Integer
75
+
76
+ # @!attribute locality_match
77
+ # Whether the locality matched the operator's record.
78
+ #
79
+ # @return [Symbol, PreludeSDK::Models::Intel::KYCMatchResponse::LocalityMatch, nil]
80
+ optional :locality_match, enum: -> { PreludeSDK::Models::Intel::KYCMatchResponse::LocalityMatch }
81
+
82
+ # @!attribute locality_match_score
83
+ # Similarity score (0-99) for the locality. Returned only on a non-match.
84
+ #
85
+ # @return [Integer, nil]
86
+ optional :locality_match_score, Integer
87
+
88
+ # @!attribute operator
89
+ # The mobile operator that answered the match.
90
+ #
91
+ # @return [String, nil]
92
+ optional :operator, String
93
+
94
+ # @!attribute phone_number
95
+ # The phone number that was matched, in E.164 format.
96
+ #
97
+ # @return [String, nil]
98
+ optional :phone_number, String
99
+
100
+ # @!attribute postal_code_match
101
+ # Whether the postal code matched the operator's record. Compared exactly; never
102
+ # scored.
103
+ #
104
+ # @return [Symbol, PreludeSDK::Models::Intel::KYCMatchResponse::PostalCodeMatch, nil]
105
+ optional :postal_code_match, enum: -> { PreludeSDK::Models::Intel::KYCMatchResponse::PostalCodeMatch }
106
+
107
+ # @!attribute region_match
108
+ # Whether the region matched the operator's record.
109
+ #
110
+ # @return [Symbol, PreludeSDK::Models::Intel::KYCMatchResponse::RegionMatch, nil]
111
+ optional :region_match, enum: -> { PreludeSDK::Models::Intel::KYCMatchResponse::RegionMatch }
112
+
113
+ # @!attribute region_match_score
114
+ # Similarity score (0-99) for the region. Returned only on a non-match.
115
+ #
116
+ # @return [Integer, nil]
117
+ optional :region_match_score, Integer
118
+
119
+ # @!attribute request_id
120
+ # A string that identifies this specific request. Report it back to us to help us
121
+ # diagnose your issues.
122
+ #
123
+ # @return [String, nil]
124
+ optional :request_id, String
125
+
126
+ # @!method initialize(address_match: nil, address_match_score: nil, birthdate_match: nil, country_code: nil, country_match: nil, email_match: nil, email_match_score: nil, family_name_match: nil, family_name_match_score: nil, given_name_match: nil, given_name_match_score: nil, locality_match: nil, locality_match_score: nil, operator: nil, phone_number: nil, postal_code_match: nil, region_match: nil, region_match_score: nil, request_id: nil)
127
+ # Some parameter documentations has been truncated, see
128
+ # {PreludeSDK::Models::Intel::KYCMatchResponse} for more details.
129
+ #
130
+ # The per-attribute match result. Each `<attribute>_match` field is one of `true`,
131
+ # `false`, or `not_available` (the operator could not answer for that attribute).
132
+ # Fuzzy attributes additionally return a `<attribute>_match_score` (0-99
133
+ # similarity) when they do not match exactly; the score is omitted on a match or
134
+ # when `not_available`.
135
+ #
136
+ # @param address_match [Symbol, PreludeSDK::Models::Intel::KYCMatchResponse::AddressMatch] Whether the street address matched the operator's record.
137
+ #
138
+ # @param address_match_score [Integer] Similarity score (0-99) for the address. Returned only on a non-match.
139
+ #
140
+ # @param birthdate_match [Symbol, PreludeSDK::Models::Intel::KYCMatchResponse::BirthdateMatch] Whether the date of birth matched the operator's record. Compared exactly; never
141
+ #
142
+ # @param country_code [String] The country code of the phone number.
143
+ #
144
+ # @param country_match [Symbol, PreludeSDK::Models::Intel::KYCMatchResponse::CountryMatch] Whether the country matched the operator's record. Compared exactly; never score
145
+ #
146
+ # @param email_match [Symbol, PreludeSDK::Models::Intel::KYCMatchResponse::EmailMatch] Whether the email address matched the operator's record.
147
+ #
148
+ # @param email_match_score [Integer] Similarity score (0-99) for the email. Returned only on a non-match.
149
+ #
150
+ # @param family_name_match [Symbol, PreludeSDK::Models::Intel::KYCMatchResponse::FamilyNameMatch] Whether the family name matched the operator's record.
151
+ #
152
+ # @param family_name_match_score [Integer] Similarity score (0-99) for the family name. Returned only on a non-match.
153
+ #
154
+ # @param given_name_match [Symbol, PreludeSDK::Models::Intel::KYCMatchResponse::GivenNameMatch] Whether the given name matched the operator's record.
155
+ #
156
+ # @param given_name_match_score [Integer] Similarity score (0-99) for the given name. Returned only on a non-match.
157
+ #
158
+ # @param locality_match [Symbol, PreludeSDK::Models::Intel::KYCMatchResponse::LocalityMatch] Whether the locality matched the operator's record.
159
+ #
160
+ # @param locality_match_score [Integer] Similarity score (0-99) for the locality. Returned only on a non-match.
161
+ #
162
+ # @param operator [String] The mobile operator that answered the match.
163
+ #
164
+ # @param phone_number [String] The phone number that was matched, in E.164 format.
165
+ #
166
+ # @param postal_code_match [Symbol, PreludeSDK::Models::Intel::KYCMatchResponse::PostalCodeMatch] Whether the postal code matched the operator's record. Compared exactly; never s
167
+ #
168
+ # @param region_match [Symbol, PreludeSDK::Models::Intel::KYCMatchResponse::RegionMatch] Whether the region matched the operator's record.
169
+ #
170
+ # @param region_match_score [Integer] Similarity score (0-99) for the region. Returned only on a non-match.
171
+ #
172
+ # @param request_id [String] A string that identifies this specific request. Report it back to us to help us
173
+
174
+ # Whether the street address matched the operator's record.
175
+ #
176
+ # @see PreludeSDK::Models::Intel::KYCMatchResponse#address_match
177
+ module AddressMatch
178
+ extend PreludeSDK::Internal::Type::Enum
179
+
180
+ TRUE = :true
181
+ FALSE = :false
182
+ NOT_AVAILABLE = :not_available
183
+
184
+ # @!method self.values
185
+ # @return [Array<Symbol>]
186
+ end
187
+
188
+ # Whether the date of birth matched the operator's record. Compared exactly; never
189
+ # scored.
190
+ #
191
+ # @see PreludeSDK::Models::Intel::KYCMatchResponse#birthdate_match
192
+ module BirthdateMatch
193
+ extend PreludeSDK::Internal::Type::Enum
194
+
195
+ TRUE = :true
196
+ FALSE = :false
197
+ NOT_AVAILABLE = :not_available
198
+
199
+ # @!method self.values
200
+ # @return [Array<Symbol>]
201
+ end
202
+
203
+ # Whether the country matched the operator's record. Compared exactly; never
204
+ # scored.
205
+ #
206
+ # @see PreludeSDK::Models::Intel::KYCMatchResponse#country_match
207
+ module CountryMatch
208
+ extend PreludeSDK::Internal::Type::Enum
209
+
210
+ TRUE = :true
211
+ FALSE = :false
212
+ NOT_AVAILABLE = :not_available
213
+
214
+ # @!method self.values
215
+ # @return [Array<Symbol>]
216
+ end
217
+
218
+ # Whether the email address matched the operator's record.
219
+ #
220
+ # @see PreludeSDK::Models::Intel::KYCMatchResponse#email_match
221
+ module EmailMatch
222
+ extend PreludeSDK::Internal::Type::Enum
223
+
224
+ TRUE = :true
225
+ FALSE = :false
226
+ NOT_AVAILABLE = :not_available
227
+
228
+ # @!method self.values
229
+ # @return [Array<Symbol>]
230
+ end
231
+
232
+ # Whether the family name matched the operator's record.
233
+ #
234
+ # @see PreludeSDK::Models::Intel::KYCMatchResponse#family_name_match
235
+ module FamilyNameMatch
236
+ extend PreludeSDK::Internal::Type::Enum
237
+
238
+ TRUE = :true
239
+ FALSE = :false
240
+ NOT_AVAILABLE = :not_available
241
+
242
+ # @!method self.values
243
+ # @return [Array<Symbol>]
244
+ end
245
+
246
+ # Whether the given name matched the operator's record.
247
+ #
248
+ # @see PreludeSDK::Models::Intel::KYCMatchResponse#given_name_match
249
+ module GivenNameMatch
250
+ extend PreludeSDK::Internal::Type::Enum
251
+
252
+ TRUE = :true
253
+ FALSE = :false
254
+ NOT_AVAILABLE = :not_available
255
+
256
+ # @!method self.values
257
+ # @return [Array<Symbol>]
258
+ end
259
+
260
+ # Whether the locality matched the operator's record.
261
+ #
262
+ # @see PreludeSDK::Models::Intel::KYCMatchResponse#locality_match
263
+ module LocalityMatch
264
+ extend PreludeSDK::Internal::Type::Enum
265
+
266
+ TRUE = :true
267
+ FALSE = :false
268
+ NOT_AVAILABLE = :not_available
269
+
270
+ # @!method self.values
271
+ # @return [Array<Symbol>]
272
+ end
273
+
274
+ # Whether the postal code matched the operator's record. Compared exactly; never
275
+ # scored.
276
+ #
277
+ # @see PreludeSDK::Models::Intel::KYCMatchResponse#postal_code_match
278
+ module PostalCodeMatch
279
+ extend PreludeSDK::Internal::Type::Enum
280
+
281
+ TRUE = :true
282
+ FALSE = :false
283
+ NOT_AVAILABLE = :not_available
284
+
285
+ # @!method self.values
286
+ # @return [Array<Symbol>]
287
+ end
288
+
289
+ # Whether the region matched the operator's record.
290
+ #
291
+ # @see PreludeSDK::Models::Intel::KYCMatchResponse#region_match
292
+ module RegionMatch
293
+ extend PreludeSDK::Internal::Type::Enum
294
+
295
+ TRUE = :true
296
+ FALSE = :false
297
+ NOT_AVAILABLE = :not_available
298
+
299
+ # @!method self.values
300
+ # @return [Array<Symbol>]
301
+ end
302
+ end
303
+ end
304
+ end
305
+ end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ module PreludeSDK
4
+ module Models
5
+ # @see PreludeSDK::Resources::Notify#reply
6
+ class NotifyReplyParams < PreludeSDK::Internal::Type::BaseModel
7
+ extend PreludeSDK::Internal::Type::RequestParameters::Converter
8
+ include PreludeSDK::Internal::Type::RequestParameters
9
+
10
+ # @!attribute reply_to
11
+ # The inbound message ID (prefixed with `im_`) to reply to. This ID is provided in
12
+ # the `inbound.message.received` webhook event.
13
+ #
14
+ # @return [String]
15
+ required :reply_to, String
16
+
17
+ # @!attribute text
18
+ # The reply message body sent as a free-form WhatsApp text.
19
+ #
20
+ # @return [String]
21
+ required :text, String
22
+
23
+ # @!attribute to
24
+ # The recipient's phone number in E.164 format. Must match the phone number that
25
+ # sent the original inbound message.
26
+ #
27
+ # @return [String]
28
+ required :to, String
29
+
30
+ # @!attribute callback_url
31
+ # The URL where webhooks will be sent for delivery events of this reply.
32
+ #
33
+ # @return [String, nil]
34
+ optional :callback_url, String
35
+
36
+ # @!attribute correlation_id
37
+ # A user-defined identifier to correlate this reply with your internal systems. It
38
+ # is returned in the response and any webhook events that refer to this message.
39
+ #
40
+ # @return [String, nil]
41
+ optional :correlation_id, String
42
+
43
+ # @!method initialize(reply_to:, text:, to:, callback_url: nil, correlation_id: nil, request_options: {})
44
+ # Some parameter documentations has been truncated, see
45
+ # {PreludeSDK::Models::NotifyReplyParams} for more details.
46
+ #
47
+ # @param reply_to [String] The inbound message ID (prefixed with `im_`) to reply to. This ID is provided in
48
+ #
49
+ # @param text [String] The reply message body sent as a free-form WhatsApp text.
50
+ #
51
+ # @param to [String] The recipient's phone number in E.164 format. Must match the phone number that s
52
+ #
53
+ # @param callback_url [String] The URL where webhooks will be sent for delivery events of this reply.
54
+ #
55
+ # @param correlation_id [String] A user-defined identifier to correlate this reply with your internal systems. It
56
+ #
57
+ # @param request_options [PreludeSDK::RequestOptions, Hash{Symbol=>Object}]
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,65 @@
1
+ # frozen_string_literal: true
2
+
3
+ module PreludeSDK
4
+ module Models
5
+ # @see PreludeSDK::Resources::Notify#reply
6
+ class NotifyReplyResponse < PreludeSDK::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ # The reply message identifier.
9
+ #
10
+ # @return [String]
11
+ required :id, String
12
+
13
+ # @!attribute created_at
14
+ # The reply creation date in RFC3339 format.
15
+ #
16
+ # @return [Time]
17
+ required :created_at, Time
18
+
19
+ # @!attribute reply_to
20
+ # The inbound message ID this reply was sent in response to.
21
+ #
22
+ # @return [String]
23
+ required :reply_to, String
24
+
25
+ # @!attribute text
26
+ # The reply message body that was sent.
27
+ #
28
+ # @return [String]
29
+ required :text, String
30
+
31
+ # @!attribute to
32
+ # The recipient's phone number in E.164 format.
33
+ #
34
+ # @return [String]
35
+ required :to, String
36
+
37
+ # @!attribute callback_url
38
+ # The callback URL where webhooks will be sent.
39
+ #
40
+ # @return [String, nil]
41
+ optional :callback_url, String
42
+
43
+ # @!attribute correlation_id
44
+ # The user-defined correlation identifier echoed back from the request.
45
+ #
46
+ # @return [String, nil]
47
+ optional :correlation_id, String
48
+
49
+ # @!method initialize(id:, created_at:, reply_to:, text:, to:, callback_url: nil, correlation_id: nil)
50
+ # @param id [String] The reply message identifier.
51
+ #
52
+ # @param created_at [Time] The reply creation date in RFC3339 format.
53
+ #
54
+ # @param reply_to [String] The inbound message ID this reply was sent in response to.
55
+ #
56
+ # @param text [String] The reply message body that was sent.
57
+ #
58
+ # @param to [String] The recipient's phone number in E.164 format.
59
+ #
60
+ # @param callback_url [String] The callback URL where webhooks will be sent.
61
+ #
62
+ # @param correlation_id [String] The user-defined correlation identifier echoed back from the request.
63
+ end
64
+ end
65
+ end