From 4471491799f9bc11f3a9a624b593d2fb9eba5fd5 Mon Sep 17 00:00:00 2001 From: Mikael Agabalyants Date: Mon, 16 Mar 2020 17:31:13 +0300 Subject: [PATCH 1/2] update(Vat.php): add 10/110 & 20/120 vat values --- src/Constants/Vat.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Constants/Vat.php b/src/Constants/Vat.php index b2620e8..31f6faf 100644 --- a/src/Constants/Vat.php +++ b/src/Constants/Vat.php @@ -10,4 +10,6 @@ class Vat const vat0 = 'vat0'; // НДС 0% const vat10 = 'vat10';// НДС 10% const vat20 = 'vat20'; // НДС 20% + const vat110 = 'vat110'; // 10/110 + const vat120 = 'vat120'; // 20/120 } \ No newline at end of file From 4f8fcc6db0624630ade5c38da9af7fbc78402744 Mon Sep 17 00:00:00 2001 From: Mikael Agabalyants Date: Mon, 16 Mar 2020 17:40:39 +0300 Subject: [PATCH 2/2] change(HttpClient.php): remove JSON_FORCE_OBJECT --- src/Traits/HttpClient.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Traits/HttpClient.php b/src/Traits/HttpClient.php index 8384508..f14caa2 100644 --- a/src/Traits/HttpClient.php +++ b/src/Traits/HttpClient.php @@ -35,7 +35,7 @@ private function execute($action, $data = []) $headers['Content-Type'] = 'application/json'; - $data = \json_encode($data, JSON_FORCE_OBJECT); + $data = \json_encode($data); $client = new Client(); $res = $client->request( @@ -51,4 +51,4 @@ private function execute($action, $data = []) 'response' => $response, ]; } -} \ No newline at end of file +}