lithic 0.1.0.pre.alpha.47 → 0.1.0.pre.alpha.49

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 (48) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/transport/pooled_net_requester.rb +7 -10
  5. data/lib/lithic/models/auth_rules/v2_apply_response.rb +20 -1
  6. data/lib/lithic/models/auth_rules/v2_create_params.rb +5 -0
  7. data/lib/lithic/models/auth_rules/v2_create_response.rb +20 -1
  8. data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -0
  9. data/lib/lithic/models/auth_rules/v2_draft_response.rb +20 -1
  10. data/lib/lithic/models/auth_rules/v2_list_response.rb +20 -1
  11. data/lib/lithic/models/auth_rules/v2_promote_response.rb +20 -1
  12. data/lib/lithic/models/auth_rules/v2_retrieve_features_params.rb +28 -0
  13. data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +188 -0
  14. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +20 -1
  15. data/lib/lithic/models/auth_rules/v2_update_response.rb +20 -1
  16. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +44 -3
  17. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +10 -0
  18. data/lib/lithic/resources/auth_rules/v2.rb +34 -0
  19. data/lib/lithic/version.rb +1 -1
  20. data/lib/lithic.rb +2 -0
  21. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +32 -0
  22. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +11 -0
  23. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +32 -0
  24. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +11 -0
  25. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +32 -0
  26. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +32 -0
  27. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +32 -0
  28. data/rbi/lithic/models/auth_rules/v2_retrieve_features_params.rbi +54 -0
  29. data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +443 -0
  30. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +32 -0
  31. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +32 -0
  32. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +137 -3
  33. data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +4 -0
  34. data/rbi/lithic/resources/auth_rules/v2.rbi +26 -0
  35. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +9 -0
  36. data/sig/lithic/models/auth_rules/v2_create_params.rbs +2 -0
  37. data/sig/lithic/models/auth_rules/v2_create_response.rbs +9 -0
  38. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +2 -0
  39. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +9 -0
  40. data/sig/lithic/models/auth_rules/v2_list_response.rbs +9 -0
  41. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +9 -0
  42. data/sig/lithic/models/auth_rules/v2_retrieve_features_params.rbs +34 -0
  43. data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +158 -0
  44. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +9 -0
  45. data/sig/lithic/models/auth_rules/v2_update_response.rbs +9 -0
  46. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +47 -3
  47. data/sig/lithic/resources/auth_rules/v2.rbs +7 -0
  48. metadata +8 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d5a4c5966a7f9077e6e820fb5434ec7f0f2ed94aa577b43baf0b4d3498ed00a
4
- data.tar.gz: d6b31a3b115e6322d049cba5e2925f49b2d6fd5b3447eb842914663f8dfe0df2
3
+ metadata.gz: 9fc0ef3f7d2024d31a7e1f71e1bcd4e7bc897f29340b8a63748f5f11cef38e08
4
+ data.tar.gz: e500aa43e775fcae8e8c4a0c608f8bc7261b086e3ae27455d11d5e74aa539905
5
5
  SHA512:
