Skip to content

Commit 4729281

Browse files
feat(api): add transaction_token field to auth_rules examples
1 parent acca757 commit 4729281

10 files changed

Lines changed: 86 additions & 23 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 190
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-fde7dad9bd08702d5db270fdd3cb533bc927387c4ea5aa19b11c67dd3ea643d4.yml
3-
openapi_spec_hash: bf4c200978915ccdf7f4a5734e796a07
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-bc1866f92f50e1de35c16e782a13052913aeedc56723b13de396dea7c754889b.yml
3+
openapi_spec_hash: d7110a33edc390903093258735ee0cfb
44
config_hash: edbdfefeb0d3d927c2f9fe3402793215

lib/lithic/models/auth_rules/backtest_stats.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,20 @@ class Example < Lithic::Internal::Type::BaseModel
7777
# @return [Time, nil]
7878
optional :timestamp, Time
7979

80-
# @!method initialize(decision: nil, event_token: nil, timestamp: nil)
80+
# @!attribute transaction_token
81+
# The token of the transaction associated with the event
82+
#
83+
# @return [String, nil]
84+
optional :transaction_token, String, nil?: true
85+
86+
# @!method initialize(decision: nil, event_token: nil, timestamp: nil, transaction_token: nil)
8187
# @param decision [Symbol, Lithic::Models::AuthRules::BacktestStats::Example::Decision] The decision made by the rule for this event.
8288
#
8389
# @param event_token [String] The event token.
8490
#
8591
# @param timestamp [Time] The timestamp of the event.
92+
#
93+
# @param transaction_token [String, nil] The token of the transaction associated with the event
8694

8795
# The decision made by the rule for this event.
8896
#

lib/lithic/models/auth_rules/report_stats.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,13 @@ class Example < Lithic::Internal::Type::BaseModel
100100
# @return [Time, nil]
101101
optional :timestamp, Time
102102

103-
# @!method initialize(actions: nil, approved: nil, decision: nil, event_token: nil, timestamp: nil)
103+
# @!attribute transaction_token
104+
# The token of the transaction associated with the event
105+
#
106+
# @return [String, nil]
107+
optional :transaction_token, String, nil?: true
108+
109+
# @!method initialize(actions: nil, approved: nil, decision: nil, event_token: nil, timestamp: nil, transaction_token: nil)
104110
# @param actions [Array<Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization, Lithic::Models::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization, Lithic::Models::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction, Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionTokenization, Lithic::Models::AuthRules::ReportStats::Example::Action::RequireTfaAction, Lithic::Models::AuthRules::ReportStats::Example::Action::ApproveActionACH, Lithic::Models::AuthRules::ReportStats::Example::Action::ReturnAction>] The actions taken by the rule for this event.
105111
#
106112
# @param approved [Boolean] Whether the rule would have approved the request.
@@ -110,6 +116,8 @@ class Example < Lithic::Internal::Type::BaseModel
110116
# @param event_token [String] The event token.
111117
#
112118
# @param timestamp [Time] The timestamp of the event.
119+
#
120+
# @param transaction_token [String, nil] The token of the transaction associated with the event
113121

114122
module Action
115123
extend Lithic::Internal::Type::Union

lib/lithic/models/auth_rules/v2_retrieve_report_response.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,20 @@ class Example < Lithic::Internal::Type::BaseModel
142142
# @return [Time]
143143
required :timestamp, Time
144144

145-
# @!method initialize(actions:, event_token:, timestamp:)
145+
# @!attribute transaction_token
146+
# The token of the transaction associated with the event
147+
#
148+
# @return [String, nil]
149+
optional :transaction_token, String, nil?: true
150+
151+
# @!method initialize(actions:, event_token:, timestamp:, transaction_token: nil)
146152
# @param actions [Array<Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction>] The actions taken by this version for this event.
147153
#
148154
# @param event_token [String] The event token.
149155
#
150156
# @param timestamp [Time] The timestamp of the event.
157+
#
158+
# @param transaction_token [String, nil] The token of the transaction associated with the event
151159

152160
module Action
153161
extend Lithic::Internal::Type::Union

rbi/lithic/models/auth_rules/backtest_stats.rbi

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,17 @@ module Lithic
148148
sig { params(timestamp: Time).void }
149149
attr_writer :timestamp
150150

151+
# The token of the transaction associated with the event
152+
sig { returns(T.nilable(String)) }
153+
attr_accessor :transaction_token
154+
151155
sig do
152156
params(
153157
decision:
154158
Lithic::AuthRules::BacktestStats::Example::Decision::OrSymbol,
155159
event_token: String,
156-
timestamp: Time
160+
timestamp: Time,
161+
transaction_token: T.nilable(String)
157162
).returns(T.attached_class)
158163
end
159164
def self.new(
@@ -162,7 +167,9 @@ module Lithic
162167
# The event token.
163168
event_token: nil,
164169
# The timestamp of the event.
165-
timestamp: nil
170+
timestamp: nil,
171+
# The token of the transaction associated with the event
172+
transaction_token: nil
166173
)
167174
end
168175

@@ -172,7 +179,8 @@ module Lithic
172179
decision:
173180
Lithic::AuthRules::BacktestStats::Example::Decision::TaggedSymbol,
174181
event_token: String,
175-
timestamp: Time
182+
timestamp: Time,
183+
transaction_token: T.nilable(String)
176184
}
177185
)
178186
end

rbi/lithic/models/auth_rules/report_stats.rbi

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ module Lithic
185185
sig { params(timestamp: Time).void }
186186
attr_writer :timestamp
187187

