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); }
public static UpsServiceAggregate ToAggregate(this UpsService upsService) { if (upsService == null) { throw new ArgumentNullException(nameof(upsService)); } return(new UpsServiceAggregate { Id = upsService.Id, CountryCode = upsService.CountryCode, Service = (UpsAggregateServices)upsService.Service }); }
protected override string GetShippingLabel() { return(UpsService.GetShipmentNumber()); }
private string GetShippingLabel() { return(UpsService.GetShipmentNumber()); }