lithic 0.1.0.pre.alpha.46 → 0.1.0.pre.alpha.48

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 (51) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/file_part.rb +10 -7
  5. data/lib/lithic/internal/type/file_input.rb +7 -4
  6. data/lib/lithic/models/auth_rules/v2_apply_response.rb +20 -1
  7. data/lib/lithic/models/auth_rules/v2_create_params.rb +5 -0
  8. data/lib/lithic/models/auth_rules/v2_create_response.rb +20 -1
  9. data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -0
  10. data/lib/lithic/models/auth_rules/v2_draft_response.rb +20 -1
  11. data/lib/lithic/models/auth_rules/v2_list_response.rb +20 -1
  12. data/lib/lithic/models/auth_rules/v2_promote_response.rb +20 -1
  13. data/lib/lithic/models/auth_rules/v2_retrieve_features_params.rb +28 -0
  14. data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +188 -0
  15. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +20 -1
  16. data/lib/lithic/models/auth_rules/v2_update_response.rb +20 -1
  17. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +44 -3
  18. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +10 -0
  19. data/lib/lithic/resources/auth_rules/v2.rb +34 -0
  20. data/lib/lithic/version.rb +1 -1
  21. data/lib/lithic.rb +2 -0
  22. data/rbi/lithic/file_part.rbi +1 -1
  23. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +32 -0
  24. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +11 -0
  25. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +32 -0
  26. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +11 -0
  27. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +32 -0
  28. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +32 -0
  29. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +32 -0
  30. data/rbi/lithic/models/auth_rules/v2_retrieve_features_params.rbi +54 -0
  31. data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +443 -0
  32. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +32 -0
  33. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +32 -0
  34. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +137 -3
  35. data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +4 -0
  36. data/rbi/lithic/resources/auth_rules/v2.rbi +26 -0
  37. data/sig/lithic/file_part.rbs +1 -1
  38. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +9 -0
  39. data/sig/lithic/models/auth_rules/v2_create_params.rbs +2 -0
  40. data/sig/lithic/models/auth_rules/v2_create_response.rbs +9 -0
  41. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +2 -0
  42. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +9 -0
  43. data/sig/lithic/models/auth_rules/v2_list_response.rbs +9 -0
  44. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +9 -0
  45. data/sig/lithic/models/auth_rules/v2_retrieve_features_params.rbs +34 -0
  46. data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +158 -0
  47. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +9 -0
  48. data/sig/lithic/models/auth_rules/v2_update_response.rbs +9 -0
  49. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +47 -3
  50. data/sig/lithic/resources/auth_rules/v2.rbs +7 -0
  51. metadata +8 -2
@@ -365,6 +365,8 @@ module Lithic
365
365
  # fee field in the settlement/cardholder billing currency. This is the amount
366
366
  # the issuer should authorize against unless the issuer is paying the acquirer
367
367
  # fee on behalf of the cardholder.
368
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
369
+ # represents the amount of cash being withdrawn or advanced.
368
370
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
369
371
  # given authorization. Scores are on a range of 0-999, with 0 representing the
370
372
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -478,6 +480,8 @@ module Lithic
478
480
  # fee field in the settlement/cardholder billing currency. This is the amount
479
481
  # the issuer should authorize against unless the issuer is paying the acquirer
480
482
  # fee on behalf of the cardholder.
483
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
484
+ # represents the amount of cash being withdrawn or advanced.
481
485
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
482
486
  # given authorization. Scores are on a range of 0-999, with 0 representing the
483
487
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -550,6 +554,8 @@ module Lithic
550
554
  # fee field in the settlement/cardholder billing currency. This is the amount
551
555
  # the issuer should authorize against unless the issuer is paying the acquirer
552
556
  # fee on behalf of the cardholder.
557
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
558
+ # represents the amount of cash being withdrawn or advanced.
553
559
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
554
560
  # given authorization. Scores are on a range of 0-999, with 0 representing the
