Class: Koho::Client::Invoices
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, #project_tasks, #projects, #put, #work_sessions
Constructor Details
This class inherits a constructor from Koho::Client
Instance Method Details
#create(params) ⇒ Object
110
111
112
|
# File 'lib/koho.rb', line 110
def create params
post '/', invoice: params
end
|
#destroy(id) ⇒ Object
118
119
120
|
# File 'lib/koho.rb', line 118
def destroy id
delete "/#{id}"
end
|
#find(id) ⇒ Object
98
99
100
|
# File 'lib/koho.rb', line 98
def find id
get "/#{id}"
end
|
#find_by_contract(contract_id) ⇒ Object
102
103
104
|
# File 'lib/koho.rb', line 102
def find_by_contract contract_id
get "/find_by_contract/#{contract_id}"
end
|
#find_by_customer(customer_id) ⇒ Object
106
107
108
|
# File 'lib/koho.rb', line 106
def find_by_customer customer_id
get "/find_by_customer/#{customer_id}"
end
|
#list ⇒ Object
94
95
96
|
# File 'lib/koho.rb', line 94
def list
get '/'
end
|
#update(id, params) ⇒ Object
114
115
116
|
# File 'lib/koho.rb', line 114
def update id, params
put "/#{id}", invoice: params
end
|