increase 1.21.0 → 1.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be3e7608f6914d94bac4d1271de985906c813852478e72b3f31792f822265757
4
- data.tar.gz: 8ce52230284861a6cc452326cc918828d19df5f6d800556f685016acfe91b985
3
+ metadata.gz: eb491c65d1f55e747b76568f0a3fb5d466112fb93137654b3fb8a54205f405f0
4
+ data.tar.gz: 01ed005d0894e359a6b166297b4e30a0e792f2e3bbe898d772500049330d357f
5
5
  SHA512:
6
- metadata.gz: 19585e7a5eb6db12593f98d5666205363dd7da758de1784ef4c8139f7a27e4b95ba6afcdb12e298830ccef37e061c6235a3f3dc9e33f412cc288b8b07b43e551
7
- data.tar.gz: 42ba409b65d6d604b518b2927a74a2b49b8fa96ea4b606b8acdcd90080c7ab7cbea36a7d032ff3bdf343608750be82faec3ca602558376e22a0fb0ae436403c0
6
+ metadata.gz: 25872ee275f37c812cbd7a2abff301b1ecb011c4eaa68ac7fd421890fb32943b831cef8a27432335c22c0a70f6561f6a40a3aeb70d7e50e241ae90e0cf06ffa7
7
+ data.tar.gz: 6988f2aa085d8c463cfc5b111aeef138b260b5ec3fc5f64ffe4a8ce8620ebe09a6ea825ec77b36f0f0118a745a84cc92f2b3d74b82d1c1d110167de77da7c55d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.22.0 (2025-08-01)
4
+
5
+ Full Changelog: [v1.21.0...v1.22.0](https://github.com/Increase/increase-ruby/compare/v1.21.0...v1.22.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([7be51b2](https://github.com/Increase/increase-ruby/commit/7be51b29bbd7029482f6048e2fefc70fbf2b4163))
10
+
11
+
12
+ ### Chores
13
+
14
+ * **internal:** increase visibility of internal helper method ([ac6bbf0](https://github.com/Increase/increase-ruby/commit/ac6bbf06ad0adedc4d3ad1e6549ddf437db09995))
15
+
3
16
  ## 1.21.0 (2025-07-29)
4
17
 
5
18
  Full Changelog: [v1.20.0...v1.21.0](https://github.com/Increase/increase-ruby/compare/v1.20.0...v1.21.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "increase", "~> 1.21.0"
18
+ gem "increase", "~> 1.22.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -365,7 +365,7 @@ module Increase
365
365
  #
366
366
  # @raise [Increase::Errors::APIError]
367
367
  # @return [Array(Integer, Net::HTTPResponse, Enumerable<String>)]
368
- private def send_request(request, redirect_count:, retry_count:, send_retry_header:)
368
+ def send_request(request, redirect_count:, retry_count:, send_retry_header:)
369
369
  url, headers, max_retries, timeout = request.fetch_values(:url, :headers, :max_retries, :timeout)
370
370
  input = {**request.except(:timeout), deadline: Increase::Internal::Util.monotonic_secs + timeout}
371
371
 
@@ -38,7 +38,13 @@ module Increase
38
38
  # @return [Increase::Models::PhysicalCardProfileCloneParams::FrontText, nil]
39
39
  optional :front_text, -> { Increase::PhysicalCardProfileCloneParams::FrontText }
40
40
 
41
- # @!method initialize(carrier_image_file_id: nil, contact_phone: nil, description: nil, front_image_file_id: nil, front_text: nil, request_options: {})
41
+ # @!attribute program_id
42
+ # The identifier of the Program to use for the cloned Physical Card Profile.
43
+ #
44
+ # @return [String, nil]
45
+ optional :program_id, String
46
+
47
+ # @!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: {})
42
48
  # Some parameter documentations has been truncated, see
43
49
  # {Increase::Models::PhysicalCardProfileCloneParams} for more details.
44
50
  #
@@ -52,6 +58,8 @@ module Increase
52
58
  #
53
59
  # @param front_text [Increase::Models::PhysicalCardProfileCloneParams::FrontText] Text printed on the front of the card. Reach out to [support@increase.com](mailt
54
60
  #
61
+ # @param program_id [String] The identifier of the Program to use for the cloned Physical Card Profile.
62
+ #
55
63
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
56
64
 
57
65
  class FrontText < Increase::Internal::Type::BaseModel
@@ -115,7 +115,7 @@ module Increase
115
115
  #
116
116
  # Clone a Physical Card Profile
117
117
  #
118
- # @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: {})
118
+ # @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: {})
119
119
  #
120
120
  # @param physical_card_profile_id [String] The identifier of the Physical Card Profile to clone.
121
121
  #
@@ -129,6 +129,8 @@ module Increase
129
129
  #
130
130
  # @param front_text [Increase::Models::PhysicalCardProfileCloneParams::FrontText] Text printed on the front of the card. Reach out to [support@increase.com](mailt
131
131
  #
132
+ # @param program_id [String] The identifier of the Program to use for the cloned Physical Card Profile.
133
+ #
132
134
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
133
135
  #
134
136
  # @return [Increase::Models::PhysicalCardProfile]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.21.0"
4
+ VERSION = "1.22.0"
5
5
  end
@@ -213,7 +213,7 @@ module Increase
213
213
  send_retry_header: T::Boolean
214
214
  ).returns([Integer, Net::HTTPResponse, T::Enumerable[String]])
215
215
  end
216
- private def send_request(
216
+ def send_request(
217
217
  request,
218
218
  redirect_count:,
219
219
  retry_count:,
@@ -57,6 +57,13 @@ module Increase
57
57
  end
58
58
  attr_writer :front_text
59
59
 
60
+ # The identifier of the Program to use for the cloned Physical Card Profile.
61
+ sig { returns(T.nilable(String)) }
62
+ attr_reader :program_id
63
+
64
+ sig { params(program_id: String).void }
65
+ attr_writer :program_id
66
+
60
67
  sig do
61
68
  params(
62
69
  carrier_image_file_id: String,
@@ -65,6 +72,7 @@ module Increase
65
72
  front_image_file_id: String,
66
73
  front_text:
67
74
  Increase::PhysicalCardProfileCloneParams::FrontText::OrHash,
75
+ program_id: String,
68
76
  request_options: Increase::RequestOptions::OrHash
69
77
  ).returns(T.attached_class)
70
78
  end
@@ -80,6 +88,8 @@ module Increase
80
88
  # Text printed on the front of the card. Reach out to
81
89
  # [support@increase.com](mailto:support@increase.com) for more information.
82
90
  front_text: nil,
91
+ # The identifier of the Program to use for the cloned Physical Card Profile.
92
+ program_id: nil,
83
93
  request_options: {}
84
94
  )
85
95
  end
@@ -92,6 +102,7 @@ module Increase
92
102
  description: String,
93
103
  front_image_file_id: String,
94
104
  front_text: Increase::PhysicalCardProfileCloneParams::FrontText,
105
+ program_id: String,
95
106
  request_options: Increase::RequestOptions
96
107
  }
97
108
  )
@@ -98,6 +98,7 @@ module Increase
98
98
  front_image_file_id: String,
99
99
  front_text:
100
100
  Increase::PhysicalCardProfileCloneParams::FrontText::OrHash,
101
+ program_id: String,
101
102
  request_options: Increase::RequestOptions::OrHash
102
103
  ).returns(Increase::PhysicalCardProfile)
103
104
  end
@@ -115,6 +116,8 @@ module Increase
115
116
  # Text printed on the front of the card. Reach out to
116
117
  # [support@increase.com](mailto:support@increase.com) for more information.
117
118
  front_text: nil,
119
+ # The identifier of the Program to use for the cloned Physical Card Profile.
120
+ program_id: nil,
118
121
  request_options: {}
119
122
  )
