Sha256: c9712192a36e53a8412feea1d775c9acff9c10b844b7cdd371e9e230d0f34a72

Contents?: true

Size: 829 Bytes

Versions: 8

Compression:

Stored size: 829 Bytes

Contents

# frozen_string_literal: true

require 'fortnox/api/mappers/base'
require 'fortnox/api/mappers/edi_information'
require 'fortnox/api/mappers/email_information'
require 'fortnox/api/mappers/invoice_row'

module Fortnox
  module API
    module Mapper
      class Invoice < Fortnox::API::Mapper::Base
        KEY_MAP = {
          administration_fee_vat: 'AdministrationFeeVAT',
          edi_information: 'EDIInformation',
          eu_quarterly_report: 'EUQuarterlyReport',
          freight_vat: 'FreightVAT',
          housework: 'HouseWork',
          ocr: 'OCR',
          total_vat: 'TotalVAT',
          vat_included: 'VATIncluded'
        }.freeze
        JSON_ENTITY_WRAPPER = 'Invoice'
        JSON_COLLECTION_WRAPPER = 'Invoices'
      end

      Registry.register(Invoice.canonical_name_sym, Invoice)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fortnox-api-0.8.0 lib/fortnox/api/mappers/invoice.rb
fortnox-api-0.7.2 lib/fortnox/api/mappers/invoice.rb
fortnox-api-0.7.1 lib/fortnox/api/mappers/invoice.rb
fortnox-api-0.7.0 lib/fortnox/api/mappers/invoice.rb
fortnox-api-0.6.3 lib/fortnox/api/mappers/invoice.rb
fortnox-api-0.6.2 lib/fortnox/api/mappers/invoice.rb
fortnox-api-0.6.1 lib/fortnox/api/mappers/invoice.rb
fortnox-api-0.6.0 lib/fortnox/api/mappers/invoice.rb