Examples of RefundOrderRequest


Examples of com.google.checkout.orderprocessing.RefundOrderRequest

                    BigDecimal amount = toRefund.get(refundOrderId).setScale(decimals, rounding);
                    String externalId = gOrder.getString("externalId");
                    String reason = "Item(s) Returned";
                    if (amount.floatValue() > 0) {
                        try {
                            RefundOrderRequest ror = new RefundOrderRequest(mInfo, externalId, reason, amount.floatValue(), "");
                            ror.send();
                        } catch (CheckoutException e) {
                            Debug.logError(e, module);
                            return ServiceUtil.returnError(e.getMessage());
                        }
                    } else {
View Full Code Here

Examples of com.google.checkout.orderprocessing.RefundOrderRequest

                    BigDecimal amount = toRefund.get(refundOrderId).setScale(decimals, rounding);
                    String externalId = gOrder.getString("externalId");
                    String reason = "Item(s) Returned";
                    if (amount.floatValue() > 0) {
                        try {
                            RefundOrderRequest ror = new RefundOrderRequest(mInfo, externalId, reason, amount.floatValue(), "");
                            ror.send();
                        } catch (CheckoutException e) {
                            Debug.logError(e, module);
                            return ServiceUtil.returnError(e.getMessage());
                        }
                    } else {
View Full Code Here

Examples of com.google.checkout.orderprocessing.RefundOrderRequest

                    BigDecimal amount = toRefund.get(refundOrderId).setScale(decimals, rounding);
                    String externalId = gOrder.getString("externalId");
                    String reason = "Item(s) Returned";
                    if (amount.floatValue() > 0) {
                        try {
                            RefundOrderRequest ror = new RefundOrderRequest(mInfo, externalId, reason, amount.floatValue(), "");
                            ror.send();
                        } catch (CheckoutException e) {
                            Debug.logError(e, module);
                            return ServiceUtil.returnError(e.getMessage());
                        }
                    } else {
View Full Code Here

Examples of com.google.checkout.orderprocessing.RefundOrderRequest

                    BigDecimal amount = toRefund.get(refundOrderId).setScale(decimals, rounding);
                    String externalId = gOrder.getString("externalId");
                    String reason = "Item(s) Returned";
                    if (amount.floatValue() > 0) {
                        try {
                            RefundOrderRequest ror = new RefundOrderRequest(mInfo, externalId, reason, amount.floatValue(), "");
                            ror.send();
                        } catch (CheckoutException e) {
                            Debug.logError(e, module);
                            return ServiceUtil.returnError(e.getMessage());
                        }
                    } else {
View Full Code Here

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

      String currency) throws ProtocolException {
    if (StringUtil.isEmpty(reason)) {
      throw new ProtocolException("Refunding order: reason is missing!");
    }
   
    RefundOrderRequest refundRequest = _objectFact.createRefundOrderRequest();
    refundRequest.setGoogleOrderNumber(orderNumber);
    refundRequest.setReason(reason);
    if (amount > 0.0F && !StringUtil.isEmpty(currency)) {
      Money refundAmount = createMoney(amount, currency);
      refundRequest.setAmount(refundAmount);
    }
   
    JAXBElement<RefundOrderRequest> refundOrder
        = _objectFact.createRefundOrder(refundRequest);
    return convertToDOM(refundOrder);
View Full Code Here

Examples of com.google.checkout.sdk.domain.RefundOrderRequest

  }

  @Override
  public RefundAmountNotification refundOrder(
      String reason) throws CheckoutException {
    RefundOrderRequest refundOrderRequest = new RefundOrderRequest();
    refundOrderRequest.setGoogleOrderNumber(googleOrderNumber);
    refundOrderRequest.setReason(reason);
    return postCommand(refundOrderRequest.toJAXB()).getRefundAmountNotification();
  }
View Full Code Here

Examples of com.google.checkout.sdk.domain.RefundOrderRequest

  }

  @Override
  public RefundAmountNotification refundOrder(
      String reason, BigDecimal refundAmount) throws CheckoutException {
    RefundOrderRequest refundOrderRequest = new RefundOrderRequest();
    refundOrderRequest.setGoogleOrderNumber(googleOrderNumber);
    refundOrderRequest.setAmount(apiContext.makeMoney(refundAmount));
    refundOrderRequest.setReason(reason);
    return postCommand(refundOrderRequest.toJAXB()).getRefundAmountNotification();
  }
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.