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
|
@@ -97,6 +97,14 @@ module Lithic
|
|
|
97
97
|
sig { returns(T.nilable(String)) }
|
|
98
98
|
attr_accessor :external_bank_account_token
|
|
99
99
|
|
|
100
|
+
# Key-value pairs for tagging resources. Tags allow you to associate arbitrary
|
|
101
|
+
# metadata with a resource for your own purposes.
|
|
102
|
+
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
103
|
+
attr_reader :tags
|
|
104
|
+
|
|
105
|
+
sig { params(tags: T::Hash[Symbol, String]).void }
|
|
106
|
+
attr_writer :tags
|
|
107
|
+
|
|
100
108
|
sig { returns(T.nilable(Lithic::Payment::Type::TaggedSymbol)) }
|
|
101
109
|
attr_reader :type
|
|
102
110
|
|
|
@@ -134,6 +142,7 @@ module Lithic
|
|
|
134
142
|
currency: String,
|
|
135
143
|
expected_release_date: T.nilable(Date),
|
|
136
144
|
external_bank_account_token: T.nilable(String),
|
|
145
|
+
tags: T::Hash[Symbol, String],
|
|
137
146
|
type: Lithic::Payment::Type::OrSymbol,
|
|
138
147
|
user_defined_id: T.nilable(String),
|
|
139
148
|
family: Symbol
|
|
@@ -178,6 +187,9 @@ module Lithic
|
|
|
178
187
|
expected_release_date: nil,
|
|
179
188
|
# External bank account token
|
|
180
189
|
external_bank_account_token: nil,
|
|
190
|
+
# Key-value pairs for tagging resources. Tags allow you to associate arbitrary
|
|
191
|
+
# metadata with a resource for your own purposes.
|
|
192
|
+
tags: nil,
|
|
181
193
|
type: nil,
|
|
182
194
|
# User-defined identifier
|
|
183
195
|
user_defined_id: nil,
|
|
@@ -210,6 +222,7 @@ module Lithic
|
|
|
210
222
|
currency: String,
|
|
211
223
|
expected_release_date: T.nilable(Date),
|
|
212
224
|
external_bank_account_token: T.nilable(String),
|
|
225
|
+
tags: T::Hash[Symbol, String],
|
|
213
226
|
type: Lithic::Payment::Type::TaggedSymbol,
|
|
214
227
|
user_defined_id: T.nilable(String)
|
|
215
228
|
}
|
|
@@ -14,17 +14,17 @@ module Lithic
|
|
|
14
14
|
|
|
15
15
|
# Globally unique identifier denoting the account that the associated transaction
|
|
16
16
|
# occurred on.
|
|
17
|
-
sig { returns(String) }
|
|
17
|
+
sig { returns(T.nilable(String)) }
|
|
18
18
|
attr_accessor :account_token
|
|
19
19
|
|
|
20
20
|
# Globally unique identifier denoting the card program that the associated
|
|
21
21
|
# transaction occurred on.
|
|
22
|
-
sig { returns(String) }
|
|
22
|
+
sig { returns(T.nilable(String)) }
|
|
23
23
|
attr_accessor :card_program_token
|
|
24
24
|
|
|
25
25
|
# Globally unique identifier denoting the card that the associated transaction
|
|
26
26
|
# occurred on.
|
|
27
|
-
sig { returns(String) }
|
|
27
|
+
sig { returns(T.nilable(String)) }
|
|
28
28
|
attr_accessor :card_token
|
|
29
29
|
|
|
30
30
|
# Date and time when the transaction first occurred. UTC time zone.
|
|
@@ -87,12 +87,12 @@ module Lithic
|
|
|
87
87
|
attr_accessor :settlement_date
|
|
88
88
|
|
|
89
89
|
# Globally unique identifier denoting the associated transaction. For settlement
|
|
90
|
-
# records with type `CLEARING`, `FINANCIAL`, or `
|
|
90
|
+
# records with type `CLEARING`, `FINANCIAL`, or `NON_FINANCIAL`, this references a
|
|
91
91
|
# card transaction token. For settlement records with type `CHARGEBACK`,
|
|
92
92
|
# `REPRESENTMENT`, `PREARBITRATION`, `ARBITRATION`, or `COLLABORATION`, this
|
|
93
93
|
# references the dispute transaction token. May be null for certain settlement
|
|
94
94
|
# types.
|
|
95
|
-
sig { returns(String) }
|
|
95
|
+
sig { returns(T.nilable(String)) }
|
|
96
96
|
attr_accessor :transaction_token
|
|
97
97
|
|
|
98
98
|
# The total amount of settlement impacting transactions (excluding interchange,
|
|
@@ -118,9 +118,9 @@ module Lithic
|
|
|
118
118
|
sig do
|
|
119
119
|
params(
|
|
120
120
|
token: String,
|
|
121
|
-
account_token: String,
|
|
122
|
-
card_program_token: String,
|
|
123
|
-
card_token: String,
|
|
121
|
+
account_token: T.nilable(String),
|
|
122
|
+
card_program_token: T.nilable(String),
|
|
123
|
+
card_token: T.nilable(String),
|
|
124
124
|
created: Time,
|
|
125
125
|
currency: String,
|
|
126
126
|
disputes_gross_amount: Integer,
|
|
@@ -134,7 +134,7 @@ module Lithic
|
|
|
134
134
|
other_fees_gross_amount: Integer,
|
|
135
135
|
report_date: String,
|
|
136
136
|
settlement_date: String,
|
|
137
|
-
transaction_token: String,
|
|
137
|
+
transaction_token: T.nilable(String),
|
|
138
138
|
transactions_gross_amount: Integer,
|
|
139
139
|
type: Lithic::SettlementDetail::Type::OrSymbol,
|
|
140
140
|
updated: Time,
|
|
@@ -182,7 +182,7 @@ module Lithic
|
|
|
182
182
|
# advisement date, which is distinct from the date of money movement.
|
|
183
183
|
settlement_date:,
|
|
184
184
|
# Globally unique identifier denoting the associated transaction. For settlement
|
|
185
|
-
# records with type `CLEARING`, `FINANCIAL`, or `
|
|
185
|
+
# records with type `CLEARING`, `FINANCIAL`, or `NON_FINANCIAL`, this references a
|
|
186
186
|
# card transaction token. For settlement records with type `CHARGEBACK`,
|
|
187
187
|
# `REPRESENTMENT`, `PREARBITRATION`, `ARBITRATION`, or `COLLABORATION`, this
|
|
188
188
|
# references the dispute transaction token. May be null for certain settlement
|
|
@@ -204,9 +204,9 @@ module Lithic
|
|
|
204
204
|
override.returns(
|
|
205
205
|
{
|
|
206
206
|
token: String,
|
|
207
|
-
account_token: String,
|
|
208
|
-
card_program_token: String,
|
|
209
|
-
card_token: String,
|
|
207
|
+
account_token: T.nilable(String),
|
|
208
|
+
card_program_token: T.nilable(String),
|
|
209
|
+
card_token: T.nilable(String),
|
|
210
210
|
created: Time,
|
|
211
211
|
currency: String,
|
|
212
212
|
disputes_gross_amount: Integer,
|
|
@@ -219,7 +219,7 @@ module Lithic
|
|
|
219
219
|
other_fees_gross_amount: Integer,
|
|
220
220
|
report_date: String,
|
|
221
221
|
settlement_date: String,
|
|
222
|
-
transaction_token: String,
|
|
222
|
+
transaction_token: T.nilable(String),
|
|
223
223
|
transactions_gross_amount: Integer,
|
|
224
224
|
type: Lithic::SettlementDetail::Type::TaggedSymbol,
|
|
225
225
|
updated: Time,
|
|
@@ -305,7 +305,7 @@ module Lithic
|
|
|
305
305
|
FINANCIAL =
|
|
306
306
|
T.let(:FINANCIAL, Lithic::SettlementDetail::Type::TaggedSymbol)
|
|
307
307
|
NON_FINANCIAL =
|
|
308
|
-
T.let(:
|
|
308
|
+
T.let(:NON_FINANCIAL, Lithic::SettlementDetail::Type::TaggedSymbol)
|
|
309
309
|
PREARBITRATION =
|
|
310
310
|
T.let(:PREARBITRATION, Lithic::SettlementDetail::Type::TaggedSymbol)
|
|
311
311
|
REPRESENTMENT =
|
|
@@ -43,24 +43,15 @@ module Lithic
|
|
|
43
43
|
|
|
44
44
|
# Breakdown of credits
|
|
45
45
|
sig { returns(T.nilable(T.anything)) }
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
sig { params(credit_details: T.anything).void }
|
|
49
|
-
attr_writer :credit_details
|
|
46
|
+
attr_accessor :credit_details
|
|
50
47
|
|
|
51
48
|
# Breakdown of debits
|
|
52
49
|
sig { returns(T.nilable(T.anything)) }
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
sig { params(debit_details: T.anything).void }
|
|
56
|
-
attr_writer :debit_details
|
|
50
|
+
attr_accessor :debit_details
|
|
57
51
|
|
|
58
52
|
# Breakdown of payments
|
|
59
53
|
sig { returns(T.nilable(T.anything)) }
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
sig { params(payment_details: T.anything).void }
|
|
63
|
-
attr_writer :payment_details
|
|
54
|
+
attr_accessor :payment_details
|
|
64
55
|
|
|
65
56
|
sig do
|
|
66
57
|
params(
|
|
@@ -72,9 +63,9 @@ module Lithic
|
|
|
72
63
|
interest: Integer,
|
|
73
64
|
payments: Integer,
|
|
74
65
|
purchases: Integer,
|
|
75
|
-
credit_details: T.anything,
|
|
76
|
-
debit_details: T.anything,
|
|
77
|
-
payment_details: T.anything
|
|
66
|
+
credit_details: T.nilable(T.anything),
|
|
67
|
+
debit_details: T.nilable(T.anything),
|
|
68
|
+
payment_details: T.nilable(T.anything)
|
|
78
69
|
).returns(T.attached_class)
|
|
79
70
|
end
|
|
80
71
|
def self.new(
|
|
@@ -115,9 +106,9 @@ module Lithic
|
|
|
115
106
|
interest: Integer,
|
|
116
107
|
payments: Integer,
|
|
117
108
|
purchases: Integer,
|
|
118
|
-
credit_details: T.anything,
|
|
119
|
-
debit_details: T.anything,
|
|
120
|
-
payment_details: T.anything
|
|
109
|
+
credit_details: T.nilable(T.anything),
|
|
110
|
+
debit_details: T.nilable(T.anything),
|
|
111
|
+
payment_details: T.nilable(T.anything)
|
|
121
112
|
}
|
|
122
113
|
)
|
|
123
114
|
end
|
|
@@ -1551,7 +1551,7 @@ module Lithic
|
|
|
1551
1551
|
sig do
|
|
1552
1552
|
params(
|
|
1553
1553
|
network_specific_data:
|
|
1554
|
-
Lithic::Transaction::Event::NetworkSpecificData::OrHash
|
|
1554
|
+
T.nilable(Lithic::Transaction::Event::NetworkSpecificData::OrHash)
|
|
1555
1555
|
).void
|
|
1556
1556
|
end
|
|
1557
1557
|
attr_writer :network_specific_data
|
|
@@ -1574,7 +1574,7 @@ module Lithic
|
|
|
1574
1574
|
type: Lithic::Transaction::Event::Type::OrSymbol,
|
|
1575
1575
|
account_type: Lithic::Transaction::Event::AccountType::OrSymbol,
|
|
1576
1576
|
network_specific_data:
|
|
1577
|
-
Lithic::Transaction::Event::NetworkSpecificData::OrHash
|
|
1577
|
+
T.nilable(Lithic::Transaction::Event::NetworkSpecificData::OrHash)
|
|
1578
1578
|
).returns(T.attached_class)
|
|
1579
1579
|
end
|
|
1580
1580
|
def self.new(
|
|
@@ -1627,7 +1627,7 @@ module Lithic
|
|
|
1627
1627
|
account_type:
|
|
1628
1628
|
Lithic::Transaction::Event::AccountType::TaggedSymbol,
|
|
1629
1629
|
network_specific_data:
|
|
1630
|
-
Lithic::Transaction::Event::NetworkSpecificData
|
|
1630
|
+
T.nilable(Lithic::Transaction::Event::NetworkSpecificData)
|
|
1631
1631
|
}
|
|
1632
1632
|
)
|
|
1633
1633
|
end
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module TransactionMonitoring
|
|
6
|
+
class CaseActivityEntry < Lithic::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Lithic::TransactionMonitoring::CaseActivityEntry,
|
|
11
|
+
Lithic::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Globally unique identifier for the activity entry
|
|
16
|
+
sig { returns(String) }
|
|
17
|
+
attr_accessor :token
|
|
18
|
+
|
|
19
|
+
# Identifier of the actor that produced the activity entry
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
attr_accessor :actor_token
|
|
22
|
+
|
|
23
|
+
# Date and time at which the activity entry was created
|
|
24
|
+
sig { returns(Time) }
|
|
25
|
+
attr_accessor :created
|
|
26
|
+
|
|
27
|
+
# The case field that changed, or the action that was taken, in an activity entry:
|
|
28
|
+
#
|
|
29
|
+
# - `STATUS` - The case status changed
|
|
30
|
+
# - `TITLE` - The case title changed
|
|
31
|
+
# - `ASSIGNED_TO` - The case assignee changed
|
|
32
|
+
# - `RESOLUTION_OUTCOME` - The resolution outcome was set or changed
|
|
33
|
+
# - `RESOLUTION_NOTES` - The resolution notes were set or changed
|
|
34
|
+
# - `TAGS` - The case tags changed
|
|
35
|
+
# - `PRIORITY` - The case priority changed
|
|
36
|
+
# - `COMMENT` - A comment was added or edited
|
|
37
|
+
# - `FILE` - A file was attached to the case
|
|
38
|
+
sig do
|
|
39
|
+
returns(Lithic::TransactionMonitoring::CaseActivityType::TaggedSymbol)
|
|
40
|
+
end
|
|
41
|
+
attr_accessor :entry_type
|
|
42
|
+
|
|
43
|
+
# New value of the changed field, when applicable
|
|
44
|
+
sig { returns(T.nilable(String)) }
|
|
45
|
+
attr_accessor :new_value
|
|
46
|
+
|
|
47
|
+
# Previous value of the changed field, when applicable
|
|
48
|
+
sig { returns(T.nilable(String)) }
|
|
49
|
+
attr_accessor :previous_value
|
|
50
|
+
|
|
51
|
+
# A single entry in a case's activity feed
|
|
52
|
+
sig do
|
|
53
|
+
params(
|
|
54
|
+
token: String,
|
|
55
|
+
actor_token: T.nilable(String),
|
|
56
|
+
created: Time,
|
|
57
|
+
entry_type:
|
|
58
|
+
Lithic::TransactionMonitoring::CaseActivityType::OrSymbol,
|
|
59
|
+
new_value: T.nilable(String),
|
|
60
|
+
previous_value: T.nilable(String)
|
|
61
|
+
).returns(T.attached_class)
|
|
62
|
+
end
|
|
63
|
+
def self.new(
|
|
64
|
+
# Globally unique identifier for the activity entry
|
|
65
|
+
token:,
|
|
66
|
+
# Identifier of the actor that produced the activity entry
|
|
67
|
+
actor_token:,
|
|
68
|
+
# Date and time at which the activity entry was created
|
|
69
|
+
created:,
|
|
70
|
+
# The case field that changed, or the action that was taken, in an activity entry:
|
|
71
|
+
#
|
|
72
|
+
# - `STATUS` - The case status changed
|
|
73
|
+
# - `TITLE` - The case title changed
|
|
74
|
+
# - `ASSIGNED_TO` - The case assignee changed
|
|
75
|
+
# - `RESOLUTION_OUTCOME` - The resolution outcome was set or changed
|
|
76
|
+
# - `RESOLUTION_NOTES` - The resolution notes were set or changed
|
|
77
|
+
# - `TAGS` - The case tags changed
|
|
78
|
+
# - `PRIORITY` - The case priority changed
|
|
79
|
+
# - `COMMENT` - A comment was added or edited
|
|
80
|
+
# - `FILE` - A file was attached to the case
|
|
81
|
+
entry_type:,
|
|
82
|
+
# New value of the changed field, when applicable
|
|
83
|
+
new_value:,
|
|
84
|
+
# Previous value of the changed field, when applicable
|
|
85
|
+
previous_value:
|
|
86
|
+
)
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
sig do
|
|
90
|
+
override.returns(
|
|
91
|
+
{
|
|
92
|
+
token: String,
|
|
93
|
+
actor_token: T.nilable(String),
|
|
94
|
+
created: Time,
|
|
95
|
+
entry_type:
|
|
96
|
+
Lithic::TransactionMonitoring::CaseActivityType::TaggedSymbol,
|
|
97
|
+
new_value: T.nilable(String),
|
|
98
|
+
previous_value: T.nilable(String)
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
end
|
|
102
|
+
def to_hash
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module TransactionMonitoring
|
|
6
|
+
# The case field that changed, or the action that was taken, in an activity entry:
|
|
7
|
+
#
|
|
8
|
+
# - `STATUS` - The case status changed
|
|
9
|
+
# - `TITLE` - The case title changed
|
|
10
|
+
# - `ASSIGNED_TO` - The case assignee changed
|
|
11
|
+
# - `RESOLUTION_OUTCOME` - The resolution outcome was set or changed
|
|
12
|
+
# - `RESOLUTION_NOTES` - The resolution notes were set or changed
|
|
13
|
+
# - `TAGS` - The case tags changed
|
|
14
|
+
# - `PRIORITY` - The case priority changed
|
|
15
|
+
# - `COMMENT` - A comment was added or edited
|
|
16
|
+
# - `FILE` - A file was attached to the case
|
|
17
|
+
module CaseActivityType
|
|
18
|
+
extend Lithic::Internal::Type::Enum
|
|
19
|
+
|
|
20
|
+
TaggedSymbol =
|
|
21
|
+
T.type_alias do
|
|
22
|
+
T.all(Symbol, Lithic::TransactionMonitoring::CaseActivityType)
|
|
23
|
+
end
|
|
24
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
25
|
+
|
|
26
|
+
STATUS =
|
|
27
|
+
T.let(
|
|
28
|
+
:STATUS,
|
|
29
|
+
Lithic::TransactionMonitoring::CaseActivityType::TaggedSymbol
|
|
30
|
+
)
|
|
31
|
+
TITLE =
|
|
32
|
+
T.let(
|
|
33
|
+
:TITLE,
|
|
34
|
+
Lithic::TransactionMonitoring::CaseActivityType::TaggedSymbol
|
|
35
|
+
)
|
|
36
|
+
ASSIGNED_TO =
|
|
37
|
+
T.let(
|
|
38
|
+
:ASSIGNED_TO,
|
|
39
|
+
Lithic::TransactionMonitoring::CaseActivityType::TaggedSymbol
|
|
40
|
+
)
|
|
41
|
+
RESOLUTION_OUTCOME =
|
|
42
|
+
T.let(
|
|
43
|
+
:RESOLUTION_OUTCOME,
|
|
44
|
+
Lithic::TransactionMonitoring::CaseActivityType::TaggedSymbol
|
|
45
|
+
)
|
|
46
|
+
RESOLUTION_NOTES =
|
|
47
|
+
T.let(
|
|
48
|
+
:RESOLUTION_NOTES,
|
|
49
|
+
Lithic::TransactionMonitoring::CaseActivityType::TaggedSymbol
|
|
50
|
+
)
|
|
51
|
+
TAGS =
|
|
52
|
+
T.let(
|
|
53
|
+
:TAGS,
|
|
54
|
+
Lithic::TransactionMonitoring::CaseActivityType::TaggedSymbol
|
|
55
|
+
)
|
|
56
|
+
PRIORITY =
|
|
57
|
+
T.let(
|
|
58
|
+
:PRIORITY,
|
|
59
|
+
Lithic::TransactionMonitoring::CaseActivityType::TaggedSymbol
|
|
60
|
+
)
|
|
61
|
+
COMMENT =
|
|
62
|
+
T.let(
|
|
63
|
+
:COMMENT,
|
|
64
|
+
Lithic::TransactionMonitoring::CaseActivityType::TaggedSymbol
|
|
65
|
+
)
|
|
66
|
+
FILE =
|
|
67
|
+
T.let(
|
|
68
|
+
:FILE,
|
|
69
|
+
Lithic::TransactionMonitoring::CaseActivityType::TaggedSymbol
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
sig do
|
|
73
|
+
override.returns(
|
|
74
|
+
T::Array[
|
|
75
|
+
Lithic::TransactionMonitoring::CaseActivityType::TaggedSymbol
|
|
76
|
+
]
|
|
77
|
+
)
|
|
78
|
+
end
|
|
79
|
+
def self.values
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module TransactionMonitoring
|
|
6
|
+
class CaseCard < Lithic::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Lithic::TransactionMonitoring::CaseCard,
|
|
11
|
+
Lithic::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Token of the account the card belongs to
|
|
16
|
+
sig { returns(String) }
|
|
17
|
+
attr_accessor :account_token
|
|
18
|
+
|
|
19
|
+
# Token of the card
|
|
20
|
+
sig { returns(String) }
|
|
21
|
+
attr_accessor :card_token
|
|
22
|
+
|
|
23
|
+
# Number of the card's transactions associated with the case
|
|
24
|
+
sig { returns(Integer) }
|
|
25
|
+
attr_accessor :transaction_count
|
|
26
|
+
|
|
27
|
+
# Summary of a card's involvement in a case, aggregated across the case's
|
|
28
|
+
# transactions
|
|
29
|
+
sig do
|
|
30
|
+
params(
|
|
31
|
+
account_token: String,
|
|
32
|
+
card_token: String,
|
|
33
|
+
transaction_count: Integer
|
|
34
|
+
).returns(T.attached_class)
|
|
35
|
+
end
|
|
36
|
+
def self.new(
|
|
37
|
+
# Token of the account the card belongs to
|
|
38
|
+
account_token:,
|
|
39
|
+
# Token of the card
|
|
40
|
+
card_token:,
|
|
41
|
+
# Number of the card's transactions associated with the case
|
|
42
|
+
transaction_count:
|
|
43
|
+
)
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
sig do
|
|
47
|
+
override.returns(
|
|
48
|
+
{
|
|
49
|
+
account_token: String,
|
|
50
|
+
card_token: String,
|
|
51
|
+
transaction_count: Integer
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
end
|
|
55
|
+
def to_hash
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module TransactionMonitoring
|
|
6
|
+
class CaseEntity < Lithic::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Lithic::TransactionMonitoring::CaseEntity,
|
|
11
|
+
Lithic::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Globally unique identifier for the associated entity
|
|
16
|
+
sig { returns(String) }
|
|
17
|
+
attr_accessor :entity_token
|
|
18
|
+
|
|
19
|
+
# The type of entity a case is associated with:
|
|
20
|
+
#
|
|
21
|
+
# - `CARD` - The case is associated with a card
|
|
22
|
+
# - `ACCOUNT` - The case is associated with an account
|
|
23
|
+
sig do
|
|
24
|
+
returns(
|
|
25
|
+
Lithic::TransactionMonitoring::CaseEntity::EntityType::TaggedSymbol
|
|
26
|
+
)
|
|
27
|
+
end
|
|
28
|
+
attr_accessor :entity_type
|
|
29
|
+
|
|
30
|
+
# The entity a case is associated with
|
|
31
|
+
sig do
|
|
32
|
+
params(
|
|
33
|
+
entity_token: String,
|
|
34
|
+
entity_type:
|
|
35
|
+
Lithic::TransactionMonitoring::CaseEntity::EntityType::OrSymbol
|
|
36
|
+
).returns(T.attached_class)
|
|
37
|
+
end
|
|
38
|
+
def self.new(
|
|
39
|
+
# Globally unique identifier for the associated entity
|
|
40
|
+
entity_token:,
|
|
41
|
+
# The type of entity a case is associated with:
|
|
42
|
+
#
|
|
43
|
+
# - `CARD` - The case is associated with a card
|
|
44
|
+
# - `ACCOUNT` - The case is associated with an account
|
|
45
|
+
entity_type:
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
sig do
|
|
50
|
+
override.returns(
|
|
51
|
+
{
|
|
52
|
+
entity_token: String,
|
|
53
|
+
entity_type:
|
|
54
|
+
Lithic::TransactionMonitoring::CaseEntity::EntityType::TaggedSymbol
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
end
|
|
58
|
+
def to_hash
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# The type of entity a case is associated with:
|
|
62
|
+
#
|
|
63
|
+
# - `CARD` - The case is associated with a card
|
|
64
|
+
# - `ACCOUNT` - The case is associated with an account
|
|
65
|
+
module EntityType
|
|
66
|
+
extend Lithic::Internal::Type::Enum
|
|
67
|
+
|
|
68
|
+
TaggedSymbol =
|
|
69
|
+
T.type_alias do
|
|
70
|
+
T.all(
|
|
71
|
+
Symbol,
|
|
72
|
+
Lithic::TransactionMonitoring::CaseEntity::EntityType
|
|
73
|
+
)
|
|
74
|
+
end
|
|
75
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
76
|
+
|
|
77
|
+
CARD =
|
|
78
|
+
T.let(
|
|
79
|
+
:CARD,
|
|
80
|
+
Lithic::TransactionMonitoring::CaseEntity::EntityType::TaggedSymbol
|
|
81
|
+
)
|
|
82
|
+
ACCOUNT =
|
|
83
|
+
T.let(
|
|
84
|
+
:ACCOUNT,
|
|
85
|
+
Lithic::TransactionMonitoring::CaseEntity::EntityType::TaggedSymbol
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
sig do
|
|
89
|
+
override.returns(
|
|
90
|
+
T::Array[
|
|
91
|
+
Lithic::TransactionMonitoring::CaseEntity::EntityType::TaggedSymbol
|
|
92
|
+
]
|
|
93
|
+
)
|
|
94
|
+
end
|
|
95
|
+
def self.values
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module TransactionMonitoring
|
|
6
|
+
class CaseListActivityParams < Lithic::Internal::Type::BaseModel
|
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Lithic::TransactionMonitoring::CaseListActivityParams,
|
|
14
|
+
Lithic::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :case_token
|
|
20
|
+
|
|
21
|
+
# A cursor representing an item's token before which a page of results should end.
|
|
22
|
+
# Used to retrieve the previous page of results before this item.
|
|
23
|
+
sig { returns(T.nilable(String)) }
|
|
24
|
+
attr_reader :ending_before
|
|
25
|
+
|
|
26
|
+
sig { params(ending_before: String).void }
|
|
27
|
+
attr_writer :ending_before
|
|
28
|
+
|
|
29
|
+
# Page size (for pagination).
|
|
30
|
+
sig { returns(T.nilable(Integer)) }
|
|
31
|
+
attr_reader :page_size
|
|
32
|
+
|
|
33
|
+
sig { params(page_size: Integer).void }
|
|
34
|
+
attr_writer :page_size
|
|
35
|
+
|
|
36
|
+
# A cursor representing an item's token after which a page of results should
|
|
37
|
+
# begin. Used to retrieve the next page of results after this item.
|
|
38
|
+
sig { returns(T.nilable(String)) }
|
|
39
|
+
attr_reader :starting_after
|
|
40
|
+
|
|
41
|
+
sig { params(starting_after: String).void }
|
|
42
|
+
attr_writer :starting_after
|
|
43
|
+
|
|
44
|
+
sig do
|
|
45
|
+
params(
|
|
46
|
+
case_token: String,
|
|
47
|
+
ending_before: String,
|
|
48
|
+
page_size: Integer,
|
|
49
|
+
starting_after: String,
|
|
50
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
51
|
+
).returns(T.attached_class)
|
|
52
|
+
end
|
|
53
|
+
def self.new(
|
|
54
|
+
case_token:,
|
|
55
|
+
# A cursor representing an item's token before which a page of results should end.
|
|
56
|
+
# Used to retrieve the previous page of results before this item.
|
|
57
|
+
ending_before: nil,
|
|
58
|
+
# Page size (for pagination).
|
|
59
|
+
page_size: nil,
|
|
60
|
+
# A cursor representing an item's token after which a page of results should
|
|
61
|
+
# begin. Used to retrieve the next page of results after this item.
|
|
62
|
+
starting_after: nil,
|
|
63
|
+
request_options: {}
|
|
64
|
+
)
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
sig do
|
|
68
|
+
override.returns(
|
|
69
|
+
{
|
|
70
|
+
case_token: String,
|
|
71
|
+
ending_before: String,
|
|
72
|
+
page_size: Integer,
|
|
73
|
+
starting_after: String,
|
|
74
|
+
request_options: Lithic::RequestOptions
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
end
|
|
78
|
+
def to_hash
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|