EstimateAddressInterface.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Quote\Api\Data;
  7. /**
  8. * Interface EstimateAddressInterface
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface EstimateAddressInterface extends \Magento\Framework\Api\CustomAttributesDataInterface
  13. {
  14. /**#@+
  15. * Constants defined for keys of array, makes typos less likely
  16. */
  17. const KEY_COUNTRY_ID = 'country_id';
  18. const KEY_REGION_ID = 'region_id';
  19. const KEY_REGION = 'region';
  20. const KEY_POSTCODE = 'postcode';
  21. /**#@-*/
  22. /**
  23. * Get region name
  24. *
  25. * @return string
  26. */
  27. public function getRegion();
  28. /**
  29. * Set region name
  30. *
  31. * @param string $region
  32. * @return $this
  33. */
  34. public function setRegion($region);
  35. /**
  36. * Get region id
  37. *
  38. * @return int
  39. */
  40. public function getRegionId();
  41. /**
  42. * Set region id
  43. *
  44. * @param int $regionId
  45. * @return $this
  46. */
  47. public function setRegionId($regionId);
  48. /**
  49. * Get country id
  50. *
  51. * @return string
  52. */
  53. public function getCountryId();
  54. /**
  55. * Set country id
  56. *
  57. * @param string $countryId
  58. * @return $this
  59. */
  60. public function setCountryId($countryId);
  61. /**
  62. * Get postcode
  63. *
  64. * @return string
  65. */
  66. public function getPostcode();
  67. /**
  68. * Set postcode
  69. *
  70. * @param string $postcode
  71. * @return $this
  72. */
  73. public function setPostcode($postcode);
  74. /**
  75. * Retrieve existing extension attributes object or create a new one.
  76. *
  77. * @return \Magento\Quote\Api\Data\EstimateAddressExtensionInterface|null
  78. */
  79. public function getExtensionAttributes();
  80. /**
  81. * Set an extension attributes object.
  82. *
  83. * @param \Magento\Quote\Api\Data\EstimateAddressExtensionInterface $extensionAttributes
  84. * @return $this
  85. */
  86. public function setExtensionAttributes(
  87. \Magento\Quote\Api\Data\EstimateAddressExtensionInterface $extensionAttributes
  88. );
  89. }