Class: Datatrans::XML::Transaction::CaptureResponse
- Inherits:
-
Response
- Object
- Response
- Datatrans::XML::Transaction::CaptureResponse
show all
- Defined in:
- lib/datatrans/xml/transaction/capture.rb
Instance Attribute Summary
Attributes inherited from Response
#datatrans, #params
Instance Method Summary
collapse
Methods inherited from Response
#initialize
Instance Method Details
#error_code ⇒ Object
52
53
54
55
56
|
# File 'lib/datatrans/xml/transaction/capture.rb', line 52
def error_code
params_root_node["error"]["errorCode"]
rescue
nil
end
|
#error_detail ⇒ Object
64
65
66
67
68
|
# File 'lib/datatrans/xml/transaction/capture.rb', line 64
def error_detail
params_root_node["error"]["errorDetail"]
rescue
nil
end
|
#error_message ⇒ Object
58
59
60
61
62
|
# File 'lib/datatrans/xml/transaction/capture.rb', line 58
def error_message
params_root_node["error"]["errorMessage"]
rescue
nil
end
|
#reference_number ⇒ Object
46
47
48
49
50
|
# File 'lib/datatrans/xml/transaction/capture.rb', line 46
def reference_number
params_root_node["refno"]
rescue
nil
end
|
#response_code ⇒ Object
28
29
30
31
32
|
# File 'lib/datatrans/xml/transaction/capture.rb', line 28
def response_code
params_root_node["response"]["responseCode"]
rescue
nil
end
|
#response_message ⇒ Object
34
35
36
37
38
|
# File 'lib/datatrans/xml/transaction/capture.rb', line 34
def response_message
params_root_node["response"]["responseMessage"]
rescue
nil
end
|
#successful? ⇒ Boolean
24
25
26
|
# File 'lib/datatrans/xml/transaction/capture.rb', line 24
def successful?
response_code == "01" && response_message == "settlement succeeded"
end
|
#transaction_id ⇒ Object
40
41
42
43
44
|
# File 'lib/datatrans/xml/transaction/capture.rb', line 40
def transaction_id
params_root_node["request"]["uppTransactionId"]
rescue
nil
end
|