From 80839936c4b528bb4c1070c5382196cba2206ad3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Dec 2025 22:36:50 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 8 +- lib/increase.rb | 2 + lib/increase/models/export.rb | 8 +- lib/increase/models/export_create_params.rb | 62 ++++++++- .../simulations/export_create_params.rb | 24 ++++ lib/increase/resources/exports.rb | 6 +- lib/increase/resources/simulations.rb | 4 + lib/increase/resources/simulations/exports.rb | 38 ++++++ rbi/increase/models/export.rbi | 8 +- rbi/increase/models/export_create_params.rbi | 129 ++++++++++++++++++ .../simulations/export_create_params.rbi | 45 ++++++ rbi/increase/resources/exports.rbi | 10 ++ rbi/increase/resources/simulations.rbi | 3 + .../resources/simulations/exports.rbi | 28 ++++ sig/increase/models/export_create_params.rbs | 51 +++++++ .../simulations/export_create_params.rbs | 25 ++++ sig/increase/resources/exports.rbs | 2 + sig/increase/resources/simulations.rbs | 2 + .../resources/simulations/exports.rbs | 14 ++ .../resources/simulations/exports_test.rb | 26 ++++ 20 files changed, 481 insertions(+), 14 deletions(-) create mode 100644 lib/increase/models/simulations/export_create_params.rb create mode 100644 lib/increase/resources/simulations/exports.rb create mode 100644 rbi/increase/models/simulations/export_create_params.rbi create mode 100644 rbi/increase/resources/simulations/exports.rbi create mode 100644 sig/increase/models/simulations/export_create_params.rbs create mode 100644 sig/increase/resources/simulations/exports.rbs create mode 100644 test/increase/resources/simulations/exports_test.rb diff --git a/.stats.yml b/.stats.yml index e5b11df2..bc6173cc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 230 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-acaa7510acabd57dfdde78063277cef0c611dd42abd998e5f1f851c4655e8fd0.yml -openapi_spec_hash: d0684f4b10e09e2585ad70360531501c -config_hash: ff2eb5f192b4de36611b37b27961c2d8 +configured_endpoints: 231 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-2304a782c25d2a6b9586de2f6e2b536b5abbf62735f9c18ed0551607f134b714.yml +openapi_spec_hash: 67d6de7181215abe88dcc3da557a1e0d +config_hash: 5a0bf28bf735edf93f36c6c808711847 diff --git a/lib/increase.rb b/lib/increase.rb index bdc271ae..ea74fd30 100644 --- a/lib/increase.rb +++ b/lib/increase.rb @@ -314,6 +314,7 @@ require_relative "increase/models/simulations/digital_wallet_token_request_create_params" require_relative "increase/models/simulations/digital_wallet_token_request_create_response" require_relative "increase/models/simulations/document_create_params" +require_relative "increase/models/simulations/export_create_params" require_relative "increase/models/simulations/inbound_ach_transfer_create_params" require_relative "increase/models/simulations/inbound_check_deposit_create_params" require_relative "increase/models/simulations/inbound_fednow_transfer_create_params" @@ -417,6 +418,7 @@ require_relative "increase/resources/simulations/check_transfers" require_relative "increase/resources/simulations/digital_wallet_token_requests" require_relative "increase/resources/simulations/documents" +require_relative "increase/resources/simulations/exports" require_relative "increase/resources/simulations/inbound_ach_transfers" require_relative "increase/resources/simulations/inbound_check_deposits" require_relative "increase/resources/simulations/inbound_fednow_transfers" diff --git a/lib/increase/models/export.rb b/lib/increase/models/export.rb index 09d6c3ac..db2c95eb 100644 --- a/lib/increase/models/export.rb +++ b/lib/increase/models/export.rb @@ -62,10 +62,10 @@ class Export < Increase::Internal::Type::BaseModel # Some parameter documentations has been truncated, see {Increase::Models::Export} # for more details. # - # Exports are batch summaries of your Increase data. You can make them from the - # API or dashboard. Since they can take a while, they are generated - # asynchronously. We send a webhook when they are ready. For more information, - # please read our + # Exports are generated files. Some exports can contain a lot of data, like a CSV + # of your transactions. Others can be a single document, like a tax form. Since + # they can take a while, they are generated asynchronously. We send a webhook when + # they are ready. For more information, please read our # [Exports documentation](https://increase.com/documentation/exports). # # @param id [String] The Export identifier. diff --git a/lib/increase/models/export_create_params.rb b/lib/increase/models/export_create_params.rb index 663a076c..41e37302 100644 --- a/lib/increase/models/export_create_params.rb +++ b/lib/increase/models/export_create_params.rb @@ -27,6 +27,13 @@ class ExportCreateParams < Increase::Internal::Type::BaseModel # @return [Increase::Models::ExportCreateParams::AccountStatementOfx, nil] optional :account_statement_ofx, -> { Increase::ExportCreateParams::AccountStatementOfx } + # @!attribute account_verification_letter + # Options for the created export. Required if `category` is equal to + # `account_verification_letter`. + # + # @return [Increase::Models::ExportCreateParams::AccountVerificationLetter, nil] + optional :account_verification_letter, -> { Increase::ExportCreateParams::AccountVerificationLetter } + # @!attribute balance_csv # Options for the created export. Required if `category` is equal to # `balance_csv`. @@ -48,6 +55,13 @@ class ExportCreateParams < Increase::Internal::Type::BaseModel # @return [Increase::Models::ExportCreateParams::EntityCsv, nil] optional :entity_csv, -> { Increase::ExportCreateParams::EntityCsv } + # @!attribute funding_instructions + # Options for the created export. Required if `category` is equal to + # `funding_instructions`. + # + # @return [Increase::Models::ExportCreateParams::FundingInstructions, nil] + optional :funding_instructions, -> { Increase::ExportCreateParams::FundingInstructions } + # @!attribute transaction_csv # Options for the created export. Required if `category` is equal to # `transaction_csv`. @@ -61,7 +75,7 @@ class ExportCreateParams < Increase::Internal::Type::BaseModel # @return [Increase::Models::ExportCreateParams::VendorCsv, nil] optional :vendor_csv, -> { Increase::ExportCreateParams::VendorCsv } - # @!method initialize(category:, account_statement_bai2: nil, account_statement_ofx: nil, balance_csv: nil, bookkeeping_account_balance_csv: nil, entity_csv: nil, transaction_csv: nil, vendor_csv: nil, request_options: {}) + # @!method initialize(category:, account_statement_bai2: nil, account_statement_ofx: nil, account_verification_letter: nil, balance_csv: nil, bookkeeping_account_balance_csv: nil, entity_csv: nil, funding_instructions: nil, transaction_csv: nil, vendor_csv: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Increase::Models::ExportCreateParams} for more details. # @@ -71,6 +85,8 @@ class ExportCreateParams < Increase::Internal::Type::BaseModel # # @param account_statement_ofx [Increase::Models::ExportCreateParams::AccountStatementOfx] Options for the created export. Required if `category` is equal to `account_stat # + # @param account_verification_letter [Increase::Models::ExportCreateParams::AccountVerificationLetter] Options for the created export. Required if `category` is equal to `account_veri + # # @param balance_csv [Increase::Models::ExportCreateParams::BalanceCsv] Options for the created export. Required if `category` is equal to `balance_csv` # # @param bookkeeping_account_balance_csv [Increase::Models::ExportCreateParams::BookkeepingAccountBalanceCsv] Options for the created export. Required if `category` is equal to @@ -78,6 +94,8 @@ class ExportCreateParams < Increase::Internal::Type::BaseModel # # @param entity_csv [Increase::Models::ExportCreateParams::EntityCsv] Options for the created export. Required if `category` is equal to `entity_csv`. # + # @param funding_instructions [Increase::Models::ExportCreateParams::FundingInstructions] Options for the created export. Required if `category` is equal to `funding_inst + # # @param transaction_csv [Increase::Models::ExportCreateParams::TransactionCsv] Options for the created export. Required if `category` is equal to # `transaction\_ # @@ -110,6 +128,12 @@ module Category # Export a CSV of vendors added to the third-party risk management dashboard. VENDOR_CSV = :vendor_csv + # A PDF of an account verification letter. + ACCOUNT_VERIFICATION_LETTER = :account_verification_letter + + # A PDF of funding instructions. + FUNDING_INSTRUCTIONS = :funding_instructions + # @!method self.values # @return [Array] end @@ -220,6 +244,28 @@ class CreatedAt < Increase::Internal::Type::BaseModel end end + class AccountVerificationLetter < Increase::Internal::Type::BaseModel + # @!attribute account_number_id + # The Account Number to create a letter for. + # + # @return [String] + required :account_number_id, String + + # @!attribute balance_date + # The date of the balance to include in the letter. Defaults to the current date. + # + # @return [Date, nil] + optional :balance_date, Date + + # @!method initialize(account_number_id:, balance_date: nil) + # Options for the created export. Required if `category` is equal to + # `account_verification_letter`. + # + # @param account_number_id [String] The Account Number to create a letter for. + # + # @param balance_date [Date] The date of the balance to include in the letter. Defaults to the current date. + end + class BalanceCsv < Increase::Internal::Type::BaseModel # @!attribute account_id # Filter exported Transactions to the specified Account. @@ -414,6 +460,20 @@ module In end end + class FundingInstructions < Increase::Internal::Type::BaseModel + # @!attribute account_number_id + # The Account Number to create funding instructions for. + # + # @return [String] + required :account_number_id, String + + # @!method initialize(account_number_id:) + # Options for the created export. Required if `category` is equal to + # `funding_instructions`. + # + # @param account_number_id [String] The Account Number to create funding instructions for. + end + class TransactionCsv < Increase::Internal::Type::BaseModel # @!attribute account_id # Filter exported Transactions to the specified Account. diff --git a/lib/increase/models/simulations/export_create_params.rb b/lib/increase/models/simulations/export_create_params.rb new file mode 100644 index 00000000..c00a4548 --- /dev/null +++ b/lib/increase/models/simulations/export_create_params.rb @@ -0,0 +1,24 @@ +# frozen_string_literal: true + +module Increase + module Models + module Simulations + # @see Increase::Resources::Simulations::Exports#create + class ExportCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters + + # @!attribute account_id + # The identifier of the Account the tax document is for. + # + # @return [String] + required :account_id, String + + # @!method initialize(account_id:, request_options: {}) + # @param account_id [String] The identifier of the Account the tax document is for. + # + # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] + end + end + end +end diff --git a/lib/increase/resources/exports.rb b/lib/increase/resources/exports.rb index 6642e0c4..d1165a52 100644 --- a/lib/increase/resources/exports.rb +++ b/lib/increase/resources/exports.rb @@ -8,7 +8,7 @@ class Exports # # Create an Export # - # @overload create(category:, account_statement_bai2: nil, account_statement_ofx: nil, balance_csv: nil, bookkeeping_account_balance_csv: nil, entity_csv: nil, transaction_csv: nil, vendor_csv: nil, request_options: {}) + # @overload create(category:, account_statement_bai2: nil, account_statement_ofx: nil, account_verification_letter: nil, balance_csv: nil, bookkeeping_account_balance_csv: nil, entity_csv: nil, funding_instructions: nil, transaction_csv: nil, vendor_csv: nil, request_options: {}) # # @param category [Symbol, Increase::Models::ExportCreateParams::Category] The type of Export to create. # @@ -16,6 +16,8 @@ class Exports # # @param account_statement_ofx [Increase::Models::ExportCreateParams::AccountStatementOfx] Options for the created export. Required if `category` is equal to `account_stat # + # @param account_verification_letter [Increase::Models::ExportCreateParams::AccountVerificationLetter] Options for the created export. Required if `category` is equal to `account_veri + # # @param balance_csv [Increase::Models::ExportCreateParams::BalanceCsv] Options for the created export. Required if `category` is equal to `balance_csv` # # @param bookkeeping_account_balance_csv [Increase::Models::ExportCreateParams::BookkeepingAccountBalanceCsv] Options for the created export. Required if `category` is equal to @@ -23,6 +25,8 @@ class Exports # # @param entity_csv [Increase::Models::ExportCreateParams::EntityCsv] Options for the created export. Required if `category` is equal to `entity_csv`. # + # @param funding_instructions [Increase::Models::ExportCreateParams::FundingInstructions] Options for the created export. Required if `category` is equal to `funding_inst + # # @param transaction_csv [Increase::Models::ExportCreateParams::TransactionCsv] Options for the created export. Required if `category` is equal to # `transaction\_ # diff --git a/lib/increase/resources/simulations.rb b/lib/increase/resources/simulations.rb index 8618761a..f3b5460a 100644 --- a/lib/increase/resources/simulations.rb +++ b/lib/increase/resources/simulations.rb @@ -93,6 +93,9 @@ class Simulations # @return [Increase::Resources::Simulations::Documents] attr_reader :documents + # @return [Increase::Resources::Simulations::Exports] + attr_reader :exports + # @return [Increase::Resources::Simulations::CardTokens] attr_reader :card_tokens @@ -136,6 +139,7 @@ def initialize(client:) @programs = Increase::Resources::Simulations::Programs.new(client: client) @account_statements = Increase::Resources::Simulations::AccountStatements.new(client: client) @documents = Increase::Resources::Simulations::Documents.new(client: client) + @exports = Increase::Resources::Simulations::Exports.new(client: client) @card_tokens = Increase::Resources::Simulations::CardTokens.new(client: client) end end diff --git a/lib/increase/resources/simulations/exports.rb b/lib/increase/resources/simulations/exports.rb new file mode 100644 index 00000000..d4a4bd27 --- /dev/null +++ b/lib/increase/resources/simulations/exports.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +module Increase + module Resources + class Simulations + class Exports + # Simulates a tax form export being generated. + # + # @overload create(account_id:, request_options: {}) + # + # @param account_id [String] The identifier of the Account the tax document is for. + # + # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [Increase::Models::Export] + # + # @see Increase::Models::Simulations::ExportCreateParams + def create(params) + parsed, options = Increase::Simulations::ExportCreateParams.dump_request(params) + @client.request( + method: :post, + path: "simulations/exports", + body: parsed, + model: Increase::Export, + options: options + ) + end + + # @api private + # + # @param client [Increase::Client] + def initialize(client:) + @client = client + end + end + end + end +end diff --git a/rbi/increase/models/export.rbi b/rbi/increase/models/export.rbi index a3f8b2ef..0964d617 100644 --- a/rbi/increase/models/export.rbi +++ b/rbi/increase/models/export.rbi @@ -44,10 +44,10 @@ module Increase sig { returns(Increase::Export::Type::TaggedSymbol) } attr_accessor :type - # Exports are batch summaries of your Increase data. You can make them from the - # API or dashboard. Since they can take a while, they are generated - # asynchronously. We send a webhook when they are ready. For more information, - # please read our + # Exports are generated files. Some exports can contain a lot of data, like a CSV + # of your transactions. Others can be a single document, like a tax form. Since + # they can take a while, they are generated asynchronously. We send a webhook when + # they are ready. For more information, please read our # [Exports documentation](https://increase.com/documentation/exports). sig do params( diff --git a/rbi/increase/models/export_create_params.rbi b/rbi/increase/models/export_create_params.rbi index a7ed0652..e3c8b05c 100644 --- a/rbi/increase/models/export_create_params.rbi +++ b/rbi/increase/models/export_create_params.rbi @@ -45,6 +45,23 @@ module Increase end attr_writer :account_statement_ofx + # Options for the created export. Required if `category` is equal to + # `account_verification_letter`. + sig do + returns( + T.nilable(Increase::ExportCreateParams::AccountVerificationLetter) + ) + end + attr_reader :account_verification_letter + + sig do + params( + account_verification_letter: + Increase::ExportCreateParams::AccountVerificationLetter::OrHash + ).void + end + attr_writer :account_verification_letter + # Options for the created export. Required if `category` is equal to # `balance_csv`. sig { returns(T.nilable(Increase::ExportCreateParams::BalanceCsv)) } @@ -83,6 +100,21 @@ module Increase end attr_writer :entity_csv + # Options for the created export. Required if `category` is equal to + # `funding_instructions`. + sig do + returns(T.nilable(Increase::ExportCreateParams::FundingInstructions)) + end + attr_reader :funding_instructions + + sig do + params( + funding_instructions: + Increase::ExportCreateParams::FundingInstructions::OrHash + ).void + end + attr_writer :funding_instructions + # Options for the created export. Required if `category` is equal to # `transaction_csv`. sig { returns(T.nilable(Increase::ExportCreateParams::TransactionCsv)) } @@ -111,10 +143,14 @@ module Increase Increase::ExportCreateParams::AccountStatementBai2::OrHash, account_statement_ofx: Increase::ExportCreateParams::AccountStatementOfx::OrHash, + account_verification_letter: + Increase::ExportCreateParams::AccountVerificationLetter::OrHash, balance_csv: Increase::ExportCreateParams::BalanceCsv::OrHash, bookkeeping_account_balance_csv: Increase::ExportCreateParams::BookkeepingAccountBalanceCsv::OrHash, entity_csv: Increase::ExportCreateParams::EntityCsv::OrHash, + funding_instructions: + Increase::ExportCreateParams::FundingInstructions::OrHash, transaction_csv: Increase::ExportCreateParams::TransactionCsv::OrHash, vendor_csv: Increase::ExportCreateParams::VendorCsv::OrHash, request_options: Increase::RequestOptions::OrHash @@ -130,6 +166,9 @@ module Increase # `account_statement_ofx`. account_statement_ofx: nil, # Options for the created export. Required if `category` is equal to + # `account_verification_letter`. + account_verification_letter: nil, + # Options for the created export. Required if `category` is equal to # `balance_csv`. balance_csv: nil, # Options for the created export. Required if `category` is equal to @@ -138,6 +177,9 @@ module Increase # Options for the created export. Required if `category` is equal to `entity_csv`. entity_csv: nil, # Options for the created export. Required if `category` is equal to + # `funding_instructions`. + funding_instructions: nil, + # Options for the created export. Required if `category` is equal to # `transaction_csv`. transaction_csv: nil, # Options for the created export. Required if `category` is equal to `vendor_csv`. @@ -154,10 +196,14 @@ module Increase Increase::ExportCreateParams::AccountStatementBai2, account_statement_ofx: Increase::ExportCreateParams::AccountStatementOfx, + account_verification_letter: + Increase::ExportCreateParams::AccountVerificationLetter, balance_csv: Increase::ExportCreateParams::BalanceCsv, bookkeeping_account_balance_csv: Increase::ExportCreateParams::BookkeepingAccountBalanceCsv, entity_csv: Increase::ExportCreateParams::EntityCsv, + funding_instructions: + Increase::ExportCreateParams::FundingInstructions, transaction_csv: Increase::ExportCreateParams::TransactionCsv, vendor_csv: Increase::ExportCreateParams::VendorCsv, request_options: Increase::RequestOptions @@ -224,6 +270,20 @@ module Increase Increase::ExportCreateParams::Category::TaggedSymbol ) + # A PDF of an account verification letter. + ACCOUNT_VERIFICATION_LETTER = + T.let( + :account_verification_letter, + Increase::ExportCreateParams::Category::TaggedSymbol + ) + + # A PDF of funding instructions. + FUNDING_INSTRUCTIONS = + T.let( + :funding_instructions, + Increase::ExportCreateParams::Category::TaggedSymbol + ) + sig do override.returns( T::Array[Increase::ExportCreateParams::Category::TaggedSymbol] @@ -442,6 +502,48 @@ module Increase end end + class AccountVerificationLetter < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::ExportCreateParams::AccountVerificationLetter, + Increase::Internal::AnyHash + ) + end + + # The Account Number to create a letter for. + sig { returns(String) } + attr_accessor :account_number_id + + # The date of the balance to include in the letter. Defaults to the current date. + sig { returns(T.nilable(Date)) } + attr_reader :balance_date + + sig { params(balance_date: Date).void } + attr_writer :balance_date + + # Options for the created export. Required if `category` is equal to + # `account_verification_letter`. + sig do + params(account_number_id: String, balance_date: Date).returns( + T.attached_class + ) + end + def self.new( + # The Account Number to create a letter for. + account_number_id:, + # The date of the balance to include in the letter. Defaults to the current date. + balance_date: nil + ) + end + + sig do + override.returns({ account_number_id: String, balance_date: Date }) + end + def to_hash + end + end + class BalanceCsv < Increase::Internal::Type::BaseModel OrHash = T.type_alias do @@ -875,6 +977,33 @@ module Increase end end + class FundingInstructions < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::ExportCreateParams::FundingInstructions, + Increase::Internal::AnyHash + ) + end + + # The Account Number to create funding instructions for. + sig { returns(String) } + attr_accessor :account_number_id + + # Options for the created export. Required if `category` is equal to + # `funding_instructions`. + sig { params(account_number_id: String).returns(T.attached_class) } + def self.new( + # The Account Number to create funding instructions for. + account_number_id: + ) + end + + sig { override.returns({ account_number_id: String }) } + def to_hash + end + end + class TransactionCsv < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/simulations/export_create_params.rbi b/rbi/increase/models/simulations/export_create_params.rbi new file mode 100644 index 00000000..d6a9ca44 --- /dev/null +++ b/rbi/increase/models/simulations/export_create_params.rbi @@ -0,0 +1,45 @@ +# typed: strong + +module Increase + module Models + module Simulations + class ExportCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + Increase::Simulations::ExportCreateParams, + Increase::Internal::AnyHash + ) + end + + # The identifier of the Account the tax document is for. + sig { returns(String) } + attr_accessor :account_id + + sig do + params( + account_id: String, + request_options: Increase::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + # The identifier of the Account the tax document is for. + account_id:, + request_options: {} + ) + end + + sig do + override.returns( + { account_id: String, request_options: Increase::RequestOptions } + ) + end + def to_hash + end + end + end + end +end diff --git a/rbi/increase/resources/exports.rbi b/rbi/increase/resources/exports.rbi index b130f90f..6da0987b 100644 --- a/rbi/increase/resources/exports.rbi +++ b/rbi/increase/resources/exports.rbi @@ -11,10 +11,14 @@ module Increase Increase::ExportCreateParams::AccountStatementBai2::OrHash, account_statement_ofx: Increase::ExportCreateParams::AccountStatementOfx::OrHash, + account_verification_letter: + Increase::ExportCreateParams::AccountVerificationLetter::OrHash, balance_csv: Increase::ExportCreateParams::BalanceCsv::OrHash, bookkeeping_account_balance_csv: Increase::ExportCreateParams::BookkeepingAccountBalanceCsv::OrHash, entity_csv: Increase::ExportCreateParams::EntityCsv::OrHash, + funding_instructions: + Increase::ExportCreateParams::FundingInstructions::OrHash, transaction_csv: Increase::ExportCreateParams::TransactionCsv::OrHash, vendor_csv: Increase::ExportCreateParams::VendorCsv::OrHash, request_options: Increase::RequestOptions::OrHash @@ -30,6 +34,9 @@ module Increase # `account_statement_ofx`. account_statement_ofx: nil, # Options for the created export. Required if `category` is equal to + # `account_verification_letter`. + account_verification_letter: nil, + # Options for the created export. Required if `category` is equal to # `balance_csv`. balance_csv: nil, # Options for the created export. Required if `category` is equal to @@ -38,6 +45,9 @@ module Increase # Options for the created export. Required if `category` is equal to `entity_csv`. entity_csv: nil, # Options for the created export. Required if `category` is equal to + # `funding_instructions`. + funding_instructions: nil, + # Options for the created export. Required if `category` is equal to # `transaction_csv`. transaction_csv: nil, # Options for the created export. Required if `category` is equal to `vendor_csv`. diff --git a/rbi/increase/resources/simulations.rbi b/rbi/increase/resources/simulations.rbi index b8cd083b..6650b46c 100644 --- a/rbi/increase/resources/simulations.rbi +++ b/rbi/increase/resources/simulations.rbi @@ -105,6 +105,9 @@ module Increase sig { returns(Increase::Resources::Simulations::Documents) } attr_reader :documents + sig { returns(Increase::Resources::Simulations::Exports) } + attr_reader :exports + sig { returns(Increase::Resources::Simulations::CardTokens) } attr_reader :card_tokens diff --git a/rbi/increase/resources/simulations/exports.rbi b/rbi/increase/resources/simulations/exports.rbi new file mode 100644 index 00000000..2ef5ca9d --- /dev/null +++ b/rbi/increase/resources/simulations/exports.rbi @@ -0,0 +1,28 @@ +# typed: strong + +module Increase + module Resources + class Simulations + class Exports + # Simulates a tax form export being generated. + sig do + params( + account_id: String, + request_options: Increase::RequestOptions::OrHash + ).returns(Increase::Export) + end + def create( + # The identifier of the Account the tax document is for. + account_id:, + request_options: {} + ) + end + + # @api private + sig { params(client: Increase::Client).returns(T.attached_class) } + def self.new(client:) + end + end + end + end +end diff --git a/sig/increase/models/export_create_params.rbs b/sig/increase/models/export_create_params.rbs index 213b7bb1..e358b5e4 100644 --- a/sig/increase/models/export_create_params.rbs +++ b/sig/increase/models/export_create_params.rbs @@ -5,9 +5,11 @@ module Increase category: Increase::Models::ExportCreateParams::category, :account_statement_bai2 => Increase::ExportCreateParams::AccountStatementBai2, account_statement_ofx: Increase::ExportCreateParams::AccountStatementOfx, + account_verification_letter: Increase::ExportCreateParams::AccountVerificationLetter, balance_csv: Increase::ExportCreateParams::BalanceCsv, bookkeeping_account_balance_csv: Increase::ExportCreateParams::BookkeepingAccountBalanceCsv, entity_csv: Increase::ExportCreateParams::EntityCsv, + funding_instructions: Increase::ExportCreateParams::FundingInstructions, transaction_csv: Increase::ExportCreateParams::TransactionCsv, vendor_csv: Increase::ExportCreateParams::VendorCsv } @@ -31,6 +33,12 @@ module Increase Increase::ExportCreateParams::AccountStatementOfx ) -> Increase::ExportCreateParams::AccountStatementOfx + attr_reader account_verification_letter: Increase::ExportCreateParams::AccountVerificationLetter? + + def account_verification_letter=: ( + Increase::ExportCreateParams::AccountVerificationLetter + ) -> Increase::ExportCreateParams::AccountVerificationLetter + attr_reader balance_csv: Increase::ExportCreateParams::BalanceCsv? def balance_csv=: ( @@ -49,6 +57,12 @@ module Increase Increase::ExportCreateParams::EntityCsv ) -> Increase::ExportCreateParams::EntityCsv + attr_reader funding_instructions: Increase::ExportCreateParams::FundingInstructions? + + def funding_instructions=: ( + Increase::ExportCreateParams::FundingInstructions + ) -> Increase::ExportCreateParams::FundingInstructions + attr_reader transaction_csv: Increase::ExportCreateParams::TransactionCsv? def transaction_csv=: ( @@ -65,9 +79,11 @@ module Increase category: Increase::Models::ExportCreateParams::category, ?account_statement_bai2: Increase::ExportCreateParams::AccountStatementBai2, ?account_statement_ofx: Increase::ExportCreateParams::AccountStatementOfx, + ?account_verification_letter: Increase::ExportCreateParams::AccountVerificationLetter, ?balance_csv: Increase::ExportCreateParams::BalanceCsv, ?bookkeeping_account_balance_csv: Increase::ExportCreateParams::BookkeepingAccountBalanceCsv, ?entity_csv: Increase::ExportCreateParams::EntityCsv, + ?funding_instructions: Increase::ExportCreateParams::FundingInstructions, ?transaction_csv: Increase::ExportCreateParams::TransactionCsv, ?vendor_csv: Increase::ExportCreateParams::VendorCsv, ?request_options: Increase::request_opts @@ -77,9 +93,11 @@ module Increase category: Increase::Models::ExportCreateParams::category, :account_statement_bai2 => Increase::ExportCreateParams::AccountStatementBai2, account_statement_ofx: Increase::ExportCreateParams::AccountStatementOfx, + account_verification_letter: Increase::ExportCreateParams::AccountVerificationLetter, balance_csv: Increase::ExportCreateParams::BalanceCsv, bookkeeping_account_balance_csv: Increase::ExportCreateParams::BookkeepingAccountBalanceCsv, entity_csv: Increase::ExportCreateParams::EntityCsv, + funding_instructions: Increase::ExportCreateParams::FundingInstructions, transaction_csv: Increase::ExportCreateParams::TransactionCsv, vendor_csv: Increase::ExportCreateParams::VendorCsv, request_options: Increase::RequestOptions @@ -93,6 +111,8 @@ module Increase | :bookkeeping_account_balance_csv | :entity_csv | :vendor_csv + | :account_verification_letter + | :funding_instructions module Category extend Increase::Internal::Type::Enum @@ -118,6 +138,12 @@ module Increase # Export a CSV of vendors added to the third-party risk management dashboard. VENDOR_CSV: :vendor_csv + # A PDF of an account verification letter. + ACCOUNT_VERIFICATION_LETTER: :account_verification_letter + + # A PDF of funding instructions. + FUNDING_INSTRUCTIONS: :funding_instructions + def self?.values: -> ::Array[Increase::Models::ExportCreateParams::category] end @@ -211,6 +237,21 @@ module Increase end end + type account_verification_letter = + { account_number_id: String, balance_date: Date } + + class AccountVerificationLetter < Increase::Internal::Type::BaseModel + attr_accessor account_number_id: String + + attr_reader balance_date: Date? + + def balance_date=: (Date) -> Date + + def initialize: (account_number_id: String, ?balance_date: Date) -> void + + def to_hash: -> { account_number_id: String, balance_date: Date } + end + type balance_csv = { account_id: String, @@ -397,6 +438,16 @@ module Increase end end + type funding_instructions = { account_number_id: String } + + class FundingInstructions < Increase::Internal::Type::BaseModel + attr_accessor account_number_id: String + + def initialize: (account_number_id: String) -> void + + def to_hash: -> { account_number_id: String } + end + type transaction_csv = { account_id: String, diff --git a/sig/increase/models/simulations/export_create_params.rbs b/sig/increase/models/simulations/export_create_params.rbs new file mode 100644 index 00000000..cda284d0 --- /dev/null +++ b/sig/increase/models/simulations/export_create_params.rbs @@ -0,0 +1,25 @@ +module Increase + module Models + module Simulations + type export_create_params = + { account_id: String } & Increase::Internal::Type::request_parameters + + class ExportCreateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters + + attr_accessor account_id: String + + def initialize: ( + account_id: String, + ?request_options: Increase::request_opts + ) -> void + + def to_hash: -> { + account_id: String, + request_options: Increase::RequestOptions + } + end + end + end +end diff --git a/sig/increase/resources/exports.rbs b/sig/increase/resources/exports.rbs index b2381ee6..30cdd9e5 100644 --- a/sig/increase/resources/exports.rbs +++ b/sig/increase/resources/exports.rbs @@ -5,9 +5,11 @@ module Increase category: Increase::Models::ExportCreateParams::category, ?account_statement_bai2: Increase::ExportCreateParams::AccountStatementBai2, ?account_statement_ofx: Increase::ExportCreateParams::AccountStatementOfx, + ?account_verification_letter: Increase::ExportCreateParams::AccountVerificationLetter, ?balance_csv: Increase::ExportCreateParams::BalanceCsv, ?bookkeeping_account_balance_csv: Increase::ExportCreateParams::BookkeepingAccountBalanceCsv, ?entity_csv: Increase::ExportCreateParams::EntityCsv, + ?funding_instructions: Increase::ExportCreateParams::FundingInstructions, ?transaction_csv: Increase::ExportCreateParams::TransactionCsv, ?vendor_csv: Increase::ExportCreateParams::VendorCsv, ?request_options: Increase::request_opts diff --git a/sig/increase/resources/simulations.rbs b/sig/increase/resources/simulations.rbs index bb622597..bc7ba023 100644 --- a/sig/increase/resources/simulations.rbs +++ b/sig/increase/resources/simulations.rbs @@ -61,6 +61,8 @@ module Increase attr_reader documents: Increase::Resources::Simulations::Documents + attr_reader exports: Increase::Resources::Simulations::Exports + attr_reader card_tokens: Increase::Resources::Simulations::CardTokens def initialize: (client: Increase::Client) -> void diff --git a/sig/increase/resources/simulations/exports.rbs b/sig/increase/resources/simulations/exports.rbs new file mode 100644 index 00000000..47ac4023 --- /dev/null +++ b/sig/increase/resources/simulations/exports.rbs @@ -0,0 +1,14 @@ +module Increase + module Resources + class Simulations + class Exports + def create: ( + account_id: String, + ?request_options: Increase::request_opts + ) -> Increase::Export + + def initialize: (client: Increase::Client) -> void + end + end + end +end diff --git a/test/increase/resources/simulations/exports_test.rb b/test/increase/resources/simulations/exports_test.rb new file mode 100644 index 00000000..fce3070c --- /dev/null +++ b/test/increase/resources/simulations/exports_test.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true + +require_relative "../../test_helper" + +class Increase::Test::Resources::Simulations::ExportsTest < Increase::Test::ResourceTest + def test_create_required_params + response = @increase.simulations.exports.create(account_id: "account_in71c4amph0vgo2qllky") + + assert_pattern do + response => Increase::Export + end + + assert_pattern do + response => { + id: String, + category: Increase::Export::Category, + created_at: Time, + file_download_url: String | nil, + file_id: String | nil, + idempotency_key: String | nil, + status: Increase::Export::Status, + type: Increase::Export::Type + } + end + end +end From 4cad5d28081ddb6bb541feadaba718d988a2472c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Dec 2025 22:37:14 +0000 Subject: [PATCH 2/2] release: 1.167.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 5f383af5..89bf56eb 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.166.1" + ".": "1.167.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 74ac06db..c0c85875 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.167.0 (2025-12-18) + +Full Changelog: [v1.166.1...v1.167.0](https://github.com/Increase/increase-ruby/compare/v1.166.1...v1.167.0) + +### Features + +* **api:** api update ([8083993](https://github.com/Increase/increase-ruby/commit/80839936c4b528bb4c1070c5382196cba2206ad3)) + ## 1.166.1 (2025-12-18) Full Changelog: [v1.166.0...v1.166.1](https://github.com/Increase/increase-ruby/compare/v1.166.0...v1.166.1) diff --git a/Gemfile.lock b/Gemfile.lock index f5806979..cc0de556 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.166.1) + increase (1.167.0) connection_pool GEM diff --git a/README.md b/README.md index f20555d0..ed736e80 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.166.1" +gem "increase", "~> 1.167.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index e498f0e4..1e14221a 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.166.1" + VERSION = "1.167.0" end