lithic 0.15.0 → 0.17.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 +35 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/internal/transport/base_client.rb +4 -1
- data/lib/lithic/models/account.rb +2 -2
- data/lib/lithic/models/account_holders/account_holder_entity.rb +3 -16
- data/lib/lithic/models/account_holders/entity_create_params.rb +3 -14
- data/lib/lithic/models/auth_rules/ach_payment_update_action.rb +108 -0
- data/lib/lithic/models/auth_rules/auth_rule.rb +18 -12
- data/lib/lithic/models/auth_rules/auth_rule_version.rb +5 -3
- data/lib/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rb +142 -0
- data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +18 -20
- data/lib/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rb +195 -9
- data/lib/lithic/models/auth_rules/event_stream.rb +1 -0
- data/lib/lithic/models/auth_rules/rule_feature.rb +52 -7
- data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
- data/lib/lithic/models/auth_rules/v2_create_params.rb +39 -27
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
- data/lib/lithic/models/auth_rules/v2_list_results_response.rb +426 -1
- data/lib/lithic/models/card.rb +1 -1
- data/lib/lithic/models/card_authorization.rb +117 -11
- data/lib/lithic/models/financial_accounts/loan_tape.rb +9 -1
- data/lib/lithic/models/payment.rb +13 -1
- data/lib/lithic/models/transaction_monitoring/case_activity_entry.rb +74 -0
- data/lib/lithic/models/transaction_monitoring/case_activity_type.rb +35 -0
- data/lib/lithic/models/transaction_monitoring/case_card.rb +37 -0
- data/lib/lithic/models/transaction_monitoring/case_entity.rb +50 -0
- data/lib/lithic/models/transaction_monitoring/case_list_activity_params.rb +53 -0
- data/lib/lithic/models/transaction_monitoring/case_list_params.rb +136 -0
- data/lib/lithic/models/transaction_monitoring/case_list_transactions_params.rb +53 -0
- data/lib/lithic/models/transaction_monitoring/case_priority.rb +20 -0
- data/lib/lithic/models/transaction_monitoring/case_retrieve_cards_params.rb +22 -0
- data/lib/lithic/models/transaction_monitoring/case_retrieve_cards_response.rb +11 -0
- data/lib/lithic/models/transaction_monitoring/case_retrieve_params.rb +22 -0
- data/lib/lithic/models/transaction_monitoring/case_sort_order.rb +29 -0
- data/lib/lithic/models/transaction_monitoring/case_status.rb +31 -0
- data/lib/lithic/models/transaction_monitoring/case_transaction.rb +53 -0
- data/lib/lithic/models/transaction_monitoring/case_update_params.rb +116 -0
- data/lib/lithic/models/transaction_monitoring/cases/case_file.rb +141 -0
- data/lib/lithic/models/transaction_monitoring/cases/comment_create_params.rb +47 -0
- data/lib/lithic/models/transaction_monitoring/cases/comment_delete_params.rb +30 -0
- data/lib/lithic/models/transaction_monitoring/cases/comment_update_params.rb +54 -0
- data/lib/lithic/models/transaction_monitoring/cases/file_create_params.rb +33 -0
- data/lib/lithic/models/transaction_monitoring/cases/file_delete_params.rb +30 -0
- data/lib/lithic/models/transaction_monitoring/cases/file_list_params.rb +54 -0
- data/lib/lithic/models/transaction_monitoring/cases/file_retrieve_params.rb +30 -0
- data/lib/lithic/models/transaction_monitoring/cases/file_status.rb +26 -0
- data/lib/lithic/models/transaction_monitoring/cases/upload_constraints.rb +31 -0
- data/lib/lithic/models/transaction_monitoring/entity_type.rb +18 -0
- data/lib/lithic/models/transaction_monitoring/monitoring_case.rb +168 -0
- data/lib/lithic/models/transaction_monitoring/queue.rb +120 -0
- data/lib/lithic/models/transaction_monitoring/queue_create_params.rb +32 -0
- data/lib/lithic/models/transaction_monitoring/queue_delete_params.rb +22 -0
- data/lib/lithic/models/transaction_monitoring/queue_list_params.rb +45 -0
- data/lib/lithic/models/transaction_monitoring/queue_retrieve_params.rb +22 -0
- data/lib/lithic/models/transaction_monitoring/queue_update_params.rb +39 -0
- data/lib/lithic/models/transaction_monitoring/resolution_outcome.rb +28 -0
- data/lib/lithic/models/transaction_route_params.rb +29 -0
- data/lib/lithic/models.rb +4 -0
- data/lib/lithic/resources/account_holders/entities.rb +1 -1
- data/lib/lithic/resources/auth_rules/v2.rb +2 -2
- data/lib/lithic/resources/cards.rb +2 -2
- data/lib/lithic/resources/transaction_monitoring/cases/comments.rb +111 -0
- data/lib/lithic/resources/transaction_monitoring/cases/files.rb +131 -0
- data/lib/lithic/resources/transaction_monitoring/cases.rb +228 -0
- data/lib/lithic/resources/transaction_monitoring/queues.rb +137 -0
- data/lib/lithic/resources/transaction_monitoring.rb +22 -0
- data/lib/lithic/resources/transactions.rb +25 -0
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +42 -0
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/account.rbi +3 -3
- data/rbi/lithic/models/account_holders/account_holder_entity.rbi +3 -40
- data/rbi/lithic/models/account_holders/entity_create_params.rbi +3 -37
- data/rbi/lithic/models/auth_rules/ach_payment_update_action.rbi +237 -0
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +16 -9
- data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +2 -0
- data/rbi/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rbi +298 -0
- data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +29 -29
- data/rbi/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbi +395 -12
- data/rbi/lithic/models/auth_rules/event_stream.rbi +5 -0
- data/rbi/lithic/models/auth_rules/rule_feature.rbi +77 -6
- data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +6 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +48 -27
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -0
- data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +826 -1
- data/rbi/lithic/models/card.rbi +2 -2
- data/rbi/lithic/models/card_authorization.rbi +246 -17
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +8 -0
- data/rbi/lithic/models/payment.rbi +13 -0
- data/rbi/lithic/models/transaction_monitoring/case_activity_entry.rbi +107 -0
- data/rbi/lithic/models/transaction_monitoring/case_activity_type.rbi +84 -0
- data/rbi/lithic/models/transaction_monitoring/case_card.rbi +60 -0
- data/rbi/lithic/models/transaction_monitoring/case_entity.rbi +101 -0
- data/rbi/lithic/models/transaction_monitoring/case_list_activity_params.rbi +83 -0
- data/rbi/lithic/models/transaction_monitoring/case_list_params.rbi +220 -0
- data/rbi/lithic/models/transaction_monitoring/case_list_transactions_params.rbi +83 -0
- data/rbi/lithic/models/transaction_monitoring/case_priority.rbi +44 -0
- data/rbi/lithic/models/transaction_monitoring/case_retrieve_cards_params.rbi +40 -0
- data/rbi/lithic/models/transaction_monitoring/case_retrieve_cards_response.rbi +15 -0
- data/rbi/lithic/models/transaction_monitoring/case_retrieve_params.rbi +40 -0
- data/rbi/lithic/models/transaction_monitoring/case_sort_order.rbi +64 -0
- data/rbi/lithic/models/transaction_monitoring/case_status.rbi +63 -0
- data/rbi/lithic/models/transaction_monitoring/case_transaction.rbi +75 -0
- data/rbi/lithic/models/transaction_monitoring/case_update_params.rbi +201 -0
- data/rbi/lithic/models/transaction_monitoring/cases/case_file.rbi +188 -0
- data/rbi/lithic/models/transaction_monitoring/cases/comment_create_params.rbi +71 -0
- data/rbi/lithic/models/transaction_monitoring/cases/comment_delete_params.rbi +50 -0
- data/rbi/lithic/models/transaction_monitoring/cases/comment_update_params.rbi +77 -0
- data/rbi/lithic/models/transaction_monitoring/cases/file_create_params.rbi +56 -0
- data/rbi/lithic/models/transaction_monitoring/cases/file_delete_params.rbi +50 -0
- data/rbi/lithic/models/transaction_monitoring/cases/file_list_params.rbi +85 -0
- data/rbi/lithic/models/transaction_monitoring/cases/file_retrieve_params.rbi +50 -0
- data/rbi/lithic/models/transaction_monitoring/cases/file_status.rbi +51 -0
- data/rbi/lithic/models/transaction_monitoring/cases/upload_constraints.rbi +51 -0
- data/rbi/lithic/models/transaction_monitoring/entity_type.rbi +37 -0
- data/rbi/lithic/models/transaction_monitoring/monitoring_case.rbi +226 -0
- data/rbi/lithic/models/transaction_monitoring/queue.rbi +189 -0
- data/rbi/lithic/models/transaction_monitoring/queue_create_params.rbi +56 -0
- data/rbi/lithic/models/transaction_monitoring/queue_delete_params.rbi +40 -0
- data/rbi/lithic/models/transaction_monitoring/queue_list_params.rbi +77 -0
- data/rbi/lithic/models/transaction_monitoring/queue_retrieve_params.rbi +40 -0
- data/rbi/lithic/models/transaction_monitoring/queue_update_params.rbi +65 -0
- data/rbi/lithic/models/transaction_monitoring/resolution_outcome.rbi +61 -0
- data/rbi/lithic/models/transaction_route_params.rbi +49 -0
- data/rbi/lithic/models.rbi +4 -0
- data/rbi/lithic/resources/account_holders/entities.rbi +1 -1
- data/rbi/lithic/resources/auth_rules/v2.rbi +1 -0
- data/rbi/lithic/resources/cards.rbi +2 -2
- data/rbi/lithic/resources/transaction_monitoring/cases/comments.rbi +81 -0
- data/rbi/lithic/resources/transaction_monitoring/cases/files.rbi +98 -0
- data/rbi/lithic/resources/transaction_monitoring/cases.rbi +230 -0
- data/rbi/lithic/resources/transaction_monitoring/queues.rbi +103 -0
- data/rbi/lithic/resources/transaction_monitoring.rbi +18 -0
- data/rbi/lithic/resources/transactions.rbi +18 -0
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/account_holders/account_holder_entity.rbs +4 -15
- data/sig/lithic/models/account_holders/entity_create_params.rbs +4 -15
- data/sig/lithic/models/auth_rules/ach_payment_update_action.rbs +99 -0
- data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
- data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -0
- data/sig/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rbs +81 -0
- data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +16 -16
- data/sig/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbs +73 -3
- data/sig/lithic/models/auth_rules/event_stream.rbs +2 -0
- data/sig/lithic/models/auth_rules/rule_feature.rbs +31 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +3 -0
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
- data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +355 -0
- data/sig/lithic/models/card_authorization.rbs +84 -10
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +5 -0
- data/sig/lithic/models/payment.rbs +7 -0
- data/sig/lithic/models/transaction_monitoring/case_activity_entry.rbs +47 -0
- data/sig/lithic/models/transaction_monitoring/case_activity_type.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/case_card.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/case_entity.rbs +38 -0
- data/sig/lithic/models/transaction_monitoring/case_list_activity_params.rbs +49 -0
- data/sig/lithic/models/transaction_monitoring/case_list_params.rbs +125 -0
- data/sig/lithic/models/transaction_monitoring/case_list_transactions_params.rbs +49 -0
- data/sig/lithic/models/transaction_monitoring/case_priority.rbs +18 -0
- data/sig/lithic/models/transaction_monitoring/case_retrieve_cards_params.rbs +25 -0
- data/sig/lithic/models/transaction_monitoring/case_retrieve_cards_response.rbs +10 -0
- data/sig/lithic/models/transaction_monitoring/case_retrieve_params.rbs +25 -0
- data/sig/lithic/models/transaction_monitoring/case_sort_order.rbs +26 -0
- data/sig/lithic/models/transaction_monitoring/case_status.rbs +21 -0
- data/sig/lithic/models/transaction_monitoring/case_transaction.rbs +42 -0
- data/sig/lithic/models/transaction_monitoring/case_update_params.rbs +91 -0
- data/sig/lithic/models/transaction_monitoring/cases/case_file.rbs +86 -0
- data/sig/lithic/models/transaction_monitoring/cases/comment_create_params.rbs +38 -0
- data/sig/lithic/models/transaction_monitoring/cases/comment_delete_params.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/cases/comment_update_params.rbs +47 -0
- data/sig/lithic/models/transaction_monitoring/cases/file_create_params.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/cases/file_delete_params.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/cases/file_list_params.rbs +51 -0
- data/sig/lithic/models/transaction_monitoring/cases/file_retrieve_params.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/cases/file_status.rbs +19 -0
- data/sig/lithic/models/transaction_monitoring/cases/upload_constraints.rbs +26 -0
- data/sig/lithic/models/transaction_monitoring/entity_type.rbs +16 -0
- data/sig/lithic/models/transaction_monitoring/monitoring_case.rbs +102 -0
- data/sig/lithic/models/transaction_monitoring/queue.rbs +101 -0
- data/sig/lithic/models/transaction_monitoring/queue_create_params.rbs +30 -0
- data/sig/lithic/models/transaction_monitoring/queue_delete_params.rbs +25 -0
- data/sig/lithic/models/transaction_monitoring/queue_list_params.rbs +40 -0
- data/sig/lithic/models/transaction_monitoring/queue_retrieve_params.rbs +25 -0
- data/sig/lithic/models/transaction_monitoring/queue_update_params.rbs +36 -0
- data/sig/lithic/models/transaction_monitoring/resolution_outcome.rbs +24 -0
- data/sig/lithic/models/transaction_route_params.rbs +28 -0
- data/sig/lithic/models.rbs +4 -0
- data/sig/lithic/resources/account_holders/entities.rbs +1 -1
- data/sig/lithic/resources/transaction_monitoring/cases/comments.rbs +32 -0
- data/sig/lithic/resources/transaction_monitoring/cases/files.rbs +37 -0
- data/sig/lithic/resources/transaction_monitoring/cases.rbs +71 -0
- data/sig/lithic/resources/transaction_monitoring/queues.rbs +39 -0
- data/sig/lithic/resources/transaction_monitoring.rbs +11 -0
- data/sig/lithic/resources/transactions.rbs +6 -0
- metadata +128 -2
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module TransactionMonitoring
|
|
6
|
+
module Cases
|
|
7
|
+
class CommentUpdateParams < Lithic::Internal::Type::BaseModel
|
|
8
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Lithic::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
OrHash =
|
|
12
|
+
T.type_alias do
|
|
13
|
+
T.any(
|
|
14
|
+
Lithic::TransactionMonitoring::Cases::CommentUpdateParams,
|
|
15
|
+
Lithic::Internal::AnyHash
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :case_token
|
|
21
|
+
|
|
22
|
+
sig { returns(String) }
|
|
23
|
+
attr_accessor :comment_token
|
|
24
|
+
|
|
25
|
+
# New text of the comment
|
|
26
|
+
sig { returns(String) }
|
|
27
|
+
attr_accessor :comment
|
|
28
|
+
|
|
29
|
+
# Optional client-provided identifier for the actor performing this action,
|
|
30
|
+
# recorded on the resulting activity entry. This value is supplied by the client
|
|
31
|
+
# (for example, your own internal user ID) and is not authenticated by Lithic
|
|
32
|
+
sig { returns(T.nilable(String)) }
|
|
33
|
+
attr_reader :actor_token
|
|
34
|
+
|
|
35
|
+
sig { params(actor_token: String).void }
|
|
36
|
+
attr_writer :actor_token
|
|
37
|
+
|
|
38
|
+
sig do
|
|
39
|
+
params(
|
|
40
|
+
case_token: String,
|
|
41
|
+
comment_token: String,
|
|
42
|
+
comment: String,
|
|
43
|
+
actor_token: String,
|
|
44
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
45
|
+
).returns(T.attached_class)
|
|
46
|
+
end
|
|
47
|
+
def self.new(
|
|
48
|
+
case_token:,
|
|
49
|
+
comment_token:,
|
|
50
|
+
# New text of the comment
|
|
51
|
+
comment:,
|
|
52
|
+
# Optional client-provided identifier for the actor performing this action,
|
|
53
|
+
# recorded on the resulting activity entry. This value is supplied by the client
|
|
54
|
+
# (for example, your own internal user ID) and is not authenticated by Lithic
|
|
55
|
+
actor_token: nil,
|
|
56
|
+
request_options: {}
|
|
57
|
+
)
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
sig do
|
|
61
|
+
override.returns(
|
|
62
|
+
{
|
|
63
|
+
case_token: String,
|
|
64
|
+
comment_token: String,
|
|
65
|
+
comment: String,
|
|
66
|
+
actor_token: String,
|
|
67
|
+
request_options: Lithic::RequestOptions
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
end
|
|
71
|
+
def to_hash
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module TransactionMonitoring
|
|
6
|
+
module Cases
|
|
7
|
+
class FileCreateParams < Lithic::Internal::Type::BaseModel
|
|
8
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Lithic::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
OrHash =
|
|
12
|
+
T.type_alias do
|
|
13
|
+
T.any(
|
|
14
|
+
Lithic::TransactionMonitoring::Cases::FileCreateParams,
|
|
15
|
+
Lithic::Internal::AnyHash
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :case_token
|
|
21
|
+
|
|
22
|
+
# Name of the file to upload
|
|
23
|
+
sig { returns(String) }
|
|
24
|
+
attr_accessor :name
|
|
25
|
+
|
|
26
|
+
sig do
|
|
27
|
+
params(
|
|
28
|
+
case_token: String,
|
|
29
|
+
name: String,
|
|
30
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
31
|
+
).returns(T.attached_class)
|
|
32
|
+
end
|
|
33
|
+
def self.new(
|
|
34
|
+
case_token:,
|
|
35
|
+
# Name of the file to upload
|
|
36
|
+
name:,
|
|
37
|
+
request_options: {}
|
|
38
|
+
)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
sig do
|
|
42
|
+
override.returns(
|
|
43
|
+
{
|
|
44
|
+
case_token: String,
|
|
45
|
+
name: String,
|
|
46
|
+
request_options: Lithic::RequestOptions
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
def to_hash
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module TransactionMonitoring
|
|
6
|
+
module Cases
|
|
7
|
+
class FileDeleteParams < Lithic::Internal::Type::BaseModel
|
|
8
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Lithic::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
OrHash =
|
|
12
|
+
T.type_alias do
|
|
13
|
+
T.any(
|
|
14
|
+
Lithic::TransactionMonitoring::Cases::FileDeleteParams,
|
|
15
|
+
Lithic::Internal::AnyHash
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :case_token
|
|
21
|
+
|
|
22
|
+
sig { returns(String) }
|
|
23
|
+
attr_accessor :file_token
|
|
24
|
+
|
|
25
|
+
sig do
|
|
26
|
+
params(
|
|
27
|
+
case_token: String,
|
|
28
|
+
file_token: String,
|
|
29
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
30
|
+
).returns(T.attached_class)
|
|
31
|
+
end
|
|
32
|
+
def self.new(case_token:, file_token:, request_options: {})
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
override.returns(
|
|
37
|
+
{
|
|
38
|
+
case_token: String,
|
|
39
|
+
file_token: String,
|
|
40
|
+
request_options: Lithic::RequestOptions
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
end
|
|
44
|
+
def to_hash
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module TransactionMonitoring
|
|
6
|
+
module Cases
|
|
7
|
+
class FileListParams < Lithic::Internal::Type::BaseModel
|
|
8
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Lithic::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
OrHash =
|
|
12
|
+
T.type_alias do
|
|
13
|
+
T.any(
|
|
14
|
+
Lithic::TransactionMonitoring::Cases::FileListParams,
|
|
15
|
+
Lithic::Internal::AnyHash
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :case_token
|
|
21
|
+
|
|
22
|
+
# A cursor representing an item's token before which a page of results should end.
|
|
23
|
+
# Used to retrieve the previous page of results before this item.
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
attr_reader :ending_before
|
|
26
|
+
|
|
27
|
+
sig { params(ending_before: String).void }
|
|
28
|
+
attr_writer :ending_before
|
|
29
|
+
|
|
30
|
+
# Page size (for pagination).
|
|
31
|
+
sig { returns(T.nilable(Integer)) }
|
|
32
|
+
attr_reader :page_size
|
|
33
|
+
|
|
34
|
+
sig { params(page_size: Integer).void }
|
|
35
|
+
attr_writer :page_size
|
|
36
|
+
|
|
37
|
+
# A cursor representing an item's token after which a page of results should
|
|
38
|
+
# begin. Used to retrieve the next page of results after this item.
|
|
39
|
+
sig { returns(T.nilable(String)) }
|
|
40
|
+
attr_reader :starting_after
|
|
41
|
+
|
|
42
|
+
sig { params(starting_after: String).void }
|
|
43
|
+
attr_writer :starting_after
|
|
44
|
+
|
|
45
|
+
sig do
|
|
46
|
+
params(
|
|
47
|
+
case_token: String,
|
|
48
|
+
ending_before: String,
|
|
49
|
+
page_size: Integer,
|
|
50
|
+
starting_after: String,
|
|
51
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
52
|
+
).returns(T.attached_class)
|
|
53
|
+
end
|
|
54
|
+
def self.new(
|
|
55
|
+
case_token:,
|
|
56
|
+
# A cursor representing an item's token before which a page of results should end.
|
|
57
|
+
# Used to retrieve the previous page of results before this item.
|
|
58
|
+
ending_before: nil,
|
|
59
|
+
# Page size (for pagination).
|
|
60
|
+
page_size: nil,
|
|
61
|
+
# A cursor representing an item's token after which a page of results should
|
|
62
|
+
# begin. Used to retrieve the next page of results after this item.
|
|
63
|
+
starting_after: nil,
|
|
64
|
+
request_options: {}
|
|
65
|
+
)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
sig do
|
|
69
|
+
override.returns(
|
|
70
|
+
{
|
|
71
|
+
case_token: String,
|
|
72
|
+
ending_before: String,
|
|
73
|
+
page_size: Integer,
|
|
74
|
+
starting_after: String,
|
|
75
|
+
request_options: Lithic::RequestOptions
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
end
|
|
79
|
+
def to_hash
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module TransactionMonitoring
|
|
6
|
+
module Cases
|
|
7
|
+
class FileRetrieveParams < Lithic::Internal::Type::BaseModel
|
|
8
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Lithic::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
OrHash =
|
|
12
|
+
T.type_alias do
|
|
13
|
+
T.any(
|
|
14
|
+
Lithic::TransactionMonitoring::Cases::FileRetrieveParams,
|
|
15
|
+
Lithic::Internal::AnyHash
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :case_token
|
|
21
|
+
|
|
22
|
+
sig { returns(String) }
|
|
23
|
+
attr_accessor :file_token
|
|
24
|
+
|
|
25
|
+
sig do
|
|
26
|
+
params(
|
|
27
|
+
case_token: String,
|
|
28
|
+
file_token: String,
|
|
29
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
30
|
+
).returns(T.attached_class)
|
|
31
|
+
end
|
|
32
|
+
def self.new(case_token:, file_token:, request_options: {})
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
override.returns(
|
|
37
|
+
{
|
|
38
|
+
case_token: String,
|
|
39
|
+
file_token: String,
|
|
40
|
+
request_options: Lithic::RequestOptions
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
end
|
|
44
|
+
def to_hash
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module TransactionMonitoring
|
|
6
|
+
module Cases
|
|
7
|
+
# Lifecycle status of a case file:
|
|
8
|
+
#
|
|
9
|
+
# - `PENDING` - An upload URL has been issued and the file is awaiting upload
|
|
10
|
+
# - `READY` - The file has been uploaded and validated; a download URL is
|
|
11
|
+
# available
|
|
12
|
+
# - `REJECTED` - File validation failed; see `failure_reason` for details
|
|
13
|
+
module FileStatus
|
|
14
|
+
extend Lithic::Internal::Type::Enum
|
|
15
|
+
|
|
16
|
+
TaggedSymbol =
|
|
17
|
+
T.type_alias do
|
|
18
|
+
T.all(Symbol, Lithic::TransactionMonitoring::Cases::FileStatus)
|
|
19
|
+
end
|
|
20
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
21
|
+
|
|
22
|
+
PENDING =
|
|
23
|
+
T.let(
|
|
24
|
+
:PENDING,
|
|
25
|
+
Lithic::TransactionMonitoring::Cases::FileStatus::TaggedSymbol
|
|
26
|
+
)
|
|
27
|
+
READY =
|
|
28
|
+
T.let(
|
|
29
|
+
:READY,
|
|
30
|
+
Lithic::TransactionMonitoring::Cases::FileStatus::TaggedSymbol
|
|
31
|
+
)
|
|
32
|
+
REJECTED =
|
|
33
|
+
T.let(
|
|
34
|
+
:REJECTED,
|
|
35
|
+
Lithic::TransactionMonitoring::Cases::FileStatus::TaggedSymbol
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
sig do
|
|
39
|
+
override.returns(
|
|
40
|
+
T::Array[
|
|
41
|
+
Lithic::TransactionMonitoring::Cases::FileStatus::TaggedSymbol
|
|
42
|
+
]
|
|
43
|
+
)
|
|
44
|
+
end
|
|
45
|
+
def self.values
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module TransactionMonitoring
|
|
6
|
+
module Cases
|
|
7
|
+
class UploadConstraints < Lithic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Lithic::TransactionMonitoring::Cases::UploadConstraints,
|
|
12
|
+
Lithic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# MIME types accepted for the upload
|
|
17
|
+
sig { returns(T::Array[String]) }
|
|
18
|
+
attr_accessor :accepted_mime_types
|
|
19
|
+
|
|
20
|
+
# Maximum accepted file size, in bytes
|
|
21
|
+
sig { returns(Integer) }
|
|
22
|
+
attr_accessor :max_size_bytes
|
|
23
|
+
|
|
24
|
+
# Constraints applied to a file upload, returned alongside the upload URL so
|
|
25
|
+
# clients can validate before uploading
|
|
26
|
+
sig do
|
|
27
|
+
params(
|
|
28
|
+
accepted_mime_types: T::Array[String],
|
|
29
|
+
max_size_bytes: Integer
|
|
30
|
+
).returns(T.attached_class)
|
|
31
|
+
end
|
|
32
|
+
def self.new(
|
|
33
|
+
# MIME types accepted for the upload
|
|
34
|
+
accepted_mime_types:,
|
|
35
|
+
# Maximum accepted file size, in bytes
|
|
36
|
+
max_size_bytes:
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
sig do
|
|
41
|
+
override.returns(
|
|
42
|
+
{ accepted_mime_types: T::Array[String], max_size_bytes: Integer }
|
|
43
|
+
)
|
|
44
|
+
end
|
|
45
|
+
def to_hash
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module TransactionMonitoring
|
|
6
|
+
# The type of entity associated with an account holder
|
|
7
|
+
module EntityType
|
|
8
|
+
extend Lithic::Internal::Type::Enum
|
|
9
|
+
|
|
10
|
+
TaggedSymbol =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.all(Symbol, Lithic::TransactionMonitoring::EntityType)
|
|
13
|
+
end
|
|
14
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
15
|
+
|
|
16
|
+
BENEFICIAL_OWNER_INDIVIDUAL =
|
|
17
|
+
T.let(
|
|
18
|
+
:BENEFICIAL_OWNER_INDIVIDUAL,
|
|
19
|
+
Lithic::TransactionMonitoring::EntityType::TaggedSymbol
|
|
20
|
+
)
|
|
21
|
+
CONTROL_PERSON =
|
|
22
|
+
T.let(
|
|
23
|
+
:CONTROL_PERSON,
|
|
24
|
+
Lithic::TransactionMonitoring::EntityType::TaggedSymbol
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
sig do
|
|
28
|
+
override.returns(
|
|
29
|
+
T::Array[Lithic::TransactionMonitoring::EntityType::TaggedSymbol]
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
def self.values
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module TransactionMonitoring
|
|
6
|
+
class MonitoringCase < Lithic::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Lithic::TransactionMonitoring::MonitoringCase,
|
|
11
|
+
Lithic::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Globally unique identifier for the case
|
|
16
|
+
sig { returns(String) }
|
|
17
|
+
attr_accessor :token
|
|
18
|
+
|
|
19
|
+
# Identifier of the user the case is currently assigned to
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
attr_accessor :assignee
|
|
22
|
+
|
|
23
|
+
# Date and time at which transaction collection stopped for the case
|
|
24
|
+
sig { returns(T.nilable(Time)) }
|
|
25
|
+
attr_accessor :collection_stopped
|
|
26
|
+
|
|
27
|
+
# Date and time at which the case was created
|
|
28
|
+
sig { returns(Time) }
|
|
29
|
+
attr_accessor :created
|
|
30
|
+
|
|
31
|
+
# The entity a case is associated with
|
|
32
|
+
sig { returns(T.nilable(Lithic::TransactionMonitoring::CaseEntity)) }
|
|
33
|
+
attr_reader :entity
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
params(
|
|
37
|
+
entity: T.nilable(Lithic::TransactionMonitoring::CaseEntity::OrHash)
|
|
38
|
+
).void
|
|
39
|
+
end
|
|
40
|
+
attr_writer :entity
|
|
41
|
+
|
|
42
|
+
# Whether the case still has transaction scopes pending resolution
|
|
43
|
+
sig { returns(T::Boolean) }
|
|
44
|
+
attr_accessor :pending_transactions
|
|
45
|
+
|
|
46
|
+
# Priority level of a case, controlling queue ordering and SLA urgency
|
|
47
|
+
sig do
|
|
48
|
+
returns(Lithic::TransactionMonitoring::CasePriority::TaggedSymbol)
|
|
49
|
+
end
|
|
50
|
+
attr_accessor :priority
|
|
51
|
+
|
|
52
|
+
# Token of the queue the case belongs to
|
|
53
|
+
sig { returns(String) }
|
|
54
|
+
attr_accessor :queue_token
|
|
55
|
+
|
|
56
|
+
# Outcome recorded when a case is resolved:
|
|
57
|
+
#
|
|
58
|
+
# - `CONFIRMED_FRAUD` - The reviewed activity was confirmed to be fraudulent
|
|
59
|
+
# - `SUSPICIOUS_ACTIVITY` - The activity is suspicious but not confirmed fraud
|
|
60
|
+
# - `FALSE_POSITIVE` - The activity was legitimate and the alert was a false
|
|
61
|
+
# positive
|
|
62
|
+
# - `NO_ACTION_REQUIRED` - No further action is required
|
|
63
|
+
# - `ESCALATED_EXTERNAL` - The case was escalated to an external party
|
|
64
|
+
sig do
|
|
65
|
+
returns(
|
|
66
|
+
T.nilable(
|
|
67
|
+
Lithic::TransactionMonitoring::ResolutionOutcome::TaggedSymbol
|
|
68
|
+
)
|
|
69
|
+
)
|
|
70
|
+
end
|
|
71
|
+
attr_accessor :resolution
|
|
72
|
+
|
|
73
|
+
# Free-form notes describing the resolution
|
|
74
|
+
sig { returns(T.nilable(String)) }
|
|
75
|
+
attr_accessor :resolution_notes
|
|
76
|
+
|
|
77
|
+
# Date and time at which the case was resolved
|
|
78
|
+
sig { returns(T.nilable(Time)) }
|
|
79
|
+
attr_accessor :resolved
|
|
80
|
+
|
|
81
|
+
# Token of the transaction monitoring rule that triggered the case
|
|
82
|
+
sig { returns(T.nilable(String)) }
|
|
83
|
+
attr_accessor :rule_token
|
|
84
|
+
|
|
85
|
+
# Deadline by which the case is expected to be resolved
|
|
86
|
+
sig { returns(T.nilable(Time)) }
|
|
87
|
+
attr_accessor :sla_deadline
|
|
88
|
+
|
|
89
|
+
# Status of a case as it progresses through the review workflow:
|
|
90
|
+
#
|
|
91
|
+
# - `OPEN` - The case has been created and is still collecting matching
|
|
92
|
+
# transactions
|
|
93
|
+
# - `ASSIGNED` - An analyst has been assigned and transaction collection has
|
|
94
|
+
# stopped
|
|
95
|
+
# - `IN_REVIEW` - The case is actively being investigated
|
|
96
|
+
# - `ESCALATED` - The case has been reviewed and requires additional oversight
|
|
97
|
+
# - `RESOLVED` - A determination has been made and a resolution recorded
|
|
98
|
+
# - `CLOSED` - The case is finalized
|
|
99
|
+
sig { returns(Lithic::TransactionMonitoring::CaseStatus::TaggedSymbol) }
|
|
100
|
+
attr_accessor :status
|
|
101
|
+
|
|
102
|
+
# Arbitrary key-value metadata associated with the case
|
|
103
|
+
sig { returns(T::Hash[Symbol, String]) }
|
|
104
|
+
attr_accessor :tags
|
|
105
|
+
|
|
106
|
+
# Short, human-readable summary of the case
|
|
107
|
+
sig { returns(T.nilable(String)) }
|
|
108
|
+
attr_accessor :title
|
|
109
|
+
|
|
110
|
+
# Date and time at which the case was last updated
|
|
111
|
+
sig { returns(Time) }
|
|
112
|
+
attr_accessor :updated
|
|
113
|
+
|
|
114
|
+
# A transaction monitoring case
|
|
115
|
+
sig do
|
|
116
|
+
params(
|
|
117
|
+
token: String,
|
|
118
|
+
assignee: T.nilable(String),
|
|
119
|
+
collection_stopped: T.nilable(Time),
|
|
120
|
+
created: Time,
|
|
121
|
+
entity:
|
|
122
|
+
T.nilable(Lithic::TransactionMonitoring::CaseEntity::OrHash),
|
|
123
|
+
pending_transactions: T::Boolean,
|
|
124
|
+
priority: Lithic::TransactionMonitoring::CasePriority::OrSymbol,
|
|
125
|
+
queue_token: String,
|
|
126
|
+
resolution:
|
|
127
|
+
T.nilable(
|
|
128
|
+
Lithic::TransactionMonitoring::ResolutionOutcome::OrSymbol
|
|
129
|
+
),
|
|
130
|
+
resolution_notes: T.nilable(String),
|
|
131
|
+
resolved: T.nilable(Time),
|
|
132
|
+
rule_token: T.nilable(String),
|
|
133
|
+
sla_deadline: T.nilable(Time),
|
|
134
|
+
status: Lithic::TransactionMonitoring::CaseStatus::OrSymbol,
|
|
135
|
+
tags: T::Hash[Symbol, String],
|
|
136
|
+
title: T.nilable(String),
|
|
137
|
+
updated: Time
|
|
138
|
+
).returns(T.attached_class)
|
|
139
|
+
end
|
|
140
|
+
def self.new(
|
|
141
|
+
# Globally unique identifier for the case
|
|
142
|
+
token:,
|
|
143
|
+
# Identifier of the user the case is currently assigned to
|
|
144
|
+
assignee:,
|
|
145
|
+
# Date and time at which transaction collection stopped for the case
|
|
146
|
+
collection_stopped:,
|
|
147
|
+
# Date and time at which the case was created
|
|
148
|
+
created:,
|
|
149
|
+
# The entity a case is associated with
|
|
150
|
+
entity:,
|
|
151
|
+
# Whether the case still has transaction scopes pending resolution
|
|
152
|
+
pending_transactions:,
|
|
153
|
+
# Priority level of a case, controlling queue ordering and SLA urgency
|
|
154
|
+
priority:,
|
|
155
|
+
# Token of the queue the case belongs to
|
|
156
|
+
queue_token:,
|
|
157
|
+
# Outcome recorded when a case is resolved:
|
|
158
|
+
#
|
|
159
|
+
# - `CONFIRMED_FRAUD` - The reviewed activity was confirmed to be fraudulent
|
|
160
|
+
# - `SUSPICIOUS_ACTIVITY` - The activity is suspicious but not confirmed fraud
|
|
161
|
+
# - `FALSE_POSITIVE` - The activity was legitimate and the alert was a false
|
|
162
|
+
# positive
|
|
163
|
+
# - `NO_ACTION_REQUIRED` - No further action is required
|
|
164
|
+
# - `ESCALATED_EXTERNAL` - The case was escalated to an external party
|
|
165
|
+
resolution:,
|
|
166
|
+
# Free-form notes describing the resolution
|
|
167
|
+
resolution_notes:,
|
|
168
|
+
# Date and time at which the case was resolved
|
|
169
|
+
resolved:,
|
|
170
|
+
# Token of the transaction monitoring rule that triggered the case
|
|
171
|
+
rule_token:,
|
|
172
|
+
# Deadline by which the case is expected to be resolved
|
|
173
|
+
sla_deadline:,
|
|
174
|
+
# Status of a case as it progresses through the review workflow:
|
|
175
|
+
#
|
|
176
|
+
# - `OPEN` - The case has been created and is still collecting matching
|
|
177
|
+
# transactions
|
|
178
|
+
# - `ASSIGNED` - An analyst has been assigned and transaction collection has
|
|
179
|
+
# stopped
|
|
180
|
+
# - `IN_REVIEW` - The case is actively being investigated
|
|
181
|
+
# - `ESCALATED` - The case has been reviewed and requires additional oversight
|
|
182
|
+
# - `RESOLVED` - A determination has been made and a resolution recorded
|
|
183
|
+
# - `CLOSED` - The case is finalized
|
|
184
|
+
status:,
|
|
185
|
+
# Arbitrary key-value metadata associated with the case
|
|
186
|
+
tags:,
|
|
187
|
+
# Short, human-readable summary of the case
|
|
188
|
+
title:,
|
|
189
|
+
# Date and time at which the case was last updated
|
|
190
|
+
updated:
|
|
191
|
+
)
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
sig do
|
|
195
|
+
override.returns(
|
|
196
|
+
{
|
|
197
|
+
token: String,
|
|
198
|
+
assignee: T.nilable(String),
|
|
199
|
+
collection_stopped: T.nilable(Time),
|
|
200
|
+
created: Time,
|
|
201
|
+
entity: T.nilable(Lithic::TransactionMonitoring::CaseEntity),
|
|
202
|
+
pending_transactions: T::Boolean,
|
|
203
|
+
priority:
|
|
204
|
+
Lithic::TransactionMonitoring::CasePriority::TaggedSymbol,
|
|
205
|
+
queue_token: String,
|
|
206
|
+
resolution:
|
|
207
|
+
T.nilable(
|
|
208
|
+
Lithic::TransactionMonitoring::ResolutionOutcome::TaggedSymbol
|
|
209
|
+
),
|
|
210
|
+
resolution_notes: T.nilable(String),
|
|
211
|
+
resolved: T.nilable(Time),
|
|
212
|
+
rule_token: T.nilable(String),
|
|
213
|
+
sla_deadline: T.nilable(Time),
|
|
214
|
+
status: Lithic::TransactionMonitoring::CaseStatus::TaggedSymbol,
|
|
215
|
+
tags: T::Hash[Symbol, String],
|
|
216
|
+
title: T.nilable(String),
|
|
217
|
+
updated: Time
|
|
218
|
+
}
|
|
219
|
+
)
|
|
220
|
+
end
|
|
221
|
+
def to_hash
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
end
|