Package com.ebay.soap.eBLBaseComponents

Examples of com.ebay.soap.eBLBaseComponents.ShippingServiceCodeType


      ControlTagItem[] ctrlIntlShippingServices,
      JTextField  txtShippingServiceSelectedCost)
  {
    ShippingServiceOptionsType shippingServiceOptionsType = null;

    ShippingServiceCodeType selectedShippingService = null;
    int idx = cbxShippingServiceSelected.getSelectedIndex();
    if (idx > 0) {
      selectedShippingService = (ShippingServiceCodeType)ctrlShippingServices[idx].Tag;
    }
    else {
      idx = cbxIntlShippingServiceSelected.getSelectedIndex();
      if (idx > 0) {
        selectedShippingService = (ShippingServiceCodeType)ctrlIntlShippingServices[idx].Tag;
      }
    }

    if (selectedShippingService != null) {
      shippingServiceOptionsType = new ShippingServiceOptionsType();
      shippingServiceOptionsType.setShippingService(selectedShippingService.value());
      String cost = txtShippingServiceSelectedCost.getText();
      if (cost != null && cost.length() > 0) {
        AmountType shippingServiceSelectedCost = new AmountType();
        shippingServiceSelectedCost.setValue(Double.parseDouble(cost));
        shippingServiceSelectedCost.setCurrencyID(currencyId);
View Full Code Here

TOP

Related Classes of com.ebay.soap.eBLBaseComponents.ShippingServiceCodeType

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.