555
561
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -625,6 +631,11 @@ module Lithic
625
631
  :TRANSACTION_AMOUNT,
626
632
  Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
627
633
  )
634
+ CASH_AMOUNT =
635
+ T.let(
636
+ :CASH_AMOUNT,
637
+ Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
638
+ )
628
639
  RISK_SCORE =
629
640
  T.let(
630
641
  :RISK_SCORE,
@@ -72,6 +72,11 @@ module Lithic
72
72
  end
73
73
  attr_accessor :event_stream
74
74
 
75
+ # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
76
+ # be modified or deleted by the user
77
+ sig { returns(T::Boolean) }
78
+ attr_accessor :lithic_managed
79
+
75
80
  # Auth Rule Name
76
81
  sig { returns(T.nilable(String)) }
77
82
  attr_accessor :name
@@ -127,6 +132,7 @@ module Lithic
127
132
  ),
128
133
  event_stream:
129
134
  Lithic::Models::AuthRules::V2CreateResponse::EventStream::OrSymbol,
135
+ lithic_managed: T::Boolean,
130
136
  name: T.nilable(String),
131
137
  program_level: T::Boolean,
132
138
  state: Lithic::Models::AuthRules::V2CreateResponse::State::OrSymbol,
@@ -147,6 +153,9 @@ module Lithic
147
153
  draft_version:,
148
154
  # The event stream during which the rule will be evaluated.
149
155
  event_stream:,
156
+ # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
157
+ # be modified or deleted by the user
158
+ lithic_managed:,
150
159
  # Auth Rule Name
151
160
  name:,
152
161
  # Whether the Auth Rule applies to all authorizations on the card program.
@@ -185,6 +194,7 @@ module Lithic
185
194
  ),
186
195
  event_stream:
187
196
  Lithic::Models::AuthRules::V2CreateResponse::EventStream::TaggedSymbol,
197
+ lithic_managed: T::Boolean,
188
198
  name: T.nilable(String),
189
199
  program_level: T::Boolean,
190
200
  state:
@@ -397,6 +407,8 @@ module Lithic
397
407
  # fee field in the settlement/cardholder billing currency. This is the amount
398
408
  # the issuer should authorize against unless the issuer is paying the acquirer
399
409
  # fee on behalf of the cardholder.
410
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
411
+ # represents the amount of cash being withdrawn or advanced.
400
412
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
401
413
  # given authorization. Scores are on a range of 0-999, with 0 representing the
402
414
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -510,6 +522,8 @@ module Lithic
510
522
  # fee field in the settlement/cardholder billing currency. This is the amount
511
523
  # the issuer should authorize against unless the issuer is paying the acquirer
512
524
  # fee on behalf of the cardholder.
525
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
526
+ # represents the amount of cash being withdrawn or advanced.
513
527
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
514
528
  # given authorization. Scores are on a range of 0-999, with 0 representing the
515
529
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -582,6 +596,8 @@ module Lithic
582
596
  # fee field in the settlement/cardholder billing currency. This is the amount
583
597
  # the issuer should authorize against unless the issuer is paying the acquirer
584
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.
585
601
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
586
602
  # given authorization. Scores are on a range of 0-999, with 0 representing the
587
603
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -657,6 +673,11 @@ module Lithic
657
673
  :TRANSACTION_AMOUNT,
658
674
  Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
659
675
  )
676
+ CASH_AMOUNT =
677
+ T.let(
678
+ :CASH_AMOUNT,
679
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
680
+ )
660
681
  RISK_SCORE =