6
- metadata.gz: 129e0c69966ccac26a74b71a783073dcf31770adf8b80fb023d7229813bf59ad82d192aff5d9ab2bcd8bdae39f984f56332cca07465c741ae7bf402c0154d394
7
- data.tar.gz: 04a817a866a58ff4800d61666feafa2eab0134d7bec6a9cb68bc7100b88dd36a0148d9816166db69d0afd2648e85ae3cd17be9a33c4d121bb6e979c558f1ef8a
6
+ metadata.gz: dbaf224e0f37cb593c1964935d9972759d380e79dd809a34c0d71a56cc43c0f427b67a643e70574bd05f609fde5adc1b635919091d0b27196d0acfffbbc17cbd
7
+ data.tar.gz: a01dc1f126be2c18bf1fbd9e28ef41bd1d709a71fb72c0d2f485d0fb853c694a5832852ae90615e1a383d96609808dc2c2830f5388c19fe578e0ddc171e90bd6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.49 (2025-09-30)
4
+
5
+ Full Changelog: [v0.1.0-alpha.48...v0.1.0-alpha.49](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.48...v0.1.0-alpha.49)
6
+
7
+ ### Bug Fixes
8
+
9
+ * coroutine leaks from connection pool ([fa96625](https://github.com/lithic-com/lithic-ruby/commit/fa96625074db9b9d8f6ef6dc5a14c45b6faa42a3))
10
+
11
+ ## 0.1.0-alpha.48 (2025-09-30)
12
+
13
+ Full Changelog: [v0.1.0-alpha.47...v0.1.0-alpha.48](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.47...v0.1.0-alpha.48)
14
+
15
+ ### Features
16
+
17
+ * **api:** adds support for Auth Rule features ([f12343f](https://github.com/lithic-com/lithic-ruby/commit/f12343f949c28e3545a7e7add90238e8133d5916))
18
+
3
19
  ## 0.1.0-alpha.47 (2025-09-29)
4
20
 
5
21
  Full Changelog: [v0.1.0-alpha.46...v0.1.0-alpha.47](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.46...v0.1.0-alpha.47)
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.47"
18
+ gem "lithic", "~> 0.1.0.pre.alpha.49"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -134,9 +134,9 @@ module Lithic
134
134
 
135
135
  # rubocop:disable Metrics/BlockLength
136
136
  enum = Enumerator.new do |y|
137
- with_pool(url, deadline: deadline) do |conn|
138
- next if finished
137
+ next if finished
139
138
 
139
+ with_pool(url, deadline: deadline) do |conn|
140
140
  req, closing = self.class.build_request(request) do
141
141
  self.class.calibrate_socket_timeout(conn, deadline)
142
142
  end
@@ -149,7 +149,7 @@ module Lithic
149
149
 
150
150
  self.class.calibrate_socket_timeout(conn, deadline)
151
151
  conn.request(req) do |rsp|
152
- y << [conn, req, rsp]
152
+ y << [req, rsp]
153
153
  break if finished
154
154
 
155
155
  rsp.read_body do |bytes|
@@ -160,6 +160,8 @@ module Lithic
160
160
  end
161
161
  eof = true
162
162
  end
163
+ ensure
164
+ conn.finish if !eof && conn&.started?
163
165
  end
164
166
  rescue Timeout::Error
165
167
  raise Lithic::Errors::APITimeoutError.new(url: url, request: req)
@@ -168,16 +170,11 @@ module Lithic
168
170
  end
169
171
  # rubocop:enable Metrics/BlockLength
170
172
 
171
- conn, _, response = enum.next
173
+ _, response = enum.next
172
174
  body = Lithic::Internal::Util.fused_enum(enum, external: true) do
173
175
  finished = true
174
- tap do
175
- enum.next
176
- rescue StopIteration
177
- nil
178
- end
176
+ loop { enum.next }
179
177
  ensure
180
- conn.finish if !eof && conn&.started?
181
178
  closing&.call
182
179
  end
183
180
  [Integer(response.code), response, body]
@@ -45,6 +45,13 @@ module Lithic
45
45
  # @return [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::EventStream]
46
46
  required :event_stream, enum: -> { Lithic::Models::AuthRules::V2ApplyResponse::EventStream }
47
47
 
48
+ # @!attribute lithic_managed
49
+ # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
50
+ # be modified or deleted by the user
51
+ #
52
+ # @return [Boolean]
53
+ required :lithic_managed, Lithic::Internal::Type::Boolean
54
+
48
55
  # @!attribute name
49
56
  # Auth Rule Name
50
57
  #
@@ -83,7 +90,7 @@ module Lithic
83
90
  # @return [Array<String>, nil]
84
91
  optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String]
85
92
 
86
- # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, name:, program_level:, state:, type:, excluded_card_tokens: nil)
93
+ # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, lithic_managed:, name:, program_level:, state:, type:, excluded_card_tokens: nil)
87
94
  # Some parameter documentations has been truncated, see
88
95
  # {Lithic::Models::AuthRules::V2ApplyResponse} for more details.
89
96
  #
@@ -101,6 +108,8 @@ module Lithic
101
108
  #
102
109
  # @param event_stream [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::EventStream] The event stream during which the rule will be evaluated.
103
110
  #
111
+ # @param lithic_managed [Boolean] Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
112
+ #
104
113
  # @param name [String, nil] Auth Rule Name
105
114
  #
106
115
  # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program.
@@ -216,6 +225,8 @@ module Lithic
216
225
  # fee field in the settlement/cardholder billing currency. This is the amount
217
226
  # the issuer should authorize against unless the issuer is paying the acquirer
218
227
  # fee on behalf of the cardholder.
228
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
229
+ # represents the amount of cash being withdrawn or advanced.
219
230
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
220
231
  # given authorization. Scores are on a range of 0-999, with 0 representing the
221
232
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -295,6 +306,8 @@ module Lithic
295
306
  # fee field in the settlement/cardholder billing currency. This is the amount
296
307
  # the issuer should authorize against unless the issuer is paying the acquirer
297
308
  # fee on behalf of the cardholder.
309
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
310
+ # represents the amount of cash being withdrawn or advanced.
298
311
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
299
312
  # given authorization. Scores are on a range of 0-999, with 0 representing the
300
313
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -331,6 +344,7 @@ module Lithic
331
344
  LIABILITY_SHIFT = :LIABILITY_SHIFT
332
345
  PAN_ENTRY_MODE = :PAN_ENTRY_MODE
333
346
  TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
347
+ CASH_AMOUNT = :CASH_AMOUNT
334
348
  RISK_SCORE = :RISK_SCORE
335
349
  CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
336
350
  CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
@@ -500,6 +514,8 @@ module Lithic
500
514
  # fee field in the settlement/cardholder billing currency. This is the amount
501
515
  # the issuer should authorize against unless the issuer is paying the acquirer
502
516
  # fee on behalf of the cardholder.
517
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
518
+ # represents the amount of cash being withdrawn or advanced.
503
519
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
504
520
  # given authorization. Scores are on a range of 0-999, with 0 representing the
505
521
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -579,6 +595,8 @@ module Lithic
579
595
  # fee field in the settlement/cardholder billing currency. This is the amount
580
596
  # the issuer should authorize against unless the issuer is paying the acquirer
581
597
  # fee on behalf of the cardholder.
598
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
599
+ # represents the amount of cash being withdrawn or advanced.
582
600
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
583
601
  # given authorization. Scores are on a range of 0-999, with 0 representing the
584
602
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -615,6 +633,7 @@ module Lithic
615
633
  LIABILITY_SHIFT = :LIABILITY_SHIFT
616
634
  PAN_ENTRY_MODE = :PAN_ENTRY_MODE
617
635
  TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
636
+ CASH_AMOUNT = :CASH_AMOUNT
618
637
  RISK_SCORE = :RISK_SCORE
619
638
  CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
620
639
  CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
@@ -179,6 +179,8 @@ module Lithic
179
179
  # fee field in the settlement/cardholder billing currency. This is the amount
180
180
  # the issuer should authorize against unless the issuer is paying the acquirer
181
181
  # fee on behalf of the cardholder.
182
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
183
+ # represents the amount of cash being withdrawn or advanced.
182
184
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
183
185
  # given authorization. Scores are on a range of 0-999, with 0 representing the
184
186
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -258,6 +260,8 @@ module Lithic
258
260
  # fee field in the settlement/cardholder billing currency. This is the amount
259
261
  # the issuer should authorize against unless the issuer is paying the acquirer
260
262
  # fee on behalf of the cardholder.
263
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
264
+ # represents the amount of cash being withdrawn or advanced.
261
265
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
262
266
  # given authorization. Scores are on a range of 0-999, with 0 representing the
263
267
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -294,6 +298,7 @@ module Lithic
294
298
  LIABILITY_SHIFT = :LIABILITY_SHIFT
295
299
  PAN_ENTRY_MODE = :PAN_ENTRY_MODE
296
300
  TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
301
+ CASH_AMOUNT = :CASH_AMOUNT
297
302
  RISK_SCORE = :RISK_SCORE
298
303
  CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
299
304
  CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
@@ -45,6 +45,13 @@ module Lithic
45
45
  # @return [Symbol, Lithic::Models::AuthRules::V2CreateResponse::EventStream]
46
46
  required :event_stream, enum: -> { Lithic::Models::AuthRules::V2CreateResponse::EventStream }
47
47
 
48
+ # @!attribute lithic_managed
49
+ # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
50
+ # be modified or deleted by the user
51
+ #
52
+ # @return [Boolean]
53
+ required :lithic_managed, Lithic::Internal::Type::Boolean
54
+
48
55
  # @!attribute name
49
56
  # Auth Rule Name
50
57
  #
@@ -83,7 +90,7 @@ module Lithic
83
90
  # @return [Array<String>, nil]
84
91
  optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String]
85
92
 
86
- # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, name:, program_level:, state:, type:, excluded_card_tokens: nil)
93
+ # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, lithic_managed:, name:, program_level:, state:, type:, excluded_card_tokens: nil)
87
94
  # Some parameter documentations has been truncated, see
88
95
  # {Lithic::Models::AuthRules::V2CreateResponse} for more details.
89
96
  #
@@ -101,6 +108,8 @@ module Lithic
101
108
  #
102
109
  # @param event_stream [Symbol, Lithic::Models::AuthRules::V2CreateResponse::EventStream] The event stream during which the rule will be evaluated.
103
110
  #
111
+ # @param lithic_managed [Boolean] Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
112
+ #
104
113
  # @param name [String, nil] Auth Rule Name
105
114
  #
106
115
  # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program.
@@ -217,6 +226,8 @@ module Lithic
217
226
  # fee field in the settlement/cardholder billing currency. This is the amount
218
227
  # the issuer should authorize against unless the issuer is paying the acquirer
219
228
  # fee on behalf of the cardholder.
229
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
230
+ # represents the amount of cash being withdrawn or advanced.
220
231
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
221
232
  # given authorization. Scores are on a range of 0-999, with 0 representing the
222
233
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -296,6 +307,8 @@ module Lithic
296
307
  # fee field in the settlement/cardholder billing currency. This is the amount
297
308
  # the issuer should authorize against unless the issuer is paying the acquirer
298
309
  # fee on behalf of the cardholder.
310
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
311
+ # represents the amount of cash being withdrawn or advanced.
299
312
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
300
313
  # given authorization. Scores are on a range of 0-999, with 0 representing the
301
314
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -332,6 +345,7 @@ module Lithic
332
345
  LIABILITY_SHIFT = :LIABILITY_SHIFT
333
346
  PAN_ENTRY_MODE = :PAN_ENTRY_MODE
334
347
  TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
348
+ CASH_AMOUNT = :CASH_AMOUNT
335
349
  RISK_SCORE = :RISK_SCORE
336
350
  CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
337
351
  CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
@@ -501,6 +515,8 @@ module Lithic
501
515
  # fee field in the settlement/cardholder billing currency. This is the amount
502
516
  # the issuer should authorize against unless the issuer is paying the acquirer
503
517
  # fee on behalf of the cardholder.
518
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
519
+ # represents the amount of cash being withdrawn or advanced.
504
520
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
505
521
  # given authorization. Scores are on a range of 0-999, with 0 representing the
506
522
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -580,6 +596,8 @@ module Lithic
580
596
  # fee field in the settlement/cardholder billing currency. This is the amount
581
597
  # the issuer should authorize against unless the issuer is paying the acquirer
582
598
  # fee on behalf of the cardholder.
599
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
600
+ # represents the amount of cash being withdrawn or advanced.
583
601
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
584
602
  # given authorization. Scores are on a range of 0-999, with 0 representing the
585
603
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -616,6 +634,7 @@ module Lithic
616
634
  LIABILITY_SHIFT = :LIABILITY_SHIFT
617
635
  PAN_ENTRY_MODE = :PAN_ENTRY_MODE
618
636
  TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
637
+ CASH_AMOUNT = :CASH_AMOUNT
619
638
  RISK_SCORE = :RISK_SCORE
620
639
  CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
621
640
  CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
@@ -93,6 +93,8 @@ module Lithic
93
93
  # fee field in the settlement/cardholder billing currency. This is the amount
94
94
  # the issuer should authorize against unless the issuer is paying the acquirer
95
95
  # fee on behalf of the cardholder.
96
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
97
+ # represents the amount of cash being withdrawn or advanced.
96
98
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
97
99
  # given authorization. Scores are on a range of 0-999, with 0 representing the
98
100
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -172,6 +174,8 @@ module Lithic
172
174
  # fee field in the settlement/cardholder billing currency. This is the amount
173
175
  # the issuer should authorize against unless the issuer is paying the acquirer
174
176
  # fee on behalf of the cardholder.
177
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
178
+ # represents the amount of cash being withdrawn or advanced.
175
179
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
176
180
  # given authorization. Scores are on a range of 0-999, with 0 representing the
177
181
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -208,6 +212,7 @@ module Lithic
208
212
  LIABILITY_SHIFT = :LIABILITY_SHIFT
209
213
  PAN_ENTRY_MODE = :PAN_ENTRY_MODE
210
214
  TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
215
+ CASH_AMOUNT = :CASH_AMOUNT
211
216
  RISK_SCORE = :RISK_SCORE
212
217
  CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
213
218
  CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
@@ -45,6 +45,13 @@ module Lithic
45
45
  # @return [Symbol, Lithic::Models::AuthRules::V2DraftResponse::EventStream]
46
46
  required :event_stream, enum: -> { Lithic::Models::AuthRules::V2DraftResponse::EventStream }
47
47
 
48
+ # @!attribute lithic_managed
49
+ # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
50
+ # be modified or deleted by the user
51
+ #
52
+ # @return [Boolean]
53
+ required :lithic_managed, Lithic::Internal::Type::Boolean
54
+
48
55
  # @!attribute name
49
56
  # Auth Rule Name
50
57
  #
@@ -83,7 +90,7 @@ module Lithic
83
90
  # @return [Array<String>, nil]
84
91
  optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String]
85
92
 
86
- # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, name:, program_level:, state:, type:, excluded_card_tokens: nil)
93
+ # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, lithic_managed:, name:, program_level:, state:, type:, excluded_card_tokens: nil)
87
94
  # Some parameter documentations has been truncated, see
88
95
  # {Lithic::Models::AuthRules::V2DraftResponse} for more details.
89
96
  #
@@ -101,6 +108,8 @@ module Lithic
101
108
  #
102
109
  # @param event_stream [Symbol, Lithic::Models::AuthRules::V2DraftResponse::EventStream] The event stream during which the rule will be evaluated.
103
110
  #
111
+ # @param lithic_managed [Boolean] Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
112
+ #
104
113
  # @param name [String, nil] Auth Rule Name
105
114
  #
106
115
  # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program.
@@ -216,6 +225,8 @@ module Lithic
216
225
  # fee field in the settlement/cardholder billing currency. This is the amount
217
226
  # the issuer should authorize against unless the issuer is paying the acquirer
218
227
  # fee on behalf of the cardholder.
228
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
229
+ # represents the amount of cash being withdrawn or advanced.
219
230
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
220
231
  # given authorization. Scores are on a range of 0-999, with 0 representing the
221
232
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -295,6 +306,8 @@ module Lithic
295
306
  # fee field in the settlement/cardholder billing currency. This is the amount
296
307
  # the issuer should authorize against unless the issuer is paying the acquirer
297
308
  # fee on behalf of the cardholder.
309
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
310
+ # represents the amount of cash being withdrawn or advanced.
298
311
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
299
312
  # given authorization. Scores are on a range of 0-999, with 0 representing the
300
313
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -331,6 +344,7 @@ module Lithic
331
344
  LIABILITY_SHIFT = :LIABILITY_SHIFT
332
345
  PAN_ENTRY_MODE = :PAN_ENTRY_MODE
333
346
  TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
347
+ CASH_AMOUNT = :CASH_AMOUNT
334
348
  RISK_SCORE = :RISK_SCORE
335
349
  CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
336
350
  CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
@@ -500,6 +514,8 @@ module Lithic
500
514
  # fee field in the settlement/cardholder billing currency. This is the amount
501
515
  # the issuer should authorize against unless the issuer is paying the acquirer
502
516
  # fee on behalf of the cardholder.
517
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
518
+ # represents the amount of cash being withdrawn or advanced.
503
519
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
504
520
  # given authorization. Scores are on a range of 0-999, with 0 representing the
505
521
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -579,6 +595,8 @@ module Lithic
579
595
  # fee field in the settlement/cardholder billing currency. This is the amount
580
596
  # the issuer should authorize against unless the issuer is paying the acquirer
581
597
  # fee on behalf of the cardholder.
598
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
599
+ # represents the amount of cash being withdrawn or advanced.
582
600
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
583
601
  # given authorization. Scores are on a range of 0-999, with 0 representing the
584
602
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -615,6 +633,7 @@ module Lithic
615
633
  LIABILITY_SHIFT = :LIABILITY_SHIFT
616
634
  PAN_ENTRY_MODE = :PAN_ENTRY_MODE
617
635
  TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
636
+ CASH_AMOUNT = :CASH_AMOUNT
618
637
  RISK_SCORE = :RISK_SCORE
619
638
  CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
620
639
  CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
@@ -45,6 +45,13 @@ module Lithic
45
45
  # @return [Symbol, Lithic::Models::AuthRules::V2ListResponse::EventStream]
46
46
  required :event_stream, enum: -> { Lithic::Models::AuthRules::V2ListResponse::EventStream }
47
47
 
48
+ # @!attribute lithic_managed
49
+ # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
50
+ # be modified or deleted by the user
51
+ #
52
+ # @return [Boolean]
53
+ required :lithic_managed, Lithic::Internal::Type::Boolean
54
+
48
55
  # @!attribute name
49
56
  # Auth Rule Name
50
57
  #
@@ -83,7 +90,7 @@ module Lithic
83
90
  # @return [Array<String>, nil]
84
91
  optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String]
85
92
 
86
- # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, name:, program_level:, state:, type:, excluded_card_tokens: nil)
93
+ # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, lithic_managed:, name:, program_level:, state:, type:, excluded_card_tokens: nil)
87
94
  # Some parameter documentations has been truncated, see
88
95
  # {Lithic::Models::AuthRules::V2ListResponse} for more details.
89
96
  #
@@ -101,6 +108,8 @@ module Lithic
101
108
  #
102
109
  # @param event_stream [Symbol, Lithic::Models::AuthRules::V2ListResponse::EventStream] The event stream during which the rule will be evaluated.
103
110
  #
111
+ # @param lithic_managed [Boolean] Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
112
+ #
104
113
  # @param name [String, nil] Auth Rule Name
105
114
  #
106
115
  # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program.
@@ -216,6 +225,8 @@ module Lithic
216
225
  # fee field in the settlement/cardholder billing currency. This is the amount
217
226
  # the issuer should authorize against unless the issuer is paying the acquirer
218
227
  # fee on behalf of the cardholder.
228
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
229
+ # represents the amount of cash being withdrawn or advanced.
219
230
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
220
231
  # given authorization. Scores are on a range of 0-999, with 0 representing the
221
232
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -295,6 +306,8 @@ module Lithic
295
306
  # fee field in the settlement/cardholder billing currency. This is the amount
