From bdce0ebe7749fa2f49c308a08953544842da41cb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 27 Aug 2025 22:10:34 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- lib/increase/models/account.rb | 3 +- lib/increase/models/transaction.rb | 53 ++++++++++- .../models/transaction_list_params.rb | 3 + rbi/increase/models/account.rbi | 6 +- rbi/increase/models/transaction.rbi | 94 +++++++++++++++++++ .../models/transaction_list_params.rbi | 7 ++ sig/increase/models/transaction.rbs | 36 +++++++ .../models/transaction_list_params.rbs | 4 + 9 files changed, 204 insertions(+), 6 deletions(-) diff --git a/.stats.yml b/.stats.yml index cb84ec279..c5bae0923 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 216 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a98d22578526265c9d1ef5ee69db277ab4e3548d5f12ab740eabc7babd33ba1c.yml -openapi_spec_hash: eefa018725a526a04f4fda690fedf0ec +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-1c5db818b8692ac57a83f3785c2f0a1d1ea95b9ed35fd4632619947448c22526.yml +openapi_spec_hash: 0b2954fbe726a422219f22f5cddda6d6 config_hash: 632b628b59d8f0b717153b3d8133f6cb diff --git a/lib/increase/models/account.rb b/lib/increase/models/account.rb index 4cf2ffd70..efd708883 100644 --- a/lib/increase/models/account.rb +++ b/lib/increase/models/account.rb @@ -13,7 +13,8 @@ class Account < Increase::Internal::Type::BaseModel # @!attribute account_revenue_rate # The account revenue rate currently being earned on the account, as a string # containing a decimal number. For example, a 1% account revenue rate would be - # represented as "0.01". + # represented as "0.01". Account revenue is a type of non-interest income accrued + # on the account. # # @return [String, nil] required :account_revenue_rate, String, nil?: true diff --git a/lib/increase/models/transaction.rb b/lib/increase/models/transaction.rb index dc9d2c669..60bf22097 100644 --- a/lib/increase/models/transaction.rb +++ b/lib/increase/models/transaction.rb @@ -154,6 +154,19 @@ module RouteType # @see Increase::Models::Transaction#source class Source < Increase::Internal::Type::BaseModel + # @!attribute account_revenue_payment + # An Account Revenue Payment object. This field will be present in the JSON + # response if and only if `category` is equal to `account_revenue_payment`. A + # Account Revenue Payment represents a payment made to an account from the bank. + # Account revenue is a type of non-interest income. + # + # @return [Increase::Models::Transaction::Source::AccountRevenuePayment, nil] + required :account_revenue_payment, + -> { + Increase::Transaction::Source::AccountRevenuePayment + }, + nil?: true + # @!attribute account_transfer_intention # An Account Transfer Intention object. This field will be present in the JSON # response if and only if `category` is equal to `account_transfer_intention`. Two @@ -494,7 +507,7 @@ class Source < Increase::Internal::Type::BaseModel }, nil?: true - # @!method initialize(account_transfer_intention:, ach_transfer_intention:, ach_transfer_rejection:, ach_transfer_return:, card_dispute_acceptance:, card_dispute_financial:, card_dispute_loss:, card_push_transfer_acceptance:, card_refund:, card_revenue_payment:, card_settlement:, cashback_payment:, category:, check_deposit_acceptance:, check_deposit_return:, check_transfer_deposit:, fee_payment:, inbound_ach_transfer:, inbound_ach_transfer_return_intention:, inbound_check_adjustment:, inbound_check_deposit_return_intention:, inbound_real_time_payments_transfer_confirmation:, inbound_wire_reversal:, inbound_wire_transfer:, inbound_wire_transfer_reversal:, interest_payment:, internal_source:, other:, real_time_payments_transfer_acknowledgement:, sample_funds:, swift_transfer_intention:, swift_transfer_return:, wire_transfer_intention:) + # @!method initialize(account_revenue_payment:, account_transfer_intention:, ach_transfer_intention:, ach_transfer_rejection:, ach_transfer_return:, card_dispute_acceptance:, card_dispute_financial:, card_dispute_loss:, card_push_transfer_acceptance:, card_refund:, card_revenue_payment:, card_settlement:, cashback_payment:, category:, check_deposit_acceptance:, check_deposit_return:, check_transfer_deposit:, fee_payment:, inbound_ach_transfer:, inbound_ach_transfer_return_intention:, inbound_check_adjustment:, inbound_check_deposit_return_intention:, inbound_real_time_payments_transfer_confirmation:, inbound_wire_reversal:, inbound_wire_transfer:, inbound_wire_transfer_reversal:, interest_payment:, internal_source:, other:, real_time_payments_transfer_acknowledgement:, sample_funds:, swift_transfer_intention:, swift_transfer_return:, wire_transfer_intention:) # Some parameter documentations has been truncated, see # {Increase::Models::Transaction::Source} for more details. # @@ -503,6 +516,8 @@ class Source < Increase::Internal::Type::BaseModel # undocumented keys may appear in this object. These should be treated as # deprecated and will be removed in the future. # + # @param account_revenue_payment [Increase::Models::Transaction::Source::AccountRevenuePayment, nil] An Account Revenue Payment object. This field will be present in the JSON respon + # # @param account_transfer_intention [Increase::Models::Transaction::Source::AccountTransferIntention, nil] An Account Transfer Intention object. This field will be present in the JSON res # # @param ach_transfer_intention [Increase::Models::Transaction::Source::ACHTransferIntention, nil] An ACH Transfer Intention object. This field will be present in the JSON respons @@ -569,6 +584,39 @@ class Source < Increase::Internal::Type::BaseModel # # @param wire_transfer_intention [Increase::Models::Transaction::Source::WireTransferIntention, nil] A Wire Transfer Intention object. This field will be present in the JSON respons + # @see Increase::Models::Transaction::Source#account_revenue_payment + class AccountRevenuePayment < Increase::Internal::Type::BaseModel + # @!attribute accrued_on_account_id + # The account on which the account revenue was accrued. + # + # @return [String] + required :accrued_on_account_id, String + + # @!attribute period_end + # The end of the period for which this transaction paid account revenue. + # + # @return [Time] + required :period_end, Time + + # @!attribute period_start + # The start of the period for which this transaction paid account revenue. + # + # @return [Time] + required :period_start, Time + + # @!method initialize(accrued_on_account_id:, period_end:, period_start:) + # An Account Revenue Payment object. This field will be present in the JSON + # response if and only if `category` is equal to `account_revenue_payment`. A + # Account Revenue Payment represents a payment made to an account from the bank. + # Account revenue is a type of non-interest income. + # + # @param accrued_on_account_id [String] The account on which the account revenue was accrued. + # + # @param period_end [Time] The end of the period for which this transaction paid account revenue. + # + # @param period_start [Time] The start of the period for which this transaction paid account revenue. + end + # @see Increase::Models::Transaction::Source#account_transfer_intention class AccountTransferIntention < Increase::Internal::Type::BaseModel # @!attribute amount @@ -4253,6 +4301,9 @@ module Category # Card Push Transfer Acceptance: details will be under the `card_push_transfer_acceptance` object. CARD_PUSH_TRANSFER_ACCEPTANCE = :card_push_transfer_acceptance + # Account Revenue Payment: details will be under the `account_revenue_payment` object. + ACCOUNT_REVENUE_PAYMENT = :account_revenue_payment + # The Transaction was made for an undocumented or deprecated reason. OTHER = :other diff --git a/lib/increase/models/transaction_list_params.rb b/lib/increase/models/transaction_list_params.rb index 16b1e0b52..6ac3feb08 100644 --- a/lib/increase/models/transaction_list_params.rb +++ b/lib/increase/models/transaction_list_params.rb @@ -175,6 +175,9 @@ module In # Card Push Transfer Acceptance: details will be under the `card_push_transfer_acceptance` object. CARD_PUSH_TRANSFER_ACCEPTANCE = :card_push_transfer_acceptance + # Account Revenue Payment: details will be under the `account_revenue_payment` object. + ACCOUNT_REVENUE_PAYMENT = :account_revenue_payment + # The Transaction was made for an undocumented or deprecated reason. OTHER = :other diff --git a/rbi/increase/models/account.rbi b/rbi/increase/models/account.rbi index 4e5dc437b..d8cad8e15 100644 --- a/rbi/increase/models/account.rbi +++ b/rbi/increase/models/account.rbi @@ -12,7 +12,8 @@ module Increase # The account revenue rate currently being earned on the account, as a string # containing a decimal number. For example, a 1% account revenue rate would be - # represented as "0.01". + # represented as "0.01". Account revenue is a type of non-interest income accrued + # on the account. sig { returns(T.nilable(String)) } attr_accessor :account_revenue_rate @@ -111,7 +112,8 @@ module Increase id:, # The account revenue rate currently being earned on the account, as a string # containing a decimal number. For example, a 1% account revenue rate would be - # represented as "0.01". + # represented as "0.01". Account revenue is a type of non-interest income accrued + # on the account. account_revenue_rate:, # The bank the Account is with. bank:, diff --git a/rbi/increase/models/transaction.rbi b/rbi/increase/models/transaction.rbi index cf0a9fb75..27fe5f6e3 100644 --- a/rbi/increase/models/transaction.rbi +++ b/rbi/increase/models/transaction.rbi @@ -205,6 +205,27 @@ module Increase T.any(Increase::Transaction::Source, Increase::Internal::AnyHash) end + # An Account Revenue Payment object. This field will be present in the JSON + # response if and only if `category` is equal to `account_revenue_payment`. A + # Account Revenue Payment represents a payment made to an account from the bank. + # Account revenue is a type of non-interest income. + sig do + returns( + T.nilable(Increase::Transaction::Source::AccountRevenuePayment) + ) + end + attr_reader :account_revenue_payment + + sig do + params( + account_revenue_payment: + T.nilable( + Increase::Transaction::Source::AccountRevenuePayment::OrHash + ) + ).void + end + attr_writer :account_revenue_payment + # An Account Transfer Intention object. This field will be present in the JSON # response if and only if `category` is equal to `account_transfer_intention`. Two # Account Transfer Intentions are created from each Account Transfer. One @@ -833,6 +854,10 @@ module Increase # deprecated and will be removed in the future. sig do params( + account_revenue_payment: + T.nilable( + Increase::Transaction::Source::AccountRevenuePayment::OrHash + ), account_transfer_intention: T.nilable( Increase::Transaction::Source::AccountTransferIntention::OrHash @@ -946,6 +971,11 @@ module Increase ).returns(T.attached_class) end def self.new( + # An Account Revenue Payment object. This field will be present in the JSON + # response if and only if `category` is equal to `account_revenue_payment`. A + # Account Revenue Payment represents a payment made to an account from the bank. + # Account revenue is a type of non-interest income. + account_revenue_payment:, # An Account Transfer Intention object. This field will be present in the JSON # response if and only if `category` is equal to `account_transfer_intention`. Two # Account Transfer Intentions are created from each Account Transfer. One @@ -1116,6 +1146,8 @@ module Increase sig do override.returns( { + account_revenue_payment: + T.nilable(Increase::Transaction::Source::AccountRevenuePayment), account_transfer_intention: T.nilable( Increase::Transaction::Source::AccountTransferIntention @@ -1204,6 +1236,61 @@ module Increase def to_hash end + class AccountRevenuePayment < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::Transaction::Source::AccountRevenuePayment, + Increase::Internal::AnyHash + ) + end + + # The account on which the account revenue was accrued. + sig { returns(String) } + attr_accessor :accrued_on_account_id + + # The end of the period for which this transaction paid account revenue. + sig { returns(Time) } + attr_accessor :period_end + + # The start of the period for which this transaction paid account revenue. + sig { returns(Time) } + attr_accessor :period_start + + # An Account Revenue Payment object. This field will be present in the JSON + # response if and only if `category` is equal to `account_revenue_payment`. A + # Account Revenue Payment represents a payment made to an account from the bank. + # Account revenue is a type of non-interest income. + sig do + params( + accrued_on_account_id: String, + period_end: Time, + period_start: Time + ).returns(T.attached_class) + end + def self.new( + # The account on which the account revenue was accrued. + accrued_on_account_id:, + # The end of the period for which this transaction paid account revenue. + period_end:, + # The start of the period for which this transaction paid account revenue. + period_start: + ) + end + + sig do + override.returns( + { + accrued_on_account_id: String, + period_end: Time, + period_start: Time + } + ) + end + def to_hash + end + end + class AccountTransferIntention < Increase::Internal::Type::BaseModel OrHash = T.type_alias do @@ -7929,6 +8016,13 @@ module Increase Increase::Transaction::Source::Category::TaggedSymbol ) + # Account Revenue Payment: details will be under the `account_revenue_payment` object. + ACCOUNT_REVENUE_PAYMENT = + T.let( + :account_revenue_payment, + Increase::Transaction::Source::Category::TaggedSymbol + ) + # The Transaction was made for an undocumented or deprecated reason. OTHER = T.let(:other, Increase::Transaction::Source::Category::TaggedSymbol) diff --git a/rbi/increase/models/transaction_list_params.rbi b/rbi/increase/models/transaction_list_params.rbi index b7d7f9c90..6bcf01565 100644 --- a/rbi/increase/models/transaction_list_params.rbi +++ b/rbi/increase/models/transaction_list_params.rbi @@ -383,6 +383,13 @@ module Increase Increase::TransactionListParams::Category::In::TaggedSymbol ) + # Account Revenue Payment: details will be under the `account_revenue_payment` object. + ACCOUNT_REVENUE_PAYMENT = + T.let( + :account_revenue_payment, + Increase::TransactionListParams::Category::In::TaggedSymbol + ) + # The Transaction was made for an undocumented or deprecated reason. OTHER = T.let( diff --git a/sig/increase/models/transaction.rbs b/sig/increase/models/transaction.rbs index 50343e21d..fafbf4e94 100644 --- a/sig/increase/models/transaction.rbs +++ b/sig/increase/models/transaction.rbs @@ -106,6 +106,7 @@ module Increase type source = { + account_revenue_payment: Increase::Transaction::Source::AccountRevenuePayment?, account_transfer_intention: Increase::Transaction::Source::AccountTransferIntention?, ach_transfer_intention: Increase::Transaction::Source::ACHTransferIntention?, ach_transfer_rejection: Increase::Transaction::Source::ACHTransferRejection?, @@ -142,6 +143,8 @@ module Increase } class Source < Increase::Internal::Type::BaseModel + attr_accessor account_revenue_payment: Increase::Transaction::Source::AccountRevenuePayment? + attr_accessor account_transfer_intention: Increase::Transaction::Source::AccountTransferIntention? attr_accessor ach_transfer_intention: Increase::Transaction::Source::ACHTransferIntention? @@ -209,6 +212,7 @@ module Increase attr_accessor wire_transfer_intention: Increase::Transaction::Source::WireTransferIntention? def initialize: ( + account_revenue_payment: Increase::Transaction::Source::AccountRevenuePayment?, account_transfer_intention: Increase::Transaction::Source::AccountTransferIntention?, ach_transfer_intention: Increase::Transaction::Source::ACHTransferIntention?, ach_transfer_rejection: Increase::Transaction::Source::ACHTransferRejection?, @@ -245,6 +249,7 @@ module Increase ) -> void def to_hash: -> { + account_revenue_payment: Increase::Transaction::Source::AccountRevenuePayment?, account_transfer_intention: Increase::Transaction::Source::AccountTransferIntention?, ach_transfer_intention: Increase::Transaction::Source::ACHTransferIntention?, ach_transfer_rejection: Increase::Transaction::Source::ACHTransferRejection?, @@ -280,6 +285,33 @@ module Increase wire_transfer_intention: Increase::Transaction::Source::WireTransferIntention? } + type account_revenue_payment = + { + accrued_on_account_id: String, + period_end: Time, + period_start: Time + } + + class AccountRevenuePayment < Increase::Internal::Type::BaseModel + attr_accessor accrued_on_account_id: String + + attr_accessor period_end: Time + + attr_accessor period_start: Time + + def initialize: ( + accrued_on_account_id: String, + period_end: Time, + period_start: Time + ) -> void + + def to_hash: -> { + accrued_on_account_id: String, + period_end: Time, + period_start: Time + } + end + type account_transfer_intention = { amount: Integer, @@ -3130,6 +3162,7 @@ module Increase | :swift_transfer_intention | :swift_transfer_return | :card_push_transfer_acceptance + | :account_revenue_payment | :other module Category @@ -3228,6 +3261,9 @@ module Increase # Card Push Transfer Acceptance: details will be under the `card_push_transfer_acceptance` object. CARD_PUSH_TRANSFER_ACCEPTANCE: :card_push_transfer_acceptance + # Account Revenue Payment: details will be under the `account_revenue_payment` object. + ACCOUNT_REVENUE_PAYMENT: :account_revenue_payment + # The Transaction was made for an undocumented or deprecated reason. OTHER: :other diff --git a/sig/increase/models/transaction_list_params.rbs b/sig/increase/models/transaction_list_params.rbs index fca9a5113..93a810911 100644 --- a/sig/increase/models/transaction_list_params.rbs +++ b/sig/increase/models/transaction_list_params.rbs @@ -113,6 +113,7 @@ module Increase | :swift_transfer_intention | :swift_transfer_return | :card_push_transfer_acceptance + | :account_revenue_payment | :other module In @@ -211,6 +212,9 @@ module Increase # Card Push Transfer Acceptance: details will be under the `card_push_transfer_acceptance` object. CARD_PUSH_TRANSFER_ACCEPTANCE: :card_push_transfer_acceptance + # Account Revenue Payment: details will be under the `account_revenue_payment` object. + ACCOUNT_REVENUE_PAYMENT: :account_revenue_payment + # The Transaction was made for an undocumented or deprecated reason. OTHER: :other From f8bff74d41c2e33b3c66159fd7d907eb5841e192 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 27 Aug 2025 22:10:56 +0000 Subject: [PATCH 2/2] release: 1.55.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/increase/version.rb | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 7e66027ec..061f355bf 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.54.0" + ".": "1.55.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 68c83c9cb..2ebb63bd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.55.0 (2025-08-27) + +Full Changelog: [v1.54.0...v1.55.0](https://github.com/Increase/increase-ruby/compare/v1.54.0...v1.55.0) + +### Features + +* **api:** api update ([bdce0eb](https://github.com/Increase/increase-ruby/commit/bdce0ebe7749fa2f49c308a08953544842da41cb)) + ## 1.54.0 (2025-08-27) Full Changelog: [v1.53.0...v1.54.0](https://github.com/Increase/increase-ruby/compare/v1.53.0...v1.54.0) diff --git a/Gemfile.lock b/Gemfile.lock index 6095ea856..3fbd5ea4b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.54.0) + increase (1.55.0) connection_pool GEM diff --git a/README.md b/README.md index 634414849..58a52a7e9 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", "~> 1.54.0" +gem "increase", "~> 1.55.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 38ae63d4f..4f84ddab0 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.54.0" + VERSION = "1.55.0" end