Skip to content

Commit 7c54dcf

Browse files
feat(api): Remove deprecated beneficial owner entities field
1 parent bd02001 commit 7c54dcf

31 files changed

Lines changed: 20 additions & 1209 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 185
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-b29a4bd5ca21348ef426162cbd1fa21070f695572626e4e6faabfa14af38f0b0.yml
3-
openapi_spec_hash: e7c285d6b7006d040ecb50a9d0d2fc17
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-df289940d26615072a7c5c9dd4d32b9bc7a86d977642b377c58abbe7a4cb93d0.yml
3+
openapi_spec_hash: 836bb078df7ac5f8d2dd5081c2e833be
44
config_hash: fb5070d41fcabdedbc084b83964b592a

lib/lithic/models/account_holder.rb

Lines changed: 1 addition & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,6 @@ class AccountHolder < Lithic::Internal::Type::BaseModel
2222
# @return [String, nil]
2323
optional :account_token, String
2424

25-
# @!attribute beneficial_owner_entities
26-
# @deprecated
27-
#
28-
# Deprecated.
29-
#
30-
# @return [Array<Lithic::Models::AccountHolder::BeneficialOwnerEntity>, nil]
31-
optional :beneficial_owner_entities,
32-
-> { Lithic::Internal::Type::ArrayOf[Lithic::AccountHolder::BeneficialOwnerEntity] }
33-
3425
# @!attribute beneficial_owner_individuals
3526
# Only present when user_type == "BUSINESS". You must submit a list of all direct
3627
# and indirect individuals with 25% or more ownership in the company. A maximum of
@@ -168,7 +159,7 @@ class AccountHolder < Lithic::Internal::Type::BaseModel
168159
# @return [String, nil]
169160
optional :website_url, String
170161

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)
162+
# @!method initialize(token:, created:, account_token: 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)
172163
# Some parameter documentations has been truncated, see
173164
# {Lithic::Models::AccountHolder} for more details.
174165
#
@@ -178,8 +169,6 @@ class AccountHolder < Lithic::Internal::Type::BaseModel
178169
#
179170
# @param account_token [String] Globally unique identifier for the account.
180171
#
181-
# @param beneficial_owner_entities [Array<Lithic::Models::AccountHolder::BeneficialOwnerEntity>] Deprecated.
182-
#
183172
# @param beneficial_owner_individuals [Array<Lithic::Models::AccountHolder::BeneficialOwnerIndividual>] Only present when user_type == "BUSINESS".
184173
#
185174
# @param business_account_token [String] Only applicable for customers using the KYC-Exempt workflow to enroll authorized
@@ -214,73 +203,6 @@ class AccountHolder < Lithic::Internal::Type::BaseModel
214203
#
215204
# @param website_url [String] Only present when user_type == "BUSINESS". Business's primary website.
216205

217-
class BeneficialOwnerEntity < Lithic::Internal::Type::BaseModel
218-
# @!attribute address
219-
# Business's physical address - PO boxes, UPS drops, and FedEx drops are not
220-
# acceptable; APO/FPO are acceptable.
221-
#
222-
# @return [Lithic::Models::Address]
223-
required :address, -> { Lithic::Address }
224-
225-
# @!attribute dba_business_name
226-
# Any name that the business operates under that is not its legal business name
227-
# (if applicable).
228-
#
229-
# @return [String]
230-
required :dba_business_name, String
231-
232-
# @!attribute entity_token
233-
# Globally unique identifier for the entity.
234-
#
235-
# @return [String]
236-
required :entity_token, String
237-
238-
# @!attribute government_id
239-
# Government-issued identification number. US Federal Employer Identification
240-
# Numbers (EIN) are currently supported, entered as full nine-digits, with or
241-
# without hyphens.
242-
#
243-
# @return [String]
244-
required :government_id, String
245-
246-
# @!attribute legal_business_name
247-
# Legal (formal) business name.
248-
#
249-
# @return [String]
250-
required :legal_business_name, String
251-
252-
# @!attribute phone_numbers
253-
# One or more of the business's phone number(s), entered as a list in E.164
254-
# format.
255-
#
256-
# @return [Array<String>]
257-
required :phone_numbers, Lithic::Internal::Type::ArrayOf[String]
258-
259-
# @!attribute parent_company
260-
# Parent company name (if applicable).
261-
#
262-
# @return [String, nil]
263-
optional :parent_company, String
264-
265-
# @!method initialize(address:, dba_business_name:, entity_token:, government_id:, legal_business_name:, phone_numbers:, parent_company: nil)
266-
# Some parameter documentations has been truncated, see
267-
# {Lithic::Models::AccountHolder::BeneficialOwnerEntity} for more details.
268-
#
269-
# @param address [Lithic::Models::Address] Business's physical address - PO boxes, UPS drops, and FedEx drops are not accep
270-
#
271-
# @param dba_business_name [String] Any name that the business operates under that is not its legal business name (i
272-
#
273-
# @param entity_token [String] Globally unique identifier for the entity.
274-
#
275-
# @param government_id [String] Government-issued identification number. US Federal Employer Identification Numb
276-
#
277-
# @param legal_business_name [String] Legal (formal) business name.
278-
#
279-
# @param phone_numbers [Array<String>] One or more of the business's phone number(s), entered as a list in E.164 format
280-
#
281-
# @param parent_company [String] Parent company name (if applicable).
282-
end
283-
284206
class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel
285207
# @!attribute address
286208
# Individual's current address

