Module: FacturapiRuby::Receipts
- Defined in:
- lib/facturapi_ruby/receipts.rb
Class Method Summary collapse
Class Method Details
.create(options) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/facturapi_ruby/receipts.rb', line 12 def create() HttpClient.post( endpoint: '/v1/receipts', api_options: ) end |
.get(receipt_id) ⇒ Object
6 7 8 9 10 |
# File 'lib/facturapi_ruby/receipts.rb', line 6 def get(receipt_id) HttpClient.post( endpoint: "/v1/receipts/#{receipt_id}" ) end |
.invoice(receipt_id, options = {}) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/facturapi_ruby/receipts.rb', line 19 def invoice(receipt_id, ={}) HttpClient.post( endpoint: "/v1/receipts/#{receipt_id}/invoice", api_options: ) end |