296
307
  # the issuer should authorize against unless the issuer is paying the acquirer
297
308
  # fee on behalf of the cardholder.
309
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
310
+ # represents the amount of cash being withdrawn or advanced.
298
311
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
299
312
  # given authorization. Scores are on a range of 0-999, with 0 representing the
300
313
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -331,6 +344,7 @@ module Lithic
331
344
  LIABILITY_SHIFT = :LIABILITY_SHIFT
332
345
  PAN_ENTRY_MODE = :PAN_ENTRY_MODE
333
346
  TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
347
+ CASH_AMOUNT = :CASH_AMOUNT
334
348
  RISK_SCORE = :RISK_SCORE
335
349
  CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
336
350
  CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
@@ -500,6 +514,8 @@ module Lithic
500
514
  # fee field in the settlement/cardholder billing currency. This is the amount
501
515
  # the issuer should authorize against unless the issuer is paying the acquirer
502
516
  # fee on behalf of the cardholder.
517
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
518
+ # represents the amount of cash being withdrawn or advanced.
503
519
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
504
520
  # given authorization. Scores are on a range of 0-999, with 0 representing the
505
521
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -579,6 +595,8 @@ module Lithic
579
595
  # fee field in the settlement/cardholder billing currency. This is the amount
580
596
  # the issuer should authorize against unless the issuer is paying the acquirer