lib/lithic/models/account_holder_create_params.rb

Lines changed: 1 addition & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,6 @@ class AccountHolderCreateParams < Lithic::Internal::Type::BaseModel
5959
# @return [Symbol, Lithic::Models::AccountHolderCreateParams::Workflow]
6060
required :workflow, enum: -> { Lithic::AccountHolderCreateParams::Workflow }
6161

62-
# @!attribute beneficial_owner_entities
63-
# @deprecated
64-
#
65-
# Deprecated.
66-
#
67-
# @return [Array<Lithic::Models::AccountHolderCreateParams::BeneficialOwnerEntity>, nil]
68-
optional :beneficial_owner_entities,
69-
-> { Lithic::Internal::Type::ArrayOf[Lithic::AccountHolderCreateParams::BeneficialOwnerEntity] }
70-
7162
# @!attribute external_id
7263
# A user provided id that can be used to link an account holder with an external
7364
# system
@@ -158,7 +149,7 @@ class AccountHolderCreateParams < Lithic::Internal::Type::BaseModel
158149
# @return [String, nil]
159150
optional :business_account_token, String
160151

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: {})
152+
# @!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, external_id: nil, kyb_passed_timestamp: nil, naics_code: nil, website_url: nil, kyc_passed_timestamp: nil, business_account_token: nil, request_options: {})
162153
# Some parameter documentations has been truncated, see
163154
# {Lithic::Models::AccountHolderCreateParams} for more details.
164155
#
@@ -188,8 +179,6 @@ class AccountHolderCreateParams < Lithic::Internal::Type::BaseModel
188179
#
189180
# @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company
190181
#
191-
# @param beneficial_owner_entities [Array<Lithic::Models::AccountHolderCreateParams::BeneficialOwnerEntity>] Deprecated.
192-
#
193182
# @param external_id [String] A user provided id that can be used to link an account holder with an external s
194183
#
195184
# @param kyb_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYB was completed on the busin
@@ -421,66 +410,6 @@ module Workflow
421410
# @return [Array<Symbol>]
422411
end
423412

