Sha256: 181d482a790feaec58f191b138259b9cf033c7d71c57ab765e3788291e5be888

Contents?: true

Size: 268 Bytes

Versions: 5

Compression:

Stored size: 268 Bytes

Contents

module Superfaktura
  class Invoices < BaseApi
    def self.create(attributes)
      post('/invoices/create', attributes)
    end

    def self.download(id, locale: :en)
      file("/#{Superfaktura::Locales.iso2_to_iso3(locale)}/invoices/pdf/#{id}")
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
superfaktura-1 lib/superfaktura/invoices.rb
superfaktura-0.9.6 lib/superfaktura/invoices.rb
superfaktura-0.9.5 lib/superfaktura/invoices.rb
superfaktura-0.9.4 lib/superfaktura/invoices.rb
superfaktura-0.9.3 lib/superfaktura/invoices.rb