Subversion Repositories SmartDukaan

Rev

Rev 33449 | Rev 35912 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33449 Rev 35087
Line 3... Line 3...
3
import com.spice.profitmandi.common.services.mandii.EligibilityStatusEnum;
3
import com.spice.profitmandi.common.services.mandii.EligibilityStatusEnum;
4
import com.spice.profitmandi.dao.entity.transaction.Loan;
4
import com.spice.profitmandi.dao.entity.transaction.Loan;
5
 
5
 
6
import java.math.BigDecimal;
6
import java.math.BigDecimal;
7
import java.util.List;
7
import java.util.List;
-
 
8
import java.util.Objects;
8
 
9
 
9
public class SDCreditResponseOut {
10
public class SDCreditResponseOut {
10
 
11
 
11
	private BigDecimal totalLimit;
12
	private BigDecimal totalLimit;
12
	private BigDecimal availableLimit;
13
	private BigDecimal availableLimit;
Line 17... Line 18...
17
	private int creditDays;
18
	private int creditDays;
18
	private List<Loan> loans;
19
	private List<Loan> loans;
19
	private EligibilityStatusEnum status;
20
	private EligibilityStatusEnum status;
20
	private boolean active;
21
	private boolean active;
21
	private BigDecimal totaldue;
22
	private BigDecimal totaldue;
-
 
23
	private double walletAmount;
22
 
24
 
23
	public BigDecimal getUtilizationAmount() {
25
	public BigDecimal getUtilizationAmount() {
24
		return utilizationAmount;
26
		return utilizationAmount;
25
	}
27
	}
26
 
28
 
Line 120... Line 122...
120
				", creditDays=" + creditDays +
122
				", creditDays=" + creditDays +
121
				", loans=" + loans +
123
				", loans=" + loans +
122
				", status=" + status +
124
				", status=" + status +
123
				", active=" + active +
125
				", active=" + active +
124
				", totaldue=" + totaldue +
126
				", totaldue=" + totaldue +
-
 
127
				", walletAmount=" + walletAmount +
125
				'}';
128
				'}';
126
	}
129
	}
127
 
130
 
-
 
131
	@Override
-
 
132
	public boolean equals(Object o) {
-
 
133
		if (this == o) return true;
-
 
134
		if (o == null || getClass() != o.getClass()) return false;
-
 
135
		SDCreditResponseOut that = (SDCreditResponseOut) o;
-
 
136
		return freeDays == that.freeDays && creditDays == that.creditDays && active == that.active && Double.compare(walletAmount, that.walletAmount) == 0 && Objects.equals(totalLimit, that.totalLimit) && Objects.equals(availableLimit, that.availableLimit) && Objects.equals(interestRate, that.interestRate) && Objects.equals(dailyInterest, that.dailyInterest) && Objects.equals(utilizationAmount, that.utilizationAmount) && Objects.equals(loans, that.loans) && status == that.status && Objects.equals(totaldue, that.totaldue);
-
 
137
	}
-
 
138
 
-
 
139
	@Override
-
 
140
	public int hashCode() {
-
 
141
		return Objects.hash(totalLimit, availableLimit, interestRate, dailyInterest, utilizationAmount, freeDays, creditDays, loans, status, active, totaldue, walletAmount);
-
 
142
	}
-
 
143
 
-
 
144
	public double getWalletAmount() {
-
 
145
		return walletAmount;
-
 
146
	}
-
 
147
 
-
 
148
	public void setWalletAmount(double walletAmount) {
-
 
149
		this.walletAmount = walletAmount;
-
 
150
	}
-
 
151
 
128
}
152
}