diff --git a/.release-please-manifest.json b/.release-please-manifest.json index cce9d1c6d..c523ce19f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.7.0" + ".": "1.8.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index a3c642efc..36159e51e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index ecb7c56b1..bfce7bbd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Gemfile.lock b/Gemfile.lock index bb9ac1f95..2f4cc602d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.7.0) + increase (1.8.0) connection_pool GEM diff --git a/README.md b/README.md index 1754c0463..133b30ee4 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.7.0" +gem "increase", "~> 1.8.0" ``` diff --git a/lib/increase/models/physical_card_create_params.rb b/lib/increase/models/physical_card_create_params.rb index 5fa3976da..5d449ae74 100644 --- a/lib/increase/models/physical_card_create_params.rb +++ b/lib/increase/models/physical_card_create_params.rb @@ -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 @@ -179,6 +194,26 @@ module Method # @!method self.values # @return [Array] 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] + end end end end diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 8ecfed90d..b10090139 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.7.0" + VERSION = "1.8.0" end diff --git a/rbi/increase/models/physical_card_create_params.rbi b/rbi/increase/models/physical_card_create_params.rbi index a404c63e8..aa6ddb83d 100644 --- a/rbi/increase/models/physical_card_create_params.rbi +++ b/rbi/increase/models/physical_card_create_params.rbi @@ -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 @@ -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 @@ -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 diff --git a/sig/increase/models/physical_card_create_params.rbs b/sig/increase/models/physical_card_create_params.rbs index 28e596705..32d21a21f 100644 --- a/sig/increase/models/physical_card_create_params.rbs +++ b/sig/increase/models/physical_card_create_params.rbs @@ -54,7 +54,8 @@ 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 @@ -62,14 +63,22 @@ module Increase 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 = @@ -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