lithic 0.1.0.pre.alpha.54 → 0.1.0.pre.alpha.55

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 (134) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +2 -2
  5. data/lib/lithic/models/account_holder_update_response.rb +4 -4
  6. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +252 -0
  7. data/lib/lithic/models/auth_rules/v2_create_params.rb +38 -284
  8. data/lib/lithic/models/auth_rules/v2_create_response.rb +8 -508
  9. data/lib/lithic/models/auth_rules/v2_draft_params.rb +4 -250
  10. data/lib/lithic/models/auth_rules/v2_draft_response.rb +8 -508
  11. data/lib/lithic/models/auth_rules/v2_list_response.rb +8 -508
  12. data/lib/lithic/models/auth_rules/v2_promote_response.rb +8 -508
  13. data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +4 -11
  14. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +8 -508
  15. data/lib/lithic/models/auth_rules/v2_update_response.rb +8 -508
  16. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -7
  17. data/lib/lithic/models/auth_rules/velocity_limit_period.rb +154 -0
  18. data/lib/lithic/models/book_transfer_response.rb +5 -5
  19. data/lib/lithic/models/dispute.rb +510 -242
  20. data/lib/lithic/models/dispute_create_response.rb +326 -0
  21. data/lib/lithic/models/dispute_delete_response.rb +326 -0
  22. data/lib/lithic/models/dispute_list_response.rb +326 -0
  23. data/lib/lithic/models/dispute_retrieve_response.rb +326 -0
  24. data/lib/lithic/models/dispute_update_response.rb +326 -0
  25. data/lib/lithic/models/event.rb +213 -69
  26. data/lib/lithic/models/event_list_params.rb +112 -6
  27. data/lib/lithic/models/event_subscription.rb +112 -6
  28. data/lib/lithic/models/events/subscription_create_params.rb +112 -6
  29. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +12 -6
  30. data/lib/lithic/models/events/subscription_update_params.rb +112 -6
  31. data/lib/lithic/models/financial_account.rb +1 -65
  32. data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -64
  33. data/lib/lithic/models/financial_accounts/loan_tape.rb +99 -3
  34. data/lib/lithic/models/financial_accounts/statement.rb +66 -2
  35. data/lib/lithic/models/payment.rb +9 -9
  36. data/lib/lithic/models/payment_simulate_action_params.rb +17 -1
  37. data/lib/lithic/models/tokenization.rb +189 -23
  38. data/lib/lithic/models/transaction.rb +12 -116
  39. data/lib/lithic/models/transactions/events/enhanced_data.rb +9 -9
  40. data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -5
  41. data/lib/lithic/resources/auth_rules/v2.rb +13 -56
  42. data/lib/lithic/resources/disputes.rb +10 -10
  43. data/lib/lithic/resources/payments.rb +5 -1
  44. data/lib/lithic/version.rb +1 -1
  45. data/lib/lithic.rb +7 -3
  46. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +3 -6
  47. data/rbi/lithic/models/account_holder_update_response.rbi +6 -12
  48. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +577 -0
  49. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +85 -679
  50. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +4 -1146
  51. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -575
  52. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +4 -1146
  53. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +4 -1146
  54. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +4 -1146
  55. data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +9 -22
  56. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +4 -1146
  57. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +4 -1146
  58. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +17 -29
  59. data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +223 -0
  60. data/rbi/lithic/models/book_transfer_response.rbi +14 -11
  61. data/rbi/lithic/models/dispute.rbi +942 -395
  62. data/rbi/lithic/models/dispute_create_response.rbi +599 -0
  63. data/rbi/lithic/models/dispute_delete_response.rbi +599 -0
  64. data/rbi/lithic/models/dispute_list_response.rbi +582 -0
  65. data/rbi/lithic/models/dispute_retrieve_response.rbi +601 -0
  66. data/rbi/lithic/models/dispute_update_response.rbi +599 -0
  67. data/rbi/lithic/models/event.rbi +348 -111
  68. data/rbi/lithic/models/event_list_params.rbi +155 -25
  69. data/rbi/lithic/models/event_subscription.rbi +155 -25
  70. data/rbi/lithic/models/events/subscription_create_params.rbi +155 -25
  71. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +55 -25
  72. data/rbi/lithic/models/events/subscription_update_params.rbi +155 -25
  73. data/rbi/lithic/models/financial_account.rbi +3 -132
  74. data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +3 -136
  75. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +132 -9
  76. data/rbi/lithic/models/financial_accounts/statement.rbi +88 -6
  77. data/rbi/lithic/models/payment.rbi +11 -14
  78. data/rbi/lithic/models/payment_simulate_action_params.rbi +22 -0
  79. data/rbi/lithic/models/tokenization.rbi +429 -34
  80. data/rbi/lithic/models/transaction.rbi +22 -246
  81. data/rbi/lithic/models/transactions/events/enhanced_data.rbi +12 -12
  82. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +0 -3
  83. data/rbi/lithic/resources/auth_rules/v2.rbi +24 -72
  84. data/rbi/lithic/resources/disputes.rbi +7 -5
  85. data/rbi/lithic/resources/payments.rbi +6 -0
  86. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -6
  87. data/sig/lithic/models/account_holder_update_response.rbs +8 -12
  88. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +163 -0
  89. data/sig/lithic/models/auth_rules/v2_create_params.rbs +22 -188
  90. data/sig/lithic/models/auth_rules/v2_create_response.rbs +2 -318
  91. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -159
  92. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +2 -318
  93. data/sig/lithic/models/auth_rules/v2_list_response.rbs +2 -318
  94. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +2 -318
  95. data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -4
  96. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +2 -318
  97. data/sig/lithic/models/auth_rules/v2_update_response.rbs +2 -318
  98. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -4
  99. data/sig/lithic/models/auth_rules/velocity_limit_period.rbs +91 -0
  100. data/sig/lithic/models/book_transfer_response.rbs +7 -7
  101. data/sig/lithic/models/dispute.rbs +417 -157
  102. data/sig/lithic/models/dispute_create_response.rbs +210 -0
  103. data/sig/lithic/models/dispute_delete_response.rbs +210 -0
  104. data/sig/lithic/models/dispute_list_response.rbs +210 -0
  105. data/sig/lithic/models/dispute_retrieve_response.rbs +210 -0
  106. data/sig/lithic/models/dispute_update_response.rbs +210 -0
  107. data/sig/lithic/models/event.rbs +25 -13
  108. data/sig/lithic/models/event_list_params.rbs +25 -13
  109. data/sig/lithic/models/event_subscription.rbs +25 -13
  110. data/sig/lithic/models/events/subscription_create_params.rbs +25 -13
  111. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +25 -13
  112. data/sig/lithic/models/events/subscription_update_params.rbs +25 -13
  113. data/sig/lithic/models/financial_account.rbs +3 -45
  114. data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +3 -49
  115. data/sig/lithic/models/financial_accounts/loan_tape.rbs +87 -9
  116. data/sig/lithic/models/financial_accounts/statement.rbs +58 -6
  117. data/sig/lithic/models/payment.rbs +8 -10
  118. data/sig/lithic/models/payment_simulate_action_params.rbs +14 -0
  119. data/sig/lithic/models/tokenization.rbs +160 -13
  120. data/sig/lithic/models/transaction.rbs +13 -94
  121. data/sig/lithic/models/transactions/events/enhanced_data.rbs +15 -15
  122. data/sig/lithic/resources/auth_rules/v2.rbs +2 -12
  123. data/sig/lithic/resources/disputes.rbs +5 -5
  124. data/sig/lithic/resources/payments.rbs +2 -0
  125. metadata +23 -11
  126. data/lib/lithic/models/auth_rules/v2_apply_params.rb +0 -56
  127. data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -766
  128. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +0 -248
  129. data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +0 -86
  130. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +0 -1638
  131. data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +0 -557
  132. data/sig/lithic/models/auth_rules/v2_apply_params.rbs +0 -54
  133. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +0 -509
  134. data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +0 -223
