AmazonAddressInterface.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?php
  2. /**
  3. * Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License").
  6. * You may not use this file except in compliance with the License.
  7. * A copy of the License is located at
  8. *
  9. * http://aws.amazon.com/apache2.0
  10. *
  11. * or in the "license" file accompanying this file. This file is distributed
  12. * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  13. * express or implied. See the License for the specific language governing
  14. * permissions and limitations under the License.
  15. */
  16. namespace Amazon\Core\Api\Data;
  17. /**
  18. * @api
  19. */
  20. interface AmazonAddressInterface
  21. {
  22. const FIRST_NAME = 'first_name';
  23. const LAST_NAME = 'last_name';
  24. const CITY = 'city';
  25. const POSTAL_CODE = 'postal_code';
  26. const COUNTRY_CODE = 'country_code';
  27. const TELEPHONE = 'telephone';
  28. const STATE_OR_REGION = 'state';
  29. const LINES = 'lines';
  30. const COMPANY = 'company';
  31. /**
  32. * Get first name
  33. *
  34. * @return string
  35. */
  36. public function getFirstName();
  37. /**
  38. * Get last name
  39. *
  40. * @return string
  41. */
  42. public function getLastName();
  43. /**
  44. * Get address lines
  45. *
  46. * @return array
  47. */
  48. public function getLines();
  49. /**
  50. * Get an address line
  51. *
  52. * @param int $lineNumber
  53. * @return null|string
  54. */
  55. public function getLine($lineNumber);
  56. /**
  57. * Get city
  58. *
  59. * @return string
  60. */
  61. public function getCity();
  62. /**
  63. * Get state
  64. *
  65. * @return string
  66. */
  67. public function getState();
  68. /**
  69. * Get postal code
  70. *
  71. * @return string
  72. */
  73. public function getPostCode();
  74. /**
  75. * Get country code
  76. *
  77. * @return string
  78. */
  79. public function getCountryCode();
  80. /**
  81. * Get telephone
  82. *
  83. * @return string
  84. */
  85. public function getTelephone();
  86. /**
  87. * Get company name
  88. *
  89. * @return string
  90. */
  91. public function getCompany();
  92. }