Class: Adyen::REST::Payout::Response

Inherits:
Response
  • Object
show all
Defined in:
lib/adyen/rest/payout.rb

Instance Attribute Summary

Attributes inherited from Response

#attributes, #http_response, #prefix

Instance Method Summary collapse

Methods inherited from Response

#[], #has_attribute?, #initialize

Constructor Details

This class inherits a constructor from Adyen::REST::Response

Instance Method Details

#confirmed?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/adyen/rest/payout.rb', line 25

def confirmed?
  response == CONFIRMED
end

#declined?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/adyen/rest/payout.rb', line 29

def declined?
  response == DECLINED
end

#psp_referenceObject



37
38
39
# File 'lib/adyen/rest/payout.rb', line 37

def psp_reference
  self[:psp_reference]
end

#received?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/adyen/rest/payout.rb', line 21

def received?
  result_code == RECEIVED
end

#responseObject



41
42
43
# File 'lib/adyen/rest/payout.rb', line 41

def response
  self[:response]
end

#result_codeObject



33
34
35
# File 'lib/adyen/rest/payout.rb', line 33

def result_code
  self[:result_code]
end

#success?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/adyen/rest/payout.rb', line 17

def success?
  result_code == SUCCESS
end