public override RedHeadsShipment CreateShipment(RedHeadsAddress from, RedHeadsAddress to) { // these are mappings var fFrom = mapRhAddressToFedex(from); var fTo = mapRhAddressToFedex(to); // logic is here var fShipment = _fedexLib.CreateShipment(fFrom, fTo); // map back to RH model return(mapFedexShipmentToRH(fShipment)); }
public override RedHeadsShipment CreateShipment(RedHeadsAddress from, RedHeadsAddress to) { UPSShipment upsShipment = _upsLib.CreateShipment(mapRHAddresstoUPS(from), mapRHAddresstoUPS(to)); return(mapUPSShipmentToRH(upsShipment)); }