Пример #1
0
        public void Ship()
        {
            // confirm shipping data
            if (String.IsNullOrWhiteSpace(ShippingAddress) || ShippingAddress.Contains("PO Box"))
            {
                throw new ApplicationException("Invalid shipping address");
            }

            // get shipping label / id from FedEx
            string shipmentNumber = FedExService.GetFedExNumber();

            // print label
            PrinterService.PrintLabel(shipmentNumber);
        }
Пример #2
0
 protected override string GetShippingLabel()
 {
     return(FedExService.GetFedExNumber());
 }
 private string GetShippingLabel()
 {
     return(FedExService.GetFedExNumber());
 }