661
682
  T.let(
662
683
  :RISK_SCORE,
@@ -1026,6 +1047,8 @@ module Lithic
1026
1047
  # fee field in the settlement/cardholder billing currency. This is the amount
1027
1048
  # the issuer should authorize against unless the issuer is paying the acquirer
1028
1049
  # fee on behalf of the cardholder.
1050
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
1051
+ # represents the amount of cash being withdrawn or advanced.
1029
1052
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1030
1053
  # given authorization. Scores are on a range of 0-999, with 0 representing the
1031
1054
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -1139,6 +1162,8 @@ module Lithic
1139
1162
  # fee field in the settlement/cardholder billing currency. This is the amount
1140
1163
  # the issuer should authorize against unless the issuer is paying the acquirer
1141
1164
  # fee on behalf of the cardholder.
1165
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
1166
+ # represents the amount of cash being withdrawn or advanced.
1142
1167
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1143
1168
  # given authorization. Scores are on a range of 0-999, with 0 representing the
1144
1169
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -1211,6 +1236,8 @@ module Lithic
1211
1236
  # fee field in the settlement/cardholder billing currency. This is the amount
1212
1237
  # the issuer should authorize against unless the issuer is paying the acquirer
1213
1238
  # fee on behalf of the cardholder.
1239
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
1240
+ # represents the amount of cash being withdrawn or advanced.
1214
1241
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1215
1242
  # given authorization. Scores are on a range of 0-999, with 0 representing the
1216
1243
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -1286,6 +1313,11 @@ module Lithic
1286
1313
  :TRANSACTION_AMOUNT,
1287
1314
  Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1288
1315
  )
1316
+ CASH_AMOUNT =
1317
+ T.let(
1318
+ :CASH_AMOUNT,
1319
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1320
+ )
1289
1321
  RISK_SCORE =
1290
1322
  T.let(
1291
1323
  :RISK_SCORE,
@@ -213,6 +213,8 @@ module Lithic
213
213
  # fee field in the settlement/cardholder billing currency. This is the amount
214
214
  # the issuer should authorize against unless the issuer is paying the acquirer
215
215
  # fee on behalf of the cardholder.
216
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
217
+ # represents the amount of cash being withdrawn or advanced.
216
218
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
217
219
  # given authorization. Scores are on a range of 0-999, with 0 representing the
218
220
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -326,6 +328,8 @@ module Lithic
326
328
  # fee field in the settlement/cardholder billing currency. This is the amount
327
329
  # the issuer should authorize against unless the issuer is paying the acquirer
328
330
  # fee on behalf of the cardholder.
331
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
332
+ # represents the amount of cash being withdrawn or advanced.
329
333
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
330
334
  # given authorization. Scores are on a range of 0-999, with 0 representing the
331
335
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -398,6 +402,8 @@ module Lithic
398
402
  # fee field in the settlement/cardholder billing currency. This is the amount
399
403
  # the issuer should authorize against unless the issuer is paying the acquirer
400
404
  # fee on behalf of the cardholder.
405
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
406
+ # represents the amount of cash being withdrawn or advanced.
401
407
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
402
408
  # given authorization. Scores are on a range of 0-999, with 0 representing the
403
409
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -473,6 +479,11 @@ module Lithic
473
479
  :TRANSACTION_AMOUNT,
474
480
  Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
475
481
  )
482
+ CASH_AMOUNT =
483
+ T.let(
484
+ :CASH_AMOUNT,
485
+ Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
486
+ )
476
487
  RISK_SCORE =
477
488
  T.let(
478
489
  :RISK_SCORE,
@@ -72,6 +72,11 @@ module Lithic
72
72
  end
73
73
  attr_accessor :event_stream
74
74
 
75
+ # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
76
+ # be modified or deleted by the user
77
+ sig { returns(T::Boolean) }
78
+ attr_accessor :lithic_managed
79
+
75
80
  # Auth Rule Name
76
81
  sig { returns(T.nilable(String)) }
77
82
  attr_accessor :name
@@ -127,6 +132,7 @@ module Lithic
127
132
  ),
128
133
  event_stream:
129
134
  Lithic::Models::AuthRules::V2DraftResponse::EventStream::OrSymbol,
135
+ lithic_managed: T::Boolean,
130
136
  name: T.nilable(String),
131
137
  program_level: T::Boolean,
