View Javadoc
1   package org.oxerr.stubhub.client.model;
2   
3   import java.io.Serializable;
4   import java.math.BigDecimal;
5   import java.util.List;
6   
7   import org.apache.commons.lang3.builder.EqualsBuilder;
8   import org.apache.commons.lang3.builder.HashCodeBuilder;
9   import org.apache.commons.lang3.builder.ToStringBuilder;
10  
11  public class InventoryPricingSettingRequest implements Serializable {
12  
13  	private static final long serialVersionUID = 2026051801L;
14  
15  	/**
16  	 * Flag to control whether Pricing should be enabled for the current listing.
17  	 */
18  	private Boolean pricingEnabled;
19  
20  	/**
21  	 * The minimum amount inventory can be priced at.
22  	 * Certain users can price below the floor if a warning is accepted.
23  	 */
24  	private BigDecimal netProceedsFloor;
25  
26  	/**
27  	 * The maximum amount inventory can be priced at.
28  	 * Certain users can price above the ceiling if a warning is accepted.
29  	 */
30  	private BigDecimal netProceedsCeiling;
31  
32  	/**
33  	 * - Simple
34  	 * - RowExtrapolation
35  	 */
36  	private String undercutMode;
37  
38  	/**
39  	 * Default amount to price under a comparable listing in the currency unit
40  	 * of the listing. Applied after UndercutRelativeAmount.
41  	 */
42  	private BigDecimal undercutAbsoluteAmount;
43  
44  	/**
45  	 * Default precent to price under a comparable listing.
46  	 * Applied before UndercutRelativeAmount.
47  	 */
48  	private BigDecimal undercutRelativeAmount;
49  
50  	/**
51  	 * Mode to be used for comparable listings.
52  	 * <ul>
53  	 * <li>QualityScore</li>
54  	 * <li>SameSection</li>
55  	 * <li>SameZone</li>
56  	 * <li>SameEvent</li>
57  	 * </ul>
58  	 */
59  	private String compListingMode;
60  
61  	/**
62  	 * Sets the minimum quality of listings that we be used for comparable
63  	 * listings.
64  	 */
65  	private BigDecimal compListingFloor;
66  
67  	/**
68  	 * Sets the minimum quality of listings that we be used for comparable
69  	 * listings.
70  	 */
71  	private BigDecimal compListingCeiling;
72  
73  	/**
74  	 * Selected section ids for filtering
75  	 */
76  	private List<Integer> sectionIdFilter;
77  
78  	/**
79  	 * Selected row ids for filtering
80  	 */
81  	private List<Integer> rowIdFilter;
82  
83  	/**
84  	 * Flag to control whether quantity score adjustment should be enabled
85  	 * for the listing.
86  	 */
87  	private Boolean quantityScoreAdjustmentEnabled;
88  
89  	/**
90  	 * Sets the overrides json for the quantity score adjustment.
91  	 */
92  	private String quantityScoreAdjustmentOverridesJson;
93  
94  	/**
95  	 * Flag to control whether its only enabled for the same zone.
96  	 */
97  	private Boolean onlyForSameZoneEnabled;
98  
99  	/**
100 	 * Flag to control whether its only enabled for the selected sections.
101 	 */
102 	private Boolean onlyForSelectedSectionsEnabled;
103 
104 	/**
105 	 * Mode to be used for outlier.
106 	 * <ul>
107 	 * <li>StandardDeviations</li>
108 	 * <li>KthLowest</li>
109 	 * <li>SkipLogic</li>
110 	 * </ul>
111 	 */
112 	private String outlierMode;
113 
114 	/**
115 	 * Sets the number of standard deviations to use for outlier settings.
116 	 */
117 	private Double standardDeviations;
118 
119 	/**
120 	 * Sets the max number of outlier listings to use for KthLowest outlier
121 	 * settings.
122 	 */
123 	private Integer kthLowestOutlierLimit;
124 
125 	/**
126 	 * Sets the absolute monetary amount to use for determining the KthLowest
127 	 * outliers.
128 	 */
129 	private Double kthLowestAbsoluteOutlierSpacing;
130 
131 	/**
132 	 * Sets the relative percentage amount (0-100) to use for determining
133 	 * the KthLowest outliers.
134 	 */
135 	private BigDecimal kthLowestRelativeOutlierSpacing;
136 
137 	/**
138 	 * Sets the max discount velocity percent for the circuit breaker.
139 	 */
140 	private BigDecimal maxDiscountVelocityPercent;
141 
142 	/**
143 	 * Sets the max discount velocity ticks for the circuit breaker.
144 	 */
145 	private Long maxDiscountVelocityTicks;
146 
147 	/**
148 	 * Sets the minimum quality of listings that we be used for comparable
149 	 * listings.
150 	 */
151 	private Integer minCompListingCount;
152 
153 	public Boolean getPricingEnabled() {
154 		return pricingEnabled;
155 	}
156 
157 	public void setPricingEnabled(Boolean pricingEnabled) {
158 		this.pricingEnabled = pricingEnabled;
159 	}
160 
161 	public BigDecimal getNetProceedsFloor() {
162 		return netProceedsFloor;
163 	}
164 
165 	public void setNetProceedsFloor(BigDecimal netProceedsFloor) {
166 		this.netProceedsFloor = netProceedsFloor;
167 	}
168 
169 	public BigDecimal getNetProceedsCeiling() {
170 		return netProceedsCeiling;
171 	}
172 
173 	public void setNetProceedsCeiling(BigDecimal netProceedsCeiling) {
174 		this.netProceedsCeiling = netProceedsCeiling;
175 	}
176 
177 	public String getUndercutMode() {
178 		return undercutMode;
179 	}
180 
181 	public void setUndercutMode(String undercutMode) {
182 		this.undercutMode = undercutMode;
183 	}
184 
185 	public BigDecimal getUndercutAbsoluteAmount() {
186 		return undercutAbsoluteAmount;
187 	}
188 
189 	public void setUndercutAbsoluteAmount(BigDecimal undercutAbsoluteAmount) {
190 		this.undercutAbsoluteAmount = undercutAbsoluteAmount;
191 	}
192 
193 	public BigDecimal getUndercutRelativeAmount() {
194 		return undercutRelativeAmount;
195 	}
196 
197 	public void setUndercutRelativeAmount(BigDecimal undercutRelativeAmount) {
198 		this.undercutRelativeAmount = undercutRelativeAmount;
199 	}
200 
201 	public String getCompListingMode() {
202 		return compListingMode;
203 	}
204 
205 	public void setCompListingMode(String compListingMode) {
206 		this.compListingMode = compListingMode;
207 	}
208 
209 	public BigDecimal getCompListingFloor() {
210 		return compListingFloor;
211 	}
212 
213 	public void setCompListingFloor(BigDecimal compListingFloor) {
214 		this.compListingFloor = compListingFloor;
215 	}
216 
217 	public BigDecimal getCompListingCeiling() {
218 		return compListingCeiling;
219 	}
220 
221 	public void setCompListingCeiling(BigDecimal compListingCeiling) {
222 		this.compListingCeiling = compListingCeiling;
223 	}
224 
225 	public List<Integer> getSectionIdFilter() {
226 		return sectionIdFilter;
227 	}
228 
229 	public void setSectionIdFilter(List<Integer> sectionIdFilter) {
230 		this.sectionIdFilter = sectionIdFilter;
231 	}
232 
233 	public List<Integer> getRowIdFilter() {
234 		return rowIdFilter;
235 	}
236 
237 	public void setRowIdFilter(List<Integer> rowIdFilter) {
238 		this.rowIdFilter = rowIdFilter;
239 	}
240 
241 	public Boolean getQuantityScoreAdjustmentEnabled() {
242 		return quantityScoreAdjustmentEnabled;
243 	}
244 
245 	public void setQuantityScoreAdjustmentEnabled(Boolean quantityScoreAdjustmentEnabled) {
246 		this.quantityScoreAdjustmentEnabled = quantityScoreAdjustmentEnabled;
247 	}
248 
249 	public String getQuantityScoreAdjustmentOverridesJson() {
250 		return quantityScoreAdjustmentOverridesJson;
251 	}
252 
253 	public void setQuantityScoreAdjustmentOverridesJson(String quantityScoreAdjustmentOverridesJson) {
254 		this.quantityScoreAdjustmentOverridesJson = quantityScoreAdjustmentOverridesJson;
255 	}
256 
257 	public Boolean getOnlyForSameZoneEnabled() {
258 		return onlyForSameZoneEnabled;
259 	}
260 
261 	public void setOnlyForSameZoneEnabled(Boolean onlyForSameZoneEnabled) {
262 		this.onlyForSameZoneEnabled = onlyForSameZoneEnabled;
263 	}
264 
265 	public Boolean getOnlyForSelectedSectionsEnabled() {
266 		return onlyForSelectedSectionsEnabled;
267 	}
268 
269 	public void setOnlyForSelectedSectionsEnabled(Boolean onlyForSelectedSectionsEnabled) {
270 		this.onlyForSelectedSectionsEnabled = onlyForSelectedSectionsEnabled;
271 	}
272 
273 	public String getOutlierMode() {
274 		return outlierMode;
275 	}
276 
277 	public void setOutlierMode(String outlierMode) {
278 		this.outlierMode = outlierMode;
279 	}
280 
281 	public Double getStandardDeviations() {
282 		return standardDeviations;
283 	}
284 
285 	public void setStandardDeviations(Double standardDeviations) {
286 		this.standardDeviations = standardDeviations;
287 	}
288 
289 	public Integer getKthLowestOutlierLimit() {
290 		return kthLowestOutlierLimit;
291 	}
292 
293 	public void setKthLowestOutlierLimit(Integer kthLowestOutlierLimit) {
294 		this.kthLowestOutlierLimit = kthLowestOutlierLimit;
295 	}
296 
297 	public Double getKthLowestAbsoluteOutlierSpacing() {
298 		return kthLowestAbsoluteOutlierSpacing;
299 	}
300 
301 	public void setKthLowestAbsoluteOutlierSpacing(Double kthLowestAbsoluteOutlierSpacing) {
302 		this.kthLowestAbsoluteOutlierSpacing = kthLowestAbsoluteOutlierSpacing;
303 	}
304 
305 	public BigDecimal getKthLowestRelativeOutlierSpacing() {
306 		return kthLowestRelativeOutlierSpacing;
307 	}
308 
309 	public void setKthLowestRelativeOutlierSpacing(BigDecimal kthLowestRelativeOutlierSpacing) {
310 		this.kthLowestRelativeOutlierSpacing = kthLowestRelativeOutlierSpacing;
311 	}
312 
313 	public BigDecimal getMaxDiscountVelocityPercent() {
314 		return maxDiscountVelocityPercent;
315 	}
316 
317 	public void setMaxDiscountVelocityPercent(BigDecimal maxDiscountVelocityPercent) {
318 		this.maxDiscountVelocityPercent = maxDiscountVelocityPercent;
319 	}
320 
321 	public Long getMaxDiscountVelocityTicks() {
322 		return maxDiscountVelocityTicks;
323 	}
324 
325 	public void setMaxDiscountVelocityTicks(Long maxDiscountVelocityTicks) {
326 		this.maxDiscountVelocityTicks = maxDiscountVelocityTicks;
327 	}
328 
329 	public Integer getMinCompListingCount() {
330 		return minCompListingCount;
331 	}
332 
333 	public void setMinCompListingCount(Integer minCompListingCount) {
334 		this.minCompListingCount = minCompListingCount;
335 	}
336 
337 	@Override
338 	public int hashCode() {
339 		return HashCodeBuilder.reflectionHashCode(this);
340 	}
341 
342 	@Override
343 	public boolean equals(Object obj) {
344 		return EqualsBuilder.reflectionEquals(this, obj);
345 	}
346 
347 	@Override
348 	public String toString() {
349 		return ToStringBuilder.reflectionToString(this);
350 	}
351 }