1 package org.oxerr.viagogo.model.response.inventory;
2
3 import org.apache.commons.lang3.builder.EqualsBuilder;
4 import org.apache.commons.lang3.builder.HashCodeBuilder;
5 import org.oxerr.viagogo.model.Money;
6 import org.oxerr.viagogo.model.response.Resource;
7
8 import io.openapitools.jackson.dataformat.hal.HALLink;
9 import io.openapitools.jackson.dataformat.hal.annotation.Link;
10
11 @io.openapitools.jackson.dataformat.hal.annotation.Resource
12 public class SalesAggregate extends Resource {
13
14 private static final long serialVersionUID = 2023021301L;
15
16
17
18
19 private Integer numberOfSales;
20
21
22
23
24 private Money proceeds;
25
26
27
28
29 private Integer numberOfTickets;
30
31
32
33
34 private String status;
35
36
37
38
39 @Link("salesaggregate:sales")
40 private HALLink salesLink;
41
42 public Integer getNumberOfSales() {
43 return numberOfSales;
44 }
45
46 public void setNumberOfSales(Integer numberOfSales) {
47 this.numberOfSales = numberOfSales;
48 }
49
50 public Money getProceeds() {
51 return proceeds;
52 }
53
54 public void setProceeds(Money proceeds) {
55 this.proceeds = proceeds;
56 }
57
58 public Integer getNumberOfTickets() {
59 return numberOfTickets;
60 }
61
62 public void setNumberOfTickets(Integer numberOfTickets) {
63 this.numberOfTickets = numberOfTickets;
64 }
65
66 public String getStatus() {
67 return status;
68 }
69
70 public void setStatus(String status) {
71 this.status = status;
72 }
73
74 public HALLink getSalesLink() {
75 return salesLink;
76 }
77
78 public void setSalesLink(HALLink salesLink) {
79 this.salesLink = salesLink;
80 }
81
82 @Override
83 public int hashCode() {
84 return HashCodeBuilder.reflectionHashCode(this);
85 }
86
87 @Override
88 public boolean equals(Object obj) {
89 if (this == obj) {
90 return true;
91 }
92 if (!(obj instanceof SalesAggregate)) {
93 return false;
94 }
95 SalesAggregate rhs = (SalesAggregate) obj;
96 return EqualsBuilder.reflectionEquals(this, rhs);
97 }
98
99 }