Skip to content

Commit 76b507b

Browse files
feat(api): Add naics_code to account holder requests/responses
1 parent 03570d6 commit 76b507b

29 files changed

Lines changed: 291 additions & 42 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 176
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-ce2adff9b644ed4562b5342a4a43d0b40c98d43b4e063b4626f4ca5d342f1b92.yml
3-
openapi_spec_hash: fbc84b866ce96457261ac58b4e75c71d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-05d665e9c7e81d85c0d6629bf3898e2eb221268d677b772ef3da3891b25d8346.yml
3+
openapi_spec_hash: fd8900412ab9a393719dba3669d44d3a
44
config_hash: faacaff68ffb3a4d051f0a7b8442e099

lib/lithic/models/account_holder.rb

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ class AccountHolder < Lithic::Internal::Type::BaseModel
9797
# @return [Lithic::Models::AccountHolder::Individual, nil]
9898
optional :individual, -> { Lithic::AccountHolder::Individual }
9999

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+
100107
# @!attribute nature_of_business
101108
# Only present when user_type == "BUSINESS". User-submitted description of the
102109
# business.
@@ -143,8 +150,8 @@ class AccountHolder < Lithic::Internal::Type::BaseModel
143150
# @!attribute user_type
144151
# The type of Account Holder. If the type is "INDIVIDUAL", the "individual"
145152
# attribute will be present. If the type is "BUSINESS" then the "business_entity",
146-
# "control_person", "beneficial_owner_individuals", "nature_of_business", and
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.
148155
#
149156
# @return [Symbol, Lithic::Models::AccountHolder::UserType, nil]
150157
optional :user_type, enum: -> { Lithic::AccountHolder::UserType }
@@ -161,7 +168,7 @@ class AccountHolder < Lithic::Internal::Type::BaseModel
161168
# @return [String, nil]
162169
optional :website_url, String
163170

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)
165172
# Some parameter documentations has been truncated, see
166173
# {Lithic::Models::AccountHolder} for more details.
167174
#
@@ -189,6 +196,8 @@ class AccountHolder < Lithic::Internal::Type::BaseModel
189196
#
190197
# @param individual [Lithic::Models::AccountHolder::Individual] Only present when user_type == "INDIVIDUAL". Information about the individual fo
191198
#
199+
# @param naics_code [String] Only present when user_type == "BUSINESS". 6-digit North American Industry Class
200+
#
192201
# @param nature_of_business [String] Only present when user_type == "BUSINESS". User-submitted description of the bus
193202
#
194203
# @param phone_number [String] (Deprecated. Use control_person.phone_number when user_type == "BUSINESS". Use i
@@ -592,8 +601,8 @@ module StatusReason
592601

593602
# The type of Account Holder. If the type is "INDIVIDUAL", the "individual"
594603
# attribute will be present. If the type is "BUSINESS" then the "business_entity",
595-
# "control_person", "beneficial_owner_individuals", "nature_of_business", and
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.
597606
#
598607
# @see Lithic::Models::AccountHolder#user_type
599608
module UserType

lib/lithic/models/account_holder_create_params.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ class AccountHolderCreateParams < Lithic::Internal::Type::BaseModel
8484
# @return [String, nil]
8585
optional :kyb_passed_timestamp, String
8686

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+
8794
# @!attribute website_url
8895
# Company website URL.
8996
#
@@ -151,7 +158,7 @@ class AccountHolderCreateParams < Lithic::Internal::Type::BaseModel
151158
# @return [String, nil]
152159
optional :business_account_token, String
153160

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: {})
155162
# Some parameter documentations has been truncated, see
156163
# {Lithic::Models::AccountHolderCreateParams} for more details.
157164
#
@@ -187,6 +194,8 @@ class AccountHolderCreateParams < Lithic::Internal::Type::BaseModel
187194
#
188195
# @param kyb_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYB was completed on the busin
189196
#
197+
# @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin
198+
#
190199
# @param website_url [String] Company website URL.
191200
#
192201
# @param kyc_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYC was completed on the indiv

