increase 1.184.0 → 1.186.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 +16 -0
- data/README.md +1 -1
- data/lib/increase/models/card_dispute.rb +25 -1
- data/lib/increase/models/card_dispute_withdraw_params.rb +9 -1
- data/lib/increase/models/card_payment.rb +205 -5
- data/lib/increase/models/declined_transaction.rb +41 -1
- data/lib/increase/models/pending_transaction.rb +43 -1
- data/lib/increase/models/real_time_decision.rb +82 -2
- data/lib/increase/models/transaction.rb +41 -1
- data/lib/increase/resources/card_disputes.rb +6 -2
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/card_dispute.rbi +47 -3
- data/rbi/increase/models/card_dispute_withdraw_params.rbi +21 -5
- data/rbi/increase/models/card_payment.rbi +425 -15
- data/rbi/increase/models/declined_transaction.rbi +85 -3
- data/rbi/increase/models/pending_transaction.rbi +85 -3
- data/rbi/increase/models/real_time_decision.rbi +170 -6
- data/rbi/increase/models/transaction.rbi +85 -3
- data/rbi/increase/resources/card_disputes.rbi +3 -0
- data/sig/increase/models/card_dispute.rbs +18 -3
- data/sig/increase/models/card_dispute_withdraw_params.rbs +13 -3
- data/sig/increase/models/card_payment.rbs +175 -15
- data/sig/increase/models/declined_transaction.rbs +35 -3
- data/sig/increase/models/pending_transaction.rbs +35 -3
- data/sig/increase/models/real_time_decision.rbs +70 -6
- data/sig/increase/models/transaction.rbs +35 -3
- data/sig/increase/resources/card_disputes.rbs +1 -0
- metadata +2 -2
|
@@ -1443,7 +1443,15 @@ module Increase
|
|
|
1443
1443
|
required :cardholder_address,
|
|
1444
1444
|
-> { Increase::RealTimeDecision::CardAuthorization::Verification::CardholderAddress }
|
|
1445
1445
|
|
|
1446
|
-
# @!
|
|
1446
|
+
# @!attribute cardholder_name
|
|
1447
|
+
# Cardholder name provided in the authorization request.
|
|
1448
|
+
#
|
|
1449
|
+
# @return [Increase::Models::RealTimeDecision::CardAuthorization::Verification::CardholderName, nil]
|
|
1450
|
+
required :cardholder_name,
|
|
1451
|
+
-> { Increase::RealTimeDecision::CardAuthorization::Verification::CardholderName },
|
|
1452
|
+
nil?: true
|
|
1453
|
+
|
|
1454
|
+
# @!method initialize(card_verification_code:, cardholder_address:, cardholder_name:)
|
|
1447
1455
|
# Some parameter documentations has been truncated, see
|
|
1448
1456
|
# {Increase::Models::RealTimeDecision::CardAuthorization::Verification} for more
|
|
1449
1457
|
# details.
|
|
@@ -1453,6 +1461,8 @@ module Increase
|
|
|
1453
1461
|
# @param card_verification_code [Increase::Models::RealTimeDecision::CardAuthorization::Verification::CardVerificationCode] Fields related to verification of the Card Verification Code, a 3-digit code on
|
|
1454
1462
|
#
|
|
1455
1463
|
# @param cardholder_address [Increase::Models::RealTimeDecision::CardAuthorization::Verification::CardholderAddress] Cardholder address provided in the authorization request and the address on file
|
|
1464
|
+
#
|
|
1465
|
+
# @param cardholder_name [Increase::Models::RealTimeDecision::CardAuthorization::Verification::CardholderName, nil] Cardholder name provided in the authorization request.
|
|
1456
1466
|
|
|
1457
1467
|
# @see Increase::Models::RealTimeDecision::CardAuthorization::Verification#card_verification_code
|
|
1458
1468
|
class CardVerificationCode < Increase::Internal::Type::BaseModel
|
|
@@ -1569,6 +1579,36 @@ module Increase
|
|
|
1569
1579
|
# @return [Array<Symbol>]
|
|
1570
1580
|
end
|
|
1571
1581
|
end
|
|
1582
|
+
|
|
1583
|
+
# @see Increase::Models::RealTimeDecision::CardAuthorization::Verification#cardholder_name
|
|
1584
|
+
class CardholderName < Increase::Internal::Type::BaseModel
|
|
1585
|
+
# @!attribute provided_first_name
|
|
1586
|
+
# The first name provided for verification in the authorization request.
|
|
1587
|
+
#
|
|
1588
|
+
# @return [String, nil]
|
|
1589
|
+
required :provided_first_name, String, nil?: true
|
|
1590
|
+
|
|
1591
|
+
# @!attribute provided_last_name
|
|
1592
|
+
# The last name provided for verification in the authorization request.
|
|
1593
|
+
#
|
|
1594
|
+
# @return [String, nil]
|
|
1595
|
+
required :provided_last_name, String, nil?: true
|
|
1596
|
+
|
|
1597
|
+
# @!attribute provided_middle_name
|
|
1598
|
+
# The middle name provided for verification in the authorization request.
|
|
1599
|
+
#
|
|
1600
|
+
# @return [String, nil]
|
|
1601
|
+
required :provided_middle_name, String, nil?: true
|
|
1602
|
+
|
|
1603
|
+
# @!method initialize(provided_first_name:, provided_last_name:, provided_middle_name:)
|
|
1604
|
+
# Cardholder name provided in the authorization request.
|
|
1605
|
+
#
|
|
1606
|
+
# @param provided_first_name [String, nil] The first name provided for verification in the authorization request.
|
|
1607
|
+
#
|
|
1608
|
+
# @param provided_last_name [String, nil] The last name provided for verification in the authorization request.
|
|
1609
|
+
#
|
|
1610
|
+
# @param provided_middle_name [String, nil] The middle name provided for verification in the authorization request.
|
|
1611
|
+
end
|
|
1572
1612
|
end
|
|
1573
1613
|
end
|
|
1574
1614
|
|
|
@@ -2477,7 +2517,15 @@ module Increase
|
|
|
2477
2517
|
required :cardholder_address,
|
|
2478
2518
|
-> { Increase::RealTimeDecision::CardBalanceInquiry::Verification::CardholderAddress }
|
|
2479
2519
|
|
|
2480
|
-
# @!
|
|
2520
|
+
# @!attribute cardholder_name
|
|
2521
|
+
# Cardholder name provided in the authorization request.
|
|
2522
|
+
#
|
|
2523
|
+
# @return [Increase::Models::RealTimeDecision::CardBalanceInquiry::Verification::CardholderName, nil]
|
|
2524
|
+
required :cardholder_name,
|
|
2525
|
+
-> { Increase::RealTimeDecision::CardBalanceInquiry::Verification::CardholderName },
|
|
2526
|
+
nil?: true
|
|
2527
|
+
|
|
2528
|
+
# @!method initialize(card_verification_code:, cardholder_address:, cardholder_name:)
|
|
2481
2529
|
# Some parameter documentations has been truncated, see
|
|
2482
2530
|
# {Increase::Models::RealTimeDecision::CardBalanceInquiry::Verification} for more
|
|
2483
2531
|
# details.
|
|
@@ -2487,6 +2535,8 @@ module Increase
|
|
|
2487
2535
|
# @param card_verification_code [Increase::Models::RealTimeDecision::CardBalanceInquiry::Verification::CardVerificationCode] Fields related to verification of the Card Verification Code, a 3-digit code on
|
|
2488
2536
|
#
|
|
2489
2537
|
# @param cardholder_address [Increase::Models::RealTimeDecision::CardBalanceInquiry::Verification::CardholderAddress] Cardholder address provided in the authorization request and the address on file
|
|
2538
|
+
#
|
|
2539
|
+
# @param cardholder_name [Increase::Models::RealTimeDecision::CardBalanceInquiry::Verification::CardholderName, nil] Cardholder name provided in the authorization request.
|
|
2490
2540
|
|
|
2491
2541
|
# @see Increase::Models::RealTimeDecision::CardBalanceInquiry::Verification#card_verification_code
|
|
2492
2542
|
class CardVerificationCode < Increase::Internal::Type::BaseModel
|
|
@@ -2603,6 +2653,36 @@ module Increase
|
|
|
2603
2653
|
# @return [Array<Symbol>]
|
|
2604
2654
|
end
|
|
2605
2655
|
end
|
|
2656
|
+
|
|
2657
|
+
# @see Increase::Models::RealTimeDecision::CardBalanceInquiry::Verification#cardholder_name
|
|
2658
|
+
class CardholderName < Increase::Internal::Type::BaseModel
|
|
2659
|
+
# @!attribute provided_first_name
|
|
2660
|
+
# The first name provided for verification in the authorization request.
|
|
2661
|
+
#
|
|
2662
|
+
# @return [String, nil]
|
|
2663
|
+
required :provided_first_name, String, nil?: true
|
|
2664
|
+
|
|
2665
|
+
# @!attribute provided_last_name
|
|
2666
|
+
# The last name provided for verification in the authorization request.
|
|
2667
|
+
#
|
|
2668
|
+
# @return [String, nil]
|
|
2669
|
+
required :provided_last_name, String, nil?: true
|
|
2670
|
+
|
|
2671
|
+
# @!attribute provided_middle_name
|
|
2672
|
+
# The middle name provided for verification in the authorization request.
|
|
2673
|
+
#
|
|
2674
|
+
# @return [String, nil]
|
|
2675
|
+
required :provided_middle_name, String, nil?: true
|
|
2676
|
+
|
|
2677
|
+
# @!method initialize(provided_first_name:, provided_last_name:, provided_middle_name:)
|
|
2678
|
+
# Cardholder name provided in the authorization request.
|
|
2679
|
+
#
|
|
2680
|
+
# @param provided_first_name [String, nil] The first name provided for verification in the authorization request.
|
|
2681
|
+
#
|
|
2682
|
+
# @param provided_last_name [String, nil] The last name provided for verification in the authorization request.
|
|
2683
|
+
#
|
|
2684
|
+
# @param provided_middle_name [String, nil] The middle name provided for verification in the authorization request.
|
|
2685
|
+
end
|
|
2606
2686
|
end
|
|
2607
2687
|
end
|
|
2608
2688
|
|
|
@@ -2293,7 +2293,15 @@ module Increase
|
|
|
2293
2293
|
required :cardholder_address,
|
|
2294
2294
|
-> { Increase::Transaction::Source::CardFinancial::Verification::CardholderAddress }
|
|
2295
2295
|
|
|
2296
|
-
# @!
|
|
2296
|
+
# @!attribute cardholder_name
|
|
2297
|
+
# Cardholder name provided in the authorization request.
|
|
2298
|
+
#
|
|
2299
|
+
# @return [Increase::Models::Transaction::Source::CardFinancial::Verification::CardholderName, nil]
|
|
2300
|
+
required :cardholder_name,
|
|
2301
|
+
-> { Increase::Transaction::Source::CardFinancial::Verification::CardholderName },
|
|
2302
|
+
nil?: true
|
|
2303
|
+
|
|
2304
|
+
# @!method initialize(card_verification_code:, cardholder_address:, cardholder_name:)
|
|
2297
2305
|
# Some parameter documentations has been truncated, see
|
|
2298
2306
|
# {Increase::Models::Transaction::Source::CardFinancial::Verification} for more
|
|
2299
2307
|
# details.
|
|
@@ -2303,6 +2311,8 @@ module Increase
|
|
|
2303
2311
|
# @param card_verification_code [Increase::Models::Transaction::Source::CardFinancial::Verification::CardVerificationCode] Fields related to verification of the Card Verification Code, a 3-digit code on
|
|
2304
2312
|
#
|
|
2305
2313
|
# @param cardholder_address [Increase::Models::Transaction::Source::CardFinancial::Verification::CardholderAddress] Cardholder address provided in the authorization request and the address on file
|
|
2314
|
+
#
|
|
2315
|
+
# @param cardholder_name [Increase::Models::Transaction::Source::CardFinancial::Verification::CardholderName, nil] Cardholder name provided in the authorization request.
|
|
2306
2316
|
|
|
2307
2317
|
# @see Increase::Models::Transaction::Source::CardFinancial::Verification#card_verification_code
|
|
2308
2318
|
class CardVerificationCode < Increase::Internal::Type::BaseModel
|
|
@@ -2419,6 +2429,36 @@ module Increase
|
|
|
2419
2429
|
# @return [Array<Symbol>]
|
|
2420
2430
|
end
|
|
2421
2431
|
end
|
|
2432
|
+
|
|
2433
|
+
# @see Increase::Models::Transaction::Source::CardFinancial::Verification#cardholder_name
|
|
2434
|
+
class CardholderName < Increase::Internal::Type::BaseModel
|
|
2435
|
+
# @!attribute provided_first_name
|
|
2436
|
+
# The first name provided for verification in the authorization request.
|
|
2437
|
+
#
|
|
2438
|
+
# @return [String, nil]
|
|
2439
|
+
required :provided_first_name, String, nil?: true
|
|
2440
|
+
|
|
2441
|
+
# @!attribute provided_last_name
|
|
2442
|
+
# The last name provided for verification in the authorization request.
|
|
2443
|
+
#
|
|
2444
|
+
# @return [String, nil]
|
|
2445
|
+
required :provided_last_name, String, nil?: true
|
|
2446
|
+
|
|
2447
|
+
# @!attribute provided_middle_name
|
|
2448
|
+
# The middle name provided for verification in the authorization request.
|
|
2449
|
+
#
|
|
2450
|
+
# @return [String, nil]
|
|
2451
|
+
required :provided_middle_name, String, nil?: true
|
|
2452
|
+
|
|
2453
|
+
# @!method initialize(provided_first_name:, provided_last_name:, provided_middle_name:)
|
|
2454
|
+
# Cardholder name provided in the authorization request.
|
|
2455
|
+
#
|
|
2456
|
+
# @param provided_first_name [String, nil] The first name provided for verification in the authorization request.
|
|
2457
|
+
#
|
|
2458
|
+
# @param provided_last_name [String, nil] The last name provided for verification in the authorization request.
|
|
2459
|
+
#
|
|
2460
|
+
# @param provided_middle_name [String, nil] The middle name provided for verification in the authorization request.
|
|
2461
|
+
end
|
|
2422
2462
|
end
|
|
2423
2463
|
end
|
|
2424
2464
|
|
|
@@ -129,21 +129,25 @@ module Increase
|
|
|
129
129
|
|
|
130
130
|
# Withdraw a Card Dispute
|
|
131
131
|
#
|
|
132
|
-
# @overload withdraw(card_dispute_id, request_options: {})
|
|
132
|
+
# @overload withdraw(card_dispute_id, explanation: nil, request_options: {})
|
|
133
133
|
#
|
|
134
134
|
# @param card_dispute_id [String] The identifier of the Card Dispute to withdraw.
|
|
135
135
|
#
|
|
136
|
+
# @param explanation [String] The explanation for withdrawing the Card Dispute.
|
|
137
|
+
#
|
|
136
138
|
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
137
139
|
#
|
|
138
140
|
# @return [Increase::Models::CardDispute]
|
|
139
141
|
#
|
|
140
142
|
# @see Increase::Models::CardDisputeWithdrawParams
|
|
141
143
|
def withdraw(card_dispute_id, params = {})
|
|
144
|
+
parsed, options = Increase::CardDisputeWithdrawParams.dump_request(params)
|
|
142
145
|
@client.request(
|
|
143
146
|
method: :post,
|
|
144
147
|
path: ["card_disputes/%1$s/withdraw", card_dispute_id],
|
|
148
|
+
body: parsed,
|
|
145
149
|
model: Increase::CardDispute,
|
|
146
|
-
options:
|
|
150
|
+
options: options
|
|
147
151
|
)
|
|
148
152
|
end
|
|
149
153
|
|
data/lib/increase/version.rb
CHANGED
|
@@ -80,6 +80,18 @@ module Increase
|
|
|
80
80
|
sig { params(win: T.nilable(Increase::CardDispute::Win::OrHash)).void }
|
|
81
81
|
attr_writer :win
|
|
82
82
|
|
|
83
|
+
# If the Card Dispute has been withdrawn, this will contain details of the
|
|
84
|
+
# withdrawal.
|
|
85
|
+
sig { returns(T.nilable(Increase::CardDispute::Withdrawal)) }
|
|
86
|
+
attr_reader :withdrawal
|
|
87
|
+
|
|
88
|
+
sig do
|
|
89
|
+
params(
|
|
90
|
+
withdrawal: T.nilable(Increase::CardDispute::Withdrawal::OrHash)
|
|
91
|
+
).void
|
|
92
|
+
end
|
|
93
|
+
attr_writer :withdrawal
|
|
94
|
+
|
|
83
95
|
# If unauthorized activity occurs on a card, you can create a Card Dispute and
|
|
84
96
|
# we'll work with the card networks to return the funds if appropriate.
|
|
85
97
|
sig do
|
|
@@ -96,7 +108,8 @@ module Increase
|
|
|
96
108
|
type: Increase::CardDispute::Type::OrSymbol,
|
|
97
109
|
user_submission_required_by: T.nilable(Time),
|
|
98
110
|
visa: T.nilable(Increase::CardDispute::Visa::OrHash),
|
|
99
|
-
win: T.nilable(Increase::CardDispute::Win::OrHash)
|
|
111
|
+
win: T.nilable(Increase::CardDispute::Win::OrHash),
|
|
112
|
+
withdrawal: T.nilable(Increase::CardDispute::Withdrawal::OrHash)
|
|
100
113
|
).returns(T.attached_class)
|
|
101
114
|
end
|
|
102
115
|
def self.new(
|
|
@@ -136,7 +149,10 @@ module Increase
|
|
|
136
149
|
visa:,
|
|
137
150
|
# If the Card Dispute's status is `won`, this will contain details of the won
|
|
138
151
|
# dispute.
|
|
139
|
-
win
|
|
152
|
+
win:,
|
|
153
|
+
# If the Card Dispute has been withdrawn, this will contain details of the
|
|
154
|
+
# withdrawal.
|
|
155
|
+
withdrawal:
|
|
140
156
|
)
|
|
141
157
|
end
|
|
142
158
|
|
|
@@ -155,7 +171,8 @@ module Increase
|
|
|
155
171
|
type: Increase::CardDispute::Type::TaggedSymbol,
|
|
156
172
|
user_submission_required_by: T.nilable(Time),
|
|
157
173
|
visa: T.nilable(Increase::CardDispute::Visa),
|
|
158
|
-
win: T.nilable(Increase::CardDispute::Win)
|
|
174
|
+
win: T.nilable(Increase::CardDispute::Win),
|
|
175
|
+
withdrawal: T.nilable(Increase::CardDispute::Withdrawal)
|
|
159
176
|
}
|
|
160
177
|
)
|
|
161
178
|
end
|
|
@@ -11066,6 +11083,33 @@ module Increase
|
|
|
11066
11083
|
def to_hash
|
|
11067
11084
|
end
|
|
11068
11085
|
end
|
|
11086
|
+
|
|
11087
|
+
class Withdrawal < Increase::Internal::Type::BaseModel
|
|
11088
|
+
OrHash =
|
|
11089
|
+
T.type_alias do
|
|
11090
|
+
T.any(
|
|
11091
|
+
Increase::CardDispute::Withdrawal,
|
|
11092
|
+
Increase::Internal::AnyHash
|
|
11093
|
+
)
|
|
11094
|
+
end
|
|
11095
|
+
|
|
11096
|
+
# The explanation for the withdrawal of the Card Dispute.
|
|
11097
|
+
sig { returns(T.nilable(String)) }
|
|
11098
|
+
attr_accessor :explanation
|
|
11099
|
+
|
|
11100
|
+
# If the Card Dispute has been withdrawn, this will contain details of the
|
|
11101
|
+
# withdrawal.
|
|
11102
|
+
sig { params(explanation: T.nilable(String)).returns(T.attached_class) }
|
|
11103
|
+
def self.new(
|
|
11104
|
+
# The explanation for the withdrawal of the Card Dispute.
|
|
11105
|
+
explanation:
|
|
11106
|
+
)
|
|
11107
|
+
end
|
|
11108
|
+
|
|
11109
|
+
sig { override.returns({ explanation: T.nilable(String) }) }
|
|
11110
|
+
def to_hash
|
|
11111
|
+
end
|
|
11112
|
+
end
|
|
11069
11113
|
end
|
|
11070
11114
|
end
|
|
11071
11115
|
end
|
|
@@ -14,15 +14,31 @@ module Increase
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
# The explanation for withdrawing the Card Dispute.
|
|
18
|
+
sig { returns(T.nilable(String)) }
|
|
19
|
+
attr_reader :explanation
|
|
20
|
+
|
|
21
|
+
sig { params(explanation: String).void }
|
|
22
|
+
attr_writer :explanation
|
|
23
|
+
|
|
17
24
|
sig do
|
|
18
|
-
params(
|
|
19
|
-
|
|
20
|
-
|
|
25
|
+
params(
|
|
26
|
+
explanation: String,
|
|
27
|
+
request_options: Increase::RequestOptions::OrHash
|
|
28
|
+
).returns(T.attached_class)
|
|
21
29
|
end
|
|
22
|
-
def self.new(
|
|
30
|
+
def self.new(
|
|
31
|
+
# The explanation for withdrawing the Card Dispute.
|
|
32
|
+
explanation: nil,
|
|
33
|
+
request_options: {}
|
|
34
|
+
)
|
|
23
35
|
end
|
|
24
36
|
|
|
25
|
-
sig
|
|
37
|
+
sig do
|
|
38
|
+
override.returns(
|
|
39
|
+
{ explanation: String, request_options: Increase::RequestOptions }
|
|
40
|
+
)
|
|
41
|
+
end
|
|
26
42
|
def to_hash
|
|
27
43
|
end
|
|
28
44
|
end
|