示例#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);
        }
示例#2
0
 protected override string GetShippingLabel()
 {
     return(UpsService.GetShipmentNumber());
 }
 private string GetShippingLabel()
 {
     return(UpsService.GetShipmentNumber());
 }