* spar category update

* new categories added
* OTP regexp change
This commit is contained in:
Danyi Dávid 2019-02-03 17:30:22 +01:00
parent ea64911d4f
commit 7ed97002e5

View File

@ -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';