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"
}
8 changes: 4 additions & 4 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
config_hash: 27fa50e251754c8982e3dc615ef6da41
configured_endpoints: 218
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-cc426da9e5047cbcd8e764a20ea1afd35c685ebaedc87128f0a22f9f05ae1537.yml
openapi_spec_hash: 731d6efde305387fde11ba31972f176b
config_hash: b314c3c5c82a483d1a7812b31b1d1fc4
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Changelog

## 0.21.0 (2026-09-16)

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

### Features

* [CARDS-5174] Add reiusse/renew 409 error ([2fc8f3b](https://github.com/lithic-com/lithic-ruby/commit/2fc8f3b93ff2e392d8eda8e343d21e423c214191))
* Add missing blockchain/stablecoin endpoints to the spec ([3e8c0dc](https://github.com/lithic-com/lithic-ruby/commit/3e8c0dcdaa7169ba0a47bea4493e71d778af8853))
* **api:** add EXTERNAL_STABLECOIN category and events to payment resources ([518aebb](https://github.com/lithic-com/lithic-ruby/commit/518aebb0cf94cbc0b1ca1ef85a94a71c5bf1983e))
* **api:** add FEE/FEE_REVERSAL to financial_event, statement_line_items, management_operation ([04690f1](https://github.com/lithic-com/lithic-ruby/commit/04690f1542cb3f213da8695507a371c4f0a5aed4))
* **api:** add OTHER enum value to auth_rules type field ([1bb4cc8](https://github.com/lithic-com/lithic-ruby/commit/1bb4cc80ab6e025ebf0d6fcdd88c5b62cbb602a0))
* **api:** add psd2_context field to three_ds_authentication ([19e526e](https://github.com/lithic-com/lithic-ruby/commit/19e526e916227881e91ac1dac42e75d86132451e))
* **api:** add STABLECOIN_REVIEWED event type to payment simulate action ([766c658](https://github.com/lithic-com/lithic-ruby/commit/766c658645a79accfca85707ce6d5c087d93959e))
* AUTH-3759: Add DECLINE_SCA_REQUIRED and SCA_REQUIRED enum entries ([e784b27](https://github.com/lithic-com/lithic-ruby/commit/e784b275c2690eb0d2ab4a36a3ee9f5af2f79b0b))
* TRE-14349: add installment plan management operation event types ([bd71bde](https://github.com/lithic-com/lithic-ruby/commit/bd71bde5d20641e236b5b2e95908293bf0ef48e9))
* TRE-14429: Document the stablecoin payments endpoint ([050c7bd](https://github.com/lithic-com/lithic-ruby/commit/050c7bdd679e3c090c6e1819c0aa3405e3cbfc0c))


### Documentation

* Document the card.pin_updated webhook ([b96e92e](https://github.com/lithic-com/lithic-ruby/commit/b96e92e36fa4ae4dab543d1cc639d807f810b967))

## 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
4 changes: 4 additions & 0 deletions lib/lithic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
require_relative "lithic/models/balance_updated_webhook_event"
require_relative "lithic/models/blockchain_recipient"
require_relative "lithic/models/blockchain_recipient_create_params"
require_relative "lithic/models/blockchain_recipient_retrieve_params"
require_relative "lithic/models/book_transfer_create_params"
require_relative "lithic/models/book_transfer_list_params"
require_relative "lithic/models/book_transfer_retrieve_params"
Expand All @@ -194,6 +195,7 @@
require_relative "lithic/models/card_embed_response"
require_relative "lithic/models/cardholder_authentication"
require_relative "lithic/models/card_list_params"
require_relative "lithic/models/card_pin_updated_webhook_event"
require_relative "lithic/models/card_program"
require_relative "lithic/models/card_program_list_params"
require_relative "lithic/models/card_program_retrieve_params"
Expand Down Expand Up @@ -383,6 +385,8 @@
require_relative "lithic/models/parsed_webhook_event"
require_relative "lithic/models/payment_create_params"
require_relative "lithic/models/payment_create_response"
require_relative "lithic/models/payment_create_stablecoin_params"
require_relative "lithic/models/payment_create_stablecoin_response"
require_relative "lithic/models/payment_list_params"
require_relative "lithic/models/payment_retrieve_params"
require_relative "lithic/models/payment_retry_params"
Expand Down
6 changes: 6 additions & 0 deletions lib/lithic/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ module Lithic

BlockchainRecipientCreateParams = Lithic::Models::BlockchainRecipientCreateParams

BlockchainRecipientRetrieveParams = Lithic::Models::BlockchainRecipientRetrieveParams

BookTransferCreateParams = Lithic::Models::BookTransferCreateParams

BookTransferListParams = Lithic::Models::BookTransferListParams
Expand Down Expand Up @@ -170,6 +172,8 @@ module Lithic

CardListParams = Lithic::Models::CardListParams

CardPinUpdatedWebhookEvent = Lithic::Models::CardPinUpdatedWebhookEvent

CardProgram = Lithic::Models::CardProgram

CardProgramListParams = Lithic::Models::CardProgramListParams
Expand Down Expand Up @@ -475,6 +479,8 @@ module Lithic

PaymentCreateParams = Lithic::Models::PaymentCreateParams

PaymentCreateStablecoinParams = Lithic::Models::PaymentCreateStablecoinParams

PaymentListParams = Lithic::Models::PaymentListParams

PaymentRetrieveParams = Lithic::Models::PaymentRetrieveParams
Expand Down
1 change: 1 addition & 0 deletions lib/lithic/models/account_activity_list_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ module Category
EXTERNAL_CHECK = :EXTERNAL_CHECK
EXTERNAL_FEDNOW = :EXTERNAL_FEDNOW
EXTERNAL_RTP = :EXTERNAL_RTP
EXTERNAL_STABLECOIN = :EXTERNAL_STABLECOIN
EXTERNAL_TRANSFER = :EXTERNAL_TRANSFER
EXTERNAL_WIRE = :EXTERNAL_WIRE
MANAGEMENT_ADJUSTMENT = :MANAGEMENT_ADJUSTMENT
Expand Down
1 change: 1 addition & 0 deletions lib/lithic/models/account_activity_list_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ module Category
EXTERNAL_CHECK = :EXTERNAL_CHECK
EXTERNAL_FEDNOW = :EXTERNAL_FEDNOW
EXTERNAL_RTP = :EXTERNAL_RTP
EXTERNAL_STABLECOIN = :EXTERNAL_STABLECOIN
EXTERNAL_TRANSFER = :EXTERNAL_TRANSFER
EXTERNAL_WIRE = :EXTERNAL_WIRE
MANAGEMENT_ADJUSTMENT = :MANAGEMENT_ADJUSTMENT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ module Category
EXTERNAL_CHECK = :EXTERNAL_CHECK
EXTERNAL_FEDNOW = :EXTERNAL_FEDNOW
EXTERNAL_RTP = :EXTERNAL_RTP
EXTERNAL_STABLECOIN = :EXTERNAL_STABLECOIN
EXTERNAL_TRANSFER = :EXTERNAL_TRANSFER
EXTERNAL_WIRE = :EXTERNAL_WIRE
MANAGEMENT_ADJUSTMENT = :MANAGEMENT_ADJUSTMENT
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
1 change: 1 addition & 0 deletions lib/lithic/models/auth_rules/report_stats.rb
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ module Code
PROGRAM_SUSPENDED = :PROGRAM_SUSPENDED
PROGRAM_USAGE_RESTRICTION = :PROGRAM_USAGE_RESTRICTION
REVERSAL_UNMATCHED = :REVERSAL_UNMATCHED
SCA_REQUIRED = :SCA_REQUIRED
SECURITY_VIOLATION = :SECURITY_VIOLATION
SINGLE_USE_CARD_REATTEMPTED = :SINGLE_USE_CARD_REATTEMPTED
SUSPECTED_FRAUD = :SUSPECTED_FRAUD
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
1 change: 1 addition & 0 deletions lib/lithic/models/auth_rules/v2_list_results_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ module Code
PROGRAM_SUSPENDED = :PROGRAM_SUSPENDED
PROGRAM_USAGE_RESTRICTION = :PROGRAM_USAGE_RESTRICTION
REVERSAL_UNMATCHED = :REVERSAL_UNMATCHED
SCA_REQUIRED = :SCA_REQUIRED
SECURITY_VIOLATION = :SECURITY_VIOLATION
SINGLE_USE_CARD_REATTEMPTED = :SINGLE_USE_CARD_REATTEMPTED
SUSPECTED_FRAUD = :SUSPECTED_FRAUD
Expand Down
20 changes: 20 additions & 0 deletions lib/lithic/models/blockchain_recipient_retrieve_params.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# frozen_string_literal: true

module Lithic
module Models
# @see Lithic::Resources::BlockchainRecipients#retrieve
class BlockchainRecipientRetrieveParams < Lithic::Internal::Type::BaseModel
extend Lithic::Internal::Type::RequestParameters::Converter
include Lithic::Internal::Type::RequestParameters

# @!attribute blockchain_recipient_token
#
# @return [String]
required :blockchain_recipient_token, String

# @!method initialize(blockchain_recipient_token:, request_options: {})
# @param blockchain_recipient_token [String]
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
end
end
end
87 changes: 87 additions & 0 deletions lib/lithic/models/card_pin_updated_webhook_event.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# frozen_string_literal: true

module Lithic
module Models
class CardPinUpdatedWebhookEvent < Lithic::Internal::Type::BaseModel
# @!attribute card_token
# The token of the card whose PIN or PIN status was updated
#
# @return [String]
required :card_token, String

# @!attribute event_type
# The type of event that occurred.
#
# @return [Symbol, :"card.pin_updated"]
required :event_type, const: :"card.pin_updated"

# @!attribute pin_status
# The card's PIN status after the update
#
# @return [Symbol, Lithic::Models::CardPinUpdatedWebhookEvent::PinStatus]
required :pin_status, enum: -> { Lithic::CardPinUpdatedWebhookEvent::PinStatus }

# @!attribute status_reason
# The reason for the PIN update:
#
# - `PIN_SET` - The PIN was set for the first time; `pin_status` is `OK`
# - `PIN_CHANGED` - The PIN was changed, including when changing a blocked PIN;
# `pin_status` is `OK`
# - `PIN_UNBLOCKED` - The PIN was unblocked without changing it; `pin_status` is
# `OK`
# - `EXCESSIVE_PIN_ATTEMPTS` - The PIN was blocked due to excessive incorrect PIN
# attempts; `pin_status` is `BLOCKED`
#
# @return [Symbol, Lithic::Models::CardPinUpdatedWebhookEvent::StatusReason]
required :status_reason, enum: -> { Lithic::CardPinUpdatedWebhookEvent::StatusReason }

# @!method initialize(card_token:, pin_status:, status_reason:, event_type: :"card.pin_updated")
# Some parameter documentations has been truncated, see
# {Lithic::Models::CardPinUpdatedWebhookEvent} for more details.
#
# @param card_token [String] The token of the card whose PIN or PIN status was updated
#
# @param pin_status [Symbol, Lithic::Models::CardPinUpdatedWebhookEvent::PinStatus] The card's PIN status after the update
#
# @param status_reason [Symbol, Lithic::Models::CardPinUpdatedWebhookEvent::StatusReason] The reason for the PIN update:
#
# @param event_type [Symbol, :"card.pin_updated"] The type of event that occurred.

# The card's PIN status after the update
#
# @see Lithic::Models::CardPinUpdatedWebhookEvent#pin_status
module PinStatus
extend Lithic::Internal::Type::Enum

OK = :OK
BLOCKED = :BLOCKED

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

# The reason for the PIN update:
#
# - `PIN_SET` - The PIN was set for the first time; `pin_status` is `OK`
# - `PIN_CHANGED` - The PIN was changed, including when changing a blocked PIN;
# `pin_status` is `OK`
# - `PIN_UNBLOCKED` - The PIN was unblocked without changing it; `pin_status` is
# `OK`
# - `EXCESSIVE_PIN_ATTEMPTS` - The PIN was blocked due to excessive incorrect PIN
# attempts; `pin_status` is `BLOCKED`
#
# @see Lithic::Models::CardPinUpdatedWebhookEvent#status_reason
module StatusReason
extend Lithic::Internal::Type::Enum

PIN_SET = :PIN_SET
PIN_CHANGED = :PIN_CHANGED
PIN_UNBLOCKED = :PIN_UNBLOCKED
EXCESSIVE_PIN_ATTEMPTS = :EXCESSIVE_PIN_ATTEMPTS

# @!method self.values
# @return [Array<Symbol>]
end
end
end
end
5 changes: 5 additions & 0 deletions lib/lithic/models/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ class Event < Lithic::Internal::Type::BaseModel
# - card.converted: Occurs when a card is converted from virtual to physical
# cards.
# - card.created: Occurs when a new card is created.
# - card.pin_updated: Occurs when a card's PIN is set, changed, unblocked, or
# blocked due to excessive incorrect PIN attempts.
# - card.reissued: Occurs when a card is reissued.
# - card.renewed: Occurs when a card is renewed.
# - card.shipped: Occurs when a card is shipped.
Expand Down Expand Up @@ -198,6 +200,8 @@ class Event < Lithic::Internal::Type::BaseModel
# - card.converted: Occurs when a card is converted from virtual to physical
# cards.
# - card.created: Occurs when a new card is created.
# - card.pin_updated: Occurs when a card's PIN is set, changed, unblocked, or
# blocked due to excessive incorrect PIN attempts.
# - card.reissued: Occurs when a card is reissued.
# - card.renewed: Occurs when a card is renewed.
# - card.shipped: Occurs when a card is shipped.
Expand Down Expand Up @@ -318,6 +322,7 @@ module EventType
CARD_TRANSACTION_UPDATED = :"card_transaction.updated"
CARD_CONVERTED = :"card.converted"
CARD_CREATED = :"card.created"
CARD_PIN_UPDATED = :"card.pin_updated"
CARD_REISSUED = :"card.reissued"
CARD_RENEWED = :"card.renewed"
CARD_SHIPPED = :"card.shipped"
Expand Down
Loading