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.10.0"
".": "1.11.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 201
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e25bdcd9c9cd987962f1507200b619dc7c32f91b940e5ca9110f24bdb294b14a.yml
openapi_spec_hash: 693a205b039e410d9a6b49a5b0ccc72c
config_hash: 97774f946585cecb19181a1817870d0b
configured_endpoints: 202
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a7e0e17a385ddfb049d0fe4e5d05785901cf40f464c51399d7c2cd1f863696c0.yml
openapi_spec_hash: b4bca6edf466e9061a72c98207f92c6d
config_hash: a185e9a72778cc4658ea73fb3a7f1354
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.11.0 (2025-07-09)

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

### Features

* **api:** api update ([2e487ee](https://github.com/Increase/increase-ruby/commit/2e487ee62d833362c3d080953d68c164d08c6bf9))

## 1.10.0 (2025-07-08)

Full Changelog: [v1.9.0...v1.10.0](https://github.com/Increase/increase-ruby/compare/v1.9.0...v1.10.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.10.0)
increase (1.11.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.10.0"
gem "increase", "~> 1.11.0"
```

<!-- x-release-please-end -->
Expand Down
2 changes: 2 additions & 0 deletions lib/increase.rb
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@
require_relative "increase/models/simulations/physical_card_tracking_updates_params"
require_relative "increase/models/simulations/program_create_params"
require_relative "increase/models/simulations/real_time_payments_transfer_complete_params"
require_relative "increase/models/simulations/wire_drawdown_request_refuse_params"
require_relative "increase/models/simulations/wire_transfer_reverse_params"
require_relative "increase/models/simulations/wire_transfer_submit_params"
require_relative "increase/models/supplemental_document_create_params"
Expand Down Expand Up @@ -384,6 +385,7 @@
require_relative "increase/resources/simulations/physical_cards"
require_relative "increase/resources/simulations/programs"
require_relative "increase/resources/simulations/real_time_payments_transfers"
require_relative "increase/resources/simulations/wire_drawdown_requests"
require_relative "increase/resources/simulations/wire_transfers"
require_relative "increase/resources/supplemental_documents"
require_relative "increase/resources/transactions"
Expand Down
11 changes: 10 additions & 1 deletion lib/increase/models/inbound_wire_transfer_list_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,14 @@ class InboundWireTransferListParams < Increase::Internal::Type::BaseModel
# @return [Increase::Models::InboundWireTransferListParams::Status, nil]
optional :status, -> { Increase::InboundWireTransferListParams::Status }

# @!method initialize(account_id: nil, account_number_id: nil, created_at: nil, cursor: nil, limit: nil, status: nil, request_options: {})
# @!attribute wire_drawdown_request_id
# Filter Inbound Wire Transfers to ones belonging to the specified Wire Drawdown
# Request.
#
# @return [String, nil]
optional :wire_drawdown_request_id, String

# @!method initialize(account_id: nil, account_number_id: nil, created_at: nil, cursor: nil, limit: nil, status: nil, wire_drawdown_request_id: nil, request_options: {})
# Some parameter documentations has been truncated, see
# {Increase::Models::InboundWireTransferListParams} for more details.
#
Expand All @@ -58,6 +65,8 @@ class InboundWireTransferListParams < Increase::Internal::Type::BaseModel
#
# @param status [Increase::Models::InboundWireTransferListParams::Status]
#
# @param wire_drawdown_request_id [String] Filter Inbound Wire Transfers to ones belonging to the specified Wire Drawdown R
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]

class CreatedAt < Increase::Internal::Type::BaseModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,14 @@ class InboundWireTransferCreateParams < Increase::Internal::Type::BaseModel
# @return [String, nil]
optional :sender_reference, String

# @!method initialize(account_number_id:, amount:, beneficiary_address_line1: nil, beneficiary_address_line2: nil, beneficiary_address_line3: nil, beneficiary_name: nil, beneficiary_reference: nil, originator_address_line1: nil, originator_address_line2: nil, originator_address_line3: nil, originator_name: nil, originator_routing_number: nil, originator_to_beneficiary_information_line1: nil, originator_to_beneficiary_information_line2: nil, originator_to_beneficiary_information_line3: nil, originator_to_beneficiary_information_line4: nil, sender_reference: nil, request_options: {})
# @!attribute wire_drawdown_request_id
# The identifier of a Wire Drawdown Request the inbound Wire Transfer is
# fulfilling.
#
# @return [String, nil]
optional :wire_drawdown_request_id, String

# @!method initialize(account_number_id:, amount:, beneficiary_address_line1: nil, beneficiary_address_line2: nil, beneficiary_address_line3: nil, beneficiary_name: nil, beneficiary_reference: nil, originator_address_line1: nil, originator_address_line2: nil, originator_address_line3: nil, originator_name: nil, originator_routing_number: nil, originator_to_beneficiary_information_line1: nil, originator_to_beneficiary_information_line2: nil, originator_to_beneficiary_information_line3: nil, originator_to_beneficiary_information_line4: nil, sender_reference: nil, wire_drawdown_request_id: nil, request_options: {})
# Some parameter documentations has been truncated, see
# {Increase::Models::Simulations::InboundWireTransferCreateParams} for more
# details.
Expand Down Expand Up @@ -164,6 +171,8 @@ class InboundWireTransferCreateParams < Increase::Internal::Type::BaseModel
#
# @param sender_reference [String] The sending bank will set sender_reference in production. You can simulate any v
#
# @param wire_drawdown_request_id [String] The identifier of a Wire Drawdown Request the inbound Wire Transfer is fulfillin
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
end
end
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# frozen_string_literal: true

module Increase
module Models
module Simulations
# @see Increase::Resources::Simulations::WireDrawdownRequests#refuse
class WireDrawdownRequestRefuseParams < Increase::Internal::Type::BaseModel
extend Increase::Internal::Type::RequestParameters::Converter
include Increase::Internal::Type::RequestParameters

# @!method initialize(request_options: {})
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
end
end
end
end
4 changes: 3 additions & 1 deletion lib/increase/resources/inbound_wire_transfers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def retrieve(inbound_wire_transfer_id, params = {})
#
# List Inbound Wire Transfers
#
# @overload list(account_id: nil, account_number_id: nil, created_at: nil, cursor: nil, limit: nil, status: nil, request_options: {})
# @overload list(account_id: nil, account_number_id: nil, created_at: nil, cursor: nil, limit: nil, status: nil, wire_drawdown_request_id: nil, request_options: {})
#
# @param account_id [String] Filter Inbound Wire Transfers to ones belonging to the specified Account.
#
Expand All @@ -42,6 +42,8 @@ def retrieve(inbound_wire_transfer_id, params = {})
#
# @param status [Increase::Models::InboundWireTransferListParams::Status]
#
# @param wire_drawdown_request_id [String] Filter Inbound Wire Transfers to ones belonging to the specified Wire Drawdown R
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
#
# @return [Increase::Internal::Page<Increase::Models::InboundWireTransfer>]
Expand Down
4 changes: 4 additions & 0 deletions lib/increase/resources/simulations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ class Simulations
# @return [Increase::Resources::Simulations::InboundWireTransfers]
attr_reader :inbound_wire_transfers

# @return [Increase::Resources::Simulations::WireDrawdownRequests]
attr_reader :wire_drawdown_requests

# @return [Increase::Resources::Simulations::InboundWireDrawdownRequests]
attr_reader :inbound_wire_drawdown_requests

Expand Down Expand Up @@ -108,6 +111,7 @@ def initialize(client:)
@inbound_ach_transfers = Increase::Resources::Simulations::InboundACHTransfers.new(client: client)
@wire_transfers = Increase::Resources::Simulations::WireTransfers.new(client: client)
@inbound_wire_transfers = Increase::Resources::Simulations::InboundWireTransfers.new(client: client)
@wire_drawdown_requests = Increase::Resources::Simulations::WireDrawdownRequests.new(client: client)
@inbound_wire_drawdown_requests =
Increase::Resources::Simulations::InboundWireDrawdownRequests.new(client: client)
@check_transfers = Increase::Resources::Simulations::CheckTransfers.new(client: client)
Expand Down
4 changes: 3 additions & 1 deletion lib/increase/resources/simulations/inbound_wire_transfers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class InboundWireTransfers
#
# Simulates an [Inbound Wire Transfer](#inbound-wire-transfers) to your account.
#
# @overload create(account_number_id:, amount:, beneficiary_address_line1: nil, beneficiary_address_line2: nil, beneficiary_address_line3: nil, beneficiary_name: nil, beneficiary_reference: nil, originator_address_line1: nil, originator_address_line2: nil, originator_address_line3: nil, originator_name: nil, originator_routing_number: nil, originator_to_beneficiary_information_line1: nil, originator_to_beneficiary_information_line2: nil, originator_to_beneficiary_information_line3: nil, originator_to_beneficiary_information_line4: nil, sender_reference: nil, request_options: {})
# @overload create(account_number_id:, amount:, beneficiary_address_line1: nil, beneficiary_address_line2: nil, beneficiary_address_line3: nil, beneficiary_name: nil, beneficiary_reference: nil, originator_address_line1: nil, originator_address_line2: nil, originator_address_line3: nil, originator_name: nil, originator_routing_number: nil, originator_to_beneficiary_information_line1: nil, originator_to_beneficiary_information_line2: nil, originator_to_beneficiary_information_line3: nil, originator_to_beneficiary_information_line4: nil, sender_reference: nil, wire_drawdown_request_id: nil, request_options: {})
#
# @param account_number_id [String] The identifier of the Account Number the inbound Wire Transfer is for.
#
Expand Down Expand Up @@ -46,6 +46,8 @@ class InboundWireTransfers
#
# @param sender_reference [String] The sending bank will set sender_reference in production. You can simulate any v
#
# @param wire_drawdown_request_id [String] The identifier of a Wire Drawdown Request the inbound Wire Transfer is fulfillin
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
#
# @return [Increase::Models::InboundWireTransfer]
Expand Down
36 changes: 36 additions & 0 deletions lib/increase/resources/simulations/wire_drawdown_requests.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# frozen_string_literal: true

module Increase
module Resources
class Simulations
class WireDrawdownRequests
# Simulates a Wire Drawdown Request being refused by the debtor.
#
# @overload refuse(wire_drawdown_request_id, request_options: {})
#
# @param wire_drawdown_request_id [String] The identifier of the Wire Drawdown Request you wish to refuse.
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
#
# @return [Increase::Models::WireDrawdownRequest]
#
# @see Increase::Models::Simulations::WireDrawdownRequestRefuseParams
def refuse(wire_drawdown_request_id, params = {})
@client.request(
method: :post,
path: ["simulations/wire_drawdown_requests/%1$s/refuse", wire_drawdown_request_id],
model: Increase::WireDrawdownRequest,
options: params[:request_options]
)
end

# @api private
#
# @param client [Increase::Client]
def initialize(client:)
@client = client
end
end
end
end
end
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.10.0"
VERSION = "1.11.0"
end
13 changes: 13 additions & 0 deletions rbi/increase/models/inbound_wire_transfer_list_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ module Increase
end
attr_writer :status

# Filter Inbound Wire Transfers to ones belonging to the specified Wire Drawdown
# Request.
sig { returns(T.nilable(String)) }
attr_reader :wire_drawdown_request_id

sig { params(wire_drawdown_request_id: String).void }
attr_writer :wire_drawdown_request_id

sig do
params(
account_id: String,
Expand All @@ -76,6 +84,7 @@ module Increase
cursor: String,
limit: Integer,
status: Increase::InboundWireTransferListParams::Status::OrHash,
wire_drawdown_request_id: String,
request_options: Increase::RequestOptions::OrHash
).returns(T.attached_class)
end
Expand All @@ -91,6 +100,9 @@ module Increase
# objects.
limit: nil,
status: nil,
# Filter Inbound Wire Transfers to ones belonging to the specified Wire Drawdown
# Request.
wire_drawdown_request_id: nil,
request_options: {}
)
end
Expand All @@ -104,6 +116,7 @@ module Increase
cursor: String,
limit: Integer,
status: Increase::InboundWireTransferListParams::Status,
wire_drawdown_request_id: String,
request_options: Increase::RequestOptions
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,14 @@ module Increase
sig { params(sender_reference: String).void }
attr_writer :sender_reference

# The identifier of a Wire Drawdown Request the inbound Wire Transfer is
# fulfilling.
sig { returns(T.nilable(String)) }
attr_reader :wire_drawdown_request_id

sig { params(wire_drawdown_request_id: String).void }
attr_writer :wire_drawdown_request_id

sig do
params(
account_number_id: String,
Expand All @@ -162,6 +170,7 @@ module Increase
originator_to_beneficiary_information_line3: String,
originator_to_beneficiary_information_line4: String,
sender_reference: String,
wire_drawdown_request_id: String,
request_options: Increase::RequestOptions::OrHash
).returns(T.attached_class)
end
Expand Down Expand Up @@ -215,6 +224,9 @@ module Increase
# The sending bank will set sender_reference in production. You can simulate any
# value here.
sender_reference: nil,
# The identifier of a Wire Drawdown Request the inbound Wire Transfer is
# fulfilling.
wire_drawdown_request_id: nil,
request_options: {}
)
end
Expand All @@ -239,6 +251,7 @@ module Increase
originator_to_beneficiary_information_line3: String,
originator_to_beneficiary_information_line4: String,
sender_reference: String,
wire_drawdown_request_id: String,
request_options: Increase::RequestOptions
}
)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# typed: strong

module Increase
module Models
module Simulations
class WireDrawdownRequestRefuseParams < Increase::Internal::Type::BaseModel
extend Increase::Internal::Type::RequestParameters::Converter
include Increase::Internal::Type::RequestParameters

OrHash =
T.type_alias do
T.any(
Increase::Simulations::WireDrawdownRequestRefuseParams,
Increase::Internal::AnyHash
)
end

sig do
params(request_options: Increase::RequestOptions::OrHash).returns(
T.attached_class
)
end
def self.new(request_options: {})
end

sig { override.returns({ request_options: Increase::RequestOptions }) }
def to_hash
end
end
end
end
end
4 changes: 4 additions & 0 deletions rbi/increase/resources/inbound_wire_transfers.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module Increase
cursor: String,
limit: Integer,
status: Increase::InboundWireTransferListParams::Status::OrHash,
wire_drawdown_request_id: String,
request_options: Increase::RequestOptions::OrHash
).returns(Increase::Internal::Page[Increase::InboundWireTransfer])
end
Expand All @@ -42,6 +43,9 @@ module Increase
# objects.
limit: nil,
status: nil,
# Filter Inbound Wire Transfers to ones belonging to the specified Wire Drawdown
# Request.
wire_drawdown_request_id: nil,
request_options: {}
)
end
Expand Down
3 changes: 3 additions & 0 deletions rbi/increase/resources/simulations.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ module Increase
sig { returns(Increase::Resources::Simulations::InboundWireTransfers) }
attr_reader :inbound_wire_transfers

sig { returns(Increase::Resources::Simulations::WireDrawdownRequests) }
attr_reader :wire_drawdown_requests

sig do
returns(Increase::Resources::Simulations::InboundWireDrawdownRequests)
end
Expand Down
4 changes: 4 additions & 0 deletions rbi/increase/resources/simulations/inbound_wire_transfers.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ module Increase
originator_to_beneficiary_information_line3: String,
originator_to_beneficiary_information_line4: String,
sender_reference: String,
wire_drawdown_request_id: String,
request_options: Increase::RequestOptions::OrHash
).returns(Increase::InboundWireTransfer)
end
Expand Down Expand Up @@ -77,6 +78,9 @@ module Increase
# The sending bank will set sender_reference in production. You can simulate any
# value here.
sender_reference: nil,
# The identifier of a Wire Drawdown Request the inbound Wire Transfer is
# fulfilling.
wire_drawdown_request_id: nil,
request_options: {}
)
end
Expand Down
Loading