diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 9e9e7025..70e55a09 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.197.0" + ".": "1.198.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 13631853..e7c0e8dd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 232 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6a089f62e0825b943563fb885786306e446f8e35f777c55c024e57447194aabf.yml -openapi_spec_hash: 2d2faf76bfb1b2a3b8dac458f95abe08 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-50d1961c2f7a9b49b1176da26978fbdf0acc1150d731540dcbeeea795ad63fd5.yml +openapi_spec_hash: c8fee0479195a45721851f5f640e5087 config_hash: 27e44ed36b9c5617b580ead7231a594a diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a0bf018..e5a31e82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.198.0 (2026-02-04) + +Full Changelog: [v1.197.0...v1.198.0](https://github.com/Increase/increase-ruby/compare/v1.197.0...v1.198.0) + +### Features + +* **api:** api update ([65a0591](https://github.com/Increase/increase-ruby/commit/65a05912ac1d3f755f28826cd581f134bcf72c4d)) + ## 1.197.0 (2026-02-03) Full Changelog: [v1.196.0...v1.197.0](https://github.com/Increase/increase-ruby/compare/v1.196.0...v1.197.0) diff --git a/Gemfile.lock b/Gemfile.lock index 84ee35c0..9c1b85fd 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.197.0) + increase (1.198.0) cgi connection_pool diff --git a/README.md b/README.md index a7928c14..626c5cad 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.197.0" +gem "increase", "~> 1.198.0" ``` diff --git a/lib/increase/models/export_list_params.rb b/lib/increase/models/export_list_params.rb index 956023ac..8facbf08 100644 --- a/lib/increase/models/export_list_params.rb +++ b/lib/increase/models/export_list_params.rb @@ -8,9 +8,10 @@ class ExportListParams < Increase::Internal::Type::BaseModel include Increase::Internal::Type::RequestParameters # @!attribute category + # Filter Exports for those with the specified category. # - # @return [Increase::Models::ExportListParams::Category, nil] - optional :category, -> { Increase::ExportListParams::Category } + # @return [Symbol, Increase::Models::ExportListParams::Category, nil] + optional :category, enum: -> { Increase::ExportListParams::Category } # @!attribute created_at # @@ -23,6 +24,16 @@ class ExportListParams < Increase::Internal::Type::BaseModel # @return [String, nil] optional :cursor, String + # @!attribute form_1099_int + # + # @return [Increase::Models::ExportListParams::Form1099Int, nil] + optional :form_1099_int, -> { Increase::ExportListParams::Form1099Int } + + # @!attribute form_1099_misc + # + # @return [Increase::Models::ExportListParams::Form1099Misc, nil] + optional :form_1099_misc, -> { Increase::ExportListParams::Form1099Misc } + # @!attribute idempotency_key # Filter records to the one with the specified `idempotency_key` you chose for # that object. This value is unique across Increase and is used to ensure that a @@ -44,16 +55,20 @@ class ExportListParams < Increase::Internal::Type::BaseModel # @return [Increase::Models::ExportListParams::Status, nil] optional :status, -> { Increase::ExportListParams::Status } - # @!method initialize(category: nil, created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}) + # @!method initialize(category: nil, created_at: nil, cursor: nil, form_1099_int: nil, form_1099_misc: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Increase::Models::ExportListParams} for more details. # - # @param category [Increase::Models::ExportListParams::Category] + # @param category [Symbol, Increase::Models::ExportListParams::Category] Filter Exports for those with the specified category. # # @param created_at [Increase::Models::ExportListParams::CreatedAt] # # @param cursor [String] Return the page of entries after this one. # + # @param form_1099_int [Increase::Models::ExportListParams::Form1099Int] + # + # @param form_1099_misc [Increase::Models::ExportListParams::Form1099Misc] + # # @param idempotency_key [String] Filter records to the one with the specified `idempotency_key` you chose for tha # # @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob @@ -62,65 +77,48 @@ class ExportListParams < Increase::Internal::Type::BaseModel # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] - class Category < Increase::Internal::Type::BaseModel - # @!attribute in_ - # Filter Exports for those with the specified category or categories. For GET - # requests, this should be encoded as a comma-delimited string, such as - # `?in=one,two,three`. - # - # @return [Array, nil] - optional :in_, - -> { Increase::Internal::Type::ArrayOf[enum: Increase::ExportListParams::Category::In] }, - api_name: :in - - # @!method initialize(in_: nil) - # Some parameter documentations has been truncated, see - # {Increase::Models::ExportListParams::Category} for more details. - # - # @param in_ [Array] Filter Exports for those with the specified category or categories. For GET requ - - module In - extend Increase::Internal::Type::Enum + # Filter Exports for those with the specified category. + module Category + extend Increase::Internal::Type::Enum - # Export an Open Financial Exchange (OFX) file of transactions and balances for a given time range and Account. - ACCOUNT_STATEMENT_OFX = :account_statement_ofx + # Export an Open Financial Exchange (OFX) file of transactions and balances for a given time range and Account. + ACCOUNT_STATEMENT_OFX = :account_statement_ofx - # Export a BAI2 file of transactions and balances for a given date and optional Account. - ACCOUNT_STATEMENT_BAI2 = :account_statement_bai2 + # Export a BAI2 file of transactions and balances for a given date and optional Account. + ACCOUNT_STATEMENT_BAI2 = :account_statement_bai2 - # Export a CSV of all transactions for a given time range. - TRANSACTION_CSV = :transaction_csv + # Export a CSV of all transactions for a given time range. + TRANSACTION_CSV = :transaction_csv - # Export a CSV of account balances for the dates in a given range. - BALANCE_CSV = :balance_csv + # Export a CSV of account balances for the dates in a given range. + BALANCE_CSV = :balance_csv - # Export a CSV of bookkeeping account balances for the dates in a given range. - BOOKKEEPING_ACCOUNT_BALANCE_CSV = :bookkeeping_account_balance_csv + # Export a CSV of bookkeeping account balances for the dates in a given range. + BOOKKEEPING_ACCOUNT_BALANCE_CSV = :bookkeeping_account_balance_csv - # Export a CSV of entities with a given status. - ENTITY_CSV = :entity_csv + # Export a CSV of entities with a given status. + ENTITY_CSV = :entity_csv - # Export a CSV of vendors added to the third-party risk management dashboard. - VENDOR_CSV = :vendor_csv + # Export a CSV of vendors added to the third-party risk management dashboard. + VENDOR_CSV = :vendor_csv - # Certain dashboard tables are available as CSV exports. This export cannot be created via the API. - DASHBOARD_TABLE_CSV = :dashboard_table_csv + # Certain dashboard tables are available as CSV exports. This export cannot be created via the API. + DASHBOARD_TABLE_CSV = :dashboard_table_csv - # A PDF of an account verification letter. - ACCOUNT_VERIFICATION_LETTER = :account_verification_letter + # A PDF of an account verification letter. + ACCOUNT_VERIFICATION_LETTER = :account_verification_letter - # A PDF of funding instructions. - FUNDING_INSTRUCTIONS = :funding_instructions + # A PDF of funding instructions. + FUNDING_INSTRUCTIONS = :funding_instructions - # A PDF of an Internal Revenue Service Form 1099-INT. - FORM_1099_INT = :form_1099_int + # A PDF of an Internal Revenue Service Form 1099-INT. + FORM_1099_INT = :form_1099_int - # A PDF of an Internal Revenue Service Form 1099-MISC. - FORM_1099_MISC = :form_1099_misc + # A PDF of an Internal Revenue Service Form 1099-MISC. + FORM_1099_MISC = :form_1099_misc - # @!method self.values - # @return [Array] - end + # @!method self.values + # @return [Array] end class CreatedAt < Increase::Internal::Type::BaseModel @@ -165,6 +163,28 @@ class CreatedAt < Increase::Internal::Type::BaseModel # @param on_or_before [Time] Return results on or before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_86 end + class Form1099Int < Increase::Internal::Type::BaseModel + # @!attribute account_id + # Filter Form 1099-INT Exports to those for the specified Account. + # + # @return [String, nil] + optional :account_id, String + + # @!method initialize(account_id: nil) + # @param account_id [String] Filter Form 1099-INT Exports to those for the specified Account. + end + + class Form1099Misc < Increase::Internal::Type::BaseModel + # @!attribute account_id + # Filter Form 1099-MISC Exports to those for the specified Account. + # + # @return [String, nil] + optional :account_id, String + + # @!method initialize(account_id: nil) + # @param account_id [String] Filter Form 1099-MISC Exports to those for the specified Account. + end + class Status < Increase::Internal::Type::BaseModel # @!attribute in_ # Filter Exports for those with the specified status or statuses. For GET diff --git a/lib/increase/resources/exports.rb b/lib/increase/resources/exports.rb index d1165a52..3b075521 100644 --- a/lib/increase/resources/exports.rb +++ b/lib/increase/resources/exports.rb @@ -73,14 +73,18 @@ def retrieve(export_id, params = {}) # # List Exports # - # @overload list(category: nil, created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}) + # @overload list(category: nil, created_at: nil, cursor: nil, form_1099_int: nil, form_1099_misc: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}) # - # @param category [Increase::Models::ExportListParams::Category] + # @param category [Symbol, Increase::Models::ExportListParams::Category] Filter Exports for those with the specified category. # # @param created_at [Increase::Models::ExportListParams::CreatedAt] # # @param cursor [String] Return the page of entries after this one. # + # @param form_1099_int [Increase::Models::ExportListParams::Form1099Int] + # + # @param form_1099_misc [Increase::Models::ExportListParams::Form1099Misc] + # # @param idempotency_key [String] Filter records to the one with the specified `idempotency_key` you chose for tha # # @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob diff --git a/lib/increase/version.rb b/lib/increase/version.rb index b9ad0893..64e4a2ee 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.197.0" + VERSION = "1.198.0" end diff --git a/rbi/increase/models/export_list_params.rbi b/rbi/increase/models/export_list_params.rbi index 728c4330..89ea810b 100644 --- a/rbi/increase/models/export_list_params.rbi +++ b/rbi/increase/models/export_list_params.rbi @@ -11,11 +11,12 @@ module Increase T.any(Increase::ExportListParams, Increase::Internal::AnyHash) end - sig { returns(T.nilable(Increase::ExportListParams::Category)) } + # Filter Exports for those with the specified category. + sig { returns(T.nilable(Increase::ExportListParams::Category::OrSymbol)) } attr_reader :category sig do - params(category: Increase::ExportListParams::Category::OrHash).void + params(category: Increase::ExportListParams::Category::OrSymbol).void end attr_writer :category @@ -34,6 +35,26 @@ module Increase sig { params(cursor: String).void } attr_writer :cursor + sig { returns(T.nilable(Increase::ExportListParams::Form1099Int)) } + attr_reader :form_1099_int + + sig do + params( + form_1099_int: Increase::ExportListParams::Form1099Int::OrHash + ).void + end + attr_writer :form_1099_int + + sig { returns(T.nilable(Increase::ExportListParams::Form1099Misc)) } + attr_reader :form_1099_misc + + sig do + params( + form_1099_misc: Increase::ExportListParams::Form1099Misc::OrHash + ).void + end + attr_writer :form_1099_misc + # Filter records to the one with the specified `idempotency_key` you chose for # that object. This value is unique across Increase and is used to ensure that a # request is only processed once. Learn more about @@ -60,9 +81,11 @@ module Increase sig do params( - category: Increase::ExportListParams::Category::OrHash, + category: Increase::ExportListParams::Category::OrSymbol, created_at: Increase::ExportListParams::CreatedAt::OrHash, cursor: String, + form_1099_int: Increase::ExportListParams::Form1099Int::OrHash, + form_1099_misc: Increase::ExportListParams::Form1099Misc::OrHash, idempotency_key: String, limit: Integer, status: Increase::ExportListParams::Status::OrHash, @@ -70,10 +93,13 @@ module Increase ).returns(T.attached_class) end def self.new( + # Filter Exports for those with the specified category. category: nil, created_at: nil, # Return the page of entries after this one. cursor: nil, + form_1099_int: nil, + form_1099_misc: nil, # Filter records to the one with the specified `idempotency_key` you chose for # that object. This value is unique across Increase and is used to ensure that a # request is only processed once. Learn more about @@ -90,9 +116,11 @@ module Increase sig do override.returns( { - category: Increase::ExportListParams::Category, + category: Increase::ExportListParams::Category::OrSymbol, created_at: Increase::ExportListParams::CreatedAt, cursor: String, + form_1099_int: Increase::ExportListParams::Form1099Int, + form_1099_misc: Increase::ExportListParams::Form1099Misc, idempotency_key: String, limit: Integer, status: Increase::ExportListParams::Status, @@ -103,157 +131,98 @@ module Increase def to_hash end - class Category < Increase::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Increase::ExportListParams::Category, - Increase::Internal::AnyHash - ) - end - - # Filter Exports for those with the specified category or categories. For GET - # requests, this should be encoded as a comma-delimited string, such as - # `?in=one,two,three`. - sig do - returns( - T.nilable( - T::Array[Increase::ExportListParams::Category::In::OrSymbol] - ) - ) - end - attr_reader :in_ + # Filter Exports for those with the specified category. + module Category + extend Increase::Internal::Type::Enum - sig do - params( - in_: T::Array[Increase::ExportListParams::Category::In::OrSymbol] - ).void - end - attr_writer :in_ + TaggedSymbol = + T.type_alias { T.all(Symbol, Increase::ExportListParams::Category) } + OrSymbol = T.type_alias { T.any(Symbol, String) } - sig do - params( - in_: T::Array[Increase::ExportListParams::Category::In::OrSymbol] - ).returns(T.attached_class) - end - def self.new( - # Filter Exports for those with the specified category or categories. For GET - # requests, this should be encoded as a comma-delimited string, such as - # `?in=one,two,three`. - in_: nil - ) - end - - sig do - override.returns( - { - in_: T::Array[Increase::ExportListParams::Category::In::OrSymbol] - } + # Export an Open Financial Exchange (OFX) file of transactions and balances for a given time range and Account. + ACCOUNT_STATEMENT_OFX = + T.let( + :account_statement_ofx, + Increase::ExportListParams::Category::TaggedSymbol ) - end - def to_hash - end - module In - extend Increase::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Increase::ExportListParams::Category::In) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - # Export an Open Financial Exchange (OFX) file of transactions and balances for a given time range and Account. - ACCOUNT_STATEMENT_OFX = - T.let( - :account_statement_ofx, - Increase::ExportListParams::Category::In::TaggedSymbol - ) - - # Export a BAI2 file of transactions and balances for a given date and optional Account. - ACCOUNT_STATEMENT_BAI2 = - T.let( - :account_statement_bai2, - Increase::ExportListParams::Category::In::TaggedSymbol - ) + # Export a BAI2 file of transactions and balances for a given date and optional Account. + ACCOUNT_STATEMENT_BAI2 = + T.let( + :account_statement_bai2, + Increase::ExportListParams::Category::TaggedSymbol + ) - # Export a CSV of all transactions for a given time range. - TRANSACTION_CSV = - T.let( - :transaction_csv, - Increase::ExportListParams::Category::In::TaggedSymbol - ) + # Export a CSV of all transactions for a given time range. + TRANSACTION_CSV = + T.let( + :transaction_csv, + Increase::ExportListParams::Category::TaggedSymbol + ) - # Export a CSV of account balances for the dates in a given range. - BALANCE_CSV = - T.let( - :balance_csv, - Increase::ExportListParams::Category::In::TaggedSymbol - ) + # Export a CSV of account balances for the dates in a given range. + BALANCE_CSV = + T.let( + :balance_csv, + Increase::ExportListParams::Category::TaggedSymbol + ) - # Export a CSV of bookkeeping account balances for the dates in a given range. - BOOKKEEPING_ACCOUNT_BALANCE_CSV = - T.let( - :bookkeeping_account_balance_csv, - Increase::ExportListParams::Category::In::TaggedSymbol - ) + # Export a CSV of bookkeeping account balances for the dates in a given range. + BOOKKEEPING_ACCOUNT_BALANCE_CSV = + T.let( + :bookkeeping_account_balance_csv, + Increase::ExportListParams::Category::TaggedSymbol + ) - # Export a CSV of entities with a given status. - ENTITY_CSV = - T.let( - :entity_csv, - Increase::ExportListParams::Category::In::TaggedSymbol - ) + # Export a CSV of entities with a given status. + ENTITY_CSV = + T.let(:entity_csv, Increase::ExportListParams::Category::TaggedSymbol) - # Export a CSV of vendors added to the third-party risk management dashboard. - VENDOR_CSV = - T.let( - :vendor_csv, - Increase::ExportListParams::Category::In::TaggedSymbol - ) + # Export a CSV of vendors added to the third-party risk management dashboard. + VENDOR_CSV = + T.let(:vendor_csv, Increase::ExportListParams::Category::TaggedSymbol) - # Certain dashboard tables are available as CSV exports. This export cannot be created via the API. - DASHBOARD_TABLE_CSV = - T.let( - :dashboard_table_csv, - Increase::ExportListParams::Category::In::TaggedSymbol - ) + # Certain dashboard tables are available as CSV exports. This export cannot be created via the API. + DASHBOARD_TABLE_CSV = + T.let( + :dashboard_table_csv, + Increase::ExportListParams::Category::TaggedSymbol + ) - # A PDF of an account verification letter. - ACCOUNT_VERIFICATION_LETTER = - T.let( - :account_verification_letter, - Increase::ExportListParams::Category::In::TaggedSymbol - ) + # A PDF of an account verification letter. + ACCOUNT_VERIFICATION_LETTER = + T.let( + :account_verification_letter, + Increase::ExportListParams::Category::TaggedSymbol + ) - # A PDF of funding instructions. - FUNDING_INSTRUCTIONS = - T.let( - :funding_instructions, - Increase::ExportListParams::Category::In::TaggedSymbol - ) + # A PDF of funding instructions. + FUNDING_INSTRUCTIONS = + T.let( + :funding_instructions, + Increase::ExportListParams::Category::TaggedSymbol + ) - # A PDF of an Internal Revenue Service Form 1099-INT. - FORM_1099_INT = - T.let( - :form_1099_int, - Increase::ExportListParams::Category::In::TaggedSymbol - ) + # A PDF of an Internal Revenue Service Form 1099-INT. + FORM_1099_INT = + T.let( + :form_1099_int, + Increase::ExportListParams::Category::TaggedSymbol + ) - # A PDF of an Internal Revenue Service Form 1099-MISC. - FORM_1099_MISC = - T.let( - :form_1099_misc, - Increase::ExportListParams::Category::In::TaggedSymbol - ) + # A PDF of an Internal Revenue Service Form 1099-MISC. + FORM_1099_MISC = + T.let( + :form_1099_misc, + Increase::ExportListParams::Category::TaggedSymbol + ) - sig do - override.returns( - T::Array[Increase::ExportListParams::Category::In::TaggedSymbol] - ) - end - def self.values - end + sig do + override.returns( + T::Array[Increase::ExportListParams::Category::TaggedSymbol] + ) + end + def self.values end end @@ -331,6 +300,62 @@ module Increase end end + class Form1099Int < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::ExportListParams::Form1099Int, + Increase::Internal::AnyHash + ) + end + + # Filter Form 1099-INT Exports to those for the specified Account. + sig { returns(T.nilable(String)) } + attr_reader :account_id + + sig { params(account_id: String).void } + attr_writer :account_id + + sig { params(account_id: String).returns(T.attached_class) } + def self.new( + # Filter Form 1099-INT Exports to those for the specified Account. + account_id: nil + ) + end + + sig { override.returns({ account_id: String }) } + def to_hash + end + end + + class Form1099Misc < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::ExportListParams::Form1099Misc, + Increase::Internal::AnyHash + ) + end + + # Filter Form 1099-MISC Exports to those for the specified Account. + sig { returns(T.nilable(String)) } + attr_reader :account_id + + sig { params(account_id: String).void } + attr_writer :account_id + + sig { params(account_id: String).returns(T.attached_class) } + def self.new( + # Filter Form 1099-MISC Exports to those for the specified Account. + account_id: nil + ) + end + + sig { override.returns({ account_id: String }) } + def to_hash + end + end + class Status < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/resources/exports.rbi b/rbi/increase/resources/exports.rbi index 6da0987b..fa8fa5db 100644 --- a/rbi/increase/resources/exports.rbi +++ b/rbi/increase/resources/exports.rbi @@ -73,9 +73,11 @@ module Increase # List Exports sig do params( - category: Increase::ExportListParams::Category::OrHash, + category: Increase::ExportListParams::Category::OrSymbol, created_at: Increase::ExportListParams::CreatedAt::OrHash, cursor: String, + form_1099_int: Increase::ExportListParams::Form1099Int::OrHash, + form_1099_misc: Increase::ExportListParams::Form1099Misc::OrHash, idempotency_key: String, limit: Integer, status: Increase::ExportListParams::Status::OrHash, @@ -83,10 +85,13 @@ module Increase ).returns(Increase::Internal::Page[Increase::Export]) end def list( + # Filter Exports for those with the specified category. category: nil, created_at: nil, # Return the page of entries after this one. cursor: nil, + form_1099_int: nil, + form_1099_misc: nil, # Filter records to the one with the specified `idempotency_key` you chose for # that object. This value is unique across Increase and is used to ensure that a # request is only processed once. Learn more about diff --git a/sig/increase/models/export_list_params.rbs b/sig/increase/models/export_list_params.rbs index b8c4bce2..b3dd438c 100644 --- a/sig/increase/models/export_list_params.rbs +++ b/sig/increase/models/export_list_params.rbs @@ -2,9 +2,11 @@ module Increase module Models type export_list_params = { - category: Increase::ExportListParams::Category, + category: Increase::Models::ExportListParams::category, created_at: Increase::ExportListParams::CreatedAt, cursor: String, + :form_1099_int => Increase::ExportListParams::Form1099Int, + :form_1099_misc => Increase::ExportListParams::Form1099Misc, idempotency_key: String, limit: Integer, status: Increase::ExportListParams::Status @@ -15,11 +17,11 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - attr_reader category: Increase::ExportListParams::Category? + attr_reader category: Increase::Models::ExportListParams::category? def category=: ( - Increase::ExportListParams::Category - ) -> Increase::ExportListParams::Category + Increase::Models::ExportListParams::category + ) -> Increase::Models::ExportListParams::category attr_reader created_at: Increase::ExportListParams::CreatedAt? @@ -31,6 +33,18 @@ module Increase def cursor=: (String) -> String + attr_reader form_1099_int: Increase::ExportListParams::Form1099Int? + + def form_1099_int=: ( + Increase::ExportListParams::Form1099Int + ) -> Increase::ExportListParams::Form1099Int + + attr_reader form_1099_misc: Increase::ExportListParams::Form1099Misc? + + def form_1099_misc=: ( + Increase::ExportListParams::Form1099Misc + ) -> Increase::ExportListParams::Form1099Misc + attr_reader idempotency_key: String? def idempotency_key=: (String) -> String @@ -46,9 +60,11 @@ module Increase ) -> Increase::ExportListParams::Status def initialize: ( - ?category: Increase::ExportListParams::Category, + ?category: Increase::Models::ExportListParams::category, ?created_at: Increase::ExportListParams::CreatedAt, ?cursor: String, + ?form_1099_int: Increase::ExportListParams::Form1099Int, + ?form_1099_misc: Increase::ExportListParams::Form1099Misc, ?idempotency_key: String, ?limit: Integer, ?status: Increase::ExportListParams::Status, @@ -56,9 +72,11 @@ module Increase ) -> void def to_hash: -> { - category: Increase::ExportListParams::Category, + category: Increase::Models::ExportListParams::category, created_at: Increase::ExportListParams::CreatedAt, cursor: String, + :form_1099_int => Increase::ExportListParams::Form1099Int, + :form_1099_misc => Increase::ExportListParams::Form1099Misc, idempotency_key: String, limit: Integer, status: Increase::ExportListParams::Status, @@ -66,78 +84,59 @@ module Increase } type category = - { in_: ::Array[Increase::Models::ExportListParams::Category::in_] } + :account_statement_ofx + | :account_statement_bai2 + | :transaction_csv + | :balance_csv + | :bookkeeping_account_balance_csv + | :entity_csv + | :vendor_csv + | :dashboard_table_csv + | :account_verification_letter + | :funding_instructions + | :form_1099_int + | :form_1099_misc - class Category < Increase::Internal::Type::BaseModel - attr_reader in_: ::Array[Increase::Models::ExportListParams::Category::in_]? + module Category + extend Increase::Internal::Type::Enum - def in_=: ( - ::Array[Increase::Models::ExportListParams::Category::in_] - ) -> ::Array[Increase::Models::ExportListParams::Category::in_] - - def initialize: ( - ?in_: ::Array[Increase::Models::ExportListParams::Category::in_] - ) -> void - - def to_hash: -> { - in_: ::Array[Increase::Models::ExportListParams::Category::in_] - } - - type in_ = - :account_statement_ofx - | :account_statement_bai2 - | :transaction_csv - | :balance_csv - | :bookkeeping_account_balance_csv - | :entity_csv - | :vendor_csv - | :dashboard_table_csv - | :account_verification_letter - | :funding_instructions - | :form_1099_int - | :form_1099_misc - - module In - extend Increase::Internal::Type::Enum + # Export an Open Financial Exchange (OFX) file of transactions and balances for a given time range and Account. + ACCOUNT_STATEMENT_OFX: :account_statement_ofx - # Export an Open Financial Exchange (OFX) file of transactions and balances for a given time range and Account. - ACCOUNT_STATEMENT_OFX: :account_statement_ofx + # Export a BAI2 file of transactions and balances for a given date and optional Account. + ACCOUNT_STATEMENT_BAI2: :account_statement_bai2 - # Export a BAI2 file of transactions and balances for a given date and optional Account. - ACCOUNT_STATEMENT_BAI2: :account_statement_bai2 + # Export a CSV of all transactions for a given time range. + TRANSACTION_CSV: :transaction_csv - # Export a CSV of all transactions for a given time range. - TRANSACTION_CSV: :transaction_csv + # Export a CSV of account balances for the dates in a given range. + BALANCE_CSV: :balance_csv - # Export a CSV of account balances for the dates in a given range. - BALANCE_CSV: :balance_csv + # Export a CSV of bookkeeping account balances for the dates in a given range. + BOOKKEEPING_ACCOUNT_BALANCE_CSV: :bookkeeping_account_balance_csv - # Export a CSV of bookkeeping account balances for the dates in a given range. - BOOKKEEPING_ACCOUNT_BALANCE_CSV: :bookkeeping_account_balance_csv + # Export a CSV of entities with a given status. + ENTITY_CSV: :entity_csv - # Export a CSV of entities with a given status. - ENTITY_CSV: :entity_csv + # Export a CSV of vendors added to the third-party risk management dashboard. + VENDOR_CSV: :vendor_csv - # Export a CSV of vendors added to the third-party risk management dashboard. - VENDOR_CSV: :vendor_csv + # Certain dashboard tables are available as CSV exports. This export cannot be created via the API. + DASHBOARD_TABLE_CSV: :dashboard_table_csv - # Certain dashboard tables are available as CSV exports. This export cannot be created via the API. - DASHBOARD_TABLE_CSV: :dashboard_table_csv + # A PDF of an account verification letter. + ACCOUNT_VERIFICATION_LETTER: :account_verification_letter - # A PDF of an account verification letter. - ACCOUNT_VERIFICATION_LETTER: :account_verification_letter + # A PDF of funding instructions. + FUNDING_INSTRUCTIONS: :funding_instructions - # A PDF of funding instructions. - FUNDING_INSTRUCTIONS: :funding_instructions + # A PDF of an Internal Revenue Service Form 1099-INT. + FORM_1099_INT: :form_1099_int - # A PDF of an Internal Revenue Service Form 1099-INT. - FORM_1099_INT: :form_1099_int + # A PDF of an Internal Revenue Service Form 1099-MISC. + FORM_1099_MISC: :form_1099_misc - # A PDF of an Internal Revenue Service Form 1099-MISC. - FORM_1099_MISC: :form_1099_misc - - def self?.values: -> ::Array[Increase::Models::ExportListParams::Category::in_] - end + def self?.values: -> ::Array[Increase::Models::ExportListParams::category] end type created_at = @@ -175,6 +174,30 @@ module Increase } end + type form1099_int = { account_id: String } + + class Form1099Int < Increase::Internal::Type::BaseModel + attr_reader account_id: String? + + def account_id=: (String) -> String + + def initialize: (?account_id: String) -> void + + def to_hash: -> { account_id: String } + end + + type form1099_misc = { account_id: String } + + class Form1099Misc < Increase::Internal::Type::BaseModel + attr_reader account_id: String? + + def account_id=: (String) -> String + + def initialize: (?account_id: String) -> void + + def to_hash: -> { account_id: String } + end + type status = { in_: ::Array[Increase::Models::ExportListParams::Status::in_] } diff --git a/sig/increase/resources/exports.rbs b/sig/increase/resources/exports.rbs index 30cdd9e5..7df86b39 100644 --- a/sig/increase/resources/exports.rbs +++ b/sig/increase/resources/exports.rbs @@ -21,9 +21,11 @@ module Increase ) -> Increase::Export def list: ( - ?category: Increase::ExportListParams::Category, + ?category: Increase::Models::ExportListParams::category, ?created_at: Increase::ExportListParams::CreatedAt, ?cursor: String, + ?form_1099_int: Increase::ExportListParams::Form1099Int, + ?form_1099_misc: Increase::ExportListParams::Form1099Misc, ?idempotency_key: String, ?limit: Integer, ?status: Increase::ExportListParams::Status,