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.8.0"
".": "1.9.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-e6901efc888494eb4da789fe5dda70b211de1920b0d7f234bd17fcd35ce33fde.yml
openapi_spec_hash: 9691deaf77e6a5ac9fef7d7775d6426e
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-aacfe98109b9754d30676d3e95714223190bca5543e8060a90d7b946589f1c16.yml
openapi_spec_hash: d6a090b406bd5936e2d939ce9b9e061b
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.9.0 (2025-07-04)

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

### Features

* **api:** api update ([39cfff5](https://github.com/Increase/increase-ruby/commit/39cfff5f5bbb36f2ac638c05b3259c3a76a9fe08))

## 1.8.0 (2025-07-04)

Full Changelog: [v1.7.0...v1.8.0](https://github.com/Increase/increase-ruby/compare/v1.7.0...v1.8.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.8.0)
increase (1.9.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.8.0"
gem "increase", "~> 1.9.0"
```

<!-- x-release-please-end -->
Expand Down
37 changes: 36 additions & 1 deletion lib/increase/models/physical_card.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,16 @@ class Shipment < Increase::Internal::Type::BaseModel
# @return [Symbol, Increase::Models::PhysicalCard::Shipment::Method]
required :method_, enum: -> { Increase::PhysicalCard::Shipment::Method }, api_name: :method

# @!attribute schedule
# When this physical card should be produced by the card printer. The default
# timeline is the day after the card printer receives the order, except for
# `FEDEX_PRIORITY_OVERNIGHT` cards, which default to `SAME_DAY`. To use faster
# production methods, please reach out to
# [support@increase.com](mailto:support@increase.com).
#
# @return [Symbol, Increase::Models::PhysicalCard::Shipment::Schedule]
required :schedule, enum: -> { Increase::PhysicalCard::Shipment::Schedule }

# @!attribute status
# The status of this shipment.
#
Expand All @@ -138,13 +148,18 @@ class Shipment < Increase::Internal::Type::BaseModel
# @return [Increase::Models::PhysicalCard::Shipment::Tracking, nil]
required :tracking, -> { Increase::PhysicalCard::Shipment::Tracking }, nil?: true

# @!method initialize(address:, method_:, status:, tracking:)
# @!method initialize(address:, method_:, schedule:, status:, tracking:)
# Some parameter documentations has been truncated, see
# {Increase::Models::PhysicalCard::Shipment} for more details.
#
# The details used to ship this physical card.
#
# @param address [Increase::Models::PhysicalCard::Shipment::Address] The location to where the card's packing label is addressed.
#
# @param method_ [Symbol, Increase::Models::PhysicalCard::Shipment::Method] The shipping method.
#
# @param schedule [Symbol, Increase::Models::PhysicalCard::Shipment::Schedule] When this physical card should be produced by the card printer. The default time
#
# @param status [Symbol, Increase::Models::PhysicalCard::Shipment::Status] The status of this shipment.
#
# @param tracking [Increase::Models::PhysicalCard::Shipment::Tracking, nil] Tracking details for the shipment.
Expand Down Expand Up @@ -230,6 +245,26 @@ module Method
# @return [Array<Symbol>]
end

# When this physical card should be produced by the card printer. The default
# timeline is the day after the card printer receives the order, except for
# `FEDEX_PRIORITY_OVERNIGHT` cards, which default to `SAME_DAY`. To use faster
# production methods, please reach out to
# [support@increase.com](mailto:support@increase.com).
#
# @see Increase::Models::PhysicalCard::Shipment#schedule
module Schedule
extend Increase::Internal::Type::Enum

# The physical card will be shipped one business day after the order is received by the card printer. A card that is submitted to Increase on a Monday evening (Pacific Time) will ship out on Wednesday.
NEXT_DAY = :next_day

# The physical card will be shipped on the same business day that the order is received by the card printer. A card that is submitted to Increase on a Monday evening (Pacific Time) will ship out on Tuesday.
SAME_DAY = :same_day

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

# The status of this shipment.
#
# @see Increase::Models::PhysicalCard::Shipment#status
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.8.0"
VERSION = "1.9.0"
end
56 changes: 56 additions & 0 deletions rbi/increase/models/physical_card.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,16 @@ module Increase
sig { returns(Increase::PhysicalCard::Shipment::Method::TaggedSymbol) }
attr_accessor :method_

# When this physical card should be produced by the card printer. The default
# timeline is the day after the card printer receives the order, except for
# `FEDEX_PRIORITY_OVERNIGHT` cards, which default to `SAME_DAY`. To use faster
# production methods, please reach out to
# [support@increase.com](mailto:support@increase.com).
sig do
returns(Increase::PhysicalCard::Shipment::Schedule::TaggedSymbol)
end
attr_accessor :schedule

# The status of this shipment.
sig { returns(Increase::PhysicalCard::Shipment::Status::TaggedSymbol) }
attr_accessor :status
Expand All @@ -196,6 +206,7 @@ module Increase
params(
address: Increase::PhysicalCard::Shipment::Address::OrHash,
method_: Increase::PhysicalCard::Shipment::Method::OrSymbol,
schedule: Increase::PhysicalCard::Shipment::Schedule::OrSymbol,
status: Increase::PhysicalCard::Shipment::Status::OrSymbol,
tracking:
T.nilable(Increase::PhysicalCard::Shipment::Tracking::OrHash)
Expand All @@ -206,6 +217,12 @@ module Increase
address:,
# The shipping method.
method_:,
# When this physical card should be produced by the card printer. The default
# timeline is the day after the card printer receives the order, except for
# `FEDEX_PRIORITY_OVERNIGHT` cards, which default to `SAME_DAY`. To use faster
# production methods, please reach out to
# [support@increase.com](mailto:support@increase.com).
schedule:,
# The status of this shipment.
status:,
# Tracking details for the shipment.
Expand All @@ -218,6 +235,8 @@ module Increase
{
address: Increase::PhysicalCard::Shipment::Address,
method_: Increase::PhysicalCard::Shipment::Method::TaggedSymbol,
schedule:
Increase::PhysicalCard::Shipment::Schedule::TaggedSymbol,
status: Increase::PhysicalCard::Shipment::Status::TaggedSymbol,
tracking: T.nilable(Increase::PhysicalCard::Shipment::Tracking)
}
Expand Down Expand Up @@ -347,6 +366,43 @@ module Increase
end
end

# When this physical card should be produced by the card printer. The default
# timeline is the day after the card printer receives the order, except for
# `FEDEX_PRIORITY_OVERNIGHT` cards, which default to `SAME_DAY`. To use faster
# production methods, please reach out to
# [support@increase.com](mailto:support@increase.com).
module Schedule
extend Increase::Internal::Type::Enum

TaggedSymbol =
T.type_alias do
T.all(Symbol, Increase::PhysicalCard::Shipment::Schedule)
end
OrSymbol = T.type_alias { T.any(Symbol, String) }

# The physical card will be shipped one business day after the order is received by the card printer. A card that is submitted to Increase on a Monday evening (Pacific Time) will ship out on Wednesday.
NEXT_DAY =
T.let(
:next_day,
Increase::PhysicalCard::Shipment::Schedule::TaggedSymbol
)

# The physical card will be shipped on the same business day that the order is received by the card printer. A card that is submitted to Increase on a Monday evening (Pacific Time) will ship out on Tuesday.
SAME_DAY =
T.let(
:same_day,
Increase::PhysicalCard::Shipment::Schedule::TaggedSymbol
)

sig do
override.returns(
T::Array[Increase::PhysicalCard::Shipment::Schedule::TaggedSymbol]
)
end
def self.values
end
end

# The status of this shipment.
module Status
extend Increase::Internal::Type::Enum
Expand Down
19 changes: 19 additions & 0 deletions sig/increase/models/physical_card.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ module Increase
{
address: Increase::PhysicalCard::Shipment::Address,
method_: Increase::Models::PhysicalCard::Shipment::method_,
schedule: Increase::Models::PhysicalCard::Shipment::schedule,
status: Increase::Models::PhysicalCard::Shipment::status,
tracking: Increase::PhysicalCard::Shipment::Tracking?
}
Expand All @@ -81,20 +82,24 @@ module Increase

attr_accessor method_: Increase::Models::PhysicalCard::Shipment::method_

attr_accessor schedule: Increase::Models::PhysicalCard::Shipment::schedule

attr_accessor status: Increase::Models::PhysicalCard::Shipment::status

attr_accessor tracking: Increase::PhysicalCard::Shipment::Tracking?

def initialize: (
address: Increase::PhysicalCard::Shipment::Address,
method_: Increase::Models::PhysicalCard::Shipment::method_,
schedule: Increase::Models::PhysicalCard::Shipment::schedule,
status: Increase::Models::PhysicalCard::Shipment::status,
tracking: Increase::PhysicalCard::Shipment::Tracking?
) -> void

def to_hash: -> {
address: Increase::PhysicalCard::Shipment::Address,
method_: Increase::Models::PhysicalCard::Shipment::method_,
schedule: Increase::Models::PhysicalCard::Shipment::schedule,
status: Increase::Models::PhysicalCard::Shipment::status,
tracking: Increase::PhysicalCard::Shipment::Tracking?
}
Expand Down Expand Up @@ -163,6 +168,20 @@ module Increase
def self?.values: -> ::Array[Increase::Models::PhysicalCard::Shipment::method_]
end

type schedule = :next_day | :same_day

module Schedule
extend Increase::Internal::Type::Enum

# The physical card will be shipped one business day after the order is received by the card printer. A card that is submitted to Increase on a Monday evening (Pacific Time) will ship out on Wednesday.
NEXT_DAY: :next_day

# The physical card will be shipped on the same business day that the order is received by the card printer. A card that is submitted to Increase on a Monday evening (Pacific Time) will ship out on Tuesday.
SAME_DAY: :same_day

def self?.values: -> ::Array[Increase::Models::PhysicalCard::Shipment::schedule]
end

type status =
:pending
| :canceled
Expand Down