<?php

namespace Oro\Bundle\CurrencyBundle\Provider;

use Oro\Bundle\OrganizationBundle\Entity\Organization;

interface RepositoryCurrencyProviderInterface
{
    /**
     * Returns list of unique currency codes from entity that contains multi-currency fields
     *
     * @param Organization|null $organization
     * @return string[]
     */
    public function getCurrencyList(Organization $organization = null);
}

<?php

namespace Oro\Bundle\CurrencyBundle\Provider;

use Oro\Bundle\OrganizationBundle\Entity\Organization;

interface RepositoryCurrencyProviderInterface
{
    /**
     * Return translated label of entity
     *
     * @return string
     */
    public function getEntityLabel();

    /**
     * @param array             $availableCurrencies
     * @param Organization|null $organization
     *
     * @return bool
     */
    public function hasRecordsInUnavailableCurrencies(
        array $availableCurrencies,
        Organization $organization = null
    );
}

Add multi-curency validator to available currency form
OEE-1164: Add multi-curency validator to available currency form
