Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
21686 ashik.ali 1
package com.spice.profitmandi.common.model;
2
 
23001 amit.gupta 3
import java.util.List;
30399 amit.gupta 4
import java.util.Objects;
21686 ashik.ali 5
 
30321 amit.gupta 6
public class InvoicePdfModel {
32246 tejbeer 7
    private String title;
8
    private String auther;
9
    private CustomCustomer customer;
10
    private String customerAddressStateCode;
30321 amit.gupta 11
 
32980 amit.gupta 12
    private IrnModel irnModel;
30321 amit.gupta 13
 
32980 amit.gupta 14
 
32246 tejbeer 15
    private CustomRetailer retailer;
16
    private String invoiceNumber;
17
    private boolean isCancelled;
30399 amit.gupta 18
 
32246 tejbeer 19
    private String invoiceDate;
33298 amit.gupta 20
    private List<CustomOrderItem> orderItems;
21
    private List<CustomInsurancePolicy> insurancePolicies;
32246 tejbeer 22
    private List<CustomPaymentOption> paymentOptions;
23
    private List<String> tncs;
35024 amit 24
 
25
    @Override
26
    public boolean equals(Object o) {
27
        if (this == o) return true;
28
        if (o == null || getClass() != o.getClass()) return false;
29
        InvoicePdfModel that = (InvoicePdfModel) o;
30
        return isCancelled == that.isCancelled && Float.compare(totalAmount, that.totalAmount) == 0 && Objects.equals(title, that.title) && Objects.equals(auther, that.auther) && Objects.equals(customer, that.customer) && Objects.equals(customerAddressStateCode, that.customerAddressStateCode) && Objects.equals(irnModel, that.irnModel) && Objects.equals(retailer, that.retailer) && Objects.equals(invoiceNumber, that.invoiceNumber) && Objects.equals(invoiceDate, that.invoiceDate) && Objects.equals(orderItems, that.orderItems) && Objects.equals(insurancePolicies, that.insurancePolicies) && Objects.equals(paymentOptions, that.paymentOptions) && Objects.equals(tncs, that.tncs) && Objects.equals(creditTerms, that.creditTerms) && Objects.equals(eWayBillPdfModel, that.eWayBillPdfModel) && Objects.equals(partnerAddressStateCode, that.partnerAddressStateCode);
31
    }
32
 
33
    @Override
34
    public int hashCode() {
35
        return Objects.hash(title, auther, customer, customerAddressStateCode, irnModel, retailer, invoiceNumber, isCancelled, invoiceDate, orderItems, insurancePolicies, paymentOptions, tncs, creditTerms, totalAmount, eWayBillPdfModel, partnerAddressStateCode);
36
    }
37
 
38
    @Override
39
    public String toString() {
40
        return "InvoicePdfModel{" +
41
                "title='" + title + '\'' +
42
                ", auther='" + auther + '\'' +
43
                ", customer=" + customer +
44
                ", customerAddressStateCode='" + customerAddressStateCode + '\'' +
45
                ", irnModel=" + irnModel +
46
                ", retailer=" + retailer +
47
                ", invoiceNumber='" + invoiceNumber + '\'' +
48
                ", isCancelled=" + isCancelled +
49
                ", invoiceDate='" + invoiceDate + '\'' +
50
                ", orderItems=" + orderItems +
51
                ", insurancePolicies=" + insurancePolicies +
52
                ", paymentOptions=" + paymentOptions +
53
                ", tncs=" + tncs +
54
                ", creditTerms=" + creditTerms +
55
                ", totalAmount=" + totalAmount +
56
                ", eWayBillPdfModel=" + eWayBillPdfModel +
57
                ", partnerAddressStateCode='" + partnerAddressStateCode + '\'' +
58
                '}';
59
    }
60
 
61
    private List<String> creditTerms;
32246 tejbeer 62
    private float totalAmount;
30399 amit.gupta 63
 
33741 amit.gupta 64
    private EWayBillPdfModel eWayBillPdfModel;
32980 amit.gupta 65
 
66
 
33741 amit.gupta 67
 
32246 tejbeer 68
    public boolean isCancelled() {
69
        return isCancelled;
70
    }
30399 amit.gupta 71
 
32246 tejbeer 72
    public void setCancelled(boolean isCancelled) {
73
        this.isCancelled = isCancelled;
74
    }
30399 amit.gupta 75
 
32246 tejbeer 76
    public String getCustomerAddressStateCode() {
77
        return customerAddressStateCode;
78
    }
30399 amit.gupta 79
 
32246 tejbeer 80
    public void setCustomerAddressStateCode(String customerAddressStateCode) {
81
        this.customerAddressStateCode = customerAddressStateCode;
82
    }
30399 amit.gupta 83
 
32246 tejbeer 84
    private String partnerAddressStateCode;
30399 amit.gupta 85
 
32246 tejbeer 86
    public String getPartnerAddressStateCode() {
87
        return partnerAddressStateCode;
88
    }
30399 amit.gupta 89
 
32246 tejbeer 90
    public void setPartnerAddressStateCode(String partnerAddressStateCode) {
91
        this.partnerAddressStateCode = partnerAddressStateCode;
92
    }
30399 amit.gupta 93
 
32246 tejbeer 94
    public String getTitle() {
95
        return title;
96
    }
30399 amit.gupta 97
 
32246 tejbeer 98
    public void setTitle(String title) {
99
        this.title = title;
100
    }
30399 amit.gupta 101
 
32246 tejbeer 102
    public String getAuther() {
103
        return auther;
104
    }
30399 amit.gupta 105
 
32246 tejbeer 106
    public void setAuther(String auther) {
107
        this.auther = auther;
108
    }
30399 amit.gupta 109
 
32246 tejbeer 110
    public CustomCustomer getCustomer() {
111
        return customer;
112
    }
113
 
114
    public void setCustomer(CustomCustomer customer) {
115
        this.customer = customer;
116
    }
117
 
118
    public CustomRetailer getRetailer() {
119
        return retailer;
120
    }
121
 
122
    public void setRetailer(CustomRetailer retailer) {
123
        this.retailer = retailer;
124
    }
125
 
126
    public String getInvoiceNumber() {
127
        return invoiceNumber;
128
    }
129
 
130
    public void setInvoiceNumber(String invoiceNumber) {
131
        this.invoiceNumber = invoiceNumber;
132
    }
133
 
33298 amit.gupta 134
    public List<CustomOrderItem> getOrderItems() {
32246 tejbeer 135
        return orderItems;
136
    }
137
 
33298 amit.gupta 138
    public void setOrderItems(List<CustomOrderItem> orderItems) {
32246 tejbeer 139
        this.orderItems = orderItems;
140
    }
141
 
33298 amit.gupta 142
    public List<CustomInsurancePolicy> getInsurancePolicies() {
32246 tejbeer 143
        return insurancePolicies;
144
    }
145
 
33298 amit.gupta 146
    public void setInsurancePolicies(List<CustomInsurancePolicy> insurancePolicies) {
32246 tejbeer 147
        this.insurancePolicies = insurancePolicies;
148
    }
149
 
33741 amit.gupta 150
    public EWayBillPdfModel geteWayBillPdfModel() {
151
        return eWayBillPdfModel;
152
    }
153
 
154
    public void seteWayBillPdfModel(EWayBillPdfModel eWayBillPdfModel) {
155
        this.eWayBillPdfModel = eWayBillPdfModel;
156
    }
157
 
32246 tejbeer 158
    public float getTotalAmount() {
159
        return totalAmount;
160
    }
161
 
162
    public void setTotalAmount(float totalAmount) {
163
        this.totalAmount = totalAmount;
164
    }
165
 
166
    public String getInvoiceDate() {
167
        return invoiceDate;
168
    }
169
 
170
    public void setInvoiceDate(String invoiceDate) {
171
        this.invoiceDate = invoiceDate;
172
    }
173
 
174
    public List<String> getTncs() {
175
        return tncs;
176
    }
177
 
178
    public void setTncs(List<String> tncs) {
179
        this.tncs = tncs;
180
    }
181
 
182
    public List<CustomPaymentOption> getPaymentOptions() {
183
        return paymentOptions;
184
    }
185
 
186
    public void setPaymentOptions(List<CustomPaymentOption> paymentOptions) {
187
        this.paymentOptions = paymentOptions;
188
    }
189
 
32980 amit.gupta 190
    public IrnModel getIrnModel() {
191
        return irnModel;
32246 tejbeer 192
    }
193
 
32980 amit.gupta 194
    public void setIrnModel(IrnModel irnModel) {
195
        this.irnModel = irnModel;
32246 tejbeer 196
    }
197
 
35024 amit 198
    public void setCreditTerms(List<String> creditTerms) {
199
        this.creditTerms = creditTerms;
32246 tejbeer 200
    }
35024 amit 201
 
202
    public List<String> getCreditTerms() {
203
        return creditTerms;
204
    }
21686 ashik.ali 205
}