Subversion Repositories SmartDukaan

Rev

Rev 27067 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
27067 amit.gupta 1
package com.spice.profitmandi.common.util;
2
 
3
import java.time.LocalDateTime;
4
 
5
import in.shop2020.model.v1.order.WalletReferenceType;
6
 
7
public class WalletHistoryModel {
8
	private int fofoId;
9
	private WalletReferenceType walletReferenceType;
10
	private double amount;
11
	private String description;
12
	private LocalDateTime businessDate;
27346 amit.gupta 13
	private int reference;
27067 amit.gupta 14
	@Override
15
	public String toString() {
16
		return "WalletHistoryModel [fofoId=" + fofoId + ", walletReferenceType=" + walletReferenceType + ", amount="
27346 amit.gupta 17
				+ amount + ", description=" + description + ", businessDate=" + businessDate + ", reference="
18
				+ reference + "]";
27067 amit.gupta 19
	}
20
	public int getFofoId() {
21
		return fofoId;
22
	}
23
	public void setFofoId(int fofoId) {
24
		this.fofoId = fofoId;
25
	}
27346 amit.gupta 26
 
27
 
28
	@Override
29
	public int hashCode() {
30
		final int prime = 31;
31
		int result = 1;
32
		long temp;
33
		temp = Double.doubleToLongBits(amount);
34
		result = prime * result + (int) (temp ^ (temp >>> 32));
35
		result = prime * result + ((businessDate == null) ? 0 : businessDate.hashCode());
36
		result = prime * result + ((description == null) ? 0 : description.hashCode());
37
		result = prime * result + fofoId;
38
		result = prime * result + reference;
39
		result = prime * result + ((walletReferenceType == null) ? 0 : walletReferenceType.hashCode());
40
		return result;
41
	}
42
	@Override
43
	public boolean equals(Object obj) {
44
		if (this == obj)
45
			return true;
46
		if (obj == null)
47
			return false;
48
		if (getClass() != obj.getClass())
49
			return false;
50
		WalletHistoryModel other = (WalletHistoryModel) obj;
51
		if (Double.doubleToLongBits(amount) != Double.doubleToLongBits(other.amount))
52
			return false;
53
		if (businessDate == null) {
54
			if (other.businessDate != null)
55
				return false;
56
		} else if (!businessDate.equals(other.businessDate))
57
			return false;
58
		if (description == null) {
59
			if (other.description != null)
60
				return false;
61
		} else if (!description.equals(other.description))
62
			return false;
63
		if (fofoId != other.fofoId)
64
			return false;
65
		if (reference != other.reference)
66
			return false;
67
		if (walletReferenceType != other.walletReferenceType)
68
			return false;
69
		return true;
70
	}
71
	public int getReference() {
72
		return reference;
73
	}
74
	public void setReference(int reference) {
75
		this.reference = reference;
76
	}
27067 amit.gupta 77
	public WalletReferenceType getWalletReferenceType() {
78
		return walletReferenceType;
79
	}
80
	public void setWalletReferenceType(WalletReferenceType walletReferenceType) {
81
		this.walletReferenceType = walletReferenceType;
82
	}
83
	public double getAmount() {
84
		return amount;
85
	}
86
	public void setAmount(double amount) {
87
		this.amount = amount;
88
	}
89
	public String getDescription() {
90
		return description;
91
	}
92
	public void setDescription(String description) {
93
		this.description = description;
94
	}
95
	public LocalDateTime getBusinessDate() {
96
		return businessDate;
97
	}
98
	public void setBusinessDate(LocalDateTime businessDate) {
99
		this.businessDate = businessDate;
100
	}
101
 
102
}