increase 1.98.0 → 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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/increase/client.rb +4 -0
  5. data/lib/increase/models/card_dispute.rb +5021 -0
  6. data/lib/increase/models/card_dispute_create_params.rb +3265 -0
  7. data/lib/increase/models/card_dispute_list_params.rb +147 -0
  8. data/lib/increase/models/card_dispute_retrieve_params.rb +14 -0
  9. data/lib/increase/models/card_dispute_submit_user_submission_params.rb +3469 -0
  10. data/lib/increase/models/card_dispute_withdraw_params.rb +14 -0
  11. data/lib/increase/models/simulations/card_dispute_action_params.rb +214 -0
  12. data/lib/increase/models.rb +12 -0
  13. data/lib/increase/resources/card_disputes.rb +154 -0
  14. data/lib/increase/resources/simulations/card_disputes.rb +48 -0
  15. data/lib/increase/resources/simulations.rb +4 -0
  16. data/lib/increase/version.rb +1 -1
  17. data/lib/increase.rb +9 -0
  18. data/rbi/increase/client.rbi +3 -0
  19. data/rbi/increase/models/card_dispute.rbi +10100 -0
  20. data/rbi/increase/models/card_dispute_create_params.rbi +6745 -0
  21. data/rbi/increase/models/card_dispute_list_params.rbi +296 -0
  22. data/rbi/increase/models/card_dispute_retrieve_params.rbi +30 -0
  23. data/rbi/increase/models/card_dispute_submit_user_submission_params.rbi +7253 -0
  24. data/rbi/increase/models/card_dispute_withdraw_params.rbi +30 -0
  25. data/rbi/increase/models/simulations/card_dispute_action_params.rbi +419 -0
  26. data/rbi/increase/models.rbi +13 -0
  27. data/rbi/increase/resources/card_disputes.rbi +136 -0
  28. data/rbi/increase/resources/simulations/card_disputes.rbi +40 -0
  29. data/rbi/increase/resources/simulations.rbi +3 -0
  30. data/sig/increase/client.rbs +2 -0
  31. data/sig/increase/models/card_dispute.rbs +3913 -0
  32. data/sig/increase/models/card_dispute_create_params.rbs +2889 -0
  33. data/sig/increase/models/card_dispute_list_params.rbs +150 -0
  34. data/sig/increase/models/card_dispute_retrieve_params.rbs +15 -0
  35. data/sig/increase/models/card_dispute_submit_user_submission_params.rbs +3089 -0
  36. data/sig/increase/models/card_dispute_withdraw_params.rbs +15 -0
  37. data/sig/increase/models/simulations/card_dispute_action_params.rbs +195 -0
  38. data/sig/increase/models.rbs +12 -0
  39. data/sig/increase/resources/card_disputes.rbs +44 -0
  40. data/sig/increase/resources/simulations/card_disputes.rbs +16 -0
  41. data/sig/increase/resources/simulations.rbs +2 -0
  42. metadata +28 -1
@@ -0,0 +1,3265 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::CardDisputes#create
6
+ class CardDisputeCreateParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ # @!attribute disputed_transaction_id
11
+ # The Transaction you wish to dispute. This Transaction must have a `source_type`
12
+ # of `card_settlement`.
13
+ #
14
+ # @return [String]
15
+ required :disputed_transaction_id, String
16
+
17
+ # @!attribute network
18
+ # The network of the disputed transaction. Details specific to the network are
19
+ # required under the sub-object with the same identifier as the network.
20
+ #
21
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Network]
22
+ required :network, enum: -> { Increase::CardDisputeCreateParams::Network }
23
+
24
+ # @!attribute amount
25
+ # The monetary amount of the part of the transaction that is being disputed. This
26
+ # is optional and will default to the full amount of the transaction if not
27
+ # provided. If provided, the amount must be less than or equal to the amount of
28
+ # the transaction.
29
+ #
30
+ # @return [Integer, nil]
31
+ optional :amount, Integer
32
+
33
+ # @!attribute attachment_files
34
+ # The files to be attached to the initial dispute submission.
35
+ #
36
+ # @return [Array<Increase::Models::CardDisputeCreateParams::AttachmentFile>, nil]
37
+ optional :attachment_files,
38
+ -> { Increase::Internal::Type::ArrayOf[Increase::CardDisputeCreateParams::AttachmentFile] }
39
+
40
+ # @!attribute visa
41
+ # The Visa-specific parameters for the dispute. Required if and only if `network`
42
+ # is `visa`.
43
+ #
44
+ # @return [Increase::Models::CardDisputeCreateParams::Visa, nil]
45
+ optional :visa, -> { Increase::CardDisputeCreateParams::Visa }
46
+
47
+ # @!method initialize(disputed_transaction_id:, network:, amount: nil, attachment_files: nil, visa: nil, request_options: {})
48
+ # Some parameter documentations has been truncated, see
49
+ # {Increase::Models::CardDisputeCreateParams} for more details.
50
+ #
51
+ # @param disputed_transaction_id [String] The Transaction you wish to dispute. This Transaction must have a `source_type`
52
+ #
53
+ # @param network [Symbol, Increase::Models::CardDisputeCreateParams::Network] The network of the disputed transaction. Details specific to the network are req
54
+ #
55
+ # @param amount [Integer] The monetary amount of the part of the transaction that is being disputed. This
56
+ #
57
+ # @param attachment_files [Array<Increase::Models::CardDisputeCreateParams::AttachmentFile>] The files to be attached to the initial dispute submission.
58
+ #
59
+ # @param visa [Increase::Models::CardDisputeCreateParams::Visa] The Visa-specific parameters for the dispute. Required if and only if `network`
60
+ #
61
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
62
+
63
+ # The network of the disputed transaction. Details specific to the network are
64
+ # required under the sub-object with the same identifier as the network.
65
+ module Network
66
+ extend Increase::Internal::Type::Enum
67
+
68
+ # Visa
69
+ VISA = :visa
70
+
71
+ # @!method self.values
72
+ # @return [Array<Symbol>]
73
+ end
74
+
75
+ class AttachmentFile < Increase::Internal::Type::BaseModel
76
+ # @!attribute file_id
77
+ # The ID of the file to be attached. The file must have a `purpose` of
78
+ # `card_dispute_attachment`.
79
+ #
80
+ # @return [String]
81
+ required :file_id, String
82
+
83
+ # @!method initialize(file_id:)
84
+ # Some parameter documentations has been truncated, see
85
+ # {Increase::Models::CardDisputeCreateParams::AttachmentFile} for more details.
86
+ #
87
+ # @param file_id [String] The ID of the file to be attached. The file must have a `purpose` of `card_dispu
88
+ end
89
+
90
+ class Visa < Increase::Internal::Type::BaseModel
91
+ # @!attribute category
92
+ # Category.
93
+ #
94
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::Category]
95
+ required :category, enum: -> { Increase::CardDisputeCreateParams::Visa::Category }
96
+
97
+ # @!attribute authorization
98
+ # Authorization. Required if and only if `category` is `authorization`.
99
+ #
100
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::Authorization, nil]
101
+ optional :authorization, -> { Increase::CardDisputeCreateParams::Visa::Authorization }
102
+
103
+ # @!attribute consumer_canceled_merchandise
104
+ # Canceled merchandise. Required if and only if `category` is
105
+ # `consumer_canceled_merchandise`.
106
+ #
107
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise, nil]
108
+ optional :consumer_canceled_merchandise,
109
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise }
110
+
111
+ # @!attribute consumer_canceled_recurring_transaction
112
+ # Canceled recurring transaction. Required if and only if `category` is
113
+ # `consumer_canceled_recurring_transaction`.
114
+ #
115
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledRecurringTransaction, nil]
116
+ optional :consumer_canceled_recurring_transaction,
117
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerCanceledRecurringTransaction }
118
+
119
+ # @!attribute consumer_canceled_services
120
+ # Canceled services. Required if and only if `category` is
121
+ # `consumer_canceled_services`.
122
+ #
123
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledServices, nil]
124
+ optional :consumer_canceled_services,
125
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerCanceledServices }
126
+
127
+ # @!attribute consumer_counterfeit_merchandise
128
+ # Counterfeit merchandise. Required if and only if `category` is
129
+ # `consumer_counterfeit_merchandise`.
130
+ #
131
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCounterfeitMerchandise, nil]
132
+ optional :consumer_counterfeit_merchandise,
133
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerCounterfeitMerchandise }
134
+
135
+ # @!attribute consumer_credit_not_processed
136
+ # Credit not processed. Required if and only if `category` is
137
+ # `consumer_credit_not_processed`.
138
+ #
139
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCreditNotProcessed, nil]
140
+ optional :consumer_credit_not_processed,
141
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerCreditNotProcessed }
142
+
143
+ # @!attribute consumer_damaged_or_defective_merchandise
144
+ # Damaged or defective merchandise. Required if and only if `category` is
145
+ # `consumer_damaged_or_defective_merchandise`.
146
+ #
147
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise, nil]
148
+ optional :consumer_damaged_or_defective_merchandise,
149
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise }
150
+
151
+ # @!attribute consumer_merchandise_misrepresentation
152
+ # Merchandise misrepresentation. Required if and only if `category` is
153
+ # `consumer_merchandise_misrepresentation`.
154
+ #
155
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation, nil]
156
+ optional :consumer_merchandise_misrepresentation,
157
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation }
158
+
159
+ # @!attribute consumer_merchandise_not_as_described
160
+ # Merchandise not as described. Required if and only if `category` is
161
+ # `consumer_merchandise_not_as_described`.
162
+ #
163
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed, nil]
164
+ optional :consumer_merchandise_not_as_described,
165
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed }
166
+
167
+ # @!attribute consumer_merchandise_not_received
168
+ # Merchandise not received. Required if and only if `category` is
169
+ # `consumer_merchandise_not_received`.
170
+ #
171
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived, nil]
172
+ optional :consumer_merchandise_not_received,
173
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived }
174
+
175
+ # @!attribute consumer_non_receipt_of_cash
176
+ # Non-receipt of cash. Required if and only if `category` is
177
+ # `consumer_non_receipt_of_cash`.
178
+ #
179
+ # @return [Object, nil]
180
+ optional :consumer_non_receipt_of_cash, Increase::Internal::Type::Unknown
181
+
182
+ # @!attribute consumer_original_credit_transaction_not_accepted
183
+ # Original Credit Transaction (OCT) not accepted. Required if and only if
184
+ # `category` is `consumer_original_credit_transaction_not_accepted`.
185
+ #
186
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerOriginalCreditTransactionNotAccepted, nil]
187
+ optional :consumer_original_credit_transaction_not_accepted,
188
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerOriginalCreditTransactionNotAccepted }
189
+
190
+ # @!attribute consumer_quality_merchandise
191
+ # Merchandise quality issue. Required if and only if `category` is
192
+ # `consumer_quality_merchandise`.
193
+ #
194
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise, nil]
195
+ optional :consumer_quality_merchandise,
196
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise }
197
+
198
+ # @!attribute consumer_quality_services
199
+ # Services quality issue. Required if and only if `category` is
200
+ # `consumer_quality_services`.
201
+ #
202
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices, nil]
203
+ optional :consumer_quality_services,
204
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerQualityServices }
205
+
206
+ # @!attribute consumer_services_misrepresentation
207
+ # Services misrepresentation. Required if and only if `category` is
208
+ # `consumer_services_misrepresentation`.
209
+ #
210
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesMisrepresentation, nil]
211
+ optional :consumer_services_misrepresentation,
212
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerServicesMisrepresentation }
213
+
214
+ # @!attribute consumer_services_not_as_described
215
+ # Services not as described. Required if and only if `category` is
216
+ # `consumer_services_not_as_described`.
217
+ #
218
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotAsDescribed, nil]
219
+ optional :consumer_services_not_as_described,
220
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerServicesNotAsDescribed }
221
+
222
+ # @!attribute consumer_services_not_received
223
+ # Services not received. Required if and only if `category` is
224
+ # `consumer_services_not_received`.
225
+ #
226
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotReceived, nil]
227
+ optional :consumer_services_not_received,
228
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerServicesNotReceived }
229
+
230
+ # @!attribute fraud
231
+ # Fraud. Required if and only if `category` is `fraud`.
232
+ #
233
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::Fraud, nil]
234
+ optional :fraud, -> { Increase::CardDisputeCreateParams::Visa::Fraud }
235
+
236
+ # @!attribute processing_error
237
+ # Processing error. Required if and only if `category` is `processing_error`.
238
+ #
239
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ProcessingError, nil]
240
+ optional :processing_error, -> { Increase::CardDisputeCreateParams::Visa::ProcessingError }
241
+
242
+ # @!method initialize(category:, authorization: nil, consumer_canceled_merchandise: nil, consumer_canceled_recurring_transaction: nil, consumer_canceled_services: nil, consumer_counterfeit_merchandise: nil, consumer_credit_not_processed: nil, consumer_damaged_or_defective_merchandise: nil, consumer_merchandise_misrepresentation: nil, consumer_merchandise_not_as_described: nil, consumer_merchandise_not_received: nil, consumer_non_receipt_of_cash: nil, consumer_original_credit_transaction_not_accepted: nil, consumer_quality_merchandise: nil, consumer_quality_services: nil, consumer_services_misrepresentation: nil, consumer_services_not_as_described: nil, consumer_services_not_received: nil, fraud: nil, processing_error: nil)
243
+ # Some parameter documentations has been truncated, see
244
+ # {Increase::Models::CardDisputeCreateParams::Visa} for more details.
245
+ #
246
+ # The Visa-specific parameters for the dispute. Required if and only if `network`
247
+ # is `visa`.
248
+ #
249
+ # @param category [Symbol, Increase::Models::CardDisputeCreateParams::Visa::Category] Category.
250
+ #
251
+ # @param authorization [Increase::Models::CardDisputeCreateParams::Visa::Authorization] Authorization. Required if and only if `category` is `authorization`.
252
+ #
253
+ # @param consumer_canceled_merchandise [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise] Canceled merchandise. Required if and only if `category` is `consumer_canceled_m
254
+ #
255
+ # @param consumer_canceled_recurring_transaction [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledRecurringTransaction] Canceled recurring transaction. Required if and only if `category` is
256
+ # `consumer\_
257
+ #
258
+ # @param consumer_canceled_services [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledServices] Canceled services. Required if and only if `category` is `consumer_canceled_serv
259
+ #
260
+ # @param consumer_counterfeit_merchandise [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCounterfeitMerchandise] Counterfeit merchandise. Required if and only if `category` is `consumer_counter
261
+ #
262
+ # @param consumer_credit_not_processed [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCreditNotProcessed] Credit not processed. Required if and only if `category` is `consumer_credit_not
263
+ #
264
+ # @param consumer_damaged_or_defective_merchandise [Increase::Models::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise] Damaged or defective merchandise. Required if and only if `category` is `consume
265
+ #
266
+ # @param consumer_merchandise_misrepresentation [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation] Merchandise misrepresentation. Required if and only if `category` is `consumer_m
267
+ #
268
+ # @param consumer_merchandise_not_as_described [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed] Merchandise not as described. Required if and only if `category` is `consumer_me
269
+ #
270
+ # @param consumer_merchandise_not_received [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived] Merchandise not received. Required if and only if `category` is `consumer_mercha
271
+ #
272
+ # @param consumer_non_receipt_of_cash [Object] Non-receipt of cash. Required if and only if `category` is `consumer_non_receipt
273
+ #
274
+ # @param consumer_original_credit_transaction_not_accepted [Increase::Models::CardDisputeCreateParams::Visa::ConsumerOriginalCreditTransactionNotAccepted] Original Credit Transaction (OCT) not accepted. Required if and only if `categor
275
+ #
276
+ # @param consumer_quality_merchandise [Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise] Merchandise quality issue. Required if and only if `category` is `consumer_quali
277
+ #
278
+ # @param consumer_quality_services [Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices] Services quality issue. Required if and only if `category` is `consumer*quality*
279
+ #
280
+ # @param consumer_services_misrepresentation [Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesMisrepresentation] Services misrepresentation. Required if and only if `category` is `consumer_serv
281
+ #
282
+ # @param consumer_services_not_as_described [Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotAsDescribed] Services not as described. Required if and only if `category` is `consumer_servi
283
+ #
284
+ # @param consumer_services_not_received [Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotReceived] Services not received. Required if and only if `category` is `consumer*services*
285
+ #
286
+ # @param fraud [Increase::Models::CardDisputeCreateParams::Visa::Fraud] Fraud. Required if and only if `category` is `fraud`.
287
+ #
288
+ # @param processing_error [Increase::Models::CardDisputeCreateParams::Visa::ProcessingError] Processing error. Required if and only if `category` is `processing_error`.
289
+
290
+ # Category.
291
+ #
292
+ # @see Increase::Models::CardDisputeCreateParams::Visa#category
293
+ module Category
294
+ extend Increase::Internal::Type::Enum
295
+
296
+ # Authorization.
297
+ AUTHORIZATION = :authorization
298
+
299
+ # Consumer: canceled merchandise.
300
+ CONSUMER_CANCELED_MERCHANDISE = :consumer_canceled_merchandise
301
+
302
+ # Consumer: canceled recurring transaction.
303
+ CONSUMER_CANCELED_RECURRING_TRANSACTION = :consumer_canceled_recurring_transaction
304
+
305
+ # Consumer: canceled services.
306
+ CONSUMER_CANCELED_SERVICES = :consumer_canceled_services
307
+
308
+ # Consumer: counterfeit merchandise.
309
+ CONSUMER_COUNTERFEIT_MERCHANDISE = :consumer_counterfeit_merchandise
310
+
311
+ # Consumer: credit not processed.
312
+ CONSUMER_CREDIT_NOT_PROCESSED = :consumer_credit_not_processed
313
+
314
+ # Consumer: damaged or defective merchandise.
315
+ CONSUMER_DAMAGED_OR_DEFECTIVE_MERCHANDISE = :consumer_damaged_or_defective_merchandise
316
+
317
+ # Consumer: merchandise misrepresentation.
318
+ CONSUMER_MERCHANDISE_MISREPRESENTATION = :consumer_merchandise_misrepresentation
319
+
320
+ # Consumer: merchandise not as described.
321
+ CONSUMER_MERCHANDISE_NOT_AS_DESCRIBED = :consumer_merchandise_not_as_described
322
+
323
+ # Consumer: merchandise not received.
324
+ CONSUMER_MERCHANDISE_NOT_RECEIVED = :consumer_merchandise_not_received
325
+
326
+ # Consumer: non-receipt of cash.
327
+ CONSUMER_NON_RECEIPT_OF_CASH = :consumer_non_receipt_of_cash
328
+
329
+ # Consumer: Original Credit Transaction (OCT) not accepted.
330
+ CONSUMER_ORIGINAL_CREDIT_TRANSACTION_NOT_ACCEPTED = :consumer_original_credit_transaction_not_accepted
331
+
332
+ # Consumer: merchandise quality issue.
333
+ CONSUMER_QUALITY_MERCHANDISE = :consumer_quality_merchandise
334
+
335
+ # Consumer: services quality issue.
336
+ CONSUMER_QUALITY_SERVICES = :consumer_quality_services
337
+
338
+ # Consumer: services misrepresentation.
339
+ CONSUMER_SERVICES_MISREPRESENTATION = :consumer_services_misrepresentation
340
+
341
+ # Consumer: services not as described.
342
+ CONSUMER_SERVICES_NOT_AS_DESCRIBED = :consumer_services_not_as_described
343
+
344
+ # Consumer: services not received.
345
+ CONSUMER_SERVICES_NOT_RECEIVED = :consumer_services_not_received
346
+
347
+ # Fraud.
348
+ FRAUD = :fraud
349
+
350
+ # Processing error.
351
+ PROCESSING_ERROR = :processing_error
352
+
353
+ # @!method self.values
354
+ # @return [Array<Symbol>]
355
+ end
356
+
357
+ # @see Increase::Models::CardDisputeCreateParams::Visa#authorization
358
+ class Authorization < Increase::Internal::Type::BaseModel
359
+ # @!attribute account_status
360
+ # Account status.
361
+ #
362
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::Authorization::AccountStatus]
363
+ required :account_status,
364
+ enum: -> { Increase::CardDisputeCreateParams::Visa::Authorization::AccountStatus }
365
+
366
+ # @!method initialize(account_status:)
367
+ # Authorization. Required if and only if `category` is `authorization`.
368
+ #
369
+ # @param account_status [Symbol, Increase::Models::CardDisputeCreateParams::Visa::Authorization::AccountStatus] Account status.
370
+
371
+ # Account status.
372
+ #
373
+ # @see Increase::Models::CardDisputeCreateParams::Visa::Authorization#account_status
374
+ module AccountStatus
375
+ extend Increase::Internal::Type::Enum
376
+
377
+ # Account closed.
378
+ ACCOUNT_CLOSED = :account_closed
379
+
380
+ # Credit problem.
381
+ CREDIT_PROBLEM = :credit_problem
382
+
383
+ # Fraud.
384
+ FRAUD = :fraud
385
+
386
+ # @!method self.values
387
+ # @return [Array<Symbol>]
388
+ end
389
+ end
390
+
391
+ # @see Increase::Models::CardDisputeCreateParams::Visa#consumer_canceled_merchandise
392
+ class ConsumerCanceledMerchandise < Increase::Internal::Type::BaseModel
393
+ # @!attribute merchant_resolution_attempted
394
+ # Merchant resolution attempted.
395
+ #
396
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::MerchantResolutionAttempted]
397
+ required :merchant_resolution_attempted,
398
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::MerchantResolutionAttempted }
399
+
400
+ # @!attribute purchase_explanation
401
+ # Purchase explanation.
402
+ #
403
+ # @return [String]
404
+ required :purchase_explanation, String
405
+
406
+ # @!attribute received_or_expected_at
407
+ # Received or expected at.
408
+ #
409
+ # @return [Date]
410
+ required :received_or_expected_at, Date
411
+
412
+ # @!attribute return_outcome
413
+ # Return outcome.
414
+ #
415
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::ReturnOutcome]
416
+ required :return_outcome,
417
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::ReturnOutcome }
418
+
419
+ # @!attribute cardholder_cancellation
420
+ # Cardholder cancellation.
421
+ #
422
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::CardholderCancellation, nil]
423
+ optional :cardholder_cancellation,
424
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::CardholderCancellation }
425
+
426
+ # @!attribute not_returned
427
+ # Not returned. Required if and only if `return_outcome` is `not_returned`.
428
+ #
429
+ # @return [Object, nil]
430
+ optional :not_returned, Increase::Internal::Type::Unknown
431
+
432
+ # @!attribute return_attempted
433
+ # Return attempted. Required if and only if `return_outcome` is
434
+ # `return_attempted`.
435
+ #
436
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::ReturnAttempted, nil]
437
+ optional :return_attempted,
438
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::ReturnAttempted }
439
+
440
+ # @!attribute returned
441
+ # Returned. Required if and only if `return_outcome` is `returned`.
442
+ #
443
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::Returned, nil]
444
+ optional :returned, -> { Increase::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::Returned }
445
+
446
+ # @!method initialize(merchant_resolution_attempted:, purchase_explanation:, received_or_expected_at:, return_outcome:, cardholder_cancellation: nil, not_returned: nil, return_attempted: nil, returned: nil)
447
+ # Some parameter documentations has been truncated, see
448
+ # {Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise}
449
+ # for more details.
450
+ #
451
+ # Canceled merchandise. Required if and only if `category` is
452
+ # `consumer_canceled_merchandise`.
453
+ #
454
+ # @param merchant_resolution_attempted [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::MerchantResolutionAttempted] Merchant resolution attempted.
455
+ #
456
+ # @param purchase_explanation [String] Purchase explanation.
457
+ #
458
+ # @param received_or_expected_at [Date] Received or expected at.
459
+ #
460
+ # @param return_outcome [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::ReturnOutcome] Return outcome.
461
+ #
462
+ # @param cardholder_cancellation [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::CardholderCancellation] Cardholder cancellation.
463
+ #
464
+ # @param not_returned [Object] Not returned. Required if and only if `return_outcome` is `not_returned`.
465
+ #
466
+ # @param return_attempted [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::ReturnAttempted] Return attempted. Required if and only if `return_outcome` is `return_attempted`
467
+ #
468
+ # @param returned [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::Returned] Returned. Required if and only if `return_outcome` is `returned`.
469
+
470
+ # Merchant resolution attempted.
471
+ #
472
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise#merchant_resolution_attempted
473
+ module MerchantResolutionAttempted
474
+ extend Increase::Internal::Type::Enum
475
+
476
+ # Attempted.
477
+ ATTEMPTED = :attempted
478
+
479
+ # Prohibited by local law.
480
+ PROHIBITED_BY_LOCAL_LAW = :prohibited_by_local_law
481
+
482
+ # @!method self.values
483
+ # @return [Array<Symbol>]
484
+ end
485
+
486
+ # Return outcome.
487
+ #
488
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise#return_outcome
489
+ module ReturnOutcome
490
+ extend Increase::Internal::Type::Enum
491
+
492
+ # Not returned.
493
+ NOT_RETURNED = :not_returned
494
+
495
+ # Returned.
496
+ RETURNED = :returned
497
+
498
+ # Return attempted.
499
+ RETURN_ATTEMPTED = :return_attempted
500
+
501
+ # @!method self.values
502
+ # @return [Array<Symbol>]
503
+ end
504
+
505
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise#cardholder_cancellation
506
+ class CardholderCancellation < Increase::Internal::Type::BaseModel
507
+ # @!attribute canceled_at
508
+ # Canceled at.
509
+ #
510
+ # @return [Date]
511
+ required :canceled_at, Date
512
+
513
+ # @!attribute canceled_prior_to_ship_date
514
+ # Canceled prior to ship date.
515
+ #
516
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::CardholderCancellation::CanceledPriorToShipDate]
517
+ required :canceled_prior_to_ship_date,
518
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::CardholderCancellation::CanceledPriorToShipDate }
519
+
520
+ # @!attribute cancellation_policy_provided
521
+ # Cancellation policy provided.
522
+ #
523
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::CardholderCancellation::CancellationPolicyProvided]
524
+ required :cancellation_policy_provided,
525
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::CardholderCancellation::CancellationPolicyProvided }
526
+
527
+ # @!attribute reason
528
+ # Reason.
529
+ #
530
+ # @return [String]
531
+ required :reason, String
532
+
533
+ # @!method initialize(canceled_at:, canceled_prior_to_ship_date:, cancellation_policy_provided:, reason:)
534
+ # Cardholder cancellation.
535
+ #
536
+ # @param canceled_at [Date] Canceled at.
537
+ #
538
+ # @param canceled_prior_to_ship_date [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::CardholderCancellation::CanceledPriorToShipDate] Canceled prior to ship date.
539
+ #
540
+ # @param cancellation_policy_provided [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::CardholderCancellation::CancellationPolicyProvided] Cancellation policy provided.
541
+ #
542
+ # @param reason [String] Reason.
543
+
544
+ # Canceled prior to ship date.
545
+ #
546
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::CardholderCancellation#canceled_prior_to_ship_date
547
+ module CanceledPriorToShipDate
548
+ extend Increase::Internal::Type::Enum
549
+
550
+ # Canceled prior to ship date.
551
+ CANCELED_PRIOR_TO_SHIP_DATE = :canceled_prior_to_ship_date
552
+
553
+ # Not canceled prior to ship date.
554
+ NOT_CANCELED_PRIOR_TO_SHIP_DATE = :not_canceled_prior_to_ship_date
555
+
556
+ # @!method self.values
557
+ # @return [Array<Symbol>]
558
+ end
559
+
560
+ # Cancellation policy provided.
561
+ #
562
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::CardholderCancellation#cancellation_policy_provided
563
+ module CancellationPolicyProvided
564
+ extend Increase::Internal::Type::Enum
565
+
566
+ # Not provided.
567
+ NOT_PROVIDED = :not_provided
568
+
569
+ # Provided.
570
+ PROVIDED = :provided
571
+
572
+ # @!method self.values
573
+ # @return [Array<Symbol>]
574
+ end
575
+ end
576
+
577
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise#return_attempted
578
+ class ReturnAttempted < Increase::Internal::Type::BaseModel
579
+ # @!attribute attempt_explanation
580
+ # Attempt explanation.
581
+ #
582
+ # @return [String]
583
+ required :attempt_explanation, String
584
+
585
+ # @!attribute attempt_reason
586
+ # Attempt reason.
587
+ #
588
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::ReturnAttempted::AttemptReason]
589
+ required :attempt_reason,
590
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::ReturnAttempted::AttemptReason }
591
+
592
+ # @!attribute attempted_at
593
+ # Attempted at.
594
+ #
595
+ # @return [Date]
596
+ required :attempted_at, Date
597
+
598
+ # @!attribute merchandise_disposition
599
+ # Merchandise disposition.
600
+ #
601
+ # @return [String]
602
+ required :merchandise_disposition, String
603
+
604
+ # @!method initialize(attempt_explanation:, attempt_reason:, attempted_at:, merchandise_disposition:)
605
+ # Return attempted. Required if and only if `return_outcome` is
606
+ # `return_attempted`.
607
+ #
608
+ # @param attempt_explanation [String] Attempt explanation.
609
+ #
610
+ # @param attempt_reason [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::ReturnAttempted::AttemptReason] Attempt reason.
611
+ #
612
+ # @param attempted_at [Date] Attempted at.
613
+ #
614
+ # @param merchandise_disposition [String] Merchandise disposition.
615
+
616
+ # Attempt reason.
617
+ #
618
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::ReturnAttempted#attempt_reason
619
+ module AttemptReason
620
+ extend Increase::Internal::Type::Enum
621
+
622
+ # Merchant not responding.
623
+ MERCHANT_NOT_RESPONDING = :merchant_not_responding
624
+
625
+ # No return authorization provided.
626
+ NO_RETURN_AUTHORIZATION_PROVIDED = :no_return_authorization_provided
627
+
628
+ # No return instructions.
629
+ NO_RETURN_INSTRUCTIONS = :no_return_instructions
630
+
631
+ # Requested not to return.
632
+ REQUESTED_NOT_TO_RETURN = :requested_not_to_return
633
+
634
+ # Return not accepted.
635
+ RETURN_NOT_ACCEPTED = :return_not_accepted
636
+
637
+ # @!method self.values
638
+ # @return [Array<Symbol>]
639
+ end
640
+ end
641
+
642
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise#returned
643
+ class Returned < Increase::Internal::Type::BaseModel
644
+ # @!attribute return_method
645
+ # Return method.
646
+ #
647
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::Returned::ReturnMethod]
648
+ required :return_method,
649
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::Returned::ReturnMethod }
650
+
651
+ # @!attribute returned_at
652
+ # Returned at.
653
+ #
654
+ # @return [Date]
655
+ required :returned_at, Date
656
+
657
+ # @!attribute merchant_received_return_at
658
+ # Merchant received return at.
659
+ #
660
+ # @return [Date, nil]
661
+ optional :merchant_received_return_at, Date
662
+
663
+ # @!attribute other_explanation
664
+ # Other explanation. Required if and only if the return method is `other`.
665
+ #
666
+ # @return [String, nil]
667
+ optional :other_explanation, String
668
+
669
+ # @!attribute tracking_number
670
+ # Tracking number.
671
+ #
672
+ # @return [String, nil]
673
+ optional :tracking_number, String
674
+
675
+ # @!method initialize(return_method:, returned_at:, merchant_received_return_at: nil, other_explanation: nil, tracking_number: nil)
676
+ # Returned. Required if and only if `return_outcome` is `returned`.
677
+ #
678
+ # @param return_method [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::Returned::ReturnMethod] Return method.
679
+ #
680
+ # @param returned_at [Date] Returned at.
681
+ #
682
+ # @param merchant_received_return_at [Date] Merchant received return at.
683
+ #
684
+ # @param other_explanation [String] Other explanation. Required if and only if the return method is `other`.
685
+ #
686
+ # @param tracking_number [String] Tracking number.
687
+
688
+ # Return method.
689
+ #
690
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledMerchandise::Returned#return_method
691
+ module ReturnMethod
692
+ extend Increase::Internal::Type::Enum
693
+
694
+ # DHL.
695
+ DHL = :dhl
696
+
697
+ # Face-to-face.
698
+ FACE_TO_FACE = :face_to_face
699
+
700
+ # FedEx.
701
+ FEDEX = :fedex
702
+
703
+ # Other.
704
+ OTHER = :other
705
+
706
+ # Postal service.
707
+ POSTAL_SERVICE = :postal_service
708
+
709
+ # UPS.
710
+ UPS = :ups
711
+
712
+ # @!method self.values
713
+ # @return [Array<Symbol>]
714
+ end
715
+ end
716
+ end
717
+
718
+ # @see Increase::Models::CardDisputeCreateParams::Visa#consumer_canceled_recurring_transaction
719
+ class ConsumerCanceledRecurringTransaction < Increase::Internal::Type::BaseModel
720
+ # @!attribute cancellation_target
721
+ # Cancellation target.
722
+ #
723
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledRecurringTransaction::CancellationTarget]
724
+ required :cancellation_target,
725
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerCanceledRecurringTransaction::CancellationTarget }
726
+
727
+ # @!attribute merchant_contact_methods
728
+ # Merchant contact methods.
729
+ #
730
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledRecurringTransaction::MerchantContactMethods]
731
+ required :merchant_contact_methods,
732
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerCanceledRecurringTransaction::MerchantContactMethods }
733
+
734
+ # @!attribute transaction_or_account_canceled_at
735
+ # Transaction or account canceled at.
736
+ #
737
+ # @return [Date]
738
+ required :transaction_or_account_canceled_at, Date
739
+
740
+ # @!attribute other_form_of_payment_explanation
741
+ # Other form of payment explanation.
742
+ #
743
+ # @return [String, nil]
744
+ optional :other_form_of_payment_explanation, String
745
+
746
+ # @!method initialize(cancellation_target:, merchant_contact_methods:, transaction_or_account_canceled_at:, other_form_of_payment_explanation: nil)
747
+ # Canceled recurring transaction. Required if and only if `category` is
748
+ # `consumer_canceled_recurring_transaction`.
749
+ #
750
+ # @param cancellation_target [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledRecurringTransaction::CancellationTarget] Cancellation target.
751
+ #
752
+ # @param merchant_contact_methods [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledRecurringTransaction::MerchantContactMethods] Merchant contact methods.
753
+ #
754
+ # @param transaction_or_account_canceled_at [Date] Transaction or account canceled at.
755
+ #
756
+ # @param other_form_of_payment_explanation [String] Other form of payment explanation.
757
+
758
+ # Cancellation target.
759
+ #
760
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledRecurringTransaction#cancellation_target
761
+ module CancellationTarget
762
+ extend Increase::Internal::Type::Enum
763
+
764
+ # Account.
765
+ ACCOUNT = :account
766
+
767
+ # Transaction.
768
+ TRANSACTION = :transaction
769
+
770
+ # @!method self.values
771
+ # @return [Array<Symbol>]
772
+ end
773
+
774
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledRecurringTransaction#merchant_contact_methods
775
+ class MerchantContactMethods < Increase::Internal::Type::BaseModel
776
+ # @!attribute application_name
777
+ # Application name.
778
+ #
779
+ # @return [String, nil]
780
+ optional :application_name, String
781
+
782
+ # @!attribute call_center_phone_number
783
+ # Call center phone number.
784
+ #
785
+ # @return [String, nil]
786
+ optional :call_center_phone_number, String
787
+
788
+ # @!attribute email_address
789
+ # Email address.
790
+ #
791
+ # @return [String, nil]
792
+ optional :email_address, String
793
+
794
+ # @!attribute in_person_address
795
+ # In person address.
796
+ #
797
+ # @return [String, nil]
798
+ optional :in_person_address, String
799
+
800
+ # @!attribute mailing_address
801
+ # Mailing address.
802
+ #
803
+ # @return [String, nil]
804
+ optional :mailing_address, String
805
+
806
+ # @!attribute text_phone_number
807
+ # Text phone number.
808
+ #
809
+ # @return [String, nil]
810
+ optional :text_phone_number, String
811
+
812
+ # @!method initialize(application_name: nil, call_center_phone_number: nil, email_address: nil, in_person_address: nil, mailing_address: nil, text_phone_number: nil)
813
+ # Merchant contact methods.
814
+ #
815
+ # @param application_name [String] Application name.
816
+ #
817
+ # @param call_center_phone_number [String] Call center phone number.
818
+ #
819
+ # @param email_address [String] Email address.
820
+ #
821
+ # @param in_person_address [String] In person address.
822
+ #
823
+ # @param mailing_address [String] Mailing address.
824
+ #
825
+ # @param text_phone_number [String] Text phone number.
826
+ end
827
+ end
828
+
829
+ # @see Increase::Models::CardDisputeCreateParams::Visa#consumer_canceled_services
830
+ class ConsumerCanceledServices < Increase::Internal::Type::BaseModel
831
+ # @!attribute cardholder_cancellation
832
+ # Cardholder cancellation.
833
+ #
834
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledServices::CardholderCancellation]
835
+ required :cardholder_cancellation,
836
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerCanceledServices::CardholderCancellation }
837
+
838
+ # @!attribute contracted_at
839
+ # Contracted at.
840
+ #
841
+ # @return [Date]
842
+ required :contracted_at, Date
843
+
844
+ # @!attribute merchant_resolution_attempted
845
+ # Merchant resolution attempted.
846
+ #
847
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledServices::MerchantResolutionAttempted]
848
+ required :merchant_resolution_attempted,
849
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerCanceledServices::MerchantResolutionAttempted }
850
+
851
+ # @!attribute purchase_explanation
852
+ # Purchase explanation.
853
+ #
854
+ # @return [String]
855
+ required :purchase_explanation, String
856
+
857
+ # @!attribute service_type
858
+ # Service type.
859
+ #
860
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledServices::ServiceType]
861
+ required :service_type,
862
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerCanceledServices::ServiceType }
863
+
864
+ # @!attribute guaranteed_reservation
865
+ # Guaranteed reservation explanation. Required if and only if `service_type` is
866
+ # `guaranteed_reservation`.
867
+ #
868
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledServices::GuaranteedReservation, nil]
869
+ optional :guaranteed_reservation,
870
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerCanceledServices::GuaranteedReservation }
871
+
872
+ # @!attribute other
873
+ # Other service type explanation. Required if and only if `service_type` is
874
+ # `other`.
875
+ #
876
+ # @return [Object, nil]
877
+ optional :other, Increase::Internal::Type::Unknown
878
+
879
+ # @!attribute timeshare
880
+ # Timeshare explanation. Required if and only if `service_type` is `timeshare`.
881
+ #
882
+ # @return [Object, nil]
883
+ optional :timeshare, Increase::Internal::Type::Unknown
884
+
885
+ # @!method initialize(cardholder_cancellation:, contracted_at:, merchant_resolution_attempted:, purchase_explanation:, service_type:, guaranteed_reservation: nil, other: nil, timeshare: nil)
886
+ # Some parameter documentations has been truncated, see
887
+ # {Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledServices} for
888
+ # more details.
889
+ #
890
+ # Canceled services. Required if and only if `category` is
891
+ # `consumer_canceled_services`.
892
+ #
893
+ # @param cardholder_cancellation [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledServices::CardholderCancellation] Cardholder cancellation.
894
+ #
895
+ # @param contracted_at [Date] Contracted at.
896
+ #
897
+ # @param merchant_resolution_attempted [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledServices::MerchantResolutionAttempted] Merchant resolution attempted.
898
+ #
899
+ # @param purchase_explanation [String] Purchase explanation.
900
+ #
901
+ # @param service_type [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledServices::ServiceType] Service type.
902
+ #
903
+ # @param guaranteed_reservation [Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledServices::GuaranteedReservation] Guaranteed reservation explanation. Required if and only if `service_type` is `g
904
+ #
905
+ # @param other [Object] Other service type explanation. Required if and only if `service_type` is `other
906
+ #
907
+ # @param timeshare [Object] Timeshare explanation. Required if and only if `service_type` is `timeshare`.
908
+
909
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledServices#cardholder_cancellation
910
+ class CardholderCancellation < Increase::Internal::Type::BaseModel
911
+ # @!attribute canceled_at
912
+ # Canceled at.
913
+ #
914
+ # @return [Date]
915
+ required :canceled_at, Date
916
+
917
+ # @!attribute cancellation_policy_provided
918
+ # Cancellation policy provided.
919
+ #
920
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledServices::CardholderCancellation::CancellationPolicyProvided]
921
+ required :cancellation_policy_provided,
922
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerCanceledServices::CardholderCancellation::CancellationPolicyProvided }
923
+
924
+ # @!attribute reason
925
+ # Reason.
926
+ #
927
+ # @return [String]
928
+ required :reason, String
929
+
930
+ # @!method initialize(canceled_at:, cancellation_policy_provided:, reason:)
931
+ # Cardholder cancellation.
932
+ #
933
+ # @param canceled_at [Date] Canceled at.
934
+ #
935
+ # @param cancellation_policy_provided [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledServices::CardholderCancellation::CancellationPolicyProvided] Cancellation policy provided.
936
+ #
937
+ # @param reason [String] Reason.
938
+
939
+ # Cancellation policy provided.
940
+ #
941
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledServices::CardholderCancellation#cancellation_policy_provided
942
+ module CancellationPolicyProvided
943
+ extend Increase::Internal::Type::Enum
944
+
945
+ # Not provided.
946
+ NOT_PROVIDED = :not_provided
947
+
948
+ # Provided.
949
+ PROVIDED = :provided
950
+
951
+ # @!method self.values
952
+ # @return [Array<Symbol>]
953
+ end
954
+ end
955
+
956
+ # Merchant resolution attempted.
957
+ #
958
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledServices#merchant_resolution_attempted
959
+ module MerchantResolutionAttempted
960
+ extend Increase::Internal::Type::Enum
961
+
962
+ # Attempted.
963
+ ATTEMPTED = :attempted
964
+
965
+ # Prohibited by local law.
966
+ PROHIBITED_BY_LOCAL_LAW = :prohibited_by_local_law
967
+
968
+ # @!method self.values
969
+ # @return [Array<Symbol>]
970
+ end
971
+
972
+ # Service type.
973
+ #
974
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledServices#service_type
975
+ module ServiceType
976
+ extend Increase::Internal::Type::Enum
977
+
978
+ # Guaranteed reservation.
979
+ GUARANTEED_RESERVATION = :guaranteed_reservation
980
+
981
+ # Other.
982
+ OTHER = :other
983
+
984
+ # Timeshare.
985
+ TIMESHARE = :timeshare
986
+
987
+ # @!method self.values
988
+ # @return [Array<Symbol>]
989
+ end
990
+
991
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledServices#guaranteed_reservation
992
+ class GuaranteedReservation < Increase::Internal::Type::BaseModel
993
+ # @!attribute explanation
994
+ # Explanation.
995
+ #
996
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledServices::GuaranteedReservation::Explanation]
997
+ required :explanation,
998
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerCanceledServices::GuaranteedReservation::Explanation }
999
+
1000
+ # @!method initialize(explanation:)
1001
+ # Guaranteed reservation explanation. Required if and only if `service_type` is
1002
+ # `guaranteed_reservation`.
1003
+ #
1004
+ # @param explanation [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledServices::GuaranteedReservation::Explanation] Explanation.
1005
+
1006
+ # Explanation.
1007
+ #
1008
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerCanceledServices::GuaranteedReservation#explanation
1009
+ module Explanation
1010
+ extend Increase::Internal::Type::Enum
1011
+
1012
+ # Cardholder canceled prior to service.
1013
+ CARDHOLDER_CANCELED_PRIOR_TO_SERVICE = :cardholder_canceled_prior_to_service
1014
+
1015
+ # Cardholder cancellation attempt within 24 hours of confirmation.
1016
+ CARDHOLDER_CANCELLATION_ATTEMPT_WITHIN_24_HOURS_OF_CONFIRMATION =
1017
+ :cardholder_cancellation_attempt_within_24_hours_of_confirmation
1018
+
1019
+ # Merchant billed for no-show.
1020
+ MERCHANT_BILLED_NO_SHOW = :merchant_billed_no_show
1021
+
1022
+ # @!method self.values
1023
+ # @return [Array<Symbol>]
1024
+ end
1025
+ end
1026
+ end
1027
+
1028
+ # @see Increase::Models::CardDisputeCreateParams::Visa#consumer_counterfeit_merchandise
1029
+ class ConsumerCounterfeitMerchandise < Increase::Internal::Type::BaseModel
1030
+ # @!attribute counterfeit_explanation
1031
+ # Counterfeit explanation.
1032
+ #
1033
+ # @return [String]
1034
+ required :counterfeit_explanation, String
1035
+
1036
+ # @!attribute disposition_explanation
1037
+ # Disposition explanation.
1038
+ #
1039
+ # @return [String]
1040
+ required :disposition_explanation, String
1041
+
1042
+ # @!attribute order_explanation
1043
+ # Order explanation.
1044
+ #
1045
+ # @return [String]
1046
+ required :order_explanation, String
1047
+
1048
+ # @!attribute received_at
1049
+ # Received at.
1050
+ #
1051
+ # @return [Date]
1052
+ required :received_at, Date
1053
+
1054
+ # @!method initialize(counterfeit_explanation:, disposition_explanation:, order_explanation:, received_at:)
1055
+ # Counterfeit merchandise. Required if and only if `category` is
1056
+ # `consumer_counterfeit_merchandise`.
1057
+ #
1058
+ # @param counterfeit_explanation [String] Counterfeit explanation.
1059
+ #
1060
+ # @param disposition_explanation [String] Disposition explanation.
1061
+ #
1062
+ # @param order_explanation [String] Order explanation.
1063
+ #
1064
+ # @param received_at [Date] Received at.
1065
+ end
1066
+
1067
+ # @see Increase::Models::CardDisputeCreateParams::Visa#consumer_credit_not_processed
1068
+ class ConsumerCreditNotProcessed < Increase::Internal::Type::BaseModel
1069
+ # @!attribute canceled_or_returned_at
1070
+ # Canceled or returned at.
1071
+ #
1072
+ # @return [Date, nil]
1073
+ optional :canceled_or_returned_at, Date
1074
+
1075
+ # @!attribute credit_expected_at
1076
+ # Credit expected at.
1077
+ #
1078
+ # @return [Date, nil]
1079
+ optional :credit_expected_at, Date
1080
+
1081
+ # @!method initialize(canceled_or_returned_at: nil, credit_expected_at: nil)
1082
+ # Credit not processed. Required if and only if `category` is
1083
+ # `consumer_credit_not_processed`.
1084
+ #
1085
+ # @param canceled_or_returned_at [Date] Canceled or returned at.
1086
+ #
1087
+ # @param credit_expected_at [Date] Credit expected at.
1088
+ end
1089
+
1090
+ # @see Increase::Models::CardDisputeCreateParams::Visa#consumer_damaged_or_defective_merchandise
1091
+ class ConsumerDamagedOrDefectiveMerchandise < Increase::Internal::Type::BaseModel
1092
+ # @!attribute merchant_resolution_attempted
1093
+ # Merchant resolution attempted.
1094
+ #
1095
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise::MerchantResolutionAttempted]
1096
+ required :merchant_resolution_attempted,
1097
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise::MerchantResolutionAttempted }
1098
+
1099
+ # @!attribute order_and_issue_explanation
1100
+ # Order and issue explanation.
1101
+ #
1102
+ # @return [String]
1103
+ required :order_and_issue_explanation, String
1104
+
1105
+ # @!attribute received_at
1106
+ # Received at.
1107
+ #
1108
+ # @return [Date]
1109
+ required :received_at, Date
1110
+
1111
+ # @!attribute return_outcome
1112
+ # Return outcome.
1113
+ #
1114
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise::ReturnOutcome]
1115
+ required :return_outcome,
1116
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise::ReturnOutcome }
1117
+
1118
+ # @!attribute not_returned
1119
+ # Not returned. Required if and only if `return_outcome` is `not_returned`.
1120
+ #
1121
+ # @return [Object, nil]
1122
+ optional :not_returned, Increase::Internal::Type::Unknown
1123
+
1124
+ # @!attribute return_attempted
1125
+ # Return attempted. Required if and only if `return_outcome` is
1126
+ # `return_attempted`.
1127
+ #
1128
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise::ReturnAttempted, nil]
1129
+ optional :return_attempted,
1130
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise::ReturnAttempted }
1131
+
1132
+ # @!attribute returned
1133
+ # Returned. Required if and only if `return_outcome` is `returned`.
1134
+ #
1135
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise::Returned, nil]
1136
+ optional :returned,
1137
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise::Returned }
1138
+
1139
+ # @!method initialize(merchant_resolution_attempted:, order_and_issue_explanation:, received_at:, return_outcome:, not_returned: nil, return_attempted: nil, returned: nil)
1140
+ # Some parameter documentations has been truncated, see
1141
+ # {Increase::Models::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise}
1142
+ # for more details.
1143
+ #
1144
+ # Damaged or defective merchandise. Required if and only if `category` is
1145
+ # `consumer_damaged_or_defective_merchandise`.
1146
+ #
1147
+ # @param merchant_resolution_attempted [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise::MerchantResolutionAttempted] Merchant resolution attempted.
1148
+ #
1149
+ # @param order_and_issue_explanation [String] Order and issue explanation.
1150
+ #
1151
+ # @param received_at [Date] Received at.
1152
+ #
1153
+ # @param return_outcome [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise::ReturnOutcome] Return outcome.
1154
+ #
1155
+ # @param not_returned [Object] Not returned. Required if and only if `return_outcome` is `not_returned`.
1156
+ #
1157
+ # @param return_attempted [Increase::Models::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise::ReturnAttempted] Return attempted. Required if and only if `return_outcome` is `return_attempted`
1158
+ #
1159
+ # @param returned [Increase::Models::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise::Returned] Returned. Required if and only if `return_outcome` is `returned`.
1160
+
1161
+ # Merchant resolution attempted.
1162
+ #
1163
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise#merchant_resolution_attempted
1164
+ module MerchantResolutionAttempted
1165
+ extend Increase::Internal::Type::Enum
1166
+
1167
+ # Attempted.
1168
+ ATTEMPTED = :attempted
1169
+
1170
+ # Prohibited by local law.
1171
+ PROHIBITED_BY_LOCAL_LAW = :prohibited_by_local_law
1172
+
1173
+ # @!method self.values
1174
+ # @return [Array<Symbol>]
1175
+ end
1176
+
1177
+ # Return outcome.
1178
+ #
1179
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise#return_outcome
1180
+ module ReturnOutcome
1181
+ extend Increase::Internal::Type::Enum
1182
+
1183
+ # Not returned.
1184
+ NOT_RETURNED = :not_returned
1185
+
1186
+ # Returned.
1187
+ RETURNED = :returned
1188
+
1189
+ # Return attempted.
1190
+ RETURN_ATTEMPTED = :return_attempted
1191
+
1192
+ # @!method self.values
1193
+ # @return [Array<Symbol>]
1194
+ end
1195
+
1196
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise#return_attempted
1197
+ class ReturnAttempted < Increase::Internal::Type::BaseModel
1198
+ # @!attribute attempt_explanation
1199
+ # Attempt explanation.
1200
+ #
1201
+ # @return [String]
1202
+ required :attempt_explanation, String
1203
+
1204
+ # @!attribute attempt_reason
1205
+ # Attempt reason.
1206
+ #
1207
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise::ReturnAttempted::AttemptReason]
1208
+ required :attempt_reason,
1209
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise::ReturnAttempted::AttemptReason }
1210
+
1211
+ # @!attribute attempted_at
1212
+ # Attempted at.
1213
+ #
1214
+ # @return [Date]
1215
+ required :attempted_at, Date
1216
+
1217
+ # @!attribute merchandise_disposition
1218
+ # Merchandise disposition.
1219
+ #
1220
+ # @return [String]
1221
+ required :merchandise_disposition, String
1222
+
1223
+ # @!method initialize(attempt_explanation:, attempt_reason:, attempted_at:, merchandise_disposition:)
1224
+ # Return attempted. Required if and only if `return_outcome` is
1225
+ # `return_attempted`.
1226
+ #
1227
+ # @param attempt_explanation [String] Attempt explanation.
1228
+ #
1229
+ # @param attempt_reason [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise::ReturnAttempted::AttemptReason] Attempt reason.
1230
+ #
1231
+ # @param attempted_at [Date] Attempted at.
1232
+ #
1233
+ # @param merchandise_disposition [String] Merchandise disposition.
1234
+
1235
+ # Attempt reason.
1236
+ #
1237
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise::ReturnAttempted#attempt_reason
1238
+ module AttemptReason
1239
+ extend Increase::Internal::Type::Enum
1240
+
1241
+ # Merchant not responding.
1242
+ MERCHANT_NOT_RESPONDING = :merchant_not_responding
1243
+
1244
+ # No return authorization provided.
1245
+ NO_RETURN_AUTHORIZATION_PROVIDED = :no_return_authorization_provided
1246
+
1247
+ # No return instructions.
1248
+ NO_RETURN_INSTRUCTIONS = :no_return_instructions
1249
+
1250
+ # Requested not to return.
1251
+ REQUESTED_NOT_TO_RETURN = :requested_not_to_return
1252
+
1253
+ # Return not accepted.
1254
+ RETURN_NOT_ACCEPTED = :return_not_accepted
1255
+
1256
+ # @!method self.values
1257
+ # @return [Array<Symbol>]
1258
+ end
1259
+ end
1260
+
1261
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise#returned
1262
+ class Returned < Increase::Internal::Type::BaseModel
1263
+ # @!attribute return_method
1264
+ # Return method.
1265
+ #
1266
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise::Returned::ReturnMethod]
1267
+ required :return_method,
1268
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise::Returned::ReturnMethod }
1269
+
1270
+ # @!attribute returned_at
1271
+ # Returned at.
1272
+ #
1273
+ # @return [Date]
1274
+ required :returned_at, Date
1275
+
1276
+ # @!attribute merchant_received_return_at
1277
+ # Merchant received return at.
1278
+ #
1279
+ # @return [Date, nil]
1280
+ optional :merchant_received_return_at, Date
1281
+
1282
+ # @!attribute other_explanation
1283
+ # Other explanation. Required if and only if the return method is `other`.
1284
+ #
1285
+ # @return [String, nil]
1286
+ optional :other_explanation, String
1287
+
1288
+ # @!attribute tracking_number
1289
+ # Tracking number.
1290
+ #
1291
+ # @return [String, nil]
1292
+ optional :tracking_number, String
1293
+
1294
+ # @!method initialize(return_method:, returned_at:, merchant_received_return_at: nil, other_explanation: nil, tracking_number: nil)
1295
+ # Returned. Required if and only if `return_outcome` is `returned`.
1296
+ #
1297
+ # @param return_method [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise::Returned::ReturnMethod] Return method.
1298
+ #
1299
+ # @param returned_at [Date] Returned at.
1300
+ #
1301
+ # @param merchant_received_return_at [Date] Merchant received return at.
1302
+ #
1303
+ # @param other_explanation [String] Other explanation. Required if and only if the return method is `other`.
1304
+ #
1305
+ # @param tracking_number [String] Tracking number.
1306
+
1307
+ # Return method.
1308
+ #
1309
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerDamagedOrDefectiveMerchandise::Returned#return_method
1310
+ module ReturnMethod
1311
+ extend Increase::Internal::Type::Enum
1312
+
1313
+ # DHL.
1314
+ DHL = :dhl
1315
+
1316
+ # Face-to-face.
1317
+ FACE_TO_FACE = :face_to_face
1318
+
1319
+ # FedEx.
1320
+ FEDEX = :fedex
1321
+
1322
+ # Other.
1323
+ OTHER = :other
1324
+
1325
+ # Postal service.
1326
+ POSTAL_SERVICE = :postal_service
1327
+
1328
+ # UPS.
1329
+ UPS = :ups
1330
+
1331
+ # @!method self.values
1332
+ # @return [Array<Symbol>]
1333
+ end
1334
+ end
1335
+ end
1336
+
1337
+ # @see Increase::Models::CardDisputeCreateParams::Visa#consumer_merchandise_misrepresentation
1338
+ class ConsumerMerchandiseMisrepresentation < Increase::Internal::Type::BaseModel
1339
+ # @!attribute merchant_resolution_attempted
1340
+ # Merchant resolution attempted.
1341
+ #
1342
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation::MerchantResolutionAttempted]
1343
+ required :merchant_resolution_attempted,
1344
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation::MerchantResolutionAttempted }
1345
+
1346
+ # @!attribute misrepresentation_explanation
1347
+ # Misrepresentation explanation.
1348
+ #
1349
+ # @return [String]
1350
+ required :misrepresentation_explanation, String
1351
+
1352
+ # @!attribute purchase_explanation
1353
+ # Purchase explanation.
1354
+ #
1355
+ # @return [String]
1356
+ required :purchase_explanation, String
1357
+
1358
+ # @!attribute received_at
1359
+ # Received at.
1360
+ #
1361
+ # @return [Date]
1362
+ required :received_at, Date
1363
+
1364
+ # @!attribute return_outcome
1365
+ # Return outcome.
1366
+ #
1367
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation::ReturnOutcome]
1368
+ required :return_outcome,
1369
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation::ReturnOutcome }
1370
+
1371
+ # @!attribute not_returned
1372
+ # Not returned. Required if and only if `return_outcome` is `not_returned`.
1373
+ #
1374
+ # @return [Object, nil]
1375
+ optional :not_returned, Increase::Internal::Type::Unknown
1376
+
1377
+ # @!attribute return_attempted
1378
+ # Return attempted. Required if and only if `return_outcome` is
1379
+ # `return_attempted`.
1380
+ #
1381
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation::ReturnAttempted, nil]
1382
+ optional :return_attempted,
1383
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation::ReturnAttempted }
1384
+
1385
+ # @!attribute returned
1386
+ # Returned. Required if and only if `return_outcome` is `returned`.
1387
+ #
1388
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation::Returned, nil]
1389
+ optional :returned,
1390
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation::Returned }
1391
+
1392
+ # @!method initialize(merchant_resolution_attempted:, misrepresentation_explanation:, purchase_explanation:, received_at:, return_outcome:, not_returned: nil, return_attempted: nil, returned: nil)
1393
+ # Some parameter documentations has been truncated, see
1394
+ # {Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation}
1395
+ # for more details.
1396
+ #
1397
+ # Merchandise misrepresentation. Required if and only if `category` is
1398
+ # `consumer_merchandise_misrepresentation`.
1399
+ #
1400
+ # @param merchant_resolution_attempted [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation::MerchantResolutionAttempted] Merchant resolution attempted.
1401
+ #
1402
+ # @param misrepresentation_explanation [String] Misrepresentation explanation.
1403
+ #
1404
+ # @param purchase_explanation [String] Purchase explanation.
1405
+ #
1406
+ # @param received_at [Date] Received at.
1407
+ #
1408
+ # @param return_outcome [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation::ReturnOutcome] Return outcome.
1409
+ #
1410
+ # @param not_returned [Object] Not returned. Required if and only if `return_outcome` is `not_returned`.
1411
+ #
1412
+ # @param return_attempted [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation::ReturnAttempted] Return attempted. Required if and only if `return_outcome` is `return_attempted`
1413
+ #
1414
+ # @param returned [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation::Returned] Returned. Required if and only if `return_outcome` is `returned`.
1415
+
1416
+ # Merchant resolution attempted.
1417
+ #
1418
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation#merchant_resolution_attempted
1419
+ module MerchantResolutionAttempted
1420
+ extend Increase::Internal::Type::Enum
1421
+
1422
+ # Attempted.
1423
+ ATTEMPTED = :attempted
1424
+
1425
+ # Prohibited by local law.
1426
+ PROHIBITED_BY_LOCAL_LAW = :prohibited_by_local_law
1427
+
1428
+ # @!method self.values
1429
+ # @return [Array<Symbol>]
1430
+ end
1431
+
1432
+ # Return outcome.
1433
+ #
1434
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation#return_outcome
1435
+ module ReturnOutcome
1436
+ extend Increase::Internal::Type::Enum
1437
+
1438
+ # Not returned.
1439
+ NOT_RETURNED = :not_returned
1440
+
1441
+ # Returned.
1442
+ RETURNED = :returned
1443
+
1444
+ # Return attempted.
1445
+ RETURN_ATTEMPTED = :return_attempted
1446
+
1447
+ # @!method self.values
1448
+ # @return [Array<Symbol>]
1449
+ end
1450
+
1451
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation#return_attempted
1452
+ class ReturnAttempted < Increase::Internal::Type::BaseModel
1453
+ # @!attribute attempt_explanation
1454
+ # Attempt explanation.
1455
+ #
1456
+ # @return [String]
1457
+ required :attempt_explanation, String
1458
+
1459
+ # @!attribute attempt_reason
1460
+ # Attempt reason.
1461
+ #
1462
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation::ReturnAttempted::AttemptReason]
1463
+ required :attempt_reason,
1464
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation::ReturnAttempted::AttemptReason }
1465
+
1466
+ # @!attribute attempted_at
1467
+ # Attempted at.
1468
+ #
1469
+ # @return [Date]
1470
+ required :attempted_at, Date
1471
+
1472
+ # @!attribute merchandise_disposition
1473
+ # Merchandise disposition.
1474
+ #
1475
+ # @return [String]
1476
+ required :merchandise_disposition, String
1477
+
1478
+ # @!method initialize(attempt_explanation:, attempt_reason:, attempted_at:, merchandise_disposition:)
1479
+ # Return attempted. Required if and only if `return_outcome` is
1480
+ # `return_attempted`.
1481
+ #
1482
+ # @param attempt_explanation [String] Attempt explanation.
1483
+ #
1484
+ # @param attempt_reason [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation::ReturnAttempted::AttemptReason] Attempt reason.
1485
+ #
1486
+ # @param attempted_at [Date] Attempted at.
1487
+ #
1488
+ # @param merchandise_disposition [String] Merchandise disposition.
1489
+
1490
+ # Attempt reason.
1491
+ #
1492
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation::ReturnAttempted#attempt_reason
1493
+ module AttemptReason
1494
+ extend Increase::Internal::Type::Enum
1495
+
1496
+ # Merchant not responding.
1497
+ MERCHANT_NOT_RESPONDING = :merchant_not_responding
1498
+
1499
+ # No return authorization provided.
1500
+ NO_RETURN_AUTHORIZATION_PROVIDED = :no_return_authorization_provided
1501
+
1502
+ # No return instructions.
1503
+ NO_RETURN_INSTRUCTIONS = :no_return_instructions
1504
+
1505
+ # Requested not to return.
1506
+ REQUESTED_NOT_TO_RETURN = :requested_not_to_return
1507
+
1508
+ # Return not accepted.
1509
+ RETURN_NOT_ACCEPTED = :return_not_accepted
1510
+
1511
+ # @!method self.values
1512
+ # @return [Array<Symbol>]
1513
+ end
1514
+ end
1515
+
1516
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation#returned
1517
+ class Returned < Increase::Internal::Type::BaseModel
1518
+ # @!attribute return_method
1519
+ # Return method.
1520
+ #
1521
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation::Returned::ReturnMethod]
1522
+ required :return_method,
1523
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation::Returned::ReturnMethod }
1524
+
1525
+ # @!attribute returned_at
1526
+ # Returned at.
1527
+ #
1528
+ # @return [Date]
1529
+ required :returned_at, Date
1530
+
1531
+ # @!attribute merchant_received_return_at
1532
+ # Merchant received return at.
1533
+ #
1534
+ # @return [Date, nil]
1535
+ optional :merchant_received_return_at, Date
1536
+
1537
+ # @!attribute other_explanation
1538
+ # Other explanation. Required if and only if the return method is `other`.
1539
+ #
1540
+ # @return [String, nil]
1541
+ optional :other_explanation, String
1542
+
1543
+ # @!attribute tracking_number
1544
+ # Tracking number.
1545
+ #
1546
+ # @return [String, nil]
1547
+ optional :tracking_number, String
1548
+
1549
+ # @!method initialize(return_method:, returned_at:, merchant_received_return_at: nil, other_explanation: nil, tracking_number: nil)
1550
+ # Returned. Required if and only if `return_outcome` is `returned`.
1551
+ #
1552
+ # @param return_method [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation::Returned::ReturnMethod] Return method.
1553
+ #
1554
+ # @param returned_at [Date] Returned at.
1555
+ #
1556
+ # @param merchant_received_return_at [Date] Merchant received return at.
1557
+ #
1558
+ # @param other_explanation [String] Other explanation. Required if and only if the return method is `other`.
1559
+ #
1560
+ # @param tracking_number [String] Tracking number.
1561
+
1562
+ # Return method.
1563
+ #
1564
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseMisrepresentation::Returned#return_method
1565
+ module ReturnMethod
1566
+ extend Increase::Internal::Type::Enum
1567
+
1568
+ # DHL.
1569
+ DHL = :dhl
1570
+
1571
+ # Face-to-face.
1572
+ FACE_TO_FACE = :face_to_face
1573
+
1574
+ # FedEx.
1575
+ FEDEX = :fedex
1576
+
1577
+ # Other.
1578
+ OTHER = :other
1579
+
1580
+ # Postal service.
1581
+ POSTAL_SERVICE = :postal_service
1582
+
1583
+ # UPS.
1584
+ UPS = :ups
1585
+
1586
+ # @!method self.values
1587
+ # @return [Array<Symbol>]
1588
+ end
1589
+ end
1590
+ end
1591
+
1592
+ # @see Increase::Models::CardDisputeCreateParams::Visa#consumer_merchandise_not_as_described
1593
+ class ConsumerMerchandiseNotAsDescribed < Increase::Internal::Type::BaseModel
1594
+ # @!attribute merchant_resolution_attempted
1595
+ # Merchant resolution attempted.
1596
+ #
1597
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed::MerchantResolutionAttempted]
1598
+ required :merchant_resolution_attempted,
1599
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed::MerchantResolutionAttempted }
1600
+
1601
+ # @!attribute received_at
1602
+ # Received at.
1603
+ #
1604
+ # @return [Date]
1605
+ required :received_at, Date
1606
+
1607
+ # @!attribute return_outcome
1608
+ # Return outcome.
1609
+ #
1610
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed::ReturnOutcome]
1611
+ required :return_outcome,
1612
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed::ReturnOutcome }
1613
+
1614
+ # @!attribute return_attempted
1615
+ # Return attempted. Required if and only if `return_outcome` is
1616
+ # `return_attempted`.
1617
+ #
1618
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed::ReturnAttempted, nil]
1619
+ optional :return_attempted,
1620
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed::ReturnAttempted }
1621
+
1622
+ # @!attribute returned
1623
+ # Returned. Required if and only if `return_outcome` is `returned`.
1624
+ #
1625
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed::Returned, nil]
1626
+ optional :returned,
1627
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed::Returned }
1628
+
1629
+ # @!method initialize(merchant_resolution_attempted:, received_at:, return_outcome:, return_attempted: nil, returned: nil)
1630
+ # Some parameter documentations has been truncated, see
1631
+ # {Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed}
1632
+ # for more details.
1633
+ #
1634
+ # Merchandise not as described. Required if and only if `category` is
1635
+ # `consumer_merchandise_not_as_described`.
1636
+ #
1637
+ # @param merchant_resolution_attempted [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed::MerchantResolutionAttempted] Merchant resolution attempted.
1638
+ #
1639
+ # @param received_at [Date] Received at.
1640
+ #
1641
+ # @param return_outcome [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed::ReturnOutcome] Return outcome.
1642
+ #
1643
+ # @param return_attempted [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed::ReturnAttempted] Return attempted. Required if and only if `return_outcome` is `return_attempted`
1644
+ #
1645
+ # @param returned [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed::Returned] Returned. Required if and only if `return_outcome` is `returned`.
1646
+
1647
+ # Merchant resolution attempted.
1648
+ #
1649
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed#merchant_resolution_attempted
1650
+ module MerchantResolutionAttempted
1651
+ extend Increase::Internal::Type::Enum
1652
+
1653
+ # Attempted.
1654
+ ATTEMPTED = :attempted
1655
+
1656
+ # Prohibited by local law.
1657
+ PROHIBITED_BY_LOCAL_LAW = :prohibited_by_local_law
1658
+
1659
+ # @!method self.values
1660
+ # @return [Array<Symbol>]
1661
+ end
1662
+
1663
+ # Return outcome.
1664
+ #
1665
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed#return_outcome
1666
+ module ReturnOutcome
1667
+ extend Increase::Internal::Type::Enum
1668
+
1669
+ # Returned.
1670
+ RETURNED = :returned
1671
+
1672
+ # Return attempted.
1673
+ RETURN_ATTEMPTED = :return_attempted
1674
+
1675
+ # @!method self.values
1676
+ # @return [Array<Symbol>]
1677
+ end
1678
+
1679
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed#return_attempted
1680
+ class ReturnAttempted < Increase::Internal::Type::BaseModel
1681
+ # @!attribute attempt_explanation
1682
+ # Attempt explanation.
1683
+ #
1684
+ # @return [String]
1685
+ required :attempt_explanation, String
1686
+
1687
+ # @!attribute attempt_reason
1688
+ # Attempt reason.
1689
+ #
1690
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed::ReturnAttempted::AttemptReason]
1691
+ required :attempt_reason,
1692
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed::ReturnAttempted::AttemptReason }
1693
+
1694
+ # @!attribute attempted_at
1695
+ # Attempted at.
1696
+ #
1697
+ # @return [Date]
1698
+ required :attempted_at, Date
1699
+
1700
+ # @!attribute merchandise_disposition
1701
+ # Merchandise disposition.
1702
+ #
1703
+ # @return [String]
1704
+ required :merchandise_disposition, String
1705
+
1706
+ # @!method initialize(attempt_explanation:, attempt_reason:, attempted_at:, merchandise_disposition:)
1707
+ # Return attempted. Required if and only if `return_outcome` is
1708
+ # `return_attempted`.
1709
+ #
1710
+ # @param attempt_explanation [String] Attempt explanation.
1711
+ #
1712
+ # @param attempt_reason [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed::ReturnAttempted::AttemptReason] Attempt reason.
1713
+ #
1714
+ # @param attempted_at [Date] Attempted at.
1715
+ #
1716
+ # @param merchandise_disposition [String] Merchandise disposition.
1717
+
1718
+ # Attempt reason.
1719
+ #
1720
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed::ReturnAttempted#attempt_reason
1721
+ module AttemptReason
1722
+ extend Increase::Internal::Type::Enum
1723
+
1724
+ # Merchant not responding.
1725
+ MERCHANT_NOT_RESPONDING = :merchant_not_responding
1726
+
1727
+ # No return authorization provided.
1728
+ NO_RETURN_AUTHORIZATION_PROVIDED = :no_return_authorization_provided
1729
+
1730
+ # No return instructions.
1731
+ NO_RETURN_INSTRUCTIONS = :no_return_instructions
1732
+
1733
+ # Requested not to return.
1734
+ REQUESTED_NOT_TO_RETURN = :requested_not_to_return
1735
+
1736
+ # Return not accepted.
1737
+ RETURN_NOT_ACCEPTED = :return_not_accepted
1738
+
1739
+ # @!method self.values
1740
+ # @return [Array<Symbol>]
1741
+ end
1742
+ end
1743
+
1744
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed#returned
1745
+ class Returned < Increase::Internal::Type::BaseModel
1746
+ # @!attribute return_method
1747
+ # Return method.
1748
+ #
1749
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed::Returned::ReturnMethod]
1750
+ required :return_method,
1751
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed::Returned::ReturnMethod }
1752
+
1753
+ # @!attribute returned_at
1754
+ # Returned at.
1755
+ #
1756
+ # @return [Date]
1757
+ required :returned_at, Date
1758
+
1759
+ # @!attribute merchant_received_return_at
1760
+ # Merchant received return at.
1761
+ #
1762
+ # @return [Date, nil]
1763
+ optional :merchant_received_return_at, Date
1764
+
1765
+ # @!attribute other_explanation
1766
+ # Other explanation. Required if and only if the return method is `other`.
1767
+ #
1768
+ # @return [String, nil]
1769
+ optional :other_explanation, String
1770
+
1771
+ # @!attribute tracking_number
1772
+ # Tracking number.
1773
+ #
1774
+ # @return [String, nil]
1775
+ optional :tracking_number, String
1776
+
1777
+ # @!method initialize(return_method:, returned_at:, merchant_received_return_at: nil, other_explanation: nil, tracking_number: nil)
1778
+ # Returned. Required if and only if `return_outcome` is `returned`.
1779
+ #
1780
+ # @param return_method [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed::Returned::ReturnMethod] Return method.
1781
+ #
1782
+ # @param returned_at [Date] Returned at.
1783
+ #
1784
+ # @param merchant_received_return_at [Date] Merchant received return at.
1785
+ #
1786
+ # @param other_explanation [String] Other explanation. Required if and only if the return method is `other`.
1787
+ #
1788
+ # @param tracking_number [String] Tracking number.
1789
+
1790
+ # Return method.
1791
+ #
1792
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotAsDescribed::Returned#return_method
1793
+ module ReturnMethod
1794
+ extend Increase::Internal::Type::Enum
1795
+
1796
+ # DHL.
1797
+ DHL = :dhl
1798
+
1799
+ # Face-to-face.
1800
+ FACE_TO_FACE = :face_to_face
1801
+
1802
+ # FedEx.
1803
+ FEDEX = :fedex
1804
+
1805
+ # Other.
1806
+ OTHER = :other
1807
+
1808
+ # Postal service.
1809
+ POSTAL_SERVICE = :postal_service
1810
+
1811
+ # UPS.
1812
+ UPS = :ups
1813
+
1814
+ # @!method self.values
1815
+ # @return [Array<Symbol>]
1816
+ end
1817
+ end
1818
+ end
1819
+
1820
+ # @see Increase::Models::CardDisputeCreateParams::Visa#consumer_merchandise_not_received
1821
+ class ConsumerMerchandiseNotReceived < Increase::Internal::Type::BaseModel
1822
+ # @!attribute cancellation_outcome
1823
+ # Cancellation outcome.
1824
+ #
1825
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::CancellationOutcome]
1826
+ required :cancellation_outcome,
1827
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::CancellationOutcome }
1828
+
1829
+ # @!attribute delivery_issue
1830
+ # Delivery issue.
1831
+ #
1832
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::DeliveryIssue]
1833
+ required :delivery_issue,
1834
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::DeliveryIssue }
1835
+
1836
+ # @!attribute last_expected_receipt_at
1837
+ # Last expected receipt at.
1838
+ #
1839
+ # @return [Date]
1840
+ required :last_expected_receipt_at, Date
1841
+
1842
+ # @!attribute merchant_resolution_attempted
1843
+ # Merchant resolution attempted.
1844
+ #
1845
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::MerchantResolutionAttempted]
1846
+ required :merchant_resolution_attempted,
1847
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::MerchantResolutionAttempted }
1848
+
1849
+ # @!attribute purchase_info_and_explanation
1850
+ # Purchase information and explanation.
1851
+ #
1852
+ # @return [String]
1853
+ required :purchase_info_and_explanation, String
1854
+
1855
+ # @!attribute cardholder_cancellation_prior_to_expected_receipt
1856
+ # Cardholder cancellation prior to expected receipt. Required if and only if
1857
+ # `cancellation_outcome` is `cardholder_cancellation_prior_to_expected_receipt`.
1858
+ #
1859
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::CardholderCancellationPriorToExpectedReceipt, nil]
1860
+ optional :cardholder_cancellation_prior_to_expected_receipt,
1861
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::CardholderCancellationPriorToExpectedReceipt }
1862
+
1863
+ # @!attribute delayed
1864
+ # Delayed. Required if and only if `delivery_issue` is `delayed`.
1865
+ #
1866
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::Delayed, nil]
1867
+ optional :delayed, -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::Delayed }
1868
+
1869
+ # @!attribute delivered_to_wrong_location
1870
+ # Delivered to wrong location. Required if and only if `delivery_issue` is
1871
+ # `delivered_to_wrong_location`.
1872
+ #
1873
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::DeliveredToWrongLocation, nil]
1874
+ optional :delivered_to_wrong_location,
1875
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::DeliveredToWrongLocation }
1876
+
1877
+ # @!attribute merchant_cancellation
1878
+ # Merchant cancellation. Required if and only if `cancellation_outcome` is
1879
+ # `merchant_cancellation`.
1880
+ #
1881
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::MerchantCancellation, nil]
1882
+ optional :merchant_cancellation,
1883
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::MerchantCancellation }
1884
+
1885
+ # @!attribute no_cancellation
1886
+ # No cancellation. Required if and only if `cancellation_outcome` is
1887
+ # `no_cancellation`.
1888
+ #
1889
+ # @return [Object, nil]
1890
+ optional :no_cancellation, Increase::Internal::Type::Unknown
1891
+
1892
+ # @!method initialize(cancellation_outcome:, delivery_issue:, last_expected_receipt_at:, merchant_resolution_attempted:, purchase_info_and_explanation:, cardholder_cancellation_prior_to_expected_receipt: nil, delayed: nil, delivered_to_wrong_location: nil, merchant_cancellation: nil, no_cancellation: nil)
1893
+ # Some parameter documentations has been truncated, see
1894
+ # {Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived}
1895
+ # for more details.
1896
+ #
1897
+ # Merchandise not received. Required if and only if `category` is
1898
+ # `consumer_merchandise_not_received`.
1899
+ #
1900
+ # @param cancellation_outcome [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::CancellationOutcome] Cancellation outcome.
1901
+ #
1902
+ # @param delivery_issue [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::DeliveryIssue] Delivery issue.
1903
+ #
1904
+ # @param last_expected_receipt_at [Date] Last expected receipt at.
1905
+ #
1906
+ # @param merchant_resolution_attempted [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::MerchantResolutionAttempted] Merchant resolution attempted.
1907
+ #
1908
+ # @param purchase_info_and_explanation [String] Purchase information and explanation.
1909
+ #
1910
+ # @param cardholder_cancellation_prior_to_expected_receipt [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::CardholderCancellationPriorToExpectedReceipt] Cardholder cancellation prior to expected receipt. Required if and only if `canc
1911
+ #
1912
+ # @param delayed [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::Delayed] Delayed. Required if and only if `delivery_issue` is `delayed`.
1913
+ #
1914
+ # @param delivered_to_wrong_location [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::DeliveredToWrongLocation] Delivered to wrong location. Required if and only if `delivery_issue` is `delive
1915
+ #
1916
+ # @param merchant_cancellation [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::MerchantCancellation] Merchant cancellation. Required if and only if `cancellation_outcome` is `mercha
1917
+ #
1918
+ # @param no_cancellation [Object] No cancellation. Required if and only if `cancellation_outcome` is `no_cancellat
1919
+
1920
+ # Cancellation outcome.
1921
+ #
1922
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived#cancellation_outcome
1923
+ module CancellationOutcome
1924
+ extend Increase::Internal::Type::Enum
1925
+
1926
+ # Cardholder cancellation prior to expected receipt.
1927
+ CARDHOLDER_CANCELLATION_PRIOR_TO_EXPECTED_RECEIPT = :cardholder_cancellation_prior_to_expected_receipt
1928
+
1929
+ # Merchant cancellation.
1930
+ MERCHANT_CANCELLATION = :merchant_cancellation
1931
+
1932
+ # No cancellation.
1933
+ NO_CANCELLATION = :no_cancellation
1934
+
1935
+ # @!method self.values
1936
+ # @return [Array<Symbol>]
1937
+ end
1938
+
1939
+ # Delivery issue.
1940
+ #
1941
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived#delivery_issue
1942
+ module DeliveryIssue
1943
+ extend Increase::Internal::Type::Enum
1944
+
1945
+ # Delayed.
1946
+ DELAYED = :delayed
1947
+
1948
+ # Delivered to wrong location.
1949
+ DELIVERED_TO_WRONG_LOCATION = :delivered_to_wrong_location
1950
+
1951
+ # @!method self.values
1952
+ # @return [Array<Symbol>]
1953
+ end
1954
+
1955
+ # Merchant resolution attempted.
1956
+ #
1957
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived#merchant_resolution_attempted
1958
+ module MerchantResolutionAttempted
1959
+ extend Increase::Internal::Type::Enum
1960
+
1961
+ # Attempted.
1962
+ ATTEMPTED = :attempted
1963
+
1964
+ # Prohibited by local law.
1965
+ PROHIBITED_BY_LOCAL_LAW = :prohibited_by_local_law
1966
+
1967
+ # @!method self.values
1968
+ # @return [Array<Symbol>]
1969
+ end
1970
+
1971
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived#cardholder_cancellation_prior_to_expected_receipt
1972
+ class CardholderCancellationPriorToExpectedReceipt < Increase::Internal::Type::BaseModel
1973
+ # @!attribute canceled_at
1974
+ # Canceled at.
1975
+ #
1976
+ # @return [Date]
1977
+ required :canceled_at, Date
1978
+
1979
+ # @!attribute reason
1980
+ # Reason.
1981
+ #
1982
+ # @return [String, nil]
1983
+ optional :reason, String
1984
+
1985
+ # @!method initialize(canceled_at:, reason: nil)
1986
+ # Cardholder cancellation prior to expected receipt. Required if and only if
1987
+ # `cancellation_outcome` is `cardholder_cancellation_prior_to_expected_receipt`.
1988
+ #
1989
+ # @param canceled_at [Date] Canceled at.
1990
+ #
1991
+ # @param reason [String] Reason.
1992
+ end
1993
+
1994
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived#delayed
1995
+ class Delayed < Increase::Internal::Type::BaseModel
1996
+ # @!attribute explanation
1997
+ # Explanation.
1998
+ #
1999
+ # @return [String]
2000
+ required :explanation, String
2001
+
2002
+ # @!attribute return_outcome
2003
+ # Return outcome.
2004
+ #
2005
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::Delayed::ReturnOutcome]
2006
+ required :return_outcome,
2007
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::Delayed::ReturnOutcome }
2008
+
2009
+ # @!attribute not_returned
2010
+ # Not returned. Required if and only if `return_outcome` is `not_returned`.
2011
+ #
2012
+ # @return [Object, nil]
2013
+ optional :not_returned, Increase::Internal::Type::Unknown
2014
+
2015
+ # @!attribute return_attempted
2016
+ # Return attempted. Required if and only if `return_outcome` is
2017
+ # `return_attempted`.
2018
+ #
2019
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::Delayed::ReturnAttempted, nil]
2020
+ optional :return_attempted,
2021
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::Delayed::ReturnAttempted }
2022
+
2023
+ # @!attribute returned
2024
+ # Returned. Required if and only if `return_outcome` is `returned`.
2025
+ #
2026
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::Delayed::Returned, nil]
2027
+ optional :returned,
2028
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::Delayed::Returned }
2029
+
2030
+ # @!method initialize(explanation:, return_outcome:, not_returned: nil, return_attempted: nil, returned: nil)
2031
+ # Some parameter documentations has been truncated, see
2032
+ # {Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::Delayed}
2033
+ # for more details.
2034
+ #
2035
+ # Delayed. Required if and only if `delivery_issue` is `delayed`.
2036
+ #
2037
+ # @param explanation [String] Explanation.
2038
+ #
2039
+ # @param return_outcome [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::Delayed::ReturnOutcome] Return outcome.
2040
+ #
2041
+ # @param not_returned [Object] Not returned. Required if and only if `return_outcome` is `not_returned`.
2042
+ #
2043
+ # @param return_attempted [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::Delayed::ReturnAttempted] Return attempted. Required if and only if `return_outcome` is `return_attempted`
2044
+ #
2045
+ # @param returned [Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::Delayed::Returned] Returned. Required if and only if `return_outcome` is `returned`.
2046
+
2047
+ # Return outcome.
2048
+ #
2049
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::Delayed#return_outcome
2050
+ module ReturnOutcome
2051
+ extend Increase::Internal::Type::Enum
2052
+
2053
+ # Not returned.
2054
+ NOT_RETURNED = :not_returned
2055
+
2056
+ # Returned.
2057
+ RETURNED = :returned
2058
+
2059
+ # Return attempted.
2060
+ RETURN_ATTEMPTED = :return_attempted
2061
+
2062
+ # @!method self.values
2063
+ # @return [Array<Symbol>]
2064
+ end
2065
+
2066
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::Delayed#return_attempted
2067
+ class ReturnAttempted < Increase::Internal::Type::BaseModel
2068
+ # @!attribute attempted_at
2069
+ # Attempted at.
2070
+ #
2071
+ # @return [Date]
2072
+ required :attempted_at, Date
2073
+
2074
+ # @!method initialize(attempted_at:)
2075
+ # Return attempted. Required if and only if `return_outcome` is
2076
+ # `return_attempted`.
2077
+ #
2078
+ # @param attempted_at [Date] Attempted at.
2079
+ end
2080
+
2081
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived::Delayed#returned
2082
+ class Returned < Increase::Internal::Type::BaseModel
2083
+ # @!attribute merchant_received_return_at
2084
+ # Merchant received return at.
2085
+ #
2086
+ # @return [Date]
2087
+ required :merchant_received_return_at, Date
2088
+
2089
+ # @!attribute returned_at
2090
+ # Returned at.
2091
+ #
2092
+ # @return [Date]
2093
+ required :returned_at, Date
2094
+
2095
+ # @!method initialize(merchant_received_return_at:, returned_at:)
2096
+ # Returned. Required if and only if `return_outcome` is `returned`.
2097
+ #
2098
+ # @param merchant_received_return_at [Date] Merchant received return at.
2099
+ #
2100
+ # @param returned_at [Date] Returned at.
2101
+ end
2102
+ end
2103
+
2104
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived#delivered_to_wrong_location
2105
+ class DeliveredToWrongLocation < Increase::Internal::Type::BaseModel
2106
+ # @!attribute agreed_location
2107
+ # Agreed location.
2108
+ #
2109
+ # @return [String]
2110
+ required :agreed_location, String
2111
+
2112
+ # @!method initialize(agreed_location:)
2113
+ # Delivered to wrong location. Required if and only if `delivery_issue` is
2114
+ # `delivered_to_wrong_location`.
2115
+ #
2116
+ # @param agreed_location [String] Agreed location.
2117
+ end
2118
+
2119
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerMerchandiseNotReceived#merchant_cancellation
2120
+ class MerchantCancellation < Increase::Internal::Type::BaseModel
2121
+ # @!attribute canceled_at
2122
+ # Canceled at.
2123
+ #
2124
+ # @return [Date]
2125
+ required :canceled_at, Date
2126
+
2127
+ # @!method initialize(canceled_at:)
2128
+ # Merchant cancellation. Required if and only if `cancellation_outcome` is
2129
+ # `merchant_cancellation`.
2130
+ #
2131
+ # @param canceled_at [Date] Canceled at.
2132
+ end
2133
+ end
2134
+
2135
+ # @see Increase::Models::CardDisputeCreateParams::Visa#consumer_original_credit_transaction_not_accepted
2136
+ class ConsumerOriginalCreditTransactionNotAccepted < Increase::Internal::Type::BaseModel
2137
+ # @!attribute explanation
2138
+ # Explanation.
2139
+ #
2140
+ # @return [String]
2141
+ required :explanation, String
2142
+
2143
+ # @!attribute reason
2144
+ # Reason.
2145
+ #
2146
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerOriginalCreditTransactionNotAccepted::Reason]
2147
+ required :reason,
2148
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerOriginalCreditTransactionNotAccepted::Reason }
2149
+
2150
+ # @!method initialize(explanation:, reason:)
2151
+ # Original Credit Transaction (OCT) not accepted. Required if and only if
2152
+ # `category` is `consumer_original_credit_transaction_not_accepted`.
2153
+ #
2154
+ # @param explanation [String] Explanation.
2155
+ #
2156
+ # @param reason [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerOriginalCreditTransactionNotAccepted::Reason] Reason.
2157
+
2158
+ # Reason.
2159
+ #
2160
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerOriginalCreditTransactionNotAccepted#reason
2161
+ module Reason
2162
+ extend Increase::Internal::Type::Enum
2163
+
2164
+ # Prohibited by local laws or regulation.
2165
+ PROHIBITED_BY_LOCAL_LAWS_OR_REGULATION = :prohibited_by_local_laws_or_regulation
2166
+
2167
+ # Recipient refused.
2168
+ RECIPIENT_REFUSED = :recipient_refused
2169
+
2170
+ # @!method self.values
2171
+ # @return [Array<Symbol>]
2172
+ end
2173
+ end
2174
+
2175
+ # @see Increase::Models::CardDisputeCreateParams::Visa#consumer_quality_merchandise
2176
+ class ConsumerQualityMerchandise < Increase::Internal::Type::BaseModel
2177
+ # @!attribute expected_at
2178
+ # Expected at.
2179
+ #
2180
+ # @return [Date]
2181
+ required :expected_at, Date
2182
+
2183
+ # @!attribute merchant_resolution_attempted
2184
+ # Merchant resolution attempted.
2185
+ #
2186
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::MerchantResolutionAttempted]
2187
+ required :merchant_resolution_attempted,
2188
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::MerchantResolutionAttempted }
2189
+
2190
+ # @!attribute purchase_info_and_quality_issue
2191
+ # Purchase information and quality issue.
2192
+ #
2193
+ # @return [String]
2194
+ required :purchase_info_and_quality_issue, String
2195
+
2196
+ # @!attribute received_at
2197
+ # Received at.
2198
+ #
2199
+ # @return [Date]
2200
+ required :received_at, Date
2201
+
2202
+ # @!attribute return_outcome
2203
+ # Return outcome.
2204
+ #
2205
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::ReturnOutcome]
2206
+ required :return_outcome,
2207
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::ReturnOutcome }
2208
+
2209
+ # @!attribute not_returned
2210
+ # Not returned. Required if and only if `return_outcome` is `not_returned`.
2211
+ #
2212
+ # @return [Object, nil]
2213
+ optional :not_returned, Increase::Internal::Type::Unknown
2214
+
2215
+ # @!attribute ongoing_negotiations
2216
+ # Ongoing negotiations. Exclude if there is no evidence of ongoing negotiations.
2217
+ #
2218
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::OngoingNegotiations, nil]
2219
+ optional :ongoing_negotiations,
2220
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::OngoingNegotiations }
2221
+
2222
+ # @!attribute return_attempted
2223
+ # Return attempted. Required if and only if `return_outcome` is
2224
+ # `return_attempted`.
2225
+ #
2226
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::ReturnAttempted, nil]
2227
+ optional :return_attempted,
2228
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::ReturnAttempted }
2229
+
2230
+ # @!attribute returned
2231
+ # Returned. Required if and only if `return_outcome` is `returned`.
2232
+ #
2233
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::Returned, nil]
2234
+ optional :returned, -> { Increase::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::Returned }
2235
+
2236
+ # @!method initialize(expected_at:, merchant_resolution_attempted:, purchase_info_and_quality_issue:, received_at:, return_outcome:, not_returned: nil, ongoing_negotiations: nil, return_attempted: nil, returned: nil)
2237
+ # Some parameter documentations has been truncated, see
2238
+ # {Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise}
2239
+ # for more details.
2240
+ #
2241
+ # Merchandise quality issue. Required if and only if `category` is
2242
+ # `consumer_quality_merchandise`.
2243
+ #
2244
+ # @param expected_at [Date] Expected at.
2245
+ #
2246
+ # @param merchant_resolution_attempted [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::MerchantResolutionAttempted] Merchant resolution attempted.
2247
+ #
2248
+ # @param purchase_info_and_quality_issue [String] Purchase information and quality issue.
2249
+ #
2250
+ # @param received_at [Date] Received at.
2251
+ #
2252
+ # @param return_outcome [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::ReturnOutcome] Return outcome.
2253
+ #
2254
+ # @param not_returned [Object] Not returned. Required if and only if `return_outcome` is `not_returned`.
2255
+ #
2256
+ # @param ongoing_negotiations [Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::OngoingNegotiations] Ongoing negotiations. Exclude if there is no evidence of ongoing negotiations.
2257
+ #
2258
+ # @param return_attempted [Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::ReturnAttempted] Return attempted. Required if and only if `return_outcome` is `return_attempted`
2259
+ #
2260
+ # @param returned [Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::Returned] Returned. Required if and only if `return_outcome` is `returned`.
2261
+
2262
+ # Merchant resolution attempted.
2263
+ #
2264
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise#merchant_resolution_attempted
2265
+ module MerchantResolutionAttempted
2266
+ extend Increase::Internal::Type::Enum
2267
+
2268
+ # Attempted.
2269
+ ATTEMPTED = :attempted
2270
+
2271
+ # Prohibited by local law.
2272
+ PROHIBITED_BY_LOCAL_LAW = :prohibited_by_local_law
2273
+
2274
+ # @!method self.values
2275
+ # @return [Array<Symbol>]
2276
+ end
2277
+
2278
+ # Return outcome.
2279
+ #
2280
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise#return_outcome
2281
+ module ReturnOutcome
2282
+ extend Increase::Internal::Type::Enum
2283
+
2284
+ # Not returned.
2285
+ NOT_RETURNED = :not_returned
2286
+
2287
+ # Returned.
2288
+ RETURNED = :returned
2289
+
2290
+ # Return attempted.
2291
+ RETURN_ATTEMPTED = :return_attempted
2292
+
2293
+ # @!method self.values
2294
+ # @return [Array<Symbol>]
2295
+ end
2296
+
2297
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise#ongoing_negotiations
2298
+ class OngoingNegotiations < Increase::Internal::Type::BaseModel
2299
+ # @!attribute explanation
2300
+ # Explanation of the previous ongoing negotiations between the cardholder and
2301
+ # merchant.
2302
+ #
2303
+ # @return [String]
2304
+ required :explanation, String
2305
+
2306
+ # @!attribute issuer_first_notified_at
2307
+ # Date the cardholder first notified the issuer of the dispute.
2308
+ #
2309
+ # @return [Date]
2310
+ required :issuer_first_notified_at, Date
2311
+
2312
+ # @!attribute started_at
2313
+ # Started at.
2314
+ #
2315
+ # @return [Date]
2316
+ required :started_at, Date
2317
+
2318
+ # @!method initialize(explanation:, issuer_first_notified_at:, started_at:)
2319
+ # Some parameter documentations has been truncated, see
2320
+ # {Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::OngoingNegotiations}
2321
+ # for more details.
2322
+ #
2323
+ # Ongoing negotiations. Exclude if there is no evidence of ongoing negotiations.
2324
+ #
2325
+ # @param explanation [String] Explanation of the previous ongoing negotiations between the cardholder and merc
2326
+ #
2327
+ # @param issuer_first_notified_at [Date] Date the cardholder first notified the issuer of the dispute.
2328
+ #
2329
+ # @param started_at [Date] Started at.
2330
+ end
2331
+
2332
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise#return_attempted
2333
+ class ReturnAttempted < Increase::Internal::Type::BaseModel
2334
+ # @!attribute attempt_explanation
2335
+ # Attempt explanation.
2336
+ #
2337
+ # @return [String]
2338
+ required :attempt_explanation, String
2339
+
2340
+ # @!attribute attempt_reason
2341
+ # Attempt reason.
2342
+ #
2343
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::ReturnAttempted::AttemptReason]
2344
+ required :attempt_reason,
2345
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::ReturnAttempted::AttemptReason }
2346
+
2347
+ # @!attribute attempted_at
2348
+ # Attempted at.
2349
+ #
2350
+ # @return [Date]
2351
+ required :attempted_at, Date
2352
+
2353
+ # @!attribute merchandise_disposition
2354
+ # Merchandise disposition.
2355
+ #
2356
+ # @return [String]
2357
+ required :merchandise_disposition, String
2358
+
2359
+ # @!method initialize(attempt_explanation:, attempt_reason:, attempted_at:, merchandise_disposition:)
2360
+ # Return attempted. Required if and only if `return_outcome` is
2361
+ # `return_attempted`.
2362
+ #
2363
+ # @param attempt_explanation [String] Attempt explanation.
2364
+ #
2365
+ # @param attempt_reason [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::ReturnAttempted::AttemptReason] Attempt reason.
2366
+ #
2367
+ # @param attempted_at [Date] Attempted at.
2368
+ #
2369
+ # @param merchandise_disposition [String] Merchandise disposition.
2370
+
2371
+ # Attempt reason.
2372
+ #
2373
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::ReturnAttempted#attempt_reason
2374
+ module AttemptReason
2375
+ extend Increase::Internal::Type::Enum
2376
+
2377
+ # Merchant not responding.
2378
+ MERCHANT_NOT_RESPONDING = :merchant_not_responding
2379
+
2380
+ # No return authorization provided.
2381
+ NO_RETURN_AUTHORIZATION_PROVIDED = :no_return_authorization_provided
2382
+
2383
+ # No return instructions.
2384
+ NO_RETURN_INSTRUCTIONS = :no_return_instructions
2385
+
2386
+ # Requested not to return.
2387
+ REQUESTED_NOT_TO_RETURN = :requested_not_to_return
2388
+
2389
+ # Return not accepted.
2390
+ RETURN_NOT_ACCEPTED = :return_not_accepted
2391
+
2392
+ # @!method self.values
2393
+ # @return [Array<Symbol>]
2394
+ end
2395
+ end
2396
+
2397
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise#returned
2398
+ class Returned < Increase::Internal::Type::BaseModel
2399
+ # @!attribute return_method
2400
+ # Return method.
2401
+ #
2402
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::Returned::ReturnMethod]
2403
+ required :return_method,
2404
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::Returned::ReturnMethod }
2405
+
2406
+ # @!attribute returned_at
2407
+ # Returned at.
2408
+ #
2409
+ # @return [Date]
2410
+ required :returned_at, Date
2411
+
2412
+ # @!attribute merchant_received_return_at
2413
+ # Merchant received return at.
2414
+ #
2415
+ # @return [Date, nil]
2416
+ optional :merchant_received_return_at, Date
2417
+
2418
+ # @!attribute other_explanation
2419
+ # Other explanation. Required if and only if the return method is `other`.
2420
+ #
2421
+ # @return [String, nil]
2422
+ optional :other_explanation, String
2423
+
2424
+ # @!attribute tracking_number
2425
+ # Tracking number.
2426
+ #
2427
+ # @return [String, nil]
2428
+ optional :tracking_number, String
2429
+
2430
+ # @!method initialize(return_method:, returned_at:, merchant_received_return_at: nil, other_explanation: nil, tracking_number: nil)
2431
+ # Returned. Required if and only if `return_outcome` is `returned`.
2432
+ #
2433
+ # @param return_method [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::Returned::ReturnMethod] Return method.
2434
+ #
2435
+ # @param returned_at [Date] Returned at.
2436
+ #
2437
+ # @param merchant_received_return_at [Date] Merchant received return at.
2438
+ #
2439
+ # @param other_explanation [String] Other explanation. Required if and only if the return method is `other`.
2440
+ #
2441
+ # @param tracking_number [String] Tracking number.
2442
+
2443
+ # Return method.
2444
+ #
2445
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityMerchandise::Returned#return_method
2446
+ module ReturnMethod
2447
+ extend Increase::Internal::Type::Enum
2448
+
2449
+ # DHL.
2450
+ DHL = :dhl
2451
+
2452
+ # Face-to-face.
2453
+ FACE_TO_FACE = :face_to_face
2454
+
2455
+ # FedEx.
2456
+ FEDEX = :fedex
2457
+
2458
+ # Other.
2459
+ OTHER = :other
2460
+
2461
+ # Postal service.
2462
+ POSTAL_SERVICE = :postal_service
2463
+
2464
+ # UPS.
2465
+ UPS = :ups
2466
+
2467
+ # @!method self.values
2468
+ # @return [Array<Symbol>]
2469
+ end
2470
+ end
2471
+ end
2472
+
2473
+ # @see Increase::Models::CardDisputeCreateParams::Visa#consumer_quality_services
2474
+ class ConsumerQualityServices < Increase::Internal::Type::BaseModel
2475
+ # @!attribute cardholder_cancellation
2476
+ # Cardholder cancellation.
2477
+ #
2478
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices::CardholderCancellation]
2479
+ required :cardholder_cancellation,
2480
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerQualityServices::CardholderCancellation }
2481
+
2482
+ # @!attribute non_fiat_currency_or_non_fungible_token_related_and_not_matching_description
2483
+ # Non-fiat currency or non-fungible token related and not matching description.
2484
+ #
2485
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices::NonFiatCurrencyOrNonFungibleTokenRelatedAndNotMatchingDescription]
2486
+ required :non_fiat_currency_or_non_fungible_token_related_and_not_matching_description,
2487
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerQualityServices::NonFiatCurrencyOrNonFungibleTokenRelatedAndNotMatchingDescription }
2488
+
2489
+ # @!attribute purchase_info_and_quality_issue
2490
+ # Purchase information and quality issue.
2491
+ #
2492
+ # @return [String]
2493
+ required :purchase_info_and_quality_issue, String
2494
+
2495
+ # @!attribute services_received_at
2496
+ # Services received at.
2497
+ #
2498
+ # @return [Date]
2499
+ required :services_received_at, Date
2500
+
2501
+ # @!attribute cardholder_paid_to_have_work_redone
2502
+ # Cardholder paid to have work redone.
2503
+ #
2504
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices::CardholderPaidToHaveWorkRedone, nil]
2505
+ optional :cardholder_paid_to_have_work_redone,
2506
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerQualityServices::CardholderPaidToHaveWorkRedone }
2507
+
2508
+ # @!attribute ongoing_negotiations
2509
+ # Ongoing negotiations. Exclude if there is no evidence of ongoing negotiations.
2510
+ #
2511
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices::OngoingNegotiations, nil]
2512
+ optional :ongoing_negotiations,
2513
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerQualityServices::OngoingNegotiations }
2514
+
2515
+ # @!attribute restaurant_food_related
2516
+ # Whether the dispute is related to the quality of food from an eating place or
2517
+ # restaurant. Must be provided when Merchant Category Code (MCC) is 5812, 5813
2518
+ # or 5814.
2519
+ #
2520
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices::RestaurantFoodRelated, nil]
2521
+ optional :restaurant_food_related,
2522
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerQualityServices::RestaurantFoodRelated }
2523
+
2524
+ # @!method initialize(cardholder_cancellation:, non_fiat_currency_or_non_fungible_token_related_and_not_matching_description:, purchase_info_and_quality_issue:, services_received_at:, cardholder_paid_to_have_work_redone: nil, ongoing_negotiations: nil, restaurant_food_related: nil)
2525
+ # Some parameter documentations has been truncated, see
2526
+ # {Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices} for
2527
+ # more details.
2528
+ #
2529
+ # Services quality issue. Required if and only if `category` is
2530
+ # `consumer_quality_services`.
2531
+ #
2532
+ # @param cardholder_cancellation [Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices::CardholderCancellation] Cardholder cancellation.
2533
+ #
2534
+ # @param non_fiat_currency_or_non_fungible_token_related_and_not_matching_description [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices::NonFiatCurrencyOrNonFungibleTokenRelatedAndNotMatchingDescription] Non-fiat currency or non-fungible token related and not matching description.
2535
+ #
2536
+ # @param purchase_info_and_quality_issue [String] Purchase information and quality issue.
2537
+ #
2538
+ # @param services_received_at [Date] Services received at.
2539
+ #
2540
+ # @param cardholder_paid_to_have_work_redone [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices::CardholderPaidToHaveWorkRedone] Cardholder paid to have work redone.
2541
+ #
2542
+ # @param ongoing_negotiations [Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices::OngoingNegotiations] Ongoing negotiations. Exclude if there is no evidence of ongoing negotiations.
2543
+ #
2544
+ # @param restaurant_food_related [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices::RestaurantFoodRelated] Whether the dispute is related to the quality of food from an eating place or re
2545
+
2546
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices#cardholder_cancellation
2547
+ class CardholderCancellation < Increase::Internal::Type::BaseModel
2548
+ # @!attribute accepted_by_merchant
2549
+ # Accepted by merchant.
2550
+ #
2551
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices::CardholderCancellation::AcceptedByMerchant]
2552
+ required :accepted_by_merchant,
2553
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerQualityServices::CardholderCancellation::AcceptedByMerchant }
2554
+
2555
+ # @!attribute canceled_at
2556
+ # Canceled at.
2557
+ #
2558
+ # @return [Date]
2559
+ required :canceled_at, Date
2560
+
2561
+ # @!attribute reason
2562
+ # Reason.
2563
+ #
2564
+ # @return [String]
2565
+ required :reason, String
2566
+
2567
+ # @!method initialize(accepted_by_merchant:, canceled_at:, reason:)
2568
+ # Cardholder cancellation.
2569
+ #
2570
+ # @param accepted_by_merchant [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices::CardholderCancellation::AcceptedByMerchant] Accepted by merchant.
2571
+ #
2572
+ # @param canceled_at [Date] Canceled at.
2573
+ #
2574
+ # @param reason [String] Reason.
2575
+
2576
+ # Accepted by merchant.
2577
+ #
2578
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices::CardholderCancellation#accepted_by_merchant
2579
+ module AcceptedByMerchant
2580
+ extend Increase::Internal::Type::Enum
2581
+
2582
+ # Accepted.
2583
+ ACCEPTED = :accepted
2584
+
2585
+ # Not accepted.
2586
+ NOT_ACCEPTED = :not_accepted
2587
+
2588
+ # @!method self.values
2589
+ # @return [Array<Symbol>]
2590
+ end
2591
+ end
2592
+
2593
+ # Non-fiat currency or non-fungible token related and not matching description.
2594
+ #
2595
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices#non_fiat_currency_or_non_fungible_token_related_and_not_matching_description
2596
+ module NonFiatCurrencyOrNonFungibleTokenRelatedAndNotMatchingDescription
2597
+ extend Increase::Internal::Type::Enum
2598
+
2599
+ # Not related.
2600
+ NOT_RELATED = :not_related
2601
+
2602
+ # Related.
2603
+ RELATED = :related
2604
+
2605
+ # @!method self.values
2606
+ # @return [Array<Symbol>]
2607
+ end
2608
+
2609
+ # Cardholder paid to have work redone.
2610
+ #
2611
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices#cardholder_paid_to_have_work_redone
2612
+ module CardholderPaidToHaveWorkRedone
2613
+ extend Increase::Internal::Type::Enum
2614
+
2615
+ # Cardholder did not pay to have work redone.
2616
+ DID_NOT_PAY_TO_HAVE_WORK_REDONE = :did_not_pay_to_have_work_redone
2617
+
2618
+ # Cardholder paid to have work redone.
2619
+ PAID_TO_HAVE_WORK_REDONE = :paid_to_have_work_redone
2620
+
2621
+ # @!method self.values
2622
+ # @return [Array<Symbol>]
2623
+ end
2624
+
2625
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices#ongoing_negotiations
2626
+ class OngoingNegotiations < Increase::Internal::Type::BaseModel
2627
+ # @!attribute explanation
2628
+ # Explanation of the previous ongoing negotiations between the cardholder and
2629
+ # merchant.
2630
+ #
2631
+ # @return [String]
2632
+ required :explanation, String
2633
+
2634
+ # @!attribute issuer_first_notified_at
2635
+ # Date the cardholder first notified the issuer of the dispute.
2636
+ #
2637
+ # @return [Date]
2638
+ required :issuer_first_notified_at, Date
2639
+
2640
+ # @!attribute started_at
2641
+ # Started at.
2642
+ #
2643
+ # @return [Date]
2644
+ required :started_at, Date
2645
+
2646
+ # @!method initialize(explanation:, issuer_first_notified_at:, started_at:)
2647
+ # Some parameter documentations has been truncated, see
2648
+ # {Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices::OngoingNegotiations}
2649
+ # for more details.
2650
+ #
2651
+ # Ongoing negotiations. Exclude if there is no evidence of ongoing negotiations.
2652
+ #
2653
+ # @param explanation [String] Explanation of the previous ongoing negotiations between the cardholder and merc
2654
+ #
2655
+ # @param issuer_first_notified_at [Date] Date the cardholder first notified the issuer of the dispute.
2656
+ #
2657
+ # @param started_at [Date] Started at.
2658
+ end
2659
+
2660
+ # Whether the dispute is related to the quality of food from an eating place or
2661
+ # restaurant. Must be provided when Merchant Category Code (MCC) is 5812, 5813
2662
+ # or 5814.
2663
+ #
2664
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerQualityServices#restaurant_food_related
2665
+ module RestaurantFoodRelated
2666
+ extend Increase::Internal::Type::Enum
2667
+
2668
+ # Not related.
2669
+ NOT_RELATED = :not_related
2670
+
2671
+ # Related.
2672
+ RELATED = :related
2673
+
2674
+ # @!method self.values
2675
+ # @return [Array<Symbol>]
2676
+ end
2677
+ end
2678
+
2679
+ # @see Increase::Models::CardDisputeCreateParams::Visa#consumer_services_misrepresentation
2680
+ class ConsumerServicesMisrepresentation < Increase::Internal::Type::BaseModel
2681
+ # @!attribute cardholder_cancellation
2682
+ # Cardholder cancellation.
2683
+ #
2684
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesMisrepresentation::CardholderCancellation]
2685
+ required :cardholder_cancellation,
2686
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerServicesMisrepresentation::CardholderCancellation }
2687
+
2688
+ # @!attribute merchant_resolution_attempted
2689
+ # Merchant resolution attempted.
2690
+ #
2691
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesMisrepresentation::MerchantResolutionAttempted]
2692
+ required :merchant_resolution_attempted,
2693
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerServicesMisrepresentation::MerchantResolutionAttempted }
2694
+
2695
+ # @!attribute misrepresentation_explanation
2696
+ # Misrepresentation explanation.
2697
+ #
2698
+ # @return [String]
2699
+ required :misrepresentation_explanation, String
2700
+
2701
+ # @!attribute purchase_explanation
2702
+ # Purchase explanation.
2703
+ #
2704
+ # @return [String]
2705
+ required :purchase_explanation, String
2706
+
2707
+ # @!attribute received_at
2708
+ # Received at.
2709
+ #
2710
+ # @return [Date]
2711
+ required :received_at, Date
2712
+
2713
+ # @!method initialize(cardholder_cancellation:, merchant_resolution_attempted:, misrepresentation_explanation:, purchase_explanation:, received_at:)
2714
+ # Services misrepresentation. Required if and only if `category` is
2715
+ # `consumer_services_misrepresentation`.
2716
+ #
2717
+ # @param cardholder_cancellation [Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesMisrepresentation::CardholderCancellation] Cardholder cancellation.
2718
+ #
2719
+ # @param merchant_resolution_attempted [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesMisrepresentation::MerchantResolutionAttempted] Merchant resolution attempted.
2720
+ #
2721
+ # @param misrepresentation_explanation [String] Misrepresentation explanation.
2722
+ #
2723
+ # @param purchase_explanation [String] Purchase explanation.
2724
+ #
2725
+ # @param received_at [Date] Received at.
2726
+
2727
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesMisrepresentation#cardholder_cancellation
2728
+ class CardholderCancellation < Increase::Internal::Type::BaseModel
2729
+ # @!attribute accepted_by_merchant
2730
+ # Accepted by merchant.
2731
+ #
2732
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesMisrepresentation::CardholderCancellation::AcceptedByMerchant]
2733
+ required :accepted_by_merchant,
2734
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerServicesMisrepresentation::CardholderCancellation::AcceptedByMerchant }
2735
+
2736
+ # @!attribute canceled_at
2737
+ # Canceled at.
2738
+ #
2739
+ # @return [Date]
2740
+ required :canceled_at, Date
2741
+
2742
+ # @!attribute reason
2743
+ # Reason.
2744
+ #
2745
+ # @return [String]
2746
+ required :reason, String
2747
+
2748
+ # @!method initialize(accepted_by_merchant:, canceled_at:, reason:)
2749
+ # Cardholder cancellation.
2750
+ #
2751
+ # @param accepted_by_merchant [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesMisrepresentation::CardholderCancellation::AcceptedByMerchant] Accepted by merchant.
2752
+ #
2753
+ # @param canceled_at [Date] Canceled at.
2754
+ #
2755
+ # @param reason [String] Reason.
2756
+
2757
+ # Accepted by merchant.
2758
+ #
2759
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesMisrepresentation::CardholderCancellation#accepted_by_merchant
2760
+ module AcceptedByMerchant
2761
+ extend Increase::Internal::Type::Enum
2762
+
2763
+ # Accepted.
2764
+ ACCEPTED = :accepted
2765
+
2766
+ # Not accepted.
2767
+ NOT_ACCEPTED = :not_accepted
2768
+
2769
+ # @!method self.values
2770
+ # @return [Array<Symbol>]
2771
+ end
2772
+ end
2773
+
2774
+ # Merchant resolution attempted.
2775
+ #
2776
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesMisrepresentation#merchant_resolution_attempted
2777
+ module MerchantResolutionAttempted
2778
+ extend Increase::Internal::Type::Enum
2779
+
2780
+ # Attempted.
2781
+ ATTEMPTED = :attempted
2782
+
2783
+ # Prohibited by local law.
2784
+ PROHIBITED_BY_LOCAL_LAW = :prohibited_by_local_law
2785
+
2786
+ # @!method self.values
2787
+ # @return [Array<Symbol>]
2788
+ end
2789
+ end
2790
+
2791
+ # @see Increase::Models::CardDisputeCreateParams::Visa#consumer_services_not_as_described
2792
+ class ConsumerServicesNotAsDescribed < Increase::Internal::Type::BaseModel
2793
+ # @!attribute cardholder_cancellation
2794
+ # Cardholder cancellation.
2795
+ #
2796
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotAsDescribed::CardholderCancellation]
2797
+ required :cardholder_cancellation,
2798
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerServicesNotAsDescribed::CardholderCancellation }
2799
+
2800
+ # @!attribute merchant_resolution_attempted
2801
+ # Merchant resolution attempted.
2802
+ #
2803
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotAsDescribed::MerchantResolutionAttempted]
2804
+ required :merchant_resolution_attempted,
2805
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerServicesNotAsDescribed::MerchantResolutionAttempted }
2806
+
2807
+ # @!attribute received_at
2808
+ # Received at.
2809
+ #
2810
+ # @return [Date]
2811
+ required :received_at, Date
2812
+
2813
+ # @!method initialize(cardholder_cancellation:, merchant_resolution_attempted:, received_at:)
2814
+ # Services not as described. Required if and only if `category` is
2815
+ # `consumer_services_not_as_described`.
2816
+ #
2817
+ # @param cardholder_cancellation [Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotAsDescribed::CardholderCancellation] Cardholder cancellation.
2818
+ #
2819
+ # @param merchant_resolution_attempted [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotAsDescribed::MerchantResolutionAttempted] Merchant resolution attempted.
2820
+ #
2821
+ # @param received_at [Date] Received at.
2822
+
2823
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotAsDescribed#cardholder_cancellation
2824
+ class CardholderCancellation < Increase::Internal::Type::BaseModel
2825
+ # @!attribute accepted_by_merchant
2826
+ # Accepted by merchant.
2827
+ #
2828
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotAsDescribed::CardholderCancellation::AcceptedByMerchant]
2829
+ required :accepted_by_merchant,
2830
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerServicesNotAsDescribed::CardholderCancellation::AcceptedByMerchant }
2831
+
2832
+ # @!attribute canceled_at
2833
+ # Canceled at.
2834
+ #
2835
+ # @return [Date]
2836
+ required :canceled_at, Date
2837
+
2838
+ # @!attribute reason
2839
+ # Reason.
2840
+ #
2841
+ # @return [String]
2842
+ required :reason, String
2843
+
2844
+ # @!method initialize(accepted_by_merchant:, canceled_at:, reason:)
2845
+ # Cardholder cancellation.
2846
+ #
2847
+ # @param accepted_by_merchant [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotAsDescribed::CardholderCancellation::AcceptedByMerchant] Accepted by merchant.
2848
+ #
2849
+ # @param canceled_at [Date] Canceled at.
2850
+ #
2851
+ # @param reason [String] Reason.
2852
+
2853
+ # Accepted by merchant.
2854
+ #
2855
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotAsDescribed::CardholderCancellation#accepted_by_merchant
2856
+ module AcceptedByMerchant
2857
+ extend Increase::Internal::Type::Enum
2858
+
2859
+ # Accepted.
2860
+ ACCEPTED = :accepted
2861
+
2862
+ # Not accepted.
2863
+ NOT_ACCEPTED = :not_accepted
2864
+
2865
+ # @!method self.values
2866
+ # @return [Array<Symbol>]
2867
+ end
2868
+ end
2869
+
2870
+ # Merchant resolution attempted.
2871
+ #
2872
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotAsDescribed#merchant_resolution_attempted
2873
+ module MerchantResolutionAttempted
2874
+ extend Increase::Internal::Type::Enum
2875
+
2876
+ # Attempted.
2877
+ ATTEMPTED = :attempted
2878
+
2879
+ # Prohibited by local law.
2880
+ PROHIBITED_BY_LOCAL_LAW = :prohibited_by_local_law
2881
+
2882
+ # @!method self.values
2883
+ # @return [Array<Symbol>]
2884
+ end
2885
+ end
2886
+
2887
+ # @see Increase::Models::CardDisputeCreateParams::Visa#consumer_services_not_received
2888
+ class ConsumerServicesNotReceived < Increase::Internal::Type::BaseModel
2889
+ # @!attribute cancellation_outcome
2890
+ # Cancellation outcome.
2891
+ #
2892
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotReceived::CancellationOutcome]
2893
+ required :cancellation_outcome,
2894
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerServicesNotReceived::CancellationOutcome }
2895
+
2896
+ # @!attribute last_expected_receipt_at
2897
+ # Last expected receipt at.
2898
+ #
2899
+ # @return [Date]
2900
+ required :last_expected_receipt_at, Date
2901
+
2902
+ # @!attribute merchant_resolution_attempted
2903
+ # Merchant resolution attempted.
2904
+ #
2905
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotReceived::MerchantResolutionAttempted]
2906
+ required :merchant_resolution_attempted,
2907
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ConsumerServicesNotReceived::MerchantResolutionAttempted }
2908
+
2909
+ # @!attribute purchase_info_and_explanation
2910
+ # Purchase information and explanation.
2911
+ #
2912
+ # @return [String]
2913
+ required :purchase_info_and_explanation, String
2914
+
2915
+ # @!attribute cardholder_cancellation_prior_to_expected_receipt
2916
+ # Cardholder cancellation prior to expected receipt. Required if and only if
2917
+ # `cancellation_outcome` is `cardholder_cancellation_prior_to_expected_receipt`.
2918
+ #
2919
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotReceived::CardholderCancellationPriorToExpectedReceipt, nil]
2920
+ optional :cardholder_cancellation_prior_to_expected_receipt,
2921
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerServicesNotReceived::CardholderCancellationPriorToExpectedReceipt }
2922
+
2923
+ # @!attribute merchant_cancellation
2924
+ # Merchant cancellation. Required if and only if `cancellation_outcome` is
2925
+ # `merchant_cancellation`.
2926
+ #
2927
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotReceived::MerchantCancellation, nil]
2928
+ optional :merchant_cancellation,
2929
+ -> { Increase::CardDisputeCreateParams::Visa::ConsumerServicesNotReceived::MerchantCancellation }
2930
+
2931
+ # @!attribute no_cancellation
2932
+ # No cancellation. Required if and only if `cancellation_outcome` is
2933
+ # `no_cancellation`.
2934
+ #
2935
+ # @return [Object, nil]
2936
+ optional :no_cancellation, Increase::Internal::Type::Unknown
2937
+
2938
+ # @!method initialize(cancellation_outcome:, last_expected_receipt_at:, merchant_resolution_attempted:, purchase_info_and_explanation:, cardholder_cancellation_prior_to_expected_receipt: nil, merchant_cancellation: nil, no_cancellation: nil)
2939
+ # Some parameter documentations has been truncated, see
2940
+ # {Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotReceived}
2941
+ # for more details.
2942
+ #
2943
+ # Services not received. Required if and only if `category` is
2944
+ # `consumer_services_not_received`.
2945
+ #
2946
+ # @param cancellation_outcome [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotReceived::CancellationOutcome] Cancellation outcome.
2947
+ #
2948
+ # @param last_expected_receipt_at [Date] Last expected receipt at.
2949
+ #
2950
+ # @param merchant_resolution_attempted [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotReceived::MerchantResolutionAttempted] Merchant resolution attempted.
2951
+ #
2952
+ # @param purchase_info_and_explanation [String] Purchase information and explanation.
2953
+ #
2954
+ # @param cardholder_cancellation_prior_to_expected_receipt [Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotReceived::CardholderCancellationPriorToExpectedReceipt] Cardholder cancellation prior to expected receipt. Required if and only if `canc
2955
+ #
2956
+ # @param merchant_cancellation [Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotReceived::MerchantCancellation] Merchant cancellation. Required if and only if `cancellation_outcome` is `mercha
2957
+ #
2958
+ # @param no_cancellation [Object] No cancellation. Required if and only if `cancellation_outcome` is `no_cancellat
2959
+
2960
+ # Cancellation outcome.
2961
+ #
2962
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotReceived#cancellation_outcome
2963
+ module CancellationOutcome
2964
+ extend Increase::Internal::Type::Enum
2965
+
2966
+ # Cardholder cancellation prior to expected receipt.
2967
+ CARDHOLDER_CANCELLATION_PRIOR_TO_EXPECTED_RECEIPT = :cardholder_cancellation_prior_to_expected_receipt
2968
+
2969
+ # Merchant cancellation.
2970
+ MERCHANT_CANCELLATION = :merchant_cancellation
2971
+
2972
+ # No cancellation.
2973
+ NO_CANCELLATION = :no_cancellation
2974
+
2975
+ # @!method self.values
2976
+ # @return [Array<Symbol>]
2977
+ end
2978
+
2979
+ # Merchant resolution attempted.
2980
+ #
2981
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotReceived#merchant_resolution_attempted
2982
+ module MerchantResolutionAttempted
2983
+ extend Increase::Internal::Type::Enum
2984
+
2985
+ # Attempted.
2986
+ ATTEMPTED = :attempted
2987
+
2988
+ # Prohibited by local law.
2989
+ PROHIBITED_BY_LOCAL_LAW = :prohibited_by_local_law
2990
+
2991
+ # @!method self.values
2992
+ # @return [Array<Symbol>]
2993
+ end
2994
+
2995
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotReceived#cardholder_cancellation_prior_to_expected_receipt
2996
+ class CardholderCancellationPriorToExpectedReceipt < Increase::Internal::Type::BaseModel
2997
+ # @!attribute canceled_at
2998
+ # Canceled at.
2999
+ #
3000
+ # @return [Date]
3001
+ required :canceled_at, Date
3002
+
3003
+ # @!attribute reason
3004
+ # Reason.
3005
+ #
3006
+ # @return [String, nil]
3007
+ optional :reason, String
3008
+
3009
+ # @!method initialize(canceled_at:, reason: nil)
3010
+ # Cardholder cancellation prior to expected receipt. Required if and only if
3011
+ # `cancellation_outcome` is `cardholder_cancellation_prior_to_expected_receipt`.
3012
+ #
3013
+ # @param canceled_at [Date] Canceled at.
3014
+ #
3015
+ # @param reason [String] Reason.
3016
+ end
3017
+
3018
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ConsumerServicesNotReceived#merchant_cancellation
3019
+ class MerchantCancellation < Increase::Internal::Type::BaseModel
3020
+ # @!attribute canceled_at
3021
+ # Canceled at.
3022
+ #
3023
+ # @return [Date]
3024
+ required :canceled_at, Date
3025
+
3026
+ # @!method initialize(canceled_at:)
3027
+ # Merchant cancellation. Required if and only if `cancellation_outcome` is
3028
+ # `merchant_cancellation`.
3029
+ #
3030
+ # @param canceled_at [Date] Canceled at.
3031
+ end
3032
+ end
3033
+
3034
+ # @see Increase::Models::CardDisputeCreateParams::Visa#fraud
3035
+ class Fraud < Increase::Internal::Type::BaseModel
3036
+ # @!attribute fraud_type
3037
+ # Fraud type.
3038
+ #
3039
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::Fraud::FraudType]
3040
+ required :fraud_type, enum: -> { Increase::CardDisputeCreateParams::Visa::Fraud::FraudType }
3041
+
3042
+ # @!method initialize(fraud_type:)
3043
+ # Fraud. Required if and only if `category` is `fraud`.
3044
+ #
3045
+ # @param fraud_type [Symbol, Increase::Models::CardDisputeCreateParams::Visa::Fraud::FraudType] Fraud type.
3046
+
3047
+ # Fraud type.
3048
+ #
3049
+ # @see Increase::Models::CardDisputeCreateParams::Visa::Fraud#fraud_type
3050
+ module FraudType
3051
+ extend Increase::Internal::Type::Enum
3052
+
3053
+ # Account or credentials takeover.
3054
+ ACCOUNT_OR_CREDENTIALS_TAKEOVER = :account_or_credentials_takeover
3055
+
3056
+ # Card not received as issued.
3057
+ CARD_NOT_RECEIVED_AS_ISSUED = :card_not_received_as_issued
3058
+
3059
+ # Fraudulent application.
3060
+ FRAUDULENT_APPLICATION = :fraudulent_application
3061
+
3062
+ # Fraudulent use of account number.
3063
+ FRAUDULENT_USE_OF_ACCOUNT_NUMBER = :fraudulent_use_of_account_number
3064
+
3065
+ # Incorrect processing.
3066
+ INCORRECT_PROCESSING = :incorrect_processing
3067
+
3068
+ # Issuer reported counterfeit.
3069
+ ISSUER_REPORTED_COUNTERFEIT = :issuer_reported_counterfeit
3070
+
3071
+ # Lost.
3072
+ LOST = :lost
3073
+
3074
+ # Manipulation of account holder.
3075
+ MANIPULATION_OF_ACCOUNT_HOLDER = :manipulation_of_account_holder
3076
+
3077
+ # Merchant misrepresentation.
3078
+ MERCHANT_MISREPRESENTATION = :merchant_misrepresentation
3079
+
3080
+ # Miscellaneous.
3081
+ MISCELLANEOUS = :miscellaneous
3082
+
3083
+ # Stolen.
3084
+ STOLEN = :stolen
3085
+
3086
+ # @!method self.values
3087
+ # @return [Array<Symbol>]
3088
+ end
3089
+ end
3090
+
3091
+ # @see Increase::Models::CardDisputeCreateParams::Visa#processing_error
3092
+ class ProcessingError < Increase::Internal::Type::BaseModel
3093
+ # @!attribute error_reason
3094
+ # Error reason.
3095
+ #
3096
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ProcessingError::ErrorReason]
3097
+ required :error_reason, enum: -> { Increase::CardDisputeCreateParams::Visa::ProcessingError::ErrorReason }
3098
+
3099
+ # @!attribute merchant_resolution_attempted
3100
+ # Merchant resolution attempted.
3101
+ #
3102
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ProcessingError::MerchantResolutionAttempted]
3103
+ required :merchant_resolution_attempted,
3104
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ProcessingError::MerchantResolutionAttempted }
3105
+
3106
+ # @!attribute duplicate_transaction
3107
+ # Duplicate transaction. Required if and only if `error_reason` is
3108
+ # `duplicate_transaction`.
3109
+ #
3110
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ProcessingError::DuplicateTransaction, nil]
3111
+ optional :duplicate_transaction,
3112
+ -> { Increase::CardDisputeCreateParams::Visa::ProcessingError::DuplicateTransaction }
3113
+
3114
+ # @!attribute incorrect_amount
3115
+ # Incorrect amount. Required if and only if `error_reason` is `incorrect_amount`.
3116
+ #
3117
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ProcessingError::IncorrectAmount, nil]
3118
+ optional :incorrect_amount,
3119
+ -> { Increase::CardDisputeCreateParams::Visa::ProcessingError::IncorrectAmount }
3120
+
3121
+ # @!attribute paid_by_other_means
3122
+ # Paid by other means. Required if and only if `error_reason` is
3123
+ # `paid_by_other_means`.
3124
+ #
3125
+ # @return [Increase::Models::CardDisputeCreateParams::Visa::ProcessingError::PaidByOtherMeans, nil]
3126
+ optional :paid_by_other_means,
3127
+ -> { Increase::CardDisputeCreateParams::Visa::ProcessingError::PaidByOtherMeans }
3128
+
3129
+ # @!method initialize(error_reason:, merchant_resolution_attempted:, duplicate_transaction: nil, incorrect_amount: nil, paid_by_other_means: nil)
3130
+ # Some parameter documentations has been truncated, see
3131
+ # {Increase::Models::CardDisputeCreateParams::Visa::ProcessingError} for more
3132
+ # details.
3133
+ #
3134
+ # Processing error. Required if and only if `category` is `processing_error`.
3135
+ #
3136
+ # @param error_reason [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ProcessingError::ErrorReason] Error reason.
3137
+ #
3138
+ # @param merchant_resolution_attempted [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ProcessingError::MerchantResolutionAttempted] Merchant resolution attempted.
3139
+ #
3140
+ # @param duplicate_transaction [Increase::Models::CardDisputeCreateParams::Visa::ProcessingError::DuplicateTransaction] Duplicate transaction. Required if and only if `error_reason` is `duplicate_tran
3141
+ #
3142
+ # @param incorrect_amount [Increase::Models::CardDisputeCreateParams::Visa::ProcessingError::IncorrectAmount] Incorrect amount. Required if and only if `error_reason` is `incorrect_amount`.
3143
+ #
3144
+ # @param paid_by_other_means [Increase::Models::CardDisputeCreateParams::Visa::ProcessingError::PaidByOtherMeans] Paid by other means. Required if and only if `error_reason` is `paid_by_other_me
3145
+
3146
+ # Error reason.
3147
+ #
3148
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ProcessingError#error_reason
3149
+ module ErrorReason
3150
+ extend Increase::Internal::Type::Enum
3151
+
3152
+ # Duplicate transaction.
3153
+ DUPLICATE_TRANSACTION = :duplicate_transaction
3154
+
3155
+ # Incorrect amount.
3156
+ INCORRECT_AMOUNT = :incorrect_amount
3157
+
3158
+ # Paid by other means.
3159
+ PAID_BY_OTHER_MEANS = :paid_by_other_means
3160
+
3161
+ # @!method self.values
3162
+ # @return [Array<Symbol>]
3163
+ end
3164
+
3165
+ # Merchant resolution attempted.
3166
+ #
3167
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ProcessingError#merchant_resolution_attempted
3168
+ module MerchantResolutionAttempted
3169
+ extend Increase::Internal::Type::Enum
3170
+
3171
+ # Attempted.
3172
+ ATTEMPTED = :attempted
3173
+
3174
+ # Prohibited by local law.
3175
+ PROHIBITED_BY_LOCAL_LAW = :prohibited_by_local_law
3176
+
3177
+ # @!method self.values
3178
+ # @return [Array<Symbol>]
3179
+ end
3180
+
3181
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ProcessingError#duplicate_transaction
3182
+ class DuplicateTransaction < Increase::Internal::Type::BaseModel
3183
+ # @!attribute other_transaction_id
3184
+ # Other transaction ID.
3185
+ #
3186
+ # @return [String]
3187
+ required :other_transaction_id, String
3188
+
3189
+ # @!method initialize(other_transaction_id:)
3190
+ # Duplicate transaction. Required if and only if `error_reason` is
3191
+ # `duplicate_transaction`.
3192
+ #
3193
+ # @param other_transaction_id [String] Other transaction ID.
3194
+ end
3195
+
3196
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ProcessingError#incorrect_amount
3197
+ class IncorrectAmount < Increase::Internal::Type::BaseModel
3198
+ # @!attribute expected_amount
3199
+ # Expected amount.
3200
+ #
3201
+ # @return [Integer]
3202
+ required :expected_amount, Integer
3203
+
3204
+ # @!method initialize(expected_amount:)
3205
+ # Incorrect amount. Required if and only if `error_reason` is `incorrect_amount`.
3206
+ #
3207
+ # @param expected_amount [Integer] Expected amount.
3208
+ end
3209
+
3210
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ProcessingError#paid_by_other_means
3211
+ class PaidByOtherMeans < Increase::Internal::Type::BaseModel
3212
+ # @!attribute other_form_of_payment_evidence
3213
+ # Other form of payment evidence.
3214
+ #
3215
+ # @return [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ProcessingError::PaidByOtherMeans::OtherFormOfPaymentEvidence]
3216
+ required :other_form_of_payment_evidence,
3217
+ enum: -> { Increase::CardDisputeCreateParams::Visa::ProcessingError::PaidByOtherMeans::OtherFormOfPaymentEvidence }
3218
+
3219
+ # @!attribute other_transaction_id
3220
+ # Other transaction ID.
3221
+ #
3222
+ # @return [String, nil]
3223
+ optional :other_transaction_id, String
3224
+
3225
+ # @!method initialize(other_form_of_payment_evidence:, other_transaction_id: nil)
3226
+ # Paid by other means. Required if and only if `error_reason` is
3227
+ # `paid_by_other_means`.
3228
+ #
3229
+ # @param other_form_of_payment_evidence [Symbol, Increase::Models::CardDisputeCreateParams::Visa::ProcessingError::PaidByOtherMeans::OtherFormOfPaymentEvidence] Other form of payment evidence.
3230
+ #
3231
+ # @param other_transaction_id [String] Other transaction ID.
3232
+
3233
+ # Other form of payment evidence.
3234
+ #
3235
+ # @see Increase::Models::CardDisputeCreateParams::Visa::ProcessingError::PaidByOtherMeans#other_form_of_payment_evidence
3236
+ module OtherFormOfPaymentEvidence
3237
+ extend Increase::Internal::Type::Enum
3238
+
3239
+ # Canceled check.
3240
+ CANCELED_CHECK = :canceled_check
3241
+
3242
+ # Card transaction.
3243
+ CARD_TRANSACTION = :card_transaction
3244
+
3245
+ # Cash receipt.
3246
+ CASH_RECEIPT = :cash_receipt
3247
+
3248
+ # Other.
3249
+ OTHER = :other
3250
+
3251
+ # Statement.
3252
+ STATEMENT = :statement
3253
+
3254
+ # Voucher.
3255
+ VOUCHER = :voucher
3256
+
3257
+ # @!method self.values
3258
+ # @return [Array<Symbol>]
3259
+ end
3260
+ end
3261
+ end
3262
+ end
3263
+ end
3264
+ end
3265
+ end