class BraspagRest::Payment

Constants

STATUS_AUTHORIZED
STATUS_CONFIRMED
STATUS_REFUNDED
STATUS_VOIDED

Public Instance Methods

authorized?() click to toggle source
# File lib/braspag-rest/payment.rb, line 55
def authorized?
  status.to_i.eql?(STATUS_AUTHORIZED)
end
cancelled?() click to toggle source
# File lib/braspag-rest/payment.rb, line 63
def cancelled?
  status.to_i.eql?(STATUS_VOIDED)
end
captured?() click to toggle source
# File lib/braspag-rest/payment.rb, line 59
def captured?
  status.to_i.eql?(STATUS_CONFIRMED)
end
refunded?() click to toggle source
# File lib/braspag-rest/payment.rb, line 67
def refunded?
  status.to_i.eql?(STATUS_REFUNDED)
end