ScopedProductTierPriceManagementInterface.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Catalog\Api;
  8. /**
  9. * @api
  10. * @since 102.0.0
  11. */
  12. interface ScopedProductTierPriceManagementInterface
  13. {
  14. /**
  15. * Create tier price for product
  16. *
  17. * @param string $sku
  18. * @param \Magento\Catalog\Api\Data\ProductTierPriceInterface $tierPrice
  19. * @return boolean
  20. * @throws \Magento\Framework\Exception\NoSuchEntityException
  21. * @throws \Magento\Framework\Exception\CouldNotSaveException
  22. * @since 102.0.0
  23. */
  24. public function add($sku, \Magento\Catalog\Api\Data\ProductTierPriceInterface $tierPrice);
  25. /**
  26. * Remove tier price from product
  27. *
  28. * @param string $sku
  29. * @param \Magento\Catalog\Api\Data\ProductTierPriceInterface $tierPrice
  30. * @return boolean
  31. * @throws \Magento\Framework\Exception\NoSuchEntityException
  32. * @throws \Magento\Framework\Exception\CouldNotSaveException
  33. * @since 102.0.0
  34. */
  35. public function remove($sku, \Magento\Catalog\Api\Data\ProductTierPriceInterface $tierPrice);
  36. /**
  37. * Get tier price of product
  38. *
  39. * @param string $sku
  40. * @param string $customerGroupId 'all' can be used to specify 'ALL GROUPS'
  41. * @return \Magento\Catalog\Api\Data\ProductTierPriceInterface[]
  42. * @throws \Magento\Framework\Exception\NoSuchEntityException
  43. * @since 102.0.0
  44. */
  45. public function getList($sku, $customerGroupId);
  46. }