Class: MangoModel::Dispute

Inherits:
EntityBase show all
Includes:
MangoPay::Jsonifier
Defined in:
lib/mangopay/model/entity/dispute.rb

Overview

Dispute entity The Dispute object is used when a user requests a chargeback of a transaction to their bank. In turn, their bank withdraws the funds from MangoPay, and MangoPay will then repudiate the required funds from your client credit wallet.

Constant Summary

Constants included from MangoPay::Jsonifier

MangoPay::Jsonifier::LOG

Instance Attribute Summary collapse

Attributes inherited from EntityBase

#creation_date, #id, #tag

Method Summary

Methods included from MangoPay::Jsonifier

#dejsonify, #jsonify!

Methods included from NonInstantiable

#initialize

Instance Attribute Details

#contest_deadline_dateObject

Integer

The deadline by which the dispute must be contested,

if necessary (UNIX timestamp)



45
46
47
# File 'lib/mangopay/model/entity/dispute.rb', line 45

def contest_deadline_date
  @contest_deadline_date
end

#contested_fundsObject

Money

The funds wished to be contested



41
42
43
# File 'lib/mangopay/model/entity/dispute.rb', line 41

def contested_funds
  @contested_funds
end

#dispute_reasonObject

DisputeReason

Its reason



29
30
31
# File 'lib/mangopay/model/entity/dispute.rb', line 29

def dispute_reason
  @dispute_reason
end

#dispute_typeObject

DisputeType

Its type



14
15
16
# File 'lib/mangopay/model/entity/dispute.rb', line 14

def dispute_type
  @dispute_type
end

#disputed_fundsObject

Money

The funds that were disputed



38
39
40
# File 'lib/mangopay/model/entity/dispute.rb', line 38

def disputed_funds
  @disputed_funds
end

#initial_transaction_idObject

String

The initial transaction’s ID



17
18
19
# File 'lib/mangopay/model/entity/dispute.rb', line 17

def initial_transaction_id
  @initial_transaction_id
end

#initial_transaction_typeObject

TransactionType

The initial transaction’s type



20
21
22
# File 'lib/mangopay/model/entity/dispute.rb', line 20

def initial_transaction_type
  @initial_transaction_type
end

#repudiation_idObject

String

ID of the associated repudiation transaction



48
49
50
# File 'lib/mangopay/model/entity/dispute.rb', line 48

def repudiation_id
  @repudiation_id
end

#result_codeObject

String

Its result code



23
24
25
# File 'lib/mangopay/model/entity/dispute.rb', line 23

def result_code
  @result_code
end

#result_messageObject

{String] Explanation of its result



26
27
28
# File 'lib/mangopay/model/entity/dispute.rb', line 26

def result_message
  @result_message
end

#statusObject

DisputeStatus

Its status



32
33
34
# File 'lib/mangopay/model/entity/dispute.rb', line 32

def status
  @status
end

#status_messageObject

String

Explanation of the status



35
36
37
# File 'lib/mangopay/model/entity/dispute.rb', line 35

def status_message
  @status_message
end