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
@@ -133,7 +133,8 @@ module Lithic
133
133
  class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel
134
134
  # @!attribute address
135
135
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
136
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
136
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
137
+ # and KYC workflows.
137
138
  #
138
139
  # @return [Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual::Address, nil]
139
140
  optional :address,
@@ -202,51 +203,68 @@ module Lithic
202
203
  required :city, String
203
204
 
204
205
  # @!attribute country
205
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
206
- # 3166-1 alpha-3 three-character format.
206
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
207
+ # format. Supported countries depend on the onboarding workflow used for the
208
+ # account holder.
207
209
  #
208
210
  # @return [String]
209
211
  required :country, String
210
212
 
211
- # @!attribute postal_code
212
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
213
- # five-digit ZIP or nine-digit ZIP+4.
213
+ # @!attribute address2
214
+ # Unit or apartment number (if applicable).
214
215
  #
215
- # @return [String]
216
- required :postal_code, String
216
+ # @return [String, nil]
217
+ optional :address2, String
217
218
 
218
- # @!attribute state
219
- # Valid state code. Only USA state codes are currently supported, entered in
220
- # uppercase ISO 3166-2 two-character format.
219
+ # @!attribute postal_code
220
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
221
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
222
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
223
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
224
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
225
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
221
226
  #
222
- # @return [String]
223
- required :state, String
227
+ # @return [String, nil]
228
+ optional :postal_code, String, nil?: true
224
229
 
225
- # @!attribute address2
226
- # Unit or apartment number (if applicable).
230
+ # @!attribute state
231
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
232
+ # code for the country without the country prefix. For example, `CA` for
233
+ # California. Optional unless the address is in one of the following countries,
234
+ # where it is required:
235
+ #
236
+ # - `USA`
237
+ # - `CAN`
238
+ # - `AUS`
239
+ # - `CHN`
240
+ # - `KOR`
241
+ # - `MEX`
242
+ # - `MYS`
243
+ # - `NZL`
227
244
  #
228
245
  # @return [String, nil]
229
- optional :address2, String
246
+ optional :state, String, nil?: true
230
247
 
231
- # @!method initialize(address1:, city:, country:, postal_code:, state:, address2: nil)
248
+ # @!method initialize(address1:, city:, country:, address2: nil, postal_code: nil, state: nil)
232
249
  # Some parameter documentations has been truncated, see
233
250
  # {Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual::Address}
234
251
  # for more details.
235
252
  #
236
253
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
237
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
254
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
255
+ # and KYC workflows.
238
256
  #
239
257
  # @param address1 [String] Valid deliverable address (no PO boxes).
240
258
  #
241
259
  # @param city [String] Name of city.
242
260
  #
243
- # @param country [String] Valid country code. Only USA is currently supported, entered in uppercase ISO 31
261
+ # @param country [String] Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character form
244
262
  #
245
- # @param postal_code [String] Valid postal code. Only USA ZIP codes are currently supported, entered as a five
263
+ # @param address2 [String] Unit or apartment number (if applicable).
246
264
  #
247
- # @param state [String] Valid state code. Only USA state codes are currently supported, entered in upper
265
+ # @param postal_code [String, nil] Valid postal code. For USA addresses, enter either a five-digit postal code or a
248
266
  #
249
- # @param address2 [String] Unit or apartment number (if applicable).
267
+ # @param state [String, nil] Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
250
268
  end
251
269
  end
252
270
 
@@ -254,7 +272,8 @@ module Lithic
254
272
  class ControlPerson < Lithic::Internal::Type::BaseModel
255
273
  # @!attribute address
256
274
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
257
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
275
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
276
+ # and KYC workflows.
258
277
  #
259
278
  # @return [Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson::Address, nil]
260
279
  optional :address,
@@ -332,51 +351,68 @@ module Lithic
332
351
  required :city, String
333
352
 
334
353
  # @!attribute country
335
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
336
- # 3166-1 alpha-3 three-character format.
354
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
355
+ # format. Supported countries depend on the onboarding workflow used for the
356
+ # account holder.
337
357
  #
338
358
  # @return [String]
339
359
  required :country, String
340
360
 
341
- # @!attribute postal_code
342
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
343
- # five-digit ZIP or nine-digit ZIP+4.
361
+ # @!attribute address2
362
+ # Unit or apartment number (if applicable).
344
363
  #
345
- # @return [String]
346
- required :postal_code, String
364
+ # @return [String, nil]
365
+ optional :address2, String
347
366
 
