Exemplo n.º 1
0
  @Override
  public ShippingSummary getShippingSummary(
      MerchantStore store, ShippingQuote shippingQuote, ShippingOption selectedShippingOption)
      throws ServiceException {

    ShippingSummary shippingSummary = new ShippingSummary();
    shippingSummary.setFreeShipping(shippingQuote.isFreeShipping());
    shippingSummary.setHandling(shippingQuote.getHandlingFees());
    shippingSummary.setShipping(selectedShippingOption.getOptionPrice());
    shippingSummary.setShippingModule(shippingQuote.getShippingModuleCode());
    shippingSummary.setShippingOption(selectedShippingOption.getDescription());

    return shippingSummary;
  }