From 3ab5ee553ac93933b48ba84ca19f0ee3097e0af8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 22 Jul 2025 17:34:13 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +-- lib/increase/models/physical_card.rb | 19 +++++++++--- .../models/physical_card_create_params.rb | 26 +++++++++++++--- rbi/increase/models/physical_card.rbi | 21 +++++++++++-- .../models/physical_card_create_params.rbi | 30 +++++++++++++++++-- sig/increase/models/physical_card.rbs | 16 ++++++++-- .../models/physical_card_create_params.rbs | 18 +++++++++-- 7 files changed, 114 insertions(+), 20 deletions(-) diff --git a/.stats.yml b/.stats.yml index 02225f19a..4f46bd0e2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/lib/increase/models/physical_card.rb b/lib/increase/models/physical_card.rb index 044818bde..ac583d19c 100644 --- a/lib/increase/models/physical_card.rb +++ b/lib/increase/models/physical_card.rb @@ -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. # @@ -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. @@ -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. @@ -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. @@ -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] end diff --git a/lib/increase/models/physical_card_create_params.rb b/lib/increase/models/physical_card_create_params.rb index 5d449ae74..ba9288e98 100644 --- a/lib/increase/models/physical_card_create_params.rb +++ b/lib/increase/models/physical_card_create_params.rb @@ -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. # @@ -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. @@ -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. # @@ -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. @@ -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] end diff --git a/rbi/increase/models/physical_card.rbi b/rbi/increase/models/physical_card.rbi index 7cab233a9..0235e8b0a 100644 --- a/rbi/increase/models/physical_card.rbi +++ b/rbi/increase/models/physical_card.rbi @@ -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 @@ -278,7 +282,7 @@ 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 @@ -286,6 +290,7 @@ module Increase sig do params( city: String, + country: String, line1: String, line2: T.nilable(String), line3: T.nilable(String), @@ -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. @@ -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 @@ -316,6 +323,7 @@ module Increase override.returns( { city: String, + country: String, line1: String, line2: T.nilable(String), line3: T.nilable(String), @@ -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) @@ -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] diff --git a/rbi/increase/models/physical_card_create_params.rbi b/rbi/increase/models/physical_card_create_params.rbi index aa6ddb83d..45bdceb44 100644 --- a/rbi/increase/models/physical_card_create_params.rbi +++ b/rbi/increase/models/physical_card_create_params.rbi @@ -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 @@ -266,6 +276,7 @@ module Increase name: String, postal_code: String, state: String, + country: String, line2: String, line3: String, phone_number: String @@ -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. @@ -299,6 +315,7 @@ module Increase name: String, postal_code: String, state: String, + country: String, line2: String, line3: String, phone_number: String @@ -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, @@ -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[ diff --git a/sig/increase/models/physical_card.rbs b/sig/increase/models/physical_card.rbs index f2041a047..4695271f5 100644 --- a/sig/increase/models/physical_card.rbs +++ b/sig/increase/models/physical_card.rbs @@ -107,6 +107,7 @@ module Increase type address = { city: String, + country: String, :line1 => String, :line2 => String?, :line3 => String?, @@ -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? @@ -132,6 +135,7 @@ module Increase def initialize: ( city: String, + country: String, line1: String, line2: String?, line3: String?, @@ -142,6 +146,7 @@ module Increase def to_hash: -> { city: String, + country: String, :line1 => String, :line2 => String?, :line3 => String?, @@ -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. @@ -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 diff --git a/sig/increase/models/physical_card_create_params.rbs b/sig/increase/models/physical_card_create_params.rbs index 32d21a21f..32c54b2b3 100644 --- a/sig/increase/models/physical_card_create_params.rbs +++ b/sig/increase/models/physical_card_create_params.rbs @@ -88,6 +88,7 @@ module Increase name: String, postal_code: String, state: String, + country: String, :line2 => String, :line3 => String, phone_number: String @@ -104,6 +105,10 @@ module Increase attr_accessor state: String + attr_reader country: String? + + def country=: (String) -> String + attr_reader line2: String? def line2=: (String) -> String @@ -122,6 +127,7 @@ module Increase name: String, postal_code: String, state: String, + ?country: String, ?line2: String, ?line3: String, ?phone_number: String @@ -133,18 +139,23 @@ module Increase name: String, postal_code: String, state: String, + country: String, :line2 => String, :line3 => String, phone_number: String } 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. @@ -153,6 +164,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::PhysicalCardCreateParams::Shipment::method_] end From cee880a7bf59bf8ce44d4b831cc5d2984913f813 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 22 Jul 2025 17:34:35 +0000 Subject: [PATCH 2/2] release: 1.16.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/increase/version.rb | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 7ccfe12c9..bc845f32a 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.15.0" + ".": "1.16.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 01a94ea86..e0509d0a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Gemfile.lock b/Gemfile.lock index fd5b84eae..6a31d5c5a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.15.0) + increase (1.16.0) connection_pool GEM diff --git a/README.md b/README.md index 6d4650d8b..cc51b6355 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "increase", "~> 1.15.0" +gem "increase", "~> 1.16.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 0c9f1f0bf..bc24ec94b 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.15.0" + VERSION = "1.16.0" end