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
@@ -466,7 +466,8 @@ module Lithic
466
466
  end
467
467
 
468
468
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
469
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
469
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
470
+ # and KYC workflows.
470
471
  sig do
471
472
  returns(
472
473
  T.nilable(
@@ -533,7 +534,8 @@ module Lithic
533
534
  end
534
535
  def self.new(
535
536
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
536
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
537
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
538
+ # and KYC workflows.
537
539
  address: nil,
538
540
  # Individual's date of birth, as an RFC 3339 date.
539
541
  dob: nil,
@@ -583,21 +585,12 @@ module Lithic
583
585
  sig { returns(String) }
584
586
  attr_accessor :city
585
587
 
586
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
587
- # 3166-1 alpha-3 three-character format.
588
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
589
+ # format. Supported countries depend on the onboarding workflow used for the
590
+ # account holder.
588
591
  sig { returns(String) }
589
592
  attr_accessor :country
590
593
 
591
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
592
- # five-digit ZIP or nine-digit ZIP+4.
593
- sig { returns(String) }
594
- attr_accessor :postal_code
595
-
596
- # Valid state code. Only USA state codes are currently supported, entered in
597
- # uppercase ISO 3166-2 two-character format.
598
- sig { returns(String) }
599
- attr_accessor :state
600
-
601
594
  # Unit or apartment number (if applicable).
602
595
  sig { returns(T.nilable(String)) }
603
596
  attr_reader :address2
@@ -605,16 +598,42 @@ module Lithic
605
598
  sig { params(address2: String).void }
606
599
  attr_writer :address2
607
600
 
601
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
602
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
603
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
604
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
605
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
606
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
607
+ sig { returns(T.nilable(String)) }
608
+ attr_accessor :postal_code
609
+
610
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
611
+ # code for the country without the country prefix. For example, `CA` for
612
+ # California. Optional unless the address is in one of the following countries,
613
+ # where it is required:
614
+ #
615
+ # - `USA`
616
+ # - `CAN`
617
+ # - `AUS`
618
+ # - `CHN`
619
+ # - `KOR`
620
+ # - `MEX`
621
+ # - `MYS`
622
+ # - `NZL`
623
+ sig { returns(T.nilable(String)) }
624
+ attr_accessor :state
625
+
608
626
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
609
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
627
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
628
+ # and KYC workflows.
610
629
  sig do
611
630
  params(
612
631
  address1: String,
613
632
  city: String,
614
633
  country: String,
615
- postal_code: String,
616
- state: String,
617
- address2: String
634
+ address2: String,
635
+ postal_code: T.nilable(String),
636
+ state: T.nilable(String)
618
637
  ).returns(T.attached_class)
619
638
  end
620
639
  def self.new(
@@ -622,17 +641,33 @@ module Lithic
622
641
  address1:,
623
642
  # Name of city.
624
643
  city:,
625
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
626
- # 3166-1 alpha-3 three-character format.
644
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
645
+ # format. Supported countries depend on the onboarding workflow used for the
646
+ # account holder.
627
647
  country:,
628
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
629
- # five-digit ZIP or nine-digit ZIP+4.
630
- postal_code:,
631
- # Valid state code. Only USA state codes are currently supported, entered in
632
- # uppercase ISO 3166-2 two-character format.
633
- state:,
634
648
  # Unit or apartment number (if applicable).
635
- address2: nil
649
+ address2: nil,
650
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
651
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
652
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
653
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
654
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
655
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
656
+ postal_code: nil,
657
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
658
+ # code for the country without the country prefix. For example, `CA` for
659
+ # California. Optional unless the address is in one of the following countries,
660
+ # where it is required:
661
+ #
662
+ # - `USA`
663
+ # - `CAN`
664
+ # - `AUS`
665
+ # - `CHN`
666
+ # - `KOR`
667
+ # - `MEX`
668
+ # - `MYS`
669
+ # - `NZL`
670
+ state: nil
636
671
  )
637
672
  end
638
673
 
@@ -642,9 +677,9 @@ module Lithic
642
677
  address1: String,
643
678
  city: String,
644
679
  country: String,
645
- postal_code: String,
646
- state: String,
647
- address2: String
680
+ address2: String,
681
+ postal_code: T.nilable(String),
682
+ state: T.nilable(String)
648
683
  }
649
684
  )
650
685
  end
@@ -663,7 +698,8 @@ module Lithic
663
698
  end
664
699
 
665
700
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
666
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
701
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
702
+ # and KYC workflows.
667
703
  sig do
668
704
  returns(
669
705
  T.nilable(
@@ -741,7 +777,8 @@ module Lithic
741
777
  end
742
778
  def self.new(
743
779
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
744
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
780
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
781
+ # and KYC workflows.
745
782
  address: nil,
746
783
  # Individual's date of birth, as an RFC 3339 date.
747
784
  dob: nil,
@@ -791,21 +828,12 @@ module Lithic
791
828
  sig { returns(String) }
792
829
  attr_accessor :city
793
830
 
794
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
795
- # 3166-1 alpha-3 three-character format.
831
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
832
+ # format. Supported countries depend on the onboarding workflow used for the
833
+ # account holder.
796
834
  sig { returns(String) }
797
835
  attr_accessor :country
798
836
 
799
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
800
- # five-digit ZIP or nine-digit ZIP+4.
801
- sig { returns(String) }
802
- attr_accessor :postal_code
803
-
804
- # Valid state code. Only USA state codes are currently supported, entered in
805
- # uppercase ISO 3166-2 two-character format.
806
- sig { returns(String) }
807
- attr_accessor :state
808
-
809
837
  # Unit or apartment number (if applicable).
810
838
  sig { returns(T.nilable(String)) }
811
839
  attr_reader :address2
@@ -813,16 +841,42 @@ module Lithic
813
841
  sig { params(address2: String).void }
814
842
  attr_writer :address2
815
843
 
844
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
845
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
846
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
847
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
848
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
849
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
850
+ sig { returns(T.nilable(String)) }
851
+ attr_accessor :postal_code
852
+
853
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
854
+ # code for the country without the country prefix. For example, `CA` for
855
+ # California. Optional unless the address is in one of the following countries,
856
+ # where it is required:
857
+ #
858
+ # - `USA`
859
+ # - `CAN`
860
+ # - `AUS`
861
+ # - `CHN`
862
+ # - `KOR`
863
+ # - `MEX`
864
+ # - `MYS`
865
+ # - `NZL`
866
+ sig { returns(T.nilable(String)) }
867
+ attr_accessor :state
868
+
816
869
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
817
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
870
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
871
+ # and KYC workflows.
818
872
  sig do
819
873
  params(
820
874
  address1: String,
821
875
  city: String,
822
876
  country: String,
823
- postal_code: String,
824
- state: String,
825
- address2: String
877
+ address2: String,
878
+ postal_code: T.nilable(String),
879
+ state: T.nilable(String)
826
880
  ).returns(T.attached_class)
827
881
  end
828
882
  def self.new(
@@ -830,17 +884,33 @@ module Lithic
830
884
  address1:,
831
885
  # Name of city.
832
886
  city:,
833
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
834
- # 3166-1 alpha-3 three-character format.
887
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
888
+ # format. Supported countries depend on the onboarding workflow used for the
889
+ # account holder.
835
890
  country:,
836
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
837
- # five-digit ZIP or nine-digit ZIP+4.
838
- postal_code:,
839
- # Valid state code. Only USA state codes are currently supported, entered in
840
- # uppercase ISO 3166-2 two-character format.
841
- state:,
842
891
  # Unit or apartment number (if applicable).
843
- address2: nil
892
+ address2: nil,
893
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
894
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
895
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
896
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
897
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
898
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
899
+ postal_code: nil,
900
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
901
+ # code for the country without the country prefix. For example, `CA` for
902
+ # California. Optional unless the address is in one of the following countries,
903
+ # where it is required:
904
+ #
905
+ # - `USA`
906
+ # - `CAN`
907
+ # - `AUS`
908
+ # - `CHN`
909
+ # - `KOR`
910
+ # - `MEX`
911
+ # - `MYS`
912
+ # - `NZL`
913
+ state: nil
844
914
  )
845
915
  end
846
916
 
@@ -850,9 +920,9 @@ module Lithic
850
920
  address1: String,
851
921
  city: String,
852
922
  country: String,
853
- postal_code: String,
854
- state: String,
855
- address2: String
923
+ address2: String,
924
+ postal_code: T.nilable(String),
925
+ state: T.nilable(String)
856
926
  }
857
927
  )
858
928
  end
@@ -907,7 +977,8 @@ module Lithic
907
977
  end
908
978
 
909
979
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
910
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
980
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
981
+ # and KYC workflows.
911
982
  sig do
912
983
  returns(
913
984
  T.nilable(
@@ -976,7 +1047,8 @@ module Lithic
976
1047
  end
977
1048
  def self.new(
978
1049
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
979
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
1050
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
1051
+ # and KYC workflows.
980
1052
  address: nil,
981
1053
  # Individual's date of birth, as an RFC 3339 date.
982
1054
  dob: nil,
@@ -1026,21 +1098,12 @@ module Lithic
1026
1098
  sig { returns(String) }
1027
1099
  attr_accessor :city
1028
1100
 
1029
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
1030
- # 3166-1 alpha-3 three-character format.
1101
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
1102
+ # format. Supported countries depend on the onboarding workflow used for the
1103
+ # account holder.
1031
1104
  sig { returns(String) }
1032
1105
  attr_accessor :country
1033
1106
 
1034
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
1035
- # five-digit ZIP or nine-digit ZIP+4.
1036
- sig { returns(String) }
1037
- attr_accessor :postal_code
1038
-
1039
- # Valid state code. Only USA state codes are currently supported, entered in
1040
- # uppercase ISO 3166-2 two-character format.
1041
- sig { returns(String) }
1042
- attr_accessor :state
1043
-
1044
1107
  # Unit or apartment number (if applicable).
1045
1108
  sig { returns(T.nilable(String)) }
1046
1109
  attr_reader :address2
@@ -1048,16 +1111,42 @@ module Lithic
1048
1111
  sig { params(address2: String).void }
1049
1112
  attr_writer :address2
1050
1113
 
1114
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
1115
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
1116
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
1117
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
1118
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
1119
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
1120
+ sig { returns(T.nilable(String)) }
1121
+ attr_accessor :postal_code
1122
+
1123
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
1124
+ # code for the country without the country prefix. For example, `CA` for
1125
+ # California. Optional unless the address is in one of the following countries,
1126
+ # where it is required:
1127
+ #
1128
+ # - `USA`
1129
+ # - `CAN`
1130
+ # - `AUS`
1131
+ # - `CHN`
1132
+ # - `KOR`
1133
+ # - `MEX`
1134
+ # - `MYS`
1135
+ # - `NZL`
1136
+ sig { returns(T.nilable(String)) }
1137
+ attr_accessor :state
1138
+
1051
1139
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
1052
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
1140
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
1141
+ # and KYC workflows.
1053
1142
  sig do
1054
1143
  params(
1055
1144
  address1: String,
1056
1145
  city: String,
1057
1146
  country: String,
1058
- postal_code: String,
1059
- state: String,
1060
- address2: String
1147
+ address2: String,
1148
+ postal_code: T.nilable(String),
1149
+ state: T.nilable(String)
1061
1150
  ).returns(T.attached_class)
1062
1151
  end
1063
1152
  def self.new(
@@ -1065,17 +1154,33 @@ module Lithic
1065
1154
  address1:,
1066
1155
  # Name of city.
1067
1156
  city:,
1068
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
1069
- # 3166-1 alpha-3 three-character format.
1157
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
1158
+ # format. Supported countries depend on the onboarding workflow used for the
1159
+ # account holder.
1070
1160
  country:,
1071
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
1072
- # five-digit ZIP or nine-digit ZIP+4.
1073
- postal_code:,
1074
- # Valid state code. Only USA state codes are currently supported, entered in
1075
- # uppercase ISO 3166-2 two-character format.
1076
- state:,
1077
1161
  # Unit or apartment number (if applicable).
1078
- address2: nil
1162
+ address2: nil,
1163
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
1164
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
1165
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
1166
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
1167
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
1168
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
1169
+ postal_code: nil,
1170
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
1171
+ # code for the country without the country prefix. For example, `CA` for
1172
+ # California. Optional unless the address is in one of the following countries,
1173
+ # where it is required:
1174
+ #
1175
+ # - `USA`
1176
+ # - `CAN`
1177
+ # - `AUS`
1178
+ # - `CHN`
1179
+ # - `KOR`
1180
+ # - `MEX`
1181
+ # - `MYS`
1182
+ # - `NZL`
1183
+ state: nil
1079
1184
  )
1080
1185
  end
1081
1186
 
@@ -1085,9 +1190,9 @@ module Lithic
1085
1190
  address1: String,
1086
1191
  city: String,
1087
1192
  country: String,
1088
- postal_code: String,
1089
- state: String,
1090
- address2: String
1193
+ address2: String,
1194
+ postal_code: T.nilable(String),
1195
+ state: T.nilable(String)
1091
1196
  }
1092
1197
  )
1093
1198
  end
@@ -1762,21 +1867,12 @@ module Lithic
1762
1867
  sig { returns(String) }
1763
1868
  attr_accessor :city
1764
1869
 
1765
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
1766
- # 3166-1 alpha-3 three-character format.
1870
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
1871
+ # format. Supported countries depend on the onboarding workflow used for the
1872
+ # account holder.
1767
1873
  sig { returns(String) }
1768
1874
  attr_accessor :country
1769
1875
 
1770
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
1771
- # five-digit ZIP or nine-digit ZIP+4.
1772
- sig { returns(String) }
1773
- attr_accessor :postal_code
1774
-
1775
- # Valid state code. Only USA state codes are currently supported, entered in
1776
- # uppercase ISO 3166-2 two-character format.
1777
- sig { returns(String) }
1778
- attr_accessor :state
1779
-
1780
1876
  # Unit or apartment number (if applicable).
1781
1877
  sig { returns(T.nilable(String)) }
1782
1878
  attr_reader :address2
@@ -1784,15 +1880,40 @@ module Lithic
1784
1880
  sig { params(address2: String).void }
1785
1881
  attr_writer :address2
1786
1882
 
1883
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
1884
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
1885
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
1886
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
1887
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
1888
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
1889
+ sig { returns(T.nilable(String)) }
1890
+ attr_accessor :postal_code
1891
+
1892
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
1893
+ # code for the country without the country prefix. For example, `CA` for
1894
+ # California. Optional unless the address is in one of the following countries,
1895
+ # where it is required:
1896
+ #
1897
+ # - `USA`
1898
+ # - `CAN`
1899
+ # - `AUS`
1900
+ # - `CHN`
1901
+ # - `KOR`
1902
+ # - `MEX`
1903
+ # - `MYS`
1904
+ # - `NZL`
1905
+ sig { returns(T.nilable(String)) }
1906
+ attr_accessor :state
1907
+
1787
1908
  # The address for the account holder
1788
1909
  sig do
1789
1910
  params(
1790
1911
  address1: String,
1791
1912
  city: String,
1792
1913
  country: String,
1793
- postal_code: String,
1794
- state: String,
1795
- address2: String
1914
+ address2: String,
1915
+ postal_code: T.nilable(String),
1916
+ state: T.nilable(String)
1796
1917
  ).returns(T.attached_class)
1797
1918
  end
1798
1919
  def self.new(
@@ -1800,17 +1921,33 @@ module Lithic
1800
1921
  address1:,
1801
1922
  # Name of city.
1802
1923
  city:,
1803
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
1804
- # 3166-1 alpha-3 three-character format.
1924
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
1925
+ # format. Supported countries depend on the onboarding workflow used for the
1926
+ # account holder.
1805
1927
  country:,
1806
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
1807
- # five-digit ZIP or nine-digit ZIP+4.
1808
- postal_code:,
1809
- # Valid state code. Only USA state codes are currently supported, entered in
1810
- # uppercase ISO 3166-2 two-character format.
1811
- state:,
1812
1928
  # Unit or apartment number (if applicable).
1813
- address2: nil
1929
+ address2: nil,
1930
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
1931
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
1932
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
1933
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
1934
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
1935
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
1936
+ postal_code: nil,
1937
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
1938
+ # code for the country without the country prefix. For example, `CA` for
1939
+ # California. Optional unless the address is in one of the following countries,
1940
+ # where it is required:
1941
+ #
1942
+ # - `USA`
1943
+ # - `CAN`
1944
+ # - `AUS`
1945
+ # - `CHN`
1946
+ # - `KOR`
1947
+ # - `MEX`
1948
+ # - `MYS`
1949
+ # - `NZL`
1950
+ state: nil
1814
1951
  )
1815
1952
  end
1816
1953
 
@@ -1820,9 +1957,9 @@ module Lithic
1820
1957
  address1: String,
1821
1958
  city: String,
1822
1959
  country: String,
1823
- postal_code: String,
1824
- state: String,
1825
- address2: String
1960
+ address2: String,
1961
+ postal_code: T.nilable(String),
1962
+ state: T.nilable(String)
1826
1963
  }
1827
1964
  )
1828
1965
  end