348
- # @!attribute state
349
- # Valid state code. Only USA state codes are currently supported, entered in
350
- # uppercase ISO 3166-2 two-character format.
367
+ # @!attribute postal_code
368
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
369
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
370
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
371
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
372
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
373
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
351
374
  #
352
- # @return [String]
353
- required :state, String
375
+ # @return [String, nil]
376
+ optional :postal_code, String, nil?: true
354
377
 
355
- # @!attribute address2
356
- # Unit or apartment number (if applicable).
378
+ # @!attribute state
379
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
380
+ # code for the country without the country prefix. For example, `CA` for
381
+ # California. Optional unless the address is in one of the following countries,
382
+ # where it is required:
383
+ #
384
+ # - `USA`
385
+ # - `CAN`
386
+ # - `AUS`
387
+ # - `CHN`
388
+ # - `KOR`
389
+ # - `MEX`
390
+ # - `MYS`
391
+ # - `NZL`
357
392
  #
358
393
  # @return [String, nil]
359
- optional :address2, String
394
+ optional :state, String, nil?: true
360
395
 
361
- # @!method initialize(address1:, city:, country:, postal_code:, state:, address2: nil)
396
+ # @!method initialize(address1:, city:, country:, address2: nil, postal_code: nil, state: nil)
362
397
  # Some parameter documentations has been truncated, see
363
398
  # {Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson::Address}
364
399
  # for more details.
365
400
  #
366
401
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
367
- # 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.
368
404
  #
369
405
  # @param address1 [String] Valid deliverable address (no PO boxes).
370
406
  #
371
407
  # @param city [String] Name of city.
372
408
  #
373
- # @param country [String] Valid country code. Only USA is currently supported, entered in uppercase ISO 31
409
+ # @param country [String] Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character form
374
410
  #
375
- # @param postal_code [String] Valid postal code. Only USA ZIP codes are currently supported, entered as a five
411
+ # @param address2 [String] Unit or apartment number (if applicable).
376
412
  #
377
- # @param state [String] Valid state code. Only USA state codes are currently supported, entered in upper
413
+ # @param postal_code [String, nil] Valid postal code. For USA addresses, enter either a five-digit postal code or a
378
414
  #
379
- # @param address2 [String] Unit or apartment number (if applicable).
415
+ # @param state [String, nil] Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
380
416
  end
381
417
  end
382
418
  end
@@ -457,7 +493,8 @@ module Lithic
457
493
  class Individual < Lithic::Internal::Type::BaseModel
458
494
  # @!attribute address
459
495
  # 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.
496
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
497
+ # and KYC workflows.
461
498
  #
462
499
  # @return [Lithic::Models::AccountHolderUpdatedWebhookEvent::KYCPayload::UpdateRequest::Individual::Address, nil]
463
500
  optional :address,
@@ -529,51 +566,68 @@ module Lithic
529
566
  required :city, String
530
567
 
531
568
  # @!attribute country
532
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
533
- # 3166-1 alpha-3 three-character format.
569
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
570
+ # format. Supported countries depend on the onboarding workflow used for the
571
+ # account holder.
534
572
  #
535
573
  # @return [String]
536
574
  required :country, String
537
575
 
538
- # @!attribute postal_code
539
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
540
- # five-digit ZIP or nine-digit ZIP+4.
576
+ # @!attribute address2
577
+ # Unit or apartment number (if applicable).
541
578
  #
542
- # @return [String]
543
- required :postal_code, String
579
+ # @return [String, nil]
580
+ optional :address2, String
544
581
 
545
- # @!attribute state
546
- # Valid state code. Only USA state codes are currently supported, entered in
547
- # uppercase ISO 3166-2 two-character format.
582
+ # @!attribute postal_code
583
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
584
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
585
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
586
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
587
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
588
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
548
589
  #
549
- # @return [String]
550
- required :state, String
590
+ # @return [String, nil]
591
+ optional :postal_code, String, nil?: true
551
592
 
552
- # @!attribute address2
553
- # Unit or apartment number (if applicable).
593
+ # @!attribute state
594
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
595
+ # code for the country without the country prefix. For example, `CA` for
596
+ # California. Optional unless the address is in one of the following countries,
597
+ # where it is required:
598
+ #
599
+ # - `USA`
600
+ # - `CAN`
601
+ # - `AUS`
602
+ # - `CHN`
603
+ # - `KOR`
604
+ # - `MEX`
605
+ # - `MYS`
606
+ # - `NZL`
554
607
  #
555
608
  # @return [String, nil]
