From 7ed97002e5261f82944b1e9f6b5e7dff5af01e7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danyi=20D=C3=A1vid?= Date: Sun, 3 Feb 2019 17:30:22 +0100 Subject: [PATCH] * spar category update * new categories added * OTP regexp change --- src/App/Service/KoinService.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/App/Service/KoinService.php b/src/App/Service/KoinService.php index fe250ae..e9cd0fd 100644 --- a/src/App/Service/KoinService.php +++ b/src/App/Service/KoinService.php @@ -27,7 +27,7 @@ class KoinService * 4 - currency * 5 - pos info */ - const OTP_SMS_PATTERN = '#([0-9]{6}) ([0-9]{1,2}:[0-9]{1,2}) K[áà]rty[áà]s v[áà]s[áà]rl[áà]s/z[áà]rol[áà]s: -([0-9,.]+) ([A-Z]{2,3}); (.*?); K[áà]rtyasz[áà]m: ...[0-9]{4}; Egyenleg: \+[0-9.]+ HUF - OTPdirekt#msiu'; + const OTP_SMS_PATTERN = '#([0-9]{6}) ([0-9]{1,2}:[0-9]{1,2}) K[áà]rty[áà]s v[áà]s[áà]rl[áà]s(/z[áà]rol[áà]s)?: -([0-9,.]+) ([A-Z]{2,3}); (.*?); K[áà]rtyasz[áà]m: ...[0-9]{4}; Egyenleg: \+[0-9.]+ HUF - OTPdirekt#msiu'; /** @var Client */ private $httpClient; @@ -136,7 +136,11 @@ class KoinService } if (false !== strpos($posInfo, "SPAR")) { - return 'Étel'; + return 'Bevásárlás'; + } + + if (false !== strpos($posInfo, "Cafe Frei")) { + return 'Kávé'; } if (false !== strpos($posInfo, "HAI NAM BISTRÓ")) { @@ -195,6 +199,10 @@ class KoinService return 'Megtakarítás'; } + if (false !== strpos($posInfo, "POSTA")) { + return 'Közművek'; + } + if (false !== strpos($posInfo, "STEAMGAMES")) { return 'Szórakozás'; } @@ -261,6 +269,8 @@ class KoinService $tags[] = "BKV"; } elseif (false !== strpos($posInfo, "SPAR")) { $tags[] = 'Spar'; + } elseif (false !== strpos($posInfo, "Cafe Frei")) { + $tags[] = 'Cafe Frei'; } elseif (false !== strpos($posInfo, "HAI NAM BISTRÓ")) { $tags[] = 'Hai Nam Bistro'; $tags[] = 'Vietnámi'; @@ -300,6 +310,8 @@ class KoinService $tags[] = 'Digi'; } elseif (false !== strpos($posInfo, "FUNDAMENTA")) { $tags[] = 'Fundamenta'; + } elseif (false !== strpos($posInfo, "POSTA")) { + $tags[] = 'Posta'; } elseif (false !== strpos($posInfo, "STEAMGAMES")) { $tags[] = 'Steam'; $tags[] = 'Gáma';