lithic 0.1.0.pre.alpha.33 → 0.1.0.pre.alpha.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/models/auth_rules/rule_stats.rb +112 -0
- data/lib/lithic/models/auth_rules/v2/backtest_results.rb +6 -238
- data/lib/lithic/models/auth_rules/v2_retrieve_report_params.rb +32 -0
- data/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb +71 -0
- data/lib/lithic/models/card_convert_physical_params.rb +10 -6
- data/lib/lithic/models/card_create_params.rb +10 -6
- data/lib/lithic/models/card_reissue_params.rb +10 -6
- data/lib/lithic/models/card_renew_params.rb +10 -6
- data/lib/lithic/models/external_bank_account_create_params.rb +1 -1
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +1 -0
- data/lib/lithic/models/financial_transaction.rb +1 -0
- data/lib/lithic/models/fraud/transaction_report_params.rb +130 -0
- data/lib/lithic/models/fraud/transaction_report_response.rb +160 -0
- data/lib/lithic/models/fraud/transaction_retrieve_params.rb +16 -0
- data/lib/lithic/models/fraud/transaction_retrieve_response.rb +160 -0
- data/lib/lithic/models/non_pci_card.rb +16 -21
- data/lib/lithic/models/payment.rb +7 -1
- data/lib/lithic/models/payment_create_params.rb +7 -1
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +111 -79
- data/lib/lithic/models/three_ds/authentication_simulate_params.rb +8 -2
- data/lib/lithic/models/three_ds/authentication_simulate_response.rb +2 -6
- data/lib/lithic/models/three_ds/challenge_response.rb +7 -7
- data/lib/lithic/models/three_ds/challenge_result.rb +1 -1
- data/lib/lithic/models/transfer.rb +1 -0
- data/lib/lithic/models.rb +2 -0
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +8 -7
- data/lib/lithic/resources/auth_rules/v2.rb +45 -4
- data/lib/lithic/resources/fraud/transactions.rb +69 -0
- data/lib/lithic/resources/fraud.rb +18 -0
- data/lib/lithic/resources/three_ds/authentication.rb +6 -6
- data/lib/lithic/resources/three_ds/decisioning.rb +8 -3
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +9 -0
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/auth_rules/rule_stats.rbi +229 -0
- data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +8 -523
- data/rbi/lithic/models/auth_rules/v2_retrieve_report_params.rbi +56 -0
- data/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi +149 -0
- data/rbi/lithic/models/card_convert_physical_params.rbi +15 -9
- data/rbi/lithic/models/card_create_params.rbi +15 -9
- data/rbi/lithic/models/card_reissue_params.rbi +15 -9
- data/rbi/lithic/models/card_renew_params.rbi +15 -9
- data/rbi/lithic/models/external_bank_account_create_params.rbi +2 -2
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +5 -0
- data/rbi/lithic/models/financial_transaction.rbi +5 -0
- data/rbi/lithic/models/fraud/transaction_report_params.rbi +263 -0
- data/rbi/lithic/models/fraud/transaction_report_response.rbi +309 -0
- data/rbi/lithic/models/fraud/transaction_retrieve_params.rbi +32 -0
- data/rbi/lithic/models/fraud/transaction_retrieve_response.rbi +309 -0
- data/rbi/lithic/models/non_pci_card.rbi +27 -38
- data/rbi/lithic/models/payment.rbi +9 -3
- data/rbi/lithic/models/payment_create_params.rbi +8 -3
- data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +171 -108
- data/rbi/lithic/models/three_ds/authentication_simulate_params.rbi +6 -0
- data/rbi/lithic/models/three_ds/authentication_simulate_response.rbi +2 -4
- data/rbi/lithic/models/three_ds/challenge_response.rbi +7 -10
- data/rbi/lithic/models/three_ds/challenge_result.rbi +1 -1
- data/rbi/lithic/models/transfer.rbi +2 -0
- data/rbi/lithic/models.rbi +2 -0
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +8 -7
- data/rbi/lithic/resources/auth_rules/v2.rbi +37 -4
- data/rbi/lithic/resources/cards.rbi +20 -12
- data/rbi/lithic/resources/fraud/transactions.rbi +86 -0
- data/rbi/lithic/resources/fraud.rbi +15 -0
- data/rbi/lithic/resources/three_ds/authentication.rbi +6 -4
- data/rbi/lithic/resources/three_ds/decisioning.rbi +9 -6
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/auth_rules/rule_stats.rbs +108 -0
- data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +8 -214
- data/sig/lithic/models/auth_rules/v2_retrieve_report_params.rbs +30 -0
- data/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs +64 -0
- data/sig/lithic/models/external_bank_account_create_params.rbs +2 -2
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +2 -0
- data/sig/lithic/models/financial_transaction.rbs +2 -0
- data/sig/lithic/models/fraud/transaction_report_params.rbs +75 -0
- data/sig/lithic/models/fraud/transaction_report_response.rbs +90 -0
- data/sig/lithic/models/fraud/transaction_retrieve_params.rbs +17 -0
- data/sig/lithic/models/fraud/transaction_retrieve_response.rbs +90 -0
- data/sig/lithic/models/non_pci_card.rbs +4 -19
- data/sig/lithic/models/payment.rbs +8 -3
- data/sig/lithic/models/payment_create_params.rbs +8 -3
- data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +19 -20
- data/sig/lithic/models/transfer.rbs +2 -0
- data/sig/lithic/models.rbs +2 -0
- data/sig/lithic/resources/auth_rules/v2.rbs +7 -0
- data/sig/lithic/resources/fraud/transactions.rbs +22 -0
- data/sig/lithic/resources/fraud.rbs +9 -0
- metadata +29 -2
@@ -80,40 +80,22 @@ module Lithic
|
|
80
80
|
)
|
81
81
|
end
|
82
82
|
|
83
|
-
sig
|
84
|
-
returns(
|
85
|
-
T.nilable(
|
86
|
-
Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion
|
87
|
-
)
|
88
|
-
)
|
89
|
-
end
|
83
|
+
sig { returns(T.nilable(Lithic::AuthRules::RuleStats)) }
|
90
84
|
attr_reader :current_version
|
91
85
|
|
92
86
|
sig do
|
93
87
|
params(
|
94
|
-
current_version:
|
95
|
-
T.nilable(
|
96
|
-
Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::OrHash
|
97
|
-
)
|
88
|
+
current_version: T.nilable(Lithic::AuthRules::RuleStats::OrHash)
|
98
89
|
).void
|
99
90
|
end
|
100
91
|
attr_writer :current_version
|
101
92
|
|
102
|
-
sig
|
103
|
-
returns(
|
104
|
-
T.nilable(
|
105
|
-
Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion
|
106
|
-
)
|
107
|
-
)
|
108
|
-
end
|
93
|
+
sig { returns(T.nilable(Lithic::AuthRules::RuleStats)) }
|
109
94
|
attr_reader :draft_version
|
110
95
|
|
111
96
|
sig do
|
112
97
|
params(
|
113
|
-
draft_version:
|
114
|
-
T.nilable(
|
115
|
-
Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::OrHash
|
116
|
-
)
|
98
|
+
draft_version: T.nilable(Lithic::AuthRules::RuleStats::OrHash)
|
117
99
|
).void
|
118
100
|
end
|
119
101
|
attr_writer :draft_version
|
@@ -121,13 +103,8 @@ module Lithic
|
|
121
103
|
sig do
|
122
104
|
params(
|
123
105
|
current_version:
|
124
|
-
T.nilable(
|
125
|
-
|
126
|
-
),
|
127
|
-
draft_version:
|
128
|
-
T.nilable(
|
129
|
-
Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::OrHash
|
130
|
-
)
|
106
|
+
T.nilable(Lithic::AuthRules::RuleStats::OrHash),
|
107
|
+
draft_version: T.nilable(Lithic::AuthRules::RuleStats::OrHash)
|
131
108
|
).returns(T.attached_class)
|
132
109
|
end
|
133
110
|
def self.new(current_version: nil, draft_version: nil)
|
@@ -136,505 +113,13 @@ module Lithic
|
|
136
113
|
sig do
|
137
114
|
override.returns(
|
138
115
|
{
|
139
|
-
current_version:
|
140
|
-
|
141
|
-
Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion
|
142
|
-
),
|
143
|
-
draft_version:
|
144
|
-
T.nilable(
|
145
|
-
Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion
|
146
|
-
)
|
116
|
+
current_version: T.nilable(Lithic::AuthRules::RuleStats),
|
117
|
+
draft_version: T.nilable(Lithic::AuthRules::RuleStats)
|
147
118
|
}
|
148
119
|
)
|
149
120
|
end
|
150
121
|
def to_hash
|
151
122
|
end
|
152
|
-
|
153
|
-
class CurrentVersion < Lithic::Internal::Type::BaseModel
|
154
|
-
OrHash =
|
155
|
-
T.type_alias do
|
156
|
-
T.any(
|
157
|
-
Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion,
|
158
|
-
Lithic::Internal::AnyHash
|
159
|
-
)
|
160
|
-
end
|
161
|
-
|
162
|
-
# The total number of historical transactions approved by this rule during the
|
163
|
-
# relevant period, or the number of transactions that would have been approved if
|
164
|
-
# the rule was evaluated in shadow mode.
|
165
|
-
sig { returns(T.nilable(Integer)) }
|
166
|
-
attr_reader :approved
|
167
|
-
|
168
|
-
sig { params(approved: Integer).void }
|
169
|
-
attr_writer :approved
|
170
|
-
|
171
|
-
# The total number of historical transactions challenged by this rule during the
|
172
|
-
# relevant period, or the number of transactions that would have been challenged
|
173
|
-
# if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth
|
174
|
-
# Rules.
|
175
|
-
sig { returns(T.nilable(Integer)) }
|
176
|
-
attr_reader :challenged
|
177
|
-
|
178
|
-
sig { params(challenged: Integer).void }
|
179
|
-
attr_writer :challenged
|
180
|
-
|
181
|
-
# The total number of historical transactions declined by this rule during the
|
182
|
-
# relevant period, or the number of transactions that would have been declined if
|
183
|
-
# the rule was evaluated in shadow mode.
|
184
|
-
sig { returns(T.nilable(Integer)) }
|
185
|
-
attr_reader :declined
|
186
|
-
|
187
|
-
sig { params(declined: Integer).void }
|
188
|
-
attr_writer :declined
|
189
|
-
|
190
|
-
# Example events and their outcomes.
|
191
|
-
sig do
|
192
|
-
returns(
|
193
|
-
T.nilable(
|
194
|
-
T::Array[
|
195
|
-
Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example
|
196
|
-
]
|
197
|
-
)
|
198
|
-
)
|
199
|
-
end
|
200
|
-
attr_reader :examples
|
201
|
-
|
202
|
-
sig do
|
203
|
-
params(
|
204
|
-
examples:
|
205
|
-
T::Array[
|
206
|
-
Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::OrHash
|
207
|
-
]
|
208
|
-
).void
|
209
|
-
end
|
210
|
-
attr_writer :examples
|
211
|
-
|
212
|
-
# The version of the rule, this is incremented whenever the rule's parameters
|
213
|
-
# change.
|
214
|
-
sig { returns(T.nilable(Integer)) }
|
215
|
-
attr_reader :version
|
216
|
-
|
217
|
-
sig { params(version: Integer).void }
|
218
|
-
attr_writer :version
|
219
|
-
|
220
|
-
sig do
|
221
|
-
params(
|
222
|
-
approved: Integer,
|
223
|
-
challenged: Integer,
|
224
|
-
declined: Integer,
|
225
|
-
examples:
|
226
|
-
T::Array[
|
227
|
-
Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::OrHash
|
228
|
-
],
|
229
|
-
version: Integer
|
230
|
-
).returns(T.attached_class)
|
231
|
-
end
|
232
|
-
def self.new(
|
233
|
-
# The total number of historical transactions approved by this rule during the
|
234
|
-
# relevant period, or the number of transactions that would have been approved if
|
235
|
-
# the rule was evaluated in shadow mode.
|
236
|
-
approved: nil,
|
237
|
-
# The total number of historical transactions challenged by this rule during the
|
238
|
-
# relevant period, or the number of transactions that would have been challenged
|
239
|
-
# if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth
|
240
|
-
# Rules.
|
241
|
-
challenged: nil,
|
242
|
-
# The total number of historical transactions declined by this rule during the
|
243
|
-
# relevant period, or the number of transactions that would have been declined if
|
244
|
-
# the rule was evaluated in shadow mode.
|
245
|
-
declined: nil,
|
246
|
-
# Example events and their outcomes.
|
247
|
-
examples: nil,
|
248
|
-
# The version of the rule, this is incremented whenever the rule's parameters
|
249
|
-
# change.
|
250
|
-
version: nil
|
251
|
-
)
|
252
|
-
end
|
253
|
-
|
254
|
-
sig do
|
255
|
-
override.returns(
|
256
|
-
{
|
257
|
-
approved: Integer,
|
258
|
-
challenged: Integer,
|
259
|
-
declined: Integer,
|
260
|
-
examples:
|
261
|
-
T::Array[
|
262
|
-
Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example
|
263
|
-
],
|
264
|
-
version: Integer
|
265
|
-
}
|
266
|
-
)
|
267
|
-
end
|
268
|
-
def to_hash
|
269
|
-
end
|
270
|
-
|
271
|
-
class Example < Lithic::Internal::Type::BaseModel
|
272
|
-
OrHash =
|
273
|
-
T.type_alias do
|
274
|
-
T.any(
|
275
|
-
Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example,
|
276
|
-
Lithic::Internal::AnyHash
|
277
|
-
)
|
278
|
-
end
|
279
|
-
|
280
|
-
# Whether the rule would have approved the request.
|
281
|
-
sig { returns(T.nilable(T::Boolean)) }
|
282
|
-
attr_reader :approved
|
283
|
-
|
284
|
-
sig { params(approved: T::Boolean).void }
|
285
|
-
attr_writer :approved
|
286
|
-
|
287
|
-
# The decision made by the rule for this event.
|
288
|
-
sig do
|
289
|
-
returns(
|
290
|
-
T.nilable(
|
291
|
-
Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::Decision::TaggedSymbol
|
292
|
-
)
|
293
|
-
)
|
294
|
-
end
|
295
|
-
attr_reader :decision
|
296
|
-
|
297
|
-
sig do
|
298
|
-
params(
|
299
|
-
decision:
|
300
|
-
Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::Decision::OrSymbol
|
301
|
-
).void
|
302
|
-
end
|
303
|
-
attr_writer :decision
|
304
|
-
|
305
|
-
# The event token.
|
306
|
-
sig { returns(T.nilable(String)) }
|
307
|
-
attr_reader :event_token
|
308
|
-
|
309
|
-
sig { params(event_token: String).void }
|
310
|
-
attr_writer :event_token
|
311
|
-
|
312
|
-
# The timestamp of the event.
|
313
|
-
sig { returns(T.nilable(Time)) }
|
314
|
-
attr_reader :timestamp
|
315
|
-
|
316
|
-
sig { params(timestamp: Time).void }
|
317
|
-
attr_writer :timestamp
|
318
|
-
|
319
|
-
sig do
|
320
|
-
params(
|
321
|
-
approved: T::Boolean,
|
322
|
-
decision:
|
323
|
-
Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::Decision::OrSymbol,
|
324
|
-
event_token: String,
|
325
|
-
timestamp: Time
|
326
|
-
).returns(T.attached_class)
|
327
|
-
end
|
328
|
-
def self.new(
|
329
|
-
# Whether the rule would have approved the request.
|
330
|
-
approved: nil,
|
331
|
-
# The decision made by the rule for this event.
|
332
|
-
decision: nil,
|
333
|
-
# The event token.
|
334
|
-
event_token: nil,
|
335
|
-
# The timestamp of the event.
|
336
|
-
timestamp: nil
|
337
|
-
)
|
338
|
-
end
|
339
|
-
|
340
|
-
sig do
|
341
|
-
override.returns(
|
342
|
-
{
|
343
|
-
approved: T::Boolean,
|
344
|
-
decision:
|
345
|
-
Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::Decision::TaggedSymbol,
|
346
|
-
event_token: String,
|
347
|
-
timestamp: Time
|
348
|
-
}
|
349
|
-
)
|
350
|
-
end
|
351
|
-
def to_hash
|
352
|
-
end
|
353
|
-
|
354
|
-
# The decision made by the rule for this event.
|
355
|
-
module Decision
|
356
|
-
extend Lithic::Internal::Type::Enum
|
357
|
-
|
358
|
-
TaggedSymbol =
|
359
|
-
T.type_alias do
|
360
|
-
T.all(
|
361
|
-
Symbol,
|
362
|
-
Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::Decision
|
363
|
-
)
|
364
|
-
end
|
365
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
366
|
-
|
367
|
-
APPROVED =
|
368
|
-
T.let(
|
369
|
-
:APPROVED,
|
370
|
-
Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::Decision::TaggedSymbol
|
371
|
-
)
|
372
|
-
DECLINED =
|
373
|
-
T.let(
|
374
|
-
:DECLINED,
|
375
|
-
Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::Decision::TaggedSymbol
|
376
|
-
)
|
377
|
-
CHALLENGED =
|
378
|
-
T.let(
|
379
|
-
:CHALLENGED,
|
380
|
-
Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::Decision::TaggedSymbol
|
381
|
-
)
|
382
|
-
|
383
|
-
sig do
|
384
|
-
override.returns(
|
385
|
-
T::Array[
|
386
|
-
Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::Decision::TaggedSymbol
|
387
|
-
]
|
388
|
-
)
|
389
|
-
end
|
390
|
-
def self.values
|
391
|
-
end
|
392
|
-
end
|
393
|
-
end
|
394
|
-
end
|
395
|
-
|
396
|
-
class DraftVersion < Lithic::Internal::Type::BaseModel
|
397
|
-
OrHash =
|
398
|
-
T.type_alias do
|
399
|
-
T.any(
|
400
|
-
Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion,
|
401
|
-
Lithic::Internal::AnyHash
|
402
|
-
)
|
403
|
-
end
|
404
|
-
|
405
|
-
# The total number of historical transactions approved by this rule during the
|
406
|
-
# relevant period, or the number of transactions that would have been approved if
|
407
|
-
# the rule was evaluated in shadow mode.
|
408
|
-
sig { returns(T.nilable(Integer)) }
|
409
|
-
attr_reader :approved
|
410
|
-
|
411
|
-
sig { params(approved: Integer).void }
|
412
|
-
attr_writer :approved
|
413
|
-
|
414
|
-
# The total number of historical transactions challenged by this rule during the
|
415
|
-
# relevant period, or the number of transactions that would have been challenged
|
416
|
-
# if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth
|
417
|
-
# Rules.
|
418
|
-
sig { returns(T.nilable(Integer)) }
|
419
|
-
attr_reader :challenged
|
420
|
-
|
421
|
-
sig { params(challenged: Integer).void }
|
422
|
-
attr_writer :challenged
|
423
|
-
|
424
|
-
# The total number of historical transactions declined by this rule during the
|
425
|
-
# relevant period, or the number of transactions that would have been declined if
|
426
|
-
# the rule was evaluated in shadow mode.
|
427
|
-
sig { returns(T.nilable(Integer)) }
|
428
|
-
attr_reader :declined
|
429
|
-
|
430
|
-
sig { params(declined: Integer).void }
|
431
|
-
attr_writer :declined
|
432
|
-
|
433
|
-
# Example events and their outcomes.
|
434
|
-
sig do
|
435
|
-
returns(
|
436
|
-
T.nilable(
|
437
|
-
T::Array[
|
438
|
-
Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example
|
439
|
-
]
|
440
|
-
)
|
441
|
-
)
|
442
|
-
end
|
443
|
-
attr_reader :examples
|
444
|
-
|
445
|
-
sig do
|
446
|
-
params(
|
447
|
-
examples:
|
448
|
-
T::Array[
|
449
|
-
Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::OrHash
|
450
|
-
]
|
451
|
-
).void
|
452
|
-
end
|
453
|
-
attr_writer :examples
|
454
|
-
|
455
|
-
# The version of the rule, this is incremented whenever the rule's parameters
|
456
|
-
# change.
|
457
|
-
sig { returns(T.nilable(Integer)) }
|
458
|
-
attr_reader :version
|
459
|
-
|
460
|
-
sig { params(version: Integer).void }
|
461
|
-
attr_writer :version
|
462
|
-
|
463
|
-
sig do
|
464
|
-
params(
|
465
|
-
approved: Integer,
|
466
|
-
challenged: Integer,
|
467
|
-
declined: Integer,
|
468
|
-
examples:
|
469
|
-
T::Array[
|
470
|
-
Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::OrHash
|
471
|
-
],
|
472
|
-
version: Integer
|
473
|
-
).returns(T.attached_class)
|
474
|
-
end
|
475
|
-
def self.new(
|
476
|
-
# The total number of historical transactions approved by this rule during the
|
477
|
-
# relevant period, or the number of transactions that would have been approved if
|
478
|
-
# the rule was evaluated in shadow mode.
|
479
|
-
approved: nil,
|
480
|
-
# The total number of historical transactions challenged by this rule during the
|
481
|
-
# relevant period, or the number of transactions that would have been challenged
|
482
|
-
# if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth
|
483
|
-
# Rules.
|
484
|
-
challenged: nil,
|
485
|
-
# The total number of historical transactions declined by this rule during the
|
486
|
-
# relevant period, or the number of transactions that would have been declined if
|
487
|
-
# the rule was evaluated in shadow mode.
|
488
|
-
declined: nil,
|
489
|
-
# Example events and their outcomes.
|
490
|
-
examples: nil,
|
491
|
-
# The version of the rule, this is incremented whenever the rule's parameters
|
492
|
-
# change.
|
493
|
-
version: nil
|
494
|
-
)
|
495
|
-
end
|
496
|
-
|
497
|
-
sig do
|
498
|
-
override.returns(
|
499
|
-
{
|
500
|
-
approved: Integer,
|
501
|
-
challenged: Integer,
|
502
|
-
declined: Integer,
|
503
|
-
examples:
|
504
|
-
T::Array[
|
505
|
-
Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example
|
506
|
-
],
|
507
|
-
version: Integer
|
508
|
-
}
|
509
|
-
)
|
510
|
-
end
|
511
|
-
def to_hash
|
512
|
-
end
|
513
|
-
|
514
|
-
class Example < Lithic::Internal::Type::BaseModel
|
515
|
-
OrHash =
|
516
|
-
T.type_alias do
|
517
|
-
T.any(
|
518
|
-
Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example,
|
519
|
-
Lithic::Internal::AnyHash
|
520
|
-
)
|
521
|
-
end
|
522
|
-
|
523
|
-
# Whether the rule would have approved the request.
|
524
|
-
sig { returns(T.nilable(T::Boolean)) }
|
525
|
-
attr_reader :approved
|
526
|
-
|
527
|
-
sig { params(approved: T::Boolean).void }
|
528
|
-
attr_writer :approved
|
529
|
-
|
530
|
-
# The decision made by the rule for this event.
|
531
|
-
sig do
|
532
|
-
returns(
|
533
|
-
T.nilable(
|
534
|
-
Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::Decision::TaggedSymbol
|
535
|
-
)
|
536
|
-
)
|
537
|
-
end
|
538
|
-
attr_reader :decision
|
539
|
-
|
540
|
-
sig do
|
541
|
-
params(
|
542
|
-
decision:
|
543
|
-
Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::Decision::OrSymbol
|
544
|
-
).void
|
545
|
-
end
|
546
|
-
attr_writer :decision
|
547
|
-
|
548
|
-
# The event token.
|
549
|
-
sig { returns(T.nilable(String)) }
|
550
|
-
attr_reader :event_token
|
551
|
-
|
552
|
-
sig { params(event_token: String).void }
|
553
|
-
attr_writer :event_token
|
554
|
-
|
555
|
-
# The timestamp of the event.
|
556
|
-
sig { returns(T.nilable(Time)) }
|
557
|
-
attr_reader :timestamp
|
558
|
-
|
559
|
-
sig { params(timestamp: Time).void }
|
560
|
-
attr_writer :timestamp
|
561
|
-
|
562
|
-
sig do
|
563
|
-
params(
|
564
|
-
approved: T::Boolean,
|
565
|
-
decision:
|
566
|
-
Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::Decision::OrSymbol,
|
567
|
-
event_token: String,
|
568
|
-
timestamp: Time
|
569
|
-
).returns(T.attached_class)
|
570
|
-
end
|
571
|
-
def self.new(
|
572
|
-
# Whether the rule would have approved the request.
|
573
|
-
approved: nil,
|
574
|
-
# The decision made by the rule for this event.
|
575
|
-
decision: nil,
|
576
|
-
# The event token.
|
577
|
-
event_token: nil,
|
578
|
-
# The timestamp of the event.
|
579
|
-
timestamp: nil
|
580
|
-
)
|
581
|
-
end
|
582
|
-
|
583
|
-
sig do
|
584
|
-
override.returns(
|
585
|
-
{
|
586
|
-
approved: T::Boolean,
|
587
|
-
decision:
|
588
|
-
Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::Decision::TaggedSymbol,
|
589
|
-
event_token: String,
|
590
|
-
timestamp: Time
|
591
|
-
}
|
592
|
-
)
|
593
|
-
end
|
594
|
-
def to_hash
|
595
|
-
end
|
596
|
-
|
597
|
-
# The decision made by the rule for this event.
|
598
|
-
module Decision
|
599
|
-
extend Lithic::Internal::Type::Enum
|
600
|
-
|
601
|
-
TaggedSymbol =
|
602
|
-
T.type_alias do
|
603
|
-
T.all(
|
604
|
-
Symbol,
|
605
|
-
Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::Decision
|
606
|
-
)
|
607
|
-
end
|
608
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
609
|
-
|
610
|
-
APPROVED =
|
611
|
-
T.let(
|
612
|
-
:APPROVED,
|
613
|
-
Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::Decision::TaggedSymbol
|
614
|
-
)
|
615
|
-
DECLINED =
|
616
|
-
T.let(
|
617
|
-
:DECLINED,
|
618
|
-
Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::Decision::TaggedSymbol
|
619
|
-
)
|
620
|
-
CHALLENGED =
|
621
|
-
T.let(
|
622
|
-
:CHALLENGED,
|
623
|
-
Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::Decision::TaggedSymbol
|
624
|
-
)
|
625
|
-
|
626
|
-
sig do
|
627
|
-
override.returns(
|
628
|
-
T::Array[
|
629
|
-
Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::Decision::TaggedSymbol
|
630
|
-
]
|
631
|
-
)
|
632
|
-
end
|
633
|
-
def self.values
|
634
|
-
end
|
635
|
-
end
|
636
|
-
end
|
637
|
-
end
|
638
123
|
end
|
639
124
|
|
640
125
|
class SimulationParameters < Lithic::Internal::Type::BaseModel
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
module AuthRules
|
6
|
+
class V2RetrieveReportParams < Lithic::Internal::Type::BaseModel
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
OrHash =
|
11
|
+
T.type_alias do
|
12
|
+
T.any(
|
13
|
+
Lithic::AuthRules::V2RetrieveReportParams,
|
14
|
+
Lithic::Internal::AnyHash
|
15
|
+
)
|
16
|
+
end
|
17
|
+
|
18
|
+
# Start date for the report
|
19
|
+
sig { returns(Date) }
|
20
|
+
attr_accessor :begin_
|
21
|
+
|
22
|
+
# End date for the report
|
23
|
+
sig { returns(Date) }
|
24
|
+
attr_accessor :end_
|
25
|
+
|
26
|
+
sig do
|
27
|
+
params(
|
28
|
+
begin_: Date,
|
29
|
+
end_: Date,
|
30
|
+
request_options: Lithic::RequestOptions::OrHash
|
31
|
+
).returns(T.attached_class)
|
32
|
+
end
|
33
|
+
def self.new(
|
34
|
+
# Start date for the report
|
35
|
+
begin_:,
|
36
|
+
# End date for the report
|
37
|
+
end_:,
|
38
|
+
request_options: {}
|
39
|
+
)
|
40
|
+
end
|
41
|
+
|
42
|
+
sig do
|
43
|
+
override.returns(
|
44
|
+
{
|
45
|
+
begin_: Date,
|
46
|
+
end_: Date,
|
47
|
+
request_options: Lithic::RequestOptions
|
48
|
+
}
|
49
|
+
)
|
50
|
+
end
|
51
|
+
def to_hash
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|