Examples of toJAXB()


Examples of com.google.checkout.sdk.domain.ArchiveOrderRequest.toJAXB()

  @Override
  public void archiveOrder() {
    ArchiveOrderRequest archiveOrderRequest = new ArchiveOrderRequest();
    archiveOrderRequest.setGoogleOrderNumber(googleOrderNumber);
    postCommand(archiveOrderRequest.toJAXB());
  }

  @Override
  public void unarchiveOrder() {
    UnarchiveOrderRequest unarchiveOrderRequest = new UnarchiveOrderRequest();
View Full Code Here

Examples of com.google.checkout.sdk.domain.AuthorizeOrderRequest.toJAXB()

  @Override
  public void authorizeOrder()
      throws CheckoutException {
    AuthorizeOrderRequest authorizeOrderRequest = new AuthorizeOrderRequest();
    authorizeOrderRequest.setGoogleOrderNumber(googleOrderNumber);
    postCommand(authorizeOrderRequest.toJAXB());
  }

  @Override
  public ItemCommands itemCommands(List<String> itemIds) throws CheckoutException {
    List<ItemId> copyIds = new ArrayList<ItemId>();
View Full Code Here

Examples of com.google.checkout.sdk.domain.BackorderItemsRequest.toJAXB()

      BackorderItemsRequest.ItemIds idsObject =
        new BackorderItemsRequest.ItemIds();
      idsObject.getItemId().addAll(itemIds);
      backorderItems.setItemIds(idsObject);
      backorderItems.setSendEmail(commandPoster.sendEmails);
      postCommand(backorderItems.toJAXB());
    }

    @Override
    public void returnItems() throws CheckoutException {
      ReturnItemsRequest returnItems = new ReturnItemsRequest();
View Full Code Here

Examples of com.google.checkout.sdk.domain.CancelItemsRequest.toJAXB()

      CancelItemsRequest.ItemIds idsObject = new CancelItemsRequest.ItemIds();
      idsObject.getItemId().addAll(itemIds);
      cancelItems.setItemIds(idsObject);
      cancelItems.setReason(reason);
      cancelItems.setSendEmail(commandPoster.sendEmails);
      postCommand(cancelItems.toJAXB());
    }

    @Override
    public void backorderItems()
        throws CheckoutException {
View Full Code Here

Examples of com.google.checkout.sdk.domain.CancelOrderRequest.toJAXB()

  public OrderStateChangeNotification cancelOrder(
      String reason) throws CheckoutException {
    CancelOrderRequest cancelOrder = new CancelOrderRequest();
    cancelOrder.setGoogleOrderNumber(googleOrderNumber);
    cancelOrder.setReason(reason);
    return postCommand(cancelOrder.toJAXB()).getOrderStateChangeNotification();
  }

  @Override
  public RefundAmountNotification refundOrder(
      String reason) throws CheckoutException {
View Full Code Here

Examples of com.google.checkout.sdk.domain.ChargeAndShipOrderRequest.toJAXB()

      ChargeAndShipOrderRequest.TrackingDataList orderShippingList =
          new ChargeAndShipOrderRequest.TrackingDataList();
      orderShippingList.getTrackingData().addAll(orderShipping.build());
      chargeShipRequest.setTrackingDataList(orderShippingList);
    }
    return postCommand(chargeShipRequest.toJAXB()).getChargeAmountNotification();
  }

  @Override
  public void shipItems(ItemShippingInformationBuilder shipping)
      throws CheckoutException {
View Full Code Here

Examples of com.google.checkout.sdk.domain.NotificationAcknowledgment.toJAXB()

  protected void sendNotificationAcknowledgment(String serialNumber, HttpServletResponse response,
      Notification notification, HttpServletRequest request) throws Exception {
    NotificationAcknowledgment ack = new NotificationAcknowledgment();
    ack.setSerialNumber(serialNumber);

    Utils.toXML(ack.toJAXB(), response.getOutputStream());

    logger.log(Level.INFO,
        "Sent response ack:\n" + Utils.SEND_AND_RECEIVE_DEBUGGING_STRING,
        new Object[]{200, request.getRemoteAddr(), notification, ack});
  }
View Full Code Here

Examples of com.google.checkout.sdk.domain.NotificationHistoryRequest.toJAXB()

   */
  public Notification requestNotification(String serialNumber) throws CheckoutException {
    NotificationHistoryRequest request = new NotificationHistoryRequest();
    request.setSerialNumber(serialNumber);
    // this is a specific notification domain object.
    return (Notification)postRequest(request.toJAXB());
  }

  /**
   * Fetches the order summaries which correspond to the specified
   * {@code googleOrderNumbers}. They will reflect the current state of those
View Full Code Here

Examples of com.google.checkout.sdk.domain.OrderSummaryRequest.toJAXB()

    OrderSummaryRequest request = new OrderSummaryRequest();
    OrderSummaryRequest.OrderNumbers orderNumbers = new OrderSummaryRequest.OrderNumbers();
    orderNumbers.getGoogleOrderNumber().addAll(googleOrderNumbers);
    request.setOrderNumbers(orderNumbers);

    OrderSummaryResponse response = (OrderSummaryResponse)postRequest(request.toJAXB());

    return response.getOrderSummaries().getOrderSummary();
  }

  protected Object postRequest(JAXBElement<?> request) {
View Full Code Here

Examples of com.google.checkout.sdk.domain.RefundOrderRequest.toJAXB()

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

  @Override
  public RefundAmountNotification refundOrder(
      String reason, double refundAmount) throws CheckoutException {
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.