From 98fcf44d9905d0d1850d003b46bce5fb6402a10e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=9D=2E=20=D0=9D=D0=B8?= =?UTF-8?q?=D0=BA=D0=BE=D0=BB=D0=B0=D0=B5=D0=B2?= Date: Wed, 2 Dec 2020 15:04:08 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 5 ++++- composer.json | 8 +++++++- lib/Client.php | 2 +- lib/Model/ReceiptCustomer.php | 14 ++------------ .../Payments/CreatePaymentRequestBuilder.php | 2 +- .../Receipts/CreatePostReceiptRequestBuilder.php | 2 +- 6 files changed, 16 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 890bcb44..5753f8eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,5 @@ +### v2.0.1 от 02.12.2020 +* Небольшие исправления + ### v2.0.0 от 01.12.2020 -* Обновленная версия SDK \ No newline at end of file +* Обновленная версия SDK diff --git a/composer.json b/composer.json index 72af2a01..ec2f759d 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,13 @@ { "name": "yoomoney/yookassa-sdk-php", "license": "MIT", - "version": "2.0.0", + "authors": [ + { + "name": "YooMoney", + "email": "cms@yoomoney.ru" + } + ], + "version": "2.0.1", "require": { "php": ">=5.3.0", "ext-curl": "*", diff --git a/lib/Client.php b/lib/Client.php index 2f72179b..e94acbc4 100644 --- a/lib/Client.php +++ b/lib/Client.php @@ -90,7 +90,7 @@ class Client extends BaseClient /** * Текущая версия библиотеки */ - const SDK_VERSION = '2.0.0'; + const SDK_VERSION = '2.0.1'; /** * Получить список платежей магазина. diff --git a/lib/Model/ReceiptCustomer.php b/lib/Model/ReceiptCustomer.php index b894c141..153e2cea 100644 --- a/lib/Model/ReceiptCustomer.php +++ b/lib/Model/ReceiptCustomer.php @@ -62,17 +62,6 @@ class ReceiptCustomer extends AbstractObject implements ReceiptCustomerInterface */ private $_inn; - /** - * ReceiptCustomer constructor. - * @param null|array $data - */ - public function __construct($data = null) - { - if (!empty($data) && is_array($data)) { - $this->fromArray($data); - } - } - /** * Возвращает для юрлица — название организации, для ИП и физического лица — ФИО * @return string Название организации или ФИО @@ -195,7 +184,8 @@ class ReceiptCustomer extends AbstractObject implements ReceiptCustomerInterface */ public function isEmpty() { - return empty($this->getFullName() . $this->getEmail() . $this->getPhone() . $this->getInn()); + $data = $this->getFullName() . $this->getEmail() . $this->getPhone() . $this->getInn(); + return empty($data); } /** diff --git a/lib/Request/Payments/CreatePaymentRequestBuilder.php b/lib/Request/Payments/CreatePaymentRequestBuilder.php index 06686d23..0b949043 100644 --- a/lib/Request/Payments/CreatePaymentRequestBuilder.php +++ b/lib/Request/Payments/CreatePaymentRequestBuilder.php @@ -298,7 +298,7 @@ class CreatePaymentRequestBuilder extends AbstractPaymentRequestBuilder } /** - * Строит и возвращает объект запроса для отправки в API яндекс денег + * Строит и возвращает объект запроса для отправки в API ЮKassa * @param array|null $options Массив параметров для установки в объект запроса * @return CreatePaymentRequestInterface Инстанс объекта запроса * diff --git a/lib/Request/Receipts/CreatePostReceiptRequestBuilder.php b/lib/Request/Receipts/CreatePostReceiptRequestBuilder.php index 29e511a5..424e4c7e 100644 --- a/lib/Request/Receipts/CreatePostReceiptRequestBuilder.php +++ b/lib/Request/Receipts/CreatePostReceiptRequestBuilder.php @@ -185,7 +185,7 @@ class CreatePostReceiptRequestBuilder extends AbstractRequestBuilder } /** - * Строит и возвращает объект запроса для отправки в API яндекс денег + * Строит и возвращает объект запроса для отправки в API ЮKassa * @param array|null $options Массив параметров для установки в объект запроса * @return CreatePostReceiptRequest Инстанс объекта запроса *