@@ -6,14 +6,14 @@ module Lithic
6
6
  account_token: String,
7
7
  card_token: String,
8
8
  created_at: Time,
9
- device_id: String?,
10
9
  dpan: String?,
11
10
  status: Lithic::Models::Tokenization::status,
12
11
  token_requestor_name: Lithic::Models::Tokenization::token_requestor_name,
13
12
  token_unique_reference: String,
14
13
  tokenization_channel: Lithic::Models::Tokenization::tokenization_channel,
15
14
  updated_at: Time,
16
- digital_card_art_token: String,
15
+ device_id: String?,
16
+ digital_card_art_token: String?,
17
17
  events: ::Array[Lithic::Tokenization::Event],
18
18
  payment_account_reference_id: String?
19
19
  }
@@ -27,8 +27,6 @@ module Lithic
27
27
 
28
28
  attr_accessor created_at: Time
29
29
 
30
- attr_accessor device_id: String?
31
-
32
30
  attr_accessor dpan: String?
33
31
 
34
32
  attr_accessor status: Lithic::Models::Tokenization::status
@@ -41,9 +39,9 @@ module Lithic
41
39
 
42
40
  attr_accessor updated_at: Time
43
41
 
44
- attr_reader digital_card_art_token: String?
42
+ attr_accessor device_id: String?
45
43
 
46
- def digital_card_art_token=: (String) -> String
44
+ attr_accessor digital_card_art_token: String?
47
45
 
48
46
  attr_reader events: ::Array[Lithic::Tokenization::Event]?
49
47
 
