module Fastbill::Automatic::Services::Complete::ClassMethods
Public Instance Methods
complete(id)
click to toggle source
# File lib/fastbill-automatic/services/complete.rb, line 7 def complete(id) id_attribute = "#{self.name.split("::").last.downcase}_id".to_sym attributes = {} attributes[id_attribute] = id response = Fastbill::Automatic.request("#{self.name.split("::").last.downcase}.complete", attributes) response['RESPONSE']['INVOICE_NUMBER'] end