Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.20"
".": "0.1.0-alpha.21"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "increase", "~> 0.1.0.pre.alpha.20"
gem "increase", "~> 0.1.0.pre.alpha.21"
```

<!-- x-release-please-end -->
Expand Down
41 changes: 40 additions & 1 deletion lib/increase/models/physical_card_profile_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
7 changes: 6 additions & 1 deletion lib/increase/resources/physical_card_profiles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand All @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion lib/increase/version.rb
Original file line number Diff line number Diff line change
@@ -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
56 changes: 56 additions & 0 deletions rbi/increase/models/physical_card_profile_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,30 @@ 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,
contact_phone: String,
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
Expand All @@ -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
Expand All @@ -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
5 changes: 5 additions & 0 deletions rbi/increase/resources/physical_card_profiles.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
22 changes: 21 additions & 1 deletion sig/increase/models/physical_card_profile_create_params.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
1 change: 1 addition & 0 deletions sig/increase/resources/physical_card_profiles.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading