CancelIdentity.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Model\Sales\Email\Shipment;
  6. use Magento\Sales\Model\Order\Email\Container\ShipmentIdentity;
  7. /**
  8. * Temando Shipment Canceled Identity.
  9. *
  10. * @package Temando\Shipping\Model
  11. * @author Nathan Wilson <cnathan.wilson@temando.com>
  12. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  13. * @link https://www.temando.com/
  14. */
  15. class CancelIdentity extends ShipmentIdentity
  16. {
  17. /**
  18. * Configuration paths
  19. */
  20. const XML_PATH_EMAIL_CANCEL_GUEST_TEMPLATE = 'sales_email/shipment/cancel_guest_template';
  21. const XML_PATH_EMAIL_CANCEL_TEMPLATE = 'sales_email/shipment/cancel_template';
  22. /**
  23. * Return guest template id
  24. *
  25. * @return mixed
  26. */
  27. public function getGuestTemplateId()
  28. {
  29. return $this->getConfigValue(self::XML_PATH_EMAIL_CANCEL_GUEST_TEMPLATE, $this->getStore()->getStoreId());
  30. }
  31. /**
  32. * Return template id
  33. *
  34. * @return mixed
  35. */
  36. public function getTemplateId()
  37. {
  38. return $this->getConfigValue(self::XML_PATH_EMAIL_CANCEL_TEMPLATE, $this->getStore()->getStoreId());
  39. }
  40. }