Beispiel #1
0
        public void Ship()
        {
            // confirm shipping data
            if (String.IsNullOrWhiteSpace(ShippingAddress))
            {
                throw new ApplicationException("Invalid shipping address");
            }

            // get shipping label / id from UPS
            string shipmentNumber = UpsService.GetShipmentNumber();

            // print label
            PrinterService.PrintLabel(shipmentNumber);
        }
Beispiel #2
0
 protected override string GetShippingLabel()
 {
     return(UpsService.GetShipmentNumber());
 }
 private string GetShippingLabel()
 {
     return(UpsService.GetShipmentNumber());
 }