TaxClassManagementInterface.php 650 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Tax\Api;
  8. /**
  9. * Interface for managing classes rates.
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface TaxClassManagementInterface
  14. {
  15. /**#@+
  16. * Tax class type.
  17. */
  18. const TYPE_CUSTOMER = 'CUSTOMER';
  19. const TYPE_PRODUCT = 'PRODUCT';
  20. /**#@-*/
  21. /**
  22. * Get tax class id
  23. *
  24. * @param \Magento\Tax\Api\Data\TaxClassKeyInterface|null $taxClassKey
  25. * @param string $taxClassType
  26. * @return int|null
  27. */
  28. public function getTaxClassId($taxClassKey, $taxClassType = self::TYPE_PRODUCT);
  29. }