<?php

namespace Modules\RemoteData\EntityManagementWs\Model\Entity\Corporate;

class Update extends \Modules\RemoteData\EntityManagementWs\Model\Entity\UpdateAbstract
{

	/**
	 * The entity fields - so we can easily and automatically associate them in the entity (values
	 * are taken from request body). This is an associative array.
	 * @var array
	 */
	protected $entityFields = [
		'status', 'type', 'idSegment', 'alias', 'idTrust',
  'fiscalCode', 'regNo', 'registryAddress', 'incomeTaxPayer', 'vatRegistered', 'vatCertificateNumber',
		'liablePerson', 'telephone', 'fax', 'email', 'website', 'comments', 'locked', 'lockedComments', 'idAccountManager',
		'idDomain', 'idDomainCategory', 'statusComments', 'remarks',
		'companyStandard', 'companyLocal', 'companyPrefixStandard', 'companyPrefixLocal', 'companySuffixStandard', 'companySuffixLocal', 'accountingNumber', 'euid',
	];

	/**
	 * {@inheritDoc}
	 * @see \Modules\RemoteData\EntityManagementWs\Model\Entity\InsertAbstract::initEntityObject()
	 */
	protected function initEntityObject() :\App\Entity\GeneralAbstract
	{
		return \Entity\Corporate::update($this->id);
	}

}
