Module: FacturapiRuby::Invoices
- Defined in:
- lib/facturapi_ruby/invoices.rb
Class Method Summary collapse
- .cancel(invoice_id, options = {}) ⇒ Object
- .create(options) ⇒ Object
- .get(invoice_id, options = {}) ⇒ Object
Class Method Details
.cancel(invoice_id, options = {}) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/facturapi_ruby/invoices.rb', line 13 def cancel(invoice_id, ={}) HttpClient.delete( endpoint: "/v1/invoices/#{invoice_id}", api_options: ) end |
.create(options) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/facturapi_ruby/invoices.rb', line 6 def create() HttpClient.post( endpoint: '/v1/invoices', api_options: ) end |
.get(invoice_id, options = {}) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/facturapi_ruby/invoices.rb', line 20 def get(invoice_id, ={}) HttpClient.get( endpoint: "/v1/invoices/#{invoice_id}", api_options: ) end |