lithic 0.20.0 → 0.22.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 (266) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +44 -0
  3. data/README.md +1 -10
  4. data/lib/lithic/internal/type/union.rb +21 -7
  5. data/lib/lithic/models/account_activity_list_params.rb +1 -0
  6. data/lib/lithic/models/account_activity_list_response.rb +1 -0
  7. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1 -0
  8. data/lib/lithic/models/account_holder_create_params.rb +4 -2
  9. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +120 -66
  10. data/lib/lithic/models/account_holder_update_params.rb +6 -3
  11. data/lib/lithic/models/account_holder_update_response.rb +156 -86
  12. data/lib/lithic/models/account_holder_updated_webhook_event.rb +120 -66
  13. data/lib/lithic/models/account_holders/account_holder_entity.rb +35 -19
  14. data/lib/lithic/models/account_holders/entity_create_params.rb +39 -21
  15. data/lib/lithic/models/address.rb +33 -19
  16. data/lib/lithic/models/address_update.rb +27 -11
  17. data/lib/lithic/models/auth_rules/auth_rule.rb +60 -27
  18. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +189 -6
  19. data/lib/lithic/models/auth_rules/auth_rule_entities.rb +47 -0
  20. data/lib/lithic/models/auth_rules/auth_rule_entities_response.rb +31 -0
  21. data/lib/lithic/models/auth_rules/auth_rule_entity.rb +150 -0
  22. data/lib/lithic/models/auth_rules/auth_rule_version.rb +3 -6
  23. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +33 -6
  24. data/lib/lithic/models/auth_rules/conditional_attribute.rb +101 -5
  25. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +3 -439
  26. data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +7 -0
  27. data/lib/lithic/models/auth_rules/merchant_lock_parameters.rb +11 -1
  28. data/lib/lithic/models/auth_rules/report_stats.rb +1 -0
  29. data/lib/lithic/models/auth_rules/v2_create_params.rb +218 -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_list_results_response.rb +1 -0
  33. data/lib/lithic/models/auth_rules/v2_update_entities_params.rb +39 -0
  34. data/lib/lithic/models/auth_rules/v2_update_params.rb +133 -12
  35. data/lib/lithic/models/blockchain_recipient_retrieve_params.rb +20 -0
  36. data/lib/lithic/models/card_authorization.rb +11 -1
  37. data/lib/lithic/models/card_create_params.rb +11 -1
  38. data/lib/lithic/models/card_pin_updated_webhook_event.rb +87 -0
  39. data/lib/lithic/models/card_update_params.rb +12 -1
  40. data/lib/lithic/models/event.rb +5 -0
  41. data/lib/lithic/models/event_list_params.rb +3 -0
  42. data/lib/lithic/models/event_subscription.rb +3 -0
  43. data/lib/lithic/models/events/subscription_create_params.rb +3 -0
  44. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
  45. data/lib/lithic/models/events/subscription_update_params.rb +3 -0
  46. data/lib/lithic/models/external_payment.rb +6 -0
  47. data/lib/lithic/models/external_payment_create_params.rb +1 -0
  48. data/lib/lithic/models/external_payment_list_params.rb +1 -0
  49. data/lib/lithic/models/financial_accounts/installment_plan.rb +311 -0
  50. data/lib/lithic/models/financial_accounts/installment_plan_list_params.rb +75 -0
  51. data/lib/lithic/models/financial_accounts/installment_plan_retrieve_params.rb +32 -0
  52. data/lib/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rb +279 -0
  53. data/lib/lithic/models/financial_accounts/installment_plans/statement_list_params.rb +106 -0
  54. data/lib/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rb +42 -0
  55. data/lib/lithic/models/financial_accounts/loan_tape.rb +62 -1
  56. data/lib/lithic/models/financial_accounts/open_to_buy.rb +36 -0
  57. data/lib/lithic/models/financial_accounts/open_to_buy_retrieve_params.rb +22 -0
  58. data/lib/lithic/models/financial_accounts/open_to_buy_summary.rb +46 -0
  59. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +10 -0
  60. data/lib/lithic/models/financial_accounts/transaction_category_balances.rb +34 -0
  61. data/lib/lithic/models/financial_event.rb +9 -0
  62. data/lib/lithic/models/kyb.rb +4 -2
  63. data/lib/lithic/models/kyb_business_entity.rb +35 -19
  64. data/lib/lithic/models/kyc.rb +2 -1
  65. data/lib/lithic/models/management_operation_create_params.rb +4 -0
  66. data/lib/lithic/models/management_operation_transaction.rb +4 -0
  67. data/lib/lithic/models/non_pci_card.rb +11 -1
  68. data/lib/lithic/models/parsed_webhook_event.rb +123 -67
  69. data/lib/lithic/models/payment.rb +3 -1
  70. data/lib/lithic/models/payment_create_stablecoin_params.rb +99 -0
  71. data/lib/lithic/models/payment_create_stablecoin_response.rb +19 -0
  72. data/lib/lithic/models/payment_list_params.rb +1 -0
  73. data/lib/lithic/models/payment_retry_params.rb +28 -1
  74. data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
  75. data/lib/lithic/models/three_ds_authentication.rb +126 -1
  76. data/lib/lithic/models/transaction.rb +4 -1
  77. data/lib/lithic/models/transaction_simulate_authorization_params.rb +28 -4
  78. data/lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb +11 -1
  79. data/lib/lithic/models/transaction_simulate_return_params.rb +24 -1
  80. data/lib/lithic/models.rb +6 -0
  81. data/lib/lithic/resources/auth_rules/v2/backtests.rb +8 -8
  82. data/lib/lithic/resources/auth_rules/v2.rb +44 -8
  83. data/lib/lithic/resources/blockchain_recipients.rb +23 -0
  84. data/lib/lithic/resources/cards.rb +10 -4
  85. data/lib/lithic/resources/financial_accounts/installment_plans/statements.rb +107 -0
  86. data/lib/lithic/resources/financial_accounts/installment_plans.rb +86 -0
  87. data/lib/lithic/resources/financial_accounts/open_to_buy.rb +48 -0
  88. data/lib/lithic/resources/financial_accounts.rb +8 -0
  89. data/lib/lithic/resources/payments.rb +71 -3
  90. data/lib/lithic/resources/transactions.rb +17 -4
  91. data/lib/lithic/resources/webhooks.rb +18 -0
  92. data/lib/lithic/version.rb +1 -1
  93. data/lib/lithic.rb +21 -1
  94. data/rbi/lithic/models/account_activity_list_params.rbi +5 -0
  95. data/rbi/lithic/models/account_activity_list_response.rbi +5 -0
  96. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +5 -0
  97. data/rbi/lithic/models/account_holder_create_params.rbi +8 -4
  98. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +195 -90
  99. data/rbi/lithic/models/account_holder_update_params.rbi +12 -6
  100. data/rbi/lithic/models/account_holder_update_response.rbi +254 -117
  101. data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +195 -90
  102. data/rbi/lithic/models/account_holders/account_holder_entity.rbi +59 -27
  103. data/rbi/lithic/models/account_holders/entity_create_params.rbi +65 -30
  104. data/rbi/lithic/models/address.rbi +57 -29
  105. data/rbi/lithic/models/address_update.rbi +50 -24
  106. data/rbi/lithic/models/auth_rules/auth_rule.rbi +60 -19
  107. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +442 -13
  108. data/rbi/lithic/models/auth_rules/auth_rule_entities.rbi +163 -0
  109. data/rbi/lithic/models/auth_rules/auth_rule_entities_response.rbi +72 -0
  110. data/rbi/lithic/models/auth_rules/auth_rule_entity.rbi +199 -0
  111. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +0 -2
  112. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +67 -9
  113. data/rbi/lithic/models/auth_rules/conditional_attribute.rbi +193 -5
  114. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +3 -939
  115. data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +14 -0
  116. data/rbi/lithic/models/auth_rules/merchant_lock_parameters.rbi +14 -3
  117. data/rbi/lithic/models/auth_rules/report_stats.rbi +5 -0
  118. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +358 -50
  119. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +0 -4
  120. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +6 -3
  121. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +5 -0
  122. data/rbi/lithic/models/auth_rules/v2_update_entities_params.rbi +68 -0
  123. data/rbi/lithic/models/auth_rules/v2_update_params.rbi +198 -5
  124. data/rbi/lithic/models/blockchain_recipient_retrieve_params.rbi +41 -0
  125. data/rbi/lithic/models/card_authorization.rbi +12 -0
  126. data/rbi/lithic/models/card_create_params.rbi +15 -0
  127. data/rbi/lithic/models/card_pin_updated_webhook_event.rbi +166 -0
  128. data/rbi/lithic/models/card_update_params.rbi +17 -0
  129. data/rbi/lithic/models/event.rbi +8 -0
  130. data/rbi/lithic/models/event_list_params.rbi +7 -0
  131. data/rbi/lithic/models/event_subscription.rbi +7 -0
  132. data/rbi/lithic/models/events/subscription_create_params.rbi +7 -0
  133. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
  134. data/rbi/lithic/models/events/subscription_update_params.rbi +7 -0
  135. data/rbi/lithic/models/external_payment.rbi +30 -0
  136. data/rbi/lithic/models/external_payment_create_params.rbi +5 -0
  137. data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
  138. data/rbi/lithic/models/financial_accounts/installment_plan.rbi +528 -0
  139. data/rbi/lithic/models/financial_accounts/installment_plan_list_params.rbi +155 -0
  140. data/rbi/lithic/models/financial_accounts/installment_plan_retrieve_params.rbi +56 -0
  141. data/rbi/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbi +452 -0
  142. data/rbi/lithic/models/financial_accounts/installment_plans/statement_list_params.rbi +191 -0
  143. data/rbi/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbi +66 -0
  144. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +119 -0
  145. data/rbi/lithic/models/financial_accounts/open_to_buy.rbi +64 -0
  146. data/rbi/lithic/models/financial_accounts/open_to_buy_retrieve_params.rbi +43 -0
  147. data/rbi/lithic/models/financial_accounts/open_to_buy_summary.rbi +73 -0
  148. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +50 -0
  149. data/rbi/lithic/models/financial_accounts/transaction_category_balances.rbi +81 -0
  150. data/rbi/lithic/models/financial_event.rbi +35 -0
  151. data/rbi/lithic/models/kyb.rbi +8 -4
  152. data/rbi/lithic/models/kyb_business_entity.rbi +59 -27
  153. data/rbi/lithic/models/kyc.rbi +4 -2
  154. data/rbi/lithic/models/management_operation_create_params.rbi +20 -0
  155. data/rbi/lithic/models/management_operation_transaction.rbi +20 -0
  156. data/rbi/lithic/models/non_pci_card.rbi +12 -0
  157. data/rbi/lithic/models/parsed_webhook_event.rbi +196 -90
  158. data/rbi/lithic/models/payment.rbi +6 -2
  159. data/rbi/lithic/models/payment_create_stablecoin_params.rbi +162 -0
  160. data/rbi/lithic/models/payment_create_stablecoin_response.rbi +34 -0
  161. data/rbi/lithic/models/payment_list_params.rbi +2 -0
  162. data/rbi/lithic/models/payment_retry_params.rbi +47 -2
  163. data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
  164. data/rbi/lithic/models/three_ds_authentication.rbi +292 -0
  165. data/rbi/lithic/models/transaction.rbi +14 -2
  166. data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +42 -4
  167. data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi +15 -0
  168. data/rbi/lithic/models/transaction_simulate_return_params.rbi +30 -0
  169. data/rbi/lithic/models.rbi +7 -0
  170. data/rbi/lithic/resources/account_holders/entities.rbi +2 -1
  171. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +8 -8
  172. data/rbi/lithic/resources/auth_rules/v2.rbi +43 -8
  173. data/rbi/lithic/resources/blockchain_recipients.rbi +14 -0
  174. data/rbi/lithic/resources/cards.rbi +15 -2
  175. data/rbi/lithic/resources/financial_accounts/installment_plans/statements.rbi +86 -0
  176. data/rbi/lithic/resources/financial_accounts/installment_plans.rbi +73 -0
  177. data/rbi/lithic/resources/financial_accounts/open_to_buy.rbi +40 -0
  178. data/rbi/lithic/resources/financial_accounts.rbi +6 -0
  179. data/rbi/lithic/resources/payments.rbi +68 -2
  180. data/rbi/lithic/resources/transactions.rbi +31 -2
  181. data/rbi/lithic/resources/webhooks.rbi +1 -0
  182. data/sig/lithic/models/account_activity_list_params.rbs +2 -0
  183. data/sig/lithic/models/account_activity_list_response.rbs +2 -0
  184. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +2 -0
  185. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +39 -39
  186. data/sig/lithic/models/account_holder_update_response.rbs +52 -52
  187. data/sig/lithic/models/account_holder_updated_webhook_event.rbs +39 -39
  188. data/sig/lithic/models/account_holders/account_holder_entity.rbs +13 -13
  189. data/sig/lithic/models/account_holders/entity_create_params.rbs +13 -13
  190. data/sig/lithic/models/address.rbs +13 -13
  191. data/sig/lithic/models/address_update.rbs +8 -12
  192. data/sig/lithic/models/auth_rules/auth_rule.rbs +10 -7
  193. data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +89 -3
  194. data/sig/lithic/models/auth_rules/auth_rule_entities.rbs +37 -0
  195. data/sig/lithic/models/auth_rules/auth_rule_entities_response.rbs +29 -0
  196. data/sig/lithic/models/auth_rules/auth_rule_entity.rbs +80 -0
  197. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -2
  198. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -0
  199. data/sig/lithic/models/auth_rules/conditional_attribute.rbs +46 -0
  200. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +4 -204
  201. data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +2 -0
  202. data/sig/lithic/models/auth_rules/merchant_lock_parameters.rbs +10 -3
  203. data/sig/lithic/models/auth_rules/report_stats.rbs +2 -0
  204. data/sig/lithic/models/auth_rules/v2_create_params.rbs +92 -16
  205. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -2
  206. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +2 -0
  207. data/sig/lithic/models/auth_rules/v2_update_entities_params.rbs +46 -0
  208. data/sig/lithic/models/auth_rules/v2_update_params.rbs +47 -1
  209. data/sig/lithic/models/blockchain_recipient_retrieve_params.rbs +24 -0
  210. data/sig/lithic/models/card_authorization.rbs +5 -0
  211. data/sig/lithic/models/card_create_params.rbs +7 -0
  212. data/sig/lithic/models/card_pin_updated_webhook_event.rbs +60 -0
  213. data/sig/lithic/models/card_update_params.rbs +8 -1
  214. data/sig/lithic/models/event.rbs +2 -0
  215. data/sig/lithic/models/event_list_params.rbs +2 -0
  216. data/sig/lithic/models/event_subscription.rbs +2 -0
  217. data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
  218. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
  219. data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
  220. data/sig/lithic/models/external_payment.rbs +12 -0
  221. data/sig/lithic/models/external_payment_create_params.rbs +2 -0
  222. data/sig/lithic/models/external_payment_list_params.rbs +2 -0
  223. data/sig/lithic/models/financial_accounts/installment_plan.rbs +227 -0
  224. data/sig/lithic/models/financial_accounts/installment_plan_list_params.rbs +69 -0
  225. data/sig/lithic/models/financial_accounts/installment_plan_retrieve_params.rbs +30 -0
  226. data/sig/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbs +191 -0
  227. data/sig/lithic/models/financial_accounts/installment_plans/statement_list_params.rbs +90 -0
  228. data/sig/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbs +40 -0
  229. data/sig/lithic/models/financial_accounts/loan_tape.rbs +47 -0
  230. data/sig/lithic/models/financial_accounts/open_to_buy.rbs +27 -0
  231. data/sig/lithic/models/financial_accounts/open_to_buy_retrieve_params.rbs +26 -0
  232. data/sig/lithic/models/financial_accounts/open_to_buy_summary.rbs +32 -0
  233. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +20 -0
  234. data/sig/lithic/models/financial_accounts/transaction_category_balances.rbs +32 -0
  235. data/sig/lithic/models/financial_event.rbs +18 -0
  236. data/sig/lithic/models/kyb_business_entity.rbs +13 -13
  237. data/sig/lithic/models/management_operation_create_params.rbs +8 -0
  238. data/sig/lithic/models/management_operation_transaction.rbs +8 -0
  239. data/sig/lithic/models/non_pci_card.rbs +5 -0
  240. data/sig/lithic/models/parsed_webhook_event.rbs +40 -39
  241. data/sig/lithic/models/payment.rbs +2 -0
  242. data/sig/lithic/models/payment_create_stablecoin_params.rbs +84 -0
  243. data/sig/lithic/models/payment_create_stablecoin_response.rbs +15 -0
  244. data/sig/lithic/models/payment_list_params.rbs +2 -1
  245. data/sig/lithic/models/payment_retry_params.rbs +24 -1
  246. data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
  247. data/sig/lithic/models/three_ds_authentication.rbs +77 -0
  248. data/sig/lithic/models/transaction.rbs +4 -0
  249. data/sig/lithic/models/transaction_simulate_authorization_params.rbs +14 -0
  250. data/sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs +7 -0
  251. data/sig/lithic/models/transaction_simulate_return_params.rbs +19 -1
  252. data/sig/lithic/models.rbs +6 -0
  253. data/sig/lithic/resources/auth_rules/v2.rbs +7 -0
  254. data/sig/lithic/resources/blockchain_recipients.rbs +5 -0
  255. data/sig/lithic/resources/cards.rbs +2 -0
  256. data/sig/lithic/resources/financial_accounts/installment_plans/statements.rbs +30 -0
  257. data/sig/lithic/resources/financial_accounts/installment_plans.rbs +26 -0
  258. data/sig/lithic/resources/financial_accounts/open_to_buy.rbs +14 -0
  259. data/sig/lithic/resources/financial_accounts.rbs +4 -0
  260. data/sig/lithic/resources/payments.rbs +12 -0
  261. data/sig/lithic/resources/transactions.rbs +5 -0
  262. data/sig/lithic/resources/webhooks.rbs +1 -0
  263. metadata +65 -5
  264. data/lib/lithic/models/auth_rules/conditional_block_parameters.rb +0 -20
  265. data/rbi/lithic/models/auth_rules/conditional_block_parameters.rbi +0 -37
  266. data/sig/lithic/models/auth_rules/conditional_block_parameters.rbs +0 -20
