From 19df8d06b26163d71503c43b70d8ec5258c4a3db Mon Sep 17 00:00:00 2001 From: Marek Siemaszko Date: Fri, 20 Dec 2024 11:46:32 +0100 Subject: [PATCH 1/3] =?UTF-8?q?Update=20ReportTypes=20-=20Definicja=20rapo?= =?UTF-8?q?rt=C3=B3w=20BIR=201.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/GusApi/ReportTypes.php | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/GusApi/ReportTypes.php b/src/GusApi/ReportTypes.php index 27bf2f5..94812da 100644 --- a/src/GusApi/ReportTypes.php +++ b/src/GusApi/ReportTypes.php @@ -6,22 +6,22 @@ final class ReportTypes { - public const REPORT_PERSON = 'BIR11OsFizycznaDaneOgolne'; - public const REPORT_PERSON_CEIDG = 'BIR11OsFizycznaDzialalnoscCeidg'; - public const REPORT_PERSON_AGRO = 'BIR11OsFizycznaDzialalnoscRolnicza'; - public const REPORT_PERSON_OTHER = 'BIR11OsFizycznaDzialalnoscPozostala'; + public const REPORT_PERSON = 'BIR12OsFizycznaDaneOgolne'; + public const REPORT_PERSON_CEIDG = 'BIR12OsFizycznaDzialalnoscCeidg'; + public const REPORT_PERSON_AGRO = 'BIR12OsFizycznaDzialalnoscRolnicza'; + public const REPORT_PERSON_OTHER = 'BIR12OsFizycznaDzialalnoscPozostala'; public const REPORT_PERSON_DELETED_BEFORE_20141108 = 'BIR11OsFizycznaDzialalnoscSkreslonaDo20141108'; - public const REPORT_PERSON_LOCALS = 'BIR11OsFizycznaListaJednLokalnych'; - public const REPORT_PERSON_LOCAL = 'BIR11JednLokalnaOsFizycznej'; - public const REPORT_PERSON_ACTIVITY = 'BIR11OsFizycznaPkd'; - public const REPORT_PERSON_LOCAL_ACTIVITY = 'BIR11JednLokalnaOsFizycznejPkd'; - public const REPORT_ORGANIZATION = 'BIR11OsPrawna'; - public const REPORT_ORGANIZATION_ACTIVITY = 'BIR11OsPrawnaPkd'; - public const REPORT_ORGANIZATION_LOCALS = 'BIR11OsPrawnaListaJednLokalnych'; - public const REPORT_ORGANIZATION_LOCAL = 'BIR11JednLokalnaOsPrawnej'; - public const REPORT_ORGANIZATION_LOCAL_ACTIVITY = 'BIR11JednLokalnaOsPrawnejPkd'; - public const REPORT_ORGANIZATION_PARTNERS = 'BIR11OsPrawnaSpCywilnaWspolnicy'; - public const REPORT_UNIT_TYPE = 'BIR11TypPodmiotu'; + public const REPORT_PERSON_LOCALS = 'BIR12OsFizycznaListaJednLokalnych'; + public const REPORT_PERSON_LOCAL = 'BIR12JednLokalnaOsFizycznej'; + public const REPORT_PERSON_ACTIVITY = 'BIR12OsFizycznaPkd'; + public const REPORT_PERSON_LOCAL_ACTIVITY = 'BIR12JednLokalnaOsFizycznejPkd'; + public const REPORT_ORGANIZATION = 'BIR12OsPrawna'; + public const REPORT_ORGANIZATION_ACTIVITY = 'BIR12OsPrawnaPkd'; + public const REPORT_ORGANIZATION_LOCALS = 'BIR12OsPrawnaListaJednLokalnych'; + public const REPORT_ORGANIZATION_LOCAL = 'BIR12JednLokalnaOsPrawnej'; + public const REPORT_ORGANIZATION_LOCAL_ACTIVITY = 'BIR12JednLokalnaOsPrawnejPkd'; + public const REPORT_ORGANIZATION_PARTNERS = 'BIR12OsPrawnaSpCywilnaWspolnicy'; + public const REPORT_UNIT_TYPE = 'BIR12TypPodmiotu'; public const REPORTS = [ self::REPORT_PERSON, From 12ab457f8e47a764217c8cb24361621c8cd6b3bb Mon Sep 17 00:00:00 2001 From: Marek Siemaszko Date: Fri, 20 Dec 2024 11:47:02 +0100 Subject: [PATCH 2/3] Update GusApiClientTest --- tests/Client/GusApiClientTest.php | 3 +++ tests/resources/response/fullSearchMultipleResponse.xsd | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tests/Client/GusApiClientTest.php b/tests/Client/GusApiClientTest.php index 76bca1b..fb6ac70 100644 --- a/tests/Client/GusApiClientTest.php +++ b/tests/Client/GusApiClientTest.php @@ -338,16 +338,19 @@ public function testGetFullReportMultiple(): void $this->assertEquals( new GetFullReportResponse([ [ + 'praw_pkdWersja' => '2007', 'praw_pkdKod' => '7430Z', 'praw_pkdNazwa' => 'DZIAŁALNOŚĆ ZWIĄZANA Z TŁUMACZENIAMI', 'praw_pkdPrzewazajace' => '0', ], [ + 'praw_pkdWersja' => '2007', 'praw_pkdKod' => '7420Z', 'praw_pkdNazwa' => 'DZIAŁALNOŚĆ FOTOGRAFICZNA', 'praw_pkdPrzewazajace' => '0', ], [ + 'praw_pkdWersja' => '2007', 'praw_pkdKod' => '7410Z', 'praw_pkdNazwa' => 'DZIAŁALNOŚĆ W ZAKRESIE SPECJALISTYCZNEGO PROJEKTOWANIA', 'praw_pkdPrzewazajace' => '1', diff --git a/tests/resources/response/fullSearchMultipleResponse.xsd b/tests/resources/response/fullSearchMultipleResponse.xsd index 345190a..0121837 100644 --- a/tests/resources/response/fullSearchMultipleResponse.xsd +++ b/tests/resources/response/fullSearchMultipleResponse.xsd @@ -1,15 +1,18 @@ + 2007 7430Z DZIAŁALNOŚĆ ZWIĄZANA Z TŁUMACZENIAMI 0 + 2007 7420Z DZIAŁALNOŚĆ FOTOGRAFICZNA 0 + 2007 7410Z DZIAŁALNOŚĆ W ZAKRESIE SPECJALISTYCZNEGO PROJEKTOWANIA 1 From 6d478cff9521888c704cf46c8ea9ad6531210d4b Mon Sep 17 00:00:00 2001 From: Marek Siemaszko Date: Fri, 20 Dec 2024 11:47:10 +0100 Subject: [PATCH 3/3] Update GusApiTest. --- tests/GusApiTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/GusApiTest.php b/tests/GusApiTest.php index 259818a..fb37b25 100644 --- a/tests/GusApiTest.php +++ b/tests/GusApiTest.php @@ -260,7 +260,7 @@ public function testGetFullReport(): void [['test' => '1234']], $this->api->getFullReport( new SearchReport(new SearchResponseCompanyData()), - 'BIR11OsFizycznaDaneOgolne' + 'BIR12OsFizycznaDaneOgolne' ) ); }