120
123
  end
@@ -99,7 +99,7 @@ module Increase
99
99
  retry_count: Integer
100
100
  ) -> Float
101
101
 
102
- private def send_request: (
102
+ def send_request: (
103
103
  Increase::Internal::Transport::BaseClient::request_input request,
104
104
  redirect_count: Integer,
105
105
  retry_count: Integer,
@@ -6,7 +6,8 @@ module Increase
6
6
  contact_phone: String,
7
7
  description: String,
8
8
  front_image_file_id: String,
9
- front_text: Increase::PhysicalCardProfileCloneParams::FrontText
9
+ front_text: Increase::PhysicalCardProfileCloneParams::FrontText,
10
+ program_id: String
10
11
  }
11
12
  & Increase::Internal::Type::request_parameters
12
13
 
@@ -36,12 +37,17 @@ module Increase
36
37
  Increase::PhysicalCardProfileCloneParams::FrontText
37
38
  ) -> Increase::PhysicalCardProfileCloneParams::FrontText
38
39
 
40
+ attr_reader program_id: String?
41
+
42
+ def program_id=: (String) -> String
43
+
39
44
  def initialize: (
40
45
  ?carrier_image_file_id: String,
41
46
  ?contact_phone: String,
42
47
  ?description: String,
43
48
  ?front_image_file_id: String,
44
49
  ?front_text: Increase::PhysicalCardProfileCloneParams::FrontText,
50
+ ?program_id: String,
45
51
  ?request_options: Increase::request_opts
46
52
  ) -> void
47
53
 
@@ -51,6 +57,7 @@ module Increase
51
57
  description: String,
52
58
  front_image_file_id: String,
53
59
  front_text: Increase::PhysicalCardProfileCloneParams::FrontText,
60
+ program_id: String,
54
61
  request_options: Increase::RequestOptions
55
62
  }
56
63
 
@@ -36,6 +36,7 @@ module Increase
36
36
  ?description: String,
37
37
  ?front_image_file_id: String,
38
38
  ?front_text: Increase::PhysicalCardProfileCloneParams::FrontText,
39
+ ?program_id: String,
39
40
  ?request_options: Increase::request_opts
40
41
  ) -> Increase::PhysicalCardProfile
41
42
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: increase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.21.0
4
+ version: 1.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-29 00:00:00.000000000 Z
11
+ date: 2025-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool