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.43"
".": "0.1.0-alpha.44"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 169
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-1d44bb7fad99487af1161eb24dfd5369440eda7e80ed237cbc1acc6802a7d212.yml
openapi_spec_hash: 1b6b6215b60094b76b91c56b925a251a
config_hash: e68a052fd109c0885732114753abc739
config_hash: 768e8f0faa1a21e26b07e6cdc395cebf
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.1.0-alpha.44 (2025-09-11)

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

### Features

* **api:** correct deprecation ([5f3c64b](https://github.com/lithic-com/lithic-ruby/commit/5f3c64b290779e9eeeae4bc6207adb702d10bcfb))

## 0.1.0-alpha.43 (2025-09-11)

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

<!-- x-release-please-end -->
Expand Down
2 changes: 0 additions & 2 deletions lib/lithic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,6 @@
require_relative "lithic/models/transaction_simulate_clearing_response"
require_relative "lithic/models/transaction_simulate_credit_authorization_advice_params"
require_relative "lithic/models/transaction_simulate_credit_authorization_advice_response"
require_relative "lithic/models/transaction_simulate_credit_authorization_params"
require_relative "lithic/models/transaction_simulate_credit_authorization_response"
require_relative "lithic/models/transaction_simulate_return_params"
require_relative "lithic/models/transaction_simulate_return_response"
require_relative "lithic/models/transaction_simulate_return_reversal_params"
Expand Down
3 changes: 0 additions & 3 deletions lib/lithic/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,6 @@ module Lithic
TransactionSimulateCreditAuthorizationAdviceParams =
Lithic::Models::TransactionSimulateCreditAuthorizationAdviceParams

TransactionSimulateCreditAuthorizationParams =
Lithic::Models::TransactionSimulateCreditAuthorizationParams

TransactionSimulateReturnParams = Lithic::Models::TransactionSimulateReturnParams

TransactionSimulateReturnReversalParams = Lithic::Models::TransactionSimulateReturnReversalParams
Expand Down

This file was deleted.

This file was deleted.

36 changes: 0 additions & 36 deletions lib/lithic/resources/transactions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -204,42 +204,6 @@ def simulate_clearing(params)
)
end

# @deprecated use `simulate_credit_authorization_advice` instead
#
# Some parameter documentations has been truncated, see
# {Lithic::Models::TransactionSimulateCreditAuthorizationParams} for more details.
#
# Simulates a credit authorization advice from the card network. This message
# indicates that the network approved a credit authorization on your behalf.
#
# @overload simulate_credit_authorization(amount:, descriptor:, pan:, mcc: nil, merchant_acceptor_id: nil, request_options: {})
#
# @param amount [Integer] Amount (in cents). Any value entered will be converted into a negative amount in
#
# @param descriptor [String] Merchant descriptor.
#
# @param pan [String] Sixteen digit card number.
#
# @param mcc [String] Merchant category code for the transaction to be simulated. A four-digit number
#
# @param merchant_acceptor_id [String] Unique identifier to identify the payment card acceptor.
#
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
#
# @return [Lithic::Models::TransactionSimulateCreditAuthorizationResponse]
#
# @see Lithic::Models::TransactionSimulateCreditAuthorizationParams
def simulate_credit_authorization(params)
parsed, options = Lithic::TransactionSimulateCreditAuthorizationParams.dump_request(params)
@client.request(
method: :post,
path: "v1/simulate/credit_authorization_advice",
body: parsed,
model: Lithic::Models::TransactionSimulateCreditAuthorizationResponse,
options: options
)
end

# Some parameter documentations has been truncated, see
# {Lithic::Models::TransactionSimulateCreditAuthorizationAdviceParams} for more
# details.
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.1.0.pre.alpha.43"
VERSION = "0.1.0.pre.alpha.44"
end
3 changes: 0 additions & 3 deletions rbi/lithic/models.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,6 @@ module Lithic
TransactionSimulateCreditAuthorizationAdviceParams =
Lithic::Models::TransactionSimulateCreditAuthorizationAdviceParams

TransactionSimulateCreditAuthorizationParams =
Lithic::Models::TransactionSimulateCreditAuthorizationParams

TransactionSimulateReturnParams =
Lithic::Models::TransactionSimulateReturnParams

Expand Down

This file was deleted.

This file was deleted.

33 changes: 0 additions & 33 deletions rbi/lithic/resources/transactions.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -208,39 +208,6 @@ module Lithic
)
end

# Simulates a credit authorization advice from the card network. This message
# indicates that the network approved a credit authorization on your behalf.
sig do
params(
amount: Integer,
descriptor: String,
pan: String,
mcc: String,
merchant_acceptor_id: String,
request_options: Lithic::RequestOptions::OrHash
).returns(
Lithic::Models::TransactionSimulateCreditAuthorizationResponse
)
end
def simulate_credit_authorization(
# Amount (in cents). Any value entered will be converted into a negative amount in
# the simulated transaction. For example, entering 100 in this field will appear
# as a -100 amount in the transaction.
amount:,
# Merchant descriptor.
descriptor:,
# Sixteen digit card number.
pan:,
# Merchant category code for the transaction to be simulated. A four-digit number
# listed in ISO 18245. Supported merchant category codes can be found
# [here](https://docs.lithic.com/docs/transactions#merchant-category-codes-mccs).
mcc: nil,
# Unique identifier to identify the payment card acceptor.
merchant_acceptor_id: nil,
request_options: {}
)
end

# Simulates a credit authorization advice from the card network. This message
# indicates that the network approved a credit authorization on your behalf.
sig do
Expand Down
2 changes: 0 additions & 2 deletions sig/lithic/models.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,6 @@ module Lithic

class TransactionSimulateCreditAuthorizationAdviceParams = Lithic::Models::TransactionSimulateCreditAuthorizationAdviceParams

class TransactionSimulateCreditAuthorizationParams = Lithic::Models::TransactionSimulateCreditAuthorizationParams

class TransactionSimulateReturnParams = Lithic::Models::TransactionSimulateReturnParams

class TransactionSimulateReturnReversalParams = Lithic::Models::TransactionSimulateReturnReversalParams
Expand Down
Loading