581
597
  # fee on behalf of the cardholder.
598
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
599
+ # represents the amount of cash being withdrawn or advanced.
582
600
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
583
601
  # given authorization. Scores are on a range of 0-999, with 0 representing the
584
602
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -615,6 +633,7 @@ module Lithic
615
633
  LIABILITY_SHIFT = :LIABILITY_SHIFT
616
634
  PAN_ENTRY_MODE = :PAN_ENTRY_MODE
617
635
  TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
636
+ CASH_AMOUNT = :CASH_AMOUNT
618
637
  RISK_SCORE = :RISK_SCORE
619
638
  CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
620
639
  CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
@@ -45,6 +45,13 @@ module Lithic
45
45
  # @return [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::EventStream]
46
46
  required :event_stream, enum: -> { Lithic::Models::AuthRules::V2PromoteResponse::EventStream }
47
47
 
48
+ # @!attribute lithic_managed
49
+ # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
50
+ # be modified or deleted by the user
51
+ #
52
+ # @return [Boolean]
53
+ required :lithic_managed, Lithic::Internal::Type::Boolean
54
+
48
55
  # @!attribute name
49
56
  # Auth Rule Name
50
57
  #
@@ -83,7 +90,7 @@ module Lithic
83
90
  # @return [Array<String>, nil]
