Examples of RefundOrderElement


Examples of com.google.checkout.schema._2.RefundOrderElement

    if (StringUtil.isEmpty(reason)) {
      throw new ProtocolException("Refunding order: reason is missing!");
    }
   
    try {
      RefundOrderElement refundRequest = _objectFact.createRefundOrderElement();
      refundRequest.setGoogleOrderNumber(orderNumber);
      refundRequest.setReason(reason);
      if (amount > 0.0F && !StringUtil.isEmpty(currency)) {
        Money refundAmount = createMoney(amount, currency);
        refundRequest.setAmount(refundAmount);
      }
      return convertToDOM(refundRequest);
    } catch (JAXBException jaxbEx) {
      throw new ProtocolException(jaxbEx.getMessage());
    }
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.