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

Constants inherited from Base

Base::Hash

Method Summary

Methods inherited from Base

canonical_name_sym, #diff

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