/**
  * @test
  */
 public function allFieldsCanBeSet()
 {
     $in = ['legal_entity_type' => 'A', 'account_name' => 'B', 'brand' => 'C', 'your_reference' => 'D', 'status' => 'E', 'street' => 'F', 'city' => 'G', 'state_or_province' => 'H', 'country' => 'I', 'postal_code' => 'J', 'spread_table' => 'K', 'identification_type' => 'L', 'identification_value' => 'M', 'on_behalf_of' => null];
     $entryPoint = new AccountsEntryPoint(new SimpleEntityManager(), $this->getMockedClient(json_decode(json_encode($this->out)), 'POST', 'accounts/create', [], $in));
     $account = Account::create('B', 'A')->setBrand('C')->setYourReference('D')->setStatus('E')->setStreet('F')->setCity('G')->setStateOrProvince('H')->setCountry('I')->setPostalCode('J')->setSpreadTable('K')->setIdentificationType('L')->setIdentificationValue('M')->setShortReference('N');
     $account = $entryPoint->create($account);
     $this->validateObjectStrictName($account, $this->out);
 }
 /**
  * @param Account $account
  * @param bool $convertForSearch
  *
  * @return array
  */
 public function convertAccountToRequest(Account $account, $convertForSearch = false)
 {
     $common = ['legal_entity_type' => $account->getLegalEntityType(), 'account_name' => $account->getAccountName(), 'your_reference' => $account->getYourReference(), 'status' => $account->getStatus(), 'street' => $account->getStreet(), 'city' => $account->getCity(), 'state_or_province' => $account->getStateOrProvince(), 'postal_code' => $account->getPostalCode(), 'country' => $account->getCountry(), 'brand' => $account->getBrand()];
     if ($convertForSearch) {
         return $common;
     }
     return $common + ['spread_table' => $account->getSpreadTable(), 'identification_type' => $account->getIdentificationType(), 'identification_value' => $account->getIdentificationValue()];
 }