Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.1.0"
".": "1.2.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 201
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-d85c059af2ebfb614d1027bf04c10ddcb6188920c7e8a29b040968cd962124b6.yml
openapi_spec_hash: 3a5546d73dd733025e0d6d9d673bca04
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-8ba0a76a7d25f12b1aa44ebd3283129560f7a65c95a098ad89deeee6ea46c8a8.yml
openapi_spec_hash: 30519b66ae8c018865d8de252d6f5d2d
config_hash: 97774f946585cecb19181a1817870d0b
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.2.0 (2025-06-24)

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

### Features

* **api:** api update ([2b5da1c](https://github.com/Increase/increase-ruby/commit/2b5da1c10f75b8a65c2370858c08eadf4268b044))

## 1.1.0 (2025-06-23)

Full Changelog: [v1.0.0...v1.1.0](https://github.com/Increase/increase-ruby/compare/v1.0.0...v1.1.0)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
increase (1.1.0)
increase (1.2.0)
connection_pool

GEM
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "increase", "~> 1.1.0"
gem "increase", "~> 1.2.0"
```

<!-- x-release-please-end -->
Expand Down
27 changes: 26 additions & 1 deletion lib/increase/models/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ class Document < Increase::Internal::Type::BaseModel
# @return [String]
required :file_id, String

# @!attribute funding_instructions
# Properties of a funding instructions document.
#
# @return [Increase::Models::Document::FundingInstructions, nil]
required :funding_instructions, -> { Increase::Document::FundingInstructions }, nil?: true

# @!attribute idempotency_key
# The idempotency key you chose for this object. This value is unique across
# Increase and is used to ensure that a request is only processed once. Learn more
Expand All @@ -56,7 +62,7 @@ class Document < Increase::Internal::Type::BaseModel
# @return [Symbol, Increase::Models::Document::Type]
required :type, enum: -> { Increase::Document::Type }

# @!method initialize(id:, account_verification_letter:, category:, created_at:, entity_id:, file_id:, idempotency_key:, type:)
# @!method initialize(id:, account_verification_letter:, category:, created_at:, entity_id:, file_id:, funding_instructions:, idempotency_key:, type:)
# Some parameter documentations has been truncated, see
# {Increase::Models::Document} for more details.
#
Expand All @@ -75,6 +81,8 @@ class Document < Increase::Internal::Type::BaseModel
#
# @param file_id [String] The identifier of the File containing the Document's contents.
#
# @param funding_instructions [Increase::Models::Document::FundingInstructions, nil] Properties of a funding instructions document.
#
# @param idempotency_key [String, nil] The idempotency key you chose for this object. This value is unique across Incre
#
# @param type [Symbol, Increase::Models::Document::Type] A constant representing the object's type. For this resource it will always be `
Expand Down Expand Up @@ -114,10 +122,27 @@ module Category
# An account verification letter.
ACCOUNT_VERIFICATION_LETTER = :account_verification_letter

# Funding instructions.
FUNDING_INSTRUCTIONS = :funding_instructions

# @!method self.values
# @return [Array<Symbol>]
end

# @see Increase::Models::Document#funding_instructions
class FundingInstructions < Increase::Internal::Type::BaseModel
# @!attribute account_number_id
# The identifier of the Account Number the document was generated for.
#
# @return [String]
required :account_number_id, String

# @!method initialize(account_number_id:)
# Properties of a funding instructions document.
#
# @param account_number_id [String] The identifier of the Account Number the document was generated for.
end

# A constant representing the object's type. For this resource it will always be
# `document`.
#
Expand Down
26 changes: 25 additions & 1 deletion lib/increase/models/document_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,19 @@ class DocumentCreateParams < Increase::Internal::Type::BaseModel
# @return [Increase::Models::DocumentCreateParams::AccountVerificationLetter, nil]
optional :account_verification_letter, -> { Increase::DocumentCreateParams::AccountVerificationLetter }

# @!method initialize(category:, account_verification_letter: nil, request_options: {})
# @!attribute funding_instructions
# Funding instructions.
#
# @return [Increase::Models::DocumentCreateParams::FundingInstructions, nil]
optional :funding_instructions, -> { Increase::DocumentCreateParams::FundingInstructions }

# @!method initialize(category:, account_verification_letter: nil, funding_instructions: nil, request_options: {})
# @param category [Symbol, Increase::Models::DocumentCreateParams::Category] The type of document to create.
#
# @param account_verification_letter [Increase::Models::DocumentCreateParams::AccountVerificationLetter] An account verification letter.
#
# @param funding_instructions [Increase::Models::DocumentCreateParams::FundingInstructions] Funding instructions.
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]

# The type of document to create.
Expand All @@ -33,6 +41,9 @@ module Category
# An account verification letter.
ACCOUNT_VERIFICATION_LETTER = :account_verification_letter

# Funding instructions.
FUNDING_INSTRUCTIONS = :funding_instructions

# @!method self.values
# @return [Array<Symbol>]
end
Expand All @@ -57,6 +68,19 @@ class AccountVerificationLetter < Increase::Internal::Type::BaseModel
#
# @param balance_date [Date] If provided, the letter will include the Account's balance as of the date.
end

class FundingInstructions < Increase::Internal::Type::BaseModel
# @!attribute account_number_id
# The Account Number the funding instructions should be generated for.
#
# @return [String]
required :account_number_id, String

# @!method initialize(account_number_id:)
# Funding instructions.
#
# @param account_number_id [String] The Account Number the funding instructions should be generated for.
end
end
end
end
3 changes: 3 additions & 0 deletions lib/increase/models/document_list_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ module In
# An account verification letter.
ACCOUNT_VERIFICATION_LETTER = :account_verification_letter

# Funding instructions.
FUNDING_INSTRUCTIONS = :funding_instructions

# @!method self.values
# @return [Array<Symbol>]
end
Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ module Purpose
# An account verification letter.
ACCOUNT_VERIFICATION_LETTER = :account_verification_letter

# Funding instructions.
FUNDING_INSTRUCTIONS = :funding_instructions

# @!method self.values
# @return [Array<Symbol>]
end
Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/file_list_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ module In
# An account verification letter.
ACCOUNT_VERIFICATION_LETTER = :account_verification_letter

# Funding instructions.
FUNDING_INSTRUCTIONS = :funding_instructions

# @!method self.values
# @return [Array<Symbol>]
end
Expand Down
4 changes: 3 additions & 1 deletion lib/increase/resources/documents.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ module Resources
class Documents
# Create a Document
#
# @overload create(category:, account_verification_letter: nil, request_options: {})
# @overload create(category:, account_verification_letter: nil, funding_instructions: nil, request_options: {})
#
# @param category [Symbol, Increase::Models::DocumentCreateParams::Category] The type of document to create.
#
# @param account_verification_letter [Increase::Models::DocumentCreateParams::AccountVerificationLetter] An account verification letter.
#
# @param funding_instructions [Increase::Models::DocumentCreateParams::FundingInstructions] Funding instructions.
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
#
# @return [Increase::Models::Document]
Expand Down
2 changes: 1 addition & 1 deletion lib/increase/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Increase
VERSION = "1.1.0"
VERSION = "1.2.0"
end
51 changes: 51 additions & 0 deletions rbi/increase/models/document.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ module Increase
sig { returns(String) }
attr_accessor :file_id

# Properties of a funding instructions document.
sig { returns(T.nilable(Increase::Document::FundingInstructions)) }
attr_reader :funding_instructions

sig do
params(
funding_instructions:
T.nilable(Increase::Document::FundingInstructions::OrHash)
).void
end
attr_writer :funding_instructions

# The idempotency key you chose for this object. This value is unique across
# Increase and is used to ensure that a request is only processed once. Learn more
# about [idempotency](https://increase.com/documentation/idempotency-keys).
Expand All @@ -61,6 +73,8 @@ module Increase
created_at: Time,
entity_id: T.nilable(String),
file_id: String,
funding_instructions:
T.nilable(Increase::Document::FundingInstructions::OrHash),
idempotency_key: T.nilable(String),
type: Increase::Document::Type::OrSymbol
).returns(T.attached_class)
Expand All @@ -79,6 +93,8 @@ module Increase
entity_id:,
# The identifier of the File containing the Document's contents.
file_id:,
# Properties of a funding instructions document.
funding_instructions:,
# The idempotency key you chose for this object. This value is unique across
# Increase and is used to ensure that a request is only processed once. Learn more
# about [idempotency](https://increase.com/documentation/idempotency-keys).
Expand All @@ -99,6 +115,8 @@ module Increase
created_at: Time,
entity_id: T.nilable(String),
file_id: String,
funding_instructions:
T.nilable(Increase::Document::FundingInstructions),
idempotency_key: T.nilable(String),
type: Increase::Document::Type::TaggedSymbol
}
Expand Down Expand Up @@ -170,13 +188,46 @@ module Increase
Increase::Document::Category::TaggedSymbol
)

