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,45 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Resources
|
|
5
|
+
class CardAuthorizations
|
|
6
|
+
# Some parameter documentations has been truncated, see
|
|
7
|
+
# {Lithic::Models::CardAuthorizationChallengeResponseParams} for more details.
|
|
8
|
+
#
|
|
9
|
+
# Card program's response to Authorization Challenge. Programs that have
|
|
10
|
+
# Authorization Challenges configured as Out of Band receive a
|
|
11
|
+
# [card_authorization.challenge](https://docs.lithic.com/reference/post_card-authorization-challenge)
|
|
12
|
+
# webhook when an authorization attempt triggers a challenge. The card program
|
|
13
|
+
# should respond using this endpoint after the cardholder completes the challenge.
|
|
14
|
+
#
|
|
15
|
+
# @overload challenge_response(event_token, response:, request_options: {})
|
|
16
|
+
#
|
|
17
|
+
# @param event_token [String] Globally unique identifier for the authorization event that triggered the challe
|
|
18
|
+
#
|
|
19
|
+
# @param response [Symbol, Lithic::Models::CardAuthorizationChallengeResponseParams::Response] Whether the cardholder has approved or declined the issued challenge
|
|
20
|
+
#
|
|
21
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
22
|
+
#
|
|
23
|
+
# @return [nil]
|
|
24
|
+
#
|
|
25
|
+
# @see Lithic::Models::CardAuthorizationChallengeResponseParams
|
|
26
|
+
def challenge_response(event_token, params)
|
|
27
|
+
parsed, options = Lithic::CardAuthorizationChallengeResponseParams.dump_request(params)
|
|
28
|
+
@client.request(
|
|
29
|
+
method: :post,
|
|
30
|
+
path: ["v1/card_authorizations/%1$s/challenge_response", event_token],
|
|
31
|
+
body: parsed,
|
|
32
|
+
model: NilClass,
|
|
33
|
+
options: options
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# @api private
|
|
38
|
+
#
|
|
39
|
+
# @param client [Lithic::Client]
|
|
40
|
+
def initialize(client:)
|
|
41
|
+
@client = client
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -453,8 +453,8 @@ module Lithic
|
|
|
453
453
|
|
|
454
454
|
# Get card configuration such as spend limit and state. Customers must be PCI
|
|
455
455
|
# compliant to use this endpoint. Please contact
|
|
456
|
-
# [support
|
|
457
|
-
# `POST` endpoint because it is more secure to send sensitive data in a request
|
|
456
|
+
# [support.lithic.com](https://support.lithic.com/) for questions. _Note: this is
|
|
457
|
+
# a `POST` endpoint because it is more secure to send sensitive data in a request
|
|
458
458
|
# body than in a URL._
|
|
459
459
|
#
|
|
460
460
|
# @overload search_by_pan(pan:, request_options: {})
|
|
@@ -132,6 +132,25 @@ module Lithic
|
|
|
132
132
|
)
|
|
133
133
|
end
|
|
134
134
|
|
|
135
|
+
# Pause an external bank account
|
|
136
|
+
#
|
|
137
|
+
# @overload pause(external_bank_account_token, request_options: {})
|
|
138
|
+
#
|
|
139
|
+
# @param external_bank_account_token [String]
|
|
140
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
141
|
+
#
|
|
142
|
+
# @return [Lithic::Models::ExternalBankAccount]
|
|
143
|
+
#
|
|
144
|
+
# @see Lithic::Models::ExternalBankAccountPauseParams
|
|
145
|
+
def pause(external_bank_account_token, params = {})
|
|
146
|
+
@client.request(
|
|
147
|
+
method: :post,
|
|
148
|
+
path: ["v1/external_bank_accounts/%1$s/pause", external_bank_account_token],
|
|
149
|
+
model: Lithic::ExternalBankAccount,
|
|
150
|
+
options: params[:request_options]
|
|
151
|
+
)
|
|
152
|
+
end
|
|
153
|
+
|
|
135
154
|
# Retry external bank account micro deposit verification.
|
|
136
155
|
#
|
|
137
156
|
# @overload retry_micro_deposits(external_bank_account_token, financial_account_token: nil, request_options: {})
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Resources
|
|
5
|
+
class TransactionMonitoring
|
|
6
|
+
class Cases
|
|
7
|
+
class Comments
|
|
8
|
+
# Some parameter documentations has been truncated, see
|
|
9
|
+
# {Lithic::Models::TransactionMonitoring::Cases::CommentCreateParams} for more
|
|
10
|
+
# details.
|
|
11
|
+
#
|
|
12
|
+
# Adds a comment to a case.
|
|
13
|
+
#
|
|
14
|
+
# @overload create(case_token, comment:, actor_token: nil, request_options: {})
|
|
15
|
+
#
|
|
16
|
+
# @param case_token [String] Globally unique identifier for the case.
|
|
17
|
+
#
|
|
18
|
+
# @param comment [String] Text of the comment
|
|
19
|
+
#
|
|
20
|
+
# @param actor_token [String] Optional client-provided identifier for the actor performing this action,
|
|
21
|
+
#
|
|
22
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
23
|
+
#
|
|
24
|
+
# @return [Lithic::Models::TransactionMonitoring::CaseActivityEntry]
|
|
25
|
+
#
|
|
26
|
+
# @see Lithic::Models::TransactionMonitoring::Cases::CommentCreateParams
|
|
27
|
+
def create(case_token, params)
|
|
28
|
+
parsed, options = Lithic::TransactionMonitoring::Cases::CommentCreateParams.dump_request(params)
|
|
29
|
+
@client.request(
|
|
30
|
+
method: :post,
|
|
31
|
+
path: ["v1/transaction_monitoring/cases/%1$s/comments", case_token],
|
|
32
|
+
body: parsed,
|
|
33
|
+
model: Lithic::TransactionMonitoring::CaseActivityEntry,
|
|
34
|
+
options: options
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Some parameter documentations has been truncated, see
|
|
39
|
+
# {Lithic::Models::TransactionMonitoring::Cases::CommentUpdateParams} for more
|
|
40
|
+
# details.
|
|
41
|
+
#
|
|
42
|
+
# Edits an existing comment on a case.
|
|
43
|
+
#
|
|
44
|
+
# @overload update(comment_token, case_token:, comment:, actor_token: nil, request_options: {})
|
|
45
|
+
#
|
|
46
|
+
# @param comment_token [String] Path param: Globally unique identifier for the comment.
|
|
47
|
+
#
|
|
48
|
+
# @param case_token [String] Path param: Globally unique identifier for the case.
|
|
49
|
+
#
|
|
50
|
+
# @param comment [String] Body param: New text of the comment
|
|
51
|
+
#
|
|
52
|
+
# @param actor_token [String] Body param: Optional client-provided identifier for the actor performing this ac
|
|
53
|
+
#
|
|
54
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
55
|
+
#
|
|
56
|
+
# @return [Lithic::Models::TransactionMonitoring::CaseActivityEntry]
|
|
57
|
+
#
|
|
58
|
+
# @see Lithic::Models::TransactionMonitoring::Cases::CommentUpdateParams
|
|
59
|
+
def update(comment_token, params)
|
|
60
|
+
parsed, options = Lithic::TransactionMonitoring::Cases::CommentUpdateParams.dump_request(params)
|
|
61
|
+
case_token =
|
|
62
|
+
parsed.delete(:case_token) do
|
|
63
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
64
|
+
end
|
|
65
|
+
@client.request(
|
|
66
|
+
method: :patch,
|
|
67
|
+
path: ["v1/transaction_monitoring/cases/%1$s/comments/%2$s", case_token, comment_token],
|
|
68
|
+
body: parsed,
|
|
69
|
+
model: Lithic::TransactionMonitoring::CaseActivityEntry,
|
|
70
|
+
options: options
|
|
71
|
+
)
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Deletes a comment from a case.
|
|
75
|
+
#
|
|
76
|
+
# @overload delete(comment_token, case_token:, request_options: {})
|
|
77
|
+
#
|
|
78
|
+
# @param comment_token [String] Globally unique identifier for the comment.
|
|
79
|
+
#
|
|
80
|
+
# @param case_token [String] Globally unique identifier for the case.
|
|
81
|
+
#
|
|
82
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
83
|
+
#
|
|
84
|
+
# @return [nil]
|
|
85
|
+
#
|
|
86
|
+
# @see Lithic::Models::TransactionMonitoring::Cases::CommentDeleteParams
|
|
87
|
+
def delete(comment_token, params)
|
|
88
|
+
parsed, options = Lithic::TransactionMonitoring::Cases::CommentDeleteParams.dump_request(params)
|
|
89
|
+
case_token =
|
|
90
|
+
parsed.delete(:case_token) do
|
|
91
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
92
|
+
end
|
|
93
|
+
@client.request(
|
|
94
|
+
method: :delete,
|
|
95
|
+
path: ["v1/transaction_monitoring/cases/%1$s/comments/%2$s", case_token, comment_token],
|
|
96
|
+
model: NilClass,
|
|
97
|
+
options: options
|
|
98
|
+
)
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# @api private
|
|
102
|
+
#
|
|
103
|
+
# @param client [Lithic::Client]
|
|
104
|
+
def initialize(client:)
|
|
105
|
+
@client = client
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Resources
|
|
5
|
+
class TransactionMonitoring
|
|
6
|
+
class Cases
|
|
7
|
+
class Files
|
|
8
|
+
# Creates a file record and returns a presigned URL for uploading the file to the
|
|
9
|
+
# case.
|
|
10
|
+
#
|
|
11
|
+
# @overload create(case_token, name:, request_options: {})
|
|
12
|
+
#
|
|
13
|
+
# @param case_token [String] Globally unique identifier for the case.
|
|
14
|
+
#
|
|
15
|
+
# @param name [String] Name of the file to upload
|
|
16
|
+
#
|
|
17
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
18
|
+
#
|
|
19
|
+
# @return [Lithic::Models::TransactionMonitoring::Cases::CaseFile]
|
|
20
|
+
#
|
|
21
|
+
# @see Lithic::Models::TransactionMonitoring::Cases::FileCreateParams
|
|
22
|
+
def create(case_token, params)
|
|
23
|
+
parsed, options = Lithic::TransactionMonitoring::Cases::FileCreateParams.dump_request(params)
|
|
24
|
+
@client.request(
|
|
25
|
+
method: :post,
|
|
26
|
+
path: ["v1/transaction_monitoring/cases/%1$s/files", case_token],
|
|
27
|
+
body: parsed,
|
|
28
|
+
model: Lithic::TransactionMonitoring::Cases::CaseFile,
|
|
29
|
+
options: options
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Retrieves a single file attached to a case, including a presigned download URL
|
|
34
|
+
# when the file is ready.
|
|
35
|
+
#
|
|
36
|
+
# @overload retrieve(file_token, case_token:, request_options: {})
|
|
37
|
+
#
|
|
38
|
+
# @param file_token [String] Globally unique identifier for the file.
|
|
39
|
+
#
|
|
40
|
+
# @param case_token [String] Globally unique identifier for the case.
|
|
41
|
+
#
|
|
42
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
43
|
+
#
|
|
44
|
+
# @return [Lithic::Models::TransactionMonitoring::Cases::CaseFile]
|
|
45
|
+
#
|
|
46
|
+
# @see Lithic::Models::TransactionMonitoring::Cases::FileRetrieveParams
|
|
47
|
+
def retrieve(file_token, params)
|
|
48
|
+
parsed, options = Lithic::TransactionMonitoring::Cases::FileRetrieveParams.dump_request(params)
|
|
49
|
+
case_token =
|
|
50
|
+
parsed.delete(:case_token) do
|
|
51
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
52
|
+
end
|
|
53
|
+
@client.request(
|
|
54
|
+
method: :get,
|
|
55
|
+
path: ["v1/transaction_monitoring/cases/%1$s/files/%2$s", case_token, file_token],
|
|
56
|
+
model: Lithic::TransactionMonitoring::Cases::CaseFile,
|
|
57
|
+
options: options
|
|
58
|
+
)
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Some parameter documentations has been truncated, see
|
|
62
|
+
# {Lithic::Models::TransactionMonitoring::Cases::FileListParams} for more details.
|
|
63
|
+
#
|
|
64
|
+
# Lists the files attached to a case.
|
|
65
|
+
#
|
|
66
|
+
# @overload list(case_token, ending_before: nil, page_size: nil, starting_after: nil, request_options: {})
|
|
67
|
+
#
|
|
68
|
+
# @param case_token [String] Globally unique identifier for the case.
|
|
69
|
+
#
|
|
70
|
+
# @param ending_before [String] A cursor representing an item's token before which a page of results should end.
|
|
71
|
+
#
|
|
72
|
+
# @param page_size [Integer] Page size (for pagination).
|
|
73
|
+
#
|
|
74
|
+
# @param starting_after [String] A cursor representing an item's token after which a page of results should begin
|
|
75
|
+
#
|
|
76
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
77
|
+
#
|
|
78
|
+
# @return [Lithic::Internal::CursorPage<Lithic::Models::TransactionMonitoring::Cases::CaseFile>]
|
|
79
|
+
#
|
|
80
|
+
# @see Lithic::Models::TransactionMonitoring::Cases::FileListParams
|
|
81
|
+
def list(case_token, params = {})
|
|
82
|
+
parsed, options = Lithic::TransactionMonitoring::Cases::FileListParams.dump_request(params)
|
|
83
|
+
query = Lithic::Internal::Util.encode_query_params(parsed)
|
|
84
|
+
@client.request(
|
|
85
|
+
method: :get,
|
|
86
|
+
path: ["v1/transaction_monitoring/cases/%1$s/files", case_token],
|
|
87
|
+
query: query,
|
|
88
|
+
page: Lithic::Internal::CursorPage,
|
|
89
|
+
model: Lithic::TransactionMonitoring::Cases::CaseFile,
|
|
90
|
+
options: options
|
|
91
|
+
)
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Deletes a file from a case.
|
|
95
|
+
#
|
|
96
|
+
# @overload delete(file_token, case_token:, request_options: {})
|
|
97
|
+
#
|
|
98
|
+
# @param file_token [String] Globally unique identifier for the file.
|
|
99
|
+
#
|
|
100
|
+
# @param case_token [String] Globally unique identifier for the case.
|
|
101
|
+
#
|
|
102
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
103
|
+
#
|
|
104
|
+
# @return [nil]
|
|
105
|
+
#
|
|
106
|
+
# @see Lithic::Models::TransactionMonitoring::Cases::FileDeleteParams
|
|
107
|
+
def delete(file_token, params)
|
|
108
|
+
parsed, options = Lithic::TransactionMonitoring::Cases::FileDeleteParams.dump_request(params)
|
|
109
|
+
case_token =
|
|
110
|
+
parsed.delete(:case_token) do
|
|
111
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
112
|
+
end
|
|
113
|
+
@client.request(
|
|
114
|
+
method: :delete,
|
|
115
|
+
path: ["v1/transaction_monitoring/cases/%1$s/files/%2$s", case_token, file_token],
|
|
116
|
+
model: NilClass,
|
|
117
|
+
options: options
|
|
118
|
+
)
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# @api private
|
|
122
|
+
#
|
|
123
|
+
# @param client [Lithic::Client]
|
|
124
|
+
def initialize(client:)
|
|
125
|
+
@client = client
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
end
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Resources
|
|
5
|
+
class TransactionMonitoring
|
|
6
|
+
class Cases
|
|
7
|
+
# @return [Lithic::Resources::TransactionMonitoring::Cases::Comments]
|
|
8
|
+
attr_reader :comments
|
|
9
|
+
|
|
10
|
+
# @return [Lithic::Resources::TransactionMonitoring::Cases::Files]
|
|
11
|
+
attr_reader :files
|
|
12
|
+
|
|
13
|
+
# Retrieves a single transaction monitoring case.
|
|
14
|
+
#
|
|
15
|
+
# @overload retrieve(case_token, request_options: {})
|
|
16
|
+
#
|
|
17
|
+
# @param case_token [String] Globally unique identifier for the case.
|
|
18
|
+
#
|
|
19
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
20
|
+
#
|
|
21
|
+
# @return [Lithic::Models::TransactionMonitoring::MonitoringCase]
|
|
22
|
+
#
|
|
23
|
+
# @see Lithic::Models::TransactionMonitoring::CaseRetrieveParams
|
|
24
|
+
def retrieve(case_token, params = {})
|
|
25
|
+
@client.request(
|
|
26
|
+
method: :get,
|
|
27
|
+
path: ["v1/transaction_monitoring/cases/%1$s", case_token],
|
|
28
|
+
model: Lithic::TransactionMonitoring::MonitoringCase,
|
|
29
|
+
options: params[:request_options]
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Some parameter documentations has been truncated, see
|
|
34
|
+
# {Lithic::Models::TransactionMonitoring::CaseUpdateParams} for more details.
|
|
35
|
+
#
|
|
36
|
+
# Updates a transaction monitoring case.
|
|
37
|
+
#
|
|
38
|
+
# @overload update(case_token, actor_token: nil, assignee: nil, priority: nil, resolution: nil, resolution_notes: nil, sla_deadline: nil, status: nil, tags: nil, title: nil, request_options: {})
|
|
39
|
+
#
|
|
40
|
+
# @param case_token [String] Globally unique identifier for the case.
|
|
41
|
+
#
|
|
42
|
+
# @param actor_token [String] Optional client-provided identifier for the actor performing this action,
|
|
43
|
+
#
|
|
44
|
+
# @param assignee [String, nil] New assignee for the case, or `null` to unassign
|
|
45
|
+
#
|
|
46
|
+
# @param priority [Symbol, Lithic::Models::TransactionMonitoring::CasePriority] Priority level of a case, controlling queue ordering and SLA urgency
|
|
47
|
+
#
|
|
48
|
+
# @param resolution [Symbol, Lithic::Models::TransactionMonitoring::ResolutionOutcome] Outcome recorded when a case is resolved:
|
|
49
|
+
#
|
|
50
|
+
# @param resolution_notes [String] Notes describing the resolution
|
|
51
|
+
#
|
|
52
|
+
# @param sla_deadline [Time, nil] New SLA deadline for the case, or `null` to clear it
|
|
53
|
+
#
|
|
54
|
+
# @param status [Symbol, Lithic::Models::TransactionMonitoring::CaseStatus] Status of a case as it progresses through the review workflow:
|
|
55
|
+
#
|
|
56
|
+
# @param tags [Hash{Symbol=>String}] Arbitrary key-value metadata to set on the case
|
|
57
|
+
#
|
|
58
|
+
# @param title [String, nil] New title for the case, or `null` to clear it
|
|
59
|
+
#
|
|
60
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
61
|
+
#
|
|
62
|
+
# @return [Lithic::Models::TransactionMonitoring::MonitoringCase]
|
|
63
|
+
#
|
|
64
|
+
# @see Lithic::Models::TransactionMonitoring::CaseUpdateParams
|
|
65
|
+
def update(case_token, params = {})
|
|
66
|
+
parsed, options = Lithic::TransactionMonitoring::CaseUpdateParams.dump_request(params)
|
|
67
|
+
@client.request(
|
|
68
|
+
method: :patch,
|
|
69
|
+
path: ["v1/transaction_monitoring/cases/%1$s", case_token],
|
|
70
|
+
body: parsed,
|
|
71
|
+
model: Lithic::TransactionMonitoring::MonitoringCase,
|
|
72
|
+
options: options
|
|
73
|
+
)
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Some parameter documentations has been truncated, see
|
|
77
|
+
# {Lithic::Models::TransactionMonitoring::CaseListParams} for more details.
|
|
78
|
+
#
|
|
79
|
+
# Lists transaction monitoring cases, optionally filtered.
|
|
80
|
+
#
|
|
81
|
+
# @overload list(account_token: nil, assignee: nil, begin_: nil, card_token: nil, end_: nil, ending_before: nil, entity_token: nil, page_size: nil, queue_token: nil, rule_token: nil, sort_by: nil, starting_after: nil, status: nil, transaction_token: nil, request_options: {})
|
|
82
|
+
#
|
|
83
|
+
# @param account_token [String] Only return cases that include transactions on the provided account.
|
|
84
|
+
#
|
|
85
|
+
# @param assignee [String] Only return cases assigned to the provided value. Pass an empty string to return
|
|
86
|
+
#
|
|
87
|
+
# @param begin_ [Time] Date string in RFC 3339 format. Only entries created after the specified time wi
|
|
88
|
+
#
|
|
89
|
+
# @param card_token [String] Only return cases that include transactions on the provided card.
|
|
90
|
+
#
|
|
91
|
+
# @param end_ [Time] Date string in RFC 3339 format. Only entries created before the specified time w
|
|
92
|
+
#
|
|
93
|
+
# @param ending_before [String] A cursor representing an item's token before which a page of results should end.
|
|
94
|
+
#
|
|
95
|
+
# @param entity_token [String] Only return cases associated with the provided entity.
|
|
96
|
+
#
|
|
97
|
+
# @param page_size [Integer] Page size (for pagination).
|
|
98
|
+
#
|
|
99
|
+
# @param queue_token [String] Only return cases belonging to the provided queue.
|
|
100
|
+
#
|
|
101
|
+
# @param rule_token [String] Only return cases triggered by the provided transaction monitoring rule.
|
|
102
|
+
#
|
|
103
|
+
# @param sort_by [Symbol, Lithic::Models::TransactionMonitoring::CaseSortOrder] Sort order for the returned cases.
|
|
104
|
+
#
|
|
105
|
+
# @param starting_after [String] A cursor representing an item's token after which a page of results should begin
|
|
106
|
+
#
|
|
107
|
+
# @param status [Symbol, Lithic::Models::TransactionMonitoring::CaseStatus] Only return cases with the provided status.
|
|
108
|
+
#
|
|
109
|
+
# @param transaction_token [String] Only return cases that include the provided transaction.
|
|
110
|
+
#
|
|
111
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
112
|
+
#
|
|
113
|
+
# @return [Lithic::Internal::CursorPage<Lithic::Models::TransactionMonitoring::MonitoringCase>]
|
|
114
|
+
#
|
|
115
|
+
# @see Lithic::Models::TransactionMonitoring::CaseListParams
|
|
116
|
+
def list(params = {})
|
|
117
|
+
parsed, options = Lithic::TransactionMonitoring::CaseListParams.dump_request(params)
|
|
118
|
+
query = Lithic::Internal::Util.encode_query_params(parsed)
|
|
119
|
+
@client.request(
|
|
120
|
+
method: :get,
|
|
121
|
+
path: "v1/transaction_monitoring/cases",
|
|
122
|
+
query: query.transform_keys(begin_: "begin", end_: "end"),
|
|
123
|
+
page: Lithic::Internal::CursorPage,
|
|
124
|
+
model: Lithic::TransactionMonitoring::MonitoringCase,
|
|
125
|
+
options: options
|
|
126
|
+
)
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Some parameter documentations has been truncated, see
|
|
130
|
+
# {Lithic::Models::TransactionMonitoring::CaseListActivityParams} for more
|
|
131
|
+
# details.
|
|
132
|
+
#
|
|
133
|
+
# Lists the activity feed for a case.
|
|
134
|
+
#
|
|
135
|
+
# @overload list_activity(case_token, ending_before: nil, page_size: nil, starting_after: nil, request_options: {})
|
|
136
|
+
#
|
|
137
|
+
# @param case_token [String] Globally unique identifier for the case.
|
|
138
|
+
#
|
|
139
|
+
# @param ending_before [String] A cursor representing an item's token before which a page of results should end.
|
|
140
|
+
#
|
|
141
|
+
# @param page_size [Integer] Page size (for pagination).
|
|
142
|
+
#
|
|
143
|
+
# @param starting_after [String] A cursor representing an item's token after which a page of results should begin
|
|
144
|
+
#
|
|
145
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
146
|
+
#
|
|
147
|
+
# @return [Lithic::Internal::CursorPage<Lithic::Models::TransactionMonitoring::CaseActivityEntry>]
|
|
148
|
+
#
|
|
149
|
+
# @see Lithic::Models::TransactionMonitoring::CaseListActivityParams
|
|
150
|
+
def list_activity(case_token, params = {})
|
|
151
|
+
parsed, options = Lithic::TransactionMonitoring::CaseListActivityParams.dump_request(params)
|
|
152
|
+
query = Lithic::Internal::Util.encode_query_params(parsed)
|
|
153
|
+
@client.request(
|
|
154
|
+
method: :get,
|
|
155
|
+
path: ["v1/transaction_monitoring/cases/%1$s/activity", case_token],
|
|
156
|
+
query: query,
|
|
157
|
+
page: Lithic::Internal::CursorPage,
|
|
158
|
+
model: Lithic::TransactionMonitoring::CaseActivityEntry,
|
|
159
|
+
options: options
|
|
160
|
+
)
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# Some parameter documentations has been truncated, see
|
|
164
|
+
# {Lithic::Models::TransactionMonitoring::CaseListTransactionsParams} for more
|
|
165
|
+
# details.
|
|
166
|
+
#
|
|
167
|
+
# Lists the transactions associated with a case.
|
|
168
|
+
#
|
|
169
|
+
# @overload list_transactions(case_token, ending_before: nil, page_size: nil, starting_after: nil, request_options: {})
|
|
170
|
+
#
|
|
171
|
+
# @param case_token [String] Globally unique identifier for the case.
|
|
172
|
+
#
|
|
173
|
+
# @param ending_before [String] A cursor representing an item's token before which a page of results should end.
|
|
174
|
+
#
|
|
175
|
+
# @param page_size [Integer] Page size (for pagination).
|
|
176
|
+
#
|
|
177
|
+
# @param starting_after [String] A cursor representing an item's token after which a page of results should begin
|
|
178
|
+
#
|
|
179
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
180
|
+
#
|
|
181
|
+
# @return [Lithic::Internal::CursorPage<Lithic::Models::TransactionMonitoring::CaseTransaction>]
|
|
182
|
+
#
|
|
183
|
+
# @see Lithic::Models::TransactionMonitoring::CaseListTransactionsParams
|
|
184
|
+
def list_transactions(case_token, params = {})
|
|
185
|
+
parsed, options = Lithic::TransactionMonitoring::CaseListTransactionsParams.dump_request(params)
|
|
186
|
+
query = Lithic::Internal::Util.encode_query_params(parsed)
|
|
187
|
+
@client.request(
|
|
188
|
+
method: :get,
|
|
189
|
+
path: ["v1/transaction_monitoring/cases/%1$s/transactions", case_token],
|
|
190
|
+
query: query,
|
|
191
|
+
page: Lithic::Internal::CursorPage,
|
|
192
|
+
model: Lithic::TransactionMonitoring::CaseTransaction,
|
|
193
|
+
options: options
|
|
194
|
+
)
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# Lists the cards involved in a case, with per-card transaction counts.
|
|
198
|
+
#
|
|
199
|
+
# @overload retrieve_cards(case_token, request_options: {})
|
|
200
|
+
#
|
|
201
|
+
# @param case_token [String] Globally unique identifier for the case.
|
|
202
|
+
#
|
|
203
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
204
|
+
#
|
|
205
|
+
# @return [Array<Lithic::Models::TransactionMonitoring::CaseCard>]
|
|
206
|
+
#
|
|
207
|
+
# @see Lithic::Models::TransactionMonitoring::CaseRetrieveCardsParams
|
|
208
|
+
def retrieve_cards(case_token, params = {})
|
|
209
|
+
@client.request(
|
|
210
|
+
method: :get,
|
|
211
|
+
path: ["v1/transaction_monitoring/cases/%1$s/cards", case_token],
|
|
212
|
+
model: Lithic::Internal::Type::ArrayOf[Lithic::TransactionMonitoring::CaseCard],
|
|
213
|
+
options: params[:request_options]
|
|
214
|
+
)
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# @api private
|
|
218
|
+
#
|
|
219
|
+
# @param client [Lithic::Client]
|
|
220
|
+
def initialize(client:)
|
|
221
|
+
@client = client
|
|
222
|
+
@comments = Lithic::Resources::TransactionMonitoring::Cases::Comments.new(client: client)
|
|
223
|
+
@files = Lithic::Resources::TransactionMonitoring::Cases::Files.new(client: client)
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
end
|
|
228
|
+
end
|