1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class ShippingInfo
9 *
10 * Shipping information for the invoice recipient.
11 *
12 * @package PayPal\Api
13 *
14 * @property string first_name
15 * @property string last_name
16 * @property string business_name
17 * @property \PayPal\Api\Phone phone
18 * @property \PayPal\Api\InvoiceAddress address
19 */
20 class ShippingInfo extends PayPalModel
21 {
22 /**
23 * The invoice recipient first name. Maximum length is 30 characters.
24 *
25 * @param string $first_name
26 *
27 * @return $this
28 */
29 public function setFirstName($first_name)
30 {
31 $this->first_name = $first_name;
32 return $this;
33 }
34
35 /**
36 * The invoice recipient first name. Maximum length is 30 characters.
37 *
38 * @return string
39 */
40 public function getFirstName()
41 {
42 return $this->first_name;
43 }
44
45 /**
46 * The invoice recipient last name. Maximum length is 30 characters.
47 *
48 * @param string $last_name
49 *
50 * @return $this
51 */
52 public function setLastName($last_name)
53 {
54 $this->last_name = $last_name;
55 return $this;
56 }
57
58 /**
59 * The invoice recipient last name. Maximum length is 30 characters.
60 *
61 * @return string
62 */
63 public function getLastName()
64 {
65 return $this->last_name;
66 }
67
68 /**
69 * The invoice recipient company business name. Maximum length is 100 characters.
70 *
71 * @param string $business_name
72 *
73 * @return $this
74 */
75 public function setBusinessName($business_name)
76 {
77 $this->business_name = $business_name;
78 return $this;
79 }
80
81 /**
82 * The invoice recipient company business name. Maximum length is 100 characters.
83 *
84 * @return string
85 */
86 public function getBusinessName()
87 {
88 return $this->business_name;
89 }
90
91 /**
92 *
93 *
94 * @param \PayPal\Api\Phone $phone
95 * @return $this
96 */
97 public function setPhone($phone)
98 {
99 $this->phone = $phone;
100 return $this;
101 }
102
103 /**
104 *
105 *
106 * @return \PayPal\Api\Phone
107 */
108 public function getPhone()
109 {
110 return $this->phone;
111 }
112
113 /**
114 * @deprecated Not used anymore
115 *
116 * @param string $email
117 * @return $this
118 */
119 public function setEmail($email)
120 {
121 $this->email = $email;
122 return $this;
123 }
124
125 /**
126 * @deprecated Not used anymore
127 *
128 * @return string
129 */
130 public function getEmail()
131 {
132 return $this->email;
133 }
134
135 /**
136 * Address of the invoice recipient.
137 *
138 * @param \PayPal\Api\InvoiceAddress $address
139 *
140 * @return $this
141 */
142 public function setAddress($address)
143 {
144 $this->address = $address;
145 return $this;
146 }
147
148 /**
149 * The invoice recipient address.
150 *
151 * @return \PayPal\Api\InvoiceAddress
152 */
153 public function getAddress()
154 {
155 return $this->address;
156 }
157
158 }
159