lithic 0.14.0 → 0.16.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 +52 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +8 -0
- data/lib/lithic/internal/transport/base_client.rb +5 -0
- data/lib/lithic/models/account.rb +2 -2
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +4 -4
- 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/auth_rule.rb +14 -8
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +2 -2
- data/lib/lithic/models/auth_rules/auth_rule_version.rb +5 -3
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -6
- data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +4 -4
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +52 -34
- data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +531 -0
- data/lib/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rb +213 -23
- data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +6 -6
- data/lib/lithic/models/auth_rules/conditional_value.rb +3 -2
- data/lib/lithic/models/auth_rules/rule_feature.rb +29 -6
- data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
- data/lib/lithic/models/auth_rules/v2_create_params.rb +27 -15
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
- data/lib/lithic/models/balance.rb +8 -6
- data/lib/lithic/models/card.rb +1 -1
- data/lib/lithic/models/card_authorization.rb +1372 -0
- data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +3 -1253
- data/lib/lithic/models/card_authorization_challenge_response_params.rb +40 -0
- data/lib/lithic/models/card_authorization_challenge_response_webhook_event.rb +1 -0
- data/lib/lithic/models/card_authorization_challenge_webhook_event.rb +67 -0
- data/lib/lithic/models/card_program.rb +2 -2
- data/lib/lithic/models/event.rb +13 -4
- data/lib/lithic/models/event_list_params.rb +7 -2
- data/lib/lithic/models/event_subscription.rb +7 -2
- data/lib/lithic/models/events/subscription_create_params.rb +7 -2
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
- data/lib/lithic/models/events/subscription_update_params.rb +7 -2
- data/lib/lithic/models/external_bank_account.rb +1 -1
- data/lib/lithic/models/external_bank_account_pause_params.rb +20 -0
- data/lib/lithic/models/financial_accounts/loan_tape.rb +9 -1
- data/lib/lithic/models/financial_accounts/statement.rb +4 -4
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +3 -2
- data/lib/lithic/models/financial_event.rb +1 -0
- data/lib/lithic/models/kyb_business_entity.rb +2 -2
- data/lib/lithic/models/parsed_webhook_event.rb +4 -1
- data/lib/lithic/models/payment.rb +13 -1
- data/lib/lithic/models/settlement_detail.rb +14 -14
- data/lib/lithic/models/statement_totals.rb +6 -6
- data/lib/lithic/models/tokenization_decline_reason.rb +1 -0
- data/lib/lithic/models/transaction.rb +2 -2
- 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/transfer_limits_response.rb +12 -12
- data/lib/lithic/models.rb +12 -0
- data/lib/lithic/resources/account_holders/entities.rb +1 -1
- data/lib/lithic/resources/auth_rules/v2.rb +1 -1
- data/lib/lithic/resources/card_authorizations.rb +45 -0
- data/lib/lithic/resources/cards.rb +2 -2
- data/lib/lithic/resources/external_bank_accounts.rb +19 -0
- 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/resources/webhooks.rb +1 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +46 -0
- data/rbi/lithic/client.rbi +6 -0
- data/rbi/lithic/models/account.rbi +3 -3
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +6 -12
- 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/auth_rule.rbi +14 -7
- data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +4 -2
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +9 -6
- data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +3 -3
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +75 -48
- data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +1147 -0
- data/rbi/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbi +419 -30
- data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +6 -6
- data/rbi/lithic/models/auth_rules/conditional_value.rbi +1 -1
- data/rbi/lithic/models/auth_rules/rule_feature.rbi +41 -5
- data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +3 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +42 -21
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -4
- data/rbi/lithic/models/balance.rbi +12 -6
- data/rbi/lithic/models/card.rbi +2 -2
- data/rbi/lithic/models/card_authorization.rbi +2769 -0
- data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +5 -2758
- data/rbi/lithic/models/card_authorization_challenge_response_params.rbi +93 -0
- data/rbi/lithic/models/card_authorization_challenge_response_webhook_event.rbi +5 -0
- data/rbi/lithic/models/card_authorization_challenge_webhook_event.rbi +119 -0
- data/rbi/lithic/models/card_program.rbi +3 -6
- data/rbi/lithic/models/event.rbi +23 -6
- data/rbi/lithic/models/event_list_params.rbi +11 -2
- data/rbi/lithic/models/event_subscription.rbi +11 -2
- data/rbi/lithic/models/events/subscription_create_params.rbi +11 -2
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +11 -2
- data/rbi/lithic/models/external_bank_account_pause_params.rbi +41 -0
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +8 -0
- data/rbi/lithic/models/financial_accounts/statement.rbi +6 -12
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +8 -6
- data/rbi/lithic/models/financial_event.rbi +2 -0
- data/rbi/lithic/models/kyb_business_entity.rbi +3 -6
- data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
- data/rbi/lithic/models/payment.rbi +13 -0
- data/rbi/lithic/models/settlement_detail.rbi +15 -15
- data/rbi/lithic/models/statement_totals.rbi +9 -18
- data/rbi/lithic/models/tokenization_decline_reason.rbi +2 -0
- data/rbi/lithic/models/transaction.rbi +3 -3
- 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/transfer_limits_response.rbi +48 -48
- data/rbi/lithic/models.rbi +15 -0
- data/rbi/lithic/resources/account_holders/entities.rbi +1 -1
- data/rbi/lithic/resources/auth_rules/v2.rbi +2 -1
- data/rbi/lithic/resources/card_authorizations.rbi +35 -0
- data/rbi/lithic/resources/cards.rbi +2 -2
- data/rbi/lithic/resources/external_bank_accounts.rbi +10 -0
- 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/rbi/lithic/resources/webhooks.rbi +4 -1
- data/sig/lithic/client.rbs +4 -0
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +8 -12
- 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/auth_rule.rbs +2 -0
- data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -0
- data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +276 -0
- data/sig/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbs +73 -3
- data/sig/lithic/models/auth_rules/conditional_value.rbs +1 -1
- data/sig/lithic/models/auth_rules/rule_feature.rbs +16 -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/balance.rbs +17 -9
- data/sig/lithic/models/card_authorization.rbs +1112 -0
- data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +7 -1013
- data/sig/lithic/models/card_authorization_challenge_response_params.rbs +42 -0
- data/sig/lithic/models/card_authorization_challenge_response_webhook_event.rbs +2 -1
- data/sig/lithic/models/card_authorization_challenge_webhook_event.rbs +53 -0
- data/sig/lithic/models/card_program.rbs +4 -6
- data/sig/lithic/models/event.rbs +2 -0
- data/sig/lithic/models/event_list_params.rbs +2 -0
- data/sig/lithic/models/event_subscription.rbs +2 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
- data/sig/lithic/models/external_bank_account_pause_params.rbs +24 -0
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +5 -0
- data/sig/lithic/models/financial_accounts/statement.rbs +8 -12
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +6 -6
- data/sig/lithic/models/financial_event.rbs +2 -0
- data/sig/lithic/models/kyb_business_entity.rbs +4 -6
- data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
- data/sig/lithic/models/payment.rbs +7 -0
- data/sig/lithic/models/settlement_detail.rbs +18 -18
- data/sig/lithic/models/statement_totals.rbs +12 -18
- data/sig/lithic/models/tokenization_decline_reason.rbs +2 -0
- data/sig/lithic/models/transaction.rbs +4 -8
- 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/transfer_limits_response.rbs +24 -36
- data/sig/lithic/models.rbs +12 -0
- data/sig/lithic/resources/account_holders/entities.rbs +1 -1
- data/sig/lithic/resources/card_authorizations.rbs +13 -0
- data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
- 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
- data/sig/lithic/resources/webhooks.rbs +1 -0
- metadata +140 -2
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Resources
|
|
5
|
+
class TransactionMonitoring
|
|
6
|
+
class Queues
|
|
7
|
+
# Creates a new queue for grouping transaction monitoring cases.
|
|
8
|
+
#
|
|
9
|
+
# @overload create(name:, description: nil, request_options: {})
|
|
10
|
+
#
|
|
11
|
+
# @param name [String] Human-readable name of the queue
|
|
12
|
+
#
|
|
13
|
+
# @param description [String, nil] Optional description of the queue
|
|
14
|
+
#
|
|
15
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
16
|
+
#
|
|
17
|
+
# @return [Lithic::Models::TransactionMonitoring::Queue]
|
|
18
|
+
#
|
|
19
|
+
# @see Lithic::Models::TransactionMonitoring::QueueCreateParams
|
|
20
|
+
def create(params)
|
|
21
|
+
parsed, options = Lithic::TransactionMonitoring::QueueCreateParams.dump_request(params)
|
|
22
|
+
@client.request(
|
|
23
|
+
method: :post,
|
|
24
|
+
path: "v1/transaction_monitoring/queues",
|
|
25
|
+
body: parsed,
|
|
26
|
+
model: Lithic::TransactionMonitoring::Queue,
|
|
27
|
+
options: options
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Retrieves a single transaction monitoring queue.
|
|
32
|
+
#
|
|
33
|
+
# @overload retrieve(queue_token, request_options: {})
|
|
34
|
+
#
|
|
35
|
+
# @param queue_token [String] Globally unique identifier for the queue.
|
|
36
|
+
#
|
|
37
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
38
|
+
#
|
|
39
|
+
# @return [Lithic::Models::TransactionMonitoring::Queue]
|
|
40
|
+
#
|
|
41
|
+
# @see Lithic::Models::TransactionMonitoring::QueueRetrieveParams
|
|
42
|
+
def retrieve(queue_token, params = {})
|
|
43
|
+
@client.request(
|
|
44
|
+
method: :get,
|
|
45
|
+
path: ["v1/transaction_monitoring/queues/%1$s", queue_token],
|
|
46
|
+
model: Lithic::TransactionMonitoring::Queue,
|
|
47
|
+
options: params[:request_options]
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Updates a transaction monitoring queue.
|
|
52
|
+
#
|
|
53
|
+
# @overload update(queue_token, description: nil, name: nil, request_options: {})
|
|
54
|
+
#
|
|
55
|
+
# @param queue_token [String] Globally unique identifier for the queue.
|
|
56
|
+
#
|
|
57
|
+
# @param description [String, nil] New description for the queue, or `null` to clear it
|
|
58
|
+
#
|
|
59
|
+
# @param name [String] New name for the queue
|
|
60
|
+
#
|
|
61
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
62
|
+
#
|
|
63
|
+
# @return [Lithic::Models::TransactionMonitoring::Queue]
|
|
64
|
+
#
|
|
65
|
+
# @see Lithic::Models::TransactionMonitoring::QueueUpdateParams
|
|
66
|
+
def update(queue_token, params = {})
|
|
67
|
+
parsed, options = Lithic::TransactionMonitoring::QueueUpdateParams.dump_request(params)
|
|
68
|
+
@client.request(
|
|
69
|
+
method: :patch,
|
|
70
|
+
path: ["v1/transaction_monitoring/queues/%1$s", queue_token],
|
|
71
|
+
body: parsed,
|
|
72
|
+
model: Lithic::TransactionMonitoring::Queue,
|
|
73
|
+
options: options
|
|
74
|
+
)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Some parameter documentations has been truncated, see
|
|
78
|
+
# {Lithic::Models::TransactionMonitoring::QueueListParams} for more details.
|
|
79
|
+
#
|
|
80
|
+
# Lists transaction monitoring queues.
|
|
81
|
+
#
|
|
82
|
+
# @overload list(ending_before: nil, page_size: nil, starting_after: nil, request_options: {})
|
|
83
|
+
#
|
|
84
|
+
# @param ending_before [String] A cursor representing an item's token before which a page of results should end.
|
|
85
|
+
#
|
|
86
|
+
# @param page_size [Integer] Page size (for pagination).
|
|
87
|
+
#
|
|
88
|
+
# @param starting_after [String] A cursor representing an item's token after which a page of results should begin
|
|
89
|
+
#
|
|
90
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
91
|
+
#
|
|
92
|
+
# @return [Lithic::Internal::CursorPage<Lithic::Models::TransactionMonitoring::Queue>]
|
|
93
|
+
#
|
|
94
|
+
# @see Lithic::Models::TransactionMonitoring::QueueListParams
|
|
95
|
+
def list(params = {})
|
|
96
|
+
parsed, options = Lithic::TransactionMonitoring::QueueListParams.dump_request(params)
|
|
97
|
+
query = Lithic::Internal::Util.encode_query_params(parsed)
|
|
98
|
+
@client.request(
|
|
99
|
+
method: :get,
|
|
100
|
+
path: "v1/transaction_monitoring/queues",
|
|
101
|
+
query: query,
|
|
102
|
+
page: Lithic::Internal::CursorPage,
|
|
103
|
+
model: Lithic::TransactionMonitoring::Queue,
|
|
104
|
+
options: options
|
|
105
|
+
)
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Deletes a transaction monitoring queue.
|
|
109
|
+
#
|
|
110
|
+
# @overload delete(queue_token, request_options: {})
|
|
111
|
+
#
|
|
112
|
+
# @param queue_token [String] Globally unique identifier for the queue.
|
|
113
|
+
#
|
|
114
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
115
|
+
#
|
|
116
|
+
# @return [nil]
|
|
117
|
+
#
|
|
118
|
+
# @see Lithic::Models::TransactionMonitoring::QueueDeleteParams
|
|
119
|
+
def delete(queue_token, params = {})
|
|
120
|
+
@client.request(
|
|
121
|
+
method: :delete,
|
|
122
|
+
path: ["v1/transaction_monitoring/queues/%1$s", queue_token],
|
|
123
|
+
model: NilClass,
|
|
124
|
+
options: params[:request_options]
|
|
125
|
+
)
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# @api private
|
|
129
|
+
#
|
|
130
|
+
# @param client [Lithic::Client]
|
|
131
|
+
def initialize(client:)
|
|
132
|
+
@client = client
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Resources
|
|
5
|
+
class TransactionMonitoring
|
|
6
|
+
# @return [Lithic::Resources::TransactionMonitoring::Cases]
|
|
7
|
+
attr_reader :cases
|
|
8
|
+
|
|
9
|
+
# @return [Lithic::Resources::TransactionMonitoring::Queues]
|
|
10
|
+
attr_reader :queues
|
|
11
|
+
|
|
12
|
+
# @api private
|
|
13
|
+
#
|
|
14
|
+
# @param client [Lithic::Client]
|
|
15
|
+
def initialize(client:)
|
|
16
|
+
@client = client
|
|
17
|
+
@cases = Lithic::Resources::TransactionMonitoring::Cases.new(client: client)
|
|
18
|
+
@queues = Lithic::Resources::TransactionMonitoring::Queues.new(client: client)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -94,6 +94,31 @@ module Lithic
|
|
|
94
94
|
)
|
|
95
95
|
end
|
|
96
96
|
|
|
97
|
+
# Route a card transaction to a financial account. Only available for select use
|
|
98
|
+
# cases and programs.
|
|
99
|
+
#
|
|
100
|
+
# @overload route(transaction_token, financial_account_token:, request_options: {})
|
|
101
|
+
#
|
|
102
|
+
# @param transaction_token [String] The token of the transaction to route.
|
|
103
|
+
#
|
|
104
|
+
# @param financial_account_token [String] The token of the financial account to route the transaction to.
|
|
105
|
+
#
|
|
106
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
107
|
+
#
|
|
108
|
+
# @return [nil]
|
|
109
|
+
#
|
|
110
|
+
# @see Lithic::Models::TransactionRouteParams
|
|
111
|
+
def route(transaction_token, params)
|
|
112
|
+
parsed, options = Lithic::TransactionRouteParams.dump_request(params)
|
|
113
|
+
@client.request(
|
|
114
|
+
method: :post,
|
|
115
|
+
path: ["v1/transactions/%1$s/route", transaction_token],
|
|
116
|
+
body: parsed,
|
|
117
|
+
model: NilClass,
|
|
118
|
+
options: options
|
|
119
|
+
)
|
|
120
|
+
end
|
|
121
|
+
|
|
97
122
|
# Some parameter documentations has been truncated, see
|
|
98
123
|
# {Lithic::Models::TransactionSimulateAuthorizationParams} for more details.
|
|
99
124
|
#
|
|
@@ -9,7 +9,7 @@ module Lithic
|
|
|
9
9
|
# @param headers [Hash{String => String}] The webhook request headers
|
|
10
10
|
# @param secret [String, nil] The webhook secret. If not provided, reads from LITHIC_WEBHOOK_SECRET environment variable.
|
|
11
11
|
#
|
|
12
|
-
# @return [Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::CardAuthorizationChallengeResponseWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardUpdatedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent] #
|
|
12
|
+
# @return [Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::CardAuthorizationChallengeWebhookEvent, Lithic::Models::CardAuthorizationChallengeResponseWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardUpdatedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent] #
|
|
13
13
|
# @raise [ArgumentError] if secret is not provided and LITHIC_WEBHOOK_SECRET env var is not set
|
|
14
14
|
# @raise [Lithic::Errors::MissingDependencyError] if the standardwebhooks gem is not installed
|
|
15
15
|
# @raise [StandardWebhooks::WebhookVerificationError] if the signature is invalid
|
data/lib/lithic/version.rb
CHANGED
data/lib/lithic.rb
CHANGED
|
@@ -61,6 +61,7 @@ require_relative "lithic/models/auth_rules/velocity_limit_filters"
|
|
|
61
61
|
require_relative "lithic/models/auth_rules/v2/backtest_results"
|
|
62
62
|
require_relative "lithic/models/book_transfer_response"
|
|
63
63
|
require_relative "lithic/models/non_pci_card"
|
|
64
|
+
require_relative "lithic/models/card_authorization"
|
|
64
65
|
require_relative "lithic/models/transactions/events/enhanced_data"
|
|
65
66
|
require_relative "lithic/models/dispute_evidence"
|
|
66
67
|
require_relative "lithic/models/dispute_v2"
|
|
@@ -125,6 +126,7 @@ require_relative "lithic/models/auth_rules/conditional_3ds_action_parameters"
|
|
|
125
126
|
require_relative "lithic/models/auth_rules/conditional_ach_action_parameters"
|
|
126
127
|
require_relative "lithic/models/auth_rules/conditional_attribute"
|
|
127
128
|
require_relative "lithic/models/auth_rules/conditional_authorization_action_parameters"
|
|
129
|
+
require_relative "lithic/models/auth_rules/conditional_authorization_adjustment_parameters"
|
|
128
130
|
require_relative "lithic/models/auth_rules/conditional_block_parameters"
|
|
129
131
|
require_relative "lithic/models/auth_rules/conditional_card_transaction_update_action_parameters"
|
|
130
132
|
require_relative "lithic/models/auth_rules/conditional_operation"
|
|
@@ -172,7 +174,9 @@ require_relative "lithic/models/book_transfer_transaction_created_webhook_event"
|
|
|
172
174
|
require_relative "lithic/models/book_transfer_transaction_updated_webhook_event"
|
|
173
175
|
require_relative "lithic/models/card"
|
|
174
176
|
require_relative "lithic/models/card_authorization_approval_request_webhook_event"
|
|
177
|
+
require_relative "lithic/models/card_authorization_challenge_response_params"
|
|
175
178
|
require_relative "lithic/models/card_authorization_challenge_response_webhook_event"
|
|
179
|
+
require_relative "lithic/models/card_authorization_challenge_webhook_event"
|
|
176
180
|
require_relative "lithic/models/card_bulk_order"
|
|
177
181
|
require_relative "lithic/models/card_bulk_order_create_params"
|
|
178
182
|
require_relative "lithic/models/card_bulk_order_list_params"
|
|
@@ -269,6 +273,7 @@ require_relative "lithic/models/external_bank_account_create_params"
|
|
|
269
273
|
require_relative "lithic/models/external_bank_account_create_response"
|
|
270
274
|
require_relative "lithic/models/external_bank_account_list_params"
|
|
271
275
|
require_relative "lithic/models/external_bank_account_list_response"
|
|
276
|
+
require_relative "lithic/models/external_bank_account_pause_params"
|
|
272
277
|
require_relative "lithic/models/external_bank_account_retrieve_params"
|
|
273
278
|
require_relative "lithic/models/external_bank_account_retrieve_response"
|
|
274
279
|
require_relative "lithic/models/external_bank_account_retry_micro_deposits_params"
|
|
@@ -439,7 +444,42 @@ require_relative "lithic/models/tokenization_updated_webhook_event"
|
|
|
439
444
|
require_relative "lithic/models/token_metadata"
|
|
440
445
|
require_relative "lithic/models/transaction_expire_authorization_params"
|
|
441
446
|
require_relative "lithic/models/transaction_list_params"
|
|
447
|
+
require_relative "lithic/models/transaction_monitoring/case_activity_entry"
|
|
448
|
+
require_relative "lithic/models/transaction_monitoring/case_activity_type"
|
|
449
|
+
require_relative "lithic/models/transaction_monitoring/case_card"
|
|
450
|
+
require_relative "lithic/models/transaction_monitoring/case_entity"
|
|
451
|
+
require_relative "lithic/models/transaction_monitoring/case_list_activity_params"
|
|
452
|
+
require_relative "lithic/models/transaction_monitoring/case_list_params"
|
|
453
|
+
require_relative "lithic/models/transaction_monitoring/case_list_transactions_params"
|
|
454
|
+
require_relative "lithic/models/transaction_monitoring/case_priority"
|
|
455
|
+
require_relative "lithic/models/transaction_monitoring/case_retrieve_cards_params"
|
|
456
|
+
require_relative "lithic/models/transaction_monitoring/case_retrieve_cards_response"
|
|
457
|
+
require_relative "lithic/models/transaction_monitoring/case_retrieve_params"
|
|
458
|
+
require_relative "lithic/models/transaction_monitoring/cases/case_file"
|
|
459
|
+
require_relative "lithic/models/transaction_monitoring/cases/comment_create_params"
|
|
460
|
+
require_relative "lithic/models/transaction_monitoring/cases/comment_delete_params"
|
|
461
|
+
require_relative "lithic/models/transaction_monitoring/cases/comment_update_params"
|
|
462
|
+
require_relative "lithic/models/transaction_monitoring/cases/file_create_params"
|
|
463
|
+
require_relative "lithic/models/transaction_monitoring/cases/file_delete_params"
|
|
464
|
+
require_relative "lithic/models/transaction_monitoring/cases/file_list_params"
|
|
465
|
+
require_relative "lithic/models/transaction_monitoring/cases/file_retrieve_params"
|
|
466
|
+
require_relative "lithic/models/transaction_monitoring/cases/file_status"
|
|
467
|
+
require_relative "lithic/models/transaction_monitoring/cases/upload_constraints"
|
|
468
|
+
require_relative "lithic/models/transaction_monitoring/case_sort_order"
|
|
469
|
+
require_relative "lithic/models/transaction_monitoring/case_status"
|
|
470
|
+
require_relative "lithic/models/transaction_monitoring/case_transaction"
|
|
471
|
+
require_relative "lithic/models/transaction_monitoring/case_update_params"
|
|
472
|
+
require_relative "lithic/models/transaction_monitoring/entity_type"
|
|
473
|
+
require_relative "lithic/models/transaction_monitoring/monitoring_case"
|
|
474
|
+
require_relative "lithic/models/transaction_monitoring/queue"
|
|
475
|
+
require_relative "lithic/models/transaction_monitoring/queue_create_params"
|
|
476
|
+
require_relative "lithic/models/transaction_monitoring/queue_delete_params"
|
|
477
|
+
require_relative "lithic/models/transaction_monitoring/queue_list_params"
|
|
478
|
+
require_relative "lithic/models/transaction_monitoring/queue_retrieve_params"
|
|
479
|
+
require_relative "lithic/models/transaction_monitoring/queue_update_params"
|
|
480
|
+
require_relative "lithic/models/transaction_monitoring/resolution_outcome"
|
|
442
481
|
require_relative "lithic/models/transaction_retrieve_params"
|
|
482
|
+
require_relative "lithic/models/transaction_route_params"
|
|
443
483
|
require_relative "lithic/models/transactions/enhanced_commercial_data_retrieve_params"
|
|
444
484
|
require_relative "lithic/models/transactions/enhanced_commercial_data_retrieve_response"
|
|
445
485
|
require_relative "lithic/models/transactions/events/enhanced_commercial_data_retrieve_params"
|
|
@@ -476,6 +516,7 @@ require_relative "lithic/resources/auth_rules/v2/backtests"
|
|
|
476
516
|
require_relative "lithic/resources/auth_stream_enrollment"
|
|
477
517
|
require_relative "lithic/resources/balances"
|
|
478
518
|
require_relative "lithic/resources/book_transfers"
|
|
519
|
+
require_relative "lithic/resources/card_authorizations"
|
|
479
520
|
require_relative "lithic/resources/card_bulk_orders"
|
|
480
521
|
require_relative "lithic/resources/card_programs"
|
|
481
522
|
require_relative "lithic/resources/cards"
|
|
@@ -519,6 +560,11 @@ require_relative "lithic/resources/three_ds/authentication"
|
|
|
519
560
|
require_relative "lithic/resources/three_ds/decisioning"
|
|
520
561
|
require_relative "lithic/resources/tokenization_decisioning"
|
|
521
562
|
require_relative "lithic/resources/tokenizations"
|
|
563
|
+
require_relative "lithic/resources/transaction_monitoring"
|
|
564
|
+
require_relative "lithic/resources/transaction_monitoring/cases"
|
|
565
|
+
require_relative "lithic/resources/transaction_monitoring/cases/comments"
|
|
566
|
+
require_relative "lithic/resources/transaction_monitoring/cases/files"
|
|
567
|
+
require_relative "lithic/resources/transaction_monitoring/queues"
|
|
522
568
|
require_relative "lithic/resources/transactions"
|
|
523
569
|
require_relative "lithic/resources/transactions/enhanced_commercial_data"
|
|
524
570
|
require_relative "lithic/resources/transactions/events"
|
data/rbi/lithic/client.rbi
CHANGED
|
@@ -34,6 +34,9 @@ module Lithic
|
|
|
34
34
|
sig { returns(Lithic::Resources::AuthRules) }
|
|
35
35
|
attr_reader :auth_rules
|
|
36
36
|
|
|
37
|
+
sig { returns(Lithic::Resources::TransactionMonitoring) }
|
|
38
|
+
attr_reader :transaction_monitoring
|
|
39
|
+
|
|
37
40
|
sig { returns(Lithic::Resources::AuthStreamEnrollment) }
|
|
38
41
|
attr_reader :auth_stream_enrollment
|
|
39
42
|
|
|
@@ -46,6 +49,9 @@ module Lithic
|
|
|
46
49
|
sig { returns(Lithic::Resources::Cards) }
|
|
47
50
|
attr_reader :cards
|
|
48
51
|
|
|
52
|
+
sig { returns(Lithic::Resources::CardAuthorizations) }
|
|
53
|
+
attr_reader :card_authorizations
|
|
54
|
+
|
|
49
55
|
sig { returns(Lithic::Resources::CardBulkOrders) }
|
|
50
56
|
attr_reader :card_bulk_orders
|
|
51
57
|
|
|
@@ -36,7 +36,7 @@ module Lithic
|
|
|
36
36
|
# accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states.
|
|
37
37
|
# Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to
|
|
38
38
|
# failure to pass KYB/KYC or for risk/compliance reasons. Please contact
|
|
39
|
-
# [support
|
|
39
|
+
# [support.lithic.com](https://support.lithic.com/) if you believe this was done
|
|
40
40
|
# by mistake.
|
|
41
41
|
sig { returns(Lithic::Account::State::TaggedSymbol) }
|
|
42
42
|
attr_accessor :state
|
|
@@ -149,7 +149,7 @@ module Lithic
|
|
|
149
149
|
# accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states.
|
|
150
150
|
# Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to
|
|
151
151
|
# failure to pass KYB/KYC or for risk/compliance reasons. Please contact
|
|
152
|
-
# [support
|
|
152
|
+
# [support.lithic.com](https://support.lithic.com/) if you believe this was done
|
|
153
153
|
# by mistake.
|
|
154
154
|
state:,
|
|
155
155
|
account_holder: nil,
|
|
@@ -269,7 +269,7 @@ module Lithic
|
|
|
269
269
|
# accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states.
|
|
270
270
|
# Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to
|
|
271
271
|
# failure to pass KYB/KYC or for risk/compliance reasons. Please contact
|
|
272
|
-
# [support
|
|
272
|
+
# [support.lithic.com](https://support.lithic.com/) if you believe this was done
|
|
273
273
|
# by mistake.
|
|
274
274
|
module State
|
|
275
275
|
extend Lithic::Internal::Type::Enum
|
|
@@ -124,10 +124,7 @@ module Lithic
|
|
|
124
124
|
# Customer-provided token that indicates a relationship with an object outside of
|
|
125
125
|
# the Lithic ecosystem.
|
|
126
126
|
sig { returns(T.nilable(String)) }
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
sig { params(external_id: String).void }
|
|
130
|
-
attr_writer :external_id
|
|
127
|
+
attr_accessor :external_id
|
|
131
128
|
|
|
132
129
|
# Only present when user_type == "INDIVIDUAL". Information about the individual
|
|
133
130
|
# for which the account is being opened and KYC is being run.
|
|
@@ -151,10 +148,7 @@ module Lithic
|
|
|
151
148
|
# Only present when user_type == "BUSINESS". 6-digit North American Industry
|
|
152
149
|
# Classification System (NAICS) code for the business.
|
|
153
150
|
sig { returns(T.nilable(String)) }
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
sig { params(naics_code: String).void }
|
|
157
|
-
attr_writer :naics_code
|
|
151
|
+
attr_accessor :naics_code
|
|
158
152
|
|
|
159
153
|
# Only present when user_type == "BUSINESS". User-submitted description of the
|
|
160
154
|
# business.
|
|
@@ -296,10 +290,10 @@ module Lithic
|
|
|
296
290
|
T.nilable(
|
|
297
291
|
Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ExemptionType::OrSymbol
|
|
298
292
|
),
|
|
299
|
-
external_id: String,
|
|
293
|
+
external_id: T.nilable(String),
|
|
300
294
|
individual:
|
|
301
295
|
Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual::OrHash,
|
|
302
|
-
naics_code: String,
|
|
296
|
+
naics_code: T.nilable(String),
|
|
303
297
|
nature_of_business: String,
|
|
304
298
|
phone_number: String,
|
|
305
299
|
required_documents: T::Array[Lithic::RequiredDocument::OrHash],
|
|
@@ -417,10 +411,10 @@ module Lithic
|
|
|
417
411
|
T.nilable(
|
|
418
412
|
Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ExemptionType::TaggedSymbol
|
|
419
413
|
),
|
|
420
|
-
external_id: String,
|
|
414
|
+
external_id: T.nilable(String),
|
|
421
415
|
individual:
|
|
422
416
|
Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual,
|
|
423
|
-
naics_code: String,
|
|
417
|
+
naics_code: T.nilable(String),
|
|
424
418
|
nature_of_business: String,
|
|
425
419
|
phone_number: String,
|
|
426
420
|
required_documents: T::Array[Lithic::RequiredDocument],
|
|
@@ -63,11 +63,7 @@ module Lithic
|
|
|
63
63
|
attr_accessor :status
|
|
64
64
|
|
|
65
65
|
# The type of entity
|
|
66
|
-
sig
|
|
67
|
-
returns(
|
|
68
|
-
Lithic::AccountHolders::AccountHolderEntity::Type::TaggedSymbol
|
|
69
|
-
)
|
|
70
|
-
end
|
|
66
|
+
sig { returns(Lithic::TransactionMonitoring::EntityType::TaggedSymbol) }
|
|
71
67
|
attr_accessor :type
|
|
72
68
|
|
|
73
69
|
# Information about an entity associated with an account holder
|
|
@@ -84,7 +80,7 @@ module Lithic
|
|
|
84
80
|
phone_number: T.nilable(String),
|
|
85
81
|
status:
|
|
86
82
|
Lithic::AccountHolders::AccountHolderEntity::Status::OrSymbol,
|
|
87
|
-
type: Lithic::
|
|
83
|
+
type: Lithic::TransactionMonitoring::EntityType::OrSymbol
|
|
88
84
|
).returns(T.attached_class)
|
|
89
85
|
end
|
|
90
86
|
def self.new(
|
|
@@ -124,8 +120,7 @@ module Lithic
|
|
|
124
120
|
phone_number: T.nilable(String),
|
|
125
121
|
status:
|
|
126
122
|
Lithic::AccountHolders::AccountHolderEntity::Status::TaggedSymbol,
|
|
127
|
-
type:
|
|
128
|
-
Lithic::AccountHolders::AccountHolderEntity::Type::TaggedSymbol
|
|
123
|
+
type: Lithic::TransactionMonitoring::EntityType::TaggedSymbol
|
|
129
124
|
}
|
|
130
125
|
)
|
|
131
126
|
end
|
|
@@ -258,38 +253,6 @@ module Lithic
|
|
|
258
253
|
def self.values
|
|
259
254
|
end
|
|
260
255
|
end
|
|
261
|
-
|
|
262
|
-
# The type of entity
|
|
263
|
-
module Type
|
|
264
|
-
extend Lithic::Internal::Type::Enum
|
|
265
|
-
|
|
266
|
-
TaggedSymbol =
|
|
267
|
-
T.type_alias do
|
|
268
|
-
T.all(Symbol, Lithic::AccountHolders::AccountHolderEntity::Type)
|
|
269
|
-
end
|
|
270
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
271
|
-
|
|
272
|
-
BENEFICIAL_OWNER_INDIVIDUAL =
|
|
273
|
-
T.let(
|
|
274
|
-
:BENEFICIAL_OWNER_INDIVIDUAL,
|
|
275
|
-
Lithic::AccountHolders::AccountHolderEntity::Type::TaggedSymbol
|
|
276
|
-
)
|
|
277
|
-
CONTROL_PERSON =
|
|
278
|
-
T.let(
|
|
279
|
-
:CONTROL_PERSON,
|
|
280
|
-
Lithic::AccountHolders::AccountHolderEntity::Type::TaggedSymbol
|
|
281
|
-
)
|
|
282
|
-
|
|
283
|
-
sig do
|
|
284
|
-
override.returns(
|
|
285
|
-
T::Array[
|
|
286
|
-
Lithic::AccountHolders::AccountHolderEntity::Type::TaggedSymbol
|
|
287
|
-
]
|
|
288
|
-
)
|
|
289
|
-
end
|
|
290
|
-
def self.values
|
|
291
|
-
end
|
|
292
|
-
end
|
|
293
256
|
end
|
|
294
257
|
end
|
|
295
258
|
end
|
|
@@ -59,9 +59,7 @@ module Lithic
|
|
|
59
59
|
attr_accessor :phone_number
|
|
60
60
|
|
|
61
61
|
# The type of entity to create on the account holder
|
|
62
|
-
sig
|
|
63
|
-
returns(Lithic::AccountHolders::EntityCreateParams::Type::OrSymbol)
|
|
64
|
-
end
|
|
62
|
+
sig { returns(Lithic::TransactionMonitoring::EntityType::OrSymbol) }
|
|
65
63
|
attr_accessor :type
|
|
66
64
|
|
|
67
65
|
sig do
|
|
@@ -75,7 +73,7 @@ module Lithic
|
|
|
75
73
|
government_id: String,
|
|
76
74
|
last_name: String,
|
|
77
75
|
phone_number: String,
|
|
78
|
-
type: Lithic::
|
|
76
|
+
type: Lithic::TransactionMonitoring::EntityType::OrSymbol,
|
|
79
77
|
request_options: Lithic::RequestOptions::OrHash
|
|
80
78
|
).returns(T.attached_class)
|
|
81
79
|
end
|
|
@@ -117,7 +115,7 @@ module Lithic
|
|
|
117
115
|
government_id: String,
|
|
118
116
|
last_name: String,
|
|
119
117
|
phone_number: String,
|
|
120
|
-
type: Lithic::
|
|
118
|
+
type: Lithic::TransactionMonitoring::EntityType::OrSymbol,
|
|
121
119
|
request_options: Lithic::RequestOptions
|
|
122
120
|
}
|
|
123
121
|
)
|
|
@@ -210,38 +208,6 @@ module Lithic
|
|
|
210
208
|
def to_hash
|
|
211
209
|
end
|
|
212
210
|
end
|
|
213
|
-
|
|
214
|
-
# The type of entity to create on the account holder
|
|
215
|
-
module Type
|
|
216
|
-
extend Lithic::Internal::Type::Enum
|
|
217
|
-
|
|
218
|
-
TaggedSymbol =
|
|
219
|
-
T.type_alias do
|
|
220
|
-
T.all(Symbol, Lithic::AccountHolders::EntityCreateParams::Type)
|
|
221
|
-
end
|
|
222
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
223
|
-
|
|
224
|
-
BENEFICIAL_OWNER_INDIVIDUAL =
|
|
225
|
-
T.let(
|
|
226
|
-
:BENEFICIAL_OWNER_INDIVIDUAL,
|
|
227
|
-
Lithic::AccountHolders::EntityCreateParams::Type::TaggedSymbol
|
|
228
|
-
)
|
|
229
|
-
CONTROL_PERSON =
|
|
230
|
-
T.let(
|
|
231
|
-
:CONTROL_PERSON,
|
|
232
|
-
Lithic::AccountHolders::EntityCreateParams::Type::TaggedSymbol
|
|
233
|
-
)
|
|
234
|
-
|
|
235
|
-
sig do
|
|
236
|
-
override.returns(
|
|
237
|
-
T::Array[
|
|
238
|
-
Lithic::AccountHolders::EntityCreateParams::Type::TaggedSymbol
|
|
239
|
-
]
|
|
240
|
-
)
|
|
241
|
-
end
|
|
242
|
-
def self.values
|
|
243
|
-
end
|
|
244
|
-
end
|
|
245
211
|
end
|
|
246
212
|
end
|
|
247
213
|
end
|
|
@@ -83,7 +83,8 @@ module Lithic
|
|
|
83
83
|
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
|
|
84
84
|
# stream.
|
|
85
85
|
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
86
|
-
# ACH_CREDIT_RECEIPT, or
|
|
86
|
+
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
|
|
87
|
+
# stream.
|
|
87
88
|
sig { returns(Lithic::AuthRules::AuthRule::Type::TaggedSymbol) }
|
|
88
89
|
attr_accessor :type
|
|
89
90
|
|
|
@@ -164,7 +165,8 @@ module Lithic
|
|
|
164
165
|
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
|
|
165
166
|
# stream.
|
|
166
167
|
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
167
|
-
# ACH_CREDIT_RECEIPT, or
|
|
168
|
+
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
|
|
169
|
+
# stream.
|
|
168
170
|
type:,
|
|
169
171
|
# Account tokens to which the Auth Rule does not apply.
|
|
170
172
|
excluded_account_tokens: nil,
|
|
@@ -235,7 +237,8 @@ module Lithic
|
|
|
235
237
|
Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
|
|
236
238
|
Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
|
|
237
239
|
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::OrHash,
|
|
238
|
-
Lithic::AuthRules::TypescriptCodeParameters::OrHash
|
|
240
|
+
Lithic::AuthRules::TypescriptCodeParameters::OrHash,
|
|
241
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::OrHash
|
|
239
242
|
),
|
|
240
243
|
version: Integer
|
|
241
244
|
).returns(T.attached_class)
|
|
@@ -276,7 +279,8 @@ module Lithic
|
|
|
276
279
|
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
277
280
|
Lithic::AuthRules::ConditionalTokenizationActionParameters,
|
|
278
281
|
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters,
|
|
279
|
-
Lithic::AuthRules::TypescriptCodeParameters
|
|
282
|
+
Lithic::AuthRules::TypescriptCodeParameters,
|
|
283
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
|
|
280
284
|
)
|
|
281
285
|
end
|
|
282
286
|
|
|
@@ -349,7 +353,8 @@ module Lithic
|
|
|
349
353
|
Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
|
|
350
354
|
Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
|
|
351
355
|
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::OrHash,
|
|
352
|
-
Lithic::AuthRules::TypescriptCodeParameters::OrHash
|
|
356
|
+
Lithic::AuthRules::TypescriptCodeParameters::OrHash,
|
|
357
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::OrHash
|
|
353
358
|
),
|
|
354
359
|
state: Lithic::AuthRules::AuthRule::DraftVersion::State::OrSymbol,
|
|
355
360
|
version: Integer
|
|
@@ -408,7 +413,8 @@ module Lithic
|
|
|
408
413
|
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
409
414
|
Lithic::AuthRules::ConditionalTokenizationActionParameters,
|
|
410
415
|
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters,
|
|
411
|
-
Lithic::AuthRules::TypescriptCodeParameters
|
|
416
|
+
Lithic::AuthRules::TypescriptCodeParameters,
|
|
417
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
|
|
412
418
|
)
|
|
413
419
|
end
|
|
414
420
|
|
|
@@ -505,7 +511,8 @@ module Lithic
|
|
|
505
511
|
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
|
|
506
512
|
# stream.
|
|
507
513
|
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
508
|
-
# ACH_CREDIT_RECEIPT, or
|
|
514
|
+
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
|
|
515
|
+
# stream.
|
|
509
516
|
module Type
|
|
510
517
|
extend Lithic::Internal::Type::Enum
|
|
511
518
|
|
|
@@ -43,7 +43,8 @@ module Lithic
|
|
|
43
43
|
Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
|
|
44
44
|
Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
|
|
45
45
|
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::OrHash,
|
|
46
|
-
Lithic::AuthRules::TypescriptCodeParameters::OrHash
|
|
46
|
+
Lithic::AuthRules::TypescriptCodeParameters::OrHash,
|
|
47
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::OrHash
|
|
47
48
|
),
|
|
48
49
|
state: Lithic::AuthRules::AuthRuleVersion::State::OrSymbol,
|
|
49
50
|
version: Integer
|
|
@@ -91,7 +92,8 @@ module Lithic
|
|
|
91
92
|
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
92
93
|
Lithic::AuthRules::ConditionalTokenizationActionParameters,
|
|
93
94
|
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters,
|
|
94
|
-
Lithic::AuthRules::TypescriptCodeParameters
|
|
95
|
+
Lithic::AuthRules::TypescriptCodeParameters,
|
|
96
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
|
|
95
97
|
)
|
|
96
98
|
end
|
|
97
99
|
|