132
138
  state: Lithic::Models::AuthRules::V2DraftResponse::State::OrSymbol,
@@ -147,6 +153,9 @@ module Lithic
147
153
  draft_version:,
148
154
  # The event stream during which the rule will be evaluated.
149
155
  event_stream:,
156
+ # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
157
+ # be modified or deleted by the user
158
+ lithic_managed:,
150
159
  # Auth Rule Name
151
160
  name:,
152
161
  # Whether the Auth Rule applies to all authorizations on the card program.
@@ -185,6 +194,7 @@ module Lithic
185
194
  ),
186
195
  event_stream:
187
196
  Lithic::Models::AuthRules::V2DraftResponse::EventStream::TaggedSymbol,
197
+ lithic_managed: T::Boolean,
188
198
  name: T.nilable(String),
189
199
  program_level: T::Boolean,
190
200
  state:
@@ -397,6 +407,8 @@ module Lithic
397
407
  # fee field in the settlement/cardholder billing currency. This is the amount
398
408
  # the issuer should authorize against unless the issuer is paying the acquirer
399
409
  # fee on behalf of the cardholder.
410
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
411
+ # represents the amount of cash being withdrawn or advanced.
400
412
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
401
413
  # given authorization. Scores are on a range of 0-999, with 0 representing the
402
414
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -510,6 +522,8 @@ module Lithic
510
522
  # fee field in the settlement/cardholder billing currency. This is the amount
511
523
  # the issuer should authorize against unless the issuer is paying the acquirer
512
524
  # fee on behalf of the cardholder.
525
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
526
+ # represents the amount of cash being withdrawn or advanced.
513
527
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
514
528
  # given authorization. Scores are on a range of 0-999, with 0 representing the
515
529
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -582,6 +596,8 @@ module Lithic
582
596
  # fee field in the settlement/cardholder billing currency. This is the amount
583
597
  # the issuer should authorize against unless the issuer is paying the acquirer
584
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.
585
601
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
586
602
  # given authorization. Scores are on a range of 0-999, with 0 representing the
587
603
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -657,6 +673,11 @@ module Lithic
657
673
  :TRANSACTION_AMOUNT,
658
674
  Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
659
675
  )
676
+ CASH_AMOUNT =
677
+ T.let(
678
+ :CASH_AMOUNT,
679
+ Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
680
+ )
660
681
  RISK_SCORE =
661
682
  T.let(
662
683
  :RISK_SCORE,
@@ -1026,6 +1047,8 @@ module Lithic
1026
1047
  # fee field in the settlement/cardholder billing currency. This is the amount
1027
1048
  # the issuer should authorize against unless the issuer is paying the acquirer
1028
1049
  # fee on behalf of the cardholder.
1050
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
1051
+ # represents the amount of cash being withdrawn or advanced.
1029
1052
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1030
1053
  # given authorization. Scores are on a range of 0-999, with 0 representing the
1031
1054
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -1139,6 +1162,8 @@ module Lithic
1139
1162
  # fee field in the settlement/cardholder billing currency. This is the amount
1140
1163
  # the issuer should authorize against unless the issuer is paying the acquirer
1141
1164
  # fee on behalf of the cardholder.
1165
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
1166
+ # represents the amount of cash being withdrawn or advanced.
1142
1167
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1143
1168
  # given authorization. Scores are on a range of 0-999, with 0 representing the
1144
1169
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -1211,6 +1236,8 @@ module Lithic
1211
1236
  # fee field in the settlement/cardholder billing currency. This is the amount
1212
1237
  # the issuer should authorize against unless the issuer is paying the acquirer
1213
1238
  # fee on behalf of the cardholder.
1239
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
1240
+ # represents the amount of cash being withdrawn or advanced.
1214
1241
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1215
1242
  # given authorization. Scores are on a range of 0-999, with 0 representing the
1216
1243
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -1286,6 +1313,11 @@ module Lithic
1286
1313
  :TRANSACTION_AMOUNT,
1287
1314
  Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1288
1315
  )
