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.30"
".": "0.1.0-alpha.31"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 197
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b9a610bb578b82c46d4222f4746d69c8e422f9cfad51a6d72d44c64f8746d709.yml
openapi_spec_hash: a63cc36300445b0201442108b6cc8530
config_hash: 85850cd9055db4b9e43bcc4aa1a2dcea
configured_endpoints: 199
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-0ecd4933d3a1f2e6363dc40b619d296a033732ec245018effd3e5f687f60bb04.yml
openapi_spec_hash: 41f0a23615d13ed80758208130da6abd
config_hash: 0c284b69f3dccb22b24877f61d0d8a9a
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Changelog

## 0.1.0-alpha.31 (2025-06-08)

Full Changelog: [v0.1.0-alpha.30...v0.1.0-alpha.31](https://github.com/Increase/increase-ruby/compare/v0.1.0-alpha.30...v0.1.0-alpha.31)

### Features

* **api:** api update ([381598e](https://github.com/Increase/increase-ruby/commit/381598ee6a15e75c4a33a1f27b4e5930f4f9e744))
* **api:** api update ([901ff94](https://github.com/Increase/increase-ruby/commit/901ff949f455288cd8f902e7bcf14b720376e27a))
* **api:** api update ([b21fa1c](https://github.com/Increase/increase-ruby/commit/b21fa1ca020cec0ba8e704474e5d726cdbc34b3c))
* **api:** api update ([cda80e7](https://github.com/Increase/increase-ruby/commit/cda80e71e5adcef9e2db23380c8750a1854c7675))


### Bug Fixes

* default content-type for text in multi-part formdata uploads should be text/plain ([6008528](https://github.com/Increase/increase-ruby/commit/60085285e33b4259d2c02332ced3b0436ebdae5e))


### Chores

* fix idempotency header ([3e72dbd](https://github.com/Increase/increase-ruby/commit/3e72dbdfa637e7c0eeb9c821fd6ff12c3cc2c13a))
* Update SECURITY.md ([692d69b](https://github.com/Increase/increase-ruby/commit/692d69bf188e7735ee58289f6d9c4cdbcec303ab))

## 0.1.0-alpha.30 (2025-06-03)

Full Changelog: [v0.1.0-alpha.29...v0.1.0-alpha.30](https://github.com/Increase/increase-ruby/compare/v0.1.0-alpha.29...v0.1.0-alpha.30)
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 (0.1.0.pre.alpha.30)
increase (0.1.0.pre.alpha.31)
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", "~> 0.1.0.pre.alpha.30"
gem "increase", "~> 0.1.0.pre.alpha.31"
```

<!-- 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 @@ -247,6 +247,8 @@
require_relative "increase/models/real_time_decision_action_params"
require_relative "increase/models/real_time_decision_retrieve_params"
require_relative "increase/models/real_time_payments_transfer"
require_relative "increase/models/real_time_payments_transfer_approve_params"
require_relative "increase/models/real_time_payments_transfer_cancel_params"
require_relative "increase/models/real_time_payments_transfer_create_params"
require_relative "increase/models/real_time_payments_transfer_list_params"
require_relative "increase/models/real_time_payments_transfer_retrieve_params"
Expand Down
17 changes: 8 additions & 9 deletions lib/increase/internal/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ class << self
# @param closing [Array<Proc>]
# @param content_type [String, nil]
private def write_multipart_content(y, val:, closing:, content_type: nil)
content_type ||= "application/octet-stream"
content_line = "Content-Type: %s\r\n\r\n"

case val
in Increase::FilePart
Expand All @@ -508,24 +508,21 @@ class << self
content_type: val.content_type
)
in Pathname
y << "Content-Type: #{content_type}\r\n\r\n"
y << format(content_line, content_type || "application/octet-stream")
io = val.open(binmode: true)
closing << io.method(:close)
IO.copy_stream(io, y)
in IO
y << "Content-Type: #{content_type}\r\n\r\n"
y << format(content_line, content_type || "application/octet-stream")
IO.copy_stream(val, y)
in StringIO
y << "Content-Type: #{content_type}\r\n\r\n"
y << format(content_line, content_type || "application/octet-stream")
y << val.string
in String
y << "Content-Type: #{content_type}\r\n\r\n"
y << val.to_s
in -> { primitive?(_1) }
y << "Content-Type: text/plain\r\n\r\n"
y << format(content_line, content_type || "text/plain")
y << val.to_s
else
y << "Content-Type: application/json\r\n\r\n"
y << format(content_line, content_type || "application/json")
y << JSON.generate(val)
end
y << "\r\n"
Expand Down Expand Up @@ -563,6 +560,8 @@ class << self

# @api private
#
# https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#special-considerations-for-multipart-content
#
# @param body [Object]
#
# @return [Array(String, Enumerable<String>)]
Expand Down
4 changes: 4 additions & 0 deletions lib/increase/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,10 @@ module Increase

RealTimePaymentsTransfer = Increase::Models::RealTimePaymentsTransfer

RealTimePaymentsTransferApproveParams = Increase::Models::RealTimePaymentsTransferApproveParams

RealTimePaymentsTransferCancelParams = Increase::Models::RealTimePaymentsTransferCancelParams

RealTimePaymentsTransferCreateParams = Increase::Models::RealTimePaymentsTransferCreateParams

RealTimePaymentsTransferListParams = Increase::Models::RealTimePaymentsTransferListParams
Expand Down
29 changes: 1 addition & 28 deletions lib/increase/models/external_account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,7 @@ class ExternalAccount < Increase::Internal::Type::BaseModel
# @return [Symbol, Increase::Models::ExternalAccount::Type]
required :type, enum: -> { Increase::ExternalAccount::Type }

# @!attribute verification_status
# If you have verified ownership of the External Account.
#
# @return [Symbol, Increase::Models::ExternalAccount::VerificationStatus]
required :verification_status, enum: -> { Increase::ExternalAccount::VerificationStatus }

# @!method initialize(id:, account_holder:, account_number:, created_at:, description:, funding:, idempotency_key:, routing_number:, status:, type:, verification_status:)
# @!method initialize(id:, account_holder:, account_number:, created_at:, description:, funding:, idempotency_key:, routing_number:, status:, type:)
# Some parameter documentations has been truncated, see
# {Increase::Models::ExternalAccount} for more details.
#
Expand All @@ -100,8 +94,6 @@ class ExternalAccount < Increase::Internal::Type::BaseModel
# @param status [Symbol, Increase::Models::ExternalAccount::Status] The External Account's status.
#
# @param type [Symbol, Increase::Models::ExternalAccount::Type] A constant representing the object's type. For this resource it will always be `
#
# @param verification_status [Symbol, Increase::Models::ExternalAccount::VerificationStatus] If you have verified ownership of the External Account.

# The type of entity that owns the External Account.
#
Expand Down Expand Up @@ -169,25 +161,6 @@ module Type
# @!method self.values
# @return [Array<Symbol>]
end

# If you have verified ownership of the External Account.
#
# @see Increase::Models::ExternalAccount#verification_status
module VerificationStatus
extend Increase::Internal::Type::Enum

# The External Account has not been verified.
UNVERIFIED = :unverified

# The External Account is in the process of being verified.
PENDING = :pending

# The External Account is verified.
VERIFIED = :verified

# @!method self.values
# @return [Array<Symbol>]
end
end
end
end
4 changes: 2 additions & 2 deletions lib/increase/models/inbound_wire_drawdown_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ class InboundWireDrawdownRequest < Increase::Internal::Type::BaseModel
# {Increase::Models::InboundWireDrawdownRequest} for more details.
#
# Inbound wire drawdown requests are requests from someone else to send them a
# wire. This feature is in beta; reach out to
# [support@increase.com](mailto:support@increase.com) to learn more.
# wire. For more information, see our
# [Wire Drawdown Requests documentation](/documentation/wire-drawdown-requests).
#
# @param id [String] The Wire drawdown request identifier.
#
Expand Down
31 changes: 30 additions & 1 deletion lib/increase/models/pending_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,15 @@ class Source < Increase::Internal::Type::BaseModel
-> { Increase::PendingTransaction::Source::CheckTransferInstruction },
nil?: true

# @!attribute group_initiated_hold
# A Group Initiated Hold Source object. This field will be present in the JSON
# response if and only if `category` is equal to `group_initiated_hold`.
#
# @return [Increase::Models::PendingTransaction::Source::GroupInitiatedHold, nil]
required :group_initiated_hold,
-> { Increase::PendingTransaction::Source::GroupInitiatedHold },
nil?: true

# @!attribute inbound_funds_hold
# An Inbound Funds Hold object. This field will be present in the JSON response if
# and only if `category` is equal to `inbound_funds_hold`. We hold funds for
Expand Down Expand Up @@ -295,7 +304,7 @@ class Source < Increase::Internal::Type::BaseModel
-> { Increase::PendingTransaction::Source::WireTransferInstruction },
nil?: true

# @!method initialize(account_transfer_instruction:, ach_transfer_instruction:, card_authorization:, category:, check_deposit_instruction:, check_transfer_instruction:, inbound_funds_hold:, inbound_wire_transfer_reversal:, other:, outbound_card_push_transfer_instruction:, real_time_payments_transfer_instruction:, swift_transfer_instruction:, wire_transfer_instruction:)
# @!method initialize(account_transfer_instruction:, ach_transfer_instruction:, card_authorization:, category:, check_deposit_instruction:, check_transfer_instruction:, group_initiated_hold:, inbound_funds_hold:, inbound_wire_transfer_reversal:, other:, outbound_card_push_transfer_instruction:, real_time_payments_transfer_instruction:, swift_transfer_instruction:, wire_transfer_instruction:)
# Some parameter documentations has been truncated, see
# {Increase::Models::PendingTransaction::Source} for more details.
#
Expand All @@ -315,6 +324,8 @@ class Source < Increase::Internal::Type::BaseModel
#
# @param check_transfer_instruction [Increase::Models::PendingTransaction::Source::CheckTransferInstruction, nil] A Check Transfer Instruction object. This field will be present in the JSON resp
#
# @param group_initiated_hold [Increase::Models::PendingTransaction::Source::GroupInitiatedHold, nil] A Group Initiated Hold Source object. This field will be present in the JSON res
#
# @param inbound_funds_hold [Increase::Models::PendingTransaction::Source::InboundFundsHold, nil] An Inbound Funds Hold object. This field will be present in the JSON response if
#
# @param inbound_wire_transfer_reversal [Increase::Models::PendingTransaction::Source::InboundWireTransferReversal, nil] An Inbound Wire Transfer Reversal object. This field will be present in the JSON
Expand Down Expand Up @@ -1199,6 +1210,9 @@ module Category
# Inbound Funds Hold: details will be under the `inbound_funds_hold` object.
INBOUND_FUNDS_HOLD = :inbound_funds_hold

# Group Initiated Hold Source: details will be under the `group_initiated_hold` object.
GROUP_INITIATED_HOLD = :group_initiated_hold

# Real-Time Payments Transfer Instruction: details will be under the `real_time_payments_transfer_instruction` object.
REAL_TIME_PAYMENTS_TRANSFER_INSTRUCTION = :real_time_payments_transfer_instruction

Expand Down Expand Up @@ -1375,6 +1389,21 @@ module Currency
end
end

# @see Increase::Models::PendingTransaction::Source#group_initiated_hold
class GroupInitiatedHold < Increase::Internal::Type::BaseModel
# @!attribute id
# The Group Initiated Hold identifier.
#
# @return [String]
required :id, String

# @!method initialize(id:)
# A Group Initiated Hold Source object. This field will be present in the JSON
# response if and only if `category` is equal to `group_initiated_hold`.
#
# @param id [String] The Group Initiated Hold identifier.
end

# @see Increase::Models::PendingTransaction::Source#inbound_funds_hold
class InboundFundsHold < Increase::Internal::Type::BaseModel
# @!attribute id
Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/pending_transaction_list_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ module In
# Inbound Funds Hold: details will be under the `inbound_funds_hold` object.
INBOUND_FUNDS_HOLD = :inbound_funds_hold

# Group Initiated Hold Source: details will be under the `group_initiated_hold` object.
GROUP_INITIATED_HOLD = :group_initiated_hold

# Real-Time Payments Transfer Instruction: details will be under the `real_time_payments_transfer_instruction` object.
REAL_TIME_PAYMENTS_TRANSFER_INSTRUCTION = :real_time_payments_transfer_instruction

Expand Down
14 changes: 14 additions & 0 deletions lib/increase/models/real_time_payments_transfer_approve_params.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# frozen_string_literal: true

module Increase
module Models
# @see Increase::Resources::RealTimePaymentsTransfers#approve
class RealTimePaymentsTransferApproveParams < 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
14 changes: 14 additions & 0 deletions lib/increase/models/real_time_payments_transfer_cancel_params.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# frozen_string_literal: true

module Increase
module Models
# @see Increase::Resources::RealTimePaymentsTransfers#cancel
class RealTimePaymentsTransferCancelParams < 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
7 changes: 5 additions & 2 deletions lib/increase/models/wire_drawdown_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,11 @@ class WireDrawdownRequest < Increase::Internal::Type::BaseModel
# {Increase::Models::WireDrawdownRequest} for more details.
#
# Wire drawdown requests enable you to request that someone else send you a wire.
# This feature is in beta; reach out to
# [support@increase.com](mailto:support@increase.com) to learn more.
# Because there is nuance to making sure your counterparty's bank processes these
# correctly, we ask that you reach out to
# [support@increase.com](mailto:support@increase.com) to enable this feature so we
# can help you plan your integration. For more information, see our
# [Wire Drawdown Requests documentation](/documentation/wire-drawdown-requests).
#
# @param id [String] The Wire drawdown request identifier.
#
Expand Down
40 changes: 40 additions & 0 deletions lib/increase/resources/real_time_payments_transfers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,46 @@ def list(params = {})
)
end

# Approves an Real-Time Payments Transfer in a pending_approval state.
#
# @overload approve(real_time_payments_transfer_id, request_options: {})
#
# @param real_time_payments_transfer_id [String] The identifier of the Real-Time Payments Transfer to approve.
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
#
# @return [Increase::Models::RealTimePaymentsTransfer]
#
# @see Increase::Models::RealTimePaymentsTransferApproveParams
def approve(real_time_payments_transfer_id, params = {})
@client.request(
method: :post,
path: ["real_time_payments_transfers/%1$s/approve", real_time_payments_transfer_id],
model: Increase::RealTimePaymentsTransfer,
options: params[:request_options]
)
end

# Cancels an Real-Time Payments Transfer in a pending_approval state.
#
# @overload cancel(real_time_payments_transfer_id, request_options: {})
#
# @param real_time_payments_transfer_id [String] The identifier of the pending Real-Time Payments Transfer to cancel.
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
#
# @return [Increase::Models::RealTimePaymentsTransfer]
#
# @see Increase::Models::RealTimePaymentsTransferCancelParams
def cancel(real_time_payments_transfer_id, params = {})
@client.request(
method: :post,
path: ["real_time_payments_transfers/%1$s/cancel", real_time_payments_transfer_id],
model: Increase::RealTimePaymentsTransfer,
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 = "0.1.0.pre.alpha.30"
VERSION = "0.1.0.pre.alpha.31"
end
2 changes: 2 additions & 0 deletions rbi/increase/internal/util.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ module Increase
end

# @api private
#
# https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#special-considerations-for-multipart-content
sig do
params(body: T.anything).returns([String, T::Enumerable[String]])
end
Expand Down
6 changes: 6 additions & 0 deletions rbi/increase/models.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,12 @@ module Increase

RealTimePaymentsTransfer = Increase::Models::RealTimePaymentsTransfer

RealTimePaymentsTransferApproveParams =
Increase::Models::RealTimePaymentsTransferApproveParams

RealTimePaymentsTransferCancelParams =
Increase::Models::RealTimePaymentsTransferCancelParams

RealTimePaymentsTransferCreateParams =
Increase::Models::RealTimePaymentsTransferCreateParams

Expand Down
Loading
Loading