Package com.google.checkout.sdk.domain

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


      postCommand(backorderItems.toJAXB());
    }

    @Override
    public void returnItems() throws CheckoutException {
      ReturnItemsRequest returnItems = new ReturnItemsRequest();
      returnItems.setGoogleOrderNumber(commandPoster.googleOrderNumber);
      ReturnItemsRequest.ItemIds idsObject = new ReturnItemsRequest.ItemIds();
      idsObject.getItemId().addAll(itemIds);
      returnItems.setItemIds(idsObject);
      returnItems.setSendEmail(commandPoster.sendEmails);
      postCommand(returnItems.toJAXB());
    }
View Full Code Here


  public void testNoEmailReturnItems() {
    OrderCommands tester = new CommandPosterImplTester(
        apiContext(), "googleOrderNumber", false, commands);
    tester.itemCommands("itemId").returnItems();
    assertEquals(1, commands.size());
    ReturnItemsRequest returnItemsRequest =
      (ReturnItemsRequest) commands.get(0).getValue();
    assertEquals(Boolean.FALSE, returnItemsRequest.isSendEmail());
    assertEquals("googleOrderNumber", returnItemsRequest.getGoogleOrderNumber());
    assertEquals(1, returnItemsRequest.getItemIds().getItemId().size());
    assertEquals("itemId", returnItemsRequest.getItemIds().getItemId().get(0).getMerchantItemId());
  }
View Full Code Here

TOP

Related Classes of com.google.checkout.sdk.domain.ReturnItemsRequest

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.