@@ -58,14 +56,14 @@ module Lithic
58
56
  account_token: String,
59
57
  card_token: String,
60
58
  created_at: Time,
61
- device_id: String?,
62
59
  dpan: String?,
63
60
  status: Lithic::Models::Tokenization::status,
64
61
  token_requestor_name: Lithic::Models::Tokenization::token_requestor_name,
65
62
  token_unique_reference: String,
66
63
  tokenization_channel: Lithic::Models::Tokenization::tokenization_channel,
67
64
  updated_at: Time,
68
- ?digital_card_art_token: String,
65
+ ?device_id: String?,
66
+ ?digital_card_art_token: String?,
69
67
  ?events: ::Array[Lithic::Tokenization::Event],
70
68
  ?payment_account_reference_id: String?
71
69
  ) -> void
@@ -75,14 +73,14 @@ module Lithic
75
73
  account_token: String,
76
74
  card_token: String,
77
75
  created_at: Time,
78
- device_id: String?,
79
76
  dpan: String?,
80
77
  status: Lithic::Models::Tokenization::status,
81
78
  token_requestor_name: Lithic::Models::Tokenization::token_requestor_name,
82
79
  token_unique_reference: String,
83
80
  tokenization_channel: Lithic::Models::Tokenization::tokenization_channel,
84
81
  updated_at: Time,
85
- digital_card_art_token: String,
82
+ device_id: String?,
83
+ digital_card_art_token: String?,
86
84
  events: ::Array[Lithic::Tokenization::Event],
87
85
  payment_account_reference_id: String?
88
86
  }
@@ -117,14 +115,18 @@ module Lithic
117
115
  | :FACEBOOK
118
116
  | :FITBIT_PAY
119
117
  | :GARMIN_PAY
118
+ | :GOOGLE_PAY
120
119
  | :MICROSOFT_PAY
121
120
  | :NETFLIX
122
121
  | :SAMSUNG_PAY
123
122
  | :UNKNOWN
124
123
  | :VISA_CHECKOUT
124
+ | String
125
125
 
126
126
  module TokenRequestorName
127
- extend Lithic::Internal::Type::Enum
127
+ extend Lithic::Internal::Type::Union
128
+
129
+ def self?.variants: -> ::Array[Lithic::Models::Tokenization::token_requestor_name]
128
130
 
129
131
  AMAZON_ONE: :AMAZON_ONE
130
132
  ANDROID_PAY: :ANDROID_PAY
@@ -132,13 +134,12 @@ module Lithic
132
134
  FACEBOOK: :FACEBOOK
133
135
  FITBIT_PAY: :FITBIT_PAY
134
136
  GARMIN_PAY: :GARMIN_PAY
137
+ GOOGLE_PAY: :GOOGLE_PAY
135
138
  MICROSOFT_PAY: :MICROSOFT_PAY
136
139
  NETFLIX: :NETFLIX
137
140
  SAMSUNG_PAY: :SAMSUNG_PAY
138
141
  UNKNOWN: :UNKNOWN
139
142
  VISA_CHECKOUT: :VISA_CHECKOUT
140
-
141
- def self?.values: -> ::Array[Lithic::Models::Tokenization::token_requestor_name]
142
143
  end
143
144
 
144
145
  type tokenization_channel = :DIGITAL_WALLET | :MERCHANT
@@ -157,6 +158,9 @@ module Lithic
157
158
  token: String,
158
159
  created_at: Time,
159
160
  result: Lithic::Models::Tokenization::Event::result,
161
+ rule_results: ::Array[Lithic::Tokenization::Event::RuleResult],
162
+ tokenization_decline_reasons: ::Array[Lithic::Models::Tokenization::Event::tokenization_decline_reason],
163
+ tokenization_tfa_reasons: ::Array[Lithic::Models::Tokenization::Event::tokenization_tfa_reason],
160
164
  type: Lithic::Models::Tokenization::Event::type_
161
165
  }
162
166
 
@@ -175,6 +179,24 @@ module Lithic
175
179
  Lithic::Models::Tokenization::Event::result
176
180
  ) -> Lithic::Models::Tokenization::Event::result
177
181
 
182
+ attr_reader rule_results: ::Array[Lithic::Tokenization::Event::RuleResult]?
183
+
184
+ def rule_results=: (
185
+ ::Array[Lithic::Tokenization::Event::RuleResult]
186
+ ) -> ::Array[Lithic::Tokenization::Event::RuleResult]
187
+
188
+ attr_reader tokenization_decline_reasons: ::Array[Lithic::Models::Tokenization::Event::tokenization_decline_reason]?
189
+
190
+ def tokenization_decline_reasons=: (
191
+ ::Array[Lithic::Models::Tokenization::Event::tokenization_decline_reason]
192
+ ) -> ::Array[Lithic::Models::Tokenization::Event::tokenization_decline_reason]
193
+
194
+ attr_reader tokenization_tfa_reasons: ::Array[Lithic::Models::Tokenization::Event::tokenization_tfa_reason]?
195
+
196
+ def tokenization_tfa_reasons=: (
197
+ ::Array[Lithic::Models::Tokenization::Event::tokenization_tfa_reason]
198
+ ) -> ::Array[Lithic::Models::Tokenization::Event::tokenization_tfa_reason]
199
+
178
200
  attr_reader type: Lithic::Models::Tokenization::Event::type_?
