Package com.globant.google.mendoza.malbec

Examples of com.globant.google.mendoza.malbec.Order.refund()


            + " current financial order state.");
      }
      setRequestParameters();
      Order order = this.getMendozaState().getOrder();
      if (amountToRefund < 0) {
        order.refund(reason, comment);
      } else {
        order.refund(new BigDecimal(amountToRefund), reason, comment);
      }
      result.setSuccess(commandResultMsg);
    } catch (RuntimeException e) {
View Full Code Here


      setRequestParameters();
      Order order = this.getMendozaState().getOrder();
      if (amountToRefund < 0) {
        order.refund(reason, comment);
      } else {
        order.refund(new BigDecimal(amountToRefund), reason, comment);
      }
      result.setSuccess(commandResultMsg);
    } catch (RuntimeException e) {
      commandResultMsg = e.getMessage();
      result.setError(commandResultMsg);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.