Subversion Repositories SmartDukaan

Rev

Rev 25982 | Rev 32025 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
25982 amit.gupta 1
package com.spice.profitmandi.dao.model;
25976 amit.gupta 2
 
3
import java.time.LocalDateTime;
4
 
5
import com.fasterxml.jackson.annotation.JsonProperty;
26196 amit.gupta 6
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
7
import com.spice.profitmandi.dao.convertor.LocalDateTimeJsonConverter;
8
import com.spice.profitmandi.dao.serializer.CustomDateTimeDeserializer;
25976 amit.gupta 9
 
10
public class AddPaymentRequest {
11
	private String transactionId;
12
	private String remitterName;
13
	private String fromAccountNumber;
14
	private String fromBankName;
15
	private String utr;
16
 
17
	@JsonProperty("Virtual_Account")
18
	private String virtualAccount;
19
 
20
	private double amount;
21
	private String mmid;
22
	private String transferMode;
26196 amit.gupta 23
 
24
	@JsonDeserialize(using=CustomDateTimeDeserializer.class)
25976 amit.gupta 25
	private LocalDateTime creditDateTime;
26
	@Override
27
	public String toString() {
28
		return "AddPaymentRequest [transactionId=" + transactionId + ", remitterName=" + remitterName
29
				+ ", fromAccountNumber=" + fromAccountNumber + ", fromBankName=" + fromBankName + ", utr=" + utr
30
				+ ", virtualAccount=" + virtualAccount + ", amount=" + amount + ", mmid=" + mmid + ", transferMode="
31
				+ transferMode + ", creditDateTime=" + creditDateTime + "]";
32
	}
33
	public String getTransactionId() {
34
		return transactionId;
35
	}
36
	public void setTransactionId(String transactionId) {
37
		this.transactionId = transactionId;
38
	}
39
	public String getRemitterName() {
40
		return remitterName;
41
	}
42
	public void setRemitterName(String remitterName) {
43
		this.remitterName = remitterName;
44
	}
45
	public String getFromAccountNumber() {
46
		return fromAccountNumber;
47
	}
48
	public void setFromAccountNumber(String fromAccountNumber) {
49
		this.fromAccountNumber = fromAccountNumber;
50
	}
51
	public String getFromBankName() {
52
		return fromBankName;
53
	}
54
	public void setFromBankName(String fromBankName) {
55
		this.fromBankName = fromBankName;
56
	}
57
	public String getUtr() {
58
		return utr;
59
	}
60
	public void setUtr(String utr) {
61
		this.utr = utr;
62
	}
63
	public String getVirtualAccount() {
64
		return virtualAccount;
65
	}
66
	public void setVirtualAccount(String virtualAccount) {
67
		this.virtualAccount = virtualAccount;
68
	}
69
	public double getAmount() {
70
		return amount;
71
	}
72
	public void setAmount(double amount) {
73
		this.amount = amount;
74
	}
75
	public String getMmid() {
76
		return mmid;
77
	}
78
	public void setMmid(String mmid) {
79
		this.mmid = mmid;
80
	}
81
	public String getTransferMode() {
82
		return transferMode;
83
	}
84
	public void setTransferMode(String transferMode) {
85
		this.transferMode = transferMode;
86
	}
87
	public LocalDateTime getCreditDateTime() {
88
		return creditDateTime;
89
	}
90
	public void setCreditDateTime(LocalDateTime creditDateTime) {
91
		this.creditDateTime = creditDateTime;
92
	}
93
	@Override
94
	public int hashCode() {
95
		final int prime = 31;
96
		int result = 1;
97
		long temp;
98
		temp = Double.doubleToLongBits(amount);
99
		result = prime * result + (int) (temp ^ (temp >>> 32));
100
		result = prime * result + ((creditDateTime == null) ? 0 : creditDateTime.hashCode());
101
		result = prime * result + ((fromAccountNumber == null) ? 0 : fromAccountNumber.hashCode());
102
		result = prime * result + ((fromBankName == null) ? 0 : fromBankName.hashCode());
103
		result = prime * result + ((mmid == null) ? 0 : mmid.hashCode());
104
		result = prime * result + ((remitterName == null) ? 0 : remitterName.hashCode());
105
		result = prime * result + ((transactionId == null) ? 0 : transactionId.hashCode());
106
		result = prime * result + ((transferMode == null) ? 0 : transferMode.hashCode());
107
		result = prime * result + ((utr == null) ? 0 : utr.hashCode());
108
		result = prime * result + ((virtualAccount == null) ? 0 : virtualAccount.hashCode());
109
		return result;
110
	}
111
	@Override
112
	public boolean equals(Object obj) {
113
		if (this == obj)
114
			return true;
115
		if (obj == null)
116
			return false;
117
		if (getClass() != obj.getClass())
118
			return false;
119
		AddPaymentRequest other = (AddPaymentRequest) obj;
120
		if (Double.doubleToLongBits(amount) != Double.doubleToLongBits(other.amount))
121
			return false;
122
		if (creditDateTime == null) {
123
			if (other.creditDateTime != null)
124
				return false;
125
		} else if (!creditDateTime.equals(other.creditDateTime))
126
			return false;
127
		if (fromAccountNumber == null) {
128
			if (other.fromAccountNumber != null)
129
				return false;
130
		} else if (!fromAccountNumber.equals(other.fromAccountNumber))
131
			return false;
132
		if (fromBankName == null) {
133
			if (other.fromBankName != null)
134
				return false;
135
		} else if (!fromBankName.equals(other.fromBankName))
136
			return false;
137
		if (mmid == null) {
138
			if (other.mmid != null)
139
				return false;
140
		} else if (!mmid.equals(other.mmid))
141
			return false;
142
		if (remitterName == null) {
143
			if (other.remitterName != null)
144
				return false;
145
		} else if (!remitterName.equals(other.remitterName))
146
			return false;
147
		if (transactionId == null) {
148
			if (other.transactionId != null)
149
				return false;
150
		} else if (!transactionId.equals(other.transactionId))
151
			return false;
152
		if (transferMode == null) {
153
			if (other.transferMode != null)
154
				return false;
155
		} else if (!transferMode.equals(other.transferMode))
156
			return false;
157
		if (utr == null) {
158
			if (other.utr != null)
159
				return false;
160
		} else if (!utr.equals(other.utr))
161
			return false;
162
		if (virtualAccount == null) {
163
			if (other.virtualAccount != null)
164
				return false;
165
		} else if (!virtualAccount.equals(other.virtualAccount))
166
			return false;
167
		return true;
168
	}
169
 
170
 
171
 
172
 
173
}