1 package org.oxerr.stubhub.client.model;
2
3 import java.io.Serializable;
4 import java.math.BigDecimal;
5 import java.time.OffsetDateTime;
6 import java.util.List;
7 import java.util.UUID;
8
9 import org.apache.commons.lang3.builder.EqualsBuilder;
10 import org.apache.commons.lang3.builder.HashCodeBuilder;
11 import org.apache.commons.lang3.builder.ToStringBuilder;
12
13 public class PurchaseResponse implements Serializable {
14
15 private static final long serialVersionUID = 2026051801L;
16
17 private Long id;
18
19 private String vendorOrderId;
20
21 private UUID buyerUserId;
22
23 private OffsetDateTime purchaseDate;
24
25 private OffsetDateTime cancellationDate;
26
27 private OffsetDateTime createdDate;
28
29 private OffsetDateTime updatedDate;
30
31 private ApiPurchaseOrderState state;
32
33 private String internalNotes;
34
35 private PurchaseVendorAccountResponse vendorAccount;
36
37 private PurchaseVendorAccountResponse secondaryVendorAccount;
38
39 private List<PurchaseCostResponse> additionalCosts;
40
41 private List<PurchasePaymentResponse> payments;
42
43 private List<TicketGroupResponse> ticketGroups;
44
45 private List<TagResponse> tags;
46
47 private BigDecimal totalAmount;
48
49 private ApiPurchasePaymentStatus paymentStatus;
50
51 private String changeReason;
52
53 private String externalId;
54
55 private List<BuyerCommissionResponse> commissions;
56
57 private UUID sellerAccountId;
58
59 private UUID dealId;
60
61 private Boolean isCommissionsLocked;
62
63 private BigDecimal totalEstimatedCost;
64
65 private String totalEstimatedCostCurrency;
66
67 public Long getId() {
68 return id;
69 }
70
71 public void setId(Long id) {
72 this.id = id;
73 }
74
75 public String getVendorOrderId() {
76 return vendorOrderId;
77 }
78
79 public void setVendorOrderId(String vendorOrderId) {
80 this.vendorOrderId = vendorOrderId;
81 }
82
83 public UUID getBuyerUserId() {
84 return buyerUserId;
85 }
86
87 public void setBuyerUserId(UUID buyerUserId) {
88 this.buyerUserId = buyerUserId;
89 }
90
91 public OffsetDateTime getPurchaseDate() {
92 return purchaseDate;
93 }
94
95 public void setPurchaseDate(OffsetDateTime purchaseDate) {
96 this.purchaseDate = purchaseDate;
97 }
98
99 public OffsetDateTime getCancellationDate() {
100 return cancellationDate;
101 }
102
103 public void setCancellationDate(OffsetDateTime cancellationDate) {
104 this.cancellationDate = cancellationDate;
105 }
106
107 public OffsetDateTime getCreatedDate() {
108 return createdDate;
109 }
110
111 public void setCreatedDate(OffsetDateTime createdDate) {
112 this.createdDate = createdDate;
113 }
114
115 public OffsetDateTime getUpdatedDate() {
116 return updatedDate;
117 }
118
119 public void setUpdatedDate(OffsetDateTime updatedDate) {
120 this.updatedDate = updatedDate;
121 }
122
123 public ApiPurchaseOrderState getState() {
124 return state;
125 }
126
127 public void setState(ApiPurchaseOrderState state) {
128 this.state = state;
129 }
130
131 public String getInternalNotes() {
132 return internalNotes;
133 }
134
135 public void setInternalNotes(String internalNotes) {
136 this.internalNotes = internalNotes;
137 }
138
139 public PurchaseVendorAccountResponse getVendorAccount() {
140 return vendorAccount;
141 }
142
143 public void setVendorAccount(PurchaseVendorAccountResponse vendorAccount) {
144 this.vendorAccount = vendorAccount;
145 }
146
147 public PurchaseVendorAccountResponse getSecondaryVendorAccount() {
148 return secondaryVendorAccount;
149 }
150
151 public void setSecondaryVendorAccount(PurchaseVendorAccountResponse secondaryVendorAccount) {
152 this.secondaryVendorAccount = secondaryVendorAccount;
153 }
154
155 public List<PurchaseCostResponse> getAdditionalCosts() {
156 return additionalCosts;
157 }
158
159 public void setAdditionalCosts(List<PurchaseCostResponse> additionalCosts) {
160 this.additionalCosts = additionalCosts;
161 }
162
163 public List<PurchasePaymentResponse> getPayments() {
164 return payments;
165 }
166
167 public void setPayments(List<PurchasePaymentResponse> payments) {
168 this.payments = payments;
169 }
170
171 public List<TicketGroupResponse> getTicketGroups() {
172 return ticketGroups;
173 }
174
175 public void setTicketGroups(List<TicketGroupResponse> ticketGroups) {
176 this.ticketGroups = ticketGroups;
177 }
178
179 public List<TagResponse> getTags() {
180 return tags;
181 }
182
183 public void setTags(List<TagResponse> tags) {
184 this.tags = tags;
185 }
186
187 public BigDecimal getTotalAmount() {
188 return totalAmount;
189 }
190
191 public void setTotalAmount(BigDecimal totalAmount) {
192 this.totalAmount = totalAmount;
193 }
194
195 public ApiPurchasePaymentStatus getPaymentStatus() {
196 return paymentStatus;
197 }
198
199 public void setPaymentStatus(ApiPurchasePaymentStatus paymentStatus) {
200 this.paymentStatus = paymentStatus;
201 }
202
203 public String getChangeReason() {
204 return changeReason;
205 }
206
207 public void setChangeReason(String changeReason) {
208 this.changeReason = changeReason;
209 }
210
211 public String getExternalId() {
212 return externalId;
213 }
214
215 public void setExternalId(String externalId) {
216 this.externalId = externalId;
217 }
218
219 public List<BuyerCommissionResponse> getCommissions() {
220 return commissions;
221 }
222
223 public void setCommissions(List<BuyerCommissionResponse> commissions) {
224 this.commissions = commissions;
225 }
226
227 public UUID getSellerAccountId() {
228 return sellerAccountId;
229 }
230
231 public void setSellerAccountId(UUID sellerAccountId) {
232 this.sellerAccountId = sellerAccountId;
233 }
234
235 public UUID getDealId() {
236 return dealId;
237 }
238
239 public void setDealId(UUID dealId) {
240 this.dealId = dealId;
241 }
242
243 public Boolean getIsCommissionsLocked() {
244 return isCommissionsLocked;
245 }
246
247 public void setIsCommissionsLocked(Boolean isCommissionsLocked) {
248 this.isCommissionsLocked = isCommissionsLocked;
249 }
250
251 public BigDecimal getTotalEstimatedCost() {
252 return totalEstimatedCost;
253 }
254
255 public void setTotalEstimatedCost(BigDecimal totalEstimatedCost) {
256 this.totalEstimatedCost = totalEstimatedCost;
257 }
258
259 public String getTotalEstimatedCostCurrency() {
260 return totalEstimatedCostCurrency;
261 }
262
263 public void setTotalEstimatedCostCurrency(String totalEstimatedCostCurrency) {
264 this.totalEstimatedCostCurrency = totalEstimatedCostCurrency;
265 }
266
267 @Override
268 public int hashCode() {
269 return HashCodeBuilder.reflectionHashCode(this);
270 }
271
272 @Override
273 public boolean equals(Object obj) {
274 return EqualsBuilder.reflectionEquals(this, obj);
275 }
276
277 @Override
278 public String toString() {
279 return ToStringBuilder.reflectionToString(this);
280 }
281 }