Package com.globant.google.mendoza.malbec

Examples of com.globant.google.mendoza.malbec.Order


        throw new RuntimeException(
            "The order can not be charged in its"
            + " current financial order state.");
      }
      setRequestParameters();
      Order order = this.getMendozaState().getOrder();
      if (amountToCharge < 0) {
        order.charge();
      } else {
        order.charge(new BigDecimal(amountToCharge));
      }
      result.setSuccess(commandResultMsg);
    } catch (RuntimeException e) {
      commandResultMsg = e.getMessage();
      result.setError(commandResultMsg);
View Full Code Here


        throw new RuntimeException(
            "The order can not be cancelled in its"
            + " current financial order state.");
      }
      setRequestParameters();
      Order order = this.getMendozaState().getOrder();
      order.cancel(reason, comment);
      result.setSuccess(commandResultMsg);
    } catch (RuntimeException e) {
      commandResultMsg = e.getMessage();
      result.setError(commandResultMsg);
    }
View Full Code Here

        throw new RuntimeException(
            "The order can not be refunded in its"
            + " 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) {
      commandResultMsg = e.getMessage();
      result.setError(commandResultMsg);
View Full Code Here

TOP

Related Classes of com.globant.google.mendoza.malbec.Order

Copyright © 2018 www.massapicom. 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.