diff --git a/.release-please-manifest.json b/.release-please-manifest.json index da59f99e..2aca35ae 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.4.0" + ".": "0.5.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 0080147f..2c43cb20 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 176 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-ce2adff9b644ed4562b5342a4a43d0b40c98d43b4e063b4626f4ca5d342f1b92.yml -openapi_spec_hash: fbc84b866ce96457261ac58b4e75c71d -config_hash: 31d71922d7838f34ae0875c9b8026d99 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-05d665e9c7e81d85c0d6629bf3898e2eb221268d677b772ef3da3891b25d8346.yml +openapi_spec_hash: fd8900412ab9a393719dba3669d44d3a +config_hash: faacaff68ffb3a4d051f0a7b8442e099 diff --git a/CHANGELOG.md b/CHANGELOG.md index a22b615b..7ef4c607 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 0.5.0 (2026-01-30) + +Full Changelog: [v0.4.0...v0.5.0](https://github.com/lithic-com/lithic-ruby/compare/v0.4.0...v0.5.0) + +### Features + +* **api:** Add naics_code to account holder requests/responses ([76b507b](https://github.com/lithic-com/lithic-ruby/commit/76b507bf26f50ac5be4cd8210e781435a5d8bd0f)) + + +### Chores + +* configure new SDK language ([8192e34](https://github.com/lithic-com/lithic-ruby/commit/8192e34c05ef27263d1e3490092035c9e316c986)) +* Enable stainless MCP in config ([03570d6](https://github.com/lithic-com/lithic-ruby/commit/03570d6a7cde12dc24f4a4237ea4d0042d215817)) + ## 0.4.0 (2026-01-27) Full Changelog: [v0.3.0...v0.4.0](https://github.com/lithic-com/lithic-ruby/compare/v0.3.0...v0.4.0) diff --git a/Gemfile.lock b/Gemfile.lock index b3ae62c1..5effaf10 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -18,7 +18,7 @@ GIT PATH remote: . specs: - lithic (0.4.0) + lithic (0.5.0) cgi connection_pool diff --git a/README.md b/README.md index 69d956a4..1923f494 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,15 @@ 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. +## MCP Server + +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. + +[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=lithic-mcp&config=eyJuYW1lIjoibGl0aGljLW1jcCIsInRyYW5zcG9ydCI6Imh0dHAiLCJ1cmwiOiJodHRwczovL2xpdGhpYy5zdGxtY3AuY29tIiwiaGVhZGVycyI6eyJ4LWxpdGhpYy1hcGkta2V5IjoiTXkgTGl0aGljIEFQSSBLZXkifX0) +[![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](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) + +> Note: You may need to set environment variables in your MCP client. + ## Documentation 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 ```ruby -gem "lithic", "~> 0.4.0" +gem "lithic", "~> 0.5.0" ``` diff --git a/lib/lithic/models/account_holder.rb b/lib/lithic/models/account_holder.rb index 3366b646..f3ae2686 100644 --- a/lib/lithic/models/account_holder.rb +++ b/lib/lithic/models/account_holder.rb @@ -97,6 +97,13 @@ class AccountHolder < Lithic::Internal::Type::BaseModel # @return [Lithic::Models::AccountHolder::Individual, nil] optional :individual, -> { Lithic::AccountHolder::Individual } + # @!attribute naics_code + # Only present when user_type == "BUSINESS". 6-digit North American Industry + # Classification System (NAICS) code for the business. + # + # @return [String, nil] + optional :naics_code, String + # @!attribute nature_of_business # Only present when user_type == "BUSINESS". User-submitted description of the # business. @@ -143,8 +150,8 @@ class AccountHolder < Lithic::Internal::Type::BaseModel # @!attribute user_type # The type of Account Holder. If the type is "INDIVIDUAL", the "individual" # attribute will be present. If the type is "BUSINESS" then the "business_entity", - # "control_person", "beneficial_owner_individuals", "nature_of_business", and - # "website_url" attributes will be present. + # "control_person", "beneficial_owner_individuals", "naics_code", + # "nature_of_business", and "website_url" attributes will be present. # # @return [Symbol, Lithic::Models::AccountHolder::UserType, nil] optional :user_type, enum: -> { Lithic::AccountHolder::UserType } @@ -161,7 +168,7 @@ class AccountHolder < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :website_url, String - # @!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) + # @!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) # Some parameter documentations has been truncated, see # {Lithic::Models::AccountHolder} for more details. # @@ -189,6 +196,8 @@ class AccountHolder < Lithic::Internal::Type::BaseModel # # @param individual [Lithic::Models::AccountHolder::Individual] Only present when user_type == "INDIVIDUAL". Information about the individual fo # + # @param naics_code [String] Only present when user_type == "BUSINESS". 6-digit North American Industry Class + # # @param nature_of_business [String] Only present when user_type == "BUSINESS". User-submitted description of the bus # # @param phone_number [String] (Deprecated. Use control_person.phone_number when user_type == "BUSINESS". Use i @@ -592,8 +601,8 @@ module StatusReason # The type of Account Holder. If the type is "INDIVIDUAL", the "individual" # attribute will be present. If the type is "BUSINESS" then the "business_entity", - # "control_person", "beneficial_owner_individuals", "nature_of_business", and - # "website_url" attributes will be present. + # "control_person", "beneficial_owner_individuals", "naics_code", + # "nature_of_business", and "website_url" attributes will be present. # # @see Lithic::Models::AccountHolder#user_type module UserType diff --git a/lib/lithic/models/account_holder_create_params.rb b/lib/lithic/models/account_holder_create_params.rb index f5bf456d..f47f1bb8 100644 --- a/lib/lithic/models/account_holder_create_params.rb +++ b/lib/lithic/models/account_holder_create_params.rb @@ -84,6 +84,13 @@ class AccountHolderCreateParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :kyb_passed_timestamp, String + # @!attribute naics_code + # 6-digit North American Industry Classification System (NAICS) code for the + # business. + # + # @return [String, nil] + optional :naics_code, String + # @!attribute website_url # Company website URL. # @@ -151,7 +158,7 @@ class AccountHolderCreateParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :business_account_token, String - # @!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: {}) + # @!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: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::AccountHolderCreateParams} for more details. # @@ -187,6 +194,8 @@ class AccountHolderCreateParams < Lithic::Internal::Type::BaseModel # # @param kyb_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYB was completed on the busin # + # @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin + # # @param website_url [String] Company website URL. # # @param kyc_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYC was completed on the indiv diff --git a/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb b/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb index 7717a20e..2503f308 100644 --- a/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +++ b/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb @@ -102,6 +102,13 @@ class AccountHolderSimulateEnrollmentReviewResponse < Lithic::Internal::Type::Ba # @return [Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual, nil] optional :individual, -> { Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual } + # @!attribute naics_code + # Only present when user_type == "BUSINESS". 6-digit North American Industry + # Classification System (NAICS) code for the business. + # + # @return [String, nil] + optional :naics_code, String + # @!attribute nature_of_business # Only present when user_type == "BUSINESS". User-submitted description of the # business. @@ -147,8 +154,8 @@ class AccountHolderSimulateEnrollmentReviewResponse < Lithic::Internal::Type::Ba # attribute will be present. # # If the type is "BUSINESS" then the "business_entity", "control_person", - # "beneficial_owner_individuals", "nature_of_business", and "website_url" - # attributes will be present. + # "beneficial_owner_individuals", "naics_code", "nature_of_business", and + # "website_url" attributes will be present. # # @return [Symbol, Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::UserType, nil] optional :user_type, enum: -> { Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::UserType } @@ -166,7 +173,7 @@ class AccountHolderSimulateEnrollmentReviewResponse < Lithic::Internal::Type::Ba # @return [String, nil] optional :website_url, String - # @!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) + # @!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) # Some parameter documentations has been truncated, see # {Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse} for more # details. @@ -195,6 +202,8 @@ class AccountHolderSimulateEnrollmentReviewResponse < Lithic::Internal::Type::Ba # # @param individual [Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual] Only present when user_type == "INDIVIDUAL". Information about the individual fo # + # @param naics_code [String] Only present when user_type == "BUSINESS". 6-digit North American Industry Class + # # @param nature_of_business [String] Only present when user_type == "BUSINESS". User-submitted description of the bus # # @param phone_number [String] (Deprecated. Use control_person.phone_number when user_type == "BUSINESS". @@ -660,8 +669,8 @@ module StatusReason # attribute will be present. # # If the type is "BUSINESS" then the "business_entity", "control_person", - # "beneficial_owner_individuals", "nature_of_business", and "website_url" - # attributes will be present. + # "beneficial_owner_individuals", "naics_code", "nature_of_business", and + # "website_url" attributes will be present. # # @see Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse#user_type module UserType diff --git a/lib/lithic/models/account_holder_update_params.rb b/lib/lithic/models/account_holder_update_params.rb index 4b81019e..6a354fb0 100644 --- a/lib/lithic/models/account_holder_update_params.rb +++ b/lib/lithic/models/account_holder_update_params.rb @@ -55,6 +55,13 @@ class AccountHolderUpdateParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :external_id, String + # @!attribute naics_code + # 6-digit North American Industry Classification System (NAICS) code for the + # business. + # + # @return [String, nil] + optional :naics_code, String + # @!attribute nature_of_business # Short description of the company's line of business (i.e., what does the company # do?). @@ -122,7 +129,7 @@ class AccountHolderUpdateParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :phone_number, String - # @!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: {}) + # @!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: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::AccountHolderUpdateParams} for more details. # @@ -136,6 +143,8 @@ class AccountHolderUpdateParams < Lithic::Internal::Type::BaseModel # # @param external_id [String] A user provided id that can be used to link an account holder with an external s # + # @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin + # # @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company # # @param website_url [String] Company website URL. diff --git a/lib/lithic/models/account_holder_update_response.rb b/lib/lithic/models/account_holder_update_response.rb index 04b9d1fd..e9b8e8fb 100644 --- a/lib/lithic/models/account_holder_update_response.rb +++ b/lib/lithic/models/account_holder_update_response.rb @@ -109,6 +109,13 @@ class KYBKYCPatchResponse < Lithic::Internal::Type::BaseModel # @return [Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual, nil] optional :individual, -> { Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual } + # @!attribute naics_code + # Only present when user_type == "BUSINESS". 6-digit North American Industry + # Classification System (NAICS) code for the business. + # + # @return [String, nil] + optional :naics_code, String + # @!attribute nature_of_business # Only present when user_type == "BUSINESS". User-submitted description of the # business. @@ -154,8 +161,8 @@ class KYBKYCPatchResponse < Lithic::Internal::Type::BaseModel # attribute will be present. # # If the type is "BUSINESS" then the "business_entity", "control_person", - # "beneficial_owner_individuals", "nature_of_business", and "website_url" - # attributes will be present. + # "beneficial_owner_individuals", "naics_code", "nature_of_business", and + # "website_url" attributes will be present. # # @return [Symbol, Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::UserType, nil] optional :user_type, @@ -174,7 +181,7 @@ class KYBKYCPatchResponse < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :website_url, String - # @!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) + # @!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) # Some parameter documentations has been truncated, see # {Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse} for more # details. @@ -203,6 +210,8 @@ class KYBKYCPatchResponse < Lithic::Internal::Type::BaseModel # # @param individual [Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual] Only present when user_type == "INDIVIDUAL". Information about the individual fo # + # @param naics_code [String] Only present when user_type == "BUSINESS". 6-digit North American Industry Class + # # @param nature_of_business [String] Only present when user_type == "BUSINESS". User-submitted description of the bus # # @param phone_number [String] (Deprecated. Use control_person.phone_number when user_type == "BUSINESS". @@ -668,8 +677,8 @@ module StatusReason # attribute will be present. # # If the type is "BUSINESS" then the "business_entity", "control_person", - # "beneficial_owner_individuals", "nature_of_business", and "website_url" - # attributes will be present. + # "beneficial_owner_individuals", "naics_code", "nature_of_business", and + # "website_url" attributes will be present. # # @see Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse#user_type module UserType diff --git a/lib/lithic/models/account_holder_updated_webhook_event.rb b/lib/lithic/models/account_holder_updated_webhook_event.rb index 70a7ec84..73c8e16a 100644 --- a/lib/lithic/models/account_holder_updated_webhook_event.rb +++ b/lib/lithic/models/account_holder_updated_webhook_event.rb @@ -41,6 +41,13 @@ class KYBPayload < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :external_id, String + # @!attribute naics_code + # 6-digit North American Industry Classification System (NAICS) code for the + # business. Only present if naics_code was included in the update request. + # + # @return [String, nil] + optional :naics_code, String + # @!attribute nature_of_business # Short description of the company's line of business (i.e., what does the company # do?). @@ -54,7 +61,7 @@ class KYBPayload < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :website_url, String - # @!method initialize(token:, update_request:, event_type: nil, external_id: nil, nature_of_business: nil, website_url: nil) + # @!method initialize(token:, update_request:, event_type: nil, external_id: nil, naics_code: nil, nature_of_business: nil, website_url: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload} for more details. # @@ -68,6 +75,8 @@ class KYBPayload < Lithic::Internal::Type::BaseModel # # @param external_id [String] A user provided id that can be used to link an account holder with an external s # + # @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin + # # @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company # # @param website_url [String] Company website URL. diff --git a/lib/lithic/models/kyb.rb b/lib/lithic/models/kyb.rb index 1e01db44..1021c701 100644 --- a/lib/lithic/models/kyb.rb +++ b/lib/lithic/models/kyb.rb @@ -81,13 +81,20 @@ class KYB < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :kyb_passed_timestamp, String + # @!attribute naics_code + # 6-digit North American Industry Classification System (NAICS) code for the + # business. + # + # @return [String, nil] + optional :naics_code, String + # @!attribute website_url # Company website URL. # # @return [String, nil] optional :website_url, String - # @!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) + # @!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) # Some parameter documentations has been truncated, see {Lithic::Models::KYB} for # more details. # @@ -109,6 +116,8 @@ class KYB < Lithic::Internal::Type::BaseModel # # @param kyb_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYB was completed on the busin # + # @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin + # # @param website_url [String] Company website URL. class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel diff --git a/lib/lithic/models/parsed_webhook_event.rb b/lib/lithic/models/parsed_webhook_event.rb index b044bcb1..e4731586 100644 --- a/lib/lithic/models/parsed_webhook_event.rb +++ b/lib/lithic/models/parsed_webhook_event.rb @@ -163,6 +163,13 @@ class KYBPayload < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :external_id, String + # @!attribute naics_code + # 6-digit North American Industry Classification System (NAICS) code for the + # business. Only present if naics_code was included in the update request. + # + # @return [String, nil] + optional :naics_code, String + # @!attribute nature_of_business # Short description of the company's line of business (i.e., what does the company # do?). @@ -176,7 +183,7 @@ class KYBPayload < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :website_url, String - # @!method initialize(token:, update_request:, event_type: nil, external_id: nil, nature_of_business: nil, website_url: nil) + # @!method initialize(token:, update_request:, event_type: nil, external_id: nil, naics_code: nil, nature_of_business: nil, website_url: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::ParsedWebhookEvent::KYBPayload} for more details. # @@ -190,6 +197,8 @@ class KYBPayload < Lithic::Internal::Type::BaseModel # # @param external_id [String] A user provided id that can be used to link an account holder with an external s # + # @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin + # # @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company # # @param website_url [String] Company website URL. diff --git a/lib/lithic/resources/account_holders.rb b/lib/lithic/resources/account_holders.rb index 03dc95f2..2f44d2b4 100644 --- a/lib/lithic/resources/account_holders.rb +++ b/lib/lithic/resources/account_holders.rb @@ -15,7 +15,7 @@ class AccountHolders # process. This endpoint can only be used on accounts that are part of the program # that the calling API key manages. # - # @overload create(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: {}) + # @overload create(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: {}) # # @param business_entity [Lithic::Models::AccountHolderCreateParams::BusinessEntity] Information for business for which the account is being opened. # @@ -49,6 +49,8 @@ class AccountHolders # # @param kyb_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYB was completed on the busin # + # @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin + # # @param website_url [String] Company website URL. # # @param kyc_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYC was completed on the indiv @@ -106,7 +108,7 @@ def retrieve(account_holder_token, params = {}) # process. This endpoint can only be used on existing accounts that are part of # the program that the calling API key manages. # - # @overload update(account_holder_token, 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: {}) + # @overload update(account_holder_token, 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: {}) # # @param account_holder_token [String] Globally unique identifier for the account holder. # @@ -120,6 +122,8 @@ def retrieve(account_holder_token, params = {}) # # @param external_id [String] A user provided id that can be used to link an account holder with an external s # + # @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin + # # @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company # # @param website_url [String] Company website URL. diff --git a/lib/lithic/version.rb b/lib/lithic/version.rb index 3586eca7..c18bbd02 100644 --- a/lib/lithic/version.rb +++ b/lib/lithic/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Lithic - VERSION = "0.4.0" + VERSION = "0.5.0" end diff --git a/rbi/lithic/models/account_holder.rbi b/rbi/lithic/models/account_holder.rbi index ce6d7883..00d02f61 100644 --- a/rbi/lithic/models/account_holder.rbi +++ b/rbi/lithic/models/account_holder.rbi @@ -133,6 +133,14 @@ module Lithic sig { params(individual: Lithic::AccountHolder::Individual::OrHash).void } attr_writer :individual + # Only present when user_type == "BUSINESS". 6-digit North American Industry + # Classification System (NAICS) code for the business. + sig { returns(T.nilable(String)) } + attr_reader :naics_code + + sig { params(naics_code: String).void } + attr_writer :naics_code + # Only present when user_type == "BUSINESS". User-submitted description of the # business. sig { returns(T.nilable(String)) } @@ -195,8 +203,8 @@ module Lithic # The type of Account Holder. If the type is "INDIVIDUAL", the "individual" # attribute will be present. If the type is "BUSINESS" then the "business_entity", - # "control_person", "beneficial_owner_individuals", "nature_of_business", and - # "website_url" attributes will be present. + # "control_person", "beneficial_owner_individuals", "naics_code", + # "nature_of_business", and "website_url" attributes will be present. sig { returns(T.nilable(Lithic::AccountHolder::UserType::TaggedSymbol)) } attr_reader :user_type @@ -238,6 +246,7 @@ module Lithic exemption_type: Lithic::AccountHolder::ExemptionType::OrSymbol, external_id: String, individual: Lithic::AccountHolder::Individual::OrHash, + naics_code: String, nature_of_business: String, phone_number: String, required_documents: T::Array[Lithic::RequiredDocument::OrHash], @@ -292,6 +301,9 @@ module Lithic # Only present when user_type == "INDIVIDUAL". Information about the individual # for which the account is being opened and KYC is being run. individual: nil, + # Only present when user_type == "BUSINESS". 6-digit North American Industry + # Classification System (NAICS) code for the business. + naics_code: nil, # Only present when user_type == "BUSINESS". User-submitted description of the # business. nature_of_business: nil, @@ -316,8 +328,8 @@ module Lithic status_reasons: nil, # The type of Account Holder. If the type is "INDIVIDUAL", the "individual" # attribute will be present. If the type is "BUSINESS" then the "business_entity", - # "control_person", "beneficial_owner_individuals", "nature_of_business", and - # "website_url" attributes will be present. + # "control_person", "beneficial_owner_individuals", "naics_code", + # "nature_of_business", and "website_url" attributes will be present. user_type: nil, # Information about the most recent identity verification attempt verification_application: nil, @@ -343,6 +355,7 @@ module Lithic exemption_type: Lithic::AccountHolder::ExemptionType::TaggedSymbol, external_id: String, individual: Lithic::AccountHolder::Individual, + naics_code: String, nature_of_business: String, phone_number: String, required_documents: T::Array[Lithic::RequiredDocument], @@ -959,8 +972,8 @@ module Lithic # The type of Account Holder. If the type is "INDIVIDUAL", the "individual" # attribute will be present. If the type is "BUSINESS" then the "business_entity", - # "control_person", "beneficial_owner_individuals", "nature_of_business", and - # "website_url" attributes will be present. + # "control_person", "beneficial_owner_individuals", "naics_code", + # "nature_of_business", and "website_url" attributes will be present. module UserType extend Lithic::Internal::Type::Enum diff --git a/rbi/lithic/models/account_holder_create_params.rbi b/rbi/lithic/models/account_holder_create_params.rbi index a19dabf5..388db64f 100644 --- a/rbi/lithic/models/account_holder_create_params.rbi +++ b/rbi/lithic/models/account_holder_create_params.rbi @@ -127,6 +127,14 @@ module Lithic sig { params(kyb_passed_timestamp: String).void } attr_writer :kyb_passed_timestamp + # 6-digit North American Industry Classification System (NAICS) code for the + # business. + sig { returns(T.nilable(String)) } + attr_reader :naics_code + + sig { params(naics_code: String).void } + attr_writer :naics_code + # Company website URL. sig { returns(T.nilable(String)) } attr_reader :website_url @@ -222,6 +230,7 @@ module Lithic ], external_id: String, kyb_passed_timestamp: String, + naics_code: String, website_url: String, kyc_passed_timestamp: String, business_account_token: String, @@ -282,6 +291,9 @@ module Lithic # # This field is required only if workflow type is `KYB_BYO`. kyb_passed_timestamp: nil, + # 6-digit North American Industry Classification System (NAICS) code for the + # business. + naics_code: nil, # Company website URL. website_url: nil, # An RFC 3339 timestamp indicating when precomputed KYC was completed on the @@ -315,6 +327,7 @@ module Lithic ], external_id: String, kyb_passed_timestamp: String, + naics_code: String, website_url: String, individual: Lithic::AccountHolderCreateParams::Individual, kyc_passed_timestamp: String, diff --git a/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi b/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi index 0229a2ae..2e06b2fe 100644 --- a/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +++ b/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi @@ -167,6 +167,14 @@ module Lithic end attr_writer :individual + # Only present when user_type == "BUSINESS". 6-digit North American Industry + # Classification System (NAICS) code for the business. + sig { returns(T.nilable(String)) } + attr_reader :naics_code + + sig { params(naics_code: String).void } + attr_writer :naics_code + # Only present when user_type == "BUSINESS". User-submitted description of the # business. sig { returns(T.nilable(String)) } @@ -245,8 +253,8 @@ module Lithic # attribute will be present. # # If the type is "BUSINESS" then the "business_entity", "control_person", - # "beneficial_owner_individuals", "nature_of_business", and "website_url" - # attributes will be present. + # "beneficial_owner_individuals", "naics_code", "nature_of_business", and + # "website_url" attributes will be present. sig do returns( T.nilable( @@ -310,6 +318,7 @@ module Lithic external_id: String, individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual::OrHash, + naics_code: String, nature_of_business: String, phone_number: String, required_documents: T::Array[Lithic::RequiredDocument::OrHash], @@ -374,6 +383,9 @@ module Lithic # Only present when user_type == "INDIVIDUAL". Information about the individual # for which the account is being opened and KYC is being run. individual: nil, + # Only present when user_type == "BUSINESS". 6-digit North American Industry + # Classification System (NAICS) code for the business. + naics_code: nil, # Only present when user_type == "BUSINESS". User-submitted description of the # business. nature_of_business: nil, @@ -397,8 +409,8 @@ module Lithic # attribute will be present. # # If the type is "BUSINESS" then the "business_entity", "control_person", - # "beneficial_owner_individuals", "nature_of_business", and "website_url" - # attributes will be present. + # "beneficial_owner_individuals", "naics_code", "nature_of_business", and + # "website_url" attributes will be present. user_type: nil, # Information about the most recent identity verification attempt verification_application: nil, @@ -428,6 +440,7 @@ module Lithic external_id: String, individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual, + naics_code: String, nature_of_business: String, phone_number: String, required_documents: T::Array[Lithic::RequiredDocument], @@ -1286,8 +1299,8 @@ module Lithic # attribute will be present. # # If the type is "BUSINESS" then the "business_entity", "control_person", - # "beneficial_owner_individuals", "nature_of_business", and "website_url" - # attributes will be present. + # "beneficial_owner_individuals", "naics_code", "nature_of_business", and + # "website_url" attributes will be present. module UserType extend Lithic::Internal::Type::Enum diff --git a/rbi/lithic/models/account_holder_update_params.rbi b/rbi/lithic/models/account_holder_update_params.rbi index 3f1bde29..0f63b1c1 100644 --- a/rbi/lithic/models/account_holder_update_params.rbi +++ b/rbi/lithic/models/account_holder_update_params.rbi @@ -102,6 +102,14 @@ module Lithic sig { params(external_id: String).void } attr_writer :external_id + # 6-digit North American Industry Classification System (NAICS) code for the + # business. + sig { returns(T.nilable(String)) } + attr_reader :naics_code + + sig { params(naics_code: String).void } + attr_writer :naics_code + # Short description of the company's line of business (i.e., what does the company # do?). sig { returns(T.nilable(String)) } @@ -198,6 +206,7 @@ module Lithic control_person: Lithic::AccountHolderUpdateParams::ControlPerson::OrHash, external_id: String, + naics_code: String, nature_of_business: String, website_url: String, individual: Lithic::AccountHolderUpdateParams::Individual::OrHash, @@ -236,6 +245,9 @@ module Lithic # A user provided id that can be used to link an account holder with an external # system external_id: nil, + # 6-digit North American Industry Classification System (NAICS) code for the + # business. + naics_code: nil, # Short description of the company's line of business (i.e., what does the company # do?). nature_of_business: nil, @@ -281,6 +293,7 @@ module Lithic business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity, control_person: Lithic::AccountHolderUpdateParams::ControlPerson, external_id: String, + naics_code: String, nature_of_business: String, website_url: String, individual: Lithic::AccountHolderUpdateParams::Individual, diff --git a/rbi/lithic/models/account_holder_update_response.rbi b/rbi/lithic/models/account_holder_update_response.rbi index 3a7b75c9..06b08dca 100644 --- a/rbi/lithic/models/account_holder_update_response.rbi +++ b/rbi/lithic/models/account_holder_update_response.rbi @@ -179,6 +179,14 @@ module Lithic end attr_writer :individual + # Only present when user_type == "BUSINESS". 6-digit North American Industry + # Classification System (NAICS) code for the business. + sig { returns(T.nilable(String)) } + attr_reader :naics_code + + sig { params(naics_code: String).void } + attr_writer :naics_code + # Only present when user_type == "BUSINESS". User-submitted description of the # business. sig { returns(T.nilable(String)) } @@ -257,8 +265,8 @@ module Lithic # attribute will be present. # # If the type is "BUSINESS" then the "business_entity", "control_person", - # "beneficial_owner_individuals", "nature_of_business", and "website_url" - # attributes will be present. + # "beneficial_owner_individuals", "naics_code", "nature_of_business", and + # "website_url" attributes will be present. sig do returns( T.nilable( @@ -322,6 +330,7 @@ module Lithic external_id: String, individual: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual::OrHash, + naics_code: String, nature_of_business: String, phone_number: String, required_documents: T::Array[Lithic::RequiredDocument::OrHash], @@ -386,6 +395,9 @@ module Lithic # Only present when user_type == "INDIVIDUAL". Information about the individual # for which the account is being opened and KYC is being run. individual: nil, + # Only present when user_type == "BUSINESS". 6-digit North American Industry + # Classification System (NAICS) code for the business. + naics_code: nil, # Only present when user_type == "BUSINESS". User-submitted description of the # business. nature_of_business: nil, @@ -409,8 +421,8 @@ module Lithic # attribute will be present. # # If the type is "BUSINESS" then the "business_entity", "control_person", - # "beneficial_owner_individuals", "nature_of_business", and "website_url" - # attributes will be present. + # "beneficial_owner_individuals", "naics_code", "nature_of_business", and + # "website_url" attributes will be present. user_type: nil, # Information about the most recent identity verification attempt verification_application: nil, @@ -440,6 +452,7 @@ module Lithic external_id: String, individual: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual, + naics_code: String, nature_of_business: String, phone_number: String, required_documents: T::Array[Lithic::RequiredDocument], @@ -1298,8 +1311,8 @@ module Lithic # attribute will be present. # # If the type is "BUSINESS" then the "business_entity", "control_person", - # "beneficial_owner_individuals", "nature_of_business", and "website_url" - # attributes will be present. + # "beneficial_owner_individuals", "naics_code", "nature_of_business", and + # "website_url" attributes will be present. module UserType extend Lithic::Internal::Type::Enum diff --git a/rbi/lithic/models/account_holder_updated_webhook_event.rbi b/rbi/lithic/models/account_holder_updated_webhook_event.rbi index 8e7f9603..15d0a4ce 100644 --- a/rbi/lithic/models/account_holder_updated_webhook_event.rbi +++ b/rbi/lithic/models/account_holder_updated_webhook_event.rbi @@ -70,6 +70,14 @@ module Lithic sig { params(external_id: String).void } attr_writer :external_id + # 6-digit North American Industry Classification System (NAICS) code for the + # business. Only present if naics_code was included in the update request. + sig { returns(T.nilable(String)) } + attr_reader :naics_code + + sig { params(naics_code: String).void } + attr_writer :naics_code + # Short description of the company's line of business (i.e., what does the company # do?). sig { returns(T.nilable(String)) } @@ -94,6 +102,7 @@ module Lithic event_type: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::EventType::OrSymbol, external_id: String, + naics_code: String, nature_of_business: String, website_url: String ).returns(T.attached_class) @@ -108,6 +117,9 @@ module Lithic # A user provided id that can be used to link an account holder with an external # system external_id: nil, + # 6-digit North American Industry Classification System (NAICS) code for the + # business. Only present if naics_code was included in the update request. + naics_code: nil, # Short description of the company's line of business (i.e., what does the company # do?). nature_of_business: nil, @@ -125,6 +137,7 @@ module Lithic event_type: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::EventType::TaggedSymbol, external_id: String, + naics_code: String, nature_of_business: String, website_url: String } diff --git a/rbi/lithic/models/kyb.rbi b/rbi/lithic/models/kyb.rbi index be98accf..81060ed8 100644 --- a/rbi/lithic/models/kyb.rbi +++ b/rbi/lithic/models/kyb.rbi @@ -81,6 +81,14 @@ module Lithic sig { params(kyb_passed_timestamp: String).void } attr_writer :kyb_passed_timestamp + # 6-digit North American Industry Classification System (NAICS) code for the + # business. + sig { returns(T.nilable(String)) } + attr_reader :naics_code + + sig { params(naics_code: String).void } + attr_writer :naics_code + # Company website URL. sig { returns(T.nilable(String)) } attr_reader :website_url @@ -101,6 +109,7 @@ module Lithic T::Array[Lithic::KYB::BeneficialOwnerEntity::OrHash], external_id: String, kyb_passed_timestamp: String, + naics_code: String, website_url: String ).returns(T.attached_class) end @@ -143,6 +152,9 @@ module Lithic # # This field is required only if workflow type is `KYB_BYO`. kyb_passed_timestamp: nil, + # 6-digit North American Industry Classification System (NAICS) code for the + # business. + naics_code: nil, # Company website URL. website_url: nil ) @@ -162,6 +174,7 @@ module Lithic T::Array[Lithic::KYB::BeneficialOwnerEntity], external_id: String, kyb_passed_timestamp: String, + naics_code: String, website_url: String } ) diff --git a/rbi/lithic/models/parsed_webhook_event.rbi b/rbi/lithic/models/parsed_webhook_event.rbi index 5265312d..9dbd4c3c 100644 --- a/rbi/lithic/models/parsed_webhook_event.rbi +++ b/rbi/lithic/models/parsed_webhook_event.rbi @@ -121,6 +121,14 @@ module Lithic sig { params(external_id: String).void } attr_writer :external_id + # 6-digit North American Industry Classification System (NAICS) code for the + # business. Only present if naics_code was included in the update request. + sig { returns(T.nilable(String)) } + attr_reader :naics_code + + sig { params(naics_code: String).void } + attr_writer :naics_code + # Short description of the company's line of business (i.e., what does the company # do?). sig { returns(T.nilable(String)) } @@ -145,6 +153,7 @@ module Lithic event_type: Lithic::ParsedWebhookEvent::KYBPayload::EventType::OrSymbol, external_id: String, + naics_code: String, nature_of_business: String, website_url: String ).returns(T.attached_class) @@ -159,6 +168,9 @@ module Lithic # A user provided id that can be used to link an account holder with an external # system external_id: nil, + # 6-digit North American Industry Classification System (NAICS) code for the + # business. Only present if naics_code was included in the update request. + naics_code: nil, # Short description of the company's line of business (i.e., what does the company # do?). nature_of_business: nil, @@ -176,6 +188,7 @@ module Lithic event_type: Lithic::ParsedWebhookEvent::KYBPayload::EventType::TaggedSymbol, external_id: String, + naics_code: String, nature_of_business: String, website_url: String } diff --git a/rbi/lithic/resources/account_holders.rbi b/rbi/lithic/resources/account_holders.rbi index 678325ca..04c8d74c 100644 --- a/rbi/lithic/resources/account_holders.rbi +++ b/rbi/lithic/resources/account_holders.rbi @@ -38,6 +38,7 @@ module Lithic ], external_id: String, kyb_passed_timestamp: String, + naics_code: String, website_url: String, kyc_passed_timestamp: String, business_account_token: String, @@ -98,6 +99,9 @@ module Lithic # # This field is required only if workflow type is `KYB_BYO`. kyb_passed_timestamp: nil, + # 6-digit North American Industry Classification System (NAICS) code for the + # business. + naics_code: nil, # Company website URL. website_url: nil, # An RFC 3339 timestamp indicating when precomputed KYC was completed on the @@ -154,6 +158,7 @@ module Lithic control_person: Lithic::AccountHolderUpdateParams::ControlPerson::OrHash, external_id: String, + naics_code: String, nature_of_business: String, website_url: String, individual: Lithic::AccountHolderUpdateParams::Individual::OrHash, @@ -194,6 +199,9 @@ module Lithic # A user provided id that can be used to link an account holder with an external # system external_id: nil, + # 6-digit North American Industry Classification System (NAICS) code for the + # business. + naics_code: nil, # Short description of the company's line of business (i.e., what does the company # do?). nature_of_business: nil, diff --git a/sig/lithic/models/account_holder.rbs b/sig/lithic/models/account_holder.rbs index 4e4dfd7d..47d6d6d9 100644 --- a/sig/lithic/models/account_holder.rbs +++ b/sig/lithic/models/account_holder.rbs @@ -14,6 +14,7 @@ module Lithic exemption_type: Lithic::Models::AccountHolder::exemption_type, external_id: String, individual: Lithic::AccountHolder::Individual, + naics_code: String, nature_of_business: String, phone_number: String, required_documents: ::Array[Lithic::RequiredDocument], @@ -81,6 +82,10 @@ module Lithic Lithic::AccountHolder::Individual ) -> Lithic::AccountHolder::Individual + attr_reader naics_code: String? + + def naics_code=: (String) -> String + attr_reader nature_of_business: String? def nature_of_business=: (String) -> String @@ -136,6 +141,7 @@ module Lithic ?exemption_type: Lithic::Models::AccountHolder::exemption_type, ?external_id: String, ?individual: Lithic::AccountHolder::Individual, + ?naics_code: String, ?nature_of_business: String, ?phone_number: String, ?required_documents: ::Array[Lithic::RequiredDocument], @@ -159,6 +165,7 @@ module Lithic exemption_type: Lithic::Models::AccountHolder::exemption_type, external_id: String, individual: Lithic::AccountHolder::Individual, + naics_code: String, nature_of_business: String, phone_number: String, required_documents: ::Array[Lithic::RequiredDocument], diff --git a/sig/lithic/models/account_holder_create_params.rbs b/sig/lithic/models/account_holder_create_params.rbs index c6458532..be3a2178 100644 --- a/sig/lithic/models/account_holder_create_params.rbs +++ b/sig/lithic/models/account_holder_create_params.rbs @@ -11,6 +11,7 @@ module Lithic beneficial_owner_entities: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerEntity], external_id: String, kyb_passed_timestamp: String, + naics_code: String, website_url: String, individual: Lithic::AccountHolderCreateParams::Individual, kyc_passed_timestamp: String, @@ -64,6 +65,10 @@ module Lithic def kyb_passed_timestamp=: (String) -> String + attr_reader naics_code: String? + + def naics_code=: (String) -> String + attr_reader website_url: String? def website_url=: (String) -> String @@ -107,6 +112,7 @@ module Lithic ?beneficial_owner_entities: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerEntity], ?external_id: String, ?kyb_passed_timestamp: String, + ?naics_code: String, ?website_url: String, ?kyc_passed_timestamp: String, ?business_account_token: String, @@ -123,6 +129,7 @@ module Lithic beneficial_owner_entities: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerEntity], external_id: String, kyb_passed_timestamp: String, + naics_code: String, website_url: String, individual: Lithic::AccountHolderCreateParams::Individual, kyc_passed_timestamp: String, diff --git a/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs b/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs index ce4c78c3..4bc478ae 100644 --- a/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +++ b/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs @@ -14,6 +14,7 @@ module Lithic exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type, external_id: String, individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual, + naics_code: String, nature_of_business: String, phone_number: String, required_documents: ::Array[Lithic::RequiredDocument], @@ -83,6 +84,10 @@ module Lithic Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual ) -> Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual + attr_reader naics_code: String? + + def naics_code=: (String) -> String + attr_reader nature_of_business: String? def nature_of_business=: (String) -> String @@ -138,6 +143,7 @@ module Lithic ?exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type, ?external_id: String, ?individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual, + ?naics_code: String, ?nature_of_business: String, ?phone_number: String, ?required_documents: ::Array[Lithic::RequiredDocument], @@ -161,6 +167,7 @@ module Lithic exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type, external_id: String, individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual, + naics_code: String, nature_of_business: String, phone_number: String, required_documents: ::Array[Lithic::RequiredDocument], diff --git a/sig/lithic/models/account_holder_update_params.rbs b/sig/lithic/models/account_holder_update_params.rbs index 2e0f723e..76aff3b8 100644 --- a/sig/lithic/models/account_holder_update_params.rbs +++ b/sig/lithic/models/account_holder_update_params.rbs @@ -7,6 +7,7 @@ module Lithic business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity, control_person: Lithic::AccountHolderUpdateParams::ControlPerson, external_id: String, + naics_code: String, nature_of_business: String, website_url: String, individual: Lithic::AccountHolderUpdateParams::Individual, @@ -52,6 +53,10 @@ module Lithic def external_id=: (String) -> String + attr_reader naics_code: String? + + def naics_code=: (String) -> String + attr_reader nature_of_business: String? def nature_of_business=: (String) -> String @@ -100,6 +105,7 @@ module Lithic ?business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity, ?control_person: Lithic::AccountHolderUpdateParams::ControlPerson, ?external_id: String, + ?naics_code: String, ?nature_of_business: String, ?website_url: String, ?individual: Lithic::AccountHolderUpdateParams::Individual, @@ -119,6 +125,7 @@ module Lithic business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity, control_person: Lithic::AccountHolderUpdateParams::ControlPerson, external_id: String, + naics_code: String, nature_of_business: String, website_url: String, individual: Lithic::AccountHolderUpdateParams::Individual, diff --git a/sig/lithic/models/account_holder_update_response.rbs b/sig/lithic/models/account_holder_update_response.rbs index 5e572197..eaa9554c 100644 --- a/sig/lithic/models/account_holder_update_response.rbs +++ b/sig/lithic/models/account_holder_update_response.rbs @@ -21,6 +21,7 @@ module Lithic exemption_type: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::exemption_type, external_id: String, individual: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual, + naics_code: String, nature_of_business: String, phone_number: String, required_documents: ::Array[Lithic::RequiredDocument], @@ -90,6 +91,10 @@ module Lithic Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual ) -> Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual + attr_reader naics_code: String? + + def naics_code=: (String) -> String + attr_reader nature_of_business: String? def nature_of_business=: (String) -> String @@ -145,6 +150,7 @@ module Lithic ?exemption_type: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::exemption_type, ?external_id: String, ?individual: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual, + ?naics_code: String, ?nature_of_business: String, ?phone_number: String, ?required_documents: ::Array[Lithic::RequiredDocument], @@ -168,6 +174,7 @@ module Lithic exemption_type: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::exemption_type, external_id: String, individual: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual, + naics_code: String, nature_of_business: String, phone_number: String, required_documents: ::Array[Lithic::RequiredDocument], diff --git a/sig/lithic/models/account_holder_updated_webhook_event.rbs b/sig/lithic/models/account_holder_updated_webhook_event.rbs index 752443f0..81d30a5c 100644 --- a/sig/lithic/models/account_holder_updated_webhook_event.rbs +++ b/sig/lithic/models/account_holder_updated_webhook_event.rbs @@ -14,6 +14,7 @@ module Lithic update_request: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest, event_type: Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload::event_type, external_id: String, + naics_code: String, nature_of_business: String, website_url: String } @@ -33,6 +34,10 @@ module Lithic def external_id=: (String) -> String + attr_reader naics_code: String? + + def naics_code=: (String) -> String + attr_reader nature_of_business: String? def nature_of_business=: (String) -> String @@ -46,6 +51,7 @@ module Lithic update_request: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest, ?event_type: Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload::event_type, ?external_id: String, + ?naics_code: String, ?nature_of_business: String, ?website_url: String ) -> void @@ -55,6 +61,7 @@ module Lithic update_request: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest, event_type: Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload::event_type, external_id: String, + naics_code: String, nature_of_business: String, website_url: String } diff --git a/sig/lithic/models/kyb.rbs b/sig/lithic/models/kyb.rbs index 4b55c8a6..552e17c8 100644 --- a/sig/lithic/models/kyb.rbs +++ b/sig/lithic/models/kyb.rbs @@ -11,6 +11,7 @@ module Lithic beneficial_owner_entities: ::Array[Lithic::KYB::BeneficialOwnerEntity], external_id: String, kyb_passed_timestamp: String, + naics_code: String, website_url: String } @@ -41,6 +42,10 @@ module Lithic def kyb_passed_timestamp=: (String) -> String + attr_reader naics_code: String? + + def naics_code=: (String) -> String + attr_reader website_url: String? def website_url=: (String) -> String @@ -55,6 +60,7 @@ module Lithic ?beneficial_owner_entities: ::Array[Lithic::KYB::BeneficialOwnerEntity], ?external_id: String, ?kyb_passed_timestamp: String, + ?naics_code: String, ?website_url: String ) -> void @@ -68,6 +74,7 @@ module Lithic beneficial_owner_entities: ::Array[Lithic::KYB::BeneficialOwnerEntity], external_id: String, kyb_passed_timestamp: String, + naics_code: String, website_url: String } diff --git a/sig/lithic/models/parsed_webhook_event.rbs b/sig/lithic/models/parsed_webhook_event.rbs index 6b901f7b..6dc46e21 100644 --- a/sig/lithic/models/parsed_webhook_event.rbs +++ b/sig/lithic/models/parsed_webhook_event.rbs @@ -69,6 +69,7 @@ module Lithic update_request: Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest, event_type: Lithic::Models::ParsedWebhookEvent::KYBPayload::event_type, external_id: String, + naics_code: String, nature_of_business: String, website_url: String } @@ -88,6 +89,10 @@ module Lithic def external_id=: (String) -> String + attr_reader naics_code: String? + + def naics_code=: (String) -> String + attr_reader nature_of_business: String? def nature_of_business=: (String) -> String @@ -101,6 +106,7 @@ module Lithic update_request: Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest, ?event_type: Lithic::Models::ParsedWebhookEvent::KYBPayload::event_type, ?external_id: String, + ?naics_code: String, ?nature_of_business: String, ?website_url: String ) -> void @@ -110,6 +116,7 @@ module Lithic update_request: Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest, event_type: Lithic::Models::ParsedWebhookEvent::KYBPayload::event_type, external_id: String, + naics_code: String, nature_of_business: String, website_url: String } diff --git a/sig/lithic/resources/account_holders.rbs b/sig/lithic/resources/account_holders.rbs index 31133b10..25e1956e 100644 --- a/sig/lithic/resources/account_holders.rbs +++ b/sig/lithic/resources/account_holders.rbs @@ -18,6 +18,7 @@ module Lithic ?beneficial_owner_entities: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerEntity], ?external_id: String, ?kyb_passed_timestamp: String, + ?naics_code: String, ?website_url: String, ?kyc_passed_timestamp: String, ?business_account_token: String, @@ -36,6 +37,7 @@ module Lithic ?business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity, ?control_person: Lithic::AccountHolderUpdateParams::ControlPerson, ?external_id: String, + ?naics_code: String, ?nature_of_business: String, ?website_url: String, ?individual: Lithic::AccountHolderUpdateParams::Individual, diff --git a/test/lithic/resources/account_holders_test.rb b/test/lithic/resources/account_holders_test.rb index d973e4f2..5c1cb075 100644 --- a/test/lithic/resources/account_holders_test.rb +++ b/test/lithic/resources/account_holders_test.rb @@ -59,6 +59,7 @@ def test_retrieve exemption_type: Lithic::AccountHolder::ExemptionType | nil, external_id: String | nil, individual: Lithic::AccountHolder::Individual | nil, + naics_code: String | nil, nature_of_business: String | nil, phone_number: String | nil, required_documents: ^(Lithic::Internal::Type::ArrayOf[Lithic::RequiredDocument]) | nil, @@ -114,6 +115,7 @@ def test_list exemption_type: Lithic::AccountHolder::ExemptionType | nil, external_id: String | nil, individual: Lithic::AccountHolder::Individual | nil, + naics_code: String | nil, nature_of_business: String | nil, phone_number: String | nil, required_documents: ^(Lithic::Internal::Type::ArrayOf[Lithic::RequiredDocument]) | nil, @@ -205,6 +207,7 @@ def test_simulate_enrollment_review exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ExemptionType | nil, external_id: String | nil, individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual | nil, + naics_code: String | nil, nature_of_business: String | nil, phone_number: String | nil, required_documents: ^(Lithic::Internal::Type::ArrayOf[Lithic::RequiredDocument]) | nil,