179
201
 
180
202
  def type=: (
@@ -185,6 +207,9 @@ module Lithic
185
207
  ?token: String,
186
208
  ?created_at: Time,
187
209
  ?result: Lithic::Models::Tokenization::Event::result,
210
+ ?rule_results: ::Array[Lithic::Tokenization::Event::RuleResult],
211
+ ?tokenization_decline_reasons: ::Array[Lithic::Models::Tokenization::Event::tokenization_decline_reason],
212
+ ?tokenization_tfa_reasons: ::Array[Lithic::Models::Tokenization::Event::tokenization_tfa_reason],
188
213
  ?type: Lithic::Models::Tokenization::Event::type_
189
214
  ) -> void
190
215
 
@@ -192,6 +217,9 @@ module Lithic
192
217
  token: String,
193
218
  created_at: Time,
194
219
  result: Lithic::Models::Tokenization::Event::result,
220
+ rule_results: ::Array[Lithic::Tokenization::Event::RuleResult],
221
+ tokenization_decline_reasons: ::Array[Lithic::Models::Tokenization::Event::tokenization_decline_reason],
222
+ tokenization_tfa_reasons: ::Array[Lithic::Models::Tokenization::Event::tokenization_tfa_reason],
195
223
  type: Lithic::Models::Tokenization::Event::type_
196
224
  }
197
225
 
@@ -228,6 +256,125 @@ module Lithic
228
256
  def self?.values: -> ::Array[Lithic::Models::Tokenization::Event::result]
229
257
  end
230
258
 
