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
Constructor Details
This class inherits a constructor from Koho::Client
Instance Method Details
#create(params) ⇒ Object
108
109
110
|
# File 'lib/koho.rb', line 108
def create params
post '/', invoice: params
end
|
#destroy(id) ⇒ Object
116
117
118
|
# File 'lib/koho.rb', line 116
def destroy id
delete "/#{id}"
end
|
#find(id) ⇒ Object
96
97
98
|
# File 'lib/koho.rb', line 96
def find id
get "/#{id}"
end
|
#find_by_contract(contract_id) ⇒ Object
100
101
102
|
# File 'lib/koho.rb', line 100
def find_by_contract contract_id
get "/find_by_contract/#{contract_id}"
end
|
#find_by_customer(customer_id) ⇒ Object
104
105
106
|
# File 'lib/koho.rb', line 104
def find_by_customer customer_id
get "/find_by_customer/#{customer_id}"
end
|
#list ⇒ Object
92
93
94
|
# File 'lib/koho.rb', line 92
def list
get '/'
end
|
#update(id, params) ⇒ Object
112
113
114
|
# File 'lib/koho.rb', line 112
def update id, params
put "/#{id}", invoice: params
end
|