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.4.0"
".": "1.5.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: 201
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-96d05b8e37bf249bf8308adae52fd62efc5a37bf7dff2911bdfddb89c503bb30.yml
openapi_spec_hash: 35c0fded197228fc0680fe6ce04f6c82
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a027ea8bf72e85055306ceaf380c0311b8ed5e6e83962de0ccf48f62c85403fc.yml
openapi_spec_hash: 5a69ed697dee32af7deae0c6ebf27377
config_hash: 97774f946585cecb19181a1817870d0b
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 1.5.0 (2025-06-26)

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

### Features

* **api:** api update ([c5054f1](https://github.com/Increase/increase-ruby/commit/c5054f152ece6c990269c83a7c7537fc137ac665))
* **api:** api update ([dbddbd3](https://github.com/Increase/increase-ruby/commit/dbddbd30aae44f3600916e4e0bef10d35f866a45))

## 1.4.0 (2025-06-25)

Full Changelog: [v1.3.0...v1.4.0](https://github.com/Increase/increase-ruby/compare/v1.3.0...v1.4.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.4.0)
increase (1.5.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.4.0"
gem "increase", "~> 1.5.0"
```

<!-- x-release-please-end -->
Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/card_payment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2156,6 +2156,9 @@ module Reason
# The given CVV2 did not match the card's value.
CVV2_MISMATCH = :cvv2_mismatch

# The given PIN did not match the card's value.
PIN_MISMATCH = :pin_mismatch

# The given expiration date did not match the card's value. Only applies when a CVV2 is present.
CARD_EXPIRATION_MISMATCH = :card_expiration_mismatch

Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/declined_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,9 @@ module Reason
# The given CVV2 did not match the card's value.
CVV2_MISMATCH = :cvv2_mismatch

# The given PIN did not match the card's value.
PIN_MISMATCH = :pin_mismatch

# The given expiration date did not match the card's value. Only applies when a CVV2 is present.
CARD_EXPIRATION_MISMATCH = :card_expiration_mismatch

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ module DeclineReason
# The given CVV2 did not match the card's value.
CVV2_MISMATCH = :cvv2_mismatch

# The given PIN did not match the card's value.
PIN_MISMATCH = :pin_mismatch

# The given expiration date did not match the card's value. Only applies when a CVV2 is present.
CARD_EXPIRATION_MISMATCH = :card_expiration_mismatch

Expand Down
11 changes: 10 additions & 1 deletion lib/increase/models/wire_transfer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ class WireTransfer < Increase::Internal::Type::BaseModel
# @return [String, nil]
required :idempotency_key, String, nil?: true

# @!attribute inbound_wire_drawdown_request_id
# The ID of an Inbound Wire Drawdown Request in response to which this transfer
# was sent.
#
# @return [String, nil]
required :inbound_wire_drawdown_request_id, String, nil?: true

# @!attribute message_to_recipient
# The message that will show on the recipient's bank statement.
#
Expand Down Expand Up @@ -189,7 +196,7 @@ class WireTransfer < Increase::Internal::Type::BaseModel
# @return [Symbol, Increase::Models::WireTransfer::Type]
required :type, enum: -> { Increase::WireTransfer::Type }

# @!method initialize(id:, account_id:, account_number:, amount:, approval:, beneficiary_address_line1:, beneficiary_address_line2:, beneficiary_address_line3:, beneficiary_name:, cancellation:, created_at:, created_by:, currency:, external_account_id:, idempotency_key:, message_to_recipient:, network:, originator_address_line1:, originator_address_line2:, originator_address_line3:, originator_name:, pending_transaction_id:, reversal:, routing_number:, source_account_number_id:, status:, submission:, transaction_id:, type:)
# @!method initialize(id:, account_id:, account_number:, amount:, approval:, beneficiary_address_line1:, beneficiary_address_line2:, beneficiary_address_line3:, beneficiary_name:, cancellation:, created_at:, created_by:, currency:, external_account_id:, idempotency_key:, inbound_wire_drawdown_request_id:, message_to_recipient:, network:, originator_address_line1:, originator_address_line2:, originator_address_line3:, originator_name:, pending_transaction_id:, reversal:, routing_number:, source_account_number_id:, status:, submission:, transaction_id:, type:)
# Some parameter documentations has been truncated, see
# {Increase::Models::WireTransfer} for more details.
#
Expand Down Expand Up @@ -226,6 +233,8 @@ class WireTransfer < Increase::Internal::Type::BaseModel
#
# @param idempotency_key [String, nil] The idempotency key you chose for this object. This value is unique across Incre
#
# @param inbound_wire_drawdown_request_id [String, nil] The ID of an Inbound Wire Drawdown Request in response to which this transfer wa
#
# @param message_to_recipient [String, nil] The message that will show on the recipient's bank statement.
#
# @param network [Symbol, Increase::Models::WireTransfer::Network] The transfer's network.
Expand Down
11 changes: 10 additions & 1 deletion lib/increase/models/wire_transfer_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ class WireTransferCreateParams < Increase::Internal::Type::BaseModel
# @return [String, nil]
optional :external_account_id, String

# @!attribute inbound_wire_drawdown_request_id
# The ID of an Inbound Wire Drawdown Request in response to which this transfer is
# being sent.
#
# @return [String, nil]
optional :inbound_wire_drawdown_request_id, String

# @!attribute originator_address_line1
# The originator's address line 1. This is only necessary if you're transferring
# from a commingled account. Otherwise, we'll use the associated entity's details.
Expand Down Expand Up @@ -109,7 +116,7 @@ class WireTransferCreateParams < Increase::Internal::Type::BaseModel
# @return [String, nil]
optional :source_account_number_id, String

# @!method initialize(account_id:, amount:, beneficiary_name:, message_to_recipient:, account_number: nil, beneficiary_address_line1: nil, beneficiary_address_line2: nil, beneficiary_address_line3: nil, external_account_id: nil, originator_address_line1: nil, originator_address_line2: nil, originator_address_line3: nil, originator_name: nil, require_approval: nil, routing_number: nil, source_account_number_id: nil, request_options: {})
# @!method initialize(account_id:, amount:, beneficiary_name:, message_to_recipient:, account_number: nil, beneficiary_address_line1: nil, beneficiary_address_line2: nil, beneficiary_address_line3: nil, external_account_id: nil, inbound_wire_drawdown_request_id: nil, originator_address_line1: nil, originator_address_line2: nil, originator_address_line3: nil, originator_name: nil, require_approval: nil, routing_number: nil, source_account_number_id: nil, request_options: {})
# Some parameter documentations has been truncated, see
# {Increase::Models::WireTransferCreateParams} for more details.
#
Expand All @@ -131,6 +138,8 @@ class WireTransferCreateParams < Increase::Internal::Type::BaseModel
#
# @param external_account_id [String] The ID of an External Account to initiate a transfer to. If this parameter is pr
#
# @param inbound_wire_drawdown_request_id [String] The ID of an Inbound Wire Drawdown Request in response to which this transfer is
#
# @param originator_address_line1 [String] The originator's address line 1. This is only necessary if you're transferring f
#
# @param originator_address_line2 [String] The originator's address line 2. This is only necessary if you're transferring f
Expand Down
4 changes: 3 additions & 1 deletion lib/increase/resources/wire_transfers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class WireTransfers
#
# Create a Wire Transfer
#
# @overload create(account_id:, amount:, beneficiary_name:, message_to_recipient:, account_number: nil, beneficiary_address_line1: nil, beneficiary_address_line2: nil, beneficiary_address_line3: nil, external_account_id: nil, originator_address_line1: nil, originator_address_line2: nil, originator_address_line3: nil, originator_name: nil, require_approval: nil, routing_number: nil, source_account_number_id: nil, request_options: {})
# @overload create(account_id:, amount:, beneficiary_name:, message_to_recipient:, account_number: nil, beneficiary_address_line1: nil, beneficiary_address_line2: nil, beneficiary_address_line3: nil, external_account_id: nil, inbound_wire_drawdown_request_id: nil, originator_address_line1: nil, originator_address_line2: nil, originator_address_line3: nil, originator_name: nil, require_approval: nil, routing_number: nil, source_account_number_id: nil, request_options: {})
#
# @param account_id [String] The identifier for the account that will send the transfer.
#
Expand All @@ -28,6 +28,8 @@ class WireTransfers
#
# @param external_account_id [String] The ID of an External Account to initiate a transfer to. If this parameter is pr
#
# @param inbound_wire_drawdown_request_id [String] The ID of an Inbound Wire Drawdown Request in response to which this transfer is
#
# @param originator_address_line1 [String] The originator's address line 1. This is only necessary if you're transferring f
#
# @param originator_address_line2 [String] The originator's address line 2. This is only necessary if you're transferring f
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.4.0"
VERSION = "1.5.0"
end
7 changes: 7 additions & 0 deletions rbi/increase/models/card_payment.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -4081,6 +4081,13 @@ module Increase
Increase::CardPayment::Element::CardDecline::Reason::TaggedSymbol
)

# The given PIN did not match the card's value.
PIN_MISMATCH =
T.let(
:pin_mismatch,
Increase::CardPayment::Element::CardDecline::Reason::TaggedSymbol
)

# The given expiration date did not match the card's value. Only applies when a CVV2 is present.
CARD_EXPIRATION_MISMATCH =
T.let(
Expand Down
7 changes: 7 additions & 0 deletions rbi/increase/models/declined_transaction.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -1996,6 +1996,13 @@ module Increase
Increase::DeclinedTransaction::Source::CardDecline::Reason::TaggedSymbol
)

# The given PIN did not match the card's value.
PIN_MISMATCH =
T.let(
:pin_mismatch,
Increase::DeclinedTransaction::Source::CardDecline::Reason::TaggedSymbol
)

# The given expiration date did not match the card's value. Only applies when a CVV2 is present.
CARD_EXPIRATION_MISMATCH =
T.let(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,13 @@ module Increase
Increase::Simulations::CardAuthorizationCreateParams::DeclineReason::TaggedSymbol
)

# The given PIN did not match the card's value.
PIN_MISMATCH =
T.let(
:pin_mismatch,
Increase::Simulations::CardAuthorizationCreateParams::DeclineReason::TaggedSymbol
)

# The given expiration date did not match the card's value. Only applies when a CVV2 is present.
CARD_EXPIRATION_MISMATCH =
T.let(
Expand Down
10 changes: 10 additions & 0 deletions rbi/increase/models/wire_transfer.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ module Increase
sig { returns(T.nilable(String)) }
attr_accessor :idempotency_key

# The ID of an Inbound Wire Drawdown Request in response to which this transfer
# was sent.
sig { returns(T.nilable(String)) }
attr_accessor :inbound_wire_drawdown_request_id

# The message that will show on the recipient's bank statement.
sig { returns(T.nilable(String)) }
attr_accessor :message_to_recipient
Expand Down Expand Up @@ -189,6 +194,7 @@ module Increase
currency: Increase::WireTransfer::Currency::OrSymbol,
external_account_id: T.nilable(String),
idempotency_key: T.nilable(String),
inbound_wire_drawdown_request_id: T.nilable(String),
message_to_recipient: T.nilable(String),
network: Increase::WireTransfer::Network::OrSymbol,
originator_address_line1: T.nilable(String),
Expand Down Expand Up @@ -242,6 +248,9 @@ module Increase
# Increase and is used to ensure that a request is only processed once. Learn more
# about [idempotency](https://increase.com/documentation/idempotency-keys).
idempotency_key:,
# The ID of an Inbound Wire Drawdown Request in response to which this transfer
# was sent.
inbound_wire_drawdown_request_id:,
# The message that will show on the recipient's bank statement.
message_to_recipient:,
# The transfer's network.
Expand Down Expand Up @@ -296,6 +305,7 @@ module Increase
currency: Increase::WireTransfer::Currency::TaggedSymbol,
external_account_id: T.nilable(String),
idempotency_key: T.nilable(String),
inbound_wire_drawdown_request_id: T.nilable(String),
message_to_recipient: T.nilable(String),
network: Increase::WireTransfer::Network::TaggedSymbol,
originator_address_line1: T.nilable(String),
Expand Down
13 changes: 13 additions & 0 deletions rbi/increase/models/wire_transfer_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ module Increase
sig { params(external_account_id: String).void }
attr_writer :external_account_id

# The ID of an Inbound Wire Drawdown Request in response to which this transfer is
# being sent.
sig { returns(T.nilable(String)) }
attr_reader :inbound_wire_drawdown_request_id

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

# The originator's address line 1. This is only necessary if you're transferring
# from a commingled account. Otherwise, we'll use the associated entity's details.
sig { returns(T.nilable(String)) }
Expand Down Expand Up @@ -128,6 +136,7 @@ module Increase
beneficiary_address_line2: String,
beneficiary_address_line3: String,
external_account_id: String,
inbound_wire_drawdown_request_id: String,
originator_address_line1: String,
originator_address_line2: String,
originator_address_line3: String,
Expand Down Expand Up @@ -158,6 +167,9 @@ module Increase
# The ID of an External Account to initiate a transfer to. If this parameter is
# provided, `account_number` and `routing_number` must be absent.
external_account_id: nil,
# The ID of an Inbound Wire Drawdown Request in response to which this transfer is
# being sent.
inbound_wire_drawdown_request_id: nil,
# The originator's address line 1. This is only necessary if you're transferring
# from a commingled account. Otherwise, we'll use the associated entity's details.
originator_address_line1: nil,
Expand Down Expand Up @@ -193,6 +205,7 @@ module Increase
beneficiary_address_line2: String,
beneficiary_address_line3: String,
external_account_id: String,
inbound_wire_drawdown_request_id: String,
originator_address_line1: String,
originator_address_line2: String,
originator_address_line3: String,
Expand Down
4 changes: 4 additions & 0 deletions rbi/increase/resources/wire_transfers.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module Increase
beneficiary_address_line2: String,
beneficiary_address_line3: String,
external_account_id: String,
inbound_wire_drawdown_request_id: String,
originator_address_line1: String,
originator_address_line2: String,
originator_address_line3: String,
Expand Down Expand Up @@ -45,6 +46,9 @@ module Increase
# The ID of an External Account to initiate a transfer to. If this parameter is
# provided, `account_number` and `routing_number` must be absent.
external_account_id: nil,
# The ID of an Inbound Wire Drawdown Request in response to which this transfer is
# being sent.
inbound_wire_drawdown_request_id: nil,
# The originator's address line 1. This is only necessary if you're transferring
# from a commingled account. Otherwise, we'll use the associated entity's details.
originator_address_line1: nil,
Expand Down
4 changes: 4 additions & 0 deletions sig/increase/models/card_payment.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -1618,6 +1618,7 @@ module Increase
| :group_locked
| :insufficient_funds
| :cvv2_mismatch
| :pin_mismatch
| :card_expiration_mismatch
| :transaction_not_allowed
| :breaches_limit
Expand Down Expand Up @@ -1656,6 +1657,9 @@ module Increase
# The given CVV2 did not match the card's value.
CVV2_MISMATCH: :cvv2_mismatch

# The given PIN did not match the card's value.
PIN_MISMATCH: :pin_mismatch

# The given expiration date did not match the card's value. Only applies when a CVV2 is present.
CARD_EXPIRATION_MISMATCH: :card_expiration_mismatch

Expand Down
4 changes: 4 additions & 0 deletions sig/increase/models/declined_transaction.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,7 @@ module Increase
| :group_locked
| :insufficient_funds
| :cvv2_mismatch
| :pin_mismatch
| :card_expiration_mismatch
| :transaction_not_allowed
| :breaches_limit
Expand Down Expand Up @@ -850,6 +851,9 @@ module Increase
# The given CVV2 did not match the card's value.
CVV2_MISMATCH: :cvv2_mismatch

# The given PIN did not match the card's value.
PIN_MISMATCH: :pin_mismatch

# The given expiration date did not match the card's value. Only applies when a CVV2 is present.
CARD_EXPIRATION_MISMATCH: :card_expiration_mismatch

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ module Increase
| :group_locked
| :insufficient_funds
| :cvv2_mismatch
| :pin_mismatch
| :card_expiration_mismatch
| :transaction_not_allowed
| :breaches_limit
Expand Down Expand Up @@ -188,6 +189,9 @@ module Increase
# The given CVV2 did not match the card's value.
CVV2_MISMATCH: :cvv2_mismatch

# The given PIN did not match the card's value.
PIN_MISMATCH: :pin_mismatch

# The given expiration date did not match the card's value. Only applies when a CVV2 is present.
CARD_EXPIRATION_MISMATCH: :card_expiration_mismatch

Expand Down
5 changes: 5 additions & 0 deletions sig/increase/models/wire_transfer.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module Increase
currency: Increase::Models::WireTransfer::currency,
external_account_id: String?,
idempotency_key: String?,
inbound_wire_drawdown_request_id: String?,
message_to_recipient: String?,
network: Increase::Models::WireTransfer::network,
:originator_address_line1 => String?,
Expand Down Expand Up @@ -64,6 +65,8 @@ module Increase

attr_accessor idempotency_key: String?

attr_accessor inbound_wire_drawdown_request_id: String?

attr_accessor message_to_recipient: String?

attr_accessor network: Increase::Models::WireTransfer::network
Expand Down Expand Up @@ -108,6 +111,7 @@ module Increase
currency: Increase::Models::WireTransfer::currency,
external_account_id: String?,
idempotency_key: String?,
inbound_wire_drawdown_request_id: String?,
message_to_recipient: String?,
network: Increase::Models::WireTransfer::network,
originator_address_line1: String?,
Expand Down Expand Up @@ -140,6 +144,7 @@ module Increase
currency: Increase::Models::WireTransfer::currency,
external_account_id: String?,
idempotency_key: String?,
inbound_wire_drawdown_request_id: String?,
message_to_recipient: String?,
network: Increase::Models::WireTransfer::network,
:originator_address_line1 => String?,
Expand Down
Loading