lithic 0.16.0 → 0.18.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.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/models/auth_rules/ach_payment_update_action.rb +108 -0
  5. data/lib/lithic/models/auth_rules/auth_rule.rb +18 -14
  6. data/lib/lithic/models/auth_rules/auth_rule_version.rb +5 -3
  7. data/lib/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rb +142 -0
  8. data/lib/lithic/models/auth_rules/event_stream.rb +1 -0
  9. data/lib/lithic/models/auth_rules/rule_feature.rb +316 -5
  10. data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
  11. data/lib/lithic/models/auth_rules/v2_create_params.rb +39 -33
  12. data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
  13. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +426 -1
  14. data/lib/lithic/models/claim_created_webhook_event.rb +190 -0
  15. data/lib/lithic/models/claim_document_accepted_webhook_event.rb +175 -0
  16. data/lib/lithic/models/claim_document_rejected_webhook_event.rb +175 -0
  17. data/lib/lithic/models/claim_document_uploaded_webhook_event.rb +175 -0
  18. data/lib/lithic/models/claim_updated_webhook_event.rb +190 -0
  19. data/lib/lithic/models/event.rb +23 -0
  20. data/lib/lithic/models/event_list_params.rb +14 -0
  21. data/lib/lithic/models/event_subscription.rb +14 -0
  22. data/lib/lithic/models/events/subscription_create_params.rb +14 -0
  23. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +5 -0
  24. data/lib/lithic/models/events/subscription_update_params.rb +14 -0
  25. data/lib/lithic/models/parsed_webhook_event.rb +11 -1
  26. data/lib/lithic/models.rb +10 -0
  27. data/lib/lithic/resources/auth_rules/v2.rb +2 -2
  28. data/lib/lithic/resources/webhooks.rb +1 -1
  29. data/lib/lithic/version.rb +1 -1
  30. data/lib/lithic.rb +7 -0
  31. data/rbi/lithic/models/auth_rules/ach_payment_update_action.rbi +237 -0
  32. data/rbi/lithic/models/auth_rules/auth_rule.rbi +16 -12
  33. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +2 -0
  34. data/rbi/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rbi +298 -0
  35. data/rbi/lithic/models/auth_rules/event_stream.rbi +5 -0
  36. data/rbi/lithic/models/auth_rules/rule_feature.rbi +724 -5
  37. data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +18 -3
  38. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +48 -36
  39. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -0
  40. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +826 -1
  41. data/rbi/lithic/models/claim_created_webhook_event.rbi +386 -0
  42. data/rbi/lithic/models/claim_document_accepted_webhook_event.rbi +315 -0
  43. data/rbi/lithic/models/claim_document_rejected_webhook_event.rbi +315 -0
  44. data/rbi/lithic/models/claim_document_uploaded_webhook_event.rbi +315 -0
  45. data/rbi/lithic/models/claim_updated_webhook_event.rbi +386 -0
  46. data/rbi/lithic/models/event.rbi +46 -0
  47. data/rbi/lithic/models/event_list_params.rbi +34 -0
  48. data/rbi/lithic/models/event_subscription.rbi +34 -0
  49. data/rbi/lithic/models/events/subscription_create_params.rbi +34 -0
  50. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +25 -0
  51. data/rbi/lithic/models/events/subscription_update_params.rbi +34 -0
  52. data/rbi/lithic/models/parsed_webhook_event.rbi +5 -0
  53. data/rbi/lithic/models.rbi +13 -0
  54. data/rbi/lithic/resources/auth_rules/v2.rbi +1 -0
  55. data/rbi/lithic/resources/webhooks.rbi +5 -0
  56. data/sig/lithic/models/auth_rules/ach_payment_update_action.rbs +99 -0
  57. data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
  58. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -0
  59. data/sig/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rbs +81 -0
  60. data/sig/lithic/models/auth_rules/event_stream.rbs +2 -0
  61. data/sig/lithic/models/auth_rules/rule_feature.rbs +267 -0
  62. data/sig/lithic/models/auth_rules/v2_create_params.rbs +3 -0
  63. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
  64. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +355 -0
  65. data/sig/lithic/models/claim_created_webhook_event.rbs +169 -0
  66. data/sig/lithic/models/claim_document_accepted_webhook_event.rbs +131 -0
  67. data/sig/lithic/models/claim_document_rejected_webhook_event.rbs +131 -0
  68. data/sig/lithic/models/claim_document_uploaded_webhook_event.rbs +131 -0
  69. data/sig/lithic/models/claim_updated_webhook_event.rbs +169 -0
  70. data/sig/lithic/models/event.rbs +10 -0
  71. data/sig/lithic/models/event_list_params.rbs +10 -0
  72. data/sig/lithic/models/event_subscription.rbs +10 -0
  73. data/sig/lithic/models/events/subscription_create_params.rbs +10 -0
  74. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +10 -0
  75. data/sig/lithic/models/events/subscription_update_params.rbs +10 -0
  76. data/sig/lithic/models/parsed_webhook_event.rbs +5 -0
  77. data/sig/lithic/models.rbs +10 -0
  78. data/sig/lithic/resources/webhooks.rbs +5 -0
  79. metadata +23 -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