@@ -19,7 +19,8 @@ module Lithic
19
19
  attr_accessor :account_holder_token
20
20
 
21
21
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
22
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
22
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
23
+ # and KYC workflows.
23
24
  sig { returns(Lithic::AccountHolders::EntityCreateParams::Address) }
24
25
  attr_reader :address
25
26
 
@@ -80,7 +81,8 @@ module Lithic
80
81
  def self.new(
81
82
  account_holder_token:,
82
83
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
83
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
84
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
85
+ # and KYC workflows.
84
86
  address:,
85
87
  # Individual's date of birth, as an RFC 3339 date.
86
88
  dob:,
@@ -140,21 +142,12 @@ module Lithic
140
142
  sig { returns(String) }
141
143
  attr_accessor :city
142
144
 
143
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
144
- # 3166-1 alpha-3 three-character format.
145
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
146
+ # format. Supported countries depend on the onboarding workflow used for the
147
+ # account holder.
145
148
  sig { returns(String) }
146
149
  attr_accessor :country
147
150
 
148
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
149
- # five-digit ZIP or nine-digit ZIP+4.
150
- sig { returns(String) }
151
- attr_accessor :postal_code
152
-
153
- # Valid state code. Only USA state codes are currently supported, entered in
154
- # uppercase ISO 3166-2 two-character format.
155
- sig { returns(String) }
156
- attr_accessor :state
157
-
158
151
  # Unit or apartment number (if applicable).
159
152
  sig { returns(T.nilable(String)) }
160
153
  attr_reader :address2
@@ -162,16 +155,42 @@ module Lithic
162
155
  sig { params(address2: String).void }
163
156
  attr_writer :address2
164
157
 
158
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
159
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
160
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
161
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
162
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
163
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
164
+ sig { returns(T.nilable(String)) }
165
+ attr_accessor :postal_code
166
+
167
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
168
+ # code for the country without the country prefix. For example, `CA` for
169
+ # California. Optional unless the address is in one of the following countries,
170
+ # where it is required:
171
+ #
172
+ # - `USA`
173
+ # - `CAN`
174
+ # - `AUS`
175
+ # - `CHN`
176
+ # - `KOR`
177
+ # - `MEX`
178
+ # - `MYS`
179
+ # - `NZL`
180
+ sig { returns(T.nilable(String)) }
181
+ attr_accessor :state
182
+
165
183
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
166
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
184
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
185
+ # and KYC workflows.
167
186
  sig do
168
187
  params(
169
188
  address1: String,
170
189
  city: String,
171
190
  country: String,
172
- postal_code: String,
173
- state: String,
174
- address2: String
191
+ address2: String,
192
+ postal_code: T.nilable(String),
193
+ state: T.nilable(String)
175
194
  ).returns(T.attached_class)
176
195
  end
177
196
  def self.new(
@@ -179,17 +198,33 @@ module Lithic
179
198
  address1:,
180
199
  # Name of city.
181
200
  city:,
182
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
183
- # 3166-1 alpha-3 three-character format.
201
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
202
+ # format. Supported countries depend on the onboarding workflow used for the
203
+ # account holder.
184
204
  country:,
185
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
186
- # five-digit ZIP or nine-digit ZIP+4.
187
- postal_code:,
188
- # Valid state code. Only USA state codes are currently supported, entered in
189
- # uppercase ISO 3166-2 two-character format.
190
- state:,
191
205
  # Unit or apartment number (if applicable).
192
- address2: nil
206
+ address2: nil,
207
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
208
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
209
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
210
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
211
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
212
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
213
+ postal_code: nil,
214
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
215
+ # code for the country without the country prefix. For example, `CA` for
216
+ # California. Optional unless the address is in one of the following countries,
217
+ # where it is required:
218
+ #
219
+ # - `USA`
220
+ # - `CAN`
221
+ # - `AUS`
222
+ # - `CHN`
223
+ # - `KOR`
224
+ # - `MEX`
225
+ # - `MYS`
226
+ # - `NZL`
227
+ state: nil
193
228
  )
194
229
  end
195
230
 
@@ -199,9 +234,9 @@ module Lithic
199
234
  address1: String,
200
235
  city: String,
201
236
  country: String,
202
- postal_code: String,
203
- state: String,
204
- address2: String
237
+ address2: String,
238
+ postal_code: T.nilable(String),
239
+ state: T.nilable(String)
205
240
  }
