Skip to content
Merged
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.15.0"
".": "0.16.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 195
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-efe780032e44b3cf0f6914407e43bce6aa7176fa50aa6ec018f93c1f28af8490.yml
openapi_spec_hash: fcb4ca53ca59978f23f21d7c74fcc0b0
config_hash: a0a579b0564a5c18568a78f5ba2b6653
configured_endpoints: 214
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-a4afc884f86f30a87445552888031ac1ca18aed0476d7120da555bf457627e65.yml
openapi_spec_hash: ce8d0830986c702f0c7a693b1c3cc5a2
config_hash: 4b618a1df59e555cebe6aa13e8c0218f
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Changelog

## 0.16.0 (2026-06-16)

Full Changelog: [v0.15.0...v0.16.0](https://github.com/lithic-com/lithic-ruby/compare/v0.15.0...v0.16.0)

### Features

* **api:** add CardTransactionFeature to auth_rules RuleFeature ([1071dc2](https://github.com/lithic-com/lithic-ruby/commit/1071dc23ec9899d915a1b6211ca2a876ab1b223d))
* **api:** add condition attributes, interval/unit/scope to auth_rules ([28a4b65](https://github.com/lithic-com/lithic-ruby/commit/28a4b658b44f1aff6e6902fa6c7b32b0e4d2e197))
* **api:** Add created field to Challenge object ([e442303](https://github.com/lithic-com/lithic-ruby/commit/e44230324af07930c8cc84b3035677df54bc031f))
* **api:** add day_of_period field to loan_tape ([71ab28b](https://github.com/lithic-com/lithic-ruby/commit/71ab28b5af8e6118b2133bc8ed190520b6be2396))
* **api:** add hold_adjustment_action variant to auth_rules action parameter ([bae640f](https://github.com/lithic-com/lithic-ruby/commit/bae640faf01eef0b956cb24eaa73f92c40536082))
* **api:** add NVS name_validation fields to ASA request and response ([5747fda](https://github.com/lithic-com/lithic-ruby/commit/5747fda7c1065d257bc60d03e770f66be8677d48))
* **api:** add route method to transactions ([74346e6](https://github.com/lithic-com/lithic-ruby/commit/74346e6f43f4c5153960d99954b7c120296c640f))
* **api:** add tags field to Payment model ([745a6cd](https://github.com/lithic-com/lithic-ruby/commit/745a6cd3d832409fdcbbd191f06de40f7a8f2ecb))
* **api:** add transaction_monitoring with cases/comments/files/queues, refactor entity_type ([37af713](https://github.com/lithic-com/lithic-ruby/commit/37af713a243f3380aea47019af34fe1d698bae35))


### Bug Fixes

* **client:** send content-type header for requests with an omitted optional body ([d5b5510](https://github.com/lithic-com/lithic-ruby/commit/d5b551022172beeeb6feccd1886a130ece8a9cc9))


### Documentation

* **api:** update support contact from email to URL in account/card resources ([bd7f679](https://github.com/lithic-com/lithic-ruby/commit/bd7f67927187e7daa99059f5e9190c1df79424c3))

## 0.15.0 (2026-05-27)

Full Changelog: [v0.14.0...v0.15.0](https://github.com/lithic-com/lithic-ruby/compare/v0.14.0...v0.15.0)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
lithic (0.15.0)
lithic (0.16.0)
cgi
connection_pool

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,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.15.0"
gem "lithic", "~> 0.16.0"
```

<!-- x-release-please-end -->
Expand Down
40 changes: 40 additions & 0 deletions lib/lithic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,42 @@
require_relative "lithic/models/token_metadata"
require_relative "lithic/models/transaction_expire_authorization_params"
require_relative "lithic/models/transaction_list_params"
require_relative "lithic/models/transaction_monitoring/case_activity_entry"
require_relative "lithic/models/transaction_monitoring/case_activity_type"
require_relative "lithic/models/transaction_monitoring/case_card"
require_relative "lithic/models/transaction_monitoring/case_entity"
require_relative "lithic/models/transaction_monitoring/case_list_activity_params"
require_relative "lithic/models/transaction_monitoring/case_list_params"
require_relative "lithic/models/transaction_monitoring/case_list_transactions_params"
require_relative "lithic/models/transaction_monitoring/case_priority"
require_relative "lithic/models/transaction_monitoring/case_retrieve_cards_params"
require_relative "lithic/models/transaction_monitoring/case_retrieve_cards_response"
require_relative "lithic/models/transaction_monitoring/case_retrieve_params"
require_relative "lithic/models/transaction_monitoring/cases/case_file"
require_relative "lithic/models/transaction_monitoring/cases/comment_create_params"
require_relative "lithic/models/transaction_monitoring/cases/comment_delete_params"
require_relative "lithic/models/transaction_monitoring/cases/comment_update_params"
require_relative "lithic/models/transaction_monitoring/cases/file_create_params"
require_relative "lithic/models/transaction_monitoring/cases/file_delete_params"
require_relative "lithic/models/transaction_monitoring/cases/file_list_params"
require_relative "lithic/models/transaction_monitoring/cases/file_retrieve_params"
require_relative "lithic/models/transaction_monitoring/cases/file_status"
require_relative "lithic/models/transaction_monitoring/cases/upload_constraints"
require_relative "lithic/models/transaction_monitoring/case_sort_order"
require_relative "lithic/models/transaction_monitoring/case_status"
require_relative "lithic/models/transaction_monitoring/case_transaction"
require_relative "lithic/models/transaction_monitoring/case_update_params"
require_relative "lithic/models/transaction_monitoring/entity_type"
require_relative "lithic/models/transaction_monitoring/monitoring_case"
require_relative "lithic/models/transaction_monitoring/queue"
require_relative "lithic/models/transaction_monitoring/queue_create_params"
require_relative "lithic/models/transaction_monitoring/queue_delete_params"
require_relative "lithic/models/transaction_monitoring/queue_list_params"
require_relative "lithic/models/transaction_monitoring/queue_retrieve_params"
require_relative "lithic/models/transaction_monitoring/queue_update_params"
require_relative "lithic/models/transaction_monitoring/resolution_outcome"
require_relative "lithic/models/transaction_retrieve_params"
require_relative "lithic/models/transaction_route_params"
require_relative "lithic/models/transactions/enhanced_commercial_data_retrieve_params"
require_relative "lithic/models/transactions/enhanced_commercial_data_retrieve_response"
require_relative "lithic/models/transactions/events/enhanced_commercial_data_retrieve_params"
Expand Down Expand Up @@ -525,6 +560,11 @@
require_relative "lithic/resources/three_ds/decisioning"
require_relative "lithic/resources/tokenization_decisioning"
require_relative "lithic/resources/tokenizations"
require_relative "lithic/resources/transaction_monitoring"
require_relative "lithic/resources/transaction_monitoring/cases"
require_relative "lithic/resources/transaction_monitoring/cases/comments"
require_relative "lithic/resources/transaction_monitoring/cases/files"
require_relative "lithic/resources/transaction_monitoring/queues"
require_relative "lithic/resources/transactions"
require_relative "lithic/resources/transactions/enhanced_commercial_data"
require_relative "lithic/resources/transactions/events"
Expand Down
4 changes: 4 additions & 0 deletions lib/lithic/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ class Client < Lithic::Internal::Transport::BaseClient
# @return [Lithic::Resources::AuthRules]
attr_reader :auth_rules

# @return [Lithic::Resources::TransactionMonitoring]
attr_reader :transaction_monitoring

# @return [Lithic::Resources::AuthStreamEnrollment]
attr_reader :auth_stream_enrollment

Expand Down Expand Up @@ -221,6 +224,7 @@ def initialize(
@accounts = Lithic::Resources::Accounts.new(client: self)
@account_holders = Lithic::Resources::AccountHolders.new(client: self)
@auth_rules = Lithic::Resources::AuthRules.new(client: self)
@transaction_monitoring = Lithic::Resources::TransactionMonitoring.new(client: self)
@auth_stream_enrollment = Lithic::Resources::AuthStreamEnrollment.new(client: self)
@tokenization_decisioning = Lithic::Resources::TokenizationDecisioning.new(client: self)
@tokenizations = Lithic::Resources::Tokenizations.new(client: self)
Expand Down
5 changes: 4 additions & 1 deletion lib/lithic/internal/transport/base_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ def initialize(
Lithic::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact)
end

headers.delete("content-type") if body.nil?
# Generated methods always pass `req[:body]` for operations that define a
# request body, so only elide the content-type header when the operation
# has no body at all, not when an optional body param was omitted.
headers.delete("content-type") if body.nil? && !req.key?(:body)

url = Lithic::Internal::Util.join_parsed_uri(
@base_url_components,
Expand Down
4 changes: 4 additions & 0 deletions lib/lithic/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -574,8 +574,12 @@ module Lithic

TransactionListParams = Lithic::Models::TransactionListParams

TransactionMonitoring = Lithic::Models::TransactionMonitoring

TransactionRetrieveParams = Lithic::Models::TransactionRetrieveParams

TransactionRouteParams = Lithic::Models::TransactionRouteParams

Transactions = Lithic::Models::Transactions

TransactionSimulateAuthorizationAdviceParams =
Expand Down
4 changes: 2 additions & 2 deletions lib/lithic/models/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Account < Lithic::Internal::Type::BaseModel
# accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states.
# Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to
# failure to pass KYB/KYC or for risk/compliance reasons. Please contact
# [support@lithic.com](mailto:support@lithic.com) if you believe this was done
# [support.lithic.com](https://support.lithic.com/) if you believe this was done
# by mistake.
#
# @return [Symbol, Lithic::Models::Account::State]
Expand Down Expand Up @@ -177,7 +177,7 @@ class SpendLimit < Lithic::Internal::Type::BaseModel
# accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states.
# Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to
# failure to pass KYB/KYC or for risk/compliance reasons. Please contact
# [support@lithic.com](mailto:support@lithic.com) if you believe this was done
# [support.lithic.com](https://support.lithic.com/) if you believe this was done
# by mistake.
#
# @see Lithic::Models::Account#state
Expand Down
19 changes: 3 additions & 16 deletions lib/lithic/models/account_holders/account_holder_entity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ class AccountHolderEntity < Lithic::Internal::Type::BaseModel
# @!attribute type
# The type of entity
#
# @return [Symbol, Lithic::Models::AccountHolders::AccountHolderEntity::Type]
required :type, enum: -> { Lithic::AccountHolders::AccountHolderEntity::Type }
# @return [Symbol, Lithic::Models::TransactionMonitoring::EntityType]
required :type, enum: -> { Lithic::TransactionMonitoring::EntityType }

# @!method initialize(token:, account_holder_token:, address:, dob:, email:, first_name:, last_name:, phone_number:, status:, type:)
# Information about an entity associated with an account holder
Expand All @@ -86,7 +86,7 @@ class AccountHolderEntity < Lithic::Internal::Type::BaseModel
#
# @param status [Symbol, Lithic::Models::AccountHolders::AccountHolderEntity::Status] The status of the entity
#
# @param type [Symbol, Lithic::Models::AccountHolders::AccountHolderEntity::Type] The type of entity
# @param type [Symbol, Lithic::Models::TransactionMonitoring::EntityType] The type of entity

# @see Lithic::Models::AccountHolders::AccountHolderEntity#address
class Address < Lithic::Internal::Type::BaseModel
Expand Down Expand Up @@ -162,19 +162,6 @@ module Status
# @!method self.values
# @return [Array<Symbol>]
end

# The type of entity
#
# @see Lithic::Models::AccountHolders::AccountHolderEntity#type
module Type
extend Lithic::Internal::Type::Enum

BENEFICIAL_OWNER_INDIVIDUAL = :BENEFICIAL_OWNER_INDIVIDUAL
CONTROL_PERSON = :CONTROL_PERSON

# @!method self.values
# @return [Array<Symbol>]
end
end
end

Expand Down
17 changes: 3 additions & 14 deletions lib/lithic/models/account_holders/entity_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ class EntityCreateParams < Lithic::Internal::Type::BaseModel
# @!attribute type
# The type of entity to create on the account holder
#
# @return [Symbol, Lithic::Models::AccountHolders::EntityCreateParams::Type]
required :type, enum: -> { Lithic::AccountHolders::EntityCreateParams::Type }
# @return [Symbol, Lithic::Models::TransactionMonitoring::EntityType]
required :type, enum: -> { Lithic::TransactionMonitoring::EntityType }

# @!method initialize(account_holder_token:, address:, dob:, email:, first_name:, government_id:, last_name:, phone_number:, type:, request_options: {})
# Some parameter documentations has been truncated, see
Expand All @@ -86,7 +86,7 @@ class EntityCreateParams < Lithic::Internal::Type::BaseModel
#
# @param phone_number [String] Individual's phone number, entered in E.164 format.
#
# @param type [Symbol, Lithic::Models::AccountHolders::EntityCreateParams::Type] The type of entity to create on the account holder
# @param type [Symbol, Lithic::Models::TransactionMonitoring::EntityType] The type of entity to create on the account holder
#
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]

Expand Down Expand Up @@ -149,17 +149,6 @@ class Address < Lithic::Internal::Type::BaseModel
#
# @param address2 [String] Unit or apartment number (if applicable).
end

# The type of entity to create on the account holder
module Type
extend Lithic::Internal::Type::Enum

BENEFICIAL_OWNER_INDIVIDUAL = :BENEFICIAL_OWNER_INDIVIDUAL
CONTROL_PERSON = :CONTROL_PERSON

# @!method self.values
# @return [Array<Symbol>]
end
end
end
end
Expand Down
6 changes: 4 additions & 2 deletions lib/lithic/models/auth_rules/auth_rule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ class AuthRule < Lithic::Internal::Type::BaseModel
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
# stream.
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
# stream.
#
# @return [Symbol, Lithic::Models::AuthRules::AuthRule::Type]
required :type, enum: -> { Lithic::AuthRules::AuthRule::Type }
Expand Down Expand Up @@ -332,7 +333,8 @@ module State
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
# stream.
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
# stream.
#
# @see Lithic::Models::AuthRules::AuthRule#type
module Type
Expand Down
Loading