ProductTierPriceManagementInterface.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. * @deprecated 102.0.0 use ScopedProductTierPriceManagementInterface instead
  11. * @since 100.0.2
  12. */
  13. interface ProductTierPriceManagementInterface
  14. {
  15. /**
  16. * Create tier price for product
  17. *
  18. * @param string $sku
  19. * @param string $customerGroupId 'all' can be used to specify 'ALL GROUPS'
  20. * @param float $price
  21. * @param float $qty
  22. * @return boolean
  23. * @throws \Magento\Framework\Exception\NoSuchEntityException
  24. * @throws \Magento\Framework\Exception\CouldNotSaveException
  25. */
  26. public function add($sku, $customerGroupId, $price, $qty);
  27. /**
  28. * Remove tier price from product
  29. *
  30. * @param string $sku
  31. * @param string $customerGroupId 'all' can be used to specify 'ALL GROUPS'
  32. * @param float $qty
  33. * @return boolean
  34. * @throws \Magento\Framework\Exception\NoSuchEntityException
  35. * @throws \Magento\Framework\Exception\CouldNotSaveException
  36. */
  37. public function remove($sku, $customerGroupId, $qty);
  38. /**
  39. * Get tier price of product
  40. *
  41. * @param string $sku
  42. * @param string $customerGroupId 'all' can be used to specify 'ALL GROUPS'
  43. * @return \Magento\Catalog\Api\Data\ProductTierPriceInterface[]
  44. * @throws \Magento\Framework\Exception\NoSuchEntityException
  45. */
  46. public function getList($sku, $customerGroupId);
  47. }