lib/fortnox/api/mappers/invoice_row.rb
# frozen_string_literal: true
require_relative 'base'
module Fortnox
module API
module Mapper
class InvoiceRow < Fortnox::API::Mapper::Base
KEY_MAP = {
housework: 'HouseWork',
housework_hours_to_report: 'HouseWorkHoursToReport',
housework_type: 'HouseWorkType',
price_excluding_vat: 'PriceExcludingVAT',
total_excluding_vat: 'TotalExcludingVAT',
vat: 'VAT'
}.freeze
JSON_ENTITY_WRAPPER = 'InvoiceRow'
JSON_COLLECTION_WRAPPER = 'InvoiceRows'
end
Registry.register(InvoiceRow.canonical_name_sym, InvoiceRow)
Registry.register(:invoicerows, InvoiceRow)
end
end
end