lithic 0.21.0 → 0.23.0

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 (235) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +50 -0
  3. data/README.md +1 -10
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/internal/type/union.rb +21 -7
  6. data/lib/lithic/models/account_activity_list_params.rb +1 -0
  7. data/lib/lithic/models/account_activity_list_response.rb +2 -24
  8. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +2 -24
  9. data/lib/lithic/models/account_holder_create_params.rb +4 -2
  10. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +120 -66
  11. data/lib/lithic/models/account_holder_update_params.rb +6 -3
  12. data/lib/lithic/models/account_holder_update_response.rb +156 -86
  13. data/lib/lithic/models/account_holder_updated_webhook_event.rb +120 -66
  14. data/lib/lithic/models/account_holders/account_holder_entity.rb +35 -19
  15. data/lib/lithic/models/account_holders/entity_create_params.rb +39 -21
  16. data/lib/lithic/models/address.rb +33 -19
  17. data/lib/lithic/models/address_update.rb +27 -11
  18. data/lib/lithic/models/auth_rules/auth_rule.rb +55 -27
  19. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +189 -6
  20. data/lib/lithic/models/auth_rules/auth_rule_entities.rb +47 -0
  21. data/lib/lithic/models/auth_rules/auth_rule_entities_response.rb +31 -0
  22. data/lib/lithic/models/auth_rules/auth_rule_entity.rb +150 -0
  23. data/lib/lithic/models/auth_rules/auth_rule_version.rb +3 -6
  24. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +33 -6
  25. data/lib/lithic/models/auth_rules/conditional_attribute.rb +101 -5
  26. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +3 -439
  27. data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +7 -0
  28. data/lib/lithic/models/auth_rules/merchant_lock_parameters.rb +11 -1
  29. data/lib/lithic/models/auth_rules/v2_create_params.rb +203 -45
  30. data/lib/lithic/models/auth_rules/v2_draft_params.rb +3 -6
  31. data/lib/lithic/models/auth_rules/v2_list_params.rb +5 -3
  32. data/lib/lithic/models/auth_rules/v2_update_entities_params.rb +39 -0
  33. data/lib/lithic/models/auth_rules/v2_update_params.rb +133 -12
  34. data/lib/lithic/models/book_transfer_create_params.rb +1 -0
  35. data/lib/lithic/models/book_transfer_response.rb +1 -0
  36. data/lib/lithic/models/card_authorization.rb +12 -1
  37. data/lib/lithic/models/card_create_params.rb +11 -1
  38. data/lib/lithic/models/card_update_params.rb +12 -1
  39. data/lib/lithic/models/cards/financial_transaction_list_params.rb +9 -1
  40. data/lib/lithic/models/claim_created_webhook_event.rb +15 -1
  41. data/lib/lithic/models/claim_updated_webhook_event.rb +15 -1
  42. data/lib/lithic/models/financial_account_balance.rb +6 -6
  43. data/lib/lithic/models/financial_accounts/credit_configuration_update_params.rb +9 -2
  44. data/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb +9 -1
  45. data/lib/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rb +279 -0
  46. data/lib/lithic/models/financial_accounts/installment_plans/statement_list_params.rb +106 -0
  47. data/lib/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rb +42 -0
  48. data/lib/lithic/models/financial_accounts/interest_tier_schedule.rb +6 -6
  49. data/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb +6 -6
  50. data/lib/lithic/models/financial_accounts/loan_tape.rb +71 -2
  51. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +5 -0
  52. data/lib/lithic/models/financial_event.rb +4 -0
  53. data/lib/lithic/models/funding_event_list_params.rb +28 -1
  54. data/lib/lithic/models/hold.rb +24 -28
  55. data/lib/lithic/models/ip_range_retrieve_params.rb +14 -0
  56. data/lib/lithic/models/ip_range_retrieve_response.rb +25 -0
  57. data/lib/lithic/models/kyb.rb +4 -2
  58. data/lib/lithic/models/kyb_business_entity.rb +35 -19
  59. data/lib/lithic/models/kyc.rb +2 -1
  60. data/lib/lithic/models/non_pci_card.rb +11 -1
  61. data/lib/lithic/models/parsed_webhook_event.rb +120 -66
  62. data/lib/lithic/models/payment.rb +3 -1
  63. data/lib/lithic/models/transaction.rb +11 -4
  64. data/lib/lithic/models/transaction_simulate_authorization_params.rb +28 -4
  65. data/lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb +11 -1
  66. data/lib/lithic/models/transaction_simulate_return_params.rb +24 -1
  67. data/lib/lithic/models/transactions/events/enhanced_data.rb +27 -3
  68. data/lib/lithic/models/transfer_limits_response.rb +9 -1
  69. data/lib/lithic/models.rb +2 -0
  70. data/lib/lithic/resources/auth_rules/v2/backtests.rb +8 -8
  71. data/lib/lithic/resources/auth_rules/v2.rb +44 -8
  72. data/lib/lithic/resources/cards/financial_transactions.rb +5 -3
  73. data/lib/lithic/resources/cards.rb +6 -2
  74. data/lib/lithic/resources/financial_accounts/credit_configuration.rb +9 -2
  75. data/lib/lithic/resources/financial_accounts/financial_transactions.rb +5 -3
  76. data/lib/lithic/resources/financial_accounts/installment_plans/statements.rb +107 -0
  77. data/lib/lithic/resources/financial_accounts/installment_plans.rb +4 -0
  78. data/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb +6 -6
  79. data/lib/lithic/resources/funding_events.rb +8 -2
  80. data/lib/lithic/resources/ip_ranges.rb +36 -0
  81. data/lib/lithic/resources/transactions.rb +17 -4
  82. data/lib/lithic/resources/webhooks.rb +20 -0
  83. data/lib/lithic/version.rb +1 -1
  84. data/lib/lithic.rb +11 -1
  85. data/rbi/lithic/client.rbi +3 -0
  86. data/rbi/lithic/models/account_activity_list_params.rbi +5 -0
  87. data/rbi/lithic/models/account_activity_list_response.rbi +6 -75
  88. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +6 -75
  89. data/rbi/lithic/models/account_holder_create_params.rbi +8 -4
  90. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +195 -90
  91. data/rbi/lithic/models/account_holder_update_params.rbi +12 -6
  92. data/rbi/lithic/models/account_holder_update_response.rbi +254 -117
  93. data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +195 -90
  94. data/rbi/lithic/models/account_holders/account_holder_entity.rbi +59 -27
  95. data/rbi/lithic/models/account_holders/entity_create_params.rbi +65 -30
  96. data/rbi/lithic/models/address.rbi +57 -29
  97. data/rbi/lithic/models/address_update.rbi +50 -24
  98. data/rbi/lithic/models/auth_rules/auth_rule.rbi +53 -19
  99. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +442 -13
  100. data/rbi/lithic/models/auth_rules/auth_rule_entities.rbi +163 -0
  101. data/rbi/lithic/models/auth_rules/auth_rule_entities_response.rbi +72 -0
  102. data/rbi/lithic/models/auth_rules/auth_rule_entity.rbi +199 -0
  103. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +0 -2
  104. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +67 -9
  105. data/rbi/lithic/models/auth_rules/conditional_attribute.rbi +193 -5
  106. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +3 -939
  107. data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +14 -0
  108. data/rbi/lithic/models/auth_rules/merchant_lock_parameters.rbi +14 -3
  109. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +325 -50
  110. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +0 -4
  111. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +6 -3
  112. data/rbi/lithic/models/auth_rules/v2_update_entities_params.rbi +68 -0
  113. data/rbi/lithic/models/auth_rules/v2_update_params.rbi +198 -5
  114. data/rbi/lithic/models/book_transfer_create_params.rbi +5 -0
  115. data/rbi/lithic/models/book_transfer_response.rbi +5 -0
  116. data/rbi/lithic/models/card_authorization.rbi +14 -0
  117. data/rbi/lithic/models/card_create_params.rbi +15 -0
  118. data/rbi/lithic/models/card_update_params.rbi +17 -0
  119. data/rbi/lithic/models/cards/financial_transaction_list_params.rbi +11 -0
  120. data/rbi/lithic/models/claim_created_webhook_event.rbi +14 -0
  121. data/rbi/lithic/models/claim_updated_webhook_event.rbi +14 -0
  122. data/rbi/lithic/models/financial_account_balance.rbi +6 -6
  123. data/rbi/lithic/models/financial_accounts/credit_configuration_update_params.rbi +8 -2
  124. data/rbi/lithic/models/financial_accounts/financial_transaction_list_params.rbi +11 -0
  125. data/rbi/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbi +452 -0
  126. data/rbi/lithic/models/financial_accounts/installment_plans/statement_list_params.rbi +191 -0
  127. data/rbi/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbi +66 -0
  128. data/rbi/lithic/models/financial_accounts/interest_tier_schedule.rbi +9 -18
  129. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi +9 -18
  130. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +143 -3
  131. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +25 -0
  132. data/rbi/lithic/models/financial_event.rbi +17 -0
  133. data/rbi/lithic/models/funding_event_list_params.rbi +39 -0
  134. data/rbi/lithic/models/hold.rbi +28 -29
  135. data/rbi/lithic/models/ip_range_retrieve_params.rbi +27 -0
  136. data/rbi/lithic/models/ip_range_retrieve_response.rbi +40 -0
  137. data/rbi/lithic/models/kyb.rbi +8 -4
  138. data/rbi/lithic/models/kyb_business_entity.rbi +59 -27
  139. data/rbi/lithic/models/kyc.rbi +4 -2
  140. data/rbi/lithic/models/non_pci_card.rbi +12 -0
  141. data/rbi/lithic/models/parsed_webhook_event.rbi +195 -90
  142. data/rbi/lithic/models/payment.rbi +5 -2
  143. data/rbi/lithic/models/transaction.rbi +15 -6
  144. data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +42 -4
  145. data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi +15 -0
  146. data/rbi/lithic/models/transaction_simulate_return_params.rbi +30 -0
  147. data/rbi/lithic/models/transactions/events/enhanced_data.rbi +25 -5
  148. data/rbi/lithic/models/transfer_limits_response.rbi +8 -0
  149. data/rbi/lithic/models.rbi +2 -0
  150. data/rbi/lithic/resources/account_holders/entities.rbi +2 -1
  151. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +8 -8
  152. data/rbi/lithic/resources/auth_rules/v2.rbi +43 -8
  153. data/rbi/lithic/resources/cards/financial_transactions.rbi +4 -1
  154. data/rbi/lithic/resources/cards.rbi +11 -0
  155. data/rbi/lithic/resources/financial_accounts/credit_configuration.rbi +8 -2
  156. data/rbi/lithic/resources/financial_accounts/financial_transactions.rbi +4 -1
  157. data/rbi/lithic/resources/financial_accounts/installment_plans/statements.rbi +86 -0
  158. data/rbi/lithic/resources/financial_accounts/installment_plans.rbi +7 -0
  159. data/rbi/lithic/resources/financial_accounts/interest_tier_schedule.rbi +6 -6
  160. data/rbi/lithic/resources/funding_events.rbi +12 -0
  161. data/rbi/lithic/resources/ip_ranges.rbi +25 -0
  162. data/rbi/lithic/resources/transactions.rbi +31 -2
  163. data/sig/lithic/client.rbs +2 -0
  164. data/sig/lithic/models/account_activity_list_params.rbs +2 -0
  165. data/sig/lithic/models/account_activity_list_response.rbs +3 -32
  166. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +3 -32
  167. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +39 -39
  168. data/sig/lithic/models/account_holder_update_response.rbs +52 -52
  169. data/sig/lithic/models/account_holder_updated_webhook_event.rbs +39 -39
  170. data/sig/lithic/models/account_holders/account_holder_entity.rbs +13 -13
  171. data/sig/lithic/models/account_holders/entity_create_params.rbs +13 -13
  172. data/sig/lithic/models/address.rbs +13 -13
  173. data/sig/lithic/models/address_update.rbs +8 -12
  174. data/sig/lithic/models/auth_rules/auth_rule.rbs +8 -7
  175. data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +89 -3
  176. data/sig/lithic/models/auth_rules/auth_rule_entities.rbs +37 -0
  177. data/sig/lithic/models/auth_rules/auth_rule_entities_response.rbs +29 -0
  178. data/sig/lithic/models/auth_rules/auth_rule_entity.rbs +80 -0
  179. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -2
  180. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -0
  181. data/sig/lithic/models/auth_rules/conditional_attribute.rbs +46 -0
  182. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +4 -204
  183. data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +2 -0
  184. data/sig/lithic/models/auth_rules/merchant_lock_parameters.rbs +10 -3
  185. data/sig/lithic/models/auth_rules/v2_create_params.rbs +86 -16
  186. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -2
  187. data/sig/lithic/models/auth_rules/v2_update_entities_params.rbs +46 -0
  188. data/sig/lithic/models/auth_rules/v2_update_params.rbs +47 -1
  189. data/sig/lithic/models/book_transfer_create_params.rbs +2 -0
  190. data/sig/lithic/models/book_transfer_response.rbs +2 -0
  191. data/sig/lithic/models/card_authorization.rbs +13 -1
  192. data/sig/lithic/models/card_create_params.rbs +7 -0
  193. data/sig/lithic/models/card_update_params.rbs +8 -1
  194. data/sig/lithic/models/cards/financial_transaction_list_params.rbs +7 -0
  195. data/sig/lithic/models/claim_created_webhook_event.rbs +5 -0
  196. data/sig/lithic/models/claim_updated_webhook_event.rbs +5 -0
  197. data/sig/lithic/models/financial_account_balance.rbs +8 -8
  198. data/sig/lithic/models/financial_accounts/financial_transaction_list_params.rbs +7 -0
  199. data/sig/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbs +191 -0
  200. data/sig/lithic/models/financial_accounts/installment_plans/statement_list_params.rbs +90 -0
  201. data/sig/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbs +40 -0
  202. data/sig/lithic/models/financial_accounts/interest_tier_schedule.rbs +12 -18
  203. data/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs +12 -18
  204. data/sig/lithic/models/financial_accounts/loan_tape.rbs +55 -3
  205. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +10 -0
  206. data/sig/lithic/models/financial_event.rbs +8 -0
  207. data/sig/lithic/models/funding_event_list_params.rbs +26 -1
  208. data/sig/lithic/models/hold.rbs +22 -30
  209. data/sig/lithic/models/ip_range_retrieve_params.rbs +15 -0
  210. data/sig/lithic/models/ip_range_retrieve_response.rbs +16 -0
  211. data/sig/lithic/models/kyb_business_entity.rbs +13 -13
  212. data/sig/lithic/models/non_pci_card.rbs +5 -0
  213. data/sig/lithic/models/parsed_webhook_event.rbs +39 -39
  214. data/sig/lithic/models/payment.rbs +2 -0
  215. data/sig/lithic/models/transaction.rbs +12 -5
  216. data/sig/lithic/models/transaction_simulate_authorization_params.rbs +14 -0
  217. data/sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs +7 -0
  218. data/sig/lithic/models/transaction_simulate_return_params.rbs +19 -1
  219. data/sig/lithic/models/transactions/events/enhanced_data.rbs +13 -3
  220. data/sig/lithic/models/transfer_limits_response.rbs +5 -0
  221. data/sig/lithic/models.rbs +2 -0
  222. data/sig/lithic/resources/auth_rules/v2.rbs +7 -0
  223. data/sig/lithic/resources/cards/financial_transactions.rbs +2 -1
  224. data/sig/lithic/resources/cards.rbs +2 -0
  225. data/sig/lithic/resources/financial_accounts/financial_transactions.rbs +2 -1
  226. data/sig/lithic/resources/financial_accounts/installment_plans/statements.rbs +30 -0
  227. data/sig/lithic/resources/financial_accounts/installment_plans.rbs +2 -0
  228. data/sig/lithic/resources/financial_accounts/interest_tier_schedule.rbs +6 -6
  229. data/sig/lithic/resources/funding_events.rbs +3 -0
  230. data/sig/lithic/resources/ip_ranges.rbs +11 -0
  231. data/sig/lithic/resources/transactions.rbs +5 -0
  232. metadata +36 -10
  233. data/lib/lithic/models/auth_rules/conditional_block_parameters.rb +0 -20
  234. data/rbi/lithic/models/auth_rules/conditional_block_parameters.rbi +0 -37
  235. data/sig/lithic/models/auth_rules/conditional_block_parameters.rbs +0 -20
