didit-sdk 1.0.1 → 2.1.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +33 -0
- data/lib/didit/resources/account.rb +20 -5
- data/lib/didit/resources/address_validation.rb +2 -2
- data/lib/didit/resources/analytics.rb +29 -0
- data/lib/didit/resources/bank.rb +15 -6
- data/lib/didit/resources/billing.rb +2 -2
- data/lib/didit/resources/database_validation.rb +65 -0
- data/lib/didit/resources/email.rb +22 -2
- data/lib/didit/resources/id_verification.rb +14 -13
- data/lib/didit/resources/id_wallets.rb +84 -0
- data/lib/didit/resources/ip.rb +2 -2
- data/lib/didit/resources/kyb.rb +14 -7
- data/lib/didit/resources/phone.rb +28 -2
- data/lib/didit/resources/pricing.rb +4 -2
- data/lib/didit/resources/sessions.rb +463 -33
- data/lib/didit/resources/transactions.rb +16 -6
- data/lib/didit/resources/travel_rule.rb +96 -0
- data/lib/didit/resources/users.rb +25 -6
- data/lib/didit/resources/wallet_screening.rb +5 -6
- data/lib/didit/resources/webhooks.rb +8 -1
- data/lib/didit/types/account_components.rb +17 -1
- data/lib/didit/types/aml.rb +19 -0
- data/lib/didit/types/components.rb +919 -30
- data/lib/didit/types/email.rb +28 -0
- data/lib/didit/types/kyb.rb +135 -5
- data/lib/didit/types/phone.rb +38 -0
- data/lib/didit/types/sessions.rb +476 -5
- data/lib/didit/types/travel_rule.rb +7 -0
- data/lib/didit/types/wallet_screening.rb +13 -6
- data/lib/didit/types.rb +128 -0
- data/lib/didit/version.rb +1 -1
- data/sig/didit/resources/account.rbs +2 -2
- data/sig/didit/resources/analytics.rbs +1 -0
- data/sig/didit/resources/bank.rbs +1 -1
- data/sig/didit/resources/database_validation.rbs +1 -1
- data/sig/didit/resources/email.rbs +1 -1
- data/sig/didit/resources/id_wallets.rbs +2 -0
- data/sig/didit/resources/phone.rbs +1 -1
- data/sig/didit/resources/sessions.rbs +14 -5
- data/sig/didit/resources/transactions.rbs +1 -1
- data/sig/didit/resources/travel_rule.rbs +5 -0
- data/sig/didit/resources/users.rbs +1 -1
- data/sig/didit/resources/wallet_screening.rbs +1 -1
- data/sig/didit/resources/webhooks.rbs +1 -1
- data/sig/didit/types/account.rbs +2 -2
- data/sig/didit/types/account_components.rbs +10 -0
- data/sig/didit/types/aml.rbs +18 -0
- data/sig/didit/types/bank.rbs +1 -1
- data/sig/didit/types/components.rbs +787 -4
- data/sig/didit/types/database_validation.rbs +1 -1
- data/sig/didit/types/email.rbs +22 -1
- data/sig/didit/types/id_wallets.rbs +4 -0
- data/sig/didit/types/kyb.rbs +115 -5
- data/sig/didit/types/phone.rbs +29 -1
- data/sig/didit/types/sessions.rbs +462 -2
- data/sig/didit/types/travel_rule.rbs +9 -0
- data/sig/didit/types/users.rbs +1 -1
- data/sig/didit/types/wallet_screening.rbs +5 -1
- data/sig/didit/types/webhooks.rbs +1 -1
- metadata +1 -1
data/lib/didit/types/email.rb
CHANGED
|
@@ -31,6 +31,16 @@ module Didit
|
|
|
31
31
|
VALUES = [NO_ACTION, DECLINE].freeze
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
+
# Action when the email intelligence risk score is above the threshold. `DECLINE` flips the final `status` to
|
|
35
|
+
# `Declined`; `NO_ACTION` records the signal without declining. Only takes effect when `enable_enrichment` is
|
|
36
|
+
# `true`.
|
|
37
|
+
module EmailCheckCodeParamsEmailIntelligenceScoreAction
|
|
38
|
+
NO_ACTION = "NO_ACTION"
|
|
39
|
+
DECLINE = "DECLINE"
|
|
40
|
+
|
|
41
|
+
VALUES = [NO_ACTION, DECLINE].freeze
|
|
42
|
+
end
|
|
43
|
+
|
|
34
44
|
# Action when the social footprint check finds the address registered on none of the platforms it covers. Only
|
|
35
45
|
# NO_ACTION and DECLINE are accepted on this endpoint; REVIEW is available on the workflow configuration key of
|
|
36
46
|
# the same name.
|
|
@@ -41,6 +51,24 @@ module Didit
|
|
|
41
51
|
VALUES = [NO_ACTION, DECLINE].freeze
|
|
42
52
|
end
|
|
43
53
|
|
|
54
|
+
# Action when the address appears in many known data breaches. `DECLINE` flips the final `status` to `Declined`;
|
|
55
|
+
# `NO_ACTION` records the signal without declining. Only takes effect when `enable_enrichment` is `true`.
|
|
56
|
+
module EmailCheckCodeParamsFrequentEmailBreachAction
|
|
57
|
+
NO_ACTION = "NO_ACTION"
|
|
58
|
+
DECLINE = "DECLINE"
|
|
59
|
+
|
|
60
|
+
VALUES = [NO_ACTION, DECLINE].freeze
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Action when the address appears in a recent known data breach. `DECLINE` flips the final `status` to `Declined`;
|
|
64
|
+
# `NO_ACTION` records the signal without declining. Only takes effect when `enable_enrichment` is `true`.
|
|
65
|
+
module EmailCheckCodeParamsRecentEmailBreachAction
|
|
66
|
+
NO_ACTION = "NO_ACTION"
|
|
67
|
+
DECLINE = "DECLINE"
|
|
68
|
+
|
|
69
|
+
VALUES = [NO_ACTION, DECLINE].freeze
|
|
70
|
+
end
|
|
71
|
+
|
|
44
72
|
# Language of the OTP email template. Defaults to `en`. Unsupported values return `400` listing all supported
|
|
45
73
|
# locales.
|
|
46
74
|
module EmailSendCodeParamsOptionsLocale
|
data/lib/didit/types/kyb.rb
CHANGED
|
@@ -147,6 +147,17 @@ module Didit
|
|
|
147
147
|
VALUES = [VALID, INVALID, FORMAT_VALID, INVALID_FORMAT, COULD_NOT_VALIDATE, NOT_APPLICABLE].freeze
|
|
148
148
|
end
|
|
149
149
|
|
|
150
|
+
# Cross-jurisdiction verification status: `verified` when the registry status establishes standing (`active`),
|
|
151
|
+
# `failed` when it says the company is no longer standing (for example `dissolved`), otherwise `unknown`. `null`
|
|
152
|
+
# for a company that did not come from a registry and while a selection is still `pending`.
|
|
153
|
+
module KybListShareholdersResponse202KybRegistryVerificationStatus
|
|
154
|
+
VERIFIED = "verified"
|
|
155
|
+
FAILED = "failed"
|
|
156
|
+
UNKNOWN = "unknown"
|
|
157
|
+
|
|
158
|
+
VALUES = [VERIFIED, FAILED, UNKNOWN].freeze
|
|
159
|
+
end
|
|
160
|
+
|
|
150
161
|
# The tier actually delivered and billed. Lower than requested when the country's registries hold no ownership
|
|
151
162
|
# data, or the registry has no ownership record for this company.
|
|
152
163
|
module KybListShareholdersResponse202RegistryTierDelivered
|
|
@@ -310,6 +321,17 @@ module Didit
|
|
|
310
321
|
VALUES = [VALID, INVALID, FORMAT_VALID, INVALID_FORMAT, COULD_NOT_VALIDATE, NOT_APPLICABLE].freeze
|
|
311
322
|
end
|
|
312
323
|
|
|
324
|
+
# Cross-jurisdiction verification status: `verified` when the registry status establishes standing (`active`),
|
|
325
|
+
# `failed` when it says the company is no longer standing (for example `dissolved`), otherwise `unknown`. `null`
|
|
326
|
+
# for a company that did not come from a registry and while a selection is still `pending`.
|
|
327
|
+
module KybListShareholdersResponseKybRegistryVerificationStatus
|
|
328
|
+
VERIFIED = "verified"
|
|
329
|
+
FAILED = "failed"
|
|
330
|
+
UNKNOWN = "unknown"
|
|
331
|
+
|
|
332
|
+
VALUES = [VERIFIED, FAILED, UNKNOWN].freeze
|
|
333
|
+
end
|
|
334
|
+
|
|
313
335
|
# The tier actually delivered and billed. Lower than requested when the country's registries hold no ownership
|
|
314
336
|
# data, or the registry has no ownership record for this company.
|
|
315
337
|
module KybListShareholdersResponseRegistryTierDelivered
|
|
@@ -473,6 +495,17 @@ module Didit
|
|
|
473
495
|
VALUES = [VALID, INVALID, FORMAT_VALID, INVALID_FORMAT, COULD_NOT_VALIDATE, NOT_APPLICABLE].freeze
|
|
474
496
|
end
|
|
475
497
|
|
|
498
|
+
# Cross-jurisdiction verification status: `verified` when the registry status establishes standing (`active`),
|
|
499
|
+
# `failed` when it says the company is no longer standing (for example `dissolved`), otherwise `unknown`. `null`
|
|
500
|
+
# for a company that did not come from a registry and while a selection is still `pending`.
|
|
501
|
+
module KybListUbosResponse202KybRegistryVerificationStatus
|
|
502
|
+
VERIFIED = "verified"
|
|
503
|
+
FAILED = "failed"
|
|
504
|
+
UNKNOWN = "unknown"
|
|
505
|
+
|
|
506
|
+
VALUES = [VERIFIED, FAILED, UNKNOWN].freeze
|
|
507
|
+
end
|
|
508
|
+
|
|
476
509
|
# The tier actually delivered and billed. Lower than requested when the country's registries hold no ownership
|
|
477
510
|
# data, when the registry has no ownership record for this company, or when the resolved report of a `ubo` request
|
|
478
511
|
# names no natural person as a beneficial owner.
|
|
@@ -637,6 +670,17 @@ module Didit
|
|
|
637
670
|
VALUES = [VALID, INVALID, FORMAT_VALID, INVALID_FORMAT, COULD_NOT_VALIDATE, NOT_APPLICABLE].freeze
|
|
638
671
|
end
|
|
639
672
|
|
|
673
|
+
# Cross-jurisdiction verification status: `verified` when the registry status establishes standing (`active`),
|
|
674
|
+
# `failed` when it says the company is no longer standing (for example `dissolved`), otherwise `unknown`. `null`
|
|
675
|
+
# for a company that did not come from a registry and while a selection is still `pending`.
|
|
676
|
+
module KybListUbosResponseKybRegistryVerificationStatus
|
|
677
|
+
VERIFIED = "verified"
|
|
678
|
+
FAILED = "failed"
|
|
679
|
+
UNKNOWN = "unknown"
|
|
680
|
+
|
|
681
|
+
VALUES = [VERIFIED, FAILED, UNKNOWN].freeze
|
|
682
|
+
end
|
|
683
|
+
|
|
640
684
|
# The tier actually delivered and billed. Lower than requested when the country's registries hold no ownership
|
|
641
685
|
# data, when the registry has no ownership record for this company, or when the resolved report of a `ubo` request
|
|
642
686
|
# names no natural person as a beneficial owner.
|
|
@@ -821,6 +865,17 @@ module Didit
|
|
|
821
865
|
VALUES = [VALID, INVALID, FORMAT_VALID, INVALID_FORMAT, COULD_NOT_VALIDATE, NOT_APPLICABLE].freeze
|
|
822
866
|
end
|
|
823
867
|
|
|
868
|
+
# Cross-jurisdiction verification status: `verified` when the registry status establishes standing (`active`),
|
|
869
|
+
# `failed` when it says the company is no longer standing (for example `dissolved`), otherwise `unknown`. `null`
|
|
870
|
+
# for a company that did not come from a registry and while a selection is still `pending`.
|
|
871
|
+
module KybSelectResponseKybRegistryVerificationStatus
|
|
872
|
+
VERIFIED = "verified"
|
|
873
|
+
FAILED = "failed"
|
|
874
|
+
UNKNOWN = "unknown"
|
|
875
|
+
|
|
876
|
+
VALUES = [VERIFIED, FAILED, UNKNOWN].freeze
|
|
877
|
+
end
|
|
878
|
+
|
|
824
879
|
# The tier actually delivered and billed. Lower than requested when the country's registries hold no ownership
|
|
825
880
|
# data, or the registry has no ownership record for this company.
|
|
826
881
|
module KybSelectResponseRegistryTierDelivered
|
|
@@ -902,7 +957,7 @@ module Didit
|
|
|
902
957
|
field :addresses, "addresses", [:array, "KYBRegistryAddress"]
|
|
903
958
|
field :industries, "industries", [:array, "KYBRegistryIndustry"]
|
|
904
959
|
field :accounts, "accounts", :any
|
|
905
|
-
field :registry_data, "registry_data",
|
|
960
|
+
field :registry_data, "registry_data", "KYBRegistryData"
|
|
906
961
|
field :user_provided_data, "user_provided_data", :any
|
|
907
962
|
field :confirmed_by_user_at, "confirmed_by_user_at", :datetime
|
|
908
963
|
field :last_console_edit_at, "last_console_edit_at", :datetime
|
|
@@ -911,6 +966,7 @@ module Didit
|
|
|
911
966
|
field :registry_ownership_status, "registry_ownership_status", :string
|
|
912
967
|
field :ownership, "ownership", "KYBRegistryOwnership"
|
|
913
968
|
field :registry_tier, "registry_tier", :string
|
|
969
|
+
field :registry_monitoring, "registry_monitoring", "KybListShareholdersResponse202KybRegistryRegistryMonitoring"
|
|
914
970
|
end
|
|
915
971
|
|
|
916
972
|
class KybListShareholdersResponse202KybRegistryBeneficialOwners < Didit::Model
|
|
@@ -958,6 +1014,20 @@ module Didit
|
|
|
958
1014
|
field :date_of_birth_month, "date_of_birth_month", :integer
|
|
959
1015
|
end
|
|
960
1016
|
|
|
1017
|
+
# The latest registry monitor for the company, or `null` when none exists.
|
|
1018
|
+
class KybListShareholdersResponse202KybRegistryRegistryMonitoring < Didit::Model
|
|
1019
|
+
field :uuid, "uuid", :string
|
|
1020
|
+
field :status, "status", :string
|
|
1021
|
+
field :unavailable_reason, "unavailable_reason", :string
|
|
1022
|
+
field :enrolled_at, "enrolled_at", :datetime
|
|
1023
|
+
field :cancelled_at, "cancelled_at", :datetime
|
|
1024
|
+
field :last_bill_date, "last_bill_date", :date
|
|
1025
|
+
field :next_bill_date, "next_bill_date", :date
|
|
1026
|
+
field :last_event_at, "last_event_at", :datetime
|
|
1027
|
+
field :events_count, "events_count", :integer
|
|
1028
|
+
field :watched_fields, "watched_fields", :any
|
|
1029
|
+
end
|
|
1030
|
+
|
|
961
1031
|
# Full registry company profile.
|
|
962
1032
|
class KybListShareholdersResponseKybRegistry < Didit::Model
|
|
963
1033
|
field :uuid, "uuid", :string
|
|
@@ -1000,7 +1070,7 @@ module Didit
|
|
|
1000
1070
|
field :addresses, "addresses", [:array, "KYBRegistryAddress"]
|
|
1001
1071
|
field :industries, "industries", [:array, "KYBRegistryIndustry"]
|
|
1002
1072
|
field :accounts, "accounts", :any
|
|
1003
|
-
field :registry_data, "registry_data",
|
|
1073
|
+
field :registry_data, "registry_data", "KYBRegistryData"
|
|
1004
1074
|
field :user_provided_data, "user_provided_data", :any
|
|
1005
1075
|
field :confirmed_by_user_at, "confirmed_by_user_at", :datetime
|
|
1006
1076
|
field :last_console_edit_at, "last_console_edit_at", :datetime
|
|
@@ -1009,6 +1079,7 @@ module Didit
|
|
|
1009
1079
|
field :registry_ownership_status, "registry_ownership_status", :string
|
|
1010
1080
|
field :ownership, "ownership", "KYBRegistryOwnership"
|
|
1011
1081
|
field :registry_tier, "registry_tier", :string
|
|
1082
|
+
field :registry_monitoring, "registry_monitoring", "KybListShareholdersResponseKybRegistryRegistryMonitoring"
|
|
1012
1083
|
end
|
|
1013
1084
|
|
|
1014
1085
|
class KybListShareholdersResponseKybRegistryBeneficialOwners < Didit::Model
|
|
@@ -1056,6 +1127,20 @@ module Didit
|
|
|
1056
1127
|
field :date_of_birth_month, "date_of_birth_month", :integer
|
|
1057
1128
|
end
|
|
1058
1129
|
|
|
1130
|
+
# The latest registry monitor for the company, or `null` when none exists.
|
|
1131
|
+
class KybListShareholdersResponseKybRegistryRegistryMonitoring < Didit::Model
|
|
1132
|
+
field :uuid, "uuid", :string
|
|
1133
|
+
field :status, "status", :string
|
|
1134
|
+
field :unavailable_reason, "unavailable_reason", :string
|
|
1135
|
+
field :enrolled_at, "enrolled_at", :datetime
|
|
1136
|
+
field :cancelled_at, "cancelled_at", :datetime
|
|
1137
|
+
field :last_bill_date, "last_bill_date", :date
|
|
1138
|
+
field :next_bill_date, "next_bill_date", :date
|
|
1139
|
+
field :last_event_at, "last_event_at", :datetime
|
|
1140
|
+
field :events_count, "events_count", :integer
|
|
1141
|
+
field :watched_fields, "watched_fields", :any
|
|
1142
|
+
end
|
|
1143
|
+
|
|
1059
1144
|
class KybListUbosResponse < Didit::Model
|
|
1060
1145
|
field :request_id, "request_id", :string
|
|
1061
1146
|
field :registry_tier_requested, "registry_tier_requested", :string
|
|
@@ -1118,7 +1203,7 @@ module Didit
|
|
|
1118
1203
|
field :addresses, "addresses", [:array, "KYBRegistryAddress"]
|
|
1119
1204
|
field :industries, "industries", [:array, "KYBRegistryIndustry"]
|
|
1120
1205
|
field :accounts, "accounts", :any
|
|
1121
|
-
field :registry_data, "registry_data",
|
|
1206
|
+
field :registry_data, "registry_data", "KYBRegistryData"
|
|
1122
1207
|
field :user_provided_data, "user_provided_data", :any
|
|
1123
1208
|
field :confirmed_by_user_at, "confirmed_by_user_at", :datetime
|
|
1124
1209
|
field :last_console_edit_at, "last_console_edit_at", :datetime
|
|
@@ -1127,6 +1212,7 @@ module Didit
|
|
|
1127
1212
|
field :registry_ownership_status, "registry_ownership_status", :string
|
|
1128
1213
|
field :ownership, "ownership", "KYBRegistryOwnership"
|
|
1129
1214
|
field :registry_tier, "registry_tier", :string
|
|
1215
|
+
field :registry_monitoring, "registry_monitoring", "KybListUbosResponse202KybRegistryRegistryMonitoring"
|
|
1130
1216
|
end
|
|
1131
1217
|
|
|
1132
1218
|
class KybListUbosResponse202KybRegistryBeneficialOwners < Didit::Model
|
|
@@ -1174,6 +1260,20 @@ module Didit
|
|
|
1174
1260
|
field :date_of_birth_month, "date_of_birth_month", :integer
|
|
1175
1261
|
end
|
|
1176
1262
|
|
|
1263
|
+
# The latest registry monitor for the company, or `null` when none exists.
|
|
1264
|
+
class KybListUbosResponse202KybRegistryRegistryMonitoring < Didit::Model
|
|
1265
|
+
field :uuid, "uuid", :string
|
|
1266
|
+
field :status, "status", :string
|
|
1267
|
+
field :unavailable_reason, "unavailable_reason", :string
|
|
1268
|
+
field :enrolled_at, "enrolled_at", :datetime
|
|
1269
|
+
field :cancelled_at, "cancelled_at", :datetime
|
|
1270
|
+
field :last_bill_date, "last_bill_date", :date
|
|
1271
|
+
field :next_bill_date, "next_bill_date", :date
|
|
1272
|
+
field :last_event_at, "last_event_at", :datetime
|
|
1273
|
+
field :events_count, "events_count", :integer
|
|
1274
|
+
field :watched_fields, "watched_fields", :any
|
|
1275
|
+
end
|
|
1276
|
+
|
|
1177
1277
|
# Full registry company profile.
|
|
1178
1278
|
class KybListUbosResponseKybRegistry < Didit::Model
|
|
1179
1279
|
field :uuid, "uuid", :string
|
|
@@ -1216,7 +1316,7 @@ module Didit
|
|
|
1216
1316
|
field :addresses, "addresses", [:array, "KYBRegistryAddress"]
|
|
1217
1317
|
field :industries, "industries", [:array, "KYBRegistryIndustry"]
|
|
1218
1318
|
field :accounts, "accounts", :any
|
|
1219
|
-
field :registry_data, "registry_data",
|
|
1319
|
+
field :registry_data, "registry_data", "KYBRegistryData"
|
|
1220
1320
|
field :user_provided_data, "user_provided_data", :any
|
|
1221
1321
|
field :confirmed_by_user_at, "confirmed_by_user_at", :datetime
|
|
1222
1322
|
field :last_console_edit_at, "last_console_edit_at", :datetime
|
|
@@ -1225,6 +1325,7 @@ module Didit
|
|
|
1225
1325
|
field :registry_ownership_status, "registry_ownership_status", :string
|
|
1226
1326
|
field :ownership, "ownership", "KYBRegistryOwnership"
|
|
1227
1327
|
field :registry_tier, "registry_tier", :string
|
|
1328
|
+
field :registry_monitoring, "registry_monitoring", "KybListUbosResponseKybRegistryRegistryMonitoring"
|
|
1228
1329
|
end
|
|
1229
1330
|
|
|
1230
1331
|
class KybListUbosResponseKybRegistryBeneficialOwners < Didit::Model
|
|
@@ -1272,6 +1373,20 @@ module Didit
|
|
|
1272
1373
|
field :date_of_birth_month, "date_of_birth_month", :integer
|
|
1273
1374
|
end
|
|
1274
1375
|
|
|
1376
|
+
# The latest registry monitor for the company, or `null` when none exists.
|
|
1377
|
+
class KybListUbosResponseKybRegistryRegistryMonitoring < Didit::Model
|
|
1378
|
+
field :uuid, "uuid", :string
|
|
1379
|
+
field :status, "status", :string
|
|
1380
|
+
field :unavailable_reason, "unavailable_reason", :string
|
|
1381
|
+
field :enrolled_at, "enrolled_at", :datetime
|
|
1382
|
+
field :cancelled_at, "cancelled_at", :datetime
|
|
1383
|
+
field :last_bill_date, "last_bill_date", :date
|
|
1384
|
+
field :next_bill_date, "next_bill_date", :date
|
|
1385
|
+
field :last_event_at, "last_event_at", :datetime
|
|
1386
|
+
field :events_count, "events_count", :integer
|
|
1387
|
+
field :watched_fields, "watched_fields", :any
|
|
1388
|
+
end
|
|
1389
|
+
|
|
1275
1390
|
class KybSearchResponse < Didit::Model
|
|
1276
1391
|
field :request_id, "request_id", :string
|
|
1277
1392
|
field :kyb_registry, "kyb_registry", "KYBRegistrySearchResults"
|
|
@@ -1332,7 +1447,7 @@ module Didit
|
|
|
1332
1447
|
field :addresses, "addresses", [:array, "KYBRegistryAddress"]
|
|
1333
1448
|
field :industries, "industries", [:array, "KYBRegistryIndustry"]
|
|
1334
1449
|
field :accounts, "accounts", :any
|
|
1335
|
-
field :registry_data, "registry_data",
|
|
1450
|
+
field :registry_data, "registry_data", "KYBRegistryData"
|
|
1336
1451
|
field :user_provided_data, "user_provided_data", :any
|
|
1337
1452
|
field :confirmed_by_user_at, "confirmed_by_user_at", :datetime
|
|
1338
1453
|
field :last_console_edit_at, "last_console_edit_at", :datetime
|
|
@@ -1341,6 +1456,7 @@ module Didit
|
|
|
1341
1456
|
field :registry_ownership_status, "registry_ownership_status", :string
|
|
1342
1457
|
field :ownership, "ownership", "KYBRegistryOwnership"
|
|
1343
1458
|
field :registry_tier, "registry_tier", :string
|
|
1459
|
+
field :registry_monitoring, "registry_monitoring", "KybSelectResponseKybRegistryRegistryMonitoring"
|
|
1344
1460
|
end
|
|
1345
1461
|
|
|
1346
1462
|
class KybSelectResponseKybRegistryBeneficialOwners < Didit::Model
|
|
@@ -1387,5 +1503,19 @@ module Didit
|
|
|
1387
1503
|
field :date_of_birth_year, "date_of_birth_year", :integer
|
|
1388
1504
|
field :date_of_birth_month, "date_of_birth_month", :integer
|
|
1389
1505
|
end
|
|
1506
|
+
|
|
1507
|
+
# The latest registry monitor for the company, or `null` when none exists.
|
|
1508
|
+
class KybSelectResponseKybRegistryRegistryMonitoring < Didit::Model
|
|
1509
|
+
field :uuid, "uuid", :string
|
|
1510
|
+
field :status, "status", :string
|
|
1511
|
+
field :unavailable_reason, "unavailable_reason", :string
|
|
1512
|
+
field :enrolled_at, "enrolled_at", :datetime
|
|
1513
|
+
field :cancelled_at, "cancelled_at", :datetime
|
|
1514
|
+
field :last_bill_date, "last_bill_date", :date
|
|
1515
|
+
field :next_bill_date, "next_bill_date", :date
|
|
1516
|
+
field :last_event_at, "last_event_at", :datetime
|
|
1517
|
+
field :events_count, "events_count", :integer
|
|
1518
|
+
field :watched_fields, "watched_fields", :any
|
|
1519
|
+
end
|
|
1390
1520
|
end
|
|
1391
1521
|
end
|
data/lib/didit/types/phone.rb
CHANGED
|
@@ -22,6 +22,26 @@ module Didit
|
|
|
22
22
|
VALUES = [NO_ACTION, DECLINE].freeze
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
+
# Action when the phone intelligence trust index is at or below the threshold. `DECLINE` flips the final `status`
|
|
26
|
+
# to `Declined`; `NO_ACTION` records the signal without declining. Only takes effect when `enable_enrichment` is
|
|
27
|
+
# `true`.
|
|
28
|
+
module PhoneCheckCodeParamsLowPhoneTrustAction
|
|
29
|
+
NO_ACTION = "NO_ACTION"
|
|
30
|
+
DECLINE = "DECLINE"
|
|
31
|
+
|
|
32
|
+
VALUES = [NO_ACTION, DECLINE].freeze
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Action when the phone intelligence risk score is above the threshold. `DECLINE` flips the final `status` to
|
|
36
|
+
# `Declined`; `NO_ACTION` records the signal without declining. Only takes effect when `enable_enrichment` is
|
|
37
|
+
# `true`.
|
|
38
|
+
module PhoneCheckCodeParamsPhoneIntelligenceScoreAction
|
|
39
|
+
NO_ACTION = "NO_ACTION"
|
|
40
|
+
DECLINE = "DECLINE"
|
|
41
|
+
|
|
42
|
+
VALUES = [NO_ACTION, DECLINE].freeze
|
|
43
|
+
end
|
|
44
|
+
|
|
25
45
|
# Action when the social footprint check finds the number registered on none of the platforms it covers. Only
|
|
26
46
|
# NO_ACTION and DECLINE are accepted on this endpoint; REVIEW is available on the workflow configuration key of
|
|
27
47
|
# the same name.
|
|
@@ -32,6 +52,24 @@ module Didit
|
|
|
32
52
|
VALUES = [NO_ACTION, DECLINE].freeze
|
|
33
53
|
end
|
|
34
54
|
|
|
55
|
+
# Action when the number is a high-risk line type. `DECLINE` flips the final `status` to `Declined`; `NO_ACTION`
|
|
56
|
+
# records the signal without declining. Only takes effect when `enable_enrichment` is `true`.
|
|
57
|
+
module PhoneCheckCodeParamsPhoneTypeRiskAction
|
|
58
|
+
NO_ACTION = "NO_ACTION"
|
|
59
|
+
DECLINE = "DECLINE"
|
|
60
|
+
|
|
61
|
+
VALUES = [NO_ACTION, DECLINE].freeze
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Action when the number was ported to another carrier recently. `DECLINE` flips the final `status` to `Declined`;
|
|
65
|
+
# `NO_ACTION` records the signal without declining. Only takes effect when `enable_enrichment` is `true`.
|
|
66
|
+
module PhoneCheckCodeParamsRecentPortAction
|
|
67
|
+
NO_ACTION = "NO_ACTION"
|
|
68
|
+
DECLINE = "DECLINE"
|
|
69
|
+
|
|
70
|
+
VALUES = [NO_ACTION, DECLINE].freeze
|
|
71
|
+
end
|
|
72
|
+
|
|
35
73
|
# What to do when the carrier lookup reports a virtual line type - `voip`, `isp`, or `vpn` (`phone.is_virtual`).
|
|
36
74
|
# `DECLINE` flips the final `status` to `Declined`; `NO_ACTION` records the risk in `phone.warnings`.
|
|
37
75
|
module PhoneCheckCodeParamsVoipNumberAction
|