Rev 30158 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.model;import java.time.LocalDateTime;import in.shop2020.model.v1.order.WalletReferenceType;import com.spice.profitmandi.dao.enumuration.dtr.PaymentOptionReferenceType;public class WalletSummaryReportModel {private int id;private String code;private String name;private String email;private String phone;private int amount;private int refundableAmount;private int reference;private WalletReferenceType referenceType;private LocalDateTime timestamp;private LocalDateTime businessTimestamp;private String description;private long runningBalance;public int getId() {return id;}public void setId(int id) {this.id = id;}public String getCode() {return code;}public void setCode(String code) {this.code = code;}public String getName() {return name;}public void setName(String name) {this.name = name;}public String getEmail() {return email;}public void setEmail(String email) {this.email = email;}public String getPhone() {return phone;}public void setPhone(String phone) {this.phone = phone;}public int getAmount() {return amount;}public void setAmount(int amount) {this.amount = amount;}public int getRefundableAmount() {return refundableAmount;}public void setRefundableAmount(int refundableAmount) {this.refundableAmount = refundableAmount;}public int getReference() {return reference;}public void setReference(int reference) {this.reference = reference;}public WalletReferenceType getReferenceType() {return referenceType;}public void setReferenceType(WalletReferenceType referenceType) {this.referenceType = referenceType;}public LocalDateTime getTimestamp() {return timestamp;}public void setTimestamp(LocalDateTime timestamp) {this.timestamp = timestamp;}public LocalDateTime getBusinessTimestamp() {return businessTimestamp;}public void setBusinessTimestamp(LocalDateTime businessTimestamp) {this.businessTimestamp = businessTimestamp;}public String getDescription() {return description;}public void setDescription(String description) {this.description = description;}public long getRunningBalance() {return runningBalance;}public void setRunningBalance(long runningBalance) {this.runningBalance = runningBalance;}@Overridepublic String toString() {return "WalletSummaryReportModel [id=" + id + ", code=" + code + ", name=" + name + ", email=" + email+ ", phone=" + phone + ", amount=" + amount + ", refundableAmount=" + refundableAmount + ", reference="+ reference + ", referenceType=" + referenceType + ", timestamp=" + timestamp + ", businessTimestamp="+ businessTimestamp + ", description=" + description + "]";}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + amount;result = prime * result + ((businessTimestamp == null) ? 0 : businessTimestamp.hashCode());result = prime * result + ((code == null) ? 0 : code.hashCode());result = prime * result + ((description == null) ? 0 : description.hashCode());result = prime * result + ((email == null) ? 0 : email.hashCode());result = prime * result + id;result = prime * result + ((name == null) ? 0 : name.hashCode());result = prime * result + ((phone == null) ? 0 : phone.hashCode());result = prime * result + reference;result = prime * result + ((referenceType == null) ? 0 : referenceType.hashCode());result = prime * result + refundableAmount;result = prime * result + ((timestamp == null) ? 0 : timestamp.hashCode());return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;WalletSummaryReportModel other = (WalletSummaryReportModel) obj;if (amount != other.amount)return false;if (businessTimestamp == null) {if (other.businessTimestamp != null)return false;} else if (!businessTimestamp.equals(other.businessTimestamp))return false;if (code == null) {if (other.code != null)return false;} else if (!code.equals(other.code))return false;if (description == null) {if (other.description != null)return false;} else if (!description.equals(other.description))return false;if (email == null) {if (other.email != null)return false;} else if (!email.equals(other.email))return false;if (id != other.id)return false;if (name == null) {if (other.name != null)return false;} else if (!name.equals(other.name))return false;if (phone == null) {if (other.phone != null)return false;} else if (!phone.equals(other.phone))return false;if (reference != other.reference)return false;if (referenceType != other.referenceType)return false;if (refundableAmount != other.refundableAmount)return false;if (timestamp == null) {if (other.timestamp != null)return false;} else if (!timestamp.equals(other.timestamp))return false;return true;}public WalletSummaryReportModel(int id, String code, String name, String email, String phone, int amount,int refundableAmount, int reference, WalletReferenceType referenceType, LocalDateTime timestamp,LocalDateTime businessTimestamp, String description, long runningBalance) {super();this.id = id;this.code = code;this.name = name;this.email = email;this.phone = phone;this.amount = amount;this.refundableAmount = refundableAmount;this.reference = reference;this.referenceType = referenceType;this.timestamp = timestamp;this.businessTimestamp = businessTimestamp;this.description = description;this.runningBalance = runningBalance;}}