public function build()
 {
     if (!$this->isManaged()) {
         Tebru\assertThat(null !== $this->getEmail(), 'If managed is false, email must be set');
     }
     if (null === $this->getCountry()) {
         $this->setCountry('US');
     }
     $account = new Account();
     $account->setManaged($this->isManaged());
     $account->setCountry($this->getCountry());
     $account->setEmail($this->getEmail());
     return $account;
 }
 public function build()
 {
     $account = new Account();
     $account->setBusinessLogo($this->getBusinessLogo());
     $account->setBusinessName($this->getBusinessName());
     $account->setBusinessPrimaryColor($this->getBusinessPrimaryColor());
     $account->setBusinessUrl($this->getBusinessUrl());
     $account->setSupportEmail($this->getSupportEmail());
     $account->setSupportPhone($this->getSupportPhone());
     $account->setSupportUrl($this->getSupportUrl());
     $account->setDebitNegativeBalances($this->isDebitNegativeBalances());
     $account->setDeclineChargeOn($this->getDeclineChargeOn());
     $account->setDefaultCurrency($this->getDefaultCurrency());
     $account->setEmail($this->getEmail());
     $account->setLegalEntity($this->getLegalEntity());
     $account->setProductDescription($this->getProductDescription());
     $account->setStatementDescriptor($this->getStatementDescriptor());
     $account->setTosAcceptance($this->getTosAcceptance());
     $account->setTransferSchedule($this->getTransferSchedule());
     $account->setMetadata($this->getMetadata());
     $accountRequest = new AccountRequest();
     $accountRequest->setBankAccount($this->getBankAccount());
     $account->setRequest($accountRequest);
     return $account;
 }