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.15.0"
".": "1.16.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: 202
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-43d34b4805f305e7e2c71644ade73722d053018acd6009352360e8a87cbe2250.yml
openapi_spec_hash: cfff23de89960d895052350a33499cf1
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f755cd0f7b44abb0c5ec9857c8ac47d778b3d753335d9a5cc3b73e4fdf9f2f96.yml
openapi_spec_hash: 16295ba5ba27744cd4f1464d640dadcf
config_hash: a185e9a72778cc4658ea73fb3a7f1354
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.16.0 (2025-07-22)

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

### Features

* **api:** api update ([3ab5ee5](https://github.com/Increase/increase-ruby/commit/3ab5ee553ac93933b48ba84ca19f0ee3097e0af8))

## 1.15.0 (2025-07-21)

Full Changelog: [v1.14.0...v1.15.0](https://github.com/Increase/increase-ruby/compare/v1.14.0...v1.15.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.15.0)
increase (1.16.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.15.0"
gem "increase", "~> 1.16.0"
```

<!-- x-release-please-end -->
Expand Down
19 changes: 15 additions & 4 deletions lib/increase/models/physical_card.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@ class Address < Increase::Internal::Type::BaseModel
# @return [String]
required :city, String

# @!attribute country
# The country of the shipping address.
#
# @return [String]
required :country, String

# @!attribute line1
# The first line of the shipping address.
#
Expand Down Expand Up @@ -203,16 +209,18 @@ class Address < Increase::Internal::Type::BaseModel
required :postal_code, String

# @!attribute state
# The US state of the shipping address.
# The state of the shipping address.
#
# @return [String]
required :state, String

# @!method initialize(city:, line1:, line2:, line3:, name:, postal_code:, state:)
# @!method initialize(city:, country:, line1:, line2:, line3:, name:, postal_code:, state:)
# The location to where the card's packing label is addressed.
#
# @param city [String] The city of the shipping address.
#
# @param country [String] The country of the shipping address.
#
# @param line1 [String] The first line of the shipping address.
#
# @param line2 [String, nil] The second line of the shipping address.
Expand All @@ -223,7 +231,7 @@ class Address < Increase::Internal::Type::BaseModel
#
# @param postal_code [String] The postal code of the shipping address.
#
# @param state [String] The US state of the shipping address.
# @param state [String] The state of the shipping address.
end

# The shipping method.
Expand All @@ -232,7 +240,7 @@ class Address < Increase::Internal::Type::BaseModel
module Method
extend Increase::Internal::Type::Enum

# USPS Post with tracking.
# USPS Post.
USPS = :usps

# FedEx Priority Overnight, no signature.
Expand All @@ -241,6 +249,9 @@ module Method
# FedEx 2-day.
FEDEX_2_DAY = :fedex_2_day

# DHL Worldwide Express, international shipping only.
DHL_WORLDWIDE_EXPRESS = :dhl_worldwide_express

# @!method self.values
# @return [Array<Symbol>]
end
Expand Down
26 changes: 22 additions & 4 deletions lib/increase/models/physical_card_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,20 @@ class Address < Increase::Internal::Type::BaseModel
required :postal_code, String

# @!attribute state
# The US state of the shipping address.
# The state of the shipping address.
#
# @return [String]
required :state, String

# @!attribute country
# The two-character ISO 3166-1 code of the country where the card should be
# shipped (e.g., `US`). Please reach out to
# [support@increase.com](mailto:support@increase.com) to ship cards
# internationally.
#
# @return [String, nil]
optional :country, String

# @!attribute line2
# The second line of the shipping address.
#
Expand All @@ -156,7 +165,11 @@ class Address < Increase::Internal::Type::BaseModel
# @return [String, nil]
optional :phone_number, String

# @!method initialize(city:, line1:, name:, postal_code:, state:, line2: nil, line3: nil, phone_number: nil)
# @!method initialize(city:, line1:, name:, postal_code:, state:, country: nil, line2: nil, line3: nil, phone_number: nil)
# Some parameter documentations has been truncated, see
# {Increase::Models::PhysicalCardCreateParams::Shipment::Address} for more
# details.
#
# The address to where the card should be shipped.
#
# @param city [String] The city of the shipping address.
Expand All @@ -167,7 +180,9 @@ class Address < Increase::Internal::Type::BaseModel
#
# @param postal_code [String] The postal code of the shipping address.
#
# @param state [String] The US state of the shipping address.
# @param state [String] The state of the shipping address.
#
# @param country [String] The two-character ISO 3166-1 code of the country where the card should be shippe
#
# @param line2 [String] The second line of the shipping address.
#
Expand All @@ -182,7 +197,7 @@ class Address < Increase::Internal::Type::BaseModel
module Method
extend Increase::Internal::Type::Enum

# USPS Post with tracking.
# USPS Post.
USPS = :usps

# FedEx Priority Overnight, no signature.
Expand All @@ -191,6 +206,9 @@ module Method
# FedEx 2-day.
FEDEX_2_DAY = :fedex_2_day

# DHL Worldwide Express, international shipping only.
DHL_WORLDWIDE_EXPRESS = :dhl_worldwide_express

# @!method self.values
# @return [Array<Symbol>]
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.15.0"
VERSION = "1.16.0"
end
21 changes: 18 additions & 3 deletions rbi/increase/models/physical_card.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ module Increase
sig { returns(String) }
attr_accessor :city

# The country of the shipping address.
sig { returns(String) }
attr_accessor :country

# The first line of the shipping address.
sig { returns(String) }
attr_accessor :line1
Expand All @@ -278,14 +282,15 @@ module Increase
sig { returns(String) }
attr_accessor :postal_code

# The US state of the shipping address.
# The state of the shipping address.
sig { returns(String) }
attr_accessor :state

# The location to where the card's packing label is addressed.
sig do
params(
city: String,
country: String,
line1: String,
line2: T.nilable(String),
line3: T.nilable(String),
Expand All @@ -297,6 +302,8 @@ module Increase
def self.new(
# The city of the shipping address.
city:,
# The country of the shipping address.
country:,
# The first line of the shipping address.
line1:,
# The second line of the shipping address.
Expand All @@ -307,7 +314,7 @@ module Increase
name:,
# The postal code of the shipping address.
postal_code:,
# The US state of the shipping address.
# The state of the shipping address.
state:
)
end
Expand All @@ -316,6 +323,7 @@ module Increase
override.returns(
{
city: String,
country: String,
line1: String,
line2: T.nilable(String),
line3: T.nilable(String),
Expand All @@ -339,7 +347,7 @@ module Increase
end
OrSymbol = T.type_alias { T.any(Symbol, String) }

# USPS Post with tracking.
# USPS Post.
USPS =
T.let(:usps, Increase::PhysicalCard::Shipment::Method::TaggedSymbol)

Expand All @@ -357,6 +365,13 @@ module Increase
Increase::PhysicalCard::Shipment::Method::TaggedSymbol
)

# DHL Worldwide Express, international shipping only.
DHL_WORLDWIDE_EXPRESS =
T.let(
:dhl_worldwide_express,
Increase::PhysicalCard::Shipment::Method::TaggedSymbol
)

sig do
override.returns(
T::Array[Increase::PhysicalCard::Shipment::Method::TaggedSymbol]
Expand Down
30 changes: 27 additions & 3 deletions rbi/increase/models/physical_card_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,20 @@ module Increase
sig { returns(String) }
attr_accessor :postal_code

# The US state of the shipping address.
# The state of the shipping address.
sig { returns(String) }
attr_accessor :state

# The two-character ISO 3166-1 code of the country where the card should be
# shipped (e.g., `US`). Please reach out to
# [support@increase.com](mailto:support@increase.com) to ship cards
# internationally.
sig { returns(T.nilable(String)) }
attr_reader :country

sig { params(country: String).void }
attr_writer :country

# The second line of the shipping address.
sig { returns(T.nilable(String)) }
attr_reader :line2
Expand Down Expand Up @@ -266,6 +276,7 @@ module Increase
name: String,
postal_code: String,
state: String,
country: String,
line2: String,
line3: String,
phone_number: String
Expand All @@ -280,8 +291,13 @@ module Increase
name:,
# The postal code of the shipping address.
postal_code:,
# The US state of the shipping address.
# The state of the shipping address.
state:,
# The two-character ISO 3166-1 code of the country where the card should be
# shipped (e.g., `US`). Please reach out to
# [support@increase.com](mailto:support@increase.com) to ship cards
# internationally.
country: nil,
# The second line of the shipping address.
line2: nil,
# The third line of the shipping address.
Expand All @@ -299,6 +315,7 @@ module Increase
name: String,
postal_code: String,
state: String,
country: String,
line2: String,
line3: String,
phone_number: String
Expand All @@ -322,7 +339,7 @@ module Increase
end
OrSymbol = T.type_alias { T.any(Symbol, String) }

# USPS Post with tracking.
# USPS Post.
USPS =
T.let(
:usps,
Expand All @@ -343,6 +360,13 @@ module Increase
Increase::PhysicalCardCreateParams::Shipment::Method::TaggedSymbol
)

# DHL Worldwide Express, international shipping only.
DHL_WORLDWIDE_EXPRESS =
T.let(
:dhl_worldwide_express,
Increase::PhysicalCardCreateParams::Shipment::Method::TaggedSymbol
)

sig do
override.returns(
T::Array[
Expand Down
16 changes: 14 additions & 2 deletions sig/increase/models/physical_card.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ module Increase
type address =
{
city: String,
country: String,
:line1 => String,
:line2 => String?,
:line3 => String?,
Expand All @@ -118,6 +119,8 @@ module Increase
class Address < Increase::Internal::Type::BaseModel
attr_accessor city: String

attr_accessor country: String

attr_accessor line1: String

attr_accessor line2: String?
Expand All @@ -132,6 +135,7 @@ module Increase

def initialize: (
city: String,
country: String,
line1: String,
line2: String?,
line3: String?,
Expand All @@ -142,6 +146,7 @@ module Increase

def to_hash: -> {
city: String,
country: String,
:line1 => String,
:line2 => String?,
:line3 => String?,
Expand All @@ -151,12 +156,16 @@ module Increase
}
end

type method_ = :usps | :fedex_priority_overnight | :fedex_2_day
type method_ =
:usps
| :fedex_priority_overnight
| :fedex_2_day
| :dhl_worldwide_express

module Method
extend Increase::Internal::Type::Enum

# USPS Post with tracking.
# USPS Post.
USPS: :usps

# FedEx Priority Overnight, no signature.
Expand All @@ -165,6 +174,9 @@ module Increase
# FedEx 2-day.
FEDEX_2_DAY: :fedex_2_day

# DHL Worldwide Express, international shipping only.
DHL_WORLDWIDE_EXPRESS: :dhl_worldwide_express

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

Expand Down
Loading