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.20.0"
".": "0.21.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 216
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-38a020a15ab14f79c7fea3290822406cf80a9d43d46ab3295632a9723f5e42cd.yml
openapi_spec_hash: 5a7357a17c5119bc91d8f5e42297fac3
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-9a4064ca9be1efe3e33d922cae77a5d186b6a0119ef1d3601b5ded1447feb7f7.yml
openapi_spec_hash: bff457821129b2eb4fc5150e23efa197
config_hash: 27fa50e251754c8982e3dc615ef6da41
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.21.0 (2026-09-01)

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

### Features

* **api:** add OTHER enum value to auth_rules type field ([1bb4cc8](https://github.com/lithic-com/lithic-ruby/commit/1bb4cc80ab6e025ebf0d6fcdd88c5b62cbb602a0))

## 0.20.0 (2026-08-31)

Full Changelog: [v0.19.0...v0.20.0](https://github.com/lithic-com/lithic-ruby/compare/v0.19.0...v0.20.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.20.0)
lithic (0.21.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.20.0"
gem "lithic", "~> 0.21.0"
```

<!-- x-release-please-end -->
Expand Down
5 changes: 5 additions & 0 deletions lib/lithic/models/auth_rules/auth_rule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ class AuthRule < Lithic::Internal::Type::BaseModel
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
# are read-only; `OTHER` cannot be used when creating a rule.
#
# @return [Symbol, Lithic::Models::AuthRules::AuthRule::Type]
required :type, enum: -> { Lithic::AuthRules::AuthRule::Type }
Expand Down Expand Up @@ -339,6 +341,8 @@ module State
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
# are read-only; `OTHER` cannot be used when creating a rule.
#
# @see Lithic::Models::AuthRules::AuthRule#type
module Type
Expand All @@ -349,6 +353,7 @@ module Type
MERCHANT_LOCK = :MERCHANT_LOCK
CONDITIONAL_ACTION = :CONDITIONAL_ACTION
TYPESCRIPT_CODE = :TYPESCRIPT_CODE
OTHER = :OTHER

# @!method self.values
# @return [Array<Symbol>]
Expand Down
15 changes: 15 additions & 0 deletions lib/lithic/models/auth_rules/v2_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ class AccountLevelRule < Lithic::Internal::Type::BaseModel
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
# are read-only; `OTHER` cannot be used when creating a rule.
#
# @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::Type]
required :type, enum: -> { Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type }
Expand Down Expand Up @@ -143,6 +145,8 @@ module Parameters
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
# are read-only; `OTHER` cannot be used when creating a rule.
#
# @see Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule#type
module Type
Expand All @@ -153,6 +157,7 @@ module Type
MERCHANT_LOCK = :MERCHANT_LOCK
CONDITIONAL_ACTION = :CONDITIONAL_ACTION
TYPESCRIPT_CODE = :TYPESCRIPT_CODE
OTHER = :OTHER

# @!method self.values
# @return [Array<Symbol>]
Expand Down Expand Up @@ -188,6 +193,8 @@ class CardLevelRule < Lithic::Internal::Type::BaseModel
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
# are read-only; `OTHER` cannot be used when creating a rule.
#
# @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::Type]
required :type, enum: -> { Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type }
Expand Down Expand Up @@ -268,6 +275,8 @@ module Parameters
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
# are read-only; `OTHER` cannot be used when creating a rule.
#
# @see Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule#type
module Type
Expand All @@ -278,6 +287,7 @@ module Type
MERCHANT_LOCK = :MERCHANT_LOCK
CONDITIONAL_ACTION = :CONDITIONAL_ACTION
TYPESCRIPT_CODE = :TYPESCRIPT_CODE
OTHER = :OTHER

# @!method self.values
# @return [Array<Symbol>]
Expand Down Expand Up @@ -313,6 +323,8 @@ class ProgramLevelRule < Lithic::Internal::Type::BaseModel
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
# are read-only; `OTHER` cannot be used when creating a rule.
#
# @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type]
required :type, enum: -> { Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type }
Expand Down Expand Up @@ -417,6 +429,8 @@ module Parameters
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
# are read-only; `OTHER` cannot be used when creating a rule.
#
# @see Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule#type
module Type
Expand All @@ -427,6 +441,7 @@ module Type
MERCHANT_LOCK = :MERCHANT_LOCK
CONDITIONAL_ACTION = :CONDITIONAL_ACTION
TYPESCRIPT_CODE = :TYPESCRIPT_CODE
OTHER = :OTHER

# @!method self.values
# @return [Array<Symbol>]
Expand Down
2 changes: 1 addition & 1 deletion lib/lithic/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Lithic
VERSION = "0.20.0"
VERSION = "0.21.0"
end
7 changes: 7 additions & 0 deletions rbi/lithic/models/auth_rules/auth_rule.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ module Lithic
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
# are read-only; `OTHER` cannot be used when creating a rule.
sig { returns(Lithic::AuthRules::AuthRule::Type::TaggedSymbol) }
attr_accessor :type

Expand Down Expand Up @@ -167,6 +169,8 @@ module Lithic
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
# are read-only; `OTHER` cannot be used when creating a rule.
type:,
# Account tokens to which the Auth Rule does not apply.
excluded_account_tokens: nil,
Expand Down Expand Up @@ -517,6 +521,8 @@ module Lithic
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
# are read-only; `OTHER` cannot be used when creating a rule.
module Type
extend Lithic::Internal::Type::Enum

Expand Down Expand Up @@ -549,6 +555,7 @@ module Lithic
:TYPESCRIPT_CODE,
Lithic::AuthRules::AuthRule::Type::TaggedSymbol
)
OTHER = T.let(:OTHER, Lithic::AuthRules::AuthRule::Type::TaggedSymbol)

sig do
override.returns(
Expand Down
33 changes: 33 additions & 0 deletions rbi/lithic/models/auth_rules/v2_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ module Lithic
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
# are read-only; `OTHER` cannot be used when creating a rule.
sig do
returns(
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::OrSymbol
Expand Down Expand Up @@ -187,6 +189,8 @@ module Lithic
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
# are read-only; `OTHER` cannot be used when creating a rule.
type:,
# Account tokens to which the Auth Rule applies.
account_tokens: nil,
Expand Down Expand Up @@ -275,6 +279,8 @@ module Lithic
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
# are read-only; `OTHER` cannot be used when creating a rule.
module Type
extend Lithic::Internal::Type::Enum

Expand Down Expand Up @@ -312,6 +318,11 @@ module Lithic
:TYPESCRIPT_CODE,
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol
)
OTHER =
T.let(
:OTHER,
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol
)

sig do
override.returns(
Expand Down Expand Up @@ -373,6 +384,8 @@ module Lithic
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
# are read-only; `OTHER` cannot be used when creating a rule.
sig do
returns(
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::OrSymbol
Expand Down Expand Up @@ -438,6 +451,8 @@ module Lithic
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
# are read-only; `OTHER` cannot be used when creating a rule.
type:,
# The event stream during which the rule will be evaluated.
event_stream: nil,
Expand Down Expand Up @@ -521,6 +536,8 @@ module Lithic
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
# are read-only; `OTHER` cannot be used when creating a rule.
module Type
extend Lithic::Internal::Type::Enum

Expand Down Expand Up @@ -558,6 +575,11 @@ module Lithic
:TYPESCRIPT_CODE,
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol
)
OTHER =
T.let(
:OTHER,
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol
)

sig do
override.returns(
Expand Down Expand Up @@ -619,6 +641,8 @@ module Lithic
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
# are read-only; `OTHER` cannot be used when creating a rule.
sig do
returns(
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::OrSymbol
Expand Down Expand Up @@ -710,6 +734,8 @@ module Lithic
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
# are read-only; `OTHER` cannot be used when creating a rule.
type:,
# The event stream during which the rule will be evaluated.
event_stream: nil,
Expand Down Expand Up @@ -802,6 +828,8 @@ module Lithic
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
# ACH_PAYMENT_UPDATE event stream.
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
# are read-only; `OTHER` cannot be used when creating a rule.
module Type
extend Lithic::Internal::Type::Enum

Expand Down Expand Up @@ -839,6 +867,11 @@ module Lithic
:TYPESCRIPT_CODE,
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol
)
OTHER =
T.let(
:OTHER,
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol
)

sig do
override.returns(
Expand Down
2 changes: 2 additions & 0 deletions sig/lithic/models/auth_rules/auth_rule.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ module Lithic
| :MERCHANT_LOCK
| :CONDITIONAL_ACTION
| :TYPESCRIPT_CODE
| :OTHER

module Type
extend Lithic::Internal::Type::Enum
Expand All @@ -227,6 +228,7 @@ module Lithic
MERCHANT_LOCK: :MERCHANT_LOCK
CONDITIONAL_ACTION: :CONDITIONAL_ACTION
TYPESCRIPT_CODE: :TYPESCRIPT_CODE
OTHER: :OTHER

def self?.values: -> ::Array[Lithic::Models::AuthRules::AuthRule::type_]
end
Expand Down
6 changes: 6 additions & 0 deletions sig/lithic/models/auth_rules/v2_create_params.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ module Lithic
| :MERCHANT_LOCK
| :CONDITIONAL_ACTION
| :TYPESCRIPT_CODE
| :OTHER

module Type
extend Lithic::Internal::Type::Enum
Expand All @@ -112,6 +113,7 @@ module Lithic
MERCHANT_LOCK: :MERCHANT_LOCK
CONDITIONAL_ACTION: :CONDITIONAL_ACTION
TYPESCRIPT_CODE: :TYPESCRIPT_CODE
OTHER: :OTHER

def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::type_]
end
Expand Down Expand Up @@ -182,6 +184,7 @@ module Lithic
| :MERCHANT_LOCK
| :CONDITIONAL_ACTION
| :TYPESCRIPT_CODE
| :OTHER

module Type
extend Lithic::Internal::Type::Enum
Expand All @@ -191,6 +194,7 @@ module Lithic
MERCHANT_LOCK: :MERCHANT_LOCK
CONDITIONAL_ACTION: :CONDITIONAL_ACTION
TYPESCRIPT_CODE: :TYPESCRIPT_CODE
OTHER: :OTHER

def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::type_]
end
Expand Down Expand Up @@ -284,6 +288,7 @@ module Lithic
| :MERCHANT_LOCK
| :CONDITIONAL_ACTION
| :TYPESCRIPT_CODE
| :OTHER

module Type
extend Lithic::Internal::Type::Enum
Expand All @@ -293,6 +298,7 @@ module Lithic
MERCHANT_LOCK: :MERCHANT_LOCK
CONDITIONAL_ACTION: :CONDITIONAL_ACTION
TYPESCRIPT_CODE: :TYPESCRIPT_CODE
OTHER: :OTHER

def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::type_]
end
Expand Down