View Javadoc
1   package org.oxerr.stubhub.client.model;
2   
3   import java.io.Serializable;
4   import java.math.BigDecimal;
5   
6   import org.apache.commons.lang3.builder.EqualsBuilder;
7   import org.apache.commons.lang3.builder.HashCodeBuilder;
8   import org.apache.commons.lang3.builder.ToStringBuilder;
9   
10  public class InventoryPriceUpdateRequest implements Serializable {
11  
12  	private static final long serialVersionUID = 2026051801L;
13  
14  	/**
15  	 * AllInPrice is the broadcasted price with taxes / fees
16  	 */
17  	private BigDecimal allInPrice;
18  
19  	/**
20  	 * ListPrice is unit price
21  	 */
22  	private BigDecimal listPrice;
23  
24  	private ApiMarketplace marketplace;
25  
26  	/**
27  	 * Manually set the markup specific to the current marketplace listing.
28  	 * If not set or False, AllInPrice or ListPrice must be provided for price update.
29  	 */
30  	private BigDecimal marketplaceMarkup;
31  
32  	/**
33  	 * When the field is set to True, AllInPrice or ListPrice must be provided
34  	 * for price update. If not set or False, price update will use AllInPrice,
35  	 * or ListPrice, or derived prices from MarketplaceMarkup.
36  	 */
37  	private Boolean priceByMarketplace;
38  
39  	public InventoryPriceUpdateRequest() {
40  	}
41  
42  	public InventoryPriceUpdateRequest(ApiMarketplace marketplace) {
43  		this.marketplace = marketplace;
44  	}
45  
46  	public BigDecimal getAllInPrice() {
47  		return allInPrice;
48  	}
49  
50  	public void setAllInPrice(BigDecimal allInPrice) {
51  		this.allInPrice = allInPrice;
52  	}
53  
54  	public BigDecimal getListPrice() {
55  		return listPrice;
56  	}
57  
58  	public void setListPrice(BigDecimal listPrice) {
59  		this.listPrice = listPrice;
60  	}
61  
62  	public ApiMarketplace getMarketplace() {
63  		return marketplace;
64  	}
65  
66  	public void setMarketplace(ApiMarketplace marketplace) {
67  		this.marketplace = marketplace;
68  	}
69  
70  	public BigDecimal getMarketplaceMarkup() {
71  		return marketplaceMarkup;
72  	}
73  
74  	public void setMarketplaceMarkup(BigDecimal marketplaceMarkup) {
75  		this.marketplaceMarkup = marketplaceMarkup;
76  	}
77  
78  	public Boolean getPriceByMarketplace() {
79  		return priceByMarketplace;
80  	}
81  
82  	public void setPriceByMarketplace(Boolean priceByMarketplace) {
83  		this.priceByMarketplace = priceByMarketplace;
84  	}
85  
86  	@Override
87  	public int hashCode() {
88  		return HashCodeBuilder.reflectionHashCode(this);
89  	}
90  
91  	@Override
92  	public boolean equals(Object obj) {
93  		return EqualsBuilder.reflectionEquals(this, obj);
94  	}
95  
96  	@Override
97  	public String toString() {
98  		return ToStringBuilder.reflectionToString(this);
99  	}
100 }