556
- optional :address2, String
609
+ optional :state, String, nil?: true
557
610
 
558
- # @!method initialize(address1:, city:, country:, postal_code:, state:, address2: nil)
611
+ # @!method initialize(address1:, city:, country:, address2: nil, postal_code: nil, state: nil)
559
612
  # Some parameter documentations has been truncated, see
560
613
  # {Lithic::Models::AccountHolderUpdatedWebhookEvent::KYCPayload::UpdateRequest::Individual::Address}
561
614
  # for more details.
562
615
  #
563
616
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
564
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
617
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
618
+ # and KYC workflows.
565
619
  #
566
620
  # @param address1 [String] Valid deliverable address (no PO boxes).
567
621
  #
568
622
  # @param city [String] Name of city.
569
623
  #
570
- # @param country [String] Valid country code. Only USA is currently supported, entered in uppercase ISO 31
624
+ # @param country [String] Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character form
571
625
  #
572
- # @param postal_code [String] Valid postal code. Only USA ZIP codes are currently supported, entered as a five
626
+ # @param address2 [String] Unit or apartment number (if applicable).
573
627
  #
574
- # @param state [String] Valid state code. Only USA state codes are currently supported, entered in upper
628
+ # @param postal_code [String, nil] Valid postal code. For USA addresses, enter either a five-digit postal code or a
575
629
  #
576
- # @param address2 [String] Unit or apartment number (if applicable).
630
+ # @param state [String, nil] Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
577
631
  end
578
632
  end
579
633
  end
@@ -103,33 +103,49 @@ module Lithic
103
103
  required :city, String
104
104
 
105
105
  # @!attribute country
106
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
107
- # 3166-1 alpha-3 three-character format.
106
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
107
+ # format. Supported countries depend on the onboarding workflow used for the
108
+ # account holder.
108
109
  #
109
110
  # @return [String]
110
111
  required :country, String
111
112
 
113
+ # @!attribute address2
114
+ # Unit or apartment number (if applicable).
115
+ #
116
+ # @return [String, nil]
117
+ optional :address2, String
118
+
112
119
  # @!attribute postal_code
113
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
114
- # five-digit ZIP or nine-digit ZIP+4.
120
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
121
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
122
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
123
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
124
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
125
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
115
126
  #
116
- # @return [String]
117
- required :postal_code, String
127
+ # @return [String, nil]
128
+ optional :postal_code, String, nil?: true
118
129
 
119
130
  # @!attribute state
120
- # Valid state code. Only USA state codes are currently supported, entered in
121
- # uppercase ISO 3166-2 two-character format.
131
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
132
+ # code for the country without the country prefix. For example, `CA` for
133
+ # California. Optional unless the address is in one of the following countries,
134
+ # where it is required:
122
135
  #
123
- # @return [String]
124
- required :state, String
125
-
126
- # @!attribute address2
127
- # Unit or apartment number (if applicable).
136
+ # - `USA`
137
+ # - `CAN`
138
+ # - `AUS`
139
+ # - `CHN`
140
+ # - `KOR`
141
+ # - `MEX`
142
+ # - `MYS`
143
+ # - `NZL`
128
144
  #
129
145
  # @return [String, nil]
130
- optional :address2, String
146
+ optional :state, String, nil?: true
131
147
 
132
- # @!method initialize(address1:, city:, country:, postal_code:, state:, address2: nil)
148
+ # @!method initialize(address1:, city:, country:, address2: nil, postal_code: nil, state: nil)
133
149
  # Some parameter documentations has been truncated, see
134
150
  # {Lithic::Models::AccountHolders::AccountHolderEntity::Address} for more details.
135
151
  #
@@ -139,13 +155,13 @@ module Lithic
139
155
  #
140
156
  # @param city [String] Name of city.
141
157
  #
142
- # @param country [String] Valid country code. Only USA is currently supported, entered in uppercase ISO 31
158
+ # @param country [String] Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character form
143
159
  #
144
- # @param postal_code [String] Valid postal code. Only USA ZIP codes are currently supported, entered as a five
160
+ # @param address2 [String] Unit or apartment number (if applicable).
145
161
  #
146
- # @param state [String] Valid state code. Only USA state codes are currently supported, entered in upper
162
+ # @param postal_code [String, nil] Valid postal code. For USA addresses, enter either a five-digit postal code or a
147
163
  #
148
- # @param address2 [String] Unit or apartment number (if applicable).
164
+ # @param state [String, nil] Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
149
165
  end
150
166
 
151
167
  # The status of the entity
