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.126.0"
".": "1.127.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: 228
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-44b5f1aa7877231cd00051536df52b79d7cdc9cdd18194e9d58416a23c0e3080.yml
openapi_spec_hash: 60f0bd1ca37c9a57996238e105cca091
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f07048979577d746042198f73c1bac07529dd48f26402f60def922a12b6e01e0.yml
openapi_spec_hash: 6d1ca8aa0b64f414db957540bbeab5ee
config_hash: eb2035151c7b49c2f12caf55469b8f9a
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.127.0 (2025-10-31)

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

### Features

* **api:** api update ([9a07f39](https://github.com/Increase/increase-ruby/commit/9a07f39ddb7aa466e35b7dbb8c88a136baa2ab59))

## 1.126.0 (2025-10-31)

Full Changelog: [v1.125.0...v1.126.0](https://github.com/Increase/increase-ruby/compare/v1.125.0...v1.126.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.126.0)
increase (1.127.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.126.0"
gem "increase", "~> 1.127.0"
```

<!-- x-release-please-end -->
Expand Down
38 changes: 11 additions & 27 deletions lib/increase/models/pending_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ class PendingTransaction < Increase::Internal::Type::BaseModel
# @return [Integer]
required :amount, Integer

# @!attribute balance_impact
# How the Pending Transaction affects the balance of its Account while its status
# is `pending`.
#
# @return [Symbol, Increase::Models::PendingTransaction::BalanceImpact]
required :balance_impact, enum: -> { Increase::PendingTransaction::BalanceImpact }

# @!attribute completed_at
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
# Transaction was completed.
Expand Down Expand Up @@ -60,6 +53,14 @@ class PendingTransaction < Increase::Internal::Type::BaseModel
# @return [String]
required :description, String

# @!attribute held_amount
# The amount that this Pending Transaction decrements the available balance of its
# Account. This is usually the same as `amount`, but will differ if the amount is
# positive.
#
# @return [Integer]
required :held_amount, Integer

# @!attribute route_id
# The identifier for the route this Pending Transaction came through. Routes are
# things like cards and ACH details.
Expand Down Expand Up @@ -95,7 +96,7 @@ class PendingTransaction < Increase::Internal::Type::BaseModel
# @return [Symbol, Increase::Models::PendingTransaction::Type]
required :type, enum: -> { Increase::PendingTransaction::Type }

# @!method initialize(id:, account_id:, amount:, balance_impact:, completed_at:, created_at:, currency:, description:, route_id:, route_type:, source:, status:, type:)
# @!method initialize(id:, account_id:, amount:, completed_at:, created_at:, currency:, description:, held_amount:, route_id:, route_type:, source:, status:, type:)
# Some parameter documentations has been truncated, see
# {Increase::Models::PendingTransaction} for more details.
#
Expand All @@ -110,8 +111,6 @@ class PendingTransaction < Increase::Internal::Type::BaseModel
#
# @param amount [Integer] The Pending Transaction amount in the minor unit of its currency. For dollars, f
#
# @param balance_impact [Symbol, Increase::Models::PendingTransaction::BalanceImpact] How the Pending Transaction affects the balance of its Account while its status
#
# @param completed_at [Time, nil] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
#
# @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
Expand All @@ -120,6 +119,8 @@ class PendingTransaction < Increase::Internal::Type::BaseModel
#
# @param description [String] For a Pending Transaction related to a transfer, this is the description you pro
#
# @param held_amount [Integer] The amount that this Pending Transaction decrements the available balance of its
#
# @param route_id [String, nil] The identifier for the route this Pending Transaction came through. Routes are t
#
# @param route_type [Symbol, Increase::Models::PendingTransaction::RouteType, nil] The type of the route this Pending Transaction came through.
Expand All @@ -130,23 +131,6 @@ class PendingTransaction < Increase::Internal::Type::BaseModel
#
# @param type [Symbol, Increase::Models::PendingTransaction::Type] A constant representing the object's type. For this resource it will always be `

# How the Pending Transaction affects the balance of its Account while its status
# is `pending`.
#
# @see Increase::Models::PendingTransaction#balance_impact
module BalanceImpact
extend Increase::Internal::Type::Enum

# This Pending Transaction will decrement the available balance on the Account while its status is `pending`.
AFFECTS_AVAILABLE_BALANCE = :affects_available_balance

# This Pending Transaction does not affect the available balance on the Account.
NONE = :none

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

# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Pending
# Transaction's currency. This will match the currency on the Pending
# Transaction's Account.
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.126.0"
VERSION = "1.127.0"
end
57 changes: 12 additions & 45 deletions rbi/increase/models/pending_transaction.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ module Increase
sig { returns(Integer) }
attr_accessor :amount

# How the Pending Transaction affects the balance of its Account while its status
# is `pending`.
sig { returns(Increase::PendingTransaction::BalanceImpact::TaggedSymbol) }
attr_accessor :balance_impact

# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
# Transaction was completed.
sig { returns(T.nilable(Time)) }
Expand All @@ -48,6 +43,12 @@ module Increase
sig { returns(String) }
attr_accessor :description

# The amount that this Pending Transaction decrements the available balance of its
# Account. This is usually the same as `amount`, but will differ if the amount is
# positive.
sig { returns(Integer) }
attr_accessor :held_amount

# The identifier for the route this Pending Transaction came through. Routes are
# things like cards and ACH details.
sig { returns(T.nilable(String)) }
Expand Down Expand Up @@ -89,11 +90,11 @@ module Increase
id: String,
account_id: String,
amount: Integer,
balance_impact: Increase::PendingTransaction::BalanceImpact::OrSymbol,
completed_at: T.nilable(Time),
created_at: Time,
currency: Increase::PendingTransaction::Currency::OrSymbol,
description: String,
held_amount: Integer,
route_id: T.nilable(String),
route_type:
T.nilable(Increase::PendingTransaction::RouteType::OrSymbol),
Expand All @@ -110,9 +111,6 @@ module Increase
# The Pending Transaction amount in the minor unit of its currency. For dollars,
# for example, this is cents.
amount:,
# How the Pending Transaction affects the balance of its Account while its status
# is `pending`.
balance_impact:,
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
# Transaction was completed.
completed_at:,
Expand All @@ -127,6 +125,10 @@ module Increase
# provide. For a Pending Transaction related to a payment, this is the description
# the vendor provides.
description:,
# The amount that this Pending Transaction decrements the available balance of its
# Account. This is usually the same as `amount`, but will differ if the amount is
# positive.
held_amount:,
# The identifier for the route this Pending Transaction came through. Routes are
# things like cards and ACH details.
route_id:,
Expand All @@ -151,12 +153,11 @@ module Increase
id: String,
account_id: String,
amount: Integer,
balance_impact:
Increase::PendingTransaction::BalanceImpact::TaggedSymbol,
completed_at: T.nilable(Time),
created_at: Time,
currency: Increase::PendingTransaction::Currency::TaggedSymbol,
description: String,
held_amount: Integer,
route_id: T.nilable(String),
route_type:
T.nilable(Increase::PendingTransaction::RouteType::TaggedSymbol),
Expand All @@ -169,40 +170,6 @@ module Increase
def to_hash
end

# How the Pending Transaction affects the balance of its Account while its status
# is `pending`.
module BalanceImpact
extend Increase::Internal::Type::Enum

TaggedSymbol =
T.type_alias do
T.all(Symbol, Increase::PendingTransaction::BalanceImpact)
end
OrSymbol = T.type_alias { T.any(Symbol, String) }

# This Pending Transaction will decrement the available balance on the Account while its status is `pending`.
AFFECTS_AVAILABLE_BALANCE =
T.let(
:affects_available_balance,
Increase::PendingTransaction::BalanceImpact::TaggedSymbol
)

# This Pending Transaction does not affect the available balance on the Account.
NONE =
T.let(
:none,
Increase::PendingTransaction::BalanceImpact::TaggedSymbol
)

sig do
override.returns(
T::Array[Increase::PendingTransaction::BalanceImpact::TaggedSymbol]
)
end
def self.values
end
end

# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Pending
# Transaction's currency. This will match the currency on the Pending
# Transaction's Account.
Expand Down
24 changes: 5 additions & 19 deletions sig/increase/models/pending_transaction.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ module Increase
id: String,
account_id: String,
amount: Integer,
balance_impact: Increase::Models::PendingTransaction::balance_impact,
completed_at: Time?,
created_at: Time,
currency: Increase::Models::PendingTransaction::currency,
description: String,
held_amount: Integer,
route_id: String?,
route_type: Increase::Models::PendingTransaction::route_type?,
source: Increase::PendingTransaction::Source,
Expand All @@ -24,8 +24,6 @@ module Increase

attr_accessor amount: Integer

attr_accessor balance_impact: Increase::Models::PendingTransaction::balance_impact

attr_accessor completed_at: Time?

attr_accessor created_at: Time
Expand All @@ -34,6 +32,8 @@ module Increase

attr_accessor description: String

attr_accessor held_amount: Integer

attr_accessor route_id: String?

attr_accessor route_type: Increase::Models::PendingTransaction::route_type?
Expand All @@ -48,11 +48,11 @@ module Increase
id: String,
account_id: String,
amount: Integer,
balance_impact: Increase::Models::PendingTransaction::balance_impact,
completed_at: Time?,
created_at: Time,
currency: Increase::Models::PendingTransaction::currency,
description: String,
held_amount: Integer,
route_id: String?,
route_type: Increase::Models::PendingTransaction::route_type?,
source: Increase::PendingTransaction::Source,
Expand All @@ -64,32 +64,18 @@ module Increase
id: String,
account_id: String,
amount: Integer,
balance_impact: Increase::Models::PendingTransaction::balance_impact,
completed_at: Time?,
created_at: Time,
currency: Increase::Models::PendingTransaction::currency,
description: String,
held_amount: Integer,
route_id: String?,
route_type: Increase::Models::PendingTransaction::route_type?,
source: Increase::PendingTransaction::Source,
status: Increase::Models::PendingTransaction::status,
type: Increase::Models::PendingTransaction::type_
}

type balance_impact = :affects_available_balance | :none

module BalanceImpact
extend Increase::Internal::Type::Enum

# This Pending Transaction will decrement the available balance on the Account while its status is `pending`.
AFFECTS_AVAILABLE_BALANCE: :affects_available_balance

# This Pending Transaction does not affect the available balance on the Account.
NONE: :none

def self?.values: -> ::Array[Increase::Models::PendingTransaction::balance_impact]
end

type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD

module Currency
Expand Down
8 changes: 4 additions & 4 deletions test/increase/resources/pending_transactions_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ def test_create_required_params
id: String,
account_id: String,
amount: Integer,
balance_impact: Increase::PendingTransaction::BalanceImpact,
completed_at: Time | nil,
created_at: Time,
currency: Increase::PendingTransaction::Currency,
description: String,
held_amount: Integer,
route_id: String | nil,
route_type: Increase::PendingTransaction::RouteType | nil,
source: Increase::PendingTransaction::Source,
Expand All @@ -42,11 +42,11 @@ def test_retrieve
id: String,
account_id: String,
amount: Integer,
balance_impact: Increase::PendingTransaction::BalanceImpact,
completed_at: Time | nil,
created_at: Time,
currency: Increase::PendingTransaction::Currency,
description: String,
held_amount: Integer,
route_id: String | nil,
route_type: Increase::PendingTransaction::RouteType | nil,
source: Increase::PendingTransaction::Source,
Expand Down Expand Up @@ -75,11 +75,11 @@ def test_list
id: String,
account_id: String,
amount: Integer,
balance_impact: Increase::PendingTransaction::BalanceImpact,
completed_at: Time | nil,
created_at: Time,
currency: Increase::PendingTransaction::Currency,
description: String,
held_amount: Integer,
route_id: String | nil,
route_type: Increase::PendingTransaction::RouteType | nil,
source: Increase::PendingTransaction::Source,
Expand All @@ -101,11 +101,11 @@ def test_release
id: String,
account_id: String,
amount: Integer,
balance_impact: Increase::PendingTransaction::BalanceImpact,
completed_at: Time | nil,
created_at: Time,
currency: Increase::PendingTransaction::Currency,
description: String,
held_amount: Integer,
route_id: String | nil,
route_type: Increase::PendingTransaction::RouteType | nil,
source: Increase::PendingTransaction::Source,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ def test_release_inbound_funds_hold
id: String,
account_id: String,
amount: Integer,
balance_impact: Increase::PendingTransaction::BalanceImpact,
completed_at: Time | nil,
created_at: Time,
currency: Increase::PendingTransaction::Currency,
description: String,
held_amount: Integer,
route_id: String | nil,
route_type: Increase::PendingTransaction::RouteType | nil,
source: Increase::PendingTransaction::Source,
Expand Down