Sha256: 5fb2f1f4c2f341f773e02dfbb49bc453225a882a4021b0e7f463b9a85ca3d7e8
Contents?: true
Size: 485 Bytes
Versions: 1
Compression:
Stored size: 485 Bytes
Contents
module Einvoice module Client class Neweb < API def initialize connection.use Faraday::Request::UrlEncoded connection.use Faraday::Request::DigestNeweb :neweb, client_secret end def create_invoice(invoice) connection.post do |request| request.url "IN_PreInvoiceS.action" request.body = { StoreCode: client_id, xmldata: invoice.to_json } end.body end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
einvoice-0.1.0 | lib/einvoice/client/neweb.rb |