Sha256: 15d91e8eaac1288658e4ce340a5f3374197d93e93b923ab8b64f81a08f8258c8

Contents?: true

Size: 551 Bytes

Versions: 6

Compression:

Stored size: 551 Bytes

Contents

require "fortnox/api/mappers/base"

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

      Registry.register( InvoiceRow.canonical_name_sym, InvoiceRow )
      Registry.register( :invoicerows, InvoiceRow )
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fortnox-api-0.5.2 lib/fortnox/api/mappers/invoice_row.rb
fortnox-api-0.5.1 lib/fortnox/api/mappers/invoice_row.rb
fortnox-api-0.5.0 lib/fortnox/api/mappers/invoice_row.rb
fortnox-api-0.4.0 lib/fortnox/api/mappers/invoice_row.rb
fortnox-api-0.3.0 lib/fortnox/api/mappers/invoice_row.rb
fortnox-api-0.2.0 lib/fortnox/api/mappers/invoice_row.rb