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
@@ -223,7 +223,8 @@ module Lithic
223
223
  class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel
224
224
  # @!attribute address
225
225
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
226
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
226
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
227
+ # and KYC workflows.
227
228
  #
228
229
  # @return [Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::BeneficialOwnerIndividual::Address, nil]
229
230
  optional :address,
@@ -292,51 +293,68 @@ module Lithic
292
293
  required :city, String
293
294
 
294
295
  # @!attribute country
295
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
296
- # 3166-1 alpha-3 three-character format.
296
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
297
+ # format. Supported countries depend on the onboarding workflow used for the
298
+ # account holder.
297
299
  #
298
300
  # @return [String]
299
301
  required :country, String
300
302
 
301
- # @!attribute postal_code
302
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
303
- # five-digit ZIP or nine-digit ZIP+4.
303
+ # @!attribute address2
304
+ # Unit or apartment number (if applicable).
304
305
  #
305
- # @return [String]
306
- required :postal_code, String
306
+ # @return [String, nil]
307
+ optional :address2, String
307
308
 
308
- # @!attribute state
309
- # Valid state code. Only USA state codes are currently supported, entered in
310
- # uppercase ISO 3166-2 two-character format.
309
+ # @!attribute postal_code
310
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
311
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
312
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
313
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
314
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
315
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
311
316
  #
312
- # @return [String]
313
- required :state, String
317
+ # @return [String, nil]
318
+ optional :postal_code, String, nil?: true
314
319
 
315
- # @!attribute address2
316
- # Unit or apartment number (if applicable).
320
+ # @!attribute state
321
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
322
+ # code for the country without the country prefix. For example, `CA` for
323
+ # California. Optional unless the address is in one of the following countries,
324
+ # where it is required:
325
+ #
326
+ # - `USA`
327
+ # - `CAN`
328
+ # - `AUS`
329
+ # - `CHN`
330
+ # - `KOR`
331
+ # - `MEX`
332
+ # - `MYS`
333
+ # - `NZL`
317
334
  #
318
335
  # @return [String, nil]
319
- optional :address2, String
336
+ optional :state, String, nil?: true
320
337
 
321
- # @!method initialize(address1:, city:, country:, postal_code:, state:, address2: nil)
338
+ # @!method initialize(address1:, city:, country:, address2: nil, postal_code: nil, state: nil)
322
339
  # Some parameter documentations has been truncated, see
323
340
  # {Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::BeneficialOwnerIndividual::Address}
324
341
  # for more details.
325
342
  #
326
343
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
327
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
344
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
345
+ # and KYC workflows.
328
346
  #
329
347
  # @param address1 [String] Valid deliverable address (no PO boxes).
330
348
  #
331
349
  # @param city [String] Name of city.
332
350
  #
333
- # @param country [String] Valid country code. Only USA is currently supported, entered in uppercase ISO 31
351
+ # @param country [String] Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character form
334
352
  #
335
- # @param postal_code [String] Valid postal code. Only USA ZIP codes are currently supported, entered as a five
353
+ # @param address2 [String] Unit or apartment number (if applicable).
336
354
  #
337
- # @param state [String] Valid state code. Only USA state codes are currently supported, entered in upper
355
+ # @param postal_code [String, nil] Valid postal code. For USA addresses, enter either a five-digit postal code or a
338
356
  #
339
- # @param address2 [String] Unit or apartment number (if applicable).
357
+ # @param state [String, nil] Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
340
358
  end
341
359
  end
342
360
 
@@ -344,7 +362,8 @@ module Lithic
344
362
  class ControlPerson < Lithic::Internal::Type::BaseModel
345
363
  # @!attribute address
346
364
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
347
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
365
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
366
+ # and KYC workflows.
348
367
  #
349
368
  # @return [Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::ControlPerson::Address, nil]
350
369
  optional :address,
@@ -425,51 +444,68 @@ module Lithic
425
444
  required :city, String
426
445
 
427
446
  # @!attribute country
428
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
429
- # 3166-1 alpha-3 three-character format.
447
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
448
+ # format. Supported countries depend on the onboarding workflow used for the
449
+ # account holder.
430
450
  #
431
451
  # @return [String]
432
452
  required :country, String
433
453
 
434
- # @!attribute postal_code
435
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
436
- # five-digit ZIP or nine-digit ZIP+4.
454
+ # @!attribute address2
455
+ # Unit or apartment number (if applicable).
437
456
  #
438
- # @return [String]
439
- required :postal_code, String
457
+ # @return [String, nil]
458
+ optional :address2, String
440
459
 