lib/lithic/models/account_holder_simulate_enrollment_review_response.rb

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ class AccountHolderSimulateEnrollmentReviewResponse < Lithic::Internal::Type::Ba
102102
# @return [Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual, nil]
103103
optional :individual, -> { Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual }
104104

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+
105112
# @!attribute nature_of_business
106113
# Only present when user_type == "BUSINESS". User-submitted description of the
107114
# business.
@@ -147,8 +154,8 @@ class AccountHolderSimulateEnrollmentReviewResponse < Lithic::Internal::Type::Ba
147154
# attribute will be present.
148155
#
149156
# If the type is "BUSINESS" then the "business_entity", "control_person",
150-
# "beneficial_owner_individuals", "nature_of_business", and "website_url"
151-
# attributes will be present.
157+
# "beneficial_owner_individuals", "naics_code", "nature_of_business", and
158+
# "website_url" attributes will be present.
152159
#
153160
# @return [Symbol, Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::UserType, nil]
154161
optional :user_type, enum: -> { Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::UserType }
@@ -166,7 +173,7 @@ class AccountHolderSimulateEnrollmentReviewResponse < Lithic::Internal::Type::Ba
166173
# @return [String, nil]
167174
optional :website_url, String
168175

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)
170177
# Some parameter documentations has been truncated, see
171178
# {Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse} for more
172179
# details.
@@ -195,6 +202,8 @@ class AccountHolderSimulateEnrollmentReviewResponse < Lithic::Internal::Type::Ba
195202
#
196203
# @param individual [Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual] Only present when user_type == "INDIVIDUAL". Information about the individual fo
197204
#
205+
# @param naics_code [String] Only present when user_type == "BUSINESS". 6-digit North American Industry Class
206+
#
198207
# @param nature_of_business [String] Only present when user_type == "BUSINESS". User-submitted description of the bus
199208
#
200209
# @param phone_number [String] (Deprecated. Use control_person.phone_number when user_type == "BUSINESS".
@@ -660,8 +669,8 @@ module StatusReason
660669
# attribute will be present.
661670
#
662671
# If the type is "BUSINESS" then the "business_entity", "control_person",
663-
# "beneficial_owner_individuals", "nature_of_business", and "website_url"
664-
# attributes will be present.
672+
# "beneficial_owner_individuals", "naics_code", "nature_of_business", and
673+
# "website_url" attributes will be present.
665674
#
666675
# @see Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse#user_type
667676
module UserType

lib/lithic/models/account_holder_update_params.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ class AccountHolderUpdateParams < Lithic::Internal::Type::BaseModel
5555
# @return [String, nil]
5656
optional :external_id, String
5757

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+
5865
# @!attribute nature_of_business
5966
# Short description of the company's line of business (i.e., what does the company
6067
# do?).
@@ -122,7 +129,7 @@ class AccountHolderUpdateParams < Lithic::Internal::Type::BaseModel
122129
# @return [String, nil]
123130
optional :phone_number, String
124131

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: {})
126133
# Some parameter documentations has been truncated, see
127134
# {Lithic::Models::AccountHolderUpdateParams} for more details.
128135
#
@@ -136,6 +143,8 @@ class AccountHolderUpdateParams < Lithic::Internal::Type::BaseModel
136143
#
137144
# @param external_id [String] A user provided id that can be used to link an account holder with an external s
138145
#
146+
# @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin
147+
#
139148
# @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company
140149
#
141150
# @param website_url [String] Company website URL.

