From cda80e71e5adcef9e2db23380c8750a1854c7675 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 20:06:52 +0000 Subject: [PATCH 1/6] feat(api): api update --- .stats.yml | 4 ++-- lib/increase/models/inbound_wire_drawdown_request.rb | 4 ++-- lib/increase/models/wire_drawdown_request.rb | 7 +++++-- rbi/increase/models/inbound_wire_drawdown_request.rbi | 4 ++-- rbi/increase/models/wire_drawdown_request.rbi | 7 +++++-- 5 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.stats.yml b/.stats.yml index 43c250262..94d59c04b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-644c7608acea9983d97a58a2b89d0f3f6d641c6dba30270e6ed03ea4f9942a90.yml +openapi_spec_hash: a024db2f41e8a801204741e95c4e57fd config_hash: 85850cd9055db4b9e43bcc4aa1a2dcea diff --git a/lib/increase/models/inbound_wire_drawdown_request.rb b/lib/increase/models/inbound_wire_drawdown_request.rb index 82013fd42..839cc01af 100644 --- a/lib/increase/models/inbound_wire_drawdown_request.rb +++ b/lib/increase/models/inbound_wire_drawdown_request.rb @@ -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. # diff --git a/lib/increase/models/wire_drawdown_request.rb b/lib/increase/models/wire_drawdown_request.rb index 31a39594b..09ccf5dd3 100644 --- a/lib/increase/models/wire_drawdown_request.rb +++ b/lib/increase/models/wire_drawdown_request.rb @@ -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. # diff --git a/rbi/increase/models/inbound_wire_drawdown_request.rbi b/rbi/increase/models/inbound_wire_drawdown_request.rbi index 53683137b..230fdb13c 100644 --- a/rbi/increase/models/inbound_wire_drawdown_request.rbi +++ b/rbi/increase/models/inbound_wire_drawdown_request.rbi @@ -112,8 +112,8 @@ module Increase attr_accessor :type # 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). sig do params( id: String, diff --git a/rbi/increase/models/wire_drawdown_request.rbi b/rbi/increase/models/wire_drawdown_request.rbi index 0cff72bc9..2ee3958fd 100644 --- a/rbi/increase/models/wire_drawdown_request.rbi +++ b/rbi/increase/models/wire_drawdown_request.rbi @@ -109,8 +109,11 @@ module Increase attr_accessor :type # 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). sig do params( id: String, From b21fa1ca020cec0ba8e704474e5d726cdbc34b3c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 20:21:17 +0000 Subject: [PATCH 2/6] feat(api): api update --- .stats.yml | 4 +- lib/increase/models/external_account.rb | 29 +-------- rbi/increase/models/external_account.rbi | 60 +------------------ sig/increase/models/external_account.rbs | 28 +-------- .../resources/external_accounts_test.rb | 12 ++-- 5 files changed, 13 insertions(+), 120 deletions(-) diff --git a/.stats.yml b/.stats.yml index 94d59c04b..b6b5d3758 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 197 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-644c7608acea9983d97a58a2b89d0f3f6d641c6dba30270e6ed03ea4f9942a90.yml -openapi_spec_hash: a024db2f41e8a801204741e95c4e57fd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-075bbbfbc34a6e34519bb157c21f280d0ba941ce2ddf834eafbbde3dbd3b52b9.yml +openapi_spec_hash: e0f7bef65d2cb1f3332b969254dee00a config_hash: 85850cd9055db4b9e43bcc4aa1a2dcea diff --git a/lib/increase/models/external_account.rb b/lib/increase/models/external_account.rb index 6b0ea6c71..d63756543 100644 --- a/lib/increase/models/external_account.rb +++ b/lib/increase/models/external_account.rb @@ -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. # @@ -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. # @@ -169,25 +161,6 @@ module Type # @!method self.values # @return [Array] 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] - end end end end diff --git a/rbi/increase/models/external_account.rbi b/rbi/increase/models/external_account.rbi index 8da88c588..2f1b4bfdd 100644 --- a/rbi/increase/models/external_account.rbi +++ b/rbi/increase/models/external_account.rbi @@ -52,12 +52,6 @@ module Increase sig { returns(Increase::ExternalAccount::Type::TaggedSymbol) } attr_accessor :type - # If you have verified ownership of the External Account. - sig do - returns(Increase::ExternalAccount::VerificationStatus::TaggedSymbol) - end - attr_accessor :verification_status - # External Accounts represent accounts at financial institutions other than # Increase. You can use this API to store their details for reuse. sig do @@ -71,9 +65,7 @@ module Increase idempotency_key: T.nilable(String), routing_number: String, status: Increase::ExternalAccount::Status::OrSymbol, - type: Increase::ExternalAccount::Type::OrSymbol, - verification_status: - Increase::ExternalAccount::VerificationStatus::OrSymbol + type: Increase::ExternalAccount::Type::OrSymbol ).returns(T.attached_class) end def self.new( @@ -100,9 +92,7 @@ module Increase status:, # A constant representing the object's type. For this resource it will always be # `external_account`. - type:, - # If you have verified ownership of the External Account. - verification_status: + type: ) end @@ -119,9 +109,7 @@ module Increase idempotency_key: T.nilable(String), routing_number: String, status: Increase::ExternalAccount::Status::TaggedSymbol, - type: Increase::ExternalAccount::Type::TaggedSymbol, - verification_status: - Increase::ExternalAccount::VerificationStatus::TaggedSymbol + type: Increase::ExternalAccount::Type::TaggedSymbol } ) end @@ -243,48 +231,6 @@ module Increase def self.values end end - - # If you have verified ownership of the External Account. - module VerificationStatus - extend Increase::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Increase::ExternalAccount::VerificationStatus) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - # The External Account has not been verified. - UNVERIFIED = - T.let( - :unverified, - Increase::ExternalAccount::VerificationStatus::TaggedSymbol - ) - - # The External Account is in the process of being verified. - PENDING = - T.let( - :pending, - Increase::ExternalAccount::VerificationStatus::TaggedSymbol - ) - - # The External Account is verified. - VERIFIED = - T.let( - :verified, - Increase::ExternalAccount::VerificationStatus::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Increase::ExternalAccount::VerificationStatus::TaggedSymbol - ] - ) - end - def self.values - end - end end end end diff --git a/sig/increase/models/external_account.rbs b/sig/increase/models/external_account.rbs index 8e5229159..9edf0d154 100644 --- a/sig/increase/models/external_account.rbs +++ b/sig/increase/models/external_account.rbs @@ -11,8 +11,7 @@ module Increase idempotency_key: String?, routing_number: String, status: Increase::Models::ExternalAccount::status, - type: Increase::Models::ExternalAccount::type_, - verification_status: Increase::Models::ExternalAccount::verification_status + type: Increase::Models::ExternalAccount::type_ } class ExternalAccount < Increase::Internal::Type::BaseModel @@ -36,8 +35,6 @@ module Increase attr_accessor type: Increase::Models::ExternalAccount::type_ - attr_accessor verification_status: Increase::Models::ExternalAccount::verification_status - def initialize: ( id: String, account_holder: Increase::Models::ExternalAccount::account_holder, @@ -48,8 +45,7 @@ module Increase idempotency_key: String?, routing_number: String, status: Increase::Models::ExternalAccount::status, - type: Increase::Models::ExternalAccount::type_, - verification_status: Increase::Models::ExternalAccount::verification_status + type: Increase::Models::ExternalAccount::type_ ) -> void def to_hash: -> { @@ -62,8 +58,7 @@ module Increase idempotency_key: String?, routing_number: String, status: Increase::Models::ExternalAccount::status, - type: Increase::Models::ExternalAccount::type_, - verification_status: Increase::Models::ExternalAccount::verification_status + type: Increase::Models::ExternalAccount::type_ } type account_holder = :business | :individual | :unknown @@ -123,23 +118,6 @@ module Increase def self?.values: -> ::Array[Increase::Models::ExternalAccount::type_] end - - type verification_status = :unverified | :pending | :verified - - 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 - - def self?.values: -> ::Array[Increase::Models::ExternalAccount::verification_status] - end end end end diff --git a/test/increase/resources/external_accounts_test.rb b/test/increase/resources/external_accounts_test.rb index 0232e816e..d1b8db494 100644 --- a/test/increase/resources/external_accounts_test.rb +++ b/test/increase/resources/external_accounts_test.rb @@ -26,8 +26,7 @@ def test_create_required_params idempotency_key: String | nil, routing_number: String, status: Increase::ExternalAccount::Status, - type: Increase::ExternalAccount::Type, - verification_status: Increase::ExternalAccount::VerificationStatus + type: Increase::ExternalAccount::Type } end end @@ -50,8 +49,7 @@ def test_retrieve idempotency_key: String | nil, routing_number: String, status: Increase::ExternalAccount::Status, - type: Increase::ExternalAccount::Type, - verification_status: Increase::ExternalAccount::VerificationStatus + type: Increase::ExternalAccount::Type } end end @@ -74,8 +72,7 @@ def test_update idempotency_key: String | nil, routing_number: String, status: Increase::ExternalAccount::Status, - type: Increase::ExternalAccount::Type, - verification_status: Increase::ExternalAccount::VerificationStatus + type: Increase::ExternalAccount::Type } end end @@ -105,8 +102,7 @@ def test_list idempotency_key: String | nil, routing_number: String, status: Increase::ExternalAccount::Status, - type: Increase::ExternalAccount::Type, - verification_status: Increase::ExternalAccount::VerificationStatus + type: Increase::ExternalAccount::Type } end end From 60085285e33b4259d2c02332ced3b0436ebdae5e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 15:44:13 +0000 Subject: [PATCH 3/6] fix: default content-type for text in multi-part formdata uploads should be text/plain --- lib/increase/internal/util.rb | 17 ++++++++--------- rbi/increase/internal/util.rbi | 2 ++ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/increase/internal/util.rb b/lib/increase/internal/util.rb index bf03a775c..2483579e0 100644 --- a/lib/increase/internal/util.rb +++ b/lib/increase/internal/util.rb @@ -497,7 +497,7 @@ class << self # @param closing [Array] # @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 @@ -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" @@ -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)] diff --git a/rbi/increase/internal/util.rbi b/rbi/increase/internal/util.rbi index 4f89af808..5979a448f 100644 --- a/rbi/increase/internal/util.rbi +++ b/rbi/increase/internal/util.rbi @@ -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 From 901ff949f455288cd8f902e7bcf14b720376e27a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 22:04:52 +0000 Subject: [PATCH 4/6] feat(api): api update --- .stats.yml | 8 +- lib/increase.rb | 2 + lib/increase/models.rb | 4 + ...l_time_payments_transfer_approve_params.rb | 14 ++++ ...al_time_payments_transfer_cancel_params.rb | 14 ++++ .../resources/real_time_payments_transfers.rb | 40 ++++++++++ rbi/increase/models.rbi | 6 ++ ..._time_payments_transfer_approve_params.rbi | 30 ++++++++ ...l_time_payments_transfer_cancel_params.rbi | 30 ++++++++ .../real_time_payments_transfers.rbi | 28 +++++++ sig/increase/models.rbs | 4 + ..._time_payments_transfer_approve_params.rbs | 15 ++++ ...l_time_payments_transfer_cancel_params.rbs | 15 ++++ .../real_time_payments_transfers.rbs | 10 +++ .../real_time_payments_transfers_test.rb | 76 +++++++++++++++++++ 15 files changed, 292 insertions(+), 4 deletions(-) create mode 100644 lib/increase/models/real_time_payments_transfer_approve_params.rb create mode 100644 lib/increase/models/real_time_payments_transfer_cancel_params.rb create mode 100644 rbi/increase/models/real_time_payments_transfer_approve_params.rbi create mode 100644 rbi/increase/models/real_time_payments_transfer_cancel_params.rbi create mode 100644 sig/increase/models/real_time_payments_transfer_approve_params.rbs create mode 100644 sig/increase/models/real_time_payments_transfer_cancel_params.rbs diff --git a/.stats.yml b/.stats.yml index b6b5d3758..51cb36719 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 197 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-075bbbfbc34a6e34519bb157c21f280d0ba941ce2ddf834eafbbde3dbd3b52b9.yml -openapi_spec_hash: e0f7bef65d2cb1f3332b969254dee00a -config_hash: 85850cd9055db4b9e43bcc4aa1a2dcea +configured_endpoints: 199 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-75fe352618195712049f1cde5a80bfab2510a7a1e52f792ab0ca560d9d40a4b9.yml +openapi_spec_hash: c8cc277c248d9527fa442d11ce958132 +config_hash: 0c284b69f3dccb22b24877f61d0d8a9a diff --git a/lib/increase.rb b/lib/increase.rb index c4da7e2ae..958154abb 100644 --- a/lib/increase.rb +++ b/lib/increase.rb @@ -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" diff --git a/lib/increase/models.rb b/lib/increase/models.rb index 63ac94ea1..1da90356a 100644 --- a/lib/increase/models.rb +++ b/lib/increase/models.rb @@ -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 diff --git a/lib/increase/models/real_time_payments_transfer_approve_params.rb b/lib/increase/models/real_time_payments_transfer_approve_params.rb new file mode 100644 index 000000000..8937d88ee --- /dev/null +++ b/lib/increase/models/real_time_payments_transfer_approve_params.rb @@ -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 diff --git a/lib/increase/models/real_time_payments_transfer_cancel_params.rb b/lib/increase/models/real_time_payments_transfer_cancel_params.rb new file mode 100644 index 000000000..b89d72223 --- /dev/null +++ b/lib/increase/models/real_time_payments_transfer_cancel_params.rb @@ -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 diff --git a/lib/increase/resources/real_time_payments_transfers.rb b/lib/increase/resources/real_time_payments_transfers.rb index c56d5dafe..3f9e283eb 100644 --- a/lib/increase/resources/real_time_payments_transfers.rb +++ b/lib/increase/resources/real_time_payments_transfers.rb @@ -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] diff --git a/rbi/increase/models.rbi b/rbi/increase/models.rbi index 04b2668ee..d02c6cf81 100644 --- a/rbi/increase/models.rbi +++ b/rbi/increase/models.rbi @@ -455,6 +455,12 @@ module Increase RealTimePaymentsTransfer = Increase::Models::RealTimePaymentsTransfer + RealTimePaymentsTransferApproveParams = + Increase::Models::RealTimePaymentsTransferApproveParams + + RealTimePaymentsTransferCancelParams = + Increase::Models::RealTimePaymentsTransferCancelParams + RealTimePaymentsTransferCreateParams = Increase::Models::RealTimePaymentsTransferCreateParams diff --git a/rbi/increase/models/real_time_payments_transfer_approve_params.rbi b/rbi/increase/models/real_time_payments_transfer_approve_params.rbi new file mode 100644 index 000000000..e0f9b4706 --- /dev/null +++ b/rbi/increase/models/real_time_payments_transfer_approve_params.rbi @@ -0,0 +1,30 @@ +# typed: strong + +module Increase + module Models + class RealTimePaymentsTransferApproveParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + Increase::RealTimePaymentsTransferApproveParams, + 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 diff --git a/rbi/increase/models/real_time_payments_transfer_cancel_params.rbi b/rbi/increase/models/real_time_payments_transfer_cancel_params.rbi new file mode 100644 index 000000000..baeb5fa1b --- /dev/null +++ b/rbi/increase/models/real_time_payments_transfer_cancel_params.rbi @@ -0,0 +1,30 @@ +# typed: strong + +module Increase + module Models + class RealTimePaymentsTransferCancelParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + Increase::RealTimePaymentsTransferCancelParams, + 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 diff --git a/rbi/increase/resources/real_time_payments_transfers.rbi b/rbi/increase/resources/real_time_payments_transfers.rbi index feeb7d5cf..ce5ed3ac3 100644 --- a/rbi/increase/resources/real_time_payments_transfers.rbi +++ b/rbi/increase/resources/real_time_payments_transfers.rbi @@ -104,6 +104,34 @@ module Increase ) end + # Approves an Real-Time Payments Transfer in a pending_approval state. + sig do + params( + real_time_payments_transfer_id: String, + request_options: Increase::RequestOptions::OrHash + ).returns(Increase::RealTimePaymentsTransfer) + end + def approve( + # The identifier of the Real-Time Payments Transfer to approve. + real_time_payments_transfer_id, + request_options: {} + ) + end + + # Cancels an Real-Time Payments Transfer in a pending_approval state. + sig do + params( + real_time_payments_transfer_id: String, + request_options: Increase::RequestOptions::OrHash + ).returns(Increase::RealTimePaymentsTransfer) + end + def cancel( + # The identifier of the pending Real-Time Payments Transfer to cancel. + real_time_payments_transfer_id, + request_options: {} + ) + end + # @api private sig { params(client: Increase::Client).returns(T.attached_class) } def self.new(client:) diff --git a/sig/increase/models.rbs b/sig/increase/models.rbs index 021c216a8..6fb202175 100644 --- a/sig/increase/models.rbs +++ b/sig/increase/models.rbs @@ -391,6 +391,10 @@ module Increase class RealTimePaymentsTransfer = Increase::Models::RealTimePaymentsTransfer + class RealTimePaymentsTransferApproveParams = Increase::Models::RealTimePaymentsTransferApproveParams + + class RealTimePaymentsTransferCancelParams = Increase::Models::RealTimePaymentsTransferCancelParams + class RealTimePaymentsTransferCreateParams = Increase::Models::RealTimePaymentsTransferCreateParams class RealTimePaymentsTransferListParams = Increase::Models::RealTimePaymentsTransferListParams diff --git a/sig/increase/models/real_time_payments_transfer_approve_params.rbs b/sig/increase/models/real_time_payments_transfer_approve_params.rbs new file mode 100644 index 000000000..434ffb10a --- /dev/null +++ b/sig/increase/models/real_time_payments_transfer_approve_params.rbs @@ -0,0 +1,15 @@ +module Increase + module Models + type real_time_payments_transfer_approve_params = + { } & Increase::Internal::Type::request_parameters + + class RealTimePaymentsTransferApproveParams < 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 diff --git a/sig/increase/models/real_time_payments_transfer_cancel_params.rbs b/sig/increase/models/real_time_payments_transfer_cancel_params.rbs new file mode 100644 index 000000000..9c113a916 --- /dev/null +++ b/sig/increase/models/real_time_payments_transfer_cancel_params.rbs @@ -0,0 +1,15 @@ +module Increase + module Models + type real_time_payments_transfer_cancel_params = + { } & Increase::Internal::Type::request_parameters + + class RealTimePaymentsTransferCancelParams < 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 diff --git a/sig/increase/resources/real_time_payments_transfers.rbs b/sig/increase/resources/real_time_payments_transfers.rbs index a7ff7ae5c..ca6e6085f 100644 --- a/sig/increase/resources/real_time_payments_transfers.rbs +++ b/sig/increase/resources/real_time_payments_transfers.rbs @@ -32,6 +32,16 @@ module Increase ?request_options: Increase::request_opts ) -> Increase::Internal::Page[Increase::RealTimePaymentsTransfer] + def approve: ( + String real_time_payments_transfer_id, + ?request_options: Increase::request_opts + ) -> Increase::RealTimePaymentsTransfer + + def cancel: ( + String real_time_payments_transfer_id, + ?request_options: Increase::request_opts + ) -> Increase::RealTimePaymentsTransfer + def initialize: (client: Increase::Client) -> void end end diff --git a/test/increase/resources/real_time_payments_transfers_test.rb b/test/increase/resources/real_time_payments_transfers_test.rb index f1f0102b3..fc1e91aa0 100644 --- a/test/increase/resources/real_time_payments_transfers_test.rb +++ b/test/increase/resources/real_time_payments_transfers_test.rb @@ -129,4 +129,80 @@ def test_list } end end + + def test_approve + response = @increase.real_time_payments_transfers.approve("real_time_payments_transfer_id") + + assert_pattern do + response => Increase::RealTimePaymentsTransfer + end + + assert_pattern do + response => { + id: String, + account_id: String, + acknowledgement: Increase::RealTimePaymentsTransfer::Acknowledgement | nil, + amount: Integer, + approval: Increase::RealTimePaymentsTransfer::Approval | nil, + cancellation: Increase::RealTimePaymentsTransfer::Cancellation | nil, + created_at: Time, + created_by: Increase::RealTimePaymentsTransfer::CreatedBy | nil, + creditor_name: String, + currency: Increase::RealTimePaymentsTransfer::Currency, + debtor_name: String | nil, + destination_account_number: String, + destination_routing_number: String, + external_account_id: String | nil, + idempotency_key: String | nil, + pending_transaction_id: String | nil, + rejection: Increase::RealTimePaymentsTransfer::Rejection | nil, + remittance_information: String, + source_account_number_id: String, + status: Increase::RealTimePaymentsTransfer::Status, + submission: Increase::RealTimePaymentsTransfer::Submission | nil, + transaction_id: String | nil, + type: Increase::RealTimePaymentsTransfer::Type, + ultimate_creditor_name: String | nil, + ultimate_debtor_name: String | nil + } + end + end + + def test_cancel + response = @increase.real_time_payments_transfers.cancel("real_time_payments_transfer_id") + + assert_pattern do + response => Increase::RealTimePaymentsTransfer + end + + assert_pattern do + response => { + id: String, + account_id: String, + acknowledgement: Increase::RealTimePaymentsTransfer::Acknowledgement | nil, + amount: Integer, + approval: Increase::RealTimePaymentsTransfer::Approval | nil, + cancellation: Increase::RealTimePaymentsTransfer::Cancellation | nil, + created_at: Time, + created_by: Increase::RealTimePaymentsTransfer::CreatedBy | nil, + creditor_name: String, + currency: Increase::RealTimePaymentsTransfer::Currency, + debtor_name: String | nil, + destination_account_number: String, + destination_routing_number: String, + external_account_id: String | nil, + idempotency_key: String | nil, + pending_transaction_id: String | nil, + rejection: Increase::RealTimePaymentsTransfer::Rejection | nil, + remittance_information: String, + source_account_number_id: String, + status: Increase::RealTimePaymentsTransfer::Status, + submission: Increase::RealTimePaymentsTransfer::Submission | nil, + transaction_id: String | nil, + type: Increase::RealTimePaymentsTransfer::Type, + ultimate_creditor_name: String | nil, + ultimate_debtor_name: String | nil + } + end + end end From 381598ee6a15e75c4a33a1f27b4e5930f4f9e744 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 8 Jun 2025 01:51:52 +0000 Subject: [PATCH 5/6] feat(api): api update --- .stats.yml | 4 +- lib/increase/models/pending_transaction.rb | 31 ++++++++- .../models/pending_transaction_list_params.rb | 3 + rbi/increase/models/pending_transaction.rbi | 64 +++++++++++++++++++ .../pending_transaction_list_params.rbi | 7 ++ sig/increase/models/pending_transaction.rbs | 19 ++++++ .../pending_transaction_list_params.rbs | 4 ++ 7 files changed, 129 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index 51cb36719..bccf31fb0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 199 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-75fe352618195712049f1cde5a80bfab2510a7a1e52f792ab0ca560d9d40a4b9.yml -openapi_spec_hash: c8cc277c248d9527fa442d11ce958132 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-0ecd4933d3a1f2e6363dc40b619d296a033732ec245018effd3e5f687f60bb04.yml +openapi_spec_hash: 41f0a23615d13ed80758208130da6abd config_hash: 0c284b69f3dccb22b24877f61d0d8a9a diff --git a/lib/increase/models/pending_transaction.rb b/lib/increase/models/pending_transaction.rb index f56d24023..50c5e8786 100644 --- a/lib/increase/models/pending_transaction.rb +++ b/lib/increase/models/pending_transaction.rb @@ -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 @@ -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. # @@ -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 @@ -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 @@ -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 diff --git a/lib/increase/models/pending_transaction_list_params.rb b/lib/increase/models/pending_transaction_list_params.rb index 3b6d127a9..3eea6ac1d 100644 --- a/lib/increase/models/pending_transaction_list_params.rb +++ b/lib/increase/models/pending_transaction_list_params.rb @@ -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 diff --git a/rbi/increase/models/pending_transaction.rbi b/rbi/increase/models/pending_transaction.rbi index 5cd260220..bf2e6d518 100644 --- a/rbi/increase/models/pending_transaction.rbi +++ b/rbi/increase/models/pending_transaction.rbi @@ -348,6 +348,25 @@ module Increase end attr_writer :check_transfer_instruction + # 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`. + sig do + returns( + T.nilable(Increase::PendingTransaction::Source::GroupInitiatedHold) + ) + end + attr_reader :group_initiated_hold + + sig do + params( + group_initiated_hold: + T.nilable( + Increase::PendingTransaction::Source::GroupInitiatedHold::OrHash + ) + ).void + end + attr_writer :group_initiated_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 # certain transaction types to account for return windows where funds might still @@ -509,6 +528,10 @@ module Increase T.nilable( Increase::PendingTransaction::Source::CheckTransferInstruction::OrHash ), + group_initiated_hold: + T.nilable( + Increase::PendingTransaction::Source::GroupInitiatedHold::OrHash + ), inbound_funds_hold: T.nilable( Increase::PendingTransaction::Source::InboundFundsHold::OrHash @@ -557,6 +580,9 @@ module Increase # A Check Transfer Instruction object. This field will be present in the JSON # response if and only if `category` is equal to `check_transfer_instruction`. check_transfer_instruction:, + # 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`. + group_initiated_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 # certain transaction types to account for return windows where funds might still @@ -612,6 +638,10 @@ module Increase T.nilable( Increase::PendingTransaction::Source::CheckTransferInstruction ), + group_initiated_hold: + T.nilable( + Increase::PendingTransaction::Source::GroupInitiatedHold + ), inbound_funds_hold: T.nilable( Increase::PendingTransaction::Source::InboundFundsHold @@ -2288,6 +2318,13 @@ module Increase Increase::PendingTransaction::Source::Category::TaggedSymbol ) + # Group Initiated Hold Source: details will be under the `group_initiated_hold` object. + GROUP_INITIATED_HOLD = + T.let( + :group_initiated_hold, + Increase::PendingTransaction::Source::Category::TaggedSymbol + ) + # Real-Time Payments Transfer Instruction: details will be under the `real_time_payments_transfer_instruction` object. REAL_TIME_PAYMENTS_TRANSFER_INSTRUCTION = T.let( @@ -2617,6 +2654,33 @@ module Increase end end + class GroupInitiatedHold < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::PendingTransaction::Source::GroupInitiatedHold, + Increase::Internal::AnyHash + ) + end + + # The Group Initiated Hold identifier. + sig { returns(String) } + attr_accessor :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`. + sig { params(id: String).returns(T.attached_class) } + def self.new( + # The Group Initiated Hold identifier. + id: + ) + end + + sig { override.returns({ id: String }) } + def to_hash + end + end + class InboundFundsHold < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/pending_transaction_list_params.rbi b/rbi/increase/models/pending_transaction_list_params.rbi index e27686bb9..439f72adf 100644 --- a/rbi/increase/models/pending_transaction_list_params.rbi +++ b/rbi/increase/models/pending_transaction_list_params.rbi @@ -237,6 +237,13 @@ module Increase Increase::PendingTransactionListParams::Category::In::TaggedSymbol ) + # Group Initiated Hold Source: details will be under the `group_initiated_hold` object. + GROUP_INITIATED_HOLD = + T.let( + :group_initiated_hold, + Increase::PendingTransactionListParams::Category::In::TaggedSymbol + ) + # Real-Time Payments Transfer Instruction: details will be under the `real_time_payments_transfer_instruction` object. REAL_TIME_PAYMENTS_TRANSFER_INSTRUCTION = T.let( diff --git a/sig/increase/models/pending_transaction.rbs b/sig/increase/models/pending_transaction.rbs index c832dc5de..7fcb4ee41 100644 --- a/sig/increase/models/pending_transaction.rbs +++ b/sig/increase/models/pending_transaction.rbs @@ -122,6 +122,7 @@ module Increase category: Increase::Models::PendingTransaction::Source::category, check_deposit_instruction: Increase::PendingTransaction::Source::CheckDepositInstruction?, check_transfer_instruction: Increase::PendingTransaction::Source::CheckTransferInstruction?, + group_initiated_hold: Increase::PendingTransaction::Source::GroupInitiatedHold?, inbound_funds_hold: Increase::PendingTransaction::Source::InboundFundsHold?, inbound_wire_transfer_reversal: Increase::PendingTransaction::Source::InboundWireTransferReversal?, other: top?, @@ -144,6 +145,8 @@ module Increase attr_accessor check_transfer_instruction: Increase::PendingTransaction::Source::CheckTransferInstruction? + attr_accessor group_initiated_hold: Increase::PendingTransaction::Source::GroupInitiatedHold? + attr_accessor inbound_funds_hold: Increase::PendingTransaction::Source::InboundFundsHold? attr_accessor inbound_wire_transfer_reversal: Increase::PendingTransaction::Source::InboundWireTransferReversal? @@ -165,6 +168,7 @@ module Increase category: Increase::Models::PendingTransaction::Source::category, check_deposit_instruction: Increase::PendingTransaction::Source::CheckDepositInstruction?, check_transfer_instruction: Increase::PendingTransaction::Source::CheckTransferInstruction?, + group_initiated_hold: Increase::PendingTransaction::Source::GroupInitiatedHold?, inbound_funds_hold: Increase::PendingTransaction::Source::InboundFundsHold?, inbound_wire_transfer_reversal: Increase::PendingTransaction::Source::InboundWireTransferReversal?, other: top?, @@ -181,6 +185,7 @@ module Increase category: Increase::Models::PendingTransaction::Source::category, check_deposit_instruction: Increase::PendingTransaction::Source::CheckDepositInstruction?, check_transfer_instruction: Increase::PendingTransaction::Source::CheckTransferInstruction?, + group_initiated_hold: Increase::PendingTransaction::Source::GroupInitiatedHold?, inbound_funds_hold: Increase::PendingTransaction::Source::InboundFundsHold?, inbound_wire_transfer_reversal: Increase::PendingTransaction::Source::InboundWireTransferReversal?, other: top?, @@ -848,6 +853,7 @@ module Increase | :check_deposit_instruction | :check_transfer_instruction | :inbound_funds_hold + | :group_initiated_hold | :real_time_payments_transfer_instruction | :wire_transfer_instruction | :inbound_wire_transfer_reversal @@ -876,6 +882,9 @@ module Increase # 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 @@ -1013,6 +1022,16 @@ module Increase end end + type group_initiated_hold = { id: String } + + class GroupInitiatedHold < Increase::Internal::Type::BaseModel + attr_accessor id: String + + def initialize: (id: String) -> void + + def to_hash: -> { id: String } + end + type inbound_funds_hold = { id: String, diff --git a/sig/increase/models/pending_transaction_list_params.rbs b/sig/increase/models/pending_transaction_list_params.rbs index 0cb0a7ded..863294366 100644 --- a/sig/increase/models/pending_transaction_list_params.rbs +++ b/sig/increase/models/pending_transaction_list_params.rbs @@ -99,6 +99,7 @@ module Increase | :check_deposit_instruction | :check_transfer_instruction | :inbound_funds_hold + | :group_initiated_hold | :real_time_payments_transfer_instruction | :wire_transfer_instruction | :inbound_wire_transfer_reversal @@ -127,6 +128,9 @@ module Increase # 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 From 9a4ab887bbff836c82fe5de98f52f56df70c16d0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 8 Jun 2025 01:52:10 +0000 Subject: [PATCH 6/6] release: 0.1.0-alpha.31 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 22 ++++++++++++++++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/increase/version.rb | 2 +- 5 files changed, 26 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 52b3e8341..a899ac74f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.30" + ".": "0.1.0-alpha.31" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index be1eb40ee..fdb1e85b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Gemfile.lock b/Gemfile.lock index b5d9da092..4dcd41d2a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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 diff --git a/README.md b/README.md index d3963193c..5bcac58df 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "increase", "~> 0.1.0.pre.alpha.30" +gem "increase", "~> 0.1.0.pre.alpha.31" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 672b61ec1..4717ab147 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -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