increase 1.111.0 → 1.113.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: 0e8f5f190d7248de94164de482d1e025552f82ff7eaa16a3276d73a4ca97ebbc
4
- data.tar.gz: ec2c52f7a2c1ce6687b0baadbb2d7f18d9b1be031eb5f7aedbc19ca604a9e4cb
3
+ metadata.gz: 731993c0b5b6755c6b2c7bb78148d2bef80e89d39410041bca084475d134fd6d
4
+ data.tar.gz: b4a00caf232b77479598c82d1ade0d9a585a8b24e19497473967daabc80b8e0d
5
5
  SHA512:
6
- metadata.gz: a1528dd515ffcec70cc1a671a52b80e543d348eb014f5aa8f3d745fe409c72870e90adf9e00ca42c4ca4140c63820954eb6a75ac53ee82045372faff02e8ae41
7
- data.tar.gz: 63b7c028f33d3f1e21f7eabc5f86e0fd3df2e5c55c90bef31597715ede66f7d3f2db5d0d50372b56c1c7c88ddbc34028158c0118a7f82c6c76a8cb21b19a9089
6
+ metadata.gz: 7a13ce32b059b969d27e515bf4e06fd978aaf4fc40d68b810d8282525e96d0e0324b4e8cd59da9cd7dfce7166216937bcc657b05e8f0a51051497b0c1823a758
7
+ data.tar.gz: 8136762ea8bfbaf41dd1c8e32a07dc804245a70abeee12f7a9262f3dfc76d61c561c514285453c681d4be7b2eb245e9b81e6cbc9dde7b20d8a20267a2ed06059
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.113.0 (2025-10-23)
4
+
5
+ Full Changelog: [v1.112.0...v1.113.0](https://github.com/Increase/increase-ruby/compare/v1.112.0...v1.113.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([f6e1c26](https://github.com/Increase/increase-ruby/commit/f6e1c262384c439eeeb7d9914b51d51e6aa5b89b))
10
+ * handle thread interrupts in the core HTTP client ([cbddb16](https://github.com/Increase/increase-ruby/commit/cbddb162a4273e627d3df4acde3a9eeac3652715))
11
+
12
+ ## 1.112.0 (2025-10-22)
13
+
14
+ Full Changelog: [v1.111.0...v1.112.0](https://github.com/Increase/increase-ruby/compare/v1.111.0...v1.112.0)
15
+
16
+ ### Features
17
+
18
+ * **api:** api update ([2ec0699](https://github.com/Increase/increase-ruby/commit/2ec06990de7616ef0a947ad2a4bd16f962dc6a2f))
19
+
3
20
  ## 1.111.0 (2025-10-22)
4
21
 
5
22
  Full Changelog: [v1.110.0...v1.111.0](https://github.com/Increase/increase-ruby/compare/v1.110.0...v1.111.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.111.0"
18
+ gem "increase", "~> 1.113.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -128,40 +128,48 @@ module Increase
128
128
  url, deadline = request.fetch_values(:url, :deadline)
129
129
 
130
130
  req = nil
131
- eof = false
132
131
  finished = false
133
- closing = nil
134
132
 
135
133
  # rubocop:disable Metrics/BlockLength
136
134
  enum = Enumerator.new do |y|
137
135
  next if finished
138
136
 
139
137
  with_pool(url, deadline: deadline) do |conn|
140
- req, closing = self.class.build_request(request) do
141
- self.class.calibrate_socket_timeout(conn, deadline)
142
- end
143
-
144
- self.class.calibrate_socket_timeout(conn, deadline)
145
- unless conn.started?
146
- conn.keep_alive_timeout = self.class::KEEP_ALIVE_TIMEOUT
147
- conn.start
148
- end
138
+ eof = false
139
+ closing = nil
140
+ ::Thread.handle_interrupt(Object => :never) do
141
+ ::Thread.handle_interrupt(Object => :immediate) do
142
+ req, closing = self.class.build_request(request) do
143
+ self.class.calibrate_socket_timeout(conn, deadline)
144
+ end
149
145
 
150
- self.class.calibrate_socket_timeout(conn, deadline)
151
- conn.request(req) do |rsp|
152
- y << [req, rsp]
153
- break if finished
154
-
155
- rsp.read_body do |bytes|
156
- y << bytes.force_encoding(Encoding::BINARY)
157
- break if finished
146
+ self.class.calibrate_socket_timeout(conn, deadline)
147
+ unless conn.started?
148
+ conn.keep_alive_timeout = self.class::KEEP_ALIVE_TIMEOUT
149
+ conn.start
150
+ end
158
151
 
159
152
  self.class.calibrate_socket_timeout(conn, deadline)
153
+ conn.request(req) do |rsp|
154
+ y << [req, rsp]
155
+ break if finished
156
+
157
+ rsp.read_body do |bytes|
158
+ y << bytes.force_encoding(Encoding::BINARY)
159
+ break if finished
160
+
161
+ self.class.calibrate_socket_timeout(conn, deadline)
162
+ end
163
+ eof = true
164
+ end
165
+ end
166
+ ensure
167
+ begin
168
+ conn.finish if !eof && conn&.started?
169
+ ensure
170
+ closing&.call
160
171
  end
161
- eof = true
162
172
  end
163
- ensure
164
- conn.finish if !eof && conn&.started?
165
173
  end
166
174
  rescue Timeout::Error
167
175
  raise Increase::Errors::APITimeoutError.new(url: url, request: req)
@@ -174,8 +182,6 @@ module Increase
174
182
  body = Increase::Internal::Util.fused_enum(enum, external: true) do
175
183
  finished = true
176
184
  loop { enum.next }
177
- ensure
178
- closing&.call
179
185
  end
180
186
  [Integer(response.code), response, body]
181
187
  end
@@ -746,7 +746,8 @@ module Increase
746
746
 
747
747
  # @!attribute network_risk_score
748
748
  # The risk score generated by the card network. For Visa this is the Visa Advanced
749
- # Authorization risk score, from 0 to 99, where 99 is the riskiest.
749
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
750
+ # score is from 0 to 999, where 999 is the riskiest.
750
751
  #
751
752
  # @return [Integer, nil]
752
753
  required :network_risk_score, Integer, nil?: true
@@ -2021,7 +2022,8 @@ module Increase
2021
2022
 
2022
2023
  # @!attribute network_risk_score
2023
2024
  # The risk score generated by the card network. For Visa this is the Visa Advanced
2024
- # Authorization risk score, from 0 to 99, where 99 is the riskiest.
2025
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
2026
+ # score is from 0 to 999, where 999 is the riskiest.
2025
2027
  #
2026
2028
  # @return [Integer, nil]
2027
2029
  required :network_risk_score, Integer, nil?: true
@@ -7170,7 +7172,8 @@ module Increase
7170
7172
 
7171
7173
  # @!attribute network_risk_score
7172
7174
  # The risk score generated by the card network. For Visa this is the Visa Advanced
7173
- # Authorization risk score, from 0 to 99, where 99 is the riskiest.
7175
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
7176
+ # score is from 0 to 999, where 999 is the riskiest.
7174
7177
  #
7175
7178
  # @return [Integer, nil]
7176
7179
  required :network_risk_score, Integer, nil?: true
@@ -256,7 +256,7 @@ module Increase
256
256
  # The available balance of the account must be at least the amount of the check, and a Pending Transaction will be created for the full amount.
257
257
  FULL = :full
258
258
 
259
- # No balance check will performed; a zero-dollar Pending Transaction will be created.
259
+ # No balance check will performed when the check transfer is initiated. A zero-dollar Pending Transaction will be created. The balance will still be checked when the Inbound Check Deposit is created.
260
260
  NONE = :none
261
261
 
262
262
  # @!method self.values
@@ -565,7 +565,8 @@ module Increase
565
565
 
566
566
  # @!attribute network_risk_score
567
567
  # The risk score generated by the card network. For Visa this is the Visa Advanced
568
- # Authorization risk score, from 0 to 99, where 99 is the riskiest.
568
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
569
+ # score is from 0 to 999, where 999 is the riskiest.
569
570
  #
570
571
  # @return [Integer, nil]
571
572
  required :network_risk_score, Integer, nil?: true
@@ -592,7 +592,8 @@ module Increase
592
592
 
593
593
  # @!attribute network_risk_score
594
594
  # The risk score generated by the card network. For Visa this is the Visa Advanced
595
- # Authorization risk score, from 0 to 99, where 99 is the riskiest.
595
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
596
+ # score is from 0 to 999, where 999 is the riskiest.
596
597
  #
597
598
  # @return [Integer, nil]
598
599
  required :network_risk_score, Integer, nil?: true
@@ -348,7 +348,8 @@ module Increase
348
348
 
349
349
  # @!attribute network_risk_score
350
350
  # The risk score generated by the card network. For Visa this is the Visa Advanced
351
- # Authorization risk score, from 0 to 99, where 99 is the riskiest.
351
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
352
+ # score is from 0 to 999, where 999 is the riskiest.
352
353
  #
353
354
  # @return [Integer, nil]
354
355
  required :network_risk_score, Integer, nil?: true
@@ -1400,7 +1400,8 @@ module Increase
1400
1400
 
1401
1401
  # @!attribute network_risk_score
1402
1402
  # The risk score generated by the card network. For Visa this is the Visa Advanced
1403
- # Authorization risk score, from 0 to 99, where 99 is the riskiest.
1403
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
1404
+ # score is from 0 to 999, where 999 is the riskiest.
1404
1405
  #
1405
1406
  # @return [Integer, nil]
1406
1407
  required :network_risk_score, Integer, nil?: true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.111.0"
4
+ VERSION = "1.113.0"
5
5
  end
@@ -1311,7 +1311,8 @@ module Increase
1311
1311
  attr_writer :network_identifiers
1312
1312
 
1313
1313
  # The risk score generated by the card network. For Visa this is the Visa Advanced
1314
- # Authorization risk score, from 0 to 99, where 99 is the riskiest.
1314
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
1315
+ # score is from 0 to 999, where 999 is the riskiest.
1315
1316
  sig { returns(T.nilable(Integer)) }
1316
1317
  attr_accessor :network_risk_score
1317
1318
 
@@ -1471,7 +1472,8 @@ module Increase
1471
1472
  # Network-specific identifiers for a specific request or transaction.
1472
1473
  network_identifiers:,
1473
1474
  # The risk score generated by the card network. For Visa this is the Visa Advanced
1474
- # Authorization risk score, from 0 to 99, where 99 is the riskiest.
1475
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
1476
+ # score is from 0 to 999, where 999 is the riskiest.
1475
1477
  network_risk_score:,
1476
1478
  # The identifier of the Pending Transaction associated with this Transaction.
1477
1479
  pending_transaction_id:,
@@ -3720,7 +3722,8 @@ module Increase
3720
3722
  attr_writer :network_identifiers
3721
3723
 
3722
3724
  # The risk score generated by the card network. For Visa this is the Visa Advanced
3723
- # Authorization risk score, from 0 to 99, where 99 is the riskiest.
3725
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
3726
+ # score is from 0 to 999, where 999 is the riskiest.
3724
3727
  sig { returns(T.nilable(Integer)) }
3725
3728
  attr_accessor :network_risk_score
3726
3729
 
@@ -3888,7 +3891,8 @@ module Increase
3888
3891
  # Network-specific identifiers for a specific request or transaction.
3889
3892
  network_identifiers:,
3890
3893
  # The risk score generated by the card network. For Visa this is the Visa Advanced
3891
- # Authorization risk score, from 0 to 99, where 99 is the riskiest.
3894
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
3895
+ # score is from 0 to 999, where 999 is the riskiest.
3892
3896
  network_risk_score:,
3893
3897
  # If the authorization was made in-person with a physical card, the Physical Card
3894
3898
  # that was used.
@@ -13118,7 +13122,8 @@ module Increase
13118
13122
  attr_writer :network_identifiers
13119
13123
 
13120
13124
  # The risk score generated by the card network. For Visa this is the Visa Advanced
13121
- # Authorization risk score, from 0 to 99, where 99 is the riskiest.
13125
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
13126
+ # score is from 0 to 999, where 999 is the riskiest.
13122
13127
  sig { returns(T.nilable(Integer)) }
13123
13128
  attr_accessor :network_risk_score
13124
13129
 
@@ -13238,7 +13243,8 @@ module Increase
13238
13243
  # Network-specific identifiers for a specific request or transaction.
13239
13244
  network_identifiers:,
13240
13245
  # The risk score generated by the card network. For Visa this is the Visa Advanced
13241
- # Authorization risk score, from 0 to 99, where 99 is the riskiest.
13246
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
13247
+ # score is from 0 to 999, where 999 is the riskiest.
13242
13248
  network_risk_score:,
13243
13249
  # If the authorization was made in-person with a physical card, the Physical Card
13244
13250
  # that was used.
@@ -375,7 +375,7 @@ module Increase
375
375
  # The available balance of the account must be at least the amount of the check, and a Pending Transaction will be created for the full amount.
376
376
  FULL = T.let(:full, Increase::CheckTransfer::BalanceCheck::TaggedSymbol)
377
377
 
378
- # No balance check will performed; a zero-dollar Pending Transaction will be created.
378
+ # No balance check will performed when the check transfer is initiated. A zero-dollar Pending Transaction will be created. The balance will still be checked when the Inbound Check Deposit is created.
379
379
  NONE = T.let(:none, Increase::CheckTransfer::BalanceCheck::TaggedSymbol)
380
380
 
381
381
  sig do
@@ -931,7 +931,8 @@ module Increase
931
931
  attr_writer :network_identifiers
932
932
 
933
933
  # The risk score generated by the card network. For Visa this is the Visa Advanced
934
- # Authorization risk score, from 0 to 99, where 99 is the riskiest.
934
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
935
+ # score is from 0 to 999, where 999 is the riskiest.
935
936
  sig { returns(T.nilable(Integer)) }
936
937
  attr_accessor :network_risk_score
937
938
 
@@ -1101,7 +1102,8 @@ module Increase
1101
1102
  # Network-specific identifiers for a specific request or transaction.
1102
1103
  network_identifiers:,
1103
1104
  # The risk score generated by the card network. For Visa this is the Visa Advanced
1104
- # Authorization risk score, from 0 to 99, where 99 is the riskiest.
1105
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
1106
+ # score is from 0 to 999, where 999 is the riskiest.
1105
1107
  network_risk_score:,
1106
1108
  # If the authorization was made in-person with a physical card, the Physical Card
1107
1109
  # that was used.
@@ -1040,7 +1040,8 @@ module Increase
1040
1040
  attr_writer :network_identifiers
1041
1041
 
1042
1042
  # The risk score generated by the card network. For Visa this is the Visa Advanced
1043
- # Authorization risk score, from 0 to 99, where 99 is the riskiest.
1043
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
1044
+ # score is from 0 to 999, where 999 is the riskiest.
1044
1045
  sig { returns(T.nilable(Integer)) }
1045
1046
  attr_accessor :network_risk_score
1046
1047
 
@@ -1200,7 +1201,8 @@ module Increase
1200
1201
  # Network-specific identifiers for a specific request or transaction.
1201
1202
  network_identifiers:,
1202
1203
  # The risk score generated by the card network. For Visa this is the Visa Advanced
1203
- # Authorization risk score, from 0 to 99, where 99 is the riskiest.
1204
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
1205
+ # score is from 0 to 999, where 999 is the riskiest.
1204
1206
  network_risk_score:,
1205
1207
  # The identifier of the Pending Transaction associated with this Transaction.
1206
1208
  pending_transaction_id:,
@@ -572,7 +572,8 @@ module Increase
572
572
  attr_writer :network_identifiers
573
573
 
574
574
  # The risk score generated by the card network. For Visa this is the Visa Advanced
575
- # Authorization risk score, from 0 to 99, where 99 is the riskiest.
575
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
576
+ # score is from 0 to 999, where 999 is the riskiest.
576
577
  sig { returns(T.nilable(Integer)) }
577
578
  attr_accessor :network_risk_score
578
579
 
@@ -736,7 +737,8 @@ module Increase
736
737
  # Network-specific identifiers for a specific request or transaction.
737
738
  network_identifiers:,
738
739
  # The risk score generated by the card network. For Visa this is the Visa Advanced
739
- # Authorization risk score, from 0 to 99, where 99 is the riskiest.
740
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
741
+ # score is from 0 to 999, where 999 is the riskiest.
740
742
  network_risk_score:,
741
743
  # If the authorization was made in-person with a physical card, the Physical Card
742
744
  # that was used.
@@ -2744,7 +2744,8 @@ module Increase
2744
2744
  attr_writer :network_identifiers
2745
2745
 
2746
2746
  # The risk score generated by the card network. For Visa this is the Visa Advanced
2747
- # Authorization risk score, from 0 to 99, where 99 is the riskiest.
2747
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
2748
+ # score is from 0 to 999, where 999 is the riskiest.
2748
2749
  sig { returns(T.nilable(Integer)) }
2749
2750
  attr_accessor :network_risk_score
2750
2751
 
@@ -2897,7 +2898,8 @@ module Increase
2897
2898
  # Network-specific identifiers for a specific request or transaction.
2898
2899
  network_identifiers:,
2899
2900
  # The risk score generated by the card network. For Visa this is the Visa Advanced
2900
- # Authorization risk score, from 0 to 99, where 99 is the riskiest.
2901
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
2902
+ # score is from 0 to 999, where 999 is the riskiest.
2901
2903
  network_risk_score:,
2902
2904
  # If the authorization was made in-person with a physical card, the Physical Card
2903
2905
  # that was used.
@@ -151,7 +151,7 @@ module Increase
151
151
  # The available balance of the account must be at least the amount of the check, and a Pending Transaction will be created for the full amount.
152
152
  FULL: :full
153
153
 
154
- # No balance check will performed; a zero-dollar Pending Transaction will be created.
154
+ # No balance check will performed when the check transfer is initiated. A zero-dollar Pending Transaction will be created. The balance will still be checked when the Inbound Check Deposit is created.
155
155
  NONE: :none
156
156
 
157
157
  def self?.values: -> ::Array[Increase::Models::CheckTransfer::balance_check]
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.111.0
4
+ version: 1.113.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-10-22 00:00:00.000000000 Z
11
+ date: 2025-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool