increase 1.366.0 → 1.367.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/README.md +1 -1
- data/lib/increase/models/ach_transfer.rb +6 -6
- data/lib/increase/models/card_dispute.rb +131 -2
- data/lib/increase/models/card_dispute_create_params.rb +20 -16
- data/lib/increase/models/card_dispute_provide_provisional_credit_params.rb +22 -0
- data/lib/increase/models/card_dispute_reverse_provisional_credit_params.rb +22 -0
- data/lib/increase/models/simulations/card_refund_create_params.rb +6 -6
- data/lib/increase/models/simulations/inbound_ach_transfer_create_params.rb +3 -0
- data/lib/increase/models.rb +4 -0
- data/lib/increase/resources/card_disputes.rb +50 -6
- data/lib/increase/resources/simulations/card_refunds.rb +3 -3
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +2 -0
- data/rbi/increase/models/ach_transfer.rbi +6 -6
- data/rbi/increase/models/card_dispute.rbi +188 -0
- data/rbi/increase/models/card_dispute_create_params.rbi +20 -16
- data/rbi/increase/models/card_dispute_provide_provisional_credit_params.rbi +43 -0
- data/rbi/increase/models/card_dispute_reverse_provisional_credit_params.rbi +43 -0
- data/rbi/increase/models/simulations/card_refund_create_params.rbi +6 -6
- data/rbi/increase/models/simulations/inbound_ach_transfer_create_params.rbi +3 -0
- data/rbi/increase/models.rbi +6 -0
- data/rbi/increase/resources/card_disputes.rbi +38 -6
- data/rbi/increase/resources/simulations/card_refunds.rbi +3 -3
- data/sig/increase/models/ach_transfer.rbs +8 -8
- data/sig/increase/models/card_dispute.rbs +79 -0
- data/sig/increase/models/card_dispute_provide_provisional_credit_params.rbs +23 -0
- data/sig/increase/models/card_dispute_reverse_provisional_credit_params.rbs +23 -0
- data/sig/increase/models.rbs +4 -0
- data/sig/increase/resources/card_disputes.rbs +10 -0
- metadata +8 -2
|
@@ -51,6 +51,19 @@ module Increase
|
|
|
51
51
|
sig { returns(Increase::CardDispute::Network::TaggedSymbol) }
|
|
52
52
|
attr_accessor :network
|
|
53
53
|
|
|
54
|
+
# If a provisional credit has been provided for the Card Dispute, this will
|
|
55
|
+
# contain details of the provisional credit.
|
|
56
|
+
sig { returns(T.nilable(Increase::CardDispute::ProvisionalCredit)) }
|
|
57
|
+
attr_reader :provisional_credit
|
|
58
|
+
|
|
59
|
+
sig do
|
|
60
|
+
params(
|
|
61
|
+
provisional_credit:
|
|
62
|
+
T.nilable(Increase::CardDispute::ProvisionalCredit::OrHash)
|
|
63
|
+
).void
|
|
64
|
+
end
|
|
65
|
+
attr_writer :provisional_credit
|
|
66
|
+
|
|
54
67
|
# If the Card Dispute has been rejected, this will contain details of the
|
|
55
68
|
# rejection.
|
|
56
69
|
sig { returns(T.nilable(Increase::CardDispute::Rejection)) }
|
|
@@ -123,6 +136,8 @@ module Increase
|
|
|
123
136
|
idempotency_key: T.nilable(String),
|
|
124
137
|
loss: T.nilable(Increase::CardDispute::Loss::OrHash),
|
|
125
138
|
network: Increase::CardDispute::Network::OrSymbol,
|
|
139
|
+
provisional_credit:
|
|
140
|
+
T.nilable(Increase::CardDispute::ProvisionalCredit::OrHash),
|
|
126
141
|
rejection: T.nilable(Increase::CardDispute::Rejection::OrHash),
|
|
127
142
|
status: Increase::CardDispute::Status::OrSymbol,
|
|
128
143
|
type: Increase::CardDispute::Type::OrSymbol,
|
|
@@ -155,6 +170,9 @@ module Increase
|
|
|
155
170
|
loss:,
|
|
156
171
|
# The network that the Card Dispute is associated with.
|
|
157
172
|
network:,
|
|
173
|
+
# If a provisional credit has been provided for the Card Dispute, this will
|
|
174
|
+
# contain details of the provisional credit.
|
|
175
|
+
provisional_credit:,
|
|
158
176
|
# If the Card Dispute has been rejected, this will contain details of the
|
|
159
177
|
# rejection.
|
|
160
178
|
rejection:,
|
|
@@ -193,6 +211,8 @@ module Increase
|
|
|
193
211
|
idempotency_key: T.nilable(String),
|
|
194
212
|
loss: T.nilable(Increase::CardDispute::Loss),
|
|
195
213
|
network: Increase::CardDispute::Network::TaggedSymbol,
|
|
214
|
+
provisional_credit:
|
|
215
|
+
T.nilable(Increase::CardDispute::ProvisionalCredit),
|
|
196
216
|
rejection: T.nilable(Increase::CardDispute::Rejection),
|
|
197
217
|
status: Increase::CardDispute::Status::TaggedSymbol,
|
|
198
218
|
type: Increase::CardDispute::Type::TaggedSymbol,
|
|
@@ -300,6 +320,166 @@ module Increase
|
|
|
300
320
|
end
|
|
301
321
|
end
|
|
302
322
|
|
|
323
|
+
class ProvisionalCredit < Increase::Internal::Type::BaseModel
|
|
324
|
+
OrHash =
|
|
325
|
+
T.type_alias do
|
|
326
|
+
T.any(
|
|
327
|
+
Increase::CardDispute::ProvisionalCredit,
|
|
328
|
+
Increase::Internal::AnyHash
|
|
329
|
+
)
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
# The amount of the provisional credit in the minor unit of its currency. For
|
|
333
|
+
# dollars, for example, this is cents.
|
|
334
|
+
sig { returns(Integer) }
|
|
335
|
+
attr_accessor :amount
|
|
336
|
+
|
|
337
|
+
# The identifier of the Transaction that credited the cardholder's Account.
|
|
338
|
+
sig { returns(String) }
|
|
339
|
+
attr_accessor :cardholder_account_transaction_id
|
|
340
|
+
|
|
341
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
342
|
+
# the provisional credit was provided.
|
|
343
|
+
sig { returns(Time) }
|
|
344
|
+
attr_accessor :provided_at
|
|
345
|
+
|
|
346
|
+
# The identifier of the Transaction that debited the provisional credit funding
|
|
347
|
+
# Account.
|
|
348
|
+
sig { returns(String) }
|
|
349
|
+
attr_accessor :provisional_credit_funding_account_transaction_id
|
|
350
|
+
|
|
351
|
+
# If the provisional credit has been reversed, this will contain details of the
|
|
352
|
+
# reversal.
|
|
353
|
+
sig do
|
|
354
|
+
returns(T.nilable(Increase::CardDispute::ProvisionalCredit::Reversal))
|
|
355
|
+
end
|
|
356
|
+
attr_reader :reversal
|
|
357
|
+
|
|
358
|
+
sig do
|
|
359
|
+
params(
|
|
360
|
+
reversal:
|
|
361
|
+
T.nilable(
|
|
362
|
+
Increase::CardDispute::ProvisionalCredit::Reversal::OrHash
|
|
363
|
+
)
|
|
364
|
+
).void
|
|
365
|
+
end
|
|
366
|
+
attr_writer :reversal
|
|
367
|
+
|
|
368
|
+
# If a provisional credit has been provided for the Card Dispute, this will
|
|
369
|
+
# contain details of the provisional credit.
|
|
370
|
+
sig do
|
|
371
|
+
params(
|
|
372
|
+
amount: Integer,
|
|
373
|
+
cardholder_account_transaction_id: String,
|
|
374
|
+
provided_at: Time,
|
|
375
|
+
provisional_credit_funding_account_transaction_id: String,
|
|
376
|
+
reversal:
|
|
377
|
+
T.nilable(
|
|
378
|
+
Increase::CardDispute::ProvisionalCredit::Reversal::OrHash
|
|
379
|
+
)
|
|
380
|
+
).returns(T.attached_class)
|
|
381
|
+
end
|
|
382
|
+
def self.new(
|
|
383
|
+
# The amount of the provisional credit in the minor unit of its currency. For
|
|
384
|
+
# dollars, for example, this is cents.
|
|
385
|
+
amount:,
|
|
386
|
+
# The identifier of the Transaction that credited the cardholder's Account.
|
|
387
|
+
cardholder_account_transaction_id:,
|
|
388
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
389
|
+
# the provisional credit was provided.
|
|
390
|
+
provided_at:,
|
|
391
|
+
# The identifier of the Transaction that debited the provisional credit funding
|
|
392
|
+
# Account.
|
|
393
|
+
provisional_credit_funding_account_transaction_id:,
|
|
394
|
+
# If the provisional credit has been reversed, this will contain details of the
|
|
395
|
+
# reversal.
|
|
396
|
+
reversal:
|
|
397
|
+
)
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
sig do
|
|
401
|
+
override.returns(
|
|
402
|
+
{
|
|
403
|
+
amount: Integer,
|
|
404
|
+
cardholder_account_transaction_id: String,
|
|
405
|
+
provided_at: Time,
|
|
406
|
+
provisional_credit_funding_account_transaction_id: String,
|
|
407
|
+
reversal:
|
|
408
|
+
T.nilable(Increase::CardDispute::ProvisionalCredit::Reversal)
|
|
409
|
+
}
|
|
410
|
+
)
|
|
411
|
+
end
|
|
412
|
+
def to_hash
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
class Reversal < Increase::Internal::Type::BaseModel
|
|
416
|
+
OrHash =
|
|
417
|
+
T.type_alias do
|
|
418
|
+
T.any(
|
|
419
|
+
Increase::CardDispute::ProvisionalCredit::Reversal,
|
|
420
|
+
Increase::Internal::AnyHash
|
|
421
|
+
)
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
# The amount of the reversal in the minor unit of its currency. For dollars, for
|
|
425
|
+
# example, this is cents.
|
|
426
|
+
sig { returns(Integer) }
|
|
427
|
+
attr_accessor :amount
|
|
428
|
+
|
|
429
|
+
# The identifier of the Transaction that debited the cardholder's Account.
|
|
430
|
+
sig { returns(String) }
|
|
431
|
+
attr_accessor :cardholder_account_transaction_id
|
|
432
|
+
|
|
433
|
+
# The identifier of the Transaction that credited the provisional credit funding
|
|
434
|
+
# Account.
|
|
435
|
+
sig { returns(String) }
|
|
436
|
+
attr_accessor :provisional_credit_funding_account_transaction_id
|
|
437
|
+
|
|
438
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
439
|
+
# the provisional credit was reversed.
|
|
440
|
+
sig { returns(Time) }
|
|
441
|
+
attr_accessor :reversed_at
|
|
442
|
+
|
|
443
|
+
# If the provisional credit has been reversed, this will contain details of the
|
|
444
|
+
# reversal.
|
|
445
|
+
sig do
|
|
446
|
+
params(
|
|
447
|
+
amount: Integer,
|
|
448
|
+
cardholder_account_transaction_id: String,
|
|
449
|
+
provisional_credit_funding_account_transaction_id: String,
|
|
450
|
+
reversed_at: Time
|
|
451
|
+
).returns(T.attached_class)
|
|
452
|
+
end
|
|
453
|
+
def self.new(
|
|
454
|
+
# The amount of the reversal in the minor unit of its currency. For dollars, for
|
|
455
|
+
# example, this is cents.
|
|
456
|
+
amount:,
|
|
457
|
+
# The identifier of the Transaction that debited the cardholder's Account.
|
|
458
|
+
cardholder_account_transaction_id:,
|
|
459
|
+
# The identifier of the Transaction that credited the provisional credit funding
|
|
460
|
+
# Account.
|
|
461
|
+
provisional_credit_funding_account_transaction_id:,
|
|
462
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
463
|
+
# the provisional credit was reversed.
|
|
464
|
+
reversed_at:
|
|
465
|
+
)
|
|
466
|
+
end
|
|
467
|
+
|
|
468
|
+
sig do
|
|
469
|
+
override.returns(
|
|
470
|
+
{
|
|
471
|
+
amount: Integer,
|
|
472
|
+
cardholder_account_transaction_id: String,
|
|
473
|
+
provisional_credit_funding_account_transaction_id: String,
|
|
474
|
+
reversed_at: Time
|
|
475
|
+
}
|
|
476
|
+
)
|
|
477
|
+
end
|
|
478
|
+
def to_hash
|
|
479
|
+
end
|
|
480
|
+
end
|
|
481
|
+
end
|
|
482
|
+
|
|
303
483
|
class Rejection < Increase::Internal::Type::BaseModel
|
|
304
484
|
OrHash =
|
|
305
485
|
T.type_alias do
|
|
@@ -517,6 +697,10 @@ module Increase
|
|
|
517
697
|
sig { returns(Time) }
|
|
518
698
|
attr_accessor :created_at
|
|
519
699
|
|
|
700
|
+
# The account the dispute financial transaction was posted to, if any.
|
|
701
|
+
sig { returns(T.nilable(String)) }
|
|
702
|
+
attr_accessor :dispute_financial_account_id
|
|
703
|
+
|
|
520
704
|
# The dispute financial transaction that resulted from the network event, if any.
|
|
521
705
|
sig { returns(T.nilable(String)) }
|
|
522
706
|
attr_accessor :dispute_financial_transaction_id
|
|
@@ -842,6 +1026,7 @@ module Increase
|
|
|
842
1026
|
category:
|
|
843
1027
|
Increase::CardDispute::Visa::NetworkEvent::Category::OrSymbol,
|
|
844
1028
|
created_at: Time,
|
|
1029
|
+
dispute_financial_account_id: T.nilable(String),
|
|
845
1030
|
dispute_financial_transaction_id: T.nilable(String),
|
|
846
1031
|
chargeback_accepted:
|
|
847
1032
|
T.nilable(
|
|
@@ -907,6 +1092,8 @@ module Increase
|
|
|
907
1092
|
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
908
1093
|
# the Visa Card Dispute Network Event was created.
|
|
909
1094
|
created_at:,
|
|
1095
|
+
# The account the dispute financial transaction was posted to, if any.
|
|
1096
|
+
dispute_financial_account_id:,
|
|
910
1097
|
# The dispute financial transaction that resulted from the network event, if any.
|
|
911
1098
|
dispute_financial_transaction_id:,
|
|
912
1099
|
# A Card Dispute Chargeback Accepted Visa Network Event object. This field will be
|
|
@@ -1002,6 +1189,7 @@ module Increase
|
|
|
1002
1189
|
category:
|
|
1003
1190
|
Increase::CardDispute::Visa::NetworkEvent::Category::TaggedSymbol,
|
|
1004
1191
|
created_at: Time,
|
|
1192
|
+
dispute_financial_account_id: T.nilable(String),
|
|
1005
1193
|
dispute_financial_transaction_id: T.nilable(String),
|
|
1006
1194
|
chargeback_accepted:
|
|
1007
1195
|
T.nilable(
|
|
@@ -16,8 +16,8 @@ module Increase
|
|
|
16
16
|
sig { returns(String) }
|
|
17
17
|
attr_accessor :disputed_transaction_id
|
|
18
18
|
|
|
19
|
-
# The network of the disputed transaction. Details specific to the network
|
|
20
|
-
#
|
|
19
|
+
# The network of the disputed transaction. Details specific to the network can be
|
|
20
|
+
# provided under the sub-object with the same identifier as the network.
|
|
21
21
|
sig { returns(Increase::CardDisputeCreateParams::Network::OrSymbol) }
|
|
22
22
|
attr_accessor :network
|
|
23
23
|
|
|
@@ -31,7 +31,8 @@ module Increase
|
|
|
31
31
|
sig { params(amount: Integer).void }
|
|
32
32
|
attr_writer :amount
|
|
33
33
|
|
|
34
|
-
# The files to be attached to the initial dispute submission.
|
|
34
|
+
# The files to be attached to the initial dispute submission. Can only be provided
|
|
35
|
+
# along with the network-specific details.
|
|
35
36
|
sig do
|
|
36
37
|
returns(
|
|
37
38
|
T.nilable(T::Array[Increase::CardDisputeCreateParams::AttachmentFile])
|
|
@@ -48,15 +49,16 @@ module Increase
|
|
|
48
49
|
attr_writer :attachment_files
|
|
49
50
|
|
|
50
51
|
# The free-form explanation provided to Increase to provide more context for the
|
|
51
|
-
# user submission. This field is not sent directly to the card networks.
|
|
52
|
+
# user submission. This field is not sent directly to the card networks. Can only
|
|
53
|
+
# be provided along with the network-specific details.
|
|
52
54
|
sig { returns(T.nilable(String)) }
|
|
53
55
|
attr_reader :explanation
|
|
54
56
|
|
|
55
57
|
sig { params(explanation: String).void }
|
|
56
58
|
attr_writer :explanation
|
|
57
59
|
|
|
58
|
-
# The Visa-specific parameters for the
|
|
59
|
-
#
|
|
60
|
+
# The Visa-specific parameters for the initial User Submission. If omitted, a
|
|
61
|
+
# later User Submission will be required.
|
|
60
62
|
sig { returns(T.nilable(Increase::CardDisputeCreateParams::Visa)) }
|
|
61
63
|
attr_reader :visa
|
|
62
64
|
|
|
@@ -79,21 +81,23 @@ module Increase
|
|
|
79
81
|
# The Transaction you wish to dispute. This Transaction must have a `source_type`
|
|
80
82
|
# of `card_settlement`.
|
|
81
83
|
disputed_transaction_id:,
|
|
82
|
-
# The network of the disputed transaction. Details specific to the network
|
|
83
|
-
#
|
|
84
|
+
# The network of the disputed transaction. Details specific to the network can be
|
|
85
|
+
# provided under the sub-object with the same identifier as the network.
|
|
84
86
|
network:,
|
|
85
87
|
# The monetary amount of the part of the transaction that is being disputed. This
|
|
86
88
|
# is optional and will default to the full amount of the transaction if not
|
|
87
89
|
# provided. If provided, the amount must be less than or equal to the amount of
|
|
88
90
|
# the transaction.
|
|
89
91
|
amount: nil,
|
|
90
|
-
# The files to be attached to the initial dispute submission.
|
|
92
|
+
# The files to be attached to the initial dispute submission. Can only be provided
|
|
93
|
+
# along with the network-specific details.
|
|
91
94
|
attachment_files: nil,
|
|
92
95
|
# The free-form explanation provided to Increase to provide more context for the
|
|
93
|
-
# user submission. This field is not sent directly to the card networks.
|
|
96
|
+
# user submission. This field is not sent directly to the card networks. Can only
|
|
97
|
+
# be provided along with the network-specific details.
|
|
94
98
|
explanation: nil,
|
|
95
|
-
# The Visa-specific parameters for the
|
|
96
|
-
#
|
|
99
|
+
# The Visa-specific parameters for the initial User Submission. If omitted, a
|
|
100
|
+
# later User Submission will be required.
|
|
97
101
|
visa: nil,
|
|
98
102
|
request_options: {}
|
|
99
103
|
)
|
|
@@ -116,8 +120,8 @@ module Increase
|
|
|
116
120
|
def to_hash
|
|
117
121
|
end
|
|
118
122
|
|
|
119
|
-
# The network of the disputed transaction. Details specific to the network
|
|
120
|
-
#
|
|
123
|
+
# The network of the disputed transaction. Details specific to the network can be
|
|
124
|
+
# provided under the sub-object with the same identifier as the network.
|
|
121
125
|
module Network
|
|
122
126
|
extend Increase::Internal::Type::Enum
|
|
123
127
|
|
|
@@ -531,8 +535,8 @@ module Increase
|
|
|
531
535
|
end
|
|
532
536
|
attr_writer :processing_error
|
|
533
537
|
|
|
534
|
-
# The Visa-specific parameters for the
|
|
535
|
-
#
|
|
538
|
+
# The Visa-specific parameters for the initial User Submission. If omitted, a
|
|
539
|
+
# later User Submission will be required.
|
|
536
540
|
sig do
|
|
537
541
|
params(
|
|
538
542
|
category:
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CardDisputeProvideProvisionalCreditParams < Increase::Internal::Type::BaseModel
|
|
6
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Increase::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Increase::CardDisputeProvideProvisionalCreditParams,
|
|
13
|
+
Increase::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# The identifier of the Card Dispute to provide a provisional credit for.
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :card_dispute_id
|
|
20
|
+
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
card_dispute_id: String,
|
|
24
|
+
request_options: Increase::RequestOptions::OrHash
|
|
25
|
+
).returns(T.attached_class)
|
|
26
|
+
end
|
|
27
|
+
def self.new(
|
|
28
|
+
# The identifier of the Card Dispute to provide a provisional credit for.
|
|
29
|
+
card_dispute_id:,
|
|
30
|
+
request_options: {}
|
|
31
|
+
)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
sig do
|
|
35
|
+
override.returns(
|
|
36
|
+
{ card_dispute_id: String, request_options: Increase::RequestOptions }
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
def to_hash
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CardDisputeReverseProvisionalCreditParams < Increase::Internal::Type::BaseModel
|
|
6
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Increase::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Increase::CardDisputeReverseProvisionalCreditParams,
|
|
13
|
+
Increase::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# The identifier of the Card Dispute to reverse the provisional credit for.
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :card_dispute_id
|
|
20
|
+
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
card_dispute_id: String,
|
|
24
|
+
request_options: Increase::RequestOptions::OrHash
|
|
25
|
+
).returns(T.attached_class)
|
|
26
|
+
end
|
|
27
|
+
def self.new(
|
|
28
|
+
# The identifier of the Card Dispute to reverse the provisional credit for.
|
|
29
|
+
card_dispute_id:,
|
|
30
|
+
request_options: {}
|
|
31
|
+
)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
sig do
|
|
35
|
+
override.returns(
|
|
36
|
+
{ card_dispute_id: String, request_options: Increase::RequestOptions }
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
def to_hash
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -23,9 +23,9 @@ module Increase
|
|
|
23
23
|
sig { params(amount: Integer).void }
|
|
24
24
|
attr_writer :amount
|
|
25
25
|
|
|
26
|
-
# The identifier of the Pending Transaction for the refund
|
|
27
|
-
# is provided, `transaction` must not be provided as a
|
|
28
|
-
# authorized can not be linked to a regular transaction.
|
|
26
|
+
# The identifier of the Pending Transaction for the refund or original credit
|
|
27
|
+
# authorization. If this is provided, `transaction` must not be provided as a
|
|
28
|
+
# refund with a refund authorized can not be linked to a regular transaction.
|
|
29
29
|
sig { returns(T.nilable(String)) }
|
|
30
30
|
attr_reader :pending_transaction_id
|
|
31
31
|
|
|
@@ -52,9 +52,9 @@ module Increase
|
|
|
52
52
|
# The refund amount in cents. Pulled off the `pending_transaction` or the
|
|
53
53
|
# `transaction` if not provided.
|
|
54
54
|
amount: nil,
|
|
55
|
-
# The identifier of the Pending Transaction for the refund
|
|
56
|
-
# is provided, `transaction` must not be provided as a
|
|
57
|
-
# authorized can not be linked to a regular transaction.
|
|
55
|
+
# The identifier of the Pending Transaction for the refund or original credit
|
|
56
|
+
# authorization. If this is provided, `transaction` must not be provided as a
|
|
57
|
+
# refund with a refund authorized can not be linked to a regular transaction.
|
|
58
58
|
pending_transaction_id: nil,
|
|
59
59
|
# The identifier for the Transaction to refund. The Transaction's source must have
|
|
60
60
|
# a category of card_settlement.
|
|
@@ -213,6 +213,7 @@ module Increase
|
|
|
213
213
|
attr_accessor :category
|
|
214
214
|
|
|
215
215
|
# Unstructured `payment_related_information` passed through with the transfer.
|
|
216
|
+
# Required if and only if `category` is `freeform`.
|
|
216
217
|
sig do
|
|
217
218
|
returns(
|
|
218
219
|
T.nilable(
|
|
@@ -243,6 +244,7 @@ module Increase
|
|
|
243
244
|
# The type of addenda to simulate being sent with the transfer.
|
|
244
245
|
category:,
|
|
245
246
|
# Unstructured `payment_related_information` passed through with the transfer.
|
|
247
|
+
# Required if and only if `category` is `freeform`.
|
|
246
248
|
freeform: nil
|
|
247
249
|
)
|
|
248
250
|
end
|
|
@@ -311,6 +313,7 @@ module Increase
|
|
|
311
313
|
attr_accessor :entries
|
|
312
314
|
|
|
313
315
|
# Unstructured `payment_related_information` passed through with the transfer.
|
|
316
|
+
# Required if and only if `category` is `freeform`.
|
|
314
317
|
sig do
|
|
315
318
|
params(
|
|
316
319
|
entries:
|
data/rbi/increase/models.rbi
CHANGED
|
@@ -101,8 +101,14 @@ module Increase
|
|
|
101
101
|
|
|
102
102
|
CardDisputeListParams = Increase::Models::CardDisputeListParams
|
|
103
103
|
|
|
104
|
+
CardDisputeProvideProvisionalCreditParams =
|
|
105
|
+
Increase::Models::CardDisputeProvideProvisionalCreditParams
|
|
106
|
+
|
|
104
107
|
CardDisputeRetrieveParams = Increase::Models::CardDisputeRetrieveParams
|
|
105
108
|
|
|
109
|
+
CardDisputeReverseProvisionalCreditParams =
|
|
110
|
+
Increase::Models::CardDisputeReverseProvisionalCreditParams
|
|
111
|
+
|
|
106
112
|
CardDisputeSubmitUserSubmissionParams =
|
|
107
113
|
Increase::Models::CardDisputeSubmitUserSubmissionParams
|
|
108
114
|
|
|
@@ -20,21 +20,23 @@ module Increase
|
|
|
20
20
|
# The Transaction you wish to dispute. This Transaction must have a `source_type`
|
|
21
21
|
# of `card_settlement`.
|
|
22
22
|
disputed_transaction_id:,
|
|
23
|
-
# The network of the disputed transaction. Details specific to the network
|
|
24
|
-
#
|
|
23
|
+
# The network of the disputed transaction. Details specific to the network can be
|
|
24
|
+
# provided under the sub-object with the same identifier as the network.
|
|
25
25
|
network:,
|
|
26
26
|
# The monetary amount of the part of the transaction that is being disputed. This
|
|
27
27
|
# is optional and will default to the full amount of the transaction if not
|
|
28
28
|
# provided. If provided, the amount must be less than or equal to the amount of
|
|
29
29
|
# the transaction.
|
|
30
30
|
amount: nil,
|
|
31
|
-
# The files to be attached to the initial dispute submission.
|
|
31
|
+
# The files to be attached to the initial dispute submission. Can only be provided
|
|
32
|
+
# along with the network-specific details.
|
|
32
33
|
attachment_files: nil,
|
|
33
34
|
# The free-form explanation provided to Increase to provide more context for the
|
|
34
|
-
# user submission. This field is not sent directly to the card networks.
|
|
35
|
+
# user submission. This field is not sent directly to the card networks. Can only
|
|
36
|
+
# be provided along with the network-specific details.
|
|
35
37
|
explanation: nil,
|
|
36
|
-
# The Visa-specific parameters for the
|
|
37
|
-
#
|
|
38
|
+
# The Visa-specific parameters for the initial User Submission. If omitted, a
|
|
39
|
+
# later User Submission will be required.
|
|
38
40
|
visa: nil,
|
|
39
41
|
request_options: {}
|
|
40
42
|
)
|
|
@@ -84,6 +86,36 @@ module Increase
|
|
|
84
86
|
)
|
|
85
87
|
end
|
|
86
88
|
|
|
89
|
+
# Credits the cardholder's Account for the Card Dispute amount, funded by your
|
|
90
|
+
# program's provisional credit Account.
|
|
91
|
+
sig do
|
|
92
|
+
params(
|
|
93
|
+
card_dispute_id: String,
|
|
94
|
+
request_options: Increase::RequestOptions::OrHash
|
|
95
|
+
).returns(Increase::CardDispute)
|
|
96
|
+
end
|
|
97
|
+
def provide_provisional_credit(
|
|
98
|
+
# The identifier of the Card Dispute to provide a provisional credit for.
|
|
99
|
+
card_dispute_id,
|
|
100
|
+
request_options: {}
|
|
101
|
+
)
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Debits the cardholder's Account for the provisional credit and returns it to
|
|
105
|
+
# your program's provisional credit Account.
|
|
106
|
+
sig do
|
|
107
|
+
params(
|
|
108
|
+
card_dispute_id: String,
|
|
109
|
+
request_options: Increase::RequestOptions::OrHash
|
|
110
|
+
).returns(Increase::CardDispute)
|
|
111
|
+
end
|
|
112
|
+
def reverse_provisional_credit(
|
|
113
|
+
# The identifier of the Card Dispute to reverse the provisional credit for.
|
|
114
|
+
card_dispute_id,
|
|
115
|
+
request_options: {}
|
|
116
|
+
)
|
|
117
|
+
end
|
|
118
|
+
|
|
87
119
|
# Submit a User Submission for a Card Dispute
|
|
88
120
|
sig do
|
|
89
121
|
params(
|
|
@@ -18,9 +18,9 @@ module Increase
|
|
|
18
18
|
# The refund amount in cents. Pulled off the `pending_transaction` or the
|
|
19
19
|
# `transaction` if not provided.
|
|
20
20
|
amount: nil,
|
|
21
|
-
# The identifier of the Pending Transaction for the refund
|
|
22
|
-
# is provided, `transaction` must not be provided as a
|
|
23
|
-
# authorized can not be linked to a regular transaction.
|
|
21
|
+
# The identifier of the Pending Transaction for the refund or original credit
|
|
22
|
+
# authorization. If this is provided, `transaction` must not be provided as a
|
|
23
|
+
# refund with a refund authorized can not be linked to a regular transaction.
|
|
24
24
|
pending_transaction_id: nil,
|
|
25
25
|
# The identifier for the Transaction to refund. The Transaction's source must have
|
|
26
26
|
# a category of card_settlement.
|
|
@@ -14,7 +14,7 @@ module Increase
|
|
|
14
14
|
company_discretionary_data: String?,
|
|
15
15
|
company_entry_description: String?,
|
|
16
16
|
company_id: String,
|
|
17
|
-
company_name: String
|
|
17
|
+
company_name: String,
|
|
18
18
|
created_at: Time,
|
|
19
19
|
created_by: Increase::ACHTransfer::CreatedBy?,
|
|
20
20
|
currency: Increase::Models::ACHTransfer::currency,
|
|
@@ -24,7 +24,7 @@ module Increase
|
|
|
24
24
|
idempotency_key: String?,
|
|
25
25
|
inbound_funds_hold: Increase::ACHTransfer::InboundFundsHold?,
|
|
26
26
|
individual_id: String?,
|
|
27
|
-
individual_name: String
|
|
27
|
+
individual_name: String,
|
|
28
28
|
network: Increase::Models::ACHTransfer::network,
|
|
29
29
|
notifications_of_change: ::Array[Increase::ACHTransfer::NotificationsOfChange],
|
|
30
30
|
pending_transaction_id: String?,
|
|
@@ -65,7 +65,7 @@ module Increase
|
|
|
65
65
|
|
|
66
66
|
attr_accessor company_id: String
|
|
67
67
|
|
|
68
|
-
attr_accessor company_name: String
|
|
68
|
+
attr_accessor company_name: String
|
|
69
69
|
|
|
70
70
|
attr_accessor created_at: Time
|
|
71
71
|
|
|
@@ -85,7 +85,7 @@ module Increase
|
|
|
85
85
|
|
|
86
86
|
attr_accessor individual_id: String?
|
|
87
87
|
|
|
88
|
-
attr_accessor individual_name: String
|
|
88
|
+
attr_accessor individual_name: String
|
|
89
89
|
|
|
90
90
|
attr_accessor network: Increase::Models::ACHTransfer::network
|
|
91
91
|
|
|
@@ -126,7 +126,7 @@ module Increase
|
|
|
126
126
|
company_discretionary_data: String?,
|
|
127
127
|
company_entry_description: String?,
|
|
128
128
|
company_id: String,
|
|
129
|
-
company_name: String
|
|
129
|
+
company_name: String,
|
|
130
130
|
created_at: Time,
|
|
131
131
|
created_by: Increase::ACHTransfer::CreatedBy?,
|
|
132
132
|
currency: Increase::Models::ACHTransfer::currency,
|
|
@@ -136,7 +136,7 @@ module Increase
|
|
|
136
136
|
idempotency_key: String?,
|
|
137
137
|
inbound_funds_hold: Increase::ACHTransfer::InboundFundsHold?,
|
|
138
138
|
individual_id: String?,
|
|
139
|
-
individual_name: String
|
|
139
|
+
individual_name: String,
|
|
140
140
|
network: Increase::Models::ACHTransfer::network,
|
|
141
141
|
notifications_of_change: ::Array[Increase::ACHTransfer::NotificationsOfChange],
|
|
142
142
|
pending_transaction_id: String?,
|
|
@@ -165,7 +165,7 @@ module Increase
|
|
|
165
165
|
company_discretionary_data: String?,
|
|
166
166
|
company_entry_description: String?,
|
|
167
167
|
company_id: String,
|
|
168
|
-
company_name: String
|
|
168
|
+
company_name: String,
|
|
169
169
|
created_at: Time,
|
|
170
170
|
created_by: Increase::ACHTransfer::CreatedBy?,
|
|
171
171
|
currency: Increase::Models::ACHTransfer::currency,
|
|
@@ -175,7 +175,7 @@ module Increase
|
|
|
175
175
|
idempotency_key: String?,
|
|
176
176
|
inbound_funds_hold: Increase::ACHTransfer::InboundFundsHold?,
|
|
177
177
|
individual_id: String?,
|
|
178
|
-
individual_name: String
|
|
178
|
+
individual_name: String,
|
|
179
179
|
network: Increase::Models::ACHTransfer::network,
|
|
180
180
|
notifications_of_change: ::Array[Increase::ACHTransfer::NotificationsOfChange],
|
|
181
181
|
pending_transaction_id: String?,
|