Class: Koho::Client::InboundInvoices
Constant Summary
Constants inherited
from Koho::Client
API_BASE_URL
Instance Attribute Summary
Attributes inherited from Koho::Client
#company_id, #token
Instance Method Summary
collapse
#contracts, #customers, #delete, #get, #inbound_invoices, #info, #initialize, #invoice_terms, #invoices, #post, #put
Constructor Details
This class inherits a constructor from Koho::Client
Instance Method Details
#create(params) ⇒ Object
63
64
65
|
# File 'lib/koho.rb', line 63
def create params
post '/', invoice_inbound: params
end
|
#destroy(id) ⇒ Object
71
72
73
|
# File 'lib/koho.rb', line 71
def destroy id
delete "/#{id}"
end
|
#find(id) ⇒ Object
58
59
60
|
# File 'lib/koho.rb', line 58
def find id
get "/#{id}"
end
|
#list ⇒ Object
54
55
56
|
# File 'lib/koho.rb', line 54
def list
get '/'
end
|
#update(id, params) ⇒ Object
67
68
69
|
# File 'lib/koho.rb', line 67
def update id, params
put "/#{id}", invoice_inbound: params
end
|