Sha256: 967743a8020a60cf8904d952af8fe454ed60c44a90d1db56aafb062413601444

Contents?: true

Size: 748 Bytes

Versions: 6

Compression:

Stored size: 748 Bytes

Contents

require "fortnox/api/mappers/base"

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

        KEY_MAP = {
          edi_global_location_number: 'EDIGlobalLocationNumber',
          edi_global_location_number_delivery: 'EDIGlobalLocationNumberDelivery',
          edi_invoice_extra1: 'EDIInvoiceExtra1',
          edi_invoice_extra2: 'EDIInvoiceExtra2',
          edi_our_electronic_reference: 'EDIOurElectronicReference',
          edi_your_electronic_reference: 'EDIYourElectronicReference'
        }.freeze
        JSON_ENTITY_WRAPPER = JSON_COLLECTION_WRAPPER = 'EDIInformation'.freeze
      end

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

Version data entries

6 entries across 6 versions & 1 rubygems

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