Sha256: fc7b44f2a3aea06d3a0343e666dfae75ece6e74250d35c7d1e11ff1a2c5fb601

Contents?: true

Size: 537 Bytes

Versions: 8

Compression:

Stored size: 537 Bytes

Contents

# frozen_string_literal: true

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',
          housework_type: 'HouseWorkType',
          vat: 'VAT'
        }.freeze
        JSON_ENTITY_WRAPPER = 'Article'
        JSON_COLLECTION_WRAPPER = 'Articles'
      end

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

Version data entries

8 entries across 8 versions & 1 rubygems

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