ProductPriceMapperInterface

Extends

Interface ProductPriceMapperInterface

category

System

package

ProductPrice

subpackage

Repositories

Methods

Deletes the product price from the storage.

delete(\ProductPriceInterface $productPrice) : \ProductPriceInterface

Arguments

$productPrice

\ProductPriceInterface

Product price to be removed.

Response

\ProductPriceInterface

Returns the product price by given product id.

findById(\IdType $productId) : \ProductPriceInterface|null

Arguments

$productId

\IdType

Response

\ProductPriceInterface|null

Returns the product prices that matches the given search condition.

findByQuantity(\IdType $productId, \IdType $customerGroupId, \DecimalType $quantity) : \GraduatedPriceInterface|null

Arguments

$productId

\IdType

Product id.

$customerGroupId

\IdType

Customer group id.

$quantity

\DecimalType

Quantity.

Response

\GraduatedPriceInterface|null

Saves or updates the given product price in the storage.

save(\ProductPriceInterface $productPrice, \IdType $productId) : \ProductPriceInterface

Arguments

$productPrice

\ProductPriceInterface

Product price to be saved or updated.

$productId

\IdType

Id of product to be updated.

Response

\ProductPriceInterface