Sha256: 01c70a783e3feceba7bcfd25b8c98362a97016a670ac31f49902edcb49850efe
Contents?: true
Size: 661 Bytes
Versions: 1
Compression:
Stored size: 661 Bytes
Contents
module Fakturownia module Api class Invoice < Base def list(options = {}) connection.get("/invoices", options) end def show(id, options = {}) connection.get("/invoices/#{id}", options) end def create(params) connection.post("/invoices", invoice: params) end def update(id, params) connection.put("/invoices/#{id}", invoice: params) end def delete(id) connection.delete("/invoices/#{id}") end def change_status(id, status) connection.post("/invoices/#{id}/change_status", invoice: {status: status}) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fakturownia_api-0.0.2 | lib/fakturownia/api/invoice.rb |