        result = 31 * result + quantity;
        result = 31 * result + product.hashCode();
        result = 31 * result + urgency.hashCode();
        return result;
    }

    public static Order matchingReceipt(OrderReceipt orderReceipt) {
        return new Order(orderReceipt.getClientId(), orderReceipt.getQuantity(), orderReceipt.getProduct());
    }

    public void updateEtaTo(int etaInMinutes) {
        this.etaInMinutes = etaInMinutes;
    }