Subversion Repositories SmartDukaan

Rev

Rev 32980 | Rev 33741 | 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
 
23001 amit.gupta 3
import java.util.List;
30399 amit.gupta 4
import java.util.Objects;
21686 ashik.ali 5
import java.util.Set;
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;
25
    private float totalAmount;
30399 amit.gupta 26
 
32980 amit.gupta 27
 
28
 
32246 tejbeer 29
    public boolean isCancelled() {
30
        return isCancelled;
31
    }
30399 amit.gupta 32
 
32246 tejbeer 33
    public void setCancelled(boolean isCancelled) {
34
        this.isCancelled = isCancelled;
35
    }
30399 amit.gupta 36
 
32246 tejbeer 37
    public String getCustomerAddressStateCode() {
38
        return customerAddressStateCode;
39
    }
30399 amit.gupta 40
 
32246 tejbeer 41
    public void setCustomerAddressStateCode(String customerAddressStateCode) {
42
        this.customerAddressStateCode = customerAddressStateCode;
43
    }
30399 amit.gupta 44
 
32246 tejbeer 45
    private String partnerAddressStateCode;
30399 amit.gupta 46
 
32246 tejbeer 47
    public String getPartnerAddressStateCode() {
48
        return partnerAddressStateCode;
49
    }
30399 amit.gupta 50
 
32246 tejbeer 51
    public void setPartnerAddressStateCode(String partnerAddressStateCode) {
52
        this.partnerAddressStateCode = partnerAddressStateCode;
53
    }
30399 amit.gupta 54
 
32246 tejbeer 55
    public String getTitle() {
56
        return title;
57
    }
30399 amit.gupta 58
 
32246 tejbeer 59
    public void setTitle(String title) {
60
        this.title = title;
61
    }
30399 amit.gupta 62
 
32246 tejbeer 63
    public String getAuther() {
64
        return auther;
65
    }
30399 amit.gupta 66
 
32246 tejbeer 67
    public void setAuther(String auther) {
68
        this.auther = auther;
69
    }
30399 amit.gupta 70
 
32246 tejbeer 71
    public CustomCustomer getCustomer() {
72
        return customer;
73
    }
74
 
75
    public void setCustomer(CustomCustomer customer) {
76
        this.customer = customer;
77
    }
78
 
79
    public CustomRetailer getRetailer() {
80
        return retailer;
81
    }
82
 
83
    public void setRetailer(CustomRetailer retailer) {
84
        this.retailer = retailer;
85
    }
86
 
87
    public String getInvoiceNumber() {
88
        return invoiceNumber;
89
    }
90
 
91
    public void setInvoiceNumber(String invoiceNumber) {
92
        this.invoiceNumber = invoiceNumber;
93
    }
94
 
33298 amit.gupta 95
    public List<CustomOrderItem> getOrderItems() {
32246 tejbeer 96
        return orderItems;
97
    }
98
 
33298 amit.gupta 99
    public void setOrderItems(List<CustomOrderItem> orderItems) {
32246 tejbeer 100
        this.orderItems = orderItems;
101
    }
102
 
33298 amit.gupta 103
    public List<CustomInsurancePolicy> getInsurancePolicies() {
32246 tejbeer 104
        return insurancePolicies;
105
    }
106
 
33298 amit.gupta 107
    public void setInsurancePolicies(List<CustomInsurancePolicy> insurancePolicies) {
32246 tejbeer 108
        this.insurancePolicies = insurancePolicies;
109
    }
110
 
111
    public float getTotalAmount() {
112
        return totalAmount;
113
    }
114
 
115
    public void setTotalAmount(float totalAmount) {
116
        this.totalAmount = totalAmount;
117
    }
118
 
119
    public String getInvoiceDate() {
120
        return invoiceDate;
121
    }
122
 
123
    public void setInvoiceDate(String invoiceDate) {
124
        this.invoiceDate = invoiceDate;
125
    }
126
 
127
    public List<String> getTncs() {
128
        return tncs;
129
    }
130
 
131
    public void setTncs(List<String> tncs) {
132
        this.tncs = tncs;
133
    }
134
 
135
    public List<CustomPaymentOption> getPaymentOptions() {
136
        return paymentOptions;
137
    }
138
 
139
    public void setPaymentOptions(List<CustomPaymentOption> paymentOptions) {
140
        this.paymentOptions = paymentOptions;
141
    }
142
 
143
    @Override
144
    public boolean equals(Object o) {
145
        if (this == o) return true;
146
        if (o == null || getClass() != o.getClass()) return false;
147
        InvoicePdfModel that = (InvoicePdfModel) o;
32980 amit.gupta 148
        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(partnerAddressStateCode, that.partnerAddressStateCode);
32246 tejbeer 149
    }
150
 
151
    @Override
152
    public int hashCode() {
32980 amit.gupta 153
        return Objects.hash(title, auther, customer, customerAddressStateCode, irnModel, retailer, invoiceNumber, isCancelled, invoiceDate, orderItems, insurancePolicies, paymentOptions, tncs, totalAmount, partnerAddressStateCode);
32246 tejbeer 154
    }
155
 
32980 amit.gupta 156
    public IrnModel getIrnModel() {
157
        return irnModel;
32246 tejbeer 158
    }
159
 
32980 amit.gupta 160
    public void setIrnModel(IrnModel irnModel) {
161
        this.irnModel = irnModel;
32246 tejbeer 162
    }
163
 
32980 amit.gupta 164
    @Override
165
    public String toString() {
166
        return "InvoicePdfModel{" +
167
                "title='" + title + '\'' +
168
                ", auther='" + auther + '\'' +
169
                ", customer=" + customer +
170
                ", customerAddressStateCode='" + customerAddressStateCode + '\'' +
171
                ", irnModel=" + irnModel +
172
                ", retailer=" + retailer +
173
                ", invoiceNumber='" + invoiceNumber + '\'' +
174
                ", isCancelled=" + isCancelled +
175
                ", invoiceDate='" + invoiceDate + '\'' +
176
                ", orderItems=" + orderItems +
177
                ", insurancePolicies=" + insurancePolicies +
178
                ", paymentOptions=" + paymentOptions +
179
                ", tncs=" + tncs +
180
                ", totalAmount=" + totalAmount +
181
                ", partnerAddressStateCode='" + partnerAddressStateCode + '\'' +
182
                '}';
32246 tejbeer 183
    }
21686 ashik.ali 184
}