From 397355b25de09b2e7bbc21f3ed57e2af0f20a03e Mon Sep 17 00:00:00 2001 From: Maksim Khramov Date: Mon, 6 Sep 2021 17:20:29 +0300 Subject: [PATCH] Fix response for createReceipt --- src/Library.php | 4 ++-- src/Request/Receipt/CustomerReceipt.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Library.php b/src/Library.php index fafdc8d..b40146f 100644 --- a/src/Library.php +++ b/src/Library.php @@ -231,9 +231,9 @@ public function startSession(ApplepayStartSession $data): AppleSessionResponse /** * Создание чека * @param KktReceipt $data - * @return CloudResponse + * @return KktReceiptResponse */ - public function createReceipt(KktReceipt $data): CloudResponse + public function createReceipt(KktReceipt $data): KktReceiptResponse { $method = 'kkt/receipt'; diff --git a/src/Request/Receipt/CustomerReceipt.php b/src/Request/Receipt/CustomerReceipt.php index f432bd9..8ecfa14 100644 --- a/src/Request/Receipt/CustomerReceipt.php +++ b/src/Request/Receipt/CustomerReceipt.php @@ -24,7 +24,7 @@ class CustomerReceipt extends BaseRequest public ?array $additionalReceiptInfos = null; /** - * @param array $items + * @param ReceiptItem[] $items * @param string $taxationSystem * @param ReceiptAmounts $amounts */