Movendo o WS de modificação de Pricing V2 para a API
bug#18775 dev: trevezani qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@100941 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
959b3ff66d
commit
67aa1c1f0c
|
@ -24,15 +24,16 @@ import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
|||
import com.rjconsultores.ventaboletos.vo.pricing.Pricing;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
|
||||
|
||||
@Path("pricing")
|
||||
//@Path("pricing")
|
||||
// FIXME: Este EndPoint foi movido para a RJ API
|
||||
public class AlteraPricingRS {
|
||||
|
||||
private static Logger log = org.slf4j.LoggerFactory.getLogger(AlteraPricingRS.class);
|
||||
|
||||
@POST
|
||||
@Consumes({ MediaType.APPLICATION_JSON })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
@Path("recuperarPricing")
|
||||
// @POST
|
||||
// @Consumes({ MediaType.APPLICATION_JSON })
|
||||
// @Produces({ MediaType.APPLICATION_JSON })
|
||||
// @Path("recuperarPricing")
|
||||
public Response recuperarPricing(ParamsAlterarPricing params) {
|
||||
PricingRetorno pricingRetorno = new PricingRetorno();
|
||||
try {
|
||||
|
@ -60,10 +61,10 @@ public class AlteraPricingRS {
|
|||
}
|
||||
}
|
||||
|
||||
@POST
|
||||
@Consumes({ MediaType.APPLICATION_JSON })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
@Path("alterarPricing")
|
||||
// @POST
|
||||
// @Consumes({ MediaType.APPLICATION_JSON })
|
||||
// @Produces({ MediaType.APPLICATION_JSON })
|
||||
// @Path("alterarPricing")
|
||||
public Response alterarPricing(ParamsAlterarPricing params) {
|
||||
String retorno = "Tipo Operação não identificada";
|
||||
AlteraPricingService service = (AlteraPricingService) AppContext.getApplicationContext().getBean("alteraPricingService");
|
||||
|
@ -89,10 +90,10 @@ public class AlteraPricingRS {
|
|||
return Response.ok(retorno, MediaType.APPLICATION_JSON + Constantes.CHARSET_UTF8).build();
|
||||
}
|
||||
|
||||
@POST
|
||||
@Consumes({ MediaType.APPLICATION_JSON })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
@Path("excluirPricingDiasFimViagem")
|
||||
// @POST
|
||||
// @Consumes({ MediaType.APPLICATION_JSON })
|
||||
// @Produces({ MediaType.APPLICATION_JSON })
|
||||
// @Path("excluirPricingDiasFimViagem")
|
||||
public Response excluirPricingDiasFimViagem(ParamsAlterarPricing params) {
|
||||
String retorno = "Dias Fim Viagem informado é inválido.";
|
||||
if(isUsuarioValido()) {
|
||||
|
|
Loading…
Reference in New Issue