Sha256: 47de85f3a25910d695602fb0fbaf40313fde37be12227990c4e1806f86d26258

Contents?: true

Size: 654 Bytes

Versions: 3

Compression:

Stored size: 654 Bytes

Contents

# frozen_string_literal: true

require_relative 'base'
require_relative 'edi_information'
require_relative 'email_information'
require_relative 'order_row'

module Fortnox
  module API
    module Mapper
      class Order < Fortnox::API::Mapper::Base
        KEY_MAP = {
          administration_fee_vat: 'AdministrationFeeVAT',
          freight_vat: 'FreightVAT',
          housework: 'HouseWork',
          total_vat: 'TotalVAT',
          vat_included: 'VATIncluded'
        }.freeze
        JSON_ENTITY_WRAPPER = 'Order'
        JSON_COLLECTION_WRAPPER = 'Orders'
      end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fortnox-api-0.8.2 lib/fortnox/api/mappers/order.rb
fortnox-api-0.8.1 lib/fortnox/api/mappers/order.rb
fortnox-api-0.9.0 lib/fortnox/api/mappers/order.rb