424-
class BeneficialOwnerEntity < Lithic::Internal::Type::BaseModel
425-
# @!attribute address
426-
# Business's physical address - PO boxes, UPS drops, and FedEx drops are not
427-
# acceptable; APO/FPO are acceptable.
428-
#
429-
# @return [Lithic::Models::Address]
430-
required :address, -> { Lithic::Address }
431-
432-
# @!attribute government_id
433-
# Government-issued identification number. US Federal Employer Identification
434-
# Numbers (EIN) are currently supported, entered as full nine-digits, with or
435-
# without hyphens.
436-
#
437-
# @return [String]
438-
required :government_id, String
439-
440-
# @!attribute legal_business_name
441-
# Legal (formal) business name.
442-
#
443-
# @return [String]
444-
required :legal_business_name, String
445-
446-
# @!attribute phone_numbers
447-
# One or more of the business's phone number(s), entered as a list in E.164
448-
# format.
449-
#
450-
# @return [Array<String>]
451-
required :phone_numbers, Lithic::Internal::Type::ArrayOf[String]
452-
453-
# @!attribute dba_business_name
454-
# Any name that the business operates under that is not its legal business name
455-
# (if applicable).
456-
#
457-
# @return [String, nil]
458-
optional :dba_business_name, String
459-
460-
# @!attribute parent_company
461-
# Parent company name (if applicable).
462-
#
463-
# @return [String, nil]
464-
optional :parent_company, String
465-
466-
# @!method initialize(address:, government_id:, legal_business_name:, phone_numbers:, dba_business_name: nil, parent_company: nil)
467-
# Some parameter documentations has been truncated, see
468-
# {Lithic::Models::AccountHolderCreateParams::BeneficialOwnerEntity} for more
469-
# details.
470-
#
471-
# @param address [Lithic::Models::Address] Business's physical address - PO boxes, UPS drops, and FedEx drops are not accep
472-
#
473-
# @param government_id [String] Government-issued identification number. US Federal Employer Identification Numb
474-
#
475-
# @param legal_business_name [String] Legal (formal) business name.
476-
#
477-
# @param phone_numbers [Array<String>] One or more of the business's phone number(s), entered as a list in E.164 format
478-
#
479-
# @param dba_business_name [String] Any name that the business operates under that is not its legal business name (i
480-
#
481-
# @param parent_company [String] Parent company name (if applicable).
482-
end
483-
484413
class Individual < Lithic::Internal::Type::BaseModel
485414
# @!attribute address
486415
# Individual's current address - PO boxes, UPS drops, and FedEx drops are not

lib/lithic/models/account_holder_simulate_enrollment_review_response.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ class AccountHolderSimulateEnrollmentReviewResponse < Lithic::Internal::Type::Ba
1616
# @return [String, nil]
1717
optional :account_token, String
1818

19-
# @!attribute beneficial_owner_entities
20-
# Deprecated.
21-
#
22-
# @return [Array<Lithic::Models::KYBBusinessEntity>, nil]
23-
optional :beneficial_owner_entities, -> { Lithic::Internal::Type::ArrayOf[Lithic::KYBBusinessEntity] }
24-
2519
# @!attribute beneficial_owner_individuals
2620
# Only present when user_type == "BUSINESS". You must submit a list of all direct
2721
# and indirect individuals with 25% or more ownership in the company. A maximum of
@@ -173,7 +167,7 @@ class AccountHolderSimulateEnrollmentReviewResponse < Lithic::Internal::Type::Ba
173167
# @return [String, nil]
174168
optional :website_url, String
175169

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+
# @!method initialize(token: nil, account_token: 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)
177171
# Some parameter documentations has been truncated, see
178172
# {Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse} for more
179173
# details.
@@ -182,8 +176,6 @@ class AccountHolderSimulateEnrollmentReviewResponse < Lithic::Internal::Type::Ba
182176
#
183177
# @param account_token [String] Globally unique identifier for the account.
184178
#
185-
# @param beneficial_owner_entities [Array<Lithic::Models::KYBBusinessEntity>] Deprecated.
186-
#
187179
# @param beneficial_owner_individuals [Array<Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual>] Only present when user_type == "BUSINESS". You must submit a list of all direct
188180
#
189181
# @param business_account_token [String, nil] Only applicable for customers using the KYC-Exempt workflow to enroll authorized

lib/lithic/models/account_holder_update_params.rb

Lines changed: 1 addition & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@ class AccountHolderUpdateParams < Lithic::Internal::Type::BaseModel
77
extend Lithic::Internal::Type::RequestParameters::Converter
88
include Lithic::Internal::Type::RequestParameters
99

