Rev 34194 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.common.model;import java.time.LocalDate;import java.time.LocalDateTime;import java.util.Objects;import java.util.Set;public class InsuranceModel {private String brand;private String color;private String ram;private String memory;private LocalDateTime mfgDate;private LocalDate wmfgDate;private String modelName;private float insuranceAmount;private String insuranceId;private String insuranceUId;private String correlationId;private float deviceSellingPrice;private String serialNumber;private String providerName;private String providerId;private String underWriterName;private String underWriterId;private int customerId;private String customerEmail;private LocalDate dob;private int fofoOrderId;private int fofoOrderItemId;private Set<CustomPaymentOption> paymentOptions;public Set<CustomPaymentOption> getPaymentOptions() {return paymentOptions;}public void setPaymentOptions(Set<CustomPaymentOption> paymentOptions) {this.paymentOptions = paymentOptions;}public int getFofoOrderId() {return fofoOrderId;}public void setFofoOrderId(int fofoOrderId) {this.fofoOrderId = fofoOrderId;}public int getFofoOrderItemId() {return fofoOrderItemId;}public void setFofoOrderItemId(int fofoOrderItemId) {this.fofoOrderItemId = fofoOrderItemId;}public String getRam() {return ram;}public void setRam(String ram) {this.ram = ram;}public String getMemory() {return memory;}public void setMemory(String memory) {this.memory = memory;}public LocalDateTime getMfgDate() {return mfgDate;}public void setMfgDate(LocalDateTime mfgDate) {this.mfgDate = mfgDate;}public String getColor() {return color;}public void setColor(String color) {this.color = color;}public String getSerialNumber() {return serialNumber;}public void setSerialNumber(String serialNumber) {this.serialNumber = serialNumber;}public float getDeviceSellingPrice() {return deviceSellingPrice;}public void setDeviceSellingPrice(float deviceSellingPrice) {this.deviceSellingPrice = deviceSellingPrice;}public String getBrand() {return brand;}public void setBrand(String brand) {this.brand = brand;}public String getModelName() {return modelName;}public void setModelName(String modelName) {this.modelName = modelName;}public float getInsuranceAmount() {return insuranceAmount;}public void setInsuranceAmount(float insuranceAmount) {this.insuranceAmount = insuranceAmount;}public String getInsuranceId() {return insuranceId;}public void setInsuranceId(String insuranceId) {this.insuranceId = insuranceId;}public String getInsuranceUId() {return insuranceUId;}public void setInsuranceUId(String insuranceUId) {this.insuranceUId = insuranceUId;}public String getProviderName() {return providerName;}public void setProviderName(String providerName) {this.providerName = providerName;}public String getProviderId() {return providerId;}public void setProviderId(String providerId) {this.providerId = providerId;}public String getUnderWriterName() {return underWriterName;}public void setUnderWriterName(String underWriterName) {this.underWriterName = underWriterName;}public String getUnderWriterId() {return underWriterId;}public void setUnderWriterId(String underWriterId) {this.underWriterId = underWriterId;}public int getCustomerId() {return customerId;}public void setCustomerId(int customerId) {this.customerId = customerId;}public String getCustomerEmail() {return customerEmail;}public void setCustomerEmail(String customerEmail) {this.customerEmail = customerEmail;}public LocalDate getWmfgDate() {return wmfgDate;}public void setWmfgDate(LocalDate wmfgDate) {this.wmfgDate = wmfgDate;}public LocalDate getDob() {return dob;}public void setDob(LocalDate dob) {this.dob = dob;}public String getCorrelationId() {return correlationId;}public void setCorrelationId(String correlationId) {this.correlationId = correlationId;}@Overridepublic boolean equals(Object o) {if (this == o) return true;if (o == null || getClass() != o.getClass()) return false;InsuranceModel that = (InsuranceModel) o;return Float.compare(insuranceAmount, that.insuranceAmount) == 0 && Float.compare(deviceSellingPrice, that.deviceSellingPrice) == 0 && customerId == that.customerId && fofoOrderId == that.fofoOrderId && fofoOrderItemId == that.fofoOrderItemId && Objects.equals(brand, that.brand) && Objects.equals(color, that.color) && Objects.equals(ram, that.ram) && Objects.equals(memory, that.memory) && Objects.equals(mfgDate, that.mfgDate) && Objects.equals(wmfgDate, that.wmfgDate) && Objects.equals(modelName, that.modelName) && Objects.equals(insuranceId, that.insuranceId) && Objects.equals(insuranceUId, that.insuranceUId) && Objects.equals(correlationId, that.correlationId) && Objects.equals(serialNumber, that.serialNumber) && Objects.equals(providerName, that.providerName) && Objects.equals(providerId, that.providerId) && Objects.equals(underWriterName, that.underWriterName) && Objects.equals(underWriterId, that.underWriterId) && Objects.equals(customerEmail, that.customerEmail) && Objects.equals(dob, that.dob)&& Objects.equals(paymentOptions, that.paymentOptions);}@Overridepublic int hashCode() {return Objects.hash(brand, color, ram, memory, mfgDate, wmfgDate, modelName, insuranceAmount, insuranceId, insuranceUId, correlationId, deviceSellingPrice, serialNumber, providerName, providerId, underWriterName, underWriterId, customerId, customerEmail, dob, fofoOrderId, fofoOrderItemId, paymentOptions);}@Overridepublic String toString() {return "InsuranceModel{" +"brand='" + brand + '\'' +", color='" + color + '\'' +", ram='" + ram + '\'' +", memory='" + memory + '\'' +", mfgDate=" + mfgDate +", wmfgDate=" + wmfgDate +", modelName='" + modelName + '\'' +", insuranceAmount=" + insuranceAmount +", insuranceId='" + insuranceId + '\'' +", insuranceUId='" + insuranceUId + '\'' +", correlationId='" + correlationId + '\'' +", deviceSellingPrice=" + deviceSellingPrice +", serialNumber='" + serialNumber + '\'' +", providerName='" + providerName + '\'' +", providerId='" + providerId + '\'' +", underWriterName='" + underWriterName + '\'' +", underWriterId='" + underWriterId + '\'' +", customerId=" + customerId +", customerEmail='" + customerEmail + '\'' +", dob=" + dob +", fofoOrderId=" + fofoOrderId +", fofoOrderItemId=" + fofoOrderItemId +", paymentOptions=" + paymentOptions +'}';}}