Guest User

Untitled

a guest
Mar 15th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.80 KB | None | 0 0
  1. package webservices.shipping;
  2.  
  3. import java.io.IOException;
  4.  
  5. public class TrackingStatusService extends RibeiroDroplet {
  6. private static final String PARENT_NODE = "Estado_Entregas";
  7. private static final String PARENT_NODE_SP ="Estado_Stored_PickUp";
  8. private static final String DELIVERY_STATUS = "Status_Entrega";
  9. private static final String DELIVERY_STATUS_SP = "Status";
  10. private static final int STORE_PICKUP = 2;
  11. private static final int CR_OCA = 3;
  12. private static final String CERRADO = "C";
  13. private static final String COL_DESPACHO ="DphEnt";
  14. protected static ApplicationLogging mLogging = ClassLoggingFactory.getFactory().getLoggerForClass(TrackingStatusService.class);
  15.  
  16. private String puntoVenta;
  17. private String nFactura;
  18. private String lFactura;
  19. private int tipoEnvio;
  20. private String orderId;
  21.  
  22. //CONFIG
  23. private int diasAEvaluar;
  24. private String cantidadAdicional;
  25. private String username;
  26. private String password;
  27. private String soapEndpointUrl;
  28. private String soapAction;
  29. private String msgAnnulled;
  30. private String msgPreparation;
  31. private String msgConfirmed;
  32. private String msgDelivered;
  33. private String msgInRoute;
  34. private String msgInSucursal;
  35. private String msgNotFoundSap;
  36. private String msgRetired;
  37.  
  38. // INPUT PARAMETERS
  39. private static final String NFACTURA = "numFactura";
  40. private static final String LFACTURA = "letraFactura";
  41. private static final String PUNTOVENTA = "puntoVenta";
  42. private static final String TIPOENVIO = "tipoEnvio";
  43. private static final String ORDERID = "orderId";
  44.  
  45. // OUTPUT PARAMETERS
  46. private static final String MENSAJE = "mensaje";
  47. private static final String NROGUIA = "nroGuia";
  48. private static final String FECHA_ENTREGA = "fechaEntrega";
  49. private static final String FRANJA_HORARIA = "franjaHoraria";
  50.  
  51. //Responses
  52. private static final String ANULADA= "Entrega ANULADA";
  53. private static final String ENTREGA="Con Entrega";
  54. private static final String ENTREGA_TRANSPORTE="Con Entrega - Con Transporte";
  55. private static final String ENTREGA_TRANSPORTE_INI="Con Entrega - Con Transporte Iniciado";
  56. private static final String ENTREGA_TRANSPORTE_FIN="Con Entrega - Con Transporte Finalizado";
  57. private static final String CON_FRANJA = "Con Entrega - Con Transporte Finalizado - Fecha:"; //dd/MM/yyyy Franja Horaria: 8 a 14."
  58. private static final String ENTREGA_DEV="Con Entrega - Devuelta";
  59. private static final String ENTREGA_PDEV="Con Entrega - Para Devolver";
  60. private static final String ENTREGA_PENDIENTE="Con Entrega - Pendiente de procesar";
  61. private static final String SIN_ENTREGA="Sin Entrega";
  62. private static final String SIN_ENTREGA_CANC="Sin Entrega - Cancelada";
  63. private static final String SIN_ENTREGA_PCANC="Sin Entrega - Para Cancelar";
  64. private static final String SIN_ENTREGA_PENDIENTE="Sin Entrega - Pendiente de procesar";
  65. private static final String REGISTRO_DUPLICADO="Registro Duplicado";
  66.  
  67. //Store Pickup Responses
  68. private static final String ENTREGADO = "Entregado al Cliente";
  69. private static final String PENDIENTE = "Pendiente de Procesar";
  70. private static final String TRASLADO_SUCURSAL = "Pedido de traslado a sucursal";
  71. private static final String ENTREGADO_PARCIAL = "Entregado Parcialmente al Cliente";
  72. private static final String EN_SUCURSAL = "En sucursal";
  73.  
  74. private static final String NO_DATA_SAP = "No existe registro en la tabla ZPI_TRASLADOSen SAP para ese Punto de venta, Factura y Letra.";
  75.  
  76.  
  77.  
  78. /* (non-Javadoc)
  79. * @see atg.servlet.DynamoServlet#service(atg.servlet.DynamoHttpServletRequest, atg.servlet.DynamoHttpServletResponse)
  80. */
  81. @Override
  82. public void service(DynamoHttpServletRequest request,
  83. DynamoHttpServletResponse response) throws ServletException, IOException {
  84. setPuntoVenta(request.getParameter(PUNTOVENTA));
  85. setnFactura(request.getParameter(NFACTURA));
  86. setlFactura(request.getParameter(LFACTURA));
  87. setTipoEnvio(Integer.parseInt(request.getParameter(TIPOENVIO)));
  88. setOrderId(request.getParameter(ORDERID));
  89. String mensaje = "";
  90.  
  91. //Se evalua el tipo de envío
  92. if(getTipoEnvio()== CR_OCA){
  93. String orderId = request.getParameter(ORDERID);
  94. mensaje=getMsgPreparation();
  95. String nroGuia = findNroGuia(orderId);
  96. if (nroGuia!=null && !nroGuia.isEmpty()) {
  97. mensaje = getMsgInSucursal();
  98. request.setParameter(NROGUIA, nroGuia);
  99. }
  100. }else{
  101. //Se invoca el webService y se extrae el estado.
  102. mensaje = getStatus(getSoapEndpointUrl(), getSoapAction());
  103. }
  104.  
  105. //Se maneja el mensaje, y se obtiene fecha de entrega y franja horaria cuando corresponde.
  106. String[] results = handleResponse(mensaje);
  107.  
  108. //Se setean los parametros de salida.
  109. request.setParameter(MENSAJE, results[0]);
  110. request.setParameter(FECHA_ENTREGA, results[1]);
  111. request.setParameter(FRANJA_HORARIA, results[2]);
  112.  
  113. request.serviceLocalParameter(OUTPUT, request, response);
  114. }
  115.  
  116. /*
  117. * Consulta a la tabla DPDPCHO de Gex Central si la orden si el despacho se encuentra cerrado (Dphent == 'C').
  118. * Para casos de Store Pickup, la tabla DPDPCHO se actualiza correctamente al día siguiente de la entrega al cliente. Para Entrega Domiciliaria, DPDPCHO se
  119. * actualiza de la misma manera cuando el despacho es hecho por una sucursal, pero cuando el estado de la orden en DPDPCHO nunca pasa a 'C'.
  120. */
  121. private boolean checkDeliveryOnDB(){
  122. Statement stmt = null;
  123. String query = null;
  124. Connection connection = null;
  125. try {
  126. connection = DataBaseUtils.connectToExternal(DataBaseUtils.Bases.CENTRAL);
  127.  
  128. //Consulta a GEXCENTRAL para obtener el estado de despacho ("C"=Cerrado, "P"=Pendiente)
  129. query = "select "+COL_DESPACHO+"from dbo.DPDPCHO where DphPVt="+getPuntoVenta()+" and DphNum="+getnFactura()+" and DphLtf='"+getlFactura()+"' and tcocod='DEN'";
  130. stmt = connection.createStatement();
  131. ResultSet results = stmt.executeQuery(query);
  132. String estado = "";
  133. boolean isDelivered=true;
  134. if (results.isBeforeFirst()) {
  135. while (results.next()) {
  136. estado = results.getString(COL_DESPACHO);
  137. if (!estado.equalsIgnoreCase(CERRADO)) {
  138. isDelivered=false;
  139. break;
  140. }
  141. }
  142. }
  143.  
  144.  
  145. return isDelivered;
  146.  
  147. } catch (Exception ex) {
  148. logError(ex);
  149. } finally{
  150. if(connection != null){
  151. try {
  152. connection.close();
  153. } catch (SQLException e) {
  154. logError(e);
  155. }
  156. }
  157. }
  158.  
  159. return false;
  160. }
  161.  
  162. /*
  163. * Metodo que recupera el número de guía de la orden con tipo de envío Centro de retiro OCA
  164. */
  165. private String findNroGuia(String orderId){
  166. OrderManager orderManager = (OrderManager) Nucleus.getGlobalNucleus()
  167. .resolveName("/atg/commerce/order/OrderManager");
  168. try {
  169. RibeiroOrder order = (RibeiroOrder) orderManager.loadOrder(orderId);
  170. String nroGuia = order.getNroGuia();
  171.  
  172. return nroGuia;
  173. } catch (Exception e) {
  174. if (mLogging.isLoggingError()) {
  175. mLogging.logError(e);
  176. }
  177. }
  178. return null;
  179. }
  180.  
  181. /*
  182. * Metodo que invoca el WS de stock mediante RibeiroStockTools, envíando la orden, el número de sucursal extraído del Shipping Group y la cantidad de unidades adicionales a sumar a la verificación de stock.
  183. * La cantidad adicional se envía concatenada al string "cantidad=", que luego se recupera en RibeiroStockTools.consultaGEXSinHacerReserva() y RibeiroStockTools.consultaSAPSinHacerReserva().
  184. */
  185. private boolean checkStockAvailability(String orderId){
  186. StockWebServicesParameters swsp = (StockWebServicesParameters) Nucleus.getGlobalNucleus()
  187. .resolveName("/atg/commerce/catalog/stock/StockWebServicesParameters");
  188. boolean resGex = false;
  189. boolean resSap = false;
  190. String[] codSucursales = new String[1];
  191. String storePickupId = "";
  192.  
  193. //Se setea la cantidad a sumarle a la validación de stock en un String.
  194. String cantAdicional= "cantidad="+getCantidadAdicional();
  195. OrderManager orderManager = (OrderManager) Nucleus.getGlobalNucleus()
  196. .resolveName("/atg/commerce/order/OrderManager");
  197.  
  198. RibeiroOrder order;
  199. try {
  200. order = (RibeiroOrder) orderManager.loadOrder(orderId);
  201.  
  202. List<ShippingGroup> shippings = order.getShippingGroups();
  203.  
  204. //Recorre los Shipping Groups para obtener el número de sucursal
  205. for (ShippingGroup sg : shippings) {
  206. if(!(sg instanceof HardgoodShippingGroup)) {
  207. continue;
  208. }
  209. String shippingMethod = ((RibeiroHardgoodShippingGroup) sg).getShippingMethod();
  210. if (shippingMethod.equalsIgnoreCase("store pickup")) {
  211. storePickupId = ((RibeiroHardgoodShippingGroup) sg).getStorePickupId();
  212.  
  213. if (storePickupId != null && !storePickupId.trim().isEmpty()) {
  214. try {
  215. codSucursales[0] = storePickupId;
  216.  
  217. RepositoryItem store = RepositoryUtils.findOne("/atg/commerce/locations/LocationRepository", "store", RqlStatement.parseRqlStatement("locationId = ?0"), new Object[]{storePickupId}, null);
  218.  
  219. /* Obtengo el numero de sucursal en base al locationId */
  220. codSucursales[0] = (String)store.getPropertyValue("name");
  221.  
  222. } catch (NumberFormatException ex) {
  223. } catch (RepositoryException e) {
  224. if (mLogging.isLoggingError()) {
  225. mLogging.logError(e);
  226. }
  227. }
  228. }
  229. }
  230.  
  231. if(swsp.isEnabledGex()) {
  232. try {
  233. //Invoco la consulta de stock
  234. resGex = RibeiroStockTools.consultaGEXSinHacerReserva(order,codSucursales, cantAdicional);
  235.  
  236. } catch (Exception ex) {
  237. if (mLogging.isLoggingError()) {
  238. mLogging.logError(ex);
  239. }
  240. resGex = false;
  241. }
  242. }
  243.  
  244. if(swsp.isEnabledSap() && resGex == false ) {
  245. //Invoco la consulta de stock
  246. resSap = RibeiroStockTools.consultaSAPSinHacerReserva(order,codSucursales,cantAdicional);
  247. }
  248. }
  249. } catch (CommerceException e) {
  250. mLogging.logError(e);
  251. }
  252. return (resGex || resSap);
  253. }
  254.  
  255. /*
  256. * Retorna un array. En su primera posición se encuentra el mensaje, en la segunda la fecha de entrega
  257. * y por ultimo en la tercera posición, la franja horaria.
  258. */
  259. private String[] handleResponse(String msg){
  260. String[] results = new String[3];
  261. //Se chequea si el mensaje contiene la fecha y franja horaria.
  262. if(msg.indexOf(CON_FRANJA)!=-1){
  263. String franja = "";
  264. String fecha = "";
  265. msg = msg.split("-")[2];
  266.  
  267. results[0] = getMsgDelivered();
  268. fecha = msg.split(":")[1];
  269. fecha = fecha.replace("Franja Horaria","");
  270. franja = msg.split(":")[2];
  271.  
  272. //Se verifica si los días transcurridos son mayores a la cantidad de días necesarios para dar
  273. //el pedido por entregado
  274. if(checkDeliveryByDate(fecha)){
  275. return results;
  276. }else if(checkDeliveryOnDB()){ //Se verifica el estado del DESPACHO en BD, si está cerrado el pedido ya fue entregado.
  277. return results;
  278. }else{//Se devuelven los datos para ser mostrados.
  279. results[0] = getMsgInRoute();
  280. results[1] = fecha;
  281. results[2] = franja;
  282. return results;
  283. }
  284.  
  285. }
  286.  
  287.  
  288. switch (msg) {
  289. case ENTREGA: case ENTREGA_TRANSPORTE: case ENTREGA_TRANSPORTE_INI: case ENTREGA_PENDIENTE:
  290. case REGISTRO_DUPLICADO:
  291. results[0] = getMsgPreparation();
  292. break;
  293. case ANULADA: case ENTREGA_DEV: case ENTREGA_PDEV:
  294. case SIN_ENTREGA_CANC: case SIN_ENTREGA_PCANC:
  295. results[0] = getMsgAnnulled();
  296. break;
  297. case SIN_ENTREGA: case SIN_ENTREGA_PENDIENTE: case PENDIENTE:
  298. results[0] = getMsgConfirmed();
  299. break;
  300. case ENTREGA_TRANSPORTE_FIN:
  301. results[0] = getMsgInRoute();
  302. break;
  303. case ENTREGADO:
  304. results[0] = getMsgRetired();
  305. case TRASLADO_SUCURSAL: case ENTREGADO_PARCIAL: case EN_SUCURSAL:
  306. //Se chequea si hay stock disponible en la sucursal.
  307. if (checkStockAvailability(getOrderId())) {
  308. msg = getMsgInSucursal();
  309. }else{
  310. msg = getMsgPreparation();
  311. }
  312. case NO_DATA_SAP:
  313. results[0] = getMsgNotFoundSap();
  314. break;
  315. default:
  316. results[0] = msg;
  317. break;
  318. }
  319.  
  320. return results;
  321. }
  322.  
  323. /*
  324. * Metodo que verifica la cantidad de días transcurridos desde la fecha de entrega y la compara con la variable díasAEvaluar, que contiene la cantidad de días que deben transcurrir para dar una orden por entregada.
  325. */
  326. private boolean checkDeliveryByDate(String fecha){
  327. Date today = new Date();
  328. SimpleDateFormat parser = new SimpleDateFormat("dd/MM/yyyy");
  329. Date fechaEntrega;
  330. try {
  331. fechaEntrega = parser.parse(fecha);
  332. } catch (ParseException e) {
  333. logError(e);
  334. fechaEntrega=today;
  335. }
  336. long diffInMillies = today.getTime() - fechaEntrega.getTime();
  337.  
  338. long diasTranscurridos = TimeUnit.DAYS.convert(diffInMillies, TimeUnit.MILLISECONDS);
  339.  
  340. return (diasTranscurridos >= getDiasAEvaluar());
  341. }
  342.  
  343. /*
  344. * Metodo que crea el SoapEnvelope con los parametros de la orden: Punto de venta, número y letra de la factura.
  345. */
  346. private void createSoapEnvelope(SOAPMessage soapMessage, String nFactura, String lFactura, String puntoVenta) throws SOAPException {
  347. SOAPPart soapPart = soapMessage.getSOAPPart();
  348.  
  349. String myNamespace = "con";
  350. String myNamespaceURI = "http://ribeiro.com.ar/pi/consultaestado";
  351.  
  352. // SOAP Envelope
  353. SOAPEnvelope envelope = soapPart.getEnvelope();
  354. envelope.addNamespaceDeclaration(myNamespace, myNamespaceURI);
  355.  
  356. // SOAP Body
  357. SOAPBody soapBody = envelope.getBody();
  358. SOAPElement soapBodyElem = soapBody.addChildElement("MT_Estado_Request", myNamespace);
  359.  
  360. //Se crean los elementos
  361. SOAPElement numFacturaNode = soapBodyElem.addChildElement("NumFactura");
  362. SOAPElement letraFacturaNode = soapBodyElem.addChildElement("LetraFactura");
  363. SOAPElement puntaVentaNode = soapBodyElem.addChildElement("PuntoVenta");
  364.  
  365. //PARAMS
  366. numFacturaNode.addTextNode(nFactura);
  367. letraFacturaNode.addTextNode(lFactura);
  368. puntaVentaNode.addTextNode(puntoVenta);
  369. }
  370.  
  371. /*
  372. * Metodo que invoca el WS Soap y extrae el estado de la respuesta.
  373. */
  374. private String getStatus(String soapEndpointUrl, String soapAction) {
  375. String estado = "";
  376. try {
  377. // Crea SOAP Connection
  378. SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance();
  379. SOAPConnection soapConnection = soapConnectionFactory.createConnection();
  380.  
  381. // Envía SOAP Message al SOAP Server
  382. SOAPMessage soapResponse = soapConnection.call(createSOAPRequest(soapAction), soapEndpointUrl);
  383. SOAPBody soapResponseBody = soapResponse.getSOAPBody();
  384.  
  385.  
  386. String parent = "";
  387. String statusNode = "";
  388.  
  389.  
  390. if (getTipoEnvio()==STORE_PICKUP) {
  391. parent=PARENT_NODE_SP;
  392. statusNode=DELIVERY_STATUS_SP;
  393. }else{
  394. parent=PARENT_NODE;
  395. statusNode=DELIVERY_STATUS;
  396. }
  397.  
  398. //Extrae los items de la respuesta.
  399. NodeList subList = soapResponseBody.getElementsByTagName(parent);
  400. NodeList innerResultList = null;
  401.  
  402. //Recorre los items y extrae el estado de cada uno.
  403. for (int i = 0; i < subList.getLength(); i++) {
  404. innerResultList = subList.item(i).getChildNodes();
  405. for (int j = 0; j < innerResultList.getLength(); j++) {
  406. if (innerResultList.item(j).getNodeName().equalsIgnoreCase(statusNode)) {
  407. estado = innerResultList.item(j).getTextContent();
  408. break;
  409. }
  410. }
  411. if (!estado.equalsIgnoreCase(ENTREGA_TRANSPORTE_FIN) || !estado.equalsIgnoreCase(ENTREGA_TRANSPORTE)
  412. || estado.indexOf(CON_FRANJA)!=-1 || estado.equalsIgnoreCase(PENDIENTE)) {
  413. break;
  414. }
  415.  
  416. }
  417.  
  418. soapConnection.close();
  419. return estado;
  420. } catch (Exception e) {
  421. mLogging.logError(e);
  422. }
  423. return estado;
  424. }
  425.  
  426. /*
  427. * Metodo que crea el mensaje SOAP y le agrega las credenciales y la SOAPAction al header.
  428. */
  429. private SOAPMessage createSOAPRequest(String soapAction) throws Exception {
  430. MessageFactory messageFactory = MessageFactory.newInstance();
  431. SOAPMessage soapMessage = messageFactory.createMessage();
  432.  
  433. createSoapEnvelope(soapMessage, getnFactura(), getlFactura(), getPuntoVenta());
  434.  
  435. //Encodea las credenciales
  436. String authorization = Base64.encode((getUsername()+":"+getPassword()).getBytes());
  437.  
  438. //Setea las credenciales y el soapAction al header.
  439. MimeHeaders headers = soapMessage.getMimeHeaders();
  440. headers.addHeader("SOAPAction", soapAction);
  441. headers.addHeader("Authorization", "Basic " + authorization);
  442. soapMessage.saveChanges();
  443.  
  444. return soapMessage;
  445. }
  446.  
  447. /**
  448. * @return the soapEndpointUrl
  449. */
  450. public String getSoapEndpointUrl() {
  451. return soapEndpointUrl;
  452. }
  453.  
  454. /**
  455. * @param soapEndpointUrl the soapEndpointUrl to set
  456. */
  457. public void setSoapEndpointUrl(String soapEndpointUrl) {
  458. this.soapEndpointUrl = soapEndpointUrl;
  459. }
  460.  
  461. /**
  462. * @return the soapAction
  463. */
  464. public String getSoapAction() {
  465. return soapAction;
  466. }
  467.  
  468. /**
  469. * @param soapAction the soapAction to set
  470. */
  471. public void setSoapAction(String soapAction) {
  472. this.soapAction = soapAction;
  473. }
  474.  
  475. /**
  476. * @return the msgAnnulled
  477. */
  478. public String getMsgAnnulled() {
  479. return msgAnnulled;
  480. }
  481.  
  482. /**
  483. * @param msgAnnulled the msgAnnulled to set
  484. */
  485. public void setMsgAnnulled(String msgAnnulled) {
  486. this.msgAnnulled = msgAnnulled;
  487. }
  488.  
  489. /**
  490. * @return the msgPreparation
  491. */
  492. public String getMsgPreparation() {
  493. return msgPreparation;
  494. }
  495.  
  496. /**
  497. * @param msgPreparation the msgPreparation to set
  498. */
  499. public void setMsgPreparation(String msgPreparation) {
  500. this.msgPreparation = msgPreparation;
  501. }
  502.  
  503.  
  504. /**
  505. * @return the msgDelivered
  506. */
  507. public String getMsgDelivered() {
  508. return msgDelivered;
  509. }
  510.  
  511. /**
  512. * @param msgDelivered the msgDelivered to set
  513. */
  514. public void setMsgDelivered(String msgDelivered) {
  515. this.msgDelivered = msgDelivered;
  516. }
  517.  
  518. /**
  519. * @return the username
  520. */
  521. public String getUsername() {
  522. return username;
  523. }
  524.  
  525. /**
  526. * @param username the username to set
  527. */
  528. public void setUsername(String username) {
  529. this.username = username;
  530. }
  531.  
  532. /**
  533. * @return the password
  534. */
  535. public String getPassword() {
  536. return password;
  537. }
  538.  
  539. /**
  540. * @param password the password to set
  541. */
  542. public void setPassword(String password) {
  543. this.password = password;
  544. }
  545.  
  546. /**
  547. * @return the msgNotFoundSap
  548. */
  549. public String getMsgNotFoundSap() {
  550. return msgNotFoundSap;
  551. }
  552.  
  553. /**
  554. * @param msgNotFoundSap the msgNotFoundSap to set
  555. */
  556. public void setMsgNotFoundSap(String msgNotFoundSap) {
  557. this.msgNotFoundSap = msgNotFoundSap;
  558. }
  559. /**
  560. * @return the msgInRoute
  561. */
  562. public String getMsgInRoute() {
  563. return msgInRoute;
  564. }
  565. /**
  566. * @param msgInRoute the msgInRoute to set
  567. */
  568. public void setMsgInRoute(String msgInRoute) {
  569. this.msgInRoute = msgInRoute;
  570. }
  571. /**
  572. * @return the msgInSucursal
  573. */
  574. public String getMsgInSucursal() {
  575. return msgInSucursal;
  576. }
  577. /**
  578. * @param msgInSucursal the msgInSucursal to set
  579. */
  580. public void setMsgInSucursal(String msgInSucursal) {
  581. this.msgInSucursal = msgInSucursal;
  582. }
  583.  
  584. /**
  585. * @return the cantidadAdicional
  586. */
  587. public String getCantidadAdicional() {
  588. return cantidadAdicional;
  589. }
  590.  
  591. /**
  592. * @param cantidadAdicional the cantidadAdicional to set
  593. */
  594. public void setCantidadAdicional(String cantidadAdicional) {
  595. this.cantidadAdicional = cantidadAdicional;
  596. }
  597.  
  598. /**
  599. * @return the msgConfirmed
  600. */
  601. public String getMsgConfirmed() {
  602. return msgConfirmed;
  603. }
  604.  
  605. /**
  606. * @param msgConfirmed the msgConfirmed to set
  607. */
  608. public void setMsgConfirmed(String msgConfirmed) {
  609. this.msgConfirmed = msgConfirmed;
  610. }
  611.  
  612. /**
  613. * @return the diasAEvaluar
  614. */
  615. public int getDiasAEvaluar() {
  616. return diasAEvaluar;
  617. }
  618.  
  619. /**
  620. * @param diasAEvaluar the diasAEvaluar to set
  621. */
  622. public void setDiasAEvaluar(int diasAEvaluar) {
  623. this.diasAEvaluar = diasAEvaluar;
  624. }
  625.  
  626. /**
  627. * @return the puntoVenta
  628. */
  629. public String getPuntoVenta() {
  630. return puntoVenta;
  631. }
  632.  
  633. /**
  634. * @param puntoVenta the puntoVenta to set
  635. */
  636. public void setPuntoVenta(String puntoVenta) {
  637. this.puntoVenta = puntoVenta;
  638. }
  639.  
  640. /**
  641. * @return the nFactura
  642. */
  643. public String getnFactura() {
  644. return nFactura;
  645. }
  646.  
  647. /**
  648. * @param nFactura the nFactura to set
  649. */
  650. public void setnFactura(String nFactura) {
  651. this.nFactura = nFactura;
  652. }
  653.  
  654. /**
  655. * @return the lFactura
  656. */
  657. public String getlFactura() {
  658. return lFactura;
  659. }
  660.  
  661. /**
  662. * @param lFactura the lFactura to set
  663. */
  664. public void setlFactura(String lFactura) {
  665. this.lFactura = lFactura;
  666. }
  667.  
  668. /**
  669. * @return the tipoEnvio
  670. */
  671. public int getTipoEnvio() {
  672. return tipoEnvio;
  673. }
  674.  
  675. /**
  676. * @param tipoEnvio the tipoEnvio to set
  677. */
  678. public void setTipoEnvio(int tipoEnvio) {
  679. this.tipoEnvio = tipoEnvio;
  680. }
  681.  
  682. /**
  683. * @return the msgRetired
  684. */
  685. public String getMsgRetired() {
  686. return msgRetired;
  687. }
  688.  
  689. /**
  690. * @param msgRetired the msgRetired to set
  691. */
  692. public void setMsgRetired(String msgRetired) {
  693. this.msgRetired = msgRetired;
  694. }
  695.  
  696. /**
  697. * @return the orderId
  698. */
  699. public String getOrderId() {
  700. return orderId;
  701. }
  702.  
  703. /**
  704. * @param orderId the orderId to set
  705. */
  706. public void setOrderId(String orderId) {
  707. this.orderId = orderId;
  708. }
  709.  
  710.  
  711. }
Add Comment
Please, Sign In to add comment