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
@@ -30,230 +30,24 @@ module Lithic
|
|
30
30
|
|
31
31
|
type results =
|
32
32
|
{
|
33
|
-
current_version: Lithic::AuthRules::
|
34
|
-
draft_version: Lithic::AuthRules::
|
33
|
+
current_version: Lithic::AuthRules::RuleStats?,
|
34
|
+
draft_version: Lithic::AuthRules::RuleStats?
|
35
35
|
}
|
36
36
|
|
37
37
|
class Results < Lithic::Internal::Type::BaseModel
|
38
|
-
attr_accessor current_version: Lithic::AuthRules::
|
38
|
+
attr_accessor current_version: Lithic::AuthRules::RuleStats?
|
39
39
|
|
40
|
-
attr_accessor draft_version: Lithic::AuthRules::
|
40
|
+
attr_accessor draft_version: Lithic::AuthRules::RuleStats?
|
41
41
|
|
42
42
|
def initialize: (
|
43
|
-
?current_version: Lithic::AuthRules::
|
44
|
-
?draft_version: Lithic::AuthRules::
|
43
|
+
?current_version: Lithic::AuthRules::RuleStats?,
|
44
|
+
?draft_version: Lithic::AuthRules::RuleStats?
|
45
45
|
) -> void
|
46
46
|
|
47
47
|
def to_hash: -> {
|
48
|
-
current_version: Lithic::AuthRules::
|
49
|
-
draft_version: Lithic::AuthRules::
|
48
|
+
current_version: Lithic::AuthRules::RuleStats?,
|
49
|
+
draft_version: Lithic::AuthRules::RuleStats?
|
50
50
|
}
|
51
|
-
|
52
|
-
type current_version =
|
53
|
-
{
|
54
|
-
approved: Integer,
|
55
|
-
challenged: Integer,
|
56
|
-
declined: Integer,
|
57
|
-
examples: ::Array[Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example],
|
58
|
-
version: Integer
|
59
|
-
}
|
60
|
-
|
61
|
-
class CurrentVersion < Lithic::Internal::Type::BaseModel
|
62
|
-
attr_reader approved: Integer?
|
63
|
-
|
64
|
-
def approved=: (Integer) -> Integer
|
65
|
-
|
66
|
-
attr_reader challenged: Integer?
|
67
|
-
|
68
|
-
def challenged=: (Integer) -> Integer
|
69
|
-
|
70
|
-
attr_reader declined: Integer?
|
71
|
-
|
72
|
-
def declined=: (Integer) -> Integer
|
73
|
-
|
74
|
-
attr_reader examples: ::Array[Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example]?
|
75
|
-
|
76
|
-
def examples=: (
|
77
|
-
::Array[Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example]
|
78
|
-
) -> ::Array[Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example]
|
79
|
-
|
80
|
-
attr_reader version: Integer?
|
81
|
-
|
82
|
-
def version=: (Integer) -> Integer
|
83
|
-
|
84
|
-
def initialize: (
|
85
|
-
?approved: Integer,
|
86
|
-
?challenged: Integer,
|
87
|
-
?declined: Integer,
|
88
|
-
?examples: ::Array[Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example],
|
89
|
-
?version: Integer
|
90
|
-
) -> void
|
91
|
-
|
92
|
-
def to_hash: -> {
|
93
|
-
approved: Integer,
|
94
|
-
challenged: Integer,
|
95
|
-
declined: Integer,
|
96
|
-
examples: ::Array[Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example],
|
97
|
-
version: Integer
|
98
|
-
}
|
99
|
-
|
100
|
-
type example =
|
101
|
-
{
|
102
|
-
approved: bool,
|
103
|
-
decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::decision,
|
104
|
-
event_token: String,
|
105
|
-
timestamp: Time
|
106
|
-
}
|
107
|
-
|
108
|
-
class Example < Lithic::Internal::Type::BaseModel
|
109
|
-
attr_reader approved: bool?
|
110
|
-
|
111
|
-
def approved=: (bool) -> bool
|
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
|
-
|
119
|
-
attr_reader event_token: String?
|
120
|
-
|
121
|
-
def event_token=: (String) -> String
|
122
|
-
|
123
|
-
attr_reader timestamp: Time?
|
124
|
-
|
125
|
-
def timestamp=: (Time) -> Time
|
126
|
-
|
127
|
-
def initialize: (
|
128
|
-
?approved: bool,
|
129
|
-
?decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::decision,
|
130
|
-
?event_token: String,
|
131
|
-
?timestamp: Time
|
132
|
-
) -> void
|
133
|
-
|
134
|
-
def to_hash: -> {
|
135
|
-
approved: bool,
|
136
|
-
decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::decision,
|
137
|
-
event_token: String,
|
138
|
-
timestamp: Time
|
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
|
152
|
-
end
|
153
|
-
end
|
154
|
-
|
155
|
-
type draft_version =
|
156
|
-
{
|
157
|
-
approved: Integer,
|
158
|
-
challenged: Integer,
|
159
|
-
declined: Integer,
|
160
|
-
examples: ::Array[Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example],
|
161
|
-
version: Integer
|
162
|
-
}
|
163
|
-
|
164
|
-
class DraftVersion < Lithic::Internal::Type::BaseModel
|
165
|
-
attr_reader approved: Integer?
|
166
|
-
|
167
|
-
def approved=: (Integer) -> Integer
|
168
|
-
|
169
|
-
attr_reader challenged: Integer?
|
170
|
-
|
171
|
-
def challenged=: (Integer) -> Integer
|
172
|
-
|
173
|
-
attr_reader declined: Integer?
|
174
|
-
|
175
|
-
def declined=: (Integer) -> Integer
|
176
|
-
|
177
|
-
attr_reader examples: ::Array[Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example]?
|
178
|
-
|
179
|
-
def examples=: (
|
180
|
-
::Array[Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example]
|
181
|
-
) -> ::Array[Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example]
|
182
|
-
|
183
|
-
attr_reader version: Integer?
|
184
|
-
|
185
|
-
def version=: (Integer) -> Integer
|
186
|
-
|
187
|
-
def initialize: (
|
188
|
-
?approved: Integer,
|
189
|
-
?challenged: Integer,
|
190
|
-
?declined: Integer,
|
191
|
-
?examples: ::Array[Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example],
|
192
|
-
?version: Integer
|
193
|
-
) -> void
|
194
|
-
|
195
|
-
def to_hash: -> {
|
196
|
-
approved: Integer,
|
197
|
-
challenged: Integer,
|
198
|
-
declined: Integer,
|
199
|
-
examples: ::Array[Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example],
|
200
|
-
version: Integer
|
201
|
-
}
|
202
|
-
|
203
|
-
type example =
|
204
|
-
{
|
205
|
-
approved: bool,
|
206
|
-
decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::decision,
|
207
|
-
event_token: String,
|
208
|
-
timestamp: Time
|
209
|
-
}
|
210
|
-
|
211
|
-
class Example < Lithic::Internal::Type::BaseModel
|
212
|
-
attr_reader approved: bool?
|
213
|
-
|
214
|
-
def approved=: (bool) -> bool
|
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
|
-
|
222
|
-
attr_reader event_token: String?
|
223
|
-
|
224
|
-
def event_token=: (String) -> String
|
225
|
-
|
226
|
-
attr_reader timestamp: Time?
|
227
|
-
|
228
|
-
def timestamp=: (Time) -> Time
|
229
|
-
|
230
|
-
def initialize: (
|
231
|
-
?approved: bool,
|
232
|
-
?decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::decision,
|
233
|
-
?event_token: String,
|
234
|
-
?timestamp: Time
|
235
|
-
) -> void
|
236
|
-
|
237
|
-
def to_hash: -> {
|
238
|
-
approved: bool,
|
239
|
-
decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::decision,
|
240
|
-
event_token: String,
|
241
|
-
timestamp: Time
|
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
|
255
|
-
end
|
256
|
-
end
|
257
51
|
end
|
258
52
|
|
259
53
|
type simulation_parameters =
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module Lithic
|
2
|
+
module Models
|
3
|
+
module AuthRules
|
4
|
+
type v2_retrieve_report_params =
|
5
|
+
{ begin_: Date, end_: Date }
|
6
|
+
& Lithic::Internal::Type::request_parameters
|
7
|
+
|
8
|
+
class V2RetrieveReportParams < Lithic::Internal::Type::BaseModel
|
9
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
10
|
+
include Lithic::Internal::Type::RequestParameters
|
11
|
+
|
12
|
+
attr_accessor begin_: Date
|
13
|
+
|
14
|
+
attr_accessor end_: Date
|
15
|
+
|
16
|
+
def initialize: (
|
17
|
+
begin_: Date,
|
18
|
+
end_: Date,
|
19
|
+
?request_options: Lithic::request_opts
|
20
|
+
) -> void
|
21
|
+
|
22
|
+
def to_hash: -> {
|
23
|
+
begin_: Date,
|
24
|
+
end_: Date,
|
25
|
+
request_options: Lithic::RequestOptions
|
26
|
+
}
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
module Lithic
|
2
|
+
module Models
|
3
|
+
module AuthRules
|
4
|
+
type v2_retrieve_report_response =
|
5
|
+
{
|
6
|
+
auth_rule_token: String,
|
7
|
+
begin_: Date,
|
8
|
+
daily_statistics: ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic],
|
9
|
+
end_: Date
|
10
|
+
}
|
11
|
+
|
12
|
+
class V2RetrieveReportResponse < Lithic::Internal::Type::BaseModel
|
13
|
+
attr_accessor auth_rule_token: String
|
14
|
+
|
15
|
+
attr_accessor begin_: Date
|
16
|
+
|
17
|
+
attr_accessor daily_statistics: ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic]
|
18
|
+
|
19
|
+
attr_accessor end_: Date
|
20
|
+
|
21
|
+
def initialize: (
|
22
|
+
auth_rule_token: String,
|
23
|
+
begin_: Date,
|
24
|
+
daily_statistics: ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic],
|
25
|
+
end_: Date
|
26
|
+
) -> void
|
27
|
+
|
28
|
+
def to_hash: -> {
|
29
|
+
auth_rule_token: String,
|
30
|
+
begin_: Date,
|
31
|
+
daily_statistics: ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic],
|
32
|
+
end_: Date
|
33
|
+
}
|
34
|
+
|
35
|
+
type daily_statistic =
|
36
|
+
{
|
37
|
+
current_version_statistics: Lithic::AuthRules::RuleStats?,
|
38
|
+
date: Date,
|
39
|
+
draft_version_statistics: Lithic::AuthRules::RuleStats?
|
40
|
+
}
|
41
|
+
|
42
|
+
class DailyStatistic < Lithic::Internal::Type::BaseModel
|
43
|
+
attr_accessor current_version_statistics: Lithic::AuthRules::RuleStats?
|
44
|
+
|
45
|
+
attr_accessor date: Date
|
46
|
+
|
47
|
+
attr_accessor draft_version_statistics: Lithic::AuthRules::RuleStats?
|
48
|
+
|
49
|
+
def initialize: (
|
50
|
+
current_version_statistics: Lithic::AuthRules::RuleStats?,
|
51
|
+
date: Date,
|
52
|
+
draft_version_statistics: Lithic::AuthRules::RuleStats?
|
53
|
+
) -> void
|
54
|
+
|
55
|
+
def to_hash: -> {
|
56
|
+
current_version_statistics: Lithic::AuthRules::RuleStats?,
|
57
|
+
date: Date,
|
58
|
+
draft_version_statistics: Lithic::AuthRules::RuleStats?
|
59
|
+
}
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -136,12 +136,12 @@ module Lithic
|
|
136
136
|
def self?.values: -> ::Array[Lithic::Models::ExternalBankAccountCreateParams::type_]
|
137
137
|
end
|
138
138
|
|
139
|
-
type verification_method = :
|
139
|
+
type verification_method = :UNVERIFIED
|
140
140
|
|
141
141
|
module VerificationMethod
|
142
142
|
extend Lithic::Internal::Type::Enum
|
143
143
|
|
144
|
-
|
144
|
+
UNVERIFIED: :UNVERIFIED
|
145
145
|
|
146
146
|
def self?.values: -> ::Array[Lithic::Models::ExternalBankAccountCreateParams::verification_method]
|
147
147
|
end
|
@@ -158,6 +158,7 @@ module Lithic
|
|
158
158
|
| :CASH_BACK
|
159
159
|
| :CASH_BACK_REVERSAL
|
160
160
|
| :CLEARING
|
161
|
+
| :COLLECTION
|
161
162
|
| :CORRECTION_CREDIT
|
162
163
|
| :CORRECTION_DEBIT
|
163
164
|
| :CREDIT_AUTHORIZATION
|
@@ -229,6 +230,7 @@ module Lithic
|
|
229
230
|
CASH_BACK: :CASH_BACK
|
230
231
|
CASH_BACK_REVERSAL: :CASH_BACK_REVERSAL
|
231
232
|
CLEARING: :CLEARING
|
233
|
+
COLLECTION: :COLLECTION
|
232
234
|
CORRECTION_CREDIT: :CORRECTION_CREDIT
|
233
235
|
CORRECTION_DEBIT: :CORRECTION_DEBIT
|
234
236
|
CREDIT_AUTHORIZATION: :CREDIT_AUTHORIZATION
|
@@ -163,6 +163,7 @@ module Lithic
|
|
163
163
|
| :CASH_BACK
|
164
164
|
| :CASH_BACK_REVERSAL
|
165
165
|
| :CLEARING
|
166
|
+
| :COLLECTION
|
166
167
|
| :CORRECTION_CREDIT
|
167
168
|
| :CORRECTION_DEBIT
|
168
169
|
| :CREDIT_AUTHORIZATION
|
@@ -234,6 +235,7 @@ module Lithic
|
|
234
235
|
CASH_BACK: :CASH_BACK
|
235
236
|
CASH_BACK_REVERSAL: :CASH_BACK_REVERSAL
|
236
237
|
CLEARING: :CLEARING
|
238
|
+
COLLECTION: :COLLECTION
|
237
239
|
CORRECTION_CREDIT: :CORRECTION_CREDIT
|
238
240
|
CORRECTION_DEBIT: :CORRECTION_DEBIT
|
239
241
|
CREDIT_AUTHORIZATION: :CREDIT_AUTHORIZATION
|
@@ -0,0 +1,75 @@
|
|
1
|
+
module Lithic
|
2
|
+
module Models
|
3
|
+
module Fraud
|
4
|
+
type transaction_report_params =
|
5
|
+
{
|
6
|
+
fraud_status: Lithic::Models::Fraud::TransactionReportParams::fraud_status,
|
7
|
+
comment: String,
|
8
|
+
fraud_type: Lithic::Models::Fraud::TransactionReportParams::fraud_type
|
9
|
+
}
|
10
|
+
& Lithic::Internal::Type::request_parameters
|
11
|
+
|
12
|
+
class TransactionReportParams < Lithic::Internal::Type::BaseModel
|
13
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
14
|
+
include Lithic::Internal::Type::RequestParameters
|
15
|
+
|
16
|
+
attr_accessor fraud_status: Lithic::Models::Fraud::TransactionReportParams::fraud_status
|
17
|
+
|
18
|
+
attr_reader comment: String?
|
19
|
+
|
20
|
+
def comment=: (String) -> String
|
21
|
+
|
22
|
+
attr_reader fraud_type: Lithic::Models::Fraud::TransactionReportParams::fraud_type?
|
23
|
+
|
24
|
+
def fraud_type=: (
|
25
|
+
Lithic::Models::Fraud::TransactionReportParams::fraud_type
|
26
|
+
) -> Lithic::Models::Fraud::TransactionReportParams::fraud_type
|
27
|
+
|
28
|
+
def initialize: (
|
29
|
+
fraud_status: Lithic::Models::Fraud::TransactionReportParams::fraud_status,
|
30
|
+
?comment: String,
|
31
|
+
?fraud_type: Lithic::Models::Fraud::TransactionReportParams::fraud_type,
|
32
|
+
?request_options: Lithic::request_opts
|
33
|
+
) -> void
|
34
|
+
|
35
|
+
def to_hash: -> {
|
36
|
+
fraud_status: Lithic::Models::Fraud::TransactionReportParams::fraud_status,
|
37
|
+
comment: String,
|
38
|
+
fraud_type: Lithic::Models::Fraud::TransactionReportParams::fraud_type,
|
39
|
+
request_options: Lithic::RequestOptions
|
40
|
+
}
|
41
|
+
|
42
|
+
type fraud_status = :SUSPECTED_FRAUD | :FRAUDULENT | :NOT_FRAUDULENT
|
43
|
+
|
44
|
+
module FraudStatus
|
45
|
+
extend Lithic::Internal::Type::Enum
|
46
|
+
|
47
|
+
SUSPECTED_FRAUD: :SUSPECTED_FRAUD
|
48
|
+
FRAUDULENT: :FRAUDULENT
|
49
|
+
NOT_FRAUDULENT: :NOT_FRAUDULENT
|
50
|
+
|
51
|
+
def self?.values: -> ::Array[Lithic::Models::Fraud::TransactionReportParams::fraud_status]
|
52
|
+
end
|
53
|
+
|
54
|
+
type fraud_type =
|
55
|
+
:FIRST_PARTY_FRAUD
|
56
|
+
| :ACCOUNT_TAKEOVER
|
57
|
+
| :CARD_COMPROMISED
|
58
|
+
| :IDENTITY_THEFT
|
59
|
+
| :CARDHOLDER_MANIPULATION
|
60
|
+
|
61
|
+
module FraudType
|
62
|
+
extend Lithic::Internal::Type::Enum
|
63
|
+
|
64
|
+
FIRST_PARTY_FRAUD: :FIRST_PARTY_FRAUD
|
65
|
+
ACCOUNT_TAKEOVER: :ACCOUNT_TAKEOVER
|
66
|
+
CARD_COMPROMISED: :CARD_COMPROMISED
|
67
|
+
IDENTITY_THEFT: :IDENTITY_THEFT
|
68
|
+
CARDHOLDER_MANIPULATION: :CARDHOLDER_MANIPULATION
|
69
|
+
|
70
|
+
def self?.values: -> ::Array[Lithic::Models::Fraud::TransactionReportParams::fraud_type]
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
module Lithic
|
2
|
+
module Models
|
3
|
+
module Fraud
|
4
|
+
type transaction_report_response =
|
5
|
+
{
|
6
|
+
fraud_status: Lithic::Models::Fraud::TransactionReportResponse::fraud_status,
|
7
|
+
transaction_token: String,
|
8
|
+
comment: String,
|
9
|
+
created_at: Time,
|
10
|
+
fraud_type: Lithic::Models::Fraud::TransactionReportResponse::fraud_type,
|
11
|
+
updated_at: Time
|
12
|
+
}
|
13
|
+
|
14
|
+
class TransactionReportResponse < Lithic::Internal::Type::BaseModel
|
15
|
+
attr_accessor fraud_status: Lithic::Models::Fraud::TransactionReportResponse::fraud_status
|
16
|
+
|
17
|
+
attr_accessor transaction_token: String
|
18
|
+
|
19
|
+
attr_reader comment: String?
|
20
|
+
|
21
|
+
def comment=: (String) -> String
|
22
|
+
|
23
|
+
attr_reader created_at: Time?
|
24
|
+
|
25
|
+
def created_at=: (Time) -> Time
|
26
|
+
|
27
|
+
attr_reader fraud_type: Lithic::Models::Fraud::TransactionReportResponse::fraud_type?
|
28
|
+
|
29
|
+
def fraud_type=: (
|
30
|
+
Lithic::Models::Fraud::TransactionReportResponse::fraud_type
|
31
|
+
) -> Lithic::Models::Fraud::TransactionReportResponse::fraud_type
|
32
|
+
|
33
|
+
attr_reader updated_at: Time?
|
34
|
+
|
35
|
+
def updated_at=: (Time) -> Time
|
36
|
+
|
37
|
+
def initialize: (
|
38
|
+
fraud_status: Lithic::Models::Fraud::TransactionReportResponse::fraud_status,
|
39
|
+
transaction_token: String,
|
40
|
+
?comment: String,
|
41
|
+
?created_at: Time,
|
42
|
+
?fraud_type: Lithic::Models::Fraud::TransactionReportResponse::fraud_type,
|
43
|
+
?updated_at: Time
|
44
|
+
) -> void
|
45
|
+
|
46
|
+
def to_hash: -> {
|
47
|
+
fraud_status: Lithic::Models::Fraud::TransactionReportResponse::fraud_status,
|
48
|
+
transaction_token: String,
|
49
|
+
comment: String,
|
50
|
+
created_at: Time,
|
51
|
+
fraud_type: Lithic::Models::Fraud::TransactionReportResponse::fraud_type,
|
52
|
+
updated_at: Time
|
53
|
+
}
|
54
|
+
|
55
|
+
type fraud_status =
|
56
|
+
:SUSPECTED_FRAUD | :FRAUDULENT | :NOT_FRAUDULENT | :NO_REPORTED_FRAUD
|
57
|
+
|
58
|
+
module FraudStatus
|
59
|
+
extend Lithic::Internal::Type::Enum
|
60
|
+
|
61
|
+
SUSPECTED_FRAUD: :SUSPECTED_FRAUD
|
62
|
+
FRAUDULENT: :FRAUDULENT
|
63
|
+
NOT_FRAUDULENT: :NOT_FRAUDULENT
|
64
|
+
NO_REPORTED_FRAUD: :NO_REPORTED_FRAUD
|
65
|
+
|
66
|
+
def self?.values: -> ::Array[Lithic::Models::Fraud::TransactionReportResponse::fraud_status]
|
67
|
+
end
|
68
|
+
|
69
|
+
type fraud_type =
|
70
|
+
:FIRST_PARTY_FRAUD
|
71
|
+
| :ACCOUNT_TAKEOVER
|
72
|
+
| :CARD_COMPROMISED
|
73
|
+
| :IDENTITY_THEFT
|
74
|
+
| :CARDHOLDER_MANIPULATION
|
75
|
+
|
76
|
+
module FraudType
|
77
|
+
extend Lithic::Internal::Type::Enum
|
78
|
+
|
79
|
+
FIRST_PARTY_FRAUD: :FIRST_PARTY_FRAUD
|
80
|
+
ACCOUNT_TAKEOVER: :ACCOUNT_TAKEOVER
|
81
|
+
CARD_COMPROMISED: :CARD_COMPROMISED
|
82
|
+
IDENTITY_THEFT: :IDENTITY_THEFT
|
83
|
+
CARDHOLDER_MANIPULATION: :CARDHOLDER_MANIPULATION
|
84
|
+
|
85
|
+
def self?.values: -> ::Array[Lithic::Models::Fraud::TransactionReportResponse::fraud_type]
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Lithic
|
2
|
+
module Models
|
3
|
+
module Fraud
|
4
|
+
type transaction_retrieve_params =
|
5
|
+
{ } & Lithic::Internal::Type::request_parameters
|
6
|
+
|
7
|
+
class TransactionRetrieveParams < Lithic::Internal::Type::BaseModel
|
8
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
9
|
+
include Lithic::Internal::Type::RequestParameters
|
10
|
+
|
11
|
+
def initialize: (?request_options: Lithic::request_opts) -> void
|
12
|
+
|
13
|
+
def to_hash: -> { request_options: Lithic::RequestOptions }
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
module Lithic
|
2
|
+
module Models
|
3
|
+
module Fraud
|
4
|
+
type transaction_retrieve_response =
|
5
|
+
{
|
6
|
+
fraud_status: Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_status,
|
7
|
+
transaction_token: String,
|
8
|
+
comment: String,
|
9
|
+
created_at: Time,
|
10
|
+
fraud_type: Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_type,
|
11
|
+
updated_at: Time
|
12
|
+
}
|
13
|
+
|
14
|
+
class TransactionRetrieveResponse < Lithic::Internal::Type::BaseModel
|
15
|
+
attr_accessor fraud_status: Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_status
|
16
|
+
|
17
|
+
attr_accessor transaction_token: String
|
18
|
+
|
19
|
+
attr_reader comment: String?
|
20
|
+
|
21
|
+
def comment=: (String) -> String
|
22
|
+
|
23
|
+
attr_reader created_at: Time?
|
24
|
+
|
25
|
+
def created_at=: (Time) -> Time
|
26
|
+
|
27
|
+
attr_reader fraud_type: Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_type?
|
28
|
+
|
29
|
+
def fraud_type=: (
|
30
|
+
Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_type
|
31
|
+
) -> Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_type
|
32
|
+
|
33
|
+
attr_reader updated_at: Time?
|
34
|
+
|
35
|
+
def updated_at=: (Time) -> Time
|
36
|
+
|
37
|
+
def initialize: (
|
38
|
+
fraud_status: Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_status,
|
39
|
+
transaction_token: String,
|
40
|
+
?comment: String,
|
41
|
+
?created_at: Time,
|
42
|
+
?fraud_type: Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_type,
|
43
|
+
?updated_at: Time
|
44
|
+
) -> void
|
45
|
+
|
46
|
+
def to_hash: -> {
|
47
|
+
fraud_status: Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_status,
|
48
|
+
transaction_token: String,
|
49
|
+
comment: String,
|
50
|
+
created_at: Time,
|
51
|
+
fraud_type: Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_type,
|
52
|
+
updated_at: Time
|
53
|
+
}
|
54
|
+
|
55
|
+
type fraud_status =
|
56
|
+
:SUSPECTED_FRAUD | :FRAUDULENT | :NOT_FRAUDULENT | :NO_REPORTED_FRAUD
|
57
|
+
|
58
|
+
module FraudStatus
|
59
|
+
extend Lithic::Internal::Type::Enum
|
60
|
+
|
61
|
+
SUSPECTED_FRAUD: :SUSPECTED_FRAUD
|
62
|
+
FRAUDULENT: :FRAUDULENT
|
63
|
+
NOT_FRAUDULENT: :NOT_FRAUDULENT
|
64
|
+
NO_REPORTED_FRAUD: :NO_REPORTED_FRAUD
|
65
|
+
|
66
|
+
def self?.values: -> ::Array[Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_status]
|
67
|
+
end
|
68
|
+
|
69
|
+
type fraud_type =
|
70
|
+
:FIRST_PARTY_FRAUD
|
71
|
+
| :ACCOUNT_TAKEOVER
|
72
|
+
| :CARD_COMPROMISED
|
73
|
+
| :IDENTITY_THEFT
|
74
|
+
| :CARDHOLDER_MANIPULATION
|
75
|
+
|
76
|
+
module FraudType
|
77
|
+
extend Lithic::Internal::Type::Enum
|
78
|
+
|
79
|
+
FIRST_PARTY_FRAUD: :FIRST_PARTY_FRAUD
|
80
|
+
ACCOUNT_TAKEOVER: :ACCOUNT_TAKEOVER
|
81
|
+
CARD_COMPROMISED: :CARD_COMPROMISED
|
82
|
+
IDENTITY_THEFT: :IDENTITY_THEFT
|
83
|
+
CARDHOLDER_MANIPULATION: :CARDHOLDER_MANIPULATION
|
84
|
+
|
85
|
+
def self?.values: -> ::Array[Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_type]
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|