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.129.1"
".": "1.130.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: 228
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-776b1bee3036836b954fa0db1e6d0349a04f76799402089994a9147a05967c0e.yml
openapi_spec_hash: 185a637305e75b302860dce8d352f54f
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-04156469b84df056ff40f1cd402b851af019c7433591a072e02f90f3bd5e5d62.yml
openapi_spec_hash: c3ff2c35ac0bdadd4290ad7f063deb5e
config_hash: eb2035151c7b49c2f12caf55469b8f9a
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.130.0 (2025-11-05)

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

### Features

* **api:** api update ([bc07ab3](https://github.com/Increase/increase-ruby/commit/bc07ab335a56f490734f2d01740b5df5d2da4ccf))

## 1.129.1 (2025-11-04)

Full Changelog: [v1.129.0...v1.129.1](https://github.com/Increase/increase-ruby/compare/v1.129.0...v1.129.1)
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.129.1)
increase (1.130.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.129.1"
gem "increase", "~> 1.130.0"
```

<!-- x-release-please-end -->
Expand Down
32 changes: 16 additions & 16 deletions lib/increase/models/lockbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ class Lockbox < Increase::Internal::Type::BaseModel
# @return [Increase::Models::Lockbox::Address]
required :address, -> { Increase::Lockbox::Address }

# @!attribute check_deposit_behavior
# Indicates if checks mailed to this lockbox will be deposited.
#
# @return [Symbol, Increase::Models::Lockbox::CheckDepositBehavior]
required :check_deposit_behavior, enum: -> { Increase::Lockbox::CheckDepositBehavior }

# @!attribute created_at
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Lockbox
# was created.
Expand Down Expand Up @@ -50,20 +56,14 @@ class Lockbox < Increase::Internal::Type::BaseModel
# @return [String, nil]
required :recipient_name, String, nil?: true

# @!attribute status
# This indicates if mail can be sent to this address.
#
# @return [Symbol, Increase::Models::Lockbox::Status]
required :status, enum: -> { Increase::Lockbox::Status }

# @!attribute type
# A constant representing the object's type. For this resource it will always be
# `lockbox`.
#
# @return [Symbol, Increase::Models::Lockbox::Type]
required :type, enum: -> { Increase::Lockbox::Type }

# @!method initialize(id:, account_id:, address:, created_at:, description:, idempotency_key:, recipient_name:, status:, type:)
# @!method initialize(id:, account_id:, address:, check_deposit_behavior:, created_at:, description:, idempotency_key:, recipient_name:, type:)
# Some parameter documentations has been truncated, see
# {Increase::Models::Lockbox} for more details.
#
Expand All @@ -76,6 +76,8 @@ class Lockbox < Increase::Internal::Type::BaseModel
#
# @param address [Increase::Models::Lockbox::Address] The mailing address for the Lockbox.
#
# @param check_deposit_behavior [Symbol, Increase::Models::Lockbox::CheckDepositBehavior] Indicates if checks mailed to this lockbox will be deposited.
#
# @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Lockbox
#
# @param description [String, nil] The description you choose for the Lockbox.
Expand All @@ -84,8 +86,6 @@ class Lockbox < Increase::Internal::Type::BaseModel
#
# @param recipient_name [String, nil] The recipient name you choose for the Lockbox.
#
# @param status [Symbol, Increase::Models::Lockbox::Status] This indicates if mail can be sent to this address.
#
# @param type [Symbol, Increase::Models::Lockbox::Type] A constant representing the object's type. For this resource it will always be `

# @see Increase::Models::Lockbox#address
Expand Down Expand Up @@ -149,17 +149,17 @@ class Address < Increase::Internal::Type::BaseModel
# @param state [String] The two-letter United States Postal Service (USPS) abbreviation for the state of
end

# This indicates if mail can be sent to this address.
# Indicates if checks mailed to this lockbox will be deposited.
#
# @see Increase::Models::Lockbox#status
module Status
# @see Increase::Models::Lockbox#check_deposit_behavior
module CheckDepositBehavior
extend Increase::Internal::Type::Enum

# This Lockbox is active. Checks mailed to it will be deposited automatically.
ACTIVE = :active
# Checks mailed to this Lockbox will be deposited.
ENABLED = :enabled

# This Lockbox is inactive. Checks mailed to it will not be deposited.
INACTIVE = :inactive
# Checks mailed to this Lockbox will not be deposited.
DISABLED = :disabled

# @!method self.values
# @return [Array<Symbol>]
Expand Down
28 changes: 14 additions & 14 deletions lib/increase/models/lockbox_update_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ class LockboxUpdateParams < Increase::Internal::Type::BaseModel
extend Increase::Internal::Type::RequestParameters::Converter
include Increase::Internal::Type::RequestParameters

# @!attribute check_deposit_behavior
# This indicates if checks mailed to this lockbox will be deposited.
#
# @return [Symbol, Increase::Models::LockboxUpdateParams::CheckDepositBehavior, nil]
optional :check_deposit_behavior, enum: -> { Increase::LockboxUpdateParams::CheckDepositBehavior }

# @!attribute description
# The description you choose for the Lockbox.
#
Expand All @@ -19,30 +25,24 @@ class LockboxUpdateParams < Increase::Internal::Type::BaseModel
# @return [String, nil]
optional :recipient_name, String

# @!attribute status
# This indicates if checks can be sent to the Lockbox.
# @!method initialize(check_deposit_behavior: nil, description: nil, recipient_name: nil, request_options: {})
# @param check_deposit_behavior [Symbol, Increase::Models::LockboxUpdateParams::CheckDepositBehavior] This indicates if checks mailed to this lockbox will be deposited.
#
# @return [Symbol, Increase::Models::LockboxUpdateParams::Status, nil]
optional :status, enum: -> { Increase::LockboxUpdateParams::Status }

# @!method initialize(description: nil, recipient_name: nil, status: nil, request_options: {})
# @param description [String] The description you choose for the Lockbox.
#
# @param recipient_name [String] The recipient name you choose for the Lockbox.
#
# @param status [Symbol, Increase::Models::LockboxUpdateParams::Status] This indicates if checks can be sent to the Lockbox.
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]

# This indicates if checks can be sent to the Lockbox.
module Status
# This indicates if checks mailed to this lockbox will be deposited.
module CheckDepositBehavior
extend Increase::Internal::Type::Enum

# This Lockbox is active. Checks mailed to it will be deposited automatically.
ACTIVE = :active
# Checks mailed to this Lockbox will be deposited.
ENABLED = :enabled

# This Lockbox is inactive. Checks mailed to it will not be deposited.
INACTIVE = :inactive
# Checks mailed to this Lockbox will not be deposited.
DISABLED = :disabled

# @!method self.values
# @return [Array<Symbol>]
Expand Down
6 changes: 3 additions & 3 deletions lib/increase/resources/lockboxes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ def retrieve(lockbox_id, params = {})

# Update a Lockbox
#
# @overload update(lockbox_id, description: nil, recipient_name: nil, status: nil, request_options: {})
# @overload update(lockbox_id, check_deposit_behavior: nil, description: nil, recipient_name: nil, request_options: {})
#
# @param lockbox_id [String] The identifier of the Lockbox.
#
# @param check_deposit_behavior [Symbol, Increase::Models::LockboxUpdateParams::CheckDepositBehavior] This indicates if checks mailed to this lockbox will be deposited.
#
# @param description [String] The description you choose for the Lockbox.
#
# @param recipient_name [String] The recipient name you choose for the Lockbox.
#
# @param status [Symbol, Increase::Models::LockboxUpdateParams::Status] This indicates if checks can be sent to the Lockbox.
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
#
# @return [Increase::Models::Lockbox]
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.129.1"
VERSION = "1.130.0"
end
44 changes: 28 additions & 16 deletions rbi/increase/models/lockbox.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ module Increase
sig { params(address: Increase::Lockbox::Address::OrHash).void }
attr_writer :address

# Indicates if checks mailed to this lockbox will be deposited.
sig { returns(Increase::Lockbox::CheckDepositBehavior::TaggedSymbol) }
attr_accessor :check_deposit_behavior

# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Lockbox
# was created.
sig { returns(Time) }
Expand All @@ -41,10 +45,6 @@ module Increase
sig { returns(T.nilable(String)) }
attr_accessor :recipient_name

# This indicates if mail can be sent to this address.
sig { returns(Increase::Lockbox::Status::TaggedSymbol) }
attr_accessor :status

# A constant representing the object's type. For this resource it will always be
# `lockbox`.
sig { returns(Increase::Lockbox::Type::TaggedSymbol) }
Expand All @@ -57,11 +57,12 @@ module Increase
id: String,
account_id: String,
address: Increase::Lockbox::Address::OrHash,
check_deposit_behavior:
Increase::Lockbox::CheckDepositBehavior::OrSymbol,
created_at: Time,
description: T.nilable(String),
idempotency_key: T.nilable(String),
recipient_name: T.nilable(String),
status: Increase::Lockbox::Status::OrSymbol,
type: Increase::Lockbox::Type::OrSymbol
).returns(T.attached_class)
end
Expand All @@ -73,6 +74,8 @@ module Increase
account_id:,
# The mailing address for the Lockbox.
address:,
# Indicates if checks mailed to this lockbox will be deposited.
check_deposit_behavior:,
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Lockbox
# was created.
created_at:,
Expand All @@ -84,8 +87,6 @@ module Increase
idempotency_key:,
# The recipient name you choose for the Lockbox.
recipient_name:,
# This indicates if mail can be sent to this address.
status:,
# A constant representing the object's type. For this resource it will always be
# `lockbox`.
type:
Expand All @@ -98,11 +99,12 @@ module Increase
id: String,
account_id: String,
address: Increase::Lockbox::Address,
check_deposit_behavior:
Increase::Lockbox::CheckDepositBehavior::TaggedSymbol,
created_at: Time,
description: T.nilable(String),
idempotency_key: T.nilable(String),
recipient_name: T.nilable(String),
status: Increase::Lockbox::Status::TaggedSymbol,
type: Increase::Lockbox::Type::TaggedSymbol
}
)
Expand Down Expand Up @@ -191,21 +193,31 @@ module Increase
end
end

