Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.4.0"
".": "0.5.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ GIT
PATH
remote: .
specs:
lithic (0.4.0)
lithic (0.5.0)
cgi
connection_pool

Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -15,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "lithic", "~> 0.4.0"
gem "lithic", "~> 0.5.0"
```

<!-- x-release-please-end -->
Expand Down
19 changes: 14 additions & 5 deletions lib/lithic/models/account_holder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 }
Expand All @@ -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.
#
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
11 changes: 10 additions & 1 deletion lib/lithic/models/account_holder_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand Down Expand Up @@ -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.
#
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 }
Expand All @@ -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.
Expand Down Expand Up @@ -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".
Expand Down Expand Up @@ -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
Expand Down
11 changes: 10 additions & 1 deletion lib/lithic/models/account_holder_update_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?).
Expand Down Expand Up @@ -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.
#
Expand All @@ -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.
Expand Down
19 changes: 14 additions & 5 deletions lib/lithic/models/account_holder_update_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand All @@ -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.
Expand Down Expand Up @@ -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".
Expand Down Expand Up @@ -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
Expand Down
Loading