1 package org.oxerr.youzan.dto.item;
2
3 import java.io.Serializable;
4 import java.math.BigDecimal;
5 import java.time.Instant;
6
7 import org.apache.commons.lang3.StringEscapeUtils;
8 import org.oxerr.youzan.dto.deserializer.InstantDeserializer;
9 import org.oxerr.youzan.dto.ump.UmpTradeCoupon;
10
11 import com.fasterxml.jackson.annotation.JsonProperty;
12 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
13
14
15
16
17 public class TradeDetail implements Serializable {
18
19 private static final long serialVersionUID = 2016062001L;
20
21
22
23
24 private Instant consignTime;
25
26
27
28
29 private String buyerArea;
30
31
32
33
34 private Long num;
35
36 private AdjustFee adjustFee;
37
38
39
40
41
42
43
44
45
46 private String relationType;
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63 private String type;
64
65
66
67
68
69 private Long buyerId;
70
71
72
73
74 private String tid;
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89 private Integer feedback;
90
91
92
93
94 private Long outerUserId;
95
96
97
98
99
100
101 private BigDecimal price;
102
103
104
105
106
107 private BigDecimal totalFee;
108
109
110
111
112
113 private BigDecimal payment;
114
115
116
117
118 private Long weixinUserId;
119
120
121
122
123 private TradeDetail[] subTrades;
124
125
126
127
128 private String buyerMessage;
129
130
131
132
133 private Instant created;
134
135
136
137
138 private Instant payTime;
139
140
141
142
143 private String[] outTradeNo;
144
145
146
147
148 private TradeOrder[] orders;
149
150
151
152
153 private TradePromotion[] promotionDetails;
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168 private String refundState;
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185 private String status;
186
187
188
189
190 private BigDecimal postFee;
191
192
193
194
195 private String picThumbPath;
196
197
198
199
200
201
202
203 private String receiverCity;
204
205
206
207
208
209
210
211
212
213 private String shippingType;
214
215
216
217
218
219 private BigDecimal refundedFee;
220
221
222
223
224
225 private Long numIid;
226
227
228
229
230 private String title;
231
232
233
234
235 private BigDecimal discountFee;
236
237
238
239
240 private String receiverState;
241
242
243
244
245 private Instant updateTime;
246
247
248
249
250 private UmpTradeCoupon[] couponDetails;
251
252
253
254
255 private String receiverZip;
256
257
258
259
260 private String receiverName;
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280 private String payType;
281
282
283
284
285
286 private BigDecimal profit;
287
288
289
290
291 private TradeFetch fetchDetail;
292
293
294
295
296
297
298
299
300
301
302 private Integer buyerType;
303
304
305
306
307 private String receiverDistrict;
308
309
310
311
312
313 private String picPath;
314
315
316
317
318 private String receiverMobile;
319
320
321
322
323 private Instant signTime;
324
325
326
327
328 private Integer sellerFlag;
329
330
331
332
333 private String buyerNick;
334
335
336
337
338 private Integer handled;
339
340
341
342
343 private String receiverAddress;
344
345
346
347
348 private String tradeMemo;
349
350
351
352
353
354
355 private String[] relations;
356
357
358
359
360 private String outerTid;
361
362 public TradeDetail() {
363 }
364
365 public TradeDetail(
366 @JsonProperty("consign_time")
367 @JsonDeserialize(using = InstantDeserializer.class)
368 Instant consignTime,
369 @JsonProperty("buyer_area") String buyerArea,
370 @JsonProperty("num") Long num,
371 @JsonProperty("adjust_fee") AdjustFee adjustFee,
372 @JsonProperty("relation_type") String relationType,
373 @JsonProperty("type") String type,
374 @JsonProperty("buyer_id") Long buyerId,
375 @JsonProperty("tid") String tid,
376 @JsonProperty("feedback") Integer feedback,
377 @JsonProperty("outer_user_id") Long outerUserId,
378 @JsonProperty("price") BigDecimal price,
379 @JsonProperty("total_fee") BigDecimal totalFee,
380 @JsonProperty("payment") BigDecimal payment,
381 @JsonProperty("weixin_user_id") Long weixinUserId,
382 @JsonProperty("sub_trades") TradeDetail[] subTrades,
383 @JsonProperty("buyer_message") String buyerMessage,
384 @JsonProperty("created")
385 @JsonDeserialize(using = InstantDeserializer.class)
386 Instant created,
387 @JsonProperty("pay_time")
388 @JsonDeserialize(using = InstantDeserializer.class)
389 Instant payTime,
390 @JsonProperty("out_trade_no") String[] outTradeNo,
391 @JsonProperty("orders") TradeOrder[] orders,
392 @JsonProperty("promotion_details") TradePromotion[] promotionDetails,
393 @JsonProperty("refund_state") String refundState,
394 @JsonProperty("status") String status,
395 @JsonProperty("post_fee") BigDecimal postFee,
396 @JsonProperty("pic_thumb_path") String picThumbPath,
397 @JsonProperty("receiver_city") String receiverCity,
398 @JsonProperty("shipping_type") String shippingType,
399 @JsonProperty("refunded_fee") BigDecimal refundedFee,
400 @JsonProperty("num_iid") Long numIid,
401 @JsonProperty("title") String title,
402 @JsonProperty("discount_fee") BigDecimal discountFee,
403 @JsonProperty("receiver_state") String receiverState,
404 @JsonProperty("update_time")
405 @JsonDeserialize(using = InstantDeserializer.class)
406 Instant updateTime,
407 @JsonProperty("coupon_details") UmpTradeCoupon[] couponDetails,
408 @JsonProperty("receiver_zip") String receiverZip,
409 @JsonProperty("receiver_name") String receiverName,
410 @JsonProperty("pay_type") String payType,
411 @JsonProperty("profit") BigDecimal profit,
412 @JsonProperty("fetch_detail") TradeFetch fetchDetail,
413 @JsonProperty("buyer_type") Integer buyerType,
414 @JsonProperty("receiver_district") String receiverDistrict,
415 @JsonProperty("pic_path") String picPath,
416 @JsonProperty("receiver_mobile") String receiverMobile,
417 @JsonProperty("sign_time")
418 @JsonDeserialize(using = InstantDeserializer.class)
419 Instant signTime,
420 @JsonProperty("seller_flag") Integer sellerFlag,
421 @JsonProperty("buyer_nick") String buyerNick,
422 @JsonProperty("handled") Integer handled,
423 @JsonProperty("receiver_address") String receiverAddress,
424 @JsonProperty("trade_memo") String tradeMemo,
425 @JsonProperty("relations") String[] relations,
426 @JsonProperty("outer_tid") String outerTid
427 ) {
428 this.consignTime = consignTime;
429 this.buyerArea = buyerArea;
430 this.num = num;
431 this.adjustFee = adjustFee;
432 this.relationType = relationType;
433 this.type = type;
434 this.buyerId = buyerId;
435 this.tid = tid;
436 this.feedback = feedback;
437 this.outerUserId = outerUserId;
438 this.price = price;
439 this.totalFee = totalFee;
440 this.payment = payment;
441 this.weixinUserId = weixinUserId;
442 this.subTrades = subTrades;
443 this.buyerMessage = buyerMessage;
444 this.created = created;
445 this.payTime = payTime;
446 this.outTradeNo = outTradeNo;
447 this.orders = orders;
448 this.promotionDetails = promotionDetails;
449 this.refundState = refundState;
450 this.status = status;
451 this.postFee = postFee;
452 this.picThumbPath = picThumbPath;
453 this.receiverCity = receiverCity;
454 this.shippingType = shippingType;
455 this.refundedFee = refundedFee;
456 this.numIid = numIid;
457 this.title = title;
458 this.discountFee = discountFee;
459 this.receiverState = receiverState;
460 this.updateTime = updateTime;
461 this.couponDetails = couponDetails;
462 this.receiverZip = receiverZip;
463 this.receiverName = receiverName;
464 this.payType = payType;
465 this.profit = profit;
466 this.fetchDetail = fetchDetail;
467 this.buyerType = buyerType;
468 this.receiverDistrict = receiverDistrict;
469 this.picPath = picPath;
470 this.receiverMobile = receiverMobile;
471 this.signTime = signTime;
472 this.sellerFlag = sellerFlag;
473 this.buyerNick = buyerNick;
474 this.handled = handled;
475 this.receiverAddress = receiverAddress;
476 this.tradeMemo = tradeMemo;
477 this.relations = relations;
478 this.outerTid = outerTid;
479 }
480
481 public Instant getConsignTime() {
482 return consignTime;
483 }
484
485 public void setConsignTime(Instant consignTime) {
486 this.consignTime = consignTime;
487 }
488
489 public String getBuyerArea() {
490 return buyerArea;
491 }
492
493 public void setBuyerArea(String buyerArea) {
494 this.buyerArea = buyerArea;
495 }
496
497 public Long getNum() {
498 return num;
499 }
500
501 public void setNum(Long num) {
502 this.num = num;
503 }
504
505 public AdjustFee getAdjustFee() {
506 return adjustFee;
507 }
508
509 public void setAdjustFee(AdjustFee adjustFee) {
510 this.adjustFee = adjustFee;
511 }
512
513 public String getRelationType() {
514 return relationType;
515 }
516
517 public void setRelationType(String relationType) {
518 this.relationType = relationType;
519 }
520
521 public String getType() {
522 return type;
523 }
524
525 public void setType(String type) {
526 this.type = type;
527 }
528
529 public Long getBuyerId() {
530 return buyerId;
531 }
532
533 public void setBuyerId(Long buyerId) {
534 this.buyerId = buyerId;
535 }
536
537 public String getTid() {
538 return tid;
539 }
540
541 public void setTid(String tid) {
542 this.tid = tid;
543 }
544
545 public Integer getFeedback() {
546 return feedback;
547 }
548
549 public void setFeedback(Integer feedback) {
550 this.feedback = feedback;
551 }
552
553 public Long getOuterUserId() {
554 return outerUserId;
555 }
556
557 public void setOuterUserId(Long outerUserId) {
558 this.outerUserId = outerUserId;
559 }
560
561 public BigDecimal getPrice() {
562 return price;
563 }
564
565 public void setPrice(BigDecimal price) {
566 this.price = price;
567 }
568
569 public BigDecimal getTotalFee() {
570 return totalFee;
571 }
572
573 public void setTotalFee(BigDecimal totalFee) {
574 this.totalFee = totalFee;
575 }
576
577 public BigDecimal getPayment() {
578 return payment;
579 }
580
581 public void setPayment(BigDecimal payment) {
582 this.payment = payment;
583 }
584
585 public Long getWeixinUserId() {
586 return weixinUserId;
587 }
588
589 public void setWeixinUserId(Long weixinUserId) {
590 this.weixinUserId = weixinUserId;
591 }
592
593 public TradeDetail[] getSubTrades() {
594 return subTrades;
595 }
596
597 public void setSubTrades(TradeDetail[] subTrades) {
598 this.subTrades = subTrades;
599 }
600
601 public String getBuyerMessage() {
602 return buyerMessage;
603 }
604
605 public void setBuyerMessage(String buyerMessage) {
606 this.buyerMessage = buyerMessage;
607 }
608
609 public Instant getCreated() {
610 return created;
611 }
612
613 public void setCreated(Instant created) {
614 this.created = created;
615 }
616
617 public Instant getPayTime() {
618 return payTime;
619 }
620
621 public void setPayTime(Instant payTime) {
622 this.payTime = payTime;
623 }
624
625 public String[] getOutTradeNo() {
626 return outTradeNo;
627 }
628
629 public void setOutTradeNo(String[] outTradeNo) {
630 this.outTradeNo = outTradeNo;
631 }
632
633 public TradeOrder[] getOrders() {
634 return orders;
635 }
636
637 public void setOrders(TradeOrder[] orders) {
638 this.orders = orders;
639 }
640
641 public TradePromotion[] getPromotionDetails() {
642 return promotionDetails;
643 }
644
645 public void setPromotionDetails(TradePromotion[] promotionDetails) {
646 this.promotionDetails = promotionDetails;
647 }
648
649 public String getRefundState() {
650 return refundState;
651 }
652
653 public void setRefundState(String refundState) {
654 this.refundState = refundState;
655 }
656
657 public String getStatus() {
658 return status;
659 }
660
661 public void setStatus(String status) {
662 this.status = status;
663 }
664
665 public BigDecimal getPostFee() {
666 return postFee;
667 }
668
669 public void setPostFee(BigDecimal postFee) {
670 this.postFee = postFee;
671 }
672
673 public String getPicThumbPath() {
674 return picThumbPath;
675 }
676
677 public void setPicThumbPath(String picThumbPath) {
678 this.picThumbPath = picThumbPath;
679 }
680
681 public String getReceiverCity() {
682 return receiverCity;
683 }
684
685 public void setReceiverCity(String receiverCity) {
686 this.receiverCity = receiverCity;
687 }
688
689 public String getShippingType() {
690 return shippingType;
691 }
692
693 public void setShippingType(String shippingType) {
694 this.shippingType = shippingType;
695 }
696
697 public BigDecimal getRefundedFee() {
698 return refundedFee;
699 }
700
701 public void setRefundedFee(BigDecimal refundedFee) {
702 this.refundedFee = refundedFee;
703 }
704
705 public Long getNumIid() {
706 return numIid;
707 }
708
709 public void setNumIid(Long numIid) {
710 this.numIid = numIid;
711 }
712
713 public String getTitle() {
714 return title;
715 }
716
717 public void setTitle(String title) {
718 this.title = StringEscapeUtils.unescapeHtml4(title);
719 }
720
721 public BigDecimal getDiscountFee() {
722 return discountFee;
723 }
724
725 public void setDiscountFee(BigDecimal discountFee) {
726 this.discountFee = discountFee;
727 }
728
729 public String getReceiverState() {
730 return receiverState;
731 }
732
733 public void setReceiverState(String receiverState) {
734 this.receiverState = receiverState;
735 }
736
737 public Instant getUpdateTime() {
738 return updateTime;
739 }
740
741 public void setUpdateTime(Instant updateTime) {
742 this.updateTime = updateTime;
743 }
744
745 public UmpTradeCoupon[] getCouponDetails() {
746 return couponDetails;
747 }
748
749 public void setCouponDetails(UmpTradeCoupon[] couponDetails) {
750 this.couponDetails = couponDetails;
751 }
752
753 public String getReceiverZip() {
754 return receiverZip;
755 }
756
757 public void setReceiverZip(String receiverZip) {
758 this.receiverZip = receiverZip;
759 }
760
761 public String getReceiverName() {
762 return receiverName;
763 }
764
765 public void setReceiverName(String receiverName) {
766 this.receiverName = receiverName;
767 }
768
769 public String getPayType() {
770 return payType;
771 }
772
773 public void setPayType(String payType) {
774 this.payType = payType;
775 }
776
777 public BigDecimal getProfit() {
778 return profit;
779 }
780
781 public void setProfit(BigDecimal profit) {
782 this.profit = profit;
783 }
784
785 public TradeFetch getFetchDetail() {
786 return fetchDetail;
787 }
788
789 public void setFetchDetail(TradeFetch fetchDetail) {
790 this.fetchDetail = fetchDetail;
791 }
792
793 public Integer getBuyerType() {
794 return buyerType;
795 }
796
797 public void setBuyerType(Integer buyerType) {
798 this.buyerType = buyerType;
799 }
800
801 public String getReceiverDistrict() {
802 return receiverDistrict;
803 }
804
805 public void setReceiverDistrict(String receiverDistrict) {
806 this.receiverDistrict = receiverDistrict;
807 }
808
809 public String getPicPath() {
810 return picPath;
811 }
812
813 public void setPicPath(String picPath) {
814 this.picPath = picPath;
815 }
816
817 public String getReceiverMobile() {
818 return receiverMobile;
819 }
820
821 public void setReceiverMobile(String receiverMobile) {
822 this.receiverMobile = receiverMobile;
823 }
824
825 public Instant getSignTime() {
826 return signTime;
827 }
828
829 public void setSignTime(Instant signTime) {
830 this.signTime = signTime;
831 }
832
833 public Integer getSellerFlag() {
834 return sellerFlag;
835 }
836
837 public void setSellerFlag(Integer sellerFlag) {
838 this.sellerFlag = sellerFlag;
839 }
840
841 public String getBuyerNick() {
842 return buyerNick;
843 }
844
845 public void setBuyerNick(String buyerNick) {
846 this.buyerNick = buyerNick;
847 }
848
849 public Integer getHandled() {
850 return handled;
851 }
852
853 public void setHandled(Integer handled) {
854 this.handled = handled;
855 }
856
857 public String getReceiverAddress() {
858 return receiverAddress;
859 }
860
861 public void setReceiverAddress(String receiverAddress) {
862 this.receiverAddress = receiverAddress;
863 }
864
865 public String getTradeMemo() {
866 return tradeMemo;
867 }
868
869 public void setTradeMemo(String tradeMemo) {
870 this.tradeMemo = tradeMemo;
871 }
872
873 public String[] getRelations() {
874 return relations;
875 }
876
877 public void setRelations(String[] relations) {
878 this.relations = relations;
879 }
880
881 public String getOuterTid() {
882 return outerTid;
883 }
884
885 public void setOuterTid(String outerTid) {
886 this.outerTid = outerTid;
887 }
888
889 }