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.39"
".": "0.1.0-alpha.40"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 165
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-1aaf1d9d9aea1bfa14a48559f01d539aa1449d65f252dc9c3b606c7bca300af1.yml
openapi_spec_hash: 3327246caf3bcbd3504ce99c81062075
config_hash: a5d12cd64a37624cbe350cd7b2380693
configured_endpoints: 167
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-b9c76d077831114f1e4c5c15ff3f1d835ef3e9361b768af8468f8eb07a09ef3e.yml
openapi_spec_hash: 5f9bcf1afd68f962a870727c35628394
config_hash: e9a46eb8acb9dc2c236f3e1958a1c4dd
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 0.1.0-alpha.40 (2025-07-15)

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

### Features

* **api:** adds Network Programs and Account/Card Sub-statuses ([b5e5077](https://github.com/lithic-com/lithic-ruby/commit/b5e5077794684767a425d31f746cee2ed69d8ba7))
* **api:** api update ([b8de03e](https://github.com/lithic-com/lithic-ruby/commit/b8de03e418647489f4e34b4a55ca4256f34c52fe))
* **api:** api update ([72d4aab](https://github.com/lithic-com/lithic-ruby/commit/72d4aabb27fe144144c10899e64c863785d6595b))

## 0.1.0-alpha.39 (2025-07-03)

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

<!-- x-release-please-end -->
Expand Down
6 changes: 6 additions & 0 deletions lib/lithic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@
require_relative "lithic/models/external_payment_retrieve_params"
require_relative "lithic/models/external_payment_reverse_params"
require_relative "lithic/models/external_payment_settle_params"
require_relative "lithic/models/external_resource"
require_relative "lithic/models/external_resource_type"
require_relative "lithic/models/financial_account"
require_relative "lithic/models/financial_account_create_params"
require_relative "lithic/models/financial_account_list_params"
Expand Down Expand Up @@ -258,6 +260,9 @@
require_relative "lithic/models/management_operation_reverse_params"
require_relative "lithic/models/management_operation_transaction"
require_relative "lithic/models/message_attempt"
require_relative "lithic/models/network_program"
require_relative "lithic/models/network_program_list_params"
require_relative "lithic/models/network_program_retrieve_params"
require_relative "lithic/models/owner_type"
require_relative "lithic/models/payment_create_params"
require_relative "lithic/models/payment_create_response"
Expand Down Expand Up @@ -379,6 +384,7 @@
require_relative "lithic/resources/fraud/transactions"
require_relative "lithic/resources/funding_events"
require_relative "lithic/resources/management_operations"
require_relative "lithic/resources/network_programs"
require_relative "lithic/resources/payments"
require_relative "lithic/resources/reports"
require_relative "lithic/resources/reports/settlement"
Expand Down
4 changes: 4 additions & 0 deletions lib/lithic/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ class Client < Lithic::Internal::Transport::BaseClient
# @return [Lithic::Resources::Fraud]
attr_reader :fraud

# @return [Lithic::Resources::NetworkPrograms]
attr_reader :network_programs

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

ExternalPaymentSettleParams = Lithic::Models::ExternalPaymentSettleParams

ExternalResource = Lithic::Models::ExternalResource

ExternalResourceType = Lithic::Models::ExternalResourceType

FinancialAccount = Lithic::Models::FinancialAccount

FinancialAccountCreateParams = Lithic::Models::FinancialAccountCreateParams
Expand Down Expand Up @@ -272,6 +276,12 @@ module Lithic

MessageAttempt = Lithic::Models::MessageAttempt

NetworkProgram = Lithic::Models::NetworkProgram

NetworkProgramListParams = Lithic::Models::NetworkProgramListParams

NetworkProgramRetrieveParams = Lithic::Models::NetworkProgramRetrieveParams

NonPCICard = Lithic::Models::NonPCICard

OwnerType = Lithic::Models::OwnerType
Expand Down
89 changes: 88 additions & 1 deletion lib/lithic/models/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,51 @@ class Account < Lithic::Internal::Type::BaseModel
# @return [String, nil]
optional :cardholder_currency, String

# @!attribute comment
# Additional context or information related to the account.
#
# @return [String, nil]
optional :comment, String

# @!attribute substatus
# Account state substatus values:
#
# - `FRAUD_IDENTIFIED` - The account has been recognized as being created or used
# with stolen or fabricated identity information, encompassing both true
# identity theft and synthetic identities.
# - `SUSPICIOUS_ACTIVITY` - The account has exhibited suspicious behavior, such as
# unauthorized access or fraudulent transactions, necessitating further
# investigation.
# - `RISK_VIOLATION` - The account has been involved in deliberate misuse by the
# legitimate account holder. Examples include disputing valid transactions
# without cause, falsely claiming non-receipt of goods, or engaging in
# intentional bust-out schemes to exploit account services.
# - `END_USER_REQUEST` - The account holder has voluntarily requested the closure
# of the account for personal reasons. This encompasses situations such as
# bankruptcy, other financial considerations, or the account holder's death.
# - `ISSUER_REQUEST` - The issuer has initiated the closure of the account due to
# business strategy, risk management, inactivity, product changes, regulatory
# concerns, or violations of terms and conditions.
# - `NOT_ACTIVE` - The account has not had any transactions or payment activity
# within a specified period. This status applies to accounts that are paused or
# closed due to inactivity.
# - `INTERNAL_REVIEW` - The account is temporarily paused pending further internal
# review. In future implementations, this status may prevent clients from
# activating the account via APIs until the review is completed.
# - `OTHER` - The reason for the account's current status does not fall into any
# of the above categories. A comment should be provided to specify the
# particular reason.
#
# @return [Symbol, Lithic::Models::Account::Substatus, nil]
optional :substatus, enum: -> { Lithic::Account::Substatus }

# @!attribute verification_address
# @deprecated
#
# @return [Lithic::Models::Account::VerificationAddress, nil]
optional :verification_address, -> { Lithic::Account::VerificationAddress }

# @!method initialize(token:, created:, spend_limit:, state:, account_holder: nil, auth_rule_tokens: nil, cardholder_currency: nil, verification_address: nil)
# @!method initialize(token:, created:, spend_limit:, state:, account_holder: nil, auth_rule_tokens: nil, cardholder_currency: nil, comment: nil, substatus: nil, verification_address: nil)
# Some parameter documentations has been truncated, see {Lithic::Models::Account}
# for more details.
#
Expand All @@ -90,6 +128,10 @@ class Account < Lithic::Internal::Type::BaseModel
#
# @param cardholder_currency [String] 3-character alphabetic ISO 4217 code for the currency of the cardholder.
#
# @param comment [String] Additional context or information related to the account.
#
# @param substatus [Symbol, Lithic::Models::Account::Substatus] Account state substatus values:
#
# @param verification_address [Lithic::Models::Account::VerificationAddress]

# @see Lithic::Models::Account#spend_limit
Expand Down Expand Up @@ -191,6 +233,51 @@ class AccountHolder < Lithic::Internal::Type::BaseModel
# @param phone_number [String] Phone number of the individual.
end

# Account state substatus values:
#
# - `FRAUD_IDENTIFIED` - The account has been recognized as being created or used
# with stolen or fabricated identity information, encompassing both true
# identity theft and synthetic identities.
# - `SUSPICIOUS_ACTIVITY` - The account has exhibited suspicious behavior, such as
# unauthorized access or fraudulent transactions, necessitating further
# investigation.
# - `RISK_VIOLATION` - The account has been involved in deliberate misuse by the
# legitimate account holder. Examples include disputing valid transactions
# without cause, falsely claiming non-receipt of goods, or engaging in
# intentional bust-out schemes to exploit account services.
# - `END_USER_REQUEST` - The account holder has voluntarily requested the closure
# of the account for personal reasons. This encompasses situations such as
# bankruptcy, other financial considerations, or the account holder's death.
# - `ISSUER_REQUEST` - The issuer has initiated the closure of the account due to
# business strategy, risk management, inactivity, product changes, regulatory
# concerns, or violations of terms and conditions.
# - `NOT_ACTIVE` - The account has not had any transactions or payment activity
# within a specified period. This status applies to accounts that are paused or
# closed due to inactivity.
# - `INTERNAL_REVIEW` - The account is temporarily paused pending further internal
# review. In future implementations, this status may prevent clients from
# activating the account via APIs until the review is completed.
# - `OTHER` - The reason for the account's current status does not fall into any
# of the above categories. A comment should be provided to specify the
# particular reason.
#
# @see Lithic::Models::Account#substatus
module Substatus
extend Lithic::Internal::Type::Enum

FRAUD_IDENTIFIED = :FRAUD_IDENTIFIED
SUSPICIOUS_ACTIVITY = :SUSPICIOUS_ACTIVITY
RISK_VIOLATION = :RISK_VIOLATION
END_USER_REQUEST = :END_USER_REQUEST
ISSUER_REQUEST = :ISSUER_REQUEST
NOT_ACTIVE = :NOT_ACTIVE
INTERNAL_REVIEW = :INTERNAL_REVIEW
OTHER = :OTHER

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

# @deprecated
#
# @see Lithic::Models::Account#verification_address
Expand Down
87 changes: 86 additions & 1 deletion lib/lithic/models/account_update_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ class AccountUpdateParams < Lithic::Internal::Type::BaseModel
extend Lithic::Internal::Type::RequestParameters::Converter
include Lithic::Internal::Type::RequestParameters

# @!attribute comment
# Additional context or information related to the account.
#
# @return [String, nil]
optional :comment, String

# @!attribute daily_spend_limit
# Amount (in cents) for the account's daily spend limit (e.g. 100000 would be a
# $1,000 limit). By default the daily spend limit is set to $1,250.
Expand Down Expand Up @@ -39,6 +45,38 @@ class AccountUpdateParams < Lithic::Internal::Type::BaseModel
# @return [Symbol, Lithic::Models::AccountUpdateParams::State, nil]
optional :state, enum: -> { Lithic::AccountUpdateParams::State }

# @!attribute substatus
# Account state substatus values:
#
# - `FRAUD_IDENTIFIED` - The account has been recognized as being created or used
# with stolen or fabricated identity information, encompassing both true
# identity theft and synthetic identities.
# - `SUSPICIOUS_ACTIVITY` - The account has exhibited suspicious behavior, such as
# unauthorized access or fraudulent transactions, necessitating further
# investigation.
# - `RISK_VIOLATION` - The account has been involved in deliberate misuse by the
# legitimate account holder. Examples include disputing valid transactions
# without cause, falsely claiming non-receipt of goods, or engaging in
# intentional bust-out schemes to exploit account services.
# - `END_USER_REQUEST` - The account holder has voluntarily requested the closure
# of the account for personal reasons. This encompasses situations such as
# bankruptcy, other financial considerations, or the account holder's death.
# - `ISSUER_REQUEST` - The issuer has initiated the closure of the account due to
# business strategy, risk management, inactivity, product changes, regulatory
# concerns, or violations of terms and conditions.
# - `NOT_ACTIVE` - The account has not had any transactions or payment activity
# within a specified period. This status applies to accounts that are paused or
# closed due to inactivity.
# - `INTERNAL_REVIEW` - The account is temporarily paused pending further internal
# review. In future implementations, this status may prevent clients from
# activating the account via APIs until the review is completed.
# - `OTHER` - The reason for the account's current status does not fall into any
# of the above categories. A comment should be provided to specify the
# particular reason.
#
# @return [Symbol, Lithic::Models::AccountUpdateParams::Substatus, nil]
optional :substatus, enum: -> { Lithic::AccountUpdateParams::Substatus }

# @!attribute verification_address
# @deprecated
#
Expand All @@ -50,10 +88,12 @@ class AccountUpdateParams < Lithic::Internal::Type::BaseModel
# @return [Lithic::Models::AccountUpdateParams::VerificationAddress, nil]
optional :verification_address, -> { Lithic::AccountUpdateParams::VerificationAddress }

# @!method initialize(daily_spend_limit: nil, lifetime_spend_limit: nil, monthly_spend_limit: nil, state: nil, verification_address: nil, request_options: {})
# @!method initialize(comment: nil, daily_spend_limit: nil, lifetime_spend_limit: nil, monthly_spend_limit: nil, state: nil, substatus: nil, verification_address: nil, request_options: {})
# Some parameter documentations has been truncated, see
# {Lithic::Models::AccountUpdateParams} for more details.
#
# @param comment [String] Additional context or information related to the account.
#
# @param daily_spend_limit [Integer] Amount (in cents) for the account's daily spend limit (e.g. 100000 would be a $1
#
# @param lifetime_spend_limit [Integer] Amount (in cents) for the account's lifetime spend limit (e.g. 100000 would be a
Expand All @@ -62,6 +102,8 @@ class AccountUpdateParams < Lithic::Internal::Type::BaseModel
#
# @param state [Symbol, Lithic::Models::AccountUpdateParams::State] Account states.
#
# @param substatus [Symbol, Lithic::Models::AccountUpdateParams::Substatus] Account state substatus values:
#
# @param verification_address [Lithic::Models::AccountUpdateParams::VerificationAddress] Address used during Address Verification Service (AVS) checks during transaction
#
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
Expand All @@ -78,6 +120,49 @@ module State
# @return [Array<Symbol>]
end

# Account state substatus values:
#
# - `FRAUD_IDENTIFIED` - The account has been recognized as being created or used
# with stolen or fabricated identity information, encompassing both true
# identity theft and synthetic identities.
# - `SUSPICIOUS_ACTIVITY` - The account has exhibited suspicious behavior, such as
# unauthorized access or fraudulent transactions, necessitating further
# investigation.
# - `RISK_VIOLATION` - The account has been involved in deliberate misuse by the
# legitimate account holder. Examples include disputing valid transactions
# without cause, falsely claiming non-receipt of goods, or engaging in
# intentional bust-out schemes to exploit account services.
# - `END_USER_REQUEST` - The account holder has voluntarily requested the closure
# of the account for personal reasons. This encompasses situations such as
# bankruptcy, other financial considerations, or the account holder's death.
# - `ISSUER_REQUEST` - The issuer has initiated the closure of the account due to
# business strategy, risk management, inactivity, product changes, regulatory
# concerns, or violations of terms and conditions.
# - `NOT_ACTIVE` - The account has not had any transactions or payment activity
# within a specified period. This status applies to accounts that are paused or
# closed due to inactivity.
# - `INTERNAL_REVIEW` - The account is temporarily paused pending further internal
# review. In future implementations, this status may prevent clients from
# activating the account via APIs until the review is completed.
# - `OTHER` - The reason for the account's current status does not fall into any
# of the above categories. A comment should be provided to specify the
# particular reason.
module Substatus
extend Lithic::Internal::Type::Enum

FRAUD_IDENTIFIED = :FRAUD_IDENTIFIED
SUSPICIOUS_ACTIVITY = :SUSPICIOUS_ACTIVITY
RISK_VIOLATION = :RISK_VIOLATION
END_USER_REQUEST = :END_USER_REQUEST
ISSUER_REQUEST = :ISSUER_REQUEST
NOT_ACTIVE = :NOT_ACTIVE
INTERNAL_REVIEW = :INTERNAL_REVIEW
OTHER = :OTHER

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

# @deprecated
class VerificationAddress < Lithic::Internal::Type::BaseModel
# @!attribute address1
Expand Down
1 change: 1 addition & 0 deletions lib/lithic/models/aggregate_balance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ module FinancialAccountType
ISSUING = :ISSUING
OPERATING = :OPERATING
RESERVE = :RESERVE
SECURITY = :SECURITY

# @!method self.values
# @return [Array<Symbol>]
Expand Down
1 change: 1 addition & 0 deletions lib/lithic/models/aggregate_balance_list_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module FinancialAccountType
ISSUING = :ISSUING
OPERATING = :OPERATING
RESERVE = :RESERVE
SECURITY = :SECURITY

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