# Funding instructions.
FUNDING_INSTRUCTIONS =
T.let(
:funding_instructions,
Increase::Document::Category::TaggedSymbol
)

sig do
override.returns(T::Array[Increase::Document::Category::TaggedSymbol])
end
def self.values
end
end

class FundingInstructions < Increase::Internal::Type::BaseModel
OrHash =
T.type_alias do
T.any(
Increase::Document::FundingInstructions,
Increase::Internal::AnyHash
)
end

# The identifier of the Account Number the document was generated for.
sig { returns(String) }
attr_accessor :account_number_id

# Properties of a funding instructions document.
sig { params(account_number_id: String).returns(T.attached_class) }
def self.new(
# The identifier of the Account Number the document was generated for.
account_number_id:
)
end

sig { override.returns({ account_number_id: String }) }
def to_hash
end
end

# A constant representing the object's type. For this resource it will always be
# `document`.
module Type
Expand Down
53 changes: 53 additions & 0 deletions rbi/increase/models/document_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,27 @@ module Increase
end
attr_writer :account_verification_letter

# Funding instructions.
sig do
returns(T.nilable(Increase::DocumentCreateParams::FundingInstructions))
end
attr_reader :funding_instructions

sig do
params(
funding_instructions:
Increase::DocumentCreateParams::FundingInstructions::OrHash
).void
end
attr_writer :funding_instructions