441
- # @!attribute state
442
- # Valid state code. Only USA state codes are currently supported, entered in
443
- # uppercase ISO 3166-2 two-character format.
460
+ # @!attribute postal_code
461
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
462
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
463
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
464
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
465
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
466
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
444
467
  #
445
- # @return [String]
446
- required :state, String
468
+ # @return [String, nil]
469
+ optional :postal_code, String, nil?: true
447
470
 
448
- # @!attribute address2
449
- # Unit or apartment number (if applicable).
471
+ # @!attribute state
472
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
473
+ # code for the country without the country prefix. For example, `CA` for
474
+ # California. Optional unless the address is in one of the following countries,
475
+ # where it is required:
476
+ #
477
+ # - `USA`
478
+ # - `CAN`
479
+ # - `AUS`
480
+ # - `CHN`
481
+ # - `KOR`
482
+ # - `MEX`
483
+ # - `MYS`
484
+ # - `NZL`
450
485
  #
451
486
  # @return [String, nil]
452
- optional :address2, String
487
+ optional :state, String, nil?: true
453
488
 
454
- # @!method initialize(address1:, city:, country:, postal_code:, state:, address2: nil)
489
+ # @!method initialize(address1:, city:, country:, address2: nil, postal_code: nil, state: nil)
455
490
  # Some parameter documentations has been truncated, see
456
491
  # {Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::ControlPerson::Address}
457
492
  # for more details.
458
493
  #
459
494
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
460
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
495
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
496
+ # and KYC workflows.
461
497
  #
462
498
  # @param address1 [String] Valid deliverable address (no PO boxes).
463
499
  #
464
500
  # @param city [String] Name of city.
465
501
  #
466
- # @param country [String] Valid country code. Only USA is currently supported, entered in uppercase ISO 31
502
+ # @param country [String] Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character form
467
503
  #
468
- # @param postal_code [String] Valid postal code. Only USA ZIP codes are currently supported, entered as a five
504
+ # @param address2 [String] Unit or apartment number (if applicable).
469
505
  #
470
- # @param state [String] Valid state code. Only USA state codes are currently supported, entered in upper
506
+ # @param postal_code [String, nil] Valid postal code. For USA addresses, enter either a five-digit postal code or a
471
507
  #
472
- # @param address2 [String] Unit or apartment number (if applicable).
508
+ # @param state [String, nil] Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
473
509
  end
474
510
  end
475
511
 
@@ -491,7 +527,8 @@ module Lithic
491
527
  class Individual < Lithic::Internal::Type::BaseModel
492
528
  # @!attribute address
493
529
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
494
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
530
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
531
+ # and KYC workflows.
495
532
  #
496
533
  # @return [Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual::Address, nil]
497
534
  optional :address,
@@ -563,51 +600,68 @@ module Lithic
563
600
  required :city, String
564
601
 
565
602
  # @!attribute country
566
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
567
- # 3166-1 alpha-3 three-character format.
603
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
604
+ # format. Supported countries depend on the onboarding workflow used for the
605
+ # account holder.
568
606
  #
569
607
  # @return [String]
570
608
  required :country, String
571
609
 
572
- # @!attribute postal_code
573
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
574
- # five-digit ZIP or nine-digit ZIP+4.
610
+ # @!attribute address2
611
+ # Unit or apartment number (if applicable).
575
612
  #
576
- # @return [String]
577
- required :postal_code, String
613
+ # @return [String, nil]
614
+ optional :address2, String
578
615
 
579
- # @!attribute state
580
- # Valid state code. Only USA state codes are currently supported, entered in
581
- # uppercase ISO 3166-2 two-character format.
616
+ # @!attribute postal_code
617
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
618
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
619
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
620
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
621
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
622
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
582
623
  #
583
- # @return [String]
584
- required :state, String
624
+ # @return [String, nil]
625
+ optional :postal_code, String, nil?: true
585
626
 
586
- # @!attribute address2
587
- # Unit or apartment number (if applicable).
627
+ # @!attribute state
628
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
629
+ # code for the country without the country prefix. For example, `CA` for
630
+ # California. Optional unless the address is in one of the following countries,
631
+ # where it is required:
632
+ #
633
+ # - `USA`
634
+ # - `CAN`
635
+ # - `AUS`
636
+ # - `CHN`
637
+ # - `KOR`
638
+ # - `MEX`
639
+ # - `MYS`
640
+ # - `NZL`
588
641
  #
