1 <?php
2
3 namespace PayPal\Api;
4
5 /**
6 * Class ShippingAddress
7 *
8 * Extended Address object used as shipping address in a payment.
9 *
10 * @package PayPal\Api
11 *
12 * @property string recipient_name
13 */
14 class ShippingAddress extends Address
15 {
16 /**
17 * Address ID assigned in PayPal system.
18 * @deprecated Not publicly available
19 * @param string $id
20 *
21 * @return $this
22 */
23 public function setId($id)
24 {
25 $this->id = $id;
26 return $this;
27 }
28
29 /**
30 * Address ID assigned in PayPal system.
31 * @deprecated Not publicly available
32 * @return string
33 */
34 public function getId()
35 {
36 return $this->id;
37 }
38
39 /**
40 * Name of the recipient at this address.
41 *
42 * @param string $recipient_name
43 *
44 * @return $this
45 */
46 public function setRecipientName($recipient_name)
47 {
48 $this->recipient_name = $recipient_name;
49 return $this;
50 }
51
52 /**
53 * Name of the recipient at this address.
54 *
55 * @return string
56 */
57 public function getRecipientName()
58 {
59 return $this->recipient_name;
60 }
61
62 /**
63 * Default shipping address of the Payer.
64 * @deprecated Not publicly available
65 * @param bool $default_address
66 *
67 * @return $this
68 */
69 public function setDefaultAddress($default_address)
70 {
71 $this->default_address = $default_address;
72 return $this;
73 }
74
75 /**
76 * Default shipping address of the Payer.
77 * @deprecated Not publicly available
78 * @return bool
79 */
80 public function getDefaultAddress()
81 {
82 return $this->default_address;
83 }
84
85 /**
86 * Shipping Address marked as preferred by Payer.
87 * @deprecated Not publicly available
88 * @param bool $preferred_address
89 *
90 * @return $this
91 */
92 public function setPreferredAddress($preferred_address)
93 {
94 $this->preferred_address = $preferred_address;
95 return $this;
96 }
97
98 /**
99 * Shipping Address marked as preferred by Payer.
100 * @deprecated Not publicly available
101 * @return bool
102 */
103 public function getPreferredAddress()
104 {
105 return $this->preferred_address;
106 }
107
108 }
109