206
241
  )
207
242
  end
@@ -15,22 +15,11 @@ module Lithic
15
15
  attr_accessor :city
16
16
 
17
17
  # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
18
- # format. Only USA is currently supported for all workflows. KYC_EXEMPT supports
19
- # CAN additionally.
18
+ # format. The KYB_DELEGATED and KYC_EXEMPT workflows support all countries except
19
+ # BLR, CUB, IRN, PRK, RUS, SDN, SYR, and UKR. Other workflows support USA only.
20
20
  sig { returns(String) }
21
21
  attr_accessor :country
22
22
 
23
- # Valid postal code. USA postal codes (ZIP codes) are supported, entered as a
24
- # five-digit postal code or nine-digit postal code (ZIP+4) using the format
25
- # 12345-1234. KYC_EXEMPT supports Canadian postal codes.
26
- sig { returns(String) }
27
- attr_accessor :postal_code
28
-
29
- # Valid state code. USA state codes are supported, entered in uppercase ISO 3166-2
30
- # two-character format. KYC_EXEMPT supports Canadian province codes.
31
- sig { returns(String) }
32
- attr_accessor :state
33
-
34
23
  # Unit or apartment number (if applicable).
35
24
  sig { returns(T.nilable(String)) }
36
25
  attr_reader :address2
