PayPalApiBaseAddress

Class BaseAddress.

Defined (1)

The class is defined in the following location(s).

/classes/lib/PayPal/Api/BaseAddress.php  
  1. class BaseAddress extends PayPalModel 
  2. /** 
  3. * Line 1 of the Address (eg. number, street, etc). 
  4. * @param string $line1 
  5. *  
  6. * @return $this 
  7. */ 
  8. public function setLine1($line1) 
  9. $this->line1 = $line1; 
  10. return $this; 
  11.  
  12. /** 
  13. * Line 1 of the Address (eg. number, street, etc). 
  14. * @return string 
  15. */ 
  16. public function getLine1() 
  17. return $this->line1; 
  18.  
  19. /** 
  20. * Optional line 2 of the Address (eg. suite, apt #, etc.). 
  21. * @param string $line2 
  22. *  
  23. * @return $this 
  24. */ 
  25. public function setLine2($line2) 
  26. $this->line2 = $line2; 
  27. return $this; 
  28.  
  29. /** 
  30. * Optional line 2 of the Address (eg. suite, apt #, etc.). 
  31. * @return string 
  32. */ 
  33. public function getLine2() 
  34. return $this->line2; 
  35.  
  36. /** 
  37. * City name. 
  38. * @param string $city 
  39. *  
  40. * @return $this 
  41. */ 
  42. public function setCity($city) 
  43. $this->city = $city; 
  44. return $this; 
  45.  
  46. /** 
  47. * City name. 
  48. * @return string 
  49. */ 
  50. public function getCity() 
  51. return $this->city; 
  52.  
  53. /** 
  54. * 2 letter country code. 
  55. * @param string $country_code 
  56. *  
  57. * @return $this 
  58. */ 
  59. public function setCountryCode($country_code) 
  60. $this->country_code = $country_code; 
  61. return $this; 
  62.  
  63. /** 
  64. * 2 letter country code. 
  65. * @return string 
  66. */ 
  67. public function getCountryCode() 
  68. return $this->country_code; 
  69.  
  70. /** 
  71. * Zip code or equivalent is usually required for countries that have them. For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code. 
  72. * @param string $postal_code 
  73. *  
  74. * @return $this 
  75. */ 
  76. public function setPostalCode($postal_code) 
  77. $this->postal_code = $postal_code; 
  78. return $this; 
  79.  
  80. /** 
  81. * Zip code or equivalent is usually required for countries that have them. For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code. 
  82. * @return string 
  83. */ 
  84. public function getPostalCode() 
  85. return $this->postal_code; 
  86.  
  87. /** 
  88. * 2 letter code for US states, and the equivalent for other countries. 
  89. * @param string $state 
  90. *  
  91. * @return $this 
  92. */ 
  93. public function setState($state) 
  94. $this->state = $state; 
  95. return $this; 
  96.  
  97. /** 
  98. * 2 letter code for US states, and the equivalent for other countries. 
  99. * @return string 
  100. */ 
  101. public function getState() 
  102. return $this->state; 
  103.  
  104. /** 
  105. * Address normalization status 
  106. * Valid Values: ["UNKNOWN", "UNNORMALIZED_USER_PREFERRED", "NORMALIZED", "UNNORMALIZED"] 
  107. * @param string $normalization_status 
  108. * @return $this 
  109. */ 
  110. public function setNormalizationStatus($normalization_status) 
  111. $this->normalization_status = $normalization_status; 
  112. return $this; 
  113.  
  114. /** 
  115. * Address normalization status 
  116. * @return string 
  117. */ 
  118. public function getNormalizationStatus() 
  119. return $this->normalization_status; 
  120.  
  121. /** 
  122. * Address status 
  123. * Valid Values: ["CONFIRMED", "UNCONFIRMED"] 
  124. * @param string $status 
  125. * @return $this 
  126. */ 
  127. public function setStatus($status) 
  128. $this->status = $status; 
  129. return $this; 
  130.  
  131. /** 
  132. * Address status 
  133. * @return string 
  134. */ 
  135. public function getStatus() 
  136. return $this->status; 
  137.