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.47.0"
".": "1.48.0"
}
3 changes: 2 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# yaml-language-server: $schema=https://www.rubyschema.org/rubocop.json
---
# Explicitly disable pending cops for now. This is the default behaviour but
# this avoids a large warning every time we run it.
Expand All @@ -8,7 +9,7 @@ AllCops:
- "bin/*"
NewCops: enable
SuggestExtensions: false
TargetRubyVersion: 3.2.0
TargetRubyVersion: 3.2

# Whether MFA is required or not should be left to the token configuration.
Gemspec/RequireMFA:
Expand Down
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 215
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-47271d8ef6b398d5273312e3c39405688f782f8ec811ddee55283f5c0bd1a355.yml
openapi_spec_hash: 304a3d8409f0cc03144052411acab7a1
config_hash: 0b0a2503208283b283fc5bc6df6a07a5
configured_endpoints: 216
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e692ae6a744df0b2e6df643237f2338fb9afc9f55d456afde4fc392bc61ac438.yml
openapi_spec_hash: 121549528ff41d1a1f7ddb76a3c391de
config_hash: 29e452035e915a07cd64333b10a83077
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 1.48.0 (2025-08-25)

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

### Features

* **api:** api update ([5bf108b](https://github.com/Increase/increase-ruby/commit/5bf108b6bb1dfa41a6d2e0e981edd099ffb13ef6))


### Chores

* add json schema comment for rubocop.yml ([aabb92c](https://github.com/Increase/increase-ruby/commit/aabb92ccae37972783253afb3506ff429cbedfb5))

## 1.47.0 (2025-08-22)

Full Changelog: [v1.46.0...v1.47.0](https://github.com/Increase/increase-ruby/compare/v1.46.0...v1.47.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.47.0)
increase (1.48.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.47.0"
gem "increase", "~> 1.48.0"
```

<!-- x-release-please-end -->
Expand Down
1 change: 1 addition & 0 deletions lib/increase.rb
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@
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_drawdown_request_submit_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
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#submit
class WireDrawdownRequestSubmitParams < 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
20 changes: 20 additions & 0 deletions lib/increase/resources/simulations/wire_drawdown_requests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,26 @@ def refuse(wire_drawdown_request_id, params = {})
)
end

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

# @api private
#
# @param client [Increase::Client]
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.47.0"
VERSION = "1.48.0"
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# typed: strong

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

OrHash =
T.type_alias do
T.any(
Increase::Simulations::WireDrawdownRequestSubmitParams,
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
14 changes: 14 additions & 0 deletions rbi/increase/resources/simulations/wire_drawdown_requests.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,20 @@ module Increase
)
end

# Simulates a Wire Drawdown Request being submitted to Fedwire.
sig do
params(
wire_drawdown_request_id: String,
request_options: Increase::RequestOptions::OrHash
).returns(Increase::WireDrawdownRequest)
end
def submit(
# The identifier of the Wire Drawdown Request you wish to submit.
wire_drawdown_request_id,
request_options: {}
)
end

# @api private
sig { params(client: Increase::Client).returns(T.attached_class) }
def self.new(client:)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module Increase
module Models
module Simulations
type wire_drawdown_request_submit_params =
{ } & Increase::Internal::Type::request_parameters

class WireDrawdownRequestSubmitParams < Increase::Internal::Type::BaseModel
extend Increase::Internal::Type::RequestParameters::Converter
include Increase::Internal::Type::RequestParameters

def initialize: (?request_options: Increase::request_opts) -> void

def to_hash: -> { request_options: Increase::RequestOptions }
end
end
end
end
5 changes: 5 additions & 0 deletions sig/increase/resources/simulations/wire_drawdown_requests.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ module Increase
?request_options: Increase::request_opts
) -> Increase::WireDrawdownRequest

def submit: (
String wire_drawdown_request_id,
?request_options: Increase::request_opts
) -> Increase::WireDrawdownRequest

def initialize: (client: Increase::Client) -> void
end
end
Expand Down
31 changes: 31 additions & 0 deletions test/increase/resources/simulations/wire_drawdown_requests_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,35 @@ def test_refuse
}
end
end

def test_submit
response = @increase.simulations.wire_drawdown_requests.submit("wire_drawdown_request_id")

assert_pattern do
response => Increase::WireDrawdownRequest
end

assert_pattern do
response => {
id: String,
account_number_id: String,
amount: Integer,
created_at: Time,
creditor_address: Increase::WireDrawdownRequest::CreditorAddress,
creditor_name: String,
currency: String,
debtor_account_number: String,
debtor_address: Increase::WireDrawdownRequest::DebtorAddress,
debtor_external_account_id: String | nil,
debtor_name: String,
debtor_routing_number: String,
fulfillment_inbound_wire_transfer_id: String | nil,
idempotency_key: String | nil,
status: Increase::WireDrawdownRequest::Status,
submission: Increase::WireDrawdownRequest::Submission | nil,
type: Increase::WireDrawdownRequest::Type,
unstructured_remittance_information: String
}
end
end
end