Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
TierPriceStorageInterface Interface Reference
Inheritance diagram for TierPriceStorageInterface:
TierPriceStorage

Public Member Functions

 get (array $skus)
 
 update (array $prices)
 
 replace (array $prices)
 
 delete (array $prices)
 

Detailed Description

Tier prices storage. @api

Since
102.0.0

Definition at line 14 of file TierPriceStorageInterface.php.

Member Function Documentation

◆ delete()

delete ( array  $prices)

Delete product tier prices. If any items will have invalid price, price type, website id, sku, customer group or quantity, they will be marked as failed and excluded from delete list and \Magento\Catalog\Api\Data\PriceUpdateResultInterface[] with problem description will be returned. If there were no failed items during update empty array will be returned. If error occurred during the update exception will be thrown.

Parameters

Implemented in TierPriceStorage.

◆ get()

get ( array  $skus)

Return product prices. In case of at least one of skus is not found exception will be thrown.

Parameters
string[]$skus
Returns
\Magento\Catalog\Api\Data\TierPriceInterface[]
Exceptions

Implemented in TierPriceStorage.

◆ replace()

replace ( array  $prices)

Remove existing tier prices and replace them with the new ones. If any items will have invalid price, price type, website id, sku, customer group or quantity, they will be marked as failed and excluded from replace list and \Magento\Catalog\Api\Data\PriceUpdateResultInterface[] with problem description will be returned. If there were no failed items during update empty array will be returned. If error occurred during the update exception will be thrown.

Parameters

Implemented in TierPriceStorage.

◆ update()

update ( array  $prices)

Add or update product prices. If any items will have invalid price, price type, website id, sku, customer group or quantity, they will be marked as failed and excluded from update list and \Magento\Catalog\Api\Data\PriceUpdateResultInterface[] with problem description will be returned. If there were no failed items during update empty array will be returned. If error occurred during the update exception will be thrown.

Parameters

Implemented in TierPriceStorage.


The documentation for this interface was generated from the following file: