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
@@ -6,6 +6,8 @@ module Lithic
6
6
  | Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult
7
7
  | Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult
8
8
  | Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult
9
+ | Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult
10
+ | Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult
9
11
 
10
12
  module V2ListResultsResponse
11
13
  extend Lithic::Internal::Type::Union
@@ -936,6 +938,359 @@ module Lithic
936
938
  end
937
939
  end
938
940
 
941
+ type card_transaction_update_result =
942
+ {
943
+ token: String,
944
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::action],
945
+ auth_rule_token: String,
946
+ evaluation_time: Time,
947
+ event_stream: :CARD_TRANSACTION_UPDATE,
948
+ event_token: String,
949
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::mode,
950
+ rule_version: Integer,
951
+ transaction_token: String?
952
+ }
953
+
954
+ class CardTransactionUpdateResult < Lithic::Internal::Type::BaseModel
955
+ attr_accessor token: String
956
+
957
+ attr_accessor actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::action]
958
+
959
+ attr_accessor auth_rule_token: String
960
+
961
+ attr_accessor evaluation_time: Time
962
+
963
+ attr_accessor event_stream: :CARD_TRANSACTION_UPDATE
964
+
965
+ attr_accessor event_token: String
966
+
967
+ attr_accessor mode: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::mode
968
+
969
+ attr_accessor rule_version: Integer
970
+
971
+ attr_accessor transaction_token: String?
972
+
973
+ def initialize: (
974
+ token: String,
975
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::action],
976
+ auth_rule_token: String,
977
+ evaluation_time: Time,
978
+ event_token: String,
979
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::mode,
980
+ rule_version: Integer,
981
+ transaction_token: String?,
982
+ ?event_stream: :CARD_TRANSACTION_UPDATE
983
+ ) -> void
984
+
985
+ def to_hash: -> {
986
+ token: String,
987
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::action],
988
+ auth_rule_token: String,
989
+ evaluation_time: Time,
990
+ event_stream: :CARD_TRANSACTION_UPDATE,
991
+ event_token: String,
992
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::mode,
993
+ rule_version: Integer,
994
+ transaction_token: String?
995
+ }
996
+
997
+ type action =
998
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction
999
+ | Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction
1000
+
1001
+ module Action
1002
+ extend Lithic::Internal::Type::Union
1003
+
1004
+ type tag_action =
1005
+ {
1006
+ key: String,
1007
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction::type_,
1008
+ value: String,
1009
+ explanation: String
1010
+ }
1011
+
1012
+ class TagAction < Lithic::Internal::Type::BaseModel
1013
+ attr_accessor key: String
1014
+
1015
+ attr_accessor type: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction::type_
1016
+
1017
+ attr_accessor value: String
1018
+
1019
+ attr_reader explanation: String?
1020
+
1021
+ def explanation=: (String) -> String
1022
+
1023
+ def initialize: (
1024
+ key: String,
1025
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction::type_,
1026
+ value: String,
1027
+ ?explanation: String
1028
+ ) -> void
1029
+
1030
+ def to_hash: -> {
1031
+ key: String,
1032
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction::type_,
1033
+ value: String,
1034
+ explanation: String
1035
+ }
1036
+
1037
+ type type_ = :TAG
1038
+
1039
+ module Type
1040
+ extend Lithic::Internal::Type::Enum
1041
+
1042
+ TAG: :TAG
1043
+
1044
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction::type_]
1045
+ end
1046
+ end
1047
+
1048
+ type create_case_action =
1049
+ {
1050
+ queue_token: String,
1051
+ scope: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::scope,
1052
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::type_,
1053
+ explanation: String
1054
+ }
1055
+
1056
+ class CreateCaseAction < Lithic::Internal::Type::BaseModel
1057
+ attr_accessor queue_token: String
1058
+
1059
+ attr_accessor scope: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::scope
1060
+
1061
+ attr_accessor type: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::type_
1062
+
1063
+ attr_reader explanation: String?
1064
+
1065
+ def explanation=: (String) -> String
1066
+
1067
+ def initialize: (
1068
+ queue_token: String,
1069
+ scope: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::scope,
1070
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::type_,
1071
+ ?explanation: String
1072
+ ) -> void
1073
+
1074
+ def to_hash: -> {
1075
+ queue_token: String,
1076
+ scope: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::scope,
1077
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::type_,
1078
+ explanation: String
1079
+ }
1080
+
1081
+ type scope = :CARD | :ACCOUNT
1082
+
1083
+ module Scope
1084
+ extend Lithic::Internal::Type::Enum
1085
+
1086
+ CARD: :CARD
1087
+ ACCOUNT: :ACCOUNT
1088
+
1089
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::scope]
1090
+ end
1091
+
1092
+ type type_ = :CREATE_CASE
1093
+
1094
+ module Type
1095
+ extend Lithic::Internal::Type::Enum
1096
+
1097
+ CREATE_CASE: :CREATE_CASE
1098
+
1099
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::type_]
1100
+ end
1101
+ end
1102
+
1103
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::action]
1104
+ end
1105
+
1106
+ type mode = :ACTIVE | :INACTIVE
1107
+
1108
+ module Mode
1109
+ extend Lithic::Internal::Type::Enum
1110
+
1111
+ ACTIVE: :ACTIVE
1112
+ INACTIVE: :INACTIVE
1113
+
1114
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::mode]
1115
+ end
1116
+ end
1117
+
1118
+ type ach_payment_update_result =
1119
+ {
1120
+ token: String,
1121
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::action],
1122
+ auth_rule_token: String,
1123
+ evaluation_time: Time,
1124
+ event_stream: :ACH_PAYMENT_UPDATE,
1125
+ event_token: String,
1126
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::mode,
1127
+ rule_version: Integer,
1128
+ transaction_token: String?
1129
+ }
1130
+
1131
+ class ACHPaymentUpdateResult < Lithic::Internal::Type::BaseModel
1132
+ attr_accessor token: String
1133
+
1134
+ attr_accessor actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::action]
1135
+
1136
+ attr_accessor auth_rule_token: String
1137
+
1138
+ attr_accessor evaluation_time: Time
1139
+
1140
+ attr_accessor event_stream: :ACH_PAYMENT_UPDATE
1141
+
1142
+ attr_accessor event_token: String
1143
+
1144
+ attr_accessor mode: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::mode
1145
+
1146
+ attr_accessor rule_version: Integer
1147
+
1148
+ attr_accessor transaction_token: String?
1149
+
1150
+ def initialize: (
1151
+ token: String,
1152
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::action],
1153
+ auth_rule_token: String,
1154
+ evaluation_time: Time,
1155
+ event_token: String,
1156
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::mode,
1157
+ rule_version: Integer,
1158
+ transaction_token: String?,
1159
+ ?event_stream: :ACH_PAYMENT_UPDATE
1160
+ ) -> void
1161
+
1162
+ def to_hash: -> {
1163
+ token: String,
1164
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::action],
1165
+ auth_rule_token: String,
1166
+ evaluation_time: Time,
1167
+ event_stream: :ACH_PAYMENT_UPDATE,
1168
+ event_token: String,
1169
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::mode,
1170
+ rule_version: Integer,
1171
+ transaction_token: String?
1172
+ }
1173
+
1174
+ type action =
1175
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction
1176
+ | Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction
1177
+
1178
+ module Action
1179
+ extend Lithic::Internal::Type::Union
1180
+
1181
+ type tag_action =
1182
+ {
1183
+ key: String,
1184
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction::type_,
1185
+ value: String,
1186
+ explanation: String
1187
+ }
1188
+
1189
+ class TagAction < Lithic::Internal::Type::BaseModel
1190
+ attr_accessor key: String
1191
+
1192
+ attr_accessor type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction::type_
1193
+
1194
+ attr_accessor value: String
1195
+
1196
+ attr_reader explanation: String?
1197
+
1198
+ def explanation=: (String) -> String
1199
+
1200
+ def initialize: (
1201
+ key: String,
1202
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction::type_,
1203
+ value: String,
1204
+ ?explanation: String
1205
+ ) -> void
1206
+
1207
+ def to_hash: -> {
1208
+ key: String,
1209
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction::type_,
1210
+ value: String,
1211
+ explanation: String
1212
+ }
1213
+
1214
+ type type_ = :TAG
1215
+
1216
+ module Type
1217
+ extend Lithic::Internal::Type::Enum
1218
+
1219
+ TAG: :TAG
1220
+
1221
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction::type_]
1222
+ end
1223
+ end
1224
+
1225
+ type create_case_action =
1226
+ {
1227
+ queue_token: String,
1228
+ scope: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::scope,
1229
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::type_,
1230
+ explanation: String
1231
+ }
1232
+
1233
+ class CreateCaseAction < Lithic::Internal::Type::BaseModel
1234
+ attr_accessor queue_token: String
1235
+
1236
+ attr_accessor scope: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::scope
1237
+
1238
+ attr_accessor type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::type_
1239
+
1240
+ attr_reader explanation: String?
1241
+
1242
+ def explanation=: (String) -> String
1243
+
1244
+ def initialize: (
1245
+ queue_token: String,
1246
+ scope: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::scope,
1247
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::type_,
1248
+ ?explanation: String
1249
+ ) -> void
1250
+
1251
+ def to_hash: -> {
1252
+ queue_token: String,
1253
+ scope: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::scope,
1254
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::type_,
1255
+ explanation: String
1256
+ }
1257
+
1258
+ type scope = :FINANCIAL_ACCOUNT
1259
+
1260
+ module Scope
1261
+ extend Lithic::Internal::Type::Enum
1262
+
1263
+ FINANCIAL_ACCOUNT: :FINANCIAL_ACCOUNT
1264
+
1265
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::scope]
1266
+ end
1267
+
1268
+ type type_ = :CREATE_CASE
1269
+
1270
+ module Type
1271
+ extend Lithic::Internal::Type::Enum
1272
+
1273
+ CREATE_CASE: :CREATE_CASE
1274
+
1275
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::type_]
1276
+ end
1277
+ end
1278
+
1279
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::action]
1280
+ end
1281
+
1282
+ type mode = :ACTIVE | :INACTIVE
1283
+
1284
+ module Mode
1285
+ extend Lithic::Internal::Type::Enum
1286
+
1287
+ ACTIVE: :ACTIVE
1288
+ INACTIVE: :INACTIVE
1289
+
1290
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::mode]
1291
+ end
1292
+ end
1293
+
939
1294
  def self?.variants: -> ::Array[Lithic::Models::AuthRules::v2_list_results_response]
