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