Skip to content

Commit 1128d8d

Browse files
fix(types): make external_id, naics_code nullable in enrollment, parent_company in kyb
1 parent 8fc02b0 commit 1128d8d

7 files changed

Lines changed: 29 additions & 44 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 194
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-55d6cdcb852320054c00ae49deb0e42c086bdb82ada1ab7ac1bbbbc7c7cc0eeb.yml
3-
openapi_spec_hash: 71f86153c543bc60978d55b8a2634674
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-711671459efe47bdb250c7ac893569af9b9e1b7c60ded53a77627be76e300a02.yml
3+
openapi_spec_hash: 193dc8a880e100bb74b493de7d4703e1
44
config_hash: 1c5c139a2aa0d1d45c063f953a9bc803

lib/lithic/models/account_holder_simulate_enrollment_review_response.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class AccountHolderSimulateEnrollmentReviewResponse < Lithic::Internal::Type::Ba
8888
# the Lithic ecosystem.
8989
#
9090
# @return [String, nil]
91-
optional :external_id, String
91+
optional :external_id, String, nil?: true
9292

9393
# @!attribute individual
9494
# Only present when user_type == "INDIVIDUAL". Information about the individual
@@ -102,7 +102,7 @@ class AccountHolderSimulateEnrollmentReviewResponse < Lithic::Internal::Type::Ba
102102
# Classification System (NAICS) code for the business.
103103
#
104104
# @return [String, nil]
105-
optional :naics_code, String
105+
optional :naics_code, String, nil?: true
106106

107107
# @!attribute nature_of_business
108108
# Only present when user_type == "BUSINESS". User-submitted description of the
@@ -191,11 +191,11 @@ class AccountHolderSimulateEnrollmentReviewResponse < Lithic::Internal::Type::Ba
191191
#
192192
# @param exemption_type [Symbol, Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ExemptionType, nil] The type of KYC exemption for a KYC-Exempt Account Holder. `null` if the account
193193
#
194-
# @param external_id [String] Customer-provided token that indicates a relationship with an object outside of
194+
# @param external_id [String, nil] Customer-provided token that indicates a relationship with an object outside of
195195
#
196196
# @param individual [Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual] Only present when user_type == "INDIVIDUAL". Information about the individual fo
197197
#
198-
# @param naics_code [String] Only present when user_type == "BUSINESS". 6-digit North American Industry Class
198+
# @param naics_code [String, nil] Only present when user_type == "BUSINESS". 6-digit North American Industry Class
199199
#
200200
# @param nature_of_business [String] Only present when user_type == "BUSINESS". User-submitted description of the bus
201201
#

lib/lithic/models/kyb_business_entity.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class KYBBusinessEntity < Lithic::Internal::Type::BaseModel
4242
# Parent company name (if applicable).
4343
#
4444
# @return [String, nil]
45-
optional :parent_company, String
45+
optional :parent_company, String, nil?: true
4646

4747
# @!method initialize(address:, government_id:, legal_business_name:, phone_numbers:, dba_business_name: nil, parent_company: nil)
4848
# Some parameter documentations has been truncated, see
@@ -58,7 +58,7 @@ class KYBBusinessEntity < Lithic::Internal::Type::BaseModel
5858
#
5959
# @param dba_business_name [String] Any name that the business operates under that is not its legal business name (i
6060
#
61-
# @param parent_company [String] Parent company name (if applicable).
61+
# @param parent_company [String, nil] Parent company name (if applicable).
6262

6363
# @see Lithic::Models::KYBBusinessEntity#address
6464
class Address < Lithic::Internal::Type::BaseModel

rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,7 @@ module Lithic
124124
# Customer-provided token that indicates a relationship with an object outside of
125125
# the Lithic ecosystem.
126126
sig { returns(T.nilable(String)) }
127-
attr_reader :external_id
128-
129-
sig { params(external_id: String).void }
130-
attr_writer :external_id
127+
attr_accessor :external_id
131128

132129
# Only present when user_type == "INDIVIDUAL". Information about the individual
133130
# for which the account is being opened and KYC is being run.
@@ -151,10 +148,7 @@ module Lithic
151148
# Only present when user_type == "BUSINESS". 6-digit North American Industry
152149
# Classification System (NAICS) code for the business.
153150
sig { returns(T.nilable(String)) }
154-
attr_reader :naics_code
155-
156-
sig { params(naics_code: String).void }
157-
attr_writer :naics_code
151+
attr_accessor :naics_code
158152

