Class: Adyen::REST::Payout::Response
Instance Attribute Summary
Attributes inherited from Response
#attributes, #http_response, #prefix
Instance Method Summary
collapse
Methods inherited from Response
#[], #has_attribute?, #initialize
Instance Method Details
#confirmed? ⇒ Boolean
25
26
27
|
# File 'lib/adyen/rest/payout.rb', line 25
def confirmed?
response == CONFIRMED
end
|
#declined? ⇒ Boolean
29
30
31
|
# File 'lib/adyen/rest/payout.rb', line 29
def declined?
response == DECLINED
end
|
#psp_reference ⇒ Object
37
38
39
|
# File 'lib/adyen/rest/payout.rb', line 37
def psp_reference
self[:psp_reference]
end
|
#received? ⇒ Boolean
21
22
23
|
# File 'lib/adyen/rest/payout.rb', line 21
def received?
result_code == RECEIVED
end
|
#response ⇒ Object
41
42
43
|
# File 'lib/adyen/rest/payout.rb', line 41
def response
self[:response]
end
|
#result_code ⇒ Object
33
34
35
|
# File 'lib/adyen/rest/payout.rb', line 33
def result_code
self[:result_code]
end
|
#success? ⇒ Boolean
17
18
19
|
# File 'lib/adyen/rest/payout.rb', line 17
def success?
result_code == SUCCESS
end
|