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.33"
".": "0.1.0-alpha.34"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 162
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-c178720e9b6fe1ff3917d4d96652b4c91a0e7f0795b6858256d250d8a203d3ac.yml
openapi_spec_hash: 23a4716c6168e96f040ac8575582d075
config_hash: 227ad54062905d4ae964b24cef0505b0
configured_endpoints: 165
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-a0d3bcd9c54616729a7e43847e3134205e0695d78f357cc7a25c2775b588dbbd.yml
openapi_spec_hash: 36c423c286ca426f7510b27fadbdd66f
config_hash: 56632a1c934324aa46c1e5c610c2de85
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.1.0-alpha.34 (2025-06-26)

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

### Features

* **client:** adds support for on-demand Auth Rule Performance Reports ([54fcb64](https://github.com/lithic-com/lithic-ruby/commit/54fcb64ea4678afd8049d070b5f28873beeec3a4))


### Bug Fixes

* **ci:** release-doctor — report correct token name ([664a344](https://github.com/lithic-com/lithic-ruby/commit/664a344c803fc568d8011c18acb0246564a589ec))

## 0.1.0-alpha.33 (2025-06-18)

Full Changelog: [v0.1.0-alpha.32...v0.1.0-alpha.33](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.32...v0.1.0-alpha.33)
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.33)
lithic (0.1.0.pre.alpha.34)
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.33"
gem "lithic", "~> 0.1.0.pre.alpha.34"
```

<!-- x-release-please-end -->
Expand Down
2 changes: 1 addition & 1 deletion bin/check-release-environment
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
errors=()

if [ -z "${GEM_HOST_API_KEY}" ]; then
errors+=("The LITHIC_GEM_HOST_API_KEY secret has not been set. Please set it in either this repository's secrets or your organization secrets")
errors+=("The GEM_HOST_API_KEY secret has not been set. Please set it in either this repository's secrets or your organization secrets")
fi

lenErrors=${#errors[@]}
Expand Down
9 changes: 9 additions & 0 deletions lib/lithic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
require_relative "lithic/models/auth_rules/auth_rule_condition"
require_relative "lithic/models/auth_rules/conditional_attribute"
require_relative "lithic/models/auth_rules/conditional_block_parameters"
require_relative "lithic/models/auth_rules/rule_stats"
require_relative "lithic/models/auth_rules/v2/backtest_create_params"
require_relative "lithic/models/auth_rules/v2/backtest_create_response"
require_relative "lithic/models/auth_rules/v2/backtest_results"
Expand All @@ -103,6 +104,8 @@
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_params"
require_relative "lithic/models/auth_rules/v2_retrieve_report_params"
require_relative "lithic/models/auth_rules/v2_retrieve_report_response"
require_relative "lithic/models/auth_rules/v2_retrieve_response"
require_relative "lithic/models/auth_rules/v2_update_params"
require_relative "lithic/models/auth_rules/v2_update_response"
Expand Down Expand Up @@ -232,6 +235,10 @@
require_relative "lithic/models/financial_account_update_params"
require_relative "lithic/models/financial_account_update_status_params"
require_relative "lithic/models/financial_transaction"
require_relative "lithic/models/fraud/transaction_report_params"
require_relative "lithic/models/fraud/transaction_report_response"
require_relative "lithic/models/fraud/transaction_retrieve_params"
require_relative "lithic/models/fraud/transaction_retrieve_response"
require_relative "lithic/models/funding_event_list_params"
require_relative "lithic/models/funding_event_list_response"
require_relative "lithic/models/funding_event_retrieve_details_params"
Expand Down Expand Up @@ -366,6 +373,8 @@
require_relative "lithic/resources/financial_accounts/loan_tapes"
require_relative "lithic/resources/financial_accounts/statements"
require_relative "lithic/resources/financial_accounts/statements/line_items"
require_relative "lithic/resources/fraud"
require_relative "lithic/resources/fraud/transactions"
require_relative "lithic/resources/funding_events"
require_relative "lithic/resources/management_operations"
require_relative "lithic/resources/payments"
Expand Down
4 changes: 4 additions & 0 deletions lib/lithic/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ class Client < Lithic::Internal::Transport::BaseClient
# @return [Lithic::Resources::FundingEvents]
attr_reader :funding_events

# @return [Lithic::Resources::Fraud]
attr_reader :fraud

# Status of api
#
# @overload api_status(request_options: {})
Expand Down Expand Up @@ -201,6 +204,7 @@ def initialize(
@external_payments = Lithic::Resources::ExternalPayments.new(client: self)
@management_operations = Lithic::Resources::ManagementOperations.new(client: self)
@funding_events = Lithic::Resources::FundingEvents.new(client: self)
@fraud = Lithic::Resources::Fraud.new(client: self)
end
end
end
2 changes: 2 additions & 0 deletions lib/lithic/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ module Lithic

FinancialTransaction = Lithic::Models::FinancialTransaction

Fraud = Lithic::Models::Fraud

FundingEventListParams = Lithic::Models::FundingEventListParams

FundingEventRetrieveDetailsParams = Lithic::Models::FundingEventRetrieveDetailsParams
Expand Down
112 changes: 112 additions & 0 deletions lib/lithic/models/auth_rules/rule_stats.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
# frozen_string_literal: true

module Lithic
module Models
module AuthRules
class RuleStats < Lithic::Internal::Type::BaseModel
# @!attribute approved
# The total number of historical transactions approved by this rule during the
# relevant period, or the number of transactions that would have been approved if
# the rule was evaluated in shadow mode.
#
# @return [Integer, nil]
optional :approved, Integer

# @!attribute challenged
# The total number of historical transactions challenged by this rule during the
# relevant period, or the number of transactions that would have been challenged
# if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth
# Rules.
#
# @return [Integer, nil]
optional :challenged, Integer

# @!attribute declined
# The total number of historical transactions declined by this rule during the
# relevant period, or the number of transactions that would have been declined if
# the rule was evaluated in shadow mode.
#
# @return [Integer, nil]
optional :declined, Integer

# @!attribute examples
# Example events and their outcomes.
#
# @return [Array<Lithic::Models::AuthRules::RuleStats::Example>, nil]
optional :examples, -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::RuleStats::Example] }

response_only do
# @!attribute version
# The version of the rule, this is incremented whenever the rule's parameters
# change.
#
# @return [Integer, nil]
optional :version, Integer
end

# @!method initialize(approved: nil, challenged: nil, declined: nil, examples: nil, version: nil)
# Some parameter documentations has been truncated, see
# {Lithic::Models::AuthRules::RuleStats} for more details.
#
# @param approved [Integer] The total number of historical transactions approved by this rule during the rel
#
# @param challenged [Integer] The total number of historical transactions challenged by this rule during the r
#
# @param declined [Integer] The total number of historical transactions declined by this rule during the rel
#
# @param examples [Array<Lithic::Models::AuthRules::RuleStats::Example>] Example events and their outcomes.
#
# @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan

class Example < Lithic::Internal::Type::BaseModel
# @!attribute approved
# Whether the rule would have approved the request.
#
# @return [Boolean, nil]
optional :approved, Lithic::Internal::Type::Boolean

# @!attribute decision
# The decision made by the rule for this event.
#
# @return [Symbol, Lithic::Models::AuthRules::RuleStats::Example::Decision, nil]
optional :decision, enum: -> { Lithic::AuthRules::RuleStats::Example::Decision }

# @!attribute event_token
# The event token.
#
# @return [String, nil]
optional :event_token, String

# @!attribute timestamp
# The timestamp of the event.
#
# @return [Time, nil]
optional :timestamp, Time

# @!method initialize(approved: nil, decision: nil, event_token: nil, timestamp: nil)
# @param approved [Boolean] Whether the rule would have approved the request.
#
# @param decision [Symbol, Lithic::Models::AuthRules::RuleStats::Example::Decision] The decision made by the rule for this event.
#
# @param event_token [String] The event token.
#
# @param timestamp [Time] The timestamp of the event.

# The decision made by the rule for this event.
#
# @see Lithic::Models::AuthRules::RuleStats::Example#decision
module Decision
extend Lithic::Internal::Type::Enum

APPROVED = :APPROVED
DECLINED = :DECLINED
CHALLENGED = :CHALLENGED

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