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 @@
{
".": "1.21.0"
".": "1.22.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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 (1.21.0)
increase (1.22.0)
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", "~> 1.21.0"
gem "increase", "~> 1.22.0"
```

<!-- x-release-please-end -->
Expand Down
2 changes: 1 addition & 1 deletion lib/increase/internal/transport/base_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def initialize(
#
# @raise [Increase::Errors::APIError]
# @return [Array(Integer, Net::HTTPResponse, Enumerable<String>)]
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}

Expand Down
10 changes: 9 additions & 1 deletion lib/increase/models/physical_card_profile_clone_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand All @@ -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
Expand Down
4 changes: 3 additions & 1 deletion lib/increase/resources/physical_card_profiles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand All @@ -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]
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 = "1.21.0"
VERSION = "1.22.0"
end
2 changes: 1 addition & 1 deletion rbi/increase/internal/transport/base_client.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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:,
Expand Down
11 changes: 11 additions & 0 deletions rbi/increase/models/physical_card_profile_clone_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
}
)
Expand Down
3 changes: 3 additions & 0 deletions rbi/increase/resources/physical_card_profiles.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sig/increase/internal/transport/base_client.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
9 changes: 8 additions & 1 deletion sig/increase/models/physical_card_profile_clone_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,
front_text: Increase::PhysicalCardProfileCloneParams::FrontText
front_text: Increase::PhysicalCardProfileCloneParams::FrontText,
program_id: String
}
& Increase::Internal::Type::request_parameters

Expand Down Expand Up @@ -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

Expand All @@ -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
}

Expand Down
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 @@ -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

Expand Down