940
1295
  end
941
1296
  end
@@ -0,0 +1,169 @@
1
+ module Lithic
2
+ module Models
3
+ type claim_created_webhook_event =
4
+ {
5
+ token: String,
6
+ account_holder_token: String?,
7
+ account_token: String?,
8
+ card_tokens: ::Array[String],
9
+ created: Time,
10
+ disputed_transactions: ::Array[Lithic::ClaimCreatedWebhookEvent::DisputedTransaction],
11
+ event_type: :"claim.created",
12
+ outstanding_requirements: ::Array[Lithic::Models::ClaimCreatedWebhookEvent::outstanding_requirement],
13
+ reason: Lithic::Models::ClaimCreatedWebhookEvent::reason,
14
+ status: Lithic::Models::ClaimCreatedWebhookEvent::status,
15
+ submitted: Time?,
16
+ updated: Time
17
+ }
18
+
19
+ class ClaimCreatedWebhookEvent < Lithic::Internal::Type::BaseModel
20
+ attr_accessor token: String
21
+
22
+ attr_accessor account_holder_token: String?
23
+
24
+ attr_accessor account_token: String?
25
+
26
+ attr_accessor card_tokens: ::Array[String]
27
+
28
+ attr_accessor created: Time
29
+
30
+ attr_accessor disputed_transactions: ::Array[Lithic::ClaimCreatedWebhookEvent::DisputedTransaction]
31
+
32
+ attr_accessor event_type: :"claim.created"
33
+
34
+ attr_accessor outstanding_requirements: ::Array[Lithic::Models::ClaimCreatedWebhookEvent::outstanding_requirement]
35
+
36
+ attr_accessor reason: Lithic::Models::ClaimCreatedWebhookEvent::reason
37
+
38
+ attr_accessor status: Lithic::Models::ClaimCreatedWebhookEvent::status
39
+
40
+ attr_accessor submitted: Time?
41
+
42
+ attr_accessor updated: Time
43
+
44
+ def initialize: (
45
+ token: String,
46
+ account_holder_token: String?,
47
+ account_token: String?,
48
+ card_tokens: ::Array[String],
49
+ created: Time,
50
+ disputed_transactions: ::Array[Lithic::ClaimCreatedWebhookEvent::DisputedTransaction],
51
+ outstanding_requirements: ::Array[Lithic::Models::ClaimCreatedWebhookEvent::outstanding_requirement],
52
+ reason: Lithic::Models::ClaimCreatedWebhookEvent::reason,
53
+ status: Lithic::Models::ClaimCreatedWebhookEvent::status,
54
+ submitted: Time?,
55
+ updated: Time,
56
+ ?event_type: :"claim.created"
57
+ ) -> void
58
+
59
+ def to_hash: -> {
60
+ token: String,
61
+ account_holder_token: String?,
62
+ account_token: String?,
63
+ card_tokens: ::Array[String],
64
+ created: Time,
65
+ disputed_transactions: ::Array[Lithic::ClaimCreatedWebhookEvent::DisputedTransaction],
66
+ event_type: :"claim.created",
67
+ outstanding_requirements: ::Array[Lithic::Models::ClaimCreatedWebhookEvent::outstanding_requirement],
68
+ reason: Lithic::Models::ClaimCreatedWebhookEvent::reason,
69
+ status: Lithic::Models::ClaimCreatedWebhookEvent::status,
70
+ submitted: Time?,
71
+ updated: Time
72
+ }
73
+
74
+ type disputed_transaction =
75
+ { event_tokens: ::Array[String], transaction_token: String }
76
+
77
+ class DisputedTransaction < Lithic::Internal::Type::BaseModel
78
+ attr_accessor event_tokens: ::Array[String]
79
+
80
+ attr_accessor transaction_token: String
81
+
82
+ def initialize: (
83
+ event_tokens: ::Array[String],
84
+ transaction_token: String
85
+ ) -> void
86
+
87
+ def to_hash: -> {
88
+ event_tokens: ::Array[String],
89
+ transaction_token: String
90
+ }
91
+ end
92
+
93
+ type outstanding_requirement = :QUESTIONNAIRE | :DOCUMENTS
94
+
95
+ module OutstandingRequirement
96
+ extend Lithic::Internal::Type::Enum
97
+
98
+ QUESTIONNAIRE: :QUESTIONNAIRE
99
+ DOCUMENTS: :DOCUMENTS
100
+
101
+ def self?.values: -> ::Array[Lithic::Models::ClaimCreatedWebhookEvent::outstanding_requirement]
102
+ end
103
+
104
+ type reason =
105
+ :CARD_NOT_PRESENT
106
+ | :CARD_LOST
107
+ | :CARD_STOLEN
108
+ | :CARD_NEVER_RECEIVED
109
+ | :COUNTERFEIT
110
+ | :ACCOUNT_TAKEOVER
111
+ | :PRODUCT_NOT_RECEIVED
112
+ | :NOT_AS_DESCRIBED
113
+ | :CREDIT_NOT_PROCESSED
114
+ | :CANCELLED_RECURRING
115
+ | :PAID_BY_OTHER_MEANS
116
+ | :DUPLICATE_CHARGE
117
+ | :LATE_PRESENTMENT
118
+ | :INCORRECT_TRANSACTION_CODE
119
+ | :NO_AUTHORIZATION
120
+ | :DECLINED
121
+ | :INCORRECT_AMOUNT
122
+ | :ATM_CASH_NOT_DISPENSED
123
+ | :ATM_DEPOSIT_WRONG_AMOUNT
124
+ | :ATM_DEPOSIT_MISSING
125
+
126
+ module Reason
127
+ extend Lithic::Internal::Type::Enum
128
+
129
+ CARD_NOT_PRESENT: :CARD_NOT_PRESENT
130
+ CARD_LOST: :CARD_LOST
131
+ CARD_STOLEN: :CARD_STOLEN
132
+ CARD_NEVER_RECEIVED: :CARD_NEVER_RECEIVED
133
+ COUNTERFEIT: :COUNTERFEIT
134
+ ACCOUNT_TAKEOVER: :ACCOUNT_TAKEOVER
135
+ PRODUCT_NOT_RECEIVED: :PRODUCT_NOT_RECEIVED
136
+ NOT_AS_DESCRIBED: :NOT_AS_DESCRIBED
137
+ CREDIT_NOT_PROCESSED: :CREDIT_NOT_PROCESSED
138
+ CANCELLED_RECURRING: :CANCELLED_RECURRING
139
+ PAID_BY_OTHER_MEANS: :PAID_BY_OTHER_MEANS
140
+ DUPLICATE_CHARGE: :DUPLICATE_CHARGE
141
+ LATE_PRESENTMENT: :LATE_PRESENTMENT
142
+ INCORRECT_TRANSACTION_CODE: :INCORRECT_TRANSACTION_CODE
143
+ NO_AUTHORIZATION: :NO_AUTHORIZATION
144
+ DECLINED: :DECLINED
145
+ INCORRECT_AMOUNT: :INCORRECT_AMOUNT
146
+ ATM_CASH_NOT_DISPENSED: :ATM_CASH_NOT_DISPENSED
147
+ ATM_DEPOSIT_WRONG_AMOUNT: :ATM_DEPOSIT_WRONG_AMOUNT
148
+ ATM_DEPOSIT_MISSING: :ATM_DEPOSIT_MISSING
149
+
150
+ def self?.values: -> ::Array[Lithic::Models::ClaimCreatedWebhookEvent::reason]
151
+ end
152
+
153
+ type status =
154
+ :INITIALIZING | :AWAITING_INFO | :SUBMITTED | :RESOLVED | :ABANDONED
155
+
156
+ module Status
157
+ extend Lithic::Internal::Type::Enum
158
+
159
+ INITIALIZING: :INITIALIZING
160
+ AWAITING_INFO: :AWAITING_INFO
161
+ SUBMITTED: :SUBMITTED
162
+ RESOLVED: :RESOLVED
163
+ ABANDONED: :ABANDONED
164
+
165
+ def self?.values: -> ::Array[Lithic::Models::ClaimCreatedWebhookEvent::status]
166
+ end
167
+ end
168
+ end
169
+ end
@@ -0,0 +1,131 @@
1
+ module Lithic
2
+ module Models
3
+ type claim_document_accepted_webhook_event =
4
+ {
5
+ token: String,
6
+ created: Time,
7
+ download_url: String?,
8
+ download_url_expires_at: Time?,
9
+ event_type: :"claim_document.accepted",
10
+ failure_reason: Lithic::Models::ClaimDocumentAcceptedWebhookEvent::failure_reason?,
11
+ name: String,
12
+ requirement_id: String?,
13
+ status: Lithic::Models::ClaimDocumentAcceptedWebhookEvent::status,
14
+ updated: Time,
15
+ upload_constraints: Lithic::ClaimDocumentAcceptedWebhookEvent::UploadConstraints?,
16
+ upload_url: String?,
17
+ upload_url_expires_at: Time?
18
+ }
19
+
20
+ class ClaimDocumentAcceptedWebhookEvent < Lithic::Internal::Type::BaseModel
21
+ attr_accessor token: String
22
+
23
+ attr_accessor created: Time
24
+
25
+ attr_accessor download_url: String?
26
+
27
+ attr_accessor download_url_expires_at: Time?
28
+
29
+ attr_accessor event_type: :"claim_document.accepted"
30
+
31
+ attr_accessor failure_reason: Lithic::Models::ClaimDocumentAcceptedWebhookEvent::failure_reason?
32
+
33
+ attr_accessor name: String
34
+
35
+ attr_accessor requirement_id: String?
36
+
37
+ attr_accessor status: Lithic::Models::ClaimDocumentAcceptedWebhookEvent::status
38
+
39
+ attr_accessor updated: Time
40
+
41
+ attr_accessor upload_constraints: Lithic::ClaimDocumentAcceptedWebhookEvent::UploadConstraints?
42
+
43
+ attr_accessor upload_url: String?
44
+
45
+ attr_accessor upload_url_expires_at: Time?
46
+
47
+ def initialize: (
48
+ token: String,
49
+ created: Time,
50
+ download_url: String?,
51
+ download_url_expires_at: Time?,
52
+ failure_reason: Lithic::Models::ClaimDocumentAcceptedWebhookEvent::failure_reason?,
53
+ name: String,
54
+ requirement_id: String?,
55
+ status: Lithic::Models::ClaimDocumentAcceptedWebhookEvent::status,
56
+ updated: Time,
57
+ upload_constraints: Lithic::ClaimDocumentAcceptedWebhookEvent::UploadConstraints?,
58
+ upload_url: String?,
59
+ upload_url_expires_at: Time?,
60
+ ?event_type: :"claim_document.accepted"
61
+ ) -> void
62
+
63
+ def to_hash: -> {
64
+ token: String,
65
+ created: Time,
66
+ download_url: String?,
67
+ download_url_expires_at: Time?,
68
+ event_type: :"claim_document.accepted",
69
+ failure_reason: Lithic::Models::ClaimDocumentAcceptedWebhookEvent::failure_reason?,
70
+ name: String,
71
+ requirement_id: String?,
72
+ status: Lithic::Models::ClaimDocumentAcceptedWebhookEvent::status,
73
+ updated: Time,
74
+ upload_constraints: Lithic::ClaimDocumentAcceptedWebhookEvent::UploadConstraints?,
75
+ upload_url: String?,
76
+ upload_url_expires_at: Time?
77
+ }
78
+
79
+ type failure_reason =
80
+ :INVALID_MIME_TYPE
81
+ | :FILE_TOO_LARGE
82
+ | :FILE_EMPTY
83
+ | :CORRUPT_FILE
84
+ | :OTHER
85
+
86
+ module FailureReason
87
+ extend Lithic::Internal::Type::Enum
88
+
89
+ INVALID_MIME_TYPE: :INVALID_MIME_TYPE
90
+ FILE_TOO_LARGE: :FILE_TOO_LARGE
91
+ FILE_EMPTY: :FILE_EMPTY
92
+ CORRUPT_FILE: :CORRUPT_FILE
93
+ OTHER: :OTHER
94
+
95
+ def self?.values: -> ::Array[Lithic::Models::ClaimDocumentAcceptedWebhookEvent::failure_reason]
96
+ end
97
+
98
+ type status = :PENDING | :VALIDATING | :ACCEPTED | :REJECTED
99
+
100
+ module Status
101
+ extend Lithic::Internal::Type::Enum
102
+
103
+ PENDING: :PENDING
104
+ VALIDATING: :VALIDATING
105
+ ACCEPTED: :ACCEPTED
106
+ REJECTED: :REJECTED
107
+
108
+ def self?.values: -> ::Array[Lithic::Models::ClaimDocumentAcceptedWebhookEvent::status]
109
+ end
110
+
111
+ type upload_constraints =
112
+ { accepted_mime_types: ::Array[String], max_size_bytes: Integer? }
113
+
114
+ class UploadConstraints < Lithic::Internal::Type::BaseModel
115
+ attr_accessor accepted_mime_types: ::Array[String]
116
+
117
+ attr_accessor max_size_bytes: Integer?
118
+
119
+ def initialize: (
120
+ accepted_mime_types: ::Array[String],
121
+ max_size_bytes: Integer?
122
+ ) -> void
123
+
124
+ def to_hash: -> {
125
+ accepted_mime_types: ::Array[String],
126
+ max_size_bytes: Integer?
127
+ }
128
+ end
129
+ end
130
+ end
131
+ end