Class: CentrumFaktur::API::Invoice
- Inherits:
-
Base
- Object
- Base
- CentrumFaktur::API::Invoice
show all
- Defined in:
- lib/centrum_faktur/api/invoice.rb
Instance Attribute Summary
Attributes inherited from Base
#client
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#create(params) ⇒ Object
20
21
22
23
|
# File 'lib/centrum_faktur/api/invoice.rb', line 20
def create(params)
request = connection.post("/api/1.0/invoices/", params)
request.handle_response
end
|
#destroy(invoice_uri) ⇒ Object
30
31
32
33
|
# File 'lib/centrum_faktur/api/invoice.rb', line 30
def destroy(invoice_uri)
request = connection.delete(invoice_uri)
request.handle_response
end
|
#list(options = {}) ⇒ Object
5
6
7
8
|
# File 'lib/centrum_faktur/api/invoice.rb', line 5
def list(options = {})
request = connection.get("/api/1.0/invoices/", options)
request.handle_response
end
|
#list_updates(options = {}) ⇒ Object
10
11
12
13
|
# File 'lib/centrum_faktur/api/invoice.rb', line 10
def list_updates(options = {})
request = connection.get("/api/1.0/invoices/updates/", options)
request.handle_response
end
|
#show(invoice_uri, options = {}) ⇒ Object
15
16
17
18
|
# File 'lib/centrum_faktur/api/invoice.rb', line 15
def show(invoice_uri, options = {})
request = connection.get(invoice_uri, options)
request.handle_response
end
|
#update(invoice_uri, params) ⇒ Object
25
26
27
28
|
# File 'lib/centrum_faktur/api/invoice.rb', line 25
def update(invoice_uri, params)
request = connection.put(invoice_uri, params)
request.handle_response
end
|