84
91
  optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String]
85
92
 
86
- # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, name:, program_level:, state:, type:, excluded_card_tokens: nil)
93
+ # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, lithic_managed:, name:, program_level:, state:, type:, excluded_card_tokens: nil)
87
94
  # Some parameter documentations has been truncated, see
88
95
  # {Lithic::Models::AuthRules::V2PromoteResponse} for more details.
89
96
  #
@@ -101,6 +108,8 @@ module Lithic
101
108
  #
102
109
  # @param event_stream [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::EventStream] The event stream during which the rule will be evaluated.
103
110
  #
111
+ # @param lithic_managed [Boolean] Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
112
+ #
104
113
  # @param name [String, nil] Auth Rule Name
105
114
  #
106
115
  # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program.
@@ -217,6 +226,8 @@ module Lithic
217
226
  # fee field in the settlement/cardholder billing currency. This is the amount
218
227
  # the issuer should authorize against unless the issuer is paying the acquirer
219
228
  # fee on behalf of the cardholder.
229
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
230
+ # represents the amount of cash being withdrawn or advanced.
220
231
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
221
232
  # given authorization. Scores are on a range of 0-999, with 0 representing the
222
233
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -296,6 +307,8 @@ module Lithic
296
307
  # fee field in the settlement/cardholder billing currency. This is the amount
