Class: Easybill::Api::Documents
- Inherits:
-
Base
- Object
- Base
- Easybill::Api::Documents
show all
- Defined in:
- lib/easybill/api/documents.rb
Constant Summary
Constants inherited
from Base
Base::HEADERS
Class Method Summary
collapse
Methods inherited from Base
authenticate, create, destroy, find, list, update
included
Class Method Details
.cancel(id) ⇒ Object
9
10
11
|
# File 'lib/easybill/api/documents.rb', line 9
def cancel(id)
custom method: :post, path: "#{resource_path}/#{id}/cancel"
end
|
.deliver(id, type, data) ⇒ Object
13
14
15
|
# File 'lib/easybill/api/documents.rb', line 13
def deliver(id, type, data)
custom method: :post, path: "#{resource_path}/#{id}/send/#{type}", data: data
end
|
.done(id) ⇒ Object
5
6
7
|
# File 'lib/easybill/api/documents.rb', line 5
def done(id)
custom method: :put, path: "#{resource_path}/#{id}/done"
end
|
.pdf(id) ⇒ Object
17
18
19
|
# File 'lib/easybill/api/documents.rb', line 17
def pdf(id)
custom method: :get, path: "#{resource_path}/#{id}/pdf", headers: {"Content-Type" => "application/pdf"}
end
|