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 @@
{
".": "1.84.0"
".": "1.85.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: 214
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-d0d6147287983a83fc0ad164f706c3cdc48a13e223fd601aa954bbf0bbc402ed.yml
openapi_spec_hash: a3ccd1aa9bc5d03e6660b535d25401b1
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-884e347f765b181f0f15f821b0c5786f51d532aae1077294aedf3fff0d6f9b22.yml
openapi_spec_hash: 119e76f07825b0975b385de037fe8d96
config_hash: 8dadd60eab7ab858cf06c6a8633ed9f3
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 1.85.0 (2025-09-22)

Full Changelog: [v1.84.0...v1.85.0](https://github.com/Increase/increase-ruby/compare/v1.84.0...v1.85.0)

### Features

* **api:** api update ([7d76f12](https://github.com/Increase/increase-ruby/commit/7d76f12be729b9562229b247cbceccbd6cad419e))


### Chores

* improve example values ([e4208d1](https://github.com/Increase/increase-ruby/commit/e4208d1e474193ca1020be6e9cb292cdbb3c0958))

## 1.84.0 (2025-09-19)

Full Changelog: [v1.83.0...v1.84.0](https://github.com/Increase/increase-ruby/compare/v1.83.0...v1.84.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:
increase (1.84.0)
increase (1.85.0)
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 "increase", "~> 1.84.0"
gem "increase", "~> 1.85.0"
```

<!-- x-release-please-end -->
Expand Down
41 changes: 40 additions & 1 deletion lib/increase/models/card_payment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5617,6 +5617,14 @@ class CardSettlement < Increase::Internal::Type::BaseModel
-> { Increase::CardPayment::Element::CardSettlement::PurchaseDetails },
nil?: true

# @!attribute surcharge
# Surcharge amount details, if applicable. The amounts positive if the surcharge
# is added to to the overall transaction amount (surcharge), and negative if the
# surcharge is deducted from the overall transaction amount (discount).
#
# @return [Increase::Models::CardPayment::Element::CardSettlement::Surcharge, nil]
required :surcharge, -> { Increase::CardPayment::Element::CardSettlement::Surcharge }, nil?: true

# @!attribute transaction_id
# The identifier of the Transaction associated with this Transaction.
#
Expand All @@ -5630,7 +5638,7 @@ class CardSettlement < Increase::Internal::Type::BaseModel
# @return [Symbol, Increase::Models::CardPayment::Element::CardSettlement::Type]
required :type, enum: -> { Increase::CardPayment::Element::CardSettlement::Type }

# @!method initialize(id:, amount:, card_authorization:, card_payment_id:, cashback:, currency:, interchange:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_name:, merchant_postal_code:, merchant_state:, network:, network_identifiers:, pending_transaction_id:, presentment_amount:, presentment_currency:, purchase_details:, transaction_id:, type:)
# @!method initialize(id:, amount:, card_authorization:, card_payment_id:, cashback:, currency:, interchange:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_name:, merchant_postal_code:, merchant_state:, network:, network_identifiers:, pending_transaction_id:, presentment_amount:, presentment_currency:, purchase_details:, surcharge:, transaction_id:, type:)
# Some parameter documentations has been truncated, see
# {Increase::Models::CardPayment::Element::CardSettlement} for more details.
#
Expand Down Expand Up @@ -5680,6 +5688,8 @@ class CardSettlement < Increase::Internal::Type::BaseModel
#
# @param purchase_details [Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails, nil] Additional details about the card purchase, such as tax and industry-specific fi
#
# @param surcharge [Increase::Models::CardPayment::Element::CardSettlement::Surcharge, nil] Surcharge amount details, if applicable. The amounts positive if the surcharge i
#
# @param transaction_id [String] The identifier of the Transaction associated with this Transaction.
#
# @param type [Symbol, Increase::Models::CardPayment::Element::CardSettlement::Type] A constant representing the object's type. For this resource it will always be `
Expand Down Expand Up @@ -6861,6 +6871,35 @@ module StopOverCode
end
end

# @see Increase::Models::CardPayment::Element::CardSettlement#surcharge
class Surcharge < Increase::Internal::Type::BaseModel
# @!attribute amount
# The surcharge amount in the minor unit of the transaction's settlement currency.
#
# @return [Integer]
required :amount, Integer

# @!attribute presentment_amount
# The surcharge amount in the minor unit of the transaction's presentment
# currency.
#
# @return [Integer]
required :presentment_amount, Integer

# @!method initialize(amount:, presentment_amount:)
# Some parameter documentations has been truncated, see
# {Increase::Models::CardPayment::Element::CardSettlement::Surcharge} for more
# details.
#
# Surcharge amount details, if applicable. The amounts positive if the surcharge
# is added to to the overall transaction amount (surcharge), and negative if the
# surcharge is deducted from the overall transaction amount (discount).
#
# @param amount [Integer] The surcharge amount in the minor unit of the transaction's settlement currency.
#
# @param presentment_amount [Integer] The surcharge amount in the minor unit of the transaction's presentment currency
end

# A constant representing the object's type. For this resource it will always be
# `card_settlement`.
#
Expand Down
41 changes: 40 additions & 1 deletion lib/increase/models/transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2863,6 +2863,14 @@ class CardSettlement < Increase::Internal::Type::BaseModel
-> { Increase::Transaction::Source::CardSettlement::PurchaseDetails },
nil?: true

# @!attribute surcharge
# Surcharge amount details, if applicable. The amounts positive if the surcharge
# is added to to the overall transaction amount (surcharge), and negative if the
# surcharge is deducted from the overall transaction amount (discount).
#
# @return [Increase::Models::Transaction::Source::CardSettlement::Surcharge, nil]
required :surcharge, -> { Increase::Transaction::Source::CardSettlement::Surcharge }, nil?: true

# @!attribute transaction_id
# The identifier of the Transaction associated with this Transaction.
#
Expand All @@ -2876,7 +2884,7 @@ class CardSettlement < Increase::Internal::Type::BaseModel
# @return [Symbol, Increase::Models::Transaction::Source::CardSettlement::Type]
required :type, enum: -> { Increase::Transaction::Source::CardSettlement::Type }

# @!method initialize(id:, amount:, card_authorization:, card_payment_id:, cashback:, currency:, interchange:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_name:, merchant_postal_code:, merchant_state:, network:, network_identifiers:, pending_transaction_id:, presentment_amount:, presentment_currency:, purchase_details:, transaction_id:, type:)
# @!method initialize(id:, amount:, card_authorization:, card_payment_id:, cashback:, currency:, interchange:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_name:, merchant_postal_code:, merchant_state:, network:, network_identifiers:, pending_transaction_id:, presentment_amount:, presentment_currency:, purchase_details:, surcharge:, transaction_id:, type:)
# Some parameter documentations has been truncated, see
# {Increase::Models::Transaction::Source::CardSettlement} for more details.
#
Expand Down Expand Up @@ -2926,6 +2934,8 @@ class CardSettlement < Increase::Internal::Type::BaseModel
#
# @param purchase_details [Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails, nil] Additional details about the card purchase, such as tax and industry-specific fi
#
# @param surcharge [Increase::Models::Transaction::Source::CardSettlement::Surcharge, nil] Surcharge amount details, if applicable. The amounts positive if the surcharge i
#
# @param transaction_id [String] The identifier of the Transaction associated with this Transaction.
#
# @param type [Symbol, Increase::Models::Transaction::Source::CardSettlement::Type] A constant representing the object's type. For this resource it will always be `
Expand Down Expand Up @@ -4107,6 +4117,35 @@ module StopOverCode
end
end

# @see Increase::Models::Transaction::Source::CardSettlement#surcharge
class Surcharge < Increase::Internal::Type::BaseModel
# @!attribute amount
# The surcharge amount in the minor unit of the transaction's settlement currency.
#
# @return [Integer]
required :amount, Integer

# @!attribute presentment_amount
# The surcharge amount in the minor unit of the transaction's presentment
# currency.
#
# @return [Integer]
required :presentment_amount, Integer

# @!method initialize(amount:, presentment_amount:)
# Some parameter documentations has been truncated, see
# {Increase::Models::Transaction::Source::CardSettlement::Surcharge} for more
# details.
#
# Surcharge amount details, if applicable. The amounts positive if the surcharge
# is added to to the overall transaction amount (surcharge), and negative if the
# surcharge is deducted from the overall transaction amount (discount).
#
# @param amount [Integer] The surcharge amount in the minor unit of the transaction's settlement currency.
#
# @param presentment_amount [Integer] The surcharge amount in the minor unit of the transaction's presentment currency
end

# A constant representing the object's type. For this resource it will always be
# `card_settlement`.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/increase/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Increase
VERSION = "1.84.0"
VERSION = "1.85.0"
end
76 changes: 76 additions & 0 deletions rbi/increase/models/card_payment.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -10347,6 +10347,28 @@ module Increase
end
attr_writer :purchase_details

# Surcharge amount details, if applicable. The amounts positive if the surcharge
# is added to to the overall transaction amount (surcharge), and negative if the
# surcharge is deducted from the overall transaction amount (discount).
sig do
returns(
T.nilable(
Increase::CardPayment::Element::CardSettlement::Surcharge
)
)
end
attr_reader :surcharge

sig do
params(
surcharge:
T.nilable(
Increase::CardPayment::Element::CardSettlement::Surcharge::OrHash
)
).void
end
attr_writer :surcharge

# The identifier of the Transaction associated with this Transaction.
sig { returns(String) }
attr_accessor :transaction_id
Expand Down Expand Up @@ -10399,6 +10421,10 @@ module Increase
T.nilable(
Increase::CardPayment::Element::CardSettlement::PurchaseDetails::OrHash
),
surcharge:
T.nilable(
Increase::CardPayment::Element::CardSettlement::Surcharge::OrHash
),
transaction_id: String,
type:
Increase::CardPayment::Element::CardSettlement::Type::OrSymbol
Expand Down Expand Up @@ -10452,6 +10478,10 @@ module Increase
# Additional details about the card purchase, such as tax and industry-specific
# fields.
purchase_details:,
# Surcharge amount details, if applicable. The amounts positive if the surcharge
# is added to to the overall transaction amount (surcharge), and negative if the
# surcharge is deducted from the overall transaction amount (discount).
surcharge:,
# The identifier of the Transaction associated with this Transaction.
transaction_id:,
# A constant representing the object's type. For this resource it will always be
Expand Down Expand Up @@ -10495,6 +10525,10 @@ module Increase
T.nilable(
Increase::CardPayment::Element::CardSettlement::PurchaseDetails
),
surcharge:
T.nilable(
Increase::CardPayment::Element::CardSettlement::Surcharge
),
transaction_id: String,
type:
Increase::CardPayment::Element::CardSettlement::Type::TaggedSymbol
Expand Down Expand Up @@ -12645,6 +12679,48 @@ module Increase
end
end

class Surcharge < Increase::Internal::Type::BaseModel
OrHash =
T.type_alias do
T.any(
Increase::CardPayment::Element::CardSettlement::Surcharge,
Increase::Internal::AnyHash
)
end

# The surcharge amount in the minor unit of the transaction's settlement currency.
sig { returns(Integer) }
attr_accessor :amount

# The surcharge amount in the minor unit of the transaction's presentment
# currency.
sig { returns(Integer) }
attr_accessor :presentment_amount

# Surcharge amount details, if applicable. The amounts positive if the surcharge
# is added to to the overall transaction amount (surcharge), and negative if the
# surcharge is deducted from the overall transaction amount (discount).
sig do
params(amount: Integer, presentment_amount: Integer).returns(
T.attached_class
)
end
def self.new(
# The surcharge amount in the minor unit of the transaction's settlement currency.
amount:,
# The surcharge amount in the minor unit of the transaction's presentment
# currency.
presentment_amount:
)
end

sig do
override.returns({ amount: Integer, presentment_amount: Integer })
end
def to_hash
end
end

# A constant representing the object's type. For this resource it will always be
# `card_settlement`.
module Type
Expand Down
Loading