Copied!

CurrencyServiceInterface

CurrencyServiceInterface.php : 17

Methods

publiccreateCurrency()

CurrencyServiceInterface.php : 23
public createCurrency(CurrencyCreateStruct $struct) : CurrencyInterface

Parameters

Name Type Default value Description
$struct CurrencyCreateStruct - -

Return values

CurrencyInterface

Tags
Throws
InvalidArgumentException
Throws
UnauthorizedException

publicdeleteCurrency()

CurrencyServiceInterface.php : 39
public deleteCurrency(CurrencyInterface $currency) : void

Parameters

Name Type Default value Description
$currency CurrencyInterface - -
Tags
Throws
NotFoundException
Throws
UnauthorizedException

publicfindCurrencies()

CurrencyServiceInterface.php : 41
public findCurrencies([CurrencyQuery|null $query = null ]) : CurrencyListInterface

Parameters

Name Type Default value Description
$query CurrencyQuery|null null -

Return values

CurrencyListInterface

publicgetCurrency()

CurrencyServiceInterface.php : 28
public getCurrency(int $id) : CurrencyInterface

Parameters

Name Type Default value Description
$id int - -

Return values

CurrencyInterface

Tags
Throws
NotFoundException

publicgetCurrencyByCode()

CurrencyServiceInterface.php : 33
public getCurrencyByCode(string $code) : CurrencyInterface

Parameters

Name Type Default value Description
$code string - -

Return values

CurrencyInterface

Tags
Throws
NotFoundException

publicupdateCurrency()

CurrencyServiceInterface.php : 47
public updateCurrency(CurrencyInterface $currency, CurrencyUpdateStruct $struct) : CurrencyInterface

Parameters

Name Type Default value Description
$currency CurrencyInterface - -
$struct CurrencyUpdateStruct - -

Return values

CurrencyInterface

Tags
Throws
InvalidArgumentException
Throws
UnauthorizedException