@@ -12,9 +12,11 @@ module Lithic
12
12
  T.any(Lithic::AuthRules::V2CreateParams, Lithic::Internal::AnyHash)
13
13
  end
14
14
 
15
+ # Deprecated: Use `entities` instead. Cannot be combined with `entities`.
15
16
  sig do
16
17
  returns(
17
18
  T.any(
19
+ Lithic::AuthRules::V2CreateParams::Body::Rule,
18
20
  Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule,
19
21
  Lithic::AuthRules::V2CreateParams::Body::CardLevelRule,
20
22
  Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule
@@ -27,6 +29,7 @@ module Lithic
27
29
  params(
28
30
  body:
29
31
  T.any(
32
+ Lithic::AuthRules::V2CreateParams::Body::Rule::OrHash,
30
33
  Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::OrHash,
31
34
  Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::OrHash,
32
35
  Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::OrHash
@@ -34,7 +37,11 @@ module Lithic
34
37
  request_options: Lithic::RequestOptions::OrHash
35
38
  ).returns(T.attached_class)
36
39
  end
37
- def self.new(body:, request_options: {})
40
+ def self.new(
41
+ # Deprecated: Use `entities` instead. Cannot be combined with `entities`.
42
+ body:,
43
+ request_options: {}
44
+ )
38
45
  end
39
46
 
40
47
  sig do
@@ -42,6 +49,7 @@ module Lithic
42
49
  {
43
50
  body:
44
51
  T.any(
52
+ Lithic::AuthRules::V2CreateParams::Body::Rule,
45
53
  Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule,
46
54
  Lithic::AuthRules::V2CreateParams::Body::CardLevelRule,
47
55
  Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule
@@ -53,18 +61,295 @@ module Lithic
53
61
  def to_hash
54
62
  end
55
63
 
64
+ # Deprecated: Use `entities` instead. Cannot be combined with `entities`.
56
65
  module Body
57
66
  extend Lithic::Internal::Type::Union
58
67
 
59
68
  Variants =
60
69
  T.type_alias do
61
70
  T.any(
71
+ Lithic::AuthRules::V2CreateParams::Body::Rule,
62
72
  Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule,
63
73
  Lithic::AuthRules::V2CreateParams::Body::CardLevelRule,
64
74
  Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule
65
75
  )
66
76
  end
67
77
 
78
+ class Rule < Lithic::Internal::Type::BaseModel
79
+ OrHash =
80
+ T.type_alias do
81
+ T.any(
82
+ Lithic::AuthRules::V2CreateParams::Body::Rule,
83
+ Lithic::Internal::AnyHash
84
+ )
85
+ end
86
+
87
+ # The entities an Auth Rule applies to (`include`) and does not apply to
88
+ # (`exclude`). An exclusion overrides an inclusion, so a card excluded here is
89
+ # skipped even when the program, its account or one of its tags is included.
90
+ #
91
+ # The rule's resulting entities must satisfy these constraints after any write:
92
+ #
93
+ # - `include` must contain at least one entity.
94
+ # - If `PROGRAM` is included, it must be the only included entity.
95
+ # - `PROGRAM` cannot be excluded.
96
+ # - An entity cannot appear in both `include` and `exclude`, or twice in the same
97
+ # list.
98
+ # - A rule can have at most 1,000 entities across `include` and `exclude`, not
99
+ # counting `PROGRAM`.
100
+ # - Entity types must be valid for the rule's event stream.
101
+ # - `CARD`, `ACCOUNT` and `BUSINESS_ACCOUNT` tokens must belong to your program.
102
+ sig { returns(Lithic::AuthRules::AuthRuleEntities) }
103
+ attr_reader :entities
104
+
105
+ sig do
106
+ params(entities: Lithic::AuthRules::AuthRuleEntities::OrHash).void
107
+ end
108
+ attr_writer :entities
109
+
110
+ # Parameters for the Auth Rule
111
+ sig do
112
+ returns(
113
+ T.any(
114
+ Lithic::AuthRules::VelocityLimitParams,
115
+ Lithic::AuthRules::MerchantLockParameters,
116
+ Lithic::AuthRules::Conditional3DSActionParameters,
117
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters,
118
+ Lithic::AuthRules::ConditionalACHActionParameters,
119
+ Lithic::AuthRules::ConditionalTokenizationActionParameters,
120
+ Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters,
121
+ Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters,
122
+ Lithic::AuthRules::TypescriptCodeParameters,
123
+ Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
124
+ )
125
+ )
126
+ end
127
+ attr_accessor :parameters
128
+
129
+ # The type of Auth Rule. For certain rule types, this determines the event stream
130
+ # during which it will be evaluated. For rules that can be applied to one of
131
+ # several event streams, the effective one is defined by the separate
132
+ # `event_stream` field.
133
+ #
134
+ # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
135
+ # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
136
+ # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
137
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
138
+ # ACH_PAYMENT_UPDATE event stream.
139
+ # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
140
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
141
+ # ACH_PAYMENT_UPDATE event stream.
142
+ # - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
143
+ # are read-only; `OTHER` cannot be used when creating a rule.
144
+ sig do
145
+ returns(
146
+ Lithic::AuthRules::V2CreateParams::Body::Rule::Type::OrSymbol
147
+ )
148
+ end
149
+ attr_accessor :type
150
+
151
+ # The event stream during which the rule will be evaluated.
152
+ sig { returns(T.nilable(Lithic::AuthRules::EventStream::OrSymbol)) }
153
+ attr_reader :event_stream
154
+
155
+ sig do
156
+ params(
157
+ event_stream: Lithic::AuthRules::EventStream::OrSymbol
158
+ ).void
159
+ end
160
+ attr_writer :event_stream
161
+
162
+ # Auth Rule Name
163
+ sig { returns(T.nilable(String)) }
164
+ attr_accessor :name
165
+
166
+ sig do
167
+ params(
168
+ entities: Lithic::AuthRules::AuthRuleEntities::OrHash,
169
+ parameters:
170
+ T.any(
171
+ Lithic::AuthRules::VelocityLimitParams::OrHash,
172
+ Lithic::AuthRules::MerchantLockParameters::OrHash,
173
+ Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
174
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash,
175
+ Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
176
+ Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
177
+ Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::OrHash,
178
+ Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::OrHash,
179
+ Lithic::AuthRules::TypescriptCodeParameters::OrHash,
180
+ Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::OrHash
181
+ ),
182
+ type:
183
+ Lithic::AuthRules::V2CreateParams::Body::Rule::Type::OrSymbol,
184
+ event_stream: Lithic::AuthRules::EventStream::OrSymbol,
185
+ name: T.nilable(String)
186
+ ).returns(T.attached_class)
187
+ end
188
+ def self.new(
189
+ # The entities an Auth Rule applies to (`include`) and does not apply to
190
+ # (`exclude`). An exclusion overrides an inclusion, so a card excluded here is
191
+ # skipped even when the program, its account or one of its tags is included.
192
+ #
193
+ # The rule's resulting entities must satisfy these constraints after any write:
194
+ #
195
+ # - `include` must contain at least one entity.
196
+ # - If `PROGRAM` is included, it must be the only included entity.
197
+ # - `PROGRAM` cannot be excluded.
198
+ # - An entity cannot appear in both `include` and `exclude`, or twice in the same
199
+ # list.
200
+ # - A rule can have at most 1,000 entities across `include` and `exclude`, not
201
+ # counting `PROGRAM`.
202
+ # - Entity types must be valid for the rule's event stream.
203
+ # - `CARD`, `ACCOUNT` and `BUSINESS_ACCOUNT` tokens must belong to your program.
204
+ entities:,
205
+ # Parameters for the Auth Rule
206
+ parameters:,
207
+ # The type of Auth Rule. For certain rule types, this determines the event stream
208
+ # during which it will be evaluated. For rules that can be applied to one of
209
+ # several event streams, the effective one is defined by the separate
210
+ # `event_stream` field.
211
+ #
212
+ # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
213
+ # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
214
+ # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
215
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
216
+ # ACH_PAYMENT_UPDATE event stream.
217
+ # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
218
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
219
+ # ACH_PAYMENT_UPDATE event stream.
220
+ # - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
221
+ # are read-only; `OTHER` cannot be used when creating a rule.
222
+ type:,
223
+ # The event stream during which the rule will be evaluated.
224
+ event_stream: nil,
225
+ # Auth Rule Name
226
+ name: nil
227
+ )
228
+ end
229
+
230
+ sig do
231
+ override.returns(
232
+ {
233
+ entities: Lithic::AuthRules::AuthRuleEntities,
234
+ parameters:
235
+ T.any(
236
+ Lithic::AuthRules::VelocityLimitParams,
237
+ Lithic::AuthRules::MerchantLockParameters,
238
+ Lithic::AuthRules::Conditional3DSActionParameters,
239
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters,
240
+ Lithic::AuthRules::ConditionalACHActionParameters,
241
+ Lithic::AuthRules::ConditionalTokenizationActionParameters,
242
+ Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters,
243
+ Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters,
244
+ Lithic::AuthRules::TypescriptCodeParameters,
245
+ Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
246
+ ),
247
+ type:
248
+ Lithic::AuthRules::V2CreateParams::Body::Rule::Type::OrSymbol,
249
+ event_stream: Lithic::AuthRules::EventStream::OrSymbol,
250
+ name: T.nilable(String)
251
+ }
252
+ )
253
+ end
254
+ def to_hash
255
+ end
256
+
257
+ # Parameters for the Auth Rule
258
+ module Parameters
259
+ extend Lithic::Internal::Type::Union
260
+
261
+ Variants =
262
+ T.type_alias do
263
+ T.any(
264
+ Lithic::AuthRules::VelocityLimitParams,
265
+ Lithic::AuthRules::MerchantLockParameters,
266
+ Lithic::AuthRules::Conditional3DSActionParameters,
267
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters,
268
+ Lithic::AuthRules::ConditionalACHActionParameters,
269
+ Lithic::AuthRules::ConditionalTokenizationActionParameters,
270
+ Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters,
271
+ Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters,
272
+ Lithic::AuthRules::TypescriptCodeParameters,
273
+ Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
274
+ )
275
+ end
276
+
277
+ sig do
278
+ override.returns(
279
+ T::Array[
280
+ Lithic::AuthRules::V2CreateParams::Body::Rule::Parameters::Variants
281
+ ]
282
+ )
283
+ end
284
+ def self.variants
285
+ end
286
+ end
287
+
288
+ # The type of Auth Rule. For certain rule types, this determines the event stream
289
+ # during which it will be evaluated. For rules that can be applied to one of
290
+ # several event streams, the effective one is defined by the separate
291
+ # `event_stream` field.
292
+ #
293
+ # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
294
+ # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
295
+ # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
296
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
297
+ # ACH_PAYMENT_UPDATE event stream.
298
+ # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
299
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
300
+ # ACH_PAYMENT_UPDATE event stream.
301
+ # - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
302
+ # are read-only; `OTHER` cannot be used when creating a rule.
303
+ module Type
304
+ extend Lithic::Internal::Type::Enum
305
+
306
+ TaggedSymbol =
307
+ T.type_alias do
308
+ T.all(
309
+ Symbol,
310
+ Lithic::AuthRules::V2CreateParams::Body::Rule::Type
311
+ )
312
+ end
313
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
314
+
315
+ VELOCITY_LIMIT =
316
+ T.let(
317
+ :VELOCITY_LIMIT,
318
+ Lithic::AuthRules::V2CreateParams::Body::Rule::Type::TaggedSymbol
319
+ )
320
+ MERCHANT_LOCK =
321
+ T.let(
322
+ :MERCHANT_LOCK,
323
+ Lithic::AuthRules::V2CreateParams::Body::Rule::Type::TaggedSymbol
324
+ )
325
+ CONDITIONAL_ACTION =
326
+ T.let(
327
+ :CONDITIONAL_ACTION,
328
+ Lithic::AuthRules::V2CreateParams::Body::Rule::Type::TaggedSymbol
329
+ )
330
+ TYPESCRIPT_CODE =
331
+ T.let(
332
+ :TYPESCRIPT_CODE,
333
+ Lithic::AuthRules::V2CreateParams::Body::Rule::Type::TaggedSymbol
334
+ )
335
+ OTHER =
336
+ T.let(
337
+ :OTHER,
338
+ Lithic::AuthRules::V2CreateParams::Body::Rule::Type::TaggedSymbol
339
+ )
340
+
341
+ sig do
342
+ override.returns(
343
+ T::Array[
344
+ Lithic::AuthRules::V2CreateParams::Body::Rule::Type::TaggedSymbol
345
+ ]
346
+ )
347
+ end
348
+ def self.values
349
+ end
350
+ end
351
+ end
352
+
68
353
  class AccountLevelRule < Lithic::Internal::Type::BaseModel
69
354
  OrHash =
70
355
  T.type_alias do
@@ -78,7 +363,6 @@ module Lithic
78
363
  sig do
79
364
  returns(
80
365
  T.any(
81
- Lithic::AuthRules::ConditionalBlockParameters,
82
366
  Lithic::AuthRules::VelocityLimitParams,
83
367
  Lithic::AuthRules::MerchantLockParameters,
84
368
  Lithic::AuthRules::Conditional3DSActionParameters,
@@ -99,8 +383,6 @@ module Lithic
99
383
  # several event streams, the effective one is defined by the separate
100
384
  # `event_stream` field.
101
385
  #
102
- # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
103
- # AUTHORIZATION event stream.
104
386
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
105
387
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
106
388
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
@@ -118,6 +400,8 @@ module Lithic
118
400
  end
119
401
  attr_accessor :type
120
402
 
403
+ # Deprecated: Use `entities.include` with `ACCOUNT` entities instead.
404
+ #
121
405
  # Account tokens to which the Auth Rule applies.
122
406
  sig { returns(T.nilable(T::Array[String])) }
123
407
  attr_reader :account_tokens
@@ -125,6 +409,8 @@ module Lithic
125
409
  sig { params(account_tokens: T::Array[String]).void }
126
410
  attr_writer :account_tokens
127
411
 
412
+ # Deprecated: Use `entities.include` with `BUSINESS_ACCOUNT` entities instead.
413
+ #
128
414
  # Business Account tokens to which the Auth Rule applies.
129
415
  sig { returns(T.nilable(T::Array[String])) }
130
416
  attr_reader :business_account_tokens
@@ -147,11 +433,11 @@ module Lithic
147
433
  sig { returns(T.nilable(String)) }
148
434
  attr_accessor :name
149
435
 
436
+ # Deprecated: Use `entities` instead. Cannot be combined with `entities`.
150
437
  sig do
151
438
  params(
152
439
  parameters:
153
440
  T.any(
154
- Lithic::AuthRules::ConditionalBlockParameters::OrHash,
155
441
  Lithic::AuthRules::VelocityLimitParams::OrHash,
156
442
  Lithic::AuthRules::MerchantLockParameters::OrHash,
157
443
  Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
@@ -179,8 +465,6 @@ module Lithic
179
465
  # several event streams, the effective one is defined by the separate
180
466
  # `event_stream` field.
181
467
  #
182
- # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
183
- # AUTHORIZATION event stream.
184
468
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
185
469
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
186
470
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
@@ -192,8 +476,12 @@ module Lithic
192
476
  # - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
193
477
  # are read-only; `OTHER` cannot be used when creating a rule.
194
478
  type:,
479
+ # Deprecated: Use `entities.include` with `ACCOUNT` entities instead.
480
+ #
195
481
  # Account tokens to which the Auth Rule applies.
196
482
  account_tokens: nil,
483
+ # Deprecated: Use `entities.include` with `BUSINESS_ACCOUNT` entities instead.
484
+ #
197
485
  # Business Account tokens to which the Auth Rule applies.
198
486
  business_account_tokens: nil,
199
487
  # The event stream during which the rule will be evaluated.
@@ -208,7 +496,6 @@ module Lithic
208
496
  {
209
497
  parameters:
210
498
  T.any(
211
- Lithic::AuthRules::ConditionalBlockParameters,
212
499
  Lithic::AuthRules::VelocityLimitParams,
213
500
  Lithic::AuthRules::MerchantLockParameters,
214
501
  Lithic::AuthRules::Conditional3DSActionParameters,
@@ -239,7 +526,6 @@ module Lithic
239
526
  Variants =
240
527
  T.type_alias do
241
528
  T.any(
242
- Lithic::AuthRules::ConditionalBlockParameters,
243
529
  Lithic::AuthRules::VelocityLimitParams,
244
530
  Lithic::AuthRules::MerchantLockParameters,
245
531
  Lithic::AuthRules::Conditional3DSActionParameters,
@@ -269,8 +555,6 @@ module Lithic
269
555
  # several event streams, the effective one is defined by the separate
270
556
  # `event_stream` field.
271
557
  #
272
- # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
273
- # AUTHORIZATION event stream.
274
558
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
275
559
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
276
560
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
@@ -293,11 +577,6 @@ module Lithic
293
577
  end
294
578
  OrSymbol = T.type_alias { T.any(Symbol, String) }
295
579
 
296
- CONDITIONAL_BLOCK =
297
- T.let(
298
- :CONDITIONAL_BLOCK,
299
- Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol
300
- )
301
580
  VELOCITY_LIMIT =
302
581
  T.let(
303
582
  :VELOCITY_LIMIT,
@@ -345,7 +624,10 @@ module Lithic
345
624
  )
346
625
  end
347
626
 
348
- # Card tokens to which the Auth Rule applies.
627
+ # Deprecated: Use `entities.include` with `CARD` entities instead.
628
+ #
629
+ # Card tokens to which the Auth Rule applies. Cards the rule applies to through a
630
+ # `CARD_TAG` entity are not listed.
349
631
  sig { returns(T::Array[String]) }
350
632
  attr_accessor :card_tokens
351
633
 
@@ -353,7 +635,6 @@ module Lithic
353
635
  sig do
354
636
  returns(
355
637
  T.any(
356
- Lithic::AuthRules::ConditionalBlockParameters,
357
638
  Lithic::AuthRules::VelocityLimitParams,
358
639
  Lithic::AuthRules::MerchantLockParameters,
359
640
  Lithic::AuthRules::Conditional3DSActionParameters,
@@ -374,8 +655,6 @@ module Lithic
374
655
  # several event streams, the effective one is defined by the separate
375
656
  # `event_stream` field.
376
657
  #
377
- # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
378
- # AUTHORIZATION event stream.
379
658
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
380
659
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
381
660
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
@@ -408,12 +687,12 @@ module Lithic
408
687
  sig { returns(T.nilable(String)) }
409
688
  attr_accessor :name
410
689
 
690
+ # Deprecated: Use `entities` instead. Cannot be combined with `entities`.
411
691
  sig do
412
692
  params(
413
693
  card_tokens: T::Array[String],
414
694
  parameters:
415
695
  T.any(
416
- Lithic::AuthRules::ConditionalBlockParameters::OrHash,
417
696
  Lithic::AuthRules::VelocityLimitParams::OrHash,
418
697
  Lithic::AuthRules::MerchantLockParameters::OrHash,
419
698
  Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
@@ -432,7 +711,10 @@ module Lithic
432
711
  ).returns(T.attached_class)
433
712
  end
434
713
  def self.new(
435
- # Card tokens to which the Auth Rule applies.
714
+ # Deprecated: Use `entities.include` with `CARD` entities instead.
715
+ #
716
+ # Card tokens to which the Auth Rule applies. Cards the rule applies to through a
717
+ # `CARD_TAG` entity are not listed.
436
718
  card_tokens:,
437
719
  # Parameters for the Auth Rule
438
720
  parameters:,
@@ -441,8 +723,6 @@ module Lithic
441
723
  # several event streams, the effective one is defined by the separate
442
724
  # `event_stream` field.
443
725
  #
444
- # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
445
- # AUTHORIZATION event stream.
446
726
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
447
727
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
448
728
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
@@ -467,7 +747,6 @@ module Lithic
467
747
  card_tokens: T::Array[String],
468
748
  parameters:
469
749
  T.any(
470
- Lithic::AuthRules::ConditionalBlockParameters,
471
750
  Lithic::AuthRules::VelocityLimitParams,
472
751
  Lithic::AuthRules::MerchantLockParameters,
473
752
  Lithic::AuthRules::Conditional3DSActionParameters,
@@ -496,7 +775,6 @@ module Lithic
496
775
  Variants =
497
776
  T.type_alias do
498
777
  T.any(
499
- Lithic::AuthRules::ConditionalBlockParameters,
500
778
  Lithic::AuthRules::VelocityLimitParams,
501
779
  Lithic::AuthRules::MerchantLockParameters,
502
780
  Lithic::AuthRules::Conditional3DSActionParameters,
@@ -526,8 +804,6 @@ module Lithic
526
804
  # several event streams, the effective one is defined by the separate
527
805
  # `event_stream` field.
528
806
  #
529
- # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
530
- # AUTHORIZATION event stream.
531
807
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
532
808
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
533
809
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
@@ -550,11 +826,6 @@ module Lithic
550
826
  end
551
827
  OrSymbol = T.type_alias { T.any(Symbol, String) }
552
828
 
553
- CONDITIONAL_BLOCK =
554
- T.let(
555
- :CONDITIONAL_BLOCK,
556
- Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol
557
- )
558
829
  VELOCITY_LIMIT =
559
830
  T.let(
560
831
  :VELOCITY_LIMIT,
@@ -606,7 +877,6 @@ module Lithic
606
877
  sig do
607
878
  returns(
608
879
  T.any(
609
- Lithic::AuthRules::ConditionalBlockParameters,
610
880
  Lithic::AuthRules::VelocityLimitParams,
611
881
  Lithic::AuthRules::MerchantLockParameters,
612
882
  Lithic::AuthRules::Conditional3DSActionParameters,
@@ -622,6 +892,8 @@ module Lithic
622
892
  end
623
893
  attr_accessor :parameters
624
894
 
895
+ # Deprecated: Use `entities.include` with a `PROGRAM` entity instead.
896
+ #
625
897
  # Whether the Auth Rule applies to all authorizations on the card program.
626
898
  sig { returns(T::Boolean) }
627
899
  attr_accessor :program_level
@@ -631,8 +903,6 @@ module Lithic
631
903
  # several event streams, the effective one is defined by the separate
632
904
  # `event_stream` field.
633
905
  #
634
- # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
635
- # AUTHORIZATION event stream.
636
906
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
637
907
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
638
908
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
@@ -661,6 +931,8 @@ module Lithic
661
931
  end
662
932
  attr_writer :event_stream
663
933
 
934
+ # Deprecated: Use `entities.exclude` with `ACCOUNT` entities instead.
935
+ #
664
936
  # Account tokens to which the Auth Rule does not apply.
665
937
  sig { returns(T.nilable(T::Array[String])) }
666
938
  attr_reader :excluded_account_tokens
@@ -668,6 +940,8 @@ module Lithic
668
940
  sig { params(excluded_account_tokens: T::Array[String]).void }
669
941
  attr_writer :excluded_account_tokens
670
942
 
943
+ # Deprecated: Use `entities.exclude` with `BUSINESS_ACCOUNT` entities instead.
944
+ #
671
945
  # Business account tokens to which the Auth Rule does not apply.
672
946
  sig { returns(T.nilable(T::Array[String])) }
673
947
  attr_reader :excluded_business_account_tokens
@@ -677,7 +951,10 @@ module Lithic
677
951
  end
678
952
  attr_writer :excluded_business_account_tokens
679
953
 
680
- # Card tokens to which the Auth Rule does not apply.
954
+ # Deprecated: Use `entities.exclude` with `CARD` entities instead.
955
+ #
956
+ # Card tokens to which the Auth Rule does not apply. Cards excluded through a
957
+ # `CARD_TAG` entity are not listed.
681
958
  sig { returns(T.nilable(T::Array[String])) }
682
959
  attr_reader :excluded_card_tokens
683
960
 
@@ -688,11 +965,11 @@ module Lithic
688
965
  sig { returns(T.nilable(String)) }
689
966
  attr_accessor :name
690
967
 
968
+ # Deprecated: Use `entities` instead. Cannot be combined with `entities`.
691
969
  sig do
692
970
  params(
693
971
  parameters:
694
972
  T.any(
695
- Lithic::AuthRules::ConditionalBlockParameters::OrHash,
696
973
  Lithic::AuthRules::VelocityLimitParams::OrHash,
697
974
  Lithic::AuthRules::MerchantLockParameters::OrHash,
698
975
  Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
@@ -717,6 +994,8 @@ module Lithic
717
994
  def self.new(
718
995
  # Parameters for the Auth Rule
719
996
  parameters:,
997
+ # Deprecated: Use `entities.include` with a `PROGRAM` entity instead.
998
+ #
720
999
  # Whether the Auth Rule applies to all authorizations on the card program.
721
1000
  program_level:,
722
1001
  # The type of Auth Rule. For certain rule types, this determines the event stream
@@ -724,8 +1003,6 @@ module Lithic
724
1003
  # several event streams, the effective one is defined by the separate
725
1004
  # `event_stream` field.
726
1005
  #
727
- # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
728
- # AUTHORIZATION event stream.
729
1006
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
730
1007
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
731
1008
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
@@ -739,11 +1016,18 @@ module Lithic
739
1016
  type:,
740
1017
  # The event stream during which the rule will be evaluated.
741
1018
  event_stream: nil,
1019
+ # Deprecated: Use `entities.exclude` with `ACCOUNT` entities instead.
1020
+ #
742
1021
  # Account tokens to which the Auth Rule does not apply.
743
1022
  excluded_account_tokens: nil,
1023
+ # Deprecated: Use `entities.exclude` with `BUSINESS_ACCOUNT` entities instead.
1024
+ #
744
1025
  # Business account tokens to which the Auth Rule does not apply.
745
1026
  excluded_business_account_tokens: nil,
746
- # Card tokens to which the Auth Rule does not apply.
1027
+ # Deprecated: Use `entities.exclude` with `CARD` entities instead.
1028
+ #
1029
+ # Card tokens to which the Auth Rule does not apply. Cards excluded through a
1030
+ # `CARD_TAG` entity are not listed.
747
1031
  excluded_card_tokens: nil,
748
1032
  # Auth Rule Name
749
1033
  name: nil
@@ -755,7 +1039,6 @@ module Lithic
755
1039
  {
756
1040
  parameters:
757
1041
  T.any(
758
- Lithic::AuthRules::ConditionalBlockParameters,
759
1042
  Lithic::AuthRules::VelocityLimitParams,
760
1043
  Lithic::AuthRules::MerchantLockParameters,
761
1044
  Lithic::AuthRules::Conditional3DSActionParameters,
@@ -788,7 +1071,6 @@ module Lithic
788
1071
  Variants =
789
1072
  T.type_alias do
790
1073
  T.any(
791
- Lithic::AuthRules::ConditionalBlockParameters,
792
1074
  Lithic::AuthRules::VelocityLimitParams,
793
1075
  Lithic::AuthRules::MerchantLockParameters,
794
1076
  Lithic::AuthRules::Conditional3DSActionParameters,
@@ -818,8 +1100,6 @@ module Lithic
818
1100
  # several event streams, the effective one is defined by the separate
819
1101
  # `event_stream` field.
820
1102
  #
821
- # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
822
- # AUTHORIZATION event stream.
823
1103
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
824
1104
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
825
1105
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
@@ -842,11 +1122,6 @@ module Lithic
842
1122
  end
843
1123
  OrSymbol = T.type_alias { T.any(Symbol, String) }
844
1124
 
845
- CONDITIONAL_BLOCK =
846
- T.let(
847
- :CONDITIONAL_BLOCK,
848
- Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol
849
- )
850
1125
  VELOCITY_LIMIT =
851
1126
  T.let(
852
1127
  :VELOCITY_LIMIT,