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.15.0"
".": "0.16.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 195
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-efe780032e44b3cf0f6914407e43bce6aa7176fa50aa6ec018f93c1f28af8490.yml
openapi_spec_hash: fcb4ca53ca59978f23f21d7c74fcc0b0
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-c1cfc621309e4d49899f9b055c399d7ad3eb24c05bad299322c1e03804d3d130.yml
openapi_spec_hash: 799d9da903ff2e4d51fe3f1566d17c92
config_hash: a0a579b0564a5c18568a78f5ba2b6653
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.16.0 (2026-05-28)

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

### Features

* **api:** Add created field to Challenge object ([e442303](https://github.com/lithic-com/lithic-ruby/commit/e44230324af07930c8cc84b3035677df54bc031f))


### Documentation

* **api:** update support contact from email to URL in account/card resources ([bd7f679](https://github.com/lithic-com/lithic-ruby/commit/bd7f67927187e7daa99059f5e9190c1df79424c3))

## 0.15.0 (2026-05-27)

Full Changelog: [v0.14.0...v0.15.0](https://github.com/lithic-com/lithic-ruby/compare/v0.14.0...v0.15.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.15.0)
lithic (0.16.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.15.0"
gem "lithic", "~> 0.16.0"
```

<!-- x-release-please-end -->
Expand Down
4 changes: 2 additions & 2 deletions lib/lithic/models/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Account < Lithic::Internal::Type::BaseModel
# accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states.
# Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to
# failure to pass KYB/KYC or for risk/compliance reasons. Please contact
# [support@lithic.com](mailto:support@lithic.com) if you believe this was done
# [support.lithic.com](https://support.lithic.com/) if you believe this was done
# by mistake.
#
# @return [Symbol, Lithic::Models::Account::State]
Expand Down Expand Up @@ -177,7 +177,7 @@ class SpendLimit < Lithic::Internal::Type::BaseModel
# accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states.
# Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to
# failure to pass KYB/KYC or for risk/compliance reasons. Please contact
# [support@lithic.com](mailto:support@lithic.com) if you believe this was done
# [support.lithic.com](https://support.lithic.com/) if you believe this was done
# by mistake.
#
# @see Lithic::Models::Account#state
Expand Down
2 changes: 1 addition & 1 deletion lib/lithic/models/card.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Card < Lithic::Models::NonPCICard
# @!attribute pan
# Primary Account Number (PAN) (i.e. the card number). Customers must be PCI
# compliant to have PAN returned as a field in production. Please contact
# support@lithic.com for questions.
# https://support.lithic.com/ for questions.
#
# @return [String, nil]
optional :pan, String
Expand Down
28 changes: 18 additions & 10 deletions lib/lithic/models/card_authorization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,19 @@ module FleetRestrictionCode

# @see Lithic::Models::CardAuthorization#latest_challenge
class LatestChallenge < Lithic::Internal::Type::BaseModel
# @!attribute completed_at
# The date and time when the Authorization Challenge was completed in UTC. Filled
# only if the challenge has been completed.
#
# @return [Time, nil]
required :completed_at, Time, nil?: true

# @!attribute created
# The date and time when the Authorization Challenge was created in UTC
#
# @return [Time]
required :created, Time

# @!attribute method_
# The method used to deliver the challenge to the cardholder
#
Expand Down Expand Up @@ -821,27 +834,22 @@ class LatestChallenge < Lithic::Internal::Type::BaseModel
# @return [Symbol, Lithic::Models::CardAuthorization::LatestChallenge::Status]
required :status, enum: -> { Lithic::CardAuthorization::LatestChallenge::Status }

# @!attribute completed_at
# The date and time when the Authorization Challenge was completed in UTC. Present
# only if the status is `COMPLETED`.
#
# @return [Time, nil]
optional :completed_at, Time

# @!method initialize(method_:, phone_number:, status:, completed_at: nil)
# @!method initialize(completed_at:, created:, method_:, phone_number:, status:)
# Some parameter documentations has been truncated, see
# {Lithic::Models::CardAuthorization::LatestChallenge} for more details.
#
# The latest Authorization Challenge that was issued to the cardholder for this
# merchant.
#
# @param completed_at [Time, nil] The date and time when the Authorization Challenge was completed in UTC. Filled
#
# @param created [Time] The date and time when the Authorization Challenge was created in UTC
#
# @param method_ [Symbol, Lithic::Models::CardAuthorization::LatestChallenge::Method] The method used to deliver the challenge to the cardholder
#
# @param phone_number [String, nil] The phone number used for sending the Authorization Challenge. Present only when
#
# @param status [Symbol, Lithic::Models::CardAuthorization::LatestChallenge::Status] The status of the Authorization Challenge
#
# @param completed_at [Time] The date and time when the Authorization Challenge was completed in UTC. Present

# The method used to deliver the challenge to the cardholder
#
Expand Down
4 changes: 2 additions & 2 deletions lib/lithic/resources/cards.rb
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,8 @@ def retrieve_spend_limits(card_token, params = {})

# Get card configuration such as spend limit and state. Customers must be PCI
# compliant to use this endpoint. Please contact
# [support@lithic.com](mailto:support@lithic.com) for questions. _Note: this is a
# `POST` endpoint because it is more secure to send sensitive data in a request
# [support.lithic.com](https://support.lithic.com/) for questions. _Note: this is
# a `POST` endpoint because it is more secure to send sensitive data in a request
# body than in a URL._
#
# @overload search_by_pan(pan:, request_options: {})
Expand Down
2 changes: 1 addition & 1 deletion lib/lithic/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Lithic
VERSION = "0.15.0"
VERSION = "0.16.0"
end
6 changes: 3 additions & 3 deletions rbi/lithic/models/account.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module Lithic
# accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states.
# Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to
# failure to pass KYB/KYC or for risk/compliance reasons. Please contact
# [support@lithic.com](mailto:support@lithic.com) if you believe this was done
# [support.lithic.com](https://support.lithic.com/) if you believe this was done
# by mistake.
sig { returns(Lithic::Account::State::TaggedSymbol) }
attr_accessor :state
Expand Down Expand Up @@ -149,7 +149,7 @@ module Lithic
# accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states.
# Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to
# failure to pass KYB/KYC or for risk/compliance reasons. Please contact
# [support@lithic.com](mailto:support@lithic.com) if you believe this was done
# [support.lithic.com](https://support.lithic.com/) if you believe this was done
# by mistake.
state:,
account_holder: nil,
Expand Down Expand Up @@ -269,7 +269,7 @@ module Lithic
# accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states.
# Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to
# failure to pass KYB/KYC or for risk/compliance reasons. Please contact
# [support@lithic.com](mailto:support@lithic.com) if you believe this was done
# [support.lithic.com](https://support.lithic.com/) if you believe this was done
# by mistake.
module State
extend Lithic::Internal::Type::Enum
Expand Down
4 changes: 2 additions & 2 deletions rbi/lithic/models/card.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module Lithic

# Primary Account Number (PAN) (i.e. the card number). Customers must be PCI
# compliant to have PAN returned as a field in production. Please contact
# support@lithic.com for questions.
# https://support.lithic.com/ for questions.
sig { returns(T.nilable(String)) }
attr_reader :pan

Expand All @@ -28,7 +28,7 @@ module Lithic
cvv: nil,
# Primary Account Number (PAN) (i.e. the card number). Customers must be PCI
# compliant to have PAN returned as a field in production. Please contact
# support@lithic.com for questions.
# https://support.lithic.com/ for questions.
pan: nil
)
end
Expand Down
38 changes: 21 additions & 17 deletions rbi/lithic/models/card_authorization.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -1381,6 +1381,15 @@ module Lithic
)
end

# The date and time when the Authorization Challenge was completed in UTC. Filled
# only if the challenge has been completed.
sig { returns(T.nilable(Time)) }
attr_accessor :completed_at

# The date and time when the Authorization Challenge was created in UTC
sig { returns(Time) }
attr_accessor :created

# The method used to deliver the challenge to the cardholder
#
# - `SMS` - Challenge was delivered via SMS
Expand Down Expand Up @@ -1411,27 +1420,24 @@ module Lithic
end
attr_accessor :status

# The date and time when the Authorization Challenge was completed in UTC. Present
# only if the status is `COMPLETED`.
sig { returns(T.nilable(Time)) }
attr_reader :completed_at

sig { params(completed_at: Time).void }
attr_writer :completed_at

# The latest Authorization Challenge that was issued to the cardholder for this
# merchant.
sig do
params(
completed_at: T.nilable(Time),
created: Time,
method_:
Lithic::CardAuthorization::LatestChallenge::Method::OrSymbol,
phone_number: T.nilable(String),
status:
Lithic::CardAuthorization::LatestChallenge::Status::OrSymbol,
completed_at: Time
status: Lithic::CardAuthorization::LatestChallenge::Status::OrSymbol
).returns(T.attached_class)
end
def self.new(
# The date and time when the Authorization Challenge was completed in UTC. Filled
# only if the challenge has been completed.
completed_at:,
# The date and time when the Authorization Challenge was created in UTC
created:,
# The method used to deliver the challenge to the cardholder
#
# - `SMS` - Challenge was delivered via SMS
Expand All @@ -1447,22 +1453,20 @@ module Lithic
# - `PENDING` - Challenge is still open
# - `EXPIRED` - Challenge has expired without being completed
# - `ERROR` - There was an error processing the challenge
status:,
# The date and time when the Authorization Challenge was completed in UTC. Present
# only if the status is `COMPLETED`.
completed_at: nil
status:
)
end

sig do
override.returns(
{
completed_at: T.nilable(Time),
created: Time,
method_:
Lithic::CardAuthorization::LatestChallenge::Method::TaggedSymbol,
phone_number: T.nilable(String),
status:
Lithic::CardAuthorization::LatestChallenge::Status::TaggedSymbol,
completed_at: Time
Lithic::CardAuthorization::LatestChallenge::Status::TaggedSymbol
}
)
end
Expand Down
4 changes: 2 additions & 2 deletions rbi/lithic/resources/cards.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,8 @@ module Lithic

# Get card configuration such as spend limit and state. Customers must be PCI
# compliant to use this endpoint. Please contact
# [support@lithic.com](mailto:support@lithic.com) for questions. _Note: this is a
# `POST` endpoint because it is more secure to send sensitive data in a request
# [support.lithic.com](https://support.lithic.com/) for questions. _Note: this is
# a `POST` endpoint because it is more secure to send sensitive data in a request
# body than in a URL._
sig do
params(
Expand Down
23 changes: 13 additions & 10 deletions sig/lithic/models/card_authorization.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -588,35 +588,38 @@ module Lithic

type latest_challenge =
{
completed_at: Time?,
created: Time,
method_: Lithic::Models::CardAuthorization::LatestChallenge::method_,
phone_number: String?,
status: Lithic::Models::CardAuthorization::LatestChallenge::status,
completed_at: Time
status: Lithic::Models::CardAuthorization::LatestChallenge::status
}

class LatestChallenge < Lithic::Internal::Type::BaseModel
attr_accessor completed_at: Time?

attr_accessor created: Time

attr_accessor method_: Lithic::Models::CardAuthorization::LatestChallenge::method_

attr_accessor phone_number: String?

attr_accessor status: Lithic::Models::CardAuthorization::LatestChallenge::status

attr_reader completed_at: Time?

def completed_at=: (Time) -> Time

def initialize: (
completed_at: Time?,
created: Time,
method_: Lithic::Models::CardAuthorization::LatestChallenge::method_,
phone_number: String?,
status: Lithic::Models::CardAuthorization::LatestChallenge::status,
?completed_at: Time
status: Lithic::Models::CardAuthorization::LatestChallenge::status
) -> void

def to_hash: -> {
completed_at: Time?,
created: Time,
method_: Lithic::Models::CardAuthorization::LatestChallenge::method_,
phone_number: String?,
status: Lithic::Models::CardAuthorization::LatestChallenge::status,
completed_at: Time
status: Lithic::Models::CardAuthorization::LatestChallenge::status
}

type method_ = :SMS | :OUT_OF_BAND
Expand Down