Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
29222 tejbeer 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.time.LocalDate;
4
import java.util.List;
32884 amit.gupta 5
import java.util.Objects;
29222 tejbeer 6
 
7
public class DispatchNotificationModel {
8
 
9
	private List<String> invoiceNumber;
10
	private Float totalAmount;
11
	private int totalQty;
12
	private int fofoId;
13
	private int providerId;
14
	private LocalDate date;
32884 amit.gupta 15
	private LocalDate shippingDate;
29222 tejbeer 16
 
32884 amit.gupta 17
 
18
	@Override
19
	public boolean equals(Object o) {
20
		if (this == o) return true;
21
		if (o == null || getClass() != o.getClass()) return false;
22
		DispatchNotificationModel that = (DispatchNotificationModel) o;
23
		return totalQty == that.totalQty && fofoId == that.fofoId && providerId == that.providerId && Objects.equals(invoiceNumber, that.invoiceNumber) && Objects.equals(totalAmount, that.totalAmount) && Objects.equals(date, that.date) && Objects.equals(shippingDate, that.shippingDate);
24
	}
25
 
26
	@Override
27
	public int hashCode() {
28
		return Objects.hash(invoiceNumber, totalAmount, totalQty, fofoId, providerId, date, shippingDate);
29
	}
30
 
31
	public LocalDate getShippingDate() {
32
		return shippingDate;
33
	}
34
 
35
	public void setShippingDate(LocalDate shippingDate) {
36
		this.shippingDate = shippingDate;
37
	}
38
 
29222 tejbeer 39
	public LocalDate getDate() {
40
		return date;
41
	}
42
 
43
	public void setDate(LocalDate date) {
44
		this.date = date;
45
	}
46
 
47
	public int getProviderId() {
48
		return providerId;
49
	}
50
 
51
	public void setProviderId(int providerId) {
52
		this.providerId = providerId;
53
	}
54
 
55
	public int getFofoId() {
56
		return fofoId;
57
	}
58
 
59
	public void setFofoId(int fofoId) {
60
		this.fofoId = fofoId;
61
	}
62
 
63
	public List<String> getInvoiceNumber() {
64
		return invoiceNumber;
65
	}
66
 
67
	public void setInvoiceNumber(List<String> invoiceNumber) {
68
		this.invoiceNumber = invoiceNumber;
69
	}
70
 
71
	public Float getTotalAmount() {
72
		return totalAmount;
73
	}
74
 
75
	public void setTotalAmount(Float totalAmount) {
76
		this.totalAmount = totalAmount;
77
	}
78
 
79
	public int getTotalQty() {
80
		return totalQty;
81
	}
82
 
83
	public void setTotalQty(int totalQty) {
84
		this.totalQty = totalQty;
85
	}
86
 
87
	@Override
88
	public String toString() {
89
		return "DispatchNotificationModel [invoiceNumber=" + invoiceNumber + ", totalAmount=" + totalAmount
90
				+ ", totalQty=" + totalQty + "]";
91
	}
92
 
93
}