var Paquete = function(id, name, description, from, to, fechaModif, userId, state, greaters, greatersFijo, minors, minorsFijo, entradas, impuesto, idComprador){
	
	this.id = id;
	this.name = name;
	this.description = description;
	this.from = from;
	this.to = to;
	this.fechaModif = fechaModif;
	this.userId = userId;	
	this.state = state;
	this.greaters = greaters;
	this.greatersFijo = greatersFijo;
	this.minors = minors;
	this.minorsFijo = minorsFijo;
	this.entradas = entradas;
	this.impuesto = impuesto;
	this.idComprador = idComprador;
	this.servicios = new Array();
	this.images = new Array();
	
	this.setServicios = function(servicios){
		this.servicios = servicios;
	}
	
	this.addServicio = function(servicio){
		this.servicios.push(servicio);
	}
	
	this.addImage = function(image){
		this.images.push(image);
	}
	
}

var ServicioPaquete = function(orden, entrada, noches, agreed, vendedorFijo, mercadoFijo, tipoHabFijo, destino, cantRecursos){
	
	this.orden = orden;
	this.entrada = entrada;
	this.noches = noches;
	this.agreed = agreed;
	this.vendedorFijo = vendedorFijo;
	this.mercadoFijo = mercadoFijo;
	this.tipoHabFijo = tipoHabFijo;
	this.destino = destino;
	this.cantRecursos = cantRecursos;
	this.vendedores = new Array();
	

	this.setVendedores = function(vendedores){
		this.vendedores = vendedores;
	}
	
	this.addVendedor = function(vendedor){
		this.vendedores.push(vendedor);
	}
}

var PaqueteVendedor = function(orden, idVendedor, idTypeRoom, idMercado, descripcionMercado, descripcionTipoHabitacion){
	this.orden = orden;
	this.idVendedor = idVendedor;
	this.idTypeRoom = idTypeRoom;
	this.idMercado = idMercado;
	this.descripcionMercado = descripcionMercado;
	this.descripcionTipoHabitacion = descripcionTipoHabitacion;
	this.vendedor = null;
	
	this.setVendedor = function(vendedor){
		this.vendedor =vendedor;
	}
}

var Vendedor = function(id, name){
	this.id = id;
	this.name = name;
}