increase 1.97.0 → 1.98.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: 191e5bdf3f5ae057e823399dbe85c717a3af769522b7c5e80aaccc53453c25e5
4
- data.tar.gz: 1efccfa1678776532f664efecb00f14f63497ac7d8cfb2d80310bb4ea23b3965
3
+ metadata.gz: eace02321008c4c6390d041e6ce183df0abdabd7fca1f0f1c61851efd3f94395
4
+ data.tar.gz: 0065ba514389ec81fc547032f59fc51b9c659f82e9d1e849eba45c41cd9a4c38
5
5
  SHA512:
6
- metadata.gz: '09e762654b10556c643b7552d7aa3f79046d985d1e752b416adada1ef49a7df4b09dd64b6ea119d7eb95abc3b348f751a702dcb9482343bc9bf48e9814b2ea72'
7
- data.tar.gz: 598c5fa7a5a8ab626280a1c213c6f446a9d8a2d418ddc4dadcfac1a538c3bcf4168642f390696a9453fabc5ebb2bcebeab0140ea3fc192ce8bd05efc3e3e498a
6
+ metadata.gz: 6d83321760259b325f01a12d912ce1c06c1383e409899ade1dfb7f7de7b9250cc232cf56ab636ff8337e4892e34b5337b5ab0f565ec9d8d93ea8d7103a044639
7
+ data.tar.gz: c5ebf5e4385143cabbe1d4ba88a0db359fa6aa37a7c8a116f82369633563ac2a906ec176e4bc9cd4904aa028f05089f61fcbfaf7407fda68af4f7a3e45d6fa77
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.98.0 (2025-10-01)
4
+
5
+ Full Changelog: [v1.97.1...v1.98.0](https://github.com/Increase/increase-ruby/compare/v1.97.1...v1.98.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([4fa817d](https://github.com/Increase/increase-ruby/commit/4fa817db198c0c75226d288d97957ebf58bd2cb1))
10
+
11
+ ## 1.97.1 (2025-09-30)
12
+
13
+ Full Changelog: [v1.97.0...v1.97.1](https://github.com/Increase/increase-ruby/compare/v1.97.0...v1.97.1)
14
+
15
+ ### Bug Fixes
16
+
17
+ * coroutine leaks from connection pool ([78dc815](https://github.com/Increase/increase-ruby/commit/78dc8152fc1d9ca7f849cf0d9cce6c49e5d80f96))
18
+
3
19
  ## 1.97.0 (2025-09-29)
4
20
 
5
21
  Full Changelog: [v1.96.0...v1.97.0](https://github.com/Increase/increase-ruby/compare/v1.96.0...v1.97.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.97.0"
18
+ gem "increase", "~> 1.98.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -134,9 +134,9 @@ module Increase
134
134
 
135
135
  # rubocop:disable Metrics/BlockLength
136
136
  enum = Enumerator.new do |y|
137
- with_pool(url, deadline: deadline) do |conn|
138
- next if finished
137
+ next if finished
139
138
 
139
+ with_pool(url, deadline: deadline) do |conn|
140
140
  req, closing = self.class.build_request(request) do
141
141
  self.class.calibrate_socket_timeout(conn, deadline)
142
142
  end
@@ -149,7 +149,7 @@ module Increase
149
149
 
150
150
  self.class.calibrate_socket_timeout(conn, deadline)
151
151
  conn.request(req) do |rsp|
152
- y << [conn, req, rsp]
152
+ y << [req, rsp]
153
153
  break if finished
154
154
 
155
155
  rsp.read_body do |bytes|
@@ -160,6 +160,8 @@ module Increase
160
160
  end
161
161
  eof = true
162
162
  end
163
+ ensure
164
+ conn.finish if !eof && conn&.started?
163
165
  end
164
166
  rescue Timeout::Error
165
167
  raise Increase::Errors::APITimeoutError.new(url: url, request: req)
@@ -168,16 +170,11 @@ module Increase
168
170
  end
169
171
  # rubocop:enable Metrics/BlockLength
170
172
 
171
- conn, _, response = enum.next
173
+ _, response = enum.next
172
174
  body = Increase::Internal::Util.fused_enum(enum, external: true) do
173
175
  finished = true
174
- tap do
175
- enum.next
176
- rescue StopIteration
177
- nil
178
- end
176
+ loop { enum.next }
179
177
  ensure
180
- conn.finish if !eof && conn&.started?
181
178
  closing&.call
182
179
  end
183
180
  [Integer(response.code), response, body]
@@ -216,7 +216,7 @@ module Increase
216
216
  required :ach_transfer_return, -> { Increase::Transaction::Source::ACHTransferReturn }, nil?: true
217
217
 
218
218
  # @!attribute card_dispute_acceptance
219
- # A Card Dispute Acceptance object. This field will be present in the JSON
219
+ # A Legacy Card Dispute Acceptance object. This field will be present in the JSON
220
220
  # response if and only if `category` is equal to `card_dispute_acceptance`.
221
221
  # Contains the details of a successful Card Dispute.
222
222
  #
@@ -240,9 +240,9 @@ module Increase
240
240
  nil?: true
241
241
 
242
242
  # @!attribute card_dispute_loss
243
- # A Card Dispute Loss object. This field will be present in the JSON response if
244
- # and only if `category` is equal to `card_dispute_loss`. Contains the details of
245
- # a lost Card Dispute.
243
+ # A Legacy Card Dispute Loss object. This field will be present in the JSON
244
+ # response if and only if `category` is equal to `card_dispute_loss`. Contains the
245
+ # details of a lost Card Dispute.
246
246
  #
247
247
  # @return [Increase::Models::Transaction::Source::CardDisputeLoss, nil]
248
248
  required :card_dispute_loss, -> { Increase::Transaction::Source::CardDisputeLoss }, nil?: true
@@ -557,11 +557,11 @@ module Increase
557
557
  #
558
558
  # @param ach_transfer_return [Increase::Models::Transaction::Source::ACHTransferReturn, nil] An ACH Transfer Return object. This field will be present in the JSON response i
559
559
  #
560
- # @param card_dispute_acceptance [Increase::Models::Transaction::Source::CardDisputeAcceptance, nil] A Card Dispute Acceptance object. This field will be present in the JSON respons
560
+ # @param card_dispute_acceptance [Increase::Models::Transaction::Source::CardDisputeAcceptance, nil] A Legacy Card Dispute Acceptance object. This field will be present in the JSON
561
561
  #
562
562
  # @param card_dispute_financial [Increase::Models::Transaction::Source::CardDisputeFinancial, nil] A Card Dispute Financial object. This field will be present in the JSON response
563
563
  #
564
- # @param card_dispute_loss [Increase::Models::Transaction::Source::CardDisputeLoss, nil] A Card Dispute Loss object. This field will be present in the JSON response if a
564
+ # @param card_dispute_loss [Increase::Models::Transaction::Source::CardDisputeLoss, nil] A Legacy Card Dispute Loss object. This field will be present in the JSON respon
565
565
  #
566
566
  # @param card_financial [Increase::Models::Transaction::Source::CardFinancial, nil] A Card Financial object. This field will be present in the JSON response if and
567
567
  #
@@ -1129,7 +1129,7 @@ module Increase
1129
1129
  # Some parameter documentations has been truncated, see
1130
1130
  # {Increase::Models::Transaction::Source::CardDisputeAcceptance} for more details.
1131
1131
  #
1132
- # A Card Dispute Acceptance object. This field will be present in the JSON
1132
+ # A Legacy Card Dispute Acceptance object. This field will be present in the JSON
1133
1133
  # response if and only if `category` is equal to `card_dispute_acceptance`.
1134
1134
  # Contains the details of a successful Card Dispute.
1135
1135
  #
@@ -1270,9 +1270,9 @@ module Increase
1270
1270
  # Some parameter documentations has been truncated, see
1271
1271
  # {Increase::Models::Transaction::Source::CardDisputeLoss} for more details.
1272
1272
  #
1273
- # A Card Dispute Loss object. This field will be present in the JSON response if
1274
- # and only if `category` is equal to `card_dispute_loss`. Contains the details of
1275
- # a lost Card Dispute.
1273
+ # A Legacy Card Dispute Loss object. This field will be present in the JSON
1274
+ # response if and only if `category` is equal to `card_dispute_loss`. Contains the
1275
+ # details of a lost Card Dispute.
1276
1276
  #
1277
1277
  # @param explanation [String] Why the Card Dispute was lost.
1278
1278
  #
@@ -5385,13 +5385,13 @@ module Increase
5385
5385
  # Cashback Payment: details will be under the `cashback_payment` object.
5386
5386
  CASHBACK_PAYMENT = :cashback_payment
5387
5387
 
5388
- # Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object.
5388
+ # Legacy Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object.
5389
5389
  CARD_DISPUTE_ACCEPTANCE = :card_dispute_acceptance
5390
5390
 
5391
5391
  # Card Dispute Financial: details will be under the `card_dispute_financial` object.
5392
5392
  CARD_DISPUTE_FINANCIAL = :card_dispute_financial
5393
5393
 
5394
- # Card Dispute Loss: details will be under the `card_dispute_loss` object.
5394
+ # Legacy Card Dispute Loss: details will be under the `card_dispute_loss` object.
5395
5395
  CARD_DISPUTE_LOSS = :card_dispute_loss
5396
5396
 
5397
5397
  # Card Refund: details will be under the `card_refund` object.
@@ -97,13 +97,13 @@ module Increase
97
97
  # Cashback Payment: details will be under the `cashback_payment` object.
98
98
  CASHBACK_PAYMENT = :cashback_payment
99
99
 
100
- # Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object.
100
+ # Legacy Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object.
101
101
  CARD_DISPUTE_ACCEPTANCE = :card_dispute_acceptance
102
102
 
103
103
  # Card Dispute Financial: details will be under the `card_dispute_financial` object.
104
104
  CARD_DISPUTE_FINANCIAL = :card_dispute_financial
105
105
 
106
- # Card Dispute Loss: details will be under the `card_dispute_loss` object.
106
+ # Legacy Card Dispute Loss: details will be under the `card_dispute_loss` object.
107
107
  CARD_DISPUTE_LOSS = :card_dispute_loss
108
108
 
109
109
  # Card Refund: details will be under the `card_refund` object.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.97.0"
4
+ VERSION = "1.98.0"
5
5
  end
@@ -310,7 +310,7 @@ module Increase
310
310
  end
311
311
  attr_writer :ach_transfer_return
312
312
 
313
- # A Card Dispute Acceptance object. This field will be present in the JSON
313
+ # A Legacy Card Dispute Acceptance object. This field will be present in the JSON
314
314
  # response if and only if `category` is equal to `card_dispute_acceptance`.
315
315
  # Contains the details of a successful Card Dispute.
316
316
  sig do
@@ -350,9 +350,9 @@ module Increase
350
350
  end
351
351
  attr_writer :card_dispute_financial
352
352
 
353
- # A Card Dispute Loss object. This field will be present in the JSON response if
354
- # and only if `category` is equal to `card_dispute_loss`. Contains the details of
355
- # a lost Card Dispute.
353
+ # A Legacy Card Dispute Loss object. This field will be present in the JSON
354
+ # response if and only if `category` is equal to `card_dispute_loss`. Contains the
355
+ # details of a lost Card Dispute.
356
356
  sig do
357
357
  returns(T.nilable(Increase::Transaction::Source::CardDisputeLoss))
358
358
  end
@@ -1069,7 +1069,7 @@ module Increase
1069
1069
  # the first two business days after the transfer is initiated, but can occur much
1070
1070
  # later.
1071
1071
  ach_transfer_return:,
1072
- # A Card Dispute Acceptance object. This field will be present in the JSON
1072
+ # A Legacy Card Dispute Acceptance object. This field will be present in the JSON
1073
1073
  # response if and only if `category` is equal to `card_dispute_acceptance`.
1074
1074
  # Contains the details of a successful Card Dispute.
1075
1075
  card_dispute_acceptance:,
@@ -1077,9 +1077,9 @@ module Increase
1077
1077
  # if and only if `category` is equal to `card_dispute_financial`. Financial event
1078
1078
  # related to a Card Dispute.
1079
1079
  card_dispute_financial:,
1080
- # A Card Dispute Loss object. This field will be present in the JSON response if
1081
- # and only if `category` is equal to `card_dispute_loss`. Contains the details of
1082
- # a lost Card Dispute.
1080
+ # A Legacy Card Dispute Loss object. This field will be present in the JSON
1081
+ # response if and only if `category` is equal to `card_dispute_loss`. Contains the
1082
+ # details of a lost Card Dispute.
1083
1083
  card_dispute_loss:,
1084
1084
  # A Card Financial object. This field will be present in the JSON response if and
1085
1085
  # only if `category` is equal to `card_financial`. Card Financials are temporary
@@ -2278,7 +2278,7 @@ module Increase
2278
2278
  sig { returns(String) }
2279
2279
  attr_accessor :transaction_id
2280
2280
 
2281
- # A Card Dispute Acceptance object. This field will be present in the JSON
2281
+ # A Legacy Card Dispute Acceptance object. This field will be present in the JSON
2282
2282
  # response if and only if `category` is equal to `card_dispute_acceptance`.
2283
2283
  # Contains the details of a successful Card Dispute.
2284
2284
  sig do
@@ -2570,9 +2570,9 @@ module Increase
2570
2570
  sig { returns(String) }
2571
2571
  attr_accessor :transaction_id
2572
2572
 
2573
- # A Card Dispute Loss object. This field will be present in the JSON response if
2574
- # and only if `category` is equal to `card_dispute_loss`. Contains the details of
2575
- # a lost Card Dispute.
2573
+ # A Legacy Card Dispute Loss object. This field will be present in the JSON
2574
+ # response if and only if `category` is equal to `card_dispute_loss`. Contains the
2575
+ # details of a lost Card Dispute.
2576
2576
  sig do
2577
2577
  params(
2578
2578
  explanation: String,
@@ -10102,7 +10102,7 @@ module Increase
10102
10102
  Increase::Transaction::Source::Category::TaggedSymbol
10103
10103
  )
10104
10104
 
10105
- # Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object.
10105
+ # Legacy Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object.
10106
10106
  CARD_DISPUTE_ACCEPTANCE =
10107
10107
  T.let(
10108
10108
  :card_dispute_acceptance,
@@ -10116,7 +10116,7 @@ module Increase
10116
10116
  Increase::Transaction::Source::Category::TaggedSymbol
10117
10117
  )
10118
10118
 
10119
- # Card Dispute Loss: details will be under the `card_dispute_loss` object.
10119
+ # Legacy Card Dispute Loss: details will be under the `card_dispute_loss` object.
10120
10120
  CARD_DISPUTE_LOSS =
10121
10121
  T.let(
10122
10122
  :card_dispute_loss,
@@ -201,7 +201,7 @@ module Increase
201
201
  Increase::TransactionListParams::Category::In::TaggedSymbol
202
202
  )
203
203
 
204
- # Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object.
204
+ # Legacy Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object.
205
205
  CARD_DISPUTE_ACCEPTANCE =
206
206
  T.let(
207
207
  :card_dispute_acceptance,
@@ -215,7 +215,7 @@ module Increase
215
215
  Increase::TransactionListParams::Category::In::TaggedSymbol
216
216
  )
217
217
 
218
- # Card Dispute Loss: details will be under the `card_dispute_loss` object.
218
+ # Legacy Card Dispute Loss: details will be under the `card_dispute_loss` object.
219
219
  CARD_DISPUTE_LOSS =
220
220
  T.let(
221
221
  :card_dispute_loss,
@@ -3956,13 +3956,13 @@ module Increase
3956
3956
  # Cashback Payment: details will be under the `cashback_payment` object.
3957
3957
  CASHBACK_PAYMENT: :cashback_payment
3958
3958
 
3959
- # Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object.
3959
+ # Legacy Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object.
3960
3960
  CARD_DISPUTE_ACCEPTANCE: :card_dispute_acceptance
3961
3961
 
3962
3962
  # Card Dispute Financial: details will be under the `card_dispute_financial` object.
3963
3963
  CARD_DISPUTE_FINANCIAL: :card_dispute_financial
3964
3964
 
3965
- # Card Dispute Loss: details will be under the `card_dispute_loss` object.
3965
+ # Legacy Card Dispute Loss: details will be under the `card_dispute_loss` object.
3966
3966
  CARD_DISPUTE_LOSS: :card_dispute_loss
3967
3967
 
3968
3968
  # Card Refund: details will be under the `card_refund` object.
@@ -137,13 +137,13 @@ module Increase
137
137
  # Cashback Payment: details will be under the `cashback_payment` object.
138
138
  CASHBACK_PAYMENT: :cashback_payment
139
139
 
140
- # Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object.
140
+ # Legacy Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object.
141
141
  CARD_DISPUTE_ACCEPTANCE: :card_dispute_acceptance
142
142
 
143
143
  # Card Dispute Financial: details will be under the `card_dispute_financial` object.
144
144
  CARD_DISPUTE_FINANCIAL: :card_dispute_financial
145
145
 
146
- # Card Dispute Loss: details will be under the `card_dispute_loss` object.
146
+ # Legacy Card Dispute Loss: details will be under the `card_dispute_loss` object.
147
147
  CARD_DISPUTE_LOSS: :card_dispute_loss
148
148
 
149
149
  # Card Refund: details will be under the `card_refund` object.
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.97.0
4
+ version: 1.98.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-09-29 00:00:00.000000000 Z
11
+ date: 2025-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool