increase 1.97.1 → 1.99.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/client.rb +4 -0
- data/lib/increase/models/card_dispute.rb +5021 -0
- data/lib/increase/models/card_dispute_create_params.rb +3265 -0
- data/lib/increase/models/card_dispute_list_params.rb +147 -0
- data/lib/increase/models/card_dispute_retrieve_params.rb +14 -0
- data/lib/increase/models/card_dispute_submit_user_submission_params.rb +3469 -0
- data/lib/increase/models/card_dispute_withdraw_params.rb +14 -0
- data/lib/increase/models/simulations/card_dispute_action_params.rb +214 -0
- data/lib/increase/models/transaction.rb +12 -12
- data/lib/increase/models/transaction_list_params.rb +2 -2
- data/lib/increase/models.rb +12 -0
- data/lib/increase/resources/card_disputes.rb +154 -0
- data/lib/increase/resources/simulations/card_disputes.rb +48 -0
- data/lib/increase/resources/simulations.rb +4 -0
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +9 -0
- data/rbi/increase/client.rbi +3 -0
- data/rbi/increase/models/card_dispute.rbi +10100 -0
- data/rbi/increase/models/card_dispute_create_params.rbi +6745 -0
- data/rbi/increase/models/card_dispute_list_params.rbi +296 -0
- data/rbi/increase/models/card_dispute_retrieve_params.rbi +30 -0
- data/rbi/increase/models/card_dispute_submit_user_submission_params.rbi +7253 -0
- data/rbi/increase/models/card_dispute_withdraw_params.rbi +30 -0
- data/rbi/increase/models/simulations/card_dispute_action_params.rbi +419 -0
- data/rbi/increase/models/transaction.rbi +14 -14
- data/rbi/increase/models/transaction_list_params.rbi +2 -2
- data/rbi/increase/models.rbi +13 -0
- data/rbi/increase/resources/card_disputes.rbi +136 -0
- data/rbi/increase/resources/simulations/card_disputes.rbi +40 -0
- data/rbi/increase/resources/simulations.rbi +3 -0
- data/sig/increase/client.rbs +2 -0
- data/sig/increase/models/card_dispute.rbs +3913 -0
- data/sig/increase/models/card_dispute_create_params.rbs +2889 -0
- data/sig/increase/models/card_dispute_list_params.rbs +150 -0
- data/sig/increase/models/card_dispute_retrieve_params.rbs +15 -0
- data/sig/increase/models/card_dispute_submit_user_submission_params.rbs +3089 -0
- data/sig/increase/models/card_dispute_withdraw_params.rbs +15 -0
- data/sig/increase/models/simulations/card_dispute_action_params.rbs +195 -0
- data/sig/increase/models/transaction.rbs +2 -2
- data/sig/increase/models/transaction_list_params.rbs +2 -2
- data/sig/increase/models.rbs +12 -0
- data/sig/increase/resources/card_disputes.rbs +44 -0
- data/sig/increase/resources/simulations/card_disputes.rbs +16 -0
- data/sig/increase/resources/simulations.rbs +2 -0
- metadata +29 -2
@@ -0,0 +1,296 @@
|
|
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
|
+
# A User Submission is required to continue with the Card Dispute.
|
235
|
+
USER_SUBMISSION_REQUIRED =
|
236
|
+
T.let(
|
237
|
+
:user_submission_required,
|
238
|
+
Increase::CardDisputeListParams::Status::In::TaggedSymbol
|
239
|
+
)
|
240
|
+
|
241
|
+
# The most recent User Submission is being reviewed.
|
242
|
+
PENDING_USER_SUBMISSION_REVIEWING =
|
243
|
+
T.let(
|
244
|
+
:pending_user_submission_reviewing,
|
245
|
+
Increase::CardDisputeListParams::Status::In::TaggedSymbol
|
246
|
+
)
|
247
|
+
|
248
|
+
# The most recent User Submission is being submitted to the network.
|
249
|
+
PENDING_USER_SUBMISSION_SUBMITTING =
|
250
|
+
T.let(
|
251
|
+
:pending_user_submission_submitting,
|
252
|
+
Increase::CardDisputeListParams::Status::In::TaggedSymbol
|
253
|
+
)
|
254
|
+
|
255
|
+
# The user's withdrawal of the Card Dispute is being submitted to the network.
|
256
|
+
PENDING_USER_WITHDRAWAL_SUBMITTING =
|
257
|
+
T.let(
|
258
|
+
:pending_user_withdrawal_submitting,
|
259
|
+
Increase::CardDisputeListParams::Status::In::TaggedSymbol
|
260
|
+
)
|
261
|
+
|
262
|
+
# The Card Dispute is pending a response from the network.
|
263
|
+
PENDING_RESPONSE =
|
264
|
+
T.let(
|
265
|
+
:pending_response,
|
266
|
+
Increase::CardDisputeListParams::Status::In::TaggedSymbol
|
267
|
+
)
|
268
|
+
|
269
|
+
# The Card Dispute has been lost and funds previously credited from the acceptance have been debited.
|
270
|
+
LOST =
|
271
|
+
T.let(
|
272
|
+
:lost,
|
273
|
+
Increase::CardDisputeListParams::Status::In::TaggedSymbol
|
274
|
+
)
|
275
|
+
|
276
|
+
# The Card Dispute has been won and no further action can be taken.
|
277
|
+
WON =
|
278
|
+
T.let(
|
279
|
+
:won,
|
280
|
+
Increase::CardDisputeListParams::Status::In::TaggedSymbol
|
281
|
+
)
|
282
|
+
|
283
|
+
sig do
|
284
|
+
override.returns(
|
285
|
+
T::Array[
|
286
|
+
Increase::CardDisputeListParams::Status::In::TaggedSymbol
|
287
|
+
]
|
288
|
+
)
|
289
|
+
end
|
290
|
+
def self.values
|
291
|
+
end
|
292
|
+
end
|
293
|
+
end
|
294
|
+
end
|
295
|
+
end
|
296
|
+
end
|
@@ -0,0 +1,30 @@
|
|
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
|