188+
# The token of the transaction associated with the event
189+
sig { returns(T.nilable(String)) }
190+
attr_accessor :transaction_token
191+
188192
sig do
189193
params(
190194
actions:
@@ -203,7 +207,8 @@ module Lithic
203207
decision:
204208
Lithic::AuthRules::ReportStats::Example::Decision::OrSymbol,
205209
event_token: String,
206-
timestamp: Time
210+
timestamp: Time,
211+
transaction_token: T.nilable(String)
207212
).returns(T.attached_class)
208213
end
209214
def self.new(
@@ -216,7 +221,9 @@ module Lithic
216221
# The event token.
217222
event_token: nil,
218223
# The timestamp of the event.
219-
timestamp: nil
224+
timestamp: nil,
225+
# The token of the transaction associated with the event
226+
transaction_token: nil
220227
)
221228
end
222229

@@ -231,7 +238,8 @@ module Lithic
231238
decision:
232239
Lithic::AuthRules::ReportStats::Example::Decision::TaggedSymbol,
233240
event_token: String,
234-
timestamp: Time
241+
timestamp: Time,
242+
transaction_token: T.nilable(String)
235243
}
236244
)
237245
end

rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,10 @@ module Lithic
274274
sig { returns(Time) }
275275
attr_accessor :timestamp
276276

277+
# The token of the transaction associated with the event
278+
sig { returns(T.nilable(String)) }
279+
attr_accessor :transaction_token
280+
277281
sig do
278282
params(
279283
actions:
@@ -289,7 +293,8 @@ module Lithic
289293
)
290294
],
291295
event_token: String,
292-
timestamp: Time
296+
timestamp: Time,
297+
transaction_token: T.nilable(String)
293298
).returns(T.attached_class)
294299
end
295300
def self.new(
@@ -298,7 +303,9 @@ module Lithic
298303
# The event token.
299304
event_token:,
300305
# The timestamp of the event.
301-
timestamp:
306+
timestamp:,
307+
# The token of the transaction associated with the event
308+
transaction_token: nil
302309
)
303310
end
304311

@@ -310,7 +317,8 @@ module Lithic
310317
Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::Variants
311318
],
312319
event_token: String,
313-
timestamp: Time
320+
timestamp: Time,
321+
transaction_token: T.nilable(String)
314322
}
315323
)
316324
end

sig/lithic/models/auth_rules/backtest_stats.rbs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ module Lithic
5353
{
5454
decision: Lithic::Models::AuthRules::BacktestStats::Example::decision,
5555
event_token: String,
56-
timestamp: Time
56+
timestamp: Time,
57+
transaction_token: String?
5758
}
5859

5960
class Example < Lithic::Internal::Type::BaseModel
@@ -71,16 +72,20 @@ module Lithic
7172

7273
def timestamp=: (Time) -> Time
7374

75+
attr_accessor transaction_token: String?
76+
7477
def initialize: (
7578
?decision: Lithic::Models::AuthRules::BacktestStats::Example::decision,
7679
?event_token: String,
77-
?timestamp: Time
80+
?timestamp: Time,
81+
?transaction_token: String?
7882
) -> void
7983

8084
def to_hash: -> {
8185
decision: Lithic::Models::AuthRules::BacktestStats::Example::decision,
8286
event_token: String,
83-
timestamp: Time
87+
timestamp: Time,
88+
transaction_token: String?
8489
}
8590

8691
type decision = :APPROVED | :DECLINED | :CHALLENGED

sig/lithic/models/auth_rules/report_stats.rbs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ module Lithic
5555
approved: bool,
5656
decision: Lithic::Models::AuthRules::ReportStats::Example::decision,
5757
event_token: String,
58-
timestamp: Time
58+
timestamp: Time,
59+
transaction_token: String?
5960
}
6061

6162
class Example < Lithic::Internal::Type::BaseModel
@@ -83,20 +84,24 @@ module Lithic
8384

8485
def timestamp=: (Time) -> Time
8586

87+
attr_accessor transaction_token: String?
88+
8689
def initialize: (
8790
?actions: ::Array[Lithic::Models::AuthRules::ReportStats::Example::action],
8891
?approved: bool,
8992
?decision: Lithic::Models::AuthRules::ReportStats::Example::decision,
9093
?event_token: String,
91-
?timestamp: Time
94+
?timestamp: Time,
95+
?transaction_token: String?
9296
) -> void
9397

9498
def to_hash: -> {
9599
actions: ::Array[Lithic::Models::AuthRules::ReportStats::Example::action],
96100
approved: bool,
97101
decision: Lithic::Models::AuthRules::ReportStats::Example::decision,
98102
event_token: String,
99-
timestamp: Time
103+
timestamp: Time,
104+
transaction_token: String?
100105
}
101106

102107
type action =

sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ module Lithic
9898
{
9999
actions: ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::action],
100100
event_token: String,
101-
timestamp: Time
101+
timestamp: Time,
102+
transaction_token: String?
102103
}
103104

104105
class Example < Lithic::Internal::Type::BaseModel
@@ -108,16 +109,20 @@ module Lithic
108109

109110
attr_accessor timestamp: Time
110111

112+
attr_accessor transaction_token: String?
113+
111114
def initialize: (
112115
actions: ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::action],
113116
event_token: String,
114-
timestamp: Time
117+
timestamp: Time,
118+
?transaction_token: String?
115119
) -> void
116120

117121
def to_hash: -> {
118122
actions: ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::action],
119123
event_token: String,
120-
timestamp: Time
124+
timestamp: Time,
125+
transaction_token: String?
121126
}
122127

123128
type action =

0 commit comments

Comments
 (0)