diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c523ce19f..c3c95522a 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.8.0" + ".": "1.9.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 36159e51e..724183797 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-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 diff --git a/CHANGELOG.md b/CHANGELOG.md index bfce7bbd8..5439cef17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Gemfile.lock b/Gemfile.lock index 2f4cc602d..69b726318 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.8.0) + increase (1.9.0) connection_pool GEM diff --git a/README.md b/README.md index 133b30ee4..5c7dd7c6a 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.8.0" +gem "increase", "~> 1.9.0" ``` diff --git a/lib/increase/models/physical_card.rb b/lib/increase/models/physical_card.rb index 28815bd1d..044818bde 100644 --- a/lib/increase/models/physical_card.rb +++ b/lib/increase/models/physical_card.rb @@ -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. # @@ -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. @@ -230,6 +245,26 @@ module Method # @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::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] + end + # The status of this shipment. # # @see Increase::Models::PhysicalCard::Shipment#status diff --git a/lib/increase/version.rb b/lib/increase/version.rb index b10090139..e4214dec8 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.8.0" + VERSION = "1.9.0" end diff --git a/rbi/increase/models/physical_card.rbi b/rbi/increase/models/physical_card.rbi index c8303f8eb..7cab233a9 100644 --- a/rbi/increase/models/physical_card.rbi +++ b/rbi/increase/models/physical_card.rbi @@ -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 @@ -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) @@ -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. @@ -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) } @@ -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 diff --git a/sig/increase/models/physical_card.rbs b/sig/increase/models/physical_card.rbs index 9c8aa4351..f2041a047 100644 --- a/sig/increase/models/physical_card.rbs +++ b/sig/increase/models/physical_card.rbs @@ -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? } @@ -81,6 +82,8 @@ 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? @@ -88,6 +91,7 @@ module Increase 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 @@ -95,6 +99,7 @@ module Increase 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? } @@ -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