lithic 0.16.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 +9 -0
- data/README.md +1 -1
- data/lib/lithic/models/auth_rules/ach_payment_update_action.rb +108 -0
- data/lib/lithic/models/auth_rules/auth_rule.rb +18 -14
- 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/event_stream.rb +1 -0
- data/lib/lithic/models/auth_rules/rule_feature.rb +26 -4
- data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
- data/lib/lithic/models/auth_rules/v2_create_params.rb +39 -33
- 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/resources/auth_rules/v2.rb +2 -2
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +2 -0
- data/rbi/lithic/models/auth_rules/ach_payment_update_action.rbi +237 -0
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +16 -12
- 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/event_stream.rbi +5 -0
- data/rbi/lithic/models/auth_rules/rule_feature.rbi +38 -3
- data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +3 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +48 -36
- 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/resources/auth_rules/v2.rbi +1 -0
- 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/event_stream.rbs +2 -0
- data/sig/lithic/models/auth_rules/rule_feature.rbs +15 -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
- metadata +8 -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
|
|
@@ -144,7 +144,7 @@ module Lithic
|
|
|
144
144
|
#
|
|
145
145
|
# @param auth_rule_token [String]
|
|
146
146
|
#
|
|
147
|
-
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters, nil] Parameters for the Auth Rule
|
|
147
|
+
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters, nil] Parameters for the Auth Rule
|
|
148
148
|
#
|
|
149
149
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
150
150
|
#
|
|
@@ -193,7 +193,7 @@ module Lithic
|
|
|
193
193
|
#
|
|
194
194
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
195
195
|
#
|
|
196
|
-
# @return [Lithic::Internal::CursorPage<Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult, Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult, Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult, Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult>]
|
|
196
|
+
# @return [Lithic::Internal::CursorPage<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>]
|
|
197
197
|
#
|
|
198
198
|
# @see Lithic::Models::AuthRules::V2ListResultsParams
|
|
199
199
|
def list_results(params = {})
|
data/lib/lithic/version.rb
CHANGED
data/lib/lithic.rb
CHANGED
|
@@ -117,6 +117,7 @@ require_relative "lithic/models/account_update_params"
|
|
|
117
117
|
require_relative "lithic/models/address"
|
|
118
118
|
require_relative "lithic/models/address_update"
|
|
119
119
|
require_relative "lithic/models/api_status"
|
|
120
|
+
require_relative "lithic/models/auth_rules/ach_payment_update_action"
|
|
120
121
|
require_relative "lithic/models/auth_rules/auth_rule"
|
|
121
122
|
require_relative "lithic/models/auth_rules/auth_rule_condition"
|
|
122
123
|
require_relative "lithic/models/auth_rules/auth_rule_version"
|
|
@@ -124,6 +125,7 @@ require_relative "lithic/models/auth_rules/backtest_stats"
|
|
|
124
125
|
require_relative "lithic/models/auth_rules/card_transaction_update_action"
|
|
125
126
|
require_relative "lithic/models/auth_rules/conditional_3ds_action_parameters"
|
|
126
127
|
require_relative "lithic/models/auth_rules/conditional_ach_action_parameters"
|
|
128
|
+
require_relative "lithic/models/auth_rules/conditional_ach_payment_update_action_parameters"
|
|
127
129
|
require_relative "lithic/models/auth_rules/conditional_attribute"
|
|
128
130
|
require_relative "lithic/models/auth_rules/conditional_authorization_action_parameters"
|
|
129
131
|
require_relative "lithic/models/auth_rules/conditional_authorization_adjustment_parameters"
|