Rev 26821 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.common.model;import java.util.Set;public class CreateOrderRequest {private CustomCustomer customer;private int orderId;private Integer poId;private Integer poItemId;private Set<CustomFofoOrderItem> fofoOrderItems;private Set<CustomPaymentOption> paymentOptions;public void setCustomer(CustomCustomer customer) {this.customer = customer;}public CustomCustomer getCustomer() {return customer;}public int getOrderId() {return orderId;}public void setOrderId(int orderId) {this.orderId = orderId;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + ((customer == null) ? 0 : customer.hashCode());result = prime * result + ((fofoOrderItems == null) ? 0 : fofoOrderItems.hashCode());result = prime * result + orderId;result = prime * result + ((paymentOptions == null) ? 0 : paymentOptions.hashCode());result = prime * result + poId;result = prime * result + poItemId;return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;CreateOrderRequest other = (CreateOrderRequest) obj;if (customer == null) {if (other.customer != null)return false;} else if (!customer.equals(other.customer))return false;if (fofoOrderItems == null) {if (other.fofoOrderItems != null)return false;} else if (!fofoOrderItems.equals(other.fofoOrderItems))return false;if (orderId != other.orderId)return false;if (paymentOptions == null) {if (other.paymentOptions != null)return false;} else if (!paymentOptions.equals(other.paymentOptions))return false;if (poId != other.poId)return false;if (poItemId != other.poItemId)return false;return true;}public Integer getPoId() {return poId;}public void setPoId(Integer poId) {this.poId = poId;}public Integer getPoItemId() {return poItemId;}public void setPoItemId(Integer poItemId) {this.poItemId = poItemId;}public Set<CustomFofoOrderItem> getFofoOrderItems() {return fofoOrderItems;}public void setFofoOrderItems(Set<CustomFofoOrderItem> fofoLineItems) {this.fofoOrderItems = fofoLineItems;}public Set<CustomPaymentOption> getPaymentOptions() {return paymentOptions;}public void setPaymentOptions(Set<CustomPaymentOption> paymentOptions) {this.paymentOptions = paymentOptions;}@Overridepublic String toString() {return "CreateOrderRequest [customer=" + customer + ", orderId=" + orderId + ", poId=" + poId + ", poItemId="+ poItemId + ", fofoOrderItems=" + fofoOrderItems + ", paymentOptions=" + paymentOptions + "]";}}