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
public class AddPaymentResponse {
4
	private String transactionId;
5
	private String status;
6
	private String code;
7
	@Override
8
	public String toString() {
9
		return "AddPaymentResponse [transactionId=" + transactionId + ", status=" + status + ", code=" + code + "]";
10
	}
11
	public String getTransactionId() {
12
		return transactionId;
13
	}
14
	public void setTransactionId(String transactionId) {
15
		this.transactionId = transactionId;
16
	}
17
	public String getStatus() {
18
		return status;
19
	}
20
	public void setStatus(String status) {
21
		this.status = status;
22
	}
23
	public String getCode() {
24
		return code;
25
	}
26
	public void setCode(String code) {
27
		this.code = code;
28
	}
29
	@Override
30
	public int hashCode() {
31
		final int prime = 31;
32
		int result = 1;
33
		result = prime * result + ((code == null) ? 0 : code.hashCode());
34
		result = prime * result + ((status == null) ? 0 : status.hashCode());
35
		result = prime * result + ((transactionId == null) ? 0 : transactionId.hashCode());
36
		return result;
37
	}
38
	@Override
39
	public boolean equals(Object obj) {
40
		if (this == obj)
41
			return true;
42
		if (obj == null)
43
			return false;
44
		if (getClass() != obj.getClass())
45
			return false;
46
		AddPaymentResponse other = (AddPaymentResponse) obj;
47
		if (code == null) {
48
			if (other.code != null)
49
				return false;
50
		} else if (!code.equals(other.code))
51
			return false;
52
		if (status == null) {
53
			if (other.status != null)
54
				return false;
55
		} else if (!status.equals(other.status))
56
			return false;
57
		if (transactionId == null) {
58
			if (other.transactionId != null)
59
				return false;
60
		} else if (!transactionId.equals(other.transactionId))
61
			return false;
62
		return true;
63
	}
64
 
65
 
66
 
67
}