1316
+ CASH_AMOUNT =
1317
+ T.let(
1318
+ :CASH_AMOUNT,
1319
+ Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1320
+ )
1289
1321
  RISK_SCORE =
1290
1322
  T.let(
1291
1323
  :RISK_SCORE,
@@ -70,6 +70,11 @@ module Lithic
70
70
  end
71
71
  attr_accessor :event_stream
72
72
 
73
+ # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
74
+ # be modified or deleted by the user
75
+ sig { returns(T::Boolean) }
76
+ attr_accessor :lithic_managed
77
+
73
78
  # Auth Rule Name
74
79
  sig { returns(T.nilable(String)) }
75
80
  attr_accessor :name
@@ -123,6 +128,7 @@ module Lithic
123
128
  ),
124
129
  event_stream:
125
130
  Lithic::Models::AuthRules::V2ListResponse::EventStream::OrSymbol,
131
+ lithic_managed: T::Boolean,
126
132
  name: T.nilable(String),
127
133
  program_level: T::Boolean,
128
134
  state: Lithic::Models::AuthRules::V2ListResponse::State::OrSymbol,
@@ -143,6 +149,9 @@ module Lithic
143
149
  draft_version:,
144
150
  # The event stream during which the rule will be evaluated.
145
151
  event_stream:,
152
+ # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
153
+ # be modified or deleted by the user
154
+ lithic_managed:,
146
155
  # Auth Rule Name
147
156
  name:,
148
157
  # Whether the Auth Rule applies to all authorizations on the card program.
@@ -181,6 +190,7 @@ module Lithic
181
190
  ),
182
191
  event_stream:
183
192
  Lithic::Models::AuthRules::V2ListResponse::EventStream::TaggedSymbol,
193
+ lithic_managed: T::Boolean,
184
194
  name: T.nilable(String),
185
195
  program_level: T::Boolean,
186
196
  state:
@@ -393,6 +403,8 @@ module Lithic
393
403
  # fee field in the settlement/cardholder billing currency. This is the amount
394
404
  # the issuer should authorize against unless the issuer is paying the acquirer
395
405
  # fee on behalf of the cardholder.
406
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
407
+ # represents the amount of cash being withdrawn or advanced.
396
408
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
397
409
  # given authorization. Scores are on a range of 0-999, with 0 representing the
398
410
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -506,6 +518,8 @@ module Lithic
506
518
  # fee field in the settlement/cardholder billing currency. This is the amount
507
519
  # the issuer should authorize against unless the issuer is paying the acquirer
508
520
  # fee on behalf of the cardholder.
521
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
522
+ # represents the amount of cash being withdrawn or advanced.
509
523
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
510
524
  # given authorization. Scores are on a range of 0-999, with 0 representing the
511
525
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -578,6 +592,8 @@ module Lithic
578
592
  # fee field in the settlement/cardholder billing currency. This is the amount
579
593
  # the issuer should authorize against unless the issuer is paying the acquirer
580
594
  # fee on behalf of the cardholder.
595
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
596
+ # represents the amount of cash being withdrawn or advanced.
581
597
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
582
598
  # given authorization. Scores are on a range of 0-999, with 0 representing the
583
599
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -653,6 +669,11 @@ module Lithic
653
669
  :TRANSACTION_AMOUNT,
654
670
  Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
655
671
  )
672
+ CASH_AMOUNT =
673
+ T.let(
674
+ :CASH_AMOUNT,
675
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
676
+ )
656
677
  RISK_SCORE =
