Package com.google.checkout.sdk.domain

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


    }

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


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

TOP

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

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.