@@ -0,0 +1,190 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ class ClaimCreatedWebhookEvent < Lithic::Internal::Type::BaseModel
6
+ # @!attribute token
7
+ # Unique identifier for the claim, in UUID format
8
+ #
9
+ # @return [String]
10
+ required :token, String
11
+
12
+ # @!attribute account_holder_token
13
+ # Token for the account holder that filed the claim
14
+ #
15
+ # @return [String, nil]
16
+ required :account_holder_token, String, nil?: true
17
+
18
+ # @!attribute account_token
19
+ # Token for the account associated with the claim
20
+ #
21
+ # @return [String, nil]
22
+ required :account_token, String, nil?: true
23
+
24
+ # @!attribute card_tokens
25
+ # Tokens for the cards associated with the disputed transactions
26
+ #
27
+ # @return [Array<String>]
28
+ required :card_tokens, Lithic::Internal::Type::ArrayOf[String]
29
+
30
+ # @!attribute created
31
+ # When the claim was created
32
+ #
33
+ # @return [Time]
34
+ required :created, Time
35
+
36
+ # @!attribute disputed_transactions
37
+ # Transactions included in this claim
38
+ #
39
+ # @return [Array<Lithic::Models::ClaimCreatedWebhookEvent::DisputedTransaction>]
40
+ required :disputed_transactions,
41
+ -> { Lithic::Internal::Type::ArrayOf[Lithic::ClaimCreatedWebhookEvent::DisputedTransaction] }
42
+
43
+ # @!attribute event_type
44
+ # The type of event that occurred.
45
+ #
46
+ # @return [Symbol, :"claim.created"]
47
+ required :event_type, const: :"claim.created"
48
+
49
+ # @!attribute outstanding_requirements
50
+ # Requirements that must be fulfilled before the claim can be submitted
51
+ #
52
+ # @return [Array<Symbol, Lithic::Models::ClaimCreatedWebhookEvent::OutstandingRequirement>]
53
+ required :outstanding_requirements,
54
+ -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::ClaimCreatedWebhookEvent::OutstandingRequirement] }
55
+
56
+ # @!attribute reason
57
+ # Dispute reason code provided when creating the claim
58
+ #
59
+ # @return [Symbol, Lithic::Models::ClaimCreatedWebhookEvent::Reason]
60
+ required :reason, enum: -> { Lithic::ClaimCreatedWebhookEvent::Reason }
61
+
62
+ # @!attribute status
63
+ # Current lifecycle status of the claim
64
+ #
65
+ # @return [Symbol, Lithic::Models::ClaimCreatedWebhookEvent::Status]
66
+ required :status, enum: -> { Lithic::ClaimCreatedWebhookEvent::Status }
67
+
68
+ # @!attribute submitted
69
+ # When the claim was submitted. Null until the claim reaches `SUBMITTED` status
70
+ #
71
+ # @return [Time, nil]
72
+ required :submitted, Time, nil?: true
73
+
74
+ # @!attribute updated
75
+ # When the claim was last updated
76
+ #
77
+ # @return [Time]
78
+ required :updated, Time
79
+
80
+ # @!method initialize(token:, account_holder_token:, account_token:, card_tokens:, created:, disputed_transactions:, outstanding_requirements:, reason:, status:, submitted:, updated:, event_type: :"claim.created")
81
+ # @param token [String] Unique identifier for the claim, in UUID format
82
+ #
83
+ # @param account_holder_token [String, nil] Token for the account holder that filed the claim
84
+ #
85
+ # @param account_token [String, nil] Token for the account associated with the claim
86
+ #
87
+ # @param card_tokens [Array<String>] Tokens for the cards associated with the disputed transactions
88
+ #
89
+ # @param created [Time] When the claim was created
90
+ #
91
+ # @param disputed_transactions [Array<Lithic::Models::ClaimCreatedWebhookEvent::DisputedTransaction>] Transactions included in this claim
92
+ #
93
+ # @param outstanding_requirements [Array<Symbol, Lithic::Models::ClaimCreatedWebhookEvent::OutstandingRequirement>] Requirements that must be fulfilled before the claim can be submitted
94
+ #
95
+ # @param reason [Symbol, Lithic::Models::ClaimCreatedWebhookEvent::Reason] Dispute reason code provided when creating the claim
96
+ #
97
+ # @param status [Symbol, Lithic::Models::ClaimCreatedWebhookEvent::Status] Current lifecycle status of the claim
98
+ #
99
+ # @param submitted [Time, nil] When the claim was submitted. Null until the claim reaches `SUBMITTED` status
100
+ #
101
+ # @param updated [Time] When the claim was last updated
102
+ #
103
+ # @param event_type [Symbol, :"claim.created"] The type of event that occurred.
104
+
105
+ class DisputedTransaction < Lithic::Internal::Type::BaseModel
106
+ # @!attribute event_tokens
107
+ # Tokens for the specific events within the transaction being disputed. Lithic
108
+ # creates one dispute per event token
109
+ #
110
+ # @return [Array<String>]
111
+ required :event_tokens, Lithic::Internal::Type::ArrayOf[String]
112
+
113
+ # @!attribute transaction_token
114
+ # Token for the transaction being disputed, in UUID format
115
+ #
116
+ # @return [String]
117
+ required :transaction_token, String
118
+
119
+ # @!method initialize(event_tokens:, transaction_token:)
120
+ # Some parameter documentations has been truncated, see
121
+ # {Lithic::Models::ClaimCreatedWebhookEvent::DisputedTransaction} for more
122
+ # details.
123
+ #
124
+ # A transaction included in a claim, along with the specific events being
125
+ # disputed.
126
+ #
127
+ # @param event_tokens [Array<String>] Tokens for the specific events within the transaction being disputed. Lithic cre
128
+ #
129
+ # @param transaction_token [String] Token for the transaction being disputed, in UUID format
130
+ end
131
+
132
+ module OutstandingRequirement
133
+ extend Lithic::Internal::Type::Enum
134
+
135
+ QUESTIONNAIRE = :QUESTIONNAIRE
136
+ DOCUMENTS = :DOCUMENTS
137
+
138
+ # @!method self.values
139
+ # @return [Array<Symbol>]
140
+ end
141
+
142
+ # Dispute reason code provided when creating the claim
143
+ #
144
+ # @see Lithic::Models::ClaimCreatedWebhookEvent#reason
145
+ module Reason
146
+ extend Lithic::Internal::Type::Enum
147
+
148
+ CARD_NOT_PRESENT = :CARD_NOT_PRESENT
149
+ CARD_LOST = :CARD_LOST
150
+ CARD_STOLEN = :CARD_STOLEN
151
+ CARD_NEVER_RECEIVED = :CARD_NEVER_RECEIVED
152
+ COUNTERFEIT = :COUNTERFEIT
153
+ ACCOUNT_TAKEOVER = :ACCOUNT_TAKEOVER
154
+ PRODUCT_NOT_RECEIVED = :PRODUCT_NOT_RECEIVED
155
+ NOT_AS_DESCRIBED = :NOT_AS_DESCRIBED
156
+ CREDIT_NOT_PROCESSED = :CREDIT_NOT_PROCESSED
157
+ CANCELLED_RECURRING = :CANCELLED_RECURRING
158
+ PAID_BY_OTHER_MEANS = :PAID_BY_OTHER_MEANS
159
+ DUPLICATE_CHARGE = :DUPLICATE_CHARGE
160
+ LATE_PRESENTMENT = :LATE_PRESENTMENT
161
+ INCORRECT_TRANSACTION_CODE = :INCORRECT_TRANSACTION_CODE
162
+ NO_AUTHORIZATION = :NO_AUTHORIZATION
163
+ DECLINED = :DECLINED
164
+ INCORRECT_AMOUNT = :INCORRECT_AMOUNT
165
+ ATM_CASH_NOT_DISPENSED = :ATM_CASH_NOT_DISPENSED
166
+ ATM_DEPOSIT_WRONG_AMOUNT = :ATM_DEPOSIT_WRONG_AMOUNT
167
+ ATM_DEPOSIT_MISSING = :ATM_DEPOSIT_MISSING
168
+
169
+ # @!method self.values
170
+ # @return [Array<Symbol>]
171
+ end
172
+
173
+ # Current lifecycle status of the claim
174
+ #
175
+ # @see Lithic::Models::ClaimCreatedWebhookEvent#status
176
+ module Status
177
+ extend Lithic::Internal::Type::Enum
178
+
179
+ INITIALIZING = :INITIALIZING
180
+ AWAITING_INFO = :AWAITING_INFO
181
+ SUBMITTED = :SUBMITTED
182
+ RESOLVED = :RESOLVED
183
+ ABANDONED = :ABANDONED
184
+
185
+ # @!method self.values
186
+ # @return [Array<Symbol>]
187
+ end
188
+ end
189
+ end
190
+ end