Copied!

ProductPriceServiceInterface

ProductPriceServiceInterface.php : 22

Methods

publiccreateProductPrice()

ProductPriceServiceInterface.php : 35
public createProductPrice(ProductPriceCreateStructInterface $struct) : PriceInterface

Parameters

Name Type Default value Description
$struct ProductPriceCreateStructInterface - -

Return values

PriceInterface

publicdeletePrice()

ProductPriceServiceInterface.php : 29
public deletePrice(ProductPriceDeleteStructInterface $struct) : void

Parameters

Name Type Default value Description
$struct ProductPriceDeleteStructInterface - -

publicexecute()

ProductPriceServiceInterface.php : 27
public execute(iterable<string|int, ProductPriceStructInterface$structs) : void

Parameters

Name Type Default value Description
$structs iterable<string|int, ProductPriceStructInterface> - -

publicfindOneForCustomerGroup()

ProductPriceServiceInterface.php : 39
public findOneForCustomerGroup(PriceInterface $price, CustomerGroupInterface $customerGroup) : CustomPriceAwareInterface|null

Parameters

Name Type Default value Description
$price PriceInterface - -
$customerGroup CustomerGroupInterface - -

Return values

CustomPriceAwareInterface|null

publicfindPrices()

ProductPriceServiceInterface.php : 31
public findPrices([PriceQuery|null $query = null ]) : PriceListInterface

Parameters

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

Return values

PriceListInterface

publicfindPricesByProductCode()

ProductPriceServiceInterface.php : 33
public findPricesByProductCode(string $code) : PriceListInterface

Parameters

Name Type Default value Description
$code string - -

Return values

PriceListInterface

publicgetPriceById()

ProductPriceServiceInterface.php : 49
public getPriceById(int $id) : PriceInterface

Parameters

Name Type Default value Description
$id int - -

Return values

PriceInterface

Tags
Throws
NotFoundException

publicgetPriceByProductAndCurrency()

ProductPriceServiceInterface.php : 44
public getPriceByProductAndCurrency(ProductInterface $product, CurrencyInterface $currency) : PriceInterface

Parameters

Name Type Default value Description
$product ProductInterface - -
$currency CurrencyInterface - -

Return values

PriceInterface

Tags
Throws
NotFoundException

publicupdateProductPrice()

ProductPriceServiceInterface.php : 37
public updateProductPrice(ProductPriceUpdateStructInterface $struct) : PriceInterface

Parameters

Name Type Default value Description
$struct ProductPriceUpdateStructInterface - -

Return values

PriceInterface