# This indicates if mail can be sent to this address.
module Status
# Indicates if checks mailed to this lockbox will be deposited.
module CheckDepositBehavior
extend Increase::Internal::Type::Enum

TaggedSymbol = T.type_alias { T.all(Symbol, Increase::Lockbox::Status) }
TaggedSymbol =
T.type_alias do
T.all(Symbol, Increase::Lockbox::CheckDepositBehavior)
end
OrSymbol = T.type_alias { T.any(Symbol, String) }

# This Lockbox is active. Checks mailed to it will be deposited automatically.
ACTIVE = T.let(:active, Increase::Lockbox::Status::TaggedSymbol)
# Checks mailed to this Lockbox will be deposited.
ENABLED =
T.let(:enabled, Increase::Lockbox::CheckDepositBehavior::TaggedSymbol)

# This Lockbox is inactive. Checks mailed to it will not be deposited.
INACTIVE = T.let(:inactive, Increase::Lockbox::Status::TaggedSymbol)
# Checks mailed to this Lockbox will not be deposited.
DISABLED =
T.let(
:disabled,
Increase::Lockbox::CheckDepositBehavior::TaggedSymbol
)

sig do
override.returns(T::Array[Increase::Lockbox::Status::TaggedSymbol])
override.returns(
T::Array[Increase::Lockbox::CheckDepositBehavior::TaggedSymbol]
)
end
def self.values
end
Expand Down
Loading