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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1c0a988c6f8d21fe6ebaa3f71a6fcb8c9a3fc3daef5fed9748e13bc3ff55979
|
4
|
+
data.tar.gz: 063fc167381abefcf39d7773bb66951f1b4527e6e110aed5a5fd0d8cfd1d1401
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf7f69694992d132bf50a8e7b756b63a9ef2d75d03ec58595928923b99cf43103c6b0278092344b56fae24a544bb79a803a3f6ded833cdf7aa9a9dd705cf930e
|
7
|
+
data.tar.gz: 83b31a2211095144b31c6dede94bd25994c9033f3d3710ee275909b7402c1265a3f60bb1b584eba4a79ed2097350daacf83b9068a6e50a828b5769079ad47fd3
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.1.0-alpha.35 (2025-06-27)
|
4
|
+
|
5
|
+
Full Changelog: [v0.1.0-alpha.34...v0.1.0-alpha.35](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.34...v0.1.0-alpha.35)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** introduce dedicated model for SpendLimitDuration ([47e4f42](https://github.com/lithic-com/lithic-ruby/commit/47e4f42231c996fe56ff2f681baaae2ac1c6c588))
|
10
|
+
|
11
|
+
## 0.1.0-alpha.34 (2025-06-26)
|
12
|
+
|
13
|
+
Full Changelog: [v0.1.0-alpha.33...v0.1.0-alpha.34](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.33...v0.1.0-alpha.34)
|
14
|
+
|
15
|
+
### Features
|
16
|
+
|
17
|
+
* **client:** adds support for on-demand Auth Rule Performance Reports ([54fcb64](https://github.com/lithic-com/lithic-ruby/commit/54fcb64ea4678afd8049d070b5f28873beeec3a4))
|
18
|
+
|
19
|
+
|
20
|
+
### Bug Fixes
|
21
|
+
|
22
|
+
* **ci:** release-doctor — report correct token name ([664a344](https://github.com/lithic-com/lithic-ruby/commit/664a344c803fc568d8011c18acb0246564a589ec))
|
23
|
+
|
3
24
|
## 0.1.0-alpha.33 (2025-06-18)
|
4
25
|
|
5
26
|
Full Changelog: [v0.1.0-alpha.32...v0.1.0-alpha.33](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.32...v0.1.0-alpha.33)
|
data/README.md
CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
15
15
|
<!-- x-release-please-start-version -->
|
16
16
|
|
17
17
|
```ruby
|
18
|
-
gem "lithic", "~> 0.1.0.pre.alpha.
|
18
|
+
gem "lithic", "~> 0.1.0.pre.alpha.35"
|
19
19
|
```
|
20
20
|
|
21
21
|
<!-- x-release-please-end -->
|
data/lib/lithic/client.rb
CHANGED
@@ -101,6 +101,9 @@ module Lithic
|
|
101
101
|
# @return [Lithic::Resources::FundingEvents]
|
102
102
|
attr_reader :funding_events
|
103
103
|
|
104
|
+
# @return [Lithic::Resources::Fraud]
|
105
|
+
attr_reader :fraud
|
106
|
+
|
104
107
|
# Status of api
|
105
108
|
#
|
106
109
|
# @overload api_status(request_options: {})
|
@@ -201,6 +204,7 @@ module Lithic
|
|
201
204
|
@external_payments = Lithic::Resources::ExternalPayments.new(client: self)
|
202
205
|
@management_operations = Lithic::Resources::ManagementOperations.new(client: self)
|
203
206
|
@funding_events = Lithic::Resources::FundingEvents.new(client: self)
|
207
|
+
@fraud = Lithic::Resources::Fraud.new(client: self)
|
204
208
|
end
|
205
209
|
end
|
206
210
|
end
|
@@ -0,0 +1,112 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
module AuthRules
|
6
|
+
class RuleStats < Lithic::Internal::Type::BaseModel
|
7
|
+
# @!attribute approved
|
8
|
+
# The total number of historical transactions approved by this rule during the
|
9
|
+
# relevant period, or the number of transactions that would have been approved if
|
10
|
+
# the rule was evaluated in shadow mode.
|
11
|
+
#
|
12
|
+
# @return [Integer, nil]
|
13
|
+
optional :approved, Integer
|
14
|
+
|
15
|
+
# @!attribute challenged
|
16
|
+
# The total number of historical transactions challenged by this rule during the
|
17
|
+
# relevant period, or the number of transactions that would have been challenged
|
18
|
+
# if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth
|
19
|
+
# Rules.
|
20
|
+
#
|
21
|
+
# @return [Integer, nil]
|
22
|
+
optional :challenged, Integer
|
23
|
+
|
24
|
+
# @!attribute declined
|
25
|
+
# The total number of historical transactions declined by this rule during the
|
26
|
+
# relevant period, or the number of transactions that would have been declined if
|
27
|
+
# the rule was evaluated in shadow mode.
|
28
|
+
#
|
29
|
+
# @return [Integer, nil]
|
30
|
+
optional :declined, Integer
|
31
|
+
|
32
|
+
# @!attribute examples
|
33
|
+
# Example events and their outcomes.
|
34
|
+
#
|
35
|
+
# @return [Array<Lithic::Models::AuthRules::RuleStats::Example>, nil]
|
36
|
+
optional :examples, -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::RuleStats::Example] }
|
37
|
+
|
38
|
+
response_only do
|
39
|
+
# @!attribute version
|
40
|
+
# The version of the rule, this is incremented whenever the rule's parameters
|
41
|
+
# change.
|
42
|
+
#
|
43
|
+
# @return [Integer, nil]
|
44
|
+
optional :version, Integer
|
45
|
+
end
|
46
|
+
|
47
|
+
# @!method initialize(approved: nil, challenged: nil, declined: nil, examples: nil, version: nil)
|
48
|
+
# Some parameter documentations has been truncated, see
|
49
|
+
# {Lithic::Models::AuthRules::RuleStats} for more details.
|
50
|
+
#
|
51
|
+
# @param approved [Integer] The total number of historical transactions approved by this rule during the rel
|
52
|
+
#
|
53
|
+
# @param challenged [Integer] The total number of historical transactions challenged by this rule during the r
|
54
|
+
#
|
55
|
+
# @param declined [Integer] The total number of historical transactions declined by this rule during the rel
|
56
|
+
#
|
57
|
+
# @param examples [Array<Lithic::Models::AuthRules::RuleStats::Example>] Example events and their outcomes.
|
58
|
+
#
|
59
|
+
# @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan
|
60
|
+
|
61
|
+
class Example < Lithic::Internal::Type::BaseModel
|
62
|
+
# @!attribute approved
|
63
|
+
# Whether the rule would have approved the request.
|
64
|
+
#
|
65
|
+
# @return [Boolean, nil]
|
66
|
+
optional :approved, Lithic::Internal::Type::Boolean
|
67
|
+
|
68
|
+
# @!attribute decision
|
69
|
+
# The decision made by the rule for this event.
|
70
|
+
#
|
71
|
+
# @return [Symbol, Lithic::Models::AuthRules::RuleStats::Example::Decision, nil]
|
72
|
+
optional :decision, enum: -> { Lithic::AuthRules::RuleStats::Example::Decision }
|
73
|
+
|
74
|
+
# @!attribute event_token
|
75
|
+
# The event token.
|
76
|
+
#
|
77
|
+
# @return [String, nil]
|
78
|
+
optional :event_token, String
|
79
|
+
|
80
|
+
# @!attribute timestamp
|
81
|
+
# The timestamp of the event.
|
82
|
+
#
|
83
|
+
# @return [Time, nil]
|
84
|
+
optional :timestamp, Time
|
85
|
+
|
86
|
+
# @!method initialize(approved: nil, decision: nil, event_token: nil, timestamp: nil)
|
87
|
+
# @param approved [Boolean] Whether the rule would have approved the request.
|
88
|
+
#
|
89
|
+
# @param decision [Symbol, Lithic::Models::AuthRules::RuleStats::Example::Decision] The decision made by the rule for this event.
|
90
|
+
#
|
91
|
+
# @param event_token [String] The event token.
|
92
|
+
#
|
93
|
+
# @param timestamp [Time] The timestamp of the event.
|
94
|
+
|
95
|
+
# The decision made by the rule for this event.
|
96
|
+
#
|
97
|
+
# @see Lithic::Models::AuthRules::RuleStats::Example#decision
|
98
|
+
module Decision
|
99
|
+
extend Lithic::Internal::Type::Enum
|
100
|
+
|
101
|
+
APPROVED = :APPROVED
|
102
|
+
DECLINED = :DECLINED
|
103
|
+
CHALLENGED = :CHALLENGED
|
104
|
+
|
105
|
+
# @!method self.values
|
106
|
+
# @return [Array<Symbol>]
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
@@ -33,249 +33,17 @@ module Lithic
|
|
33
33
|
class Results < Lithic::Internal::Type::BaseModel
|
34
34
|
# @!attribute current_version
|
35
35
|
#
|
36
|
-
# @return [Lithic::Models::AuthRules::
|
37
|
-
optional :current_version,
|
38
|
-
-> { Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion },
|
39
|
-
nil?: true
|
36
|
+
# @return [Lithic::Models::AuthRules::RuleStats, nil]
|
37
|
+
optional :current_version, -> { Lithic::AuthRules::RuleStats }, nil?: true
|
40
38
|
|
41
39
|
# @!attribute draft_version
|
42
40
|
#
|
43
|
-
# @return [Lithic::Models::AuthRules::
|
44
|
-
optional :draft_version,
|
45
|
-
-> {
|
46
|
-
Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion
|
47
|
-
},
|
48
|
-
nil?: true
|
41
|
+
# @return [Lithic::Models::AuthRules::RuleStats, nil]
|
42
|
+
optional :draft_version, -> { Lithic::AuthRules::RuleStats }, nil?: true
|
49
43
|
|
50
44
|
# @!method initialize(current_version: nil, draft_version: nil)
|
51
|
-
# @param current_version [Lithic::Models::AuthRules::
|
52
|
-
# @param draft_version [Lithic::Models::AuthRules::
|
53
|
-
|
54
|
-
# @see Lithic::Models::AuthRules::V2::BacktestResults::Results#current_version
|
55
|
-
class CurrentVersion < Lithic::Internal::Type::BaseModel
|
56
|
-
# @!attribute approved
|
57
|
-
# The total number of historical transactions approved by this rule during the
|
58
|
-
# relevant period, or the number of transactions that would have been approved if
|
59
|
-
# the rule was evaluated in shadow mode.
|
60
|
-
#
|
61
|
-
# @return [Integer, nil]
|
62
|
-
optional :approved, Integer
|
63
|
-
|
64
|
-
# @!attribute challenged
|
65
|
-
# The total number of historical transactions challenged by this rule during the
|
66
|
-
# relevant period, or the number of transactions that would have been challenged
|
67
|
-
# if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth
|
68
|
-
# Rules.
|
69
|
-
#
|
70
|
-
# @return [Integer, nil]
|
71
|
-
optional :challenged, Integer
|
72
|
-
|
73
|
-
# @!attribute declined
|
74
|
-
# The total number of historical transactions declined by this rule during the
|
75
|
-
# relevant period, or the number of transactions that would have been declined if
|
76
|
-
# the rule was evaluated in shadow mode.
|
77
|
-
#
|
78
|
-
# @return [Integer, nil]
|
79
|
-
optional :declined, Integer
|
80
|
-
|
81
|
-
# @!attribute examples
|
82
|
-
# Example events and their outcomes.
|
83
|
-
#
|
84
|
-
# @return [Array<Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example>, nil]
|
85
|
-
optional :examples,
|
86
|
-
-> {
|
87
|
-
Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example]
|
88
|
-
}
|
89
|
-
|
90
|
-
response_only do
|
91
|
-
# @!attribute version
|
92
|
-
# The version of the rule, this is incremented whenever the rule's parameters
|
93
|
-
# change.
|
94
|
-
#
|
95
|
-
# @return [Integer, nil]
|
96
|
-
optional :version, Integer
|
97
|
-
end
|
98
|
-
|
99
|
-
# @!method initialize(approved: nil, challenged: nil, declined: nil, examples: nil, version: nil)
|
100
|
-
# Some parameter documentations has been truncated, see
|
101
|
-
# {Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion} for
|
102
|
-
# more details.
|
103
|
-
#
|
104
|
-
# @param approved [Integer] The total number of historical transactions approved by this rule during the rel
|
105
|
-
#
|
106
|
-
# @param challenged [Integer] The total number of historical transactions challenged by this rule during the r
|
107
|
-
#
|
108
|
-
# @param declined [Integer] The total number of historical transactions declined by this rule during the rel
|
109
|
-
#
|
110
|
-
# @param examples [Array<Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example>] Example events and their outcomes.
|
111
|
-
#
|
112
|
-
# @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan
|
113
|
-
|
114
|
-
class Example < Lithic::Internal::Type::BaseModel
|
115
|
-
# @!attribute approved
|
116
|
-
# Whether the rule would have approved the request.
|
117
|
-
#
|
118
|
-
# @return [Boolean, nil]
|
119
|
-
optional :approved, Lithic::Internal::Type::Boolean
|
120
|
-
|
121
|
-
# @!attribute decision
|
122
|
-
# The decision made by the rule for this event.
|
123
|
-
#
|
124
|
-
# @return [Symbol, Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::Decision, nil]
|
125
|
-
optional :decision,
|
126
|
-
enum: -> {
|
127
|
-
Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::Decision
|
128
|
-
}
|
129
|
-
|
130
|
-
# @!attribute event_token
|
131
|
-
# The event token.
|
132
|
-
#
|
133
|
-
# @return [String, nil]
|
134
|
-
optional :event_token, String
|
135
|
-
|
136
|
-
# @!attribute timestamp
|
137
|
-
# The timestamp of the event.
|
138
|
-
#
|
139
|
-
# @return [Time, nil]
|
140
|
-
optional :timestamp, Time
|
141
|
-
|
142
|
-
# @!method initialize(approved: nil, decision: nil, event_token: nil, timestamp: nil)
|
143
|
-
# @param approved [Boolean] Whether the rule would have approved the request.
|
144
|
-
#
|
145
|
-
# @param decision [Symbol, Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::Decision] The decision made by the rule for this event.
|
146
|
-
#
|
147
|
-
# @param event_token [String] The event token.
|
148
|
-
#
|
149
|
-
# @param timestamp [Time] The timestamp of the event.
|
150
|
-
|
151
|
-
# The decision made by the rule for this event.
|
152
|
-
#
|
153
|
-
# @see Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example#decision
|
154
|
-
module Decision
|
155
|
-
extend Lithic::Internal::Type::Enum
|
156
|
-
|
157
|
-
APPROVED = :APPROVED
|
158
|
-
DECLINED = :DECLINED
|
159
|
-
CHALLENGED = :CHALLENGED
|
160
|
-
|
161
|
-
# @!method self.values
|
162
|
-
# @return [Array<Symbol>]
|
163
|
-
end
|
164
|
-
end
|
165
|
-
end
|
166
|
-
|
167
|
-
# @see Lithic::Models::AuthRules::V2::BacktestResults::Results#draft_version
|
168
|
-
class DraftVersion < Lithic::Internal::Type::BaseModel
|
169
|
-
# @!attribute approved
|
170
|
-
# The total number of historical transactions approved by this rule during the
|
171
|
-
# relevant period, or the number of transactions that would have been approved if
|
172
|
-
# the rule was evaluated in shadow mode.
|
173
|
-
#
|
174
|
-
# @return [Integer, nil]
|
175
|
-
optional :approved, Integer
|
176
|
-
|
177
|
-
# @!attribute challenged
|
178
|
-
# The total number of historical transactions challenged by this rule during the
|
179
|
-
# relevant period, or the number of transactions that would have been challenged
|
180
|
-
# if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth
|
181
|
-
# Rules.
|
182
|
-
#
|
183
|
-
# @return [Integer, nil]
|
184
|
-
optional :challenged, Integer
|
185
|
-
|
186
|
-
# @!attribute declined
|
187
|
-
# The total number of historical transactions declined by this rule during the
|
188
|
-
# relevant period, or the number of transactions that would have been declined if
|
189
|
-
# the rule was evaluated in shadow mode.
|
190
|
-
#
|
191
|
-
# @return [Integer, nil]
|
192
|
-
optional :declined, Integer
|
193
|
-
|
194
|
-
# @!attribute examples
|
195
|
-
# Example events and their outcomes.
|
196
|
-
#
|
197
|
-
# @return [Array<Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example>, nil]
|
198
|
-
optional :examples,
|
199
|
-
-> {
|
200
|
-
Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example]
|
201
|
-
}
|
202
|
-
|
203
|
-
response_only do
|
204
|
-
# @!attribute version
|
205
|
-
# The version of the rule, this is incremented whenever the rule's parameters
|
206
|
-
# change.
|
207
|
-
#
|
208
|
-
# @return [Integer, nil]
|
209
|
-
optional :version, Integer
|
210
|
-
end
|
211
|
-
|
212
|
-
# @!method initialize(approved: nil, challenged: nil, declined: nil, examples: nil, version: nil)
|
213
|
-
# Some parameter documentations has been truncated, see
|
214
|
-
# {Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion} for more
|
215
|
-
# details.
|
216
|
-
#
|
217
|
-
# @param approved [Integer] The total number of historical transactions approved by this rule during the rel
|
218
|
-
#
|
219
|
-
# @param challenged [Integer] The total number of historical transactions challenged by this rule during the r
|
220
|
-
#
|
221
|
-
# @param declined [Integer] The total number of historical transactions declined by this rule during the rel
|
222
|
-
#
|
223
|
-
# @param examples [Array<Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example>] Example events and their outcomes.
|
224
|
-
#
|
225
|
-
# @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan
|
226
|
-
|
227
|
-
class Example < Lithic::Internal::Type::BaseModel
|
228
|
-
# @!attribute approved
|
229
|
-
# Whether the rule would have approved the request.
|
230
|
-
#
|
231
|
-
# @return [Boolean, nil]
|
232
|
-
optional :approved, Lithic::Internal::Type::Boolean
|
233
|
-
|
234
|
-
# @!attribute decision
|
235
|
-
# The decision made by the rule for this event.
|
236
|
-
#
|
237
|
-
# @return [Symbol, Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::Decision, nil]
|
238
|
-
optional :decision,
|
239
|
-
enum: -> {
|
240
|
-
Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::Decision
|
241
|
-
}
|
242
|
-
|
243
|
-
# @!attribute event_token
|
244
|
-
# The event token.
|
245
|
-
#
|
246
|
-
# @return [String, nil]
|
247
|
-
optional :event_token, String
|
248
|
-
|
249
|
-
# @!attribute timestamp
|
250
|
-
# The timestamp of the event.
|
251
|
-
#
|
252
|
-
# @return [Time, nil]
|
253
|
-
optional :timestamp, Time
|
254
|
-
|
255
|
-
# @!method initialize(approved: nil, decision: nil, event_token: nil, timestamp: nil)
|
256
|
-
# @param approved [Boolean] Whether the rule would have approved the request.
|
257
|
-
#
|
258
|
-
# @param decision [Symbol, Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::Decision] The decision made by the rule for this event.
|
259
|
-
#
|
260
|
-
# @param event_token [String] The event token.
|
261
|
-
#
|
262
|
-
# @param timestamp [Time] The timestamp of the event.
|
263
|
-
|
264
|
-
# The decision made by the rule for this event.
|
265
|
-
#
|
266
|
-
# @see Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example#decision
|
267
|
-
module Decision
|
268
|
-
extend Lithic::Internal::Type::Enum
|
269
|
-
|
270
|
-
APPROVED = :APPROVED
|
271
|
-
DECLINED = :DECLINED
|
272
|
-
CHALLENGED = :CHALLENGED
|
273
|
-
|
274
|
-
# @!method self.values
|
275
|
-
# @return [Array<Symbol>]
|
276
|
-
end
|
277
|
-
end
|
278
|
-
end
|
45
|
+
# @param current_version [Lithic::Models::AuthRules::RuleStats, nil]
|
46
|
+
# @param draft_version [Lithic::Models::AuthRules::RuleStats, nil]
|
279
47
|
end
|
280
48
|
|
281
49
|
# @see Lithic::Models::AuthRules::V2::BacktestResults#simulation_parameters
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
module AuthRules
|
6
|
+
# @see Lithic::Resources::AuthRules::V2#retrieve_report
|
7
|
+
class V2RetrieveReportParams < Lithic::Internal::Type::BaseModel
|
8
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
9
|
+
include Lithic::Internal::Type::RequestParameters
|
10
|
+
|
11
|
+
# @!attribute begin_
|
12
|
+
# Start date for the report
|
13
|
+
#
|
14
|
+
# @return [Date]
|
15
|
+
required :begin_, Date
|
16
|
+
|
17
|
+
# @!attribute end_
|
18
|
+
# End date for the report
|
19
|
+
#
|
20
|
+
# @return [Date]
|
21
|
+
required :end_, Date
|
22
|
+
|
23
|
+
# @!method initialize(begin_:, end_:, request_options: {})
|
24
|
+
# @param begin_ [Date] Start date for the report
|
25
|
+
#
|
26
|
+
# @param end_ [Date] End date for the report
|
27
|
+
#
|
28
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
module AuthRules
|
6
|
+
# @see Lithic::Resources::AuthRules::V2#retrieve_report
|
7
|
+
class V2RetrieveReportResponse < Lithic::Internal::Type::BaseModel
|
8
|
+
# @!attribute auth_rule_token
|
9
|
+
# Auth Rule Token
|
10
|
+
#
|
11
|
+
# @return [String]
|
12
|
+
required :auth_rule_token, String
|
13
|
+
|
14
|
+
# @!attribute begin_
|
15
|
+
# The start date (UTC) of the report.
|
16
|
+
#
|
17
|
+
# @return [Date]
|
18
|
+
required :begin_, Date, api_name: :begin
|
19
|
+
|
20
|
+
# @!attribute daily_statistics
|
21
|
+
# Daily evaluation statistics for the Auth Rule.
|
22
|
+
#
|
23
|
+
# @return [Array<Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic>]
|
24
|
+
required :daily_statistics,
|
25
|
+
-> { Lithic::Internal::Type::ArrayOf[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic] }
|
26
|
+
|
27
|
+
# @!attribute end_
|
28
|
+
# The end date (UTC) of the report.
|
29
|
+
#
|
30
|
+
# @return [Date]
|
31
|
+
required :end_, Date, api_name: :end
|
32
|
+
|
33
|
+
# @!method initialize(auth_rule_token:, begin_:, daily_statistics:, end_:)
|
34
|
+
# @param auth_rule_token [String] Auth Rule Token
|
35
|
+
#
|
36
|
+
# @param begin_ [Date] The start date (UTC) of the report.
|
37
|
+
#
|
38
|
+
# @param daily_statistics [Array<Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic>] Daily evaluation statistics for the Auth Rule.
|
39
|
+
#
|
40
|
+
# @param end_ [Date] The end date (UTC) of the report.
|
41
|
+
|
42
|
+
class DailyStatistic < Lithic::Internal::Type::BaseModel
|
43
|
+
# @!attribute current_version_statistics
|
44
|
+
# Detailed statistics for the current version of the rule.
|
45
|
+
#
|
46
|
+
# @return [Lithic::Models::AuthRules::RuleStats, nil]
|
47
|
+
required :current_version_statistics, -> { Lithic::AuthRules::RuleStats }, nil?: true
|
48
|
+
|
49
|
+
# @!attribute date
|
50
|
+
# The date (UTC) for which the statistics are reported.
|
51
|
+
#
|
52
|
+
# @return [Date]
|
53
|
+
required :date, Date
|
54
|
+
|
55
|
+
# @!attribute draft_version_statistics
|
56
|
+
# Detailed statistics for the draft version of the rule.
|
57
|
+
#
|
58
|
+
# @return [Lithic::Models::AuthRules::RuleStats, nil]
|
59
|
+
required :draft_version_statistics, -> { Lithic::AuthRules::RuleStats }, nil?: true
|
60
|
+
|
61
|
+
# @!method initialize(current_version_statistics:, date:, draft_version_statistics:)
|
62
|
+
# @param current_version_statistics [Lithic::Models::AuthRules::RuleStats, nil] Detailed statistics for the current version of the rule.
|
63
|
+
#
|
64
|
+
# @param date [Date] The date (UTC) for which the statistics are reported.
|
65
|
+
#
|
66
|
+
# @param draft_version_statistics [Lithic::Models::AuthRules::RuleStats, nil] Detailed statistics for the draft version of the rule.
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -36,10 +36,12 @@ module Lithic
|
|
36
36
|
# - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option,
|
37
37
|
# with tracking
|
38
38
|
# - `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking
|
39
|
-
# - `EXPRESS` - FedEx Express, 3-day
|
40
|
-
#
|
41
|
-
# - `
|
39
|
+
# - `EXPRESS` - FedEx or UPS depending on card manufacturer, Express, 3-day
|
40
|
+
# shipping, with tracking
|
41
|
+
# - `2_DAY` - FedEx or UPS depending on card manufacturer, 2-day shipping, with
|
42
42
|
# tracking
|
43
|
+
# - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
|
44
|
+
# or similar international option, with tracking
|
43
45
|
#
|
44
46
|
# @return [Symbol, Lithic::Models::CardConvertPhysicalParams::ShippingMethod, nil]
|
45
47
|
optional :shipping_method, enum: -> { Lithic::CardConvertPhysicalParams::ShippingMethod }
|
@@ -66,10 +68,12 @@ module Lithic
|
|
66
68
|
# - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option,
|
67
69
|
# with tracking
|
68
70
|
# - `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking
|
69
|
-
# - `EXPRESS` - FedEx Express, 3-day
|
70
|
-
#
|
71
|
-
# - `
|
71
|
+
# - `EXPRESS` - FedEx or UPS depending on card manufacturer, Express, 3-day
|
72
|
+
# shipping, with tracking
|
73
|
+
# - `2_DAY` - FedEx or UPS depending on card manufacturer, 2-day shipping, with
|
72
74
|
# tracking
|
75
|
+
# - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
|
76
|
+
# or similar international option, with tracking
|
73
77
|
module ShippingMethod
|
74
78
|
extend Lithic::Internal::Type::Enum
|
75
79
|
|
@@ -130,10 +130,12 @@ module Lithic
|
|
130
130
|
# - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option,
|
131
131
|
# with tracking
|
132
132
|
# - `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking
|
133
|
-
# - `EXPRESS` - FedEx Express, 3-day
|
134
|
-
#
|
135
|
-
# - `
|
133
|
+
# - `EXPRESS` - FedEx or UPS depending on card manufacturer, Express, 3-day
|
134
|
+
# shipping, with tracking
|
135
|
+
# - `2_DAY` - FedEx or UPS depending on card manufacturer, 2-day shipping, with
|
136
136
|
# tracking
|
137
|
+
# - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
|
138
|
+
# or similar international option, with tracking
|
137
139
|
#
|
138
140
|
# @return [Symbol, Lithic::Models::CardCreateParams::ShippingMethod, nil]
|
139
141
|
optional :shipping_method, enum: -> { Lithic::CardCreateParams::ShippingMethod }
|
@@ -254,10 +256,12 @@ module Lithic
|
|
254
256
|
# - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option,
|
255
257
|
# with tracking
|
256
258
|
# - `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking
|
257
|
-
# - `EXPRESS` - FedEx Express, 3-day
|
258
|
-
#
|
259
|
-
# - `
|
259
|
+
# - `EXPRESS` - FedEx or UPS depending on card manufacturer, Express, 3-day
|
260
|
+
# shipping, with tracking
|
261
|
+
# - `2_DAY` - FedEx or UPS depending on card manufacturer, 2-day shipping, with
|
260
262
|
# tracking
|
263
|
+
# - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
|
264
|
+
# or similar international option, with tracking
|
261
265
|
module ShippingMethod
|
262
266
|
extend Lithic::Internal::Type::Enum
|
263
267
|
|
@@ -36,10 +36,12 @@ module Lithic
|
|
36
36
|
# - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option,
|
37
37
|
# with tracking
|
38
38
|
# - `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking
|
39
|
-
# - `EXPRESS` - FedEx Express, 3-day
|
40
|
-
#
|
41
|
-
# - `
|
39
|
+
# - `EXPRESS` - FedEx or UPS depending on card manufacturer, Express, 3-day
|
40
|
+
# shipping, with tracking
|
41
|
+
# - `2_DAY` - FedEx or UPS depending on card manufacturer, 2-day shipping, with
|
42
42
|
# tracking
|
43
|
+
# - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
|
44
|
+
# or similar international option, with tracking
|
43
45
|
#
|
44
46
|
# @return [Symbol, Lithic::Models::CardReissueParams::ShippingMethod, nil]
|
45
47
|
optional :shipping_method, enum: -> { Lithic::CardReissueParams::ShippingMethod }
|
@@ -66,10 +68,12 @@ module Lithic
|
|
66
68
|
# - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option,
|
67
69
|
# with tracking
|
68
70
|
# - `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking
|
69
|
-
# - `EXPRESS` - FedEx Express, 3-day
|
70
|
-
#
|
71
|
-
# - `
|
71
|
+
# - `EXPRESS` - FedEx or UPS depending on card manufacturer, Express, 3-day
|
72
|
+
# shipping, with tracking
|
73
|
+
# - `2_DAY` - FedEx or UPS depending on card manufacturer, 2-day shipping, with
|
72
74
|
# tracking
|
75
|
+
# - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
|
76
|
+
# or similar international option, with tracking
|
73
77
|
module ShippingMethod
|
74
78
|
extend Lithic::Internal::Type::Enum
|
75
79
|
|