increase 1.79.0 → 1.80.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 +9 -0
- data/README.md +1 -1
- data/lib/increase/client.rb +0 -4
- data/lib/increase/errors.rb +25 -11
- data/lib/increase/internal/page.rb +1 -1
- data/lib/increase/internal/transport/base_client.rb +11 -7
- data/lib/increase/internal/type/base_page.rb +1 -1
- data/lib/increase/internal/util.rb +1 -1
- data/lib/increase/models/transaction.rb +3 -27
- data/lib/increase/models.rb +0 -8
- data/lib/increase/resources/simulations.rb +0 -4
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +0 -7
- data/rbi/increase/client.rbi +0 -3
- data/rbi/increase/errors.rbi +29 -2
- data/rbi/increase/internal/transport/base_client.rbi +4 -5
- data/rbi/increase/internal/type/base_page.rbi +1 -1
- data/rbi/increase/internal/util.rbi +1 -1
- data/rbi/increase/models/transaction.rbi +5 -39
- data/rbi/increase/models.rbi +0 -8
- data/rbi/increase/resources/simulations.rbi +0 -3
- data/sig/increase/client.rbs +0 -2
- data/sig/increase/errors.rbs +7 -0
- data/sig/increase/models/transaction.rbs +4 -28
- data/sig/increase/models.rbs +0 -8
- data/sig/increase/resources/simulations.rbs +0 -2
- metadata +1 -22
- data/lib/increase/models/card_dispute.rb +0 -302
- data/lib/increase/models/card_dispute_create_params.rb +0 -45
- data/lib/increase/models/card_dispute_list_params.rb +0 -144
- data/lib/increase/models/card_dispute_retrieve_params.rb +0 -14
- data/lib/increase/models/simulations/card_dispute_action_params.rb +0 -55
- data/lib/increase/resources/card_disputes.rb +0 -97
- data/lib/increase/resources/simulations/card_disputes.rb +0 -45
- data/rbi/increase/models/card_dispute.rbi +0 -425
- data/rbi/increase/models/card_dispute_create_params.rbi +0 -70
- data/rbi/increase/models/card_dispute_list_params.rbi +0 -289
- data/rbi/increase/models/card_dispute_retrieve_params.rbi +0 -30
- data/rbi/increase/models/simulations/card_dispute_action_params.rbi +0 -124
- data/rbi/increase/resources/card_disputes.rbi +0 -78
- data/rbi/increase/resources/simulations/card_disputes.rbi +0 -38
- data/sig/increase/models/card_dispute.rbs +0 -207
- data/sig/increase/models/card_dispute_create_params.rbs +0 -34
- data/sig/increase/models/card_dispute_list_params.rbs +0 -146
- data/sig/increase/models/card_dispute_retrieve_params.rbs +0 -15
- data/sig/increase/models/simulations/card_dispute_action_params.rbs +0 -59
- data/sig/increase/resources/card_disputes.rbs +0 -28
- data/sig/increase/resources/simulations/card_disputes.rbs +0 -16
@@ -1,289 +0,0 @@
|
|
1
|
-
# typed: strong
|
2
|
-
|
3
|
-
module Increase
|
4
|
-
module Models
|
5
|
-
class CardDisputeListParams < 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(Increase::CardDisputeListParams, Increase::Internal::AnyHash)
|
12
|
-
end
|
13
|
-
|
14
|
-
sig { returns(T.nilable(Increase::CardDisputeListParams::CreatedAt)) }
|
15
|
-
attr_reader :created_at
|
16
|
-
|
17
|
-
sig do
|
18
|
-
params(
|
19
|
-
created_at: Increase::CardDisputeListParams::CreatedAt::OrHash
|
20
|
-
).void
|
21
|
-
end
|
22
|
-
attr_writer :created_at
|
23
|
-
|
24
|
-
# Return the page of entries after this one.
|
25
|
-
sig { returns(T.nilable(String)) }
|
26
|
-
attr_reader :cursor
|
27
|
-
|
28
|
-
sig { params(cursor: String).void }
|
29
|
-
attr_writer :cursor
|
30
|
-
|
31
|
-
# Filter records to the one with the specified `idempotency_key` you chose for
|
32
|
-
# that object. This value is unique across Increase and is used to ensure that a
|
33
|
-
# request is only processed once. Learn more about
|
34
|
-
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
35
|
-
sig { returns(T.nilable(String)) }
|
36
|
-
attr_reader :idempotency_key
|
37
|
-
|
38
|
-
sig { params(idempotency_key: String).void }
|
39
|
-
attr_writer :idempotency_key
|
40
|
-
|
41
|
-
# Limit the size of the list that is returned. The default (and maximum) is 100
|
42
|
-
# objects.
|
43
|
-
sig { returns(T.nilable(Integer)) }
|
44
|
-
attr_reader :limit
|
45
|
-
|
46
|
-
sig { params(limit: Integer).void }
|
47
|
-
attr_writer :limit
|
48
|
-
|
49
|
-
sig { returns(T.nilable(Increase::CardDisputeListParams::Status)) }
|
50
|
-
attr_reader :status
|
51
|
-
|
52
|
-
sig do
|
53
|
-
params(status: Increase::CardDisputeListParams::Status::OrHash).void
|
54
|
-
end
|
55
|
-
attr_writer :status
|
56
|
-
|
57
|
-
sig do
|
58
|
-
params(
|
59
|
-
created_at: Increase::CardDisputeListParams::CreatedAt::OrHash,
|
60
|
-
cursor: String,
|
61
|
-
idempotency_key: String,
|
62
|
-
limit: Integer,
|
63
|
-
status: Increase::CardDisputeListParams::Status::OrHash,
|
64
|
-
request_options: Increase::RequestOptions::OrHash
|
65
|
-
).returns(T.attached_class)
|
66
|
-
end
|
67
|
-
def self.new(
|
68
|
-
created_at: nil,
|
69
|
-
# Return the page of entries after this one.
|
70
|
-
cursor: nil,
|
71
|
-
# Filter records to the one with the specified `idempotency_key` you chose for
|
72
|
-
# that object. This value is unique across Increase and is used to ensure that a
|
73
|
-
# request is only processed once. Learn more about
|
74
|
-
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
75
|
-
idempotency_key: nil,
|
76
|
-
# Limit the size of the list that is returned. The default (and maximum) is 100
|
77
|
-
# objects.
|
78
|
-
limit: nil,
|
79
|
-
status: nil,
|
80
|
-
request_options: {}
|
81
|
-
)
|
82
|
-
end
|
83
|
-
|
84
|
-
sig do
|
85
|
-
override.returns(
|
86
|
-
{
|
87
|
-
created_at: Increase::CardDisputeListParams::CreatedAt,
|
88
|
-
cursor: String,
|
89
|
-
idempotency_key: String,
|
90
|
-
limit: Integer,
|
91
|
-
status: Increase::CardDisputeListParams::Status,
|
92
|
-
request_options: Increase::RequestOptions
|
93
|
-
}
|
94
|
-
)
|
95
|
-
end
|
96
|
-
def to_hash
|
97
|
-
end
|
98
|
-
|
99
|
-
class CreatedAt < Increase::Internal::Type::BaseModel
|
100
|
-
OrHash =
|
101
|
-
T.type_alias do
|
102
|
-
T.any(
|
103
|
-
Increase::CardDisputeListParams::CreatedAt,
|
104
|
-
Increase::Internal::AnyHash
|
105
|
-
)
|
106
|
-
end
|
107
|
-
|
108
|
-
# Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
109
|
-
# timestamp.
|
110
|
-
sig { returns(T.nilable(Time)) }
|
111
|
-
attr_reader :after
|
112
|
-
|
113
|
-
sig { params(after: Time).void }
|
114
|
-
attr_writer :after
|
115
|
-
|
116
|
-
# Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
117
|
-
# timestamp.
|
118
|
-
sig { returns(T.nilable(Time)) }
|
119
|
-
attr_reader :before
|
120
|
-
|
121
|
-
sig { params(before: Time).void }
|
122
|
-
attr_writer :before
|
123
|
-
|
124
|
-
# Return results on or after this
|
125
|
-
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
126
|
-
sig { returns(T.nilable(Time)) }
|
127
|
-
attr_reader :on_or_after
|
128
|
-
|
129
|
-
sig { params(on_or_after: Time).void }
|
130
|
-
attr_writer :on_or_after
|
131
|
-
|
132
|
-
# Return results on or before this
|
133
|
-
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
134
|
-
sig { returns(T.nilable(Time)) }
|
135
|
-
attr_reader :on_or_before
|
136
|
-
|
137
|
-
sig { params(on_or_before: Time).void }
|
138
|
-
attr_writer :on_or_before
|
139
|
-
|
140
|
-
sig do
|
141
|
-
params(
|
142
|
-
after: Time,
|
143
|
-
before: Time,
|
144
|
-
on_or_after: Time,
|
145
|
-
on_or_before: Time
|
146
|
-
).returns(T.attached_class)
|
147
|
-
end
|
148
|
-
def self.new(
|
149
|
-
# Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
150
|
-
# timestamp.
|
151
|
-
after: nil,
|
152
|
-
# Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
153
|
-
# timestamp.
|
154
|
-
before: nil,
|
155
|
-
# Return results on or after this
|
156
|
-
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
157
|
-
on_or_after: nil,
|
158
|
-
# Return results on or before this
|
159
|
-
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
160
|
-
on_or_before: nil
|
161
|
-
)
|
162
|
-
end
|
163
|
-
|
164
|
-
sig do
|
165
|
-
override.returns(
|
166
|
-
{ after: Time, before: Time, on_or_after: Time, on_or_before: Time }
|
167
|
-
)
|
168
|
-
end
|
169
|
-
def to_hash
|
170
|
-
end
|
171
|
-
end
|
172
|
-
|
173
|
-
class Status < Increase::Internal::Type::BaseModel
|
174
|
-
OrHash =
|
175
|
-
T.type_alias do
|
176
|
-
T.any(
|
177
|
-
Increase::CardDisputeListParams::Status,
|
178
|
-
Increase::Internal::AnyHash
|
179
|
-
)
|
180
|
-
end
|
181
|
-
|
182
|
-
# Filter Card Disputes for those with the specified status or statuses. For GET
|
183
|
-
# requests, this should be encoded as a comma-delimited string, such as
|
184
|
-
# `?in=one,two,three`.
|
185
|
-
sig do
|
186
|
-
returns(
|
187
|
-
T.nilable(
|
188
|
-
T::Array[Increase::CardDisputeListParams::Status::In::OrSymbol]
|
189
|
-
)
|
190
|
-
)
|
191
|
-
end
|
192
|
-
attr_reader :in_
|
193
|
-
|
194
|
-
sig do
|
195
|
-
params(
|
196
|
-
in_: T::Array[Increase::CardDisputeListParams::Status::In::OrSymbol]
|
197
|
-
).void
|
198
|
-
end
|
199
|
-
attr_writer :in_
|
200
|
-
|
201
|
-
sig do
|
202
|
-
params(
|
203
|
-
in_: T::Array[Increase::CardDisputeListParams::Status::In::OrSymbol]
|
204
|
-
).returns(T.attached_class)
|
205
|
-
end
|
206
|
-
def self.new(
|
207
|
-
# Filter Card Disputes for those with the specified status or statuses. For GET
|
208
|
-
# requests, this should be encoded as a comma-delimited string, such as
|
209
|
-
# `?in=one,two,three`.
|
210
|
-
in_: nil
|
211
|
-
)
|
212
|
-
end
|
213
|
-
|
214
|
-
sig do
|
215
|
-
override.returns(
|
216
|
-
{
|
217
|
-
in_:
|
218
|
-
T::Array[Increase::CardDisputeListParams::Status::In::OrSymbol]
|
219
|
-
}
|
220
|
-
)
|
221
|
-
end
|
222
|
-
def to_hash
|
223
|
-
end
|
224
|
-
|
225
|
-
module In
|
226
|
-
extend Increase::Internal::Type::Enum
|
227
|
-
|
228
|
-
TaggedSymbol =
|
229
|
-
T.type_alias do
|
230
|
-
T.all(Symbol, Increase::CardDisputeListParams::Status::In)
|
231
|
-
end
|
232
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
233
|
-
|
234
|
-
# The Card Dispute is pending review.
|
235
|
-
PENDING_REVIEWING =
|
236
|
-
T.let(
|
237
|
-
:pending_reviewing,
|
238
|
-
Increase::CardDisputeListParams::Status::In::TaggedSymbol
|
239
|
-
)
|
240
|
-
|
241
|
-
# Increase has requested more information related to the Card Dispute from you.
|
242
|
-
PENDING_USER_INFORMATION =
|
243
|
-
T.let(
|
244
|
-
:pending_user_information,
|
245
|
-
Increase::CardDisputeListParams::Status::In::TaggedSymbol
|
246
|
-
)
|
247
|
-
|
248
|
-
# The Card Dispute has been accepted and your funds have been returned. The card dispute will eventually transition into `won` or `lost` depending on the outcome.
|
249
|
-
ACCEPTED =
|
250
|
-
T.let(
|
251
|
-
:accepted,
|
252
|
-
Increase::CardDisputeListParams::Status::In::TaggedSymbol
|
253
|
-
)
|
254
|
-
|
255
|
-
# The Card Dispute has been rejected.
|
256
|
-
REJECTED =
|
257
|
-
T.let(
|
258
|
-
:rejected,
|
259
|
-
Increase::CardDisputeListParams::Status::In::TaggedSymbol
|
260
|
-
)
|
261
|
-
|
262
|
-
# The Card Dispute has been lost and funds previously credited from the acceptance have been debited.
|
263
|
-
LOST =
|
264
|
-
T.let(
|
265
|
-
:lost,
|
266
|
-
Increase::CardDisputeListParams::Status::In::TaggedSymbol
|
267
|
-
)
|
268
|
-
|
269
|
-
# The Card Dispute has been won and no further action can be taken.
|
270
|
-
WON =
|
271
|
-
T.let(
|
272
|
-
:won,
|
273
|
-
Increase::CardDisputeListParams::Status::In::TaggedSymbol
|
274
|
-
)
|
275
|
-
|
276
|
-
sig do
|
277
|
-
override.returns(
|
278
|
-
T::Array[
|
279
|
-
Increase::CardDisputeListParams::Status::In::TaggedSymbol
|
280
|
-
]
|
281
|
-
)
|
282
|
-
end
|
283
|
-
def self.values
|
284
|
-
end
|
285
|
-
end
|
286
|
-
end
|
287
|
-
end
|
288
|
-
end
|
289
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# typed: strong
|
2
|
-
|
3
|
-
module Increase
|
4
|
-
module Models
|
5
|
-
class CardDisputeRetrieveParams < 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::CardDisputeRetrieveParams,
|
13
|
-
Increase::Internal::AnyHash
|
14
|
-
)
|
15
|
-
end
|
16
|
-
|
17
|
-
sig do
|
18
|
-
params(request_options: Increase::RequestOptions::OrHash).returns(
|
19
|
-
T.attached_class
|
20
|
-
)
|
21
|
-
end
|
22
|
-
def self.new(request_options: {})
|
23
|
-
end
|
24
|
-
|
25
|
-
sig { override.returns({ request_options: Increase::RequestOptions }) }
|
26
|
-
def to_hash
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
@@ -1,124 +0,0 @@
|
|
1
|
-
# typed: strong
|
2
|
-
|
3
|
-
module Increase
|
4
|
-
module Models
|
5
|
-
module Simulations
|
6
|
-
class CardDisputeActionParams < Increase::Internal::Type::BaseModel
|
7
|
-
extend Increase::Internal::Type::RequestParameters::Converter
|
8
|
-
include Increase::Internal::Type::RequestParameters
|
9
|
-
|
10
|
-
OrHash =
|
11
|
-
T.type_alias do
|
12
|
-
T.any(
|
13
|
-
Increase::Simulations::CardDisputeActionParams,
|
14
|
-
Increase::Internal::AnyHash
|
15
|
-
)
|
16
|
-
end
|
17
|
-
|
18
|
-
# The status to move the dispute to.
|
19
|
-
sig do
|
20
|
-
returns(
|
21
|
-
Increase::Simulations::CardDisputeActionParams::Status::OrSymbol
|
22
|
-
)
|
23
|
-
end
|
24
|
-
attr_accessor :status
|
25
|
-
|
26
|
-
# Why the dispute was rejected. Not required for accepting disputes.
|
27
|
-
sig { returns(T.nilable(String)) }
|
28
|
-
attr_reader :explanation
|
29
|
-
|
30
|
-
sig { params(explanation: String).void }
|
31
|
-
attr_writer :explanation
|
32
|
-
|
33
|
-
sig do
|
34
|
-
params(
|
35
|
-
status:
|
36
|
-
Increase::Simulations::CardDisputeActionParams::Status::OrSymbol,
|
37
|
-
explanation: String,
|
38
|
-
request_options: Increase::RequestOptions::OrHash
|
39
|
-
).returns(T.attached_class)
|
40
|
-
end
|
41
|
-
def self.new(
|
42
|
-
# The status to move the dispute to.
|
43
|
-
status:,
|
44
|
-
# Why the dispute was rejected. Not required for accepting disputes.
|
45
|
-
explanation: nil,
|
46
|
-
request_options: {}
|
47
|
-
)
|
48
|
-
end
|
49
|
-
|
50
|
-
sig do
|
51
|
-
override.returns(
|
52
|
-
{
|
53
|
-
status:
|
54
|
-
Increase::Simulations::CardDisputeActionParams::Status::OrSymbol,
|
55
|
-
explanation: String,
|
56
|
-
request_options: Increase::RequestOptions
|
57
|
-
}
|
58
|
-
)
|
59
|
-
end
|
60
|
-
def to_hash
|
61
|
-
end
|
62
|
-
|
63
|
-
# The status to move the dispute to.
|
64
|
-
module Status
|
65
|
-
extend Increase::Internal::Type::Enum
|
66
|
-
|
67
|
-
TaggedSymbol =
|
68
|
-
T.type_alias do
|
69
|
-
T.all(
|
70
|
-
Symbol,
|
71
|
-
Increase::Simulations::CardDisputeActionParams::Status
|
72
|
-
)
|
73
|
-
end
|
74
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
75
|
-
|
76
|
-
# Increase has requested more information related to the Card Dispute from you.
|
77
|
-
PENDING_USER_INFORMATION =
|
78
|
-
T.let(
|
79
|
-
:pending_user_information,
|
80
|
-
Increase::Simulations::CardDisputeActionParams::Status::TaggedSymbol
|
81
|
-
)
|
82
|
-
|
83
|
-
# The Card Dispute has been accepted and your funds have been returned. The card dispute will eventually transition into `won` or `lost` depending on the outcome.
|
84
|
-
ACCEPTED =
|
85
|
-
T.let(
|
86
|
-
:accepted,
|
87
|
-
Increase::Simulations::CardDisputeActionParams::Status::TaggedSymbol
|
88
|
-
)
|
89
|
-
|
90
|
-
# The Card Dispute has been rejected.
|
91
|
-
REJECTED =
|
92
|
-
T.let(
|
93
|
-
:rejected,
|
94
|
-
Increase::Simulations::CardDisputeActionParams::Status::TaggedSymbol
|
95
|
-
)
|
96
|
-
|
97
|
-
# The Card Dispute has been lost and funds previously credited from the acceptance have been debited.
|
98
|
-
LOST =
|
99
|
-
T.let(
|
100
|
-
:lost,
|
101
|
-
Increase::Simulations::CardDisputeActionParams::Status::TaggedSymbol
|
102
|
-
)
|
103
|
-
|
104
|
-
# The Card Dispute has been won and no further action can be taken.
|
105
|
-
WON =
|
106
|
-
T.let(
|
107
|
-
:won,
|
108
|
-
Increase::Simulations::CardDisputeActionParams::Status::TaggedSymbol
|
109
|
-
)
|
110
|
-
|
111
|
-
sig do
|
112
|
-
override.returns(
|
113
|
-
T::Array[
|
114
|
-
Increase::Simulations::CardDisputeActionParams::Status::TaggedSymbol
|
115
|
-
]
|
116
|
-
)
|
117
|
-
end
|
118
|
-
def self.values
|
119
|
-
end
|
120
|
-
end
|
121
|
-
end
|
122
|
-
end
|
123
|
-
end
|
124
|
-
end
|
@@ -1,78 +0,0 @@
|
|
1
|
-
# typed: strong
|
2
|
-
|
3
|
-
module Increase
|
4
|
-
module Resources
|
5
|
-
class CardDisputes
|
6
|
-
# Create a Card Dispute
|
7
|
-
sig do
|
8
|
-
params(
|
9
|
-
disputed_transaction_id: String,
|
10
|
-
explanation: String,
|
11
|
-
amount: Integer,
|
12
|
-
request_options: Increase::RequestOptions::OrHash
|
13
|
-
).returns(Increase::CardDispute)
|
14
|
-
end
|
15
|
-
def create(
|
16
|
-
# The Transaction you wish to dispute. This Transaction must have a `source_type`
|
17
|
-
# of `card_settlement`.
|
18
|
-
disputed_transaction_id:,
|
19
|
-
# Why you are disputing this Transaction.
|
20
|
-
explanation:,
|
21
|
-
# The monetary amount of the part of the transaction that is being disputed. This
|
22
|
-
# is optional and will default to the full amount of the transaction if not
|
23
|
-
# provided. If provided, the amount must be less than or equal to the amount of
|
24
|
-
# the transaction.
|
25
|
-
amount: nil,
|
26
|
-
request_options: {}
|
27
|
-
)
|
28
|
-
end
|
29
|
-
|
30
|
-
# Retrieve a Card Dispute
|
31
|
-
sig do
|
32
|
-
params(
|
33
|
-
card_dispute_id: String,
|
34
|
-
request_options: Increase::RequestOptions::OrHash
|
35
|
-
).returns(Increase::CardDispute)
|
36
|
-
end
|
37
|
-
def retrieve(
|
38
|
-
# The identifier of the Card Dispute.
|
39
|
-
card_dispute_id,
|
40
|
-
request_options: {}
|
41
|
-
)
|
42
|
-
end
|
43
|
-
|
44
|
-
# List Card Disputes
|
45
|
-
sig do
|
46
|
-
params(
|
47
|
-
created_at: Increase::CardDisputeListParams::CreatedAt::OrHash,
|
48
|
-
cursor: String,
|
49
|
-
idempotency_key: String,
|
50
|
-
limit: Integer,
|
51
|
-
status: Increase::CardDisputeListParams::Status::OrHash,
|
52
|
-
request_options: Increase::RequestOptions::OrHash
|
53
|
-
).returns(Increase::Internal::Page[Increase::CardDispute])
|
54
|
-
end
|
55
|
-
def list(
|
56
|
-
created_at: nil,
|
57
|
-
# Return the page of entries after this one.
|
58
|
-
cursor: nil,
|
59
|
-
# Filter records to the one with the specified `idempotency_key` you chose for
|
60
|
-
# that object. This value is unique across Increase and is used to ensure that a
|
61
|
-
# request is only processed once. Learn more about
|
62
|
-
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
63
|
-
idempotency_key: nil,
|
64
|
-
# Limit the size of the list that is returned. The default (and maximum) is 100
|
65
|
-
# objects.
|
66
|
-
limit: nil,
|
67
|
-
status: nil,
|
68
|
-
request_options: {}
|
69
|
-
)
|
70
|
-
end
|
71
|
-
|
72
|
-
# @api private
|
73
|
-
sig { params(client: Increase::Client).returns(T.attached_class) }
|
74
|
-
def self.new(client:)
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|
78
|
-
end
|
@@ -1,38 +0,0 @@
|
|
1
|
-
# typed: strong
|
2
|
-
|
3
|
-
module Increase
|
4
|
-
module Resources
|
5
|
-
class Simulations
|
6
|
-
class CardDisputes
|
7
|
-
# After a [Card Dispute](#card-disputes) is created in production, the dispute
|
8
|
-
# will be reviewed. Since no review happens in sandbox, this endpoint simulates
|
9
|
-
# moving a Card Dispute into a rejected or accepted state. A Card Dispute can only
|
10
|
-
# be actioned one time and must have a status of `pending_reviewing`.
|
11
|
-
sig do
|
12
|
-
params(
|
13
|
-
card_dispute_id: String,
|
14
|
-
status:
|
15
|
-
Increase::Simulations::CardDisputeActionParams::Status::OrSymbol,
|
16
|
-
explanation: String,
|
17
|
-
request_options: Increase::RequestOptions::OrHash
|
18
|
-
).returns(Increase::CardDispute)
|
19
|
-
end
|
20
|
-
def action(
|
21
|
-
# The dispute you would like to action.
|
22
|
-
card_dispute_id,
|
23
|
-
# The status to move the dispute to.
|
24
|
-
status:,
|
25
|
-
# Why the dispute was rejected. Not required for accepting disputes.
|
26
|
-
explanation: nil,
|
27
|
-
request_options: {}
|
28
|
-
)
|
29
|
-
end
|
30
|
-
|
31
|
-
# @api private
|
32
|
-
sig { params(client: Increase::Client).returns(T.attached_class) }
|
33
|
-
def self.new(client:)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|