259
+ type rule_result =
260
+ {
261
+ auth_rule_token: String?,
262
+ explanation: String?,
263
+ name: String?,
264
+ result: Lithic::Models::Tokenization::Event::RuleResult::result
265
+ }
266
+
267
+ class RuleResult < Lithic::Internal::Type::BaseModel
268
+ attr_accessor auth_rule_token: String?
269
+
270
+ attr_accessor explanation: String?
271
+
272
+ attr_accessor name: String?
273
+
274
+ attr_accessor result: Lithic::Models::Tokenization::Event::RuleResult::result
275
+
276
+ def initialize: (
277
+ auth_rule_token: String?,
278
+ explanation: String?,
279
+ name: String?,
280
+ result: Lithic::Models::Tokenization::Event::RuleResult::result
281
+ ) -> void
282
+
283
+ def to_hash: -> {
284
+ auth_rule_token: String?,
285
+ explanation: String?,
286
+ name: String?,
287
+ result: Lithic::Models::Tokenization::Event::RuleResult::result
288
+ }
289
+
290
+ type result = :APPROVED | :DECLINED | :REQUIRE_TFA | :ERROR
291
+
292
+ module Result
293
+ extend Lithic::Internal::Type::Enum
294
+
295
+ APPROVED: :APPROVED
296
+ DECLINED: :DECLINED
297
+ REQUIRE_TFA: :REQUIRE_TFA
298
+ ERROR: :ERROR
299
+
300
+ def self?.values: -> ::Array[Lithic::Models::Tokenization::Event::RuleResult::result]
301
+ end
302
+ end
303
+
304
+ type tokenization_decline_reason =
305
+ :ACCOUNT_SCORE_1
306
+ | :DEVICE_SCORE_1
307
+ | :ALL_WALLET_DECLINE_REASONS_PRESENT
308
+ | :WALLET_RECOMMENDED_DECISION_RED
309
+ | :CVC_MISMATCH
310
+ | :CARD_EXPIRY_MONTH_MISMATCH
311
+ | :CARD_EXPIRY_YEAR_MISMATCH
312
+ | :CARD_INVALID_STATE
313
+ | :CUSTOMER_RED_PATH
314
+ | :INVALID_CUSTOMER_RESPONSE
315
+ | :NETWORK_FAILURE
316
+ | :GENERIC_DECLINE
317
+ | :DIGITAL_CARD_ART_REQUIRED
318
+
319
+ module TokenizationDeclineReason
320
+ extend Lithic::Internal::Type::Enum
321
+
322
+ ACCOUNT_SCORE_1: :ACCOUNT_SCORE_1
323
+ DEVICE_SCORE_1: :DEVICE_SCORE_1
324
+ ALL_WALLET_DECLINE_REASONS_PRESENT: :ALL_WALLET_DECLINE_REASONS_PRESENT
325
+ WALLET_RECOMMENDED_DECISION_RED: :WALLET_RECOMMENDED_DECISION_RED
326
+ CVC_MISMATCH: :CVC_MISMATCH
327
+ CARD_EXPIRY_MONTH_MISMATCH: :CARD_EXPIRY_MONTH_MISMATCH
328
+ CARD_EXPIRY_YEAR_MISMATCH: :CARD_EXPIRY_YEAR_MISMATCH
329
+ CARD_INVALID_STATE: :CARD_INVALID_STATE
330
+ CUSTOMER_RED_PATH: :CUSTOMER_RED_PATH
331
+ INVALID_CUSTOMER_RESPONSE: :INVALID_CUSTOMER_RESPONSE
332
+ NETWORK_FAILURE: :NETWORK_FAILURE
333
+ GENERIC_DECLINE: :GENERIC_DECLINE
334
+ DIGITAL_CARD_ART_REQUIRED: :DIGITAL_CARD_ART_REQUIRED
335
+
336
+ def self?.values: -> ::Array[Lithic::Models::Tokenization::Event::tokenization_decline_reason]
337
+ end
338
+
339
+ type tokenization_tfa_reason =
340
+ :WALLET_RECOMMENDED_TFA
341
+ | :SUSPICIOUS_ACTIVITY
342
+ | :DEVICE_RECENTLY_LOST
343
+ | :TOO_MANY_RECENT_ATTEMPTS
344
+ | :TOO_MANY_RECENT_TOKENS
345
+ | :TOO_MANY_DIFFERENT_CARDHOLDERS
346
+ | :OUTSIDE_HOME_TERRITORY
347
+ | :HAS_SUSPENDED_TOKENS
348
+ | :HIGH_RISK
349
+ | :ACCOUNT_SCORE_LOW
350
+ | :DEVICE_SCORE_LOW
351
+ | :CARD_STATE_TFA
352
+ | :HARDCODED_TFA
353
+ | :CUSTOMER_RULE_TFA
354
+ | :DEVICE_HOST_CARD_EMULATION
355
+
356
+ module TokenizationTfaReason
357
+ extend Lithic::Internal::Type::Enum
358
+
359
+ WALLET_RECOMMENDED_TFA: :WALLET_RECOMMENDED_TFA
360
+ SUSPICIOUS_ACTIVITY: :SUSPICIOUS_ACTIVITY
361
+ DEVICE_RECENTLY_LOST: :DEVICE_RECENTLY_LOST
362
+ TOO_MANY_RECENT_ATTEMPTS: :TOO_MANY_RECENT_ATTEMPTS
363
+ TOO_MANY_RECENT_TOKENS: :TOO_MANY_RECENT_TOKENS
364
+ TOO_MANY_DIFFERENT_CARDHOLDERS: :TOO_MANY_DIFFERENT_CARDHOLDERS
365
+ OUTSIDE_HOME_TERRITORY: :OUTSIDE_HOME_TERRITORY
366
+ HAS_SUSPENDED_TOKENS: :HAS_SUSPENDED_TOKENS
367
+ HIGH_RISK: :HIGH_RISK
368
+ ACCOUNT_SCORE_LOW: :ACCOUNT_SCORE_LOW
369
+ DEVICE_SCORE_LOW: :DEVICE_SCORE_LOW
370
+ CARD_STATE_TFA: :CARD_STATE_TFA
371
+ HARDCODED_TFA: :HARDCODED_TFA
372
+ CUSTOMER_RULE_TFA: :CUSTOMER_RULE_TFA
373
+ DEVICE_HOST_CARD_EMULATION: :DEVICE_HOST_CARD_EMULATION
374
+
375
+ def self?.values: -> ::Array[Lithic::Models::Tokenization::Event::tokenization_tfa_reason]
376
+ end
377
+
231
378
  type type_ =
232
379
  :TOKENIZATION_2FA
233
380
  | :TOKENIZATION_AUTHORIZATION
@@ -250,21 +250,15 @@ module Lithic
250
250
 
251
251
  type cardholder_authentication =
252
252
  {
253
- three_ds_version: String?,
254
- acquirer_exemption: Lithic::Models::Transaction::CardholderAuthentication::acquirer_exemption,
253
+ authentication_method: Lithic::Models::Transaction::CardholderAuthentication::authentication_method,
255
254
  authentication_result: Lithic::Models::Transaction::CardholderAuthentication::authentication_result,
256
255
  decision_made_by: Lithic::Models::Transaction::CardholderAuthentication::decision_made_by,
257
256
  liability_shift: Lithic::Models::Transaction::CardholderAuthentication::liability_shift,
258
- three_ds_authentication_token: String?,
259
- verification_attempted: Lithic::Models::Transaction::CardholderAuthentication::verification_attempted,
260
- verification_result: Lithic::Models::Transaction::CardholderAuthentication::verification_result,
261
- authentication_method: Lithic::Models::Transaction::CardholderAuthentication::authentication_method
257
+ three_ds_authentication_token: String?
262
258
  }
