lithic 0.1.0.pre.alpha.30 → 0.1.0.pre.alpha.32
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 +28 -0
- data/README.md +1 -1
- data/lib/lithic/internal/util.rb +8 -9
- data/lib/lithic/models/account.rb +10 -10
- data/lib/lithic/models/account_update_params.rb +5 -4
- data/lib/lithic/models/auth_rules/v2/backtest_results.rb +100 -28
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +401 -10
- data/lib/lithic/models/auth_rules/v2_create_params.rb +205 -6
- data/lib/lithic/models/auth_rules/v2_create_response.rb +401 -10
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +186 -3
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +401 -10
- data/lib/lithic/models/auth_rules/v2_list_params.rb +27 -8
- data/lib/lithic/models/auth_rules/v2_list_response.rb +401 -10
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +401 -10
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +401 -10
- data/lib/lithic/models/auth_rules/v2_update_response.rb +401 -10
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +1 -0
- data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +3 -0
- data/lib/lithic/models/financial_account.rb +1 -0
- data/lib/lithic/models/financial_account_register_account_number_params.rb +20 -0
- data/lib/lithic/models/funding_event_list_response.rb +26 -22
- data/lib/lithic/models/funding_event_retrieve_response.rb +26 -22
- data/lib/lithic/models/instance_financial_account_type.rb +1 -0
- data/lib/lithic/models/payment.rb +2 -2
- data/lib/lithic/models/required_document.rb +2 -2
- data/lib/lithic/models/settlement_detail.rb +4 -2
- data/lib/lithic/models/transaction.rb +3 -1
- data/lib/lithic/models/verification_method.rb +1 -0
- data/lib/lithic/models.rb +2 -0
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +12 -13
- data/lib/lithic/resources/auth_rules/v2.rb +43 -39
- data/lib/lithic/resources/financial_accounts.rb +24 -0
- data/lib/lithic/resources/three_ds/authentication.rb +3 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +1 -0
- data/rbi/lithic/internal/util.rbi +2 -0
- data/rbi/lithic/models/account.rbi +15 -15
- data/rbi/lithic/models/account_update_params.rbi +8 -6
- data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +186 -24
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +895 -7
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +442 -8
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +895 -7
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +414 -4
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +895 -7
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +60 -7
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +895 -7
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +895 -7
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +895 -7
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +895 -7
- data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +7 -0
- data/rbi/lithic/models/financial_account.rbi +2 -0
- data/rbi/lithic/models/financial_account_register_account_number_params.rbi +38 -0
- data/rbi/lithic/models/funding_event_list_response.rbi +35 -28
- data/rbi/lithic/models/funding_event_retrieve_response.rbi +35 -28
- data/rbi/lithic/models/instance_financial_account_type.rbi +2 -0
- data/rbi/lithic/models/payment.rbi +3 -3
- data/rbi/lithic/models/required_document.rbi +2 -2
- data/rbi/lithic/models/settlement_detail.rbi +6 -2
- data/rbi/lithic/models/transaction.rbi +9 -2
- data/rbi/lithic/models/verification_method.rbi +1 -0
- data/rbi/lithic/models.rbi +3 -0
- data/rbi/lithic/resources/accounts.rbi +2 -2
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +12 -13
- data/rbi/lithic/resources/auth_rules/v2.rbi +49 -38
- data/rbi/lithic/resources/financial_accounts.rbi +16 -0
- data/rbi/lithic/resources/three_ds/authentication.rbi +3 -1
- data/sig/lithic/models/account_update_params.rbs +2 -1
- data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +66 -2
- data/sig/lithic/models/auth_rules/v2_apply_response.rbs +280 -1
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +135 -1
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +280 -1
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +129 -0
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +280 -1
- data/sig/lithic/models/auth_rules/v2_list_params.rbs +20 -0
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +280 -1
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +280 -1
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +280 -1
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +280 -1
- data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +2 -1
- data/sig/lithic/models/financial_account.rbs +2 -0
- data/sig/lithic/models/financial_account_register_account_number_params.rbs +23 -0
- data/sig/lithic/models/funding_event_list_response.rbs +18 -11
- data/sig/lithic/models/funding_event_retrieve_response.rbs +18 -11
- data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
- data/sig/lithic/models/transaction.rbs +3 -1
- data/sig/lithic/models/verification_method.rbs +7 -1
- data/sig/lithic/models.rbs +2 -0
- data/sig/lithic/resources/auth_rules/v2.rbs +1 -0
- data/sig/lithic/resources/financial_accounts.rbs +6 -0
- metadata +5 -2
@@ -7,7 +7,7 @@ module Lithic
|
|
7
7
|
sig { returns(Lithic::Resources::AuthRules::V2::Backtests) }
|
8
8
|
attr_reader :backtests
|
9
9
|
|
10
|
-
# Creates a new V2
|
10
|
+
# Creates a new V2 Auth rule in draft mode
|
11
11
|
sig do
|
12
12
|
params(
|
13
13
|
account_tokens: T::Array[String],
|
@@ -18,7 +18,8 @@ module Lithic
|
|
18
18
|
T.any(
|
19
19
|
Lithic::AuthRules::ConditionalBlockParameters::OrHash,
|
20
20
|
Lithic::AuthRules::VelocityLimitParams::OrHash,
|
21
|
-
Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters::OrHash
|
21
|
+
Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters::OrHash,
|
22
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::OrHash
|
22
23
|
),
|
23
24
|
type: Lithic::AuthRules::V2CreateParams::Type::OrSymbol,
|
24
25
|
excluded_card_tokens: T::Array[String],
|
@@ -36,7 +37,13 @@ module Lithic
|
|
36
37
|
name: nil,
|
37
38
|
# Parameters for the Auth Rule
|
38
39
|
parameters: nil,
|
39
|
-
# The type of Auth Rule
|
40
|
+
# The type of Auth Rule. Effectively determines the event stream during which it
|
41
|
+
# will be evaluated.
|
42
|
+
#
|
43
|
+
# - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
|
44
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
45
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
46
|
+
# - `CONDITIONAL_3DS_ACTION`: THREE_DS_AUTHENTICATION event stream.
|
40
47
|
type: nil,
|
41
48
|
# Card tokens to which the Auth Rule does not apply.
|
42
49
|
excluded_card_tokens: nil,
|
@@ -44,7 +51,7 @@ module Lithic
|
|
44
51
|
)
|
45
52
|
end
|
46
53
|
|
47
|
-
# Fetches a V2
|
54
|
+
# Fetches a V2 Auth rule by its token
|
48
55
|
sig do
|
49
56
|
params(
|
50
57
|
auth_rule_token: String,
|
@@ -58,7 +65,7 @@ module Lithic
|
|
58
65
|
)
|
59
66
|
end
|
60
67
|
|
61
|
-
# Updates a V2
|
68
|
+
# Updates a V2 Auth rule's properties
|
62
69
|
#
|
63
70
|
# If `account_tokens`, `card_tokens`, `program_level`, or `excluded_card_tokens`
|
64
71
|
# is provided, this will replace existing associations with the provided list of
|
@@ -98,12 +105,14 @@ module Lithic
|
|
98
105
|
)
|
99
106
|
end
|
100
107
|
|
101
|
-
# Lists V2
|
108
|
+
# Lists V2 Auth rules
|
102
109
|
sig do
|
103
110
|
params(
|
104
111
|
account_token: String,
|
105
112
|
card_token: String,
|
106
113
|
ending_before: String,
|
114
|
+
event_stream:
|
115
|
+
Lithic::AuthRules::V2ListParams::EventStream::OrSymbol,
|
107
116
|
page_size: Integer,
|
108
117
|
scope: Lithic::AuthRules::V2ListParams::Scope::OrSymbol,
|
109
118
|
starting_after: String,
|
@@ -115,16 +124,18 @@ module Lithic
|
|
115
124
|
)
|
116
125
|
end
|
117
126
|
def list(
|
118
|
-
# Only return
|
127
|
+
# Only return Auth Rules that are bound to the provided account token.
|
119
128
|
account_token: nil,
|
120
|
-
# Only return
|
129
|
+
# Only return Auth Rules that are bound to the provided card token.
|
121
130
|
card_token: nil,
|
122
131
|
# A cursor representing an item's token before which a page of results should end.
|
123
132
|
# Used to retrieve the previous page of results before this item.
|
124
133
|
ending_before: nil,
|
134
|
+
# Only return Auth rules that are executed during the provided event stream.
|
135
|
+
event_stream: nil,
|
125
136
|
# Page size (for pagination).
|
126
137
|
page_size: nil,
|
127
|
-
# Only return
|
138
|
+
# Only return Auth Rules that are bound to the provided scope.
|
128
139
|
scope: nil,
|
129
140
|
# A cursor representing an item's token after which a page of results should
|
130
141
|
# begin. Used to retrieve the next page of results after this item.
|
@@ -133,7 +144,7 @@ module Lithic
|
|
133
144
|
)
|
134
145
|
end
|
135
146
|
|
136
|
-
# Deletes a V2
|
147
|
+
# Deletes a V2 Auth rule
|
137
148
|
sig do
|
138
149
|
params(
|
139
150
|
auth_rule_token: String,
|
@@ -147,8 +158,8 @@ module Lithic
|
|
147
158
|
)
|
148
159
|
end
|
149
160
|
|
150
|
-
# Associates a V2
|
151
|
-
#
|
161
|
+
# Associates a V2 Auth rule with a card program, the provided account(s) or
|
162
|
+
# card(s).
|
152
163
|
#
|
153
164
|
# Prefer using the `PATCH` method for this operation.
|
154
165
|
sig do
|
@@ -188,7 +199,8 @@ module Lithic
|
|
188
199
|
T.any(
|
189
200
|
Lithic::AuthRules::ConditionalBlockParameters::OrHash,
|
190
201
|
Lithic::AuthRules::VelocityLimitParams::OrHash,
|
191
|
-
Lithic::AuthRules::V2DraftParams::Parameters::MerchantLockParameters::OrHash
|
202
|
+
Lithic::AuthRules::V2DraftParams::Parameters::MerchantLockParameters::OrHash,
|
203
|
+
Lithic::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::OrHash
|
192
204
|
)
|
193
205
|
),
|
194
206
|
request_options: Lithic::RequestOptions::OrHash
|
@@ -203,8 +215,8 @@ module Lithic
|
|
203
215
|
)
|
204
216
|
end
|
205
217
|
|
206
|
-
# Promotes the draft version of an
|
207
|
-
#
|
218
|
+
# Promotes the draft version of an Auth rule to the currently active version such
|
219
|
+
# that it is enforced in the respective stream.
|
208
220
|
sig do
|
209
221
|
params(
|
210
222
|
auth_rule_token: String,
|
@@ -218,26 +230,25 @@ module Lithic
|
|
218
230
|
)
|
219
231
|
end
|
220
232
|
|
221
|
-
# Requests a performance report of an
|
222
|
-
#
|
223
|
-
#
|
224
|
-
#
|
233
|
+
# Requests a performance report of an Auth rule to be asynchronously generated.
|
234
|
+
# Reports can only be run on rules in draft or active mode and will included
|
235
|
+
# approved and declined statistics as well as examples. The generated report will
|
236
|
+
# be delivered asynchronously through a webhook with `event_type` =
|
225
237
|
# `auth_rules.performance_report.created`. See the docs on setting up
|
226
238
|
# [webhook subscriptions](https://docs.lithic.com/docs/events-api).
|
227
239
|
#
|
228
|
-
# Reports are generated based on data collected by Lithic's
|
229
|
-
#
|
230
|
-
#
|
231
|
-
#
|
232
|
-
#
|
233
|
-
#
|
234
|
-
#
|
235
|
-
# requesting performance reports.
|
240
|
+
# Reports are generated based on data collected by Lithic's processing system in
|
241
|
+
# the trailing week. The performance of the auth rule will be assessed on the
|
242
|
+
# configuration of the auth rule at the time the report is requested. This implies
|
243
|
+
# that if a performance report is requested, right after updating an auth rule,
|
244
|
+
# depending on the number of events processed for a card program, it may be the
|
245
|
+
# case that no data is available for the report. Therefore Lithic recommends to
|
246
|
+
# decouple making updates to an Auth Rule, and requesting performance reports.
|
236
247
|
#
|
237
248
|
# To make this concrete, consider the following example:
|
238
249
|
#
|
239
|
-
# 1. At time `t`, a new Auth Rule is created, and applies to all
|
240
|
-
#
|
250
|
+
# 1. At time `t`, a new Auth Rule is created, and applies to all auth events on a
|
251
|
+
# card program. The Auth Rule has not yet been promoted, causing the draft
|
241
252
|
# version of the rule to be applied in shadow mode.
|
242
253
|
# 2. At time `t + 1 hour` a performance report is requested for the Auth Rule.
|
243
254
|
# This performance report will _only_ contain data for the Auth Rule being
|
@@ -252,17 +263,17 @@ module Lithic
|
|
252
263
|
# `t + 2 hours`.
|
253
264
|
# 4. At time `t + 3 hours` a new version of the rule is drafted by calling the
|
254
265
|
# `/v2/auth_rules/{auth_rule_token}/draft` endpoint. If a performance report is
|
255
|
-
# requested right at this moment, it will only contain data for
|
256
|
-
#
|
257
|
-
#
|
258
|
-
#
|
259
|
-
#
|
260
|
-
#
|
266
|
+
# requested right at this moment, it will only contain data for events to which
|
267
|
+
# both the active version and the draft version is applied. Lithic does this to
|
268
|
+
# ensure that performance reports represent a fair comparison between rules.
|
269
|
+
# Because there may be no events in this window, and because there may be some
|
270
|
+
# lag before data is available in a performance report, the requested
|
271
|
+
# performance report could contain no to little data.
|
261
272
|
# 5. At time `t + 4 hours` another performance report is requested: this time the
|
262
273
|
# performance report will contain data from the window between `t + 3 hours`
|
263
|
-
# and `t + 4 hours`, for any
|
264
|
-
#
|
265
|
-
#
|
274
|
+
# and `t + 4 hours`, for any events to which both the current version of the
|
275
|
+
# Auth rule (in enforcing mode) and the draft version of the Auth rule (in
|
276
|
+
# shadow mode) applied.
|
266
277
|
#
|
267
278
|
# Note that generating a report may take up to 15 minutes and that delivery is not
|
268
279
|
# guaranteed. Customers are required to have created an event subscription to
|
@@ -88,6 +88,22 @@ module Lithic
|
|
88
88
|
)
|
89
89
|
end
|
90
90
|
|
91
|
+
# Register account number
|
92
|
+
sig do
|
93
|
+
params(
|
94
|
+
financial_account_token: String,
|
95
|
+
account_number: String,
|
96
|
+
request_options: Lithic::RequestOptions::OrHash
|
97
|
+
).void
|
98
|
+
end
|
99
|
+
def register_account_number(
|
100
|
+
# Globally unique identifier for financial account.
|
101
|
+
financial_account_token,
|
102
|
+
account_number:,
|
103
|
+
request_options: {}
|
104
|
+
)
|
105
|
+
end
|
106
|
+
|
91
107
|
# Update financial account status
|
92
108
|
sig do
|
93
109
|
params(
|
@@ -21,7 +21,9 @@ module Lithic
|
|
21
21
|
# Simulates a 3DS authentication request from the payment network as if it came
|
22
22
|
# from an ACS. If you're configured for 3DS Customer Decisioning, simulating
|
23
23
|
# authentications requires your customer decisioning endpoint to be set up
|
24
|
-
# properly (respond with a valid JSON).
|
24
|
+
# properly (respond with a valid JSON). If the authentication decision is to
|
25
|
+
# challenge, ensure that the account holder associated with the card transaction
|
26
|
+
# has a valid phone number configured to receive the OTP code via SMS.
|
25
27
|
sig do
|
26
28
|
params(
|
27
29
|
merchant:
|
@@ -56,13 +56,14 @@ module Lithic
|
|
56
56
|
request_options: Lithic::RequestOptions
|
57
57
|
}
|
58
58
|
|
59
|
-
type state = :ACTIVE | :PAUSED
|
59
|
+
type state = :ACTIVE | :PAUSED | :CLOSED
|
60
60
|
|
61
61
|
module State
|
62
62
|
extend Lithic::Internal::Type::Enum
|
63
63
|
|
64
64
|
ACTIVE: :ACTIVE
|
65
65
|
PAUSED: :PAUSED
|
66
|
+
CLOSED: :CLOSED
|
66
67
|
|
67
68
|
def self?.values: -> ::Array[Lithic::Models::AccountUpdateParams::state]
|
68
69
|
end
|
@@ -52,6 +52,7 @@ module Lithic
|
|
52
52
|
type current_version =
|
53
53
|
{
|
54
54
|
approved: Integer,
|
55
|
+
challenged: Integer,
|
55
56
|
declined: Integer,
|
56
57
|
examples: ::Array[Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example],
|
57
58
|
version: Integer
|
@@ -62,6 +63,10 @@ module Lithic
|
|
62
63
|
|
63
64
|
def approved=: (Integer) -> Integer
|
64
65
|
|
66
|
+
attr_reader challenged: Integer?
|
67
|
+
|
68
|
+
def challenged=: (Integer) -> Integer
|
69
|
+
|
65
70
|
attr_reader declined: Integer?
|
66
71
|
|
67
72
|
def declined=: (Integer) -> Integer
|
@@ -78,6 +83,7 @@ module Lithic
|
|
78
83
|
|
79
84
|
def initialize: (
|
80
85
|
?approved: Integer,
|
86
|
+
?challenged: Integer,
|
81
87
|
?declined: Integer,
|
82
88
|
?examples: ::Array[Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example],
|
83
89
|
?version: Integer
|
@@ -85,19 +91,31 @@ module Lithic
|
|
85
91
|
|
86
92
|
def to_hash: -> {
|
87
93
|
approved: Integer,
|
94
|
+
challenged: Integer,
|
88
95
|
declined: Integer,
|
89
96
|
examples: ::Array[Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example],
|
90
97
|
version: Integer
|
91
98
|
}
|
92
99
|
|
93
100
|
type example =
|
94
|
-
{
|
101
|
+
{
|
102
|
+
approved: bool,
|
103
|
+
decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::decision,
|
104
|
+
event_token: String,
|
105
|
+
timestamp: Time
|
106
|
+
}
|
95
107
|
|
96
108
|
class Example < Lithic::Internal::Type::BaseModel
|
97
109
|
attr_reader approved: bool?
|
98
110
|
|
99
111
|
def approved=: (bool) -> bool
|
100
112
|
|
113
|
+
attr_reader decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::decision?
|
114
|
+
|
115
|
+
def decision=: (
|
116
|
+
Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::decision
|
117
|
+
) -> Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::decision
|
118
|
+
|
101
119
|
attr_reader event_token: String?
|
102
120
|
|
103
121
|
def event_token=: (String) -> String
|
@@ -108,21 +126,36 @@ module Lithic
|
|
108
126
|
|
109
127
|
def initialize: (
|
110
128
|
?approved: bool,
|
129
|
+
?decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::decision,
|
111
130
|
?event_token: String,
|
112
131
|
?timestamp: Time
|
113
132
|
) -> void
|
114
133
|
|
115
134
|
def to_hash: -> {
|
116
135
|
approved: bool,
|
136
|
+
decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::decision,
|
117
137
|
event_token: String,
|
118
138
|
timestamp: Time
|
119
139
|
}
|
140
|
+
|
141
|
+
type decision = :APPROVED | :DECLINED | :CHALLENGED
|
142
|
+
|
143
|
+
module Decision
|
144
|
+
extend Lithic::Internal::Type::Enum
|
145
|
+
|
146
|
+
APPROVED: :APPROVED
|
147
|
+
DECLINED: :DECLINED
|
148
|
+
CHALLENGED: :CHALLENGED
|
149
|
+
|
150
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::decision]
|
151
|
+
end
|
120
152
|
end
|
121
153
|
end
|
122
154
|
|
123
155
|
type draft_version =
|
124
156
|
{
|
125
157
|
approved: Integer,
|
158
|
+
challenged: Integer,
|
126
159
|
declined: Integer,
|
127
160
|
examples: ::Array[Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example],
|
128
161
|
version: Integer
|
@@ -133,6 +166,10 @@ module Lithic
|
|
133
166
|
|
134
167
|
def approved=: (Integer) -> Integer
|
135
168
|
|
169
|
+
attr_reader challenged: Integer?
|
170
|
+
|
171
|
+
def challenged=: (Integer) -> Integer
|
172
|
+
|
136
173
|
attr_reader declined: Integer?
|
137
174
|
|
138
175
|
def declined=: (Integer) -> Integer
|
@@ -149,6 +186,7 @@ module Lithic
|
|
149
186
|
|
150
187
|
def initialize: (
|
151
188
|
?approved: Integer,
|
189
|
+
?challenged: Integer,
|
152
190
|
?declined: Integer,
|
153
191
|
?examples: ::Array[Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example],
|
154
192
|
?version: Integer
|
@@ -156,19 +194,31 @@ module Lithic
|
|
156
194
|
|
157
195
|
def to_hash: -> {
|
158
196
|
approved: Integer,
|
197
|
+
challenged: Integer,
|
159
198
|
declined: Integer,
|
160
199
|
examples: ::Array[Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example],
|
161
200
|
version: Integer
|
162
201
|
}
|
163
202
|
|
164
203
|
type example =
|
165
|
-
{
|
204
|
+
{
|
205
|
+
approved: bool,
|
206
|
+
decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::decision,
|
207
|
+
event_token: String,
|
208
|
+
timestamp: Time
|
209
|
+
}
|
166
210
|
|
167
211
|
class Example < Lithic::Internal::Type::BaseModel
|
168
212
|
attr_reader approved: bool?
|
169
213
|
|
170
214
|
def approved=: (bool) -> bool
|
171
215
|
|
216
|
+
attr_reader decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::decision?
|
217
|
+
|
218
|
+
def decision=: (
|
219
|
+
Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::decision
|
220
|
+
) -> Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::decision
|
221
|
+
|
172
222
|
attr_reader event_token: String?
|
173
223
|
|
174
224
|
def event_token=: (String) -> String
|
@@ -179,15 +229,29 @@ module Lithic
|
|
179
229
|
|
180
230
|
def initialize: (
|
181
231
|
?approved: bool,
|
232
|
+
?decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::decision,
|
182
233
|
?event_token: String,
|
183
234
|
?timestamp: Time
|
184
235
|
) -> void
|
185
236
|
|
186
237
|
def to_hash: -> {
|
187
238
|
approved: bool,
|
239
|
+
decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::decision,
|
188
240
|
event_token: String,
|
189
241
|
timestamp: Time
|
190
242
|
}
|
243
|
+
|
244
|
+
type decision = :APPROVED | :DECLINED | :CHALLENGED
|
245
|
+
|
246
|
+
module Decision
|
247
|
+
extend Lithic::Internal::Type::Enum
|
248
|
+
|
249
|
+
APPROVED: :APPROVED
|
250
|
+
DECLINED: :DECLINED
|
251
|
+
CHALLENGED: :CHALLENGED
|
252
|
+
|
253
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::decision]
|
254
|
+
end
|
191
255
|
end
|
192
256
|
end
|
193
257
|
end
|