lib/lithic/models/account_holder_update_response.rb

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,13 @@ class KYBKYCPatchResponse < Lithic::Internal::Type::BaseModel
109109
# @return [Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual, nil]
110110
optional :individual, -> { Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual }
111111

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+
112119
# @!attribute nature_of_business
113120
# Only present when user_type == "BUSINESS". User-submitted description of the
114121
# business.
@@ -154,8 +161,8 @@ class KYBKYCPatchResponse < Lithic::Internal::Type::BaseModel
154161
# attribute will be present.
155162
#
156163
# If the type is "BUSINESS" then the "business_entity", "control_person",
157-
# "beneficial_owner_individuals", "nature_of_business", and "website_url"
158-
# attributes will be present.
164+
# "beneficial_owner_individuals", "naics_code", "nature_of_business", and
165+
# "website_url" attributes will be present.
159166
#
160167
# @return [Symbol, Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::UserType, nil]
161168
optional :user_type,
@@ -174,7 +181,7 @@ class KYBKYCPatchResponse < Lithic::Internal::Type::BaseModel
174181
# @return [String, nil]
175182
optional :website_url, String
176183

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)
178185
# Some parameter documentations has been truncated, see
179186
# {Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse} for more
180187
# details.
@@ -203,6 +210,8 @@ class KYBKYCPatchResponse < Lithic::Internal::Type::BaseModel
203210
#
204211
# @param individual [Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual] Only present when user_type == "INDIVIDUAL". Information about the individual fo
205212
#
213+
# @param naics_code [String] Only present when user_type == "BUSINESS". 6-digit North American Industry Class
214+
#
206215
# @param nature_of_business [String] Only present when user_type == "BUSINESS". User-submitted description of the bus
207216
#
208217
# @param phone_number [String] (Deprecated. Use control_person.phone_number when user_type == "BUSINESS".
@@ -668,8 +677,8 @@ module StatusReason
668677
# attribute will be present.
669678
#
670679
# If the type is "BUSINESS" then the "business_entity", "control_person",
671-
# "beneficial_owner_individuals", "nature_of_business", and "website_url"
672-
# attributes will be present.
680+
# "beneficial_owner_individuals", "naics_code", "nature_of_business", and
681+
# "website_url" attributes will be present.
673682
#
674683
# @see Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse#user_type
675684
module UserType

lib/lithic/models/account_holder_updated_webhook_event.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ class KYBPayload < Lithic::Internal::Type::BaseModel
4141
# @return [String, nil]
4242
optional :external_id, String
4343

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+
4451
# @!attribute nature_of_business
4552
# Short description of the company's line of business (i.e., what does the company
4653
# do?).
@@ -54,7 +61,7 @@ class KYBPayload < Lithic::Internal::Type::BaseModel
5461
# @return [String, nil]
5562
optional :website_url, String
5663

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)
5865
# Some parameter documentations has been truncated, see
5966
# {Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload} for more details.
6067
#
@@ -68,6 +75,8 @@ class KYBPayload < Lithic::Internal::Type::BaseModel
6875
#
6976
# @param external_id [String] A user provided id that can be used to link an account holder with an external s
7077
#
78+
# @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin
79+
#
7180
# @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company
7281
#
7382
# @param website_url [String] Company website URL.

lib/lithic/models/kyb.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,20 @@ class KYB < Lithic::Internal::Type::BaseModel
8181
# @return [String, nil]
8282
optional :kyb_passed_timestamp, String
8383

84+
# @!attribute naics_code
85+
# 6-digit North American Industry Classification System (NAICS) code for the
86+
# business.
87+
#
88+
# @return [String, nil]
89+
optional :naics_code, String
90+
8491
# @!attribute website_url
8592
# Company website URL.
8693
#
8794
# @return [String, nil]
8895
optional :website_url, String
8996

90-
# @!method initialize(beneficial_owner_individuals:, business_entity:, control_person:, nature_of_business:, tos_timestamp:, workflow:, beneficial_owner_entities: nil, external_id: nil, kyb_passed_timestamp: nil, website_url: nil)
97+
# @!method initialize(beneficial_owner_individuals:, business_entity:, control_person:, nature_of_business:, tos_timestamp:, workflow:, beneficial_owner_entities: nil, external_id: nil, kyb_passed_timestamp: nil, naics_code: nil, website_url: nil)
9198
# Some parameter documentations has been truncated, see {Lithic::Models::KYB} for
9299
# more details.
93100
#
@@ -109,6 +116,8 @@ class KYB < Lithic::Internal::Type::BaseModel
109116
#
110117
# @param kyb_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYB was completed on the busin
111118
#
119+
# @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin
120+
#
112121
# @param website_url [String] Company website URL.
113122

114123
class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel

0 commit comments

Comments
 (0)