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.7.0"
".": "1.8.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-86936f20d6eab34ef44aed8b323cea5043d733402022fd34c7e24e2234875306.yml
openapi_spec_hash: cb262d222b0031cce34498409149e4ae
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e6901efc888494eb4da789fe5dda70b211de1920b0d7f234bd17fcd35ce33fde.yml
openapi_spec_hash: 9691deaf77e6a5ac9fef7d7775d6426e
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.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)

### Features

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

## 1.7.0 (2025-07-02)

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

<!-- x-release-please-end -->
Expand Down
37 changes: 36 additions & 1 deletion lib/increase/models/physical_card_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,27 @@ class Shipment < Increase::Internal::Type::BaseModel
},
api_name: :method

# @!method initialize(address:, 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::PhysicalCardCreateParams::Shipment::Schedule, nil]
optional :schedule, enum: -> { Increase::PhysicalCardCreateParams::Shipment::Schedule }

# @!method initialize(address:, method_:, schedule: nil)
# Some parameter documentations has been truncated, see
# {Increase::Models::PhysicalCardCreateParams::Shipment} for more details.
#
# The details used to ship this physical card.
#
# @param address [Increase::Models::PhysicalCardCreateParams::Shipment::Address] The address to where the card should be shipped.
#
# @param method_ [Symbol, Increase::Models::PhysicalCardCreateParams::Shipment::Method] The shipping method to use.
#
# @param schedule [Symbol, Increase::Models::PhysicalCardCreateParams::Shipment::Schedule] When this physical card should be produced by the card printer. The default time

# @see Increase::Models::PhysicalCardCreateParams::Shipment#address
class Address < Increase::Internal::Type::BaseModel
Expand Down Expand Up @@ -179,6 +194,26 @@ module Method
# @!method self.values
# @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::PhysicalCardCreateParams::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
end
end
end
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.7.0"
VERSION = "1.8.0"
end
80 changes: 77 additions & 3 deletions rbi/increase/models/physical_card_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -147,20 +147,50 @@ module Increase
end
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(
T.nilable(
Increase::PhysicalCardCreateParams::Shipment::Schedule::OrSymbol
)
)
end
attr_reader :schedule

sig do
params(
schedule:
Increase::PhysicalCardCreateParams::Shipment::Schedule::OrSymbol
).void
end
attr_writer :schedule

# The details used to ship this physical card.
sig do
params(
address:
Increase::PhysicalCardCreateParams::Shipment::Address::OrHash,
method_:
Increase::PhysicalCardCreateParams::Shipment::Method::OrSymbol
Increase::PhysicalCardCreateParams::Shipment::Method::OrSymbol,
schedule:
Increase::PhysicalCardCreateParams::Shipment::Schedule::OrSymbol
).returns(T.attached_class)
end
def self.new(
# The address to where the card should be shipped.
address:,
# The shipping method to use.
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: nil
)
end

Expand All @@ -169,7 +199,9 @@ module Increase
{
address: Increase::PhysicalCardCreateParams::Shipment::Address,
method_:
Increase::PhysicalCardCreateParams::Shipment::Method::OrSymbol
Increase::PhysicalCardCreateParams::Shipment::Method::OrSymbol,
schedule:
Increase::PhysicalCardCreateParams::Shipment::Schedule::OrSymbol
}
)
end
Expand Down Expand Up @@ -321,6 +353,48 @@ module Increase
def self.values
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::PhysicalCardCreateParams::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::PhysicalCardCreateParams::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::PhysicalCardCreateParams::Shipment::Schedule::TaggedSymbol
)

sig do
override.returns(
T::Array[
Increase::PhysicalCardCreateParams::Shipment::Schedule::TaggedSymbol
]
)
end
def self.values
end
end
end
end
end
Expand Down
29 changes: 26 additions & 3 deletions sig/increase/models/physical_card_create_params.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,31 @@ module Increase
type shipment =
{
address: Increase::PhysicalCardCreateParams::Shipment::Address,
method_: Increase::Models::PhysicalCardCreateParams::Shipment::method_
method_: Increase::Models::PhysicalCardCreateParams::Shipment::method_,
schedule: Increase::Models::PhysicalCardCreateParams::Shipment::schedule
}

class Shipment < Increase::Internal::Type::BaseModel
attr_accessor address: Increase::PhysicalCardCreateParams::Shipment::Address

attr_accessor method_: Increase::Models::PhysicalCardCreateParams::Shipment::method_

attr_reader schedule: Increase::Models::PhysicalCardCreateParams::Shipment::schedule?

def schedule=: (
Increase::Models::PhysicalCardCreateParams::Shipment::schedule
) -> Increase::Models::PhysicalCardCreateParams::Shipment::schedule

def initialize: (
address: Increase::PhysicalCardCreateParams::Shipment::Address,
method_: Increase::Models::PhysicalCardCreateParams::Shipment::method_
method_: Increase::Models::PhysicalCardCreateParams::Shipment::method_,
?schedule: Increase::Models::PhysicalCardCreateParams::Shipment::schedule
) -> void

def to_hash: -> {
address: Increase::PhysicalCardCreateParams::Shipment::Address,
method_: Increase::Models::PhysicalCardCreateParams::Shipment::method_
method_: Increase::Models::PhysicalCardCreateParams::Shipment::method_,
schedule: Increase::Models::PhysicalCardCreateParams::Shipment::schedule
}

type address =
Expand Down Expand Up @@ -146,6 +155,20 @@ module Increase

def self?.values: -> ::Array[Increase::Models::PhysicalCardCreateParams::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::PhysicalCardCreateParams::Shipment::schedule]
end
end
end
end
Expand Down