diff --git a/.release-please-manifest.json b/.release-please-manifest.json index ba231b076..397c4203e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.21.0" + ".": "1.22.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 931309613..9c25f999b 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-743c412709d3e4ca1ed8b1e2107036c9658afe40dd538c0576f64ae302087b4f.yml -openapi_spec_hash: 2a5da3cdf8dfb91dbd0f875cc180a3a1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-d7dabd389c8b061d384ec0a57cc7c8a426f12c87dabce0989af22a192a5fcfa9.yml +openapi_spec_hash: 35af34c9cffe387af0519e2df596d145 config_hash: a185e9a72778cc4658ea73fb3a7f1354 diff --git a/CHANGELOG.md b/CHANGELOG.md index 847a636f7..e5254ae3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 1.22.0 (2025-08-01) + +Full Changelog: [v1.21.0...v1.22.0](https://github.com/Increase/increase-ruby/compare/v1.21.0...v1.22.0) + +### Features + +* **api:** api update ([7be51b2](https://github.com/Increase/increase-ruby/commit/7be51b29bbd7029482f6048e2fefc70fbf2b4163)) + + +### Chores + +* **internal:** increase visibility of internal helper method ([ac6bbf0](https://github.com/Increase/increase-ruby/commit/ac6bbf06ad0adedc4d3ad1e6549ddf437db09995)) + ## 1.21.0 (2025-07-29) Full Changelog: [v1.20.0...v1.21.0](https://github.com/Increase/increase-ruby/compare/v1.20.0...v1.21.0) diff --git a/Gemfile.lock b/Gemfile.lock index 54667d266..6c89d1b72 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.21.0) + increase (1.22.0) connection_pool GEM diff --git a/README.md b/README.md index 53fac5a2c..3b0c903e4 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.21.0" +gem "increase", "~> 1.22.0" ``` diff --git a/lib/increase/internal/transport/base_client.rb b/lib/increase/internal/transport/base_client.rb index dfb167f77..5f39af181 100644 --- a/lib/increase/internal/transport/base_client.rb +++ b/lib/increase/internal/transport/base_client.rb @@ -365,7 +365,7 @@ def initialize( # # @raise [Increase::Errors::APIError] # @return [Array(Integer, Net::HTTPResponse, Enumerable)] - private def send_request(request, redirect_count:, retry_count:, send_retry_header:) + def send_request(request, redirect_count:, retry_count:, send_retry_header:) url, headers, max_retries, timeout = request.fetch_values(:url, :headers, :max_retries, :timeout) input = {**request.except(:timeout), deadline: Increase::Internal::Util.monotonic_secs + timeout} diff --git a/lib/increase/models/physical_card_profile_clone_params.rb b/lib/increase/models/physical_card_profile_clone_params.rb index 96cd8b122..6904c0e93 100644 --- a/lib/increase/models/physical_card_profile_clone_params.rb +++ b/lib/increase/models/physical_card_profile_clone_params.rb @@ -38,7 +38,13 @@ class PhysicalCardProfileCloneParams < Increase::Internal::Type::BaseModel # @return [Increase::Models::PhysicalCardProfileCloneParams::FrontText, nil] optional :front_text, -> { Increase::PhysicalCardProfileCloneParams::FrontText } - # @!method initialize(carrier_image_file_id: nil, contact_phone: nil, description: nil, front_image_file_id: nil, front_text: nil, request_options: {}) + # @!attribute program_id + # The identifier of the Program to use for the cloned Physical Card Profile. + # + # @return [String, nil] + optional :program_id, String + + # @!method initialize(carrier_image_file_id: nil, contact_phone: nil, description: nil, front_image_file_id: nil, front_text: nil, program_id: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Increase::Models::PhysicalCardProfileCloneParams} for more details. # @@ -52,6 +58,8 @@ class PhysicalCardProfileCloneParams < Increase::Internal::Type::BaseModel # # @param front_text [Increase::Models::PhysicalCardProfileCloneParams::FrontText] Text printed on the front of the card. Reach out to [support@increase.com](mailt # + # @param program_id [String] The identifier of the Program to use for the cloned Physical Card Profile. + # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] class FrontText < Increase::Internal::Type::BaseModel diff --git a/lib/increase/resources/physical_card_profiles.rb b/lib/increase/resources/physical_card_profiles.rb index a356ffbdc..f04fab883 100644 --- a/lib/increase/resources/physical_card_profiles.rb +++ b/lib/increase/resources/physical_card_profiles.rb @@ -115,7 +115,7 @@ def archive(physical_card_profile_id, params = {}) # # Clone a Physical Card Profile # - # @overload clone_(physical_card_profile_id, carrier_image_file_id: nil, contact_phone: nil, description: nil, front_image_file_id: nil, front_text: nil, request_options: {}) + # @overload clone_(physical_card_profile_id, carrier_image_file_id: nil, contact_phone: nil, description: nil, front_image_file_id: nil, front_text: nil, program_id: nil, request_options: {}) # # @param physical_card_profile_id [String] The identifier of the Physical Card Profile to clone. # @@ -129,6 +129,8 @@ def archive(physical_card_profile_id, params = {}) # # @param front_text [Increase::Models::PhysicalCardProfileCloneParams::FrontText] Text printed on the front of the card. Reach out to [support@increase.com](mailt # + # @param program_id [String] The identifier of the Program to use for the cloned Physical Card Profile. + # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [Increase::Models::PhysicalCardProfile] diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 7065731d1..5d1f9b701 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.21.0" + VERSION = "1.22.0" end diff --git a/rbi/increase/internal/transport/base_client.rbi b/rbi/increase/internal/transport/base_client.rbi index 26a61b880..84a7fe95d 100644 --- a/rbi/increase/internal/transport/base_client.rbi +++ b/rbi/increase/internal/transport/base_client.rbi @@ -213,7 +213,7 @@ module Increase send_retry_header: T::Boolean ).returns([Integer, Net::HTTPResponse, T::Enumerable[String]]) end - private def send_request( + def send_request( request, redirect_count:, retry_count:, diff --git a/rbi/increase/models/physical_card_profile_clone_params.rbi b/rbi/increase/models/physical_card_profile_clone_params.rbi index 0a4552d95..b58e9ab11 100644 --- a/rbi/increase/models/physical_card_profile_clone_params.rbi +++ b/rbi/increase/models/physical_card_profile_clone_params.rbi @@ -57,6 +57,13 @@ module Increase end attr_writer :front_text + # The identifier of the Program to use for the cloned Physical Card Profile. + sig { returns(T.nilable(String)) } + attr_reader :program_id + + sig { params(program_id: String).void } + attr_writer :program_id + sig do params( carrier_image_file_id: String, @@ -65,6 +72,7 @@ module Increase front_image_file_id: String, front_text: Increase::PhysicalCardProfileCloneParams::FrontText::OrHash, + program_id: String, request_options: Increase::RequestOptions::OrHash ).returns(T.attached_class) end @@ -80,6 +88,8 @@ module Increase # Text printed on the front of the card. Reach out to # [support@increase.com](mailto:support@increase.com) for more information. front_text: nil, + # The identifier of the Program to use for the cloned Physical Card Profile. + program_id: nil, request_options: {} ) end @@ -92,6 +102,7 @@ module Increase description: String, front_image_file_id: String, front_text: Increase::PhysicalCardProfileCloneParams::FrontText, + program_id: String, request_options: Increase::RequestOptions } ) diff --git a/rbi/increase/resources/physical_card_profiles.rbi b/rbi/increase/resources/physical_card_profiles.rbi index a3235dc7e..8184e3534 100644 --- a/rbi/increase/resources/physical_card_profiles.rbi +++ b/rbi/increase/resources/physical_card_profiles.rbi @@ -98,6 +98,7 @@ module Increase front_image_file_id: String, front_text: Increase::PhysicalCardProfileCloneParams::FrontText::OrHash, + program_id: String, request_options: Increase::RequestOptions::OrHash ).returns(Increase::PhysicalCardProfile) end @@ -115,6 +116,8 @@ module Increase # Text printed on the front of the card. Reach out to # [support@increase.com](mailto:support@increase.com) for more information. front_text: nil, + # The identifier of the Program to use for the cloned Physical Card Profile. + program_id: nil, request_options: {} ) end diff --git a/sig/increase/internal/transport/base_client.rbs b/sig/increase/internal/transport/base_client.rbs index b1682281e..28fbe09cc 100644 --- a/sig/increase/internal/transport/base_client.rbs +++ b/sig/increase/internal/transport/base_client.rbs @@ -99,7 +99,7 @@ module Increase retry_count: Integer ) -> Float - private def send_request: ( + def send_request: ( Increase::Internal::Transport::BaseClient::request_input request, redirect_count: Integer, retry_count: Integer, diff --git a/sig/increase/models/physical_card_profile_clone_params.rbs b/sig/increase/models/physical_card_profile_clone_params.rbs index ee265b14a..e3e71469d 100644 --- a/sig/increase/models/physical_card_profile_clone_params.rbs +++ b/sig/increase/models/physical_card_profile_clone_params.rbs @@ -6,7 +6,8 @@ module Increase contact_phone: String, description: String, front_image_file_id: String, - front_text: Increase::PhysicalCardProfileCloneParams::FrontText + front_text: Increase::PhysicalCardProfileCloneParams::FrontText, + program_id: String } & Increase::Internal::Type::request_parameters @@ -36,12 +37,17 @@ module Increase Increase::PhysicalCardProfileCloneParams::FrontText ) -> Increase::PhysicalCardProfileCloneParams::FrontText + attr_reader program_id: String? + + def program_id=: (String) -> String + def initialize: ( ?carrier_image_file_id: String, ?contact_phone: String, ?description: String, ?front_image_file_id: String, ?front_text: Increase::PhysicalCardProfileCloneParams::FrontText, + ?program_id: String, ?request_options: Increase::request_opts ) -> void @@ -51,6 +57,7 @@ module Increase description: String, front_image_file_id: String, front_text: Increase::PhysicalCardProfileCloneParams::FrontText, + program_id: String, request_options: Increase::RequestOptions } diff --git a/sig/increase/resources/physical_card_profiles.rbs b/sig/increase/resources/physical_card_profiles.rbs index d397a39e8..99fb1a17b 100644 --- a/sig/increase/resources/physical_card_profiles.rbs +++ b/sig/increase/resources/physical_card_profiles.rbs @@ -36,6 +36,7 @@ module Increase ?description: String, ?front_image_file_id: String, ?front_text: Increase::PhysicalCardProfileCloneParams::FrontText, + ?program_id: String, ?request_options: Increase::request_opts ) -> Increase::PhysicalCardProfile