589
642
  # @return [String, nil]
590
- optional :address2, String
643
+ optional :state, String, nil?: true
591
644
 
592
- # @!method initialize(address1:, city:, country:, postal_code:, state:, address2: nil)
645
+ # @!method initialize(address1:, city:, country:, address2: nil, postal_code: nil, state: nil)
593
646
  # Some parameter documentations has been truncated, see
594
647
  # {Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual::Address}
595
648
  # for more details.
596
649
  #
597
650
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
598
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
651
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
652
+ # and KYC workflows.
599
653
  #
600
654
  # @param address1 [String] Valid deliverable address (no PO boxes).
601
655
  #
602
656
  # @param city [String] Name of city.
603
657
  #
604
- # @param country [String] Valid country code. Only USA is currently supported, entered in uppercase ISO 31
658
+ # @param country [String] Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character form
605
659
  #
606
- # @param postal_code [String] Valid postal code. Only USA ZIP codes are currently supported, entered as a five
660
+ # @param address2 [String] Unit or apartment number (if applicable).
607
661
  #
608
- # @param state [String] Valid state code. Only USA state codes are currently supported, entered in upper
662
+ # @param postal_code [String, nil] Valid postal code. For USA addresses, enter either a five-digit postal code or a
609
663
  #
610
- # @param address2 [String] Unit or apartment number (if applicable).
664
+ # @param state [String, nil] Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
611
665
  end
612
666
  end
613
667
 
@@ -878,33 +932,49 @@ module Lithic
878
932
  required :city, String
879
933
 
880
934
  # @!attribute country
881
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
882
- # 3166-1 alpha-3 three-character format.
935
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
936
+ # format. Supported countries depend on the onboarding workflow used for the
937
+ # account holder.
883
938
  #
884
939
  # @return [String]
885
940
  required :country, String
886
941
 
887
- # @!attribute postal_code
888
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
889
- # five-digit ZIP or nine-digit ZIP+4.
942
+ # @!attribute address2
943
+ # Unit or apartment number (if applicable).
890
944
  #
891
- # @return [String]
892
- required :postal_code, String
945
+ # @return [String, nil]
946
+ optional :address2, String
893
947
 
894
- # @!attribute state
895
- # Valid state code. Only USA state codes are currently supported, entered in
896
- # uppercase ISO 3166-2 two-character format.
948
+ # @!attribute postal_code
949
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
950
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
951
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
952
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
953
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
954
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
897
955
  #
898
- # @return [String]
899
- required :state, String
956
+ # @return [String, nil]
957
+ optional :postal_code, String, nil?: true
900
958
 
901
- # @!attribute address2
902
- # Unit or apartment number (if applicable).
959
+ # @!attribute state
960
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
961
+ # code for the country without the country prefix. For example, `CA` for
962
+ # California. Optional unless the address is in one of the following countries,
963
+ # where it is required:
964
+ #
965
+ # - `USA`
966
+ # - `CAN`
967
+ # - `AUS`
968
+ # - `CHN`
969
+ # - `KOR`
970
+ # - `MEX`
971
+ # - `MYS`
972
+ # - `NZL`
903
973
  #
904
974
  # @return [String, nil]
905
- optional :address2, String
975
+ optional :state, String, nil?: true
906
976
 
907
- # @!method initialize(address1:, city:, country:, postal_code:, state:, address2: nil)
977
+ # @!method initialize(address1:, city:, country:, address2: nil, postal_code: nil, state: nil)
908
978
  # Some parameter documentations has been truncated, see
909
979
  # {Lithic::Models::AccountHolderUpdateResponse::PatchResponse::Address} for more
910
980
  # details.
@@ -915,13 +985,13 @@ module Lithic
915
985
  #
916
986
  # @param city [String] Name of city.
917
987
  #
918
- # @param country [String] Valid country code. Only USA is currently supported, entered in uppercase ISO 31
988
+ # @param country [String] Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character form
919
989
  #
920
- # @param postal_code [String] Valid postal code. Only USA ZIP codes are currently supported, entered as a five
990
+ # @param address2 [String] Unit or apartment number (if applicable).
921
991
  #
922
- # @param state [String] Valid state code. Only USA state codes are currently supported, entered in upper
992
+ # @param postal_code [String, nil] Valid postal code. For USA addresses, enter either a five-digit postal code or a
923
993
  #
924
- # @param address2 [String] Unit or apartment number (if applicable).
994
+ # @param state [String, nil] Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
925
995
  end
926
996
  end
927
997