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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e9f6ed3184bfb671fac6deab7e1e5a01108b92a3f4adc97e15bd4539c5d69d1
4
- data.tar.gz: d9f0cd5fa590316ed27b0de33185eff8342f2fa4e885720f6648d4f871d8ef5b
3
+ metadata.gz: fc989448bb022cd114bd44f64d856040cd80e588493094ac55a3b4faf0f6725a
4
+ data.tar.gz: b19f6c24a37b3cac6488a79621650569e5e333459d58d3239305efc8d6bab478
5
5
  SHA512:
6
- metadata.gz: 9958c2f72d732e9b67960ffc80a089edf988feaaed6347d6946c4efa56aae6898d549507dfa3921b5399d2d099a0fa3bc204b8c4967a4ebf11b4e6494cdb56b1
7
- data.tar.gz: ea002ba56ac10e779df7971feea5b3b6b752b3172feaf69e22abf4248df595b4574e17af419b6f690156b1c0f3663cf81b4a3f43da79eb24b3ef2de02eac4fc1
6
+ metadata.gz: 9d39e27a7a340b7325c097ac528486a731ab4c8fec6f270420a00ec8306436aaaec067775316299c31b2880b95020065ca8dbcfa86ccae76670532e96e027965
7
+ data.tar.gz: 3766f674fec04a8def4f4809c2b0c8c8eaaef02f0842832ecb2600b940447ae77dd25ebbbc85f6583b31f516cbce7217860bf7900f7a2739ef7173d02cb78d73
data/CHANGELOG.md CHANGED
@@ -1,5 +1,55 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.23.0](https://github.com/lithic-com/lithic-ruby/compare/v0.22.0...v0.23.0) (2026-10-29)
4
+
5
+
6
+ ### Features
7
+
8
+ * **api:** add ALLPOINT to card transaction and authorization network enums ([dc34ff5](https://github.com/lithic-com/lithic-ruby/commit/dc34ff5ae508f99a2be5d558a03ee0ce01f4b236))
9
+ * **api:** add financial_entity_id to transfer limits response items ([a3f8e8c](https://github.com/lithic-com/lithic-ruby/commit/a3f8e8cb9f37901f002b5e9cdba316448a6ffba4))
10
+ * **api:** add INSTANCE_TO_INSTANCE to book transfer type and financial event type enums ([f42ede6](https://github.com/lithic-com/lithic-ruby/commit/f42ede6cb9d21a8ded2b6059a005a52cf9b4a3d7))
11
+ * **api:** add intra-bank transaction category and intra_bank financial event types ([ff8d771](https://github.com/lithic-com/lithic-ruby/commit/ff8d771b0437ad74fc4d833d2530eb2d189cbdbf))
12
+ * **api:** add ip_ranges.retrieve to get static IPs for Lithic ASA responder ([db702d5](https://github.com/lithic-com/lithic-ruby/commit/db702d5f5d03970433452019e2579da830105f9c))
13
+ * **api:** add page_size to financial transaction lists and date filters to funding events list ([4a79194](https://github.com/lithic-com/lithic-ruby/commit/4a79194c8742592a85aa46aa75ff707d0b0e11b5))
14
+ * **api:** add reference_id field to claims for matching with the dashboard ([186b254](https://github.com/lithic-com/lithic-ruby/commit/186b254774bdcaa30dcb18e40a0dbb1ce49a2110))
15
+ * **api:** add unit_amount and total_amount to enhanced commercial data line items, deprecate amount ([e3f5c25](https://github.com/lithic-com/lithic-ruby/commit/e3f5c251fed13893fdc6a17bde583722249c3363))
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **api:** correct status enum types on hold and card transaction models ([620c67d](https://github.com/lithic-com/lithic-ruby/commit/620c67d66247dfbf1fa87e0a9c19f4bf44d794ae))
21
+ * **api:** financial account balance last transaction tokens are nullable (breaks java/kotlin types) ([f136d98](https://github.com/lithic-com/lithic-ruby/commit/f136d9805d1651f1052bf75c19d5f52155152978))
22
+ * **api:** make tier_name, tier_rates, and penalty_rates nullable on account tier schedules ([7284947](https://github.com/lithic-com/lithic-ruby/commit/7284947097f697cfd1ac4234df867453a5a39230))
23
+
24
+
25
+ ### Chores
26
+
27
+ * **ci:** raising minimum Ruby version to 3.4 ([#158](https://github.com/lithic-com/lithic-ruby/issues/158)) ([e55b6d6](https://github.com/lithic-com/lithic-ruby/commit/e55b6d6f2604db10d99965d4526494656bdeceb1))
28
+
29
+
30
+ ### Documentation
31
+
32
+ * **api:** clarify credit product can only be assigned once to pending financial accounts ([563339a](https://github.com/lithic-com/lithic-ruby/commit/563339af8ae0313a68287e57290c3a01d1136a81))
33
+
34
+ ## [0.22.0](https://github.com/lithic-com/lithic-ruby/compare/v0.21.0...v0.22.0) (2026-10-13)
35
+
36
+
37
+ ### ⚠ BREAKING CHANGES
38
+
39
+ * **api:** the CONDITIONAL_BLOCK rule type and the ConditionalBlockParameters model are removed. All rules are now CONDITIONAL_ACTION.
40
+
41
+ ### Features
42
+
43
+ * **api:** accept billing_currency and settlement_currency on transaction simulation endpoints ([428ae58](https://github.com/lithic-com/lithic-ruby/commit/428ae5843e4ad441e828dcb7f73b889f8756d887))
44
+ * **api:** add entities to auth rules and an endpoint to update a rule's entities incrementally ([462b161](https://github.com/lithic-com/lithic-ruby/commit/462b161da24cb01374ae438d5217208ccc652a79))
45
+ * **api:** add installment plan statement endpoints to financial accounts ([e94582e](https://github.com/lithic-com/lithic-ruby/commit/e94582ea1ea6e30db808bd62b2952dac9b3fd3ad))
46
+ * **api:** add payment-only allocation breakdown to the loan tape ([625d033](https://github.com/lithic-com/lithic-ruby/commit/625d033aaec889eef435909baa44f3efabc17e50))
47
+ * **api:** add tags to card create and update parameters and card responses ([31f4225](https://github.com/lithic-com/lithic-ruby/commit/31f42251508fff2120b90678891414285e34c5ab))
48
+ * **api:** add tags to the card object in auth stream access requests ([5c9677a](https://github.com/lithic-com/lithic-ruby/commit/5c9677ade53fe5d0248a1cd6e5c109033388fb07))
49
+ * **api:** expose the full conditional attribute set for authorization rules ([2ab59fc](https://github.com/lithic-com/lithic-ruby/commit/2ab59fc2d2113eba31919f86dd5cbff5e72d09bf))
50
+ * **api:** remove CONDITIONAL_BLOCK from authorization rules ([7a4a3d3](https://github.com/lithic-com/lithic-ruby/commit/7a4a3d3ddf06d7f2139e38bde4c8f68e0f9e827e))
51
+ * **api:** support international addresses and address2 for KYB_DELEGATED and KYC_EXEMPT workflows ([cd0721a](https://github.com/lithic-com/lithic-ruby/commit/cd0721a5e04383773baa69cb06f07d83ec037ef8))
52
+
3
53
  ## 0.21.0 (2026-09-18)
4
54
 
5
55
  Full Changelog: [v0.20.0...v0.21.0](https://github.com/lithic-com/lithic-ruby/compare/v0.20.0...v0.21.0)
data/README.md CHANGED
@@ -2,15 +2,6 @@
2
2
 
3
3
  The Lithic Ruby library provides convenient access to the Lithic REST API from any Ruby 3.2.0+ application. It ships with comprehensive types & docstrings in Yard, RBS, and RBI – [see below](https://github.com/lithic-com/lithic-ruby#Sorbet) for usage with Sorbet. The standard library's `net/http` is used as the HTTP transport, with connection pooling via the `connection_pool` gem.
4
4
 
5
- ## MCP Server
6
-
7
- Use the Lithic MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
8
-
9
- [![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=lithic-mcp&config=eyJuYW1lIjoibGl0aGljLW1jcCIsInRyYW5zcG9ydCI6Imh0dHAiLCJ1cmwiOiJodHRwczovL2xpdGhpYy5zdGxtY3AuY29tIiwiaGVhZGVycyI6eyJ4LWxpdGhpYy1hcGkta2V5IjoiTXkgTGl0aGljIEFQSSBLZXkifX0)
10
- [![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22lithic-mcp%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Flithic.stlmcp.com%22%2C%22headers%22%3A%7B%22x-lithic-api-key%22%3A%22My%20Lithic%20API%20Key%22%7D%7D)
11
-
12
- > Note: You may need to set environment variables in your MCP client.
13
-
14
5
  ## Documentation
15
6
 
16
7
  Documentation for releases of this gem can be found [on RubyDoc](https://gemdocs.org/gems/lithic).
@@ -24,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
24
15
  <!-- x-release-please-start-version -->
25
16
 
26
17
  ```ruby
27
- gem "lithic", "~> 0.21.0"
18
+ gem "lithic", "~> 0.23.0"
28
19
  ```
29
20
 
30
21
  <!-- x-release-please-end -->
data/lib/lithic/client.rb CHANGED
@@ -80,6 +80,9 @@ module Lithic
80
80
  # @return [Lithic::Resources::ResponderEndpoints]
81
81
  attr_reader :responder_endpoints
82
82
 
83
+ # @return [Lithic::Resources::IPRanges]
84
+ attr_reader :ip_ranges
85
+
83
86
  # @return [Lithic::Resources::ExternalBankAccounts]
84
87
  attr_reader :external_bank_accounts
85
88
 
@@ -242,6 +245,7 @@ module Lithic
242
245
  @financial_accounts = Lithic::Resources::FinancialAccounts.new(client: self)
243
246
  @transactions = Lithic::Resources::Transactions.new(client: self)
244
247
  @responder_endpoints = Lithic::Resources::ResponderEndpoints.new(client: self)
248
+ @ip_ranges = Lithic::Resources::IPRanges.new(client: self)
245
249
  @external_bank_accounts = Lithic::Resources::ExternalBankAccounts.new(client: self)
246
250
  @blockchain_recipients = Lithic::Resources::BlockchainRecipients.new(client: self)
247
251
  @payments = Lithic::Resources::Payments.new(client: self)
@@ -6,14 +6,28 @@ module Lithic
6
6
  # @api private
7
7
  #
8
8
  # @example
9
- # # `case_transaction` is a `Lithic::TransactionMonitoring::CaseTransaction`
10
- # case case_transaction
11
- # when Lithic::TransactionMonitoring::CaseTransaction::CardCaseTransaction
12
- # puts(case_transaction.token)
13
- # when Lithic::TransactionMonitoring::CaseTransaction::PaymentCaseTransaction
14
- # puts(case_transaction.added_at)
9
+ # # `auth_rule_entity` is a `Lithic::AuthRules::AuthRuleEntity`
10
+ # case auth_rule_entity
11
+ # when Lithic::AuthRules::AuthRuleEntity::Program
12
+ # puts(auth_rule_entity.type)
13
+ # when Lithic::AuthRules::AuthRuleEntity::Card
14
+ # puts(auth_rule_entity.token)
15
+ # when Lithic::AuthRules::AuthRuleEntity::Account
16
+ # puts(auth_rule_entity.token)
15
17
  # else
16
- # puts(case_transaction)
18
+ # puts(auth_rule_entity)
19
+ # end
20
+ #
21
+ # @example
22
+ # case auth_rule_entity
23
+ # in {type: :PROGRAM}
24
+ # # ...
25
+ # in {type: :CARD, token: token}
26
+ # puts(token)
27
+ # in {type: :ACCOUNT, token: token}
28
+ # puts(token)
29
+ # else
30
+ # puts(auth_rule_entity)
17
31
  # end
18
32
  module Union
19
33
  include Lithic::Internal::Type::Converter
@@ -112,6 +112,7 @@ module Lithic
112
112
  ACH = :ACH
113
113
  WIRE = :WIRE
114
114
  STABLECOIN = :STABLECOIN
115
+ INTRA_BANK = :INTRA_BANK
115
116
  BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING
116
117
  FEE = :FEE
117
118
  REWARD = :REWARD
@@ -151,6 +151,7 @@ module Lithic
151
151
  ACH = :ACH
152
152
  WIRE = :WIRE
153
153
  STABLECOIN = :STABLECOIN
154
+ INTRA_BANK = :INTRA_BANK
154
155
  BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING
155
156
  FEE = :FEE
156
157
  REWARD = :REWARD
@@ -228,45 +229,22 @@ module Lithic
228
229
  # @return [Symbol, :CARD]
229
230
  required :family, const: :CARD
230
231
 
231
- # @!attribute status
232
- # The status of the transaction
233
- #
234
- # @return [Symbol, Lithic::Models::AccountActivityListResponse::Card::Status]
235
- required :status, enum: -> { Lithic::Models::AccountActivityListResponse::Card::Status }
236
-
237
232
  # @!attribute updated
238
233
  # ISO 8601 timestamp of when the transaction was last updated
239
234
  #
240
235
  # @return [Time]
241
236
  required :updated, Time
242
237
 
243
- # @!method initialize(token:, created:, status:, updated:, family: :CARD)
238
+ # @!method initialize(token:, created:, updated:, family: :CARD)
244
239
  # Card transaction with ledger base properties
245
240
  #
246
241
  # @param token [String] Unique identifier for the transaction
247
242
  #
248
243
  # @param created [Time] ISO 8601 timestamp of when the transaction was created
249
244
  #
250
- # @param status [Symbol, Lithic::Models::AccountActivityListResponse::Card::Status] The status of the transaction
251
- #
252
245
  # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated
253
246
  #
254
247
  # @param family [Symbol, :CARD] CARD - Card Transaction
255
-
256
- # The status of the transaction
257
- module Status
258
- extend Lithic::Internal::Type::Enum
259
-
260
- PENDING = :PENDING
261
- SETTLED = :SETTLED
262
- DECLINED = :DECLINED
263
- REVERSED = :REVERSED
264
- CANCELED = :CANCELED
265
- RETURNED = :RETURNED
266
-
267
- # @!method self.values
268
- # @return [Array<Symbol>]
269
- end
270
248
  end
271
249
 
272
250
  # @!method self.variants
@@ -154,6 +154,7 @@ module Lithic
154
154
  ACH = :ACH
155
155
  WIRE = :WIRE
156
156
  STABLECOIN = :STABLECOIN
157
+ INTRA_BANK = :INTRA_BANK
157
158
  BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING
158
159
  FEE = :FEE
159
160
  REWARD = :REWARD
@@ -231,45 +232,22 @@ module Lithic
231
232
  # @return [Symbol, :CARD]
232
233
  required :family, const: :CARD
233
234
 
234
- # @!attribute status
235
- # The status of the transaction
236
- #
237
- # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status]
238
- required :status, enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status }
239
-
240
235
  # @!attribute updated
241
236
  # ISO 8601 timestamp of when the transaction was last updated
242
237
  #
243
238
  # @return [Time]
244
239
  required :updated, Time
245
240
 
246
- # @!method initialize(token:, created:, status:, updated:, family: :CARD)
241
+ # @!method initialize(token:, created:, updated:, family: :CARD)
247
242
  # Card transaction with ledger base properties
248
243
  #
249
244
  # @param token [String] Unique identifier for the transaction
250
245
  #
251
246
  # @param created [Time] ISO 8601 timestamp of when the transaction was created
252
247
  #
253
- # @param status [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status] The status of the transaction
254
- #
255
248
  # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated
256
249
  #
257
250
  # @param family [Symbol, :CARD] CARD - Card Transaction
258
-
259
- # The status of the transaction
260
- module Status
261
- extend Lithic::Internal::Type::Enum
262
-
263
- PENDING = :PENDING
264
- SETTLED = :SETTLED
265
- DECLINED = :DECLINED
266
- REVERSED = :REVERSED
267
- CANCELED = :CANCELED
268
- RETURNED = :RETURNED
269
-
270
- # @!method self.values
271
- # @return [Array<Symbol>]
272
- end
273
251
  end
274
252
 
275
253
  # @!method self.variants
@@ -202,7 +202,8 @@ module Lithic
202
202
 
203
203
  # @!attribute address
204
204
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
205
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
205
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
206
+ # and KYC workflows.
206
207
  #
207
208
  # @return [Lithic::Models::Address, nil]
208
209
  optional :address, -> { Lithic::Address }
@@ -274,7 +275,8 @@ module Lithic
274
275
 
275
276
  # @!attribute address
276
277
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
277
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
278
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
279
+ # and KYC workflows.
278
280
  #
279
281
  # @return [Lithic::Models::Address, nil]
280
282
  optional :address, -> { Lithic::Address }
@@ -216,7 +216,8 @@ module Lithic
216
216
  class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel
217
217
  # @!attribute address
218
218
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
219
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
219
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
220
+ # and KYC workflows.
220
221
  #
221
222
  # @return [Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual::Address, nil]
222
223
  optional :address,
@@ -285,51 +286,68 @@ module Lithic
285
286
  required :city, String
286
287
 
287
288
  # @!attribute country
288
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
289
- # 3166-1 alpha-3 three-character format.
289
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
290
+ # format. Supported countries depend on the onboarding workflow used for the
291
+ # account holder.
290
292
  #
291
293
  # @return [String]
292
294
  required :country, String
293
295
 
294
- # @!attribute postal_code
295
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
296
- # five-digit ZIP or nine-digit ZIP+4.
296
+ # @!attribute address2
297
+ # Unit or apartment number (if applicable).
297
298
  #
298
- # @return [String]
299
- required :postal_code, String
299
+ # @return [String, nil]
300
+ optional :address2, String
300
301
 
301
- # @!attribute state
302
- # Valid state code. Only USA state codes are currently supported, entered in
303
- # uppercase ISO 3166-2 two-character format.
302
+ # @!attribute postal_code
303
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
304
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
305
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
306
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
307
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
308
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
304
309
  #
305
- # @return [String]
306
- required :state, String
310
+ # @return [String, nil]
311
+ optional :postal_code, String, nil?: true
307
312
 
308
- # @!attribute address2
309
- # Unit or apartment number (if applicable).
313
+ # @!attribute state
314
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
315
+ # code for the country without the country prefix. For example, `CA` for
316
+ # California. Optional unless the address is in one of the following countries,
317
+ # where it is required:
318
+ #
319
+ # - `USA`
320
+ # - `CAN`
321
+ # - `AUS`
322
+ # - `CHN`
323
+ # - `KOR`
324
+ # - `MEX`
325
+ # - `MYS`
326
+ # - `NZL`
310
327
  #
311
328
  # @return [String, nil]
312
- optional :address2, String
329
+ optional :state, String, nil?: true
313
330
 
314
- # @!method initialize(address1:, city:, country:, postal_code:, state:, address2: nil)
331
+ # @!method initialize(address1:, city:, country:, address2: nil, postal_code: nil, state: nil)
315
332
  # Some parameter documentations has been truncated, see
316
333
  # {Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual::Address}
317
334
  # for more details.
318
335
  #
319
336
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
320
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
337
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
338
+ # and KYC workflows.
321
339
  #
322
340
  # @param address1 [String] Valid deliverable address (no PO boxes).
323
341
  #
324
342
  # @param city [String] Name of city.
325
343
  #
326
- # @param country [String] Valid country code. Only USA is currently supported, entered in uppercase ISO 31
344
+ # @param country [String] Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character form
327
345
  #
328
- # @param postal_code [String] Valid postal code. Only USA ZIP codes are currently supported, entered as a five
346
+ # @param address2 [String] Unit or apartment number (if applicable).
329
347
  #
330
- # @param state [String] Valid state code. Only USA state codes are currently supported, entered in upper
348
+ # @param postal_code [String, nil] Valid postal code. For USA addresses, enter either a five-digit postal code or a
331
349
  #
332
- # @param address2 [String] Unit or apartment number (if applicable).
350
+ # @param state [String, nil] Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
333
351
  end
334
352
  end
335
353
 
@@ -337,7 +355,8 @@ module Lithic
337
355
  class ControlPerson < Lithic::Internal::Type::BaseModel
338
356
  # @!attribute address
339
357
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
340
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
358
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
359
+ # and KYC workflows.
341
360
  #
342
361
  # @return [Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ControlPerson::Address, nil]
343
362
  optional :address,
@@ -418,51 +437,68 @@ module Lithic
418
437
  required :city, String
419
438
 
420
439
  # @!attribute country
421
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
422
- # 3166-1 alpha-3 three-character format.
440
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
441
+ # format. Supported countries depend on the onboarding workflow used for the
442
+ # account holder.
423
443
  #
424
444
  # @return [String]
425
445
  required :country, String
426
446
 
427
- # @!attribute postal_code
428
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
429
- # five-digit ZIP or nine-digit ZIP+4.
447
+ # @!attribute address2
448
+ # Unit or apartment number (if applicable).
430
449
  #
431
- # @return [String]
432
- required :postal_code, String
450
+ # @return [String, nil]
451
+ optional :address2, String
433
452
 
434
- # @!attribute state
435
- # Valid state code. Only USA state codes are currently supported, entered in
436
- # uppercase ISO 3166-2 two-character format.
453
+ # @!attribute postal_code
454
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
455
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
456
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
457
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
458
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
459
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
437
460
  #
438
- # @return [String]
439
- required :state, String
461
+ # @return [String, nil]
462
+ optional :postal_code, String, nil?: true
440
463
 
441
- # @!attribute address2
442
- # Unit or apartment number (if applicable).
464
+ # @!attribute state
465
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
466
+ # code for the country without the country prefix. For example, `CA` for
467
+ # California. Optional unless the address is in one of the following countries,
468
+ # where it is required:
469
+ #
470
+ # - `USA`
471
+ # - `CAN`
472
+ # - `AUS`
473
+ # - `CHN`
474
+ # - `KOR`
475
+ # - `MEX`
476
+ # - `MYS`
477
+ # - `NZL`
443
478
  #
444
479
  # @return [String, nil]
445
- optional :address2, String
480
+ optional :state, String, nil?: true
446
481
 
447
- # @!method initialize(address1:, city:, country:, postal_code:, state:, address2: nil)
482
+ # @!method initialize(address1:, city:, country:, address2: nil, postal_code: nil, state: nil)
448
483
  # Some parameter documentations has been truncated, see
449
484
  # {Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ControlPerson::Address}
450
485
  # for more details.
451
486
  #
452
487
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
453
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
488
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
489
+ # and KYC workflows.
454
490
  #
455
491
  # @param address1 [String] Valid deliverable address (no PO boxes).
456
492
  #
457
493
  # @param city [String] Name of city.
458
494
  #
459
- # @param country [String] Valid country code. Only USA is currently supported, entered in uppercase ISO 31
495
+ # @param country [String] Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character form
460
496
  #
461
- # @param postal_code [String] Valid postal code. Only USA ZIP codes are currently supported, entered as a five
497
+ # @param address2 [String] Unit or apartment number (if applicable).
462
498
  #
463
- # @param state [String] Valid state code. Only USA state codes are currently supported, entered in upper
499
+ # @param postal_code [String, nil] Valid postal code. For USA addresses, enter either a five-digit postal code or a
464
500
  #
465
- # @param address2 [String] Unit or apartment number (if applicable).
501
+ # @param state [String, nil] Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
466
502
  end
467
503
  end
468
504
 
@@ -484,7 +520,8 @@ module Lithic
484
520
  class Individual < Lithic::Internal::Type::BaseModel
485
521
  # @!attribute address
486
522
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
487
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
523
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
524
+ # and KYC workflows.
488
525
  #
489
526
  # @return [Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual::Address, nil]
490
527
  optional :address,
@@ -556,51 +593,68 @@ module Lithic
556
593
  required :city, String
557
594
 
558
595
  # @!attribute country
559
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
560
- # 3166-1 alpha-3 three-character format.
596
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
597
+ # format. Supported countries depend on the onboarding workflow used for the
598
+ # account holder.
561
599
  #
562
600
  # @return [String]
563
601
  required :country, String
564
602
 
565
- # @!attribute postal_code
566
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
567
- # five-digit ZIP or nine-digit ZIP+4.
603
+ # @!attribute address2
604
+ # Unit or apartment number (if applicable).
568
605
  #
569
- # @return [String]
570
- required :postal_code, String
606
+ # @return [String, nil]
607
+ optional :address2, String
571
608
 
572
- # @!attribute state
573
- # Valid state code. Only USA state codes are currently supported, entered in
574
- # uppercase ISO 3166-2 two-character format.
609
+ # @!attribute postal_code
610
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
611
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
612
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
613
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
614
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
615
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
575
616
  #
576
- # @return [String]
577
- required :state, String
617
+ # @return [String, nil]
618
+ optional :postal_code, String, nil?: true
578
619
 
579
- # @!attribute address2
580
- # Unit or apartment number (if applicable).
620
+ # @!attribute state
621
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
622
+ # code for the country without the country prefix. For example, `CA` for
623
+ # California. Optional unless the address is in one of the following countries,
624
+ # where it is required:
625
+ #
626
+ # - `USA`
627
+ # - `CAN`
628
+ # - `AUS`
629
+ # - `CHN`
630
+ # - `KOR`
631
+ # - `MEX`
632
+ # - `MYS`
633
+ # - `NZL`
581
634
  #
582
635
  # @return [String, nil]
583
- optional :address2, String
636
+ optional :state, String, nil?: true
584
637
 
585
- # @!method initialize(address1:, city:, country:, postal_code:, state:, address2: nil)
638
+ # @!method initialize(address1:, city:, country:, address2: nil, postal_code: nil, state: nil)
586
639
  # Some parameter documentations has been truncated, see
587
640
  # {Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual::Address}
588
641
  # for more details.
589
642
  #
590
643
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
591
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
644
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
645
+ # and KYC workflows.
592
646
  #
593
647
  # @param address1 [String] Valid deliverable address (no PO boxes).
594
648
  #
595
649
  # @param city [String] Name of city.
596
650
  #
597
- # @param country [String] Valid country code. Only USA is currently supported, entered in uppercase ISO 31
651
+ # @param country [String] Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character form
598
652
  #
599
- # @param postal_code [String] Valid postal code. Only USA ZIP codes are currently supported, entered as a five
653
+ # @param address2 [String] Unit or apartment number (if applicable).
600
654
  #
601
- # @param state [String] Valid state code. Only USA state codes are currently supported, entered in upper
655
+ # @param postal_code [String, nil] Valid postal code. For USA addresses, enter either a five-digit postal code or a
602
656
  #
603
- # @param address2 [String] Unit or apartment number (if applicable).
657
+ # @param state [String, nil] Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
604
658
  end
605
659
  end
606
660
 
@@ -129,7 +129,8 @@ module Lithic
129
129
 
130
130
  # @!attribute address
131
131
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
132
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
132
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
133
+ # and KYC workflows.
133
134
  #
134
135
  # @return [Lithic::Models::AddressUpdate, nil]
135
136
  optional :address, -> { Lithic::AddressUpdate }
@@ -282,7 +283,8 @@ module Lithic
282
283
 
283
284
  # @!attribute address
284
285
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
285
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
286
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
287
+ # and KYC workflows.
286
288
  #
287
289
  # @return [Lithic::Models::AddressUpdate, nil]
288
290
  optional :address, -> { Lithic::AddressUpdate }
@@ -397,7 +399,8 @@ module Lithic
397
399
 
398
400
  # @!attribute address
399
401
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
400
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
402
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
403
+ # and KYC workflows.
401
404
  #
402
405
  # @return [Lithic::Models::AddressUpdate, nil]
403
406
  optional :address, -> { Lithic::AddressUpdate }