From 89e4d038f966f4d797cd83249df91a6fb6ee992c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 7 Sep 2025 15:13:55 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- .../physical_card_profile_create_params.rb | 46 ++++++- .../resources/physical_card_profiles.rb | 6 +- .../physical_card_profile_create_params.rbi | 118 ++++++++++++++++++ .../resources/physical_card_profiles.rbi | 8 ++ .../physical_card_profile_create_params.rbs | 46 +++++++ .../resources/physical_card_profiles.rbs | 2 + 7 files changed, 226 insertions(+), 4 deletions(-) diff --git a/.stats.yml b/.stats.yml index 675fc1658..09d98d352 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 217 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a91424eba488276a87e396d4172d7381d22e9ff38639a98aafdbcc2f8b53d000.yml -openapi_spec_hash: 52c779ffbbb1e3a46738d374849ca92b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-98bb100223960756975a05c102fb497e2dba7857b02bec559ebc60d6c38d78e4.yml +openapi_spec_hash: b19fcec9237b7b3394002cfb662b391f config_hash: e1885b38eded054b77308a024c5d80cc diff --git a/lib/increase/models/physical_card_profile_create_params.rb b/lib/increase/models/physical_card_profile_create_params.rb index d7bbc47cb..7c19d61ff 100644 --- a/lib/increase/models/physical_card_profile_create_params.rb +++ b/lib/increase/models/physical_card_profile_create_params.rb @@ -37,6 +37,12 @@ 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. @@ -51,6 +57,12 @@ class PhysicalCardProfileCreateParams < Increase::Internal::Type::BaseModel # @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. @@ -58,7 +70,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:, card_stock_reference: nil, carrier_stock_reference: nil, front_text: nil, request_options: {}) + # @!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: {}) # Some parameter documentations has been truncated, see # {Increase::Models::PhysicalCardProfileCreateParams} for more details. # @@ -72,14 +84,46 @@ 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 50d2031ff..195016dc2 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:, card_stock_reference: nil, carrier_stock_reference: nil, front_text: nil, request_options: {}) + # @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: {}) # # @param carrier_image_file_id [String] The identifier of the File containing the physical card's carrier image. # @@ -20,10 +20,14 @@ 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 8106f9a8a..2295b93c2 100644 --- a/rbi/increase/models/physical_card_profile_create_params.rbi +++ b/rbi/increase/models/physical_card_profile_create_params.rbi @@ -34,6 +34,24 @@ 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)) } @@ -50,6 +68,24 @@ module Increase 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 @@ -72,8 +108,12 @@ 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 @@ -90,12 +130,16 @@ 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, @@ -111,8 +155,12 @@ 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 } @@ -121,6 +169,76 @@ 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 6c0d7ce92..23f3baa13 100644 --- a/rbi/increase/resources/physical_card_profiles.rbi +++ b/rbi/increase/resources/physical_card_profiles.rbi @@ -11,8 +11,12 @@ 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 @@ -29,12 +33,16 @@ 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 c68cbf0f9..49b7b2184 100644 --- a/sig/increase/models/physical_card_profile_create_params.rbs +++ b/sig/increase/models/physical_card_profile_create_params.rbs @@ -7,8 +7,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 } & Increase::Internal::Type::request_parameters @@ -27,6 +29,12 @@ 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 @@ -35,6 +43,12 @@ module Increase 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=: ( @@ -47,8 +61,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::request_opts ) -> void @@ -59,12 +75,42 @@ 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 ede66bd64..957757310 100644 --- a/sig/increase/resources/physical_card_profiles.rbs +++ b/sig/increase/resources/physical_card_profiles.rbs @@ -7,8 +7,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::request_opts ) -> Increase::PhysicalCardProfile From b55380c157e234b8f7b9b8204006addd15571087 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 7 Sep 2025 15:14:13 +0000 Subject: [PATCH 2/2] release: 1.68.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 455667671..42bc7e250 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.67.0" + ".": "1.68.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 93a1c39f3..42b74e74c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.68.0 (2025-09-07) + +Full Changelog: [v1.67.0...v1.68.0](https://github.com/Increase/increase-ruby/compare/v1.67.0...v1.68.0) + +### Features + +* **api:** api update ([89e4d03](https://github.com/Increase/increase-ruby/commit/89e4d038f966f4d797cd83249df91a6fb6ee992c)) + ## 1.67.0 (2025-09-05) Full Changelog: [v1.66.0...v1.67.0](https://github.com/Increase/increase-ruby/compare/v1.66.0...v1.67.0) diff --git a/Gemfile.lock b/Gemfile.lock index 7f6a7bf45..8138d24d6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.67.0) + increase (1.68.0) connection_pool GEM diff --git a/README.md b/README.md index 0c31b9138..2e12b5417 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.67.0" +gem "increase", "~> 1.68.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 5abd89bbd..f32d09912 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.67.0" + VERSION = "1.68.0" end