increase 1.79.0 → 1.80.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 +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +1 -1
- data/lib/increase/client.rb +0 -4
- data/lib/increase/errors.rb +25 -11
- data/lib/increase/internal/page.rb +1 -1
- data/lib/increase/internal/transport/base_client.rb +11 -7
- data/lib/increase/internal/type/base_page.rb +1 -1
- data/lib/increase/internal/util.rb +1 -1
- data/lib/increase/models/transaction.rb +3 -27
- data/lib/increase/models.rb +0 -8
- data/lib/increase/resources/simulations.rb +0 -4
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +0 -7
- data/rbi/increase/client.rbi +0 -3
- data/rbi/increase/errors.rbi +29 -2
- data/rbi/increase/internal/transport/base_client.rbi +4 -5
- data/rbi/increase/internal/type/base_page.rbi +1 -1
- data/rbi/increase/internal/util.rbi +1 -1
- data/rbi/increase/models/transaction.rbi +5 -39
- data/rbi/increase/models.rbi +0 -8
- data/rbi/increase/resources/simulations.rbi +0 -3
- data/sig/increase/client.rbs +0 -2
- data/sig/increase/errors.rbs +7 -0
- data/sig/increase/models/transaction.rbs +4 -28
- data/sig/increase/models.rbs +0 -8
- data/sig/increase/resources/simulations.rbs +0 -2
- metadata +1 -22
- data/lib/increase/models/card_dispute.rb +0 -302
- data/lib/increase/models/card_dispute_create_params.rb +0 -45
- data/lib/increase/models/card_dispute_list_params.rb +0 -144
- data/lib/increase/models/card_dispute_retrieve_params.rb +0 -14
- data/lib/increase/models/simulations/card_dispute_action_params.rb +0 -55
- data/lib/increase/resources/card_disputes.rb +0 -97
- data/lib/increase/resources/simulations/card_disputes.rb +0 -45
- data/rbi/increase/models/card_dispute.rbi +0 -425
- data/rbi/increase/models/card_dispute_create_params.rbi +0 -70
- data/rbi/increase/models/card_dispute_list_params.rbi +0 -289
- data/rbi/increase/models/card_dispute_retrieve_params.rbi +0 -30
- data/rbi/increase/models/simulations/card_dispute_action_params.rbi +0 -124
- data/rbi/increase/resources/card_disputes.rbi +0 -78
- data/rbi/increase/resources/simulations/card_disputes.rbi +0 -38
- data/sig/increase/models/card_dispute.rbs +0 -207
- data/sig/increase/models/card_dispute_create_params.rbs +0 -34
- data/sig/increase/models/card_dispute_list_params.rbs +0 -146
- data/sig/increase/models/card_dispute_retrieve_params.rbs +0 -15
- data/sig/increase/models/simulations/card_dispute_action_params.rbs +0 -59
- data/sig/increase/resources/card_disputes.rbs +0 -28
- data/sig/increase/resources/simulations/card_disputes.rbs +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 343135fffc41b357e677430877e8f571307fdafda068ee5583351c66765b6b1c
|
4
|
+
data.tar.gz: 2e0b9b79252c7a672a4453b89fd35c305a4260fd52d1e5569c674d796bd0edc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a724cffb3e3eca6f5479c67de7d70eb70e23b8d97b956b95644b91675d7e176c7cc6a28a604edd96aacf9d8593941902a6b5d852a9d70f5cd46cf713c8c3d14b
|
7
|
+
data.tar.gz: 78b5e798bde64c975949c74a4cf4550b0f8b18da78fd6db8d1456de59f65836a4f844b4c8e00c513941dc37dd18e1ae658c18c2b3d36ea6f1198196c55b08b84
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.80.0 (2025-09-17)
|
4
|
+
|
5
|
+
Full Changelog: [v1.79.0...v1.80.0](https://github.com/Increase/increase-ruby/compare/v1.79.0...v1.80.0)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** api update ([d16cb6a](https://github.com/Increase/increase-ruby/commit/d16cb6abc1e6f4ca71d86374cde091360d657602))
|
10
|
+
* expose response headers for both streams and errors ([17ddacf](https://github.com/Increase/increase-ruby/commit/17ddacf1c78a6f3e52a2f007d8efebab892db46e))
|
11
|
+
|
3
12
|
## 1.79.0 (2025-09-17)
|
4
13
|
|
5
14
|
Full Changelog: [v1.78.0...v1.79.0](https://github.com/Increase/increase-ruby/compare/v1.78.0...v1.79.0)
|
data/README.md
CHANGED
data/lib/increase/client.rb
CHANGED
@@ -41,9 +41,6 @@ module Increase
|
|
41
41
|
# @return [Increase::Resources::CardPurchaseSupplements]
|
42
42
|
attr_reader :card_purchase_supplements
|
43
43
|
|
44
|
-
# @return [Increase::Resources::CardDisputes]
|
45
|
-
attr_reader :card_disputes
|
46
|
-
|
47
44
|
# @return [Increase::Resources::PhysicalCards]
|
48
45
|
attr_reader :physical_cards
|
49
46
|
|
@@ -256,7 +253,6 @@ module Increase
|
|
256
253
|
@cards = Increase::Resources::Cards.new(client: self)
|
257
254
|
@card_payments = Increase::Resources::CardPayments.new(client: self)
|
258
255
|
@card_purchase_supplements = Increase::Resources::CardPurchaseSupplements.new(client: self)
|
259
|
-
@card_disputes = Increase::Resources::CardDisputes.new(client: self)
|
260
256
|
@physical_cards = Increase::Resources::PhysicalCards.new(client: self)
|
261
257
|
@digital_card_profiles = Increase::Resources::DigitalCardProfiles.new(client: self)
|
262
258
|
@physical_card_profiles = Increase::Resources::PhysicalCardProfiles.new(client: self)
|
data/lib/increase/errors.rb
CHANGED
@@ -40,6 +40,9 @@ module Increase
|
|
40
40
|
# @return [Integer, nil]
|
41
41
|
attr_accessor :status
|
42
42
|
|
43
|
+
# @return [Hash{String=>String}, nil]
|
44
|
+
attr_accessor :headers
|
45
|
+
|
43
46
|
# @return [Object, nil]
|
44
47
|
attr_accessor :body
|
45
48
|
|
@@ -47,13 +50,15 @@ module Increase
|
|
47
50
|
#
|
48
51
|
# @param url [URI::Generic]
|
49
52
|
# @param status [Integer, nil]
|
53
|
+
# @param headers [Hash{String=>String}, nil]
|
50
54
|
# @param body [Object, nil]
|
51
55
|
# @param request [nil]
|
52
56
|
# @param response [nil]
|
53
57
|
# @param message [String, nil]
|
54
|
-
def initialize(url:, status: nil, body: nil, request: nil, response: nil, message: nil)
|
58
|
+
def initialize(url:, status: nil, headers: nil, body: nil, request: nil, response: nil, message: nil)
|
55
59
|
@url = url
|
56
60
|
@status = status
|
61
|
+
@headers = headers
|
57
62
|
@body = body
|
58
63
|
@request = request
|
59
64
|
@response = response
|
@@ -74,6 +79,7 @@ module Increase
|
|
74
79
|
#
|
75
80
|
# @param url [URI::Generic]
|
76
81
|
# @param status [nil]
|
82
|
+
# @param headers [Hash{String=>String}, nil]
|
77
83
|
# @param body [nil]
|
78
84
|
# @param request [nil]
|
79
85
|
# @param response [nil]
|
@@ -81,6 +87,7 @@ module Increase
|
|
81
87
|
def initialize(
|
82
88
|
url:,
|
83
89
|
status: nil,
|
90
|
+
headers: nil,
|
84
91
|
body: nil,
|
85
92
|
request: nil,
|
86
93
|
response: nil,
|
@@ -95,6 +102,7 @@ module Increase
|
|
95
102
|
#
|
96
103
|
# @param url [URI::Generic]
|
97
104
|
# @param status [nil]
|
105
|
+
# @param headers [Hash{String=>String}, nil]
|
98
106
|
# @param body [nil]
|
99
107
|
# @param request [nil]
|
100
108
|
# @param response [nil]
|
@@ -102,6 +110,7 @@ module Increase
|
|
102
110
|
def initialize(
|
103
111
|
url:,
|
104
112
|
status: nil,
|
113
|
+
headers: nil,
|
105
114
|
body: nil,
|
106
115
|
request: nil,
|
107
116
|
response: nil,
|
@@ -116,22 +125,25 @@ module Increase
|
|
116
125
|
#
|
117
126
|
# @param url [URI::Generic]
|
118
127
|
# @param status [Integer]
|
128
|
+
# @param headers [Hash{String=>String}, nil]
|
119
129
|
# @param body [Object, nil]
|
120
130
|
# @param request [nil]
|
121
131
|
# @param response [nil]
|
122
132
|
# @param message [String, nil]
|
123
133
|
#
|
124
134
|
# @return [self]
|
125
|
-
def self.for(url:, status:, body:, request:, response:, message: nil)
|
135
|
+
def self.for(url:, status:, headers:, body:, request:, response:, message: nil)
|
126
136
|
key = Increase::Internal::Util.dig(body, :type)
|
127
|
-
kwargs =
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
137
|
+
kwargs =
|
138
|
+
{
|
139
|
+
url: url,
|
140
|
+
status: status,
|
141
|
+
headers: headers,
|
142
|
+
body: body,
|
143
|
+
request: request,
|
144
|
+
response: response,
|
145
|
+
message: message
|
146
|
+
}
|
135
147
|
|
136
148
|
case [status, key]
|
137
149
|
in [400, Increase::Errors::InvalidParametersError::TYPE]
|
@@ -185,15 +197,17 @@ module Increase
|
|
185
197
|
#
|
186
198
|
# @param url [URI::Generic]
|
187
199
|
# @param status [Integer]
|
200
|
+
# @param headers [Hash{String=>String}, nil]
|
188
201
|
# @param body [Object, nil]
|
189
202
|
# @param request [nil]
|
190
203
|
# @param response [nil]
|
191
204
|
# @param message [String, nil]
|
192
|
-
def initialize(url:, status:, body:, request:, response:, message: nil)
|
205
|
+
def initialize(url:, status:, headers:, body:, request:, response:, message: nil)
|
193
206
|
message ||= {url: url.to_s, status: status, body: body}
|
194
207
|
super(
|
195
208
|
url: url,
|
196
209
|
status: status,
|
210
|
+
headers: headers,
|
197
211
|
body: body,
|
198
212
|
request: request,
|
199
213
|
response: response,
|
@@ -60,7 +60,7 @@ module Increase
|
|
60
60
|
#
|
61
61
|
# @param client [Increase::Internal::Transport::BaseClient]
|
62
62
|
# @param req [Hash{Symbol=>Object}]
|
63
|
-
# @param headers [Hash{String=>String}
|
63
|
+
# @param headers [Hash{String=>String}]
|
64
64
|
# @param page_data [Hash{Symbol=>Object}]
|
65
65
|
def initialize(client:, req:, headers:, page_data:)
|
66
66
|
super
|
@@ -47,7 +47,7 @@ module Increase
|
|
47
47
|
# @api private
|
48
48
|
#
|
49
49
|
# @param status [Integer]
|
50
|
-
# @param headers [Hash{String=>String}
|
50
|
+
# @param headers [Hash{String=>String}]
|
51
51
|
#
|
52
52
|
# @return [Boolean]
|
53
53
|
def should_retry?(status, headers:)
|
@@ -85,7 +85,7 @@ module Increase
|
|
85
85
|
#
|
86
86
|
# @param status [Integer]
|
87
87
|
#
|
88
|
-
# @param response_headers [Hash{String=>String}
|
88
|
+
# @param response_headers [Hash{String=>String}]
|
89
89
|
#
|
90
90
|
# @return [Hash{Symbol=>Object}]
|
91
91
|
def follow_redirect(request, status:, response_headers:)
|
@@ -378,6 +378,7 @@ module Increase
|
|
378
378
|
rescue Increase::Errors::APIConnectionError => e
|
379
379
|
status = e
|
380
380
|
end
|
381
|
+
headers = Increase::Internal::Util.normalized_headers(response&.each_header&.to_h)
|
381
382
|
|
382
383
|
case status
|
383
384
|
in ..299
|
@@ -390,7 +391,7 @@ module Increase
|
|
390
391
|
in 300..399
|
391
392
|
self.class.reap_connection!(status, stream: stream)
|
392
393
|
|
393
|
-
request = self.class.follow_redirect(request, status: status, response_headers:
|
394
|
+
request = self.class.follow_redirect(request, status: status, response_headers: headers)
|
394
395
|
send_request(
|
395
396
|
request,
|
396
397
|
redirect_count: redirect_count + 1,
|
@@ -399,9 +400,9 @@ module Increase
|
|
399
400
|
)
|
400
401
|
in Increase::Errors::APIConnectionError if retry_count >= max_retries
|
401
402
|
raise status
|
402
|
-
in (400..) if retry_count >= max_retries || !self.class.should_retry?(status, headers:
|
403
|
+
in (400..) if retry_count >= max_retries || !self.class.should_retry?(status, headers: headers)
|
403
404
|
decoded = Kernel.then do
|
404
|
-
Increase::Internal::Util.decode_content(
|
405
|
+
Increase::Internal::Util.decode_content(headers, stream: stream, suppress_error: true)
|
405
406
|
ensure
|
406
407
|
self.class.reap_connection!(status, stream: stream)
|
407
408
|
end
|
@@ -409,6 +410,7 @@ module Increase
|
|
409
410
|
raise Increase::Errors::APIStatusError.for(
|
410
411
|
url: url,
|
411
412
|
status: status,
|
413
|
+
headers: headers,
|
412
414
|
body: decoded,
|
413
415
|
request: nil,
|
414
416
|
response: response
|
@@ -485,19 +487,21 @@ module Increase
|
|
485
487
|
send_retry_header: send_retry_header
|
486
488
|
)
|
487
489
|
|
488
|
-
|
490
|
+
headers = Increase::Internal::Util.normalized_headers(response.each_header.to_h)
|
491
|
+
decoded = Increase::Internal::Util.decode_content(headers, stream: stream)
|
489
492
|
case req
|
490
493
|
in {stream: Class => st}
|
491
494
|
st.new(
|
492
495
|
model: model,
|
493
496
|
url: url,
|
494
497
|
status: status,
|
498
|
+
headers: headers,
|
495
499
|
response: response,
|
496
500
|
unwrap: unwrap,
|
497
501
|
stream: decoded
|
498
502
|
)
|
499
503
|
in {page: Class => page}
|
500
|
-
page.new(client: self, req: req, headers:
|
504
|
+
page.new(client: self, req: req, headers: headers, page_data: decoded)
|
501
505
|
else
|
502
506
|
unwrapped = Increase::Internal::Util.dig(decoded, unwrap)
|
503
507
|
Increase::Internal::Type::Converter.coerce(model, unwrapped)
|
@@ -39,7 +39,7 @@ module Increase
|
|
39
39
|
#
|
40
40
|
# @param client [Increase::Internal::Transport::BaseClient]
|
41
41
|
# @param req [Hash{Symbol=>Object}]
|
42
|
-
# @param headers [Hash{String=>String}
|
42
|
+
# @param headers [Hash{String=>String}]
|
43
43
|
# @param page_data [Object]
|
44
44
|
def initialize(client:, req:, headers:, page_data:)
|
45
45
|
@client = client
|
@@ -647,7 +647,7 @@ module Increase
|
|
647
647
|
#
|
648
648
|
# Assumes each chunk in stream has `Encoding::BINARY`.
|
649
649
|
#
|
650
|
-
# @param headers [Hash{String=>String}
|
650
|
+
# @param headers [Hash{String=>String}]
|
651
651
|
# @param stream [Enumerable<String>]
|
652
652
|
# @param suppress_error [Boolean]
|
653
653
|
#
|
@@ -1108,12 +1108,6 @@ module Increase
|
|
1108
1108
|
# @return [Time]
|
1109
1109
|
required :accepted_at, Time
|
1110
1110
|
|
1111
|
-
# @!attribute card_dispute_id
|
1112
|
-
# The identifier of the Card Dispute that was accepted.
|
1113
|
-
#
|
1114
|
-
# @return [String]
|
1115
|
-
required :card_dispute_id, String
|
1116
|
-
|
1117
1111
|
# @!attribute transaction_id
|
1118
1112
|
# The identifier of the Transaction that was created to return the disputed funds
|
1119
1113
|
# to your account.
|
@@ -1121,7 +1115,7 @@ module Increase
|
|
1121
1115
|
# @return [String]
|
1122
1116
|
required :transaction_id, String
|
1123
1117
|
|
1124
|
-
# @!method initialize(accepted_at:,
|
1118
|
+
# @!method initialize(accepted_at:, transaction_id:)
|
1125
1119
|
# Some parameter documentations has been truncated, see
|
1126
1120
|
# {Increase::Models::Transaction::Source::CardDisputeAcceptance} for more details.
|
1127
1121
|
#
|
@@ -1131,8 +1125,6 @@ module Increase
|
|
1131
1125
|
#
|
1132
1126
|
# @param accepted_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
|
1133
1127
|
#
|
1134
|
-
# @param card_dispute_id [String] The identifier of the Card Dispute that was accepted.
|
1135
|
-
#
|
1136
1128
|
# @param transaction_id [String] The identifier of the Transaction that was created to return the disputed funds
|
1137
1129
|
end
|
1138
1130
|
|
@@ -1144,12 +1136,6 @@ module Increase
|
|
1144
1136
|
# @return [Integer]
|
1145
1137
|
required :amount, Integer
|
1146
1138
|
|
1147
|
-
# @!attribute card_dispute_id
|
1148
|
-
# The identifier of the Card Dispute the financial event is associated with.
|
1149
|
-
#
|
1150
|
-
# @return [String]
|
1151
|
-
required :card_dispute_id, String
|
1152
|
-
|
1153
1139
|
# @!attribute network
|
1154
1140
|
# The network that the Card Dispute is associated with.
|
1155
1141
|
#
|
@@ -1171,7 +1157,7 @@ module Increase
|
|
1171
1157
|
# @return [Increase::Models::Transaction::Source::CardDisputeFinancial::Visa, nil]
|
1172
1158
|
required :visa, -> { Increase::Transaction::Source::CardDisputeFinancial::Visa }, nil?: true
|
1173
1159
|
|
1174
|
-
# @!method initialize(amount:,
|
1160
|
+
# @!method initialize(amount:, network:, transaction_id:, visa:)
|
1175
1161
|
# Some parameter documentations has been truncated, see
|
1176
1162
|
# {Increase::Models::Transaction::Source::CardDisputeFinancial} for more details.
|
1177
1163
|
#
|
@@ -1181,8 +1167,6 @@ module Increase
|
|
1181
1167
|
#
|
1182
1168
|
# @param amount [Integer] The amount of the financial event.
|
1183
1169
|
#
|
1184
|
-
# @param card_dispute_id [String] The identifier of the Card Dispute the financial event is associated with.
|
1185
|
-
#
|
1186
1170
|
# @param network [Symbol, Increase::Models::Transaction::Source::CardDisputeFinancial::Network] The network that the Card Dispute is associated with.
|
1187
1171
|
#
|
1188
1172
|
# @param transaction_id [String] The identifier of the Transaction that was created to credit or debit the disput
|
@@ -1252,12 +1236,6 @@ module Increase
|
|
1252
1236
|
|
1253
1237
|
# @see Increase::Models::Transaction::Source#card_dispute_loss
|
1254
1238
|
class CardDisputeLoss < Increase::Internal::Type::BaseModel
|
1255
|
-
# @!attribute card_dispute_id
|
1256
|
-
# The identifier of the Card Dispute that was lost.
|
1257
|
-
#
|
1258
|
-
# @return [String]
|
1259
|
-
required :card_dispute_id, String
|
1260
|
-
|
1261
1239
|
# @!attribute explanation
|
1262
1240
|
# Why the Card Dispute was lost.
|
1263
1241
|
#
|
@@ -1278,7 +1256,7 @@ module Increase
|
|
1278
1256
|
# @return [String]
|
1279
1257
|
required :transaction_id, String
|
1280
1258
|
|
1281
|
-
# @!method initialize(
|
1259
|
+
# @!method initialize(explanation:, lost_at:, transaction_id:)
|
1282
1260
|
# Some parameter documentations has been truncated, see
|
1283
1261
|
# {Increase::Models::Transaction::Source::CardDisputeLoss} for more details.
|
1284
1262
|
#
|
@@ -1286,8 +1264,6 @@ module Increase
|
|
1286
1264
|
# and only if `category` is equal to `card_dispute_loss`. Contains the details of
|
1287
1265
|
# a lost Card Dispute.
|
1288
1266
|
#
|
1289
|
-
# @param card_dispute_id [String] The identifier of the Card Dispute that was lost.
|
1290
|
-
#
|
1291
1267
|
# @param explanation [String] Why the Card Dispute was lost.
|
1292
1268
|
#
|
1293
1269
|
# @param lost_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
|
data/lib/increase/models.rb
CHANGED
@@ -139,14 +139,6 @@ module Increase
|
|
139
139
|
|
140
140
|
CardDetailsParams = Increase::Models::CardDetailsParams
|
141
141
|
|
142
|
-
CardDispute = Increase::Models::CardDispute
|
143
|
-
|
144
|
-
CardDisputeCreateParams = Increase::Models::CardDisputeCreateParams
|
145
|
-
|
146
|
-
CardDisputeListParams = Increase::Models::CardDisputeListParams
|
147
|
-
|
148
|
-
CardDisputeRetrieveParams = Increase::Models::CardDisputeRetrieveParams
|
149
|
-
|
150
142
|
CardIframeURL = Increase::Models::CardIframeURL
|
151
143
|
|
152
144
|
CardListParams = Increase::Models::CardListParams
|
@@ -30,9 +30,6 @@ module Increase
|
|
30
30
|
# @return [Increase::Resources::Simulations::CardRefunds]
|
31
31
|
attr_reader :card_refunds
|
32
32
|
|
33
|
-
# @return [Increase::Resources::Simulations::CardDisputes]
|
34
|
-
attr_reader :card_disputes
|
35
|
-
|
36
33
|
# @return [Increase::Resources::Simulations::PhysicalCards]
|
37
34
|
attr_reader :physical_cards
|
38
35
|
|
@@ -105,7 +102,6 @@ module Increase
|
|
105
102
|
@card_increments = Increase::Resources::Simulations::CardIncrements.new(client: client)
|
106
103
|
@card_fuel_confirmations = Increase::Resources::Simulations::CardFuelConfirmations.new(client: client)
|
107
104
|
@card_refunds = Increase::Resources::Simulations::CardRefunds.new(client: client)
|
108
|
-
@card_disputes = Increase::Resources::Simulations::CardDisputes.new(client: client)
|
109
105
|
@physical_cards = Increase::Resources::Simulations::PhysicalCards.new(client: client)
|
110
106
|
@digital_wallet_token_requests =
|
111
107
|
Increase::Resources::Simulations::DigitalWalletTokenRequests.new(client: client)
|
data/lib/increase/version.rb
CHANGED
data/lib/increase.rb
CHANGED
@@ -101,10 +101,6 @@ require_relative "increase/models/card_create_details_iframe_params"
|
|
101
101
|
require_relative "increase/models/card_create_params"
|
102
102
|
require_relative "increase/models/card_details"
|
103
103
|
require_relative "increase/models/card_details_params"
|
104
|
-
require_relative "increase/models/card_dispute"
|
105
|
-
require_relative "increase/models/card_dispute_create_params"
|
106
|
-
require_relative "increase/models/card_dispute_list_params"
|
107
|
-
require_relative "increase/models/card_dispute_retrieve_params"
|
108
104
|
require_relative "increase/models/card_iframe_url"
|
109
105
|
require_relative "increase/models/card_list_params"
|
110
106
|
require_relative "increase/models/card_payment"
|
@@ -284,7 +280,6 @@ require_relative "increase/models/simulations/ach_transfer_submit_params"
|
|
284
280
|
require_relative "increase/models/simulations/card_authorization_create_params"
|
285
281
|
require_relative "increase/models/simulations/card_authorization_create_response"
|
286
282
|
require_relative "increase/models/simulations/card_authorization_expiration_create_params"
|
287
|
-
require_relative "increase/models/simulations/card_dispute_action_params"
|
288
283
|
require_relative "increase/models/simulations/card_fuel_confirmation_create_params"
|
289
284
|
require_relative "increase/models/simulations/card_increment_create_params"
|
290
285
|
require_relative "increase/models/simulations/card_refund_create_params"
|
@@ -339,7 +334,6 @@ require_relative "increase/resources/ach_transfers"
|
|
339
334
|
require_relative "increase/resources/bookkeeping_accounts"
|
340
335
|
require_relative "increase/resources/bookkeeping_entries"
|
341
336
|
require_relative "increase/resources/bookkeeping_entry_sets"
|
342
|
-
require_relative "increase/resources/card_disputes"
|
343
337
|
require_relative "increase/resources/card_payments"
|
344
338
|
require_relative "increase/resources/card_purchase_supplements"
|
345
339
|
require_relative "increase/resources/card_push_transfers"
|
@@ -386,7 +380,6 @@ require_relative "increase/resources/simulations/account_transfers"
|
|
386
380
|
require_relative "increase/resources/simulations/ach_transfers"
|
387
381
|
require_relative "increase/resources/simulations/card_authorization_expirations"
|
388
382
|
require_relative "increase/resources/simulations/card_authorizations"
|
389
|
-
require_relative "increase/resources/simulations/card_disputes"
|
390
383
|
require_relative "increase/resources/simulations/card_fuel_confirmations"
|
391
384
|
require_relative "increase/resources/simulations/card_increments"
|
392
385
|
require_relative "increase/resources/simulations/card_refunds"
|
data/rbi/increase/client.rbi
CHANGED
@@ -40,9 +40,6 @@ module Increase
|
|
40
40
|
sig { returns(Increase::Resources::CardPurchaseSupplements) }
|
41
41
|
attr_reader :card_purchase_supplements
|
42
42
|
|
43
|
-
sig { returns(Increase::Resources::CardDisputes) }
|
44
|
-
attr_reader :card_disputes
|
45
|
-
|
46
43
|
sig { returns(Increase::Resources::PhysicalCards) }
|
47
44
|
attr_reader :physical_cards
|
48
45
|
|
data/rbi/increase/errors.rbi
CHANGED
@@ -33,6 +33,9 @@ module Increase
|
|
33
33
|
sig { returns(T.nilable(Integer)) }
|
34
34
|
attr_accessor :status
|
35
35
|
|
36
|
+
sig { returns(T.nilable(T::Hash[String, String])) }
|
37
|
+
attr_accessor :headers
|
38
|
+
|
36
39
|
sig { returns(T.nilable(T.anything)) }
|
37
40
|
attr_accessor :body
|
38
41
|
|
@@ -41,6 +44,7 @@ module Increase
|
|
41
44
|
params(
|
42
45
|
url: URI::Generic,
|
43
46
|
status: T.nilable(Integer),
|
47
|
+
headers: T.nilable(T::Hash[String, String]),
|
44
48
|
body: T.nilable(Object),
|
45
49
|
request: NilClass,
|
46
50
|
response: NilClass,
|
@@ -50,6 +54,7 @@ module Increase
|
|
50
54
|
def self.new(
|
51
55
|
url:,
|
52
56
|
status: nil,
|
57
|
+
headers: nil,
|
53
58
|
body: nil,
|
54
59
|
request: nil,
|
55
60
|
response: nil,
|
@@ -70,6 +75,7 @@ module Increase
|
|
70
75
|
params(
|
71
76
|
url: URI::Generic,
|
72
77
|
status: NilClass,
|
78
|
+
headers: T.nilable(T::Hash[String, String]),
|
73
79
|
body: NilClass,
|
74
80
|
request: NilClass,
|
75
81
|
response: NilClass,
|
@@ -79,6 +85,7 @@ module Increase
|
|
79
85
|
def self.new(
|
80
86
|
url:,
|
81
87
|
status: nil,
|
88
|
+
headers: nil,
|
82
89
|
body: nil,
|
83
90
|
request: nil,
|
84
91
|
response: nil,
|
@@ -93,6 +100,7 @@ module Increase
|
|
93
100
|
params(
|
94
101
|
url: URI::Generic,
|
95
102
|
status: NilClass,
|
103
|
+
headers: T.nilable(T::Hash[String, String]),
|
96
104
|
body: NilClass,
|
97
105
|
request: NilClass,
|
98
106
|
response: NilClass,
|
@@ -102,6 +110,7 @@ module Increase
|
|
102
110
|
def self.new(
|
103
111
|
url:,
|
104
112
|
status: nil,
|
113
|
+
headers: nil,
|
105
114
|
body: nil,
|
106
115
|
request: nil,
|
107
116
|
response: nil,
|
@@ -116,13 +125,22 @@ module Increase
|
|
116
125
|
params(
|
117
126
|
url: URI::Generic,
|
118
127
|
status: Integer,
|
128
|
+
headers: T.nilable(T::Hash[String, String]),
|
119
129
|
body: T.nilable(Object),
|
120
130
|
request: NilClass,
|
121
131
|
response: NilClass,
|
122
132
|
message: T.nilable(String)
|
123
133
|
).returns(T.attached_class)
|
124
134
|
end
|
125
|
-
def self.for(
|
135
|
+
def self.for(
|
136
|
+
url:,
|
137
|
+
status:,
|
138
|
+
headers:,
|
139
|
+
body:,
|
140
|
+
request:,
|
141
|
+
response:,
|
142
|
+
message: nil
|
143
|
+
)
|
126
144
|
end
|
127
145
|
|
128
146
|
sig { returns(Integer) }
|
@@ -133,13 +151,22 @@ module Increase
|
|
133
151
|
params(
|
134
152
|
url: URI::Generic,
|
135
153
|
status: Integer,
|
154
|
+
headers: T.nilable(T::Hash[String, String]),
|
136
155
|
body: T.nilable(Object),
|
137
156
|
request: NilClass,
|
138
157
|
response: NilClass,
|
139
158
|
message: T.nilable(String)
|
140
159
|
).returns(T.attached_class)
|
141
160
|
end
|
142
|
-
def self.new(
|
161
|
+
def self.new(
|
162
|
+
url:,
|
163
|
+
status:,
|
164
|
+
headers:,
|
165
|
+
body:,
|
166
|
+
request:,
|
167
|
+
response:,
|
168
|
+
message: nil
|
169
|
+
)
|
143
170
|
end
|
144
171
|
end
|
145
172
|
|
@@ -84,10 +84,9 @@ module Increase
|
|
84
84
|
|
85
85
|
# @api private
|
86
86
|
sig do
|
87
|
-
params(
|
88
|
-
|
89
|
-
|
90
|
-
).returns(T::Boolean)
|
87
|
+
params(status: Integer, headers: T::Hash[String, String]).returns(
|
88
|
+
T::Boolean
|
89
|
+
)
|
91
90
|
end
|
92
91
|
def should_retry?(status, headers:)
|
93
92
|
end
|
@@ -97,7 +96,7 @@ module Increase
|
|
97
96
|
params(
|
98
97
|
request: Increase::Internal::Transport::BaseClient::RequestInput,
|
99
98
|
status: Integer,
|
100
|
-
response_headers: T
|
99
|
+
response_headers: T::Hash[String, String]
|
101
100
|
).returns(Increase::Internal::Transport::BaseClient::RequestInput)
|
102
101
|
end
|
103
102
|
def follow_redirect(request, status:, response_headers:)
|
@@ -30,7 +30,7 @@ module Increase
|
|
30
30
|
params(
|
31
31
|
client: Increase::Internal::Transport::BaseClient,
|
32
32
|
req: Increase::Internal::Transport::BaseClient::RequestComponents,
|
33
|
-
headers: T
|
33
|
+
headers: T::Hash[String, String],
|
34
34
|
page_data: T.anything
|
35
35
|
).void
|
36
36
|
end
|
@@ -361,7 +361,7 @@ module Increase
|
|
361
361
|
# Assumes each chunk in stream has `Encoding::BINARY`.
|
362
362
|
sig do
|
363
363
|
params(
|
364
|
-
headers: T
|
364
|
+
headers: T::Hash[String, String],
|
365
365
|
stream: T::Enumerable[String],
|
366
366
|
suppress_error: T::Boolean
|
367
367
|
).returns(T.anything)
|