Subversion Repositories SmartDukaan

Rev

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