lib/resources/invoice.rb in sk-api-1.1.0 vs lib/resources/invoice.rb in sk-api-1.1.1
- old
+ new
@@ -4,23 +4,10 @@
def save
save_with_validation
end
- def open
- self.put(:open, :id => self.id) # PUT /invoices/:id/open
- end
-
- # rethink
- def print(template_id)
- self.get(:print, :template_id => template_id) # GET /invoices.pdf?template_id=:ids
- end
-
- def mail(template_id, cc, bcc)
- self.get(:print, :template_id => template_id) # GET /invoices.pdf?template_id=:ids
- end
-
##########################################################################
# Class methods
##########################################################################
def self.schema
@@ -52,17 +39,11 @@
}
end
def self.api_links
#internal links on fields=> id => salesking.eu/clients/4567.json
+ #external links to actions and related objects => invoeis => salesking.eu/clients/4567/invoices.json
[:edit, :destroy, :copy, :print, :show, :payments, :payment_new]
-# [ :edit,
-# :destroy,
-# { :copy =>"invoices/new?source=#{self.id}" },
-# :open => "PUT invoices/#{self.id}/open",
-# :print,
-# :show, ]
-
end
end
end
end
\ No newline at end of file