33 lines
898 B
C#
33 lines
898 B
C#
using ShippingCosts.Contracts;
|
|
|
|
namespace ShippingCosts.Implementations;
|
|
|
|
/// <summary>
|
|
/// Calculates the shipping costs for the Leonding Parcel Service carrier
|
|
/// </summary>
|
|
/// <inheritdoc cref="ShippingCostCalculatorBase" />
|
|
public sealed class LPSShippingCostCalculator(ICountryDistanceProvider countryDistanceProvider)
|
|
: ShippingCostCalculatorBase(countryDistanceProvider)
|
|
{
|
|
public override string CarrierName => string.Empty; // TODO
|
|
|
|
public override decimal? CalculateShippingCosts(string targetCountry, IMeasuredBox box)
|
|
{
|
|
//const decimal MaxWeightPrice = 20M;
|
|
|
|
// TODO implement
|
|
// make use of CalcDistanceCost
|
|
|
|
return null;
|
|
}
|
|
|
|
private decimal CalcDistanceCost(string targetCountry)
|
|
{
|
|
//const decimal PricePer500Km = 1.1M;
|
|
//const decimal BasePrice = 2.99M;
|
|
|
|
// TODO
|
|
|
|
return -1M;
|
|
}
|
|
}
|