Sha256: e369c6128f1422fa6b18691518ebe8afbaf7519c173a879d65db7114ce90e366
Contents?: true
Size: 611 Bytes
Versions: 2
Compression:
Stored size: 611 Bytes
Contents
module Billimatic module Resources class Invoice < InvoiceRule def search(contract_id:, issue_date_from:, issue_date_to:) http.get( "/contracts/#{contract_id}#{resource_base_path}/search", params: { issue_date_from: issue_date_from, issue_date_to: issue_date_to } ) do |response| respond_with_collection response end end def destroy(id, contract_id:) http.delete( "/contracts/#{contract_id}#{resource_base_path}/#{id}" ) do |response| response.code == 204 end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
billimatic-client-0.7.0 | lib/billimatic/resources/invoice.rb |
billimatic-client-0.6.0 | lib/billimatic/resources/invoice.rb |