263
259
 
264
260
  class CardholderAuthentication < Lithic::Internal::Type::BaseModel
265
- attr_accessor three_ds_version: String?
266
-
267
- attr_accessor acquirer_exemption: Lithic::Models::Transaction::CardholderAuthentication::acquirer_exemption
261
+ attr_accessor authentication_method: Lithic::Models::Transaction::CardholderAuthentication::authentication_method
268
262
 
269
263
  attr_accessor authentication_result: Lithic::Models::Transaction::CardholderAuthentication::authentication_result
270
264
 
@@ -274,63 +268,32 @@ module Lithic
274
268
 
275
269
  attr_accessor three_ds_authentication_token: String?
276
270
 
277
- attr_accessor verification_attempted: Lithic::Models::Transaction::CardholderAuthentication::verification_attempted
278
-
279
- attr_accessor verification_result: Lithic::Models::Transaction::CardholderAuthentication::verification_result
280
-
281
- attr_reader authentication_method: Lithic::Models::Transaction::CardholderAuthentication::authentication_method?
282
-
283
- def authentication_method=: (
284
- Lithic::Models::Transaction::CardholderAuthentication::authentication_method
285
- ) -> Lithic::Models::Transaction::CardholderAuthentication::authentication_method
286
-
287
271
  def initialize: (
288
- three_ds_version: String?,
289
- acquirer_exemption: Lithic::Models::Transaction::CardholderAuthentication::acquirer_exemption,
272
+ authentication_method: Lithic::Models::Transaction::CardholderAuthentication::authentication_method,
290
273
  authentication_result: Lithic::Models::Transaction::CardholderAuthentication::authentication_result,
291
274
  decision_made_by: Lithic::Models::Transaction::CardholderAuthentication::decision_made_by,
292
275
  liability_shift: Lithic::Models::Transaction::CardholderAuthentication::liability_shift,
293
- three_ds_authentication_token: String?,
294
- verification_attempted: Lithic::Models::Transaction::CardholderAuthentication::verification_attempted,
295
- verification_result: Lithic::Models::Transaction::CardholderAuthentication::verification_result,
296
- ?authentication_method: Lithic::Models::Transaction::CardholderAuthentication::authentication_method
276
+ three_ds_authentication_token: String?
297
277
  ) -> void
298
278
 
299
279
  def to_hash: -> {
300
- three_ds_version: String?,
301
- acquirer_exemption: Lithic::Models::Transaction::CardholderAuthentication::acquirer_exemption,
280
+ authentication_method: Lithic::Models::Transaction::CardholderAuthentication::authentication_method,
302
281
  authentication_result: Lithic::Models::Transaction::CardholderAuthentication::authentication_result,
303
282
  decision_made_by: Lithic::Models::Transaction::CardholderAuthentication::decision_made_by,
304
283
  liability_shift: Lithic::Models::Transaction::CardholderAuthentication::liability_shift,
305
- three_ds_authentication_token: String?,
306
- verification_attempted: Lithic::Models::Transaction::CardholderAuthentication::verification_attempted,
307
- verification_result: Lithic::Models::Transaction::CardholderAuthentication::verification_result,
308
- authentication_method: Lithic::Models::Transaction::CardholderAuthentication::authentication_method
284
+ three_ds_authentication_token: String?
309
285
  }
310
286
 
311
- type acquirer_exemption =
312
- :AUTHENTICATION_OUTAGE_EXCEPTION
313
- | :LOW_VALUE
314
- | :MERCHANT_INITIATED_TRANSACTION
315
- | :NONE
316
- | :RECURRING_PAYMENT
317
- | :SECURE_CORPORATE_PAYMENT
318
- | :STRONG_CUSTOMER_AUTHENTICATION_DELEGATION
319
- | :TRANSACTION_RISK_ANALYSIS
320
-
321
- module AcquirerExemption
287
+ type authentication_method = :FRICTIONLESS | :CHALLENGE | :NONE
288
+
289
+ module AuthenticationMethod
322
290
  extend Lithic::Internal::Type::Enum
323
291
 
324
- AUTHENTICATION_OUTAGE_EXCEPTION: :AUTHENTICATION_OUTAGE_EXCEPTION
325
- LOW_VALUE: :LOW_VALUE
326
- MERCHANT_INITIATED_TRANSACTION: :MERCHANT_INITIATED_TRANSACTION
292
+ FRICTIONLESS: :FRICTIONLESS
293
+ CHALLENGE: :CHALLENGE
327
294
  NONE: :NONE
