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.16.0"
".": "0.17.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: 214
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-a4afc884f86f30a87445552888031ac1ca18aed0476d7120da555bf457627e65.yml
openapi_spec_hash: ce8d0830986c702f0c7a693b1c3cc5a2
config_hash: 4b618a1df59e555cebe6aa13e8c0218f
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-8e691d2dedaea1906ebbe28b28c978855d5e4fe5fe595a8d23917df851123400.yml
openapi_spec_hash: c33e82abb4d7c979d05386ca230464d3
config_hash: 5bb913c05ebeb301ec925b16e75bb251
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.17.0 (2026-06-19)

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

### Features

* **api:** add ach payment update actions/results, card transaction results to auth_rules ([a761a6f](https://github.com/lithic-com/lithic-ruby/commit/a761a6f5fccb557d7fa03d81043b28d685aaec82))

## 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)
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.16.0)
lithic (0.17.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.16.0"
gem "lithic", "~> 0.17.0"
```

<!-- x-release-please-end -->
Expand Down
2 changes: 2 additions & 0 deletions lib/lithic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,15 @@
require_relative "lithic/models/address"
require_relative "lithic/models/address_update"
require_relative "lithic/models/api_status"
require_relative "lithic/models/auth_rules/ach_payment_update_action"
require_relative "lithic/models/auth_rules/auth_rule"
require_relative "lithic/models/auth_rules/auth_rule_condition"
require_relative "lithic/models/auth_rules/auth_rule_version"
require_relative "lithic/models/auth_rules/backtest_stats"
require_relative "lithic/models/auth_rules/card_transaction_update_action"
require_relative "lithic/models/auth_rules/conditional_3ds_action_parameters"
require_relative "lithic/models/auth_rules/conditional_ach_action_parameters"
require_relative "lithic/models/auth_rules/conditional_ach_payment_update_action_parameters"
require_relative "lithic/models/auth_rules/conditional_attribute"
require_relative "lithic/models/auth_rules/conditional_authorization_action_parameters"
require_relative "lithic/models/auth_rules/conditional_authorization_adjustment_parameters"
Expand Down
108 changes: 108 additions & 0 deletions lib/lithic/models/auth_rules/ach_payment_update_action.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# frozen_string_literal: true

module Lithic
module Models
module AuthRules
module ACHPaymentUpdateAction
extend Lithic::Internal::Type::Union

variant -> { Lithic::AuthRules::ACHPaymentUpdateAction::TagAction }

variant -> { Lithic::AuthRules::ACHPaymentUpdateAction::CreateCaseAction }

class TagAction < Lithic::Internal::Type::BaseModel
# @!attribute key
# The key of the tag to apply to the payment
#
# @return [String]
required :key, String

# @!attribute type
# Tag the payment with key-value metadata
#
# @return [Symbol, Lithic::Models::AuthRules::ACHPaymentUpdateAction::TagAction::Type]
required :type, enum: -> { Lithic::AuthRules::ACHPaymentUpdateAction::TagAction::Type }

# @!attribute value
# The value of the tag to apply to the payment
#
# @return [String]
required :value, String

# @!method initialize(key:, type:, value:)
# @param key [String] The key of the tag to apply to the payment
#
# @param type [Symbol, Lithic::Models::AuthRules::ACHPaymentUpdateAction::TagAction::Type] Tag the payment with key-value metadata
#
# @param value [String] The value of the tag to apply to the payment

# Tag the payment with key-value metadata
#
# @see Lithic::Models::AuthRules::ACHPaymentUpdateAction::TagAction#type
module Type
extend Lithic::Internal::Type::Enum

TAG = :TAG

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

class CreateCaseAction < Lithic::Internal::Type::BaseModel
# @!attribute queue_token
# The token of the queue to create the case in
#
# @return [String]
required :queue_token, String

# @!attribute scope
# The scope of the case to create
#
# @return [Symbol, Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::Scope]
required :scope, enum: -> { Lithic::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::Scope }

# @!attribute type
# Create a case for the payment
#
# @return [Symbol, Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::Type]
required :type, enum: -> { Lithic::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::Type }

# @!method initialize(queue_token:, scope:, type:)
# @param queue_token [String] The token of the queue to create the case in
#
# @param scope [Symbol, Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::Scope] The scope of the case to create
#
# @param type [Symbol, Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::Type] Create a case for the payment

# The scope of the case to create
#
# @see Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction#scope
module Scope
extend Lithic::Internal::Type::Enum

FINANCIAL_ACCOUNT = :FINANCIAL_ACCOUNT

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

# Create a case for the payment
#
# @see Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction#type
module Type
extend Lithic::Internal::Type::Enum

CREATE_CASE = :CREATE_CASE

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

# @!method self.variants
# @return [Array(Lithic::Models::AuthRules::ACHPaymentUpdateAction::TagAction, Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction)]
end
end
end
end
32 changes: 18 additions & 14 deletions lib/lithic/models/auth_rules/auth_rule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ class AuthRule < Lithic::Internal::Type::BaseModel
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
# stream.
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
# stream.
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
#
# @return [Symbol, Lithic::Models::AuthRules::AuthRule::Type]
required :type, enum: -> { Lithic::AuthRules::AuthRule::Type }
Expand Down Expand Up @@ -147,7 +147,7 @@ class CurrentVersion < Lithic::Internal::Type::BaseModel
# @!attribute parameters
# Parameters for the Auth Rule
#
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters]
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters]
required :parameters, union: -> { Lithic::AuthRules::AuthRule::CurrentVersion::Parameters }

response_only do
Expand All @@ -163,7 +163,7 @@ class CurrentVersion < Lithic::Internal::Type::BaseModel
# Some parameter documentations has been truncated, see
# {Lithic::Models::AuthRules::AuthRule::CurrentVersion} for more details.
#
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters] Parameters for the Auth Rule
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters] Parameters for the Auth Rule
#
# @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan

Expand All @@ -190,13 +190,15 @@ module Parameters

variant -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters }

variant -> { Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters }

# Parameters for defining a TypeScript code rule
variant -> { Lithic::AuthRules::TypescriptCodeParameters }

variant -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters }

# @!method self.variants
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters)]
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters)]
end
end

Expand All @@ -212,7 +214,7 @@ class DraftVersion < Lithic::Internal::Type::BaseModel
# @!attribute parameters
# Parameters for the Auth Rule
#
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters]
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters]
required :parameters, union: -> { Lithic::AuthRules::AuthRule::DraftVersion::Parameters }

# @!attribute state
Expand Down Expand Up @@ -245,7 +247,7 @@ class DraftVersion < Lithic::Internal::Type::BaseModel
#
# @param error [String, nil] An error message if the draft version failed compilation. Populated when `state`
#
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters] Parameters for the Auth Rule
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters] Parameters for the Auth Rule
#
# @param state [Symbol, Lithic::Models::AuthRules::AuthRule::DraftVersion::State] The state of the draft version. Most rules are created synchronously and the sta
#
Expand Down Expand Up @@ -274,13 +276,15 @@ module Parameters

variant -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters }

variant -> { Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters }

# Parameters for defining a TypeScript code rule
variant -> { Lithic::AuthRules::TypescriptCodeParameters }

variant -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters }

# @!method self.variants
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters)]
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters)]
end

# The state of the draft version. Most rules are created synchronously and the
Expand Down Expand Up @@ -330,11 +334,11 @@ module State
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
# stream.
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
# stream.
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
#
# @see Lithic::Models::AuthRules::AuthRule#type
module Type
Expand Down
Loading