lithic 0.4.0 → 0.6.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +59 -0
- data/README.md +10 -1
- data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -1
- data/lib/lithic/internal/util.rb +1 -1
- data/lib/lithic/models/account_holder.rb +14 -5
- data/lib/lithic/models/account_holder_create_params.rb +10 -1
- data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -0
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +14 -5
- data/lib/lithic/models/account_holder_update_params.rb +10 -1
- data/lib/lithic/models/account_holder_update_response.rb +14 -5
- data/lib/lithic/models/account_holder_updated_webhook_event.rb +10 -1
- data/lib/lithic/models/account_holders/account_holder_entity.rb +183 -0
- data/lib/lithic/models/account_holders/entity_create_params.rb +159 -0
- data/lib/lithic/models/account_holders/entity_create_response.rb +113 -0
- data/lib/lithic/models/account_holders/entity_delete_params.rb +22 -0
- data/lib/lithic/models/auth_rules/auth_rule.rb +6 -2
- data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +3 -3
- data/lib/lithic/models/auth_rules/conditional_block_parameters.rb +3 -0
- data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +47 -21
- data/lib/lithic/models/auth_rules/v2_create_params.rb +5 -2
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_list_results_params.rb +70 -0
- data/lib/lithic/models/auth_rules/v2_list_results_response.rb +740 -0
- data/lib/lithic/models/book_transfer_create_params.rb +9 -1
- data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +178 -25
- data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +9 -9
- data/lib/lithic/models/financial_account.rb +1 -0
- data/lib/lithic/models/financial_account_update_status_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/category_tier.rb +28 -0
- data/lib/lithic/models/financial_accounts/interest_tier_schedule.rb +50 -0
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_create_params.rb +16 -0
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rb +22 -0
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_list_params.rb +40 -0
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rb +22 -0
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb +44 -0
- data/lib/lithic/models/financial_accounts/loan_tape.rb +1 -0
- data/lib/lithic/models/financial_accounts/loan_tape_configuration.rb +63 -0
- data/lib/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rb +16 -0
- data/lib/lithic/models/financial_accounts/loan_tape_rebuild_configuration.rb +36 -0
- data/lib/lithic/models/financial_accounts/statement.rb +1 -0
- data/lib/lithic/models/kyb.rb +10 -1
- data/lib/lithic/models/parsed_webhook_event.rb +10 -1
- data/lib/lithic/models/{digital_wallet_token_metadata.rb → token_metadata.rb} +18 -19
- data/lib/lithic/models/tokenization_approval_request_webhook_event.rb +9 -9
- data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +9 -9
- data/lib/lithic/models.rb +4 -2
- data/lib/lithic/resources/account_holders/entities.rb +89 -0
- data/lib/lithic/resources/account_holders.rb +10 -2
- data/lib/lithic/resources/auth_rules/v2.rb +42 -0
- data/lib/lithic/resources/book_transfers.rb +3 -1
- data/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb +205 -0
- data/lib/lithic/resources/financial_accounts/loan_tape_configuration.rb +36 -0
- data/lib/lithic/resources/financial_accounts.rb +9 -0
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +20 -1
- data/rbi/lithic/internal/util.rbi +1 -1
- data/rbi/lithic/models/account_holder.rbi +19 -6
- data/rbi/lithic/models/account_holder_create_params.rbi +13 -0
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_params.rbi +5 -0
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +19 -6
- data/rbi/lithic/models/account_holder_update_params.rbi +13 -0
- data/rbi/lithic/models/account_holder_update_response.rbi +19 -6
- data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +13 -0
- data/rbi/lithic/models/account_holders/account_holder_entity.rbi +296 -0
- data/rbi/lithic/models/account_holders/entity_create_params.rbi +242 -0
- data/rbi/lithic/models/account_holders/entity_create_response.rbi +292 -0
- data/rbi/lithic/models/account_holders/entity_delete_params.rbi +43 -0
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +6 -3
- data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +3 -3
- data/rbi/lithic/models/auth_rules/conditional_block_parameters.rbi +1 -0
- data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +69 -30
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +6 -3
- data/rbi/lithic/models/auth_rules/v2_list_results_params.rbi +112 -0
- data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +1826 -0
- data/rbi/lithic/models/book_transfer_create_params.rbi +11 -0
- data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +337 -36
- data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +15 -17
- data/rbi/lithic/models/financial_account.rbi +5 -0
- data/rbi/lithic/models/financial_account_update_status_params.rbi +5 -0
- data/rbi/lithic/models/financial_accounts/category_tier.rbi +45 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule.rbi +75 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbi +32 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbi +43 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbi +73 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbi +43 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi +70 -0
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +5 -0
- data/rbi/lithic/models/financial_accounts/loan_tape_configuration.rbi +99 -0
- data/rbi/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbi +32 -0
- data/rbi/lithic/models/financial_accounts/loan_tape_rebuild_configuration.rbi +65 -0
- data/rbi/lithic/models/financial_accounts/statement.rbi +5 -0
- data/rbi/lithic/models/kyb.rbi +13 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +13 -0
- data/rbi/lithic/models/{digital_wallet_token_metadata.rbi → token_metadata.rbi} +34 -41
- data/rbi/lithic/models/tokenization_approval_request_webhook_event.rbi +11 -17
- data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +15 -17
- data/rbi/lithic/models.rbi +4 -2
- data/rbi/lithic/resources/account_holders/entities.rbi +80 -0
- data/rbi/lithic/resources/account_holders.rbi +11 -0
- data/rbi/lithic/resources/auth_rules/v2.rbi +44 -1
- data/rbi/lithic/resources/book_transfers.rbi +3 -0
- data/rbi/lithic/resources/financial_accounts/interest_tier_schedule.rbi +156 -0
- data/rbi/lithic/resources/financial_accounts/loan_tape_configuration.rbi +30 -0
- data/rbi/lithic/resources/financial_accounts.rbi +10 -0
- data/sig/lithic/models/account_holder.rbs +7 -0
- data/sig/lithic/models/account_holder_create_params.rbs +7 -0
- data/sig/lithic/models/account_holder_simulate_enrollment_review_params.rbs +2 -1
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +7 -0
- data/sig/lithic/models/account_holder_update_params.rbs +7 -0
- data/sig/lithic/models/account_holder_update_response.rbs +7 -0
- data/sig/lithic/models/account_holder_updated_webhook_event.rbs +7 -0
- data/sig/lithic/models/account_holders/account_holder_entity.rbs +137 -0
- data/sig/lithic/models/account_holders/entity_create_params.rbs +118 -0
- data/sig/lithic/models/account_holders/entity_create_response.rbs +117 -0
- data/sig/lithic/models/account_holders/entity_delete_params.rbs +26 -0
- data/sig/lithic/models/auth_rules/v2_list_results_params.rbs +65 -0
- data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +752 -0
- data/sig/lithic/models/book_transfer_create_params.rbs +7 -0
- data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +96 -0
- data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +5 -9
- data/sig/lithic/models/financial_account.rbs +2 -0
- data/sig/lithic/models/financial_account_update_status_params.rbs +2 -0
- data/sig/lithic/models/financial_accounts/category_tier.rbs +21 -0
- data/sig/lithic/models/financial_accounts/interest_tier_schedule.rbs +41 -0
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbs +17 -0
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbs +26 -0
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbs +40 -0
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbs +26 -0
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs +38 -0
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +2 -0
- data/sig/lithic/models/financial_accounts/loan_tape_configuration.rbs +60 -0
- data/sig/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbs +17 -0
- data/sig/lithic/models/financial_accounts/loan_tape_rebuild_configuration.rbs +32 -0
- data/sig/lithic/models/financial_accounts/statement.rbs +2 -0
- data/sig/lithic/models/kyb.rbs +7 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +7 -0
- data/sig/lithic/models/{digital_wallet_token_metadata.rbs → token_metadata.rbs} +19 -17
- data/sig/lithic/models/tokenization_approval_request_webhook_event.rbs +5 -9
- data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +5 -9
- data/sig/lithic/models.rbs +4 -2
- data/sig/lithic/resources/account_holders/entities.rbs +28 -0
- data/sig/lithic/resources/account_holders.rbs +4 -0
- data/sig/lithic/resources/auth_rules/v2.rbs +10 -0
- data/sig/lithic/resources/book_transfers.rbs +1 -0
- data/sig/lithic/resources/financial_accounts/interest_tier_schedule.rbs +46 -0
- data/sig/lithic/resources/financial_accounts/loan_tape_configuration.rbs +14 -0
- data/sig/lithic/resources/financial_accounts.rbs +4 -0
- metadata +62 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 37d9177dabd71343c3ba0be9ae82c47b899ac8c61b839359e72b13f35bb9a682
|
|
4
|
+
data.tar.gz: ea676fad5f242c817a9921928107da0be0612b88f7d4271d3b4c8a2d09685188
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 30978d9d1a737b508380fac34fd692dceed11ec5e5990028f6446c2387181b4e25d3006ad43d536f7094999a2745a516219b6e27d638c63be937271bf23ab4c9
|
|
7
|
+
data.tar.gz: 39c3a61ae93bfffb325b76dd6765990d55c80d8193b39aa57ad49ba034cb6df60fb9ea64cb98a830b50e1d6ea104c80ccd5704400a39c5e3f2fb3256a443dcc4
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,64 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.0 (2026-02-27)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.5.0...v0.6.0](https://github.com/lithic-com/lithic-ruby/compare/v0.5.0...v0.6.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** Add account holder entity endpoints ([508b031](https://github.com/lithic-com/lithic-ruby/commit/508b0315e2ec79e74014759a97e82d209259e2cf))
|
|
10
|
+
* **api:** Add INTEREST_AND_FEES_PAUSED substatus to financial account ([23c7be9](https://github.com/lithic-com/lithic-ruby/commit/23c7be999b5a04a770dd18d2d34ff3967c68a85a))
|
|
11
|
+
* **api:** Expose MIL interest schedules and loan tape configuration endpoints ([a07d19f](https://github.com/lithic-com/lithic-ruby/commit/a07d19f3933cc1e282073f015bec87421a9a76d6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **api:** Correct token_metadata field name in tokenization.approval_request schema ([a4d5ae7](https://github.com/lithic-com/lithic-ruby/commit/a4d5ae7a5754d8901469be17c57b020c6c246839))
|
|
17
|
+
* properly mock time in ruby ci tests ([ac193de](https://github.com/lithic-com/lithic-ruby/commit/ac193de27a9ce3b9f5bf3162a57a95da2ea88352))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
|
|
22
|
+
* update mock server docs ([8abd2ee](https://github.com/lithic-com/lithic-ruby/commit/8abd2eee9b45f88f1a5e821200cb657b07c48084))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Documentation
|
|
26
|
+
|
|
27
|
+
* Remove CONDITIONAL_BLOCK from docs ([993ab5c](https://github.com/lithic-com/lithic-ruby/commit/993ab5cda8b310bab4083f59713043549cc154f1))
|
|
28
|
+
|
|
29
|
+
## 0.5.0 (2026-02-13)
|
|
30
|
+
|
|
31
|
+
Full Changelog: [v0.4.0...v0.5.0](https://github.com/lithic-com/lithic-ruby/compare/v0.4.0...v0.5.0)
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* **api:** Add /v2/auth_rules/results endpoint for listing rule evaluation data ([638e66d](https://github.com/lithic-com/lithic-ruby/commit/638e66d63951f2710eff7865b66b8424ee9df347))
|
|
36
|
+
* **api:** Add amounts object to ASA request ([22955ed](https://github.com/lithic-com/lithic-ruby/commit/22955ed42c914a5f505254ca94561c192363bca6))
|
|
37
|
+
* **api:** Add hold token field to book transfers ([d23cb0b](https://github.com/lithic-com/lithic-ruby/commit/d23cb0bc4df0226c18bb47da55aa397f1bbc3354))
|
|
38
|
+
* **api:** Add naics_code to account holder requests/responses ([76b507b](https://github.com/lithic-com/lithic-ruby/commit/76b507bf26f50ac5be4cd8210e781435a5d8bd0f))
|
|
39
|
+
* **api:** Add network specific wallet recommendation reasons ([6ddef73](https://github.com/lithic-com/lithic-ruby/commit/6ddef73bfef32916381d94e54565e0e47d81c169))
|
|
40
|
+
* **api:** Add PENDING_REVIEW status to KYB enrollment simulation ([1a6d821](https://github.com/lithic-com/lithic-ruby/commit/1a6d821b937e9a263e0e5f765a80e44d52471867))
|
|
41
|
+
* **api:** Add result schemas for Authorization and Authentication (3DS) actions ([f669caf](https://github.com/lithic-com/lithic-ruby/commit/f669cafbb5f8d2f84295b576de01c4e41e1b1789))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Bug Fixes
|
|
45
|
+
|
|
46
|
+
* **api:** Update /v2/auth_rules/results endpoint parameter naming and action types ([25e39e6](https://github.com/lithic-com/lithic-ruby/commit/25e39e68e249381a826c6a17811ff69eb882f82d))
|
|
47
|
+
* **client:** always add content-length to post body, even when empty ([dc99413](https://github.com/lithic-com/lithic-ruby/commit/dc994133ff0d96a903dab13326254b2b378c06ae))
|
|
48
|
+
* **client:** loosen json header parsing ([a9a41d9](https://github.com/lithic-com/lithic-ruby/commit/a9a41d9cff9dd7f7a1772c76f9c9aae130b1b90a))
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Chores
|
|
52
|
+
|
|
53
|
+
* configure new SDK language ([8192e34](https://github.com/lithic-com/lithic-ruby/commit/8192e34c05ef27263d1e3490092035c9e316c986))
|
|
54
|
+
* **docs:** remove www prefix ([cecdec2](https://github.com/lithic-com/lithic-ruby/commit/cecdec231888818a2ec01dca178d45a741d5326b))
|
|
55
|
+
* Enable stainless MCP in config ([03570d6](https://github.com/lithic-com/lithic-ruby/commit/03570d6a7cde12dc24f4a4237ea4d0042d215817))
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Documentation
|
|
59
|
+
|
|
60
|
+
* Fix documentation of tokenization channel and tokenization source for tokenization rules ([5de9576](https://github.com/lithic-com/lithic-ruby/commit/5de957671f0c262e663dd787617921e6ade623e0))
|
|
61
|
+
|
|
3
62
|
## 0.4.0 (2026-01-27)
|
|
4
63
|
|
|
5
64
|
Full Changelog: [v0.3.0...v0.4.0](https://github.com/lithic-com/lithic-ruby/compare/v0.3.0...v0.4.0)
|
data/README.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
The Lithic Ruby library provides convenient access to the Lithic REST API from any Ruby 3.2.0+ application. It ships with comprehensive types & docstrings in Yard, RBS, and RBI – [see below](https://github.com/lithic-com/lithic-ruby#Sorbet) for usage with Sorbet. The standard library's `net/http` is used as the HTTP transport, with connection pooling via the `connection_pool` gem.
|
|
4
4
|
|
|
5
|
+
## MCP Server
|
|
6
|
+
|
|
7
|
+
Use the Lithic MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
|
|
8
|
+
|
|
9
|
+
[](https://cursor.com/en-US/install-mcp?name=lithic-mcp&config=eyJuYW1lIjoibGl0aGljLW1jcCIsInRyYW5zcG9ydCI6Imh0dHAiLCJ1cmwiOiJodHRwczovL2xpdGhpYy5zdGxtY3AuY29tIiwiaGVhZGVycyI6eyJ4LWxpdGhpYy1hcGkta2V5IjoiTXkgTGl0aGljIEFQSSBLZXkifX0)
|
|
10
|
+
[](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22lithic-mcp%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Flithic.stlmcp.com%22%2C%22headers%22%3A%7B%22x-lithic-api-key%22%3A%22My%20Lithic%20API%20Key%22%7D%7D)
|
|
11
|
+
|
|
12
|
+
> Note: You may need to set environment variables in your MCP client.
|
|
13
|
+
|
|
5
14
|
## Documentation
|
|
6
15
|
|
|
7
16
|
Documentation for releases of this gem can be found [on RubyDoc](https://gemdocs.org/gems/lithic).
|
|
@@ -15,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
|
15
24
|
<!-- x-release-please-start-version -->
|
|
16
25
|
|
|
17
26
|
```ruby
|
|
18
|
-
gem "lithic", "~> 0.
|
|
27
|
+
gem "lithic", "~> 0.6.0"
|
|
19
28
|
```
|
|
20
29
|
|
|
21
30
|
<!-- x-release-please-end -->
|
|
@@ -75,7 +75,7 @@ module Lithic
|
|
|
75
75
|
|
|
76
76
|
case body
|
|
77
77
|
in nil
|
|
78
|
-
|
|
78
|
+
req["content-length"] ||= 0 unless req["transfer-encoding"]
|
|
79
79
|
in String
|
|
80
80
|
req["content-length"] ||= body.bytesize.to_s unless req["transfer-encoding"]
|
|
81
81
|
req.body_stream = Lithic::Internal::Util::ReadIOAdapter.new(body, &blk)
|
data/lib/lithic/internal/util.rb
CHANGED
|
@@ -485,7 +485,7 @@ module Lithic
|
|
|
485
485
|
end
|
|
486
486
|
|
|
487
487
|
# @type [Regexp]
|
|
488
|
-
JSON_CONTENT = %r{^application/(?:
|
|
488
|
+
JSON_CONTENT = %r{^application/(?:[a-zA-Z0-9.-]+\+)?json(?!l)}
|
|
489
489
|
# @type [Regexp]
|
|
490
490
|
JSONL_CONTENT = %r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}
|
|
491
491
|
|
|
@@ -97,6 +97,13 @@ module Lithic
|
|
|
97
97
|
# @return [Lithic::Models::AccountHolder::Individual, nil]
|
|
98
98
|
optional :individual, -> { Lithic::AccountHolder::Individual }
|
|
99
99
|
|
|
100
|
+
# @!attribute naics_code
|
|
101
|
+
# Only present when user_type == "BUSINESS". 6-digit North American Industry
|
|
102
|
+
# Classification System (NAICS) code for the business.
|
|
103
|
+
#
|
|
104
|
+
# @return [String, nil]
|
|
105
|
+
optional :naics_code, String
|
|
106
|
+
|
|
100
107
|
# @!attribute nature_of_business
|
|
101
108
|
# Only present when user_type == "BUSINESS". User-submitted description of the
|
|
102
109
|
# business.
|
|
@@ -143,8 +150,8 @@ module Lithic
|
|
|
143
150
|
# @!attribute user_type
|
|
144
151
|
# The type of Account Holder. If the type is "INDIVIDUAL", the "individual"
|
|
145
152
|
# attribute will be present. If the type is "BUSINESS" then the "business_entity",
|
|
146
|
-
# "control_person", "beneficial_owner_individuals", "
|
|
147
|
-
# "website_url" attributes will be present.
|
|
153
|
+
# "control_person", "beneficial_owner_individuals", "naics_code",
|
|
154
|
+
# "nature_of_business", and "website_url" attributes will be present.
|
|
148
155
|
#
|
|
149
156
|
# @return [Symbol, Lithic::Models::AccountHolder::UserType, nil]
|
|
150
157
|
optional :user_type, enum: -> { Lithic::AccountHolder::UserType }
|
|
@@ -161,7 +168,7 @@ module Lithic
|
|
|
161
168
|
# @return [String, nil]
|
|
162
169
|
optional :website_url, String
|
|
163
170
|
|
|
164
|
-
# @!method initialize(token:, created:, account_token: nil, beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_account_token: nil, business_entity: nil, control_person: nil, email: nil, exemption_type: nil, external_id: nil, individual: nil, nature_of_business: nil, phone_number: nil, required_documents: nil, status: nil, status_reasons: nil, user_type: nil, verification_application: nil, website_url: nil)
|
|
171
|
+
# @!method initialize(token:, created:, account_token: nil, beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_account_token: nil, business_entity: nil, control_person: nil, email: nil, exemption_type: nil, external_id: nil, individual: nil, naics_code: nil, nature_of_business: nil, phone_number: nil, required_documents: nil, status: nil, status_reasons: nil, user_type: nil, verification_application: nil, website_url: nil)
|
|
165
172
|
# Some parameter documentations has been truncated, see
|
|
166
173
|
# {Lithic::Models::AccountHolder} for more details.
|
|
167
174
|
#
|
|
@@ -189,6 +196,8 @@ module Lithic
|
|
|
189
196
|
#
|
|
190
197
|
# @param individual [Lithic::Models::AccountHolder::Individual] Only present when user_type == "INDIVIDUAL". Information about the individual fo
|
|
191
198
|
#
|
|
199
|
+
# @param naics_code [String] Only present when user_type == "BUSINESS". 6-digit North American Industry Class
|
|
200
|
+
#
|
|
192
201
|
# @param nature_of_business [String] Only present when user_type == "BUSINESS". User-submitted description of the bus
|
|
193
202
|
#
|
|
194
203
|
# @param phone_number [String] (Deprecated. Use control_person.phone_number when user_type == "BUSINESS". Use i
|
|
@@ -592,8 +601,8 @@ module Lithic
|
|
|
592
601
|
|
|
593
602
|
# The type of Account Holder. If the type is "INDIVIDUAL", the "individual"
|
|
594
603
|
# attribute will be present. If the type is "BUSINESS" then the "business_entity",
|
|
595
|
-
# "control_person", "beneficial_owner_individuals", "
|
|
596
|
-
# "website_url" attributes will be present.
|
|
604
|
+
# "control_person", "beneficial_owner_individuals", "naics_code",
|
|
605
|
+
# "nature_of_business", and "website_url" attributes will be present.
|
|
597
606
|
#
|
|
598
607
|
# @see Lithic::Models::AccountHolder#user_type
|
|
599
608
|
module UserType
|
|
@@ -84,6 +84,13 @@ module Lithic
|
|
|
84
84
|
# @return [String, nil]
|
|
85
85
|
optional :kyb_passed_timestamp, String
|
|
86
86
|
|
|
87
|
+
# @!attribute naics_code
|
|
88
|
+
# 6-digit North American Industry Classification System (NAICS) code for the
|
|
89
|
+
# business.
|
|
90
|
+
#
|
|
91
|
+
# @return [String, nil]
|
|
92
|
+
optional :naics_code, String
|
|
93
|
+
|
|
87
94
|
# @!attribute website_url
|
|
88
95
|
# Company website URL.
|
|
89
96
|
#
|
|
@@ -151,7 +158,7 @@ module Lithic
|
|
|
151
158
|
# @return [String, nil]
|
|
152
159
|
optional :business_account_token, String
|
|
153
160
|
|
|
154
|
-
# @!method initialize(business_entity:, tos_timestamp:, workflow:, individual:, address:, email:, first_name:, kyc_exemption_type:, last_name:, phone_number:, beneficial_owner_individuals: nil, control_person: nil, nature_of_business: nil, beneficial_owner_entities: nil, external_id: nil, kyb_passed_timestamp: nil, website_url: nil, kyc_passed_timestamp: nil, business_account_token: nil, request_options: {})
|
|
161
|
+
# @!method initialize(business_entity:, tos_timestamp:, workflow:, individual:, address:, email:, first_name:, kyc_exemption_type:, last_name:, phone_number:, beneficial_owner_individuals: nil, control_person: nil, nature_of_business: nil, beneficial_owner_entities: nil, external_id: nil, kyb_passed_timestamp: nil, naics_code: nil, website_url: nil, kyc_passed_timestamp: nil, business_account_token: nil, request_options: {})
|
|
155
162
|
# Some parameter documentations has been truncated, see
|
|
156
163
|
# {Lithic::Models::AccountHolderCreateParams} for more details.
|
|
157
164
|
#
|
|
@@ -187,6 +194,8 @@ module Lithic
|
|
|
187
194
|
#
|
|
188
195
|
# @param kyb_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYB was completed on the busin
|
|
189
196
|
#
|
|
197
|
+
# @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin
|
|
198
|
+
#
|
|
190
199
|
# @param website_url [String] Company website URL.
|
|
191
200
|
#
|
|
192
201
|
# @param kyc_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYC was completed on the indiv
|
|
@@ -102,6 +102,13 @@ module Lithic
|
|
|
102
102
|
# @return [Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual, nil]
|
|
103
103
|
optional :individual, -> { Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual }
|
|
104
104
|
|
|
105
|
+
# @!attribute naics_code
|
|
106
|
+
# Only present when user_type == "BUSINESS". 6-digit North American Industry
|
|
107
|
+
# Classification System (NAICS) code for the business.
|
|
108
|
+
#
|
|
109
|
+
# @return [String, nil]
|
|
110
|
+
optional :naics_code, String
|
|
111
|
+
|
|
105
112
|
# @!attribute nature_of_business
|
|
106
113
|
# Only present when user_type == "BUSINESS". User-submitted description of the
|
|
107
114
|
# business.
|
|
@@ -147,8 +154,8 @@ module Lithic
|
|
|
147
154
|
# attribute will be present.
|
|
148
155
|
#
|
|
149
156
|
# If the type is "BUSINESS" then the "business_entity", "control_person",
|
|
150
|
-
# "beneficial_owner_individuals", "nature_of_business", and
|
|
151
|
-
# attributes will be present.
|
|
157
|
+
# "beneficial_owner_individuals", "naics_code", "nature_of_business", and
|
|
158
|
+
# "website_url" attributes will be present.
|
|
152
159
|
#
|
|
153
160
|
# @return [Symbol, Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::UserType, nil]
|
|
154
161
|
optional :user_type, enum: -> { Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::UserType }
|
|
@@ -166,7 +173,7 @@ module Lithic
|
|
|
166
173
|
# @return [String, nil]
|
|
167
174
|
optional :website_url, String
|
|
168
175
|
|
|
169
|
-
# @!method initialize(token: nil, account_token: nil, beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_account_token: nil, business_entity: nil, control_person: nil, created: nil, email: nil, exemption_type: nil, external_id: nil, individual: nil, nature_of_business: nil, phone_number: nil, required_documents: nil, status: nil, status_reasons: nil, user_type: nil, verification_application: nil, website_url: nil)
|
|
176
|
+
# @!method initialize(token: nil, account_token: nil, beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_account_token: nil, business_entity: nil, control_person: nil, created: nil, email: nil, exemption_type: nil, external_id: nil, individual: nil, naics_code: nil, nature_of_business: nil, phone_number: nil, required_documents: nil, status: nil, status_reasons: nil, user_type: nil, verification_application: nil, website_url: nil)
|
|
170
177
|
# Some parameter documentations has been truncated, see
|
|
171
178
|
# {Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse} for more
|
|
172
179
|
# details.
|
|
@@ -195,6 +202,8 @@ module Lithic
|
|
|
195
202
|
#
|
|
196
203
|
# @param individual [Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual] Only present when user_type == "INDIVIDUAL". Information about the individual fo
|
|
197
204
|
#
|
|
205
|
+
# @param naics_code [String] Only present when user_type == "BUSINESS". 6-digit North American Industry Class
|
|
206
|
+
#
|
|
198
207
|
# @param nature_of_business [String] Only present when user_type == "BUSINESS". User-submitted description of the bus
|
|
199
208
|
#
|
|
200
209
|
# @param phone_number [String] (Deprecated. Use control_person.phone_number when user_type == "BUSINESS".
|
|
@@ -660,8 +669,8 @@ module Lithic
|
|
|
660
669
|
# attribute will be present.
|
|
661
670
|
#
|
|
662
671
|
# If the type is "BUSINESS" then the "business_entity", "control_person",
|
|
663
|
-
# "beneficial_owner_individuals", "nature_of_business", and
|
|
664
|
-
# attributes will be present.
|
|
672
|
+
# "beneficial_owner_individuals", "naics_code", "nature_of_business", and
|
|
673
|
+
# "website_url" attributes will be present.
|
|
665
674
|
#
|
|
666
675
|
# @see Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse#user_type
|
|
667
676
|
module UserType
|
|
@@ -55,6 +55,13 @@ module Lithic
|
|
|
55
55
|
# @return [String, nil]
|
|
56
56
|
optional :external_id, String
|
|
57
57
|
|
|
58
|
+
# @!attribute naics_code
|
|
59
|
+
# 6-digit North American Industry Classification System (NAICS) code for the
|
|
60
|
+
# business.
|
|
61
|
+
#
|
|
62
|
+
# @return [String, nil]
|
|
63
|
+
optional :naics_code, String
|
|
64
|
+
|
|
58
65
|
# @!attribute nature_of_business
|
|
59
66
|
# Short description of the company's line of business (i.e., what does the company
|
|
60
67
|
# do?).
|
|
@@ -122,7 +129,7 @@ module Lithic
|
|
|
122
129
|
# @return [String, nil]
|
|
123
130
|
optional :phone_number, String
|
|
124
131
|
|
|
125
|
-
# @!method initialize(beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_entity: nil, control_person: nil, external_id: nil, nature_of_business: nil, website_url: nil, individual: nil, address: nil, business_account_token: nil, email: nil, first_name: nil, last_name: nil, legal_business_name: nil, phone_number: nil, request_options: {})
|
|
132
|
+
# @!method initialize(beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_entity: nil, control_person: nil, external_id: nil, naics_code: nil, nature_of_business: nil, website_url: nil, individual: nil, address: nil, business_account_token: nil, email: nil, first_name: nil, last_name: nil, legal_business_name: nil, phone_number: nil, request_options: {})
|
|
126
133
|
# Some parameter documentations has been truncated, see
|
|
127
134
|
# {Lithic::Models::AccountHolderUpdateParams} for more details.
|
|
128
135
|
#
|
|
@@ -136,6 +143,8 @@ module Lithic
|
|
|
136
143
|
#
|
|
137
144
|
# @param external_id [String] A user provided id that can be used to link an account holder with an external s
|
|
138
145
|
#
|
|
146
|
+
# @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin
|
|
147
|
+
#
|
|
139
148
|
# @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company
|
|
140
149
|
#
|
|
141
150
|
# @param website_url [String] Company website URL.
|
|
@@ -109,6 +109,13 @@ module Lithic
|
|
|
109
109
|
# @return [Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual, nil]
|
|
110
110
|
optional :individual, -> { Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual }
|
|
111
111
|
|
|
112
|
+
# @!attribute naics_code
|
|
113
|
+
# Only present when user_type == "BUSINESS". 6-digit North American Industry
|
|
114
|
+
# Classification System (NAICS) code for the business.
|
|
115
|
+
#
|
|
116
|
+
# @return [String, nil]
|
|
117
|
+
optional :naics_code, String
|
|
118
|
+
|
|
112
119
|
# @!attribute nature_of_business
|
|
113
120
|
# Only present when user_type == "BUSINESS". User-submitted description of the
|
|
114
121
|
# business.
|
|
@@ -154,8 +161,8 @@ module Lithic
|
|
|
154
161
|
# attribute will be present.
|
|
155
162
|
#
|
|
156
163
|
# If the type is "BUSINESS" then the "business_entity", "control_person",
|
|
157
|
-
# "beneficial_owner_individuals", "nature_of_business", and
|
|
158
|
-
# attributes will be present.
|
|
164
|
+
# "beneficial_owner_individuals", "naics_code", "nature_of_business", and
|
|
165
|
+
# "website_url" attributes will be present.
|
|
159
166
|
#
|
|
160
167
|
# @return [Symbol, Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::UserType, nil]
|
|
161
168
|
optional :user_type,
|
|
@@ -174,7 +181,7 @@ module Lithic
|
|
|
174
181
|
# @return [String, nil]
|
|
175
182
|
optional :website_url, String
|
|
176
183
|
|
|
177
|
-
# @!method initialize(token: nil, account_token: nil, beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_account_token: nil, business_entity: nil, control_person: nil, created: nil, email: nil, exemption_type: nil, external_id: nil, individual: nil, nature_of_business: nil, phone_number: nil, required_documents: nil, status: nil, status_reasons: nil, user_type: nil, verification_application: nil, website_url: nil)
|
|
184
|
+
# @!method initialize(token: nil, account_token: nil, beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_account_token: nil, business_entity: nil, control_person: nil, created: nil, email: nil, exemption_type: nil, external_id: nil, individual: nil, naics_code: nil, nature_of_business: nil, phone_number: nil, required_documents: nil, status: nil, status_reasons: nil, user_type: nil, verification_application: nil, website_url: nil)
|
|
178
185
|
# Some parameter documentations has been truncated, see
|
|
179
186
|
# {Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse} for more
|
|
180
187
|
# details.
|
|
@@ -203,6 +210,8 @@ module Lithic
|
|
|
203
210
|
#
|
|
204
211
|
# @param individual [Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual] Only present when user_type == "INDIVIDUAL". Information about the individual fo
|
|
205
212
|
#
|
|
213
|
+
# @param naics_code [String] Only present when user_type == "BUSINESS". 6-digit North American Industry Class
|
|
214
|
+
#
|
|
206
215
|
# @param nature_of_business [String] Only present when user_type == "BUSINESS". User-submitted description of the bus
|
|
207
216
|
#
|
|
208
217
|
# @param phone_number [String] (Deprecated. Use control_person.phone_number when user_type == "BUSINESS".
|
|
@@ -668,8 +677,8 @@ module Lithic
|
|
|
668
677
|
# attribute will be present.
|
|
669
678
|
#
|
|
670
679
|
# If the type is "BUSINESS" then the "business_entity", "control_person",
|
|
671
|
-
# "beneficial_owner_individuals", "nature_of_business", and
|
|
672
|
-
# attributes will be present.
|
|
680
|
+
# "beneficial_owner_individuals", "naics_code", "nature_of_business", and
|
|
681
|
+
# "website_url" attributes will be present.
|
|
673
682
|
#
|
|
674
683
|
# @see Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse#user_type
|
|
675
684
|
module UserType
|
|
@@ -41,6 +41,13 @@ module Lithic
|
|
|
41
41
|
# @return [String, nil]
|
|
42
42
|
optional :external_id, String
|
|
43
43
|
|
|
44
|
+
# @!attribute naics_code
|
|
45
|
+
# 6-digit North American Industry Classification System (NAICS) code for the
|
|
46
|
+
# business. Only present if naics_code was included in the update request.
|
|
47
|
+
#
|
|
48
|
+
# @return [String, nil]
|
|
49
|
+
optional :naics_code, String
|
|
50
|
+
|
|
44
51
|
# @!attribute nature_of_business
|
|
45
52
|
# Short description of the company's line of business (i.e., what does the company
|
|
46
53
|
# do?).
|
|
@@ -54,7 +61,7 @@ module Lithic
|
|
|
54
61
|
# @return [String, nil]
|
|
55
62
|
optional :website_url, String
|
|
56
63
|
|
|
57
|
-
# @!method initialize(token:, update_request:, event_type: nil, external_id: nil, nature_of_business: nil, website_url: nil)
|
|
64
|
+
# @!method initialize(token:, update_request:, event_type: nil, external_id: nil, naics_code: nil, nature_of_business: nil, website_url: nil)
|
|
58
65
|
# Some parameter documentations has been truncated, see
|
|
59
66
|
# {Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload} for more details.
|
|
60
67
|
#
|
|
@@ -68,6 +75,8 @@ module Lithic
|
|
|
68
75
|
#
|
|
69
76
|
# @param external_id [String] A user provided id that can be used to link an account holder with an external s
|
|
70
77
|
#
|
|
78
|
+
# @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin
|
|
79
|
+
#
|
|
71
80
|
# @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company
|
|
72
81
|
#
|
|
73
82
|
# @param website_url [String] Company website URL.
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module AccountHolders
|
|
6
|
+
# @see Lithic::Resources::AccountHolders::Entities#delete
|
|
7
|
+
class AccountHolderEntity < Lithic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute token
|
|
9
|
+
# Globally unique identifier for the entity
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
required :token, String
|
|
13
|
+
|
|
14
|
+
# @!attribute account_holder_token
|
|
15
|
+
# Globally unique identifier for the account holder
|
|
16
|
+
#
|
|
17
|
+
# @return [String]
|
|
18
|
+
required :account_holder_token, String
|
|
19
|
+
|
|
20
|
+
# @!attribute address
|
|
21
|
+
# Individual's current address
|
|
22
|
+
#
|
|
23
|
+
# @return [Lithic::Models::AccountHolders::AccountHolderEntity::Address]
|
|
24
|
+
required :address, -> { Lithic::AccountHolders::AccountHolderEntity::Address }
|
|
25
|
+
|
|
26
|
+
# @!attribute dob
|
|
27
|
+
# Individual's date of birth, as an RFC 3339 date
|
|
28
|
+
#
|
|
29
|
+
# @return [String, nil]
|
|
30
|
+
required :dob, String, nil?: true
|
|
31
|
+
|
|
32
|
+
# @!attribute email
|
|
33
|
+
# Individual's email address
|
|
34
|
+
#
|
|
35
|
+
# @return [String, nil]
|
|
36
|
+
required :email, String, nil?: true
|
|
37
|
+
|
|
38
|
+
# @!attribute first_name
|
|
39
|
+
# Individual's first name, as it appears on government-issued identity documents
|
|
40
|
+
#
|
|
41
|
+
# @return [String, nil]
|
|
42
|
+
required :first_name, String, nil?: true
|
|
43
|
+
|
|
44
|
+
# @!attribute last_name
|
|
45
|
+
# Individual's last name, as it appears on government-issued identity documents
|
|
46
|
+
#
|
|
47
|
+
# @return [String, nil]
|
|
48
|
+
required :last_name, String, nil?: true
|
|
49
|
+
|
|
50
|
+
# @!attribute phone_number
|
|
51
|
+
# Individual's phone number, entered in E.164 format
|
|
52
|
+
#
|
|
53
|
+
# @return [String, nil]
|
|
54
|
+
required :phone_number, String, nil?: true
|
|
55
|
+
|
|
56
|
+
# @!attribute status
|
|
57
|
+
# The status of the entity
|
|
58
|
+
#
|
|
59
|
+
# @return [Symbol, Lithic::Models::AccountHolders::AccountHolderEntity::Status]
|
|
60
|
+
required :status, enum: -> { Lithic::AccountHolders::AccountHolderEntity::Status }
|
|
61
|
+
|
|
62
|
+
# @!attribute type
|
|
63
|
+
# The type of entity
|
|
64
|
+
#
|
|
65
|
+
# @return [Symbol, Lithic::Models::AccountHolders::AccountHolderEntity::Type]
|
|
66
|
+
required :type, enum: -> { Lithic::AccountHolders::AccountHolderEntity::Type }
|
|
67
|
+
|
|
68
|
+
# @!method initialize(token:, account_holder_token:, address:, dob:, email:, first_name:, last_name:, phone_number:, status:, type:)
|
|
69
|
+
# Information about an entity associated with an account holder
|
|
70
|
+
#
|
|
71
|
+
# @param token [String] Globally unique identifier for the entity
|
|
72
|
+
#
|
|
73
|
+
# @param account_holder_token [String] Globally unique identifier for the account holder
|
|
74
|
+
#
|
|
75
|
+
# @param address [Lithic::Models::AccountHolders::AccountHolderEntity::Address] Individual's current address
|
|
76
|
+
#
|
|
77
|
+
# @param dob [String, nil] Individual's date of birth, as an RFC 3339 date
|
|
78
|
+
#
|
|
79
|
+
# @param email [String, nil] Individual's email address
|
|
80
|
+
#
|
|
81
|
+
# @param first_name [String, nil] Individual's first name, as it appears on government-issued identity documents
|
|
82
|
+
#
|
|
83
|
+
# @param last_name [String, nil] Individual's last name, as it appears on government-issued identity documents
|
|
84
|
+
#
|
|
85
|
+
# @param phone_number [String, nil] Individual's phone number, entered in E.164 format
|
|
86
|
+
#
|
|
87
|
+
# @param status [Symbol, Lithic::Models::AccountHolders::AccountHolderEntity::Status] The status of the entity
|
|
88
|
+
#
|
|
89
|
+
# @param type [Symbol, Lithic::Models::AccountHolders::AccountHolderEntity::Type] The type of entity
|
|
90
|
+
|
|
91
|
+
# @see Lithic::Models::AccountHolders::AccountHolderEntity#address
|
|
92
|
+
class Address < Lithic::Internal::Type::BaseModel
|
|
93
|
+
# @!attribute address1
|
|
94
|
+
# Valid deliverable address (no PO boxes).
|
|
95
|
+
#
|
|
96
|
+
# @return [String]
|
|
97
|
+
required :address1, String
|
|
98
|
+
|
|
99
|
+
# @!attribute city
|
|
100
|
+
# Name of city.
|
|
101
|
+
#
|
|
102
|
+
# @return [String]
|
|
103
|
+
required :city, String
|
|
104
|
+
|
|
105
|
+
# @!attribute country
|
|
106
|
+
# Valid country code. Only USA is currently supported, entered in uppercase ISO
|
|
107
|
+
# 3166-1 alpha-3 three-character format.
|
|
108
|
+
#
|
|
109
|
+
# @return [String]
|
|
110
|
+
required :country, String
|
|
111
|
+
|
|
112
|
+
# @!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.
|
|
115
|
+
#
|
|
116
|
+
# @return [String]
|
|
117
|
+
required :postal_code, String
|
|
118
|
+
|
|
119
|
+
# @!attribute state
|
|
120
|
+
# Valid state code. Only USA state codes are currently supported, entered in
|
|
121
|
+
# uppercase ISO 3166-2 two-character format.
|
|
122
|
+
#
|
|
123
|
+
# @return [String]
|
|
124
|
+
required :state, String
|
|
125
|
+
|
|
126
|
+
# @!attribute address2
|
|
127
|
+
# Unit or apartment number (if applicable).
|
|
128
|
+
#
|
|
129
|
+
# @return [String, nil]
|
|
130
|
+
optional :address2, String
|
|
131
|
+
|
|
132
|
+
# @!method initialize(address1:, city:, country:, postal_code:, state:, address2: nil)
|
|
133
|
+
# Some parameter documentations has been truncated, see
|
|
134
|
+
# {Lithic::Models::AccountHolders::AccountHolderEntity::Address} for more details.
|
|
135
|
+
#
|
|
136
|
+
# Individual's current address
|
|
137
|
+
#
|
|
138
|
+
# @param address1 [String] Valid deliverable address (no PO boxes).
|
|
139
|
+
#
|
|
140
|
+
# @param city [String] Name of city.
|
|
141
|
+
#
|
|
142
|
+
# @param country [String] Valid country code. Only USA is currently supported, entered in uppercase ISO 31
|
|
143
|
+
#
|
|
144
|
+
# @param postal_code [String] Valid postal code. Only USA ZIP codes are currently supported, entered as a five
|
|
145
|
+
#
|
|
146
|
+
# @param state [String] Valid state code. Only USA state codes are currently supported, entered in upper
|
|
147
|
+
#
|
|
148
|
+
# @param address2 [String] Unit or apartment number (if applicable).
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# The status of the entity
|
|
152
|
+
#
|
|
153
|
+
# @see Lithic::Models::AccountHolders::AccountHolderEntity#status
|
|
154
|
+
module Status
|
|
155
|
+
extend Lithic::Internal::Type::Enum
|
|
156
|
+
|
|
157
|
+
ACCEPTED = :ACCEPTED
|
|
158
|
+
INACTIVE = :INACTIVE
|
|
159
|
+
PENDING_REVIEW = :PENDING_REVIEW
|
|
160
|
+
REJECTED = :REJECTED
|
|
161
|
+
|
|
162
|
+
# @!method self.values
|
|
163
|
+
# @return [Array<Symbol>]
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# The type of entity
|
|
167
|
+
#
|
|
168
|
+
# @see Lithic::Models::AccountHolders::AccountHolderEntity#type
|
|
169
|
+
module Type
|
|
170
|
+
extend Lithic::Internal::Type::Enum
|
|
171
|
+
|
|
172
|
+
BENEFICIAL_OWNER_INDIVIDUAL = :BENEFICIAL_OWNER_INDIVIDUAL
|
|
173
|
+
CONTROL_PERSON = :CONTROL_PERSON
|
|
174
|
+
|
|
175
|
+
# @!method self.values
|
|
176
|
+
# @return [Array<Symbol>]
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
AccountHolderEntity = AccountHolders::AccountHolderEntity
|
|
182
|
+
end
|
|
183
|
+
end
|