From 53c3c0293bbacefb9ed0d56f61695f0b76a9f385 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Sun, 22 Mar 2026 00:04:11 +0100 Subject: Urbanos de Lugo --- src/Enmarcha.Backend/Services/FareService.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/Enmarcha.Backend/Services/FareService.cs') diff --git a/src/Enmarcha.Backend/Services/FareService.cs b/src/Enmarcha.Backend/Services/FareService.cs index fda5eb5..294166d 100644 --- a/src/Enmarcha.Backend/Services/FareService.cs +++ b/src/Enmarcha.Backend/Services/FareService.cs @@ -25,6 +25,9 @@ public class FareService private const decimal OurenseCashFare = 0.85M; private const decimal OurenseCardFare = 0.49M; + private const decimal LugoCashFare = 0.64M; + private const decimal LugoCardFare = 0.45M; + public FareService( IOptions config, XuntaFareProvider xuntaFareProvider, @@ -77,6 +80,9 @@ public class FareService case "ourense": total += OurenseCashFare; break; + case "lugo": + total += LugoCashFare; + break; case "xunta": // TODO: Handle potentiall blow-ups if (leg.From is not { ZoneId: not null }) @@ -137,6 +143,12 @@ public class FareService maxUsages = 2; initialFare = OurenseCardFare; break; + case "lugo": + // IDK About card rules, so we set it to zero + maxMinutes = 0; + maxUsages = 0; + initialFare = LugoCardFare; + break; case "xunta": if (leg.From?.ZoneId == null || leg.To?.ZoneId == null) { -- cgit v1.3