4 use PayPal\Common\PPModel;
6 class Address extends PPModel {
8 * Line 1 of the Address (eg. number, street, etc).
11 public function setLine1($line1) {
12 $this->line1 = $line1;
17 * Line 1 of the Address (eg. number, street, etc).
20 public function getLine1() {
26 * Optional line 2 of the Address (eg. suite, apt #, etc.).
27 * @param string $line2
29 public function setLine2($line2) {
30 $this->line2 = $line2;
35 * Optional line 2 of the Address (eg. suite, apt #, etc.).
38 public function getLine2() {
47 public function setCity($city) {
56 public function getCity() {
62 * 2 letter country code.
63 * @param string $country_code
65 public function setCountryCode($country_code) {
66 $this->country_code = $country_code;
71 * 2 letter country code.
74 public function getCountryCode() {
75 return $this->country_code;
79 * 2 letter country code.
80 * @param string $country_code
81 * @deprecated. Instead use setCountryCode
83 public function setCountry_code($country_code) {
84 $this->country_code = $country_code;
88 * 2 letter country code.
90 * @deprecated. Instead use getCountryCode
92 public function getCountry_code() {
93 return $this->country_code;
97 * 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.
98 * @param string $postal_code
100 public function setPostalCode($postal_code) {
101 $this->postal_code = $postal_code;
106 * 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.
109 public function getPostalCode() {
110 return $this->postal_code;
114 * 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.
115 * @param string $postal_code
116 * @deprecated. Instead use setPostalCode
118 public function setPostal_code($postal_code) {
119 $this->postal_code = $postal_code;
123 * 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.
125 * @deprecated. Instead use getPostalCode
127 public function getPostal_code() {
128 return $this->postal_code;
132 * 2 letter code for US states, and the equivalent for other countries.
133 * @param string $state
135 public function setState($state) {
136 $this->state = $state;
141 * 2 letter code for US states, and the equivalent for other countries.
144 public function getState() {
150 * Phone number in E.123 format.
151 * @param string $phone
153 public function setPhone($phone) {
154 $this->phone = $phone;
159 * Phone number in E.123 format.
162 public function getPhone() {