increase 1.216.0 → 1.217.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 +8 -0
- data/README.md +1 -1
- data/lib/increase/models/check_deposit.rb +71 -1
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/check_deposit.rbi +132 -0
- data/sig/increase/models/check_deposit.rbs +65 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 26a77a23dc8c764bfa79aaa005456d2cffbcdc060e06c2a173633f60c786dfcc
|
|
4
|
+
data.tar.gz: 44b3637ec3aa79d2c92425d060e29b504447e13c37ce53856fde6519d910c582
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 367227a99e017c597f780711ff82345674734e5bbe07654c976bfc59fd0198148339c004ba9937b34c60f1194f6166c2a589f30db1062366a65a4c9f35888a11
|
|
7
|
+
data.tar.gz: 57988c078c09701afeb9a42f75872afc0ece49731cd38a9cae16ddfcd6cda8b19ee98e332015a9ddc7d5b1c1b3b8a162a40abf6419d68ae5c5a8f63bb92aefc3
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.217.0 (2026-03-02)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.216.0...v1.217.0](https://github.com/Increase/increase-ruby/compare/v1.216.0...v1.217.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([e890f47](https://github.com/Increase/increase-ruby/commit/e890f473afbe526a119d61b8a356177ca5bf4d95))
|
|
10
|
+
|
|
3
11
|
## 1.216.0 (2026-03-02)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v1.215.0...v1.216.0](https://github.com/Increase/increase-ruby/compare/v1.215.0...v1.216.0)
|
data/README.md
CHANGED
|
@@ -42,6 +42,14 @@ module Increase
|
|
|
42
42
|
# @return [Increase::Models::CheckDeposit::DepositAcceptance, nil]
|
|
43
43
|
required :deposit_acceptance, -> { Increase::CheckDeposit::DepositAcceptance }, nil?: true
|
|
44
44
|
|
|
45
|
+
# @!attribute deposit_adjustments
|
|
46
|
+
# If the deposit or the return was adjusted by the receiving institution, this
|
|
47
|
+
# will contain details of the adjustments.
|
|
48
|
+
#
|
|
49
|
+
# @return [Array<Increase::Models::CheckDeposit::DepositAdjustment>]
|
|
50
|
+
required :deposit_adjustments,
|
|
51
|
+
-> { Increase::Internal::Type::ArrayOf[Increase::CheckDeposit::DepositAdjustment] }
|
|
52
|
+
|
|
45
53
|
# @!attribute deposit_rejection
|
|
46
54
|
# If your deposit is rejected by Increase, this will contain details as to why it
|
|
47
55
|
# was rejected.
|
|
@@ -123,7 +131,7 @@ module Increase
|
|
|
123
131
|
# @return [Symbol, Increase::Models::CheckDeposit::Type]
|
|
124
132
|
required :type, enum: -> { Increase::CheckDeposit::Type }
|
|
125
133
|
|
|
126
|
-
# @!method initialize(id:, account_id:, amount:, back_image_file_id:, created_at:, deposit_acceptance:, deposit_rejection:, deposit_return:, deposit_submission:, description:, front_image_file_id:, idempotency_key:, inbound_funds_hold:, inbound_mail_item_id:, lockbox_id:, status:, transaction_id:, type:)
|
|
134
|
+
# @!method initialize(id:, account_id:, amount:, back_image_file_id:, created_at:, deposit_acceptance:, deposit_adjustments:, deposit_rejection:, deposit_return:, deposit_submission:, description:, front_image_file_id:, idempotency_key:, inbound_funds_hold:, inbound_mail_item_id:, lockbox_id:, status:, transaction_id:, type:)
|
|
127
135
|
# Some parameter documentations has been truncated, see
|
|
128
136
|
# {Increase::Models::CheckDeposit} for more details.
|
|
129
137
|
#
|
|
@@ -141,6 +149,8 @@ module Increase
|
|
|
141
149
|
#
|
|
142
150
|
# @param deposit_acceptance [Increase::Models::CheckDeposit::DepositAcceptance, nil] Once your deposit is successfully parsed and accepted by Increase, this will con
|
|
143
151
|
#
|
|
152
|
+
# @param deposit_adjustments [Array<Increase::Models::CheckDeposit::DepositAdjustment>] If the deposit or the return was adjusted by the receiving institution, this wil
|
|
153
|
+
#
|
|
144
154
|
# @param deposit_rejection [Increase::Models::CheckDeposit::DepositRejection, nil] If your deposit is rejected by Increase, this will contain details as to why it
|
|
145
155
|
#
|
|
146
156
|
# @param deposit_return [Increase::Models::CheckDeposit::DepositReturn, nil] If your deposit is returned, this will contain details as to why it was returned
|
|
@@ -251,6 +261,66 @@ module Increase
|
|
|
251
261
|
end
|
|
252
262
|
end
|
|
253
263
|
|
|
264
|
+
class DepositAdjustment < Increase::Internal::Type::BaseModel
|
|
265
|
+
# @!attribute adjusted_at
|
|
266
|
+
# The time at which the adjustment was received.
|
|
267
|
+
#
|
|
268
|
+
# @return [Time]
|
|
269
|
+
required :adjusted_at, Time
|
|
270
|
+
|
|
271
|
+
# @!attribute amount
|
|
272
|
+
# The amount of the adjustment.
|
|
273
|
+
#
|
|
274
|
+
# @return [Integer]
|
|
275
|
+
required :amount, Integer
|
|
276
|
+
|
|
277
|
+
# @!attribute reason
|
|
278
|
+
# The reason for the adjustment.
|
|
279
|
+
#
|
|
280
|
+
# @return [Symbol, Increase::Models::CheckDeposit::DepositAdjustment::Reason]
|
|
281
|
+
required :reason, enum: -> { Increase::CheckDeposit::DepositAdjustment::Reason }
|
|
282
|
+
|
|
283
|
+
# @!attribute transaction_id
|
|
284
|
+
# The id of the transaction for the adjustment.
|
|
285
|
+
#
|
|
286
|
+
# @return [String]
|
|
287
|
+
required :transaction_id, String
|
|
288
|
+
|
|
289
|
+
# @!method initialize(adjusted_at:, amount:, reason:, transaction_id:)
|
|
290
|
+
# @param adjusted_at [Time] The time at which the adjustment was received.
|
|
291
|
+
#
|
|
292
|
+
# @param amount [Integer] The amount of the adjustment.
|
|
293
|
+
#
|
|
294
|
+
# @param reason [Symbol, Increase::Models::CheckDeposit::DepositAdjustment::Reason] The reason for the adjustment.
|
|
295
|
+
#
|
|
296
|
+
# @param transaction_id [String] The id of the transaction for the adjustment.
|
|
297
|
+
|
|
298
|
+
# The reason for the adjustment.
|
|
299
|
+
#
|
|
300
|
+
# @see Increase::Models::CheckDeposit::DepositAdjustment#reason
|
|
301
|
+
module Reason
|
|
302
|
+
extend Increase::Internal::Type::Enum
|
|
303
|
+
|
|
304
|
+
# The return was initiated too late and the receiving institution has responded with a Late Return Claim.
|
|
305
|
+
LATE_RETURN = :late_return
|
|
306
|
+
|
|
307
|
+
# The check was deposited to the wrong payee and the depositing institution has reimbursed the funds with a Wrong Payee Credit.
|
|
308
|
+
WRONG_PAYEE_CREDIT = :wrong_payee_credit
|
|
309
|
+
|
|
310
|
+
# The check was deposited with a different amount than what was written on the check.
|
|
311
|
+
ADJUSTED_AMOUNT = :adjusted_amount
|
|
312
|
+
|
|
313
|
+
# The recipient was not able to process the check. This usually happens for e.g., low quality images.
|
|
314
|
+
NON_CONFORMING_ITEM = :non_conforming_item
|
|
315
|
+
|
|
316
|
+
# The check has already been deposited elsewhere and so this is a duplicate.
|
|
317
|
+
PAID = :paid
|
|
318
|
+
|
|
319
|
+
# @!method self.values
|
|
320
|
+
# @return [Array<Symbol>]
|
|
321
|
+
end
|
|
322
|
+
end
|
|
323
|
+
|
|
254
324
|
# @see Increase::Models::CheckDeposit#deposit_rejection
|
|
255
325
|
class DepositRejection < Increase::Internal::Type::BaseModel
|
|
256
326
|
# @!attribute amount
|
data/lib/increase/version.rb
CHANGED
|
@@ -42,6 +42,11 @@ module Increase
|
|
|
42
42
|
end
|
|
43
43
|
attr_writer :deposit_acceptance
|
|
44
44
|
|
|
45
|
+
# If the deposit or the return was adjusted by the receiving institution, this
|
|
46
|
+
# will contain details of the adjustments.
|
|
47
|
+
sig { returns(T::Array[Increase::CheckDeposit::DepositAdjustment]) }
|
|
48
|
+
attr_accessor :deposit_adjustments
|
|
49
|
+
|
|
45
50
|
# If your deposit is rejected by Increase, this will contain details as to why it
|
|
46
51
|
# was rejected.
|
|
47
52
|
sig { returns(T.nilable(Increase::CheckDeposit::DepositRejection)) }
|
|
@@ -141,6 +146,8 @@ module Increase
|
|
|
141
146
|
created_at: Time,
|
|
142
147
|
deposit_acceptance:
|
|
143
148
|
T.nilable(Increase::CheckDeposit::DepositAcceptance::OrHash),
|
|
149
|
+
deposit_adjustments:
|
|
150
|
+
T::Array[Increase::CheckDeposit::DepositAdjustment::OrHash],
|
|
144
151
|
deposit_rejection:
|
|
145
152
|
T.nilable(Increase::CheckDeposit::DepositRejection::OrHash),
|
|
146
153
|
deposit_return:
|
|
@@ -174,6 +181,9 @@ module Increase
|
|
|
174
181
|
# Once your deposit is successfully parsed and accepted by Increase, this will
|
|
175
182
|
# contain details of the parsed check.
|
|
176
183
|
deposit_acceptance:,
|
|
184
|
+
# If the deposit or the return was adjusted by the receiving institution, this
|
|
185
|
+
# will contain details of the adjustments.
|
|
186
|
+
deposit_adjustments:,
|
|
177
187
|
# If your deposit is rejected by Increase, this will contain details as to why it
|
|
178
188
|
# was rejected.
|
|
179
189
|
deposit_rejection:,
|
|
@@ -220,6 +230,8 @@ module Increase
|
|
|
220
230
|
created_at: Time,
|
|
221
231
|
deposit_acceptance:
|
|
222
232
|
T.nilable(Increase::CheckDeposit::DepositAcceptance),
|
|
233
|
+
deposit_adjustments:
|
|
234
|
+
T::Array[Increase::CheckDeposit::DepositAdjustment],
|
|
223
235
|
deposit_rejection:
|
|
224
236
|
T.nilable(Increase::CheckDeposit::DepositRejection),
|
|
225
237
|
deposit_return: T.nilable(Increase::CheckDeposit::DepositReturn),
|
|
@@ -373,6 +385,126 @@ module Increase
|
|
|
373
385
|
end
|
|
374
386
|
end
|
|
375
387
|
|
|
388
|
+
class DepositAdjustment < Increase::Internal::Type::BaseModel
|
|
389
|
+
OrHash =
|
|
390
|
+
T.type_alias do
|
|
391
|
+
T.any(
|
|
392
|
+
Increase::CheckDeposit::DepositAdjustment,
|
|
393
|
+
Increase::Internal::AnyHash
|
|
394
|
+
)
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
# The time at which the adjustment was received.
|
|
398
|
+
sig { returns(Time) }
|
|
399
|
+
attr_accessor :adjusted_at
|
|
400
|
+
|
|
401
|
+
# The amount of the adjustment.
|
|
402
|
+
sig { returns(Integer) }
|
|
403
|
+
attr_accessor :amount
|
|
404
|
+
|
|
405
|
+
# The reason for the adjustment.
|
|
406
|
+
sig do
|
|
407
|
+
returns(
|
|
408
|
+
Increase::CheckDeposit::DepositAdjustment::Reason::TaggedSymbol
|
|
409
|
+
)
|
|
410
|
+
end
|
|
411
|
+
attr_accessor :reason
|
|
412
|
+
|
|
413
|
+
# The id of the transaction for the adjustment.
|
|
414
|
+
sig { returns(String) }
|
|
415
|
+
attr_accessor :transaction_id
|
|
416
|
+
|
|
417
|
+
sig do
|
|
418
|
+
params(
|
|
419
|
+
adjusted_at: Time,
|
|
420
|
+
amount: Integer,
|
|
421
|
+
reason: Increase::CheckDeposit::DepositAdjustment::Reason::OrSymbol,
|
|
422
|
+
transaction_id: String
|
|
423
|
+
).returns(T.attached_class)
|
|
424
|
+
end
|
|
425
|
+
def self.new(
|
|
426
|
+
# The time at which the adjustment was received.
|
|
427
|
+
adjusted_at:,
|
|
428
|
+
# The amount of the adjustment.
|
|
429
|
+
amount:,
|
|
430
|
+
# The reason for the adjustment.
|
|
431
|
+
reason:,
|
|
432
|
+
# The id of the transaction for the adjustment.
|
|
433
|
+
transaction_id:
|
|
434
|
+
)
|
|
435
|
+
end
|
|
436
|
+
|
|
437
|
+
sig do
|
|
438
|
+
override.returns(
|
|
439
|
+
{
|
|
440
|
+
adjusted_at: Time,
|
|
441
|
+
amount: Integer,
|
|
442
|
+
reason:
|
|
443
|
+
Increase::CheckDeposit::DepositAdjustment::Reason::TaggedSymbol,
|
|
444
|
+
transaction_id: String
|
|
445
|
+
}
|
|
446
|
+
)
|
|
447
|
+
end
|
|
448
|
+
def to_hash
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
# The reason for the adjustment.
|
|
452
|
+
module Reason
|
|
453
|
+
extend Increase::Internal::Type::Enum
|
|
454
|
+
|
|
455
|
+
TaggedSymbol =
|
|
456
|
+
T.type_alias do
|
|
457
|
+
T.all(Symbol, Increase::CheckDeposit::DepositAdjustment::Reason)
|
|
458
|
+
end
|
|
459
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
460
|
+
|
|
461
|
+
# The return was initiated too late and the receiving institution has responded with a Late Return Claim.
|
|
462
|
+
LATE_RETURN =
|
|
463
|
+
T.let(
|
|
464
|
+
:late_return,
|
|
465
|
+
Increase::CheckDeposit::DepositAdjustment::Reason::TaggedSymbol
|
|
466
|
+
)
|
|
467
|
+
|
|
468
|
+
# The check was deposited to the wrong payee and the depositing institution has reimbursed the funds with a Wrong Payee Credit.
|
|
469
|
+
WRONG_PAYEE_CREDIT =
|
|
470
|
+
T.let(
|
|
471
|
+
:wrong_payee_credit,
|
|
472
|
+
Increase::CheckDeposit::DepositAdjustment::Reason::TaggedSymbol
|
|
473
|
+
)
|
|
474
|
+
|
|
475
|
+
# The check was deposited with a different amount than what was written on the check.
|
|
476
|
+
ADJUSTED_AMOUNT =
|
|
477
|
+
T.let(
|
|
478
|
+
:adjusted_amount,
|
|
479
|
+
Increase::CheckDeposit::DepositAdjustment::Reason::TaggedSymbol
|
|
480
|
+
)
|
|
481
|
+
|
|
482
|
+
# The recipient was not able to process the check. This usually happens for e.g., low quality images.
|
|
483
|
+
NON_CONFORMING_ITEM =
|
|
484
|
+
T.let(
|
|
485
|
+
:non_conforming_item,
|
|
486
|
+
Increase::CheckDeposit::DepositAdjustment::Reason::TaggedSymbol
|
|
487
|
+
)
|
|
488
|
+
|
|
489
|
+
# The check has already been deposited elsewhere and so this is a duplicate.
|
|
490
|
+
PAID =
|
|
491
|
+
T.let(
|
|
492
|
+
:paid,
|
|
493
|
+
Increase::CheckDeposit::DepositAdjustment::Reason::TaggedSymbol
|
|
494
|
+
)
|
|
495
|
+
|
|
496
|
+
sig do
|
|
497
|
+
override.returns(
|
|
498
|
+
T::Array[
|
|
499
|
+
Increase::CheckDeposit::DepositAdjustment::Reason::TaggedSymbol
|
|
500
|
+
]
|
|
501
|
+
)
|
|
502
|
+
end
|
|
503
|
+
def self.values
|
|
504
|
+
end
|
|
505
|
+
end
|
|
506
|
+
end
|
|
507
|
+
|
|
376
508
|
class DepositRejection < Increase::Internal::Type::BaseModel
|
|
377
509
|
OrHash =
|
|
378
510
|
T.type_alias do
|
|
@@ -8,6 +8,7 @@ module Increase
|
|
|
8
8
|
back_image_file_id: String?,
|
|
9
9
|
created_at: Time,
|
|
10
10
|
deposit_acceptance: Increase::CheckDeposit::DepositAcceptance?,
|
|
11
|
+
deposit_adjustments: ::Array[Increase::CheckDeposit::DepositAdjustment],
|
|
11
12
|
deposit_rejection: Increase::CheckDeposit::DepositRejection?,
|
|
12
13
|
deposit_return: Increase::CheckDeposit::DepositReturn?,
|
|
13
14
|
deposit_submission: Increase::CheckDeposit::DepositSubmission?,
|
|
@@ -35,6 +36,8 @@ module Increase
|
|
|
35
36
|
|
|
36
37
|
attr_accessor deposit_acceptance: Increase::CheckDeposit::DepositAcceptance?
|
|
37
38
|
|
|
39
|
+
attr_accessor deposit_adjustments: ::Array[Increase::CheckDeposit::DepositAdjustment]
|
|
40
|
+
|
|
38
41
|
attr_accessor deposit_rejection: Increase::CheckDeposit::DepositRejection?
|
|
39
42
|
|
|
40
43
|
attr_accessor deposit_return: Increase::CheckDeposit::DepositReturn?
|
|
@@ -66,6 +69,7 @@ module Increase
|
|
|
66
69
|
back_image_file_id: String?,
|
|
67
70
|
created_at: Time,
|
|
68
71
|
deposit_acceptance: Increase::CheckDeposit::DepositAcceptance?,
|
|
72
|
+
deposit_adjustments: ::Array[Increase::CheckDeposit::DepositAdjustment],
|
|
69
73
|
deposit_rejection: Increase::CheckDeposit::DepositRejection?,
|
|
70
74
|
deposit_return: Increase::CheckDeposit::DepositReturn?,
|
|
71
75
|
deposit_submission: Increase::CheckDeposit::DepositSubmission?,
|
|
@@ -87,6 +91,7 @@ module Increase
|
|
|
87
91
|
back_image_file_id: String?,
|
|
88
92
|
created_at: Time,
|
|
89
93
|
deposit_acceptance: Increase::CheckDeposit::DepositAcceptance?,
|
|
94
|
+
deposit_adjustments: ::Array[Increase::CheckDeposit::DepositAdjustment],
|
|
90
95
|
deposit_rejection: Increase::CheckDeposit::DepositRejection?,
|
|
91
96
|
deposit_return: Increase::CheckDeposit::DepositReturn?,
|
|
92
97
|
deposit_submission: Increase::CheckDeposit::DepositSubmission?,
|
|
@@ -159,6 +164,66 @@ module Increase
|
|
|
159
164
|
end
|
|
160
165
|
end
|
|
161
166
|
|
|
167
|
+
type deposit_adjustment =
|
|
168
|
+
{
|
|
169
|
+
adjusted_at: Time,
|
|
170
|
+
amount: Integer,
|
|
171
|
+
reason: Increase::Models::CheckDeposit::DepositAdjustment::reason,
|
|
172
|
+
transaction_id: String
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
class DepositAdjustment < Increase::Internal::Type::BaseModel
|
|
176
|
+
attr_accessor adjusted_at: Time
|
|
177
|
+
|
|
178
|
+
attr_accessor amount: Integer
|
|
179
|
+
|
|
180
|
+
attr_accessor reason: Increase::Models::CheckDeposit::DepositAdjustment::reason
|
|
181
|
+
|
|
182
|
+
attr_accessor transaction_id: String
|
|
183
|
+
|
|
184
|
+
def initialize: (
|
|
185
|
+
adjusted_at: Time,
|
|
186
|
+
amount: Integer,
|
|
187
|
+
reason: Increase::Models::CheckDeposit::DepositAdjustment::reason,
|
|
188
|
+
transaction_id: String
|
|
189
|
+
) -> void
|
|
190
|
+
|
|
191
|
+
def to_hash: -> {
|
|
192
|
+
adjusted_at: Time,
|
|
193
|
+
amount: Integer,
|
|
194
|
+
reason: Increase::Models::CheckDeposit::DepositAdjustment::reason,
|
|
195
|
+
transaction_id: String
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
type reason =
|
|
199
|
+
:late_return
|
|
200
|
+
| :wrong_payee_credit
|
|
201
|
+
| :adjusted_amount
|
|
202
|
+
| :non_conforming_item
|
|
203
|
+
| :paid
|
|
204
|
+
|
|
205
|
+
module Reason
|
|
206
|
+
extend Increase::Internal::Type::Enum
|
|
207
|
+
|
|
208
|
+
# The return was initiated too late and the receiving institution has responded with a Late Return Claim.
|
|
209
|
+
LATE_RETURN: :late_return
|
|
210
|
+
|
|
211
|
+
# The check was deposited to the wrong payee and the depositing institution has reimbursed the funds with a Wrong Payee Credit.
|
|
212
|
+
WRONG_PAYEE_CREDIT: :wrong_payee_credit
|
|
213
|
+
|
|
214
|
+
# The check was deposited with a different amount than what was written on the check.
|
|
215
|
+
ADJUSTED_AMOUNT: :adjusted_amount
|
|
216
|
+
|
|
217
|
+
# The recipient was not able to process the check. This usually happens for e.g., low quality images.
|
|
218
|
+
NON_CONFORMING_ITEM: :non_conforming_item
|
|
219
|
+
|
|
220
|
+
# The check has already been deposited elsewhere and so this is a duplicate.
|
|
221
|
+
PAID: :paid
|
|
222
|
+
|
|
223
|
+
def self?.values: -> ::Array[Increase::Models::CheckDeposit::DepositAdjustment::reason]
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
|
|
162
227
|
type deposit_rejection =
|
|
163
228
|
{
|
|
164
229
|
amount: Integer,
|