lithic 0.1.0.pre.alpha.33 → 0.1.0.pre.alpha.34

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.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/models/auth_rules/rule_stats.rb +112 -0
  6. data/lib/lithic/models/auth_rules/v2/backtest_results.rb +6 -238
  7. data/lib/lithic/models/auth_rules/v2_retrieve_report_params.rb +32 -0
  8. data/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb +71 -0
  9. data/lib/lithic/models/card_convert_physical_params.rb +10 -6
  10. data/lib/lithic/models/card_create_params.rb +10 -6
  11. data/lib/lithic/models/card_reissue_params.rb +10 -6
  12. data/lib/lithic/models/card_renew_params.rb +10 -6
  13. data/lib/lithic/models/external_bank_account_create_params.rb +1 -1
  14. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +1 -0
  15. data/lib/lithic/models/financial_transaction.rb +1 -0
  16. data/lib/lithic/models/fraud/transaction_report_params.rb +130 -0
  17. data/lib/lithic/models/fraud/transaction_report_response.rb +160 -0
  18. data/lib/lithic/models/fraud/transaction_retrieve_params.rb +16 -0
  19. data/lib/lithic/models/fraud/transaction_retrieve_response.rb +160 -0
  20. data/lib/lithic/models/payment.rb +7 -1
  21. data/lib/lithic/models/payment_create_params.rb +7 -1
  22. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +111 -79
  23. data/lib/lithic/models/three_ds/authentication_simulate_params.rb +8 -2
  24. data/lib/lithic/models/three_ds/authentication_simulate_response.rb +2 -6
  25. data/lib/lithic/models/three_ds/challenge_response.rb +7 -7
  26. data/lib/lithic/models/three_ds/challenge_result.rb +1 -1
  27. data/lib/lithic/models/transfer.rb +1 -0
  28. data/lib/lithic/models.rb +2 -0
  29. data/lib/lithic/resources/auth_rules/v2/backtests.rb +8 -7
  30. data/lib/lithic/resources/auth_rules/v2.rb +45 -4
  31. data/lib/lithic/resources/fraud/transactions.rb +69 -0
  32. data/lib/lithic/resources/fraud.rb +18 -0
  33. data/lib/lithic/resources/three_ds/authentication.rb +6 -6
  34. data/lib/lithic/resources/three_ds/decisioning.rb +8 -3
  35. data/lib/lithic/version.rb +1 -1
  36. data/lib/lithic.rb +9 -0
  37. data/rbi/lithic/client.rbi +3 -0
  38. data/rbi/lithic/models/auth_rules/rule_stats.rbi +229 -0
  39. data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +8 -523
  40. data/rbi/lithic/models/auth_rules/v2_retrieve_report_params.rbi +56 -0
  41. data/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi +149 -0
  42. data/rbi/lithic/models/card_convert_physical_params.rbi +15 -9
  43. data/rbi/lithic/models/card_create_params.rbi +15 -9
  44. data/rbi/lithic/models/card_reissue_params.rbi +15 -9
  45. data/rbi/lithic/models/card_renew_params.rbi +15 -9
  46. data/rbi/lithic/models/external_bank_account_create_params.rbi +2 -2
  47. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +5 -0
  48. data/rbi/lithic/models/financial_transaction.rbi +5 -0
  49. data/rbi/lithic/models/fraud/transaction_report_params.rbi +263 -0
  50. data/rbi/lithic/models/fraud/transaction_report_response.rbi +309 -0
  51. data/rbi/lithic/models/fraud/transaction_retrieve_params.rbi +32 -0
  52. data/rbi/lithic/models/fraud/transaction_retrieve_response.rbi +309 -0
  53. data/rbi/lithic/models/payment.rbi +9 -3
  54. data/rbi/lithic/models/payment_create_params.rbi +8 -3
  55. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +171 -108
  56. data/rbi/lithic/models/three_ds/authentication_simulate_params.rbi +6 -0
  57. data/rbi/lithic/models/three_ds/authentication_simulate_response.rbi +2 -4
  58. data/rbi/lithic/models/three_ds/challenge_response.rbi +7 -10
  59. data/rbi/lithic/models/three_ds/challenge_result.rbi +1 -1
  60. data/rbi/lithic/models/transfer.rbi +2 -0
  61. data/rbi/lithic/models.rbi +2 -0
  62. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +8 -7
  63. data/rbi/lithic/resources/auth_rules/v2.rbi +37 -4
  64. data/rbi/lithic/resources/cards.rbi +20 -12
  65. data/rbi/lithic/resources/fraud/transactions.rbi +86 -0
  66. data/rbi/lithic/resources/fraud.rbi +15 -0
  67. data/rbi/lithic/resources/three_ds/authentication.rbi +6 -4
  68. data/rbi/lithic/resources/three_ds/decisioning.rbi +9 -6
  69. data/sig/lithic/client.rbs +2 -0
  70. data/sig/lithic/models/auth_rules/rule_stats.rbs +108 -0
  71. data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +8 -214
  72. data/sig/lithic/models/auth_rules/v2_retrieve_report_params.rbs +30 -0
  73. data/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs +64 -0
  74. data/sig/lithic/models/external_bank_account_create_params.rbs +2 -2
  75. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +2 -0
  76. data/sig/lithic/models/financial_transaction.rbs +2 -0
  77. data/sig/lithic/models/fraud/transaction_report_params.rbs +75 -0
  78. data/sig/lithic/models/fraud/transaction_report_response.rbs +90 -0
  79. data/sig/lithic/models/fraud/transaction_retrieve_params.rbs +17 -0
  80. data/sig/lithic/models/fraud/transaction_retrieve_response.rbs +90 -0
  81. data/sig/lithic/models/payment.rbs +8 -3
  82. data/sig/lithic/models/payment_create_params.rbs +8 -3
  83. data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +19 -20
  84. data/sig/lithic/models/transfer.rbs +2 -0
  85. data/sig/lithic/models.rbs +2 -0
  86. data/sig/lithic/resources/auth_rules/v2.rbs +7 -0
  87. data/sig/lithic/resources/fraud/transactions.rbs +22 -0
  88. data/sig/lithic/resources/fraud.rbs +9 -0
  89. metadata +29 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8924d8ef7cad2f0246ba9420d2304fc5693c6684d32882f2ee6002616f69588
4
- data.tar.gz: 8c95425e47cbfbcd622a7f0cea5632a27a4a413f54ecf90883ce62414e65867f
3
+ metadata.gz: fc2b97724913cf259b2ddeaea843b6f8d6e13750145554108b6d1d695ef18543
4
+ data.tar.gz: f9160e474aa8fb0aceaf9a5fdb3b2478caed27cda5c96489bef2c2b9c449f1e4
5
5
  SHA512:
6
- metadata.gz: 668268fb4e37997bd3a854c9283b9c77f48b29f6301f4eab63dc36c3c86ed7faa26abc07ec531d9ac6e9c6faad8fe5a9dce150af99d64cc910db3c846f5a6e1a
7
- data.tar.gz: bfba3fdfa14849cd336551d94000171413adcc1d5db58aa5c002006faf37e8eb14ea2e7e7d324ec05c2fceb6b94be99e62c694f3fe83f55d25c851cd02b8cf19
6
+ metadata.gz: 9b873bd933dbddcbce2206ea4d35604ce9714fb120675c4296bc6f2a0bc992951d54ed59f08e478a459553f92aced06a85aca339d4ff5295d404a0965ff7b048
7
+ data.tar.gz: 7428fb3a12056ee6ed8cad57d00f7a1abf00285ee07f9c8f0d7e94ddab003eaf3ac9fd8ce831868b69afb0594bdcbcecd6f91983a35b328eddf9ae6cfbde83f3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.34 (2025-06-26)
4
+
5
+ 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)
6
+
7
+ ### Features
8
+
9
+ * **client:** adds support for on-demand Auth Rule Performance Reports ([54fcb64](https://github.com/lithic-com/lithic-ruby/commit/54fcb64ea4678afd8049d070b5f28873beeec3a4))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **ci:** release-doctor — report correct token name ([664a344](https://github.com/lithic-com/lithic-ruby/commit/664a344c803fc568d8011c18acb0246564a589ec))
15
+
3
16
  ## 0.1.0-alpha.33 (2025-06-18)
4
17
 
5
18
  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.33"
18
+ gem "lithic", "~> 0.1.0.pre.alpha.34"
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::V2::BacktestResults::Results::CurrentVersion, nil]
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::V2::BacktestResults::Results::DraftVersion, nil]
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::V2::BacktestResults::Results::CurrentVersion, nil]
52
- # @param draft_version [Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion, nil]
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 shipping, with tracking
40
- # - `2_DAY` - FedEx 2-day shipping, with tracking
41
- # - `EXPEDITED` - FedEx Standard Overnight or similar international option, with
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 shipping, with tracking
70
- # - `2_DAY` - FedEx 2-day shipping, with tracking
71
- # - `EXPEDITED` - FedEx Standard Overnight or similar international option, with
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 shipping, with tracking
134
- # - `2_DAY` - FedEx 2-day shipping, with tracking
135
- # - `EXPEDITED` - FedEx Standard Overnight or similar international option, with
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 shipping, with tracking
258
- # - `2_DAY` - FedEx 2-day shipping, with tracking
259
- # - `EXPEDITED` - FedEx Standard Overnight or similar international option, with
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 shipping, with tracking
40
- # - `2_DAY` - FedEx 2-day shipping, with tracking
41
- # - `EXPEDITED` - FedEx Standard Overnight or similar international option, with
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 shipping, with tracking
70
- # - `2_DAY` - FedEx 2-day shipping, with tracking
71
- # - `EXPEDITED` - FedEx Standard Overnight or similar international option, with
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
 