@@ -38,14 +27,39 @@ module Lithic
38
27
  sig { params(address2: String).void }
39
28
  attr_writer :address2
40
29
 
30
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
31
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
32
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
33
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
34
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
35
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
36
+ sig { returns(T.nilable(String)) }
37
+ attr_accessor :postal_code
38
+
39
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
40
+ # code for the country without the country prefix. For example, `CA` for
41
+ # California. Optional unless the address is in one of the following countries,
42
+ # where it is required:
43
+ #
44
+ # - `USA`
45
+ # - `CAN`
46
+ # - `AUS`
47
+ # - `CHN`
48
+ # - `KOR`
49
+ # - `MEX`
50
+ # - `MYS`
51
+ # - `NZL`
52
+ sig { returns(T.nilable(String)) }
53
+ attr_accessor :state
54
+
41
55
  sig do
42
56
  params(
43
57
  address1: String,
44
58
  city: String,
45
59
  country: String,
46
- postal_code: String,
47
- state: String,
48
- address2: String
60
+ address2: String,
61
+ postal_code: T.nilable(String),
62
+ state: T.nilable(String)
49
63
  ).returns(T.attached_class)
50
64
  end
51
65
  def self.new(
@@ -54,18 +68,32 @@ module Lithic
54
68
  # Name of city.
55
69
  city:,
56
70
  # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
57
- # format. Only USA is currently supported for all workflows. KYC_EXEMPT supports
58
- # CAN additionally.
71
+ # format. The KYB_DELEGATED and KYC_EXEMPT workflows support all countries except
72
+ # BLR, CUB, IRN, PRK, RUS, SDN, SYR, and UKR. Other workflows support USA only.
59
73
  country:,
60
- # Valid postal code. USA postal codes (ZIP codes) are supported, entered as a
61
- # five-digit postal code or nine-digit postal code (ZIP+4) using the format
62
- # 12345-1234. KYC_EXEMPT supports Canadian postal codes.
63
- postal_code:,
64
- # Valid state code. USA state codes are supported, entered in uppercase ISO 3166-2
65
- # two-character format. KYC_EXEMPT supports Canadian province codes.
66
- state:,
67
74
  # Unit or apartment number (if applicable).
68
- address2: nil
75
+ address2: nil,
76
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
77
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
78
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
79
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
80
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
81
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
82
+ postal_code: nil,
83
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
84
+ # code for the country without the country prefix. For example, `CA` for
85
+ # California. Optional unless the address is in one of the following countries,
86
+ # where it is required:
87
+ #
88
+ # - `USA`
89
+ # - `CAN`
90
+ # - `AUS`
91
+ # - `CHN`
92
+ # - `KOR`
93
+ # - `MEX`
94
+ # - `MYS`
95
+ # - `NZL`
96
+ state: nil
69
97
  )
