Class: Fortnox::API::Mapper::Article

Inherits:
Base
  • Object
show all
Defined in:
lib/fortnox/api/mappers/article.rb

Constant Summary collapse

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'

Method Summary

Methods inherited from Base

#diff

Methods included from CanonicalNameSym

#canonical_name_sym

Methods included from ToJSON

#entity_to_hash, included, #wrap_entity_json_hash

Methods included from FromJSON

#wrapped_json_collection_to_entities_hash, #wrapped_json_hash_to_entity_hash