AddressInterface.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. /**
  3. * This file is part of the Klarna KP module
  4. *
  5. * (c) Klarna Bank AB (publ)
  6. *
  7. * For the full copyright and license information, please view the NOTICE
  8. * and LICENSE files that were distributed with this source code.
  9. */
  10. namespace Klarna\Kp\Api\Data;
  11. /**
  12. * Interface AddressInterface
  13. *
  14. * @package Klarna\Kp\Api\Data
  15. */
  16. interface AddressInterface extends ApiObjectInterface
  17. {
  18. /**
  19. * Title. Possible values Mr or Mrs
  20. *
  21. * @param string $title
  22. */
  23. public function setTitle($title);
  24. /**
  25. * Given name. [REQUIRED field]
  26. *
  27. * @param string $given_name
  28. */
  29. public function setGivenName($given_name);
  30. /**
  31. * Family name. [REQUIRED field]
  32. *
  33. * @param string $family_name
  34. */
  35. public function setFamilyName($family_name);
  36. /**
  37. * E+mail address. [REQUIRED field]
  38. *
  39. * @param string $email
  40. */
  41. public function setEmail($email);
  42. /**
  43. * Phone number.
  44. *
  45. * @param string $phone
  46. */
  47. public function setPhone($phone);
  48. /**
  49. * Street address, first line. [REQUIRED field]
  50. *
  51. * @param string $street_address
  52. */
  53. public function setStreetAddress($street_address);
  54. /**
  55. * Street address, second line.
  56. *
  57. * @param string $street_address
  58. */
  59. public function setStreetAddress2($street_address);
  60. /**
  61. * City. [REQUIRED field]
  62. *
  63. * @param string $city
  64. */
  65. public function setCity($city);
  66. /**
  67. * Region
  68. *
  69. * @param string $region
  70. */
  71. public function setRegion($region);
  72. /**
  73. * Postal/post code. [REQUIRED field]
  74. *
  75. * @param string $postal_code
  76. */
  77. public function setPostalCode($postal_code);
  78. /**
  79. * ISO 3166 alpha+2: Country. [REQUIRED field]
  80. *
  81. * @param string $country
  82. */
  83. public function setCountry($country);
  84. }