297
308
  # the issuer should authorize against unless the issuer is paying the acquirer
298
309
  # fee on behalf of the cardholder.
310
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
311
+ # represents the amount of cash being withdrawn or advanced.
299
312
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
300
313
  # given authorization. Scores are on a range of 0-999, with 0 representing the
301
314
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -332,6 +345,7 @@ module Lithic
332
345
  LIABILITY_SHIFT = :LIABILITY_SHIFT
333
346
  PAN_ENTRY_MODE = :PAN_ENTRY_MODE
334
347
  TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
348
+ CASH_AMOUNT = :CASH_AMOUNT
335
349
  RISK_SCORE = :RISK_SCORE
336
350
  CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
337
351
  CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
@@ -501,6 +515,8 @@ module Lithic
501
515
  # fee field in the settlement/cardholder billing currency. This is the amount
502
516
  # the issuer should authorize against unless the issuer is paying the acquirer
503
517
  # fee on behalf of the cardholder.
518
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
519
+ # represents the amount of cash being withdrawn or advanced.
504
520
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
505
521
  # given authorization. Scores are on a range of 0-999, with 0 representing the
506
522
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -580,6 +596,8 @@ module Lithic
580
596
  # fee field in the settlement/cardholder billing currency. This is the amount
581
597
  # the issuer should authorize against unless the issuer is paying the acquirer
582
598
  # fee on behalf of the cardholder.
599
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
600
+ # represents the amount of cash being withdrawn or advanced.
583
601
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
584
602
  # given authorization. Scores are on a range of 0-999, with 0 representing the
585
603
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -616,6 +634,7 @@ module Lithic
616
634
  LIABILITY_SHIFT = :LIABILITY_SHIFT
617
635
  PAN_ENTRY_MODE = :PAN_ENTRY_MODE
618
636
  TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
637
+ CASH_AMOUNT = :CASH_AMOUNT
619
638
  RISK_SCORE = :RISK_SCORE
620
639
  CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
621
640
  CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module AuthRules
6
+ # @see Lithic::Resources::AuthRules::V2#retrieve_features
7
+ class V2RetrieveFeaturesParams < Lithic::Internal::Type::BaseModel
8
+ extend Lithic::Internal::Type::RequestParameters::Converter
9
+ include Lithic::Internal::Type::RequestParameters
10
+
11
+ # @!attribute account_token
12
+ #
13
+ # @return [String, nil]
14
+ optional :account_token, String
15
+
16
+ # @!attribute card_token
17
+ #
18
+ # @return [String, nil]
19
+ optional :card_token, String
20
+
21
+ # @!method initialize(account_token: nil, card_token: nil, request_options: {})
22
+ # @param account_token [String]
23
+ # @param card_token [String]
24
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
25
+ end
26
+ end
27
+ end
28
+ end