class Rubill::ReceivedPayment

Public Class Methods

active() click to toggle source
# File lib/rubill/entities/received_payment.rb, line 7
def self.active
  where([Query::Filter.new("status", "!=", "1")])
end
create(opts) click to toggle source
# File lib/rubill/entities/received_payment.rb, line 3
def self.create(opts)
  Query.receive_payment(opts)
end
delete(id) click to toggle source
# File lib/rubill/entities/received_payment.rb, line 19
def self.delete(id)
  # To overwrite delete method in superclass
  void(id)
end
remote_class_name() click to toggle source
# File lib/rubill/entities/received_payment.rb, line 28
def self.remote_class_name
  "ReceivedPay"
end
void(id) click to toggle source
# File lib/rubill/entities/received_payment.rb, line 24
def self.void(id)
  Query.void_received_payment(id)
end

Public Instance Methods

delete() click to toggle source
# File lib/rubill/entities/received_payment.rb, line 15
def delete
  self.class.delete(id)
end
void() click to toggle source
# File lib/rubill/entities/received_payment.rb, line 11
def void
  delete
end