70
98
  end
71
99
 
@@ -75,9 +103,9 @@ module Lithic
75
103
  address1: String,
76
104
  city: String,
77
105
  country: String,
78
- postal_code: String,
79
- state: String,
80
- address2: String
106
+ address2: String,
107
+ postal_code: T.nilable(String),
108
+ state: T.nilable(String)
81
109
  }
82
110
  )
83
111
  end
@@ -27,29 +27,39 @@ module Lithic
27
27
  sig { params(city: String).void }
28
28
  attr_writer :city
29
29
 
30
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
31
- # 3166-1 alpha-3 three-character format.
30
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
31
+ # format. Supported countries depend on the onboarding workflow used for the
32
+ # account holder.
32
33
  sig { returns(T.nilable(String)) }
33
34
  attr_reader :country
34
35
 
35
36
  sig { params(country: String).void }
36
37
  attr_writer :country
37
38
 
38
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
39
- # five-digit ZIP or nine-digit ZIP+4.
39
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
40
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
41
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
42
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
43
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
44
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
40
45
  sig { returns(T.nilable(String)) }
41
- attr_reader :postal_code
46
+ attr_accessor :postal_code
42
47
 
43
- sig { params(postal_code: String).void }
44
- attr_writer :postal_code
45
-
46
- # Valid state code. Only USA state codes are currently supported, entered in
47
- # uppercase ISO 3166-2 two-character format.
48
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
49
+ # code for the country without the country prefix. For example, `CA` for
50
+ # California. Optional unless the address is in one of the following countries,
51
+ # where it is required:
52
+ #
53
+ # - `USA`
54
+ # - `CAN`
55
+ # - `AUS`
56
+ # - `CHN`
57
+ # - `KOR`
58
+ # - `MEX`
59
+ # - `MYS`
60
+ # - `NZL`
48
61
  sig { returns(T.nilable(String)) }