657
678
  T.let(
658
679
  :RISK_SCORE,
@@ -1022,6 +1043,8 @@ module Lithic
1022
1043
  # fee field in the settlement/cardholder billing currency. This is the amount
1023
1044
  # the issuer should authorize against unless the issuer is paying the acquirer
1024
1045
  # fee on behalf of the cardholder.
1046
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
1047
+ # represents the amount of cash being withdrawn or advanced.
1025
1048
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1026
1049
  # given authorization. Scores are on a range of 0-999, with 0 representing the
1027
1050
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -1135,6 +1158,8 @@ module Lithic
1135
1158
  # fee field in the settlement/cardholder billing currency. This is the amount
1136
1159
  # the issuer should authorize against unless the issuer is paying the acquirer
1137
1160
  # fee on behalf of the cardholder.
1161
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
1162
+ # represents the amount of cash being withdrawn or advanced.
1138
1163
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1139
1164
  # given authorization. Scores are on a range of 0-999, with 0 representing the
1140
1165
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -1207,6 +1232,8 @@ module Lithic
1207
1232
  # fee field in the settlement/cardholder billing currency. This is the amount
1208
1233
  # the issuer should authorize against unless the issuer is paying the acquirer
1209
1234
  # fee on behalf of the cardholder.
1235
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
1236
+ # represents the amount of cash being withdrawn or advanced.
1210
1237
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1211
1238
  # given authorization. Scores are on a range of 0-999, with 0 representing the
1212
1239
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -1282,6 +1309,11 @@ module Lithic
1282
1309
  :TRANSACTION_AMOUNT,
1283
1310
  Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1284
1311
  )
1312
+ CASH_AMOUNT =
1313
+ T.let(
1314
+ :CASH_AMOUNT,
1315
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1316
+ )
1285
1317
  RISK_SCORE =
1286
1318
  T.let(
1287
1319
  :RISK_SCORE,
@@ -74,6 +74,11 @@ module Lithic
74
74
  end
75
75
  attr_accessor :event_stream
76
76
 
77
+ # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
78
+ # be modified or deleted by the user
79
+ sig { returns(T::Boolean) }
80
+ attr_accessor :lithic_managed
81
+
77
82
  # Auth Rule Name
78
83
  sig { returns(T.nilable(String)) }
79
84
  attr_accessor :name
@@ -129,6 +134,7 @@ module Lithic
129
134
  ),
130
135
  event_stream:
131
136
  Lithic::Models::AuthRules::V2PromoteResponse::EventStream::OrSymbol,
137
+ lithic_managed: T::Boolean,
132
138
  name: T.nilable(String),
133
139
  program_level: T::Boolean,
134
140
  state:
@@ -150,6 +156,9 @@ module Lithic
150
156
  draft_version:,
151
157
  # The event stream during which the rule will be evaluated.
152
158
  event_stream:,
159
+ # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
160
+ # be modified or deleted by the user
161
+ lithic_managed:,
153
162
  # Auth Rule Name
154
163
  name:,
155
164
  # Whether the Auth Rule applies to all authorizations on the card program.
@@ -188,6 +197,7 @@ module Lithic
188
197
  ),
189
198
  event_stream:
190
199
  Lithic::Models::AuthRules::V2PromoteResponse::EventStream::TaggedSymbol,
200
+ lithic_managed: T::Boolean,
191
201
  name: T.nilable(String),
192
202
  program_level: T::Boolean,
193
203
  state:
@@ -400,6 +410,8 @@ module Lithic
400
410
  # fee field in the settlement/cardholder billing currency. This is the amount
401
411
  # the issuer should authorize against unless the issuer is paying the acquirer
402
412
  # fee on behalf of the cardholder.
413
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
414
+ # represents the amount of cash being withdrawn or advanced.
403
415
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
404
416
  # given authorization. Scores are on a range of 0-999, with 0 representing the
405
417
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -513,6 +525,8 @@ module Lithic
513
525
  # fee field in the settlement/cardholder billing currency. This is the amount
514
526
  # the issuer should authorize against unless the issuer is paying the acquirer
515
527
  # fee on behalf of the cardholder.
528
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
529
+ # represents the amount of cash being withdrawn or advanced.
516
530
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
517
531
  # given authorization. Scores are on a range of 0-999, with 0 representing the