@@ -15,7 +15,8 @@ module Lithic
15
15
 
16
16
  # @!attribute address
17
17
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
18
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
18
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
19
+ # and KYC workflows.
19
20
  #
20
21
  # @return [Lithic::Models::AccountHolders::EntityCreateParams::Address]
21
22
  required :address, -> { Lithic::AccountHolders::EntityCreateParams::Address }
@@ -104,50 +105,67 @@ module Lithic
104
105
  required :city, String
105
106
 
106
107
  # @!attribute country
107
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
108
- # 3166-1 alpha-3 three-character format.
108
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
109
+ # format. Supported countries depend on the onboarding workflow used for the
110
+ # account holder.
109
111
  #
110
112
  # @return [String]
111
113
  required :country, String
112
114
 
115
+ # @!attribute address2
116
+ # Unit or apartment number (if applicable).
117
+ #
118
+ # @return [String, nil]
119
+ optional :address2, String
120
+
113
121
  # @!attribute postal_code
114
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
115
- # five-digit ZIP or nine-digit ZIP+4.
122
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
123
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
124
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
125
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
126
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
127
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
116
128
  #
117
- # @return [String]
118
- required :postal_code, String
129
+ # @return [String, nil]
130
+ optional :postal_code, String, nil?: true
119
131
 
120
132
  # @!attribute state
121
- # Valid state code. Only USA state codes are currently supported, entered in
122
- # uppercase ISO 3166-2 two-character format.
133
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
134
+ # code for the country without the country prefix. For example, `CA` for
135
+ # California. Optional unless the address is in one of the following countries,
136
+ # where it is required:
123
137
  #
124
- # @return [String]
125
- required :state, String
126
-
127
- # @!attribute address2
128
- # Unit or apartment number (if applicable).
138
+ # - `USA`
139
+ # - `CAN`
140
+ # - `AUS`
141
+ # - `CHN`
142
+ # - `KOR`
143
+ # - `MEX`
144
+ # - `MYS`
145
+ # - `NZL`
129
146
  #
130
147
  # @return [String, nil]
131
- optional :address2, String
148
+ optional :state, String, nil?: true
132
149
 
133
- # @!method initialize(address1:, city:, country:, postal_code:, state:, address2: nil)
150
+ # @!method initialize(address1:, city:, country:, address2: nil, postal_code: nil, state: nil)
134
151
  # Some parameter documentations has been truncated, see
135
152
  # {Lithic::Models::AccountHolders::EntityCreateParams::Address} for more details.
136
153
  #
137
154
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
138
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
155
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
156
+ # and KYC workflows.
139
157
  #
140
158
  # @param address1 [String] Valid deliverable address (no PO boxes).
141
159
  #
142
160
  # @param city [String] Name of city.
143
161
  #
144
- # @param country [String] Valid country code. Only USA is currently supported, entered in uppercase ISO 31
162
+ # @param country [String] Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character form
145
163
  #
146
- # @param postal_code [String] Valid postal code. Only USA ZIP codes are currently supported, entered as a five
164
+ # @param address2 [String] Unit or apartment number (if applicable).
147
165
  #
148
- # @param state [String] Valid state code. Only USA state codes are currently supported, entered in upper
166
+ # @param postal_code [String, nil] Valid postal code. For USA addresses, enter either a five-digit postal code or a
149
167
  #
150
- # @param address2 [String] Unit or apartment number (if applicable).
168
+ # @param state [String, nil] Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
151
169
  end
152
170
  end
153
171
  end
@@ -17,34 +17,48 @@ module Lithic
17
17
 
18
18
  # @!attribute country
19
19
  # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
20
- # format. Only USA is currently supported for all workflows. KYC_EXEMPT supports
21
- # CAN additionally.
20
+ # format. The KYB_DELEGATED and KYC_EXEMPT workflows support all countries except
21
+ # BLR, CUB, IRN, PRK, RUS, SDN, SYR, and UKR. Other workflows support USA only.
22
22
  #
23
23
  # @return [String]
24
24
  required :country, String
25
25
 
26
+ # @!attribute address2
27
+ # Unit or apartment number (if applicable).
28
+ #
29
+ # @return [String, nil]
30
+ optional :address2, String
31
+
26
32
  # @!attribute postal_code
27
- # Valid postal code. USA postal codes (ZIP codes) are supported, entered as a
28
- # five-digit postal code or nine-digit postal code (ZIP+4) using the format
29
- # 12345-1234. KYC_EXEMPT supports Canadian postal codes.
33
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
34
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
35
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
36
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
37
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
38
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
30
39
  #