49
- attr_reader :state
50
-
51
- sig { params(state: String).void }
52
- attr_writer :state
62
+ attr_accessor :state
53
63
 
54
64
  sig do
55
65
  params(
@@ -57,8 +67,8 @@ module Lithic
57
67
  address2: String,
58
68
  city: String,
59
69
  country: String,
60
- postal_code: String,
61
- state: String
70
+ postal_code: T.nilable(String),
71
+ state: T.nilable(String)
62
72
  ).returns(T.attached_class)
63
73
  end
64
74
  def self.new(
@@ -68,14 +78,30 @@ module Lithic
68
78
  address2: nil,
69
79
  # Name of city.
70
80
  city: nil,
71
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
72
- # 3166-1 alpha-3 three-character format.
81
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
82
+ # format. Supported countries depend on the onboarding workflow used for the
83
+ # account holder.
73
84
  country: nil,
74
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
75
- # five-digit ZIP or nine-digit ZIP+4.
85
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
86
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
87
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
88
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
89
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
90
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
76
91
  postal_code: nil,
77
- # Valid state code. Only USA state codes are currently supported, entered in
78
- # uppercase ISO 3166-2 two-character format.
92
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
93
+ # code for the country without the country prefix. For example, `CA` for
94
+ # California. Optional unless the address is in one of the following countries,
95
+ # where it is required:
96
+ #
97
+ # - `USA`
98
+ # - `CAN`
99
+ # - `AUS`
100
+ # - `CHN`
101
+ # - `KOR`
102
+ # - `MEX`
103
+ # - `MYS`
104
+ # - `NZL`
79
105
  state: nil
80
106
  )
81
107
  end
@@ -87,8 +113,8 @@ module Lithic
87
113
  address2: String,
88
114
  city: String,
89
115
  country: String,
90
- postal_code: String,
91
- state: String
116
+ postal_code: T.nilable(String),
117
+ state: T.nilable(String)
92
118
  }
93
119
  )
94
120
  end
@@ -15,15 +15,22 @@ module Lithic
15
15
  sig { returns(String) }
16
16
  attr_accessor :token
17
17
 
18
+ # Deprecated: Use `entities.include` with `ACCOUNT` entities instead.
19
+ #
18
20
  # Account tokens to which the Auth Rule applies.
19
21
  sig { returns(T::Array[String]) }
20
22
  attr_accessor :account_tokens
21
23
 
24
+ # Deprecated: Use `entities.include` with `BUSINESS_ACCOUNT` entities instead.
25
+ #
22
26
  # Business Account tokens to which the Auth Rule applies.
23
27
  sig { returns(T::Array[String]) }
24
28
  attr_accessor :business_account_tokens
25
29
 
26
- # Card tokens to which the Auth Rule applies.
30
+ # Deprecated: Use `entities.include` with `CARD` entities instead.
31
+ #
32
+ # Card tokens to which the Auth Rule applies. Cards the rule applies to through a
33
+ # `CARD_TAG` entity are not listed.
27
34
  sig { returns(T::Array[String]) }
28
35
  attr_accessor :card_tokens
