Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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