diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 0c2ecec6..86b0e83d 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.20.0" + ".": "0.21.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 47c7d754..9326df23 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index bd4faf6f..c5cebee0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Gemfile.lock b/Gemfile.lock index 53f1b0d1..8cef8551 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - lithic (0.20.0) + lithic (0.21.0) cgi connection_pool diff --git a/README.md b/README.md index 55ac7cac..dbf2a094 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "lithic", "~> 0.20.0" +gem "lithic", "~> 0.21.0" ``` diff --git a/lib/lithic/models/auth_rules/auth_rule.rb b/lib/lithic/models/auth_rules/auth_rule.rb index 0c894dc8..73f09962 100644 --- a/lib/lithic/models/auth_rules/auth_rule.rb +++ b/lib/lithic/models/auth_rules/auth_rule.rb @@ -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 } @@ -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 @@ -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] diff --git a/lib/lithic/models/auth_rules/v2_create_params.rb b/lib/lithic/models/auth_rules/v2_create_params.rb index 26be59f5..7e33c77c 100644 --- a/lib/lithic/models/auth_rules/v2_create_params.rb +++ b/lib/lithic/models/auth_rules/v2_create_params.rb @@ -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 } @@ -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 @@ -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] @@ -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 } @@ -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 @@ -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] @@ -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 } @@ -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 @@ -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] diff --git a/lib/lithic/version.rb b/lib/lithic/version.rb index 125be3f9..df4ea9da 100644 --- a/lib/lithic/version.rb +++ b/lib/lithic/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Lithic - VERSION = "0.20.0" + VERSION = "0.21.0" end diff --git a/rbi/lithic/models/auth_rules/auth_rule.rbi b/rbi/lithic/models/auth_rules/auth_rule.rbi index c7ec1192..d4f9baba 100644 --- a/rbi/lithic/models/auth_rules/auth_rule.rbi +++ b/rbi/lithic/models/auth_rules/auth_rule.rbi @@ -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 @@ -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, @@ -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 @@ -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( diff --git a/rbi/lithic/models/auth_rules/v2_create_params.rbi b/rbi/lithic/models/auth_rules/v2_create_params.rbi index 8e27fedf..5f99fa5a 100644 --- a/rbi/lithic/models/auth_rules/v2_create_params.rbi +++ b/rbi/lithic/models/auth_rules/v2_create_params.rbi @@ -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 @@ -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, @@ -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 @@ -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( @@ -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 @@ -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, @@ -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 @@ -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( @@ -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 @@ -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, @@ -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 @@ -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( diff --git a/sig/lithic/models/auth_rules/auth_rule.rbs b/sig/lithic/models/auth_rules/auth_rule.rbs index 276741ca..47ba813d 100644 --- a/sig/lithic/models/auth_rules/auth_rule.rbs +++ b/sig/lithic/models/auth_rules/auth_rule.rbs @@ -218,6 +218,7 @@ module Lithic | :MERCHANT_LOCK | :CONDITIONAL_ACTION | :TYPESCRIPT_CODE + | :OTHER module Type extend Lithic::Internal::Type::Enum @@ -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 diff --git a/sig/lithic/models/auth_rules/v2_create_params.rbs b/sig/lithic/models/auth_rules/v2_create_params.rbs index c31a0584..1d36c954 100644 --- a/sig/lithic/models/auth_rules/v2_create_params.rbs +++ b/sig/lithic/models/auth_rules/v2_create_params.rbs @@ -103,6 +103,7 @@ module Lithic | :MERCHANT_LOCK | :CONDITIONAL_ACTION | :TYPESCRIPT_CODE + | :OTHER module Type extend Lithic::Internal::Type::Enum @@ -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 @@ -182,6 +184,7 @@ module Lithic | :MERCHANT_LOCK | :CONDITIONAL_ACTION | :TYPESCRIPT_CODE + | :OTHER module Type extend Lithic::Internal::Type::Enum @@ -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 @@ -284,6 +288,7 @@ module Lithic | :MERCHANT_LOCK | :CONDITIONAL_ACTION | :TYPESCRIPT_CODE + | :OTHER module Type extend Lithic::Internal::Type::Enum @@ -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