29
36
 
@@ -49,6 +56,18 @@ module Lithic
49
56
  end
50
57
  attr_writer :draft_version
51
58
 
59
+ # The entities the Auth Rule applies to (`include`) and does not apply to
60
+ # (`exclude`). An exclusion overrides an inclusion.
61
+ sig { returns(Lithic::AuthRules::AuthRuleEntitiesResponse) }
62
+ attr_reader :entities
63
+
64
+ sig do
65
+ params(
66
+ entities: Lithic::AuthRules::AuthRuleEntitiesResponse::OrHash
67
+ ).void
68
+ end
69
+ attr_writer :entities
70
+
52
71
  # The event stream during which the rule will be evaluated.
53
72
  sig { returns(Lithic::AuthRules::EventStream::TaggedSymbol) }
54
73
  attr_accessor :event_stream
@@ -62,6 +81,8 @@ module Lithic
62
81
  sig { returns(T.nilable(String)) }
63
82
  attr_accessor :name
64
83
 
84
+ # Deprecated: Use `entities.include` with a `PROGRAM` entity instead.
85
+ #
65
86
  # Whether the Auth Rule applies to all authorizations on the card program.
66
87
  sig { returns(T::Boolean) }
67
88
  attr_accessor :program_level
@@ -75,8 +96,6 @@ module Lithic
75
96
  # several event streams, the effective one is defined by the separate
76
97
  # `event_stream` field.
77
98
  #
78
- # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
79
- # AUTHORIZATION event stream.
80
99
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
81
100
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
82
101
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
@@ -85,9 +104,13 @@ module Lithic
85
104
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
86
105
  # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
87
106
  # ACH_PAYMENT_UPDATE event stream.
107
+ # - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
108
+ # are read-only; `OTHER` cannot be used when creating a rule.
88
109
  sig { returns(Lithic::AuthRules::AuthRule::Type::TaggedSymbol) }
89
110
  attr_accessor :type
90
111
 
112
+ # Deprecated: Use `entities.exclude` with `ACCOUNT` entities instead.
113
+ #
91
114
  # Account tokens to which the Auth Rule does not apply.
92
115
  sig { returns(T.nilable(T::Array[String])) }
93
116
  attr_reader :excluded_account_tokens
@@ -95,6 +118,8 @@ module Lithic
95
118
  sig { params(excluded_account_tokens: T::Array[String]).void }
96
119
  attr_writer :excluded_account_tokens
97
120
 
121
+ # Deprecated: Use `entities.exclude` with `BUSINESS_ACCOUNT` entities instead.
122
+ #
98
123
  # Business account tokens to which the Auth Rule does not apply.
99
124
  sig { returns(T.nilable(T::Array[String])) }
100
125
  attr_reader :excluded_business_account_tokens
@@ -102,7 +127,10 @@ module Lithic
102
127
  sig { params(excluded_business_account_tokens: T::Array[String]).void }
103
128
  attr_writer :excluded_business_account_tokens
104
129
 
105
- # Card tokens to which the Auth Rule does not apply.
130
+ # Deprecated: Use `entities.exclude` with `CARD` entities instead.
131
+ #
132
+ # Card tokens to which the Auth Rule does not apply. Cards excluded through a
133
+ # `CARD_TAG` entity are not listed.
106
134
  sig { returns(T.nilable(T::Array[String])) }
107
135
  attr_reader :excluded_card_tokens
108
136
 
@@ -119,6 +147,7 @@ module Lithic
119
147
  T.nilable(Lithic::AuthRules::AuthRule::CurrentVersion::OrHash),
120
148
  draft_version:
121
149
  T.nilable(Lithic::AuthRules::AuthRule::DraftVersion::OrHash),
150
+ entities: Lithic::AuthRules::AuthRuleEntitiesResponse::OrHash,
122
151
  event_stream: Lithic::AuthRules::EventStream::OrSymbol,
123
152
  lithic_managed: T::Boolean,
124
153
  name: T.nilable(String),
