increase 1.185.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 +8 -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/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/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/resources/card_disputes.rbs +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a4fbf7793f37f9602d17e00fed08177201bfa218a5d447fc46052afddb9c8b68
|
|
4
|
+
data.tar.gz: 18016533b831ce5400c9feb459c30053630fb4029d2b589b6eb8de3b3aaf5a2b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51eea761796df5bf27aaeaada278c1cd14a8fd30412927db4f767939545e743568e2a99671755843285653c1f6ee34ddd7c3f520a4607c0554e4b187cb2871ef
|
|
7
|
+
data.tar.gz: d491e3604e0a5db7f0e43695e0bc584590f486eda668f823b3e8c5866103e9ab91da6a120e6c1aa52a13ee9e7d891e0077ecf33d3a40b19926e63bbeedaaf471
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.186.0 (2026-01-28)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.185.0...v1.186.0](https://github.com/Increase/increase-ruby/compare/v1.185.0...v1.186.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([390da85](https://github.com/Increase/increase-ruby/commit/390da85a509b0b81f7fd823cc5b956765dc1ba80))
|
|
10
|
+
|
|
3
11
|
## 1.185.0 (2026-01-27)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v1.184.0...v1.185.0](https://github.com/Increase/increase-ruby/compare/v1.184.0...v1.185.0)
|
data/README.md
CHANGED
|
@@ -93,7 +93,14 @@ module Increase
|
|
|
93
93
|
# @return [Increase::Models::CardDispute::Win, nil]
|
|
94
94
|
required :win, -> { Increase::CardDispute::Win }, nil?: true
|
|
95
95
|
|
|
96
|
-
# @!
|
|
96
|
+
# @!attribute withdrawal
|
|
97
|
+
# If the Card Dispute has been withdrawn, this will contain details of the
|
|
98
|
+
# withdrawal.
|
|
99
|
+
#
|
|
100
|
+
# @return [Increase::Models::CardDispute::Withdrawal, nil]
|
|
101
|
+
required :withdrawal, -> { Increase::CardDispute::Withdrawal }, nil?: true
|
|
102
|
+
|
|
103
|
+
# @!method initialize(id:, amount:, card_id:, created_at:, disputed_transaction_id:, idempotency_key:, loss:, network:, status:, type:, user_submission_required_by:, visa:, win:, withdrawal:)
|
|
97
104
|
# Some parameter documentations has been truncated, see
|
|
98
105
|
# {Increase::Models::CardDispute} for more details.
|
|
99
106
|
#
|
|
@@ -125,6 +132,8 @@ module Increase
|
|
|
125
132
|
# @param visa [Increase::Models::CardDispute::Visa, nil] Card Dispute information for card payments processed over Visa's network. This f
|
|
126
133
|
#
|
|
127
134
|
# @param win [Increase::Models::CardDispute::Win, nil] If the Card Dispute's status is `won`, this will contain details of the won disp
|
|
135
|
+
#
|
|
136
|
+
# @param withdrawal [Increase::Models::CardDispute::Withdrawal, nil] If the Card Dispute has been withdrawn, this will contain details of the withdra
|
|
128
137
|
|
|
129
138
|
# @see Increase::Models::CardDispute#loss
|
|
130
139
|
class Loss < Increase::Internal::Type::BaseModel
|
|
@@ -5281,6 +5290,21 @@ module Increase
|
|
|
5281
5290
|
#
|
|
5282
5291
|
# @param won_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
|
|
5283
5292
|
end
|
|
5293
|
+
|
|
5294
|
+
# @see Increase::Models::CardDispute#withdrawal
|
|
5295
|
+
class Withdrawal < Increase::Internal::Type::BaseModel
|
|
5296
|
+
# @!attribute explanation
|
|
5297
|
+
# The explanation for the withdrawal of the Card Dispute.
|
|
5298
|
+
#
|
|
5299
|
+
# @return [String, nil]
|
|
5300
|
+
required :explanation, String, nil?: true
|
|
5301
|
+
|
|
5302
|
+
# @!method initialize(explanation:)
|
|
5303
|
+
# If the Card Dispute has been withdrawn, this will contain details of the
|
|
5304
|
+
# withdrawal.
|
|
5305
|
+
#
|
|
5306
|
+
# @param explanation [String, nil] The explanation for the withdrawal of the Card Dispute.
|
|
5307
|
+
end
|
|
5284
5308
|
end
|
|
5285
5309
|
end
|
|
5286
5310
|
end
|
|
@@ -7,7 +7,15 @@ module Increase
|
|
|
7
7
|
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Increase::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!
|
|
10
|
+
# @!attribute explanation
|
|
11
|
+
# The explanation for withdrawing the Card Dispute.
|
|
12
|
+
#
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
optional :explanation, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(explanation: nil, request_options: {})
|
|
17
|
+
# @param explanation [String] The explanation for withdrawing the Card Dispute.
|
|
18
|
+
#
|
|
11
19
|
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
12
20
|
end
|
|
13
21
|
end
|
|
@@ -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
|
|
@@ -125,12 +125,15 @@ module Increase
|
|
|
125
125
|
sig do
|
|
126
126
|
params(
|
|
127
127
|
card_dispute_id: String,
|
|
128
|
+
explanation: String,
|
|
128
129
|
request_options: Increase::RequestOptions::OrHash
|
|
129
130
|
).returns(Increase::CardDispute)
|
|
130
131
|
end
|
|
131
132
|
def withdraw(
|
|
132
133
|
# The identifier of the Card Dispute to withdraw.
|
|
133
134
|
card_dispute_id,
|
|
135
|
+
# The explanation for withdrawing the Card Dispute.
|
|
136
|
+
explanation: nil,
|
|
134
137
|
request_options: {}
|
|
135
138
|
)
|
|
136
139
|
end
|
|
@@ -14,7 +14,8 @@ module Increase
|
|
|
14
14
|
type: Increase::Models::CardDispute::type_,
|
|
15
15
|
user_submission_required_by: Time?,
|
|
16
16
|
visa: Increase::CardDispute::Visa?,
|
|
17
|
-
win: Increase::CardDispute::Win
|
|
17
|
+
win: Increase::CardDispute::Win?,
|
|
18
|
+
withdrawal: Increase::CardDispute::Withdrawal?
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
class CardDispute < Increase::Internal::Type::BaseModel
|
|
@@ -44,6 +45,8 @@ module Increase
|
|
|
44
45
|
|
|
45
46
|
attr_accessor win: Increase::CardDispute::Win?
|
|
46
47
|
|
|
48
|
+
attr_accessor withdrawal: Increase::CardDispute::Withdrawal?
|
|
49
|
+
|
|
47
50
|
def initialize: (
|
|
48
51
|
id: String,
|
|
49
52
|
amount: Integer,
|
|
@@ -57,7 +60,8 @@ module Increase
|
|
|
57
60
|
type: Increase::Models::CardDispute::type_,
|
|
58
61
|
user_submission_required_by: Time?,
|
|
59
62
|
visa: Increase::CardDispute::Visa?,
|
|
60
|
-
win: Increase::CardDispute::Win
|
|
63
|
+
win: Increase::CardDispute::Win?,
|
|
64
|
+
withdrawal: Increase::CardDispute::Withdrawal?
|
|
61
65
|
) -> void
|
|
62
66
|
|
|
63
67
|
def to_hash: -> {
|
|
@@ -73,7 +77,8 @@ module Increase
|
|
|
73
77
|
type: Increase::Models::CardDispute::type_,
|
|
74
78
|
user_submission_required_by: Time?,
|
|
75
79
|
visa: Increase::CardDispute::Visa?,
|
|
76
|
-
win: Increase::CardDispute::Win
|
|
80
|
+
win: Increase::CardDispute::Win?,
|
|
81
|
+
withdrawal: Increase::CardDispute::Withdrawal?
|
|
77
82
|
}
|
|
78
83
|
|
|
79
84
|
type loss =
|
|
@@ -4097,6 +4102,16 @@ module Increase
|
|
|
4097
4102
|
|
|
4098
4103
|
def to_hash: -> { won_at: Time }
|
|
4099
4104
|
end
|
|
4105
|
+
|
|
4106
|
+
type withdrawal = { explanation: String? }
|
|
4107
|
+
|
|
4108
|
+
class Withdrawal < Increase::Internal::Type::BaseModel
|
|
4109
|
+
attr_accessor explanation: String?
|
|
4110
|
+
|
|
4111
|
+
def initialize: (explanation: String?) -> void
|
|
4112
|
+
|
|
4113
|
+
def to_hash: -> { explanation: String? }
|
|
4114
|
+
end
|
|
4100
4115
|
end
|
|
4101
4116
|
end
|
|
4102
4117
|
end
|
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
module Increase
|
|
2
2
|
module Models
|
|
3
3
|
type card_dispute_withdraw_params =
|
|
4
|
-
{
|
|
4
|
+
{ explanation: String } & Increase::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class CardDisputeWithdrawParams < Increase::Internal::Type::BaseModel
|
|
7
7
|
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Increase::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_reader explanation: String?
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def explanation=: (String) -> String
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
?explanation: String,
|
|
16
|
+
?request_options: Increase::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
explanation: String,
|
|
21
|
+
request_options: Increase::RequestOptions
|
|
22
|
+
}
|
|
13
23
|
end
|
|
14
24
|
end
|
|
15
25
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: increase
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.186.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Increase
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|