CheckoutFieldInterface.php 981 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Model\Checkout\Attribute;
  6. /**
  7. * Temando Checkout Field Interface
  8. *
  9. * @package Temando\Shipping\Model
  10. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  11. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  12. * @link http://www.temando.com/
  13. */
  14. interface CheckoutFieldInterface
  15. {
  16. const FIELD_ID = 'field_id';
  17. const VALUE = 'value';
  18. const ORDER_PATH = 'order_path';
  19. /**
  20. * Obtain checkout field attribute code.
  21. *
  22. * @return mixed
  23. */
  24. public function getFieldId();
  25. /**
  26. * Obtain checkout field value as selected during checkout.
  27. *
  28. * @return mixed
  29. */
  30. public function getValue();
  31. /**
  32. * Obtain json query path for checkout field in order request.
  33. *
  34. * @return string
  35. */
  36. public function getOrderPath();
  37. }