diff --git a/.release-please-manifest.json b/.release-please-manifest.json index fac140743..7c31fce28 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.20" + ".": "0.1.0-alpha.21" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 114499a2a..983dd6311 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 195 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-3da8c6b718b8b17a54f7c99f1288484fb822cea0439cb3ebac7740d251bed960.yml -openapi_spec_hash: 3a21d60d1574ae11f5a682dfa3d603b3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-983a38b280126eee3cd2a12eb7847bc36551f24cf7fdcdffe20e564e2c0d21c4.yml +openapi_spec_hash: 273aa48b03116314693f8870c4c71f9b config_hash: 1619155422217276e2489ae10ce63a25 diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a1471592..2359c7df4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.1.0-alpha.21 (2025-05-09) + +Full Changelog: [v0.1.0-alpha.20...v0.1.0-alpha.21](https://github.com/Increase/increase-ruby/compare/v0.1.0-alpha.20...v0.1.0-alpha.21) + +### Features + +* **api:** api update ([486b925](https://github.com/Increase/increase-ruby/commit/486b925d5c4fe163253854853dc6b656e4838c51)) + ## 0.1.0-alpha.20 (2025-05-08) Full Changelog: [v0.1.0-alpha.19...v0.1.0-alpha.20](https://github.com/Increase/increase-ruby/compare/v0.1.0-alpha.19...v0.1.0-alpha.20) diff --git a/Gemfile.lock b/Gemfile.lock index 2812b0242..1ce0868bc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (0.1.0.pre.alpha.20) + increase (0.1.0.pre.alpha.21) connection_pool GEM diff --git a/README.md b/README.md index fd6e37591..feb113cdf 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", "~> 0.1.0.pre.alpha.20" +gem "increase", "~> 0.1.0.pre.alpha.21" ``` diff --git a/lib/increase/models/physical_card_profile_create_params.rb b/lib/increase/models/physical_card_profile_create_params.rb index c59f22f7a..b169b77c1 100644 --- a/lib/increase/models/physical_card_profile_create_params.rb +++ b/lib/increase/models/physical_card_profile_create_params.rb @@ -37,7 +37,17 @@ class PhysicalCardProfileCreateParams < Increase::Internal::Type::BaseModel # @return [String] required :program_id, String - # @!method initialize(carrier_image_file_id:, contact_phone:, description:, front_image_file_id:, program_id:, request_options: {}) + # @!attribute front_text + # Text printed on the front of the card. Reach out to + # [support@increase.com](mailto:support@increase.com) for more information. + # + # @return [Increase::PhysicalCardProfileCreateParams::FrontText, nil] + optional :front_text, -> { Increase::PhysicalCardProfileCreateParams::FrontText } + + # @!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. + # # @param carrier_image_file_id [String] The identifier of the File containing the physical card's carrier image. # # @param contact_phone [String] A phone number the user can contact to receive support for their card. @@ -48,7 +58,36 @@ class PhysicalCardProfileCreateParams < Increase::Internal::Type::BaseModel # # @param program_id [String] The identifier for the Program that this Physical Card Profile falls under. # + # @param front_text [Increase::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}] + + class FrontText < Increase::Internal::Type::BaseModel + # @!attribute line1 + # The first line of text on the front of the card. + # + # @return [String] + required :line1, String + + # @!attribute line2 + # The second line of text on the front of the card. Providing a second line moves + # the first line slightly higher and prints the second line in the spot where the + # first line would have otherwise been printed. + # + # @return [String, nil] + optional :line2, String + + # @!method initialize(line1:, line2: nil) + # Some parameter documentations has been truncated, see + # {Increase::PhysicalCardProfileCreateParams::FrontText} for more details. + # + # Text printed on the front of the card. Reach out to + # [support@increase.com](mailto:support@increase.com) for more information. + # + # @param line1 [String] The first line of text on the front of the card. + # + # @param line2 [String] The second line of text on the front of the card. Providing a second line moves + end end end end diff --git a/lib/increase/resources/physical_card_profiles.rb b/lib/increase/resources/physical_card_profiles.rb index 9921c7f21..67dd0cd6f 100644 --- a/lib/increase/resources/physical_card_profiles.rb +++ b/lib/increase/resources/physical_card_profiles.rb @@ -3,9 +3,12 @@ module Increase module Resources class PhysicalCardProfiles + # Some parameter documentations has been truncated, see + # {Increase::Models::PhysicalCardProfileCreateParams} for more details. + # # Create a Physical Card Profile # - # @overload create(carrier_image_file_id:, contact_phone:, description:, front_image_file_id:, program_id:, 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. # @@ -17,6 +20,8 @@ class PhysicalCardProfiles # # @param program_id [String] The identifier for the Program that this Physical Card Profile falls under. # + # @param front_text [Increase::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] # # @return [Increase::PhysicalCardProfile] diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 3c726df88..3d915bebc 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "0.1.0.pre.alpha.20" + VERSION = "0.1.0.pre.alpha.21" end diff --git a/rbi/increase/models/physical_card_profile_create_params.rbi b/rbi/increase/models/physical_card_profile_create_params.rbi index 813d8b093..bdbf1f874 100644 --- a/rbi/increase/models/physical_card_profile_create_params.rbi +++ b/rbi/increase/models/physical_card_profile_create_params.rbi @@ -28,6 +28,21 @@ module Increase sig { returns(String) } attr_accessor :program_id + # Text printed on the front of the card. Reach out to + # [support@increase.com](mailto:support@increase.com) for more information. + sig do + returns(T.nilable(Increase::PhysicalCardProfileCreateParams::FrontText)) + end + attr_reader :front_text + + sig do + params( + front_text: + Increase::PhysicalCardProfileCreateParams::FrontText::OrHash + ).void + end + attr_writer :front_text + sig do params( carrier_image_file_id: String, @@ -35,6 +50,8 @@ module Increase description: String, front_image_file_id: String, program_id: String, + front_text: + Increase::PhysicalCardProfileCreateParams::FrontText::OrHash, request_options: Increase::RequestOptions::OrHash ).returns(T.attached_class) end @@ -49,6 +66,9 @@ module Increase front_image_file_id:, # The identifier for the Program that this Physical Card Profile falls under. program_id:, + # Text printed on the front of the card. Reach out to + # [support@increase.com](mailto:support@increase.com) for more information. + front_text: nil, request_options: {} ) end @@ -61,12 +81,48 @@ module Increase description: String, front_image_file_id: String, program_id: String, + front_text: Increase::PhysicalCardProfileCreateParams::FrontText, request_options: Increase::RequestOptions } ) end def to_hash end + + class FrontText < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Increase::Internal::AnyHash) } + + # The first line of text on the front of the card. + sig { returns(String) } + attr_accessor :line1 + + # The second line of text on the front of the card. Providing a second line moves + # the first line slightly higher and prints the second line in the spot where the + # first line would have otherwise been printed. + sig { returns(T.nilable(String)) } + attr_reader :line2 + + sig { params(line2: String).void } + attr_writer :line2 + + # Text printed on the front of the card. Reach out to + # [support@increase.com](mailto:support@increase.com) for more information. + sig { params(line1: String, line2: String).returns(T.attached_class) } + def self.new( + # The first line of text on the front of the card. + line1:, + # The second line of text on the front of the card. Providing a second line moves + # the first line slightly higher and prints the second line in the spot where the + # first line would have otherwise been printed. + line2: nil + ) + end + + sig { override.returns({ line1: String, line2: String }) } + def to_hash + end + end end end end diff --git a/rbi/increase/resources/physical_card_profiles.rbi b/rbi/increase/resources/physical_card_profiles.rbi index d836e7fde..a3235dc7e 100644 --- a/rbi/increase/resources/physical_card_profiles.rbi +++ b/rbi/increase/resources/physical_card_profiles.rbi @@ -11,6 +11,8 @@ module Increase description: String, front_image_file_id: String, program_id: String, + front_text: + Increase::PhysicalCardProfileCreateParams::FrontText::OrHash, request_options: Increase::RequestOptions::OrHash ).returns(Increase::PhysicalCardProfile) end @@ -25,6 +27,9 @@ module Increase front_image_file_id:, # The identifier for the Program that this Physical Card Profile falls under. program_id:, + # Text printed on the front of the card. Reach out to + # [support@increase.com](mailto:support@increase.com) for more information. + front_text: nil, request_options: {} ) end diff --git a/sig/increase/models/physical_card_profile_create_params.rbs b/sig/increase/models/physical_card_profile_create_params.rbs index 9a5228c18..786ea8fc1 100644 --- a/sig/increase/models/physical_card_profile_create_params.rbs +++ b/sig/increase/models/physical_card_profile_create_params.rbs @@ -6,7 +6,8 @@ module Increase contact_phone: String, description: String, front_image_file_id: String, - program_id: String + program_id: String, + front_text: Increase::PhysicalCardProfileCreateParams::FrontText } & Increase::Internal::Type::request_parameters @@ -24,14 +25,33 @@ module Increase attr_accessor program_id: String + attr_reader front_text: Increase::PhysicalCardProfileCreateParams::FrontText? + + def front_text=: ( + Increase::PhysicalCardProfileCreateParams::FrontText + ) -> Increase::PhysicalCardProfileCreateParams::FrontText + def initialize: ( carrier_image_file_id: String, contact_phone: String, description: String, front_image_file_id: String, program_id: String, + ?front_text: Increase::PhysicalCardProfileCreateParams::FrontText, ?request_options: Increase::request_opts ) -> void + + type front_text = { :line1 => String, :line2 => String } + + class FrontText < Increase::Internal::Type::BaseModel + attr_accessor line1: String + + attr_reader line2: String? + + def line2=: (String) -> String + + def initialize: (line1: String, ?line2: String) -> void + end end end end diff --git a/sig/increase/resources/physical_card_profiles.rbs b/sig/increase/resources/physical_card_profiles.rbs index 0d6e79ba4..d397a39e8 100644 --- a/sig/increase/resources/physical_card_profiles.rbs +++ b/sig/increase/resources/physical_card_profiles.rbs @@ -7,6 +7,7 @@ module Increase description: String, front_image_file_id: String, program_id: String, + ?front_text: Increase::PhysicalCardProfileCreateParams::FrontText, ?request_options: Increase::request_opts ) -> Increase::PhysicalCardProfile