From aa16efb8412fe7b6d5c61b9c7b541476dd0bd049 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 26 Sep 2025 20:55:38 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- .../physical_card_profile_create_params.rb | 64 +------- .../resources/physical_card_profiles.rb | 10 +- .../physical_card_profile_create_params.rbi | 144 ------------------ .../resources/physical_card_profiles.rbi | 16 -- .../physical_card_profile_create_params.rbs | 60 -------- .../resources/physical_card_profiles.rbs | 4 - 7 files changed, 4 insertions(+), 298 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7badc572d..bfdb060b4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 214 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-911c3719c8d84e1119e71e0cf93ae1f2c52f42529e56671731f07273feb5ac88.yml -openapi_spec_hash: 462c4c10440c2f87e0624d8c25a89b75 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-fed69da53ddecc70b62e9a7331c3b561ef0a14c385d4ac5a03d74177c2ea21cd.yml +openapi_spec_hash: 0a90c512d3fd1348b78af6f98435c31a config_hash: a143293c5450ae8f52acad08f3102575 diff --git a/lib/increase/models/physical_card_profile_create_params.rb b/lib/increase/models/physical_card_profile_create_params.rb index 7c19d61ff..e4fa0534a 100644 --- a/lib/increase/models/physical_card_profile_create_params.rb +++ b/lib/increase/models/physical_card_profile_create_params.rb @@ -37,32 +37,6 @@ class PhysicalCardProfileCreateParams < Increase::Internal::Type::BaseModel # @return [String] required :program_id, String - # @!attribute back_color - # The color of the text on the back of the card. Defaults to "black". - # - # @return [Symbol, Increase::Models::PhysicalCardProfileCreateParams::BackColor, nil] - optional :back_color, enum: -> { Increase::PhysicalCardProfileCreateParams::BackColor } - - # @!attribute card_stock_reference - # A reference ID provided by the fulfillment provider for the card stock used. - # Only used if you've ordered card stock separately. - # - # @return [String, nil] - optional :card_stock_reference, String - - # @!attribute carrier_stock_reference - # A reference ID provided by the fulfillment provider for the carrier stock used. - # Only used if you've ordered carrier stock separately. - # - # @return [String, nil] - optional :carrier_stock_reference, String - - # @!attribute front_color - # The color of the design on the front of the card. Defaults to "black". - # - # @return [Symbol, Increase::Models::PhysicalCardProfileCreateParams::FrontColor, nil] - optional :front_color, enum: -> { Increase::PhysicalCardProfileCreateParams::FrontColor } - # @!attribute front_text # Text printed on the front of the card. Reach out to # [support@increase.com](mailto:support@increase.com) for more information. @@ -70,7 +44,7 @@ class PhysicalCardProfileCreateParams < Increase::Internal::Type::BaseModel # @return [Increase::Models::PhysicalCardProfileCreateParams::FrontText, nil] optional :front_text, -> { Increase::PhysicalCardProfileCreateParams::FrontText } - # @!method initialize(carrier_image_file_id:, contact_phone:, description:, front_image_file_id:, program_id:, back_color: nil, card_stock_reference: nil, carrier_stock_reference: nil, front_color: nil, front_text: nil, request_options: {}) + # @!method initialize(carrier_image_file_id:, contact_phone:, description:, front_image_file_id:, program_id:, front_text: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Increase::Models::PhysicalCardProfileCreateParams} for more details. # @@ -84,46 +58,10 @@ class PhysicalCardProfileCreateParams < Increase::Internal::Type::BaseModel # # @param program_id [String] The identifier for the Program that this Physical Card Profile falls under. # - # @param back_color [Symbol, Increase::Models::PhysicalCardProfileCreateParams::BackColor] The color of the text on the back of the card. Defaults to "black". - # - # @param card_stock_reference [String] A reference ID provided by the fulfillment provider for the card stock used. Onl - # - # @param carrier_stock_reference [String] A reference ID provided by the fulfillment provider for the carrier stock used. - # - # @param front_color [Symbol, Increase::Models::PhysicalCardProfileCreateParams::FrontColor] The color of the design on the front of the card. Defaults to "black". - # # @param front_text [Increase::Models::PhysicalCardProfileCreateParams::FrontText] Text printed on the front of the card. Reach out to [support@increase.com](mailt # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] - # The color of the text on the back of the card. Defaults to "black". - module BackColor - extend Increase::Internal::Type::Enum - - # Black personalization color. - BLACK = :black - - # White personalization color. - WHITE = :white - - # @!method self.values - # @return [Array] - end - - # The color of the design on the front of the card. Defaults to "black". - module FrontColor - extend Increase::Internal::Type::Enum - - # Black personalization color. - BLACK = :black - - # White personalization color. - WHITE = :white - - # @!method self.values - # @return [Array] - end - class FrontText < Increase::Internal::Type::BaseModel # @!attribute line1 # The first line of text on the front of the card. diff --git a/lib/increase/resources/physical_card_profiles.rb b/lib/increase/resources/physical_card_profiles.rb index 195016dc2..f04fab883 100644 --- a/lib/increase/resources/physical_card_profiles.rb +++ b/lib/increase/resources/physical_card_profiles.rb @@ -8,7 +8,7 @@ class PhysicalCardProfiles # # Create a Physical Card Profile # - # @overload create(carrier_image_file_id:, contact_phone:, description:, front_image_file_id:, program_id:, back_color: nil, card_stock_reference: nil, carrier_stock_reference: nil, front_color: nil, front_text: nil, request_options: {}) + # @overload create(carrier_image_file_id:, contact_phone:, description:, front_image_file_id:, program_id:, front_text: nil, request_options: {}) # # @param carrier_image_file_id [String] The identifier of the File containing the physical card's carrier image. # @@ -20,14 +20,6 @@ class PhysicalCardProfiles # # @param program_id [String] The identifier for the Program that this Physical Card Profile falls under. # - # @param back_color [Symbol, Increase::Models::PhysicalCardProfileCreateParams::BackColor] The color of the text on the back of the card. Defaults to "black". - # - # @param card_stock_reference [String] A reference ID provided by the fulfillment provider for the card stock used. Onl - # - # @param carrier_stock_reference [String] A reference ID provided by the fulfillment provider for the carrier stock used. - # - # @param front_color [Symbol, Increase::Models::PhysicalCardProfileCreateParams::FrontColor] The color of the design on the front of the card. Defaults to "black". - # # @param front_text [Increase::Models::PhysicalCardProfileCreateParams::FrontText] Text printed on the front of the card. Reach out to [support@increase.com](mailt # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] diff --git a/rbi/increase/models/physical_card_profile_create_params.rbi b/rbi/increase/models/physical_card_profile_create_params.rbi index 2295b93c2..2f9388a6d 100644 --- a/rbi/increase/models/physical_card_profile_create_params.rbi +++ b/rbi/increase/models/physical_card_profile_create_params.rbi @@ -34,58 +34,6 @@ module Increase sig { returns(String) } attr_accessor :program_id - # The color of the text on the back of the card. Defaults to "black". - sig do - returns( - T.nilable( - Increase::PhysicalCardProfileCreateParams::BackColor::OrSymbol - ) - ) - end - attr_reader :back_color - - sig do - params( - back_color: - Increase::PhysicalCardProfileCreateParams::BackColor::OrSymbol - ).void - end - attr_writer :back_color - - # A reference ID provided by the fulfillment provider for the card stock used. - # Only used if you've ordered card stock separately. - sig { returns(T.nilable(String)) } - attr_reader :card_stock_reference - - sig { params(card_stock_reference: String).void } - attr_writer :card_stock_reference - - # A reference ID provided by the fulfillment provider for the carrier stock used. - # Only used if you've ordered carrier stock separately. - sig { returns(T.nilable(String)) } - attr_reader :carrier_stock_reference - - sig { params(carrier_stock_reference: String).void } - attr_writer :carrier_stock_reference - - # The color of the design on the front of the card. Defaults to "black". - sig do - returns( - T.nilable( - Increase::PhysicalCardProfileCreateParams::FrontColor::OrSymbol - ) - ) - end - attr_reader :front_color - - sig do - params( - front_color: - Increase::PhysicalCardProfileCreateParams::FrontColor::OrSymbol - ).void - end - attr_writer :front_color - # Text printed on the front of the card. Reach out to # [support@increase.com](mailto:support@increase.com) for more information. sig do @@ -108,12 +56,6 @@ module Increase description: String, front_image_file_id: String, program_id: String, - back_color: - Increase::PhysicalCardProfileCreateParams::BackColor::OrSymbol, - card_stock_reference: String, - carrier_stock_reference: String, - front_color: - Increase::PhysicalCardProfileCreateParams::FrontColor::OrSymbol, front_text: Increase::PhysicalCardProfileCreateParams::FrontText::OrHash, request_options: Increase::RequestOptions::OrHash @@ -130,16 +72,6 @@ module Increase front_image_file_id:, # The identifier for the Program that this Physical Card Profile falls under. program_id:, - # The color of the text on the back of the card. Defaults to "black". - back_color: nil, - # A reference ID provided by the fulfillment provider for the card stock used. - # Only used if you've ordered card stock separately. - card_stock_reference: nil, - # A reference ID provided by the fulfillment provider for the carrier stock used. - # Only used if you've ordered carrier stock separately. - carrier_stock_reference: nil, - # The color of the design on the front of the card. Defaults to "black". - front_color: nil, # Text printed on the front of the card. Reach out to # [support@increase.com](mailto:support@increase.com) for more information. front_text: nil, @@ -155,12 +87,6 @@ module Increase description: String, front_image_file_id: String, program_id: String, - back_color: - Increase::PhysicalCardProfileCreateParams::BackColor::OrSymbol, - card_stock_reference: String, - carrier_stock_reference: String, - front_color: - Increase::PhysicalCardProfileCreateParams::FrontColor::OrSymbol, front_text: Increase::PhysicalCardProfileCreateParams::FrontText, request_options: Increase::RequestOptions } @@ -169,76 +95,6 @@ module Increase def to_hash end - # The color of the text on the back of the card. Defaults to "black". - module BackColor - extend Increase::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Increase::PhysicalCardProfileCreateParams::BackColor) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - # Black personalization color. - BLACK = - T.let( - :black, - Increase::PhysicalCardProfileCreateParams::BackColor::TaggedSymbol - ) - - # White personalization color. - WHITE = - T.let( - :white, - Increase::PhysicalCardProfileCreateParams::BackColor::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Increase::PhysicalCardProfileCreateParams::BackColor::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The color of the design on the front of the card. Defaults to "black". - module FrontColor - extend Increase::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Increase::PhysicalCardProfileCreateParams::FrontColor) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - # Black personalization color. - BLACK = - T.let( - :black, - Increase::PhysicalCardProfileCreateParams::FrontColor::TaggedSymbol - ) - - # White personalization color. - WHITE = - T.let( - :white, - Increase::PhysicalCardProfileCreateParams::FrontColor::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Increase::PhysicalCardProfileCreateParams::FrontColor::TaggedSymbol - ] - ) - end - def self.values - end - end - class FrontText < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/resources/physical_card_profiles.rbi b/rbi/increase/resources/physical_card_profiles.rbi index 23f3baa13..8184e3534 100644 --- a/rbi/increase/resources/physical_card_profiles.rbi +++ b/rbi/increase/resources/physical_card_profiles.rbi @@ -11,12 +11,6 @@ module Increase description: String, front_image_file_id: String, program_id: String, - back_color: - Increase::PhysicalCardProfileCreateParams::BackColor::OrSymbol, - card_stock_reference: String, - carrier_stock_reference: String, - front_color: - Increase::PhysicalCardProfileCreateParams::FrontColor::OrSymbol, front_text: Increase::PhysicalCardProfileCreateParams::FrontText::OrHash, request_options: Increase::RequestOptions::OrHash @@ -33,16 +27,6 @@ module Increase front_image_file_id:, # The identifier for the Program that this Physical Card Profile falls under. program_id:, - # The color of the text on the back of the card. Defaults to "black". - back_color: nil, - # A reference ID provided by the fulfillment provider for the card stock used. - # Only used if you've ordered card stock separately. - card_stock_reference: nil, - # A reference ID provided by the fulfillment provider for the carrier stock used. - # Only used if you've ordered carrier stock separately. - carrier_stock_reference: nil, - # The color of the design on the front of the card. Defaults to "black". - front_color: nil, # Text printed on the front of the card. Reach out to # [support@increase.com](mailto:support@increase.com) for more information. front_text: nil, diff --git a/sig/increase/models/physical_card_profile_create_params.rbs b/sig/increase/models/physical_card_profile_create_params.rbs index 49b7b2184..ce9736951 100644 --- a/sig/increase/models/physical_card_profile_create_params.rbs +++ b/sig/increase/models/physical_card_profile_create_params.rbs @@ -7,10 +7,6 @@ module Increase description: String, front_image_file_id: String, program_id: String, - back_color: Increase::Models::PhysicalCardProfileCreateParams::back_color, - card_stock_reference: String, - carrier_stock_reference: String, - front_color: Increase::Models::PhysicalCardProfileCreateParams::front_color, front_text: Increase::PhysicalCardProfileCreateParams::FrontText } & Increase::Internal::Type::request_parameters @@ -29,26 +25,6 @@ module Increase attr_accessor program_id: String - attr_reader back_color: Increase::Models::PhysicalCardProfileCreateParams::back_color? - - def back_color=: ( - Increase::Models::PhysicalCardProfileCreateParams::back_color - ) -> Increase::Models::PhysicalCardProfileCreateParams::back_color - - attr_reader card_stock_reference: String? - - def card_stock_reference=: (String) -> String - - attr_reader carrier_stock_reference: String? - - def carrier_stock_reference=: (String) -> String - - attr_reader front_color: Increase::Models::PhysicalCardProfileCreateParams::front_color? - - def front_color=: ( - Increase::Models::PhysicalCardProfileCreateParams::front_color - ) -> Increase::Models::PhysicalCardProfileCreateParams::front_color - attr_reader front_text: Increase::PhysicalCardProfileCreateParams::FrontText? def front_text=: ( @@ -61,10 +37,6 @@ module Increase description: String, front_image_file_id: String, program_id: String, - ?back_color: Increase::Models::PhysicalCardProfileCreateParams::back_color, - ?card_stock_reference: String, - ?carrier_stock_reference: String, - ?front_color: Increase::Models::PhysicalCardProfileCreateParams::front_color, ?front_text: Increase::PhysicalCardProfileCreateParams::FrontText, ?request_options: Increase::request_opts ) -> void @@ -75,42 +47,10 @@ module Increase description: String, front_image_file_id: String, program_id: String, - back_color: Increase::Models::PhysicalCardProfileCreateParams::back_color, - card_stock_reference: String, - carrier_stock_reference: String, - front_color: Increase::Models::PhysicalCardProfileCreateParams::front_color, front_text: Increase::PhysicalCardProfileCreateParams::FrontText, request_options: Increase::RequestOptions } - type back_color = :black | :white - - module BackColor - extend Increase::Internal::Type::Enum - - # Black personalization color. - BLACK: :black - - # White personalization color. - WHITE: :white - - def self?.values: -> ::Array[Increase::Models::PhysicalCardProfileCreateParams::back_color] - end - - type front_color = :black | :white - - module FrontColor - extend Increase::Internal::Type::Enum - - # Black personalization color. - BLACK: :black - - # White personalization color. - WHITE: :white - - def self?.values: -> ::Array[Increase::Models::PhysicalCardProfileCreateParams::front_color] - end - type front_text = { :line1 => String, :line2 => String } class FrontText < Increase::Internal::Type::BaseModel diff --git a/sig/increase/resources/physical_card_profiles.rbs b/sig/increase/resources/physical_card_profiles.rbs index 957757310..99fb1a17b 100644 --- a/sig/increase/resources/physical_card_profiles.rbs +++ b/sig/increase/resources/physical_card_profiles.rbs @@ -7,10 +7,6 @@ module Increase description: String, front_image_file_id: String, program_id: String, - ?back_color: Increase::Models::PhysicalCardProfileCreateParams::back_color, - ?card_stock_reference: String, - ?carrier_stock_reference: String, - ?front_color: Increase::Models::PhysicalCardProfileCreateParams::front_color, ?front_text: Increase::PhysicalCardProfileCreateParams::FrontText, ?request_options: Increase::request_opts ) -> Increase::PhysicalCardProfile From 58fc905b41243a1d9a60e3eff15a2d9b81088faf Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 26 Sep 2025 20:55:56 +0000 Subject: [PATCH 2/2] release: 1.94.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 3ceb8e2f5..6db20a9bf 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.93.0" + ".": "1.94.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ff7bbc05..7aa46ab4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.94.0 (2025-09-26) + +Full Changelog: [v1.93.0...v1.94.0](https://github.com/Increase/increase-ruby/compare/v1.93.0...v1.94.0) + +### Features + +* **api:** api update ([aa16efb](https://github.com/Increase/increase-ruby/commit/aa16efb8412fe7b6d5c61b9c7b541476dd0bd049)) + ## 1.93.0 (2025-09-26) Full Changelog: [v1.92.0...v1.93.0](https://github.com/Increase/increase-ruby/compare/v1.92.0...v1.93.0) diff --git a/Gemfile.lock b/Gemfile.lock index 7fd27ec34..ba0c4a6e0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.93.0) + increase (1.94.0) connection_pool GEM diff --git a/README.md b/README.md index 412a1735a..99dbd47c2 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.93.0" +gem "increase", "~> 1.94.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 6976f93a8..642b8d25b 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.93.0" + VERSION = "1.94.0" end