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.1.0-alpha.47"
".": "0.1.0-alpha.48"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 169
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-fbbce0ea11d3e86e532f705804f3d79e8eecfb8a7796e3a6ad3c50cccee14bb1.yml
openapi_spec_hash: 3f44b97866ca74effe5e70fc9c64effb
config_hash: 768e8f0faa1a21e26b07e6cdc395cebf
configured_endpoints: 170
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-1a0e3a42c88b88140af0f9ad05ab0026fc87f0a500d6879c86b93dfa7f923810.yml
openapi_spec_hash: 2b4db6185c6e4ab3626461a448c97d4b
config_hash: 7a6a0c0bab3306093c6c171cd7407a45
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.1.0-alpha.48 (2025-09-30)

Full Changelog: [v0.1.0-alpha.47...v0.1.0-alpha.48](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.47...v0.1.0-alpha.48)

### Features

* **api:** adds support for Auth Rule features ([f12343f](https://github.com/lithic-com/lithic-ruby/commit/f12343f949c28e3545a7e7add90238e8133d5916))

## 0.1.0-alpha.47 (2025-09-29)

Full Changelog: [v0.1.0-alpha.46...v0.1.0-alpha.47](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.46...v0.1.0-alpha.47)
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.1.0.pre.alpha.47)
lithic (0.1.0.pre.alpha.48)
connection_pool

GEM
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "lithic", "~> 0.1.0.pre.alpha.47"
gem "lithic", "~> 0.1.0.pre.alpha.48"
```

<!-- 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 @@ -110,6 +110,8 @@
require_relative "lithic/models/auth_rules/v2_promote_response"
require_relative "lithic/models/auth_rules/v2_report_params"
require_relative "lithic/models/auth_rules/v2_report_response"
require_relative "lithic/models/auth_rules/v2_retrieve_features_params"
require_relative "lithic/models/auth_rules/v2_retrieve_features_response"
require_relative "lithic/models/auth_rules/v2_retrieve_params"
require_relative "lithic/models/auth_rules/v2_retrieve_report_params"
require_relative "lithic/models/auth_rules/v2_retrieve_report_response"
Expand Down
21 changes: 20 additions & 1 deletion lib/lithic/models/auth_rules/v2_apply_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ class V2ApplyResponse < Lithic::Internal::Type::BaseModel
# @return [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::EventStream]
required :event_stream, enum: -> { Lithic::Models::AuthRules::V2ApplyResponse::EventStream }

# @!attribute lithic_managed
# Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
# be modified or deleted by the user
#
# @return [Boolean]
required :lithic_managed, Lithic::Internal::Type::Boolean

# @!attribute name
# Auth Rule Name
#
Expand Down Expand Up @@ -83,7 +90,7 @@ class V2ApplyResponse < Lithic::Internal::Type::BaseModel
# @return [Array<String>, nil]
optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String]

# @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, name:, program_level:, state:, type:, excluded_card_tokens: nil)
# @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, lithic_managed:, name:, program_level:, state:, type:, excluded_card_tokens: nil)
# Some parameter documentations has been truncated, see
# {Lithic::Models::AuthRules::V2ApplyResponse} for more details.
#
Expand All @@ -101,6 +108,8 @@ class V2ApplyResponse < Lithic::Internal::Type::BaseModel
#
# @param event_stream [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::EventStream] The event stream during which the rule will be evaluated.
#
# @param lithic_managed [Boolean] Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
#
# @param name [String, nil] Auth Rule Name
#
# @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program.
Expand Down Expand Up @@ -216,6 +225,8 @@ class Condition < Lithic::Internal::Type::BaseModel
# fee field in the settlement/cardholder billing currency. This is the amount
# the issuer should authorize against unless the issuer is paying the acquirer
# fee on behalf of the cardholder.
# - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
# represents the amount of cash being withdrawn or advanced.
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
# given authorization. Scores are on a range of 0-999, with 0 representing the
# lowest risk and 999 representing the highest risk. For Visa transactions,
Expand Down Expand Up @@ -295,6 +306,8 @@ class Condition < Lithic::Internal::Type::BaseModel
# fee field in the settlement/cardholder billing currency. This is the amount
# the issuer should authorize against unless the issuer is paying the acquirer
# fee on behalf of the cardholder.
# - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
# represents the amount of cash being withdrawn or advanced.
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
# given authorization. Scores are on a range of 0-999, with 0 representing the
# lowest risk and 999 representing the highest risk. For Visa transactions,
Expand Down Expand Up @@ -331,6 +344,7 @@ module Attribute
LIABILITY_SHIFT = :LIABILITY_SHIFT
PAN_ENTRY_MODE = :PAN_ENTRY_MODE
TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
CASH_AMOUNT = :CASH_AMOUNT
RISK_SCORE = :RISK_SCORE
CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
Expand Down Expand Up @@ -500,6 +514,8 @@ class Condition < Lithic::Internal::Type::BaseModel
# fee field in the settlement/cardholder billing currency. This is the amount
# the issuer should authorize against unless the issuer is paying the acquirer
# fee on behalf of the cardholder.
# - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
# represents the amount of cash being withdrawn or advanced.
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
# given authorization. Scores are on a range of 0-999, with 0 representing the
# lowest risk and 999 representing the highest risk. For Visa transactions,
Expand Down Expand Up @@ -579,6 +595,8 @@ class Condition < Lithic::Internal::Type::BaseModel
# fee field in the settlement/cardholder billing currency. This is the amount
# the issuer should authorize against unless the issuer is paying the acquirer
# fee on behalf of the cardholder.
# - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
# represents the amount of cash being withdrawn or advanced.
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
# given authorization. Scores are on a range of 0-999, with 0 representing the
# lowest risk and 999 representing the highest risk. For Visa transactions,
Expand Down Expand Up @@ -615,6 +633,7 @@ module Attribute
LIABILITY_SHIFT = :LIABILITY_SHIFT
PAN_ENTRY_MODE = :PAN_ENTRY_MODE
TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
CASH_AMOUNT = :CASH_AMOUNT
RISK_SCORE = :RISK_SCORE
CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
Expand Down
5 changes: 5 additions & 0 deletions lib/lithic/models/auth_rules/v2_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ class Condition < Lithic::Internal::Type::BaseModel
# fee field in the settlement/cardholder billing currency. This is the amount
# the issuer should authorize against unless the issuer is paying the acquirer
# fee on behalf of the cardholder.
# - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
# represents the amount of cash being withdrawn or advanced.
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
# given authorization. Scores are on a range of 0-999, with 0 representing the
# lowest risk and 999 representing the highest risk. For Visa transactions,
Expand Down Expand Up @@ -258,6 +260,8 @@ class Condition < Lithic::Internal::Type::BaseModel
# fee field in the settlement/cardholder billing currency. This is the amount
# the issuer should authorize against unless the issuer is paying the acquirer
# fee on behalf of the cardholder.
# - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
# represents the amount of cash being withdrawn or advanced.
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
# given authorization. Scores are on a range of 0-999, with 0 representing the
# lowest risk and 999 representing the highest risk. For Visa transactions,
Expand Down Expand Up @@ -294,6 +298,7 @@ module Attribute
LIABILITY_SHIFT = :LIABILITY_SHIFT
PAN_ENTRY_MODE = :PAN_ENTRY_MODE
TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
CASH_AMOUNT = :CASH_AMOUNT
RISK_SCORE = :RISK_SCORE
CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
Expand Down
21 changes: 20 additions & 1 deletion lib/lithic/models/auth_rules/v2_create_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ class V2CreateResponse < Lithic::Internal::Type::BaseModel
# @return [Symbol, Lithic::Models::AuthRules::V2CreateResponse::EventStream]
required :event_stream, enum: -> { Lithic::Models::AuthRules::V2CreateResponse::EventStream }

# @!attribute lithic_managed
# Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
# be modified or deleted by the user
#
# @return [Boolean]
required :lithic_managed, Lithic::Internal::Type::Boolean

# @!attribute name
# Auth Rule Name
#
Expand Down Expand Up @@ -83,7 +90,7 @@ class V2CreateResponse < Lithic::Internal::Type::BaseModel
# @return [Array<String>, nil]
optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String]

# @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, name:, program_level:, state:, type:, excluded_card_tokens: nil)
# @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, lithic_managed:, name:, program_level:, state:, type:, excluded_card_tokens: nil)
# Some parameter documentations has been truncated, see
# {Lithic::Models::AuthRules::V2CreateResponse} for more details.
#
Expand All @@ -101,6 +108,8 @@ class V2CreateResponse < Lithic::Internal::Type::BaseModel
#
# @param event_stream [Symbol, Lithic::Models::AuthRules::V2CreateResponse::EventStream] The event stream during which the rule will be evaluated.
#
# @param lithic_managed [Boolean] Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
#
# @param name [String, nil] Auth Rule Name
#
# @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program.
Expand Down Expand Up @@ -217,6 +226,8 @@ class Condition < Lithic::Internal::Type::BaseModel
# fee field in the settlement/cardholder billing currency. This is the amount
# the issuer should authorize against unless the issuer is paying the acquirer
# fee on behalf of the cardholder.
# - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
# represents the amount of cash being withdrawn or advanced.
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
# given authorization. Scores are on a range of 0-999, with 0 representing the
# lowest risk and 999 representing the highest risk. For Visa transactions,
Expand Down Expand Up @@ -296,6 +307,8 @@ class Condition < Lithic::Internal::Type::BaseModel
# fee field in the settlement/cardholder billing currency. This is the amount
# the issuer should authorize against unless the issuer is paying the acquirer
# fee on behalf of the cardholder.
# - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
# represents the amount of cash being withdrawn or advanced.
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
# given authorization. Scores are on a range of 0-999, with 0 representing the
# lowest risk and 999 representing the highest risk. For Visa transactions,
Expand Down Expand Up @@ -332,6 +345,7 @@ module Attribute
LIABILITY_SHIFT = :LIABILITY_SHIFT
PAN_ENTRY_MODE = :PAN_ENTRY_MODE
TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
CASH_AMOUNT = :CASH_AMOUNT
RISK_SCORE = :RISK_SCORE
CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
Expand Down Expand Up @@ -501,6 +515,8 @@ class Condition < Lithic::Internal::Type::BaseModel
# fee field in the settlement/cardholder billing currency. This is the amount
# the issuer should authorize against unless the issuer is paying the acquirer
# fee on behalf of the cardholder.
# - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
# represents the amount of cash being withdrawn or advanced.
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
# given authorization. Scores are on a range of 0-999, with 0 representing the
# lowest risk and 999 representing the highest risk. For Visa transactions,
Expand Down Expand Up @@ -580,6 +596,8 @@ class Condition < Lithic::Internal::Type::BaseModel
# fee field in the settlement/cardholder billing currency. This is the amount
# the issuer should authorize against unless the issuer is paying the acquirer
# fee on behalf of the cardholder.
# - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
# represents the amount of cash being withdrawn or advanced.
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
# given authorization. Scores are on a range of 0-999, with 0 representing the
# lowest risk and 999 representing the highest risk. For Visa transactions,
Expand Down Expand Up @@ -616,6 +634,7 @@ module Attribute
LIABILITY_SHIFT = :LIABILITY_SHIFT
PAN_ENTRY_MODE = :PAN_ENTRY_MODE
TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
CASH_AMOUNT = :CASH_AMOUNT
RISK_SCORE = :RISK_SCORE
CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
Expand Down
5 changes: 5 additions & 0 deletions lib/lithic/models/auth_rules/v2_draft_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ class Condition < Lithic::Internal::Type::BaseModel
# fee field in the settlement/cardholder billing currency. This is the amount
# the issuer should authorize against unless the issuer is paying the acquirer
# fee on behalf of the cardholder.
# - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
# represents the amount of cash being withdrawn or advanced.
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
# given authorization. Scores are on a range of 0-999, with 0 representing the
# lowest risk and 999 representing the highest risk. For Visa transactions,
Expand Down Expand Up @@ -172,6 +174,8 @@ class Condition < Lithic::Internal::Type::BaseModel
# fee field in the settlement/cardholder billing currency. This is the amount
# the issuer should authorize against unless the issuer is paying the acquirer
# fee on behalf of the cardholder.
# - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
# represents the amount of cash being withdrawn or advanced.
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
# given authorization. Scores are on a range of 0-999, with 0 representing the
# lowest risk and 999 representing the highest risk. For Visa transactions,
Expand Down Expand Up @@ -208,6 +212,7 @@ module Attribute
LIABILITY_SHIFT = :LIABILITY_SHIFT
PAN_ENTRY_MODE = :PAN_ENTRY_MODE
TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
CASH_AMOUNT = :CASH_AMOUNT
RISK_SCORE = :RISK_SCORE
CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
Expand Down
Loading