Module: FacturapiRuby::Files
- Defined in:
- lib/facturapi_ruby/files.rb
Class Method Summary collapse
Class Method Details
.pdf(options) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/facturapi_ruby/files.rb', line 6 def pdf() HttpClient.get_file( endpoint: "/v1/invoices/#{options[:invoice_id]}/pdf", file_ext: '.pdf' ) end |
.xml(options) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/facturapi_ruby/files.rb', line 13 def xml() HttpClient.get_file( endpoint: "/v1/invoices/#{options[:invoice_id]}/xml", file_ext: '.xml' ) end |