10-
# @!attribute beneficial_owner_entities
11-
# @deprecated
12-
#
13-
# Deprecated.
14-
#
15-
# @return [Array<Lithic::Models::AccountHolderUpdateParams::BeneficialOwnerEntity>, nil]
16-
optional :beneficial_owner_entities,
17-
-> { Lithic::Internal::Type::ArrayOf[Lithic::AccountHolderUpdateParams::BeneficialOwnerEntity] }
18-
1910
# @!attribute beneficial_owner_individuals
2011
# You must submit a list of all direct and indirect individuals with 25% or more
2112
# ownership in the company. A maximum of 4 beneficial owners can be submitted. If
@@ -129,12 +120,10 @@ class AccountHolderUpdateParams < Lithic::Internal::Type::BaseModel
129120
# @return [String, nil]
130121
optional :phone_number, String
131122

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: {})
123+
# @!method initialize(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: {})
133124
# Some parameter documentations has been truncated, see
134125
# {Lithic::Models::AccountHolderUpdateParams} for more details.
135126
#
136-
# @param beneficial_owner_entities [Array<Lithic::Models::AccountHolderUpdateParams::BeneficialOwnerEntity>] Deprecated.
137-
#
138127
# @param beneficial_owner_individuals [Array<Lithic::Models::AccountHolderUpdateParams::BeneficialOwnerIndividual>] You must submit a list of all direct and indirect individuals with 25% or more o
139128
#
140129
# @param business_entity [Lithic::Models::AccountHolderUpdateParams::BusinessEntity] Information for business for which the account is being opened and KYB is being
@@ -167,74 +156,6 @@ class AccountHolderUpdateParams < Lithic::Internal::Type::BaseModel
167156
#
168157
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
169158

170-
class BeneficialOwnerEntity < Lithic::Internal::Type::BaseModel
171-
# @!attribute entity_token
172-
# Globally unique identifier for an entity.
173-
#
174-
# @return [String]
175-
required :entity_token, String
176-
177-
# @!attribute address
178-
# Business''s physical address - PO boxes, UPS drops, and FedEx drops are not
179-
# acceptable; APO/FPO are acceptable.
180-
#
181-
# @return [Lithic::Models::AddressUpdate, nil]
182-
optional :address, -> { Lithic::AddressUpdate }
183-
184-
# @!attribute dba_business_name
185-
# Any name that the business operates under that is not its legal business name
186-
# (if applicable).
187-
#
188-
# @return [String, nil]
189-
optional :dba_business_name, String
190-
191-
# @!attribute government_id
192-
# Government-issued identification number. US Federal Employer Identification
193-
# Numbers (EIN) are currently supported, entered as full nine-digits, with or
194-
# without hyphens.
195-
#
196-
# @return [String, nil]
197-
optional :government_id, String
198-
199-
# @!attribute legal_business_name
200-
# Legal (formal) business name.
201-
#
202-
# @return [String, nil]
203-
optional :legal_business_name, String
204-
205-
# @!attribute parent_company
206-
# Parent company name (if applicable).
207-
#
208-
# @return [String, nil]
209-
optional :parent_company, String
210-
211-
# @!attribute phone_numbers
212-
# One or more of the business's phone number(s), entered as a list in E.164
213-
# format.
214-
#
215-
# @return [Array<String>, nil]
216-
optional :phone_numbers, Lithic::Internal::Type::ArrayOf[String]
217-
218-
# @!method initialize(entity_token:, address: nil, dba_business_name: nil, government_id: nil, legal_business_name: nil, parent_company: nil, phone_numbers: nil)
219-
# Some parameter documentations has been truncated, see
220-
# {Lithic::Models::AccountHolderUpdateParams::BeneficialOwnerEntity} for more
221-
# details.
222-
#
223-
# @param entity_token [String] Globally unique identifier for an entity.
224-
#
225-
# @param address [Lithic::Models::AddressUpdate] Business''s physical address - PO boxes, UPS drops, and FedEx drops are not acce
226-
#
227-
# @param dba_business_name [String] Any name that the business operates under that is not its legal business name (i
228-
#
229-
# @param government_id [String] Government-issued identification number. US Federal Employer Identification Numb
230-
#
231-
# @param legal_business_name [String] Legal (formal) business name.
232-
#
233-
# @param parent_company [String] Parent company name (if applicable).
234-
#
235-
# @param phone_numbers [Array<String>] One or more of the business's phone number(s), entered as a list in E.164 format
236-
end
237-
238159
class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel
239160
# @!attribute entity_token
240161
# Globally unique identifier for an entity.

0 commit comments

Comments
 (0)