increase 1.365.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/ach_transfer_create_params.rb +12 -10
- 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/card_payment.rb +352 -12
- data/lib/increase/models/declined_transaction.rb +10 -1
- data/lib/increase/models/pending_transaction.rb +10 -1
- 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/transaction.rb +411 -6
- data/lib/increase/models/transaction_list_params.rb +3 -0
- data/lib/increase/models.rb +4 -0
- data/lib/increase/resources/ach_transfers.rb +6 -5
- 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/ach_transfer_create_params.rbi +12 -10
- 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/card_payment.rbi +726 -10
- data/rbi/increase/models/declined_transaction.rbi +22 -1
- data/rbi/increase/models/pending_transaction.rbi +22 -1
- 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/transaction.rbi +792 -3
- data/rbi/increase/models/transaction_list_params.rbi +7 -0
- data/rbi/increase/models.rbi +6 -0
- data/rbi/increase/resources/ach_transfers.rbi +6 -5
- 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/card_payment.rbs +378 -10
- data/sig/increase/models/declined_transaction.rbs +13 -1
- data/sig/increase/models/pending_transaction.rbs +13 -1
- data/sig/increase/models/transaction.rbs +363 -3
- data/sig/increase/models/transaction_list_params.rbs +4 -0
- data/sig/increase/models.rbs +4 -0
- data/sig/increase/resources/card_disputes.rbs +10 -0
- metadata +8 -2
|
@@ -30,14 +30,15 @@ module Increase
|
|
|
30
30
|
# you're processing payments on behalf of another party, use their name, not your
|
|
31
31
|
# own, so that it's more likely the recipient understands the context of the
|
|
32
32
|
# payment. This value is usually displayed to the recipient on their bank
|
|
33
|
-
# statement.
|
|
34
|
-
# back to the `statement_descriptor`.
|
|
33
|
+
# statement.
|
|
35
34
|
#
|
|
36
35
|
# @param individual_name [String]
|
|
37
36
|
# The name of the transfer recipient. This value is informational and generally
|
|
38
|
-
# not verified by the recipient's bank.
|
|
39
|
-
#
|
|
40
|
-
#
|
|
37
|
+
# not verified by the recipient's bank. The business-to-business
|
|
38
|
+
# [Standard Entry Class (SEC) codes](/documentation/ach-standard-entry-class-codes)
|
|
39
|
+
# call this "individual name or receiving company name;" it's reasonable to
|
|
40
|
+
# include a business name in this field. This value is usually displayed to the
|
|
41
|
+
# recipient on their bank statement.
|
|
41
42
|
#
|
|
42
43
|
# @param account_number [String]
|
|
43
44
|
# The receiver's account number. For credit transfers (transfers with a positive
|
|
@@ -12,8 +12,8 @@ module Increase
|
|
|
12
12
|
# of `card_settlement`.
|
|
13
13
|
#
|
|
14
14
|
# @param network [Symbol, Increase::Models::CardDisputeCreateParams::Network]
|
|
15
|
-
# The network of the disputed transaction. Details specific to the network
|
|
16
|
-
#
|
|
15
|
+
# The network of the disputed transaction. Details specific to the network can be
|
|
16
|
+
# provided under the sub-object with the same identifier as the network.
|
|
17
17
|
#
|
|
18
18
|
# @param amount [Integer]
|
|
19
19
|
# The monetary amount of the part of the transaction that is being disputed. This
|
|
@@ -22,15 +22,17 @@ module Increase
|
|
|
22
22
|
# the transaction.
|
|
23
23
|
#
|
|
24
24
|
# @param attachment_files [Array<Increase::Models::CardDisputeCreateParams::AttachmentFile>]
|
|
25
|
-
# The files to be attached to the initial dispute submission.
|
|
25
|
+
# The files to be attached to the initial dispute submission. Can only be provided
|
|
26
|
+
# along with the network-specific details.
|
|
26
27
|
#
|
|
27
28
|
# @param explanation [String]
|
|
28
29
|
# The free-form explanation provided to Increase to provide more context for the
|
|
29
|
-
# user submission. This field is not sent directly to the card networks.
|
|
30
|
+
# user submission. This field is not sent directly to the card networks. Can only
|
|
31
|
+
# be provided along with the network-specific details.
|
|
30
32
|
#
|
|
31
33
|
# @param visa [Increase::Models::CardDisputeCreateParams::Visa]
|
|
32
|
-
# The Visa-specific parameters for the
|
|
33
|
-
#
|
|
34
|
+
# The Visa-specific parameters for the initial User Submission. If omitted, a
|
|
35
|
+
# later User Submission will be required.
|
|
34
36
|
#
|
|
35
37
|
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
36
38
|
#
|
|
@@ -108,6 +110,48 @@ module Increase
|
|
|
108
110
|
)
|
|
109
111
|
end
|
|
110
112
|
|
|
113
|
+
# Credits the cardholder's Account for the Card Dispute amount, funded by your
|
|
114
|
+
# program's provisional credit Account.
|
|
115
|
+
#
|
|
116
|
+
# @overload provide_provisional_credit(card_dispute_id, request_options: {})
|
|
117
|
+
#
|
|
118
|
+
# @param card_dispute_id [String] The identifier of the Card Dispute to provide a provisional credit for.
|
|
119
|
+
#
|
|
120
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
121
|
+
#
|
|
122
|
+
# @return [Increase::Models::CardDispute]
|
|
123
|
+
#
|
|
124
|
+
# @see Increase::Models::CardDisputeProvideProvisionalCreditParams
|
|
125
|
+
def provide_provisional_credit(card_dispute_id, params = {})
|
|
126
|
+
@client.request(
|
|
127
|
+
method: :post,
|
|
128
|
+
path: ["card_disputes/%1$s/provide_provisional_credit", card_dispute_id],
|
|
129
|
+
model: Increase::CardDispute,
|
|
130
|
+
options: params[:request_options]
|
|
131
|
+
)
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Debits the cardholder's Account for the provisional credit and returns it to
|
|
135
|
+
# your program's provisional credit Account.
|
|
136
|
+
#
|
|
137
|
+
# @overload reverse_provisional_credit(card_dispute_id, request_options: {})
|
|
138
|
+
#
|
|
139
|
+
# @param card_dispute_id [String] The identifier of the Card Dispute to reverse the provisional credit for.
|
|
140
|
+
#
|
|
141
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
142
|
+
#
|
|
143
|
+
# @return [Increase::Models::CardDispute]
|
|
144
|
+
#
|
|
145
|
+
# @see Increase::Models::CardDisputeReverseProvisionalCreditParams
|
|
146
|
+
def reverse_provisional_credit(card_dispute_id, params = {})
|
|
147
|
+
@client.request(
|
|
148
|
+
method: :post,
|
|
149
|
+
path: ["card_disputes/%1$s/reverse_provisional_credit", card_dispute_id],
|
|
150
|
+
model: Increase::CardDispute,
|
|
151
|
+
options: params[:request_options]
|
|
152
|
+
)
|
|
153
|
+
end
|
|
154
|
+
|
|
111
155
|
# Submit a User Submission for a Card Dispute
|
|
112
156
|
#
|
|
113
157
|
# @overload submit_user_submission(card_dispute_id, network:, amount: nil, attachment_files: nil, explanation: nil, visa: nil, request_options: {})
|
|
@@ -14,9 +14,9 @@ module Increase
|
|
|
14
14
|
# `transaction` if not provided.
|
|
15
15
|
#
|
|
16
16
|
# @param pending_transaction_id [String]
|
|
17
|
-
# The identifier of the Pending Transaction for the refund
|
|
18
|
-
# is provided, `transaction` must not be provided as a
|
|
19
|
-
# authorized can not be linked to a regular transaction.
|
|
17
|
+
# The identifier of the Pending Transaction for the refund or original credit
|
|
18
|
+
# authorization. If this is provided, `transaction` must not be provided as a
|
|
19
|
+
# refund with a refund authorized can not be linked to a regular transaction.
|
|
20
20
|
#
|
|
21
21
|
# @param transaction_id [String]
|
|
22
22
|
# The identifier for the Transaction to refund. The Transaction's source must have
|
data/lib/increase/version.rb
CHANGED
data/lib/increase.rb
CHANGED
|
@@ -101,7 +101,9 @@ require_relative "increase/models/card_details_token"
|
|
|
101
101
|
require_relative "increase/models/card_dispute"
|
|
102
102
|
require_relative "increase/models/card_dispute_create_params"
|
|
103
103
|
require_relative "increase/models/card_dispute_list_params"
|
|
104
|
+
require_relative "increase/models/card_dispute_provide_provisional_credit_params"
|
|
104
105
|
require_relative "increase/models/card_dispute_retrieve_params"
|
|
106
|
+
require_relative "increase/models/card_dispute_reverse_provisional_credit_params"
|
|
105
107
|
require_relative "increase/models/card_dispute_submit_user_submission_params"
|
|
106
108
|
require_relative "increase/models/card_dispute_withdraw_params"
|
|
107
109
|
require_relative "increase/models/card_iframe_url"
|
|
@@ -99,7 +99,7 @@ module Increase
|
|
|
99
99
|
attr_accessor :company_id
|
|
100
100
|
|
|
101
101
|
# The name by which the recipient knows you.
|
|
102
|
-
sig { returns(
|
|
102
|
+
sig { returns(String) }
|
|
103
103
|
attr_accessor :company_name
|
|
104
104
|
|
|
105
105
|
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
@@ -163,7 +163,7 @@ module Increase
|
|
|
163
163
|
|
|
164
164
|
# The name of the transfer recipient. This value is informational and not verified
|
|
165
165
|
# by the recipient's bank.
|
|
166
|
-
sig { returns(
|
|
166
|
+
sig { returns(String) }
|
|
167
167
|
attr_accessor :individual_name
|
|
168
168
|
|
|
169
169
|
# The transfer's network.
|
|
@@ -281,7 +281,7 @@ module Increase
|
|
|
281
281
|
company_discretionary_data: T.nilable(String),
|
|
282
282
|
company_entry_description: T.nilable(String),
|
|
283
283
|
company_id: String,
|
|
284
|
-
company_name:
|
|
284
|
+
company_name: String,
|
|
285
285
|
created_at: Time,
|
|
286
286
|
created_by: T.nilable(Increase::ACHTransfer::CreatedBy::OrHash),
|
|
287
287
|
currency: Increase::ACHTransfer::Currency::OrSymbol,
|
|
@@ -293,7 +293,7 @@ module Increase
|
|
|
293
293
|
inbound_funds_hold:
|
|
294
294
|
T.nilable(Increase::ACHTransfer::InboundFundsHold::OrHash),
|
|
295
295
|
individual_id: T.nilable(String),
|
|
296
|
-
individual_name:
|
|
296
|
+
individual_name: String,
|
|
297
297
|
network: Increase::ACHTransfer::Network::OrSymbol,
|
|
298
298
|
notifications_of_change:
|
|
299
299
|
T::Array[Increase::ACHTransfer::NotificationsOfChange::OrHash],
|
|
@@ -442,7 +442,7 @@ module Increase
|
|
|
442
442
|
company_discretionary_data: T.nilable(String),
|
|
443
443
|
company_entry_description: T.nilable(String),
|
|
444
444
|
company_id: String,
|
|
445
|
-
company_name:
|
|
445
|
+
company_name: String,
|
|
446
446
|
created_at: Time,
|
|
447
447
|
created_by: T.nilable(Increase::ACHTransfer::CreatedBy),
|
|
448
448
|
currency: Increase::ACHTransfer::Currency::TaggedSymbol,
|
|
@@ -454,7 +454,7 @@ module Increase
|
|
|
454
454
|
inbound_funds_hold:
|
|
455
455
|
T.nilable(Increase::ACHTransfer::InboundFundsHold),
|
|
456
456
|
individual_id: T.nilable(String),
|
|
457
|
-
individual_name:
|
|
457
|
+
individual_name: String,
|
|
458
458
|
network: Increase::ACHTransfer::Network::TaggedSymbol,
|
|
459
459
|
notifications_of_change:
|
|
460
460
|
T::Array[Increase::ACHTransfer::NotificationsOfChange],
|
|
@@ -30,15 +30,16 @@ module Increase
|
|
|
30
30
|
# you're processing payments on behalf of another party, use their name, not your
|
|
31
31
|
# own, so that it's more likely the recipient understands the context of the
|
|
32
32
|
# payment. This value is usually displayed to the recipient on their bank
|
|
33
|
-
# statement.
|
|
34
|
-
# back to the `statement_descriptor`.
|
|
33
|
+
# statement.
|
|
35
34
|
sig { returns(String) }
|
|
36
35
|
attr_accessor :company_name
|
|
37
36
|
|
|
38
37
|
# The name of the transfer recipient. This value is informational and generally
|
|
39
|
-
# not verified by the recipient's bank.
|
|
40
|
-
#
|
|
41
|
-
#
|
|
38
|
+
# not verified by the recipient's bank. The business-to-business
|
|
39
|
+
# [Standard Entry Class (SEC) codes](/documentation/ach-standard-entry-class-codes)
|
|
40
|
+
# call this "individual name or receiving company name;" it's reasonable to
|
|
41
|
+
# include a business name in this field. This value is usually displayed to the
|
|
42
|
+
# recipient on their bank statement.
|
|
42
43
|
sig { returns(String) }
|
|
43
44
|
attr_accessor :individual_name
|
|
44
45
|
|
|
@@ -242,13 +243,14 @@ module Increase
|
|
|
242
243
|
# you're processing payments on behalf of another party, use their name, not your
|
|
243
244
|
# own, so that it's more likely the recipient understands the context of the
|
|
244
245
|
# payment. This value is usually displayed to the recipient on their bank
|
|
245
|
-
# statement.
|
|
246
|
-
# back to the `statement_descriptor`.
|
|
246
|
+
# statement.
|
|
247
247
|
company_name:,
|
|
248
248
|
# The name of the transfer recipient. This value is informational and generally
|
|
249
|
-
# not verified by the recipient's bank.
|
|
250
|
-
#
|
|
251
|
-
#
|
|
249
|
+
# not verified by the recipient's bank. The business-to-business
|
|
250
|
+
# [Standard Entry Class (SEC) codes](/documentation/ach-standard-entry-class-codes)
|
|
251
|
+
# call this "individual name or receiving company name;" it's reasonable to
|
|
252
|
+
# include a business name in this field. This value is usually displayed to the
|
|
253
|
+
# recipient on their bank statement.
|
|
252
254
|
individual_name:,
|
|
253
255
|
# The receiver's account number. For credit transfers (transfers with a positive
|
|
254
256
|
# `amount`), this is the account that funds will be sent to. For debit transfers
|
|
@@ -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
|