View Javadoc
1   package org.oxerr.viagogo.model.response.inventory;
2   
3   import java.util.List;
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.response.Resource;
9   
10  import io.openapitools.jackson.dataformat.hal.annotation.EmbeddedResource;
11  
12  @io.openapitools.jackson.dataformat.hal.annotation.Resource
13  public class ListingConstraints extends Resource {
14  
15  	private static final long serialVersionUID = 2023021301L;
16  
17  	private Money minTicketPrice;
18  
19  	private Money maxTicketPrice;
20  
21  	private Integer minNumberOfTickets;
22  
23  	private Integer maxNumberOfTickets;
24  
25  	private Boolean ticketLocationRequired;
26  
27  	private Boolean seatsRequired;
28  
29  	private List<Section> sections;
30  
31  	private Boolean primaryOrderIdRequired;
32  
33  	private Boolean homeOrAwayRequired;
34  
35  	@EmbeddedResource
36  	private List<ListingNote> connectedSellerListingNotes;
37  
38  	/**
39  	 * The valid currencies for the listing ticket price.
40  	 */
41  	@EmbeddedResource
42  	private List<Currency> currencies;
43  
44  	/**
45  	 * The available notes for this listing.
46  	 */
47  	@EmbeddedResource
48  	private List<ListingNote> listingNodes;
49  
50  	@EmbeddedResource
51  	private List<ListingNote> requiredUniqueListingNotes;
52  
53  	@EmbeddedResource
54  	private List<ListingNote> restrictedOnUseListingNotes;
55  
56  	/**
57  	 * The way that tickets are allowed to be split up when sold.
58  	 */
59  	@EmbeddedResource
60  	private List<SplitType> splitTypes;
61  
62  	/**
63  	 * The valid types of tickets.
64  	 */
65  	@EmbeddedResource
66  	private List<TicketType> ticketTypes;
67  
68  	public Money getMinTicketPrice() {
69  		return minTicketPrice;
70  	}
71  
72  	public void setMinTicketPrice(Money minTicketPrice) {
73  		this.minTicketPrice = minTicketPrice;
74  	}
75  
76  	public Money getMaxTicketPrice() {
77  		return maxTicketPrice;
78  	}
79  
80  	public void setMaxTicketPrice(Money maxTicketPrice) {
81  		this.maxTicketPrice = maxTicketPrice;
82  	}
83  
84  	public Integer getMinNumberOfTickets() {
85  		return minNumberOfTickets;
86  	}
87  
88  	public void setMinNumberOfTickets(Integer minNumberOfTickets) {
89  		this.minNumberOfTickets = minNumberOfTickets;
90  	}
91  
92  	public Integer getMaxNumberOfTickets() {
93  		return maxNumberOfTickets;
94  	}
95  
96  	public void setMaxNumberOfTickets(Integer maxNumberOfTickets) {
97  		this.maxNumberOfTickets = maxNumberOfTickets;
98  	}
99  
100 	public Boolean getTicketLocationRequired() {
101 		return ticketLocationRequired;
102 	}
103 
104 	public void setTicketLocationRequired(Boolean ticketLocationRequired) {
105 		this.ticketLocationRequired = ticketLocationRequired;
106 	}
107 
108 	public Boolean getSeatsRequired() {
109 		return seatsRequired;
110 	}
111 
112 	public void setSeatsRequired(Boolean seatsRequired) {
113 		this.seatsRequired = seatsRequired;
114 	}
115 
116 	public List<Section> getSections() {
117 		return sections;
118 	}
119 
120 	public void setSections(List<Section> sections) {
121 		this.sections = sections;
122 	}
123 
124 	public Boolean getPrimaryOrderIdRequired() {
125 		return primaryOrderIdRequired;
126 	}
127 
128 	public void setPrimaryOrderIdRequired(Boolean primaryOrderIdRequired) {
129 		this.primaryOrderIdRequired = primaryOrderIdRequired;
130 	}
131 
132 	public Boolean getHomeOrAwayRequired() {
133 		return homeOrAwayRequired;
134 	}
135 
136 	public void setHomeOrAwayRequired(Boolean homeOrAwayRequired) {
137 		this.homeOrAwayRequired = homeOrAwayRequired;
138 	}
139 
140 	public List<ListingNote> getConnectedSellerListingNotes() {
141 		return connectedSellerListingNotes;
142 	}
143 
144 	public void setConnectedSellerListingNotes(List<ListingNote> connectedSellerListingNotes) {
145 		this.connectedSellerListingNotes = connectedSellerListingNotes;
146 	}
147 
148 	public List<Currency> getCurrencies() {
149 		return currencies;
150 	}
151 
152 	public void setCurrencies(List<Currency> currencies) {
153 		this.currencies = currencies;
154 	}
155 
156 	public List<ListingNote> getListingNodes() {
157 		return listingNodes;
158 	}
159 
160 	public void setListingNodes(List<ListingNote> listingNodes) {
161 		this.listingNodes = listingNodes;
162 	}
163 
164 	public List<ListingNote> getRequiredUniqueListingNotes() {
165 		return requiredUniqueListingNotes;
166 	}
167 
168 	public void setRequiredUniqueListingNotes(List<ListingNote> requiredUniqueListingNotes) {
169 		this.requiredUniqueListingNotes = requiredUniqueListingNotes;
170 	}
171 
172 	public List<ListingNote> getRestrictedOnUseListingNotes() {
173 		return restrictedOnUseListingNotes;
174 	}
175 
176 	public void setRestrictedOnUseListingNotes(List<ListingNote> restrictedOnUseListingNotes) {
177 		this.restrictedOnUseListingNotes = restrictedOnUseListingNotes;
178 	}
179 
180 	public List<SplitType> getSplitTypes() {
181 		return splitTypes;
182 	}
183 
184 	public void setSplitTypes(List<SplitType> splitTypes) {
185 		this.splitTypes = splitTypes;
186 	}
187 
188 	public List<TicketType> getTicketTypes() {
189 		return ticketTypes;
190 	}
191 
192 	public void setTicketTypes(List<TicketType> ticketTypes) {
193 		this.ticketTypes = ticketTypes;
194 	}
195 
196 	@Override
197 	public int hashCode() {
198 		return HashCodeBuilder.reflectionHashCode(this);
199 	}
200 
201 	@Override
202 	public boolean equals(Object obj) {
203 		if (this == obj) {
204 			return true;
205 		}
206 		if (!(obj instanceof ListingConstraints)) {
207 			return false;
208 		}
209 		ListingConstraints rhs = (ListingConstraints) obj;
210 		return EqualsBuilder.reflectionEquals(this, rhs);
211 	}
212 
213 }