示例#1
0
        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));
        }
示例#2
0
        public override RedHeadsShipment CreateShipment(RedHeadsAddress from, RedHeadsAddress to)
        {
            UPSShipment upsShipment = _upsLib.CreateShipment(mapRHAddresstoUPS(from), mapRHAddresstoUPS(to));

            return(mapUPSShipmentToRH(upsShipment));
        }