lithic 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +35 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/internal/transport/base_client.rb +4 -1
- data/lib/lithic/models/account.rb +2 -2
- data/lib/lithic/models/account_holders/account_holder_entity.rb +3 -16
- data/lib/lithic/models/account_holders/entity_create_params.rb +3 -14
- data/lib/lithic/models/auth_rules/ach_payment_update_action.rb +108 -0
- data/lib/lithic/models/auth_rules/auth_rule.rb +18 -12
- data/lib/lithic/models/auth_rules/auth_rule_version.rb +5 -3
- data/lib/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rb +142 -0
- data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +18 -20
- data/lib/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rb +195 -9
- data/lib/lithic/models/auth_rules/event_stream.rb +1 -0
- data/lib/lithic/models/auth_rules/rule_feature.rb +52 -7
- data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
- data/lib/lithic/models/auth_rules/v2_create_params.rb +39 -27
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
- data/lib/lithic/models/auth_rules/v2_list_results_response.rb +426 -1
- data/lib/lithic/models/card.rb +1 -1
- data/lib/lithic/models/card_authorization.rb +117 -11
- data/lib/lithic/models/financial_accounts/loan_tape.rb +9 -1
- data/lib/lithic/models/payment.rb +13 -1
- data/lib/lithic/models/transaction_monitoring/case_activity_entry.rb +74 -0
- data/lib/lithic/models/transaction_monitoring/case_activity_type.rb +35 -0
- data/lib/lithic/models/transaction_monitoring/case_card.rb +37 -0
- data/lib/lithic/models/transaction_monitoring/case_entity.rb +50 -0
- data/lib/lithic/models/transaction_monitoring/case_list_activity_params.rb +53 -0
- data/lib/lithic/models/transaction_monitoring/case_list_params.rb +136 -0
- data/lib/lithic/models/transaction_monitoring/case_list_transactions_params.rb +53 -0
- data/lib/lithic/models/transaction_monitoring/case_priority.rb +20 -0
- data/lib/lithic/models/transaction_monitoring/case_retrieve_cards_params.rb +22 -0
- data/lib/lithic/models/transaction_monitoring/case_retrieve_cards_response.rb +11 -0
- data/lib/lithic/models/transaction_monitoring/case_retrieve_params.rb +22 -0
- data/lib/lithic/models/transaction_monitoring/case_sort_order.rb +29 -0
- data/lib/lithic/models/transaction_monitoring/case_status.rb +31 -0
- data/lib/lithic/models/transaction_monitoring/case_transaction.rb +53 -0
- data/lib/lithic/models/transaction_monitoring/case_update_params.rb +116 -0
- data/lib/lithic/models/transaction_monitoring/cases/case_file.rb +141 -0
- data/lib/lithic/models/transaction_monitoring/cases/comment_create_params.rb +47 -0
- data/lib/lithic/models/transaction_monitoring/cases/comment_delete_params.rb +30 -0
- data/lib/lithic/models/transaction_monitoring/cases/comment_update_params.rb +54 -0
- data/lib/lithic/models/transaction_monitoring/cases/file_create_params.rb +33 -0
- data/lib/lithic/models/transaction_monitoring/cases/file_delete_params.rb +30 -0
- data/lib/lithic/models/transaction_monitoring/cases/file_list_params.rb +54 -0
- data/lib/lithic/models/transaction_monitoring/cases/file_retrieve_params.rb +30 -0
- data/lib/lithic/models/transaction_monitoring/cases/file_status.rb +26 -0
- data/lib/lithic/models/transaction_monitoring/cases/upload_constraints.rb +31 -0
- data/lib/lithic/models/transaction_monitoring/entity_type.rb +18 -0
- data/lib/lithic/models/transaction_monitoring/monitoring_case.rb +168 -0
- data/lib/lithic/models/transaction_monitoring/queue.rb +120 -0
- data/lib/lithic/models/transaction_monitoring/queue_create_params.rb +32 -0
- data/lib/lithic/models/transaction_monitoring/queue_delete_params.rb +22 -0
- data/lib/lithic/models/transaction_monitoring/queue_list_params.rb +45 -0
- data/lib/lithic/models/transaction_monitoring/queue_retrieve_params.rb +22 -0
- data/lib/lithic/models/transaction_monitoring/queue_update_params.rb +39 -0
- data/lib/lithic/models/transaction_monitoring/resolution_outcome.rb +28 -0
- data/lib/lithic/models/transaction_route_params.rb +29 -0
- data/lib/lithic/models.rb +4 -0
- data/lib/lithic/resources/account_holders/entities.rb +1 -1
- data/lib/lithic/resources/auth_rules/v2.rb +2 -2
- data/lib/lithic/resources/cards.rb +2 -2
- data/lib/lithic/resources/transaction_monitoring/cases/comments.rb +111 -0
- data/lib/lithic/resources/transaction_monitoring/cases/files.rb +131 -0
- data/lib/lithic/resources/transaction_monitoring/cases.rb +228 -0
- data/lib/lithic/resources/transaction_monitoring/queues.rb +137 -0
- data/lib/lithic/resources/transaction_monitoring.rb +22 -0
- data/lib/lithic/resources/transactions.rb +25 -0
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +42 -0
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/account.rbi +3 -3
- data/rbi/lithic/models/account_holders/account_holder_entity.rbi +3 -40
- data/rbi/lithic/models/account_holders/entity_create_params.rbi +3 -37
- data/rbi/lithic/models/auth_rules/ach_payment_update_action.rbi +237 -0
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +16 -9
- data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +2 -0
- data/rbi/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rbi +298 -0
- data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +29 -29
- data/rbi/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbi +395 -12
- data/rbi/lithic/models/auth_rules/event_stream.rbi +5 -0
- data/rbi/lithic/models/auth_rules/rule_feature.rbi +77 -6
- data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +6 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +48 -27
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -0
- data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +826 -1
- data/rbi/lithic/models/card.rbi +2 -2
- data/rbi/lithic/models/card_authorization.rbi +246 -17
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +8 -0
- data/rbi/lithic/models/payment.rbi +13 -0
- data/rbi/lithic/models/transaction_monitoring/case_activity_entry.rbi +107 -0
- data/rbi/lithic/models/transaction_monitoring/case_activity_type.rbi +84 -0
- data/rbi/lithic/models/transaction_monitoring/case_card.rbi +60 -0
- data/rbi/lithic/models/transaction_monitoring/case_entity.rbi +101 -0
- data/rbi/lithic/models/transaction_monitoring/case_list_activity_params.rbi +83 -0
- data/rbi/lithic/models/transaction_monitoring/case_list_params.rbi +220 -0
- data/rbi/lithic/models/transaction_monitoring/case_list_transactions_params.rbi +83 -0
- data/rbi/lithic/models/transaction_monitoring/case_priority.rbi +44 -0
- data/rbi/lithic/models/transaction_monitoring/case_retrieve_cards_params.rbi +40 -0
- data/rbi/lithic/models/transaction_monitoring/case_retrieve_cards_response.rbi +15 -0
- data/rbi/lithic/models/transaction_monitoring/case_retrieve_params.rbi +40 -0
- data/rbi/lithic/models/transaction_monitoring/case_sort_order.rbi +64 -0
- data/rbi/lithic/models/transaction_monitoring/case_status.rbi +63 -0
- data/rbi/lithic/models/transaction_monitoring/case_transaction.rbi +75 -0
- data/rbi/lithic/models/transaction_monitoring/case_update_params.rbi +201 -0
- data/rbi/lithic/models/transaction_monitoring/cases/case_file.rbi +188 -0
- data/rbi/lithic/models/transaction_monitoring/cases/comment_create_params.rbi +71 -0
- data/rbi/lithic/models/transaction_monitoring/cases/comment_delete_params.rbi +50 -0
- data/rbi/lithic/models/transaction_monitoring/cases/comment_update_params.rbi +77 -0
- data/rbi/lithic/models/transaction_monitoring/cases/file_create_params.rbi +56 -0
- data/rbi/lithic/models/transaction_monitoring/cases/file_delete_params.rbi +50 -0
- data/rbi/lithic/models/transaction_monitoring/cases/file_list_params.rbi +85 -0
- data/rbi/lithic/models/transaction_monitoring/cases/file_retrieve_params.rbi +50 -0
- data/rbi/lithic/models/transaction_monitoring/cases/file_status.rbi +51 -0
- data/rbi/lithic/models/transaction_monitoring/cases/upload_constraints.rbi +51 -0
- data/rbi/lithic/models/transaction_monitoring/entity_type.rbi +37 -0
- data/rbi/lithic/models/transaction_monitoring/monitoring_case.rbi +226 -0
- data/rbi/lithic/models/transaction_monitoring/queue.rbi +189 -0
- data/rbi/lithic/models/transaction_monitoring/queue_create_params.rbi +56 -0
- data/rbi/lithic/models/transaction_monitoring/queue_delete_params.rbi +40 -0
- data/rbi/lithic/models/transaction_monitoring/queue_list_params.rbi +77 -0
- data/rbi/lithic/models/transaction_monitoring/queue_retrieve_params.rbi +40 -0
- data/rbi/lithic/models/transaction_monitoring/queue_update_params.rbi +65 -0
- data/rbi/lithic/models/transaction_monitoring/resolution_outcome.rbi +61 -0
- data/rbi/lithic/models/transaction_route_params.rbi +49 -0
- data/rbi/lithic/models.rbi +4 -0
- data/rbi/lithic/resources/account_holders/entities.rbi +1 -1
- data/rbi/lithic/resources/auth_rules/v2.rbi +1 -0
- data/rbi/lithic/resources/cards.rbi +2 -2
- data/rbi/lithic/resources/transaction_monitoring/cases/comments.rbi +81 -0
- data/rbi/lithic/resources/transaction_monitoring/cases/files.rbi +98 -0
- data/rbi/lithic/resources/transaction_monitoring/cases.rbi +230 -0
- data/rbi/lithic/resources/transaction_monitoring/queues.rbi +103 -0
- data/rbi/lithic/resources/transaction_monitoring.rbi +18 -0
- data/rbi/lithic/resources/transactions.rbi +18 -0
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/account_holders/account_holder_entity.rbs +4 -15
- data/sig/lithic/models/account_holders/entity_create_params.rbs +4 -15
- data/sig/lithic/models/auth_rules/ach_payment_update_action.rbs +99 -0
- data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
- data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -0
- data/sig/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rbs +81 -0
- data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +16 -16
- data/sig/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbs +73 -3
- data/sig/lithic/models/auth_rules/event_stream.rbs +2 -0
- data/sig/lithic/models/auth_rules/rule_feature.rbs +31 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +3 -0
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
- data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +355 -0
- data/sig/lithic/models/card_authorization.rbs +84 -10
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +5 -0
- data/sig/lithic/models/payment.rbs +7 -0
- data/sig/lithic/models/transaction_monitoring/case_activity_entry.rbs +47 -0
- data/sig/lithic/models/transaction_monitoring/case_activity_type.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/case_card.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/case_entity.rbs +38 -0
- data/sig/lithic/models/transaction_monitoring/case_list_activity_params.rbs +49 -0
- data/sig/lithic/models/transaction_monitoring/case_list_params.rbs +125 -0
- data/sig/lithic/models/transaction_monitoring/case_list_transactions_params.rbs +49 -0
- data/sig/lithic/models/transaction_monitoring/case_priority.rbs +18 -0
- data/sig/lithic/models/transaction_monitoring/case_retrieve_cards_params.rbs +25 -0
- data/sig/lithic/models/transaction_monitoring/case_retrieve_cards_response.rbs +10 -0
- data/sig/lithic/models/transaction_monitoring/case_retrieve_params.rbs +25 -0
- data/sig/lithic/models/transaction_monitoring/case_sort_order.rbs +26 -0
- data/sig/lithic/models/transaction_monitoring/case_status.rbs +21 -0
- data/sig/lithic/models/transaction_monitoring/case_transaction.rbs +42 -0
- data/sig/lithic/models/transaction_monitoring/case_update_params.rbs +91 -0
- data/sig/lithic/models/transaction_monitoring/cases/case_file.rbs +86 -0
- data/sig/lithic/models/transaction_monitoring/cases/comment_create_params.rbs +38 -0
- data/sig/lithic/models/transaction_monitoring/cases/comment_delete_params.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/cases/comment_update_params.rbs +47 -0
- data/sig/lithic/models/transaction_monitoring/cases/file_create_params.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/cases/file_delete_params.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/cases/file_list_params.rbs +51 -0
- data/sig/lithic/models/transaction_monitoring/cases/file_retrieve_params.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/cases/file_status.rbs +19 -0
- data/sig/lithic/models/transaction_monitoring/cases/upload_constraints.rbs +26 -0
- data/sig/lithic/models/transaction_monitoring/entity_type.rbs +16 -0
- data/sig/lithic/models/transaction_monitoring/monitoring_case.rbs +102 -0
- data/sig/lithic/models/transaction_monitoring/queue.rbs +101 -0
- data/sig/lithic/models/transaction_monitoring/queue_create_params.rbs +30 -0
- data/sig/lithic/models/transaction_monitoring/queue_delete_params.rbs +25 -0
- data/sig/lithic/models/transaction_monitoring/queue_list_params.rbs +40 -0
- data/sig/lithic/models/transaction_monitoring/queue_retrieve_params.rbs +25 -0
- data/sig/lithic/models/transaction_monitoring/queue_update_params.rbs +36 -0
- data/sig/lithic/models/transaction_monitoring/resolution_outcome.rbs +24 -0
- data/sig/lithic/models/transaction_route_params.rbs +28 -0
- data/sig/lithic/models.rbs +4 -0
- data/sig/lithic/resources/account_holders/entities.rbs +1 -1
- data/sig/lithic/resources/transaction_monitoring/cases/comments.rbs +32 -0
- data/sig/lithic/resources/transaction_monitoring/cases/files.rbs +37 -0
- data/sig/lithic/resources/transaction_monitoring/cases.rbs +71 -0
- data/sig/lithic/resources/transaction_monitoring/queues.rbs +39 -0
- data/sig/lithic/resources/transaction_monitoring.rbs +11 -0
- data/sig/lithic/resources/transactions.rbs +6 -0
- metadata +128 -2
|
@@ -17,6 +17,10 @@ module Lithic
|
|
|
17
17
|
|
|
18
18
|
variant -> { Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult }
|
|
19
19
|
|
|
20
|
+
variant -> { Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult }
|
|
21
|
+
|
|
22
|
+
variant -> { Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult }
|
|
23
|
+
|
|
20
24
|
class AuthorizationResult < Lithic::Internal::Type::BaseModel
|
|
21
25
|
# @!attribute token
|
|
22
26
|
# Globally unique identifier for the evaluation
|
|
@@ -880,8 +884,429 @@ module Lithic
|
|
|
880
884
|
end
|
|
881
885
|
end
|
|
882
886
|
|
|
887
|
+
class CardTransactionUpdateResult < Lithic::Internal::Type::BaseModel
|
|
888
|
+
# @!attribute token
|
|
889
|
+
# Globally unique identifier for the evaluation
|
|
890
|
+
#
|
|
891
|
+
# @return [String]
|
|
892
|
+
required :token, String
|
|
893
|
+
|
|
894
|
+
# @!attribute actions
|
|
895
|
+
# Actions returned by the rule evaluation
|
|
896
|
+
#
|
|
897
|
+
# @return [Array<Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction, Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction>]
|
|
898
|
+
required :actions,
|
|
899
|
+
-> { Lithic::Internal::Type::ArrayOf[union: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action] }
|
|
900
|
+
|
|
901
|
+
# @!attribute auth_rule_token
|
|
902
|
+
# The Auth Rule token
|
|
903
|
+
#
|
|
904
|
+
# @return [String]
|
|
905
|
+
required :auth_rule_token, String
|
|
906
|
+
|
|
907
|
+
# @!attribute evaluation_time
|
|
908
|
+
# Timestamp of the rule evaluation
|
|
909
|
+
#
|
|
910
|
+
# @return [Time]
|
|
911
|
+
required :evaluation_time, Time
|
|
912
|
+
|
|
913
|
+
# @!attribute event_stream
|
|
914
|
+
# The event stream during which the rule was evaluated
|
|
915
|
+
#
|
|
916
|
+
# @return [Symbol, :CARD_TRANSACTION_UPDATE]
|
|
917
|
+
required :event_stream, const: :CARD_TRANSACTION_UPDATE
|
|
918
|
+
|
|
919
|
+
# @!attribute event_token
|
|
920
|
+
# Token of the event that triggered the evaluation
|
|
921
|
+
#
|
|
922
|
+
# @return [String]
|
|
923
|
+
required :event_token, String
|
|
924
|
+
|
|
925
|
+
# @!attribute mode
|
|
926
|
+
# The state of the Auth Rule
|
|
927
|
+
#
|
|
928
|
+
# @return [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Mode]
|
|
929
|
+
required :mode,
|
|
930
|
+
enum: -> { Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Mode }
|
|
931
|
+
|
|
932
|
+
# @!attribute rule_version
|
|
933
|
+
# Version of the rule that was evaluated
|
|
934
|
+
#
|
|
935
|
+
# @return [Integer]
|
|
936
|
+
required :rule_version, Integer
|
|
937
|
+
|
|
938
|
+
# @!attribute transaction_token
|
|
939
|
+
# The token of the transaction that triggered the rule evaluation
|
|
940
|
+
#
|
|
941
|
+
# @return [String, nil]
|
|
942
|
+
required :transaction_token, String, nil?: true
|
|
943
|
+
|
|
944
|
+
# @!method initialize(token:, actions:, auth_rule_token:, evaluation_time:, event_token:, mode:, rule_version:, transaction_token:, event_stream: :CARD_TRANSACTION_UPDATE)
|
|
945
|
+
# @param token [String] Globally unique identifier for the evaluation
|
|
946
|
+
#
|
|
947
|
+
# @param actions [Array<Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction, Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction>] Actions returned by the rule evaluation
|
|
948
|
+
#
|
|
949
|
+
# @param auth_rule_token [String] The Auth Rule token
|
|
950
|
+
#
|
|
951
|
+
# @param evaluation_time [Time] Timestamp of the rule evaluation
|
|
952
|
+
#
|
|
953
|
+
# @param event_token [String] Token of the event that triggered the evaluation
|
|
954
|
+
#
|
|
955
|
+
# @param mode [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Mode] The state of the Auth Rule
|
|
956
|
+
#
|
|
957
|
+
# @param rule_version [Integer] Version of the rule that was evaluated
|
|
958
|
+
#
|
|
959
|
+
# @param transaction_token [String, nil] The token of the transaction that triggered the rule evaluation
|
|
960
|
+
#
|
|
961
|
+
# @param event_stream [Symbol, :CARD_TRANSACTION_UPDATE] The event stream during which the rule was evaluated
|
|
962
|
+
|
|
963
|
+
module Action
|
|
964
|
+
extend Lithic::Internal::Type::Union
|
|
965
|
+
|
|
966
|
+
variant -> { Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction }
|
|
967
|
+
|
|
968
|
+
variant -> { Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction }
|
|
969
|
+
|
|
970
|
+
class TagAction < Lithic::Internal::Type::BaseModel
|
|
971
|
+
# @!attribute key
|
|
972
|
+
# The key of the tag to apply to the transaction
|
|
973
|
+
#
|
|
974
|
+
# @return [String]
|
|
975
|
+
required :key, String
|
|
976
|
+
|
|
977
|
+
# @!attribute type
|
|
978
|
+
# Tag the transaction with key-value metadata
|
|
979
|
+
#
|
|
980
|
+
# @return [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction::Type]
|
|
981
|
+
required :type,
|
|
982
|
+
enum: -> { Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction::Type }
|
|
983
|
+
|
|
984
|
+
# @!attribute value
|
|
985
|
+
# The value of the tag to apply to the transaction
|
|
986
|
+
#
|
|
987
|
+
# @return [String]
|
|
988
|
+
required :value, String
|
|
989
|
+
|
|
990
|
+
# @!attribute explanation
|
|
991
|
+
# Optional explanation for why this action was taken
|
|
992
|
+
#
|
|
993
|
+
# @return [String, nil]
|
|
994
|
+
optional :explanation, String
|
|
995
|
+
|
|
996
|
+
# @!method initialize(key:, type:, value:, explanation: nil)
|
|
997
|
+
# @param key [String] The key of the tag to apply to the transaction
|
|
998
|
+
#
|
|
999
|
+
# @param type [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction::Type] Tag the transaction with key-value metadata
|
|
1000
|
+
#
|
|
1001
|
+
# @param value [String] The value of the tag to apply to the transaction
|
|
1002
|
+
#
|
|
1003
|
+
# @param explanation [String] Optional explanation for why this action was taken
|
|
1004
|
+
|
|
1005
|
+
# Tag the transaction with key-value metadata
|
|
1006
|
+
#
|
|
1007
|
+
# @see Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction#type
|
|
1008
|
+
module Type
|
|
1009
|
+
extend Lithic::Internal::Type::Enum
|
|
1010
|
+
|
|
1011
|
+
TAG = :TAG
|
|
1012
|
+
|
|
1013
|
+
# @!method self.values
|
|
1014
|
+
# @return [Array<Symbol>]
|
|
1015
|
+
end
|
|
1016
|
+
end
|
|
1017
|
+
|
|
1018
|
+
class CreateCaseAction < Lithic::Internal::Type::BaseModel
|
|
1019
|
+
# @!attribute queue_token
|
|
1020
|
+
# The token of the queue to create the case in
|
|
1021
|
+
#
|
|
1022
|
+
# @return [String]
|
|
1023
|
+
required :queue_token, String
|
|
1024
|
+
|
|
1025
|
+
# @!attribute scope
|
|
1026
|
+
# The scope of the case to create
|
|
1027
|
+
#
|
|
1028
|
+
# @return [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Scope]
|
|
1029
|
+
required :scope,
|
|
1030
|
+
enum: -> { Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Scope }
|
|
1031
|
+
|
|
1032
|
+
# @!attribute type
|
|
1033
|
+
# Create a case for the transaction
|
|
1034
|
+
#
|
|
1035
|
+
# @return [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Type]
|
|
1036
|
+
required :type,
|
|
1037
|
+
enum: -> { Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Type }
|
|
1038
|
+
|
|
1039
|
+
# @!attribute explanation
|
|
1040
|
+
# Optional explanation for why this action was taken
|
|
1041
|
+
#
|
|
1042
|
+
# @return [String, nil]
|
|
1043
|
+
optional :explanation, String
|
|
1044
|
+
|
|
1045
|
+
# @!method initialize(queue_token:, scope:, type:, explanation: nil)
|
|
1046
|
+
# @param queue_token [String] The token of the queue to create the case in
|
|
1047
|
+
#
|
|
1048
|
+
# @param scope [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Scope] The scope of the case to create
|
|
1049
|
+
#
|
|
1050
|
+
# @param type [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Type] Create a case for the transaction
|
|
1051
|
+
#
|
|
1052
|
+
# @param explanation [String] Optional explanation for why this action was taken
|
|
1053
|
+
|
|
1054
|
+
# The scope of the case to create
|
|
1055
|
+
#
|
|
1056
|
+
# @see Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction#scope
|
|
1057
|
+
module Scope
|
|
1058
|
+
extend Lithic::Internal::Type::Enum
|
|
1059
|
+
|
|
1060
|
+
CARD = :CARD
|
|
1061
|
+
ACCOUNT = :ACCOUNT
|
|
1062
|
+
|
|
1063
|
+
# @!method self.values
|
|
1064
|
+
# @return [Array<Symbol>]
|
|
1065
|
+
end
|
|
1066
|
+
|
|
1067
|
+
# Create a case for the transaction
|
|
1068
|
+
#
|
|
1069
|
+
# @see Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction#type
|
|
1070
|
+
module Type
|
|
1071
|
+
extend Lithic::Internal::Type::Enum
|
|
1072
|
+
|
|
1073
|
+
CREATE_CASE = :CREATE_CASE
|
|
1074
|
+
|
|
1075
|
+
# @!method self.values
|
|
1076
|
+
# @return [Array<Symbol>]
|
|
1077
|
+
end
|
|
1078
|
+
end
|
|
1079
|
+
|
|
1080
|
+
# @!method self.variants
|
|
1081
|
+
# @return [Array(Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction, Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction)]
|
|
1082
|
+
end
|
|
1083
|
+
|
|
1084
|
+
# The state of the Auth Rule
|
|
1085
|
+
#
|
|
1086
|
+
# @see Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult#mode
|
|
1087
|
+
module Mode
|
|
1088
|
+
extend Lithic::Internal::Type::Enum
|
|
1089
|
+
|
|
1090
|
+
ACTIVE = :ACTIVE
|
|
1091
|
+
INACTIVE = :INACTIVE
|
|
1092
|
+
|
|
1093
|
+
# @!method self.values
|
|
1094
|
+
# @return [Array<Symbol>]
|
|
1095
|
+
end
|
|
1096
|
+
end
|
|
1097
|
+
|
|
1098
|
+
class ACHPaymentUpdateResult < Lithic::Internal::Type::BaseModel
|
|
1099
|
+
# @!attribute token
|
|
1100
|
+
# Globally unique identifier for the evaluation
|
|
1101
|
+
#
|
|
1102
|
+
# @return [String]
|
|
1103
|
+
required :token, String
|
|
1104
|
+
|
|
1105
|
+
# @!attribute actions
|
|
1106
|
+
# Actions returned by the rule evaluation
|
|
1107
|
+
#
|
|
1108
|
+
# @return [Array<Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction, Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction>]
|
|
1109
|
+
required :actions,
|
|
1110
|
+
-> { Lithic::Internal::Type::ArrayOf[union: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action] }
|
|
1111
|
+
|
|
1112
|
+
# @!attribute auth_rule_token
|
|
1113
|
+
# The Auth Rule token
|
|
1114
|
+
#
|
|
1115
|
+
# @return [String]
|
|
1116
|
+
required :auth_rule_token, String
|
|
1117
|
+
|
|
1118
|
+
# @!attribute evaluation_time
|
|
1119
|
+
# Timestamp of the rule evaluation
|
|
1120
|
+
#
|
|
1121
|
+
# @return [Time]
|
|
1122
|
+
required :evaluation_time, Time
|
|
1123
|
+
|
|
1124
|
+
# @!attribute event_stream
|
|
1125
|
+
# The event stream during which the rule was evaluated
|
|
1126
|
+
#
|
|
1127
|
+
# @return [Symbol, :ACH_PAYMENT_UPDATE]
|
|
1128
|
+
required :event_stream, const: :ACH_PAYMENT_UPDATE
|
|
1129
|
+
|
|
1130
|
+
# @!attribute event_token
|
|
1131
|
+
# Token of the event that triggered the evaluation
|
|
1132
|
+
#
|
|
1133
|
+
# @return [String]
|
|
1134
|
+
required :event_token, String
|
|
1135
|
+
|
|
1136
|
+
# @!attribute mode
|
|
1137
|
+
# The state of the Auth Rule
|
|
1138
|
+
#
|
|
1139
|
+
# @return [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Mode]
|
|
1140
|
+
required :mode,
|
|
1141
|
+
enum: -> { Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Mode }
|
|
1142
|
+
|
|
1143
|
+
# @!attribute rule_version
|
|
1144
|
+
# Version of the rule that was evaluated
|
|
1145
|
+
#
|
|
1146
|
+
# @return [Integer]
|
|
1147
|
+
required :rule_version, Integer
|
|
1148
|
+
|
|
1149
|
+
# @!attribute transaction_token
|
|
1150
|
+
# The token of the transaction that triggered the rule evaluation
|
|
1151
|
+
#
|
|
1152
|
+
# @return [String, nil]
|
|
1153
|
+
required :transaction_token, String, nil?: true
|
|
1154
|
+
|
|
1155
|
+
# @!method initialize(token:, actions:, auth_rule_token:, evaluation_time:, event_token:, mode:, rule_version:, transaction_token:, event_stream: :ACH_PAYMENT_UPDATE)
|
|
1156
|
+
# @param token [String] Globally unique identifier for the evaluation
|
|
1157
|
+
#
|
|
1158
|
+
# @param actions [Array<Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction, Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction>] Actions returned by the rule evaluation
|
|
1159
|
+
#
|
|
1160
|
+
# @param auth_rule_token [String] The Auth Rule token
|
|
1161
|
+
#
|
|
1162
|
+
# @param evaluation_time [Time] Timestamp of the rule evaluation
|
|
1163
|
+
#
|
|
1164
|
+
# @param event_token [String] Token of the event that triggered the evaluation
|
|
1165
|
+
#
|
|
1166
|
+
# @param mode [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Mode] The state of the Auth Rule
|
|
1167
|
+
#
|
|
1168
|
+
# @param rule_version [Integer] Version of the rule that was evaluated
|
|
1169
|
+
#
|
|
1170
|
+
# @param transaction_token [String, nil] The token of the transaction that triggered the rule evaluation
|
|
1171
|
+
#
|
|
1172
|
+
# @param event_stream [Symbol, :ACH_PAYMENT_UPDATE] The event stream during which the rule was evaluated
|
|
1173
|
+
|
|
1174
|
+
module Action
|
|
1175
|
+
extend Lithic::Internal::Type::Union
|
|
1176
|
+
|
|
1177
|
+
variant -> { Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction }
|
|
1178
|
+
|
|
1179
|
+
variant -> { Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction }
|
|
1180
|
+
|
|
1181
|
+
class TagAction < Lithic::Internal::Type::BaseModel
|
|
1182
|
+
# @!attribute key
|
|
1183
|
+
# The key of the tag to apply to the payment
|
|
1184
|
+
#
|
|
1185
|
+
# @return [String]
|
|
1186
|
+
required :key, String
|
|
1187
|
+
|
|
1188
|
+
# @!attribute type
|
|
1189
|
+
# Tag the payment with key-value metadata
|
|
1190
|
+
#
|
|
1191
|
+
# @return [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction::Type]
|
|
1192
|
+
required :type,
|
|
1193
|
+
enum: -> { Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction::Type }
|
|
1194
|
+
|
|
1195
|
+
# @!attribute value
|
|
1196
|
+
# The value of the tag to apply to the payment
|
|
1197
|
+
#
|
|
1198
|
+
# @return [String]
|
|
1199
|
+
required :value, String
|
|
1200
|
+
|
|
1201
|
+
# @!attribute explanation
|
|
1202
|
+
# Optional explanation for why this action was taken
|
|
1203
|
+
#
|
|
1204
|
+
# @return [String, nil]
|
|
1205
|
+
optional :explanation, String
|
|
1206
|
+
|
|
1207
|
+
# @!method initialize(key:, type:, value:, explanation: nil)
|
|
1208
|
+
# @param key [String] The key of the tag to apply to the payment
|
|
1209
|
+
#
|
|
1210
|
+
# @param type [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction::Type] Tag the payment with key-value metadata
|
|
1211
|
+
#
|
|
1212
|
+
# @param value [String] The value of the tag to apply to the payment
|
|
1213
|
+
#
|
|
1214
|
+
# @param explanation [String] Optional explanation for why this action was taken
|
|
1215
|
+
|
|
1216
|
+
# Tag the payment with key-value metadata
|
|
1217
|
+
#
|
|
1218
|
+
# @see Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction#type
|
|
1219
|
+
module Type
|
|
1220
|
+
extend Lithic::Internal::Type::Enum
|
|
1221
|
+
|
|
1222
|
+
TAG = :TAG
|
|
1223
|
+
|
|
1224
|
+
# @!method self.values
|
|
1225
|
+
# @return [Array<Symbol>]
|
|
1226
|
+
end
|
|
1227
|
+
end
|
|
1228
|
+
|
|
1229
|
+
class CreateCaseAction < Lithic::Internal::Type::BaseModel
|
|
1230
|
+
# @!attribute queue_token
|
|
1231
|
+
# The token of the queue to create the case in
|
|
1232
|
+
#
|
|
1233
|
+
# @return [String]
|
|
1234
|
+
required :queue_token, String
|
|
1235
|
+
|
|
1236
|
+
# @!attribute scope
|
|
1237
|
+
# The scope of the case to create
|
|
1238
|
+
#
|
|
1239
|
+
# @return [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Scope]
|
|
1240
|
+
required :scope,
|
|
1241
|
+
enum: -> { Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Scope }
|
|
1242
|
+
|
|
1243
|
+
# @!attribute type
|
|
1244
|
+
# Create a case for the payment
|
|
1245
|
+
#
|
|
1246
|
+
# @return [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Type]
|
|
1247
|
+
required :type,
|
|
1248
|
+
enum: -> { Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Type }
|
|
1249
|
+
|
|
1250
|
+
# @!attribute explanation
|
|
1251
|
+
# Optional explanation for why this action was taken
|
|
1252
|
+
#
|
|
1253
|
+
# @return [String, nil]
|
|
1254
|
+
optional :explanation, String
|
|
1255
|
+
|
|
1256
|
+
# @!method initialize(queue_token:, scope:, type:, explanation: nil)
|
|
1257
|
+
# @param queue_token [String] The token of the queue to create the case in
|
|
1258
|
+
#
|
|
1259
|
+
# @param scope [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Scope] The scope of the case to create
|
|
1260
|
+
#
|
|
1261
|
+
# @param type [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Type] Create a case for the payment
|
|
1262
|
+
#
|
|
1263
|
+
# @param explanation [String] Optional explanation for why this action was taken
|
|
1264
|
+
|
|
1265
|
+
# The scope of the case to create
|
|
1266
|
+
#
|
|
1267
|
+
# @see Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction#scope
|
|
1268
|
+
module Scope
|
|
1269
|
+
extend Lithic::Internal::Type::Enum
|
|
1270
|
+
|
|
1271
|
+
FINANCIAL_ACCOUNT = :FINANCIAL_ACCOUNT
|
|
1272
|
+
|
|
1273
|
+
# @!method self.values
|
|
1274
|
+
# @return [Array<Symbol>]
|
|
1275
|
+
end
|
|
1276
|
+
|
|
1277
|
+
# Create a case for the payment
|
|
1278
|
+
#
|
|
1279
|
+
# @see Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction#type
|
|
1280
|
+
module Type
|
|
1281
|
+
extend Lithic::Internal::Type::Enum
|
|
1282
|
+
|
|
1283
|
+
CREATE_CASE = :CREATE_CASE
|
|
1284
|
+
|
|
1285
|
+
# @!method self.values
|
|
1286
|
+
# @return [Array<Symbol>]
|
|
1287
|
+
end
|
|
1288
|
+
end
|
|
1289
|
+
|
|
1290
|
+
# @!method self.variants
|
|
1291
|
+
# @return [Array(Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction, Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction)]
|
|
1292
|
+
end
|
|
1293
|
+
|
|
1294
|
+
# The state of the Auth Rule
|
|
1295
|
+
#
|
|
1296
|
+
# @see Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult#mode
|
|
1297
|
+
module Mode
|
|
1298
|
+
extend Lithic::Internal::Type::Enum
|
|
1299
|
+
|
|
1300
|
+
ACTIVE = :ACTIVE
|
|
1301
|
+
INACTIVE = :INACTIVE
|
|
1302
|
+
|
|
1303
|
+
# @!method self.values
|
|
1304
|
+
# @return [Array<Symbol>]
|
|
1305
|
+
end
|
|
1306
|
+
end
|
|
1307
|
+
|
|
883
1308
|
# @!method self.variants
|
|
884
|
-
# @return [Array(Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult, Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult, Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult, Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult)]
|
|
1309
|
+
# @return [Array(Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult, Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult, Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult, Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult, Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult, Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult)]
|
|
885
1310
|
end
|
|
886
1311
|
end
|
|
887
1312
|
end
|
data/lib/lithic/models/card.rb
CHANGED
|
@@ -13,7 +13,7 @@ module Lithic
|
|
|
13
13
|
# @!attribute pan
|
|
14
14
|
# Primary Account Number (PAN) (i.e. the card number). Customers must be PCI
|
|
15
15
|
# compliant to have PAN returned as a field in production. Please contact
|
|
16
|
-
# support
|
|
16
|
+
# https://support.lithic.com/ for questions.
|
|
17
17
|
#
|
|
18
18
|
# @return [String, nil]
|
|
19
19
|
optional :pan, String
|
|
@@ -110,6 +110,14 @@ module Lithic
|
|
|
110
110
|
# @return [String]
|
|
111
111
|
required :merchant_currency, String
|
|
112
112
|
|
|
113
|
+
# @!attribute name_validation
|
|
114
|
+
# Network name validation data, present when the card network requested name
|
|
115
|
+
# validation for this transaction. Contains the cardholder name provided by the
|
|
116
|
+
# network and Lithic's computed match result against KYC data on file.
|
|
117
|
+
#
|
|
118
|
+
# @return [Lithic::Models::CardAuthorization::NameValidation, nil]
|
|
119
|
+
required :name_validation, -> { Lithic::CardAuthorization::NameValidation }, nil?: true
|
|
120
|
+
|
|
113
121
|
# @!attribute service_location
|
|
114
122
|
# Where the cardholder received the service, when different from the card acceptor
|
|
115
123
|
# location. This is populated from network data elements such as Mastercard DE-122
|
|
@@ -233,7 +241,7 @@ module Lithic
|
|
|
233
241
|
# @return [Time, nil]
|
|
234
242
|
optional :ttl, Time
|
|
235
243
|
|
|
236
|
-
# @!method initialize(token:, acquirer_fee:, amount:, amounts:, authorization_amount:, avs:, card:, cardholder_currency:, cash_amount:, created:, merchant:, merchant_amount:, merchant_currency:, service_location:, settled_amount:, status:, transaction_initiator:, account_type: nil, cardholder_authentication: nil, cashback: nil, conversion_rate: nil, event_token: nil, fleet_info: nil, latest_challenge: nil, network: nil, network_risk_score: nil, network_specific_data: nil, pos: nil, token_info: nil, ttl: nil)
|
|
244
|
+
# @!method initialize(token:, acquirer_fee:, amount:, amounts:, authorization_amount:, avs:, card:, cardholder_currency:, cash_amount:, created:, merchant:, merchant_amount:, merchant_currency:, name_validation:, service_location:, settled_amount:, status:, transaction_initiator:, account_type: nil, cardholder_authentication: nil, cashback: nil, conversion_rate: nil, event_token: nil, fleet_info: nil, latest_challenge: nil, network: nil, network_risk_score: nil, network_specific_data: nil, pos: nil, token_info: nil, ttl: nil)
|
|
237
245
|
# Some parameter documentations has been truncated, see
|
|
238
246
|
# {Lithic::Models::CardAuthorization} for more details.
|
|
239
247
|
#
|
|
@@ -265,6 +273,8 @@ module Lithic
|
|
|
265
273
|
#
|
|
266
274
|
# @param merchant_currency [String] 3-character alphabetic ISO 4217 code for the local currency of the transaction.
|
|
267
275
|
#
|
|
276
|
+
# @param name_validation [Lithic::Models::CardAuthorization::NameValidation, nil] Network name validation data, present when the card network requested name valid
|
|
277
|
+
#
|
|
268
278
|
# @param service_location [Lithic::Models::CardAuthorization::ServiceLocation, nil] Where the cardholder received the service, when different from the card acceptor
|
|
269
279
|
#
|
|
270
280
|
# @param settled_amount [Integer] Deprecated, use `amounts`. Amount (in cents) of the transaction that has been se
|
|
@@ -623,6 +633,94 @@ module Lithic
|
|
|
623
633
|
# @param street_address [String, nil] Street address of card acceptor.
|
|
624
634
|
end
|
|
625
635
|
|
|
636
|
+
# @see Lithic::Models::CardAuthorization#name_validation
|
|
637
|
+
class NameValidation < Lithic::Internal::Type::BaseModel
|
|
638
|
+
# @!attribute name
|
|
639
|
+
# Cardholder name as provided by the card network.
|
|
640
|
+
#
|
|
641
|
+
# @return [Lithic::Models::CardAuthorization::NameValidation::Name]
|
|
642
|
+
required :name, -> { Lithic::CardAuthorization::NameValidation::Name }
|
|
643
|
+
|
|
644
|
+
# @!attribute name_on_file_match
|
|
645
|
+
# Lithic's computed match result comparing the network-provided name to the name
|
|
646
|
+
# on file.
|
|
647
|
+
#
|
|
648
|
+
# @return [Lithic::Models::CardAuthorization::NameValidation::NameOnFileMatch]
|
|
649
|
+
required :name_on_file_match, -> { Lithic::CardAuthorization::NameValidation::NameOnFileMatch }
|
|
650
|
+
|
|
651
|
+
# @!method initialize(name:, name_on_file_match:)
|
|
652
|
+
# Some parameter documentations has been truncated, see
|
|
653
|
+
# {Lithic::Models::CardAuthorization::NameValidation} for more details.
|
|
654
|
+
#
|
|
655
|
+
# Network name validation data, present when the card network requested name
|
|
656
|
+
# validation for this transaction. Contains the cardholder name provided by the
|
|
657
|
+
# network and Lithic's computed match result against KYC data on file.
|
|
658
|
+
#
|
|
659
|
+
# @param name [Lithic::Models::CardAuthorization::NameValidation::Name] Cardholder name as provided by the card network.
|
|
660
|
+
#
|
|
661
|
+
# @param name_on_file_match [Lithic::Models::CardAuthorization::NameValidation::NameOnFileMatch] Lithic's computed match result comparing the network-provided name to the name o
|
|
662
|
+
|
|
663
|
+
# @see Lithic::Models::CardAuthorization::NameValidation#name
|
|
664
|
+
class Name < Lithic::Internal::Type::BaseModel
|
|
665
|
+
# @!attribute first
|
|
666
|
+
# First name
|
|
667
|
+
#
|
|
668
|
+
# @return [String]
|
|
669
|
+
required :first, String
|
|
670
|
+
|
|
671
|
+
# @!attribute last
|
|
672
|
+
# Last name
|
|
673
|
+
#
|
|
674
|
+
# @return [String]
|
|
675
|
+
required :last, String
|
|
676
|
+
|
|
677
|
+
# @!attribute middle
|
|
678
|
+
# Middle name
|
|
679
|
+
#
|
|
680
|
+
# @return [String, nil]
|
|
681
|
+
required :middle, String, nil?: true
|
|
682
|
+
|
|
683
|
+
# @!method initialize(first:, last:, middle:)
|
|
684
|
+
# Cardholder name as provided by the card network.
|
|
685
|
+
#
|
|
686
|
+
# @param first [String] First name
|
|
687
|
+
#
|
|
688
|
+
# @param last [String] Last name
|
|
689
|
+
#
|
|
690
|
+
# @param middle [String, nil] Middle name
|
|
691
|
+
end
|
|
692
|
+
|
|
693
|
+
# @see Lithic::Models::CardAuthorization::NameValidation#name_on_file_match
|
|
694
|
+
class NameOnFileMatch < Lithic::Internal::Type::BaseModel
|
|
695
|
+
# @!attribute full_name
|
|
696
|
+
# Overall name match result.
|
|
697
|
+
#
|
|
698
|
+
# @return [Symbol, Lithic::Models::CardAuthorization::NameValidation::NameOnFileMatch::FullName]
|
|
699
|
+
required :full_name, enum: -> { Lithic::CardAuthorization::NameValidation::NameOnFileMatch::FullName }
|
|
700
|
+
|
|
701
|
+
# @!method initialize(full_name:)
|
|
702
|
+
# Lithic's computed match result comparing the network-provided name to the name
|
|
703
|
+
# on file.
|
|
704
|
+
#
|
|
705
|
+
# @param full_name [Symbol, Lithic::Models::CardAuthorization::NameValidation::NameOnFileMatch::FullName] Overall name match result.
|
|
706
|
+
|
|
707
|
+
# Overall name match result.
|
|
708
|
+
#
|
|
709
|
+
# @see Lithic::Models::CardAuthorization::NameValidation::NameOnFileMatch#full_name
|
|
710
|
+
module FullName
|
|
711
|
+
extend Lithic::Internal::Type::Enum
|
|
712
|
+
|
|
713
|
+
MATCH = :MATCH
|
|
714
|
+
PARTIAL_MATCH = :PARTIAL_MATCH
|
|
715
|
+
NO_MATCH = :NO_MATCH
|
|
716
|
+
UNVERIFIED = :UNVERIFIED
|
|
717
|
+
|
|
718
|
+
# @!method self.values
|
|
719
|
+
# @return [Array<Symbol>]
|
|
720
|
+
end
|
|
721
|
+
end
|
|
722
|
+
end
|
|
723
|
+
|
|
626
724
|
# @see Lithic::Models::CardAuthorization#service_location
|
|
627
725
|
class ServiceLocation < Lithic::Internal::Type::BaseModel
|
|
628
726
|
# @!attribute city
|
|
@@ -793,6 +891,19 @@ module Lithic
|
|
|
793
891
|
|
|
794
892
|
# @see Lithic::Models::CardAuthorization#latest_challenge
|
|
795
893
|
class LatestChallenge < Lithic::Internal::Type::BaseModel
|
|
894
|
+
# @!attribute completed_at
|
|
895
|
+
# The date and time when the Authorization Challenge was completed in UTC. Filled
|
|
896
|
+
# only if the challenge has been completed.
|
|
897
|
+
#
|
|
898
|
+
# @return [Time, nil]
|
|
899
|
+
required :completed_at, Time, nil?: true
|
|
900
|
+
|
|
901
|
+
# @!attribute created
|
|
902
|
+
# The date and time when the Authorization Challenge was created in UTC
|
|
903
|
+
#
|
|
904
|
+
# @return [Time]
|
|
905
|
+
required :created, Time
|
|
906
|
+
|
|
796
907
|
# @!attribute method_
|
|
797
908
|
# The method used to deliver the challenge to the cardholder
|
|
798
909
|
#
|
|
@@ -821,27 +932,22 @@ module Lithic
|
|
|
821
932
|
# @return [Symbol, Lithic::Models::CardAuthorization::LatestChallenge::Status]
|
|
822
933
|
required :status, enum: -> { Lithic::CardAuthorization::LatestChallenge::Status }
|
|
823
934
|
|
|
824
|
-
# @!
|
|
825
|
-
# The date and time when the Authorization Challenge was completed in UTC. Present
|
|
826
|
-
# only if the status is `COMPLETED`.
|
|
827
|
-
#
|
|
828
|
-
# @return [Time, nil]
|
|
829
|
-
optional :completed_at, Time
|
|
830
|
-
|
|
831
|
-
# @!method initialize(method_:, phone_number:, status:, completed_at: nil)
|
|
935
|
+
# @!method initialize(completed_at:, created:, method_:, phone_number:, status:)
|
|
832
936
|
# Some parameter documentations has been truncated, see
|
|
833
937
|
# {Lithic::Models::CardAuthorization::LatestChallenge} for more details.
|
|
834
938
|
#
|
|
835
939
|
# The latest Authorization Challenge that was issued to the cardholder for this
|
|
836
940
|
# merchant.
|
|
837
941
|
#
|
|
942
|
+
# @param completed_at [Time, nil] The date and time when the Authorization Challenge was completed in UTC. Filled
|
|
943
|
+
#
|
|
944
|
+
# @param created [Time] The date and time when the Authorization Challenge was created in UTC
|
|
945
|
+
#
|
|
838
946
|
# @param method_ [Symbol, Lithic::Models::CardAuthorization::LatestChallenge::Method] The method used to deliver the challenge to the cardholder
|
|
839
947
|
#
|
|
840
948
|
# @param phone_number [String, nil] The phone number used for sending the Authorization Challenge. Present only when
|
|
841
949
|
#
|
|
842
950
|
# @param status [Symbol, Lithic::Models::CardAuthorization::LatestChallenge::Status] The status of the Authorization Challenge
|
|
843
|
-
#
|
|
844
|
-
# @param completed_at [Time] The date and time when the Authorization Challenge was completed in UTC. Present
|
|
845
951
|
|
|
846
952
|
# The method used to deliver the challenge to the cardholder
|
|
847
953
|
#
|
|
@@ -126,13 +126,19 @@ module Lithic
|
|
|
126
126
|
# @return [Lithic::Models::StatementTotals]
|
|
127
127
|
required :ytd_totals, -> { Lithic::StatementTotals }
|
|
128
128
|
|
|
129
|
+
# @!attribute day_of_period
|
|
130
|
+
# Day of the billing period that this loan tape covers, starting at 1
|
|
131
|
+
#
|
|
132
|
+
# @return [Integer, nil]
|
|
133
|
+
optional :day_of_period, Integer, nil?: true
|
|
134
|
+
|
|
129
135
|
# @!attribute tier
|
|
130
136
|
# Interest tier to which this account belongs to
|
|
131
137
|
#
|
|
132
138
|
# @return [String, nil]
|
|
133
139
|
optional :tier, String, nil?: true
|
|
134
140
|
|
|
135
|
-
# @!method initialize(token:, account_standing:, available_credit:, balances:, created:, credit_limit:, credit_product_token:, date:, day_totals:, ending_balance:, excess_credits:, financial_account_token:, interest_details:, minimum_payment_balance:, payment_allocation:, period_totals:, previous_statement_balance:, starting_balance:, updated:, version:, ytd_totals:, tier: nil)
|
|
141
|
+
# @!method initialize(token:, account_standing:, available_credit:, balances:, created:, credit_limit:, credit_product_token:, date:, day_totals:, ending_balance:, excess_credits:, financial_account_token:, interest_details:, minimum_payment_balance:, payment_allocation:, period_totals:, previous_statement_balance:, starting_balance:, updated:, version:, ytd_totals:, day_of_period: nil, tier: nil)
|
|
136
142
|
# Some parameter documentations has been truncated, see
|
|
137
143
|
# {Lithic::Models::FinancialAccounts::LoanTape} for more details.
|
|
138
144
|
#
|
|
@@ -178,6 +184,8 @@ module Lithic
|
|
|
178
184
|
#
|
|
179
185
|
# @param ytd_totals [Lithic::Models::StatementTotals]
|
|
180
186
|
#
|
|
187
|
+
# @param day_of_period [Integer, nil] Day of the billing period that this loan tape covers, starting at 1
|
|
188
|
+
#
|
|
181
189
|
# @param tier [String, nil] Interest tier to which this account belongs to
|
|
182
190
|
|
|
183
191
|
# @see Lithic::Models::FinancialAccounts::LoanTape#account_standing
|