328
- RECURRING_PAYMENT: :RECURRING_PAYMENT
329
- SECURE_CORPORATE_PAYMENT: :SECURE_CORPORATE_PAYMENT
330
- STRONG_CUSTOMER_AUTHENTICATION_DELEGATION: :STRONG_CUSTOMER_AUTHENTICATION_DELEGATION
331
- TRANSACTION_RISK_ANALYSIS: :TRANSACTION_RISK_ANALYSIS
332
295
 
333
- def self?.values: -> ::Array[Lithic::Models::Transaction::CardholderAuthentication::acquirer_exemption]
296
+ def self?.values: -> ::Array[Lithic::Models::Transaction::CardholderAuthentication::authentication_method]
334
297
  end
335
298
 
336
299
  type authentication_result = :ATTEMPTS | :DECLINE | :NONE | :SUCCESS
@@ -379,50 +342,6 @@ module Lithic
379
342
 
380
343
  def self?.values: -> ::Array[Lithic::Models::Transaction::CardholderAuthentication::liability_shift]
381
344
  end
382
-
383
- type verification_attempted = :NONE | :OTHER
384
-
385
- module VerificationAttempted
386
- extend Lithic::Internal::Type::Enum
387
-
388
- NONE: :NONE
389
- OTHER: :OTHER
390
-
391
- def self?.values: -> ::Array[Lithic::Models::Transaction::CardholderAuthentication::verification_attempted]
392
- end
393
-
394
- type verification_result =
395
- :CANCELLED
396
- | :FAILED
397
- | :FRICTIONLESS
398
- | :NOT_ATTEMPTED
399
- | :REJECTED
400
- | :SUCCESS
401
-
402
- module VerificationResult
403
- extend Lithic::Internal::Type::Enum
404
-
405
- CANCELLED: :CANCELLED
406
- FAILED: :FAILED
407
- FRICTIONLESS: :FRICTIONLESS
408
- NOT_ATTEMPTED: :NOT_ATTEMPTED
409
- REJECTED: :REJECTED
410
- SUCCESS: :SUCCESS
411
-
412
- def self?.values: -> ::Array[Lithic::Models::Transaction::CardholderAuthentication::verification_result]
413
- end
414
-
415
- type authentication_method = :FRICTIONLESS | :CHALLENGE | :NONE
416
-
417
- module AuthenticationMethod
418
- extend Lithic::Internal::Type::Enum
419
-
420
- FRICTIONLESS: :FRICTIONLESS
421
- CHALLENGE: :CHALLENGE
422
- NONE: :NONE
423
-
424
- def self?.values: -> ::Array[Lithic::Models::Transaction::CardholderAuthentication::authentication_method]
425
- end
426
345
  end
427
346
 
428
347
  type merchant =
@@ -82,16 +82,16 @@ module Lithic
82
82
 
83
83
  type line_item =
84
84
  {
85
- amount: Float,
85
+ amount: String,
86
86
  description: String,
87
87
  product_code: String,
88
- quantity: Float
88
+ quantity: String
89
89
  }
90
90
 
91
91
  class LineItem < Lithic::Internal::Type::BaseModel
92
- attr_reader amount: Float?
92
+ attr_reader amount: String?
93
93
 
94
- def amount=: (Float) -> Float
94
+ def amount=: (String) -> String
95
95
 
96
96
  attr_reader description: String?
97
97
 
@@ -101,22 +101,22 @@ module Lithic
101
101
 
102
102
  def product_code=: (String) -> String
103
103
 
104
- attr_reader quantity: Float?
104
+ attr_reader quantity: String?
105
105
 
106
- def quantity=: (Float) -> Float
106
+ def quantity=: (String) -> String
107
107
 
108
108
  def initialize: (
109
- ?amount: Float,
109
+ ?amount: String,
110
110
  ?description: String,
111
111
  ?product_code: String,
112
- ?quantity: Float
112
+ ?quantity: String
113
113
  ) -> void
114
114
 
115
115
  def to_hash: -> {
116
- amount: Float,
116
+ amount: String,
117
117
  description: String,
118
118
  product_code: String,
119
- quantity: Float
119
+ quantity: String
120
120
  }
121
121
  end
122
122
 
@@ -250,16 +250,16 @@ module Lithic
250
250
 
251
251
  type fuel =
252
252
  {
253
- quantity: Float,
253
+ quantity: String,
254
254
  type: Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::type_,
255
255
  unit_of_measure: Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::unit_of_measure,
256
256
  unit_price: Integer
257
257
  }
258
258
 
259
259
  class Fuel < Lithic::Internal::Type::BaseModel
260
- attr_reader quantity: Float?
260
+ attr_reader quantity: String?
261
261
 
262
- def quantity=: (Float) -> Float
262
+ def quantity=: (String) -> String
263
263
 
