1 package org.oxerr.viagogo.model.response.sale;
2
3 import java.time.Instant;
4
5 import org.apache.commons.lang3.builder.EqualsBuilder;
6 import org.apache.commons.lang3.builder.HashCodeBuilder;
7 import org.oxerr.viagogo.model.Money;
8 import org.oxerr.viagogo.model.Seating;
9 import org.oxerr.viagogo.model.response.Resource;
10
11 @io.openapitools.jackson.dataformat.hal.annotation.Resource
12 public class EmbeddedSale extends Resource {
13
14 private static final long serialVersionUID = 2023021801L;
15
16
17
18
19 private Integer id;
20
21
22
23
24 private Instant createdAt;
25
26
27
28
29 private Seating seating;
30
31
32
33
34 private Money proceeds;
35
36
37
38
39 private Money displayProceeds;
40
41
42
43
44 private Integer numberOfTickets;
45
46 public Integer getId() {
47 return id;
48 }
49
50 public void setId(Integer id) {
51 this.id = id;
52 }
53
54 public Instant getCreatedAt() {
55 return createdAt;
56 }
57
58 public void setCreatedAt(Instant createdAt) {
59 this.createdAt = createdAt;
60 }
61
62 public Seating getSeating() {
63 return seating;
64 }
65
66 public void setSeating(Seating seating) {
67 this.seating = seating;
68 }
69
70 public Money getProceeds() {
71 return proceeds;
72 }
73
74 public void setProceeds(Money proceeds) {
75 this.proceeds = proceeds;
76 }
77
78 public Money getDisplayProceeds() {
79 return displayProceeds;
80 }
81
82 public void setDisplayProceeds(Money displayProceeds) {
83 this.displayProceeds = displayProceeds;
84 }
85
86 public Integer getNumberOfTickets() {
87 return numberOfTickets;
88 }
89
90 public void setNumberOfTickets(Integer numberOfTickets) {
91 this.numberOfTickets = numberOfTickets;
92 }
93
94 @Override
95 public int hashCode() {
96 return HashCodeBuilder.reflectionHashCode(this);
97 }
98
99 @Override
100 public boolean equals(Object obj) {
101 if (this == obj) {
102 return true;
103 }
104 if (!(obj instanceof EmbeddedSale)) {
105 return false;
106 }
107 EmbeddedSale rhs = (EmbeddedSale) obj;
108 return EqualsBuilder.reflectionEquals(this, rhs);
109 }
110
111 }