Sha256: 78e7a545334c9a1b1f376073ef7eaabc75b145985891c1382dc58a1738ec7fc7

Contents?: true

Size: 481 Bytes

Versions: 4

Compression:

Stored size: 481 Bytes

Contents

require "fortnox/api/mappers/base"

module Fortnox
  module API
    module Mapper
      class Article < Fortnox::API::Mapper::Base

        KEY_MAP = {
          ean: 'EAN',
          eu_account: 'EUAccount',
          eu_vat_account: 'EUVATAccount',
          vat: 'VAT'
        }.freeze
        JSON_ENTITY_WRAPPER = 'Article'.freeze
        JSON_COLLECTION_WRAPPER = 'Articles'.freeze

      end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fortnox-api-0.5.2 lib/fortnox/api/mappers/article.rb
fortnox-api-0.5.1 lib/fortnox/api/mappers/article.rb
fortnox-api-0.5.0 lib/fortnox/api/mappers/article.rb
fortnox-api-0.4.0 lib/fortnox/api/mappers/article.rb