Sha256: 1e281b1b5db565c14694f6c0f7b3a5fed5093543cadf964828e2b9f8bb8c7f8c

Contents?: true

Size: 704 Bytes

Versions: 8

Compression:

Stored size: 704 Bytes

Contents

# frozen_string_literal: true

require 'fortnox/api/mappers/base'

module Fortnox
  module API
    module Mapper
      class InvoiceRow < Fortnox::API::Mapper::Base
        KEY_MAP = {
          housework: 'HouseWork',
          housework_hours_to_report: 'HouseWorkHoursToReport',
          housework_type: 'HouseWorkType',
          price_excluding_vat: 'PriceExcludingVAT',
          total_excluding_vat: 'TotalExcludingVAT',
          vat: 'VAT'
        }.freeze
        JSON_ENTITY_WRAPPER = 'InvoiceRow'
        JSON_COLLECTION_WRAPPER = 'InvoiceRows'
      end

      Registry.register(InvoiceRow.canonical_name_sym, InvoiceRow)
      Registry.register(:invoicerows, InvoiceRow)
    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_row.rb
fortnox-api-0.7.2 lib/fortnox/api/mappers/invoice_row.rb
fortnox-api-0.7.1 lib/fortnox/api/mappers/invoice_row.rb
fortnox-api-0.7.0 lib/fortnox/api/mappers/invoice_row.rb
fortnox-api-0.6.3 lib/fortnox/api/mappers/invoice_row.rb
fortnox-api-0.6.2 lib/fortnox/api/mappers/invoice_row.rb
fortnox-api-0.6.1 lib/fortnox/api/mappers/invoice_row.rb
fortnox-api-0.6.0 lib/fortnox/api/mappers/invoice_row.rb