/// <summary> /// Returns a <see cref="IShipmentRateQuote"/> for a <see cref="IShipment"/> given the 'unique' key of the <see cref="IShipMethod"/> /// </summary> /// <param name="shipment">The <see cref="IShipment"/></param> /// <param name="shipMethodKey">The Guid key of the <see cref="IShipMethod"/></param> /// <returns>The <see cref="IShipmentRateQuote"/> for the shipment by the specific <see cref="IShipMethod"/> specified</returns> public static IShipmentRateQuote ShipmentRateQuoteByShipMethod(this IShipment shipment, Guid shipMethodKey) { return(shipment.ShipmentRateQuoteByShipMethod(MerchelloContext.Current, shipMethodKey)); }
/// <summary> /// Returns a <see cref="IShipmentRateQuote"/> for a <see cref="IShipment"/> given the 'unique' key of the <see cref="IShipMethod"/> /// </summary> /// <param name="shipment">The <see cref="IShipment"/></param> /// <param name="shipMethodKey">The GUID key of the <see cref="IShipMethod"/></param> /// <param name="tryGetCached">If set true the value is first attempted to be retrieved from cache</param> /// <returns>The <see cref="IShipmentRateQuote"/> for the shipment by the specific <see cref="IShipMethod"/> specified</returns> public static IShipmentRateQuote ShipmentRateQuoteByShipMethod(this IShipment shipment, Guid shipMethodKey, bool tryGetCached = true) { return(shipment.ShipmentRateQuoteByShipMethod(MerchelloContext.Current, shipMethodKey, tryGetCached)); }
/// <summary> /// Returns a <see cref="IShipmentRateQuote"/> for a <see cref="IShipment"/> given the 'unique' key of the <see cref="IShipMethod"/> /// </summary> /// <param name="shipment">The <see cref="IShipment"/></param> /// <param name="shipMethodKey">The Guid key as a string of the <see cref="IShipMethod"/></param> /// <returns>The <see cref="IShipmentRateQuote"/> for the shipment by the specific <see cref="IShipMethod"/> specified</returns> public static IShipmentRateQuote ShipmentRateQuoteByShipMethod(this IShipment shipment, string shipMethodKey) { return(shipment.ShipmentRateQuoteByShipMethod(new Guid(shipMethodKey))); }
/// <summary> /// Returns a <see cref="IShipmentRateQuote"/> for a <see cref="IShipment"/> given the 'unique' key of the <see cref="IShipMethod"/> /// </summary> /// <param name="shipment">The <see cref="IShipment"/></param> /// <param name="shipMethodKey">The GUID key as a string of the <see cref="IShipMethod"/></param> /// <param name="tryGetCached">If set true the value is first attempted to be retrieved from cache</param> /// <returns>The <see cref="IShipmentRateQuote"/> for the shipment by the specific <see cref="IShipMethod"/> specified</returns> public static IShipmentRateQuote ShipmentRateQuoteByShipMethod(this IShipment shipment, string shipMethodKey, bool tryGetCached = true) { return(shipment.ShipmentRateQuoteByShipMethod(new Guid(shipMethodKey), tryGetCached)); }