1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6 use PayPal\Validation\UrlValidator;
7
8 /**
9 * Class Metadata
10 *
11 * Audit information for the resource.
12 *
13 * @package PayPal\Api
14 *
15 * @property string created_date
16 * @property string created_by
17 * @property string cancelled_date
18 * @property string cancelled_by
19 * @property string last_updated_date
20 * @property string last_updated_by
21 * @property string first_sent_date
22 * @property string last_sent_date
23 * @property string last_sent_by
24 * @property string payer_view_url
25 */
26 class Metadata extends PayPalModel
27 {
28 /**
29 * The date and time when the resource was created.
30 *
31 * @param string $created_date
32 *
33 * @return $this
34 */
35 public function setCreatedDate($created_date)
36 {
37 $this->created_date = $created_date;
38 return $this;
39 }
40
41 /**
42 * The date and time when the resource was created.
43 *
44 * @return string
45 */
46 public function getCreatedDate()
47 {
48 return $this->created_date;
49 }
50
51 /**
52 * The email address of the account that created the resource.
53 *
54 * @param string $created_by
55 *
56 * @return $this
57 */
58 public function setCreatedBy($created_by)
59 {
60 $this->created_by = $created_by;
61 return $this;
62 }
63
64 /**
65 * The email address of the account that created the resource.
66 *
67 * @return string
68 */
69 public function getCreatedBy()
70 {
71 return $this->created_by;
72 }
73
74 /**
75 * The date and time when the resource was cancelled.
76 *
77 * @param string $cancelled_date
78 *
79 * @return $this
80 */
81 public function setCancelledDate($cancelled_date)
82 {
83 $this->cancelled_date = $cancelled_date;
84 return $this;
85 }
86
87 /**
88 * The date and time when the resource was cancelled.
89 *
90 * @return string
91 */
92 public function getCancelledDate()
93 {
94 return $this->cancelled_date;
95 }
96
97 /**
98 * The actor who cancelled the resource.
99 *
100 * @param string $cancelled_by
101 *
102 * @return $this
103 */
104 public function setCancelledBy($cancelled_by)
105 {
106 $this->cancelled_by = $cancelled_by;
107 return $this;
108 }
109
110 /**
111 * The actor who cancelled the resource.
112 *
113 * @return string
114 */
115 public function getCancelledBy()
116 {
117 return $this->cancelled_by;
118 }
119
120 /**
121 * The date and time when the resource was last edited.
122 *
123 * @param string $last_updated_date
124 *
125 * @return $this
126 */
127 public function setLastUpdatedDate($last_updated_date)
128 {
129 $this->last_updated_date = $last_updated_date;
130 return $this;
131 }
132
133 /**
134 * The date and time when the resource was last edited.
135 *
136 * @return string
137 */
138 public function getLastUpdatedDate()
139 {
140 return $this->last_updated_date;
141 }
142
143 /**
144 * The email address of the account that last edited the resource.
145 *
146 * @param string $last_updated_by
147 *
148 * @return $this
149 */
150 public function setLastUpdatedBy($last_updated_by)
151 {
152 $this->last_updated_by = $last_updated_by;
153 return $this;
154 }
155
156 /**
157 * The email address of the account that last edited the resource.
158 *
159 * @return string
160 */
161 public function getLastUpdatedBy()
162 {
163 return $this->last_updated_by;
164 }
165
166 /**
167 * The date and time when the resource was first sent.
168 *
169 * @param string $first_sent_date
170 *
171 * @return $this
172 */
173 public function setFirstSentDate($first_sent_date)
174 {
175 $this->first_sent_date = $first_sent_date;
176 return $this;
177 }
178
179 /**
180 * The date and time when the resource was first sent.
181 *
182 * @return string
183 */
184 public function getFirstSentDate()
185 {
186 return $this->first_sent_date;
187 }
188
189 /**
190 * The date and time when the resource was last sent.
191 *
192 * @param string $last_sent_date
193 *
194 * @return $this
195 */
196 public function setLastSentDate($last_sent_date)
197 {
198 $this->last_sent_date = $last_sent_date;
199 return $this;
200 }
201
202 /**
203 * The date and time when the resource was last sent.
204 *
205 * @return string
206 */
207 public function getLastSentDate()
208 {
209 return $this->last_sent_date;
210 }
211
212 /**
213 * The email address of the account that last sent the resource.
214 *
215 * @param string $last_sent_by
216 *
217 * @return $this
218 */
219 public function setLastSentBy($last_sent_by)
220 {
221 $this->last_sent_by = $last_sent_by;
222 return $this;
223 }
224
225 /**
226 * The email address of the account that last sent the resource.
227 *
228 * @return string
229 */
230 public function getLastSentBy()
231 {
232 return $this->last_sent_by;
233 }
234
235 /**
236 * URL representing the payer's view of the invoice.
237 *
238 * @param string $payer_view_url
239 * @throws \InvalidArgumentException
240 * @return $this
241 */
242 public function setPayerViewUrl($payer_view_url)
243 {
244 UrlValidator::validate($payer_view_url, "PayerViewUrl");
245 $this->payer_view_url = $payer_view_url;
246 return $this;
247 }
248
249 /**
250 * URL representing the payer's view of the invoice.
251 *
252 * @return string
253 */
254 public function getPayerViewUrl()
255 {
256 return $this->payer_view_url;
257 }
258
259 }
260