public virtual TrackInfo TrackShipment(ShippingSession session, IShippingContext context, string carrierID, string trackingNumber) { return(new TrackInfo { TrackingURL = GetTrackingURL(session, context, carrierID, trackingNumber), TrackingNumber = trackingNumber, CarrierID = carrierID }); }
public virtual string GetTrackingURL(ShippingSession session, IShippingContext context, string carrierID, string trackingNumber) { var carrier = GetShippingCarriers(session, context).FirstOrDefault(c => c.Name.EqualsIgnoreCase(carrierID)); if (carrier != null && carrier.TrackingURL.IsNotNullOrWhiteSpace() && trackingNumber.IsNotNullOrWhiteSpace()) { return(carrier.TrackingURL.Args(trackingNumber)); } return(null); }
public abstract Financial.Amount?EstimateShippingCost(ShippingSession session, IShippingContext context, Shipment shipment);
public virtual IEnumerable <ShippingCarrier> GetShippingCarriers(ShippingSession session, IShippingContext context) { return(m_PreconfiguredShippingCarriers); }
public abstract Address ValidateAddress(ShippingSession session, IShippingContext context, Address address, out ValidateShippingAddressException error);
public abstract TrackInfo TrackShipment(ShippingSession session, IShippingContext context, string carrierID, string trackingNumber);
public abstract Label CreateLabel(ShippingSession session, IShippingContext context, Shipment shipment);
public abstract ShippingRate EstimateShippingCost(ShippingSession session, IShippingContext context, Shipment shipment);
public abstract Exception ValidateAddress(ShippingSession session, IShippingContext context, Address address);
public abstract Label CreateReturnLabel(ShippingSession session, IShippingContext context, Shipment shipment, object labelID);