From e44230324af07930c8cc84b3035677df54bc031f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 28 May 2026 11:09:42 +0000 Subject: [PATCH 1/3] feat(api): Add created field to Challenge object --- .stats.yml | 4 +-- lib/lithic/models/card_authorization.rb | 28 ++++++++++------- rbi/lithic/models/card_authorization.rbi | 38 +++++++++++++----------- sig/lithic/models/card_authorization.rbs | 23 +++++++------- 4 files changed, 54 insertions(+), 39 deletions(-) diff --git a/.stats.yml b/.stats.yml index 29c3961c..c47d8ece 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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-af18ede440e3b8a8b15aa3831c5add93c25934cdb037a0c6128a4c4e82fe5d4f.yml +openapi_spec_hash: be9b3152e28212b685337a42ad1acf97 config_hash: a0a579b0564a5c18568a78f5ba2b6653 diff --git a/lib/lithic/models/card_authorization.rb b/lib/lithic/models/card_authorization.rb index 3f54f069..540983fe 100644 --- a/lib/lithic/models/card_authorization.rb +++ b/lib/lithic/models/card_authorization.rb @@ -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 # @@ -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 # diff --git a/rbi/lithic/models/card_authorization.rbi b/rbi/lithic/models/card_authorization.rbi index 50830e84..7ca9b583 100644 --- a/rbi/lithic/models/card_authorization.rbi +++ b/rbi/lithic/models/card_authorization.rbi @@ -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 @@ -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 @@ -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 diff --git a/sig/lithic/models/card_authorization.rbs b/sig/lithic/models/card_authorization.rbs index 948ebba7..dbc049cc 100644 --- a/sig/lithic/models/card_authorization.rbs +++ b/sig/lithic/models/card_authorization.rbs @@ -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 From bd7f67927187e7daa99059f5e9190c1df79424c3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 28 May 2026 18:30:19 +0000 Subject: [PATCH 2/3] docs(api): update support contact from email to URL in account/card resources --- .stats.yml | 4 ++-- lib/lithic/models/account.rb | 4 ++-- lib/lithic/models/card.rb | 2 +- lib/lithic/resources/cards.rb | 4 ++-- rbi/lithic/models/account.rbi | 6 +++--- rbi/lithic/models/card.rbi | 4 ++-- rbi/lithic/resources/cards.rbi | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.stats.yml b/.stats.yml index c47d8ece..3a379657 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 195 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-af18ede440e3b8a8b15aa3831c5add93c25934cdb037a0c6128a4c4e82fe5d4f.yml -openapi_spec_hash: be9b3152e28212b685337a42ad1acf97 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-c1cfc621309e4d49899f9b055c399d7ad3eb24c05bad299322c1e03804d3d130.yml +openapi_spec_hash: 799d9da903ff2e4d51fe3f1566d17c92 config_hash: a0a579b0564a5c18568a78f5ba2b6653 diff --git a/lib/lithic/models/account.rb b/lib/lithic/models/account.rb index 8a8c7c61..1e118c7e 100644 --- a/lib/lithic/models/account.rb +++ b/lib/lithic/models/account.rb @@ -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] @@ -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 diff --git a/lib/lithic/models/card.rb b/lib/lithic/models/card.rb index 75c62148..cf117a9b 100644 --- a/lib/lithic/models/card.rb +++ b/lib/lithic/models/card.rb @@ -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 diff --git a/lib/lithic/resources/cards.rb b/lib/lithic/resources/cards.rb index 029ef58d..7eb72a22 100644 --- a/lib/lithic/resources/cards.rb +++ b/lib/lithic/resources/cards.rb @@ -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: {}) diff --git a/rbi/lithic/models/account.rbi b/rbi/lithic/models/account.rbi index 73441f0a..d94090bb 100644 --- a/rbi/lithic/models/account.rbi +++ b/rbi/lithic/models/account.rbi @@ -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 @@ -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, @@ -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 diff --git a/rbi/lithic/models/card.rbi b/rbi/lithic/models/card.rbi index e7c510f5..61acefb0 100644 --- a/rbi/lithic/models/card.rbi +++ b/rbi/lithic/models/card.rbi @@ -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 @@ -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 diff --git a/rbi/lithic/resources/cards.rbi b/rbi/lithic/resources/cards.rbi index 73ea5372..dacf2039 100644 --- a/rbi/lithic/resources/cards.rbi +++ b/rbi/lithic/resources/cards.rbi @@ -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( From 1bdc4db7c868d675f0617a863befc8073ff0cb27 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 28 May 2026 18:30:55 +0000 Subject: [PATCH 3/3] release: 0.16.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/lithic/version.rb | 2 +- 5 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 8f3e0a49..b4e9013b 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.15.0" + ".": "0.16.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e01432b6..7841cfee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Gemfile.lock b/Gemfile.lock index e7eac2d0..45901084 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - lithic (0.15.0) + lithic (0.16.0) cgi connection_pool diff --git a/README.md b/README.md index 15a508f1..4506a0ed 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "lithic", "~> 0.15.0" +gem "lithic", "~> 0.16.0" ``` diff --git a/lib/lithic/version.rb b/lib/lithic/version.rb index ae44fd3a..2f7f1028 100644 --- a/lib/lithic/version.rb +++ b/lib/lithic/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Lithic - VERSION = "0.15.0" + VERSION = "0.16.0" end