8 месяцев назад
История
README.md
multicurtest-account-administrations-service
Divan.ru test task: Service for adminitration bank-accounts by customer
Description
Service for account administration operations.
Aggregations of business context:
- BankAccountRec
Source structure
- managers
- AvailableCurrencyManagerInterface
- BankAccountManagerInterface
- records
- BankAccountRecInterface AccountAdministrationService
API
<?php
namespace Pantagruel74\MulticurtestAccountAdministrationsService;
/**
* Service for account administration operations.
*/
final class AccountAdministrationsService
{
/**
* Create new account with one currency, that will be default for account.
* @param string $mainCurrency
* @return void
*/
public function createAccountWithOneCurrency(
string $mainCurrency
): void {...}
/**
* Add more currencies, exists in the bank, as available in account.
* @param string $accountId
* @param string[] $currencies
* @return void
*/
public function addCurrenciesToAccount(
string $accountId,
array $currencies
): void {...}
/**
* Set new main currency of account from list of available currencies
* in the account.
* @param string $accountId
* @param string $curId
* @return void
*/
public function setMainCurrencyToAccount(
string $accountId,
string $curId
): void {...}
/**
* Get list of all available currencies in account.
* @param string $accountId
* @return string[]
*/
public function getListOfCurrenciesInAccount(
string $accountId
): array {...}
/**
* Get main currency of account id.
* @param string $accountId
* @return string
*/
public function getMainCurrencyOfAccount(
string $accountId
): string {...}
}
Описание
Divan.ru test task: Service for adminitration bank-accounts by customer
Конвейеры
0 успешных
0 с ошибкой