31
- # @return [String]
32
- required :postal_code, String
40
+ # @return [String, nil]
41
+ optional :postal_code, String, nil?: true
33
42
 
34
43
  # @!attribute state
35
- # Valid state code. USA state codes are supported, entered in uppercase ISO 3166-2
36
- # two-character format. KYC_EXEMPT supports Canadian province codes.
44
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
45
+ # code for the country without the country prefix. For example, `CA` for
46
+ # California. Optional unless the address is in one of the following countries,
47
+ # where it is required:
37
48
  #
38
- # @return [String]
39
- required :state, String
40
-
41
- # @!attribute address2
42
- # Unit or apartment number (if applicable).
49
+ # - `USA`
50
+ # - `CAN`
51
+ # - `AUS`
52
+ # - `CHN`
53
+ # - `KOR`
54
+ # - `MEX`
55
+ # - `MYS`
56
+ # - `NZL`
43
57
  #
44
58
  # @return [String, nil]
45
- optional :address2, String
59
+ optional :state, String, nil?: true
46
60
 
47
- # @!method initialize(address1:, city:, country:, postal_code:, state:, address2: nil)
61
+ # @!method initialize(address1:, city:, country:, address2: nil, postal_code: nil, state: nil)
48
62
  # Some parameter documentations has been truncated, see {Lithic::Models::Address}
49
63
  # for more details.
50
64
  #
@@ -54,11 +68,11 @@ module Lithic
54
68
  #
55
69
  # @param country [String] Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character form
56
70
  #
57
- # @param postal_code [String] Valid postal code. USA postal codes (ZIP codes) are supported, entered as a five
71
+ # @param address2 [String] Unit or apartment number (if applicable).
58
72
  #
59
- # @param state [String] Valid state code. USA state codes are supported, entered in uppercase ISO 3166-2
73
+ # @param postal_code [String, nil] Valid postal code. For USA addresses, enter either a five-digit postal code or a
60
74
  #
61
- # @param address2 [String] Unit or apartment number (if applicable).
75
+ # @param state [String, nil] Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
62
76
  end
63
77
  end
64
78
  end
@@ -22,25 +22,41 @@ module Lithic
22
22
  optional :city, String
23
23
 
24
24
  # @!attribute country
25
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
26
- # 3166-1 alpha-3 three-character format.
25
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
26
+ # format. Supported countries depend on the onboarding workflow used for the
27
+ # account holder.
27
28
  #
28
29
  # @return [String, nil]
29
30
  optional :country, String
30
31
 
31
32
  # @!attribute postal_code
32
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
33
- # five-digit ZIP or nine-digit ZIP+4.
33
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
34
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
35
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
36
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
37
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
38
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
34
39
  #
35
40
  # @return [String, nil]
36
- optional :postal_code, String
41
+ optional :postal_code, String, nil?: true
37
42
 
38
43
  # @!attribute state
39
- # Valid state code. Only USA state codes are currently supported, entered in
40
- # uppercase ISO 3166-2 two-character format.
44
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
45
+ # code for the country without the country prefix. For example, `CA` for
46
+ # California. Optional unless the address is in one of the following countries,
47
+ # where it is required:
48
+ #
49
+ # - `USA`
50
+ # - `CAN`
51
+ # - `AUS`
52
+ # - `CHN`
53
+ # - `KOR`
54
+ # - `MEX`
55
+ # - `MYS`
56
+ # - `NZL`
41
57
  #
42
58
  # @return [String, nil]
43
- optional :state, String
59
+ optional :state, String, nil?: true
44
60
 
45
61
  # @!method initialize(address1: nil, address2: nil, city: nil, country: nil, postal_code: nil, state: nil)
46
62
  # Some parameter documentations has been truncated, see
@@ -52,11 +68,11 @@ module Lithic
52
68
  #
53
69
  # @param city [String] Name of city.
54
70
  #
55
- # @param country [String] Valid country code. Only USA is currently supported, entered in uppercase ISO 31
71
+ # @param country [String] Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character form
56
72
  #
57
- # @param postal_code [String] Valid postal code. Only USA ZIP codes are currently supported, entered as a five
73
+ # @param postal_code [String, nil] Valid postal code. For USA addresses, enter either a five-digit postal code or a
58
74
  #
59
- # @param state [String] Valid state code. Only USA state codes are currently supported, entered in upper
75
+ # @param state [String, nil] Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
60
76
  end
61
77
  end
62
78
  end