159153
# Only present when user_type == "BUSINESS". User-submitted description of the
160154
# business.
@@ -296,10 +290,10 @@ module Lithic
296290
T.nilable(
297291
Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ExemptionType::OrSymbol
298292
),
299-
external_id: String,
293+
external_id: T.nilable(String),
300294
individual:
301295
Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual::OrHash,
302-
naics_code: String,
296+
naics_code: T.nilable(String),
303297
nature_of_business: String,
304298
phone_number: String,
305299
required_documents: T::Array[Lithic::RequiredDocument::OrHash],
@@ -417,10 +411,10 @@ module Lithic
417411
T.nilable(
418412
Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ExemptionType::TaggedSymbol
419413
),
420-
external_id: String,
414+
external_id: T.nilable(String),
421415
individual:
422416
Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual,
423-
naics_code: String,
417+
naics_code: T.nilable(String),
424418
nature_of_business: String,
425419
phone_number: String,
426420
required_documents: T::Array[Lithic::RequiredDocument],

rbi/lithic/models/kyb_business_entity.rbi

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ module Lithic
4141

4242
# Parent company name (if applicable).
4343
sig { returns(T.nilable(String)) }
44-
attr_reader :parent_company
45-
46-
sig { params(parent_company: String).void }
47-
attr_writer :parent_company
44+
attr_accessor :parent_company
4845

4946
sig do
5047
params(
@@ -53,7 +50,7 @@ module Lithic
5350
legal_business_name: String,
5451
phone_numbers: T::Array[String],
5552
dba_business_name: String,
56-
parent_company: String
53+
parent_company: T.nilable(String)
5754
).returns(T.attached_class)
5855
end
5956
def self.new(
@@ -85,7 +82,7 @@ module Lithic
8582
legal_business_name: String,
8683
phone_numbers: T::Array[String],
8784
dba_business_name: String,
88-
parent_company: String
85+
parent_company: T.nilable(String)
8986
}
9087
)
9188
end

sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ module Lithic
1111
created: Time,
1212
email: String,
1313
exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type?,
14-
external_id: String,
14+
external_id: String?,
1515
individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual,
16-
naics_code: String,
16+
naics_code: String?,
1717
nature_of_business: String,
1818
phone_number: String,
1919
required_documents: ::Array[Lithic::RequiredDocument],
@@ -63,19 +63,15 @@ module Lithic
6363

6464
attr_accessor exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type?
6565

66-
attr_reader external_id: String?
67-
68-
def external_id=: (String) -> String
66+
attr_accessor external_id: String?
6967

7068
attr_reader individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual?
7169

7270
def individual=: (
7371
Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual
7472
) -> Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual
7573

76-
attr_reader naics_code: String?
77-
78-
def naics_code=: (String) -> String
74+
attr_accessor naics_code: String?
7975

8076
attr_reader nature_of_business: String?
8177

@@ -129,9 +125,9 @@ module Lithic
129125
?created: Time,
130126
?email: String,
131127
?exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type?,
132-
?external_id: String,
128+
?external_id: String?,
133129
?individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual,
134-
?naics_code: String,
130+
?naics_code: String?,
135131
?nature_of_business: String,
136132
?phone_number: String,
137133
?required_documents: ::Array[Lithic::RequiredDocument],
@@ -152,9 +148,9 @@ module Lithic
152148
created: Time,
153149
email: String,
154150
exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type?,
155-
external_id: String,
151+
external_id: String?,
156152
individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual,
157-
naics_code: String,
153+
naics_code: String?,
158154
nature_of_business: String,
159155
phone_number: String,
160156
required_documents: ::Array[Lithic::RequiredDocument],

sig/lithic/models/kyb_business_entity.rbs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module Lithic
77
legal_business_name: String,
88
phone_numbers: ::Array[String],
99
dba_business_name: String,
10-
parent_company: String
10+
parent_company: String?
1111
}
1212

1313
class KYBBusinessEntity < Lithic::Internal::Type::BaseModel
@@ -23,17 +23,15 @@ module Lithic
2323

2424
def dba_business_name=: (String) -> String
2525

26-
attr_reader parent_company: String?
27-
28-
def parent_company=: (String) -> String
26+
attr_accessor parent_company: String?
2927

3028
def initialize: (
3129
address: Lithic::KYBBusinessEntity::Address,
3230
government_id: String,
3331
legal_business_name: String,
3432
phone_numbers: ::Array[String],
3533
?dba_business_name: String,
36-
?parent_company: String
34+
?parent_company: String?
3735
) -> void
3836

3937
def to_hash: -> {
@@ -42,7 +40,7 @@ module Lithic
4240
legal_business_name: String,
4341
phone_numbers: ::Array[String],
4442
dba_business_name: String,
45-
parent_company: String
43+
parent_company: String?
4644
}
4745

4846
type address =

0 commit comments

Comments
 (0)