264
264
  attr_reader type: Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::type_?
265
265
 
@@ -278,14 +278,14 @@ module Lithic
278
278
  def unit_price=: (Integer) -> Integer
279
279
 
280
280
  def initialize: (
281
- ?quantity: Float,
281
+ ?quantity: String,
282
282
  ?type: Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::type_,
283
283
  ?unit_of_measure: Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::unit_of_measure,
284
284
  ?unit_price: Integer
285
285
  ) -> void
286
286
 
287
287
  def to_hash: -> {
288
- quantity: Float,
288
+ quantity: String,
289
289
  type: Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::type_,
290
290
  unit_of_measure: Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::unit_of_measure,
291
291
  unit_price: Integer
@@ -5,14 +5,14 @@ module Lithic
5
5
  attr_reader backtests: Lithic::Resources::AuthRules::V2::Backtests
6
6
 
7
7
  def create: (
8
+ parameters: Lithic::Models::AuthRules::V2CreateParams::parameters,
9
+ type: Lithic::Models::AuthRules::V2CreateParams::type_,
8
10
  card_tokens: ::Array[String],
9
11
  program_level: bool,
10
12
  ?account_tokens: ::Array[String],
11
13
  ?business_account_tokens: ::Array[String],
12
14
  ?event_stream: Lithic::Models::AuthRules::V2CreateParams::event_stream,
13
15
  ?name: String?,
14
- ?parameters: Lithic::Models::AuthRules::V2CreateParams::parameters,
15
- ?type: Lithic::Models::AuthRules::V2CreateParams::type_,
16
16
  ?excluded_card_tokens: ::Array[String],
17
17
  ?request_options: Lithic::request_opts
18
18
  ) -> Lithic::Models::AuthRules::V2CreateResponse
@@ -51,16 +51,6 @@ module Lithic
51
51
  ?request_options: Lithic::request_opts
52
52
  ) -> nil
53
53
 
54
- def apply: (
55
- String auth_rule_token,
56
- card_tokens: ::Array[String],
57
- program_level: bool,
58
- ?account_tokens: ::Array[String],
59
- ?business_account_tokens: ::Array[String],
60
- ?excluded_card_tokens: ::Array[String],
61
- ?request_options: Lithic::request_opts
62
- ) -> Lithic::Models::AuthRules::V2ApplyResponse
63
-
64
54
  def draft: (
65
55
  String auth_rule_token,
66
56
  ?parameters: Lithic::Models::AuthRules::V2DraftParams::parameters?,
@@ -8,12 +8,12 @@ module Lithic
8
8
  ?customer_filed_date: Time,
9
9
  ?customer_note: String,
10
10
  ?request_options: Lithic::request_opts
11
- ) -> Lithic::Dispute
11
+ ) -> Lithic::Models::DisputeCreateResponse
12
12
 
13
13
  def retrieve: (
14
14
  String dispute_token,
15
15
  ?request_options: Lithic::request_opts
16
- ) -> Lithic::Dispute
16
+ ) -> Lithic::Models::DisputeRetrieveResponse
17
17
 
18
18
  def update: (
19
19
  String dispute_token,
@@ -22,7 +22,7 @@ module Lithic
22
22
  ?customer_note: String,
23
23
  ?reason: Lithic::Models::DisputeUpdateParams::reason,
24
24
  ?request_options: Lithic::request_opts
25
- ) -> Lithic::Dispute
25
+ ) -> Lithic::Models::DisputeUpdateResponse
26
26
 
27
27
  def list: (
28
28
  ?begin_: Time,
@@ -33,12 +33,12 @@ module Lithic
33
33
  ?status: Lithic::Models::DisputeListParams::status,
34
34
  ?transaction_tokens: ::Array[String],
35
35
  ?request_options: Lithic::request_opts
36
- ) -> Lithic::Internal::CursorPage[Lithic::Dispute]
36
+ ) -> Lithic::Internal::CursorPage[Lithic::Models::DisputeListResponse]
37
37
 
38
38
  def delete: (
39
39
  String dispute_token,
40
40
  ?request_options: Lithic::request_opts
41
- ) -> Lithic::Dispute
41
+ ) -> Lithic::Models::DisputeDeleteResponse
42
42
 
43
43
  def delete_evidence: (
44
44
  String evidence_token,
@@ -42,7 +42,9 @@ module Lithic
42
42
  def simulate_action: (
43
43
  String payment_token,
44
44
  event_type: Lithic::Models::PaymentSimulateActionParams::event_type,
45
+ ?date_of_death: Date,
45
46
  ?decline_reason: Lithic::Models::PaymentSimulateActionParams::decline_reason,
47
+ ?return_addenda: String,
46
48
  ?return_reason_code: String,
47
49
  ?request_options: Lithic::request_opts
48
50
  ) -> Lithic::Models::PaymentSimulateActionResponse