@@ -50,10 +50,12 @@ module Lithic
50
50
  # - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option,
51
51
  # with tracking
52
52
  # - `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking
53
- # - `EXPRESS` - FedEx Express, 3-day shipping, with tracking
54
- # - `2_DAY` - FedEx 2-day shipping, with tracking
55
- # - `EXPEDITED` - FedEx Standard Overnight or similar international option, with
53
+ # - `EXPRESS` - FedEx or UPS depending on card manufacturer, Express, 3-day
54
+ # shipping, with tracking
55
+ # - `2_DAY` - FedEx or UPS depending on card manufacturer, 2-day shipping, with
56
56
  # tracking
57
+ # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
58
+ # or similar international option, with tracking
57
59
  #
58
60
  # @return [Symbol, Lithic::Models::CardRenewParams::ShippingMethod, nil]
59
61
  optional :shipping_method, enum: -> { Lithic::CardRenewParams::ShippingMethod }
@@ -84,10 +86,12 @@ module Lithic
84
86
  # - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option,
85
87
  # with tracking
86
88
  # - `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking
87
- # - `EXPRESS` - FedEx Express, 3-day shipping, with tracking
88
- # - `2_DAY` - FedEx 2-day shipping, with tracking
89
- # - `EXPEDITED` - FedEx Standard Overnight or similar international option, with
89
+ # - `EXPRESS` - FedEx or UPS depending on card manufacturer, Express, 3-day
90
+ # shipping, with tracking
91
+ # - `2_DAY` - FedEx or UPS depending on card manufacturer, 2-day shipping, with
90
92
  # tracking
93
+ # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
94
+ # or similar international option, with tracking
91
95
  module ShippingMethod
92
96
  extend Lithic::Internal::Type::Enum
93
97