sig do
params(
category: Increase::DocumentCreateParams::Category::OrSymbol,
account_verification_letter:
Increase::DocumentCreateParams::AccountVerificationLetter::OrHash,
funding_instructions:
Increase::DocumentCreateParams::FundingInstructions::OrHash,
request_options: Increase::RequestOptions::OrHash
).returns(T.attached_class)
end
Expand All @@ -44,6 +60,8 @@ module Increase
category:,
# An account verification letter.
account_verification_letter: nil,
# Funding instructions.
funding_instructions: nil,
request_options: {}
)
end
Expand All @@ -54,6 +72,8 @@ module Increase
category: Increase::DocumentCreateParams::Category::OrSymbol,
account_verification_letter:
Increase::DocumentCreateParams::AccountVerificationLetter,
funding_instructions:
Increase::DocumentCreateParams::FundingInstructions,
request_options: Increase::RequestOptions
}
)
Expand All @@ -78,6 +98,13 @@ module Increase
Increase::DocumentCreateParams::Category::TaggedSymbol
)

# Funding instructions.
FUNDING_INSTRUCTIONS =
T.let(
:funding_instructions,
Increase::DocumentCreateParams::Category::TaggedSymbol
)

sig do
override.returns(
T::Array[Increase::DocumentCreateParams::Category::TaggedSymbol]
Expand Down Expand Up @@ -127,6 +154,32 @@ module Increase
def to_hash
end
end

class FundingInstructions < Increase::Internal::Type::BaseModel
OrHash =
T.type_alias do
T.any(
Increase::DocumentCreateParams::FundingInstructions,
Increase::Internal::AnyHash
)
end

# The Account Number the funding instructions should be generated for.
sig { returns(String) }
attr_accessor :account_number_id

# Funding instructions.
sig { params(account_number_id: String).returns(T.attached_class) }
def self.new(
# The Account Number the funding instructions should be generated for.
account_number_id:
)
end

sig { override.returns({ account_number_id: String }) }
def to_hash
end
end
end
end
end
Loading