Rev 21812 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.common.model;import java.time.LocalDateTime;public class CustomTransaction {private int id;private LocalDateTime createTimestamp;private double totalAmount;private ShippingAddress shippingAddress;private float shippingCost;private ShippedOrder shipped;private UnshippedOrder unshipped;private LocalDateTime promisedDelivery;private String status;public int getId() {return id;}public void setId(int id) {this.id = id;}public LocalDateTime getCreateTimestamp() {return createTimestamp;}public void setCreateTimestamp(LocalDateTime createTimestamp) {this.createTimestamp = createTimestamp;}public double getTotalAmount() {return totalAmount;}public void setTotalAmount(double totalAmount) {this.totalAmount = totalAmount;}public ShippingAddress getShippingAddress() {return shippingAddress;}public void setShippingAddress(ShippingAddress shippingAddress) {this.shippingAddress = shippingAddress;}public float getShippingCost() {return shippingCost;}public void setShippingCost(float shippingCost) {}public ShippedOrder getShipped() {return shipped;}public void setShipped(ShippedOrder shipped) {this.shipped = shipped;}public UnshippedOrder getUnshipped() {return unshipped;}public void setUnshipped(UnshippedOrder unshipped) {this.unshipped = unshipped;}@Overridepublic boolean equals(Object object) {if(!(object instanceof CustomTransaction)){return false;}CustomTransaction customTransaction = (CustomTransaction)object;if(this.id == customTransaction.id){return true;}else{return false;}}public LocalDateTime getPromisedDelivery() {return promisedDelivery;}public void setPromisedDelivery(LocalDateTime promisedDelivery) {this.promisedDelivery = promisedDelivery;}public String getStatus() {return status;}public void setStatus(String status) {this.status = status;}@Overridepublic String toString() {return "CustomTransaction [id=" + id + ", createTimestamp=" + createTimestamp + ", totalAmount=" + totalAmount+ ", shippingAddress=" + shippingAddress + ", shippingCost=" + shippingCost + ", shipped=" + shipped+ ", unshipped=" + unshipped + ", promisedDelivery=" + promisedDelivery + ", status=" + status + "]";}}