@@ -133,14 +162,24 @@ module Lithic
133
162
  def self.new(
134
163
  # Auth Rule Token
135
164
  token:,
165
+ # Deprecated: Use `entities.include` with `ACCOUNT` entities instead.
166
+ #
136
167
  # Account tokens to which the Auth Rule applies.
137
168
  account_tokens:,
169
+ # Deprecated: Use `entities.include` with `BUSINESS_ACCOUNT` entities instead.
170
+ #
138
171
  # Business Account tokens to which the Auth Rule applies.
139
172
  business_account_tokens:,
140
- # Card tokens to which the Auth Rule applies.
173
+ # Deprecated: Use `entities.include` with `CARD` entities instead.
174
+ #
175
+ # Card tokens to which the Auth Rule applies. Cards the rule applies to through a
176
+ # `CARD_TAG` entity are not listed.
141
177
  card_tokens:,
142
178
  current_version:,
143
179
  draft_version:,
180
+ # The entities the Auth Rule applies to (`include`) and does not apply to
181
+ # (`exclude`). An exclusion overrides an inclusion.
182
+ entities:,
144
183
  # The event stream during which the rule will be evaluated.
145
184
  event_stream:,
146
185
  # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
@@ -148,6 +187,8 @@ module Lithic
148
187
  lithic_managed:,
149
188
  # Auth Rule Name
150
189
  name:,
190
+ # Deprecated: Use `entities.include` with a `PROGRAM` entity instead.
191
+ #
151
192
  # Whether the Auth Rule applies to all authorizations on the card program.
152
193
  program_level:,
153
194
  # The state of the Auth Rule
@@ -157,8 +198,6 @@ module Lithic
157
198
  # several event streams, the effective one is defined by the separate
158
199
  # `event_stream` field.
159
200
  #
160
- # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
161
- # AUTHORIZATION event stream.
162
201
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
163
202
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
164
203
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
@@ -167,12 +206,21 @@ module Lithic
167
206
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
168
207
  # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
169
208
  # ACH_PAYMENT_UPDATE event stream.
209
+ # - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
210
+ # are read-only; `OTHER` cannot be used when creating a rule.
170
211
  type:,
212
+ # Deprecated: Use `entities.exclude` with `ACCOUNT` entities instead.
213
+ #
171
214
  # Account tokens to which the Auth Rule does not apply.
172
215
  excluded_account_tokens: nil,
216
+ # Deprecated: Use `entities.exclude` with `BUSINESS_ACCOUNT` entities instead.
217
+ #
173
218
  # Business account tokens to which the Auth Rule does not apply.
174
219
  excluded_business_account_tokens: nil,
175
- # Card tokens to which the Auth Rule does not apply.
220
+ # Deprecated: Use `entities.exclude` with `CARD` entities instead.
221
+ #
222
+ # Card tokens to which the Auth Rule does not apply. Cards excluded through a
223
+ # `CARD_TAG` entity are not listed.
176
224
  excluded_card_tokens: nil
177
225
  )
178
226
  end
@@ -188,6 +236,7 @@ module Lithic
188
236
  T.nilable(Lithic::AuthRules::AuthRule::CurrentVersion),
189
237
  draft_version:
190
238
  T.nilable(Lithic::AuthRules::AuthRule::DraftVersion),
239
+ entities: Lithic::AuthRules::AuthRuleEntitiesResponse,
191
240
  event_stream: Lithic::AuthRules::EventStream::TaggedSymbol,
192
241
  lithic_managed: T::Boolean,
193
242
  name: T.nilable(String),
@@ -229,7 +278,6 @@ module Lithic
229
278
  params(
230
279
  parameters:
231
280
  T.any(
232
- Lithic::AuthRules::ConditionalBlockParameters::OrHash,
233
281
  Lithic::AuthRules::VelocityLimitParams::OrHash,
234
282
  Lithic::AuthRules::MerchantLockParameters::OrHash,
235
283
  Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
@@ -272,7 +320,6 @@ module Lithic
272
320
  Variants =
273
321
  T.type_alias do
274
322
  T.any(
275
- Lithic::AuthRules::ConditionalBlockParameters,
276
323
  Lithic::AuthRules::VelocityLimitParams,
277
324
  Lithic::AuthRules::MerchantLockParameters,
278
325
  Lithic::AuthRules::Conditional3DSActionParameters,
@@ -347,7 +394,6 @@ module Lithic
347
394
  error: T.nilable(String),
348
395
  parameters:
349
396
  T.any(
350
- Lithic::AuthRules::ConditionalBlockParameters::OrHash,
351
397
  Lithic::AuthRules::VelocityLimitParams::OrHash,
352
398
  Lithic::AuthRules::MerchantLockParameters::OrHash,
353
399
  Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
@@ -408,7 +454,6 @@ module Lithic
408
454
  Variants =
409
455
  T.type_alias do
410
456
  T.any(
411
- Lithic::AuthRules::ConditionalBlockParameters,
412
457
  Lithic::AuthRules::VelocityLimitParams,
413
458
  Lithic::AuthRules::MerchantLockParameters,
414
459
  Lithic::AuthRules::Conditional3DSActionParameters,
@@ -507,8 +552,6 @@ module Lithic
507
552
  # several event streams, the effective one is defined by the separate
508
553
  # `event_stream` field.
509
554
  #
510
- # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
511
- # AUTHORIZATION event stream.
512
555
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
513
556
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
514
557
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
@@ -517,6 +560,8 @@ module Lithic
517
560
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
518
561
  # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
519
562
  # ACH_PAYMENT_UPDATE event stream.
563
+ # - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
564
+ # are read-only; `OTHER` cannot be used when creating a rule.
520
565
  module Type
521
566
  extend Lithic::Internal::Type::Enum
522
567
 
@@ -524,11 +569,6 @@ module Lithic
524
569
  T.type_alias { T.all(Symbol, Lithic::AuthRules::AuthRule::Type) }
525
570
  OrSymbol = T.type_alias { T.any(Symbol, String) }
526
571
 
527
- CONDITIONAL_BLOCK =
528
- T.let(
529
- :CONDITIONAL_BLOCK,
530
- Lithic::AuthRules::AuthRule::Type::TaggedSymbol
531
- )
532
572
  VELOCITY_LIMIT =
533
573
  T.let(
534
574
  :VELOCITY_LIMIT,
@@ -549,6 +589,7 @@ module Lithic
549
589
  :TYPESCRIPT_CODE,
550
590
  Lithic::AuthRules::AuthRule::Type::TaggedSymbol
551
591
  )
592
+ OTHER = T.let(:OTHER, Lithic::AuthRules::AuthRule::Type::TaggedSymbol)
552
593
 
553
594
  sig do
554
595
  override.returns(