AddressInterface.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Api\Data\Checkout;
  6. /**
  7. * Checkout shipping address extension interface
  8. *
  9. * @api
  10. * @package Temando\Shipping\Api
  11. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  12. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  13. * @link http://www.temando.com/
  14. */
  15. interface AddressInterface
  16. {
  17. const ENTITY_ID = 'entity_id';
  18. const SHIPPING_ADDRESS_ID = 'shipping_address_id';
  19. const SERVICE_SELECTION = 'service_selection';
  20. /**
  21. * @return int
  22. */
  23. public function getEntityId();
  24. /**
  25. * @param int $entityId
  26. * @return void
  27. */
  28. public function setEntityId($entityId);
  29. /**
  30. * @return int
  31. */
  32. public function getShippingAddressId();
  33. /**
  34. * @param int $addressId
  35. * @return void
  36. */
  37. public function setShippingAddressId($addressId);
  38. /**
  39. * @return \Magento\Framework\Api\AttributeInterface[]
  40. */
  41. public function getServiceSelection();
  42. /**
  43. * @param \Magento\Framework\Api\AttributeInterface[] $services
  44. * @return void
  45. */
  46. public function setServiceSelection(array $services);
  47. }