Class: Tripletexer::Endpoints::Ledger::Voucher
Instance Method Summary
collapse
#initialize
Instance Method Details
#create(send_to_ledger, body) ⇒ Object
16
17
18
|
# File 'lib/tripletexer/endpoints/ledger/voucher.rb', line 16
def create(send_to_ledger, body)
create_entity('/v2/ledger/voucher', body, { 'sendToLedger' => send_to_ledger.to_s })
end
|
#download_pdf(id) ⇒ Object
31
32
33
|
# File 'lib/tripletexer/endpoints/ledger/voucher.rb', line 31
def download_pdf(id)
get("/v2/ledger/voucher/#{id}/pdf")
end
|
#find(id, params = {}) ⇒ Object
21
22
23
|
# File 'lib/tripletexer/endpoints/ledger/voucher.rb', line 21
def find(id, params = {})
find_entity("/v2/ledger/voucher/#{id}", params)
end
|
#search(date_from, date_to, params = {}) ⇒ Object
#update(id, send_to_ledger, body) ⇒ Object
26
27
28
|
# File 'lib/tripletexer/endpoints/ledger/voucher.rb', line 26
def update(id, send_to_ledger, body)
update_entity("/v2/ledger/voucher/#{id}", body, { 'sendToLedger' => send_to_ledger.to_s })
end
|
#upload_pdf(_id, _filename, _file) ⇒ Object
36
37
38
|
# File 'lib/tripletexer/endpoints/ledger/voucher.rb', line 36
def upload_pdf(_id, _filename, _file)
raise NotImplementedError
end
|