1 package org.oxerr.viagogo.model.response.sale;
2
3 import java.time.Instant;
4 import java.util.List;
5
6 import org.apache.commons.lang3.builder.EqualsBuilder;
7 import org.apache.commons.lang3.builder.HashCodeBuilder;
8 import org.oxerr.viagogo.model.request.inventory.SaleBarcodeUpload;
9 import org.oxerr.viagogo.model.response.catalog.EmbeddedEvent;
10 import org.oxerr.viagogo.model.response.catalog.EmbeddedVenue;
11 import org.oxerr.viagogo.model.response.inventory.TicketType;
12
13 import io.openapitools.jackson.dataformat.hal.HALLink;
14 import io.openapitools.jackson.dataformat.hal.annotation.EmbeddedResource;
15 import io.openapitools.jackson.dataformat.hal.annotation.Link;
16
17 public class Sale extends EmbeddedSale {
18
19 private static final long serialVersionUID = 2023021801L;
20
21
22
23
24 private String status;
25
26
27
28
29 private String statusDescription;
30
31
32
33
34 private Instant confirmBy;
35
36
37
38
39 private Instant shipBy;
40
41 private Instant updatedAt;
42
43
44
45
46
47 private String externalListingId;
48
49
50
51
52 private List<SaleBarcodeUpload> barcodes;
53
54
55
56
57 private Boolean isLegacyStubhubOrder;
58
59
60
61
62
63 private Instant inHandAt;
64
65
66
67
68 @Link("sale:autotrackshipment")
69 private HALLink autotraceShipmentLink;
70
71 @Link("sale:changepapertickettoeticket")
72 private HALLink changepapertickettoeticket;
73
74
75
76
77 @Link("sale:confirm")
78 private HALLink confirmLink;
79
80 @Link("sale:contactuswebpage")
81 private HALLink contactUsWebPageLink;
82
83
84
85
86
87 @Link("sale:etickets")
88 private HALLink eTicketLink;
89
90
91
92
93
94 @Link("sale:eticketuploads")
95 private HALLink eTicketUploadsLink;
96
97 @Link("sale:listing")
98 private HALLink listingLink;
99
100
101
102
103 @Link("sale:reject")
104 private HALLink rejectLink;
105
106
107
108
109 @Link("sale:saveetickets")
110 private HALLink saveETicketsLink;
111
112
113
114
115 @Link("sale:shipments")
116 private HALLink shipmentsLink;
117
118 @Link("sale:ticketholders")
119 private HALLink ticketHoldersLink;
120
121
122
123
124
125 @Link("sale:trackshipment")
126 private HALLink trackShipmentLink;
127
128
129
130
131 @Link("sale:uploadetickets")
132 private HALLink uploadETicketsLink;
133
134 @Link("sale:uploadeticketurls")
135 private HALLink uploadSaleETicketUrlsLink;
136
137 @Link("sale:savetransferreceipts")
138 private HALLink saveTransferReceiptsLink;
139
140 @Link("sale:uploadtransferreceipts")
141 private HALLink uploadTransferReceiptLink;
142
143 @Link("sale:webpage")
144 private HALLink webPageLink;
145
146 @EmbeddedResource
147 private EmbeddedEvent event;
148
149 @EmbeddedResource
150 private EmbeddedVenue venue;
151
152 @EmbeddedResource
153 private TicketType ticketType;
154
155 @EmbeddedResource
156 private DeliveryMethod deliveryMethod;
157
158 public String getStatus() {
159 return status;
160 }
161
162 public void setStatus(String status) {
163 this.status = status;
164 }
165
166 public String getStatusDescription() {
167 return statusDescription;
168 }
169
170 public void setStatusDescription(String statusDescription) {
171 this.statusDescription = statusDescription;
172 }
173
174 public Instant getConfirmBy() {
175 return confirmBy;
176 }
177
178 public void setConfirmBy(Instant confirmBy) {
179 this.confirmBy = confirmBy;
180 }
181
182 public Instant getShipBy() {
183 return shipBy;
184 }
185
186 public void setShipBy(Instant shipBy) {
187 this.shipBy = shipBy;
188 }
189
190 public Instant getUpdatedAt() {
191 return updatedAt;
192 }
193
194 public void setUpdatedAt(Instant updatedAt) {
195 this.updatedAt = updatedAt;
196 }
197
198 public String getExternalListingId() {
199 return externalListingId;
200 }
201
202 public void setExternalListingId(String externalListingId) {
203 this.externalListingId = externalListingId;
204 }
205
206 public List<SaleBarcodeUpload> getBarcodes() {
207 return barcodes;
208 }
209
210 public void setBarcodes(List<SaleBarcodeUpload> barcodes) {
211 this.barcodes = barcodes;
212 }
213
214 public Boolean getIsLegacyStubhubOrder() {
215 return isLegacyStubhubOrder;
216 }
217
218 public void setIsLegacyStubhubOrder(Boolean isLegacyStubhubOrder) {
219 this.isLegacyStubhubOrder = isLegacyStubhubOrder;
220 }
221
222 public Instant getInHandAt() {
223 return inHandAt;
224 }
225
226 public void setInHandAt(Instant inHandAt) {
227 this.inHandAt = inHandAt;
228 }
229
230 public HALLink getAutotraceShipmentLink() {
231 return autotraceShipmentLink;
232 }
233
234 public void setAutotraceShipmentLink(HALLink autotraceShipmentLink) {
235 this.autotraceShipmentLink = autotraceShipmentLink;
236 }
237
238 public HALLink getChangepapertickettoeticket() {
239 return changepapertickettoeticket;
240 }
241
242 public void setChangepapertickettoeticket(HALLink changepapertickettoeticket) {
243 this.changepapertickettoeticket = changepapertickettoeticket;
244 }
245
246 public HALLink getConfirmLink() {
247 return confirmLink;
248 }
249
250 public void setConfirmLink(HALLink confirmLink) {
251 this.confirmLink = confirmLink;
252 }
253
254 public HALLink getContactUsWebPageLink() {
255 return contactUsWebPageLink;
256 }
257
258 public void setContactUsWebPageLink(HALLink contactUsWebPageLink) {
259 this.contactUsWebPageLink = contactUsWebPageLink;
260 }
261
262 public HALLink geteTicketLink() {
263 return eTicketLink;
264 }
265
266 public void seteTicketLink(HALLink eTicketLink) {
267 this.eTicketLink = eTicketLink;
268 }
269
270 public HALLink geteTicketUploadsLink() {
271 return eTicketUploadsLink;
272 }
273
274 public void seteTicketUploadsLink(HALLink eTicketUploadsLink) {
275 this.eTicketUploadsLink = eTicketUploadsLink;
276 }
277
278 public HALLink getListingLink() {
279 return listingLink;
280 }
281
282 public void setListingLink(HALLink listingLink) {
283 this.listingLink = listingLink;
284 }
285
286 public HALLink getRejectLink() {
287 return rejectLink;
288 }
289
290 public void setRejectLink(HALLink rejectLink) {
291 this.rejectLink = rejectLink;
292 }
293
294 public HALLink getSaveETicketsLink() {
295 return saveETicketsLink;
296 }
297
298 public void setSaveETicketsLink(HALLink saveETicketsLink) {
299 this.saveETicketsLink = saveETicketsLink;
300 }
301
302 public HALLink getShipmentsLink() {
303 return shipmentsLink;
304 }
305
306 public void setShipmentsLink(HALLink shipmentsLink) {
307 this.shipmentsLink = shipmentsLink;
308 }
309
310 public HALLink getTicketHoldersLink() {
311 return ticketHoldersLink;
312 }
313
314 public void setTicketHoldersLink(HALLink ticketHoldersLink) {
315 this.ticketHoldersLink = ticketHoldersLink;
316 }
317
318 public HALLink getTrackShipmentLink() {
319 return trackShipmentLink;
320 }
321
322 public void setTrackShipmentLink(HALLink trackShipmentLink) {
323 this.trackShipmentLink = trackShipmentLink;
324 }
325
326 public HALLink getUploadETicketsLink() {
327 return uploadETicketsLink;
328 }
329
330 public void setUploadETicketsLink(HALLink uploadETicketsLink) {
331 this.uploadETicketsLink = uploadETicketsLink;
332 }
333
334 public HALLink getUploadSaleETicketUrlsLink() {
335 return uploadSaleETicketUrlsLink;
336 }
337
338 public void setUploadSaleETicketUrlsLink(HALLink uploadSaleETicketUrlsLink) {
339 this.uploadSaleETicketUrlsLink = uploadSaleETicketUrlsLink;
340 }
341
342 public HALLink getSaveTransferReceiptsLink() {
343 return saveTransferReceiptsLink;
344 }
345
346 public void setSaveTransferReceiptsLink(HALLink saveTransferReceiptsLink) {
347 this.saveTransferReceiptsLink = saveTransferReceiptsLink;
348 }
349
350 public HALLink getUploadTransferReceiptLink() {
351 return uploadTransferReceiptLink;
352 }
353
354 public void setUploadTransferReceiptLink(HALLink uploadTransferReceiptLink) {
355 this.uploadTransferReceiptLink = uploadTransferReceiptLink;
356 }
357
358 public HALLink getWebPageLink() {
359 return webPageLink;
360 }
361
362 public void setWebPageLink(HALLink webPageLink) {
363 this.webPageLink = webPageLink;
364 }
365
366 public EmbeddedEvent getEvent() {
367 return event;
368 }
369
370 public void setEvent(EmbeddedEvent event) {
371 this.event = event;
372 }
373
374 public EmbeddedVenue getVenue() {
375 return venue;
376 }
377
378 public void setVenue(EmbeddedVenue venue) {
379 this.venue = venue;
380 }
381
382 public TicketType getTicketType() {
383 return ticketType;
384 }
385
386 public void setTicketType(TicketType ticketType) {
387 this.ticketType = ticketType;
388 }
389
390 public DeliveryMethod getDeliveryMethod() {
391 return deliveryMethod;
392 }
393
394 public void setDeliveryMethod(DeliveryMethod deliveryMethod) {
395 this.deliveryMethod = deliveryMethod;
396 }
397
398 @Override
399 public int hashCode() {
400 return HashCodeBuilder.reflectionHashCode(this);
401 }
402
403 @Override
404 public boolean equals(Object obj) {
405 if (this == obj) {
406 return true;
407 }
408 if (!(obj instanceof Sale)) {
409 return false;
410 }
411 Sale rhs = (Sale) obj;
412 return EqualsBuilder.reflectionEquals(this, rhs);
413 }
414
415 }