View Javadoc
1   package org.oxerr.seatgeek.client.model.request;
2   
3   import java.math.BigDecimal;
4   import java.time.LocalDate;
5   import java.time.LocalTime;
6   
7   import org.apache.commons.lang3.builder.EqualsBuilder;
8   import org.apache.commons.lang3.builder.HashCodeBuilder;
9   import org.oxerr.seatgeek.client.model.AbstractListing;
10  
11  public class CreateListingRequest extends AbstractListing {
12  
13  	private static final long serialVersionUID = 2023031401L;
14  
15  	/**
16  	 * The event title.
17  	 * 
18  	 * <p>For parking passes, prefix the event name with {@literal PARKING:}.</p>
19  	 */
20  	private String event;
21  
22  	/**
23  	 * The venue name.
24  	 */
25  	private String venue;
26  
27  	/**
28  	 * The date that the event starts.
29  	 */
30  	private LocalDate eventDate;
31  
32  	/**
33  	 * The time that the event starts.
34  	 */
35  	private LocalTime eventTime;
36  
37  	/**
38  	 * What increments should SeatGeek sell in?
39  	 * If your listing has 3 tickets, and your splits are {@literal 1,3},
40  	 * then we’ll only let a buyer buy 1 or 3 seats.
41  	 */
42  	private String splits;
43  
44  	/**
45  	 * The amount per ticket previously paid for this listing.
46  	 * This is used for calculating sales tax for buyers and to comply
47  	 * with New York State ticketing requirements (as applicable).
48  	 */
49  	private BigDecimal sellerPreviouslyPaidPricePerTicket;
50  
51  	/**
52  	 * The ticket type, which we use to determine how the seller plans
53  	 * to fulfill the orders.
54  	 * If not provided or the value is not supported,
55  	 * stock type will be inferred from the listing fields.
56  	 */
57  	private String stockType;
58  
59  	public String getEvent() {
60  		return event;
61  	}
62  
63  	public void setEvent(String event) {
64  		this.event = event;
65  	}
66  
67  	public String getVenue() {
68  		return venue;
69  	}
70  
71  	public void setVenue(String venue) {
72  		this.venue = venue;
73  	}
74  
75  	public LocalDate getEventDate() {
76  		return eventDate;
77  	}
78  
79  	public void setEventDate(LocalDate eventDate) {
80  		this.eventDate = eventDate;
81  	}
82  
83  	public LocalTime getEventTime() {
84  		return eventTime;
85  	}
86  
87  	public void setEventTime(LocalTime eventTime) {
88  		this.eventTime = eventTime;
89  	}
90  
91  	public String getSplits() {
92  		return splits;
93  	}
94  
95  	public void setSplits(String splits) {
96  		this.splits = splits;
97  	}
98  
99  	public BigDecimal getSellerPreviouslyPaidPricePerTicket() {
100 		return sellerPreviouslyPaidPricePerTicket;
101 	}
102 
103 	public void setSellerPreviouslyPaidPricePerTicket(BigDecimal sellerPreviouslyPaidPricePerTicket) {
104 		this.sellerPreviouslyPaidPricePerTicket = sellerPreviouslyPaidPricePerTicket;
105 	}
106 
107 	public String getStockType() {
108 		return stockType;
109 	}
110 
111 	public void setStockType(String stockType) {
112 		this.stockType = stockType;
113 	}
114 
115 	@Override
116 	public int hashCode() {
117 		return HashCodeBuilder.reflectionHashCode(this);
118 	}
119 
120 	@Override
121 	public boolean equals(Object obj) {
122 		if (obj == null) {
123 			return false;
124 		}
125 		if (obj == this) {
126 			return true;
127 		}
128 		if (obj.getClass() != getClass()) {
129 			return false;
130 		}
131 		CreateListingRequest rhs = (CreateListingRequest) obj;
132 		return EqualsBuilder.reflectionEquals(this, rhs);
133 	}
134 
135 }