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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a1dad385b89d74fc7b9228fc05beafec83f75a70f844981c069f5363224516c
4
- data.tar.gz: ebf7bf2cb414e22297cec903a453e582a65ae88bcc9452a7151905d261504332
3
+ metadata.gz: 1d5394fbf93d5fe79485f48eeee1e627eca7c52a58f140b47c7d060fe16dd59b
4
+ data.tar.gz: a970af229514a369b29f77419d940d3ba75d3981b914fbcbac192f877b26062d
5
5
  SHA512:
6
- metadata.gz: e8c7901fb8cfcddae62cf0652149ce81862fb297ac35ee9e4494bdfee61a455feaa15821eeceaa13e41effba6ebfc3f87a6a10a9713d8110de617c5eff7252fe
7
- data.tar.gz: 9e5d08fa9e5d110aab84ffe6e9afac0e093db30b2cdf41a582995669c342c94dffe7134d8cac89b96a975fa1ebe6f14d8e303e7f6a0bae8b6a393cb5ca5a3777
6
+ metadata.gz: fa85dffbcc1a77f79a0b259a7d8c25b1cdbec7a02f7116b93687a197986c986d08eff4811c465ed5856f01bdc336aeeccdf18c352fbdb2a2bc0ed7492e8359ed
7
+ data.tar.gz: 5e3bed3eb70b84aa9496b568729b72cf27fcf56cd798135026b6580737973fe6e0e8c07cc106f6dc531b12bee7c3b5eb2e8b7bfb9cef1b213bb5c6c5d3de8701
data/CHANGELOG.md CHANGED
@@ -1,5 +1,49 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.22.0](https://github.com/lithic-com/lithic-ruby/compare/v0.21.0...v0.22.0) (2026-10-13)
4
+
5
+
6
+ ### ⚠ BREAKING CHANGES
7
+
8
+ * **api:** the CONDITIONAL_BLOCK rule type and the ConditionalBlockParameters model are removed. All rules are now CONDITIONAL_ACTION.
9
+
10
+ ### Features
11
+
12
+ * **api:** accept billing_currency and settlement_currency on transaction simulation endpoints ([428ae58](https://github.com/lithic-com/lithic-ruby/commit/428ae5843e4ad441e828dcb7f73b889f8756d887))
13
+ * **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))
14
+ * **api:** add installment plan statement endpoints to financial accounts ([e94582e](https://github.com/lithic-com/lithic-ruby/commit/e94582ea1ea6e30db808bd62b2952dac9b3fd3ad))
15
+ * **api:** add payment-only allocation breakdown to the loan tape ([625d033](https://github.com/lithic-com/lithic-ruby/commit/625d033aaec889eef435909baa44f3efabc17e50))
16
+ * **api:** add tags to card create and update parameters and card responses ([31f4225](https://github.com/lithic-com/lithic-ruby/commit/31f42251508fff2120b90678891414285e34c5ab))
17
+ * **api:** add tags to the card object in auth stream access requests ([5c9677a](https://github.com/lithic-com/lithic-ruby/commit/5c9677ade53fe5d0248a1cd6e5c109033388fb07))
18
+ * **api:** expose the full conditional attribute set for authorization rules ([2ab59fc](https://github.com/lithic-com/lithic-ruby/commit/2ab59fc2d2113eba31919f86dd5cbff5e72d09bf))
19
+ * **api:** remove CONDITIONAL_BLOCK from authorization rules ([7a4a3d3](https://github.com/lithic-com/lithic-ruby/commit/7a4a3d3ddf06d7f2139e38bde4c8f68e0f9e827e))
20
+ * **api:** support international addresses and address2 for KYB_DELEGATED and KYC_EXEMPT workflows ([cd0721a](https://github.com/lithic-com/lithic-ruby/commit/cd0721a5e04383773baa69cb06f07d83ec037ef8))
21
+
22
+ ## 0.21.0 (2026-09-18)
23
+
24
+ Full Changelog: [v0.20.0...v0.21.0](https://github.com/lithic-com/lithic-ruby/compare/v0.20.0...v0.21.0)
25
+
26
+ ### Features
27
+
28
+ * [CARDS-5174] Add reiusse/renew 409 error ([2fc8f3b](https://github.com/lithic-com/lithic-ruby/commit/2fc8f3b93ff2e392d8eda8e343d21e423c214191))
29
+ * [TRE-14464] Update /retry payments endpoint to accept method ([6031d67](https://github.com/lithic-com/lithic-ruby/commit/6031d6794afd8c3a4b121cf2f7368e0ac40867c0))
30
+ * [TRE-14524] Add Open to buy API spec ([bdf043e](https://github.com/lithic-com/lithic-ruby/commit/bdf043e53ac45964c091134b25fb7a3023948397))
31
+ * Add missing blockchain/stablecoin endpoints to the spec ([3e8c0dc](https://github.com/lithic-com/lithic-ruby/commit/3e8c0dcdaa7169ba0a47bea4493e71d778af8853))
32
+ * **api:** add EXTERNAL_STABLECOIN category and events to payment resources ([518aebb](https://github.com/lithic-com/lithic-ruby/commit/518aebb0cf94cbc0b1ca1ef85a94a71c5bf1983e))
33
+ * **api:** add FEE/FEE_REVERSAL to financial_event, statement_line_items, management_operation ([04690f1](https://github.com/lithic-com/lithic-ruby/commit/04690f1542cb3f213da8695507a371c4f0a5aed4))
34
+ * **api:** add OTHER enum value to auth_rules type field ([1bb4cc8](https://github.com/lithic-com/lithic-ruby/commit/1bb4cc80ab6e025ebf0d6fcdd88c5b62cbb602a0))
35
+ * **api:** add psd2_context field to three_ds_authentication ([19e526e](https://github.com/lithic-com/lithic-ruby/commit/19e526e916227881e91ac1dac42e75d86132451e))
36
+ * **api:** add retrieve/list methods to financial_accounts installment_plans ([13b25f3](https://github.com/lithic-com/lithic-ruby/commit/13b25f3cef123eedc918ab5730aacb64114175fe))
37
+ * **api:** add STABLECOIN_REVIEWED event type to payment simulate action ([766c658](https://github.com/lithic-com/lithic-ruby/commit/766c658645a79accfca85707ce6d5c087d93959e))
38
+ * AUTH-3759: Add DECLINE_SCA_REQUIRED and SCA_REQUIRED enum entries ([e784b27](https://github.com/lithic-com/lithic-ruby/commit/e784b275c2690eb0d2ab4a36a3ee9f5af2f79b0b))
39
+ * TRE-14349: add installment plan management operation event types ([bd71bde](https://github.com/lithic-com/lithic-ruby/commit/bd71bde5d20641e236b5b2e95908293bf0ef48e9))
40
+ * TRE-14429: Document the stablecoin payments endpoint ([050c7bd](https://github.com/lithic-com/lithic-ruby/commit/050c7bdd679e3c090c6e1819c0aa3405e3cbfc0c))
41
+
42
+
43
+ ### Documentation
44
+
45
+ * Document the card.pin_updated webhook ([b96e92e](https://github.com/lithic-com/lithic-ruby/commit/b96e92e36fa4ae4dab543d1cc639d807f810b967))
46
+
3
47
  ## 0.20.0 (2026-08-31)
4
48
 
5
49
  Full Changelog: [v0.19.0...v0.20.0](https://github.com/lithic-com/lithic-ruby/compare/v0.19.0...v0.20.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.20.0"
18
+ gem "lithic", "~> 0.22.0"
28
19
  ```
29
20
 
30
21
  <!-- x-release-please-end -->
@@ -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
@@ -123,6 +123,7 @@ module Lithic
123
123
  EXTERNAL_CHECK = :EXTERNAL_CHECK
124
124
  EXTERNAL_FEDNOW = :EXTERNAL_FEDNOW
125
125
  EXTERNAL_RTP = :EXTERNAL_RTP
126
+ EXTERNAL_STABLECOIN = :EXTERNAL_STABLECOIN
126
127
  EXTERNAL_TRANSFER = :EXTERNAL_TRANSFER
127
128
  EXTERNAL_WIRE = :EXTERNAL_WIRE
128
129
  MANAGEMENT_ADJUSTMENT = :MANAGEMENT_ADJUSTMENT
@@ -162,6 +162,7 @@ module Lithic
162
162
  EXTERNAL_CHECK = :EXTERNAL_CHECK
163
163
  EXTERNAL_FEDNOW = :EXTERNAL_FEDNOW
164
164
  EXTERNAL_RTP = :EXTERNAL_RTP
165
+ EXTERNAL_STABLECOIN = :EXTERNAL_STABLECOIN
165
166
  EXTERNAL_TRANSFER = :EXTERNAL_TRANSFER
166
167
  EXTERNAL_WIRE = :EXTERNAL_WIRE
167
168
  MANAGEMENT_ADJUSTMENT = :MANAGEMENT_ADJUSTMENT
@@ -165,6 +165,7 @@ module Lithic
165
165
  EXTERNAL_CHECK = :EXTERNAL_CHECK
166
166
  EXTERNAL_FEDNOW = :EXTERNAL_FEDNOW
167
167
  EXTERNAL_RTP = :EXTERNAL_RTP
168
+ EXTERNAL_STABLECOIN = :EXTERNAL_STABLECOIN
168
169
  EXTERNAL_TRANSFER = :EXTERNAL_TRANSFER
169
170
  EXTERNAL_WIRE = :EXTERNAL_WIRE
170
171
  MANAGEMENT_ADJUSTMENT = :MANAGEMENT_ADJUSTMENT
@@ -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 }