Module: FacturapiRuby::V2::Files
- Defined in:
- lib/facturapi_ruby/v2/files.rb
Class Method Summary collapse
Class Method Details
.pdf(options) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/facturapi_ruby/v2/files.rb', line 9 def pdf() HttpClient.get_file( endpoint: "/v2/invoices/#{options[:invoice_id]}/pdf", file_ext: '.pdf' ) end |
.xml(options) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/facturapi_ruby/v2/files.rb', line 16 def xml() HttpClient.get_file( endpoint: "/v2/invoices/#{options[:invoice_id]}/xml", file_ext: '.xml' ) end |
.zip(options) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/facturapi_ruby/v2/files.rb', line 23 def zip() HttpClient.get_file( endpoint: "/v2/invoices/#{options[:invoice_id]}/zip", file_ext: '.zip' ) end |