518
532
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -585,6 +599,8 @@ module Lithic
585
599
  # fee field in the settlement/cardholder billing currency. This is the amount
586
600
  # the issuer should authorize against unless the issuer is paying the acquirer
587
601
  # fee on behalf of the cardholder.
602
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
603
+ # represents the amount of cash being withdrawn or advanced.
588
604
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
589
605
  # given authorization. Scores are on a range of 0-999, with 0 representing the
590
606
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -660,6 +676,11 @@ module Lithic
660
676
  :TRANSACTION_AMOUNT,
661
677
  Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
662
678
  )
679
+ CASH_AMOUNT =
680
+ T.let(
681
+ :CASH_AMOUNT,
682
+ Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
683
+ )
663
684
  RISK_SCORE =
664
685
  T.let(
665
686
  :RISK_SCORE,
@@ -1029,6 +1050,8 @@ module Lithic
1029
1050
  # fee field in the settlement/cardholder billing currency. This is the amount
1030
1051
  # the issuer should authorize against unless the issuer is paying the acquirer
1031
1052
  # fee on behalf of the cardholder.
1053
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
1054
+ # represents the amount of cash being withdrawn or advanced.
1032
1055
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1033
1056
  # given authorization. Scores are on a range of 0-999, with 0 representing the
1034
1057
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -1142,6 +1165,8 @@ module Lithic
1142
1165
  # fee field in the settlement/cardholder billing currency. This is the amount
1143
1166
  # the issuer should authorize against unless the issuer is paying the acquirer
1144
1167
  # fee on behalf of the cardholder.
1168
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
1169
+ # represents the amount of cash being withdrawn or advanced.
1145
1170
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1146
1171
  # given authorization. Scores are on a range of 0-999, with 0 representing the
1147
1172
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -1214,6 +1239,8 @@ module Lithic
1214
1239
  # fee field in the settlement/cardholder billing currency. This is the amount
1215
1240
  # the issuer should authorize against unless the issuer is paying the acquirer
1216
1241
  # fee on behalf of the cardholder.
1242
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
1243
+ # represents the amount of cash being withdrawn or advanced.
1217
1244
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1218
1245
  # given authorization. Scores are on a range of 0-999, with 0 representing the
1219
1246
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -1289,6 +1316,11 @@ module Lithic
1289
1316
  :TRANSACTION_AMOUNT,
1290
1317
  Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1291
1318
  )
1319
+ CASH_AMOUNT =
1320
+ T.let(
1321
+ :CASH_AMOUNT,
1322
+ Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1323
+ )
1292
1324
  RISK_SCORE =
1293
1325
  T.let(
1294
1326
  :RISK_SCORE,
@@ -0,0 +1,54 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ module AuthRules
6
+ class V2RetrieveFeaturesParams < Lithic::Internal::Type::BaseModel
7
+ extend Lithic::Internal::Type::RequestParameters::Converter
8
+ include Lithic::Internal::Type::RequestParameters
9
+
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Lithic::AuthRules::V2RetrieveFeaturesParams,
14
+ Lithic::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ sig { returns(T.nilable(String)) }
19
+ attr_reader :account_token
20
+
21
+ sig { params(account_token: String).void }
22
+ attr_writer :account_token
23
+
24
+ sig { returns(T.nilable(String)) }
25
+ attr_reader :card_token
26
+
27
+ sig { params(card_token: String).void }
28
+ attr_writer :card_token
29
+
30
+ sig do
31
+ params(
32
+ account_token: String,
33
+ card_token: String,
34
+ request_options: Lithic::RequestOptions::OrHash
35
+ ).returns(T.attached_class)
36
+ end
37
+ def self.new(account_token: nil, card_token: nil, request_options: {})
38
+ end
39
+
40
+ sig do
41
+ override.returns(
42
+ {
43
+ account_token: String,
44
+ card_token: String,
45
+ request_options: Lithic::RequestOptions
46
+ }
47
+ )
48
+ end
49
+ def to_hash
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end