increase 1.215.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 +18 -0
- data/README.md +1 -1
- data/lib/increase/models/check_deposit.rb +71 -1
- data/lib/increase/models/event_subscription.rb +246 -234
- data/lib/increase/models/real_time_decision_action_params.rb +38 -1
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/check_deposit.rbi +132 -0
- data/rbi/increase/models/event_subscription.rbi +830 -779
- data/rbi/increase/models/real_time_decision_action_params.rbi +70 -3
- data/sig/increase/models/check_deposit.rbs +65 -0
- data/sig/increase/models/event_subscription.rbs +367 -350
- data/sig/increase/models/real_time_decision_action_params.rbs +28 -3
- metadata +1 -1
|
@@ -288,18 +288,42 @@ module Increase
|
|
|
288
288
|
end
|
|
289
289
|
attr_accessor :result
|
|
290
290
|
|
|
291
|
+
# If your application was able to deliver the one-time code, this contains
|
|
292
|
+
# metadata about the delivery.
|
|
293
|
+
sig do
|
|
294
|
+
returns(
|
|
295
|
+
T.nilable(
|
|
296
|
+
Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::Success
|
|
297
|
+
)
|
|
298
|
+
)
|
|
299
|
+
end
|
|
300
|
+
attr_reader :success
|
|
301
|
+
|
|
302
|
+
sig do
|
|
303
|
+
params(
|
|
304
|
+
success:
|
|
305
|
+
Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::Success::OrHash
|
|
306
|
+
).void
|
|
307
|
+
end
|
|
308
|
+
attr_writer :success
|
|
309
|
+
|
|
291
310
|
# If the Real-Time Decision relates to 3DS card authentication challenge delivery,
|
|
292
311
|
# this object contains your response.
|
|
293
312
|
sig do
|
|
294
313
|
params(
|
|
295
314
|
result:
|
|
296
|
-
Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::Result::OrSymbol
|
|
315
|
+
Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::Result::OrSymbol,
|
|
316
|
+
success:
|
|
317
|
+
Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::Success::OrHash
|
|
297
318
|
).returns(T.attached_class)
|
|
298
319
|
end
|
|
299
320
|
def self.new(
|
|
300
321
|
# Whether the card authentication challenge was successfully delivered to the
|
|
301
322
|
# cardholder.
|
|
302
|
-
result
|
|
323
|
+
result:,
|
|
324
|
+
# If your application was able to deliver the one-time code, this contains
|
|
325
|
+
# metadata about the delivery.
|
|
326
|
+
success: nil
|
|
303
327
|
)
|
|
304
328
|
end
|
|
305
329
|
|
|
@@ -307,7 +331,9 @@ module Increase
|
|
|
307
331
|
override.returns(
|
|
308
332
|
{
|
|
309
333
|
result:
|
|
310
|
-
Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::Result::OrSymbol
|
|
334
|
+
Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::Result::OrSymbol,
|
|
335
|
+
success:
|
|
336
|
+
Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::Success
|
|
311
337
|
}
|
|
312
338
|
)
|
|
313
339
|
end
|
|
@@ -352,6 +378,47 @@ module Increase
|
|
|
352
378
|
def self.values
|
|
353
379
|
end
|
|
354
380
|
end
|
|
381
|
+
|
|
382
|
+
class Success < Increase::Internal::Type::BaseModel
|
|
383
|
+
OrHash =
|
|
384
|
+
T.type_alias do
|
|
385
|
+
T.any(
|
|
386
|
+
Increase::RealTimeDecisionActionParams::CardAuthenticationChallenge::Success,
|
|
387
|
+
Increase::Internal::AnyHash
|
|
388
|
+
)
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
# The email address that was used to deliver the one-time code to the cardholder.
|
|
392
|
+
sig { returns(T.nilable(String)) }
|
|
393
|
+
attr_reader :email
|
|
394
|
+
|
|
395
|
+
sig { params(email: String).void }
|
|
396
|
+
attr_writer :email
|
|
397
|
+
|
|
398
|
+
# The phone number that was used to deliver the one-time code to the cardholder
|
|
399
|
+
# via SMS.
|
|
400
|
+
sig { returns(T.nilable(String)) }
|
|
401
|
+
attr_reader :phone
|
|
402
|
+
|
|
403
|
+
sig { params(phone: String).void }
|
|
404
|
+
attr_writer :phone
|
|
405
|
+
|
|
406
|
+
# If your application was able to deliver the one-time code, this contains
|
|
407
|
+
# metadata about the delivery.
|
|
408
|
+
sig { params(email: String, phone: String).returns(T.attached_class) }
|
|
409
|
+
def self.new(
|
|
410
|
+
# The email address that was used to deliver the one-time code to the cardholder.
|
|
411
|
+
email: nil,
|
|
412
|
+
# The phone number that was used to deliver the one-time code to the cardholder
|
|
413
|
+
# via SMS.
|
|
414
|
+
phone: nil
|
|
415
|
+
)
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
sig { override.returns({ email: String, phone: String }) }
|
|
419
|
+
def to_hash
|
|
420
|
+
end
|
|
421
|
+
end
|
|
355
422
|
end
|
|
356
423
|
|
|
357
424
|
class CardAuthorization < Increase::Internal::Type::BaseModel
|
|
@@ -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,
|